const DATA = [ { "name": "فهد سعيد بن جمعان الزهراني", "url": "https://stat2025-map.static.hf.space/TG/01.html" }, { "name": "عبدالملك عبدالرحمن بن محمد العصيل", "url": "https://stat2025-map.static.hf.space/TG/02.html" }, { "name": "نايف محمد علي زين", "url": "https://stat2025-map.static.hf.space/TG/03.html" }, { "name": "احمد يحي على هزازي", "url": "https://stat2025-map.static.hf.space/TG/04.html" }, { "name": "مصعب عبداللطيف محمد الجعفري", "url": "https://stat2025-map.static.hf.space/TG/05.html" }, { "name": "تالا إبراهيم الوطبان", "url": "https://stat2025-map.static.hf.space/TG/06.html" }, { "name": "مهدي محمد آل اسماعيل", "url": "https://stat2025-map.static.hf.space/TG/07.html" }, { "name": "فاطمه راشد يوسف العزمان", "url": "https://stat2025-map.static.hf.space/TG/08.html" }, { "name": "أروى عبدالله سعد العقيل", "url": "https://stat2025-map.static.hf.space/TG/09.html" }, { "name": "ساره عيسى بن عباس المطوع", "url": "https://stat2025-map.static.hf.space/TG/10.html" }, { "name": "اثير جعفر سالم الزهراني", "url": "https://stat2025-map.static.hf.space/TG/11.html" }, { "name": "ديما علي هادي حكمي", "url": "https://stat2025-map.static.hf.space/TG/12.html" }, { "name": "مريم محمد عبدالله الدوسري", "url": "https://stat2025-map.static.hf.space/TG/13.html" }, { "name": "العنود محمد بن عبدالله", "url": "https://stat2025-map.static.hf.space/TG/14.html" }, { "name": "ساره راشد عبدالله المديني", "url": "https://stat2025-map.static.hf.space/TG/15.html" }, { "name": "سعد خالد عيد المسيليم", "url": "https://stat2025-map.static.hf.space/TG/16.html" }, { "name": "منى خلف نحيطر العنزي", "url": "https://stat2025-map.static.hf.space/TG/17.html" }, { "name": "عبدالمحسن احمد بن صالح الغامدي", "url": "https://stat2025-map.static.hf.space/TG/18.html" }, { "name": "جواهر معيض بن علي الزهراني", "url": "https://stat2025-map.static.hf.space/TG/19.html" }, { "name": "ريم مساعد بن عثمان", "url": "https://stat2025-map.static.hf.space/TG/20.html" }, { "name": "فاطمة سعد مبارك القحطاني", "url": "https://stat2025-map.static.hf.space/TG/21.html" }, { "name": "لطيفه عبداللطيف بن سعد الدوسري", "url": "https://stat2025-map.static.hf.space/TG/22.html" }, { "name": "أحمد جابر بن احمد الشهري", "url": "https://stat2025-map.static.hf.space/TG/23.html" }, { "name": "عبدالله محمد السحيباني", "url": "https://stat2025-map.static.hf.space/TG/24.html" }, { "name": "ريم جعفر ال مسعود", "url": "https://stat2025-map.static.hf.space/TG/25.html" }, { "name": "روان سامي سالم الصيالى", "url": "https://stat2025-map.static.hf.space/TG/26.html" }, { "name": "مريم خالد احمد السليمان", "url": "https://stat2025-map.static.hf.space/TG/27.html" }, { "name": "بنين الحجي", "url": "https://stat2025-map.static.hf.space/TG/28.html" }, { "name": "روابي محمد حمد الزبيران", "url": "https://stat2025-map.static.hf.space/TG/29.html" }, { "name": "غدير عبدالعزيز بن سعد القاسم", "url": "https://stat2025-map.static.hf.space/TG/30.html" }, { "name": "فاطمة نعمة سلمان الهاشم", "url": "https://stat2025-map.static.hf.space/TG/31.html" }, { "name": "مليكه علي عبدالله الهميلي", "url": "https://stat2025-map.static.hf.space/TG/32.html" }, { "name": "فاطمه شهيد بن حسن التركي", "url": "https://stat2025-map.static.hf.space/TG/33.html" }, { "name": "زينب جعفر ال ربح", "url": "https://stat2025-map.static.hf.space/TG/34.html" }, { "name": "طاهرة حسن بن احمد", "url": "https://stat2025-map.static.hf.space/TG/35.html" }, { "name": "ماجد سلطان الشمري", "url": "https://stat2025-map.static.hf.space/TG/36.html" }, { "name": "ايناس الشريف", "url": "https://stat2025-map.static.hf.space/TG/37.html" }, { "name": "مريم علي بن عبدالله", "url": "https://stat2025-map.static.hf.space/TG/38.html" }, { "name": "ابعاد احمد عفات الشمري", "url": "https://stat2025-map.static.hf.space/TG/39.html" }, { "name": "عبدالله فواز الشمري", "url": "https://stat2025-map.static.hf.space/TG/40.html" }, { "name": "نوف سعد بن ابراهيم", "url": "https://stat2025-map.static.hf.space/TG/41.html" }, { "name": "حسن عبدالهادي بن حسين الحواج", "url": "https://stat2025-map.static.hf.space/TG/42.html" }, { "name": "مشاعل محمد حمد المري", "url": "https://stat2025-map.static.hf.space/TG/43.html" }, { "name": "عبدالهادي حسين بن ابراهيم", "url": "https://stat2025-map.static.hf.space/TG/44.html" }, { "name": "مي محمد مبارك الدوسري", "url": "https://stat2025-map.static.hf.space/TG/45.html" }, { "name": "هياء احمد حمد العواد", "url": "https://stat2025-map.static.hf.space/TG/46.html" }, { "name": "محمد محمود عبداللطيف العبدالعظيم", "url": "https://stat2025-map.static.hf.space/TG/47.html" }, { "name": "عبدالعزيز محمد حمود المطيري", "url": "https://stat2025-map.static.hf.space/TG/48.html" }, { "name": "عبدالله علي خلف الجدعان", "url": "https://stat2025-map.static.hf.space/TG/49.html" }, { "name": "فاطمة هزاع الحربي", "url": "https://stat2025-map.static.hf.space/TG/50.html" } ] function normalizeArabic(s) { if (!s) return ""; return String(s) .trim() .toLowerCase() .replace(/[\u064B-\u065F\u0670\u06D6-\u06ED]/g, "") .replace(/\u0640/g, "") .replace(/[إأآٱ]/g, "ا") .replace(/ى/g, "ي") .replace(/ة/g, "ه") .replace(/^ال\s+/g, "") .replace(/\s+/g, " "); } function escapeHtml(str) { return String(str) .replaceAll("&", "&") .replaceAll("<", "<") .replaceAll(">", ">") .replaceAll('"', """) .replaceAll("'", "'"); } function highlightMatch(name, rawQuery) { if (!rawQuery) return escapeHtml(name); const tokens = rawQuery.trim().split(/\s+/).filter(Boolean); if (!tokens.length) return escapeHtml(name); const t = tokens[0]; const idx = name.indexOf(t); if (idx === -1) return escapeHtml(name); const before = escapeHtml(name.slice(0, idx)); const mid = escapeHtml(name.slice(idx, idx + t.length)); const after = escapeHtml(name.slice(idx + t.length)); return `${before}${mid}${after}`; } const elQ = document.getElementById("q"); const elResults = document.getElementById("results"); const elCount = document.getElementById("countPill"); const elTotal = document.getElementById("totalChip"); const toast = document.getElementById("toast"); const toastText = document.getElementById("toastText"); elTotal.innerHTML = `إجمالي: ${DATA.length}`; function showToast(msg = "تم نسخ الرابط") { toastText.textContent = msg; toast.classList.add("show"); clearTimeout(window.__toastT); window.__toastT = setTimeout(() => toast.classList.remove("show"), 1200); } async function copyLink(url) { try { await navigator.clipboard.writeText(url); showToast(); } catch (e) { const ta = document.createElement("textarea"); ta.value = url; document.body.appendChild(ta); ta.select(); document.execCommand("copy"); document.body.removeChild(ta); showToast(); } } function renderResults(list, rawQuery) { elResults.innerHTML = ""; if (!list.length) { elCount.textContent = "النتائج: 0"; elResults.innerHTML = `