const fs=require("fs"),vm=require("vm");const ctx={console};vm.createContext(ctx);vm.runInContext(fs.readFileSync(__dirname+"/data.js","utf8")+"\nglobalThis.D=FOOTBALL_DATA;",ctx);const D=ctx.D;for(const [id,n] of Object.entries({GB4:24,CNAT:24,FR3:18})){const a=D.clubs.filter(c=>c.competitionId===id);if(a.length!==n)throw Error(id+" "+a.length);if(new Set(a.map(c=>c.name)).size!==n)throw Error("doublon "+id);console.log(id+": "+n+" clubs");}