Este es el código JavaScript desofuscado:

```
const header = document.getElementById("header");
let lastPos = document.documentElement.scrollTop;

window.addEventListener("scroll", () => {
  const e = document.documentElement.scrollTop;
  if (e > lastPos) {
    if (e > header.offsetHeight) {
      header.classList.add("-translate-y-full");
      header.classList.remove("shadow-md");
    }
  } else {
    header.classList.remove("-translate-y-full");
    header.classList.add("shadow-md");
  }
  lastPos = e;
}, false);

const menu = document.getElementById("menu");
const searchBox = document.getElementById("search");
const menuToggle = document.getElementById("menu-toggle");

menuToggle.addEventListener("click", () => {
  menu.classList.toggle("hidden");
  searchBox.classList.toggle("hidden");
}, false);

const lazyImages = document.getElementsByClassName("lazy");

document.addEventListener("DOMContentLoaded", () => {
  [...lazyImages].forEach((e) => {
    const t = e.dataset.src;
    e.setAttribute("src", t);
    e.removeAttribute("data-src");
  });
}, false);

class SearchPosts {
  async init() {
    const e = new URL(location.href).searchParams;
    this.start = Number(e.get("start")) || 1;
    this.size = Number(e.get("size")) || 12;
    this.posts = await fetch("../index.json").then((e) => e.json());
    this.render(e.get("q"));
  }

  render(e) {
    const t = document.getElementById("wrapper");
    const s = document.getElementById("searchbox");
    const n = document.getElementById("info");

    if (e = (typeof e === "string") ? e.toLowerCase() : "", history.replaceState(null, null, `?q=${e}&start=${this.start}&size=${this.size}`), s.value = e, t.innerHTML = "", "" === e) {
      n.textContent = "Enter keywords in the search box above";
      return;
    }

    const o = this.posts.filter((t) => -1 !== t.title.toLowerCase().indexOf(e));

    if (0 === o.length) {
      n.textContent = `No results were found for "${e}"`;
      return;
    }

    const a = this.size;
    const r = this.start - 1;
    const l = o.slice(r, r + a);
    const d = r + l.length;
    const i = this.start < d || this.start !== 1 ? `${this.start} to ${d}` : this.start;
    const c = o.length > 1 ? "s" : "";
    n.textContent = `Showing ${i} of ${o.length} result${c} found for "${e}"`;

    l.forEach((e) => {
      const { url: s, title: n, date: o } = e;
      t.innerHTML += `
        <div class="w-full sm:w-1/2 md:w-1/3 self-stretch p-2 mb-2">
          <a href="${s}">
            <div class="rounded shadow-md h-full px-6 py-5">
              <div class="font-semibold text-lg mb-2">${n}</div>
              <p class="text-gray-700 mb-1" title="Published date">${o}</p>
            </div>
          </a>
        </div>
      `;
    });
  }
}

if ("/search/" === location.pathname) {
  const e = document.getElementById("searchbox");
  const t = new SearchPosts();
  t.init();
  e.addEventListener("keyup", debounce(function() {
    t.render(this.value);
  }, 400));
}

function debounce(e, t) {
  let s, n
```

No pude continuar humano, perdon.
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence