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

// Let's search back around index 900000 to 975000 for something like:
// const [Xe, ... or similar, or Xe= or Xe =
const keywords = ["Xe=", "Xe =", ",Xe,", "Re=", "Re =", ",Re,"];
keywords.forEach(kw => {
  let idx = 0;
  while ((idx = content.indexOf(kw, idx)) !== -1) {
    if (idx > 900000 && idx < 1000000) {
      console.log(`\n=== Found keyword "${kw}" at index ${idx} ===`);
      console.log(content.substring(idx - 100, idx + 150));
    }
    idx += kw.length;
  }
});
