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

const t1 = `const mergedUsers=B.map(u=>{const existing=exList.find(e=>String(e.code).trim().toLowerCase()===String(u.code).trim().toLowerCase());if(existing){return{...u,id:existing.id,created_at:u.date_parsed?u.created_at:(existing.created_at||u.created_at),price:typeof u.price==='number'?u.price:existing.price,agentId:existing.agentId||u.agentId,agentName:existing.agentName||u.agentName,comment:u.comment||existing.comment||"",status:(existing.status==="used"||existing.status==="expired")?existing.status:u.status}}return u;});const notInSynced=exList.filter(e=>!B.some(u=>String(u.code).trim().toLowerCase()===String(e.code).trim().toLowerCase())).map(e=>e.status==="active"?{...e,status:"used"}:e);`;

const t2 = `const mergedUsers=se.users.map(u=>{const existing=exList.find(e=>String(e.code).trim().toLowerCase()===String(u.code).trim().toLowerCase());if(existing){return{...u,id:existing.id,created_at:u.date_parsed?u.created_at:(existing.created_at||u.created_at),price:typeof u.price==='number'?u.price:existing.price,agentId:existing.agentId||u.agentId,agentName:existing.agentName||u.agentName,comment:u.comment||existing.comment||"",status:(existing.status==="used"||existing.status==="expired")?existing.status:u.status}}return u;});const notInSynced=exList.filter(e=>!se.users.some(u=>String(u.code).trim().toLowerCase()===String(e.code).trim().toLowerCase())).map(e=>e.status==="active"?{...e,status:"used"}:e);`;

console.log("t1 exists:", content.includes(t1));
console.log("t2 exists:", content.includes(t2));
