1!function(f,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):f.lozad=e()}(this,function(){function f(a){a.setAttribute("data-loaded",!0)}var e="undefined"!=typeof document&&document.documentMode,p={rootMargin:"0px",threshold:0,load:function(a){if("picture"===a.nodeName.toLowerCase()){var b=a.querySelector("img"),d=!1;null===b&&(b=document.createElement("img"),d=!0);e&&a.getAttribute("data-iesrc")&&(b.src=a.getAttribute("data-iesrc")); 2a.getAttribute("data-alt")&&(b.alt=a.getAttribute("data-alt"));d&&a.append(b)}if("video"===a.nodeName.toLowerCase()&&!a.getAttribute("data-src")&&a.children){for(var b=a.children,d=void 0,c=0;c<=b.length-1;c++)(d=b[c].getAttribute("data-src"))&&(b[c].src=d);a.load()}a.getAttribute("data-poster")&&(a.poster=a.getAttribute("data-poster"));a.getAttribute("data-src")&&(a.src=a.getAttribute("data-src"));a.getAttribute("data-srcset")&&a.setAttribute("srcset",a.getAttribute("data-srcset"));b=",";(a.getAttribute("data-background-delimiter")&& 3(b=a.getAttribute("data-background-delimiter")),a.getAttribute("data-background-image"))?a.style.backgroundImage="url('"+a.getAttribute("data-background-image").split(b).join("'),url('")+"')":a.getAttribute("data-background-image-set")&&(b=a.getAttribute("data-background-image-set").split(b),d=b[0].substr(0,b[0].indexOf(" "))||b[0],d=-1===d.indexOf("url(")?"url("+d+")":d,1===b.length?a.style.backgroundImage=d:a.setAttribute("style",(a.getAttribute("style")||"")+"background-image: "+d+"; background-image: -webkit-image-set("+ 4b+"); background-image: image-set("+b+")"));a.getAttribute("data-toggle-class")&&a.classList.toggle(a.getAttribute("data-toggle-class"))},loaded:function(){}},h=function(a){return"true"===a.getAttribute("data-loaded")},n=function(a){var b=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document;return a instanceof Element?[a]:a instanceof NodeList?a:b.querySelectorAll(a)};return function(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:".lozad",b=Object.assign({},p,1<arguments.length&& 5void 0!==arguments[1]?arguments[1]:{}),d=b.root,c=b.rootMargin,e=b.threshold,k=b.load,l=b.loaded,g=void 0;"undefined"!=typeof window&&window.IntersectionObserver&&(g=new IntersectionObserver(function(a,b){a.forEach(function(a){(0<a.intersectionRatio||a.isIntersecting)&&(b.unobserve(a.target),h(a.target)||(k(a.target),f(a.target),l(a.target)))})},{root:d,rootMargin:c,threshold:e}));for(var m,b=n(a,d),c=0;c<b.length;c++)(m=b[c]).getAttribute("data-placeholder-background")&&(m.style.background=m.getAttribute("data-placeholder-background")); 6return{observe:function(){for(var b=n(a,d),c=0;c<b.length;c++)h(b[c])||(g?g.observe(b[c]):(k(b[c]),f(b[c]),l(b[c])))},triggerLoad:function(a){h(a)||(k(a),f(a),l(a))},observer:g}}}); 7(()=>{"use strict";const e=()=>{document.addEventListener("click",(e=>{const t=e.target;if(t.hasAttribute("data-facet-function")&&t.hasAttribute("data-facet-params")){const n=t.dataset.facetFunction,o=t.dataset.facetParams;if(n&&o){e.preventDefault();const t=window[n];"function"==typeof t?t(o,!0):console.error(`Function ${n} not found on window.`)}}else if(t.hasAttribute("data-clicktracking")){const e=t.dataset.clicktracking;if(e){const t=e.match(/url:'(.+?)',/);t&&fetch(t[1]).catch((e=>{console.error("Failed to fetch click tracking URL:",e)}))}}})),(()=>{var e;const t=null===(e=Object.getOwnPropertyDescriptor(XMLHttpRequest.prototype,"responseText"))||void 0===e?void 0:e.get;t?Object.defineProperty(XMLHttpRequest.prototype,"responseText",{get:function(){return(e=>{const t=document.querySelector(".sv-facetedsearch-portlet, .sv-standardsearch-portlet");if(!t)return e;const n=e.match(/<script[^>]+>\s+svDocReady\(function\(\) {\s+\$svjq\('([^']+)'\)\.pagination\(([\d\D]+?)\);\s+}\);\s+<\/script>/);if(n){const o=n[1];let s=n[2];s=s.replace(/\s(\w+):/gm,'"$1":'),s=s.replace(/'/g,'"'),e=e.replace(n[0],""),new MutationObserver(((e,t)=>{const n=window.$svjq(o);n&&n.pagination?n.pagination(JSON.parse(s)):console.error("Pagination element or method not found."),t.disconnect()})).observe(t,{childList:!0,subtree:!0})}return e})(t.apply(this,arguments))}}):console.error("Could not find the getter for responseText.")})()},t="con",n=(e,t)=>{t.querySelectorAll("li").forEach((e=>e.classList.remove("is-active-li"))),t.querySelectorAll("a").forEach((e=>e.classList.remove("is-active-link")));const n=e.closest("li");n&&n.classList.add("is-active-li"),e.classList.add("is-active-link")},o=e=>{const t=Array.from(document.querySelectorAll('.env-tabs [role="tab"]')).map((e=>e.id));e.querySelectorAll("li").forEach((e=>{var n;const o=e.querySelector("a");if(!o)return;const s=null!==(n=o.getAttribute("href"))&&void 0!==n?n:"";t.some((e=>s===`#${e}`))&&e.classList.add("toc-list-item--tab")}))},s=(e,t)=>{function n(e){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),e.currentTarget.click())}e.querySelectorAll("a").forEach((e=>{e.removeEventListener("click",t),e.removeEventListener("keydown",n),e.addEventListener("click",t),e.addEventListener("keydown",n)}))},r=()=>{const e=document.querySelector(`.${t}
7-toc__anchors-mobile`);if(!e)return;tocbot.init({tocSelector:`.${t}-toc__anchors-mobile`,contentSelector:`.${t}-toc__anchor-source`,headingSelector:"h2, .env-tabs__nav li",ignoreSelector:".con-contact-card__title, .env-tabs__panel h2",hasInnerContainers:!0,orderedList:!0,includeHtml:!1,ignoreHiddenElements:!0,headingsOffset:0,scrollSmoothOffset:-0});const r=e.querySelector(".toc-list");if(!r)return;const l=((e,t)=>{if(e.querySelector(".toc-btn"))return;const n=document.createElement("button");return n.id="toc-btn",n.className="toc-btn",n.setAttribute("aria-controls","toc-list"),n.setAttribute("aria-expanded","false"),n.setAttribute("aria-label","Ãppna navigation för ankarlänkar"),e.insertBefore(n,t),n.addEventListener("click",(()=>{var o,s;t.classList.toggle("is-active-ol"),e.classList.toggle("is-active-anchor-nav");const r="true"===n.getAttribute("aria-expanded");n.setAttribute("aria-expanded",r?"false":"true");const l=t.querySelector("li"),a=null!==(s=null===(o=null==l?void 0:l.querySelector("a"))||void 0===o?void 0:o.textContent)&&void 0!==s?s:"";n.setAttribute("aria-label",r?`Ãppna navigation för ankarlänkar (${a})`:`Stäng navigationen för ankarlänkarna (${a})`)})),n})(e,r);o(r);const a={};document.querySelectorAll(".env-tabs__panel").forEach((e=>{const t=e.getAttribute("aria-labelledby");t&&e.querySelectorAll("h2").forEach((e=>{a[e.id]=t}))}));const c=()=>{const t=document.querySelector('.env-tabs [role="tab"][aria-selected="true"]');if(!(null==t?void 0:t.id))return;let n,o=r.querySelector("li.toc-list-item:first-child");o?(n=o.querySelector("a"),n.textContent=t.textContent,o.classList.add("is-active-li"),n.classList.add("is-active-link")):(o=document.createElement("li"),o.className="toc-list-item is-active-li",n=document.createElement("a"),n.href=`#${t.id}`,n.textContent=t.textContent,n.className="toc-link is-active-link",o.appendChild(n),o.appendChild(l),r.appendChild(o));const a=document.querySelector(`.env-tabs__panel#${t.getAttribute("aria-controls")}`);a&&a.querySelectorAll("h2").forEach((e=>{var t;let n=null===(t=r.querySelector(`li a[href="#${e.id}"]`))||void 0===t?void 0:t.closest("li");if(!n){n=document.createElement("li"),n.className="toc-list-item";const t=document.createElement("a");t.href=`#${e.id}`,t.textContent=e.textContent,t.className="toc-link",n.appendChild(t),r.appendChild(n)}})),r.querySelectorAll("li.toc-list-item--tab").forEach((e=>{e.style.display=e.classList.contains("is-active-li")?"":"block"})),l.setAttribute("aria-label",`Ãppna navigation för ankarlänkar (${t.textContent})`),l.setAttribute("aria-expanded","false"),r.classList.remove("is-active-ol"),e.classList.remove("is-active-anchor-nav"),s(r,i)},i=t=>{var o,s,l;t.preventDefault();const c=t.currentTarget,i=null===(o=c.getAttribute("href"))||void 0===o?void 0:o.replace("#","");if(!i)return;const d=null!==(s=a[i])&&void 0!==s?s:i,u=document.querySelector(`.env-tabs [role="tab"]#${d}`);if((null===(l=c.closest("li"))||void 0===l?void 0:l.classList.contains("toc-list-item--tab"))&&u){u.click();const e=document.querySelector(".env-tabs__nav");if(e){const t=e.getBoundingClientRect().top+window.scrollY-80;window.scrollTo({top:t,behavior:"smooth"})}}else{const e=document.getElementById(i);if(e){const t=e.getBoundingClientRect().top+window.scrollY-100;window.scrollTo({top:t,behavior:"smooth"})}}n(c,r),r.classList.remove("is-active-ol"),e.classList.remove("is-active-anchor-nav")};document.querySelectorAll('.env-tabs [role="tab"]').forEach((e=>{e.addEventListener("click",(()=>setTimeout(c,50)))})),c()},l=()=>{const e=document.querySelector(`.${t}-toc__anchors`);if(!e)return;tocbot.init({tocSelector:`.${t}-toc__anchors`,contentSelector:`.${t}-toc__anchor-source`,headingSelector:'h2, .env-tabs [role="tab"]',ignoreSelector:".con-contact-card__title, .env-tabs__panel h2",hasInnerContainers:!0,orderedList:!0,includeHtml:!1,ignoreHiddenElements:!0});const r=e.querySelector(".toc-list");if(!r)return;o(r),s(r,(e=>{var t;e.preventDefault();const o=e.currentTarget,s=null===(t=o.getAttribute("href"))||void 0===t?void 0:t.replace("#","");if(!s)return;const l=document.getElementById(s);l&&l.scrollIntoView({behavior:"smooth",block:"start"});const a=document.querySelector(`.env-tabs [role="tab"]#${s}`);a&&a.click(),n(o,r)}));const l=document.querySelector('.env-tabs [role="tab"][aria-selected="true"]');if(l){const e=r.querySelector(`a[href="#${l.id}"]`);e&&n(e,r)}};function a(){document.querySelectorAll(".sv-collapsible-content").forEach((e=>{var t,n;const o=e.querySelector("form");if(!o)return;if(!o.querySelector(".sv-has-error"))return;const s=null===(t=e.closest(".sv-collapsible-content"))||void 0===t?void 0:t.querySelector(".env-collapse");s&&s.classList.add("env-collapse--show");const r=null===(n=e.closest(".sv-collapsible-content"))||void 0===n?void 0:n.querySelector(".env-collapse-header");r&&r.setAttribute("aria-expanded","true")}))}document.addEventListener("DOMContentLoaded",a),(()=>{var e={d:(t,n)=>{for(var o in n)e.o(n,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:n[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}
vendor: 8,482 bytes, line 7
7),Object.defineProperty(e,"__esModule",{value:!0})}},t={};function n(e){const t=[].forEach,n=[].some,o="undefined"!=typeof window&&document.body,s=" ";let r,l=!0,a=0;function c(n,o){const r=o.appendChild(function(n){const o=document.createElement("li"),r=document.createElement("a");return e.listItemClass&&o.setAttribute("class",e.listItemClass),e.onClick&&(r.onclick=e.onClick),e.includeTitleTags&&r.setAttribute("title",n.textContent),e.includeHtml&&n.childNodes.length?t.call(n.childNodes,(e=>{r.appendChild(e.cloneNode(!0))})):r.textContent=n.textContent,r.setAttribute("href",`${e.basePath}#${n.id}`),r.setAttribute("class",`${e.linkClass+s}node-name--${n.nodeName}${s}${e.extraLinkClasses}`),o.appendChild(r),o}(n));if(n.children.length){const e=i(n.isCollapsed);n.children.forEach((t=>{c(t,e)})),r.appendChild(e)}}function i(t){const n=e.orderedList?"ol":"ul",o=document.createElement(n);let r=e.listClass+s+e.extraListClasses;return t&&(r=r+s+e.collapsibleClass,r=r+s+e.isCollapsedClass),o.setAttribute("class",r),o}function d(t){let n=0;return null!==t&&(n=t.offsetTop,e.hasInnerContainers&&(n+=d(t.offsetParent))),n}function u(e,t){return e&&e.className!==t&&(e.className=t),e}function f(t){return t&&-1!==t.className.indexOf(e.collapsibleClass)&&-1!==t.className.indexOf(e.isCollapsedClass)?(u(t,t.className.replace(s+e.isCollapsedClass,"")),f(t.parentNode.parentNode)):t}function m(t){const n=p(),o=document?.getElementById(t);return o.offsetTop>n.offsetHeight-1.4*n.clientHeight-e.bottomModeThreshold}function h(){const t=p(),n=t.scrollHeight>t.clientHeight,o=v()+t.clientHeight>t.offsetHeight-e.bottomModeThreshold;return n&&o}function p(){let t;return t=e.scrollContainer&&document.querySelector(e.scrollContainer)?document.querySelector(e.scrollContainer):document.documentElement||o,t}function v(){const e=p();return e?.scrollTop||0}function b(t,o=v()){let s;return n.call(t,((n,r)=>d(n)>o+e.headingsOffset+10?(s=t[0===r?r:r-1],!0):r===t.length-1?(s=t[t.length-1],!0):void 0)),s}return{enableTocAnimation:function(){l=!0},disableTocAnimation:function(t){const n=t.target||t.srcElement;"string"==typeof n.className&&-1!==n.className.indexOf(e.linkClass)&&(l=!1)},render:function(e,t){const n=i(!1);if(t.forEach((e=>{c(e,n)})),r=e||r,null!==r)return r.firstChild&&r.removeChild(r.firstChild),0===t.length?r:r.appendChild(n)},updateToc:function(n,o){e.positionFixedSelector&&function(){const t=v(),n=document.querySelector(e.positionFixedSelector);"auto"===e.fixedSidebarOffset&&(e.fixedSidebarOffset=r.offsetTop),t>e.fixedSidebarOffset?-1===n.className.indexOf(e.positionFixedClass)&&(n.className+=s+e.positionFixedClass):n.className=n.className.replace(s+e.positionFixedClass,"")}();const c=n,i=o?.target?.getAttribute?o?.target?.getAttribute("href"):null,d=!(!i||"#"!==i.charAt(0))&&m(i.replace("#",""));if(o&&a<5&&a++,(l||d)&&r&&c.length>0){const n=b(c),o=r.querySelector(`.${e.activeLinkClass}`),l=n.id.replace(/([ #;&,.+*~':"!^$[\]()=>|/\\@])/g,"\\$1"),p=window.location.hash.replace("#","");let v=l;const g=h();i&&d?v=i.replace("#",""):p&&p!==l&&g&&(m(l)||a<=2)&&(v=p);const y=r.querySelector(`.${e.linkClass}[href="${e.basePath}#${v}"]`);if(o===y)return;const S=r.querySelectorAll(`.${e.linkClass}`);t.call(S,(t=>{u(t,t.className.replace(s+e.activeLinkClass,""))}));const L=r.querySelectorAll(`.${e.listItemClass}`);t.call(L,(t=>{u(t,t.className.replace(s+e.activeListItemClass,""))})),y&&-1===y.className.indexOf(e.activeLinkClass)&&(y.className+=s+e.activeLinkClass);const E=y?.parentNode;E&&-1===E.className.indexOf(e.activeListItemClass)&&(E.className+=s+e.activeListItemClass);const w=r.querySelectorAll(`.${e.listClass}.${e.collapsibleClass}`);t.call(w,(t=>{-1===t.className.indexOf(e.isCollapsedClass)&&(t.className+=s+e.isCollapsedClass)})),y?.nextSibling&&-1!==y.nextSibling.className.indexOf(e.isCollapsedClass)&&u(y.nextSibling,y.nextSibling.className.replace(s+e.isCollapsedClass,"")),f(y?.parentNode.parentNode)}},getCurrentlyHighlighting:function(){return l},getTopHeader:b,getScrollTop:v,updateUrlHashForHeader:function(e){const t=v(),n=b(e,t),o=h();if(n&&!(t<5)||o){if(n&&!o){const e=`#${n.id}`;window.location.hash!==e&&window.history.pushState(null,null,e)}}else"#"!==window.location.hash&&""!==window.location.hash&&window.history.pushState(null,null,"#")}}}e.r(t),e.d(t,{_buildHtml:()=>s,_headingsArray:()=>l,_options:()=>i,_parseContent:()=>r,_scrollListener:()=>a,default:()=>b,destroy:()=>u,init:()=>d,refresh:()=>f});const o={tocSelector:".js-toc",tocElement:null,contentSelector:".js-toc-content",contentElement:null,headingSelector:"h1, h2, h3",ignoreSelector:".js-toc-ignore",hasInnerContainers:!1,linkClass:"toc-link",extraLinkClasses:"",activeLinkClass:"is-active-link",listClass:"toc-list",extraListClasses:"",isCollapsedClass:"is-collapsed",collapsibleClass:"is-collapsible",listItemClass:"toc-list-item",activeListItemClass:"is-active-li",collapseDepth:0,scrollSmooth:!0,scrollSmoothDuration:420,scrollSmoothOffset:0,scrollEndCallback:function(e){},headingsOffset:1,enableUrlHashUpdateOnScroll:!1,scrollHandlerType:"auto",scrollHandlerTimeout:50,throttleTimeout:50,positionFixedSelector:null,positionFixedClass:"is-position-fixed",fixedSidebarOffset:"auto",includeHtml:!1,includeTitleTags:!1,onClick:function(e){},orderedList:!0,scrollContainer:null,skipRendering:!1,headingLabelCallback:!1,ignoreHiddenElements:!1,headingObjectCallback:null,basePath:"",disableTocScrollSync:!1,tocScrollingWrapper:null,tocScrollOffset:30,bottomModeThreshold:30};let s,r,l,a,c,i={};function d(e){let t=!1;i=function(...e){const t={};for(let n=0;n<e.length;n++){const o=e[n];for(const e in o)m.call(o,e)&&(t[e]=o[e])}return t}(o,e||{}),i.scrollSmooth&&(i.duration=i.scrollSmoothDuration,i.offset=i.scrollSmoothOffset,function(e){var t=e.duration,n=e.offset;if("undefined"!=typeof window&&"undefined"!=typeof location){var o=location.hash?s(location.href):location.href;document.body.addEventListener("click",(function(r){var l;"a"!==(l=r.target).tagName.toLowerCase()||!(l.hash.length>0||"#"===l.href.charAt(l.href.length-1))||s(l.href)!==o&&s(l.href)+"#"!==o||r.target.className.indexOf("no-smooth-scroll")>-1||"#"===r.target.href.charAt(r.target.href.length-2)&&"!"===r.target.href.charAt(r.target.href.length-1)||-1===r.target.className.indexOf(e.linkClass)||function(e,t){var n,o,s=window.pageYOffset,r={duration:t.duration,offset:t.offset||0,callback:t.callback,easing:t.easing||function(e,t,n,o){return(e/=o/2)<1?n/2*e*e+t:-n/2*(--e*(e-2)-1)+t}},l=document.querySelector('[id="'+decodeURI(e).split("#").join("")+'"]')||document.querySelector('[id="'+e.split("#").join("")+'"]'),a="string"==typeof e?r.offset+(e?l&&l.getBoundingClientRect().top||0:-(document.documentElement.scrollTop||document.body.scrollTop)):e,c="function"==typeof r.duration?r.duration(a):r.duration;function i(e){o=e-n,window.scrollTo(0,r.easing(o,s,a,c)),o<c?requestAnimationFrame(i):(window.scrollTo(0,s+a),"function"==typeof r.callback&&r.callback())}requestAnimationFrame((function(e){n=e,i(e)}))}(r.target.hash,{duration:t,offset:n,callback:function(){var e,t;e=r.target.hash,(t=document.getElementById(e.substring(1)))&&(/^(?:a|select|input|button|textarea)$/i.test(t.tagName)||(t.tabIndex=-1),t.focus())}})}),!1)}function s(e){return e.slice(0,e.lastIndexOf("#"))}}(i)),s=n(i),r=function(e){const t=[].reduce;function n(e){return e[e.length-1]}function o(e){return+e.nodeName.toUpperCase().replace("H","")}function s(t){if(!function(e){try{return e instanceof window.HTMLElement||e instanceof window.parent.HTMLElement}catch(t){return e instanceof window.HTMLElement}}(t))return t;if(e.ignoreHiddenElements&&(!t.offsetHeight||!t.offsetParent))return null;const n=t.getAttribute("data-heading-label")||(e.headingLabelCallback?String(e.headingLabelCallback(t.innerText)):(t.innerText||t.textContent).trim()),s={id:t.id,children:[],nodeName:t.nodeName,headingLevel:o(t),textContent:n};return e.includeHtml&&(s.childNodes=t.childNodes),e.headingObjectCallback?e.headingObjectCallback(s,t):s}return{nestHeadingsArray:function(o){return t.call(o,(function(t,o){const r=s(o);return r&&function(t,o){const r=s(t),l=r.headingLevel;let a=o,c=n(a),i=l-(c?c.headingLevel:0);for(;i>0&&(c=n(a),!c||l!==c.headingLevel);)c&&void 0!==c.children&&(a=c.children),i--;l>=e.collapseDepth&&(r.isCollapsed=!0),a.push(r)}(r,t.nest),t}),{nest:[]})},selectHeadings:function(t,n){let o=n;e.ignoreSelector&&(o=n.split(",").map((function(t){return`${t.trim()}:not(${e.ignoreSelector})`})));
7try{return t.querySelectorAll(o)}catch(e){return console.warn(`Headers not found with selector: ${o}`),null}}}}(i),u();const d=function(e){try{return e.contentElement||document.querySelector(e.contentSelector)}catch(t){return console.warn(`Contents element not found: ${e.contentSelector}`),null}}(i);if(null===d)return;const f=v(i);if(null===f)return;if(l=r.selectHeadings(d,i.headingSelector),null===l)return;const b=r.nestHeadingsArray(l).nest;if(i.skipRendering)return this;s.render(f,b);let g=!1;const y=i.scrollHandlerTimeout||i.throttleTimeout;a=function(e,t,n="auto"){switch(n){case"debounce":return p(e,t);case"throttle":return h(e,t);default:return t<334?p(e,t):h(e,t)}}((e=>{s.updateToc(l,e),!i.disableTocScrollSync&&!g&&function(e){const t=e.tocScrollingWrapper||e.tocElement||document.querySelector(e.tocSelector);if(t&&t.scrollHeight>t.clientHeight){const n=t.querySelector(`.${e.activeListItemClass}`);if(n){const o=n.offsetTop-e.tocScrollOffset;t.scrollTop=o>0?o:0}}}(i),i.enableUrlHashUpdateOnScroll&&t&&s.getCurrentlyHighlighting()&&s.updateUrlHashForHeader(l);const n=0===e?.target?.scrollingElement?.scrollTop;(e&&(0===e.eventPhase||null===e.currentTarget)||n)&&(s.updateToc(l),i.scrollEndCallback?.(e))}),y,i.scrollHandlerType),t||(a(),t=!0),window.onhashchange=window.onscrollend=e=>{a(e)},i.scrollContainer&&document.querySelector(i.scrollContainer)?(document.querySelector(i.scrollContainer).addEventListener("scroll",a,!1),document.querySelector(i.scrollContainer).addEventListener("resize",a,!1)):(document.addEventListener("scroll",a,!1),document.addEventListener("resize",a,!1));let S=null;c=h((e=>{g=!0,i.scrollSmooth&&s.disableTocAnimation(e),s.updateToc(l,e),S&&clearTimeout(S),S=setTimeout((()=>{s.enableTocAnimation()}),i.scrollSmoothDuration),setTimeout((()=>{g=!1}),i.scrollSmoothDuration+100)}),i.throttleTimeout),i.scrollContainer&&document.querySelector(i.scrollContainer)?document.querySelector(i.scrollContainer).addEventListener("click",c,!1):document.addEventListener("click",c,!1)}function u(){const e=v(i);null!==e&&(i.skipRendering||e&&(e.innerHTML=""),i.scrollContainer&&document.querySelector(i.scrollContainer)?(document.querySelector(i.scrollContainer).removeEventListener("scroll",a,!1),document.querySelector(i.scrollContainer).removeEventListener("resize",a,!1),s&&document.querySelector(i.scrollContainer).removeEventListener("click",c,!1)):(document.removeEventListener("scroll",a,!1),document.removeEventListener("resize",a,!1),s&&document.removeEventListener("click",c,!1)))}function f(e){u(),d(e||i)}const m=Object.prototype.hasOwnProperty;function h(e,t,n){let o,s;return t||(t=250),function(...r){const l=n||this,a=+new Date;o&&a<o+t?(clearTimeout(s),s=setTimeout((()=>{o=a,e.apply(l,r)}),t)):(o=a,e.apply(l,r))}}function p(e,t){let n;return(...o)=>{clearTimeout(n),n=setTimeout((()=>e.apply(this,o)),t)}}function v(e){try{return e.tocElement||document.querySelector(e.tocSelector)}catch(t){return console.warn(`TOC element not found: ${e.tocSelector}`),null}}const b={_options:i,_buildHtml:s,_parseContent:r,init:d,destroy:u,refresh:f};var g,y;g=("undefined"==typeof global||global instanceof HTMLElement)&&window||global,y=e=>{const n=!!(e&&e.document&&e.document.querySelector&&e.addEventListener);if("undefined"!=typeof window||n)return e.tocbot=t,t},"function"==typeof define&&define.amd?define([],y(g)):"object"!=typeof exports||exports instanceof HTMLElement?g.tocbot=y(g):module.exports=y(g)})(),svDocReady((function(){(()=>{let e=!1;document.addEventListener("keydown",(function(t){e="Tab"===t.key,window.tabIsPressed=e})),document.addEventListener("mousedown",(function(t){e=!1})),setTimeout((function(){document.querySelectorAll('a, .env-link, button, input, textarea, select, [role="button"]').forEach((function(t){t.addEventListener("focus",(function(n){e&&(t.classList.add("focused"),e=!1)})),t.addEventListener("blur",(function(e){t.classList.remove("focused")}))}))}),100)})(),e(),(()=>{const e=()=>{const e=document.querySelectorAll(`.${t}-archive__pagination .pagination a, .${t}-archive__pagination .pagination span`);window.outerWidth<769?e.forEach((e=>{var t,n;const o=e;o.classList.contains("prev")||o.classList.contains("next")||o.classList.contains("current")||(null===(t=o.nextElementSibling)||void 0===t?void 0:t.classList.contains("current"))||(null===(n=o.previousElementSibling)||void 0===n?void 0:n.classList.contains("current"))||(o.style.display="none")})):e.forEach((e=>{e.style.display="block"}))};window.addEventListener("resize",(()=>{e()})),e();const n=document.querySelector(".sv-facetedsearch-portlet");n&&((e,t)=>{const n=window.MutationObserver||window.WebKitMutationObserver;if(!e||1!==e.nodeType)return;if(n){const o=new n(t);return o.observe(e,{childList:!0,subtree:!0}),o}const o=()=>{t()};e.addEventListener("DOMNodeInserted",o),e.addEventListener("DOMNodeRemoved",o)})(n,(()=>{e()}));const o=document.querySelector(".sv-facetedsearch-portlet"),s=document.querySelector(".sv-standardsearch-portlet");if(s&&(s.addEventListener("focusin",(e=>{const t=e.target;"A"===t.tagName&&t.classList.add("focused")})),s.addEventListener("focusout",(e=>{const t=e.target;"A"===t.tagName&&t.classList.remove("focused")})),s.addEventListener("click",(e=>{const t=e.target;"A"===t.tagName&&t.classList.remove("focused")}))),o){const e=()=>{const e=document.querySelectorAll(`.${t}-archive .sv-search-facet-item-selected`),n=document.querySelector(`.${t}-archive-facet-tags`),o=document.getElementById(`${t}-archive-facet-tags__filters-description`);
7if(e.length&&n){if(!o){const e=document.createElement("div");e.id=`${t}-archive-facet-tags__filters-description`,n.before(e)}n.classList.add(`${t}-archive-facet-tags__show`),n.setAttribute("aria-describedby",`${t}-archive-facet-tags__filters-description`);const s=document.createElement("ul");s.className=`${t}-archive-facet-tags__listning`,e.forEach((e=>{const t=e.cloneNode(!0);t.querySelector("a").insertAdjacentHTML("afterbegin","<span class='env-assistive-text'>Ta bort facetten</span>"),s.appendChild(t)})),n.innerHTML="",n.appendChild(s)}else o&&o.remove()};e(),new MutationObserver((n=>{n.forEach((n=>{"childList"===n.type&&Array.from(n.addedNodes).forEach((n=>{var o,s;((null===(o=n.classList)||void 0===o?void 0:o.contains(`${t}-archive`))||(null===(s=n.classList)||void 0===s?void 0:s.contains(`${t}-news-archive__all-search-hits`)))&&e()}))}))})).observe(o,{childList:!0,subtree:!0}),o.addEventListener("focusin",(e=>{const t=e.target;t.matches(".facet-title, a, .sv-search-facet-item a, .pagination a, svg")&&t.classList.add("focused")})),o.addEventListener("focusout",(e=>{const t=e.target;t.matches(".facet-title, a, .sv-search-facet-item a, .pagination a, svg")&&t.classList.remove("focused")})),o.addEventListener("click",(e=>{const t=e.target;t.matches(".facet-title, a, .sv-search-facet-item a, .pagination a, svg")&&t.classList.remove("focused")}))}document.querySelectorAll(`.${t}-search-filter__exist .count`).forEach((e=>{var n;const o=null===(n=e.closest(`.${t}-search-filter__exist`))||void 0===n?void 0:n.querySelector("a");if(o){const t=document.createElement("span");t.className="env-assistive-text",t.textContent="Antal träffar",o.appendChild(t);const n=e.cloneNode(!0);o.appendChild(n)}}));const r=document.querySelector(".sv-facetedsearch-portlet");document.body.addEventListener("click",(e=>{e.target.closest(`.${t}-search-filter__wrapper`)||document.querySelectorAll(`.${t}-search-filter__sort-button`).forEach((e=>{e.classList.remove("focused");const n=e.closest(`.${t}-search-filter__wrapper`);n&&n.classList.remove("active"),e.setAttribute("aria-expanded","false");const o=e.nextElementSibling;o&&o.setAttribute("aria-hidden","true");const s=null==n?void 0:n.querySelector(`.${t}-search-filter__facet-list`);s&&(s.style.display="none")}))})),null==r||r.addEventListener("click",(e=>{const n=e.target;if(n.classList.contains("facet-title")){e.preventDefault();const o=n.nextElementSibling;if(o.style.display="none"!==o.style.display&&o.style.display?"none":"block","true"===n.getAttribute("aria-expanded")){document.querySelectorAll(`.${t}-search-filter__sort-button`).forEach((e=>{e.classList.remove("focused");const n=e.closest(`.${t}-search-filter__wrapper`);n&&n.classList.remove("active"),e.setAttribute("aria-expanded","false");const o=e.nextElementSibling;o&&o.setAttribute("aria-hidden","true");const s=null==n?void 0:n.querySelector(`.${t}-search-filter__facet-list`);s&&(s.style.display="none")})),n.classList.add("focused");const e=n.closest(`.${t}-search-filter__wrapper`);e&&e.classList.remove("active"),n.setAttribute("aria-expanded","false");const s=n.nextElementSibling;s&&s.setAttribute("aria-hidden","true"),o.style.display="none"}else{document.querySelectorAll(`.${t}-search-filter__sort-button`).forEach((e=>{e.classList.remove("focused");const n=e.closest(`.${t}-search-filter__wrapper`);n&&n.classList.remove("active"),e.setAttribute("aria-expanded","false");const o=e.nextElementSibling;o&&o.setAttribute("aria-hidden","true");const s=null==n?void 0:n.querySelector(`.${t}-search-filter__facet-list`);s&&(s.style.display="none")})),n.classList.add("focused");const e=n.closest(`.${t}-search-filter__wrapper`);e&&e.classList.add("active"),n.setAttribute("aria-expanded","true");const s=n.nextElementSibling;s&&s.setAttribute("aria-hidden","false"),o.style.display="block"}}}))})(),(e=>{const t=document.querySelector(e);t&&t.setAttribute("aria-current","page")})(`.${t}-breadcrumbs__link-last`),(()=>{document.querySelectorAll(".sv-collapsible-content").forEach((e=>{const t=e.querySelector("a[aria-controls]"),n=null==t?void 0:t.getAttribute("aria-controls"),o=e.querySelector("h2");o&&n&&o.setAttribute("id",`heading-${n}`)}));const e=document.querySelector(".con-toc__wrapper");e&&(e.setAttribute("aria-live","polite"),e.setAttribute("aria-atomic","true")),window.innerWidth<768?r():l(),document.querySelectorAll('.env-tabs [role="tab"]').forEach((e=>{e.addEventListener("click",(()=>{setTimeout((()=>{tocbot.refresh(),window.innerWidth<768?r():l()}),50)}))}));const t=document.querySelector('a[href="#contactCardTitle"]');t&&(t.textContent="Kontakt");const n=document.querySelectorAll('.env-tabs [role="tab"]'),o=new MutationObserver((()=>{setTimeout((()=>{tocbot.refresh(),window.innerWidth<768?r():l()}),20)}));
7n.forEach((e=>{o.observe(e,{attributes:!0,attributeFilter:["aria-selected"]})}))})(),function(){let e=!1;function t(){e&&this.classList.add("focused")}function n(){this.classList.remove("focused")}document.addEventListener("keydown",(t=>{"Tab"===t.key&&(e=!0)})),document.addEventListener("keyup",(()=>{e=!1})),document.querySelectorAll(".rek-prediction").forEach((e=>{new MutationObserver((()=>{e.querySelectorAll("a").forEach((e=>{e.removeEventListener("focus",t),e.removeEventListener("blur",n),e.addEventListener("focus",t),e.addEventListener("blur",n)}))})).observe(e,{childList:!0,subtree:!0}),e.querySelectorAll("a").forEach((e=>{e.addEventListener("focus",t),e.addEventListener("blur",n)}))}))}(),(()=>{const e=document.querySelector(`.${t}-header__search-button`),n=document.querySelector(`.${t}-header__search-icon`),o=document.querySelector(`.${t}-header__icon-close`),s=document.querySelector(`.${t}-header__searchbox-wrapper`);s&&(s.setAttribute("aria-hidden","true"),s.id||(s.id="conFormPortletId"),e&&e.setAttribute("aria-controls",s.id),null==e||e.addEventListener("click",(()=>{e.classList.toggle("active"),document.body.classList.toggle("mobile-search-active"),"false"===e.getAttribute("aria-expanded")?(e.setAttribute("aria-expanded","true"),e.setAttribute("aria-label","Stäng sökfält"),s.setAttribute("aria-hidden","false"),null==o||o.classList.toggle("show"),null==n||n.classList.toggle("show"),s.classList.toggle("show"),setTimeout((()=>{const e=document.querySelector(`.${t}-header__search-input-field-mobile`);null==e||e.focus()}),100)):(e.setAttribute("aria-expanded","false"),e.setAttribute("aria-label","Ãppna sök"),s.setAttribute("aria-hidden","true"),null==n||n.classList.toggle("show"),null==o||o.classList.toggle("show"),s.classList.toggle("show"))})),document.addEventListener("keydown",(t=>{"Escape"===t.key&&"false"===s.getAttribute("aria-hidden")&&(null==e||e.click(),null==e||e.focus())})))})(),document.querySelectorAll(".con-header__search-input-button-wrapper, .con-page-not-found__search-input-button-wrapper").forEach((e=>{const t=e.querySelector(".con-header__search-input-field, .con-page-not-found__search-input-field"),n=e.querySelector(".con-header__searchbar-deletetext, .con-page-not-found__searchbar-deletetext");if(!t||!n)return;const o=()=>{n.style.display=t.value.trim().length>0?"block":"none"};t.addEventListener("input",o),t.addEventListener("keyup",o),n.addEventListener("click",(e=>{e.preventDefault(),t.value="",o(),t.focus()})),o()})),(()=>{const e=document.querySelector(`.${t}-archive`),n=document.querySelector('input[name="query"].csp'),o=document.querySelector('input[type="submit"].csp');e&&""===decodeURIComponent(window.location.search.replace(new RegExp("^(?:.*[&\\?]"+encodeURIComponent("query").replace(/[\.\+\*]/g,"\\$&")+"(?:\\=([^&]*))?)?.*$","i"),"$1"))&&(window.location.hash||n&&o&&(n.value="*:*",o.click(),n.value=""),"query/*%3A*"===document.URL.split("#")[1]&&n&&(n.value=""))})(),document.querySelectorAll(`.${t}-disturbance-message__all`).forEach((e=>{const n=window.sessionStorage.getItem("closeDisturbanceMessage");if(n){const o=JSON.parse(n),s=e.querySelector(`.${t}-disturbance-message__button`);s&&o.includes(s.getAttribute("data-identifier"))?e.style.display="none":e.style.display="block"}else e.style.display="block"})),document.querySelectorAll(`.${t}-disturbance-message__button[data-identifier]`).forEach((e=>{e.addEventListener("click",(()=>{const n=e.getAttribute("data-identifier");if(n){let o=[];const s=window.sessionStorage.getItem("closeDisturbanceMessage");s&&(o=JSON.parse(s)),o.push(n),window.sessionStorage.setItem("closeDisturbanceMessage",JSON.stringify(o));const r=e.closest(`.${t}-disturbance-message__all`);r&&(r.style.display="none")}}))})),(()=>{const e=document.querySelectorAll(".events-tabs"),n=document.querySelector(`.${t}-external-events`),o=document.querySelector(`.${t}-internal-events`);if(e.length){e.forEach((t=>{t.addEventListener("click",(()=>{t.classList.contains("events-tabs--active")||(e.forEach((e=>{e.classList.remove("events-tabs--active"),e.setAttribute("aria-selected","false")})),t.classList.add("events-tabs--active"),t.setAttribute("aria-selected","true"),"kommunkalendar"===t.id?(null==o||o.classList.add("show"),null==o||o.classList.remove("hide"),null==n||n.classList.add("hide"),null==n||n.classList.remove("show")):"evenemang"===t.id&&(null==n||n.classList.add("show"),null==n||n.classList.remove("hide"),null==o||o.classList.add("hide"),null==o||o.classList.remove("show")))}))}));const t=document.getElementById("kommunkalendar"),s=document.getElementById("evenemang");(null==t?void 0:t.classList.contains("events-tabs--active"))?(null==o||o.classList.add("show"),null==o||o.classList.remove("hide"),null==n||n.classList.add("hide"),null==n||n.classList.remove("show")):(null==s?void 0:s.classList.contains("events-tabs--active"))&&(null==n||n.classList.add("show"),null==n||n.classList.remove("hide"),null==o||o.classList.add("hide"),null==o||o.classList.remove("show"))}})(),document.querySelectorAll("#show-readspeaker, #show-readspeaker-mobile").forEach((function(e){e.addEventListener("click",(function(){var e,t;null===(e=document.querySelector(".sv-rs-webapp"))||void 0===e||e.classList.toggle("active"),null===(t=document.querySelector(".rsplay"))||void 0===t||t.click()}))})),(()=>{const e=new URLSearchParams(window.location.search).get("ae");if(!e)return;const t=decodeURIComponent(decodeURIComponent(e)),n=new RegExp(`(${t})`,"gi"),o=new Set,s=e=>{var t;if(e.nodeType===Node.TEXT_NODE){const s=null!==(t=e.textContent)&&void 0!==t?t:"",r=[...s.matchAll(n)];if(0===r.length)return;const l=e.parentNode;if(!l)return;const a=[];let c=0;for(const e of r){const t=e.index,n=t+e[0].length;t>c&&a.push(document.createTextNode(s.slice(c,t)));const o=document.createElement("mark");o.textContent=s.slice(t,n),a.push(o),c=n}c<s.length&&a.push(document.createTextNode(s.slice(c)));for(const t of a)if(l.insertBefore(t,e),t.nodeType===Node.ELEMENT_NODE&&"MARK"===t.tagName){const e=t.closest(".sv-collapsible-content");
7if(e){const t=e.querySelector("a.env-collapse-header");t&&!o.has(t)&&(t.click(),o.add(t))}}l.removeChild(e)}else e.nodeType===Node.ELEMENT_NODE&&e.childNodes&&!["SCRIPT","STYLE","MARK"].includes(e.tagName)&&[...e.childNodes].forEach((e=>s(e)))},r=document.querySelector("main");r&&s(r)})(),(()=>{const e=document.querySelector(".con-progressbar-horizontal--numbered");if(!e)return;if(!e.querySelector(".con-progressbar-horizontal--current"))return;let t=!1;!function e(n){if(n instanceof HTMLElement&&n.classList.contains("con-progressbar-horizontal--current"))t=!0;else if(!t){n instanceof HTMLElement&&n.classList.contains("sv-text-portlet-content")&&n.classList.add("con-progressbar-horizontal--checked");for(const o of Array.from(n.children))if(e(o),t)break}}(e)})(),document.querySelectorAll(`.${t}-event-info__add-button`).forEach((e=>{e.addEventListener("click",(()=>{const t=e.dataset.title||"Evenemang",n=e.dataset.start||"0000",o=e.dataset.end||"0000",s=e.dataset.location||"Ingen plats angiven",r=e=>{let t=e.replace(":","");return 3===t.length&&(t="0"+t),t},l=r(n),a=r(o),c=`/rest-api/icsFile/ics-event/${encodeURIComponent(t)}/${e.dataset.date}/${l}/${a}/${encodeURIComponent(s)}`;fetch(c).then((e=>{if(!e.ok)throw new Error(`Serverfel: ${e.status}`);return e.text()})).then((e=>{const n=new Blob([e],{type:"text/calendar"}),o=document.createElement("a");o.href=URL.createObjectURL(n);const s=t.replace(/[\/\\?%*:|"<>]/g,"_");o.download=`${s}.ics`,o.click(),URL.revokeObjectURL(o.href)})).catch((e=>console.error("Fel vid anrop av ICS REST-app:",e)))}))})),(()=>{const e=()=>{const e=document.querySelector(".con-back-to-calendarlist");e&&e.addEventListener("click",(()=>{const t=e.dataset.eventsListLink||"/evenemang",n=window.location.search;window.location.href=`${t}${n}`}))};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",e):e()})(),document.querySelectorAll('[class*="con-puff__shape--"]').forEach((e=>{const t=Array.from(e.classList).find((e=>e.startsWith("con-puff__shape--"))),n=e.closest('[class*="sv-column"]');if(n&&n.closest(".con-puff__inner-container")){const o=e.style.backgroundColor;o&&(n.style.backgroundColor=o,e.style.backgroundColor=""),t&&(n.classList.add(t),e.classList.remove(t))}})),(()=>{const e=document.querySelector(".con-share-page__btn");e&&e.addEventListener("click",(()=>{const t=encodeURIComponent(window.location.href),n=document.createElement("div");n.className="con-share-page__wrapper",n.innerHTML=`\n <ul class="con-share-page__list">\n <li>\n <a href="https://www.facebook.com/sharer/sharer.php?u=${t}" rel="external" class="con-share-page__link">\n <span class="env-assistive-text">dela sidan på</span>\n Facebook\n </a>\n </li>\n <li>\n <a href="https://www.linkedin.com/shareArticle?mini=true&url=${t}" rel="external" class="con-share-page__link">\n <span class="env-assistive-text">dela sidan på</span>\n LinkedIn\n </a>\n </li>\n <li>\n <a href="mailto:?Subject=Länk från Mölndal.se&Body=${t}" class="con-share-page__link">\n <span class="env-assistive-text">dela sidan via</span>\n E-post\n </a>\n </li>\n </ul>\n `,e.insertAdjacentElement("afterend",n),e.remove()}))})(),svDocReady((()=>{lozad().observe()})),a(),(()=>{function e(){const e=document.querySelector(".sv-cookie-consent-modal");if(!e)return;const t=Array.from(e.querySelectorAll("button.env-button.env-button--primary")).find((e=>{var t;return"Godkänn alla kakor"===(null===(t=e.textContent)||void 0===t?void 0:t.trim())}));t&&!t.hasAttribute("data-vizzit-bound")&&(t.addEventListener("click",(()=>{$vizzit.cookie.set()})),t.setAttribute("data-vizzit-bound","true"));const n=e.querySelector("button.env-button.env-button--primary[form]"),o=e.querySelector("input[name=analytics]");n&&o&&!n.hasAttribute("data-vizzit-bound")&&(n.addEventListener("click",(()=>{o.checked&&$vizzit.cookie.set()})),n.setAttribute("data-vizzit-bound","true"))}new MutationObserver((()=>e())).observe(document.body,{childList:!0,subtree:!0}),window.addEventListener("load",e)})(),(()=>{const e=document.querySelector(".con-progressbar-vertical");if(!e)return;const t=Array.from(e.querySelectorAll(".sv-collapsible-content"));if(!e.querySelector(".sv-decoration-progressbar-vertikal-status-markor, .sv-decoration-progressbar-vertikal-status-markor-open"))return;let n=!1;t.forEach((e=>{if(e.querySelector(".sv-decoration-progressbar-vertikal-status-markor, .sv-decoration-progressbar-vertikal-status-markor-open"))return e.classList.add("con-progressbar-vertical--current"),void(n=!0);n||e.classList.add("con-progressbar-vertical--checked")}))})()}))})(); 8//# sourceMappingURL=client.min.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.