1import{Controller}from"@hotwired/stimulus";export default class extends Controller{connect(){const e=this.element.dataset.currentController;this.checkAndSelectLevel(),"play"===e&&this.togglePuzzleChooser()}togglePuzzleChooser(){const e=this.element.querySelector(".custom-puzzle-btn"),t=document.querySelector("#collapsePuzzleBox");t&&(t.hidden?(t.hidden=!1,e.setAttribute("aria-expanded","true"),e.disabled=!0):(t.hidden=!0,e.setAttribute("aria-expanded","false"),e.disabled=!1))}hidePuzzleChooser(){this.checkAndSelectLevel();const e=document.querySelector("#collapsePuzzleBox");if(e){e.hidden=!0;this.element.setAttribute("aria-expanded","false")}}checkAndSelectLevel(){const e=this.element.querySelector("a.level.selected.notAvailable");if(e){e.classList.remove("selected");const t=this.element.querySelector("a.selectable.level.easiest");t&&t.classList.add("selected")}}}
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.