(()=>{"use strict";const e=(e,t)=>({priority:1,group:"fonts",requestId:"font",href:t,fontFamily:e}),t=(e,t)=>({priority:4,group:"scripts",requestId:"script",href:e,props:t}),n=e=>e,r={font(e){const{fontFamily:t,href:n}=e;return new FontFace(t,n).load()},script(e,t={}){const{href:n}=e;return fetch(n,t).then((e=>e.text())).then((e=>({type:"application/javascript",text:e}))).then((e=>Object.assign(document.createElement("script"),e)))},css(e,t={}){const{href:n}=e;return fetch(n,t).then((e=>e.text())).then((e=>({innerText:e}))).then((e=>Object.assign(document.createElement("style"),e)))},image(e){const{href:t}=e;return new Promise(((e,n)=>{const r=document.createElement("img");r.onload=()=>e(r),r.onerror=n,r.src=t}))},json(e,t={}){const{href:n}=e;return fetch(n,t).then((e=>e.text())).then((e=>({type:"application/json",text:e}))).then((t=>Object.assign(t,e.props||{}))).then((e=>Object.assign(document.createElement("script"),e)))}};var o=Object.defineProperty,c=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable,i=(e,t,n)=>t in e?o(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;!function(){const o=document.documentElement,u=o.querySelector("meta[name='revision']").getAttribute("content"),l={name:o.lang,direction:o.dir,displayName:""},f=o.querySelector(".postman.loader"),p=o.querySelector(".css.postman"),m=f.querySelector("progress"),h=f.querySelector(".percentage");(function(...e){const t=Object.create(null),n={fonts:[],images:[],css:[],scripts:[],json:[]},[o,c]=function(e){const t=[];let n=e=>e;return e.forEach((e=>{"function"==typeof e?n=e:t.push(e)})),[t,n]}(e);o.sort(((e,t)=>e.priority>=t.priority?1:-1));let s=0;const a=e=>(s++,s<=o.length&&c(s/o.length*100),e);return t.fetch=async()=>(await Promise.all((()=>{const e=o.map((e=>{if("fontFamily"in e)return(0,r.font)(e).then((e=>a(e))).then((e=>n.fonts.push(e))).then((()=>n));if("font"!==e.requestId&&"fonts"!==e.group){const t=r[e.requestId],o=n[e.group];return t(e).then((e=>a(e))).then((e=>o.push(e))).then((()=>n))}return null}));return e})()),n),t})(t(`/js/main/surah-index.js?v=${u}`),e("Kanit Regular","url(/fonts/kanit-regular.ttf)"),e("Mada Regular","url(/fonts/mada-regular.ttf"),n((e=>{m.value=e,h.innerText=function(e,t,n={}){const r="ar"===e.name?"ar-SA":e.name;return new Intl.NumberFormat(r,((e,t)=>{for(var n in t||(t={}))s.call(t,n)&&i(e,n,t[n]);if(c)for(var n of c(t))a.call(t,n)&&i(e,n,t[n]);return e})({maximumFractionDigits:1},n)).format(t)}(l,Number(e.toFixed(0)))}))).fetch().then((e=>{[f,p].forEach((e=>e.remove())),e.fonts.forEach((e=>document.fonts.add(e))),e.css.forEach((e=>document.head.appendChild(e))),e.scripts.forEach((e=>document.body.removeChild(document.body.appendChild(e))))}))}()})();