(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[90893],{30098:function(e,n,r){"use strict";var t,a,i=r(67597);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var n=1;na?0:a+n),(r=r>a?a:r)<0&&(r+=a),a=n>r?0:r-n>>>0,n>>>=0;for(var i=Array(a);++t=a?e:t(e,n,r)}},46128:function(e,n,r){var t=r(19257),a=r(45245),i=r(85915),o=r(46235);e.exports=function(e){return function(n){n=o(n);var r=a(n)?i(n):void 0,s=r?r[0]:n.charAt(0),c=r?t(r,1).join(""):n.slice(1);return s[e]()+c}}},45245:function(e){var n=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return n.test(e)}},85915:function(e,n,r){var t=r(57094),a=r(45245),i=r(97549);e.exports=function(e){return a(e)?i(e):t(e)}},97549:function(e){var n="[\\ud800-\\udfff]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",t="\\ud83c[\\udffb-\\udfff]",a="[^\\ud800-\\udfff]",i="(?:\\ud83c[\\udde6-\\uddff]){2}",o="[\\ud800-\\udbff][\\udc00-\\udfff]",s="(?:"+r+"|"+t+")"+"?",c="[\\ufe0e\\ufe0f]?",u=c+s+("(?:\\u200d(?:"+[a,i,o].join("|")+")"+c+s+")*"),l="(?:"+[a+r+"?",r,i,o,n].join("|")+")",d=RegExp(t+"(?="+t+")|"+l+u,"g");e.exports=function(e){return e.match(d)||[]}},14574:function(e,n,r){var t=r(46235),a=r(96676);e.exports=function(e){return a(t(e).toLowerCase())}},96676:function(e,n,r){var t=r(46128)("toUpperCase");e.exports=t},21648:function(e,n,r){"use strict";var t=r(57044),a=r(16946),i=r(96151),o=r(57611),s=(r(67597),r(41801)),c=r(48842);n.Z=function(e){var n=e.url,r=e.image,u=e.imageAlt,l=e.imageHeight,d=e.imageWidth,f=e.openGraph,v=e.description,h=(0,i.Z)(e,["url","image","imageAlt","imageHeight","imageWidth","openGraph","description"]),m=(0,t.Z)({},f&&{openGraph:f},n&&{url:n},r&&{images:[{url:r,width:d,height:l,alt:u}]}),g=(0,t.Z)({},h,v&&{description:(0,c.aS)(v,150)});return(0,o.jsx)(s.PB,(0,a.Z)((0,t.Z)({},g),{openGraph:m}))}},86591:function(e,n,r){"use strict";var t=r(57611),a=r(67597),i=r(21594),o=r(15129),s=r(67385),c=r(61395),u=r(648),l=r(98770),d=r.n(l),f=r(81787),v=r(46581),h=r(48752),m=r(70356),g=r(63747),p=r(1050),_=r(74194),x=r(82427),b=r(89773);n.Z=function(e){var n=e.translationsQueryParamDifferent,r=e.reciterQueryParamDifferent,l=e.wordByWordLocaleQueryParamDifferent,Z=(0,c.Z)("common").lang,w=(0,o.useRouter)(),N=(0,a.useContext)(x.c),C=(0,u.v9)(h.qw,p.Hj),j=(0,i.v)(N,(function(e){return e.context.reciterId})),y=(0,u.v9)(v.lt,u.wU),R=(0,f.Z)().actions,S=R.onSettingsChange,k=R.onXstateSettingsChange;return(0,t.jsx)("div",{className:d().container,children:(0,t.jsx)(s.Z,{i18nKey:"quran-reader:query-param-message",components:[(0,t.jsx)("span",{onClick:function(){n&&(w.query[b.Z.Translations]=C.join(",")),r&&(w.query[b.Z.Reciter]=String(j)),l&&(w.query[b.Z.WBW_LOCALE]=y),w.query[b.Z.FLOW]===g.Bc.QURANIC_CALENDER&&(delete w.query[b.Z.FLOW],"true"===w.query[b.Z.HIDE_ARABIC]&&delete w.query[b.Z.HIDE_ARABIC]),w.push(w,void 0,{shallow:!0})},className:d().link},0),(0,t.jsx)("span",{onClick:function(){if(n&&(0,_.W)(w.query[b.Z.Translations])){var e=w.query[b.Z.Translations].split(",").map((function(e){return Number(e)}));S("selectedTranslations",e,(0,h.uz)({translations:e,locale:Z}),(0,h.uz)({translations:C,locale:Z}),m.Z.TRANSLATIONS)}if(l){var t=w.query[b.Z.WBW_LOCALE];S("selectedWordByWordLocale",t,(0,v.Ud)({value:t,locale:Z}),(0,v.Ud)({value:y,locale:Z}),m.Z.READING)}if(r){var a=Number(w.query[b.Z.Reciter]);k("reciter",a,(function(){return N.send({type:"CHANGE_RECITER",reciterId:a})}),(function(){return N.send({type:"CHANGE_RECITER",reciterId:j})}),m.Z.AUDIO)}},className:d().link},1)]})})}},91239:function(e,n,r){"use strict";r.d(n,{E:function(){return t}});var t,a=r(45361),i=r(57611),o=r(37014),s=r.n(o),c=r(67385),u=r(45656),l=r.n(u),d=r(10117),f=r(81787),v=r(74329),h=r(70356),m=r(12195);!function(e){e.SideDrawer="side-drawer",e.EndOfScrollingControls="end-of-scrolling-controls"}(t||(t={}));n.Z=function(e){var n,r=e.view,o=(0,f.Z)(),u=o.actions.onSettingsChange,g=o.isLoading;return(0,i.jsxs)("div",{className:s()((n={},(0,a.Z)(n,l().sideDrawerViewContainer,r===t.SideDrawer),(0,a.Z)(n,l().endOfScrollingViewContainer,r===t.EndOfScrollingControls),n)),children:[g&&(0,i.jsx)(d.Z,{}),(0,i.jsx)(c.Z,{components:{link:(0,i.jsx)("span",{className:l().link,onClick:function(){u("isReadingByRevelationOrder",!1,(0,v.N4)(!1),(0,v.N4)(!0),h.Z.READING),(0,m.MY)("revert_to_default_ordering_".concat(r))},"aria-hidden":"true"})},i18nKey:"quran-reader:revelation-order-notice"})]})}},73181:function(e,n,r){"use strict";r.d(n,{MD:function(){return v},f3:function(){return h},oA:function(){return f},rB:function(){return d}});var t=r(1997),a=r(57044),i=r(16946),o=r(51726),s=r(15721),c=r(27967),u=r(87739),l=r(63747),d=function(e){var n=e.id,r=e.isVerseData,t=e.initialData,o=e.pageNumber,u=e.quranReaderStyles,d=e.quranReaderDataType,f=e.selectedTranslations,v=e.reciter,h=e.locale,m=e.wordByWordLocale,g=r?t.verses[0].verseNumber:o,p=(0,a.Z)({page:g,reciter:v,wordTranslationLanguage:m,translations:f.join(",")},(0,s.hD)(u.quranFont),(0,s.$P)(u.quranFont,u.mushafLines));return d===l.Qi.Juz?(0,c.IC)(n,h,(0,i.Z)((0,a.Z)({},p),{perPage:t.pagination.perPage})):d===l.Qi.Hizb?(0,c.Y8)(n,h,(0,i.Z)((0,a.Z)({},p),{perPage:t.pagination.perPage})):d===l.Qi.Page?(0,c.K2)(n,h,(0,a.Z)({perPage:"all"},p)):d===l.Qi.Rub?(0,c.Im)(n,h,(0,a.Z)({from:t.metaData.from,perPage:t.pagination.perPage,to:t.metaData.to},p)):d===l.Qi.ChapterVerseRanges?(0,c.ML)(n,h,(0,a.Z)({from:t.metaData.from,perPage:t.pagination.perPage,to:t.metaData.to},p)):d===l.Qi.Ranges?(0,c.Eo)(h,(0,a.Z)({from:t.pagesLookup.lookupRange.from,perPage:t.pagination.perPage,to:t.pagesLookup.lookupRange.to},p)):(0,c.ML)(n,h,(0,a.Z)({perPage:r?1:t.pagination.perPage},p))},f=function(e){var n=e.pageNumber,r=e.locale,t=e.quranReaderStyles,o=e.reciter,u=e.wordByWordLocale,l=e.pageVersesRange;return(0,c.K2)(n,r,(0,a.Z)((0,i.Z)((0,a.Z)({},(0,s.hD)(t.quranFont),(0,s.$P)(t.quranFont,t.mushafLines)),{reciter:o,perPage:"all",wordTranslationLanguage:u,filterPageWords:!0}),l&&(0,a.Z)({},l)),!1)},v=function(e,n,r,t){var a={mushaf:r},i=Number(e);switch(n){case l.Qi.Chapter:a.chapterNumber=i;break;case l.Qi.Hizb:a.hizbNumber=i;break;case l.Qi.Juz:a.juzNumber=i;break;case l.Qi.Page:a.pageNumber=i;break;case l.Qi.Rub:a.rubElHizbNumber=i;break;case l.Qi.Verse:a.chapterNumber=i,a.from=t.verses[0].verseKey,a.to=t.verses[0].verseKey;break;case l.Qi.ChapterVerseRanges:a.chapterNumber=i,a.from=t.metaData.from,a.to=t.metaData.to;break;case l.Qi.Ranges:a.from=t.pagesLookup.lookupRange.from,a.to=t.pagesLookup.lookupRange.to}return a},h=function(){var e=(0,t.Z)((function(e,n){return(0,o.__generator)(this,(function(r){switch(r.label){case 0:return[4,(0,u._i)(e,n)];case 1:return[2,r.sent().verses]}}))}));return function(n,r){return e.apply(this,arguments)}}()},60780:function(e,n,r){"use strict";var t=r(62103),a=r(73181),i=r(15721),o=r(27967),s=r(87739);n.Z=function(e,n,r,c,u){var l=(0,t.Z)((0,o.I$)((0,a.MD)(e,n,(0,i.$P)(c.quranFont,c.mushafLines).mushaf,r)),s._i,{fallbackData:r.pagesLookup,revalidateOnMount:!u}),d=l.data,f=l.error,v=l.isValidating;return{data:d,pagesCount:d.totalPage,pagesVersesRange:d.pages,lookupRange:d.lookupRange,hasError:!!f,isLoading:v&&!d}}},78613:function(e,n,r){"use strict";r.d(n,{Z:function(){return ir}});var t,a,i=r(45361),o=r(57611),s=r(67597),c=r(37014),u=r.n(c),l=r(61395),d=r(648),f=r(49737),v=r.n(f),h=r(57044),m=r(15129),g=r(74022),p=r.n(g),_=r(10117),x=r(30098),b=r(63434),Z=r(63747),w=(t={},(0,i.Z)(t,Z.m3.Reading,(0,o.jsx)(b.Z,{})),(0,i.Z)(t,Z.m3.Translation,(0,o.jsx)(x.Z,{})),t),N=function(e){var n=e.readingPreference,r=e.selectedReadingPreference,t=e.isIconsOnly,a=void 0!==t&&t,i=e.isLoading,s=(0,l.Z)("common").t;return i&&n===r?(0,o.jsxs)("div",{className:p().container,children:[(0,o.jsx)("span",{children:(0,o.jsx)(_.Z,{className:p().spinner})}),!a&&(0,o.jsx)("span",{className:p().preferenceTextContainer,children:s("reading-preference.".concat(r))})]}):(0,o.jsxs)("div",{className:p().container,children:[(0,o.jsx)("span",{className:u()(p().iconContainer,a&&p().iconsCenter),children:w[r]}),!a&&(0,o.jsx)("span",{className:p().preferenceTextContainer,children:s("reading-preference.".concat(r))})]})},C=r(41783),j=r.n(C),y=r(71839),R=r(81787),S=r(46581),k=r(88555),I=r(12195),P=r(70356);!function(e){e.SurahHeader="surah_header",e.ContextMenu="context_menu"}(a||(a={}));var M=function(e){var n,r,t=e.size,s=e.isIconsOnly,c=void 0!==s&&s,l=e.type,f=void 0===l?a.SurahHeader:l,v=(0,d.v9)(S.Xg),g=null===(n=(0,d.v9)(k.eQ).verseKey)||void 0===n?void 0:n.split(":")[1],p=v.readingPreference,_=(0,R.Z)(),x=_.actions.onSettingsChange,b=_.isLoading,w=(0,m.useRouter)(),C=[{name:(0,o.jsx)(N,{readingPreference:p,selectedReadingPreference:Z.m3.Translation,isLoading:b,isIconsOnly:c}),value:Z.m3.Translation},{name:(0,o.jsx)(N,{readingPreference:p,selectedReadingPreference:Z.m3.Reading,isLoading:b,isIconsOnly:c}),value:Z.m3.Reading}];return(0,o.jsx)("div",{className:u()(j().container,(r={},(0,i.Z)(r,j().surahHeaderContainer,f===a.SurahHeader),(0,i.Z)(r,j().contextMenuContainer,f===a.ContextMenu),r)),id:"reading-preference-switcher",children:(0,o.jsx)(y.Z,{items:C,selected:p,onSelect:function(e){(0,I.Q8)("".concat(f,"_reading_preference"),p,e);var n=(0,h.Z)({},w.query);f===a.SurahHeader?delete n.startingVerse:parseInt(g,10)>1&&(n.startingVerse=g);var r={pathname:w.pathname,query:n};w.replace(r,null,{shallow:!0}).then((function(){x("readingPreference",e,(0,S.GW)(e),(0,S.GW)(p),P.Z.READING)}))},size:t})})},L=r(18419),E=r(75183),T=r(32162),q=r(99875),D=r(21654),z=r(26803),A=r(22582),O=r(35770),V=r(43609),B=r(98913),H=r(69640),W=r(9192),Q=function(){var e=(0,d.I0)(),n=(0,s.useContext)(W.Z),r=(0,d.v9)(z.rS),t=(0,l.Z)("common"),c=t.t,f=t.lang,h=(0,d.v9)(D.$p,d.wU).isVisible,m=(0,d.v9)(q.nl,d.wU),g=m.isExpanded,p=m.showReadingPreferenceSwitcher,_=(0,L.P)().isActive,x=(0,d.v9)(T.wK,d.wU).isVisible||_,b=p&&!_,Z=(0,d.v9)(k.eQ,d.wU),w=Z.verseKey,N=Z.chapterId,C=Z.page,j=Z.hizb,R=(0,s.useMemo)((function(){return N?(0,A.dy)(n,N):null}),[N,n]),S=(0,s.useMemo)((function(){return j?(0,V.rQ)((0,O.yd)(Number(j)),f):null}),[j,f]),P=(0,s.useMemo)((function(){return(0,V.rQ)(Number(j),f)}),[j,f]),Q=(0,s.useMemo)((function(){return(0,V.rQ)(Number(C),f)}),[C,f]);if(!w)return(0,o.jsx)(o.Fragment,{});var U,K,F=(0,H.tR)(w),G=(0,A._L)(F,R.versesCount);return(0,o.jsx)("div",{className:u()(v().container,(U={},(0,i.Z)(U,v().visibleContainer,x),(0,i.Z)(U,v().expandedContainer,g),(0,i.Z)(U,v().withVisibleSideBar,h),U)),style:{"--progress":"".concat(G,"%")},children:(0,o.jsxs)("div",{className:v().sectionsContainer,children:[(0,o.jsx)("div",{className:b?v().section:v().halfSection,children:(0,o.jsx)("div",{className:u()(v().row),children:(0,o.jsxs)("p",{className:u()(v().bold,v().alignStart,v().surahName,(0,i.Z)({},v().disabledOnMobile,r)),onClick:function(n){if((0,I.Kz)("sidebar_navigation_".concat(r?"close":"open","_trigger")),n.stopPropagation(),"auto"===r){var t=!!(0,B.t)();e((0,z.u)(t))}else e((0,z.u)(!r))},children:[R.transliteratedName,(0,o.jsx)("span",{className:u()(v().chevronIconContainer,(K={},(0,i.Z)(K,v().rotate180,!0===r),(0,i.Z)(K,v().rotateAuto,"auto"===r),K)),children:(0,o.jsx)(E.Z,{})})]})})}),b&&(0,o.jsx)("div",{className:v().halfSection,children:(0,o.jsx)(M,{size:y.E.XSmall,isIconsOnly:!0,type:a.ContextMenu})}),(0,o.jsx)("div",{className:b?v().section:v().halfSection,children:(0,o.jsxs)("div",{className:u()(v().row),children:[(0,o.jsx)("p",{className:u()(v().alignEnd,(0,i.Z)({},v().hide,!g))}),(0,o.jsxs)("p",{className:u()(v().alignEnd),children:[g&&(0,o.jsxs)("span",{className:v().secondaryInfo,children:[c("juz")," ",S," / ",c("hizb")," ",P," -"," "]}),(0,o.jsxs)("span",{className:v().primaryInfo,children:[c("page")," ",Q]})]})]})})]})})},U=(0,s.createContext)(null),K=function(e){var n=e.children,r=(0,s.useRef)(new Set),t=(0,s.useRef)(!0),a=(0,s.useMemo)((function(){return{verseKeysQueue:r,shouldTrackObservedVerses:t}}),[]);return(0,o.jsx)(U.Provider,{value:a,children:n})},F=function(){return(0,s.useContext)(U)},G=r(35173),Y=r.n(G),J=r(25620),$=function(e){var n=e.isReadingMode;return"true"!==J.env.NEXT_PUBLIC_DEBUG_OBSERVER_WINDOW?(0,o.jsx)(o.Fragment,{}):(0,o.jsx)("div",{className:u()(Y().container,(0,i.Z)({},Y().readingMode,n))})},X=r(74426),ee=r.n(X),ne=function(){var e=(0,d.I0)(),n=(0,d.v9)(D.$p,d.wU).isVisible;return(0,o.jsxs)("div",{className:u()(ee().container,(0,i.Z)({},ee().visibleContainer,n)),children:["Notes placeholders",(0,o.jsx)("br",{}),(0,o.jsx)("button",{type:"button",onClick:function(){return e({type:D.u.type,payload:!1})},children:"close"})]})},re=r(80205),te=r.n(re),ae=r(33770),ie=r.n(ae),oe=r(69976),se=r(66224),ce=r.n(se),ue=r(99968),le=r(35702),de=r(32190),fe=function(e,n,r){var t=e.threshold,a=void 0===t?1:t,i=e.root,o=void 0===i?null:i,c=e.rootMargin,u=void 0===c?"0%":c,l=(0,s.useCallback)((function(e){e.filter((function(e){return e.isIntersecting})).forEach((function(e){n(e.target)}))}),[n]);(0,de.Z)((function(){if(!!window.IntersectionObserver)return window[r]||(window[r]=new IntersectionObserver(l,{threshold:a,root:o,rootMargin:u})),function(){window[r].disconnect(),window[r]=void 0}}),[o,u,a,l,r])},ve=r(5330),he=r(22570),me=r(18338),ge=r(15721),pe=r(9740),_e=r(37572),xe=r(19226);var be,Ze=function(e){var n=function(e){var n=(0,oe.Z)(a[e],2),t=n[0],i=n[1];i.sort((function(e,n){return e-n}));for(var o=i[0],s=o,c=1;c0&&i[c]-s<=5?s=i[c]:(r.add("".concat(t,":").concat(o,"-").concat(t,":").concat(s)),s=o=i[c]);r.add("".concat(t,":").concat(o,"-").concat(t,":").concat(s))},r=new Set,t={};e.forEach((function(e){var n=(0,oe.Z)((0,H.bV)(e),2),r=n[0],a=n[1];t[r]||(t[r]=[]),t[r].push(Number(a))}));for(var a=Object.entries(t),i=0;i0&&(e=Array.from(Ze(c.current)),c.current.clear());var n=null;l.current>0&&(n=l.current,l.current=0);var r={mushafId:i,type:he.t.QURAN};e&&(r.ranges=e),n&&(r.seconds=n),_(r)}}),5e3);return function(){clearInterval(e)}}),[r,_,c,i]),(0,s.useEffect)((function(){if(!(0,xe.jl)())return function(){return null};var e=null,n=function(){e&&clearInterval(e),e=setInterval((function(){l.current+=1}),1e3)},r=function(){clearInterval(e)};return window.addEventListener("focus",n),window.addEventListener("blur",r),n(),function(){window.removeEventListener("focus",n),window.removeEventListener("blur",r)}}),[]),fe((0,le.FW)(n),x,le.NM)},Ne=r(39682),Ce=r(36441),je=r(86591),ye=r(60780),Re=r(78056),Se=function(e){var n=e.resourceId,r=e.quranReaderDataType,t=e.initialData,a=e.quranReaderStyles,i=(0,d.v9)(ve.i9),o=(0,ye.Z)(n,r,t,a,i).lookupRange,c=(0,s.useContext)(W.Z);return(0,s.useMemo)((function(){return(0,Re.h)(c,o.from,o.to).length}),[c,o.from,o.to])},ke=r(95932),Ie=r(5260),Pe=r(24213),Me=function(e,n,r,t,a){var i=(0,m.useRouter)(),o=(0,s.useContext)(W.Z),c=(0,s.useState)(!1),u=c[0],l=c[1],d=(0,s.useRef)(null),f=F(),v=f.verseKeysQueue,h=f.shouldTrackObservedVerses,g=i.query.startingVerse,p=Number(g),_=g&&(0,Ie.tW)(o,t,String(g)),x=(0,s.useCallback)((function(e){var r=e-1;n.current.scrollToIndex({index:r,align:Pe.Z.Start,offset:-70})}),[n]);(0,s.useEffect)((function(){e===Z.Qi.Chapter&&_&&(x(p),l(!0))}),[e,p,_,x]),(0,s.useEffect)((function(){if(e===Z.Qi.Chapter&&_&&u){h.current=!1;var n=(0,ke.XN)(p-1,a),i=!(n>1&&p%a===1)||!!r[n-1];!!r[n]&&i?(null!==d.current&&clearTimeout(d.current),d.current=setTimeout((function(){x(p),h.current=!0,v.current.add((0,H.u)(t,p))}),1e3),l(!1)):x(p)}}),[u,p,_,r,e,a,x,n,h,v,t]),(0,s.useEffect)((function(){return function(){null!==d.current&&clearTimeout(d.current)}}),[])},Le=r(82687),Ee=r.n(Le),Te=r(24883),qe=r(16946),De=r(62103),ze=r(73181),Ae=r(81200),Oe=function(e){var n=e.quranReaderDataType,r=e.quranReaderStyles,t=e.wordByWordLocale,a=e.reciterId,o=e.resourceId,c=e.selectedTranslations,u=e.initialData,d=e.setApiPageToVersesMap,f=e.mushafId,v=e.verseIdx,g=(0,m.useRouter)(),p=(0,l.Z)().lang,_=(0,s.useMemo)((function(){var e,n;return null===(n=null===(e=g.query.translations)||void 0===e?void 0:e.split(","))||void 0===n?void 0:n.map((function(e){return Number(e)}))}),[g.query.translations]),x=(0,ke.XN)(v,u.pagination.perPage),b=v%u.pagination.perPage,w=(0,Ae.Z)({translationParams:_,selectedTranslations:c}),N=1===x&&w,C=(0,De.Z)((0,ze.rB)({quranReaderDataType:n,pageNumber:x,initialData:u,quranReaderStyles:r,selectedTranslations:c,isVerseData:n===Z.Qi.Verse,id:o,reciter:a,locale:p,wordByWordLocale:t}),ze.f3,{fallbackData:N?u.verses:void 0}).data;(0,s.useEffect)((function(){C&&d((function(e){return(0,qe.Z)((0,h.Z)({},e),(0,i.Z)({},x,C))}))}),[x,d,C]);var j=C&&C.length&&(0,xe.jl)()?(0,_e.SH)(f,Number(null===C||void 0===C?void 0:C[0].chapterId),Number(null===C||void 0===C?void 0:C[0].verseNumber),u.pagination.perPage):null,y=C?C[b]:null;return y&&0===c.length&&(y.translations=[]),{verse:y,firstVerseInPage:C?C[0]:null,bookmarksRangeUrl:j,notesRange:C&&C.length>0?{from:null===C||void 0===C?void 0:C[0].verseKey,to:null===C||void 0===C?void 0:C[C.length-1].verseKey}:null}},Ve=r(1997),Be=r(51726),He=r(21594),We=r(40168),Qe=r(7001),Ue=r.n(Qe),Ke=r(85494),Fe=r(85609),Ge=r(82497),Ye=r(63746),Je=r(41527),$e=function(e){var n=e.verse,r=e.pageBookmarks,t=e.bookmarksRangeUrl,a=(0,l.Z)("quran-reader").t,c=(0,d.v9)(ve.Pt,d.wU),f=(0,d.v9)(Ye.it,d.wU),v=(0,ue.kY)(),m=v.cache,g=v.mutate,p=(0,Fe.useToast)(),_=(0,d.I0)(),x=(0,s.useMemo)((function(){return(0,xe.jl)()&&r?!!r[n.verseKey]:!!f[n.verseKey]}),[f,r,n.verseKey]);if(!x)return null;var b=(0,ge.$P)(c.quranFont,c.mushafLines).mushaf;return(0,o.jsx)(Ke.ZP,{className:u()(Ue().iconContainer,Ue().verseAction),onClick:function(){if((0,I.MY)("translation_view_un_bookmark_verse"),(0,xe.jl)()){var e=m.get(t),o=(0,qe.Z)((0,h.Z)({},e),(0,i.Z)({},n.verseKey,!x));g(t,o,{revalidate:!1}),m.delete((0,_e.Wn)(b,Number(n.chapterId),Je.Z.Ayah,Number(n.verseNumber)));var s=r[n.verseKey].id;s&&(0,pe.ez)(s).catch((function(e){400!==e.status?p(a("common:error.general"),{status:Fe.ToastStatus.Error}):p(a("common:error.bookmark-sync"),{status:Fe.ToastStatus.Error})}))}else _((0,Ye.b2)(n.verseKey))},tooltip:a("remove-bookmark"),variant:Ke.Wu.Ghost,size:Ke.qE.Small,children:(0,o.jsx)(Ge.Z,{})})},Xe=r(4424),en=r(29344),nn=r(31091),rn=r(96239),tn=r.n(rn),an=r(58078),on=r(50855),sn=r(3390),cn=r(8790),un=r.n(cn),ln=function(){var e=(0,l.Z)("common").t;return(0,o.jsx)("p",{className:un().label,children:e("new")})},dn=r(23246),fn=r(96370),vn=r(65481),hn=r(84020);!function(e){e.IconButton="button",e.PopoverItem="popoverItem"}(be||(be={}));var mn=function(e){var n,r=e.verseKey,t=e.isTranslationView,a=e.hasNotes,i=(0,s.useState)(!1),c=i[0],d=i[1],f=(0,l.Z)("common").t,v=(0,m.useRouter)(),h=(0,De.Z)((0,xe.jl)()?(0,_e.bo)():null,pe.et).data,g=!(null===h||void 0===h||null===(n=h.consents)||void 0===n?void 0:n[vn.Z.HAS_NOTES]);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(an.Z,{isOpen:c,onClose:function(){d(!1)},verseKey:r}),(0,o.jsx)(Ke.ZP,{className:u()(Ue().iconContainer,Ue().verseAction,Ue().fadedVerseAction),onClick:function(){var e=(0,xe.jl)();(0,I.MY)("verse_actions_menu_note",{isTranslationView:t,isLoggedIn:xe.jl}),e?d(!0):v.push((0,hn.gk)((0,hn.P6)(r)))},tooltip:f("notes.title"),type:Ke.L$.Primary,shape:Ke.jL.Circle,variant:Ke.Wu.Ghost,size:Ke.qE.Small,children:(0,o.jsx)("span",{className:Ue().icon,children:a?(0,o.jsx)(fn.Z,{}):(0,o.jsx)(on.Z,{shouldWrap:g,wrapper:function(e){return(0,o.jsx)(sn.Z,{className:tn().newLabelContainer,contentClassName:tn().newLabel,content:g&&(0,o.jsx)(ln,{}),children:e})},children:(0,o.jsx)(dn.Z,{})})})})]})},gn=r(49541),pn=r(21037),_n=r(8721),xn=r.n(_n),bn=function(e){var n=e.verseKey,r=(0,l.Z)("").lang;return(0,o.jsx)(Ke.ZP,{className:xn().verseLink,size:Ke.qE.Small,shape:Ke.jL.Circle,href:(0,hn.P6)(n),shouldShallowRoute:!0,variant:Ke.Wu.Ghost,shouldPrefetch:!1,onClick:function(){(0,I.MY)("translation_view_verse_link")},children:(0,V.Tj)(n,r)})},Zn=r(51628),wn=r(80665),Nn=r(81858),Cn=r(33294),jn=r(82427),yn=function(e){var n,r=e.verse,t=e.quranReaderStyles,a=e.verseIndex,c=e.pageBookmarks,l=e.bookmarksRangeUrl,f=e.hasNotes,v=(0,m.useRouter)().query.startingVerse,h=(0,s.useContext)(jn.c),g=(0,He.v)(h,(function(e){var n=e.context,t=n.ayahNumber,a=n.surah;return(0,H.u)(a,t)===r.verseKey})),p=(0,L.P)().isActive,_=(0,d.v9)(Cn.Mj)&&!p,x=(0,oe.Z)((0,Nn.ZP)(Nn.gZ),2),b=x[0],Z=x[1];return(0,s.useEffect)((function(){(g&&_||Number(v)===a+1)&&b()}),[g,b,_,v,a]),(0,o.jsxs)("div",{ref:Z,children:[(0,o.jsxs)("div",{className:u()(Ue().cellContainer,(0,i.Z)({},Ue().highlightedContainer,g)),children:[(0,o.jsxs)("div",{className:Ue().actionContainer,children:[(0,o.jsxs)("div",{className:Ue().actionContainerLeft,children:[(0,o.jsx)("div",{className:Ue().actionItem,children:(0,o.jsx)(bn,{verseKey:r.verseKey})}),(0,o.jsx)("div",{className:Ue().actionItem,children:(0,o.jsx)($e,{verse:r,pageBookmarks:c,bookmarksRangeUrl:l})}),(0,o.jsx)("div",{className:Ue().actionItem,children:(0,o.jsx)(mn,{verseKey:r.verseKey,isTranslationView:!0,hasNotes:f})}),(0,o.jsx)("div",{className:u()(Ue().actionItem,Ue().priorityAction),children:(0,o.jsx)(pn.Z,{verseKey:r.verseKey})}),(0,o.jsx)("div",{className:u()(Ue().actionItem),children:(0,o.jsx)(nn.Z,{verseKey:r.verseKey})}),(0,o.jsx)("div",{className:u()(Ue().actionItem),children:(0,o.jsx)(en.Z,{verseKey:r.verseKey})})]}),(0,o.jsx)("div",{className:Ue().actionContainerRight,children:(0,o.jsx)("div",{className:Ue().actionItem,children:(0,o.jsx)(gn.Z,{bookmarksRangeUrl:l,verse:r})})})]}),(0,o.jsxs)("div",{className:u()(Ue().contentContainer),children:[(0,o.jsx)("div",{className:Ue().arabicVerseContainer,children:(0,o.jsx)(Zn.Z,{words:(0,H.LQ)(r),shouldShowH1ForSEO:0===a})}),(0,o.jsx)("div",{className:Ue().verseTranslationsContainer,children:null===(n=r.translations)||void 0===n?void 0:n.map((function(e){var n;return(0,o.jsx)("div",{className:Ue().verseTranslationContainer,children:(0,o.jsx)(Xe.Z,{translationFontScale:t.translationFontScale,text:e.text,languageId:e.languageId,resourceName:(null===(n=r.translations)||void 0===n?void 0:n.length)>1?e.resourceName:null})},e.id)}))})]})]}),(0,o.jsx)(wn.Z,{})]})},Rn=function(e,n){return e.verse.id===n.verse.id&&e.hasNotes===n.hasNotes&&!(0,We.RG)(e.quranReaderStyles,n.quranReaderStyles,e.verse.words,n.verse.words)&&!(0,We.UH)(e.verse,n.verse)&&!(0,We.r4)(e.quranReaderStyles,n.quranReaderStyles)&&JSON.stringify(e.pageBookmarks)===JSON.stringify(n.pageBookmarks)&&e.bookmarksRangeUrl===n.bookmarksRangeUrl},Sn=(0,s.memo)(yn,Rn),kn=r(7215),In=r(96913),Pn=function(e){var n=e.verse,r=e.selectedTranslations,t=e.bookmarksRangeUrl,a=e.mushafId,i=e.verseIdx,c=e.quranReaderStyles,u=e.initialData,d=e.firstVerseInPage,f=e.isLastVerseInView,v=e.notesRange,h=(0,l.Z)("common"),m=h.t,g=h.lang,p=(0,s.useRef)(null),_=F().verseKeysQueue,x=(0,De.Z)(t,(0,Ve.Z)((function(){return(0,Be.__generator)(this,(function(e){switch(e.label){case 0:return[4,(0,pe.W7)(a,Number(d.chapterId),Number(d.verseNumber),u.pagination.perPage)];case 1:return[2,e.sent()]}}))}))).data,b=(0,In.Z)(v).data;return(0,s.useEffect)((function(){var e=null;return p.current&&(e=new IntersectionObserver((function(e){e[0].isIntersecting&&_.current.add(n.verseKey)}),{root:null,rootMargin:"0px",threshold:.5})).observe(p.current),function(){null===e||void 0===e||e.disconnect()}}),[f,n,_]),(0,o.jsxs)("div",{ref:f?p:void 0,children:[1===n.verseNumber&&(0,o.jsx)(kn.Z,{translationName:function(e){var n=m("settings.no-translation-selected");return 1===(null===e||void 0===e?void 0:e.length)&&(n=null===e||void 0===e?void 0:e[0].resourceName),2===(null===e||void 0===e?void 0:e.length)&&(n=m("settings.value-and-other",{value:null===e||void 0===e?void 0:e[0].resourceName,othersCount:(0,V.rQ)(e.length-1,g)})),(null===e||void 0===e?void 0:e.length)>2&&(n=m("settings.value-and-others",{value:null===e||void 0===e?void 0:e[0].resourceName,othersCount:(0,V.rQ)(e.length-1,g)})),n}(n.translations),chapterId:String(n.chapterId),pageNumber:n.pageNumber,hizbNumber:n.hizbNumber,isTranslationSelected:(null===r||void 0===r?void 0:r.length)>0}),(0,o.jsx)(Sn,{verseIndex:i,verse:n,quranReaderStyles:c,pageBookmarks:x,bookmarksRangeUrl:t,hasNotes:b&&b[n.verseKey]>0},n.id)]})},Mn=function(e){var n=e.quranReaderDataType,r=e.wordByWordLocale,t=e.reciterId,a=e.resourceId,i=e.setApiPageToVersesMap,s=e.initialData,c=e.quranReaderStyles,u=e.selectedTranslations,l=e.verseIdx,d=e.totalVerses,f=(0,ge.$P)(c.quranFont,c.mushafLines).mushaf,v=Oe({verseIdx:l,quranReaderDataType:n,quranReaderStyles:c,wordByWordLocale:r,reciterId:t,resourceId:a,selectedTranslations:u,initialData:s,setApiPageToVersesMap:i,mushafId:f}),h=v.verse,m=v.firstVerseInPage,g=v.bookmarksRangeUrl,p=v.notesRange;return h?(0,o.jsx)("div",{className:Ee().container,children:(0,o.jsx)(Pn,{isLastVerseInView:l+1===d,verse:h,verseIdx:l,mushafId:f,quranReaderStyles:c,selectedTranslations:u,bookmarksRangeUrl:g,initialData:s,firstVerseInPage:m,notesRange:p})}):(0,o.jsx)("div",{className:Ee().container,children:(0,o.jsx)(Te.Z,{})})},Ln=r(82257),En=r(13695),Tn=r(60948),qn=r(89773),Dn=ie()((function(){return Promise.all([r.e(81301),r.e(97917)]).then(r.bind(r,29229))}),{loadableGenerated:{webpack:function(){return[29229]}},ssr:!1,loading:function(){return(0,o.jsx)(_.Z,{})}}),zn=function(e){var n=e.quranReaderStyles,r=e.quranReaderDataType,t=e.initialData,a=e.resourceId,i=(0,s.useState)({1:t.verses}),c=i[0],u=i[1],l=(0,En.Z)(qn.Z.Reciter),d=l.value,f=l.isQueryParamDifferent,v=(0,Ln.Z)(qn.Z.Translations),h=v.value,m=v.isQueryParamDifferent,g=(0,Ln.Z)(qn.Z.WBW_LOCALE),p=g.value,_=g.isQueryParamDifferent,x=Se({resourceId:a,quranReaderDataType:r,initialData:t,quranReaderStyles:n}),b=(0,s.useRef)(null);Me(r,b,c,String(a),t.pagination.perPage);var Z=(0,s.useMemo)((function(){return Object.values(c).flat()}),[c]);(0,Tn.Z)(n.quranFont,Z);var w=m||f||_;return(0,o.jsxs)(o.Fragment,{children:[w&&(0,o.jsx)(je.Z,{translationsQueryParamDifferent:m,reciterQueryParamDifferent:f,wordByWordLocaleQueryParamDifferent:_}),(0,o.jsx)("div",{className:Ee().wrapper,onCopy:function(e){return(0,Ce.Z)(e,Z,n.quranFont)},children:(0,o.jsx)(Ne.OO,{ref:b,useWindowScroll:!0,totalCount:x+1,increaseViewportBy:1e3,initialItemCount:1,itemContent:function(e){return e===x?(0,o.jsx)(Dn,{quranReaderDataType:r,lastVerse:Z[Z.length-1],initialData:t}):(0,o.jsx)(Mn,{verseIdx:e,totalVerses:x,quranReaderDataType:r,quranReaderStyles:n,setApiPageToVersesMap:u,selectedTranslations:h,wordByWordLocale:p,reciterId:d,initialData:t,resourceId:a})}})})]})},An=ie()((function(){return r.e(19960).then(r.bind(r,19960))}),{loadableGenerated:{webpack:function(){return[19960]}}}),On=function(e){var n=e.isReadingPreference,r=e.quranReaderStyles,t=e.quranReaderDataType,a=e.initialData,i=e.resourceId;return we({isReadingPreference:n}),n?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(M,{}),(0,o.jsx)(An,{quranReaderStyles:r,quranReaderDataType:t,initialData:a,resourceId:i})]}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(M,{}),(0,o.jsx)(zn,{quranReaderStyles:r,quranReaderDataType:t,initialData:a,resourceId:i})]})},Vn=r(4093),Bn=r.n(Vn),Hn=r(61822),Wn=r.n(Hn),Qn=r(90914),Un=Array(12).fill(null),Kn=function(){return(0,o.jsx)("div",{className:Wn().skeletonContainer,children:Un.map((function(e,n){return(0,o.jsx)(Qn.Z,{isActive:!0,isSquared:!0,className:Wn().row},"skeleton_".concat(n))}))})},Fn=ie()((function(){return r.e(37672).then(r.bind(r,37672))}),{loadableGenerated:{webpack:function(){return[37672]}},loading:Kn}),Gn=ie()((function(){return Promise.all([r.e(19418),r.e(56228)]).then(r.bind(r,56228))}),{loadableGenerated:{webpack:function(){return[56228]}},loading:Kn}),Yn=ie()((function(){return r.e(99158).then(r.bind(r,99158))}),{loadableGenerated:{webpack:function(){return[99158]}},loading:Kn}),Jn=function(e){var n=e.isVisible,r=e.selectedNavigationItem;return n?r===z.Dx.Surah?(0,o.jsx)(Gn,{}):r===z.Dx.Juz?(0,o.jsx)(Yn,{}):(0,o.jsx)(Fn,{}):(0,o.jsx)(o.Fragment,{})},$n=r(91239),Xn=r(52140),er=r(23516),nr=r(43172),rr=r(74329),tr=function(){var e=(0,d.v9)(q.nl,d.wU).isExpanded,n=(0,d.v9)(z.rS),r=(0,d.v9)(z.tD),t=(0,d.v9)(rr.kW),a=(0,d.I0)(),c=(0,l.Z)("common").t,f=(0,s.useRef)();(0,er.Z)(f,(function(){(0,I.Kz)("sidebar_navigation_close_outside_click"),a((0,z.u)(!1))}),n&&(0,B.t)());var v,h=[{name:c("surah"),value:z.Dx.Surah},{name:c("juz"),value:z.Dx.Juz},{name:c("page"),value:z.Dx.Page}];return(0,o.jsx)("div",{ref:f,className:u()(Bn().container,(v={},(0,i.Z)(v,Bn().visibleContainer,!0===n),(0,i.Z)(v,Bn().containerAuto,"auto"===n),(0,i.Z)(v,Bn().spaceOnTop,e),v)),children:t?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{className:Bn().revelationOrderHeader,children:(0,o.jsx)(Ke.ZP,{tooltip:c("close"),shape:Ke.jL.Circle,size:Ke.qE.Small,variant:Ke.Wu.Ghost,onClick:function(){(0,I.MY)("sidebar_navigation_close"),a((0,z.u)(!1))},ariaLabel:c("aria.sidebar-nav-close"),children:(0,o.jsx)(nr.Z,{})})}),(0,o.jsx)($n.Z,{view:$n.E.SideDrawer}),(0,o.jsx)(Jn,{isVisible:n,selectedNavigationItem:z.Dx.Surah})," "]}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",{className:Bn().header,children:[(0,o.jsx)("div",{className:Bn().switchContainer,children:(0,o.jsx)(y.Z,{items:h,selected:r,onSelect:function(e){(0,I.Q8)("sidebar_navigation_view",r,e),a((0,z.eY)(e))}})}),(0,o.jsx)(Ke.ZP,{tooltip:c("close"),shape:Ke.jL.Circle,size:Ke.qE.Small,variant:Ke.Wu.Ghost,onClick:function(){(0,I.MY)("sidebar_navigation_close"),a((0,z.u)(!1))},ariaLabel:c("aria.sidebar-nav-close"),children:(0,o.jsx)(nr.Z,{})})]}),(0,o.jsxs)("p",{className:Bn().tip,children:[(0,o.jsx)("span",{children:c("sidebar.try-navigating-with")}),(0,o.jsx)(Xn.Z,{meta:!0,keyboardKey:"K"})]}),(0,o.jsx)("div",{className:Bn().contentContainer,children:(0,o.jsx)(Jn,{isVisible:n,selectedNavigationItem:r})})]})})},ar=r(63424),ir=function(e){var n,r=e.initialData,t=e.id,a=e.quranReaderDataType,s=void 0===a?Z.Qi.Chapter:a,c=(0,l.Z)().lang,f=(0,d.v9)(D.$p,d.wU).isVisible,v=(0,d.v9)(ve.Pt,d.wU),h=(0,d.v9)(z.rS),m=(0,d.v9)(S.EA)===Z.m3.Reading;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(ar.Z,{isQuranReader:!0,locale:c}),(0,o.jsx)(Q,{}),(0,o.jsx)($,{isReadingMode:m}),(0,o.jsx)("div",{className:u()(te().container,(n={},(0,i.Z)(n,te().withVisibleSideBar,f),(0,i.Z)(n,te().withSidebarNavigationOpenOrAuto,h),n)),children:(0,o.jsx)("div",{className:u()(te().infiniteScroll,(0,i.Z)({},te().readingView,m)),children:(0,o.jsx)(K,{children:(0,o.jsx)(On,{isReadingPreference:m,quranReaderStyles:v,initialData:r,quranReaderDataType:s,resourceId:t})})})}),(0,o.jsx)(tr,{}),(0,o.jsx)(ne,{})]})}},36441:function(e,n,r){"use strict";var t=r(69976),a=r(49127),i=r.n(a),o=r(18636),s=r(69640),c=r(15028),u=function(e,n,r){var a=(0,t.Z)((0,s.TO)(e),3),i=a[0],o=a[1],u=a[2],l=n.find((function(e){return e.verseKey==="".concat(i,":").concat(o)}));if(!l)return"";var d=l.words.find((function(e){return Number(e.position)===Number(u)}));return d?d[(0,c.U)(r)]:""};n.Z=function(e,n,r){var t=document.getSelection(),a=Array.from(document.querySelectorAll("[".concat(o.q,"]"))).filter((function(e){return t.containsNode(e,!0)})).map((function(e){var t=e.getAttribute(o.q);return u(t,n,r)}));a.length>0&&(e.preventDefault(),i()(a.join(" ")))}},40168:function(e,n,r){"use strict";r.d(n,{RG:function(){return i},UH:function(){return t},r4:function(){return a}});var t=function(e,n){var r,t;return(null===e||void 0===e||null===(r=e.translations)||void 0===r?void 0:r.length)!==(null===n||void 0===n||null===(t=n.translations)||void 0===t?void 0:t.length)},a=function(e,n){return e.translationFontScale!==n.translationFontScale},i=function(e,n,r,t){return e.mushafLines!==n.mushafLines||r.length!==t.length||r[0].text!==t[0].text||r[0].translation.languageName!==t[0].translation.languageName}},51628:function(e,n,r){"use strict";r.d(n,{Z:function(){return S}});var t=r(45361),a=r(69976),i=r(57611),o=r(67597),s=r(37014),c=r.n(s),u=r(15129),l=r(648),d=r(35702),f=r(63747),v=[1,2],h={255:[2],528:[9],534:[6],545:[6],586:[1],593:[2],594:[5],600:[10],602:[5,15],603:[10,15],604:[4,9,14,15]},m=function(e,n,r){if(r===f.fr.IndoPak)return!1;var t=h[e]||[];return v.includes(e)||t.includes(n)},g=r(81456),p=r.n(g),_=r(21596),x=r(18636),b=r(98445),Z=r(46581),w=r(80105),N=r(5330),C=r(89773),j=r(51652),y=r(69640),R=function(e){var n,r=e.words,s=e.isReadingMode,v=void 0!==s&&s,h=e.isHighlighted,g=e.shouldShowH1ForSEO,R=void 0!==g&&g,S=(0,u.useRouter)(),k=(0,o.useRef)(null);(0,b.Z)(k,d.NM);var I=(0,l.v9)(N.Pt,l.wU),P=I.quranFont,M=I.quranTextFontScale,L=I.mushafLines,E=(0,a.Z)(r,1)[0],T=E.lineNumber,q=E.pageNumber,D=E.location,z=E.verseKey,A=E.hizbNumber,O=(0,_.Z)(E.pageNumber,P),V=(0,l.v9)(Z.eB,l.wU),B=V.showWordByWordTranslation,H=V.showWordByWordTransliteration,W=(0,l.v9)(w.AV,l.wU),Q=(0,l.v9)(w._H,l.wU),U=(0,o.useMemo)((function(){return m(q,T,P)}),[q,T,P]);if(!1===v&&"true"===(null===S||void 0===S||null===(n=S.query)||void 0===n?void 0:n[C.Z.HIDE_ARABIC]))return null;var K,F,G=(0,y.ZZ)(D),Y=P===f.fr.Tajweed,J=v&&(M>3||B||H)||Y,$=G.chapterId,X=R?"h1":"div",ee=O?(0,j.bZ)(P,M,L):(0,j.bZ)(f.v3,M,L,!0);return(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(X,{ref:k,"data-verse-key":z,"data-page":q,"data-chapter-id":$,"data-hizb":A,className:c()(p().verseTextContainer,(K={},(0,t.Z)(K,p().largeQuranTextLayoutContainer,J),(0,t.Z)(K,p().highlighted,h),(0,t.Z)(K,p()[ee],!Y),(0,t.Z)(K,p().tafsirOrTranslationMode,!v),K)),children:(0,i.jsx)("div",{translate:"no",className:c()(p().verseText,(F={},(0,t.Z)(F,p().verseTextWrap,!v),(0,t.Z)(F,p().largeQuranTextLayout,J),(0,t.Z)(F,p().verseTextCenterAlign,v&&U),(0,t.Z)(F,p().verseTextSpaceBetween,v&&!U),F)),children:null===r||void 0===r?void 0:r.map((function(e){return(0,i.jsx)(x.Z,{word:e,font:P,isFontLoaded:O,isHighlighted:e.verseKey===W,shouldShowSecondaryHighlight:e.verseKey===Q},e.location)}))})})})},S=o.memo(R)},7215:function(e,n,r){"use strict";r.d(n,{Z:function(){return T}});var t,a=r(57611),i=r(67597),o=r(61395),s=r(648),c=r(60422),u=r.n(c),l=r(73645),d=r(35702),f=r(21594),v=r(10117),h=r(38833),m=r.n(h),g=r(85494),p=r(13695),_=r(68414),x=r(71714),b=r(89773),Z=r(22582),w=r(12195),N=r(9192),C=r(11664),j=r(82427),y=function(e){var n=e.chapterId,r=(0,o.Z)("common").t,t=(0,i.useContext)(N.Z),s=(0,Z.dy)(t,n.toString()),c=(0,i.useContext)(j.c),u=(0,f.v)(c,(function(e){return(0,C.XL)(e,n)})),l=(0,f.v)(c,(function(e){return(0,C.sI)(e,n)})),d=(0,p.Z)(b.Z.Reciter),h=d.value,y=d.isQueryParamDifferent;return u?(0,a.jsx)("div",{className:m().container,children:(0,a.jsx)(g.ZP,{variant:g.Wu.Ghost,type:g.L$.Success,size:g.qE.Small,prefix:(0,a.jsx)(v.Z,{}),hasSidePadding:!1,shouldFlipOnRTL:!1,isDisabled:!0,children:r("loading")})}):(0,a.jsx)("div",{className:m().container,children:l?(0,a.jsx)(g.ZP,{variant:g.Wu.Ghost,type:g.L$.Success,size:g.qE.Small,prefix:(0,a.jsx)(_.Z,{}),onClick:function(){(0,w.MY)("chapter_header_pause_audio"),c.send({type:"TOGGLE"})},hasSidePadding:!1,shouldFlipOnRTL:!1,children:r("audio.player.pause-audio")}):(0,a.jsx)(g.ZP,{variant:g.Wu.Ghost,type:g.L$.Success,size:g.qE.Small,prefix:(0,a.jsx)(x.Z,{}),onClick:function(){(0,w.MY)("chapter_header_play_audio"),c.send({type:"PLAY_SURAH",surah:n,reciterId:y?h:void 0})},hasSidePadding:!1,shouldFlipOnRTL:!1,ariaLabel:r("aria.play-surah",{surahName:s.transliteratedName}),children:r("audio.play")})})};function R(){return R=Object.assign?Object.assign.bind():function(e){for(var n=1;n0&&void 0!==arguments[0]?arguments[0]:{},n=e.translationParams,r=e.selectedTranslations,h=(0,i.Z)().lang,m=(0,t.useContext)(v.c),g=(0,a.v)(m,(function(e){return(0,f.iX)(e)})),p=(0,o.v9)(c.SL),_=(0,o.v9)(l.z2),x=(0,o.v9)(u.Ho),b=(0,o.v9)(u.z$),Z=(0,t.useMemo)((function(){return{quranReaderStyles:(0,s.kq)(h),translations:(0,s.h0)(h)}}),[h]),w=Z.quranReaderStyles.quranFont===x&&Z.quranReaderStyles.mushafLines===b,N=(0,t.useMemo)((function(){if(!n&&!r)return!1;var e=(0,d.sp)(null!==n&&void 0!==n?n:[],null!==r&&void 0!==r?r:[]);return(0,d.Hj)(Z.translations.selectedTranslations,e)}),[n,r,Z.translations.selectedTranslations]),C=w&&g&&p;return n||r?C&&_&&N:C}},98445:function(e,n,r){"use strict";var t=r(67597);n.Z=function(e,n){(0,t.useEffect)((function(){var r=null===e||void 0===e?void 0:e.current;if(!!window.IntersectionObserver&&r)return window[n]&&window[n].observe(r),function(){window[n]&&window[n].unobserve(r)}}),[e,n])}},81858:function(e,n,r){"use strict";r.d(n,{Oz:function(){return a},gZ:function(){return o},lT:function(){return s},nv:function(){return i}});var t=r(67597),a=function(e){var n=(0,t.useRef)(null);return[function(){n.current&&n.current.scrollIntoView(e)},n]},i={block:"center",behavior:"smooth"},o={block:"start",behavior:"smooth"},s={block:"nearest"};n.ZP=a},50148:function(e,n,r){"use strict";r.r(n);var t=r(45361),a=r(57611),i=r(37014),o=r.n(i),s=r(15129),c=r(61395),u=r(61085),l=r.n(u),d=r(85494),f=r(57830);n.default=function(e){e.statusCode;var n=e.hasFullWidth,r=void 0===n||n,i=(0,c.Z)("error").t,u=(0,s.useRouter)();return(0,a.jsxs)("div",{className:o()(l().container,(0,t.Z)({},l().withFullWidth,r)),children:[(0,a.jsx)("h1",{className:l().title,children:i("title")}),(0,a.jsx)("div",{className:l().goBack,children:(0,a.jsx)(d.ZP,{onClick:function(){document&&document.referrer?u.back():u.push("/")},children:i("go-back")})}),(0,a.jsxs)("p",{className:l().reportBug,children:[i("if-persist")," ",(0,a.jsx)(f.Z,{href:"https://feedback.quran.com/",variant:f.r.Highlight,children:i("report-cta")})]})]})}},18338:function(e,n,r){"use strict";r.d(n,{F:function(){return i},o:function(){return o}});var t=r(85149),a=r(22570),i=function(){var e=(0,t.Cl)(),n=(new Date).getFullYear();return o(e,n)},o=function(e,n){var r=(0,t.fR)(e,n);return{from:r.from,to:r.to,limit:31,type:a.t.QURAN}}},35770:function(e,n,r){"use strict";r.d(n,{M3:function(){return o},WZ:function(){return c},hC:function(){return s},yd:function(){return i}});var t=r(8522),a=r(43609),i=function(e){return Math.ceil(e/2)},o=function(e){return 1===e},s=function(e){return 30===e},c=function(e){return(0,t.Z)(Array(30)).map((function(n,r){var t=r+1;return{value:t,label:(0,a.rQ)(t,e)}}))}},98271:function(e,n,r){"use strict";r.d(n,{Nl:function(){return v},Uh:function(){return c},ff:function(){return u},h$:function(){return l},p6:function(){return f}});var t,a=r(45361),i=r(8522),o=r(43609),s=r(63747),c=(t={},(0,a.Z)(t,s.RA.Indopak,604),(0,a.Z)(t,s.RA.KFGQPCHAFS,604),(0,a.Z)(t,s.RA.QCFV1,604),(0,a.Z)(t,s.RA.QCFV2,604),(0,a.Z)(t,s.RA.UthmaniHafs,604),(0,a.Z)(t,s.RA.Indopak16Lines,548),(0,a.Z)(t,s.RA.Indopak15Lines,610),(0,a.Z)(t,s.RA.Tajweeed,604),t),u=function(e){return 1===e},l=function(e,n,r){return e===d(n,r)},d=function(e,n){return e&&n?e===s.fr.IndoPak?n===s.AN.SixteenLines?c[s.RA.Indopak16Lines]:c[s.RA.Indopak15Lines]:c[s.ru[e]]:604},f=function(e,n,r){return(0,i.Z)(Array(d(n,r))).map((function(n,r){var t=r+1;return{value:t,label:(0,o.rQ)(t,e)}}))},v=function(e,n){return e!==s.fr.IndoPak||e===s.fr.IndoPak&&n===s.AN.FifteenLines?15:16}},48842:function(e,n,r){"use strict";r.d(n,{Nl:function(){return i},aS:function(){return t},ox:function(){return a}});var t=function(e,n){for(var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"...",t=e.split("",n),a="",i=0;i]+)>)/gi,"")},i=function(e){if(!e)return"";var n=e.split("-");return 1===n.length?n[0]:n[n.length-1]}},5260:function(e,n,r){"use strict";r.d(n,{CG:function(){return u},hP:function(){return o},tW:function(){return s},vU:function(){return c}});var t=r(69976),a=r(22582),i=r(98271),o=(r(78056),function(e){var n=Number(e);return!(Number.isNaN(n)||n>114||n<1)}),s=function(e,n,r){var t=Number(r);return!(Number.isNaN(t)||t<1)&&!(!(0,a.dy)(e,n)||t>(0,a.dy)(e,n).versesCount)},c=function(e,n){var r=Number(e),t=i.Uh[n];return!(Number.isNaN(r)||r>t||r<1)},u=function(e,n){var r=n.split(":");if(2!==r.length)return!1;var a=(0,t.Z)(r,2),i=a[0],c=a[1];return!(!o(i)||!s(e,i,c))}},15028:function(e,n,r){"use strict";r.d(n,{U:function(){return a}});var t=r(63747),a=(r(66158),function(e){return e===t.fr.IndoPak?"textIndopak":"textUthmani"})},24213:function(e,n){"use strict";var r;!function(e){e.Start="start",e.Center="center",e.End="end"}(r||(r={})),n.Z=r},49737:function(e){e.exports={container:"ContextMenu_container__M7_N3",hide:"ContextMenu_hide__l1kVd",visibleContainer:"ContextMenu_visibleContainer__KnWDa",withVisibleBanner:"ContextMenu_withVisibleBanner__0U0w_",expandedContainer:"ContextMenu_expandedContainer__W_YZP",withVisibleSideBar:"ContextMenu_withVisibleSideBar__8iHQu",chapter:"ContextMenu_chapter__VKK2w",bold:"ContextMenu_bold__jqCU4",sectionsContainer:"ContextMenu_sectionsContainer__x91pr",halfSection:"ContextMenu_halfSection__vu5Iq",section:"ContextMenu_section__hi_wD",alignStart:"ContextMenu_alignStart__D4EZD",alignEnd:"ContextMenu_alignEnd__4YQyB",row:"ContextMenu_row__3Hf3R",primaryInfo:"ContextMenu_primaryInfo__QL1fr",secondaryInfo:"ContextMenu_secondaryInfo__FEnWx",surahName:"ContextMenu_surahName__9ovH0",chevronIconContainer:"ContextMenu_chevronIconContainer__Bfc57",rotate180:"ContextMenu_rotate180__ar3NZ",rotateAuto:"ContextMenu_rotateAuto__xUm9n",disabledOnMobile:"ContextMenu_disabledOnMobile__Pjaj9"}},35173:function(e){e.exports={container:"ObserverWindow_container__yPD6c",readingMode:"ObserverWindow_readingMode__fiRzr"}},74426:function(e){e.exports={container:"Notes_container__P4U6p",visibleContainer:"Notes_visibleContainer__8hC3J"}},38833:function(e){e.exports={container:"PlayButton_container__CTTxf"}},98770:function(e){e.exports={container:"QueryParamMessage_container__qZWgn",link:"QueryParamMessage_link__apDAP"}},80205:function(e){e.exports={infiniteScroll:"QuranReader_infiniteScroll__IAfrZ",readingView:"QuranReader_readingView__gmING",loading:"QuranReader_loading__Wo_w6",container:"QuranReader_container__8c0FU",withVisibleSideBar:"QuranReader_withVisibleSideBar__STTiz",withSidebarNavigationOpenOrAuto:"QuranReader_withSidebarNavigationOpenOrAuto__s2YDZ",playButton:"QuranReader_playButton__dVd11"}},74022:function(e){e.exports={container:"ReadingPreference_container__bK6Hm",spinner:"ReadingPreference_spinner__DAbUN",preferenceTextContainer:"ReadingPreference_preferenceTextContainer___J7Dx",iconContainer:"ReadingPreference_iconContainer__Jk5Rm"}},41783:function(e){e.exports={container:"ReadingPreferenceSwitcher_container__0Dzn6",surahHeaderContainer:"ReadingPreferenceSwitcher_surahHeaderContainer__L6XJx",contextMenuContainer:"ReadingPreferenceSwitcher_contextMenuContainer__RALtU"}},45656:function(e){e.exports={sideDrawerViewContainer:"RevelationOrderNavigationNotice_sideDrawerViewContainer__R0aka",endOfScrollingViewContainer:"RevelationOrderNavigationNotice_endOfScrollingViewContainer__moJQq",link:"RevelationOrderNavigationNotice_link__NY714"}},4093:function(e){e.exports={container:"SidebarNavigation_container__IooCv",visibleContainer:"SidebarNavigation_visibleContainer__Y6E1c",containerAuto:"SidebarNavigation_containerAuto__WRE2m",header:"SidebarNavigation_header__fqOtn",switchContainer:"SidebarNavigation_switchContainer__DU_JH",contentContainer:"SidebarNavigation_contentContainer__FeDCs",surahBodyContainer:"SidebarNavigation_surahBodyContainer__bZs9R",verseListContainer:"SidebarNavigation_verseListContainer__tE5ut",scrollableSectionContainer:"SidebarNavigation_scrollableSectionContainer__DEA47",listContainer:"SidebarNavigation_listContainer__Z4xaB",list:"SidebarNavigation_list__5GJEm",listItem:"SidebarNavigation_listItem__geBUW",selectedItem:"SidebarNavigation_selectedItem__swGQH",surahListContainer:"SidebarNavigation_surahListContainer__IYouq",searchInput:"SidebarNavigation_searchInput__vhw5Z",spaceOnTop:"SidebarNavigation_spaceOnTop__VHaMe",chapterNumber:"SidebarNavigation_chapterNumber__39NUY",tip:"SidebarNavigation_tip__g4nzj",revelationOrderHeader:"SidebarNavigation_revelationOrderHeader___cG5Q"}},61822:function(e){e.exports={skeletonContainer:"SidebarSelectionSkeleton_skeletonContainer__Pl7tL",row:"SidebarSelectionSkeleton_row__AF4Qi"}},82687:function(e){e.exports={container:"TranslationView_container__M0fhJ",wrapper:"TranslationView_wrapper__C8vfW"}},96239:function(e){e.exports={container:"Notes_container__IGuVA",newLabel:"Notes_newLabel__mLbXd",newLabelContainer:"Notes_newLabelContainer__kHpCe"}},8721:function(e){e.exports={verseLink:"VerseLink_verseLink__m_uNh"}},60422:function(e){e.exports={container:"ChapterHeader_container__UANyL",left:"ChapterHeader_left__9GlxX",right:"ChapterHeader_right__IcBU9",chapterId:"ChapterHeader_chapterId__Z_Pey",bismillahContainer:"ChapterHeader_bismillahContainer__EXMlw",translatedName:"ChapterHeader_translatedName__2sqjR",arabicSurahNameContainer:"ChapterHeader_arabicSurahNameContainer__xn14U",transliteratedName:"ChapterHeader_transliteratedName__V9dup",actionContainer:"ChapterHeader_actionContainer__tbdf_",translation:"ChapterHeader_translation__ERRFK",translationBy:"ChapterHeader_translationBy__DDZAE",changeTranslation:"ChapterHeader_changeTranslation__UlDJ5",header:"ChapterHeader_header__kguEh",chapterIconContainer:"ChapterHeader_chapterIconContainer__CJN7h"}},42985:function(e){e.exports={iconContainer:"ChapterIconContainer_iconContainer__5umYV",iconContainerSmall:"ChapterIconContainer_iconContainerSmall__gvmyy",iconContainerLarge:"ChapterIconContainer_iconContainerLarge__z49r_",iconContainerMega:"ChapterIconContainer_iconContainerMega__rKWtt"}},11043:function(e){e.exports={container:"Badge_container__GXfIf",content:"Badge_content__Ue8Y7",positionBottomRight:"Badge_positionBottomRight__1JJDw"}},8790:function(e){e.exports={label:"NewLabel_label__azDvj"}},55686:function(e){e.exports={container:"KeyboardInput_container__Zwe4F",invertedColors:"KeyboardInput_invertedColors__2s3F3"}},61085:function(e){e.exports={container:"_error_container__vJFnH",withFullWidth:"_error_withFullWidth__VEzYc",title:"_error_title__oLWAK",goBack:"_error_goBack__U4WNd",reportBug:"_error_reportBug__tsKmR"}}}]); //# sourceMappingURL=90893-0c8ee5c13a30470d.js.map