{form:=form(., {"": {"kind": "submit"}}), loginForm := ()}
{prev-page := form-combine($form, .)}? { if ($current-page eq $last-visited-page) then (search-next-page-available := true()) else (), next-page := form-combine($form, .)}? (.//span[contains(@id, "CurrentPageLabel")])[1]/(current-page:=xs:integer(.))
{$prev-page := resolve-html(.)}? {current-page:=xs:integer(normalize-space())}? { if ($current-page eq $last-visited-page) then (search-next-page-available := true()) else (), next-page := resolve-html(.)}? {search-result-count := extract(normalize-space(.), "[0-9]+")}
{loginForm := extract(join((comment(), script)), 'https?://[^"'']+')}