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

const terms = ["Global SaaS", "SaaS Config", "saas-billing", "mikrobil_global_saas", "sendSaaSSystemNotification"];
for (const term of terms) {
  const indices = [];
  let idx = content.indexOf(term);
  while (idx !== -1) {
    indices.push(idx);
    idx = content.indexOf(term, idx + 1);
  }
  console.log(`Term "${term}" found at indices:`, indices);
  if (indices.length > 0) {
    // Print the first occurrence context
    console.log(`Context for "${term}":`);
    console.log(content.substring(Math.max(0, indices[0] - 500), Math.min(content.length, indices[0] + 500)));
    console.log('='.repeat(50));
  }
}
