PageSourceSearch

https://www.saranyan.com/_next/static/chunks/pages/writing/essays/[slug]-84a0455c6fc1c915.js

js saranyan.com collected 2026-09-30 15:22:32 UTC 8,174 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7277],{6029:(e,t,r)=>{"use strict";e.exports.jsxRuntime=r(37876)},11713:(e,t,r)=>{"use strict";r.d(t,{A:()=>m});var a=r(14232);let n=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),l=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,r)=>r?r.toUpperCase():t.toLowerCase()),o=e=>{let t=l(e);return t.charAt(0).toUpperCase()+t.slice(1)},s=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.filter((e,t,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim()},c=e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0};var i={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let d=(0,a.forwardRef)((e,t)=>{let{color:r="currentColor",size:n=24,strokeWidth:l=2,absoluteStrokeWidth:o,className:d="",children:m,iconNode:u,...x}=e;return(0,a.createElement)("svg",{ref:t,...i,width:n,height:n,stroke:r,strokeWidth:o?24*Number(l)/Number(n):l,className:s("lucide",d),...!m&&!c(x)&&{"aria-hidden":"true"},...x},[...u.map(e=>{let[t,r]=e;return(0,a.createElement)(t,r)}),...Array.isArray(m)?m:[m]])}),m=(e,t)=>{let r=(0,a.forwardRef)((r,l)=>{let{className:c,...i}=r;return(0,a.createElement)(d,{ref:l,iconNode:t,className:s("lucide-".concat(n(o(e))),"lucide-".concat(e),c),...i})});return r.displayName=o(e),r}},28447:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(11713).A)("menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]])},53644:(e,t,r)=>{"use strict";r.d(t,{m:()=>d});var a={};r.r(a),r.d(a,{MDXProvider:()=>i,useMDXComponents:()=>c}),"undefined"!=typeof window&&(window.requestIdleCallback=window.requestIdleCallback||function(e){var t=Date.now();return setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},window.cancelIdleCallback=window.cancelIdleCallback||function(e){clearTimeout(e)});var n=r(14232),l=r(6029);let o={},s=n.createContext(o);function c(e){let t=n.useContext(s);return n.useMemo(function(){return"function"==typeof e?e(t):{...t,...e}},[t,e])}function i(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:c(e.components),n.createElement(s.Provider,{value:t},e.children)}function d({compiledSource:e,frontmatter:t,scope:r,components:o={},lazy:s}){let[c,d]=(0,n.useState)(!s||"undefined"==typeof window);(0,n.useEffect)(()=>{if(s){let e=window.requestIdleCallback(()=>{d(!0)});return()=>window.cancelIdleCallback(e)}},[]);let m=(0,n.useMemo)(()=>{let n=Object.assign({opts:{...a,...l.jsxRuntime}},{frontmatter:t},r),o=Object.keys(n),s=Object.values(n),c=Reflect.construct(Function,o.concat(`${e}`));return c.apply(c,s).default},[r,e]);if(!c)return n.createElement("div",{dangerouslySetInnerHTML:{__html:""},suppressHydrationWarning:!0});let u=n.createElement(i,{components:o},n.createElement(m,null));return s?n.createElement("div",null,u):u}},70672:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(11713).A)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},83908:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/writing/essays/[slug]",function(){return r(87507)}])},87507:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__N_SSG:()=>d,default:()=>m});var a=r(37876),n=r(77328),l=r.n(n),o=r(48230),s=r.n(o);r(14232);var c=r(53644),i=r(96061),d=!0;function m(e){let{essay:t,mdxSource:r}=e;return(0,a.jsxs)(i.A,{title:"".concat(t.title," - Saranyan Vigraham"),children:[(0,a.jsxs)(l(),{children:[(0,a.jsx)("meta",{name:"description",content:t.excerpt}),(0,a.jsx)("meta",{property:"og:title",content:t.title}),(0,a.jsx)("meta",{property:"og:description",content:t.excerpt}),(0,a.jsx)("meta",{property:"og:type",content:"article"}),t.coverImage&&(0,a.jsx)("meta",{property:"og:image",content:t.coverImage})]}),(0,a.jsxs)("div",{className:"max-w-3xl mx-auto px-4 sm:px-6 py-12 sm:py-16",children:[(0,a.jsx)(s(),{href:"/writing",className:"inline-block text-sm mb-8",style:{color:"var(--color-text-muted)"},children:"← Back to Writing"}),(0,a.jsxs)("header",{className:"mb-8",children:[(0,a.jsx)("h1",{className:"font-serif text-2xl sm:text-3xl mb-4",style:{color:"var(--color-text)",fontWeight:400,lineHeight:1.3},children:t.title}),t.category&&(0,a.jsxs)("p",{className:"text-xs uppercase tracking-wide mb-3",style:{color:"var(--color-text-muted)"},children:[t.category," Essay"]}),(0,a.jsxs)("div",{className:"flex flex-wrap items-center gap-3 text-sm",style:{color:"var(--color-text-muted)"},children:[t.author&&(0,a.jsx)("span",{children:t.author.name}),(0,a.jsx)("time",{dateTime:t.date,children:new Date(t.date).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"})}),t.readingTime&&(0,a.jsx)("span",{children:t.readingTime})]}),t.tags&&t.tags.length>0&&(0,a.jsx)("div",{className:"flex flex-wrap gap-2 mt-3",children:t.tags.map(e=>(0,a.jsx)("span",{className:"text-xs px-2 py-0.5 rounded",style:{backgroundColor:"rgba(58, 125, 68, 0.08)",color:"var(--color-link)"},children:e},e))})]}),t.coverImage&&(0,a.jsx)("div",{className:"mb-8",children:(0,a.jsx)("img",{src:t.coverImage,alt:t.title,className:"w-full rounded-md",style:{maxHeight:"400px",objectFit:"cover"}})}),(0,a.jsx)("div",{className:"prose prose-lg mb-10",children:(0,a.jsx)(c.m,{...r})})]})]})}},96061:(e,t,r)=>{"use strict";r.d(t,{A:()=>x});var a=r(37876),n=r(77328),l=r.n(n),o=r(14232),s=r(48230),c=r.n(s),i=r(89099),d=r(70672),m=r(28447);let u=()=>{let e=(0,i.useRouter)(),[t,r]=(0,o.useState)(!1),n=t=>"/"===t?"/"===e.pathname:e.pathname.startsWith(t),l=[{path:"/projects",label:"Projects"},{path:"/blog",label:"Blog"},{path:"/writing",label:"Writing"},{path:"/kls",label:"Teaching"},{path:"/about",label:"About"}];return(0,a.jsxs)("header",{className:"sticky top-0 z-50",style:{backgroundColor:"var(--color-surface)",borderBottom:"1px solid var(--color-border)"},children:[(0,a.jsxs)("div",{className:"max-w-3xl mx-auto px-4 sm:px-6 flex justify-between items-center h-12",children:[(0,a.jsx)(c(),{href:"/",className:"text-base font-serif font-normal",style:{color:"var(--color-text)",textDecoration:"none"},children:"Saranyan Vigraham"}),(0,a.jsx)("nav",{className:"hidden sm:flex items-center gap-1",children:l.map(e=>(0,a.jsx)(c(),{href:e.path,className:"px-2.5 py-1 text-sm rounded transition-colors",style:{color:n(e.path)?"var(--color-link)":"var(--color-text-secondary)",backgroundColor:n(e.path)?"rgba(58, 125, 68, 0.08)":"transparent",fontWeight:n(e.path)?500:400},children:e.label},e.path))}),(0,a.jsx)("button",{onClick:()=>r(!t),className:"sm:hidden p-1.5 rounded",style:{color:"var(--color-text-secondary)"},"aria-label":t?"Close menu":"Open menu",children:t?(0,a.jsx)(d.A,{size:20}):(0,a.jsx)(m.A,{size:20})})]}),t&&(0,a.jsx)("nav",{className:"sm:hidden border-t",style:{borderColor:"var(--color-border)",backgroundColor:"var(--color-surface)"},children:l.map(e=>(0,a.jsx)(c(),{href:e.path,className:"block px-6 py-2.5 text-sm",style:{color:n(e.path)?"var(--color-link)":"var(--color-text-secondary)",backgroundColor:n(e.path)?"rgba(58, 125, 68, 0.08)":"transparent"},onClick:()=>r(!1),children:e.label},e.path))})]})},x=e=>{let{children:t,title:r="Saranyan Vigraham"}=e;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(l(),{children:[(0,a.jsx)("title",{children:r}),(0,a.jsx)("meta",{name:"description",content:"Working at the intersection of AI and Humanity"}),(0,a.jsx)("link",{rel:"icon",href:"/favicon.ico"}),(0,a.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1"})]}),(0,a.jsx)(u,{}),(0,a.jsxs)("div",{className:"min-h-screen flex flex-col",children:[(0,a.jsx)("main",{className:"flex-grow",children:t}),(0,a.jsx)("footer",{className:"border-t py-6 text-center text-sm",style:{borderColor:"var(--color-border)",color:"var(--color-text-muted)"},children:(0,a.jsxs)("p",{children:["\xa9 ",new Date().getFullYear()," Saranyan Vigraham"]})})]})]})}}},e=>{var t=t=>e(e.s=t);e.O(0,[5695,636,6593,8792],()=>t(83908)),_N_E=e.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.