/* Entirely synthetic demonstration data. Do not cite as World Bank observations. */ (function(root,factory){const lib=factory();if(typeof module==='object'&&module.exports)module.exports=lib;else root.ImpactDemo=lib;})(typeof globalThis!=='undefined'?globalThis:this,function(){ 'use strict'; const countries=['ARG','BOL','BRA','CHL','COL','CRI','DOM','ECU','GTM','MEX','PAN','PER','PRY','URY','SLV']; const indicators=['SP.DYN.LE00.IN','NY.GDP.PCAP.KD.ZG','SL.UEM.TOTL.ZS','SE.SEC.ENRR','IT.NET.USER.ZS','SH.XPD.CHEX.GD.ZS','SE.XPD.TOTL.GD.ZS','SP.POP.TOTL']; const records=[]; countries.forEach((country,i)=>{ for(let year=2000;year<=2024;year++){ const t=year-2000,wave=0.35*Math.sin(t*.68+i*.15),z=Math.sin(t*.22+i*.8); const shock=(country==='CHL'&&year>=2016)?1.5:0; const raw={ 'SP.DYN.LE00.IN':70+((i*7)%13)*.41+.20*t+wave+shock, 'NY.GDP.PCAP.KD.ZG':2.8+1.7*Math.sin(t*.48+i*.42)+.14*Math.cos(t*1.3+i)+ (year===2020?-4.6:0), 'SL.UEM.TOTL.ZS':8.5+((i*5)%9)*.42+.10*t+z*.85+(year===2020?1.7:0), 'SE.SEC.ENRR':66+((i*9)%17)+.8*t+wave*2, 'IT.NET.USER.ZS':Math.min(97,8+((i*3)%14)+t*3.4+2*z), 'SH.XPD.CHEX.GD.ZS':4.1+((i*3)%9)*.3+.065*t+wave*.3, 'SE.XPD.TOTL.GD.ZS':3.0+((i*7)%11)*.18+.035*t+wave*.2, 'SP.POP.TOTL':(1.8e6+(i+1)*3.2e6)*(1+.012*t)+38000*Math.sin(.3*t+i) }; for(const indicator of indicators){ // Intentional missing data to make the coverage auditor useful. const missing=(country==='BOL'&&indicator==='SE.SEC.ENRR'&&year>=2022)|| (country==='SLV'&&indicator==='SH.XPD.CHEX.GD.ZS'&&year%6===0)|| (country==='MEX'&&indicator==='SP.DYN.LE00.IN'&&year===2008); records.push({country,year,indicator,value:missing?null:Math.round(raw[indicator]*1000)/1000,source:'synthetic-demo'}); } } }); return {records,years:{start:2000,end:2024},note:'Synthetic data generated locally for interface demonstration. Never treat as official World Bank data or factual national statistics.'}; });