PageSourceSearch

https://urbanodx.com/chunk-0t7x6cvp.js

js urbanodx.com collected 2026-10-02 00:58:01 UTC 3,743 bytes, 5 lines download raw bytes

1function ne(r){let t=r.trimStart().toLowerCase();return t.startsWith("<!doctype html")||t.startsWith("<html")}function d(r){return r.replaceAll("&","&amp;").replaceAll("<","&lt;").replaceAll(">","&gt;").replaceAll('"',"&quot;").replaceAll("'","&#39;")}function a(r){let t=d(r);return t=t.replace(/`([^`]+)`/g,"<code class='rounded bg-emerald-50 px-1 py-0.5 text-[0.9em] text-emerald-800'>$1</code>"),t=t.replace(/\*\*([^*]+)\*\*/g,"<strong>$1</strong>"),t=t.replace(/\*([^*]+)\*/g,"<em>$1</em>"),t=t.replace(/\[([^\]]+)\]\(([^)]+)\)/g,(n,e,s)=>{let l=s.startsWith("/")&&!s.startsWith("//")?"":" target='_blank' rel='noreferrer'";return`<a href='${s}' class='text-emerald-700 underline'${l}>${e}</a>`}),t}var g=/^!\[([^\]]*)\]\((\/[^)\s]+)\)$/,u=/\.mp4$/;function b(r){let t=r.match(g);if(!t)return null;let n=d(t[1]),e=d(t[2]),s=`<figcaption class="px-4 py-3 text-xs font-bold leading-5 text-neutral-500">${n}</figcaption>`,l=(c)=>`<figure class="my-8 overflow-hidden rounded-lg border border-neutral-200 bg-neutral-50">${c}${s}</figure>`;if(u.test(e))return l(`<video controls muted playsinline preload="none" poster="${e.replace(u,".jpg")}" aria-label="${n}" class="aspect-video w-full bg-neutral-900"><source src="${e.replace(u,".webm")}" type="video/webm" /><source src="${e}" type="video/mp4" /></video>`);return l(`<img src="${e}" alt="${n}" loading="lazy" class="w-full" />`)}function m(r){let t=r.trim(),n=t.startsWith("|")?t.slice(1):t;return(n.endsWith("|")?n.slice(0,-1):n).split("|").map((s)=>s.trim())}function x(r){let t=m(r);return t.length>1&&t.every((n)=>/^:?-{3,}:?$/.test(n.replace(/\s/g,"")))}function p(r,t){let n=r[t]?.trim()||"",e=r[t+1]?.trim()||"";return n.includes("|")&&e.includes("|")&&x(e)}function f(r,t){if(r.length===t)return r;if(r.length<t)return[...r,...Array.from({length:t-r.length},()=>"")];return[...r.slice(0,t-1),r.slice(t-1).join(" | ")]}function w(r,t){let n=m(r[t]),e=n.length,s=t+2,l=[];while(s<r.length){let o=r[s].trim();if(!o||!o.includes("|"))break;l.push(f(m(o),e)),s+=1}let c=n.map((o)=>`<th class="border-b border-r border-udx-line bg-white px-4 py-3 text-left text-xs font-black uppercase tracking-wide text-udx-muted last:border-r-0">${a(o)}</th>`).join(""),i=l.map((o)=>`<tr>${o.map((h)=>`<td class="border-b border-r border-udx-line px-4 py-4 align-top text-sm font-semibold leading-6 text-neutral-700 last:border-r-0">${a(h)}</td>`).join("")}</tr>`).join("");return{html:`<div class="my-6 overflow-x-auto rounded-lg border border-udx-line bg-white shadow-sm"><table class="min-w-[720px] border-collapse text-left"><thead><tr>${c}</tr></thead><tbody>${i}</tbody></table></div>`,nextIndex:s}}function z(r){let t=r.replace(/\r\n/g,`
2`).split(`
3`),n=[],e=0;while(e<t.length){let s=t[e].trim();if(!s){e+=1;continue}if(s.startsWith("### ")){n.push(`<h3 class="mt-8 mb-3 text-xl font-black text-neutral-950">${a(s.slice(4))}</h3>`),e+=1;continue}if(s.startsWith("## ")){n.push(`<h2 class="mt-10 mb-4 text-2xl font-black text-neutral-950">${a(s.slice(3))}</h2>`),e+=1;continue}if(s.startsWith("# ")){n.push(`<h1 class="mt-2 mb-5 text-4xl font-black leading-tight text-neutral-950">${a(s.slice(2))}</h1>`),e+=1;continue}let l=b(s);if(l){n.push(l),e+=1;continue}if(p(t,e)){let i=w(t,e);n.push(i.html),e=i.nextIndex;continue}if(s.startsWith("- ")){let i=[];while(e<t.length&&t[e].trim().startsWith("- "))i.push(`<li>${a(t[e].trim().slice(2))}</li>`),e+=1;n.push(`<ul class="my-4 ml-6 list-disc space-y-2 text-neutral-700">${i.join("")}</ul>`);continue}let c=[s];e+=1;while(e<t.length){let i=t[e].trim();if(!i||i.startsWith("#")||i.startsWith("- ")||g.test(i)||p(t,e))break;c.push(i),e+=1}n.push(`<p class="my-4 text-neutral-700 leading-8">${a(c.join(" "))}</p>`)}return n.join(`
4`)}
5export{ne,z};

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.