',i=y(),l=g("div"),c=g("div"),u=g("div"),d=g("b"),d.textContent="من:",p=y(),m=g("label"),q=b("سورة "),A=g("input"),F=y(),j=g("label"),T=b("آية "),L=g("input"),S=y(),M=g("div"),P=g("b"),P.textContent="إلى:",O=y(),H=g("label"),N=b("سورة "),B=g("input"),D=y(),R=g("label"),z=b("آية "),U=g("input"),Q=y(),W=g("label"),V=b("عتامة "),G=g("input"),X=y(),Z=g("output"),tn=b(t[11]),en=b("%"),on=y(),an=g("label"),sn=b("الخط\n "),rn=g("select"),ln=g("option"),ln.textContent="خط عثمان طه",cn=g("option"),cn.textContent="خط كتاب",un=y(),dn=g("div"),fn=g("label"),pn=b("حجم الصفحة\n "),mn=g("select"),hn=g("option"),hn.textContent="letter",$n=g("option"),$n.textContent="A4",bn=y(),yn=g("button"),yn.textContent="🖨️ طباعة",vn=y(),wn=g("div"),jn&&jn.c(),_n=y(),Tn&&Tn.c(),xn=y(),kn=g("article"),w(r,"class","flex justify-between items-center"),w(A,"class","border-2 w-14 px-2 rounded"),w(A,"type","number"),w(A,"min","1"),w(A,"max","114"),w(m,"class","my-1 ms-2"),w(L,"class","border-2 w-14 px-2 rounded"),w(L,"type","number"),w(L,"min","1"),w(L,"max","286"),w(j,"class","my-1 ms-4"),w(u,"class","flex items-center"),w(B,"class","border-2 w-14 px-2 rounded"),w(B,"type","number"),w(B,"min","1"),w(B,"max","114"),w(H,"class","my-1 ms-2"),w(U,"class","border-2 w-14 px-2 rounded"),w(U,"type","number"),w(U,"min","1"),w(U,"max","286"),w(R,"class","my-1 ms-4"),w(M,"class","flex items-center"),w(G,"type","range"),w(G,"min","1"),w(G,"max","100"),w(W,"class","block my-1"),ln.__value="qpc",ln.value=ln.__value,cn.__value="kitab",cn.value=cn.__value,w(rn,"class","form-select"),void 0===t[2]&&I((()=>t[19].call(rn))),w(an,"class","block my-1"),an.hidden=!0,hn.__value="letter",hn.value=hn.__value,$n.__value="A4",$n.value=$n.__value,w(mn,"class","form-select"),void 0===t[1]&&I((()=>t[20].call(mn))),w(fn,"class","block my-1"),w(yn,"class","btn !ms-2 !py-[3px]"),w(dn,"class","flex items-center"),w(l,"class","flex space-s-4"),w(o,"class","print:hidden px-2"),w(kn,"class","full-height list-arabic leading-[1.7] whitespace-pre-wrap text-justify print:!border-0 overflow-auto svelte-ygel16"),k(kn,"--font-size",t[12]),k(kn,"--opacity",100-t[11]+"%"),C(kn,"show_basmalah",t[7]),C(kn,"show_surah",t[8]),C(kn,"break_page",t[9]),C(kn,"break_lines",t[10]),C(kn,"mushaf_layout",t[0]),w(e,"class","max-w-[50rem] mx-auto full-height ")},m(a,$){var g;h(a,e,$),f(e,o),f(o,r),f(o,i),f(o,l),f(l,c),f(c,u),f(u,d),f(u,p),f(u,m),f(m,q),f(m,A),x(A,t[3]),f(u,F),f(u,j),f(j,T),f(j,L),x(L,t[4]),f(c,S),f(c,M),f(M,P),f(M,O),f(M,H),f(H,N),f(H,B),x(B,t[5]),f(M,D),f(M,R),f(R,z),f(R,U),x(U,t[6]),f(c,Q),f(c,W),f(W,V),f(W,G),x(G,t[11]),f(W,X),f(W,Z),f(Z,tn),f(Z,en),f(c,on),f(c,an),f(an,sn),f(an,rn),f(rn,ln),f(rn,cn),E(rn,t[2],!0),f(c,un),f(c,dn),f(dn,fn),f(fn,pn),f(fn,mn),f(mn,hn),f(mn,$n),E(mn,t[1],!0),f(dn,bn),f(dn,yn),f(l,vn),f(l,wn),jn&&jn.m(wn,null),f(wn,_n),Tn&&Tn.m(wn,null),f(e,xn),f(e,kn),kn.innerHTML=t[13],En=!0,An||(Fn=[v(A,"input",t[14]),v(L,"input",t[15]),v(B,"input",t[16]),v(U,"input",t[17]),v(G,"change",t[18]),v(G,"input",t[18]),v(rn,"change",t[19]),v(mn,"change",t[20]),v(yn,"click",t[21]),(g=gn.call(null,kn),g&&s(g.destroy)?g.destroy:n)],An=!0)},p(n,[t]){var e,o;8&t&&_(A.value)!==n[3]&&x(A,n[3]),16&t&&_(L.value)!==n[4]&&x(L,n[4]),32&t&&_(B.value)!==n[5]&&x(B,n[5]),64&t&&_(U.value)!==n[6]&&x(U,n[6]),2048&t&&x(G,n[11]),(!En||2048&t)&&(e=tn,o=""+(o=n[11]),e.data!==o&&(e.data=o)),4&t&&E(rn,n[2]),2&t&&E(mn,n[1]),"qpc"===n[2]?jn?(jn.p(n,t),4&t&&Y(jn,1)):(jn=qn(n),jn.c(),Y(jn,1),jn.m(wn,_n)):jn&&(J(),nn(jn,1,1,(()=>{jn=null})),K()),"qpc"===n[2]&&n[0]?Tn&&(J(),nn(Tn,1,1,(()=>{Tn=null})),K()):Tn?(Tn.p(n,t),5&t&&Y(Tn,1)):(Tn=Cn(n),Tn.c(),Y(Tn,1),Tn.m(wn,null)),(!En||8192&t)&&(kn.innerHTML=n[13]),(!En||4096&t)&&k(kn,"--font-size",n[12]),(!En||2048&t)&&k(kn,"--opacity",100-n[11]+"%"),(!En||128&t)&&C(kn,"show_basmalah",n[7]),(!En||256&t)&&C(kn,"show_surah",n[8]),(!En||512&t)&&C(kn,"break_page",n[9]),(!En||1024&t)&&C(kn,"break_lines",n[10]),(!En||1&t)&&C(kn,"mushaf_layout",n[0])},i(n){En||(Y(jn),Y(Tn),En=!0)},o(n){nn(jn),nn(Tn),En=!1},d(n){n&&$(e),jn&&jn.d(),Tn&&Tn.d(),An=!1,a(Fn)}}}function jn(n,t,e){let o,a=!0,s=!0,r=!0,i=!0,l=!0,c="A4",u="qpc",d=67,f=1,p=67,m=30,h=7;const $={letter:29,A4:31};let g=$[c];const b={qpc:En,kitab:wn};return n.$$.update=()=>{3&n.$$.dirty&&a&&e(12,g=$[c]),124&n.$$.dirty&&e(13,o=b[u](d,f,p,m))},[a,c,u,d,f,p,m,s,r,i,l,h,g,o,function(){d=_(this.value),e(3,d)},function(){f=_(this.value),e(4,f)},function(){p=_(this.value),e(5,p)},function(){m=_(this.value),e(6,m)},function(){h=_(this.value),e(11,h)},function(){u=q(this),e(2,u)},function(){c=q(this),e(1,c)},()=>print(),function(n){a=n,e(0,a)},function(){g=_(this.value),e(12,g),e(0,a),e(1,c)},function(n){s=n,e(7,s)},function(n){r=n,e(8,r)},function(n){i=n,e(9,i)},function(n){l=n,e(10,l)}]}new class extends un{constructor(n){super(),cn(this,n,jn,Fn,r,{})}}({target:document.body});