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

const targetIdx = content.indexOf("const Hi=tr.find(p=>p.email.trim().toLowerCase()===e.trim().toLowerCase());");
if (targetIdx !== -1) {
  console.log("Found Hi=tr.find at index:", targetIdx);
  // Search backwards for component declaration, e.g. "export default" or "function" or "=>"
  const startIdx = Math.max(0, targetIdx - 15000);
  const chunk = content.substring(startIdx, targetIdx);
  console.log("=== Printing backward chunk ===");
  // Let's print the last 2000 characters of the backward chunk
  console.log(chunk.substring(chunk.length - 4000));
} else {
  console.log("Hi=tr.find not found");
}
