1import{d as re,u as ie,r as m,p as de,q as o,A as a,y as e,C as p,B as l,N as D,x as H,z as Q,O as Y,E as W,a7 as me,l as M,U as _,a9 as R,a8 as S,F as u,D as x,a6 as U}from"./core-ui-whnTH_a7.js";import{c as we,_ as ke}from"./index-BN0ZcOXz.js";import"./vendor-DheoUw-d.js";import"./utils-libs-3qTvM8qC.js";const Ae=re({name:"PasecDataViewer",setup(){const{t:h,locale:c}=ie(),V=m("data_access");return{activeAccess:V,setActiveAccess:v=>{V.value=v},getRouteName:v=>c.value==="fr"?v:`${v}-${c.value}`,downloadZipFolder:v=>{const w=document.createElement("a");w.href=we.resolveImageUrl(`macros/${v}.zip`)||"",w.download=`${v}.zip`,document.body.appendChild(w),w.click(),document.body.removeChild(w)},t:h}}}),$e={class:"relative bg-gray-100 py-12"},Pe={class:"px-3 bg-gray-100 relative"},Me={class:"content max-w-7xl mx-auto text-center"},Se={class:"flex justify-center gap-3 mb-8"},Ce={key:0,class:"mx-auto max-w-4xl bg-white rounded-2xl p-6 sm:p-10 shadow-sm border border-gray-200 text-left space-y-6"},Be={class:"py-4 text-center"},Ee={key:1,class:"mx-auto max-w-4xl bg-white rounded-2xl p-6 sm:p-10 shadow-sm border border-gray-200 text-left space-y-6"},Ve={class:"py-2"};function Ne(h,c,V,N,$,g){const v=de("router-link");return o(),a("div",$e,[e("section",Pe,[e("div",Me,[e("div",Se,[e("button",{onClick:c[0]||(c[0]=w=>h.setActiveAccess("data_access")),class:p(["px-6 py-3 rounded-full text-sm font-extrabold transition-all border cursor-pointer",h.activeAccess==="data_access"?"bg-[#5f3594] text-white border-[#5f3594] shadow-md":"bg-white text-gray-700 hover:bg-gray-200 border-gray-300"])},l(h.$t("advancedSearch.access_options.data_access")),3),e("button",{onClick:c[1]||(c[1]=w=>h.setActiveAccess("macro_access")),class:p(["px-6 py-3 rounded-full text-sm font-extrabold transition-all border cursor-pointer",h.activeAccess==="macro_access"?"bg-[#5f3594] text-white border-[#5f3594] shadow-md":"bg-white text-gray-700 hover:bg-gray-200 border-gray-300"])},l(h.$t("advancedSearch.access_options.macro_access")),3)]),h.activeAccess==="data_access"?(o(),a("div",Ce,[c[4]||(c[4]=e("p",{class:"text-gray-800 font-extrabold text-lg sm:text-xl text-[#5f3594]"}," Les conditions pour obtenir lâaccès aux données portent sur lâacceptation par lâutilisateur des engagements suivants : ",-1)),c[5]||(c[5]=e("p",{class:"text-gray-700 text-sm sm:text-base leading-relaxed"}," Pour accéder aux bases de données PASEC, veuillez remplir le formulaire de demande en ligne sur le portail dédié. Sélectionnez les ressources souhaitées puis téléchargez-les directement après validation. ",-1)),e("div",Be,[D(v,{to:{name:h.getRouteName("data-portal")},class:"inline-flex items-center justify-center bg-[#5f3594] hover:bg-[#4a2875] text-white font-extrabold rounded-xl text-base px-8 py-4 shadow-md transition-all cursor-pointer"},{default:H(()=>[...c[3]||(c[3]=[Q(" Accéder au portail de données ",-1)])]),_:1},8,["to"])]),c[6]||(c[6]=Y('<p class="text-xs text-gray-500 italic text-center"> Lâaccès est gratuit et soumis à lâacceptation des engagements ci-dessus. </p><div class="pt-4 border-t border-gray-100 space-y-4"><p class="text-xs sm:text-sm text-gray-600 leading-relaxed"> Lâutilisation des données engage la seule responsabilité de lâutilisateur. La CONFEMEN ne pourra être tenue responsable dâune exploitation non conforme aux engagements signés. </p><p class="text-xs sm:text-sm font-semibold text-gray-800"> Pour toute question relative à lâaccès aux données, écrivez à : <a href="mailto:[email protected]" class="text-[#5f3594] underline font-bold">[email protected]</a></p></div>',2))])):W("",!0),h.activeAccess==="macro_access"?(o(),a("div",Ee,[c[7]||(c[7]=Y('<p class="text-gray-800 font-extrabold text-lg sm:text-xl text-[#5f3594]"> Téléchargement des Macros STATA pour les Analyses PASEC </p><p class="text-gray-600 text-sm leading-relaxed"> Accédez aux fichiers de macros `.ado` développés pour l'exploitation et la réplication des analyses statistiques PASEC. </p><ul class="list-disc pl-6 space-y-2 text-gray-700 text-sm bg-gray-50 p-4 rounded-xl border border-gray-100"><li class="font-mono text-sm text-[#5f3594] font-bold">jk2stats.ado</li><li class="font-mono text-sm text-[#5f3594] font-bold">pvjk2qreg.ado</li><li class="font-mono text-sm text-[#5f3594] font-bold">pvjk2reg.ado</li><li class="font-mono text-sm text-[#5f3594] font-bold">pvjk2stats.ado</li></ul>',3)),e("div",Ve,[e("button",{onClick:c[2]||(c[2]=w=>h.downloadZipFolder("PASEC-Macros")),class:"inline-flex items-center gap-2 text-white bg-[#5f3594] hover:bg-[#4a2875] px-6 py-3.5 rounded-xl font-bold text-sm shadow-sm cursor-pointer transition-all"}," ð¥ Télécharger les Macros STATA ")])])):W("",!0)])])])}const je=ke(Ae,[["render",Ne]]),Fe={class:"min-h-screen bg-[#f0f4f9] font-sans text-slate-800 pb-16"}
1,Ge={class:"polygon-bg-style-1 polygon-bg-style-2 bg-cover bg-no-repeat bg-center relative bg-blend-screen pt-36 sm:pt-40 pb-12 sm:pb-16 bg-[url('/images/searchPages.jpg')] before:content-[''] before:absolute before:inset-0 before:block before:bg-[#5F3594]"},ze={class:"relative z-10 max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 space-y-6"},De={class:"inline-flex items-center gap-2 px-4 py-1.5 rounded-full bg-amber-400/20 backdrop-blur-md border border-amber-400/40 text-amber-300 text-xs font-bold tracking-widest uppercase"},Te={class:"text-3xl sm:text-5xl font-black tracking-tight leading-tight text-white max-w-4xl",style:{"text-shadow":"0 2px 12px rgba(0,0,0,0.5)"}},Ie={class:"max-w-3xl text-white/90 text-sm sm:text-base font-normal leading-relaxed opacity-95",style:{"text-shadow":"0 1px 6px rgba(0,0,0,0.4)"}},qe={class:"grid grid-cols-1 sm:grid-cols-3 gap-4 pt-2"},Le={class:"flex items-start gap-3"},Re={class:"font-extrabold text-amber-300 text-sm leading-tight"},Ue={class:"text-slate-100 text-xs mt-1.5 leading-relaxed font-medium"},He={class:"flex items-start gap-3"},Ye={class:"font-bold text-white text-sm leading-tight"},We={class:"text-slate-200 text-xs mt-1.5 leading-relaxed"},Xe={class:"flex items-start gap-3"},Ze={class:"font-bold text-white text-sm leading-tight"},Oe={class:"text-slate-200 text-xs mt-1.5 leading-relaxed"},Je={class:"flex items-center gap-2 pt-2 text-slate-200 text-xs border-t border-white/10"},Ke={class:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 space-y-8 pt-8"},Qe={class:"bg-white rounded-3xl p-4 border border-slate-200 shadow-sm flex flex-col sm:flex-row items-center justify-between gap-4"},et={class:"text-base font-extrabold text-slate-900"},tt={class:"text-xs text-slate-500"},st={class:"flex items-center gap-2 bg-slate-100 p-1.5 rounded-2xl w-full sm:w-auto"},lt={class:"space-y-8"},ot={class:"bg-white rounded-3xl p-6 border border-slate-200 shadow-sm"},at={class:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-5 gap-4 items-end"},nt={class:"space-y-1.5"},rt={class:"space-y-1.5"},it={class:"space-y-1.5"},dt={class:"space-y-1.5"},ct={class:"space-y-1.5"},ut=["value"],xt={class:"bg-white rounded-3xl p-6 sm:p-8 border border-slate-200 shadow-sm space-y-6"},pt={class:"flex justify-between items-center border-b border-slate-100 pb-4"},vt={class:"text-lg font-black text-slate-900"},bt={class:"text-xs text-slate-500 font-semibold text-[#5F3594]"},ht={class:"text-xs font-extrabold px-3 py-1 bg-indigo-100 text-indigo-800 rounded-xl"},gt={key:0,class:"space-y-4 pt-2"},ft={class:"flex justify-between items-center text-xs font-bold text-slate-700"},yt={class:"flex items-center gap-2"},_t={class:"font-mono text-[#1A234B]"},mt={class:"w-full h-7 bg-slate-100 rounded-xl overflow-hidden p-1 flex items-center"},wt={key:0,class:"flex items-center gap-2 pt-2"},kt={key:1,class:"overflow-x-auto pt-2"},At={class:"flex items-end justify-center gap-3 h-64 min-w-[500px] px-4 relative"},$t={class:"text-[10px] font-bold text-[#1A234B] font-mono"},Pt={class:"absolute -top-10 left-1/2 -translate-x-1/2 bg-slate-900 text-white text-[10px] px-2 py-1 rounded-lg opacity-0 group-hover:opacity-100 transition-opacity whitespace-nowrap z-10"},Mt={class:"text-[9px] font-bold text-slate-600 text-center leading-tight"},St={key:2,class:"pt-2 overflow-x-auto"},Ct=["viewBox"],Bt=["points"],Et=["cx","cy"],Vt=["x","y"],Nt=["x"],jt={key:3,class:"flex flex-col items-center gap-6 pt-2"},Ft={viewBox:"0 0 220 220",class:"w-64 h-64"},Gt={transform:"translate(110,110)"},zt=["d","fill"],Dt={"text-anchor":"middle",dy:"12","font-size":"10",fill:"#64748b"},Tt={key:4,class:"flex flex-col items-center justify-center pt-2"},It={viewBox:"0 0 340 320",class:"w-80 h-80 overflow-visible"},qt=["cx","cy","r"],Lt=["x1","y1","x2","y2"],Rt=["points"],Ut=["cx","cy"],Ht=["x","y"],Yt={key:5,class:"pt-2 overflow-x-auto"},Wt=["viewBox"],Xt=["points"],Zt=["points"],Ot=["cx","cy"],Jt=["x","y"],Kt=["x"],Qt={key:6,class:"pt-2 overflow-x-auto"},es={class:"p-4 bg-slate-50 rounded-2xl border border-slate-200"},ts={viewBox:"0 0 500 240",class:"w-full min-w-[500px]"},ss=["cx","cy"],ls=["x","y"],os={key:7,class:"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 gap-4 pt-2"},as={class:"relative w-24 h-24 flex items-center justify-center"},ns={viewBox:"0 0 100 100",class:"w-full h-full transform -rotate-90"},rs=["stroke-dashoffset"],is={class:"absolute inset-0 flex flex-col items-center justify-center"},ds={class:"text-xs font-black text-[#1A234B]"},cs={class:"text-[9px] font-bold text-slate-500"},us={class:"text-xs font-extrabold text-slate-800 mt-2 text-center"},xs={key:8,class:"overflow-x-auto pt-2"},ps={class:"min-w-[600px] border border-slate-200 rounded-2xl overflow-hidden"},vs={class:"font-bold text-slate-900 text-left pl-2"},bs={key:9,class:"overflow-x-auto pt-2"},hs={class:"flex items-end justify-center gap-4 h-64 min-w-[550px] px-4 pt-4 border-b border-slate-200"},gs={class:"flex items-end gap-1 w-full h-48 justify-center"},fs=["title"],ys=["title"],_s={class:"text-[9px] font-bold text-slate-700 text-center leading-tight mt-1"},ms={class:"bg-white rounded-3xl border border-slate-200 shadow-sm overflow-hidden p-6 sm:p-8 space-y-6"},ws={class:"flex flex-col sm:flex-row items-start sm:items-center justify-between border-b border-slate-100 pb-4 gap-4"},ks={class:"text-lg font-black text-slate-900"},As={class:"text-xs text-slate-500"},$s={class:"flex items-center gap-2 bg-slate-100 p-1.5 rounded-2xl w-full sm:w-auto"},Ps={class:"overflow-x-auto"},Ms={class:"w-full text-left text-xs border-collapse"},Ss={class:"divide-y divide-slate-100 font-medium"},Cs={class:"py-3.5 px-4 font-bold text-slate-900"},Bs={class:"py-3.5 px-4 font-semibold text-slate-600"},Es={class:"py-3.5 px-4 font-bold text-[#1A234B] text-right"},Vs={class:"py-3.5 px-4 text-right font-mono text-slate-700"},Ns={class:"py-3.5 px-4 text-right"},js={class:"overflow-x-auto"},Fs={class:"w-full text-left text-xs border-collapse"},Gs={class:"divide-y divide-slate-100 font-medium"},zs={class:"py-3.5 px-4 font-bold text-slate-900"},Ds={class:"py-3.5 px-4 font-bold text-[#1A234B] text-right"},Ts={class:"py-3.5 px-4 text-right text-rose-600 font-semibold"},Is={class:"py-3.5 px-4 text-right text-amber-600 font-semibold"},qs={class:"py-3.5 px-4 text-right text-indigo-600 font-bold bg-indigo-50/40"},Ls={class:"py-3.5 px-4 text-right text-emerald-600 font-semibold"},Rs={class:"py-3.5 px-4 text-right text-emerald-700 font-bold"},Us={class:"bg-white rounded-3xl border border-slate-200 shadow-sm overflow-hidden p-6 sm:p-8 space-y-6"},Hs={class:"flex flex-col sm:flex-row justify-between items-start sm:items-center border-b border-slate-100 pb-4"},Ys={class:"mt-4 sm:mt-0 flex gap-2"},Ws={class:"grid grid-cols-1 md:grid-cols-3 gap-6 p-6 border border-slate-200 rounded-2xl bg-slate-50/50"},Xs={class:"overflow-x-auto border border-slate-200 rounded-2xl bg-white"},Zs={class:"w-full text-left text-xs border-collapse"},Os={class:"bg-slate-100 border-b border-slate-200 text-slate-700 font-extrabold uppercase"},Js={class:"divide-y divide-slate-100 font-medium"},Ks={class:"hover:bg-slate-50"},Qs={class:"hover:bg-slate-50"},el={class:"hover:bg-slate-50"},tl={class:"hover:bg-slate-50"},sl={class:"hover:bg-slate-50"},ll={class:"hover:bg-slate-50 font-bold bg-slate-50/50"},ol={class:"bg-white rounded-3xl border border-slate-200/80 shadow-sm overflow-hidden p-4 sm:p-8"},K=520,dl=re({__name:"AdvancedDataSearchView",setup(h){const{locale:c}=ie(),V=me.useToast(),N=n=>c.value==="fr"?n:`${n}-${c.value}`,$=m("visualizer"),g=m("synthetic"),v=m("lecture"),w=m("2019"),ee=m("all"),te=m("all"),j=m("reading"),X=m("CM2"),F=m("avg_score"),C=m("2019"),f=m("bar-h"),se=[{id:"bar-h",label:"Barres horizontales"},{id:"bar-v",label:"Barres verticales"},{id:"line",label:"Courbe d'évolution"},{id:"donut",label:"Donut / Camembert"},{id:"radar",label:"Radar multi-axes"},{id:"area",label:"Aires superposées"},{id:"scatter",label:"Nuage de points"},{id:"gauge",label:"Jauges par pays"},{id:"heatmap",label:"Carte thermique"},{id:"grouped",label:"Barres comparatives"}],le=M(()=>se.find(n=>n.id===f.value)),ce={avg_score:"Score Moyen National (0-700 points)",threshold:"Seuil Suffisant de Compétence (%)",level_less_1:"Niveau < 1 (Inférieur au Niveau 1) (%)",level_1:"Niveau 1 (Compétences basiques) (%)",level_2:"Niveau 2 (Seuil de suffisance PASEC) (%)",level_3:"Niveau 3 (Compétences avancées) (%)",level_4:"Niveau 4 (Compétences supérieures) (%)"},ue=M(()=>ce[F.value]||"Score Moyen"),oe=["#1A234B","#5F3594","#0EA5E9","#10B981","#F59E0B","#EF4444","#8B5CF6","#EC4899","#6366F1","#14B8A6","#F97316","#64748B"],xe=[{country:"Gabon",score:645,thresholdPct:93,genderGap:"+4.2",l_less_1:1.2,l_1:5.8,l_2:24,l_3:31,l_4:38},{country:"Bénin",score:586,thresholdPct:68.3,genderGap:"+1.5",l_less_1:6.5,l_1:25.2,l_2:32.1,l_3:20.2,l_4:16},{country:"Sénégal",score:576,thresholdPct:72.1,genderGap:"+2.8",l_less_1:5.4,l_1:19.7,l_2:27.3,l_3:18.2,l_4:29.5},{country:"Burkina Faso",score:552,thresholdPct:62.5,genderGap:"-0.4",l_less_1:8.2,l_1:29.3,l_2:34.5,l_3:18,l_4:10},{country:"Cameroun",score:530,thresholdPct:55,genderGap:"+0.9",l_less_1:11.8,l_1:20.7,l_2:28.1,l_3:19.4,l_4:20},{country:"Côte d'Ivoire",score:503,thresholdPct:40.4,genderGap:"-1.2",l_less_1:4.7,l_1:22.6,l_2:39.6,l_3:21.6,l_4:11.5}
1,{country:"Togo",score:496,thresholdPct:48.2,genderGap:"+0.3",l_less_1:14.2,l_1:37.6,l_2:28.2,l_3:12,l_4:8},{country:"Congo",score:490,thresholdPct:44,genderGap:"-2.1",l_less_1:16.5,l_1:39.5,l_2:26,l_3:11,l_4:7},{country:"Guinée",score:475,thresholdPct:38.5,genderGap:"-3.5",l_less_1:21,l_1:40.5,l_2:23,l_3:10,l_4:5.5},{country:"Niger",score:471,thresholdPct:32.5,genderGap:"-1.8",l_less_1:28.4,l_1:39.1,l_2:21.5,l_3:7.5,l_4:3.5},{country:"Madagascar",score:468,thresholdPct:35.2,genderGap:"+0.1",l_less_1:26,l_1:38.8,l_2:22,l_3:9,l_4:4.2},{country:"Tchad",score:451,thresholdPct:28,genderGap:"-4.6",l_less_1:35,l_1:37,l_2:18,l_3:7,l_4:3}],pe=[{country:"Gabon",score:620,thresholdPct:88,genderGap:"+2.1",l_less_1:2,l_1:10,l_2:28,l_3:30,l_4:30},{country:"Sénégal",score:582,thresholdPct:74,genderGap:"+3.5",l_less_1:4,l_1:22,l_2:30,l_3:24,l_4:20},{country:"Bénin",score:570,thresholdPct:65,genderGap:"+1.0",l_less_1:8,l_1:27,l_2:33,l_3:18,l_4:14},{country:"Burkina Faso",score:561,thresholdPct:67.2,genderGap:"+0.8",l_less_1:7,l_1:25.8,l_2:35,l_3:20,l_4:12.2},{country:"Cameroun",score:545,thresholdPct:60.1,genderGap:"+2.4",l_less_1:10,l_1:29.9,l_2:32,l_3:18,l_4:10.1},{country:"Côte d'Ivoire",score:512,thresholdPct:45.3,genderGap:"-0.5",l_less_1:15,l_1:39.7,l_2:28,l_3:12,l_4:5.3},{country:"Togo",score:508,thresholdPct:52,genderGap:"+1.1",l_less_1:12,l_1:36,l_2:30,l_3:15,l_4:7},{country:"Congo",score:485,thresholdPct:41.2,genderGap:"-1.5",l_less_1:18,l_1:40.8,l_2:25,l_3:11.2,l_4:5},{country:"Guinée",score:468,thresholdPct:35,genderGap:"-2.0",l_less_1:22,l_1:43,l_2:22,l_3:9,l_4:4},{country:"Madagascar",score:462,thresholdPct:33.8,genderGap:"+0.4",l_less_1:24,l_1:42.2,l_2:21,l_3:8.8,l_4:4},{country:"Niger",score:458,thresholdPct:29,genderGap:"-1.1",l_less_1:30,l_1:41,l_2:19,l_3:7,l_4:3},{country:"Tchad",score:440,thresholdPct:24.5,genderGap:"-3.8",l_less_1:38,l_1:37.5,l_2:15,l_3:6,l_4:3.5}],b=M(()=>{const n=$.value==="multiselect"?v.value:j.value;return n==="reading"||n==="lecture"?xe:pe}),k=M(()=>{const n=b.value,s=F.value;return n.map(i=>{let t=i.score,r="pts",d=i.score/700*100;return s==="threshold"?(t=i.thresholdPct,r="%",d=i.thresholdPct):s==="level_less_1"?(t=i.l_less_1,r="%",d=Math.min(100,i.l_less_1*2)):s==="level_1"?(t=i.l_1,r="%",d=Math.min(100,i.l_1*2)):s==="level_2"?(t=i.l_2,r="%",d=Math.min(100,i.l_2*2)):s==="level_3"?(t=i.l_3,r="%",d=Math.min(100,i.l_3*2)):s==="level_4"&&(t=i.l_4,r="%",d=Math.min(100,i.l_4*2)),{country:i.country,numericValue:t,displayValue:t,unit:r,percentWidth:d}})}),P=n=>60+n*((K-80)/Math.max(1,k.value.length-1)),G=n=>240-Math.min(200,n/700*200),Z=M(()=>k.value.map((n,s)=>`${P(s)},${G(n.numericValue)}`).join(" ")),ve=M(()=>{const n=k.value.reduce((r,d)=>r+d.numericValue,0);let s=0;const i=80,t=50;return k.value.map((r,d)=>{const T=r.numericValue/Math.max(1,n)*2*Math.PI,y=s,B=s+T;s=B;const E=Math.cos(y)*i,ae=Math.sin(y)*i,I=Math.cos(B)*i,O=Math.sin(B)*i,q=Math.cos(y)*t,L=Math.sin(y)*t,J=Math.cos(B)*t,ye=Math.sin(B)*t,ne=T>Math.PI?1:0,_e=[`M ${q} ${L}`,`L ${E} ${ae}`,`A ${i} ${i} 0 ${ne} 1 ${I} ${O}`,`L ${J} ${ye}`,`A ${t} ${t} 0 ${ne} 0 ${q} ${L}`,"Z"].join(" ");return{country:r.country,score:`${r.displayValue} ${r.unit}`,color:oe[d%oe.length],path:_e}})}),A=M(()=>{const n=k.value,s=n.length,i=170,t=160,r=110,d=n.map((y,B)=>{const E=2*Math.PI*B/s-Math.PI/2,I=Math.min(1,Math.max(0,y.percentWidth/100))*r,O=i+I*Math.cos(E),q=t+I*Math.sin(E),L=i+(r+22)*Math.cos(E),J=t+(r+22)*Math.sin(E);return{country:y.country,value:y.displayValue,unit:y.unit,x:O,y:q,labelX:L,labelY:J,angle:E}}),T=d.map(y=>`${y.x.toFixed(1)},${y.y.toFixed(1)}`).join(" ");return{cx:i,cy:t,maxRadius:r,points:d,polygonPoints:T}}),be=M(()=>{const n=P(0),s=P(k.value.length-1);return`${n},240 ${Z.value} ${s},240`}),z=n=>n>=35?"bg-[#1A234B] text-white font-extrabold":n>=25?"bg-[#5F3594] text-white font-bold":n>=15?"bg-indigo-200 text-indigo-900 font-semibold":n>=5?"bg-indigo-100 text-indigo-800":"bg-slate-100 text-slate-600",he=()=>{window.print()},ge=()=>{window.print()},fe=()=>{const n=g.value==="synthetic"?["Pays","Ãvaluation","Score Moyen","Seuil Suffisant (%)","Ãcart Garçons/Filles","Statut"]:["Pays","Score Moyen","Niveau < 1 (%)","Niveau 1 (%)","Niveau 2 (%)","Niveau 3 (%)","Niveau 4 (%)","Seuil Suffisant (%)"],s=g.value==="synthetic"?b.value.map(d=>[`"${d.country}"`,`"${C.value}"`,d.score,`"${d.thresholdPct}%"`,`"${d.genderGap} pts"`,`"${d.score>=500?"Au-dessus moyenne":"En-dessous moyenne"}"`]):b.value.map(d=>[`"${d.country}"`,d.score,`"${d.l_less_1}%"`,`"${d.l_1}%"`,`"${d.l_2}%"`,`"${d.l_3}%"`,`"${d.l_4}%"`,`"${d.thresholdPct}%"`]),i="data:text/csv;charset=utf-8,\uFEFF"+[n.join(";"),...s.map(d=>d.join(";"))].join(` 2`),t=encodeURI(i),r=document.createElement("a");r.setAttribute("href",t),r.setAttribute("download",`${g.value==="synthetic"?"Tableau_Synthetique":"Echelle_Competences"}_PASEC_${C.value}_${j.value}.csv`),document.body.appendChild(r),r.click(),document.body.removeChild(r),V.success("Export CSV généré avec succès !",{position:"bottom-right",duration:4e3})};return(n,s)=>{const i=de("router-link");return o(),a("div",Fe,[e("section",Ge,[s[19]||(s[19]=e("div",{class:"absolute inset-0 bg-gradient-to-t from-[#1A234B] via-[#5F3594]/80 to-[#1A234B]/50 pointer-events-none"},null,-1)),e("div",ze,[e("div",De,[s[14]||(s[14]=e("span",{class:"w-2 h-2 rounded-full bg-amber-400 animate-pulse"},null,-1)),Q(" "+l(n.$t("advancedDataView.badge")),1)]),e("h1",Te,l(n.$t("advancedDataView.title")),1),e("p",Ie,l(n.$t("advancedDataView.subtitle")),1),e("div",qe,[D(i,{to:{name:N("advanced-data-view")},class:"group bg-white/20 border-2 border-amber-400 rounded-2xl p-5 transition-all duration-300 cursor-pointer backdrop-blur-md shadow-lg shadow-amber-400/10"},{default:H(()=>[e("div",Le,[s[15]||(s[15]=e("div",{class:"w-10 h-10 rounded-xl bg-amber-400 text-slate-900 flex items-center justify-center shrink-0 font-bold shadow-md"},[e("svg",{class:"w-5 h-5 text-slate-900",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2.5"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"})])],-1)),e("div",null,[e("p",Re,l(n.$t("advancedDataView.cards.indicators.title")),1),e("p",Ue,l(n.$t("advancedDataView.cards.indicators.desc")),1
2)])])]),_:1},8,["to"]),D(i,{to:{name:N("country-comparator")},class:"group bg-white/10 hover:bg-white/20 border border-white/20 hover:border-white/40 rounded-2xl p-5 transition-all duration-300 cursor-pointer backdrop-blur-md"},{default:H(()=>[e("div",He,[s[16]||(s[16]=e("div",{class:"w-10 h-10 rounded-xl bg-amber-400/20 flex items-center justify-center shrink-0"},[e("svg",{class:"w-5 h-5 text-amber-300",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.055 11H5a2 2 0 012 2v1a2 2 0 002 2 2 2 0 012 2v2.945M8 3.935V5.5A2.5 2.5 0 0010.5 8h.5a2 2 0 012 2 2 2 0 104 0 2 2 0 012-2h1.064M15 20.488V18a2 2 0 012-2h3.064M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})])],-1)),e("div",null,[e("p",Ye,l(n.$t("advancedDataView.cards.compare.title")),1),e("p",We,l(n.$t("advancedDataView.cards.compare.desc")),1)])])]),_:1},8,["to"]),D(i,{to:{name:N("data-portal")},class:"group bg-white/10 hover:bg-white/20 border border-white/20 hover:border-white/40 rounded-2xl p-5 transition-all duration-300 cursor-pointer backdrop-blur-md"},{default:H(()=>[e("div",Xe,[s[17]||(s[17]=e("div",{class:"w-10 h-10 rounded-xl bg-amber-400/20 flex items-center justify-center shrink-0"},[e("svg",{class:"w-5 h-5 text-amber-300",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"})])],-1)),e("div",null,[e("p",Ze,l(n.$t("advancedDataView.cards.download.title")),1),e("p",Oe,l(n.$t("advancedDataView.cards.download.desc")),1)])])]),_:1},8,["to"])]),e("div",Je,[s[18]||(s[18]=e("svg",{class:"w-4 h-4 text-amber-300 shrink-0",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0z"})],-1)),Q(" "+l(n.$t("advancedDataView.footerTagline")),1)])])]),e("div",Ke,[e("div",Qe,[e("div",null,[e("h2",et,l(n.$t("advancedDataView.modeTitle")),1),e("p",tt,l(n.$t("advancedDataView.modeSubtitle")),1)]),e("div",st,[e("button",{onClick:s[0]||(s[0]=t=>$.value="visualizer"),class:p(["flex-1 sm:flex-none px-5 py-2.5 rounded-xl text-xs font-extrabold transition-all duration-200 cursor-pointer flex items-center justify-center gap-2",$.value==="visualizer"?"bg-[#1A234B] text-white shadow-md":"text-slate-600 hover:text-[#1A234B]"])},[s[20]||(s[20]=e("svg",{class:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"})],-1)),e("span",null,l(n.$t("advancedDataView.modeVisualizer")),1)],2),e("button",{onClick:s[1]||(s[1]=t=>$.value="multiselect"),class:p(["flex-1 sm:flex-none px-5 py-2.5 rounded-xl text-xs font-extrabold transition-all duration-200 cursor-pointer flex items-center justify-center gap-2",$.value==="multiselect"?"bg-[#5F3594] text-white shadow-md":"text-slate-600 hover:text-[#5F3594]"])},[s[21]||(s[21]=e("svg",{class:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3 10h18M3 14h18m-9-4v8m-7 0h14a2 2 0 002-2V8a2 2 0 00-2-2H5a2 2 0 00-2 2v8a2 2 0 002 2z"})],-1)),e("span",null,l(n.$t("advancedDataView.modeMultiselect")),1)],2)])]),_(e("div",lt,[e("div",ot,[e("div",at,[e("div",nt,[s[23]||(s[23]=e("label",{class:"text-xs font-extrabold uppercase tracking-wider text-slate-500"},"Discipline",-1)),_(e("select",{"onUpdate:modelValue":s[2]||(s[2]=t=>j.value=t),class:"w-full py-3 px-4 bg-slate-50 border border-slate-200 rounded-2xl text-sm font-semibold text-slate-800 focus:ring-2 focus:ring-[#1A234B] outline-none"},[...s[22]||(s[22]=[e("option",{value:"reading"},"Lecture / Langue",-1),e("option",{value:"math"},"Mathématiques",-1)])],512),[[S,j.value]])]),e("div",rt,[s[25]||(s[25]=e("label",{class:"text-xs font-extrabold uppercase tracking-wider text-slate-500"},"Niveau d'étude",-1)),_(e("select",{"onUpdate:modelValue":s[3]||(s[3]=t=>X.value=t),class:"w-full py-3 px-4 bg-slate-50 border border-slate-200 rounded-2xl text-sm font-semibold text-slate-800 focus:ring-2 focus:ring-[#1A234B] outline-none"},[...s[24]||(s[24]=[e("option",{value:"CP"},"Début de scolarité (2e année / CP)",-1),e("option",{value:"CM2"},"Fin de scolarité (6e année / CM2)",-1)])],512),[[S,X.value]])]),e("div",it,[s[27]||(s[27]=e("label",{class:"text-xs font-extrabold uppercase tracking-wider text-slate-500"},"Indicateur / Ãchelle de compétences",-1)),_(e("select",{"onUpdate:modelValue":s[4]||(s[4]=t=>F.value=t),class:"w-full py-3 px-4 bg-slate-50 border border-slate-200 rounded-2xl text-sm font-semibold text-slate-800 focus:ring-2 focus:ring-[#1A234B] outline-none cursor-pointer"},[...s[26]||(s[26]=[Y('<option value="avg_score">Score moyen national (0-700 pts)</option><option value="threshold">Seuil suffisant de compétences (Niveau ⥠2) (%)</option><option value="level_less_1">Niveau < 1 (Sous le niveau 1) (%)</option><option value="level_1">Niveau 1 (Compétences basiques) (%)</option><option value="level_2">Niveau 2 (Seuil de suffisance) (%)</option><option value="level_3">Niveau 3 (Compétences avancées) (%)</option><option value="level_4">Niveau 4 (Compétences supérieures) (%)</option>',7)])],512),[[S,F.value]])]),e("div",dt,[s[29]||(s[29]=e("label",{class:"text-xs font-extrabold uppercase tracking-wider text-slate-500"},"Ãvaluation PASEC",-1)),_(e("select",{"onUpdate:modelValue":s[5]||(s[5]=t=>C.value=t),class:"w-full py-3 px-4 bg-slate-50 border border-slate-200 rounded-2xl text-sm font-semibold text-slate-800 focus:ring-2 focus:ring-[#1A234B] outline-none"},[...s[28]||(s[28]=[e("option",{value:"2019"},"PASEC 2019",-1),e("option",{value:"2014"},"PASEC 2014",-1)])],512),[[S,C.value]])]),e("div",ct,[s[30]||(s[30]=e("label",{class:"text-xs font-extrabold uppercase tracking-wider text-slate-500"},"Type de graphique",-1)),_(e("select",{"onUpdate:modelValue":s[6]||(s[6]=t=>f.value=t),class:"w-full py-3 px-4 bg-slate-50 border border-slate-200 rounded-2xl text-sm font-semibold text-slate-800 focus:ring-2 focus:ring-[#1A234B] outline-none cursor-pointer"},[(o(),a(u,null,x(se,t=>e("option",{key:t.id,value:t.id},l(t.label),9,ut)),64))],512),[[S,f.value]])]),e("div",{class:"space-y-1.5 sm:col-span-2 lg:col-span-3 xl:col-span-5 pt-2 border-t border-slate-100"},[e("div",{class:"flex flex-col sm:flex-row justify-between items-center gap-4"},[s[34]||(s[34]=e("span",{class:"text-xs font-bold text-slate-600"},"Exporter les données filtrées :",-1)),e("div",{class:"flex gap-2 w-full sm:w-auto"},[e("button",{onClick:he,class:"flex-1 sm:flex-none py-2.5 px-4 bg-[#1A234B] hover:bg-[#2A376C] text-white font-bold text-xs rounded-xl shadow-sm transition-all flex items-center justify-center gap-1 cursor-pointer",title:"Télécharger toute la page en image HD (PNG)"},[...s[31]||(s[31]=[e("span",null,"Image PNG",-1)])]),e("button",{onClick:ge,class:"flex-1 sm:flex-none py-2.5 px-4 bg-purple-700 hover:bg-purple-800 text-white font-bold text-xs rounded-xl shadow-sm transition-all flex items-center justify-center gap-1 cursor-pointer",title:"Imprimer ou enregistrer en PDF"},[...s[32]||(s[32]=[e("span",null,"PDF",-1)])]),e("button",{onClick:fe,class:"flex-1 sm:flex-none py-2.5 px-4 bg-emerald-600 hover:bg-emerald-700 text-white font-bold text-xs rounded-xl shadow-sm transition-all flex items-center justify-center gap-1 cursor-pointer",title:"Exporter en fichier Excel / CSV"},[...s[33]||(s[33]=[e("span",null,"Excel/CSV",-1)])])])])])])]),e("div",xt,[e("div",pt,[e("div",null,[e("h3",vt,l(le.value?le.value.label:"")+" â "+l(j.value==="reading"?"Lecture":"Mathématiques")+" ("+l(X.value)+") ",1),e("p",bt," Indicateur sélectionné : "+l(ue.value),1)]),e("span",ht,l
2(C.value),1)]),f.value==="bar-h"?(o(),a("div",gt,[(o(!0),a(u,null,x(k.value,t=>(o(),a("div",{key:t.country,class:"space-y-1"},[e("div",ft,[e("span",yt,[e("span",null,l(t.country),1)]),e("span",_t,l(t.displayValue)+" "+l(t.unit),1)]),e("div",mt,[e("div",{class:"h-full rounded-lg bg-gradient-to-r from-[#1A234B] to-[#5F3594] transition-all duration-700 flex items-center justify-end pr-2 text-[10px] font-bold text-white",style:U(`width: ${t.percentWidth}%`)},l(t.displayValue)+l(t.unit),5)])]))),128)),F.value==="avg_score"?(o(),a("div",wt,[...s[35]||(s[35]=[e("div",{class:"h-0.5 w-8 border-t-2 border-dashed border-amber-400"},null,-1),e("span",{class:"text-xs text-amber-600 font-semibold"},"Moyenne PASEC = 500 pts",-1)])])):W("",!0)])):f.value==="bar-v"?(o(),a("div",kt,[e("div",At,[(o(!0),a(u,null,x(k.value,t=>(o(),a("div",{key:t.country,class:"flex flex-col items-center gap-1 flex-1"},[e("span",$t,l(t.displayValue)+l(t.unit),1),e("div",{class:"w-full rounded-t-xl bg-gradient-to-t from-[#1A234B] to-[#5F3594] transition-all duration-700 hover:opacity-80 relative group cursor-pointer",style:U(`height: ${t.percentWidth*2}px`)},[e("div",Pt,l(t.country)+": "+l(t.displayValue)+" "+l(t.unit),1)],4),e("span",Mt,l(t.country.split(" ")[0]),1)]))),128))])])):f.value==="line"?(o(),a("div",St,[(o(),a("svg",{viewBox:`0 0 ${K} 260`,class:"w-full min-w-[500px]",preserveAspectRatio:"xMidYMid meet"},[s[36]||(s[36]=e("defs",null,[e("linearGradient",{id:"lineGrad",x1:"0%",y1:"0%",x2:"100%",y2:"0%"},[e("stop",{offset:"0%","stop-color":"#1A234B"}),e("stop",{offset:"100%","stop-color":"#5F3594"})])],-1)),e("polyline",{points:Z.value,fill:"none",stroke:"url(#lineGrad)","stroke-width":"3","stroke-linejoin":"round","stroke-linecap":"round"},null,8,Bt),(o(!0),a(u,null,x(k.value,(t,r)=>(o(),a("g",{key:t.country},[e("circle",{cx:P(r),cy:G(t.numericValue),r:"6",fill:"white",stroke:"#1A234B","stroke-width":"2.5"},null,8,Et),e("text",{x:P(r),y:G(t.numericValue)-12,"text-anchor":"middle","font-size":"9",fill:"#1A234B","font-weight":"bold"},l(t.displayValue)+l(t.unit),9,Vt),e("text",{x:P(r),y:242,"text-anchor":"middle","font-size":"9",fill:"#64748b"},l(t.country.split(" ")[0]),9,Nt)]))),128))],8,Ct))])):f.value==="donut"?(o(),a("div",jt,[(o(),a("svg",Ft,[e("g",Gt,[(o(!0),a(u,null,x(ve.value,(t,r)=>(o(),a("path",{key:r,d:t.path,fill:t.color,opacity:"0.88",class:"hover:opacity-100 transition-opacity cursor-pointer"},[e("title",null,l(t.country)+": "+l(t.score),1)],8,zt))),128)),s[37]||(s[37]=e("text",{"text-anchor":"middle",dy:"-6","font-size":"13","font-weight":"800",fill:"#1A234B"},"PASEC",-1)),e("text",Dt,l(C.value),1)])]))])):f.value==="radar"?(o(),a("div",Tt,[(o(),a("svg",It,[e("g",null,[(o(),a(u,null,x([25,50,75,100],t=>e("circle",{key:t,cx:A.value.cx,cy:A.value.cy,r:t,fill:"none",stroke:"#e2e8f0","stroke-width":"1.5","stroke-dasharray":"3 3"},null,8,qt)),64)),(o(!0),a(u,null,x(A.value.points,t=>(o(),a("line",{key:"axis-"+t.country,x1:A.value.cx,y1:A.value.cy,x2:A.value.cx+A.value.maxRadius*Math.cos(t.angle),y2:A.value.cy+A.value.maxRadius*Math.sin(t.angle),stroke:"#cbd5e1","stroke-width":"1.5"},null,8,Lt))),128)),e("polygon",{points:A.value.polygonPoints,fill:"#5F3594","fill-opacity":"0.35",stroke:"#1A234B","stroke-width":"2.5","stroke-linejoin":"round"},null,8,Rt),(o(!0),a(u,null,x(A.value.points,t=>(o(),a("g",{key:"dot-"+t.country},[e("circle",{cx:t.x,cy:t.y,r:"4.5",fill:"#5F3594",stroke:"white","stroke-width":"2"},null,8,Ut),e("text",{x:t.labelX,y:t.labelY,"text-anchor":"middle","font-size":"9","font-weight":"bold",fill:"#1A234B"},l(t.country.split(" ")[0])+" ("+l(t.value)+")",9,Ht)]))),128))])]))])):f.value==="area"?(o(),a("div",Yt,[(o(),a("svg",{viewBox:`0 0 ${K} 260`,class:"w-full min-w-[500px]",preserveAspectRatio:"xMidYMid meet"},[s[38]||(s[38]=e("defs",null,[e("linearGradient",{id:"areaGrad",x1:"0%",y1:"0%",x2:"0%",y2:"100%"},[e("stop",{offset:"0%","stop-color":"#5F3594","stop-opacity":"0.6"}),e("stop",{offset:"100%","stop-color":"#1A234B","stop-opacity":"0.05"})])],-1)),e("polygon",{points:be.value,fill:"url(#areaGrad)"},null,8,Xt),e("polyline",{points:Z.value,fill:"none",stroke:"#1A234B","stroke-width":"3","stroke-linejoin":"round","stroke-linecap":"round"},null,8,Zt),(o(!0),a(u,null,x(k.value,(t,r)=>(o(),a("g",{key:t.country},[e("circle",{cx:P(r),cy:G(t.numericValue),r:"5.5",fill:"#5F3594",stroke:"white","stroke-width":"2"},null,8,Ot),e("text",{x:P(r),y:G(t.numericValue)-12,"text-anchor":"middle","font-size":"9",fill:"#1A234B","font-weight":"bold"},l(t.displayValue)+l(t.unit),9,Jt),e("text",{x:P(r),y:242,"text-anchor":"middle","font-size":"9",fill:"#64748b"},l(t.country.split(" ")[0]),9,Kt)]))),128))],8,Wt))])):f.value==="scatter"?(o(),a("div",Qt,[e("div",es,[s[41]||(s[41]=e("p",{class:"text-xs font-bold text-slate-600 mb-3 text-center"},"Score Moyen (Axe X) vs Seuil Suffisant (Axe Y)",-1)),(o(),a("svg",ts,[s[39]||(s[39]=e("line",{x1:"40",y1:"200",x2:"480",y2:"200",stroke:"#cbd5e1","stroke-width":"2"},null,-1)),s[40]||(s[40]=e("line",{x1:"40",y1:"20",x2:"40",y2:"200",stroke:"#cbd5e1","stroke-width":"2"},null,-1)),(o(!0),a(u,null,x(b.value,t=>(o(),a("g",{key:"scatter-"+t.country},[e("circle",{cx:40+(t.score-400)/300*420,cy:200-t.thresholdPct/100*170,r:"8",fill:"#5F3594","fill-opacity":"0.8",stroke:"#1A234B","stroke-width":"2",class:"hover:scale-125 transition-transform cursor-pointer"},[e("title",null,l(t.country)+": "+l(t.score)+" pts | "+l(t.thresholdPct)+"%",1)],8,ss),e("text",{x:40+(t.score-400)/300*420,y:200-t.thresholdPct/100*170-12,"text-anchor":"middle","font-size":"9","font-weight":"bold",fill:"#1A234B"},l(t.country),9,ls)]))),128))]))])])):f.value==="gauge"?(o(),a("div",os,[(o(!0),a(u,null,x(k.value,t=>(o(),a("div",{key:"gauge-"+t.country,class:"flex flex-col items-center p-4 bg-slate-50 rounded-2xl border border-slate-200"},[e("div",as,[(o(),a("svg",ns,[s[42]||(s[42]=e("circle",{cx:"50",cy:"50",r:"40",fill:"none",stroke:"#e2e8f0","stroke-width":"10"},null,-1)),e("circle",{cx:"50",cy:"50",r:"40",fill:"none",stroke:"#5F3594","stroke-width":"10","stroke-dasharray":251.2,"stroke-dashoffset":251.2*(1-t.percentWidth/100),"stroke-linecap":"round"},null,8,rs)])),e("div",is,[e("span",ds,l(t.displayValue),1),e("span",cs,l(t.unit),1)])]),e("span",us,l(t.country),1)]))),128))])):f.value==="heatmap"?(o(),a("div",xs,[e("div",ps,[s[43]||(s[43]=e("div",{class:"grid grid-cols-6 bg-slate-100 text-xs font-extrabold text-slate-700 p-3 border-b border-slate-200 text-center"},[e("span",{class:"text-left"},"Pays"),e("span",null,"Niveau < 1"),e("span",null,"Niveau 1"),e("span",null,"Niveau 2"),e("span",null,"Niveau 3"),e("span",null,"Niveau 4")],-1)),(o(!0),a(u,null,x(b.value,t=>(o(),a("div",{key:"hm-"+t.country,class:"grid grid-cols-6 text-xs p-2 border-b border-slate-100 items-center text-center"},[e("span",vs,l(t.country),1),e("span",{class:p(["py-2 rounded-lg m-1",z(t.l_less_1)])},l(t.l_less_1)+"%",3),e("span",{class:p(["py-2 rounded-lg m-1",z(t.l_1)])},l(t.l_1)+"%",3),e("span",{class:p(["py-2 rounded-lg m-1",z(t.l_2)])},l(t.l_2)+"%",3),e("span",{class:p(["py-2 rounded-lg m-1",z(t.l_3)])},l(t.l_3)+"%",3),e("span",{class:p(["py-2 rounded-lg m-1",z(t.l_4)])},l(t.l_4)+"%",3)]))),128))])])):f.value==="grouped"?(o(),a("div",bs,[e("div",hs,[(o(!0),a(u,null,x(b.value,t=>(o(),a("div",{key:"grp-"+t.country,class:"flex flex-col items-center gap-1 flex-1"},[e("div",gs,[e("div",{class:"w-1/2 bg-[#1A234B] rounded-t-lg transition-all",style:U(`height: ${t.score/700*100}%`),title:`Score: ${t.score} pts`},null,12,fs),e("div",{class:"w-1/2 bg-amber-400 rounded-t-lg transition-all",style:U(`height: ${t.thresholdPct}%`),title:`Seuil: ${t.thresholdPct}%`},null,12,ys)]),e("span",_s,l(t.country.split(" ")[0]),1)]))),128))]),s[44]||(s[44]=Y('<div class="flex items-center justify-center gap-6 pt-3 text-xs font-bold"><span class="flex items-center gap-2"><span class="w-3 h-3 bg-[#1A234B] rounded-sm"></span> Score Moyen (pts / 700)</span><span class="flex items-center gap-2"><span class="w-3 h-3 bg-amber-400 rounded-sm"></span> Seuil Suffisant (%)</span></div>',1))])):W("",!0)]),e("div",ms,[e("div",ws,[e("div",null,[e("h3",ks,l(g.value==="synthetic"?"Tableau Synthétique":"Pourcentage d'élèves dans l'échelle de compétences"),1),e("p",As,l(g.value==="synthetic"?"Scores moyens et taux de réussite globaux par pays":"Distribution des élèves du Niveau < 1 au Niveau 4"),1)]),e("div",$s,[e("button",{onClick:s[7]||(s[7]=t=>g.value="synthetic"),class:p(["flex-1 sm:flex-none px-4 py-2 rounded-xl text-xs font-bold transition-all cursor-pointer flex items-center justify-center gap-1.5",g.value==="synthetic"?"bg-[#1A234B] text-white shadow-sm":"text-slate-600 hover:text-[#1A234B]"])},[...s[45]||(s[45]=[e("span",null,"ð Tableau Synthétique",-1)])],2),e("button",{onClick:s[8]||(s[8]=t=>g.value="competency"),class:p(["flex-1 sm:flex-none px-4 py-2 rounded-xl text-xs font-bold transition-all cursor-pointer flex items-center justify-center gap-1.5",g.value==="competency"?"bg-[#5F3594] text-white shadow-sm":"text-slate-600 hover:text-[#5F3594]"])},[...s[46]||(s[46]=[e("span",null,"ð Ãchelle de Compétences (Niv <1 à 4)",-1)])],2)])]),_(e("div",Ps,[e("table",Ms,[s[47]||
2(s[47]=e("thead",null,[e("tr",{class:"bg-slate-50 border-b border-slate-200 text-slate-600 font-extrabold uppercase tracking-wider"},[e("th",{class:"py-3.5 px-4"},"Pays"),e("th",{class:"py-3.5 px-4"},"Ãvaluation"),e("th",{class:"py-3.5 px-4 text-right"},"Score Moyen"),e("th",{class:"py-3.5 px-4 text-right"},"Seuil Suffisant (%)"),e("th",{class:"py-3.5 px-4 text-right"},"Ãcart Garçons/Filles"),e("th",{class:"py-3.5 px-4 text-right"},"Statut")])],-1)),e("tbody",Ss,[(o(!0),a(u,null,x(b.value,t=>(o(),a("tr",{key:t.country,class:"hover:bg-slate-50/80 transition-colors"},[e("td",Cs,[e("span",null,l(t.country),1)]),e("td",Bs,l(C.value),1),e("td",Es,l(t.score)+" pts",1),e("td",{class:p(["py-3.5 px-4 font-bold text-right",t.thresholdPct>=50?"text-emerald-700":"text-amber-700"])},l(t.thresholdPct)+"%",3),e("td",Vs,l(t.genderGap)+" pts",1),e("td",Ns,[e("span",{class:p(["px-2.5 py-1 rounded-lg font-extrabold text-[10px] uppercase",t.score>=500?"bg-emerald-100 text-emerald-800":"bg-amber-100 text-amber-800"])},l(t.score>=500?"Au-dessus moyenne":"En-dessous moyenne"),3)])]))),128))])])],512),[[R,g.value==="synthetic"]]),_(e("div",js,[e("table",Fs,[s[48]||(s[48]=e("thead",null,[e("tr",{class:"bg-slate-50 border-b border-slate-200 text-slate-600 font-extrabold uppercase tracking-wider"},[e("th",{class:"py-3.5 px-4"},"Pays"),e("th",{class:"py-3.5 px-4 text-right"},"Score Moyen"),e("th",{class:"py-3.5 px-4 text-right"},"Niveau < 1"),e("th",{class:"py-3.5 px-4 text-right"},"Niveau 1"),e("th",{class:"py-3.5 px-4 text-right"},"Niveau 2 (Seuil)"),e("th",{class:"py-3.5 px-4 text-right"},"Niveau 3"),e("th",{class:"py-3.5 px-4 text-right"},"Niveau 4"),e("th",{class:"py-3.5 px-4 text-right"},"Seuil Suffisant (Nâ¥2)")])],-1)),e("tbody",Gs,[(o(!0),a(u,null,x(b.value,t=>(o(),a("tr",{key:t.country,class:"hover:bg-slate-50/80 transition-colors"},[e("td",zs,[e("span",null,l(t.country),1)]),e("td",Ds,l(t.score)+" pts",1),e("td",Ts,l(t.l_less_1)+"%",1),e("td",Is,l(t.l_1)+"%",1),e("td",qs,l(t.l_2)+"%",1),e("td",Ls,l(t.l_3)+"%",1),e("td",Rs,l(t.l_4)+"%",1),e("td",{class:p(["py-3.5 px-4 text-right font-black",t.thresholdPct>=50?"text-emerald-700":"text-amber-700"])},l(t.thresholdPct)+"%",3)]))),128))])])],512),[[R,g.value==="competency"]])])],512),[[R,$.value==="visualizer"]]),_(e("div",Us,[e("div",Hs,[s[49]||(s[49]=e("div",null,[e("h3",{class:"text-xl font-extrabold text-slate-900"},"Recherche Avancée par Indicateurs & Pays"),e("p",{class:"text-xs text-slate-500"},"Sélectionnez les pays et les indicateurs à comparer sous forme de tableau filtrable.")],-1)),e("div",Ys,[e("button",{onClick:s[9]||(s[9]=t=>v.value="lecture"),class:p(["px-4 py-2 rounded-xl text-xs font-bold transition-all",v.value==="lecture"?"bg-[#5F3594] text-white":"bg-slate-100 text-slate-700"])},"Lecture Global",2),e("button",{onClick:s[10]||(s[10]=t=>v.value="maths"),class:p(["px-4 py-2 rounded-xl text-xs font-bold transition-all",v.value==="maths"?"bg-[#5F3594] text-white":"bg-slate-100 text-slate-700"])},"Maths Global",2)])]),e("div",Ws,[e("div",null,[s[51]||(s[51]=e("label",{class:"block text-xs font-bold text-slate-600 mb-2 uppercase"},"Année / Ãvaluation",-1)),_(e("select",{"onUpdate:modelValue":s[11]||(s[11]=t=>w.value=t),class:"w-full py-3 px-4 bg-white border border-slate-200 rounded-xl text-sm font-semibold text-slate-800"},[...s[50]||(s[50]=[e("option",{value:"2019"},"Annuelle - 2019",-1),e("option",{value:"2014"},"Annuelle - 2014",-1)])],512),[[S,w.value]])]),e("div",null,[s[53]||(s[53]=e("label",{class:"block text-xs font-bold text-slate-600 mb-2 uppercase"},"Sélection des Pays",-1)),_(e("select",{"onUpdate:modelValue":s[12]||(s[12]=t=>ee.value=t),class:"w-full py-3 px-4 bg-white border border-slate-200 rounded-xl text-sm font-semibold text-slate-800"},[...s[52]||(s[52]=[e("option",{value:"all"},"Tous les pays (12 pays)",-1),e("option",{value:"top3"},"Top 3 (Gabon, Bénin, Sénégal)",-1),e("option",{value:"sahel"},"Pays du Sahel (Burkina, Niger, Tchad, Mali)",-1)])],512),[[S,ee.value]])]),e("div",null,[s[55]||(s[55]=e("label",{class:"block text-xs font-bold text-slate-600 mb-2 uppercase"},"Filtre d'Indicateurs",-1)),_(e("select",{"onUpdate:modelValue":s[13]||(s[13]=t=>te.value=t),class:"w-full py-3 px-4 bg-white border border-slate-200 rounded-xl text-sm font-semibold text-slate-800"},[...s[54]||(s[54]=[e("option",{value:"all"},"Tous les niveaux d'échelle (Niveau < 1 à Niveau 4)",-1),e("option",{value:"levels_only"},"Niveaux d'échelle uniquement",-1),e("option",{value:"scores_only"},"Score moyen national uniquement",-1)])],512),[[S,te.value]])])]),e("div",Xs,[e("table",Zs,[e("thead",null,[e("tr",Os,[s[56]||(s[56]=e("th",{class:"py-3.5 px-4 sticky left-0 bg-slate-100"},"Indicateur / Pays",-1)),(o(!0),a(u,null,x(b.value,t=>(o(),a("th",{key:t.country,class:"py-3.5 px-4 text-right"}," ð¸ð³ "+l(t.country),1))),128))])]),e("tbody",Js,[e("tr",Ks,[s[57]||(s[57]=e("td",{class:"py-3.5 px-4 font-bold text-slate-900 sticky left-0 bg-white border-r"},"Niveau < 1",-1)),(o(!0),a(u,null,x(b.value,t=>(o(),a("td",{key:t.country,class:"py-3.5 px-4 text-right text-rose-600 font-semibold"}
2,l(t.l_less_1)+"%",1))),128))]),e("tr",Qs,[s[58]||(s[58]=e("td",{class:"py-3.5 px-4 font-bold text-slate-900 sticky left-0 bg-white border-r"},"Niveau 1",-1)),(o(!0),a(u,null,x(b.value,t=>(o(),a("td",{key:t.country,class:"py-3.5 px-4 text-right text-amber-600 font-semibold"},l(t.l_1)+"%",1))),128))]),e("tr",el,[s[59]||(s[59]=e("td",{class:"py-3.5 px-4 font-bold text-slate-900 sticky left-0 bg-white border-r"},"Niveau 2 (Seuil suffisant)",-1)),(o(!0),a(u,null,x(b.value,t=>(o(),a("td",{key:t.country,class:"py-3.5 px-4 text-right text-indigo-600 font-bold bg-indigo-50/30"},l(t.l_2)+"%",1))),128))]),e("tr",tl,[s[60]||(s[60]=e("td",{class:"py-3.5 px-4 font-bold text-slate-900 sticky left-0 bg-white border-r"},"Niveau 3",-1)),(o(!0),a(u,null,x(b.value,t=>(o(),a("td",{key:t.country,class:"py-3.5 px-4 text-right text-emerald-600 font-semibold"},l(t.l_3)+"%",1))),128))]),e("tr",sl,[s[61]||(s[61]=e("td",{class:"py-3.5 px-4 font-bold text-slate-900 sticky left-0 bg-white border-r"},"Niveau 4",-1)),(o(!0),a(u,null,x(b.value,t=>(o(),a("td",{key:t.country,class:"py-3.5 px-4 text-right text-emerald-700 font-bold"},l(t.l_4)+"%",1))),128))]),e("tr",ll,[s[62]||(s[62]=e("td",{class:"py-3.5 px-4 font-black text-[#1A234B] sticky left-0 bg-slate-50 border-r"},"Score Moyen National",-1)),(o(!0),a(u,null,x(b.value,t=>(o(),a("td",{key:t.country,class:"py-3.5 px-4 text-right text-[#1A234B] font-extrabold"},l(t.score)+" pts",1))),128))])])])])],512),[[R,$.value==="multiselect"]]),e("div",ol,[D(je)])])])}}});export{dl as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.