1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/font-events.fn-Bsc6zJhs.js","assets/entry-middleware-Di-U1662.js","assets/invariant-DEEwAagU.js","assets/redirect-DmtLUW0N.js"])))=>i.map(i=>d[i]); 2import{r as e}from"./rolldown-runtime-hePW80VL.js";import{t}from"./react-Cvdyeg_0.js";import{t as n}from"./useSearch-CmcZSEjV.js";import{t as r}from"./useNavigate-Cs4yRfne.js";import{t as i}from"./preload-helper-BZ1Pz5am.js";var a=e(t(),1),o={ar:`Ø§ÙØ®ÙØ·ÙÙ Ø§ÙØ¹ÙØ±ÙØ¨ÙÙÙ٠جÙÙ ÙØ§ÙÙ ÙØ§ ÙÙÙÙØªÙÙÙÙ`,la:`Typography that speaks`,pangramAr:`ÙØµ ØÙÙÙ Ù٠سر ÙØ§Ø·Ø¹ ÙØ°Ù شأ٠عظÙÙ Ù ÙØªÙب عÙÙ Ø«ÙØ¨ أخضر Ù٠غÙÙ Ø¨Ø¬ÙØ¯ أزرÙ`,pangramLa:`The quick brown fox jumps over the lazy dog`,paraAr:`Ø§ÙØ®Ø· Ø§ÙØ¹Ø±Ø¨Ù ÙÙØ³ ÙØ³ÙÙØ© ÙÙÙØªØ§Ø¨Ø© ÙØØ³Ø¨Ø Ø¨Ù ÙØ¸Ø§Ù Ø¨ØµØ±Ù Ù ØªÙØ§Ù Ù ÙÙØ§Ø²Ù بÙ٠إÙÙØ§Ø¹ Ø§ÙØØ±ÙÙ ÙÙØ±Ø§ØºØ§Øª Ø§ÙØ³Ø·Ø±. Ø§Ø®ØªÙØ§Ø± Ø§ÙØ®Ø· اÙÙ ÙØ§Ø³Ø¨ ÙØºÙÙØ± ÙØ¨Ø±Ø© اÙÙØµ ÙØ¨Ù Ø£Ù ÙÙØ±Ø£ اÙÙØ§Ø±Ø¦ ÙÙÙ Ø© ÙØ§ØØ¯Ø©.`,paraLa:`Choosing a typeface is choosing a voice. Before a single word is read, the letterforms have already set the tone, the pace, and the formality of the page.`,numerals:`٠١٢٣٤٥٦٧٨٩ â 0123456789 â % â° $ â¬`,charsAr:`ا ب ت Ø« ج Ø Ø® د ذ ر ز س Ø´ ص ض Ø· ظ ع غ Ù Ù Ù Ù Ù Ù Ù Ù Ù Ø¡ Ø¢ Ø£ Ø¥ ؤ ئ Ø© Ù ÙØ§ Ù Ù¡ Ù¢ Ù£ Ù¤ Ù¥ Ù¦ Ù§ Ù¨ Ù© Ø Ø Ø`.split(` `),charsLa:`A B C D E F G H I J K L M N O P Q R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z 0 1 2 3 4 5 6 7 8 9 & @ # ? !`.split(` `)},s={min:14,max:160,default:32},c=`selsla.fonts.prefs`,l=`selsla.fonts.engaged`,u=5e3,d=.4,f=2e3,p=400,m=`all`,h=4e3,g=3e3,_=250,v=new Map;function y(e){let t=M(e);return t.size===s.default&&delete t.size,t.script===m&&delete t.script,t.weight===p&&delete t.weight,t.ls===`ar`&&delete t.ls,t.text===``&&delete t.text,t.sort===`popular`&&delete t.sort,t}function b(e,t){typeof window>`u`||i(()=>import(`./font-events.fn-Bsc6zJhs.js`).then(function(n){return n.trackFontEventFn({data:{slug:e,kind:t}})}),__vite__mapDeps([0,1,2,3])).catch(()=>{})}function x(e){if(typeof sessionStorage>`u`)return!1;try{let t=sessionStorage.getItem(l),n=t?JSON.parse(t):[],r=Array.isArray(n)?n:[];return!r.includes(e)&&(r.push(e),sessionStorage.setItem(l,JSON.stringify(r)),!0)}catch{return!1}}function S(e){return U(e)??`arabic`}function C(e){return e.stylesheetUrl?`<link href="${e.stylesheetUrl}" rel="stylesheet">`:null}function w(e){return e.stylesheetUrl?`@import url("${e.stylesheetUrl}");`:null}function T(e){return`font-family: '${e.family}', ${J(e.category)};`}function E(e,t){if(e.weights.length===0)return t;let n=e.weights[0],r=Math.abs(n-t);for(let i of e.weights){let e=Math.abs(i-t);e<r&&(n=i,r=e)}return n}function D(e){let t=e.stylesheetUrl;if(typeof document>`u`||!t)return Promise.resolve();let n=t,r=v.get(n);if(r)return r;let i=new Promise(function(e,r){if(document.head.querySelector(`link[data-selsla-font="${Y(n)}"]`)){e();return}let i=document.createElement(`link`);i.rel=`stylesheet`,i.href=t,i.dataset.selslaFont=n;let a=!1;function o(o){if(!a){if(a=!0,clearTimeout(s),o){e();return}i.remove(),v.delete(n),r(Error(`Font stylesheet failed: ${t}`))}}let s=setTimeout(o,h,!1);i.onload=()=>o(!0),i.onerror=()=>o(!1),document.head.appendChild(i)});return v.set(n,i),i}function O(e,t,n){let r=t.join(`,`),i=e.family,o=e.slug,s=e.stylesheetUrl,c=n?`${i}:${o}:${s??`none`}:${r}`:null,[l,u]=(0,a.useState)({requestKey:c,loaded:!1});return l.requestKey!==c&&u({requestKey:c,loaded:!1}),(0,a.useEffect)(()=>{if(!c)return;let e=!1,t=setTimeout(()=>{e||u({requestKey:c,loaded:!0})},g),n=r?r.split(`,`).map(Number):[];return D({stylesheetUrl:s}).then(async function(){let e=n[0]??p;s&&typeof document<`u`&&document.fonts?.load&&await document.fonts.load(`${e} 20px "${i}"`).catch(()=>{})}).finally(()=>{e||u({requestKey:c,loaded:!0})}),()=>{e=!0,clearTimeout(t)}},[i,c,s,r]),l.requestKey===c&&l.loaded}function k(e,t=`200px 0px`){let[n,r]=(0,a.useState)(!1),i=(0,a.useSyncExternalStore)(z,function(){return typeof IntersectionObserver>`u`},function(){return!1});return(0,a.useEffect)(()=>
2{if(n||i||typeof IntersectionObserver>`u`)return;let a=e.current;if(!a)return;let o=new IntersectionObserver(function(e){e[0]?.isIntersecting&&(r(!0),o.disconnect())},{rootMargin:t});return o.observe(a),()=>o.disconnect()},[e,t,n,i]),n||i}function A(e){let t=(0,a.useRef)(null),n=(0,a.useCallback)(function(){t.current!==e&&(t.current=e,x(e)&&b(e,`engage`))},[e]);return(0,a.useEffect)(()=>{let e=!1;function t(){e&&window.scrollY+window.innerHeight>=d*document.documentElement.scrollHeight&&n()}let r=setTimeout(function(){e=!0,t()},u);return window.addEventListener(`scroll`,t,{passive:!0}),()=>{clearTimeout(r),window.removeEventListener(`scroll`,t)}},[n]),{markEngaged:n}}function j(){let e=n({strict:!1}),t=r(),i=y(e),o=H(e.ls)??H(i.ls),[s,c]=(0,a.useState)(()=>N(i,o)),l=(0,a.useRef)(s),u=(0,a.useRef)(null),d=(0,a.useRef)(!1),f=(0,a.useRef)(i),p=(0,a.useRef)(o),m=JSON.stringify(i),h=(0,a.useRef)(m),g=(0,a.useRef)(i),v=(0,a.useRef)(o),b=(0,a.useRef)(R(e));(0,a.useEffect)(()=>{l.current=s,g.current=i,v.current=o},[s,i,o]),(0,a.useEffect)(()=>{if(d.current||(d.current=!0,b.current)||typeof localStorage>`u`)return;let e=V();if(!e)return;let n=f.current,r=p.current,i=l.current.script,a=P(l.current,e,n,r);if(l.current=a,c(a),a.script!==i){let e=I(a);h.current=JSON.stringify(e),t({to:`.`,replace:!0,search:t=>{let n=L(t,e);return delete n.page,n}})}},[t]),(0,a.useEffect)(()=>()=>{u.current&&clearTimeout(u.current)},[]),(0,a.useEffect)(()=>{if(m===h.current)return;h.current=m;let e=N(g.current,v.current);l.current=e,c(e)},[m]);function x(e){let t=g.current,n=F(l.current,e);l.current=n,c(n),B(n),S(n,(t.script??`all`)!==n.script||t.cat!==n.cat||t.q!==n.q||t.sort!==n.sort)}function S(e,n){u.current&&clearTimeout(u.current),u.current=setTimeout(()=>{let r=I(e);h.current=JSON.stringify(r),t({to:`.`,replace:!0,search:e=>{let t=L(e,r);return n&&delete t.page,t}})},_)}let C=s.lastScript,w=C===`arabic`?s.ar:s.la;return{state:{...s,text:w,ls:C===`latin`?`la`:`ar`},set:x}}function M(e){let t={};typeof e.text==`string`&&(t.text=e.text.trim().slice(0,f));let n=K(e.size);n!=null&&(t.size=q(n)),(e.script===`all`||e.script===`arabic`||e.script===`latin`)&&(t.script=e.script);let r=K(e.weight);if(r!=null){let e=Math.round(r);e>=100&&e<=1e3&&(t.weight=e)}if(typeof e.cat==`string`){let n=e.cat.trim();n&&(t.cat=n)}if(typeof e.q==`string`){let n=e.q.trim();n&&(t.q=n)}let i=H(e.ls);return i&&(t.ls=i===`latin`?`la`:`ar`),(e.sort===`popular`||e.sort===`newest`||e.sort===`name`)&&(t.sort=e.sort),t}function N(e,t){let n=e.size??s.default,r=e.script??m,i=e.weight??p,a=t??(e.text?S(e.text):`arabic`),c=e.text;return{ar:a===`arabic`?c??o.ar:o.ar,la:a===`latin`?c??o.la:o.la,lastScript:a,size:n,script:r,weight:i,cat:e.cat,q:e.q,sort:e.sort}}function P(e,t,n,r){let i={...e};if(n.size==null&&t.size!=null&&(i.size=t.size),n.script==null&&t.script!=null&&(i.script=t.script),n.weight==null&&t.weight!=null&&(i.weight=t.weight),n.text==null&&t.text!=null){let e=r??S(t.text);i.lastScript=e,e===`latin`?i.la=t.text:i.ar=t.text}return i}function F(e,t){let n={...e};if(t.size!=null&&(n.size=q(t.size)),t.script!=null&&(n.script=t.script),t.weight!=null){let e=Math.round(t.weight);e>=100&&e<=1e3&&(n.weight=e)}t.cat!==void 0&&(n.cat=t.cat||void 0),t.q!==void 0&&(n.q=t.q||void 0),t.sort!==void 0&&(n.sort=t.sort===`popular`?void 0:t.sort);let r=H(t.ls);if(r&&(n.lastScript=r),t.text!==void 0){let e=t.text.slice(0,f),r=U(e);r?(n.lastScript=r,r===`arabic`?n.ar=e:n.la=e):n.lastScript===`latin`?n.la=e:n.ar=e}return n}function I(e){return y({text:e.lastScript===`arabic`?e.ar:e.la,ls:e.lastScript===`latin`?`la`:`ar`,size:e.size,script:e.script,weight:e.weight,cat:e.cat,q:e.q,sort:e.sort})}function L(e,t){let n={...e};delete n.bg;for(let e of[`text`,`size`,`script`,`weight`,`cat`,`q`,`ls`,`sort`])t[e]===void 0?delete n[e]:n[e]=t[e];return n}function R(e){return[`text`,`size`,`script`,`weight`,`ls`].some(function(t){return e[t]!==void 0})}function z(){return function(){}}function B(e){if(!(typeof localStorage>`u`))try{let t=e.lastScript===`arabic`?e.ar:e.la;localStorage.setItem(c,JSON.stringify({text:t,size:e.size,script:e.script,weight:e.weight}))}catch{}}function V(){try{let e=localStorage.getItem(c);if(!e)return null;let t=JSON.parse(e);return!t||typeof t!=`object`?null:M(t)}catch{return null}}function H(e){if(e===`la`||e===`latin`)return`latin`;if(e===`ar`||e===`arabic`)return`arabic`}function U(e){for(let t of e){let e=t.codePointAt(0);if(e!=null){if(W(e))return`arabic`;if(G(e))return`latin`}}return null}function W(e){return e>=1536&&e<=1791||e>=1872&&e<=1919||e>=2208&&e<=2303||e>=64336&&e<=65023||e>=65136&&e<=65279}function G(e){return e>=65&&e<=90||e>=97&&e<=122||e>=192&&e<=591||e>=7680&&e<=7935}function K(e){if(typeof e==`number`&&Number.isFinite(e))return e;if(typeof e==`string`&&e.trim()!==``){let t=Number(e);if(Number.isFinite(t))return t}}function q(e){return Math.min(s.max,Math.max(s.min,Math.round(e)))}function J(e){switch(e){case`naskh`:case`thuluth`:case`maghribi`:return`serif`;case`mono`:return`monospace`;case`ruqaa`:case`diwani`:case`nastaliq`:case`freehand`:return`cursive`;default:return`sans-serif`}}function Y(e){return e.replace(/\\/g,`\\\\`).replace(/"/g,`\\"`)}export{C as a,y as c,O as d,k as f,w as i,b as l,S as n,D as o,j as p,T as r,E as s,o as t,A 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.