1const searchToggleButton=document.getElementById("search-toggle"),pagefindShell=document.getElementById("pagefind-modal-shell"),pagefindDialog=pagefindShell?.querySelector(".pagefind-modal-shell__dialog"),pagefindRoot=document.getElementById("pagefind-search"),navbarToggleButton=document.querySelector(".navbar-toggler");let pagefindInstance=null,pagefindLoadPromise=null,lastFocusedElement=null,focusRetryTimer=null;const syncSearchTheme=()=>{document.documentElement.dataset.pagefindTheme=determineComputedTheme()},collapseNavbarIfNeeded=()=>{const e=document.getElementById("navbarNav");e&&(e.classList.remove("show","collapsing"),e.classList.add("collapse"),e.style.height="",navbarToggleButton?.setAttribute("aria-expanded","false"),navbarToggleButton?.classList.add("collapsed"))},isSearchModalOpen=()=>Boolean(pagefindShell&&!pagefindShell.hidden&&"false"===pagefindShell.getAttribute("aria-hidden")),isEditableTarget=e=>e instanceof HTMLElement&&(e.isContentEditable||/^(INPUT|TEXTAREA|SELECT)$/.test(e.tagName)),isRestorableFocusTarget=e=>e instanceof HTMLElement&&e!==document.body&&e!==document.documentElement&&!pagefindShell?.contains(e)&&null===e.getAttribute("inert")&&e.getClientRects().length>0,clearPendingFocusRetry=()=>{null!==focusRetryTimer&&(window.clearTimeout(focusRetryTimer),focusRetryTimer=null)},setPageBackgroundInert=e=>{Array.from(document.body.children).filter(e=>e!==pagefindShell&&"SCRIPT"!==e.tagName).forEach(t=>{e?t.setAttribute("inert",""):t.removeAttribute("inert")})},ensurePagefind=()=>(pagefindInstance||!pagefindRoot||"undefined"==typeof PagefindUI||(pagefindRoot.replaceChildren(),pagefindInstance=new PagefindUI({element:"#pagefind-search",autofocus:!0,showSubResults:!0})),pagefindInstance),loadPagefind=()=>"undefined"!=typeof PagefindUI?Promise.resolve():pagefindLoadPromise||(pagefindLoadPromise=new Promise((e,t)=>{if(!document.querySelector("link[data-pagefind-stylesheet]")){const e=document.createElement("link");e.rel="stylesheet",e.href="/pagefind/pagefind-ui.css",e.dataset.pagefindStylesheet="",document.head.appendChild(e)}const n=document.createElement("script");n.src="/pagefind/pagefind-ui.js",n.async=!0,n.addEventListener("load",e,{once:!0}),n.addEventListener("error",()=>{n.remove(),pagefindLoadPromise=null,t(new Error("Pagefind could not be loaded"))},{once:!0}),document.head.appendChild(n)}),pagefindLoadPromise),focusPagefindInput=(e=0)=>{const t=pagefindRoot?.querySelector(".pagefind-ui__search-input");return t instanceof HTMLElement?(t.focus(),t.select?.(),!0):(!isSearchModalOpen()||e>=8||(clearPendingFocusRetry(),focusRetryTimer=window.setTimeout(()=>{focusRetryTimer=null,focusPagefindInput(e+1)},e<2?60:120)),!1)},getSearchModalFocusableElements=()=>Array.from(pagefindShell?.querySelectorAll('a[href], button:not([disabled]), input:not([disabled]):not([type="hidden"]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])')||[]).filter(e=>e instanceof HTMLElement&&!e.hidden&&"true"!==e.getAttribute("aria-hidden")&&e.getClientRects().length>0),restoreFocusAfterClose=()=>{const e=[lastFocusedElement,searchToggleButton,navbarToggleButton].find(e=>isRestorableFocusTarget(e)&&document.contains(e));e?.focus({preventScroll:!0}),lastFocusedElement=null},openPagefindShell=(e=null)=>{pagefindShell&&(isSearchModalOpen()||(lastFocusedElement=isRestorableFocusTarget(e)&&document.contains(e)?e:isRestorableFocusTarget(document.activeElement)?document.activeElement:searchToggleButton),clearPendingFocusRetry(),pagefindShell.hidden=!1,pagefindShell.setAttribute("aria-hidden","false"),document.body.classList.add("pagefind-modal-open"),setPageBackgroundInert(!0),pagefindShell.classList.add("is-open"),pagefindDialog?.focus({preventScroll:!0}),window.requestAnimationFrame(()=>{document.activeElement instanceof HTMLElement&&pagefindShell.contains(document.activeElement)||pagefindDialog?.focus({preventScroll:!0}),focusPagefindInput()}))},closeSearchModal=()=>{isSearchModalOpen()&&(clearPendingFocusRetry(),pagefindShell.classList.remove("is-open"),pagefindShell.setAttribute("aria-hidden","true"),document.body.classList.remove("pagefind-modal-open"),setPageBackgroun
1dInert(!1),window.setTimeout(()=>{"true"===pagefindShell.getAttribute("aria-hidden")&&(pagefindShell.hidden=!0)},180),window.setTimeout(restoreFocusAfterClose,0))},openSearchModal=async()=>{const e=isRestorableFocusTarget(navbarToggleButton)?navbarToggleButton:null;collapseNavbarIfNeeded(),syncSearchTheme(),openPagefindShell(e);try{await loadPagefind(),ensurePagefind(),focusPagefindInput()}catch(e){if(pagefindRoot){const e=document.documentElement.lang.startsWith("ja")?"\u691c\u7d22\u3092\u8aad\u307f\u8fbc\u3081\u307e\u305b\u3093\u3067\u3057\u305f\u3002\u691c\u7d22\u3092\u9589\u3058\u3066\u3001\u3082\u3046\u4e00\u5ea6\u304a\u8a66\u3057\u304f\u3060\u3055\u3044\u3002":"Search could not be loaded. Close search and try again.",t=document.createElement("p");t.setAttribute("role","alert"),t.textContent=e,pagefindRoot.replaceChildren(t)}}},trapFocusWithinSearchModal=e=>{if("Tab"!==e.key||!isSearchModalOpen())return;const t=getSearchModalFocusableElements();if(e.preventDefault(),!t.length)return void pagefindDialog?.focus({preventScroll:!0});const n=document.activeElement,a=t.indexOf(n),o=e.shiftKey?a<=0?t.length-1:a-1:-1===a||a===t.length-1?0:a+1;t[o]?.focus({preventScroll:!0})};document.querySelectorAll("[data-pagefind-close]").forEach(e=>{e.addEventListener("click",closeSearchModal)}),document.addEventListener("focusin",e=>{if(!isSearchModalOpen())return;if(pagefindShell.contains(e.target))return;const t=getSearchModalFocusableElements();(t[0]||pagefindDialog)?.focus({preventScroll:!0})});const handleGlobalSearchKeydown=e=>!((e.metaKey||e.ctrlKey)&&!e.altKey&&!e.shiftKey&&"k"===e.key.toLowerCase())||isEditableTarget(e.target)&&!isSearchModalOpen()?"Escape"===e.key&&isSearchModalOpen()?(e.preventDefault(),void closeSearchModal()):void trapFocusWithinSearchModal(e):(e.preventDefault(),void openSearchModal());document.addEventListener("keydown",handleGlobalSearchKeydown,!0),syncSearchTheme(),window.openSearchModal=openSearchModal,window.closeSearchModal=closeSearchModal;
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.