const fs = require('fs');
const content = fs.readFileSync('dist/assets/index-D9sWWWv_.js', 'utf8');

const targetIdx = content.indexOf("r&&a.jsx(\"button\",{onClick:()=>{const $=!To;Hl($)");
if (targetIdx !== -1) {
  console.log("Found button at", targetIdx);
  // Let's print 3000 chars before this index
  const chunk = content.substring(targetIdx - 3000, targetIdx);
  console.log(chunk);
} else {
  // Let's find any occurrences of "r&&" or similar near the DPI section
  console.log("Direct match not found, looking for alternative...");
  const dbiIdx = content.indexOf("Analisis Penggunaan Data & Kategori Aplikasi (DPI)");
  if (dbiIdx !== -1) {
    console.log("Found DPI at", dbiIdx);
    console.log(content.substring(dbiIdx - 2000, dbiIdx));
  }
}
