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

// Let's search for any useEffect that contains "Hm" or "ys"
let idx = 0;
while ((idx = content.indexOf("C.useEffect", idx)) !== -1) {
  const block = content.substring(idx, idx + 2000);
  if (block.includes("Hm") || block.includes("ys")) {
    console.log(`\n--- Match at ${idx} ---`);
    console.log(block);
  }
  idx += 11;
}
