1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[571,9807],{76489:function(t,o){/*! 2 * cookie 3 * Copyright(c) 2012-2014 Roman Shtylman 4 * Copyright(c) 2015 Douglas Christopher Wilson 5 * MIT Licensed 6 */o.parse=function(t,o){if("string"!=typeof t)throw TypeError("argument str must be a string");for(var i={},a=t.split(";"),s=(o||{}).decode||r,c=0;c<a.length;c++){var l=a[c],u=l.indexOf("=");if(!(u<0)){var d=l.substring(0,u).trim();if(void 0==i[d]){var f=l.substring(u+1,l.length).trim();'"'===f[0]&&(f=f.slice(1,-1)),i[d]=function(t,o){try{return o(t)}catch(o){return t}}(f,s)}}}return i},o.serialize=function(t,o,r){var s=r||{},c=s.encode||i;if("function"!=typeof c)throw TypeError("option encode is invalid");if(!a.test(t))throw TypeError("argument name is invalid");var l=c(o);if(l&&!a.test(l))throw TypeError("argument val is invalid");var u=t+"="+l;if(null!=s.maxAge){var d=s.maxAge-0;if(isNaN(d)||!isFinite(d))throw TypeError("option maxAge is invalid");u+="; Max-Age="+Math.floor(d)}if(s.domain){if(!a.test(s.domain))throw TypeError("option domain is invalid");u+="; Domain="+s.domain}if(s.path){if(!a.test(s.path))throw TypeError("option path is invalid");u+="; Path="+s.path}if(s.expires){if("function"!=typeof s.expires.toUTCString)throw TypeError("option expires is invali
6d");u+="; Expires="+s.expires.toUTCString()}if(s.httpOnly&&(u+="; HttpOnly"),s.secure&&(u+="; Secure"),s.sameSite)switch("string"==typeof s.sameSite?s.sameSite.toLowerCase():s.sameSite){case!0:case"strict":u+="; SameSite=Strict";break;case"lax":u+="; SameSite=Lax";break;case"none":u+="; SameSite=None";break;default:throw TypeError("option sameSite is invalid")}return u};var r=decodeURIComponent,i=encodeURIComponent,a=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/},47041:function(t,o,r){var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var o,r=1,i=arguments.length;r<i;r++)for(var a in o=arguments[r])Object.prototype.hasOwnProperty.call(o,a)&&(t[a]=o[a]);return t}).apply(this,arguments)},a=this&&this.__rest||function(t,o){var r={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&0>o.indexOf(i)&&(r[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,i=Object.getOwnPropertySymbols(t);a<i.length;a++)0>o.indexOf(i[a])&&Object.prototype.propertyIsEnumerable.call(t,i[a])&&(r[i[a]]=t[i[a]]);return r};Object.defineProperty(o,"__esModule",{value:!0}),o.checkCookies=o.hasCookie=o.removeCookies=o.deleteCookie=o.setCookies=o.setCookie=o.getCookie=o.getCookies=void 0;var s=r(76489),isClientSide=function(){return"undefined"!=typeof window},stringify=function(t){void 0===t&&(t="");try{var o=JSON.stringify(t);return/^[\{\[]/.test(o)?o:t}catch(o){return t}};o.getCookies=function(t){if(t&&(o=t.req),!isClientSide())return o&&o.cookies?o.cookies:o&&o.headers&&o.headers.cookie?(0,s.parse)(o.headers.cookie):{};for(var o,r={},i=document.cookie?document.cookie.split("; "):[],a=0,c=i.length;a<c;a++){var l=i[a].split("="),u=l.slice(1).join("=");r[l[0]]=u}return r},o.getCookie=function(t,r){var i,a=(0,o.getCookies)(r)[t];if(void 0!==a)return"true"===(i=a?a.replace(/(%[0-9A-Z]{2}
6)+/g,decodeURIComponent):a)||"false"!==i&&("undefined"!==i?"null"===i?null:i:void 0)},o.setCookie=function(t,o,r){if(r){var c,l,u,d=r.req,f=r.res,h=a(r,["req","res"]);l=d,u=f,c=h}var p=(0,s.serialize)(t,stringify(o),i({path:"/"},c));if(isClientSide())document.cookie=p;else if(u&&l){var v=u.getHeader("Set-Cookie");if(Array.isArray(v)||(v=v?[String(v)]:[]),u.setHeader("Set-Cookie",v.concat(p)),l&&l.cookies){var g=l.cookies;""===o?delete g[t]:g[t]=stringify(o)}if(l&&l.headers&&l.headers.cookie){var g=(0,s.parse)(l.headers.cookie);""===o?delete g[t]:g[t]=stringify(o),l.headers.cookie=Object.entries(g).reduce(function(t,o){return t.concat("".concat(o[0],"=").concat(o[1],";"))},"")}}},o.setCookies=function(t,r,i){return console.warn("[WARN]: setCookies was deprecated. It will be deleted in the new version. Use setCookie instead."),(0,o.setCookie)(t,r,i)},o.deleteCookie=function(t,r){return(0,o.setCookie)(t,"",i(i({},r),{maxAge:-1}))},o.removeCookies=function(t,r){return console.warn("[WARN]: removeCookies was deprecated. It will be deleted in the new version. Use deleteCookie instead."),(0,o.deleteCookie)(t,r)},o.hasCookie=function(t,r){return!!t&&(0,o.getCookies)(r).hasOwnProperty(t)},o.checkCookies=function(t,r){return console.warn("[WARN]: checkCookies was deprecated. It will be deleted in the new version. Use hasCookie instead."),(0,o.hasCookie)(t,r)}},96245:function(t,o,r){function e(t){this.message=t}e.prototype=Error(),e.prototype.name="InvalidCharacterError";var i="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(t){var o=String(t).replace(/=+$/,"");if(o.length%4==1)throw new e("'atob' failed: The string to be decoded is not correctly encoded.");for(var r,i,a=0,s=0,c="";i=o.charAt(s++);~i&&(r=a%4?64*r+i:i,a++%4)&&(c+=String.fromCharCode(255&r>>(-2*a&6))))i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(i);return c};function n(t){this.message=t}n.prototype=Error(),n.prototype.name="InvalidTokenError",o.Z=function(t,o){if("string"!=typeof t)throw new n("Invalid token specified");var r=!0===(o=o||{}).header?0:1;try{return JSON.parse(function(t){var o,r=t.replace(/-/g,"+").replace(/_/g,"/");switch(r.length%4){case 0:break;case 2:r+="==";break;case 3:r+="=";break;default:throw"Illegal base64url string!"}try{return o=r,decodeURIComponent(i(o).replace(/(.)/g,function(t,o){var r=o.charCo
6deAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r}))}catch(t){return i(r)}}(t.split(".")[r]))}catch(t){throw new n("Invalid token specified: "+t.message)}}},75867:function(t,o,r){r.d(o,{A_:function(){return getRequest},j0:function(){return postRequest}});var i=r(96245);let parseJwt=t=>t?(0,i.Z)(t):null;var a=r(73209);let getToken=function(t){let o,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;o=null===r?(0,a.ej)("IS_ACCESS_TOKEN"):(0,a.d8)(r,"IS_ACCESS_TOKEN");let i=parseJwt(o);if(i&&"https://back.islamic-sources.com/PLACE_THE_LANG_CODE".replace("PLACE_THE_LANG_CODE",t))return o},getRequest=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"en";return async(o,i,a)=>{var s,c;let l=await Promise.all([r.e(8764),r.e(7066),r.e(9204)]).then(r.bind(r,29204)).then(t=>t.default.get);null!=i||(i=getToken(t));let u=(null==a?void 0:null===(s=a.headers)||void 0===s?void 0:s.Authorization)||!i?{}:{Authorization:"Bearer "+i};try{return await l(((c="https://back.islamic-sources.com/PLACE_THE_LANG_CODE/wp-json/islamic",void 0===c)?void 0:c.replace("PLACE_THE_LANG_CODE",t))+"/"+o,{...a,headers:{...u,...null==a?void 0:a.headers}})}catch(t){return{data:{status:404}}}}},postRequest=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"en";return async function(o){var i,a;let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},u=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,d=await Promise.all([r.e(8764),r.e(7066),r.e(9204)]).then(r.bind(r,29204)).then(t=>t.default.post),f=getToken(t,u),h=(null==l?void 0:null===(i=l.headers)||void 0===i?void 0:i.Authorization)||!f?{}:{Authorization:"Bearer "+f};try{return await d(((a="https://back.islamic-sources.com/PLACE_THE_LANG_CODE/wp-json/islamic",void 0===a)?void 0:a.replace("PLACE_THE_LANG_CODE",t))+"/"+o,s,{...l,headers:{...h,...c}})}catch(t){return{data:{status:400}}}}}},73209:function(t,o,r){r.d(o,{S$:function(){return setCookie},d8:function(){return getCookieFromString},ej:function(){return getCookie},nJ:function(){return removeCookie}});var i=r(47041);let getCookie=(t,o)=>(0,i.getCookie)(t,o),getCookieFromString=(t,o)=>{let r=o+"=",i=decodeURIComponent(t).split(";");for(let t=0;t<i.length;t++){let o=i[t];for(;" "===o.charAt(0);)o=o.substring(1);if(0===o.indexOf(r))return o.substring(r.length,o.length)}},setCookie=async function(t,o){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5;(0,i.setCookie)(t,o,{maxAge:1440*r})},removeCookie=async(t,o)=>{(0,i.deleteCookie)(t,o)}}}]);
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.