PageSourceSearch

https://www.jarir.com/_nuxt/eab732c7/DiwPRerL.js

js jarir.com collected 2026-09-24 08:51:08 UTC 2,621 bytes, 1 lines download raw bytes

1import{n as e}from"./CKxbbObN.js";var t=/[٠-٩۰-۹]/g,n={"٠":`0`,"١":`1`,"٢":`2`,"٣":`3`,"٤":`4`,"٥":`5`,"٦":`6`,"٧":`7`,"٨":`8`,"٩":`9`,"۰":`0`,"۱":`1`,"۲":`2`,"۳":`3`,"۴":`4`,"۵":`5`,"۶":`6`,"۷":`7`,"۸":`8`,"۹":`9`};function r(e){return e?e.replace(t,e=>n[e]??e):``}function i(e){return r(e).replace(/\D/g,``)}function a(e,t){if(!e)return``;let n=String(t||``).replace(/^\+/,``),r=e.replace(/\s+/g,``);return r.startsWith(`+`)&&(r=r.substring(1)),n&&r.startsWith(n)&&(r=r.substring(n.length)),r}function o(e){return String(e||``).replace(/^\+/,``).trim()}function s(e,t){let n=e?.getSelectedCountryData(),r=n?.dialCode?o(String(n.dialCode)):``,i=t.isValid?a(t.number,r):``;return{number:t.number,countryCode:t.countryCode,isValid:t.isValid,isd:r,national:i}}function c(e,t){let n=i(e);return n.startsWith(`00`)&&(n=n.substring(2)),t&&n.startsWith(t)&&(n=n.substring(t.length)),n.startsWith(`0`)&&(n=n.substring(1)),n}var l=/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,u={SA:/^5\d{8}$/,KW:/^(?:[569]\d|41)\d{6}$/,QA:/^[3567]\d{7}$/,BH:/^[36]\d{7}$/,AE:/^5[02-68]\d{7}$/,OM:/^(?:1505|(?:7[124-9]|9[1-9])\d)\d{4}$/},d=new Set([`210074888`]);function f(e,t){let n=e.replace(/[^0-9]/g,``);if(!n)return!1;if(d.has(n))return!0;let r=u[t.toUpperCase()];return!r||r.test(n)}function p(e,t){let n=e.replace(/[^0-9]/g,``);if(!n)return null;let r=t.toUpperCase();for(let[e,t]of Object.entries(u))if(e!==r&&t.test(n))return e;return null}function m(t,n){let r=t.trim();if(!r)return!1;if(r.includes(`@`))return l.test(r);let i=n.split(`-`)[0]?.toUpperCase()||``;return f(c(r,e(i)),i)}function h(e,t){if(!t)return!0;try{return new RegExp(t).test(e)}catch{return!0}}var g=/^[a-zA-Z\s]+$/,_=/^[ء-ي\s]+$/;function v(e){return!e||g.test(e)||_.test(e)}function y(e){let t=String(e??``).trim(),n=t.lastIndexOf(`@`);return n<=0?t:`${t.slice(0,Math.min(3,n))}******@${t.slice(n+1)}`}var b=/^(1|2)\d{9}$/;function x(e){return b.test(e)}function S(e){let t=e.replace(/\D/g,``);if(t.length<13||t.length>19)return!1;let n=0,r=!1;for(let e=t.length-1;e>=0;e--){let i=parseInt(t[e],10);r&&(i*=2,i>9&&(i-=9)),n+=i,r=!r}return n%10==0}function C(e){let t=e.replace(/\s/g,``).split(`/`);if(t.length<2||t[1].length!==2)return!1;let n=parseInt(t[0],10),r=parseInt(t[1],10);if(isNaN(n)||isNaN(r)||n<1||n>12)return!1;let i=new Date;return r>i.getFullYear()%100||r===i.getFullYear()%100&&n>=i.getMonth()+1}export{S as a,x as c,s as d,a as f,r as g,i as h,C as i,y as l,c as m,p as n,f as o,o as p,v as r,m as s,l as t,h as u};

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.