function VimeoController(){this.fadeout=function(n){this.callAction(n,"pause")};this.fadein=function(n){var t=$(n).closest(".video-module").data("video-autoplay");t!=undefined&&t!=="false"&&this.start(n)};this.autoplay=function(n){this.callAction(n,"play")};this.start=function(n){this.callAction(n,"play")};this.pause=function(n){this.callAction(n,"pause")};this.callAction=function(n,t){var i=$(n).find("iframe.video"),r=i.attr("src").split("?")[0],u={method:t};i[0].contentWindow.postMessage(u,r);i.on("load",function(){i[0].contentWindow.postMessage(u,r)})}}function YouTubeController(){this.fadeout=function(n){this.callAction(n,"pauseVideo")};this.fadein=function(n){var t=$(n).find(".video-module").attr("data-autoplay")=="true";t&&this.autoplay(n)};this.start=function(n){this.callAction(n,"playVideo")};this.autoplay=function(n){this.callAction(n,"playVideo")};this.pause=function(n){this.callAction(n,"pauseVideo")};this.callAction=function(n,t){var i=$(n).find("iframe.video");if(i.length!=0){i[0].contentWindow.postMessage('{"event":"command","func":"'+t+'","args":""}',"*");i.on("load",function(){i[0].contentWindow.postMessage('{"event":"command","func":"'+t+'","args":""}',"*")})}}}function addSimpleAnalyticsPageView(){document.addEventListener("DOMContentLoaded",function(){let n=$(".cookie-warning")[0];if(!n){let t=window.navigator.userAgent;setTimeout(function(){callMethodAsync("GoBasic.Web.WebServices.AnalyticsService, GoBasic.Web","AddView",function(){},t,window.location.href)},100)}})}function VideoElement(n){var t=this;this.container=n;this.iframe=this.container.find("iframe.video");this.container.attr("data-controller")&&(this.controller=getController(this.container.attr("data-controller")));this.container.attr("data-width")&&this.container.attr("data-height")&&(this.aspectRatio=parseFloat(this.container.attr("data-width"))/parseFloat(this.container.attr("data-height")),this.width=this.container.width(),this.height=Math.round(this.width/this.aspectRatio));this.resizeIframe=function(){t.width=t.container.width();t.height=Math.round(t.width/t.aspectRatio);t.iframe.attr("height",t.height);t.iframe.css("height",t.height+"px")};this.autoplayInview=function(){t.container.attr("data-autoplay")=="true"&&t.controller&&t.container.bind("inview",function(n,i){i?t.play():i||t.stop()})};this.play=function(){t.container.attr("data-visible")!="false"&&t.container.attr("data-playing")!="true"&&(t.container.attr("data-playing","true"),t.controller.start(t.container[0]))};this.stop=function(){t.container.attr("data-playing")=="true"&&(t.container.removeAttr("data-playing"),t.controller.pause(t.container[0]))};this.setVisible=function(n){n?t.container.attr("data-visible","true"):t.container.attr("data-visible","false")};this.shouldAutoplay=function(){return t.container.attr("data-autoplay")=="true"}}function getController(n){switch(n){case"YouTubeController":return new YouTubeController;case"VimeoController":return new VimeoController;default:return console.error("This controller is not supported"),null}}function setInputFieldDefault(n,t){var i=$(n);i.val(t);$("body").on("click",n,function(){i.val()==t&&i.val("")});$("body").on("click",function(n){var r=$(n.target);r[0]!=i[0]&&i.val()==""&&i.val(t)})}function Throttler(n,t){function u(){i=+new Date;r=!1;t()}var i,r;this.trigger=function(){if(!r){if(i){var t=+new Date-i;if(t<n){r=!0;window.setTimeout(u,n-t);return}}u()}}}function itemListInit(){function r(n,t){const i=s(t);if(n){if(i!=="popupFrame"){window.open(n,i);return}let r=new CustomEvent("dispatchPopupFrame",{detail:n,bubbles:!0});t.dispatchEvent(r)}}function s(n){let t="_self";return n.attributes.target||(t=n.closest(".item").attributes.target&&n.closest(".item").attributes.target.value?n.closest(".item").attributes.target.value:t),n.attributes.target&&n.attributes.target.value?n.attributes.target.value:t}function e(){var n=$("#year-filter-selection").val(),t=new RegExp(/(\d{4})(\D*)?/);return t.exec(n)}async function n(n,r){const u=n.element[0].id;t(u,"page");i(u,"page",r);o(n,r,function(t){var i=n.element.find(".ajaxhost");if(t.value.page){i.html(t.value.page);let r=new Event("attachPopupFrame",{bubbles:!0}),n=$(i).find("div.item")[0];typeof n!="undefined"&&(n.dispatchEvent(r),i.attr("data-is-loaded","true"))}else i.html("");n.element.trigger("resultsLoaded")})}function h(n,t){var i=n.element.find(".append-items");i.hide();o(n,t,function(t){var r=n.element.find(".ajaxhost");r.append(t.value.page);n.element.trigger("resultsLoaded");n.lastGroupName=t.lastGroupName;t.lastPage||i.show()})}function o(n,t,i){var r,s,u,f,o,h;n.element.find(".filter .search button").addClass("loader");r={query:n.element.find(".filter .search input").val(),categorizations:[]};s=document.querySelector("#exact-match");s&&s.checked&&(r.exactMatch=!0);u=document.querySelector("#sort-by-relevance-date-select");u&&(r.sortBy=u.options[u.selectedIndex].value);f=e(n);f!==null&&(o=f[1],h=f[2],o&&(r.to="01/01/"+(Number(o)+1),h||(r.from="01/01/"+o)));n.element.find(".filter .dropdown a.checked").each(function(){r.categorizations.push($(this).attr("data-id"))});callCachedMethodAsync(n.config.options.generator,"GetPage",function(t){i(t);n.element.find(".filter .search button").removeClass("loader");t.value.lastPage&&n.element.find(".append-items").hide()},n.config,t,r,n.lastGroupName||"")}function c(n){var i="[\\?&]"+n+"=([^&#]*)",r=new RegExp(i),t=r.exec(window.location.search);return t==null?"":decodeURIComponent(t[1].replace(/\+/g," "))}function t(n,t){const e=f();let i=u(),r=i?.[n];r&&(r=r.filter(n=>n.dataId!==t),i={...i,[n]:r},sessionStorage.setItem(e,JSON.stringify(i)))}function i(n,t,i){const o=f();let r=u(),e=r?.[n];e=e?[...e,{dataId:t,queryValue:i}]:[{dataId:t,queryValue:i}];r={...r,[n]:e};sessionStorage.setItem(o,JSON.stringify(r))}function u(){const n=f();return JSON.parse(sessionStorage.getItem(n))||{}}function f(){let n=window.location.pathname;return n.endsWith("/")&&(n=n.slice(0,-1)),n}application.itemlist={};application.itemlist.init=function(f){function y(){const t=u()?.[s];t&&t.length&&t.forEach(n=>{if(n.dataId==="query"&&(f.element[0].querySelector(".filter .search input").value=n.queryValue),n.dataId==="page"){o=n.queryValue;return}if(n.dataId==="year-filter-selection"&&(f.element[0].querySelector("#year-filter-selection").value=n.queryValue),n.dataId==="sort-by-relevance-date-select"){f.element[0].querySelector("#sort-by-relevance-date-select").value=n.queryValue;return}const t=f.element[0].querySelector(`[data-id~="${n.dataId}"]`);t&&t.classList.add("checked");n.dataId!=="page"&&f.element.find(".selected-filters").append('<li data-id="'+n.dataId+'"><span class="label">'+n.queryValue+'<a class="remove"><\/span><\/li>')});n(f,o);l()}function l(){var n=f.element.find(".selected-filters");n.attr("aria-hidden",n.children().length===0)}function v(){let n="query",r=f.element.find(".filter .search input").val();f.element.find('.selected-filters li[data-id="'+n+'"]').remove();t(s,n);r&&(f.element.find(".selected-filters").append('<li data-id="'+n+'"><span class="label">'+r+'<a class="remove"><\/span><\/li>'),i(s,n,r));l()}function p(){let n="year-filter-selection",r=e(f);if(n&&f.element.find('.selected-filters li[data-id="'+n+'"]').remove(),t(s,n),r!==null){var u=r[0];f.element.find(".selected-filters").append('<li data-id="'+n+'"><span class="label">'+u+'<a class="remove"><\/span><\/li>');i(s,n,u)}l()}var o=1,a;const s=f.element[0].id;f.element.find(".append-items").on("click",function(n){n.preventDefault();o++;h(f,o)});y();f.element.on("click",".dropdown-menu a",function(r){var u,e;(r.preventDefault(),u=$(this),u.toggleClass("checked"),u[0].classList.contains("dropdown-item-expander"))||(e=u.attr("data-id"),u.hasClass("checked")?(i(s,e,u.text()),f.element.find(".selected-filters").append('<li data-id="'+e+'"><span class="label">'+u.text()+'<a class="remove"><\/span><\/li>')):(f.element.find('.selected-filters li[data-id="'+e+'"]').remove(),t(s,e)),o=1,n(f,o),l())});f.element.on("click",".selected-filters a.remove",function(){var u=$(this).closest("li"),i=u.attr("data-id"),r,e;i==="query"?f.element.find(".filter .search input").val(""):i==="year-filter-selection"?(r=f.element.find("#year-filter-selection"),r.val(r[0].dataset.default)):(e=f.element.find('.dropdown-menu a[data-id="'+i+'"]'),e.removeClass("checked"));t(s,i);u.remove();o=1;n(f,o);l()});f.element.on("change","#sort-by-relevance-date-select",function(t){let r=f.element.find("#sort-by-relevance-date-select").val();r&&i(s,"sort-by-relevance-date-select",r);t.preventDefault();o=1;n(f,o)});f.element.on("change","#exact-match",function(t){t.preventDefault();o=1;n(f,o)});f.element.on("change","#year-filter-selection",function(t){t.preventDefault();p();o=1;n(f,o)});f.element.on("click",".form button",function(t){t.preventDefault();v();o=1;n(f,o)});f.element.on("keypress",".form .search input",function(t){t.keyCode===13&&(t.preventDefault(),v(),o=1,n(f,o))});f.element.on("click",".pagination a",function(t){(t.preventDefault(),$(this).closest("li").hasClass("disabled"))||(o=$(this).attr("data-page"),n(f,o),$(this)[0].closest(".ajaxhost").scrollIntoView())});f.element.on("click","a",function(n){if(n.currentTarget.className.includes("btn")){(n.currentTarget.className.includes("archive")||n.currentTarget.className.includes("rss"))&&r(n.currentTarget.href,n.currentTarget);n.preventDefault();return}n.preventDefault()});f.element.on("click",".item",function(n){if(n.target.className==="label"&&n.target.parentElement&&n.target.parentElement.localName==="a"&&n.target.parentElement.href){window.location=n.target.parentElement.href;return}if(n.target.localName==="a"&&n.target.href){r(n.target.href,n.target);return}n.stopPropagation();n.preventDefault();let u=n.currentTarget,i=u.attributes["data-url"],t=null;if(i&&(t=i.value),!t){let n=$(this).find("a");n&&(t=n.attr("href"))}r(t,n.target)});a=c("page");a&&(o=a);n(f,o)}}function cookie(){function r(n){let i=document.cookie.split(";");for(var t=0;t<i.length;t++){let r=i[t].trim();if(r.indexOf(n+"=")===0)return r.substring(n.length+1)}return null}function o(){const t=r("CookieConsent"),i=document.querySelector(".cookie-state-Warned");if(i&&(i.style.display="none"),document.querySelector(".cookie-state-NotAccepted")){const n=document.querySelector(".cookie-state-NotAccepted"),r=document.querySelector(".cookie-state-Accepted");n.style.display="none";r.style.display="none";(!t||t=="[]")&&i&&(i.style.display="block");t&&JSON.parse(t).length?r.style.display="block":n.style.display="block"}else!t&&document.querySelector(n.cookieBanner)?(document.querySelector(n.cookieBanner).style.display="block",i&&(i.style.display="block")):document.querySelector(n.cookieBanner)&&(document.querySelector(n.cookieBanner).style.display="none");document.querySelectorAll("[required-cookies]").forEach(function(n){let i=n.getAttribute("required-cookies").split("|");if(!t||!i.every(n=>JSON.parse(t).includes(n))){n.parentElement.querySelector(".no-cookies")&&n.parentElement.querySelector(".no-cookies").classList.add("noCookieVisible");return}if(n.classList.add("cookieVisible"),n.getAttribute("type")==="text/plain"){const t=n.parentNode,i=n.nextSibling;n.type="text/javascript";t.removeChild(n);i?t.insertBefore(n,i):t.appendChild(n)}!n.querySelectorAll("[data-src]").length||n.querySelectorAll("[data-src]").forEach(function(t){t.setAttribute("src",t.getAttribute("data-src"));n.parentElement.querySelector(".no-cookies")&&n.parentElement.querySelector(".no-cookies").classList.remove("noCookieVisible")})});u()}function u(){if(h){const u=document.querySelector(n.rejectCookiesButton),f=document.querySelector(n.acceptCookiesButton);if(u&&f){const i=r("CookieConsent"),e=!i||i=="[]";if(t&&t.length){const n=JSON.parse(i),r=i&&n.length;u.style.display=e?"none":"block";f.style.display=r&&(Array.from(t).every(n=>n.checked)&&n.length===t.length||Array.from(t).filter(n=>n.checked).length==n.length||!Array.from(t).some(n=>n.checked))?"none":"block"}else u.style.display=e?"none":"block",f.style.display=i&&i!="[]"?"none":"block"}}}function c(){document.cookie="CookieConsent=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;"}function l(n,t){r("CookieConsent")||callMethodAsync("CookieInfoPart","ClearOldCookies",function(i){i&&(t?n(t):n())})}function a(n){c();document.cookie="CookieConsent="+JSON.stringify(n)+"; expires="+f.toUTCString()+"; path=/";l(a,n);t.forEach(function(t){n.includes(t.id)&&(t.checked=!0)});o()}function v(){c();document.cookie="CookieConsent=[]; expires="+f.toUTCString()+"; path=/";l(v);t.forEach(function(n){n.checked=!1});o()}function y(){const t=r("CookieConsent");let f=document.querySelectorAll(n.cookieCategoryCheckboxChecked).length;if(e.length===1&&t&&(checkedCategories=JSON.parse(t).length),!f){i.textContent=i.dataset.acceptAllText;u();return}if(f===e.length){i.textContent=i.dataset.acceptAllText;u();return}i.textContent=i.dataset.acceptSelectedText;u()}const p=new Date;let f=new Date;f.setFullYear(p.getFullYear()+1);let n={cookieBanner:".cookie-banner",cookieCategoryCheckboxChecked:".cookie-category:checked",cookieCategoryCheckboxDisabled:".cookie-category:disabled",setSelectedCookiesButton:".cookies-selected-button",cookieCategoryCheckbox:".cookie-category",acceptCookiesButton:".accept-cookies",rejectCookiesButton:".reject-cookies",acceptAllCookieText:"accept-all-text",acceptSelectedCookieText:"accept-selected-text"},i=document.querySelector(n.acceptCookiesButton),t=document.querySelectorAll(n.cookieCategoryCheckbox),e=document.querySelector(n.cookieBanner)&&document.querySelector(n.cookieBanner).dataset.availableCookies!==undefined?document.querySelector(n.cookieBanner).dataset.availableCookies.split("|"):[];const s=document.querySelector(n.cookieBanner);let h=!0;s&&s.parentElement===document.body&&(h=!1);o();document.querySelector(n.acceptCookiesButton)&&document.querySelector(n.acceptCookiesButton).addEventListener("click",function(){let i;t&&document.querySelectorAll(n.cookieCategoryCheckboxChecked).length?(i=document.querySelectorAll(n.cookieCategoryCheckboxChecked),i=Array.from(i).map(function(n){return n.id})):i=e;a(i)});document.querySelector(n.rejectCookiesButton)&&document.querySelector(n.rejectCookiesButton).addEventListener("click",function(n){v(n)});t.forEach(function(n){const t=r("CookieConsent");t&&JSON.parse(t).includes(n.id)&&(n.checked=!0);y();n.addEventListener("click",function(){y()})});u()}function footnoteTogglerMobile(){var t=$(".chapter-navigation"),n=$(".footnotes");$(n).length&&$(t).append('<a href="" aria-label="Fold ud" class="dropdown-toggle refs"><span>Toggle footnotes<\/span><\/a>');$(".dropdown-toggle.refs").on("click",function(){$(n).addClass("expand")});$(document).on("mouseup",function(){$(n).removeClass("expand")})}function checkLocalStoragePopup(){if(sessionStorage.getItem("hidePopup")){document.querySelector(".announcementPopup").style.display="none";document.body.style.overflowY="auto";return}document.body.style.overflowY="hidden";document.querySelector(".announcementPopup").style.display="block"}function checkLocalStoragebanner(){if(sessionStorage.getItem("hideBanner")){document.querySelector(".banner").style.display="none";return}document.querySelector(".banner").style.display="block"}var sliderElements,delay,application;typeof console=="undefined"&&(window.console={});window.console.log||(window.console.log=function(){});application=window.application||{};application.adaptive={sizes:[480,768,992,1382,1920],getMinimumSize:function(n){for(var t=0;t<this.sizes.length;){if(n<=this.sizes[t])return this.sizes[t];t++}return undefined}};application.detectBrowser=function(){var i=navigator.userAgent,t,n=i.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*([\d\.]+)/i)||[];return/trident/i.test(n[1])?(t=/\brv[ :]+(\d+(\.\d+)?)/g.exec(i)||[],"IE "+(t[1]||"")):(n=n[2]?[n[1],n[2]]:[navigator.appName,navigator.appVersion,"-?"],(t=i.match(/version\/([\.\d]+)/i))!==null&&(n[2]=t[1]),n.join(" "))};Modernizr.load([{test:window.matchMedia,nope:"/Assets/GoBasic/Plugins/Src/MatchMedia/matchMedia.min.js"},]);$("[data-bgimage]").each(function(){var t=$(this).attr("data-bgimage"),r,i,n;/[?&]width=/.test(t)||(r=Math.max(screen.width,screen.height),i=application.adaptive.getMinimumSize(r),i!==undefined&&(t+="&width="+i));n=$(this).attr("style");typeof n=="undefined"&&(n="");n.length>0&&n.indexOf(";",n.length-1)==-1&&(n+=";");$(this).attr("style",n+" background-image:url('"+t+"');background-repeat: no-repeat;");$(this).addClass("bg-content")});application.init=function(n){application.translations=n};application.getQueryStrings=function(){for(var t=[],n,r=window.location.href.slice(window.location.href.indexOf("?")+1).split("&"),i=0;i<r.length;i++)n=r[i].split("="),t.push(n[0]),t[n[0]]=n[1];return t};$(function(){function n(n,t){n.data("aria-label")&&n.attr("aria-label",n.data("aria-label"));t.prop("hidden",!0);n.removeClass("open");n.attr("aria-expanded","false");n.trigger("aftercollapse");$("body").removeClass("nav-open")}function r(n,t){t.prop("hidden",!1);n.attr("aria-expanded","true");n.addClass("open");n.attr("aria-label")&&n.data("aria-label",n.attr("aria-label"));n.attr("aria-label","Luk dropdown menu");n.trigger("afterdrop");$("body").addClass("nav-open")}$("a[data-cookiewarning]").on("click",function(){var n=$(this).attr("data-externalcookie");return n!=="false"&&(n=$(this).attr("data-cookiewarning"),n)?confirm(n)?!0:!1:!0});$("body").on("click",".nav-toggle .dropdown-toggle",function(){$("body").toggleClass("open")});$("body").on("click",".dropdown-toggle, .mega-dropdown a:not([href])",function(t){t.preventDefault();t.stopPropagation();$(".dropdown-toggle").removeClass("open");var i=$(this).hasClass("dropdown-toggle")?$(this):$(this).closest(".mega-dropdown").find(".dropdown-toggle"),u=i.next(i.attr("href"));u.length==0&&(u=$(i.attr("href")));$(document).on("click",function(t){if(!$(t.target).hasClass("dropped")&&document.querySelector(".dropped")&&!document.querySelector(".dropped").contains(t.target)){var r=$(".dropdown-toggle.dropped");$(".dropped").removeClass("dropped").prop("hidden",!0);r.trigger("aftercollapse");i.is(t.target)||i.has(t.target).length!==0||n(i,u)}});return $(".dropdown .dropped[id!='"+u.attr("id")+"']").removeClass("dropped").prop("hidden",!0),i.toggleClass("open"),u.toggleClass("dropped"),u.hasClass("dropped")?r(i,u):n(i,u),!1});$("body").on("click",".dropdown li a",function(n){var t=$(this).attr("href")||"";(t.indexOf("http://")===0||t.indexOf("https://")===0||t.indexOf("/")===0)&&$(this).closest(".dropdown").removeClass("dropped").prop("hidden",!0);$("body").removeClass("open");$(".dropdown-toggle").removeClass("dropped");n.stopPropagation();t.indexOf("#")===0&&($(this).closest(".dropdown").removeClass("dropped").prop("hidden",!0),$("body").removeClass("open"),$(".dropdown-toggle").removeClass("dropped"))});let t=$(".cookie-warning")[0];if(t){let i=t.querySelector(".btn.all.accept-all-button");i&&i.trigger("focus")}});addSimpleAnalyticsPageView(),function(){function n(n){var t=$("nav.main"),i=t.find("a[href='"+n+"']");i.each(function(){var n=$(this).parent();n.hasClass("active")||n.addClass("active")})}function t(i){var r=i.split("/").filter(function(n){return!!n}),u;r.pop();r.length>0&&(u="/"+r.join("/")+"/",n(u),t(u))}function u(n){var t=n.find("> a").attr("data-id");callMethodAsync("GoBasic.Logic.Menus.MenuService,GoBasic.Core","GetChildMenuItems",function(t){t.success&&n.append(t.value)},t)}function i(n){var t=n.matches;(t&&application.navigation.mode!=="mobile"||application.navigation.isBurger)&&(application.navigation.mode="mobile",r());t||application.navigation.mode==="desktop"||(application.navigation.mode="desktop",f())}function r(){if($("nav.mobile").prop("hidden",!1),$("nav.main").prop("hidden",!0),!application.navigation.isBurger){var t=$("#mobile-menu"),n=$("nav.service > div > ul");t.append(n);n.addClass("service-links")}application.navigation.isSmall=!0;$(".site-search").addClass("collapse collapsed")}function f(){var i,f,r,u;$("nav.main").prop("hidden",!1);$("nav.mobile").prop("hidden",!0);i=$("#mobile-menu > .service-links");f=i.find("li > ul");f.remove();i.children("li").each(function(){var n=$(this);n.hasClass("expanded")&&(n.removeClass("expanded"),n.addClass("collapsed"))});$("nav.service > div").append(i);i.removeClass("service-links");r=$(".site-search");r.attr("data-collapse")!=="true"&&(r.removeClass("collapse"),r.removeClass("collapsed"));u=window.location.pathname;n(u);t(u)}application.navigation={isBurger:!1,mode:undefined,init:function(n){if(application.navigation.isBurger=n,n)application.navigation.mode="mobile",r();else if(typeof matchMedia!="undefined"){var t=window.matchMedia("(max-width: 767px)");t.addListener!==undefined&&t.addListener(i);i(t)}}};$(function(){$("body").on("click",".tree-nav .toggler",function(n){n.preventDefault();n.stopPropagation();var t=$(this).parent();t.hasClass("collapsed")?(t.find("> ul").length===0&&u(t),t.addClass("expanded"),$(t.find(".toggler")[0]).attr("aria-expanded","true"),t.removeClass("collapsed")):(t.addClass("collapsed"),$(t.find(".toggler")[0]).removeAttr("aria-expanded"),t.removeClass("expanded"))});$("body").on("click",".tree-nav .left-menu-back",function(){window.history.back()})})}();application=window.application||{};application.chart=application.chart||{};application.chart.init=function(n){function e(){!r&&$(i).height()<u?(t.options.maintainAspectRatio=!1,$(i).css("min-height",u+"px"),r=!0):r&&$(i).height()>=u&&(t.options.maintainAspectRatio=!0,$(i).css("min-height",""),r=!1)}function l(){var n=[];switch(t.type){case"doughnut":case"pie":n=a();break;case"line":case"bar":n=o(s());break;case"radar":n=s();break;case"bubble":n=o(v());break;default:alert("something's not right")}y(n)}function o(n){var r=t.options.scales.xAxes[0].scaleLabel.labelString||"",u=t.options.scales.yAxes[0].scaleLabel.labelString||"",i=[];return i.push("xAxis Label"),i.push(r),i.push("yAxis Label"),i.push(u),n.push(i),n}function a(){var n=[],i;return n.push(["Name","Value","Color"]),i=t.data.datasets[0],$.each(t.data.labels,function(t,r){var u=[r,i.data[t],i.backgroundColor[t]];n.push(u)}),n}function s(){var n=[],i=$.merge(["Labels"],t.data.labels);return i.push("Color"),n.push(i),$.each(t.data.datasets,function(t,i){var r=i.label?[i.label]:[""];r=$.merge(r,i.data);r.push(i.backgroundColor.replace(/40+$/,""));n.push(r)}),n}function v(){var n=[];return n.push(["Name","Value","xAxis","yAxis","Color"]),$.each(t.data.datasets,function(t,i){var r=[i.label,i.data[0].r.toString(),i.data[0].x,i.data[0].y,i.backgroundColor.replace(/40+$/,"")];n.push(r)}),n}function y(n){var u=t.type,f=XLSX.utils.aoa_to_sheet(n,{skipHeader:!0}),i=XLSX.utils.book_new(),r;XLSX.utils.book_append_sheet(i,f,u);r=new Date;XLSX.writeFile(i,t.type+"_"+r.toLocaleDateString()+".xlsx",{encoding:"binary"})}var u=n.config.options.heightInMobileView,t=n.config.options.chart,h=n.config.options,i=n.element.find("canvas")[0],c=i.getContext("2d"),f,r;window.charts=window.charts||[];f=new Chart(c,h.chart);window.charts.push(f);n.element.find(".download-chart-data").on("click",l);r=!1;$(window).on("resize",function(){e()});e()},function(){application.leftnavigation={mode:undefined,init:function(n){function t(n){var t=n.find("> a").attr("data-id");callMethodAsync("MenuService","GetChildMenuItems",function(t){n.append(t)},t)}n.config.options.generator&&callMethodAsync(n.config.options.generator,"Get",function(n){$(".sub-tree").html(n.value)});$(function(){n.element.on("click",".toggler",function(n){n.preventDefault();n.stopPropagation();var i=$(this).parent();i.hasClass("collapsed")?(i.find("> ul").length===0&&t(i),i.addClass("expanded"),i.removeClass("collapsed")):(i.addClass("collapsed"),i.removeClass("expanded"))})})}}}(),function(){function n(n,t,i){t.hasClass("expanded")?(n.slideUp(100),t.removeClass("expanded"),i.attr("aria-expanded","false"),n.find(".module").trigger("hidden")):(n.slideDown(100),t.addClass("expanded"),i.attr("aria-expanded","true"),n.find(".module").trigger("shown"))}application.multisection={};application.multisection.init=function(t){function o(n,t){const u=t.index();t.parent().children().each(function(){$(this).removeClass("active")});t.addClass("active");let i=$(n).parent().parent().parent().parent().parent();i.attr("style","");let f=$(i).find(".tab-content"),r=f.children();r.each(function(){$(this).removeClass("active")});var e=r[u];$(e).addClass("active")}var s=t.config.options.showToggleAllButton,e,i,r,u;const f=t.config.options.foldAllText,h=t.config.options.unfoldAllText;e=t.config.options.showFreeTextSearch;let c=t.config.options.notModuleElements===undefined?!0:t.config.options.notModuleElements;if(t&&t.element&&($(t.element).find(".section-body").hide(),$(t.element).find(".section.text-block > .section-body").show()),e)$(t.element[0]).on("keyup","input.search-query",function(){var i=$(this).val().toLowerCase(),n;i?(n=i.split(/\s+/),$(t.element[0]).find(".section").hide(),$(t.element[0]).find(".section").each(function(){for(var u,r=$(this),t=!1,i=0;i<n.length;i++)if(u=n[i],r.text().toLowerCase().indexOf(""+u+"")!=-1)t=!0;else{t=!1;break}t&&r.closest(".section").show()})):$(t.element[0]).find(".section").show()});$(t.element[0]).on("click",".tabs-navigation > ul > li a",function(n){n.preventDefault();let t=$(this).closest("li");o(this,t);sliderElements.forEach(function(n){n.reloadSlider()})});if($(t.element).find(".tabs-navigation").each(function(){let n=$(this).find("ul > li:first");o(this,n)}),i=$(t.element.find(".section-header a")),c&&(i=i.not(t.element.find(".module a"))),s){r=$(t.element.find(".foldAll"));u=!0;r.on("click",function(n){n.preventDefault();n.stopPropagation();r.text()==f?r.html(h):r.html(f);i.each(function(){var t=$(this).closest("div"),n=t.next(),i=t.closest(".section"),r=$(t.children()[0]);u?(n.slideDown(100),i.addClass("expanded"),r.attr("aria-expanded","true"),n.find(".module").trigger("shown")):(n.slideUp(100),i.removeClass("expanded"),r.attr("aria-expanded","false"),n.find(".module").trigger("hidden"))});u=!u})}i.on("click",function(t){t.preventDefault();var i=$(this).closest("div"),r=i.next(),u=i.closest(".section");n(r,u,$(this))});i.on("keydown",function(t){var i;if(t.key!=="Tab"){var u=$(this).closest("div"),f=u.next(),r=u.closest(".section");t.preventDefault();t.stopPropagation();switch(t.key){case" ":n(f,r,$(this));break;case"Enter":n(f,r,$(this));break;case"ArrowDown":i=r.next(".section");i.length>0&&i.find(" > .section-header a").trigger("focus");break;case"ArrowUp":i=r.prev(".section");i.length>0&&i.find(" > .section-header a").trigger("focus")}}})}}(),function(){function n(){$(".multi-section.accordion").each(function(){var i=window.location.hash,n,t;i&&(n=$(i),n.length==1&&(t=$(n).closest(".section"),$(t).addClass("expanded"),$(t).find(".section-body").css("display","block")))})}function t(){$(".multi-section.tabs").each(function(){var n=window.location.hash,t=$(this),u=t.find(".tabs-navigation > ul > li"),i=t.find(".tabs-navigation > ul > li a[href='"+n+"']"),r;n&&(i.length==1&&($(u).removeClass("active"),$(i).closest("li").addClass("active"),r=t.find(".tab-body"),$(r).removeClass("active"),$(n).addClass("active")),document.querySelector(n).scrollIntoView({behavior:"smooth"}))})}$(window).on("hashchange load",function(){n();t()})}();application.pagedlist={init:function(n){$("body").on("click","#"+n.clientId+" .pagination a",function(t){var i,r;(t.preventDefault(),i=$(this),i.hasClass("disabled"))||(r=i.attr("data-page"),r!==undefined)&&application.pagedlist.renderSearchResults(r,n)});$("body").on("click",".pagedlist .items li, .pagedlist .items-featured li",function(n){n.stopPropagation();var i=$(this).find("a"),r=i.attr("target")==="_blank",t=$(this).attr("data-url");t&&(r?window.open(t,"_blank"):window.location.href=t)});$("body").on("click",".pagedlist .items li a, .pagedlist .items-featured li a",function(n){n.stopPropagation()});$("body").on("change","#exact-match",function(t){t.stopPropagation();n.exactMatch=t.target.checked;application.pagedlist.addToQuery("exactMatch",n.exactMatch);application.pagedlist.renderSearchResults(1,n,!0)});$("body").on("change","#filter-by-template-select",function(t){t.stopPropagation();var i=t.target;i&&(n.template=i.options[i.selectedIndex].value);application.pagedlist.addToQuery("template",n.template);application.pagedlist.renderSearchResults(1,n,!0)});$("body").on("change","#sort-by-relevance-date-select",function(t){t.stopPropagation();n.sortBy=t.target.value;application.pagedlist.addToQuery("sortBy",n.sortBy);application.pagedlist.renderSearchResults(1,n,!0)})},addToQuery(n,t){const i=new URL(location.href);i.searchParams.set(n,t);history.replaceState(null,"",i)},renderSearchResults:function(n,t,i){var u=$("#"+t.clientId),f,r;(typeof n=="undefined"||n==="")&&(n=u.attr("data-page"));f=callMethod(t.generator,"RenderSearchResultPage",parseInt(n),t);r=u.find(".ajaxhost");r.animate({opacity:0},200,function(){r.html(f.value.response);r.trigger("updated")});r.animate({opacity:1},200,function(){});i||$("html, body").animate({scrollTop:window.pageYOffset+u[0].getBoundingClientRect().top-35},500)}};sliderElements=[],function(){application.slider={};application.slider.init=function(n){function f(){for(var e,f,o,s,c,h,u=1;u<i.length;u++)e=r(u),e!==null&&e.setVisible(!1);let l=t.bxSlider({mode:n.config.options.animation==="fade"?"fade":"horizontal",speed:n.config.options.animationTime,auto:n.config.options.autoPlay,autoStart:n.config.options.autoPlay,pause:n.config.options.delay,controls:n.config.options.showArrows,adaptiveHeight:!0,startText:"Start",stopText:"Stop",nextText:n.config.options.nextText,prevText:n.config.options.prevText,nextAriaText:n.config.options.nextAriaText,prevAriaText:n.config.options.prevAriaText,slideLinkAria:n.config.options.slideLinkAria,startAriaText:n.config.options.startAriaText,stopAriaText:n.config.options.stopAriaText,onSliderLoad:function(){n.config.options.animation==="fade"?$(t.find("li")[0]).addClass("active"):$(t.find("li")[1]).addClass("active")},onSlideBefore:function(n,t){var i=r(t);i!==null&&(i.setVisible(!1),i.stop(),$(i.container).attr("data-controller")==="YouTubeController"&&i.controller.pause(i.container))},onSlideAfter:function(i,u,f){var e=t.find("li").toArray(),o;n.config.options.animation==="fade"?($(e[u%e.length]).removeClass("active"),$(e[f%e.length]).addClass("active")):($(e[(u+1)%e.length]).removeClass("active"),$(e[(f+1)%e.length]).addClass("active"));o=r(f);o!==null&&(o.setVisible(!0),o.shouldAutoplay()&&o.play())},pager:n.config.options.showPager||n.config.options.showThumbnails,buildPager:function(t){if(t>n.config.options.pagerInfo.length-1)return"";var i=n.config.options.pagerInfo[t],r="";return n.config.options.showThumbnails&&i.showAsThumbnail&&(r+='<img src="'+i.url+'" alt="'+i.title+'">'),r+('<span class="thumbNav-heading">'+i.title+"<\/span>")}});sliderElements.push(l);f=t.closest("div.bx-wrapper");o=f.find("div.bx-controls-direction a.bx-prev");o.html("<span>"+o.html()+"<\/span>");s=f.find("div.bx-controls-direction a.bx-next");s.html("<span>"+s.html()+"<\/span>");n.config.options.showThumbnails&&(c=f.find("div.bx-controls"),$(c).addClass("bx-has-thumbnails"));n.config.options.showPager&&!n.config.options.showThumbnails&&(h=t.parent().parent().find("div.anythingControls .thumbNav"),h.attr("class",h.attr("class")+" paging"));n.element.addClass("loaded");n.element.css("height","auto")}function r(n){var r=i[n],t=$(r).find(".video");return t.length===0?null:new VideoElement(t)}function e(){$(".slider").each(function(){var n=$(this).find(".bx-controls");if($(n).length>0)$(this).addClass("controls");else return})}var t=n.element.find(".slider-container"),i=t.find("> li"),u=i.find(".module").height();n.element.css("height",u);$(window).on("load",function(){f();e();window.location.hash&&document.querySelector(window.location.hash).scrollIntoView()})}}();application.Preloader=function(){this.appendTo=function(n){n.append('<div class="preloader"><div class="bounce1"><\/div><div class="bounce2"><\/div><div class="bounce3"><\/div><\/div>')};this.removeFrom=function(n){n.find(".preloader").remove()}};application.form={},function(n,t){function u(n,t){if(!t.hasClass("disabled")&&h(n,t)){r(n,!1);var i=t.data("commandname");b(n,function(){var u=e(n);if(u.pendingFiles>0){r(n,!0);return}h(n,t)?o(n,i):r(n,!0)})}}function a(n,t,i){var r,u,f;t.preventDefault();r=i.closest("li");r.prevAll().addClass("active");r.prevAll().attr("aria-current","true");r.addClass("active");r.nextAll().removeClass("active");r.nextAll().removeAttr("aria-current");u=r.closest(".form-group");f=u.find("input");f.val(i.attr("data-value"))}function v(n,t,i){t.preventDefault();i.addClass("active");i.attr("aria-current","true");i.prevAll().removeClass("active");i.prevAll().removeAttr("aria-current");i.nextAll().removeClass("active");i.nextAll().removeAttr("aria-current");n.element.parent().addClass("add-comment");i.closest(".form-group[data-type=FeedbackElement]").addClass("submit-feedback")}function y(n,r,u){var f=u.closest(".upload"),o=u.val().split("\\").pop(),e,s;if(o!=""){if(o&&o.includes(",")){f.append(i(n,n.config.options.commaInFileNameError));return}e=f.closest(".form-group").find("ul.upload-list");e.length==0&&(e=t('<ul class="upload-list"><\/ul>'),f.before(e));s=t("<li class='uploaded' style='display:none'><span>"+o+"<\/span><a class='remove glyphicons'><\/a><\/li>");e.append(s);s.append(u);s.show("slow");u.closest(".form-group").attr("data-multiple")=="true"?f.prepend('<input type="file" class="form-control">'):f.hide()}}function p(n,t,i){t.preventDefault();var r=i.closest("div.upload").find("input[type=file]");return r.trigger("click"),!1}function w(n,t,i){var f;t.preventDefault();var e=i.closest(".form-group"),r=i.closest(".uploaded"),u=r.parent();return e.attr("data-multiple")=="true"?r.hide("slow",function(){r.remove();u.find("> li").length==0&&u.remove()}):(r.remove(),f=e.find("> .upload"),f.prepend('<input type="file" class="form-control">'),f.show(),u.find("> li").length==0&&u.remove()),!1}function b(n,i){var o=e(n),u,c,s,r,f,h,l,a;if(o.pendingFiles===0){i();return}for(u=[],c=0,s=0;s<o.groups.length;s++)for(r=o.groups[s],f=0;f<r.pendingFiles.length;f++)h=t(r.pendingFiles[f]),l="_"+r.$elem.attr("data-fileid")+"_upload"+c,h.attr("id",l),h.attr("name",l),h.attr("data-fileid",r.$elem.attr("data-fileid")),u.push(r.pendingFiles[f]),c++;a=typeof u[0].files=="undefined";a?d(n,u,i):k(n,o,u,i)}function k(n,i,r,u){for(var o,e=0;e<r.length;e++){var s=t(r[e]).attr("data-fileid"),l=t(r[e]).attr("id"),h=r[e].files[0],a=s+"/"+h.name,c=new FormData;c.append(a,h);o=new XMLHttpRequest;o.open("POST","~/fileUpload.ashx?fid="+s+"&eid="+l,!0);o.onload=function(n){var t=JSON.parse(n.target.response);f(t);i.pendingFiles--;i.pendingFiles===0&&u()};o.send(c)}}function d(n,i,r){var u=t("form"),o={target:u.attr("target"),action:u.attr("action"),enctype:u.attr("enctype")},s=n.config.options.uniqueId+"_iframe",e=t('<iframe width="1" height="1" border="0">');e.attr("id",s);e.attr("name",s);n.element.append(e);u.attr("action","/fileUpload.ashx?bulk=true");u.attr("target",s);u.attr("enctype","multipart/form-data");e.on("load",function(){var n,s,i;for(n in o)o[n]?u.attr(n,o[n]):u.removeAttr(n);for(s=JSON.parse(t(e[0].contentDocument).text()),i=0;i<s.length;i++)f(s[i]);e.remove();r()});u.trigger("submit")}function f(n){var r=t("#"+n.id),u,f;n.success?(u=n.fid+"/"+n.filename,f=t('<input type="hidden" value="'+u+'">'),r.before(f),r.remove()):r.after(i(scope,n.message))}function e(n){var i={groups:[],pendingFiles:0};return n.element.find(".form-group[data-type=FileUpload]").each(function(){var n=t(this),r={key:n.attr("data-key"),pendingFiles:[],uploadedFiles:[],isMandatory:n.attr("data-mandatory")=="true",fileid:n.data("fileid"),$elem:n,fileCount:0};i.groups.push(r);n.find("input[type='file']").each(function(){var u=t(this),n=u.val(),f=n!==undefined&&n!=="";f&&(r.pendingFiles.push(this),i.pendingFiles++)});n.find("input[type='hidden']").each(function(){r.uploadedFiles.push(this);r.fileCount++})}),i}function o(n,t){var i={},u,r,f,e;for(i.uniqueId=n.config.options.uniqueId,i.targets=n.config.options.targets,i.commandName=t,i.data={},u=c(n),r=0;r<u.length;r++)f=u[r],i.data[f.key]=f.value;e=new application.Preloader;e.appendTo(n.element);callMethodAsync(n.config.options.generator,"ExecuteCommand",function(t){e.removeFrom(n.element);g(n,t)},n.config,i)}function g(n,r){var e,u,f;if(l(n),n.element.find("button").removeClass("disabled"),r.value.success)r.value.redirect&&(window.location=r.value.redirect),r.value.response=="changePassword"?n.element.find(".change-password").each(function(){t(this).removeClass("form-reset-hidden");t(this).attr("data-key",t(this).data("hiddenKey"));s(n,r.value.errorMessage)}):r.value.response=="displayResetPassword"?(n.element.children().not("[data-hidden-key]").each(function(){t(this).addClass("form-reset-hidden")}),n.element.find(".login-provide-email").each(function(){t(this).removeClass("form-reset-hidden");t(this).attr("data-key",t(this).data("hiddenKey"))})):r.value.response&&n.element.parent().html(r.value.response);else if(e=r.value.errorMessage,e)s(n,e);else if(r.value.validationErrors)for(u in r.value.validationErrors)r.value.validationErrors[u].success||(u==="_filesSize"?(f=n.element.find("._filesSize"),f&&f.append(i(n,r.value.validationErrors[u].message))):(f=n.element.find("[data-key='"+u+"']"),f.append(i(n,r.value.validationErrors[u].message))))}function s(n,t){var r=n.element.find(".feedback");r.length===0&&(r=n.element.parent());r.html("<p>"+i(n,t)+"<\/p>")}function h(n,r){var f,o,e,u,s,h;for(l(n),f=!0,o=c(n),e=0;e<o.length;e++){u=o[e];let t=u.value?u.value.trim():u.value;u.mandatory&&!t&&n.config.options.translations[u.key]&&!u.dontValid&&(f=!1,s=n.config.options.translations[u.key].required||"This is required",u.$elem.append(i(n,s)))}return f||(h=n.config.options.translations.requiredSubmitButtonMessage||"One or more mandatory fields is not correctly filled",t(i(n,h)).insertBefore(r)),f}function c(n){var i=[];return n.element.find(".form-group").each(function(){var r={},u=t(this),f;r.$elem=u;r.key=u.attr("data-key");r.dontValid=u.attr("data-dont-valid");r.value="";r.controlType=u.attr("data-type");r.mandatory=u.hasClass("mandatory")===!0;r.controlType==="CheckBoxList"?u.find("input[type=checkbox]:checked").each(function(){r.value!==""&&(r.value+="|");r.value+=t(this).attr("value")}):r.controlType==="RadioButtonList"?r.value=u.find("input[type=radio]:checked").val():r.controlType==="FileUpload"?u.find("input[type=hidden], input[type=file]").each(function(){t(this).val()&&(r.value!==""&&(r.value+=","),r.value+=window.location.origin+n.config.options.downloadFileHandlerPath+t(this).val())}):r.controlType==="ReCaptcha"?r.value=n.element.find("#g-recaptcha-response").val():r.controlType==="ConfirmLinkElement"?r.value=u.find("input[type=checkbox]:checked").length>0?"true":"":r.controlType==="FeedbackElement"?(f=u.find("a.active"),f.length>0?(r.value=window.location.href,r.value+=f.hasClass("positive")?" Positive":" Negative"):r.value=""):r.value=u.find("input[type=text].form-control, input[type=password].form-control, input[type=hidden], textarea.form-control, select.form-control").val();i.push(r)}),i}function l(n){n.element.find(n.errorTag+"."+n.errorClass.replace(" ",".")).remove()}function i(n,t){return"<"+n.errorTag+' aria-alert="polite" class="'+n.errorClass+'">'+t+"<\/"+n.errorTag+">"}function r(n,t){t?n.element.find("button").removeClass("disabled"):n.element.find("button").addClass("disabled")}function nt(n){tt("saml")&&o(n,"ssoRedirect")}function tt(n){for(var i,u=window.location.search.substring(1),r=u.split("&"),t=0;t<r.length;t++)if(i=r[t].split("="),i[0]===n)return i[1];return undefined}n.init=function(n){n.element||(n.element=t(".form"));n.errorTag=n.config.options.errorTag||"em";n.errorClass=n.config.options.errorClass||"error form-message";nt(n);!n.element.hasClass("form")&&n.element.find(".form").length>0&&(n.element=n.element.find(".form"));n.element.on("click","button.submit",function(){u(n,t(this))});n.element.on("keypress",'input[type="password"]',function(t){if(t.key==="Enter"){let t=n.element.find("button.submit");t&&t.data("commandname")&&t.data("commandname")==="login"&&u(n,t)}});n.element.on("click",".form-rating a",function(i){a(n,i,t(this))});n.element.on("change","input[type=file]",function(i){y(n,i,t(this))});n.element.on("click","span.upload",function(i){p(n,i,t(this))});n.element.on("click","a.remove",function(i){w(n,i,t(this))});n.element.find(".form-group[data-type=FeedbackElement] a").on("click",function(i){v(n,i,t(this))})};n.populate=function(n,i){function h(n){var t={},i,r;if(n==="")return t;i=n.split("|");for(r in i)t[i[r]]=!0;return t}function c(n,i){var r=n.find("ul.upload-list"),f,e,u,o;if(r.find("> li").remove(),f=n.find("> .upload"),r.length==0&&(r=t('<ul class="upload-list"><\/ul>'),f.before(r)),n.attr("data-multiple")=="true")for(u=0;u<i.length;u++)e=t("<li class='uploaded'><span>"+i[u].filename+"<\/span><a class='remove glyphicons'><\/a><input type='hidden' value='"+i[u].id+"'><\/li>"),r.append(e);else i.length>0&&(e=t("<li class='uploaded'><span>"+i[0].filename+"<\/span><a class='remove glyphicons'><\/a><input type='hidden' value='"+i[0].id+"'><\/li>"),r.append(e),o=f.find("input[type=file]"),o.remove(),f.hide())}var r,u,e,o,f,s;for(r in i)if(u=n.find(".form-group[data-name='"+r+"']"),u.length>0)switch(u.attr("data-type")){case"TextBox":if(e=u.find(".form-control"),e.val(i[r]),e.hasClass("tinymce")&&tinymce!=undefined)for(o=tinymce.get(),f=0;f<o.length;f++)if(o[f].getElement()==e[0]){o[f].setContent(i[r]);break}break;case"CheckBoxList":s=h(i[r]);u.find("input[type=checkbox]").each(function(){t(this).prop("checked",s[t(this).attr("value")]==!0)});break;case"RadioButtonList":s=h(i[r]);u.find("input[type=radio]").each(function(){t(this).prop("checked",s[t(this).attr("value")]==!0)});break;case"FileUpload":c(u,i[r])}}}(application.form,jQuery);application.mediagallery={init:function(n){$(window).on("load",function(){n.element.find(".fancybox-media").fancybox({helpers:{media:{}},afterShow:function(){setTimeout(function(){var n=$("a.fancybox-nav");n.length>0&&n[0].trigger("focus")},100)}});n.element.on("keydown",".fancybox-overlay",function(n){n.key==="Tab"&&(n.preventDefault(),n.stopPropagation())})})}};application.videomodule={init:function(){},resizeVideo:function(n){if(n.container.attr("data-width")&&n.container.attr("data-height")){var i=parseFloat(n.container.attr("data-width"))/parseFloat(n.container.attr("data-height")),r=n.container.width(),t=Math.round(r/i);n.iframe.attr("height",t);n.iframe.css("height",t+"px")}},autoplayInview:function(n){n.container.attr("data-controller")&&n.container.bind("inview",function(t,i){var r=getController(this.container.attr("data-controller"));i&&n.container.attr("data-playing")!="true"?(n.container.attr("data-playing","true"),r.start(n.container[0])):i||n.container.attr("data-playing")!="true"||(n.container.removeAttr("data-playing"),r.pause(n.container[0]))})}},function(){var n=[];$(function(){$(".video-module, .video-container").each(function(){var t=$(this),i=new VideoElement(t);if(n.push(i),i.autoplayInview(),t.attr("data-autoplay")==="true")t.on("videoCookiesAccepted",function(){i.play()})});$(n).each(function(){this.resizeIframe()})});$(window).on("resize",function(){$(n).each(function(){this.resizeIframe()})}).trigger("resize")}();$("[data-bgvideo]").addClass("bg-content bg-video").attr("data-autoplay","true"),function(){let t=$(".video-js");for(var n=0;n<t.length;n++)t[n]&&(t[n].style.height="auto")}();$(function(){$(".video-background").each(function(){var n=new VideoElement($(this)),t=n.container.find(".overlay"),i;n.height&&n.width&&(n.resizeIframe(),t.css("height",n.height+"px"),i=(n.container.height()-n.height)/2,n.iframe.css("top",i+"px"),t.css("top",i+"px"),t.css("width","100%"),t.css("position","absolute"));n.autoplayInview()})}),function(){function n(n){callMethodAsync(n.config.options.generator,"GetPage",function(t){var i=n.element.find(".ajaxhost");i&&t.value.tweets&&i.html(t.value.tweets)},n.config)}application.twitter={};application.twitter.init=function(t){n(t)}}(),function(){function n(n,i){var e=n.element.find(" > div"),r=e.find(" > img"),o=r.attr("usemap"),s=$(o),u=s.find("area"),f=i.options.width;if(r[0]&&r[0].complete)t(r,f,i,u);else r.on("load",function(){t(this,f,i,u)})}function t(n,t,i,r){for(var o,e,u,s,h=$(n).outerWidth(),c=h/t,f=0;f<i.originalCoords.length;f++){for(o=i.originalCoords[f],e="",u=0;u<o.length;u++)u>0&&(e+=","),s=Math.floor(o[u]*c),e+=s;$(r[f]).attr("coords",e)}}application.imageMap={data:{},_preloadedImages:undefined,_imageSize:undefined,_originalCoords:undefined};application.imageMap.init=function(t){var i=t.config.options,r={options:i,originalCoords:[],preloadedImages:[]},o,e,f,u,s;for(o in i.images)e=new Image,e.src=i.images[o],r.preloadedImages.push(e);f=t.element.find(" > div");u=f.find("img");$(u).delay(1e3).queue(function(){var n=u.width(),t=u.height();f.width(n);f.height(t)});s=f.find(" > map");s.find("area").each(function(){var n=$(this),f=[];n.attr("coords").split(",").forEach(function(n){f.push(parseInt(n))});r.originalCoords.push(f);n.on("mouseenter",function(){var e,h,f,o,s;if(n.attr("data-imageindex")&&(e=parseInt(n.attr("data-imageindex")),e<r.preloadedImages.length&&(h=r.preloadedImages[e].src,u.attr("src",h))),n.attr("data-id")){f=$('<div class="popup"><\/div>');f.attr("id",n.attr("data-id"));n.attr("data-thumbindex")&&(o=$("<img>"),s=parseInt(n.attr("data-thumbindex")),s<r.preloadedImages.length&&(o.attr("src",r.preloadedImages[s].src),f.append(o)));(n.attr("data-headline")||n.attr("data-description"))&&(f.append('<div class="content">'),n.attr("data-headline")&&f.append("<h3>"+n.attr("data-headline")+"<\/h3>"),n.attr("data-description")&&f.append('<div class="description">'+n.attr("data-description")+"<\/div>"),f.append("<\/div>"));t.element.append(f);i.popup={elem:f,width:f.width(),height:f.height()};t.element.on("mousemove",function(n){var r=n.pageX-(window.pageXOffset+t.element[0].getBoundingClientRect().left),u=n.pageY-(window.pageYOffset+t.element[0].getBoundingClientRect().top);i.popup&&(i.popup.elem.css("opacity",1),i.popup.elem.css("top",u-i.popup.height-30+"px"),r>n.delegateTarget.clientWidth-i.popup.width?(i.popup.elem.css("left","unset"),i.popup.elem.css("right",n.delegateTarget.clientWidth-r-i.popup.width/2+"px")):i.popup.elem.css("left",r-i.popup.width/2+"px"))})}});n.on("mouseleave",function(){u.attr("src",u.attr("data-background"));n.attr("data-id")&&(delete i.popup,$("#"+n.attr("data-id")).remove(),t.element.off("mousemove"))})});n(t,r);$(window).on("resize",function(){n(t,r)});t.element.closest(".module").bind("shown",function(){n(t,r)})}}(),function(){application.search={init:function(n){function f(n,i){var f=$("<ul class='autocomplete-suggestions ui-menu ui-widget ui-widget-content ui-autocomplete ui-front'><\/ul>"),e,o;for(f.css("top",n.outerHeight()+"px"),f.css("left",n.position().left+parseInt(n.css("marginLeft"),10)+"px"),f.css("width",n.outerWidth()+"px"),e=0;e<i.length;e++){let s=e===r?"ui-menu-item-selected":"";o=$(`<li class='ui-menu-item ${s}'></li>`).text(i[e]);o.on("click",function(){n.val($(this).text());$(".autocomplete-suggestions").remove();application.search.execSearch(u,n,t.searchButton)});f.append(o)}n.after(f)}var u=n.url,t,e;u===undefined&&(u=n.config.options.url);let r=-1,i=[];t={searchQuery:".site-search .search-query",searchButton:".site-search button",inputSearchQuery:"input.search-query",siteSearch:".site-search"};e=function(n){return n.charCodeAt(n.length-1)};$("body").on("keypress",t.searchQuery,function(n){var r=$(this),i=n.keyCode||n.which;(i===0||i===229)&&(i=e(r.value));i===13&&(n.preventDefault(),application.search.execSearch(u,r,t.searchButton))});document.addEventListener("keydown",function(n){if(n.key==="Tab"){const n=document.querySelector(".autocomplete-suggestions");n&&($(".autocomplete-suggestions").remove(),r=-1)}});$("body").on("keyup",".site-search .search-query",function(n){var t=$(this),e=t.val(),u=n.keyCode||n.which;if(u!==39&&u!==37){if(u===40){if(i.length==0)return;r+1<=i.length-1&&r++;$(n.target).closest(".autocomplete-suggestions").length||$(".autocomplete-suggestions").remove();f(t,i);t.val(i[r]);return}if(u===38){if(i.length==0)return;r-1>=0&&r--;$(n.target).closest(".autocomplete-suggestions").length||$(".autocomplete-suggestions").remove();f(t,i);t.val(i[r]);return}if(u===9){$(".autocomplete-suggestions").remove();return}($(".autocomplete-suggestions").remove(),!e||e.length<3)||callMethodAsync("GoBasic.Web.WebServices.AutoSuggestService, GoBasic.Web","Suggest",function(u){r=-1;u.success&&u.value&&u.value.length>0?(i=u.value,f(t,i)):(i=[],$(n.target).closest(".autocomplete-suggestions").length||$(".autocomplete-suggestions").remove())},e)}});$(document).on("click",function(n){$(n.target).closest(".autocomplete-suggestions").length||$(".autocomplete-suggestions").remove()});$("body").on("focusin mousedown",t.searchButton,function(n){n.preventDefault();var i=$(this).closest(t.siteSearch),r=i.find(t.inputSearchQuery);if(i.hasClass("collapse")){if(!i.hasClass("collapsed")&&r&&r.val().length){n.type==="mousedown"&&application.search.execSearch(u,r,t.searchButton);return}i.toggleClass("collapsed");i.find(".btn").toggleClass("active");n.stopPropagation();i.hasClass("collapsed")?changeAriaLabels(!0,$(this)):(setTimeout(function(){r.trigger("focus")},50),changeAriaLabels(!1,$(this)))}else n.type==="mousedown"&&application.search.execSearch(u,r,t.searchButton)});$("body").on("click",".site-search.collapse input.search-query",function(n){n.stopPropagation();n.preventDefault()});$("body").on("click",t.searchButton,function(n){n.stopPropagation();n.preventDefault()});if($(".site-search[data-collapse='true']").length>0)$("body").on("click",function(){$(".site-search[data-collapse='true']").addClass("collapsed");changeAriaLabels(!0,$(this).find(t.searchButton))});$(".site-search.collapse input.search-query").on("input",function(){changeAriaLabels(!1,$(this).next(t.searchButton))});changeAriaLabels=function(i,r){r.attr("aria-label",i?n.collapsedButtonHelpText:r.prev(t.inputSearchQuery).val()?n.notCollapsedTextEnteredButtonHelpText:n.notCollapsedButtonHelpText)}},execSearch:function(n,t,i){function u(n){const i=new URLSearchParams(window.location.search),t=Object.fromEntries(i.entries());t[n]&&(r+="&"+n+"="+t[n])}var f=t.val(),r;f&&(r=n+"?query="+encodeURIComponent(f),u("exactMatch"),u("sortBy"),u("template"),!i||t.next(i).addClass("loader"),window.addEventListener("pageshow",function(n){var r=n.persisted||typeof performance!="undefined"&&window.performance.navigation.type===2;r&&t.next(i).removeClass("loader")}),window.location.href=r)}}}();application.googleSiteSearch={init:function(n){$("input.gsc-input").waitUntilExists(function(){setInputFieldDefault("input.gsc-input",n)})}};application.fancyboxmedia={init:function(n){$(function(){n.element.find(".fancybox-media").fancybox({openEffect:"true",closeEffect:"none",width:960,height:540,autoSize:!1,padding:0,aspectRatio:!0,type:"iframe",scrolling:"no",arrows:!1,helpers:{media:{}},beforeLoad:function(){typeof boxType!="undefined"&&(this.type=boxType)},afterShow:function(){var i=n.element.find(".fancybox-inner").find("a, button, :input, [tabindex], iframe"),t;i.length>0&&(t=i[0],t.nodeName==="IFRAME"?setTimeout(function(){t.contentWindow.trigger("focus")},100):t.trigger("focus"))}});n.element.on("keydown",".fancybox-overlay",function(n){n.key==="Tab"&&(n.preventDefault(),n.stopPropagation())})})}};$(function(){$(".fancybox-media").fancybox({openEffect:"true",closeEffect:"none",width:960,height:540,autoSize:!1,padding:0,aspectRatio:!0,scrolling:"no",type:"iframe",arrows:!1,helpers:{media:{}}})});application.archivefilter={init:function(){$(".search-filter .selectAll").on("focus",function(){$(this).trigger("select").on("mouseup",function(n){n.preventDefault();$(this).unbind("mouseup")})});var n=$(".search-filter .selectAll");n.bind("keypress",function(n){if(n.keyCode==13){n.preventDefault();var t=$(".search-filter .btn-primary");t.trigger("click")}})}};application.linkdropdownlist={init:function(){$(".link-list.drop-down select").off("change");$(".link-list.drop-down select").on("change",function(){var t=$(this).find(":selected"),n=t.attr("data-href");n!==undefined&&n!==""&&(t.attr("data-target")==="_blank"?window.open(n,"_blank"):location.href=n)})}};$(function(){function n(){$(".parallax-scroll").each(function(){var n=$(this),f=n.css("background-image"),r=/url\("?'?([^)'"]*)'?"?\)/g.exec(f),u,i;r!=null&&(u=r[1],i=new Image,i.src=u,i.onload=function(){var r=i.height/i.width,u,f,e;n.attr("data-aspect",r);n.find("*").length>0?(f=n.width()*r,u=f-n.outerHeight()):(f=n.width()*r,u=.5*f,e=n.outerWidth()*r,n.css("height",e-u+"px"));n.attr("data-inertia",u);n.css("background-position","center top");t(n)})})}function t(n){var o=$(window).scrollTop(),t=$(window).height(),i=window.pageYOffset+n.getBoundingClientRect().top-o,r=i+n.height(),u,f,e;u=r<0?100:i>=t?0:100-r*100/(t+n.height());f=parseInt(n.attr("data-inertia"));e=-(u/100*f);n.css("background-position","center "+e+"px")}$(window).on("scroll",function(){$(".parallax-scroll").each(function(){t($(this))})});$(window).on("resize",function(){n()});n()});$(function(){var i=$(".one-page-nav-section"),n,r,t;if(i.length>=2){n=$('<ul class="one-page-nav"><\/ul>');i.each(function(){var t=$(this);n.append($('<li><a href="#'+t.attr("id")+'"><span>'+t.attr("data-menutitle")+"<\/span><\/a><\/li>"))});$("body").append(n);n.css("position","fixed");r=($(window).height()-n.outerHeight())/2;n.css("top",r+"px");n.find("a").on("click",function(n){if(n.preventDefault(),location.pathname.replace(/^\//,"")==this.pathname.replace(/^\//,"")&&location.hostname==this.hostname){var t=$(this.hash);if(t=t.length?t:$("[id="+this.hash.slice(1)+"]"),t.length){$("html,body").animate({scrollTop:window.pageXOffset+t.getBoundingClientRect().top},1e3);return}}});t=[];$("ul.one-page-nav li a").each(function(){t.push($(this).attr("href"))});$(window).on("scroll",function(){for(var f,i=$(window).scrollTop(),e=$(window).height(),o=$(document).height(),r=0;r<t.length;r++){var n=t[r],u=window.pageYOffset+$(n).getBoundingClientRect().top,s=$(n).height();i>=u&&i<u+s?$("a[href='"+n+"']").closest("li").addClass("active"):$("a[href='"+n+"']").closest("li").removeClass("active")}i+e==o&&($("ul.one-page-nav li:last-child").hasClass("active")||(f=$("ul.one-page-nav .active a").attr("href"),$("a[href='"+f+"']").closest("li").removeClass("active"),$("ul.one-page-nav li:last-child").addClass("active")))})}}),function(){application.breadcrumb={mode:undefined,init:function(n){n.generator&&callMethodAsync(n.generator,"Get",function(n){$(".breadcrumb").html(n.value)})}}}();application.rsssubscription={init:function(n){var i=n.element,t=i.find("a.btn");t.on("click",function(){var n="";i.find("select").each(function(){var t=$(this);t.val()&&(n&&(n+=","),n+=t.val())});n&&t.attr("href",t.attr("href")+"&c="+n)})}},function(){function e(){for(var u,n,f=$(window),e=f.scrollTop(),r=[],t=0;t<i.length;t++)n=i[t],u=window.pageYOffset+n.h.getBoundingClientRect().top-1,u<=e&&(n.index>=r.length?r.push(n):r[n.index]=n,r.length=n.index+1);for(t=0;t<i.length;t++)n=i[t],r[n.index]==n?n.li.addClass("expanded"):n.li.removeClass("expanded")}function s(n){var t=n.getAttribute("id");return t||(t="heading"+r,n.setAttribute("id",t),r++),'<li><a href="#'+t+'">'+n.textContent+"<\/a><\/li>"}function u(){var n=$(".content-navigation"),t=$(n).outerWidth();$(n).css("width",t)}var r=1,t="",n,i=[],f=".plh-right h1, .plh-right h2, .plh-right h3, .plh-right h4, .plh-right h5, .plh-right h6, .exclude-from-nav h1, .exclude-from-nav h2, .exclude-from-nav h3, .exclude-from-nav h4, .exclude-from-nav h5, .exclude-from-nav h6, .section-header > h2, .section-header > h3, .flowchart h2, .hide-in-desktop h1, .hide-in-desktop h2, .hide-in-desktop h3, .hide-in-desktop h4, .hide-in-desktop h5, .hide-in-desktop h6",o=new Throttler(100,e);application.contentNavigation={init:function(r){var h=r.config.options.startLevel,c=r.config.options.endLevel,u,e;for(n=r.element,u={},u[-1]={li:n},t="",e=h;e<=c;e++)t&&(t+=","),t+=".sectionB h"+e;$(t).not(f).each(function(){var f=$(this)[0],o=parseInt(f.nodeName.substring(1)),e=$(s(f)),t=o-h,n=u[t-1],r;for(n&&(n.ul||(n.ul=$("<ul>"),n.li.append(n.ul)),u[t]={li:e},n.ul.append(e),i.push({li:e,h:f,index:t})),r=t+1;r<=c-h;r++)u[r]=undefined});$("body").on("click",".content-navigation a.toggle",function(n){$(this).closest("li").toggleClass("expanded");n.preventDefault()});n.on("click","a.link",function(){var n=$($(this).attr("href"));n.length===1&&n.is(".multi-section *")&&application.multisection&&application.multisection.showSectionContainingElement(n)});$(window).on("scroll",function(){var r;o.trigger();var u=n.height(),i=document.querySelector("footer").offsetTop-u-20,t=$(window).scrollTop(),f=window.pageYOffset+document.querySelector(".content-navigation").closest(".row").getBoundingClientRect().top;t>f?(n.addClass("fixed"),n.css("top",0)):n.removeClass("fixed");i<t?(n.addClass("under-footer"),r=i-t,n.css("top",r)):n.removeClass("under-footer")})}};$(window).on("resize",function(){u()});$(function(){u()})}(),function(){function n(n){callMethodAsync(n.config.options.generator,"GetPage",function(i){n.element&&i.value.menu&&(n.element.append(i.value.menu),t(n))},n.config)}function t(n){n.element.show();var t=$(n.element).find(".dropdown > .dropdown-toggle"),i=$(window);$(t).on("click",function(n){n.preventDefault();n.stopPropagation();var i=$(this).find("+ ul");$(this).hasClass("active")?($(this).removeClass("active"),$(i).removeClass("dropped")):($(t).find("+ ul").removeClass("dropped"),$(t).removeClass("active"),$(this).addClass("active"),$(i).addClass("dropped"))});i.on("click.Bst",function(){$(t).hasClass("active")&&($(t).find("+ ul").removeClass("dropped"),$(t).removeClass("active"))})}application.subMenu={};application.subMenu.init=function(t){n(t)}}();itemListInit();window.onpageshow=function(n){n.persisted&&itemListInit()};document.addEventListener("DOMContentLoaded",function(){cookie()}),function(){function n(){$('[class*="split-box"]').each(function(){var n=$(this).find("video"),t=$(this).find(".text"),i=$(t).height();$(n).css("height",i)})}function t(){$(window).width()<767?$('.hero[style*="background-image"]').each(function(){if($(this).find(".background-mobile").length===0){var n=$(this).attr("style");let t=document.createElement("div");t.classList.add("background-mobile");t.setAttribute("style",n);$(this).prepend(t)}}):$('.hero[style*="background-image"]').each(function(){$(this).find(".background-mobile").remove()})}function r(){$(".hero.popup-video").each(function(){var n=$(this).find(".link-wrapper");n.length&&$(n).addClass("fancybox-media")});$(function(){$(".fancybox-media").fancybox({openEffect:"true",closeEffect:"none",width:1024,height:576,autoSize:!1,padding:0,aspectRatio:!0,scrolling:"no",type:"iframe",arrows:!1,helpers:{media:{}}})})}function u(){$(".hero").each(function(){function i(){n.get(0).paused?$(n).get(0).play():$(n).get(0).pause()}var t=$(this).find(".play-pause"),n=$(this).find("video");if(t.length&&n.length)$(t).on("click",function(n){n.preventDefault();$(this).toggleClass("paused");i()})})}function f(){$('.hero[style*="background-image"]').each(function(){var n=$(this).find(".text").length;n==0&&$(this).addClass("empty")});$(".hero").each(function(){var n=$(this).find("video").length;n==1&&$(this).addClass("bg-video")})}function e(){$(".hero video[data-src]").each(function(){$(window).width()>=767&&$(this).attr("src",$(this).attr("data-src"))})}function i(){$(window).width()>767?($(".hero.text-in-box-overlapping").each(function(){var n=$(this).find(".text > .wrap"),t=$(n).outerHeight();$(n).css("top",t/2);$(this).hasClass("align-text-center")&&$(this).css("margin-bottom",t/2)}),$('div:not([class*="span"]) > .hero.text-in-box-overlapping').each(function(){var t=$(this).find(".text > .wrap"),n=$(t).outerHeight();$(t).css("top",n/2);$(this).hasClass("align-text-left")&&$(this).css("margin-bottom",n/2);$(this).hasClass("align-text-right")&&$(this).css("margin-bottom",n/2)})):$(".hero.text-in-box-overlapping").each(function(){this.style.removeProperty("margin-bottom")})}$(window).on("resize",function(){n();i();t()});$(function(){e();n();t();f();i();u();r()})}();application=window.application||{};application.externalCookiesWarning={init:function(n){var t=n.element;t.on("mouseover",function(){var n=$(this).find(".external-cookies-warning"),i;if(n&&(n.hasClass("accepted")||n.removeAttr("style"),i=$(this).find(".external-cookies-ok"),i))i.on("click",function(i){n.addClass("accepted");n.attr("style","display:none;");i.preventDefault();t.trigger("videoCookiesAccepted")})})}},function(){function n(){var w=$("body"),nt=$("body:not(.stick) .table-of-contents > div").outerHeight(!0),b=$(".prelude > .cnt"),k=$(".chapter"),i=$(".chapter-navigation"),tt=$(window).scrollTop(),r,n,u,f,d,c,l,a,v,t,y,p;if(i){for(n=0;n<k.length;n++)u=k[n],f=$(u)[0].getBoundingClientRect(),f&&(d=f.top+window.scrollY,d-tt<100&&(r=u));if(r){$(b).css("padding-bottom",nt);w.addClass("stick");var e,o,s,it=$(r).children(".introduction"),g=$(it).children(".cnt"),h=g.children(".number-title");h&&(c=$(h).children("span")[0],c&&(e=$(c).text()),l=$(h).children("h1")[0],l&&(o=$(l).text()));a=g.children(".headline")[0];a&&(s=$(a).text());v=$(i).children(".number")[0];v&&e&&(v.innerText=e);t=$(i).children(".title")[0];t&&(y=$(t).children(".sticky-pre-headline")[0],y&&o&&(y.innerText=o),p=$(t).children(".sticky-headline")[0],p&&s&&(p.innerText=s))}else w.removeClass("stick"),$(b).css("padding-bottom",0)}}function t(){var r=$("body"),i=$(".chapter-navigation"),f=$(".chapter-navigation .dropdown-toggle"),t=$(".table-of-contents")[0],u=$(i).children(".dropdown-toggle")[0];if(u&&t){$(u).on("click",function(){$(r).toggleClass("expanded");$(t).toggleClass("nav")});$(t).on("click",function(){$(t).hasClass("nav")&&$(t).removeClass("nav")})}n();$(window).on("scroll",function(){n()});$(document).on("mouseup",function(n){var u=$(".tableOfContents"),f=$(i).children(".dropdown-toggle")[0];u.is(n.target)||$(f).is(n.target)||u.has(n.target).length!==0||(r.removeClass("expanded"),$(t).removeClass("nav"))});$(f).on("click",function(){$(i).toggleClass("dropped")})}$(function(){t()})}();$(document).on("click","a[type='footnote']",function(n){n.preventDefault();var r=$(this).attr("href").replace("#",""),t=$(".footnotes"),i=$(t).find("li");$(t).addClass("visible");$(i).each(function(){var n=$(this).attr("id");r===n&&$(this).addClass("active")});$(document).on("mouseup",function(){$(t).removeClass("visible");$(i).removeClass("active")});$(".footnotes").animate({scrollTop:$(".active").position().top+50},250,function(){return!1})});$(document).on("click",".footnotes li",function(){var n=$(this).attr("id");$("html, body").each(function(){var t=$("body a.footnote");t.each(function(){var t=$(this).attr("href").replace("#","");t===n&&$(this).addClass("active")});$(document).on("mouseup",function(){$(t).removeClass("active")})});document.querySelector(".footnote.active")&&document.querySelector(".footnote.active").scrollIntoView({behavior:"smooth",block:"center"})});$(function(){footnoteTogglerMobile()});application=window.application||{};application.download={init:function(n){function u(n,i){var u;u=i?t+"?id="+i:t+"?file="+r+"/"+n;u+="&type=module";window.open(u)}var i=n.element,t=n.config.options.handlerPath,r=n.config.options.guid;i.find(".item").on("click",function(){u($(this).data("url"),$(this).data("id"))})}};$(function(){function s(){f=document.getElementById(n.modal);e=document.getElementById(n.container);o=document.getElementById(n.span);t=document.getElementById(n.frame);o.onclick=function(){c()};window.onclick=function(n){n.target===f&&c()}}function l(){let n=document.createElement("div");n.id="popup-window";n.setAttribute("role","dialog");n.className="iframe-modal";let t=document.createElement("div");t.className="iframe-modal-content";let u=document.createElement("span");u.id="close-frame";let i=document.createElement("div");i.id="iframe-container";let r=document.createElement("iframe");r.id="popup-frame";r.name="popupFrame";i.appendChild(r);t.appendChild(u);t.appendChild(i);n.appendChild(t);document.body.appendChild(n);s()}function h(n,e){l();s();let o=n,h=o.indexOf("#");i=h!==-1?o.substring(h+1):"";f.style.display="block";r=!0;u.style.overflow="hidden";e&&t.setAttribute("title",e);t.setAttribute("src",o)}function a(){if(r){let r=t.contents();r.find("body").addClass("popup-view");r.find(n.header).remove();r.find(n.footer).remove();r.find(n.tools).remove();r.find(n.head).append('<base target="_parent">');e.style.display="block";i&&i!==""&&v()}}function c(){let n=document.getElementById("popup-window");n&&document.body.removeChild(n);u.removeAttribute("style");r&&(e.style.display="none",r=!1);u.classList.remove("popup-view")}function v(){let n=t.contents().find("[name='"+i+"']")[0];n&&n.scrollIntoView();i=""}let n={modal:"popup-window",span:"close-frame",frame:"popup-frame",header:"header",head:"head",footer:"footer",container:"iframe-container",tools:".tool-section"},r=!1,u=document.getElementById("body"),f=null,e=null,o=null,t=null,i="";$("a[target='popupFrame']").on("click",function(n){n.preventDefault();n.stopPropagation();let t=$(this).attr("href"),i=$(this).attr("data-popupframetitle");h(t,i)});document.addEventListener("dispatchPopupFrame",function(n){h(n.detail)});$("#"+n.frame).on("load",function(){try{a()}catch(t){let i=$("#"+n.frame)[0];window.location=i.src}})});application=window.application||{};application.createNewPage={init:function(n){function y(){t.find(i.parts.input).css("display","none");t.find(i.parts.output).css("display","");u="uploading files (if any) ";v||p();it(f,function(){var n=l(f);if(n.pendingFiles>0){b(f,!0);return}u="files uploaded (if any) ";callMethodAsync("GoBasic.Web.WebServices.CreateNewPageService, GoBasic.Web","Create",function(n){n.success&&n.value.success?(u="page created successfully ",n.value.value.isPublished&&setInterval(function(){w(n.value.value)},1e3)):(t.find(i.parts.input).css("display",""),t.find(i.parts.output).css("display","none"),alert(n.value.errorMessage))},k())})}function p(){var r=t.find(i.loaders.loader),n;r&&(r.css("display",""),n=1,setInterval(function(){n++;n>20&&(n=2);r.text(u+Array(n).join("."))},200))}function w(n){e||(u="checking if page is online ",e=!0,callMethodAsync("GoBasic.Web.WebServices.CreateNewPageService, GoBasic.Web","IsOnline",function(t){e=!1;t.success&&t.value.success&&(u="page is online - redirecting ",window.location.href=n.url)},n))}function b(n,i){i?t.find("button").removeClass("disabled"):t.find("button").addClass("disabled")}function k(){var n={};return n.headline=s(i.inputs.headline),n.intro=s(i.inputs.intro),n.body=s(i.inputs.body),n.tags=d(),n.reference=a,n.anyFilesUploaded=o.length>0,n.uploadedFilesGuid=h,n.uploadedFileNames=o,n.uploadedImage=c,n}function s(n){var i=t.find(n);return i?t.find(n).val():""}function d(){var n=[];return t.find("input[name="+i.inputs.categoryType+"]:checked").each(function(){n.push($(this).val())}),n}function g(n,t,i){var r=i.closest(".upload"),e,u,f;r.length===0&&(r=i.closest(".form-group").find(".upload").first(),i.closest(".uploaded").remove());e=i.val().split("\\").pop();u=r.closest(".form-group").find("ul.upload-list");u.length==0&&(u=$('<ul class="upload-list"><\/ul>'),r.before(u));f=$("<li class='uploaded' style='display:none'><span>"+e+"<\/span><a href='#' class='remove glyphicons'><\/a><\/li>");u.append(f);f.append(i);f.show("slow");i.closest(".form-group").attr("data-multiple")=="true"?r.prepend('<input type="file" class="form-control">'):r.hide()}function nt(n,t,i){t.preventDefault();var r=i.closest("div.upload").find("input[type=file]").first();return r.trigger("click"),!1}function tt(n,t,i){var f;t.preventDefault();var e=i.closest(".form-group"),r=i.closest(".uploaded"),u=r.parent();return e.attr("data-multiple")=="true"?r.hide("slow",function(){r.remove();u.find("> li").length==0&&u.remove()}):(r.remove(),f=e.find("> .upload"),f.prepend('<input type="file" class="form-control">'),f.show(),u.find("> li").length==0&&u.remove()),!1}function it(n,t){var f=l(n),o,s,e,i,r,u,h;if(f.pendingFiles===0){t();return}for(o=[],s=0,e=0;e<f.groups.length;e++)for(i=f.groups[e],r=0;r<i.pendingFiles.length;r++)u=$(i.pendingFiles[r]),h="_"+i.$elem.attr("data-fileid")+"_upload"+s,u.attr("id",h),u.attr("name",h),u.attr("data-fileid",i.$elem.attr("data-fileid")),u.attr("data-key",i.$elem.attr("data-key")),o.push(i.pendingFiles[r]),s++;rt(n,f,o,t)}function rt(n,t,i,r){for(var s,f,u=0;u<i.length;u++){var h=$(i[u]).attr("data-fileid"),a=$(i[u]).attr("data-key"),v=$(i[u]).attr("id"),e=i[u].files[0],l=h+"/"+e.name;a==="image"?c=l:o.push(e.name);s=new FormData;s.append(l,e);f=new XMLHttpRequest;f.open("POST","~/fileUpload.ashx?fid="+h+"&eid="+v+"&dir=download",!0);f.onload=function(n){var i=JSON.parse(n.target.response);ut(i);t.pendingFiles--;t.pendingFiles===0&&r()};f.send(s)}}function ut(n){var r=$("#"+n.id),u,f,e;n.success?(u=n.fid+"/"+n.filename,f=$('<input type="hidden" value="'+u+'">'),r.before(f),r.remove()):(t.find(i.parts.input).css("display",""),t.find(i.parts.output).css("display","none"),e=$('<span class="text-error">'+n.error+"<\/span>"),r.after(e))}function l(n){var t={groups:[],pendingFiles:0};return n.form.find(".form-group[data-type=FileUpload]").each(function(){var n=$(this),i={key:n.attr("data-key"),pendingFiles:[],uploadedFiles:[],isMandatory:!1,fileid:n.data("fileid"),$elem:n,fileCount:0};h=n.data("fileid");t.groups.push(i);n.find("input[type='file']").each(function(){var r=$(this),n=r.val(),u=n!==undefined&&n!=="";u&&(i.pendingFiles.push(this),t.pendingFiles++)});n.find("input[type='hidden']").each(function(){i.uploadedFiles.push(this);i.fileCount++})}),t}var t=n.element,e=!1,u="",a=n.config.options.moduleReference,r=n.config.options.clientId,v=n.config.options.doNotShowProgressUpdates;tinymce.init({selector:"textarea.wysiwyg",menubar:!1,convert_urls:!1,plugins:["lists link anchor","fullscreen","table","paste"],paste_as_text:!0,toolbar:"styleselect | bold italic removeformat | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link ",setup:function(n){n.on("blur",function(){var n=tinyMCE.activeEditor.getContent(),t=tinyMCE.activeEditor.getElement();$(t).val(n)});n.on("init",function(){t.find("button").each(function(){$(this).attr("role","button")});$("body").removeAttr("aria-hidden");$("body").removeAttr("id")})}});var h="",o=[],c="",i={buttons:{save:`#createNewPageBtn_${r}`,spanUpload:"span.upload"},inputs:{intro:`#intro_${r}`,headline:`#headline_${r}`,body:`#wysiwyg-body_${r}`,categorizationCheckbox:".categorization-checkbox",categoryType:"category-type",upload:".upload",removeButton:"a.remove",fileInput:"input[type=file]"},parts:{input:`#input-frame_${r}`,output:`#output-frame_${r}`},loaders:{loader:`#createNewPageLoader_${r}`}},f={form:t};t.on("click",i.buttons.spanUpload,function(n){nt(f,n,$(this))});t.find(i.buttons.save).on("click",y);t.on("change",i.inputs.fileInput,function(n){g(f,n,$(this))});t.on("click",i.inputs.removeButton,function(n){n.preventDefault();n.stopPropagation();tt(f,n,$(this))})}};application=window.application||{};application.contactSearch={init:function(n){function u(n){return function(t,i){var u=r(t,n),f=r(i,n);return isNan(parseFloat(u))&&isNan(parseFloat(f))?u-f:u.toString().localeCompare(f)}}function r(n,t){return $(n).children("td").eq(t).text()}var t=n.element,i;t.find(".btn").on("click",function(){var i=t.find("input.name").val(),r=t.find("select.department").val(),u=t.find("select.title").val(),n={};i&&(n.searchText=i);r&&(n.departmentId=r);u&&(n.title=u);location.search=$.param(n)});t.find(".name").on("keydown",function(n){n.keyCode===13&&(n.preventDefault(),n.stopPropagation(),t.find(".btn").trigger("click"))});i=t.find(".results");$(i.find("th")).on("click",function(){var i=$(this).parents("table").eq(0),n=i.find("tr:gt(0)").toArray().sort(u($(this).index())),t;for(this.asc=!this.asc,this.asc||(n=n.reverse()),t=0;t<n.length;t++)i.append(n[t])})}};application.revealmodule=function(n){var t={};return t.init=function(t){n(window).on("load",function(){var u=t.element,n=u.find(".image-a"),f=u.find(".image-b"),e=n.find("img"),i,r,s,c;let o=f.find("img");i=n.width();r=e.attr("src");r||(r=e.attr("data-src"));n.css({"background-image":"url("+r+")","background-size":i+"px "});e.remove();u.find("img").width(i+"px");s=function(){n[0].width<50?n[0].style.width="1px":i-n[0].width<50&&(n[0].style.width=i+"px")};n[0].addEventListener("mousedown",function(){function t(t){var f=u+t.clientX-r;f>0&&f<=i&&(n[0].style.width=f+"px",s())}function f(){document.removeEventListener("mousemove",t)}var r=event.clientX,u=parseInt(document.defaultView.getComputedStyle(n[0]).width,10);document.addEventListener("mousemove",t);document.addEventListener("mouseup",f)});let h=document.createElement("div");if(h.classList.add("ui-resizable-handle"),n.append(h),n.find(".ui-resizable-handle").html('<div class="handlebar"><\/div>'),o[0]){let t=f.height();n.css("height",t+"px");let i=n.find(".handlebar");i.css("top",(t-i.height())/2+"px")}o[0].onload=function(){let t=f.height();n.css("height",t+"px");let i=n.find(".handlebar");i.css("top",(t-i.height())/2+"px")};c=Math.ceil(i*.5);n.css("width",c+"px")})},t}(jQuery);application=window.application||{};application.mp3Player={init:function(n){audiojs.events.ready(function(){var t=n.element.find("audio"),i=audiojs.create(t)})}};application=window.application||{};application.poll={init:function(n){function h(){i.find(t.inputRadio+":checked").prop("checked",!1)}function u(n){i.find(n).css(t.display,"none");i.find(n).animate({opacity:0})}function r(n){i.find(n).css(t.display,"");i.find(n).animate({opacity:1})}function c(){var n=i.find("input:checked").val();o=n;v();callMethodAsync("GoBasic.Web.WebServices.PollService, GoBasic.Web","RegisterPollAnswer",function(n){n&&a(n);s()},e,n)}function l(){var n=localStorage.getItem(f);y();o={};callMethodAsync("GoBasic.Web.WebServices.PollService, GoBasic.Web","CancelPollAnswer",function(){},e,n)}function a(n){$.each(n.value.stats,function(n,t){var u=i.find('*[data-stat="'+t.answerId+'"]'),r;u.text(t.percentage+"% ("+t.count+" stemmer)");r=i.find('*[data-value="'+t.answerId+'"]');r.css("width",t.percentage+"%")})}function v(){localStorage.setItem(f,o)}function y(){localStorage.setItem(f,null)}function s(){u(t.answers);r(t.results);r(t.resultMessage);r(t.cancelButton)}function p(){r(t.answers)}var w=n.config.options.ClientId,e=n.config.options.UniqueId,t={submitButton:"#submitButton",cancelButton:"#cancelButton",answer:".answers .answers-fieldset .answer",radioName:"answer",inputRadio:"input:radio[name='answer']",results:".results",answers:".answers",inactive:"inactive",display:"display",storageName:"SelectedPollValue",resultMessage:".result-message"},i=n.element,o={},f=e+t.storageName;localStorage.getItem(f)&&localStorage.getItem(f)!=="null"?s():p();i.find(t.submitButton).on("click",function(){c();u(t.submitButton)});i.find(t.cancelButton).on("click",function(){r(t.answers);u(t.results);u(t.resultMessage);u(t.cancelButton);u(t.submitButton);h();l()});i.find(t.answer).on("click",function(n){n.stopPropagation();$(this).find(t.inputRadio).trigger("click");r(t.submitButton)});i.find(t.inputRadio).on("click",function(n){r(t.submitButton);n.stopPropagation()})}};application=window.application||{};application.quiz={init:function(n){function u(n){i.find(n).css("display","none");i.find(n).animate({opacity:0})}function e(n){i.find(n).css("display","");i.find(n).animate({opacity:1})}function p(){var o,n,c,l,h;if(f===r.length){g();return}if(it(),w(!1),u(t.tabs.explanation),e(t.tabs.question),s=!0,o=r[f],n=i.find(t.tabs.question),o.data.headline?n.find(t.question.headline).text(o.data.headline):n.find(t.question.headline).text(""),o.data.description?n.find(t.question.description).text(o.data.description):n.find(t.question.description).text(""),o.data.image){const i=n.find(t.question.imageContainer);if(!i.length>0){const i=n.find(t.question.header);i.after(` <div class="quiz-media"> <div class="media"> <img data-decorative="true" alt="" class="question-image"> </div> </div> `)}n.find(t.question.image).attr("src",o.data.image.url);o.data.image.alt?n.find(t.question.image).attr("alt",o.data.image.alt):n.find(t.question.image).removeAttr("alt");n.find(t.question.image).attr("data-decorative",o.data.image.decorativeImage=="true"||o.data.image.decorativeImage==!0)}else{const i=n.find(t.question.imageContainer);i.length>0&&i.remove()}c=n.find(t.answer.container);l=n.find(t.answer.containerLegend);l.nextAll().remove();o.data.answers.forEach(function(n){var t=k.replace("[text]",n.data.answer);c.append(t)});h="[name="+t.answer.answerName+"]";$(h).each(function(){$(this).on("click",function(n){n.stopPropagation();w(!0)})});$(t.answer.singleAnswer).each(function(){$(this).on("click",function(){$(this).find(h).trigger("click")})});f++}function w(n){n?i.find(t.buttons.continue).removeClass("inactive"):i.find(t.buttons.continue).addClass("inactive")}function g(){v||(v=!0,callMethodAsync("GoBasic.Web.WebServices.QuizService, GoBasic.Web","GetResults",function(n){for(var l,s=i.find(t.tabs.results),a=s.find(t.results.overview),h=0,f=0;f<n.value.length;f++){var v=r[f].data.answers[o[f]].data.answer,y=r[f].data.answers[n.value[f].index].data.answer,c="false";n.value[f].index===o[f]&&(c="true",h++);l=d.replace("[question-header]",r[f].data.headline).replace("[correct-answer]",y).replace("[your-answer]",v).replace("[question-description]",r[f].data.description?r[f].data.description:"").replace("[truefalse]",c);a.append(l)}s.find(t.results.correct).text(h);s.find(t.results.questions).text(r.length);nt(h,r.length,s);u(t.tabs.question);u(t.tabs.explanation);e(t.tabs.results)},h,o,b))}function nt(n,i,r){var u=r.find(t.results.footerCounterRow).text().replace(t.results.footerCounter," "+n+"/"+i+" ");r.find(t.results.footerCounterRow).text(u)}function tt(){callMethodAsync("GoBasic.Web.WebServices.QuizService, GoBasic.Web","GetResult",function(n){var o=i.find(t.tabs.explanation),h=o.find(t.explanation.questionaExplanation);h.html("");h.append(n.value.explanation);l()===n.value.index?(u(t.explanation.false),e(t.explanation.true)):(u(t.explanation.true),e(t.explanation.false));o.find(t.explanation.correctAnswerSpan).text(r[f-1].data.answers[n.value.index].data.answer);u(t.tabs.question);e(t.tabs.explanation);s=!1},h,f-1)}function l(){var n=i.find("input:radio[name='answer']");return n.index(n.filter(":checked"))}function it(){i.find(t.question.counter).text(f+1+"/"+r.length)}function rt(n){n.preventDefault();var r=i.find(t.results.emailInput).val(),u=document.getElementById(t.results.overviewId);if(!r){alert("Fill the email address");return}callMethodAsync("GoBasic.Web.WebServices.QuizService, GoBasic.Web","SendResultsMail",function(){},r,u.innerHTML,h)}function ut(n){n.preventDefault();var f=document.getElementById(t.results.overviewId),i=window.open("","Results","Results");const r=i.document,u=r.createElement("div");u.innerHTML=f.innerHTML;r.body.appendChild(u);i.document.close();i.trigger("focus");i.print();i.close()}var i=n.element,r=JSON.parse(n.config.options.questions),h=n.config.options.reference,a=n.config.options.showAnswerAfterEveryQuestion,b=n.config.options.pageId,o=[],v=!1,s=!1,f=0,c=0,t={tabs:{intro:".launch",question:".question",explanation:".explanation",results:".results",emailModal:".email-modal"},buttons:{reload:".button-reload","continue":".button-continue",begin:".button-begin",print:".button-print",email:".button-email",sendEmail:".button-send-email"},question:{headline:".question-text",description:".question-description",counter:".counter",image:".question-image",imageContainer:".quiz-media",header:".quiz-header"},answer:{text:".answer-text",container:".answers-fieldset",containerLegend:".answers-fieldset legend",singleAnswer:".answer",answerName:"answer"},explanation:{correctAnswer:".correct-answer",correctAnswerSpan:".correct-answer-span",wrongAnswer:".wrong-answer","true":".true","false":".false",questionaExplanation:".question-explanation"},results:{overview:".results-overview",overviewId:"overview",correct:".correct .number",questions:".questions .number",footerCounter:"[correct-answer-counter-footer]",footerCounterRow:"tfoot strong",emailModalId:"email-modal",emailInput:"#email-input"}},k='<div class="answer"><input type="radio" aria-label="answer" name="answer"><label class="answer-text">[text]<\/label><\/input><\/div>',d='<tr>\r\n <td><strong>[question-header]<\/strong> [question-description]<\/td>\r\n <td>[correct-answer]<\/td> \r\n <td class="[truefalse]">[your-answer]<\/td>\r\n <\/tr>',y;i.find(t.buttons.reload).on("click",function(){location.reload()});i.find(t.buttons.begin).on("click",function(){u(t.tabs.intro);e(t.tabs.question);p()});i.find(t.buttons.continue).on("click",function(){if(s){if(c=l(),c===-1)return;o.push(c)}a&&(s||!a)?tt(l()):p()});i.find(t.buttons.print).on("click",function(n){ut(n)});i.find(t.buttons.email).on("click",function(n){n.preventDefault();i.find(t.tabs.emailModal).show(500)});y=document.getElementById(t.results.emailModalId);window.onclick=function(n){n.target===y&&i.find(t.tabs.emailModal).hide(500)};i.find(t.buttons.sendEmail).on("click",function(n){rt(n);i.find(t.tabs.emailModal).hide(500)});i.find(t.results.emailInput).on("keypress",function(n){var r=n.which;r===13&&(event.preventDefault(),i.find(t.buttons.sendEmail).trigger("click"))})}};application=window.application||{};application.flowchart={init:function(n){function i(n){var u=n.attr("data-previousstepid"),i,r;u&&(i=t.find("#"+u),r=t.find(".step"),i&&r&&(r.removeClass("active"),r.addClass("hidden"),i.removeClass("hidden"),i.addClass("active")))}function r(n){var i=n.attr("data-nextstepid"),r=t.find(".step").attr("id");u(i,r)}function u(n,i){var r,f,u,o,e;n&&i&&(r=t.find("#"+n),f=t.find(".step"),r&&f&&(f.removeClass("active"),f.addClass("hidden"),r.removeClass("hidden"),r.addClass("active"),u=r.find("iframe"),u&&(o=u.attr("src"),o||(e=u.attr("data-src"),e&&u.attr("src",e)))))}var t=n.element;t.on("click","a.btn",function(){r($(this))});t.on("keypress",function(n){n.which==13&&r($(n.target))});t.on("click","a.previous",function(){i($(this))});t.on("keypress",function(n){n.which==13&&i($(n.target))});t.on("change",".form-control",function(){var n=$(this).find("option:selected"),i=n.attr("data-nextstepid"),r=t.find(".step").attr("id");u(i,r)})}};application=window.application||{};application.firstAgenda={init:function(n){function h(n,t,i){t.hasClass("expanded")?(n.slideUp(100),t.removeClass("expanded"),i.attr("aria-expanded","false"),n.find(".module").trigger("hidden")):(t.closest(".sections").find("> .expanded").each(function(){var n=$(this);n.removeClass("expanded");n.find(">.section-body").slideUp(100)}),n.slideDown(100),t.addClass("expanded"),i.attr("aria-expanded","true"),n.find(".module").trigger("shown"))}function u(){var t=n.element.find(".selected-filters");t.attr("aria-hidden",t.children().length===0)}function c(){var r="query",t=n.element.find(".filter .search input").val();n.element.find('.selected-filters li[data-id="'+r+'"]').remove();t&&n.element.find(".selected-filters").append('<li data-id="'+r+'"><span class="label">'+t+'<a class="remove"><\/span><\/li>');i("searchText",t);u()}function i(n,t){var i,r;history.pushState&&(i=new URLSearchParams(window.location.search),n!=="page"&&i.delete("page"),t?i.set(n,t):i.delete(n),r=window.location.protocol+"//"+window.location.host+window.location.pathname+"?"+i.toString(),window.history.pushState({path:r},"",r))}function l(){var f=t.find(".date-from").val(),o="dateFrom",r,e;n.element.find('.selected-filters li[data-id="'+o+'"]').remove();f&&(n.element.find(".selected-filters").append('<li data-id="'+o+'"><span class="label">'+f+'<a class="remove"><\/span><\/li>'),i("dateFrom",f));r=n.element.find(".date-to").val();e="dateTo";n.element.find('.selected-filters li[data-id="'+e+'"]').remove();r&&(n.element.find(".selected-filters").append('<li data-id="'+e+'"><span class="label">'+r+'<a class="remove"><\/span><\/li>'),i("dateTo",r));u()}function a(n,t,r){var u=n.element.find("a.append-items").attr("data-nextpage");s(n,u,function(u){var f,e;i("page",t);f=n.element.find(".append-items");u.value.nextPage?(f.attr("data-nextpage",u.value.nextPage),n.element.find(".append-items").show()):(f.attr("data-nextpage","1"),n.element.find(".append-items").hide());e=n.element.find(".items");e.append(u.value.page);r()})}function f(n){s(n,0,function(t){var r=n.element.find(".items"),i;t.value.page?r.html(t.value.page):r.html("");i=n.element.find(".append-items");t.value.nextPage?(i.attr("data-nextpage",t.value.nextPage),n.element.find(".append-items").show()):(i.attr("data-nextpage","1"),n.element.find(".append-items").hide())})}function s(n,t,i){var r=n.element.find("input.form-control").val(),u=n.element.find("select.committee").val(),f=n.element.find("input.date-from").val(),e=n.element.find("input.date-to").val();callMethodAsync(n.config.options.generator,"GetPage",function(n){i(n)},n.config,1,n.config.options.colspan,r,u,f,e,t)}var t=n.element,o,r,e;t.find(".section-body").hide();t.find(".section.text-block .section-body").show();t.find(".date-input input").each(function(){$(this).datepicker({dateFormat:"dd-mm-yyyy",timepicker:!1,todayButton:new Date,clearButton:!0,autoClose:!0,onSelect:function(){l();f(n)}})});o=$(t.find(".foldAll"));r=!0;o.on("click",function(n){n.preventDefault();n.stopPropagation();e.each(function(){var t=$(this).closest("div"),n=t.next(),i=t.closest(".section"),u=$(t.children()[0]);r?(n.slideDown(100),i.addClass("expanded"),u.attr("aria-expanded","true"),n.find(".module").trigger("shown")):(n.slideUp(100),i.removeClass("expanded"),u.attr("aria-expanded","false"),n.find(".module").trigger("hidden"))});r=!r});t.find("button.btn").on("click",function(){var i=t.find("input.form-control").val(),r=t.find("select.committee").val(),u=t.find("input.date-from").val(),f=t.find("input.date-to").val(),n={};i&&(n.searchText=i);r&&(n.selectedCommittee=r);u&&(n.dateFrom=u);f&&(n.dateTo=f);location.search=$.param(n)});t.find(".form-control").on("keydown",function(t){t.keyCode===13&&(t.preventDefault(),t.stopPropagation(),c(),f(n))});t.on("click",".item",function(n){n.stopPropagation();n.preventDefault();var i=$(this).find("a"),r=i.attr("target")==="_blank"||n.ctrlKey,t=$(this).attr("data-url");t||(t=i.attr("href"));t&&(r?window.open(t,"_blank"):window.location.href=t)});e=$(t.find(".section-header a")).not(t.find(".module a"));e.on("click",function(n){n.preventDefault();n.stopPropagation();var t=$(this).closest("div"),i=t.next(),r=t.closest(".section");h(i,r,$(this))});t.on("click",".agenda-document",function(t){t.preventDefault();var i=$(this).attr("data-document-id");i&&callMethodAsync(n.config.options.generator,"GetDocumentUrl",function(n){n.success&&n.value.documentUrl&&window.open(n.value.documentUrl,"_blank")},n.config,i)});t.on("click",".selected-filters a.remove",function(){var r=$(this).closest("li"),t=r.attr("data-id");t==="query"?(n.element.find(".filter .search input").val(""),i("searchText",null)):t==="dateFrom"?(n.element.find(".date-from").val(""),i("dateFrom",null)):t==="dateTo"?(n.element.find(".date-to").val(""),i("dateTo",null)):(n.element.find("select.committee").val(""),i("selectedCommittee",null));r.remove();f(n);u()});t.on("change",".committee",function(t){t.preventDefault();var r=n.element.find("select.committee").val(),e=n.element.find("select.committee").find(":selected").text();n.element.find(".selected-filters li.selCom").remove();r&&n.element.find(".selected-filters").append('<li class="selCom" data-id="'+r+'"><span class="label">'+e+'<a class="remove"><\/span><\/li>');i("selectedCommittee",r);f(n);u()});t.on("click",".append-items",function(t){var i,r;return t.preventDefault(),i=$(this).attr("data-nextpage"),i&&(r=$(this),r.addClass("loading"),a(n,i,function(){r.removeClass("loading");n.element[0].scrollIntoView({behavior:"smooth",block:"end",inline:"nearest"})})),!1});t.on("click",".back-button",function(){var n=document.location.href.replace(document.location.search,"");document.referrer&&document.referrer.startsWith(n)?window.history.back():window.location.href=n})}};application=window.application||{};application.masterCalculator={init:function(n){function u(){r.empty();r.nextAll(t.priceTotalBig).remove();var n=[];i.find(t.sectionNotHidden).find(t.checkBoxDivCheckbox).each(function(i,r){var p=$(r).closest(".section"),w=p.data("calculator"),k=$(r).data("quantity"),b=$(r).attr(e.individualPriceAttr),u=n.find(n=>n.name===w),v,o;u||(u={items:[],totalAmount:0,name:w,postfix:p.data("postfix")},n.push(u));var d=$(r).data("title"),h=$(r.closest(".option")),y=$(h).data("dependson"),g=h.find(".popup-info"),a=h.find(t.quantityInput).val();y&&(a=(c(y)||1)*(a||1));v=0;o=0;$(r).data("range-price")?o=l($(r).data("range-price"),a):(v=b?s(h):$(r).data("price"),o=k||y?Number(v)*Number(a):Number(v));u.totalAmount+=o;b||h.find(t.displayPrice).text(f(o)+u.postfix);u.items.push({title:d,totalPriceForItem:o,amount:a,details:g})});for(let t=0;t<n.length;t++)nt(n[t])}function s(n){return Number(n.find(t.individualPriceNumber).val().replace(/[^0-9]/g,""))}function c(n){var r=0;let u=n.split("|");for(let n=0;n<u.length;n++){let f=i.find(".option[data-itemid='"+u[n]+"']");f&&f.find(t.checkBoxDivCheckbox).length>0&&(r+=Number(f.find(t.quantityInput).val()))}return r}function l(n,t){var u=0,r=[],i,f;for($.each(n.split("|"),function(n,t){var i=t.split(",");r.push({price:i[0],limit:i[1]})}),i=0;i<r.length;i++){if(r[i].limit==0){u+=Number(r[i].price);continue}if(f=i===0?0:r[i-1].limit,Number(t)<=Number(f))return u;u+=a(t,f,r[i].limit,r[i].price)}return u}function a(n,t,i,r){return(Math.min(n,i)-t)*r}function v(n){var t=$(n).attr("name"),r;n.attr("data-quantity")&&!$(n).is(":checked")&&n.next("label").text("");y(n,t);r=i.find("div[name="+t+"],span[name="+t+"]");r.toggle()}function y(n,r){if(n.attr(e.individualPriceAttr)){n.parent().find(t.individualPriceNumber).toggle();const f=i.find("label[name="+r+"]");if(f){const u=f.find("span");u&&(u.text()?u.text(""):u.text(u.attr(e.individualPriceLabelAttr)))}}}function p(n){var i=n.parent().find(".popup-info");w(i);i.hasClass(t.activePopupInfo)?i.removeClass(t.activePopupInfo):i.addClass(t.activePopupInfo)}function w(n){n?i.find("div.popup-info.active").not(n).removeClass("active"):i.find("div.popup-info.active").removeClass("active")}function b(){var n=$("<div style='width: 21.0cm; font-size: 12px; font-family: 'Tahoma', sans-serif;'><\/div>"),r=$(t.logoImg);return r.length>0&&n.append(r.clone()),n.find("img").attr("style","width: 120px; margin-bottom: 45px; margin-top: 30px;"),n.append($(i.find(t.sideBar)[0]).clone()),n.find(".basket").attr("style","font-size: 12px; width: 100%; font-family: 'Tahoma', sans-serif;"),n.find("h1").attr("style","font-size: 24px; font-weight: normal; font-family: 'Tahoma', sans-serif;"),n.find("h2").attr("style","font-size: 19px; font-weight: normal; font-family: 'Tahoma', sans-serif; margin: 16px 0;"),n.find("h3").attr("style","font-size: 14px; font-weight: normal; font-family: 'Tahoma', sans-serif; border-bottom: 3px solid #ccc; display:inline-block;"),n.find("h4").attr("style","font-size: 12px; font-weight: normal; font-family: 'Tahoma', sans-serif;"),n.find("p").attr("style","font-size: 12px; font-family: 'Tahoma', sans-serif;"),n.find(".lead").attr("style","font-size: 14px;"),n.find("table").attr("style","width: 100%;"),n.find("td").attr("style","font-weight:normal; width:100%; display:block; box-sizing:border-box; clear:both; font-family: 'Tahoma', sans-serif;"),n.find(".table-name").attr("style","font-size: 19px;font-family: 'Tahoma', sans-serif; margin: 16px 0;width: 100%; display:block; box-sizing:border-box; clear:both;margin-bottom: 0;"),n.find(".table-price").attr("style","font-size: 12px;font-family: 'Tahoma', sans-serif;width: 100%; display:block; box-sizing:border-box; clear:both;margin-bottom: 0;"),n.find(".introduction > .heading").css("display","none"),n.find(".total").attr("style","border-top: 3px solid #ddd;padding-top: 8px;"),n.find(".total + .total").attr("style","border-bottom: 3px solid #ddd;border-top: 3px solid #ddd;padding-top: 8px;"),n.find(".total > .label").attr("style","font-size: 12px;font-family: 'Tahoma', sans-serif; width: 100%; display:block; box-sizing:border-box; clear:both;margin: 0;"),n.find(".total > .price").attr("style","font-size: 19px; font-weight: normal; margin: 0; display: block; padding-bottom: 8px;"),n.find("#display-details").attr("style","display:none;"),n.find(".basket > .heading").attr("style","display:none;"),n.find(".cta").attr("style","display:none;"),n.find(t.pdfDownloadBtn).remove(),n}function k(){var n=[];return i.find(t.sectionNotHidden).find(t.checkBoxDivCheckbox).each(function(i,r){let u={},f=$(r.closest(".option"));u.itemId=$(f).data("itemid");$(r).attr(e.individualPriceAttr)&&(u.individualPrice=s(f));u.amount=f.find(t.quantityInput).val()||1;n.push(u)}),n}function f(n){var t=Math.ceil(n).toFixed();return t.replace(new RegExp("\\d(?=(\\d{3})+$)","g"),"$&.")}function d(){i.find(t.displayPrice).each(function(n,t){if(!$(t).is(".individual-price-selected,.individual-price-not-selected")&&t.innerText&&!$(t).next("input").data("rangePrice")){var i=$(t).data("postfix"),r=f(Number(t.innerText));t.innerText=r+i}})}function g(n,r){o&&(o=!1,r.removeClass("loaded"),r.addClass("loading"),r.show(),callMethodAsync("GoBasic.Web.WebServices.CalculatorService, GoBasic.Web","SendMail",function(n){n.success?(i.find(t.emailSentDisplay).text(n.value.value),i.find(t.emailSentPopup).show()):alert(n.errorMessage);o=!0;r.removeClass("loading");r.addClass("loaded")},k(),h,n))}function nt(n){var u;for(r.append($("<tr><td class='table-heading'><h3>"+n.name+"<\/h3><\/td><\/tr>")),u=0;u<n.items.length;u++){var c=f(Number(n.items[u].totalPriceForItem))+n.postfix,e=n.items[u].amount>1?n.items[u].amount+"x ":"",o=e+n.items[u].title,s=$("<tr><td class='table-name'>"+o+"<\/td><td class='table-price'>"+c+"<\/td>"),h=n.items[u].details.clone();e&&h.find(".header h2").text(o);s.append($("<td class='table-details' style='display:none'><div class='master-details'>"+h.html()+"<\/div><\/td><\/tr>"));r.append(s)}$("<div class='total'><span class='label'>"+n.name+"<\/span><span id='total-price' class='price'>"+f(Number(n.totalAmount))+n.postfix+"<\/span><\/div>").insertBefore(i.find(t.emailContainer))}var i=n.element,h=n.config.options.reference,o=!0,t={total:".price-total-big",checkBoxDiv:".include-item",checkBoxDivCheckbox:".include-item:checked",priceTotalSmallContainer:".price-table",priceTotalBig:".total",totalIntranetUsers:".price-total-intranet-users",gobasicSpecificBox:".price-gobasic-specific-box",totalHitsInput:".price-antal-hits-input",totalPrice:"#total-price",pdfDownloadBtn:"#download-pdf",sendMailBtn:"#send-to-mail",sideBar:".basket",sectionNotHidden:".section:not([data-hidden='true'],.conditional)",projektInfo:"#projekt-info",priceList:".price-list",popupToggler:".popup-toggler",popupInfo:".popup-info",activePopupInfo:"active",individualPriceNumber:".individual-price-number",individualPriceSelected:".individual-price-selected",individualPriceNotSelected:".individual-price-not-selected",displayPrice:".price-tag label",emailModal:".popup-email",sendEmail:"#button-send-email",emailInput:"#email-input",displayDetails:"#display-details",emailSentDisplay:"#email-sent",partialCalcuator:".section[data-calculator]",emailSentPopup:".email-sent-popup",closeEmailButton:".popup-email .close",quantityInput:".quantity input",emailContainer:".cta",logoImg:".logo img",emailContainerLoader:".cta .loader"},e={individualPrice:"Individuelt",individualPriceAttr:"individual-price",individualPriceLabelAttr:"individual-price-label"},r=i.find(t.priceTotalSmallContainer);i.find("select").on("change",function(){var n=$(this).find(":selected"),t=n[0].value;n.closest(".conditional").find(".section").each(function(n,i){$(i).attr("data-section")===t?($(i).show(),$(i).removeAttr("data-hidden")):($(i).hide(),$(i).attr("data-hidden","true"))});u()});i.find(t.checkBoxDiv).on("click",function(){u();v($(this))});i.find(t.popupToggler).on("click",function(n){n.stopPropagation();p($(this))});i.find(t.popupInfo).on("click",function(n){n.stopPropagation()});$(window).on("click",function(){i.find("div.popup-info.active").removeClass("active")});i.find(t.individualPriceNumber).on("input",function(){$(this).val(f(Number($(this).val().replace(/[^0-9]/g,""))));u()});i.find(t.pdfDownloadBtn).on("click",()=>{var n=new Date;html2pdf().set({html2canvas:{scale:2},image:{type:"jpeg",quality:.98},filename:"calculator_"+n.toLocaleDateString()+".pdf",margin:15,pagebreak:{mode:["avoid-all"]}}).from(b()[0]).save()});i.find(t.sendEmail).on("click",()=>{var n=i.find(t.emailInput).val();if(!n){alert("Fill the email address");return}g(n,i.find(t.emailContainerLoader))});i.find(t.sendMailBtn).on("click",function(){i.find(t.emailModal).show(500)});i.find(t.closeEmailButton).on("click",function(){i.find(t.emailSentDisplay).text("");i.find(t.emailSentPopup).hide();i.find(t.emailModal).hide(500)});i.find(t.displayDetails).on("click",function(n){n.preventDefault();r.toggle();$(this).toggleClass("open")});i.find(t.quantityInput).on("input",function(){u()});d();u()}};application=window.application||{};application.flowchart2={init:function(n){function w(){tt()}function b(n){var t=window.location.href.split("?")[0],i=t+"?share-id="+n;window.prompt(y,i)}function k(){const t=new URLSearchParams(window.location.search),n=t.get("share-id");n?(e=!0,it(n)):(h(),f(u,null,!1))}function d(){var n={moduleItemId:c,currentStep:u,selectedResponses:i,steps:r};return JSON.stringify(n)}function g(n){let t=JSON.parse(n);return t&&c===t.moduleItemId&&(u=t.currentStep,i=t.selectedResponses,t.steps&&(r=t.steps)),t}function h(){var n=$(t.find(".previous")[0]);n&&(r.length>0?n.show():n.hide())}function a(){if(r){var n=r[r.length-1];f(n,"",!0);r.pop();h()}}function v(n){let t=n.attr("data-next-step-id"),i=n.attr("data-decision-id"),r=document.getElementById(u),e=r.dataset.radioButtons=="true";if(e&&!s){window.alert(p);return}f(t,i,!1)}function nt(n){callMethodAsync("GoBasic.Web.WebServices.FlowchartService, GoBasic.Web","OptionChosen",function(){},o,n)}function tt(){callMethodAsync("GoBasic.Web.WebServices.FlowchartService, GoBasic.Web","ShareFlow",function(n){n.success?b(n.value.value.guid):console.error(n.message)},o,d())}function it(n){callMethodAsync("GoBasic.Web.WebServices.FlowchartService, GoBasic.Web","GetFlowFromSharedGuid",function(n){if(n.success){let t=g(n.value.value.flow);f(t.currentStep,null,!1);e=!1}else console.error(n.message)},o,n)}function rt(n,t){return parseInt($(n).data("order"))<parseInt($(t).data("order"))?-1:parseInt($(n).data("order"))>parseInt($(t).data("order"))?1:0}function f(n,f,o){var w,b,a,y;if(n){let c=t.find("#"+n);if(c&&(n!==u||e)){s=!1;let v=!1;if(!o){e||r.push(u);h();let n=c.find(".flowchart-summary")[0];if(v=!!c.data("show-results"),v&&n&&n.children){let u=Array.from(n.children);if(u.length>0&&(u.forEach(n=>n.style.display="none"),i&&i.length>0)){w=Array.from(t.find(".step")).filter(n=>r.includes(n.id));b=Array.from($(w).find(".flowchart-question")).filter(n=>i.includes(n.id)).map(n=>n.id);let f=u.filter(n=>b.includes(n.attributes["data-question-id"].value));for(a=0;a<f.length;a++){let n=i.indexOf(f[a].dataset.questionId)+1;f[a].dataset.order=n;f[a].style.display="block"}y=$(n.children);y.sort(rt);$(n).html(y)}}}if(!o&&f&&nt(f),u=n,l){if(!e&&!o){i.splice(0,i.length);let n=Array.from(t.find(".flowchart-question"));if(n&&n.length>0)for(let t=0;t<n.length;t++)n[t].checked=!1}}else{let n=Array.from(t.find(".flowchart-question"));if(n&&n.length>0)for(let t=0;t<n.length;t++)i.includes(n[t].id)&&(n[t].checked=!0)}l=v;$("option:selected").removeAttr("selected");let p=t.find(".step");if(c&&p){p.removeClass("active");p.addClass("hidden");c.removeClass("hidden");c.addClass("active");let n=c.find("iframe");if(n){let t=n.attr("src");if(!t){let t=n.attr("data-src");t&&n.attr("src",t)}}}}}}var t=n.element,o=n.config.options.reference,c=n.config.options.itemId,y=n.config.options.shareModalText,p=n.config.options.chooseOptionText,r=[],i=[],l=!1,s=!1,u=t.find(".step")[0].id,e=!1;k();t.on("click","a.btn",function(){v($(this))});t.on("keypress","a.btn",function(n){n.which==13&&v($(n.target))});t.on("click","button#previous",function(n){n.preventDefault();n.stopPropagation();a()});t.on("keypress","button#previous",function(n){n.preventDefault();n.stopPropagation();n.which==13&&a()});t.on("click",".go-to-next",function(n){var t=$($(n.target.parentElement).find(".form-control")).find("option:selected"),i=t.attr("data-next-step-id"),r=t.attr("data-decision-id");f(i,r,!1)});t.on("keypress",".go-to-next",function(n){if(n.preventDefault(),n.stopPropagation(),n.which==13){var t=$($(n.target.parentElement).find(".form-control")).find("option:selected"),i=t.attr("data-next-step-id"),r=t.attr("data-decision-id");f(i,r,!1)}});t.on("change",".flowchart-question",function(n){var r,t;if(n.target.checked){if(n.target.type==="radio"){let u=n.target.name;for(r=$("[name='"+u+"'"),t=0;t<r.length;t++)i.includes(r[t].id)&&i.splice($.inArray(r[t].id,i),1)}i.push(n.target.id);s=!0}else i.splice($.inArray(n.target.id,i),1)});t.on("click",".flowchart-share",function(n){n.preventDefault();n.stopPropagation();w()})}}; /*! * JSTable v1.6.3 */ const JSTableDefaultConfig={perPage:5,perPageSelect:null,sortable:!0,searchable:!1,nextPrev:!0,firstLast:!1,prevText:"‹",nextText:"›",firstText:"«",lastText:"»",ellipsisText:"…",truncatePager:!0,pagerDelta:2,classes:{top:"dt-top",info:"dt-info",input:"dt-input",table:"dt-table",bottom:"dt-bottom",search:"dt-search",sorter:"dt-sorter",wrapper:"dt-wrapper",dropdown:"dt-dropdown",ellipsis:"dt-ellipsis",selector:"dt-selector",container:"dt-container",pagination:"dt-pagination",paginationBox:"pagination",loading:"dt-loading",message:"dt-message"},layout:{top:"{select}{search}",bottom:"{pager}"},serverSide:!1,deferLoading:null,ajax:null,ajaxParams:{},queryParams:{page:"page",search:"search"},addQueryParams:!1,rowAttributesCreator:null,searchDelay:null,method:"GET"};class JSTable{constructor(n,t={}){let i=n;(typeof n=="string"&&(i=document.querySelector(n)),i!==null)&&(i.classList.contains("entriesSelect")&&(t.perPageSelect=[5,10,15,20,25]),i.classList.contains("searchable")&&(t.searchable=!0),this.config=this._merge(JSTableDefaultConfig,t),this.table=new JSTableElement(i),this.currentPage=1,this.columnRenderers=[],this.columnsNotSearchable=[],this.searchQuery=null,this.sortColumn=null,this.sortDirection="asc",this.isSearching=!1,this.dataCount=null,this.filteredDataCount=null,this.searchTimeout=null,typeof i.dataset.paging=="undefined"?this.config.perPage=this.getDataCount():(this.config.perPage=i.dataset.paging,i.dataset.paging<5&&i.classList.contains("entriesSelect")&&(this.config.perPageSelect=[i.dataset.paging,5,10,15,20,25])),this.pager=new JSTablePager(this),this._build(),this._buildColumns(),this.update(this.config.deferLoading===null),this._bindEvents(),this._emit("init"),this._parseQueryParams())}_build(){var e=this,t,i,r,u,f;let n=this.config;this.wrapper=document.createElement("div");this.wrapper.className=n.classes.wrapper;t=["<div class='",n.classes.top,"'>",n.layout.top,"<\/div>","<div class='",n.classes.container,"'>","<div class='",n.classes.loading," hidden'>",n.labels.loading,"<\/div>","<\/div>",typeof e.table.element.dataset.paging=="undefined"?"":(n.classes.bottom,n.layout.bottom,"<\/div>")].join("");t=t.replace("{info}","<div class='"+n.classes.info+"'><\/div>");n.perPageSelect?(i=["<div class='",n.classes.dropdown,"'>","<label>",n.labels.perPage,"<\/label>","<\/div>"].join(""),r=document.createElement("select"),r.className=n.classes.selector,u=parseInt(n.perPage),n.perPageSelect.forEach(function(n){var t=n===u,i=new Option(n,n,t,t);r.add(i)}),i=i.replace("{select}",r.outerHTML),t=t.replace(/\{select\}/g,i)):t=t.replace(/\{select\}/g,"");n.searchable?(f=["<div class='",n.classes.search,"'>","<input class='",n.classes.input,"' placeholder='",n.labels.placeholder,"' type='text'>","<\/div>"].join(""),t=t.replace(/\{search\}/g,f)):t=t.replace(/\{search\}/g,"");this.table.element.classList.add(n.classes.table);t=t.replace("{pager}","<div class='"+n.classes.pagination+"'><\/div>");this.wrapper.innerHTML=t;this.table.element.parentNode.replaceChild(this.wrapper,this.table.element);let o=this.wrapper.querySelector("."+n.classes.container);o.appendChild(this.table.element);this._updatePagination();this._updateInfo()}async update(n=true){var t=this;this.currentPage>this.pager.getPages()&&(this.currentPage=this.pager.getPages());let i=t.wrapper.querySelector(" ."+t.config.classes.loading);if(i.classList.remove("hidden"),this.table.header.getCells().forEach(function(n,i){let r=t.table.head.rows[0].cells[i];r.innerHTML=n.getInnerHTML();n.classes.length>0&&(r.classList=n.classes.join(" "));for(let t in n.attributes)r.setAttribute(t,n.attributes[t]);r.setAttribute("data-sortable",n.isSortable&&r.classList.contains("sortable"));n.classes.length>0&&r.classList.contains("sortable")&&(r.classList=r.classList+" "+n.classes.join(" "))}),n)return this.getPageData(this.currentPage).then(function(n){t.table.element.classList.remove("hidden");t.table.body.innerHTML="";n.forEach(function(n){t.table.body.appendChild(n.getFormatted(t.columnRenderers,t.config.rowAttributesCreator))});i.classList.add("hidden")}).then(function(){t.getDataCount()<=0&&(t.wrapper.classList.remove("search-results"),t.setMessage(t.config.labels.noRows));t._emit("update")}).then(function(){t._updatePagination();t._updateInfo()});t.table.element.classList.remove("hidden");t.table.body.innerHTML="";this.getDataCount()<=0&&(t.wrapper.classList.remove("search-results"),t.setMessage(t.config.labels.noRows));this._getData().forEach(function(n){t.table.body.appendChild(n.getFormatted(t.columnRenderers,t.config.rowAttributesCreator))});i.classList.add("hidden")}_updatePagination(){let n=this.wrapper.querySelector(" ."+this.config.classes.pagination);n&&(n.innerHTML="",n.appendChild(this.pager.render(this.currentPage)))}_updateInfo(){let n=this.wrapper.querySelector(" ."+this.config.classes.info),t=this.isSearching?this.config.labels.infoFiltered:this.config.labels.info;if(n&&t.length){var i=t.replace("{start}",this.getDataCount()>0?this._getPageStartIndex()+1:0).replace("{end}",this._getPageEndIndex()+1).replace("{page}",this.currentPage).replace("{pages}",this.pager.getPages()).replace("{rows}",this.getDataCount()).replace("{rowsTotal}",this.getDataCountTotal());n.innerHTML=i}}_getPageStartIndex(){return(this.currentPage-1)*this.config.perPage}_getPageEndIndex(){let n=this.currentPage*this.config.perPage-1;return n>this.getDataCount()-1?this.getDataCount()-1:n}_getData(){return this._emit("getData",this.table.dataRows),this.table.dataRows.filter(function(n){return n.visible})}_fetchData(){var n=this;let t={searchQuery:this.searchQuery,sortColumn:this.sortColumn,sortDirection:this.sortDirection,start:this._getPageStartIndex(),length:this.config.perPage,datatable:1};t=Object.assign({},this.config.ajaxParams,t);let i=this.config.ajax+"?"+this._queryParams(t);return fetch(i,{method:this.config.method,credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json"}}).then(function(n){return n.json()}).then(function(t){return n._emit("fetchData",t),n.dataCount=t.recordsTotal,n.filteredDataCount=t.recordsFiltered,t.data}).then(function(n){let t=[];return n.forEach(function(n){t.push(JSTableRow.createFromData(n))}),t}).catch(function(n){console.error(n)})}_queryParams(n){return Object.keys(n).map(t=>encodeURIComponent(t)+"="+encodeURIComponent(n[t])).join("&")}getDataCount(){return this.isSearching?this.getDataCountFiltered():this.getDataCountTotal()}getDataCountFiltered(){return this.config.serverSide?this.filteredDataCount:this._getData().length}getDataCountTotal(){return this.config.serverSide?this.config.deferLoading!==null?this.config.deferLoading:this.dataCount:this.table.dataRows.length}getPageData(){if(this.config.serverSide)return this._fetchData();let n=this._getPageStartIndex();var t=this._getPageEndIndex();return Promise.resolve(this._getData()).then(function(i){return i.filter(function(i,r){return r>=n&&r<=t})})}async search(n){var t=this;if(this.searchQuery===n.toLowerCase())return!1;if(this.searchQuery=n.toLowerCase(),this.config.searchDelay){if(this.searchTimeout)return!1;this.searchTimeout=setTimeout(function(){t.searchTimeout=null;t._parseQueryParams()},this.config.searchDelay)}return(this.currentPage=1,this.isSearching=!0,!this.searchQuery.length)?(this.table.dataRows.forEach(function(n){n.visible=!0}),this.isSearching=!1,t.wrapper.classList.remove("search-results"),t.update(),!1):(this.config.serverSide||this.table.dataRows.forEach(function(n){n.visible=!1;var i=t.searchQuery.split(" ").reduce(function(i,r){var f=!1;let u=n.getCells();return u=u.filter(function(n,i){if(t.columnsNotSearchable.indexOf(i)<0)return!0}),f=u.some(function(n){if(n.getTextContent().toLowerCase().indexOf(r)>=0)return!0}),i&&f},!0);i&&(n.visible=!0)}),this.wrapper.classList.add("search-results"),this.update().then(function(){t._emit("search",n)}))}sort(n,t,i=false){var r=this,f,u;if(this.sortColumn=n||0,this.sortDirection=t,this.sortColumn<0||this.sortColumn>this.table.getColumnCount()-1)return!1;f=this.table.header.getCell(this.sortColumn);u=this.table.dataRows;let e=this.table.header.getCells();e.forEach(function(n){n.removeClass("asc");n.removeClass("desc")});f.addClass(this.sortDirection);this.config.serverSide||(u=u.sort(function(n,t){var i=n.getCellTextContent(r.sortColumn).toLowerCase(),u=t.getCellTextContent(r.sortColumn).toLowerCase();return(i=i.replace(/(\$|\,|\s|%)/g,""),u=u.replace(/(\$|\,|\s|%)/g,""),i=!isNaN(i)&&i!==""?parseFloat(i):i,u=!isNaN(u)&&u!==""?parseFloat(u):u,i===""&&u!==""||!isNaN(i)&&isNaN(u))?r.sortDirection==="asc"?1:-1:i!==""&&u===""||isNaN(i)&&!isNaN(u)?r.sortDirection==="asc"?-1:1:r.sortDirection==="asc"?i===u?0:i>u?1:-1:i===u?0:i<u?1:-1}),this.table.dataRows=u);this.config.serverSide&&i||this.update();this._emit("sort",this.sortColumn,this.sortDirection)}async paginate(n){var t=this;return this.currentPage=n,this.update().then(function(){t._emit("paginate",t.currentPage,n)})}_bindEvents(){var n=this;this.wrapper.addEventListener("click",function(t){var i=t.target;if(i.hasAttribute("data-page")){t.preventDefault();let r=parseInt(i.getAttribute("data-page"),10);if(n.paginate(r),n.config.addQueryParams){const t=new URL(window.location.href);t.searchParams.set(n.config.queryParams.page,r);window.history.replaceState(null,null,t)}}if(i.nodeName==="TH"&&i.hasAttribute("data-sortable")){if(i.getAttribute("data-sortable")==="false")return!1;t.preventDefault();n.sort(i.cellIndex,i.classList.contains("asc")?"desc":"asc")}});this.config.perPageSelect&&this.wrapper.addEventListener("change",function(t){var i=t.target;if(i.nodeName==="SELECT"&&i.classList.contains(n.config.classes.selector)){t.preventDefault();let r=parseInt(i.value,10);n._emit("perPageChange",n.config.perPage,r);n.config.perPage=r;n.update()}});this.config.searchable&&this.wrapper.addEventListener("keyup",function(t){if(t.target.nodeName==="INPUT"&&t.target.classList.contains(n.config.classes.input)&&(t.preventDefault(),n.search(t.target.value),n.config.addQueryParams)){const i=new URL(window.location.href);i.searchParams.set(n.config.queryParams.search,t.target.value);window.history.replaceState(null,null,i)}})}on(n,t){this.events=this.events||{};this.events[n]=this.events[n]||[];this.events[n].push(t)}off(n,t){(this.events=this.events||{},n in this.events!=!1)&&this.events[n].splice(this.events[n].indexOf(t),1)}_emit(n){if(this.events=this.events||{},n in this.events!=!1)for(var t=0;t<this.events[n].length;t++)this.events[n][t].apply(this,Array.prototype.slice.call(arguments,1))}setMessage(n){var i=this.table.getColumnCount(),t=document.createElement("tr");t.innerHTML='<td class="'+this.config.classes.message+'" colspan="'+i+'">'+n+"<\/td>";this.table.body.innerHTML="";this.table.body.appendChild(t)}_buildColumns(){var n=this;let t=null,i=null;this.config.columns&&this.config.columns.forEach(function(r){isNaN(r.select)||(r.select=[r.select]);r.select.forEach(function(u){var f=n.table.header.getCell(u);if(f!==undefined){if(r.hasOwnProperty("render")&&typeof r.render=="function"&&(n.columnRenderers[u]=r.render),r.hasOwnProperty("sortable")){let u=!1;f.hasSortable?u=f.isSortable:(u=r.sortable,f.setSortable(u));u&&(f.addClass(n.config.classes.sorter),r.hasOwnProperty("sort")&&r.select.length===1&&(t=r.select[0],i=r.sort))}r.hasOwnProperty("searchable")&&(f.addAttribute("data-searchable",r.searchable),r.searchable===!1&&n.columnsNotSearchable.push(u))}})});this.table.header.getCells().forEach(function(r,u){r.isSortable===null&&r.setSortable(n.config.sortable);r.isSortable&&(r.addClass(n.config.classes.sorter),r.hasSort&&(t=u,i=r.sortDirection))});t!==null&&n.sort(t,i,!0)}_merge(n,t){var i=this;return Object.keys(n).forEach(function(r){!t.hasOwnProperty(r)||typeof t[r]!="object"||t[r]instanceof Array||t[r]===null?t.hasOwnProperty(r)||(t[r]=n[r]):i._merge(n[r],t[r])}),t}async _parseQueryParams(){const t=new URLSearchParams(window.location.search);let n=t.get(this.config.queryParams.search);if(n){let t=this.wrapper.querySelectorAll("."+this.config.classes.input);t.forEach(function(t){t.value=n});await this.search(n)}let i=t.get(this.config.queryParams.page);i&&await this.paginate(parseInt(i))}}class JSTableElement{constructor(n){this.element=n;this.body=this.element.tBodies[0];this.head=this.element.tHead;this.rows=Array.from(this.element.rows).map(function(n,t){return new JSTableRow(n,n.parentNode.nodeName,t)});this.dataRows=this._getBodyRows();this.header=this._getHeaderRow()}_getBodyRows(){return this.rows.filter(function(n){return!n.isHeader&&!n.isFooter})}_getHeaderRow(){return this.rows.find(function(n){return n.isHeader})}getColumnCount(){return this.header.getColumnCount()}getFooterRow(){return this.rows.find(function(n){return n.isFooter})}}class JSTableRow{constructor(n,t="",i=null){this.cells=Array.from(n.cells).map(function(n){return new JSTableCell(n)});this.d=this.cells.length;this.isHeader=t==="THEAD";this.isFooter=t==="TFOOT";this.visible=!0;this.rowID=i;var r=this;this.attributes={};[...n.attributes].forEach(function(n){r.attributes[n.name]=n.value})}getCells(){return Array.from(this.cells)}getColumnCount(){return this.cells.length}getCell(n){return this.cells[n]}getCellTextContent(n){return this.getCell(n).attributes.date?this.getCell(n).attributes.date:this.getCell(n).getTextContent()}static createFromData(n){let t=document.createElement("tr");if(n.hasOwnProperty("data")){if(n.hasOwnProperty("attributes"))for(const i in n.attributes)t.setAttribute(i,n.attributes[i]);n=n.data}return n.forEach(function(n){let i=document.createElement("td");if(i.innerHTML=!!n&&n.hasOwnProperty("data")?n.data:n,!!n&&n.hasOwnProperty("attributes"))for(const t in n.attributes)i.setAttribute(t,n.attributes[t]);t.appendChild(i)}),new JSTableRow(t)}getFormatted(n,t=null){let i=document.createElement("tr");var u=this;for(let n in this.attributes)i.setAttribute(n,this.attributes[n]);let r=!t?{}:t.call(this,this.getCells());for(const n in r)i.setAttribute(n,r[n]);return this.getCells().forEach(function(t,r){var f=document.createElement("td");f.innerHTML=t.getInnerHTML();n.hasOwnProperty(r)&&(f.innerHTML=n[r].call(u,t.getElement(),r));t.classes.length>0&&(f.className=t.classes.join(" "));for(let n in t.attributes)f.setAttribute(n,t.attributes[n]);i.appendChild(f)}),i}setCellClass(n,t){this.cells[n].addClass(t)}}class JSTableCell{constructor(n){this.textContent=n.textContent;this.innerHTML=n.innerHTML;this.className="";this.element=n;this.hasSortable=n.hasAttribute("data-sortable");this.isSortable=this.hasSortable?n.getAttribute("data-sortable")==="true":null;this.hasSort=n.hasAttribute("data-sort");this.sortDirection=n.getAttribute("data-sort");this.classes=[];var t=this;this.attributes={};[...n.attributes].forEach(function(n){t.attributes[n.name]=n.value})}getElement(){return this.element}getTextContent(){return this.textContent}getInnerHTML(){return this.innerHTML}setClass(n){this.className=n}setSortable(n){this.isSortable=n}addClass(n){this.classes.push(n)}removeClass(n){this.classes.indexOf(n)>=0&&this.classes.splice(this.classes.indexOf(n),1)}addAttribute(n,t){this.attributes[n]=t}}class JSTablePager{constructor(n){this.instance=n}getPages(){let n=Math.ceil(this.instance.getDataCount()/this.instance.config.perPage);return n===0?1:n}render(){var n=this.instance.config,r;let i=this.getPages(),t=document.createElement("ul");if(t.classList.add(n.classes.paginationBox),i>1){let u=this.instance.currentPage===1?1:this.instance.currentPage-1,f=this.instance.currentPage===i?i:this.instance.currentPage+1;n.firstLast&&t.appendChild(this.createItem("pager",1,n.firstText));n.nextPrev&&t.appendChild(this.createItem("pager",u,n.prevText));r=this.truncate();r.forEach(function(n){t.appendChild(n)});n.nextPrev&&t.appendChild(this.createItem("pager",f,n.nextText));n.firstLast&&t.appendChild(this.createItem("pager",i,n.lastText))}return t}createItem(n,t,i,r){let u=document.createElement("li");return u.className=n,u.innerHTML=r?"<span>"+i+"<\/span>":'<a href="#" data-page="'+t+'">'+i+"<\/a>",u}isValidPage(n){return n>0&&n<=this.getPages()}truncate(){var u=this,t=u.instance.config,e=t.pagerDelta*2,i=u.instance.currentPage,o=i-t.pagerDelta,s=i+t.pagerDelta,h=this.getPages(),c=[],f=[],r,n;if(this.instance.config.truncatePager){for(i<4-t.pagerDelta+e?s=3+e:i>this.getPages()-(3-t.pagerDelta+e)&&(o=this.getPages()-(2+e)),n=1;n<=h;n++)(n===1||n===h||n>=o&&n<=s)&&c.push(n);c.forEach(function(n){r&&(n-r==2?f.push(u.createItem("",r+1,r+1)):n-r!=1&&f.push(u.createItem(t.classes.ellipsis,0,t.ellipsisText,!0)));f.push(u.createItem(n==i?"active":"",n,n));r=n})}else for(let n=1;n<=this.getPages();n++)f.push(this.createItem(n===i?"active":"",n,n));return f}}window.JSTable=JSTable;$(".rich-text table").wrap("<div class='table-box'><\/div>");document.querySelector(".announcementPopup")&&(delay=document.querySelector(".announcementPopup").dataset.delay,setTimeout(checkLocalStoragePopup,delay));document.querySelector(".banner")&&checkLocalStoragebanner();document.querySelector(".banner .close")&&document.querySelector(".banner .close").addEventListener("click",()=>{sessionStorage.setItem("hideBanner",!0),checkLocalStoragebanner()});document.querySelector(".announcementPopup .close")&&document.querySelector(".announcementPopup .close").addEventListener("click",()=>{sessionStorage.setItem("hidePopup",!0),checkLocalStoragePopup()});application=window.application||{};application.mapsModule={init:function(n){function f(){var n,f;const e=r.find(".list")[0];let u=$(e.getElementsByTagName("ul")[0]).children();if(i.invalidateSize(),k(t,i),!!o){let t=[];for(i.eachLayer(n=>{n instanceof L.MarkerClusterGroup&&n.eachLayer(n=>{n instanceof L.Marker&&i.getBounds().contains(n.getLatLng())&&t.push(n)})}),n=0;n<u.length;n++)u[n].setAttribute("style","display: none !important");for(n=0;n<t.length;n++){let i=t[n];for(f=0;f<u.length;f++){let t=u[f].dataset.markerLongitude.replace(",","."),r=u[f].dataset.markerLatitude.replace(",","."),n=i.getLatLng();n.lng==t&&n.lat==r&&u[f].setAttribute("style","")}}}}function k(n,t){var i,u;for(h=[],t.eachLayer(function(n){n instanceof L.MarkerClusterGroup&&t.removeLayer(n)}),c=L.markerClusterGroup({chunkedLoading:!0}),i=0;i<n.markers.length;i++){let f=n.markers[i];if(u={lat:f.latitude,lng:f.longitude},t.getBounds().contains(u)){let l=!f.categorization?"red":f.categorization.color,a=!!f.categorization&&!!f.categorization.img?`<img src="${f.categorization.img}"></img>`:"",v=L.divIcon({className:"custom-div-icon",html:`<div style='background-color:${l};' class='marker-pin' alt='${y.markerAlt}'></div>${a}`,iconSize:[30,42],iconAnchor:[15,42]}),w={alt:f.name,icon:v,id:f.id},o=L.marker([f.latitude,f.longitude],w),s=``;!f.links||f.links.forEach(n=>{let t=!n.target?" ":` target="${n.target}" `;s+=`<a class="link-arrow"${t}href="${n.href}">${n.title}</a>`});const b=f.image?`<div class="media"><img src="${f.image}"></div>`:"",k=f.categorization&&f.categorization.img?`<div class="popup-info--logo"><img src="${f.categorization.img}"></div>`:"",tt=f.description?`<div class="description">${f.description}</div>`:"",it=!f.links?"":s,rt=` <div class="popup-info"> ${b} <div class="wrap"> ${k} <div class="text"> <h2 class="heading">${f.name}</h2> ${tt} ${it} </div> </div> </div>`;o.bindPopup(rt,{autoPan:!1});const ut=`li[data-marker-id="${f.id}"]`,e=r.find(ut);e[0]&&e[0].dataset.haveclicklistener!=="true"&&(e[0].addEventListener("click",()=>{let n=nt(h,o.options.id);d(t,n,p);n._popup.isOpen()||(setTimeout(()=>{g(n)},250),setTimeout(()=>{$(e[0]).click()},260))}),e[0].dataset.haveclicklistener=!0);c.addLayer(o);h.push(o)}}t.addLayer(c)}function d(n,t,i){if(t){let r=!n.hasLayer(t);r&&n.setView(t.getLatLng(),i)}}function g(n){n.openPopup()}function nt(n,t){var r=null;for(var i in n)n[i]&&n[i].options.id==t&&(r=n[i]);return r}function l(n){let i={};!!u&&u.length>0&&(i.categorizations=u.join("|"));!!e&&e.length>0&&(i.query=e);callMethodAsync(n.config.options.generator,"GetList",function(i){var r=n.element.find(".ajaxhost");r&&i.value.page&&r.html(i.value.page);t=i.value;f()},i,n.config.options.reference)}let r=n.element,a=n.config.options.clientId,t=n.config.options.data,y=n.config.options.translations,u=[],e=null,o=!1,s={};s.datafordeler=new L.Proj.CRS("EPSG:25832","+proj=utm +zone=32 +ellps=GRS80 +units=m +no_defs",{resolutions:[1638.4,819.2,409.6,204.8,102.4,51.2,25.6,12.8,6.4,3.2,1.6,.8,.4,.2],origin:[12e4,65e5],bounds:L.bounds([12e4,5661139.2],[1378291.2,65e5])});let p=t.map.maxZoom;t.map.zoomValid||console.error("Maps Module - Configured zoom settings are invalid. MinZoom is greater than MaxZoom or MaxZoom excedes provider bounds. Using a fallback settings.");let v={continuousWorld:!0,center:[t.map.centerPointLatitude,t.map.centerPointLongitude],minzoom:t.map.minZoom,maxzoom:t.map.maxZoom};!t.map.projection||!s[t.map.projection]||(v.crs=s[t.map.projection]);const i=L.map(a,v),w='© <a target="_blank" href="'+t.map.attributionTextUrl+'">'+t.map.attributionText+"<\/a>",b=t.map.mapLayersUrl;if(!!t.map.bounds){let r=L.latLng(t.map.bounds.northEastLat,t.map.bounds.northEastLng),u=L.latLng(t.map.bounds.southWestLat,t.map.bounds.southWestLng),n=L.latLngBounds(u,r);i.setMaxBounds(n);i.on("drag",function(){i.panInsideBounds(n,{animate:!1})})}L.tileLayer(b,{minZoom:t.map.minZoom,maxZoom:t.map.maxZoom,attribution:w}).addTo(i);i.setView([t.map.centerPointLatitude,t.map.centerPointLongitude],t.map.defaultZoom);setTimeout(()=>{i.invalidateSize(),f()},200);$.fn.onClassChange=function(n){return $(this).each((t,i)=>{new MutationObserver(t=>{t.forEach(t=>n&&n(t.target,t.target.className))}).observe(i,{attributes:!0,attributeFilter:["class"]})})};$(".tabs-navigation ul li").onClassChange((n,t)=>{t==="active"&&(i.invalidateSize(),f())});r.find("#showList_"+a)[0].addEventListener("change",function(n){i.invalidateSize();n.target.checked?(o=!0,r.find(".map-view")[0].className="map-view",f()):(o=!1,r.find(".map-view")[0].className="map-view hide-list")});i.on("zoomend",f);i.on("dragend",f);r.on("keydown",".search div input",function(t){t.keyCode==13&&(e=n.element.find(".search div input").val(),l(n))});r.on("click",".search div button",function(t){t.preventDefault();e=n.element.find(".search div input").val();l(n)});r.on("click",".filtering a",function(t){var e,i;t.preventDefault();let f=$(t.target).parent()[0].dataset.categorization;if(!!f){if(u.includes(f)){const n=u.indexOf(f);n>-1&&u.splice(n,1)}else u.push(f);l(n)}for(e=r.find(`a[data-categorization]`),i=0;i<e.length;i++){let n=r.find(`a[data-categorization="${e[i].dataset.categorization}"]`)[0].children[0];n.classList.remove("active");u.includes(e[i].dataset.categorization)&&n.classList.add("active")}});let h=[],c}};let overlap=()=>{let n=document.querySelectorAll(".bottom-overlap, .bottom-overlap-images");n.forEach(n=>{let t=n.closest(".inner-grid");if(t&&(t.style.marginBottom=0,$(window).width()>767&&n.closest(".inner-grid"))){let i=n.offsetHeight;t.style.marginBottom=0-parseInt($(t).css("padding-bottom"),10)-i-parseInt($(n).css("margin-bottom"),10)-parseInt($(n).css("margin-top"),10)+"px"}n.classList.contains("bottom-overlap-images")&&(n.style.position="absolute")})};document.querySelectorAll(".bottom-overlap")&&overlap();$(window).on("resize",function(){overlap()});(function(){function r(n){return n.element.find('table[data-tableuniqueid="'+n.config.options.tableUniqueId+'"]')[0]}function n(n){const t=r(n);t&&(i(t),new JSTable(t,{labels:n.config.options.labels}))}function t(n){var t={query:n.element.find("#table-version-selector").val()};callMethodAsync(n.config.options.generator,"GetTable",function(t){var r=n.element.find("."+n.config.options.tableUniqueId);r&&(r.html(t.value.page),i(r[0].firstChild),new JSTable(r[0].firstChild,{labels:n.config.options.labels}))},t,n.config)}function u(n){for(var i,r,t,e=[],o=n.getElementsByTagName("tr"),u=0;u<o.length;u++){for(i=o[u].querySelectorAll("td,th"),r=[],t=0;t<i.length;t++)i[t].innerText.includes(";")?r.push(`"${i[t].innerText}"`):r.push(i[t].innerText);e.push(r)}f(e)}function f(n){var t="table",u=XLSX.utils.aoa_to_sheet(n),i=XLSX.utils.book_new(),r;XLSX.utils.book_append_sheet(i,u,t);r=new Date;XLSX.writeFile(i,t+"_"+r.toLocaleDateString()+".csv",{encoding:"binary",bookType:"csv"})}function i(n){let t=n.closest(".table").querySelector(".tableDownload");if(t){let i=document.createElement("table");i.innerHTML=n.innerHTML;t.onclick=n=>{n.preventDefault(),u(i)}}}application.mainTable={};application.mainTable.init=function(t){n(t)};application.tableList={};application.tableList.init=function(i){n(i);i.element.on("change","#table-version-selector",function(n){n.preventDefault();t(i)});t(i)}})()