1(function(){"use strict";function o(){return encodeURIComponent(window.location.pathname+window.location.search)}var t,r,i="/.auth/logout?post_logout_redirect_uri=%2F";function n(e){return(e.userRoles||[]).indexOf("admin")!==-1}t="nkda_madmin";function b(e){document.querySelectorAll("[data-nkda-auth-admin]").forEach(function(t){t.hidden=!e})}function u(e){document.querySelectorAll("[data-nkda-auth-anon]").forEach(function(t){t.hidden=e})}function d(e){var t=e&&e.userRoles||null;document.querySelectorAll("[data-nkda-auth-requires-role]").forEach(function(e){var n=e.getAttribute("data-nkda-auth-requires-role"),s=!!(n&&t&&t.indexOf(n)===-1);e.classList.toggle("nkda-auth-locked",s),s?e.setAttribute("title","Needs the "+n+" role"):e.removeAttribute("title")})}function l(e){var n=window.location.protocol==="https:"?"; Secure":"";e?document.cookie=t+"=1; Path=/; SameSite=Lax"+n:document.cookie.indexOf(t+"=")!==-1&&(document.cookie=t+"=; Path=/; Max-Age=0; SameSite=Lax"+n)}function c(e){var n,s,t=String(e||"").trim().split(/[\s@._-]+/).filter(function(e){return/[a-z0-9]/i.test(e)});return t.length?(n=t[0].charAt(0),s=t.length>1?t[1].charAt(0):"",(n+s).toUpperCase()):""}function s(e,t,n){var s=e.querySelector(t);s&&(s.textContent=n)}function e(e,t,n){if(!e)return;e.classList.toggle("d-none",!t),e.classList.toggle(n,t)}r=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function h(e,t){var n=e.getAttribute("data-nkda-photo-base"),s=String(t.userId||"").toLowerCase();return n&&r.test(s)?n+"/"+s+".webp":null}function m(t,n){var s,o=t.querySelectorAll("[data-nkda-user-photo]");if(!o.length)return;if(s=h(t,n),!s)return;o.forEach(function(t){t.addEventListener("load",function(){var n=t.parentElement;e(t,!0,"d-inline-block"),e(n.querySelector("[data-nkda-user-initials]"),!1,"d-inline-flex"),e(n.querySelector("[data-nkda-user-avatar-default]"),!1,"d-inline-flex")}),t.src=s})}function f(e){var t=e||"";return t.indexOf("@")!==-1?{name:t.split("@")[0],email:t}:{name:t,email:""}}function p(t,a){if(a){var r,u,h,p,g=a.userDetails||"",d=f(g),l=c(g);t.querySelectorAll("[data-nkda-user-initials]").forEach(function(t){l&&(t.textContent=l),e(t,!!l,"d-inline-flex")}),t.querySelectorAll("[data-nkda-user-avatar-default]").forEach(function(t){e(t,!l,"d-inline-flex")}),m(t,a),s(t,"[data-nkda-user-name]",d.name||"Account menu"),s(t,"[data-nkda-user-display]",d.name||"Signed in"),s(t,"[data-nkda-user-email]",d.email),u=t.querySelector("[data-nkda-user-signout]"),u&&(u.href=i),t.querySelectorAll("[data-nkda-user-authed]").forEach(function(e){e.hidden=!1}),n(a)&&t.querySelectorAll("[data-nkda-user-admin]").forEach(function(e){e.hidden=!1}),h=t.querySelector("[data-nkda-user-signin-item]"),h&&(h.hidden=!0)}else r=t.querySelector("[data-nkda-user-signin]"),r&&(r.href="/.auth/login/entra?post_login_redirect_uri="+o(),r.classList.remove("disabled"),r.removeAttribute("aria-disabled"),r.removeAttribute("title")),e(t.querySelector("[data-nkda-user-signin-reason]"),!1,"d-block"),p=t.querySelector("[data-nkda-user-signin-more]"),p&&(p.hidden=!1);t.hidden=!1}function g(e,t){var n=e.querySelector("[data-nkda-auth-login]"),s=e.querySelector("[data-nkda-auth-logout]"),a=e.querySelector("[data-nkda-auth-user]");t?(a&&(a.textContent=t.userDetails||"Signed in",a.hidden=!1),s&&(s.href=i,s.hidden=!1)):n&&(n.href="/.auth/login/entra?post_login_redirect_uri="+o(),n.hidden=!1),e.hidden=!1}function v(e){var t=null,n=1/0;return e.forEach(function(e){var o=e.closest(".kit-topbar")||e.parentElement||e,s=o.getBoundingClientRect().top;s<n&&(n=s,t=e)}),t}function a(){var e,s=document.querySelectorAll("[data-nkda-auth]"),t=document.querySelectorAll("[data-nkda-user-menu]");if(!s.length&&!t.length)return;e=v(t),t.forEach(function(t){t!==e&&(t.hidden=!0)}),fetch("/.auth/me",{credentials:"same-origin"}).then(function(e){if(!e.ok)throw new Error("auth unavailable");return e.json()}).then(function(t){var o=t&&t.clientPrincipal||null;l(!!o&&n(o)),b(!!o&&n(o)),u(!!o),d(o),s.forEach(function(e){g(e,o)}),e&&p(e,o)}).catch(function(){})}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",a):a()})()
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.