1(()=>{var e={237(){var e;0!==(e=document.querySelectorAll(".chapters")).length&&(e.forEach(function(e){!function(e){var t=e.nextElementSibling,n=t.querySelectorAll(":scope > *, .anchor-title"),o=t.dataset.id?t.dataset.id:"0",a=["h1","h2"],r=e.querySelector("ul"),i=document.createElement("li"),c=!1;i.textContent="Innhold",i.className="chapters-heading",i.addEventListener("click",function(){e.classList.toggle("inactive")}),e.querySelector(".show-chapters").addEventListener("click",function(){e.classList.toggle("inactive")}),r.appendChild(i);for(var s=function(){var e=n[l];if(a.includes(e.tagName.toLowerCase())){var t=document.createElement("a");t.classList.add("level-".concat(e.tagName.toLowerCase())),t.textContent=e.textContent,t.id="chapter-".concat(l,"-").concat(o),t.addEventListener("click",function(t){t.preventDefault(),window.scrollTo({top:e.offsetTop-40,left:0,behavior:"smooth"})});var i=document.createElement("li");i.appendChild(t),r.appendChild(i),c=!0}},l=0;l<n.length;l++)s();c&&e.classList.add("active"),document.addEventListener("scroll",function(){for(var e=r.querySelectorAll("li a"),t=0;t<e.length;t++)e[t].classList.remove("active");for(var i=0;i<n.length;i++){var c=n[i];if(a.includes(c.tagName.toLowerCase())&&c.offsetTop>window.scrollY)return void document.getElementById("chapter-".concat(i,"-").concat(o)).classList.add("active")}})}(e)}),document.dispatchEvent(new CustomEvent("hoyreChaptersInitialized")))},330(){var e,t,n=document.querySelector(".post-type-archive-politics .archive-search input"),o=document.querySelector(".post-type-archive-politics .search-results"),a=(e=function(e){var t=e.target.value;t.length<3?document.body.classList.remove("politics-search-results"):(document.body.classList.add("politics-search-results"),document.body.classList.add("politics-search-results__loading"),fetch("".concat(window.teftFrontend.rest,"swp_api/search?s=").concat(t,"&post_type=politics")).then(function(e){return e.json()}).then(function(e){if(document.body.classList.remove("politics-search-results__loading"),e.length<=0)document.body.classList.add("politics-search-results__no-results"),o.innerHTML='<div class="alignwide post-category"><h3 style="text-align:center;">Ingen resultater</h3></div>';else{o.innerHTML="";for(var t=0;t<e.length;t++){var n=document.createElement("div");n.classList.add("post-category"),n.classList.add("alignwide"),o.appendChild(n);var a=document.createElement("h2");n.appendChild(a);var r=document.createElement("a");r.textContent=e[t].title.rendered,r.setAttribute("href",e[t].link),a.appendChild(r)}}}))},function(){var n=this,o=arguments;clearTimeout(t),t=setTimeout(function(){t=null,e.apply(n,o)},400)});n&&n.addEventListener("keyup",a)},782(){function e(e){var t=document.querySelector(".footer-column-right"),n=parseInt(window.getComputedStyle(t).getPropertyValue("grid-auto-rows").replace("px",""),10),o=parseInt(window.getComputedStyle(t).getPropertyValue("grid-row-gap").replace("px",""),10);if(e.querySelector(".footer-widget--title")&&e.querySelector(".menu")){var a=e.querySelector(".footer-widget--title").getBoundingClientRect().height+e.querySelector(".menu").getBoundingClientRect().height,r=Math.ceil((a+o)/(n+o));e.style.gridRowEnd="span ".concat(r)}}var t,n,o,a;window.onload=function(){for(var t=document.querySelectorAll(".footer-menus"),n=0;n<t.length;n++)e(t[n])}(),window.onload=(t=document.getElementById("footer-newsletter-banner"),n=localStorage.getItem("hideNLBanner"),o=document.getElementById("footer-newsletter-banner-close-button"),t&&n&&(t.style.display="none"),void(o&&(o.onclick=function(){t.style.display="none",localStorage.setItem("hideNLBanner",!0)}))),window.onload=void((a=document.getElementById("ungapped-newsletter-footer"))&&a.addEventListener("submit",function(e){e.preventDefault(),window.dataLayer.push({event:"newsletterSignup"}),localStorage.setItem("hideNLBanner",!0),e.target.submit()}))},952(){var e=document.querySelector(".crisis-modal");e&&e.querySelector(".close-modal").addEventListener("click",function(){e.remove()})}};const t={};function n(o){const a=t[o];if(void 0!==a)return a.exports;const r=t[o]={exports:{}};return e[o](r,r.exports,n),r.exports}(()=>{"use strict";var e=!("undefined"==typeof window||!window.document||!window.document.createElement),t=void 0;function o(e){e.handlers===e.nextHandlers&&(e.nextHandlers=e.handlers.slice())}function a(e){this.target=e,this.events={}}a.prototype.getEventHandlers=function(e,t){var n,o=String(e)+" "+String((n=t)?!0===n?100:(0|n.capture)+(n.passive<<1)+(n.once<<2):0);return this.events[o]||(this.events[o]={handlers:[],handleEvent:void 0},this.events[o].nextHandlers=this.events[o].handlers),this.events[o]},a.prototype.handleEvent=function(e,t,n){var o=this.getEventHandlers(e,t);
1o.handlers=o.nextHandlers,o.handlers.forEach(function(e){e&&e(n)})},a.prototype.add=function(e,t,n){var a=this,r=this.getEventHandlers(e,n);o(r),0===r.nextHandlers.length&&(r.handleEvent=this.handleEvent.bind(this,e,n),this.target.addEventListener(e,r.handleEvent,n)),r.nextHandlers.push(t);var i=!0;return function(){if(i){i=!1,o(r);var c=r.nextHandlers.indexOf(t);r.nextHandlers.splice(c,1),0===r.nextHandlers.length&&(a.target&&a.target.removeEventListener(e,r.handleEvent,n),r.handleEvent=void 0)}}};var r="__consolidated_events_handlers__";function i(n,o,i,c){n[r]||(n[r]=new a(n));var s=function(n){if(n)return void 0===t&&(t=function(){if(!e)return!1;if(!window.addEventListener||!window.removeEventListener||!Object.defineProperty)return!1;var t=!1;try{var n=Object.defineProperty({},"passive",{get:function(){t=!0}}),o=function(){};window.addEventListener("testPassiveEventSupport",o,n),window.removeEventListener("testPassiveEventSupport",o,n)}catch(e){}return t}()),t?n:!!n.capture}(c);return n[r].add(o,i,s)}var c=["input","select","textarea","a[href]","button","[tabindex]:not(slot)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],s=c.join(","),l="undefined"==typeof Element,u=l?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,d=!l&&Element.prototype.getRootNode?function(e){return e.getRootNode()}:function(e){return e.ownerDocument},v=function(e,t,n){var o=Array.prototype.slice.apply(e.querySelectorAll(s));return t&&u.call(e,s)&&o.unshift(e),o.filter(n)},f=function e(t,n,o){for(var a=[],r=Array.from(t);r.length;){var i=r.shift();if("SLOT"===i.tagName){var c=i.assignedElements(),l=e(c.length?c:i.children,!0,o);o.flatten?a.push.apply(a,l):a.push({scope:i,candidates:l})}else{u.call(i,s)&&o.filter(i)&&(n||!t.includes(i))&&a.push(i);var d=i.shadowRoot||"function"==typeof o.getShadowRoot&&o.getShadowRoot(i),v=!o.shadowRootFilter||o.shadowRootFilter(i);if(d&&v){var f=e(!0===d?i.children:d.children,!0,o);o.flatten?a.push.apply(a,f):a.push({scope:i,candidates:f})}else r.unshift.apply(r,i.children)}}return a},p=function(e,t){return e.tabIndex<0&&(t||/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||e.isContentEditable)&&isNaN(parseInt(e.getAttribute("tabindex"),10))?0:e.tabIndex},m=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},h=function(e){return"INPUT"===e.tagName},b=function(e){var t=e.getBoundingClientRect(),n=t.width,o=t.height;return 0===n&&0===o},g=function(e,t){return!(t.disabled||function(e){return h(e)&&"hidden"===e.type}(t)||function(e,t){var n=t.displayCheck,o=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var a=u.call(e,"details>summary:first-of-type")?e.parentElement:e;if(u.call(a,"details:not([open]) *"))return!0;var r=d(e).host,i=(null==r?void 0:r.ownerDocument.contains(r))||e.ownerDocument.contains(e);if(n&&"full"!==n){if("non-zero-area"===n)return b(e)}else{if("function"==typeof o){for(var c=e;e;){var s=e.parentElement,l=d(e);if(s&&!s.shadowRoot&&!0===o(s))return b(e);e=e.assignedSlot?e.assignedSlot:s||l===e.ownerDocument?s:l.host}e=c}if(i)return!e.getClientRects().length}return!1}(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some(function(e){return"SUMMARY"===e.tagName})}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var o=t.children.item(n);if("LEGEND"===o.tagName)return!!u.call(t,"fieldset[disabled] *")||!o.contains(e)}return!0}t=t.parentElement}return!1}(t))},y=function(e,t){return!(function(e){return function(e){return h(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||d(e),o=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=o(window.CSS.escape(e.name));else try{t=o(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var a=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!a||a===e}(e)}(t)||p(t)<0||!g(e,t))},w=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},L=function e(t){var n=[],o=[];return t.forEach(function(t,a){var r=!!t.scope,i=r?t.scope:t,c=p(i,r),s=r?e(t.candidates):i;
10===c?r?n.push.apply(n,s):n.push(i):o.push({documentOrder:a,tabIndex:c,item:t,isScope:r,content:s})}),o.sort(m).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(n)},E=function(e,t){var n;return n=(t=t||{}).getShadowRoot?f([e],t.includeContainer,{filter:y.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:w}):v(e,t.includeContainer,y.bind(null,t)),L(n)},S=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==u.call(e,s)&&y(t,e)},N=c.concat("iframe").join(","),_=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==u.call(e,N)&&g(t,e)};function k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function x(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?k(Object(n),!0).forEach(function(t){C(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function C(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var T,q=(T=[],{activateTrap:function(e){if(T.length>0){var t=T[T.length-1];t!==e&&t.pause()}var n=T.indexOf(e);-1===n||T.splice(n,1),T.push(e)},deactivateTrap:function(e){var t=T.indexOf(e);-1!==t&&T.splice(t,1),T.length>0&&T[T.length-1].unpause()}}),O=function(e){return setTimeout(e,0)},A=function(e,t){var n=-1;return e.every(function(e,o){return!t(e)||(n=o,!1)}),n},D=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return"function"==typeof e?e.apply(void 0,n):e},F=function(e){return e.target.shadowRoot&&"function"==typeof e.composedPath?e.composedPath()[0]:e.target},I=function(e,t){var n,o=(null==t?void 0:t.document)||document,a=x({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0},t),r={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0},i=function(e,t,n){return e&&void 0!==e[t]?e[t]:a[n||t]},c=function(e){return r.containerGroups.findIndex(function(t){var n=t.container,o=t.tabbableNodes;return n.contains(e)||o.find(function(t){return t===e})})},s=function(e){var t=a[e];if("function"==typeof t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];t=t.apply(void 0,r)}if(!0===t&&(t=void 0),!t){if(void 0===t||!1===t)return t;throw new Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var c=t;if("string"==typeof t&&!(c=o.querySelector(t)))throw new Error("`".concat(e,"` as selector refers to no known node"));return c},l=function(){var e=s("initialFocus");if(!1===e)return!1;if(void 0===e)if(c(o.activeElement)>=0)e=o.activeElement;else{var t=r.tabbableGroups[0];e=t&&t.firstTabbableNode||s("fallbackFocus")}if(!e)throw new Error("Your focus-trap needs to have at least one focusable element");return e},u=function(){if(r.containerGroups=r.containers.map(function(e){var t,n,o=E(e,a.tabbableOptions),r=(t=e,(n=(n=a.tabbableOptions)||{}).getShadowRoot?f([t],n.includeContainer,{filter:g.bind(null,n),flatten:!0,getShadowRoot:n.getShadowRoot}):v(t,n.includeContainer,g.bind(null,n)));return{container:e,tabbableNodes:o,focusableNodes:r,firstTabbableNode:o.length>0?o[0]:null,lastTabbableNode:o.length>0?o[o.length-1]:null,nextTabbableNode:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=r.findIndex(function(t){return t===e});if(!(n<0))return t?r.slice(n+1).find(function(e){return S(e,a.tabbableOptions)}):r.slice(0,n).reverse().find(function(e){return S(e,a.tabbableOptions)})}}}),r.tabbableGroups=r.containerGroups.filter(function(e){return e.tabbableNodes.length>0}),r.tabbableGroups.length<=0&&!s("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times")},d=function e(t){!1!==t&&t!==o.activeElement&&(t&&t.focus?(t.focus({preventScroll:!!a.preventScroll}),r.mostRecentlyFocusedNode=t,function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select}(t)&&t.select()):e(l()))},p=function(e){var t=s("setReturnFocus",e);return t||!1!==t&&e},m=function(e){var t=F(e);c(t)>=0||(D(a.clickOutsideDeactivates,e)?n.deactivate({returnFocus:a.returnFocusOnDeactivate&&!_(t,a.tabbableOptions)}):D(a.allowOutsideClick,e)||e.preventDefault())},h=function(e){var t=F(e),n=c(t)>=0;n||t instanceof Document?n&&(r.mostRecentlyFocusedNode=t):(e.stopImmediatePropagation(),d(r.mostRecentlyFocusedNode||l()))},b=function(e){if(function(e){return"Escape"===e.key||"Esc"===e.key||27===e.ke
1yCode}(e)&&!1!==D(a.escapeDeactivates,e))return e.preventDefault(),void n.deactivate();(function(e){return"Tab"===e.key||9===e.keyCode})(e)&&function(e){var t=F(e);u();var n=null;if(r.tabbableGroups.length>0){var o=c(t),i=o>=0?r.containerGroups[o]:void 0;if(o<0)n=e.shiftKey?r.tabbableGroups[r.tabbableGroups.length-1].lastTabbableNode:r.tabbableGroups[0].firstTabbableNode;else if(e.shiftKey){var l=A(r.tabbableGroups,function(e){var n=e.firstTabbableNode;return t===n});if(l<0&&(i.container===t||_(t,a.tabbableOptions)&&!S(t,a.tabbableOptions)&&!i.nextTabbableNode(t,!1))&&(l=o),l>=0){var v=0===l?r.tabbableGroups.length-1:l-1;n=r.tabbableGroups[v].lastTabbableNode}}else{var f=A(r.tabbableGroups,function(e){var n=e.lastTabbableNode;return t===n});if(f<0&&(i.container===t||_(t,a.tabbableOptions)&&!S(t,a.tabbableOptions)&&!i.nextTabbableNode(t))&&(f=o),f>=0){var p=f===r.tabbableGroups.length-1?0:f+1;n=r.tabbableGroups[p].firstTabbableNode}}}else n=s("fallbackFocus");n&&(e.preventDefault(),d(n))}(e)},y=function(e){var t=F(e);c(t)>=0||D(a.clickOutsideDeactivates,e)||D(a.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},w=function(){if(r.active)return q.activateTrap(n),r.delayInitialFocusTimer=a.delayInitialFocus?O(function(){d(l())}):d(l()),o.addEventListener("focusin",h,!0),o.addEventListener("mousedown",m,{capture:!0,passive:!1}),o.addEventListener("touchstart",m,{capture:!0,passive:!1}),o.addEventListener("click",y,{capture:!0,passive:!1}),o.addEventListener("keydown",b,{capture:!0,passive:!1}),n},L=function(){if(r.active)return o.removeEventListener("focusin",h,!0),o.removeEventListener("mousedown",m,!0),o.removeEventListener("touchstart",m,!0),o.removeEventListener("click",y,!0),o.removeEventListener("keydown",b,!0),n};return(n={get active(){return r.active},get paused(){return r.paused},activate:function(e){if(r.active)return this;var t=i(e,"onActivate"),n=i(e,"onPostActivate"),a=i(e,"checkCanFocusTrap");a||u(),r.active=!0,r.paused=!1,r.nodeFocusedBeforeActivation=o.activeElement,t&&t();var c=function(){a&&u(),w(),n&&n()};return a?(a(r.containers.concat()).then(c,c),this):(c(),this)},deactivate:function(e){if(!r.active)return this;var t=x({onDeactivate:a.onDeactivate,onPostDeactivate:a.onPostDeactivate,checkCanReturnFocus:a.checkCanReturnFocus},e);clearTimeout(r.delayInitialFocusTimer),r.delayInitialFocusTimer=void 0,L(),r.active=!1,r.paused=!1,q.deactivateTrap(n);var o=i(t,"onDeactivate"),c=i(t,"onPostDeactivate"),s=i(t,"checkCanReturnFocus"),l=i(t,"returnFocus","returnFocusOnDeactivate");o&&o();var u=function(){O(function(){l&&d(p(r.nodeFocusedBeforeActivation)),c&&c()})};return l&&s?(s(p(r.nodeFocusedBeforeActivation)).then(u,u),this):(u(),this)},pause:function(){return r.paused||!r.active||(r.paused=!0,L()),this},unpause:function(){return r.paused&&r.active?(r.paused=!1,u(),w(),this):this}
1,updateContainerElements:function(e){var t=[].concat(e).filter(Boolean);return r.containers=t.map(function(e){return"string"==typeof e?o.querySelector(e):e}),r.active&&u(),this}}).updateContainerElements(e),n},R=document.querySelector(".site-header--nav-toggle"),P=document.querySelector(".site-header--nav-toggle .label"),G="open",j="main-navigation__dropdown-open",B=document.querySelector(".user-menu-item .sub-menu > li:last-child a"),H=!1,M=I(document.querySelector(".main-menu-container"),{fallbackFocus:R,onDeactivate:function(){document.body.classList.remove("main-navigation__is-visible"),document.body.classList.remove("site-search__is-visible");var e=document.querySelector(".main-menu__outer-wrapper.open"),t=document.querySelector(".menu-item.open");e&&e.classList.remove("open"),t&&t.classList.remove("open"),P.innerText=R.dataset.labelMenu,H=!1},onActivate:function(){document.body.classList.add("main-navigation__is-visible"),document.body.classList.remove("site-search__is-visible");var e=document.querySelector(".main-menu__wrapper.open");e&&e.classList.remove(G),P.innerText=R.dataset.labelClose,H=!0}});if(B){var U=I(document.querySelector(".logout-modal"),{fallbackFocus:B,onDeactivate:function(){document.body.classList.remove("logout__is-visible")},onActivate:function(){document.body.classList.add("logout__is-visible"),document.querySelector(".menu-item.open").classList.remove("open")}});B.addEventListener("click",function(e){e.preventDefault(),U.activate()}),document.querySelector(".logout-modal-inner button").addEventListener("click",function(e){e.preventDefault(),U.deactivate()})}var Y=function(e){e.target.parentNode.parentNode.classList.remove(G);var t=document.querySelector(".main-menu__wrapper.".concat(G));t.classList.remove(G),t.parentNode.classList.remove(G)};R&&i(R,"click",function(){(H=!H)?M.activate():M.deactivate()});var V=document.querySelectorAll(".site-header--nav-back");if(V)for(var z=0;z<V.length;z++)V[z].addEventListener("click",Y);var K=function(e,t){if(null!==e){var n=e.querySelector(".sub-menu__wrapper");t?(e.classList.add(G),n.setAttribute("aria-expanded","true"),n.querySelector("ul > li:first-child a").focus()):(e.classList.remove(G),n.setAttribute("aria-expanded","false"))}},$=function(){return document.querySelector(".main-menu > li.menu-item-has-children.".concat(G))},W=function(e){if(window.innerWidth>899&&!e.target.classList.contains("menu-item")){var t=$();K(t,!1),document.body.classList.remove(j),window.removeEventListener("click",W)}},X=function(e){e?(document.body.classList.add(j),window.addEventListener("click",W)):(document.body.classList.remove(j),window.removeEventListener("click",W))}
1,J=function(){var e=$();void 0!==e&&null===e&&X(!1)},Q=function(e){e.preventDefault();var t=$(),n=null!=t&&t!==e.target.parentNode,o=!e.target.parentNode.classList.contains(G);n?K(t,!1):o?X(!0):window.setTimeout(J,25),K(e.target.parentNode,o),e.target.parentNode.parentNode.parentNode.classList.toggle(G),e.target.parentNode.parentNode.parentNode.parentNode.classList.toggle(G)},Z=document.querySelectorAll(".main-menu > li.menu-item-has-children > button, .main-menu > li.menu-item-has-children > .dropdown-trigger");if(Z)for(var ee=0;ee<Z.length;ee++)Z[ee].addEventListener("click",Q);document.querySelectorAll(".main-menu > li.menu-item > button").forEach(function(e){e.addEventListener("focus",function(){var t=$();t&&t.contains(e)||(K(t,!1),X(!1))})}),function(){var e=document.querySelector("#masthead .button.mitt-hoyre.dropdown-trigger");if(e){var t=e.parentNode,n=!1,o=e.nextElementSibling,a=function(e){n?(document.body.classList.remove(j),t.classList.remove("open"),o.setAttribute("aria-expanded","false"),o.querySelector("ul > li:first-child a").focus(),n=!1):(e.preventDefault(),document.body.classList.add(j),t.classList.add("open"),o.setAttribute("aria-expanded","true"),n=!0)};e.addEventListener("click",a),document.body.addEventListener("click",function(e){n&&document.body.classList.contains(j)&&!t.contains(e.target)&&a()})}}();var te=[];function ne(e,t,n){e&&e.setAttribute("aria-expanded","false"),t&&t.setAttribute("aria-hidden","true"),document.body.classList.remove("site-search__is-visible"),n&&n.deactivate()}function oe(e,t){var n=t.querySelector(".links");n.innerHTML="",t.classList.add("active");for(var o=0;o<e.length;o++){var a=e[o],r=a.title.rendered,i=document.createElement("a");i.setAttribute("href",a.link),i.textContent=r,n.append(i)}}document.querySelectorAll("div.site-search-wrap").forEach(function(e){var t,n=e.previousElementSibling,o=e.querySelector("div.site-search__inner"),a=e.querySelector("input.search-input"),r=!(!n||!n.classList.contains("site-header--search--toggle")),c=I(e,{fallbackFocus:n});r&&i(n,"click",function(t){document.body.classList.contains("site-search__is-visible")?ne(n,e,c):function(e,t,n){e.setAttribute("aria-expanded","true"),t.setAttribute("aria-hidden","false"),document.body.classList.add("site-search__is-visible"),n.activate()}(n,e,c)}),a&&a.addEventListener("keyup",function(e){var t,n=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500;return function(){for(var a=arguments.length,r=new Array(a),i=0;i<a;i++)r[i]=arguments[i];clearTimeout(t),t=setTimeout(function(){e.apply(n,r)},o)}}(function(e){e.target.value?(o.classList.add("is-searching"),t!==e.target.value&&(t=e.target.value,function(e,t){var n=t.querySelector(".site-search__suggestions-main");n.innerHTML="";var o=document.createElement("a");o.textContent="Søk etter ".concat(e),o.setAttribute("href","/?s=".concat(e,"&site_id=").concat(window.teftFrontend.search.site_id)),n.append(o),function(e,t){var n=t.querySelector(".site-search__suggestions-politics"),o=t.querySelector(".site-search__suggestions-article"),a=t.querySelector(".site-search__suggestions-person");t.classList.add("loading"),te.push(e),fetch("".concat(window.teftFrontend.search.endpoint,"?s=").concat(e,"&site_id=").concat(window.teftFrontend.search.site_id,"&grouped=true&posts_per_page=3")).then(function(e){return e.json()}).then(function(r){e===te[te.length-1]&&(n.classList.remove("active"),o.classList.remove("active"),a.classList.remove("active"),t.classList.remove("loading"),r[0].posts&&r[0].posts.length>0&&oe(r[0].posts,o),r[1].posts&&r[1].posts.length>0&&oe(r[1].posts,n),r[2].posts&&r[2].posts.length>0&&oe(r[2].posts,a))})}(e,t)}(e.target.value,o))):o.classList.remove("is-searching")})),e.addEventListener("click",function(t){t.target===e&&ne(n,e,c)}),i(o,"keydown",function(t){"Escape"===t.key&&ne(n,e,c)})}),n(952);var ae,re,ie=0;function ce(){var e=(window.pageYOffset||document.scrollTop)-(document.clientTop||0);Number.isNaN(e)&&(e=0),ie<e?document.body.classList.remove("show-scroll-menu"):document.body.classList.add("show-scroll-menu"),e<104?document.body.classList.remove("sticky-scroll-menu"):document.body.classList.add("sticky-scroll-menu"),ie=e}function se(){window.dataLayer.push(arguments)}ce(),window.addEventListener("scroll",(ae=ce,re=Date.now(),function(){re+20-Date.now()<0&&(ae(),re=Date.now())})),n(782),n(330),n(237),window.dataLayer=window.dataLayer||[],window.gtag=se;for(var le=document.querySelectorAll(".copy-link"),ue=function(){var e=le[de];e.addEventListener("click",function(){var t,n;t=e.dataset.copy,(n=document.createElement("textarea")).value=t,document.body.appendChild(n),n.select(),document.execCommand("copy"),document.body.removeChild(n)})},de=0;de<le.length;de++)ue();se("consent","default",{ad_storage:"denied",analytics_storage:"denied",wait_for_update:500}),se("set","ads_data_redaction",!0)})()})();
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.