!function(){"use strict";var n={41347:function(n,t,e){e.d(t,{F:function(){return o}});var r=e(791);function o(n){const t=(0,r.prependHTTP)(n).match(/^(https?:)?\/\/(([^:/?#]*)(?::([0-9]+))?)([/]{0,1}[^?#]*)(\?[^#]*|)(#.*|)$/);if(t&&t[3])return t[3]}},46195:function(n,t,e){e.d(t,{x:function(){return u}});var r=window.lodash,o=e(2006),i=e(41347);function u(n){const t=(0,i.F)(n);if(!t)return!1;const e=(0,o.getOption)("adminUrl","/wp-admin/");if((0,r.includes)(n,e))return!0;const u=(0,o.getOption)("homeUrl",!1);return u?!(0,r.includes)(n,u):t!==window.location.hostname}},46344:function(n,t,e){e.d(t,{n:function(){return o}});var r=e(791);function o(n){return(0,r.getPath)(n)===(0,r.getPath)(window.location.href)&&(0,r.getFragment)(n)}},45100:function(n,t,e){e.d(t,{u:function(){return o}});var r=e(791);function o(n=".main-content"){const t=(0,r.getFragment)(window.location.href);if(t&&"#"!==t){const e=document.querySelector(t);if(e){const t=e.offsetTop,r=document.querySelector(n);r&&(r.scrollTop=t-10)}}}},2006:function(n){n.exports=window.nisje.settings},791:function(n){n.exports=window.wp.url}},t={};function e(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return n[r](i,i.exports,e),i.exports}e.n=function(n){var t=n&&n.__esModule?function(){return n.default}:function(){return n};return e.d(t,{a:t}),t},e.d=function(n,t){for(var r in t)e.o(t,r)&&!e.o(n,r)&&Object.defineProperty(n,r,{enumerable:!0,get:t[r]})},e.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},e.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})};var r={};!function(){e.r(r),e.d(r,{getHostname:function(){return u.F},isExternalUrl:function(){return c.x},isFragmentUrl:function(){return a.n},scrollToFragment:function(){return f.u},isAbsoluteUrl:function(){return l},getRelativeUrl:function(){return s},isFileUrl:function(){return d},isDataUrl:function(){return p},isModifiedEvent:function(){return v}});var n=e(2006),t=e(791),o={};for(var i in t)["default","getHostname","isExternalUrl","isFragmentUrl","scrollToFragment","isAbsoluteUrl","getRelativeUrl","isFileUrl","isDataUrl","isModifiedEvent"].indexOf(i)<0&&(o[i]=function(n){return t[n]}.bind(0,i));e.d(r,o);var u=e(41347),c=e(46195),a=e(46344),f=e(45100);function l(n){return/^(?:[a-z]+:)?\/\//i.test(n)}function s(t){const e=(0,n.getOption)("base","/");"/"!==e&&(t=t.replace(e,"/"));const r=t.match(/^(http)?s?:?\/\/([^/]*)(\/?.*)$/i);return r?r[3]?r[3]:"/":t}function d(n){var t,e,r;return(null===(t=s(n))||void 0===t||null===(e=t.split("/"))||void 0===e||null===(r=e.pop())||void 0===r?void 0:r.includes("."))||!1}function p(n){return!!n.match(/^\s*data:([a-z]+\/[a-z]+(;[a-z-]+=[a-z-]+)?)?(;base64)?,[a-z0-9!$&',()*+,;=\-._~:@/?%\s]*\s*$/i)}function v(n){return n.metaKey||n.ctrlKey||n.shiftKey}}(),(window.nisje=window.nisje||{}).url=r}();