PageSourceSearch

https://a-thedeveloper.vercel.app/_next/static/chunks/pages/blog/[slug]-d29f0c4aecc1f662.js

js a-thedeveloper.vercel.app collected 2026-10-03 06:03:36 UTC 13,851 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7812],{248:(e,t,r)=>{"use strict";r.d(t,{h:()=>u});var a=r(7876);r(4232);var o=r(3287),l=r(2793),n=r(4682);let i=[{top:"-8%",left:"-6%",width:"52%",height:"38%",opacity:.7},{top:"-10%",right:"-4%",width:"44%",height:"32%",opacity:.55},{top:"4%",left:"28%",width:"36%",height:"22%",opacity:.4},{top:"-2%",right:"18%",width:"28%",height:"18%",opacity:.35}],s=[{top:"-12%",left:"-8%",width:"58%",height:"42%",opacity:.65},{top:"-10%",right:"-6%",width:"48%",height:"36%",opacity:.5}],d=[{top:"6%",left:"4%",width:"18%",rotate:"-18deg",opacity:.85,assetIndex:0},{top:"58%",right:"6%",width:"15%",rotate:"28deg",opacity:.7,flipX:!0,assetIndex:1},{top:"72%",left:"18%",width:"12%",rotate:"12deg",opacity:.55,assetIndex:2},{bottom:"4%",right:"22%",width:"14%",rotate:"-32deg",opacity:.75,assetIndex:3}],c=[{top:"8%",left:"6%",width:"22%",rotate:"-14deg",opacity:.8,assetIndex:0},{bottom:"6%",right:"8%",width:"18%",rotate:"22deg",opacity:.65,flipX:!0,assetIndex:1}],h=[{top:"8%",left:"5%",width:"16%",rotate:"-22deg",opacity:.85,assetIndex:0},{top:"52%",right:"5%",width:"14%",rotate:"26deg",opacity:.7,flipX:!0,assetIndex:1},{top:"70%",left:"20%",width:"12%",rotate:"10deg",opacity:.55,assetIndex:2},{bottom:"5%",right:"20%",width:"15%",rotate:"-28deg",opacity:.75,assetIndex:3}],m=[{top:"10%",left:"7%",width:"20%",rotate:"-16deg",opacity:.8,assetIndex:0},{bottom:"7%",right:"7%",width:"17%",rotate:"20deg",opacity:.65,flipX:!0,assetIndex:1}];function p(e){let{layout:t}=e;return(0,a.jsx)(a.Fragment,{children:("photo"===t?i:s).map((e,t)=>(0,a.jsx)("span",{"aria-hidden":!0,className:"pointer-events-none absolute",style:{top:e.top,left:e.left,right:e.right,width:e.width,height:e.height,opacity:e.opacity,background:"radial-gradient(ellipse at center, ".concat("rgba(232, 226, 214, 0.85)"," 0%, transparent 70%)"),filter:"blur(10px)"}},"snow-".concat(t)))})}function x(e){let{layout:t,photoStamps:r,cardStamps:o,assetSrcs:l,keyPrefix:n}=e;return(0,a.jsx)(a.Fragment,{children:("photo"===t?r:o).map((e,t)=>(0,a.jsx)("img",{src:l[e.assetIndex],alt:"","aria-hidden":!0,className:"pointer-events-none absolute h-auto",style:function(e){let t=e.flipX?" scaleX(-1)":"";return{top:e.top,left:e.left,right:e.right,bottom:e.bottom,width:e.width,opacity:e.opacity,transform:"rotate(".concat(e.rotate,")").concat(t),mixBlendMode:"screen"}}(e)},"".concat(n,"-").concat(t)))})}function u(e){let{layout:t="photo"}=e,{weatherMode:r}=(0,o.U)();return"winter"===r?(0,a.jsx)("div",{className:"pointer-events-none absolute inset-0 z-[1] overflow-hidden",children:(0,a.jsx)(p,{layout:t})}):"autumn"===r?(0,a.jsx)("div",{className:"pointer-events-none absolute inset-0 z-[1] overflow-hidden",children:(0,a.jsx)(x,{layout:t,photoStamps:d,cardStamps:c,assetSrcs:n.q,keyPrefix:"leaf"})}):"spring"===r?(0,a.jsx)("div",{className:"pointer-events-none absolute inset-0 z-[1] overflow-hidden",children:(0,a.jsx)(x,{layout:t,photoStamps:h,cardStamps:m,assetSrcs:l.r,keyPrefix:"flower"})}):null}},2793:(e,t,r)=>{"use strict";r.d(t,{r:()=>a});let a=["/_next/static/media/flower-1.a1255692.png","/_next/static/media/flower-2.c270980b.png","/_next/static/media/flower-3.b698b50b.png","/_next/static/media/flower-4.9b76f753.png","/_next/static/media/flower-5.f54db3ee.png"]},3783:(e,t,r)=>{"use strict";function a(e){let[t,r,a]=e.split("-").map(Number);if(!t||!r||!a)return e;let o=new Date(t,r-1,a),l=String(o.getDate()).padStart(2,"0"),n=o.toLocaleDateString("en-US",{month:"short"}),i=o.getFullYear();return"".concat(l,", ").concat(n,", ").concat(i)}r.d(t,{_:()=>a})},4682:(e,t,r)=>{"use strict";r.d(t,{q:()=>a});let a=["/_next/static/media/leaf-1.afd8c6d6.png","/_next/static/media/leaf-2.a33b6b2d.png","/_next/static/media/leaf-3.abe57c9c.png","/_next/static/media/leaf-4.b8028e90.png","/_next/static/media/leaf-5.3749dde9.png"]},4930:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__N_SSG:()=>U,default:()=>H});var a,o,l,n,i,s,d,c,h,m=r(7876),p=r(4232),x=r(8230),u=r.n(x),b=r(4587),g=r.n(b),f=r(4256),j=r(3783),y=r(488),w=r(7979),N=r(4361),k=r(892),v=r(8847);let _=r.n(v)()(()=>r.e(1613).then(r.bind(r,1613)).then(e=>e.MermaidDiagram),{loadableGenerated:{webpack:()=>[1613]},ssr:!1,loading:()=>(0,m.jsx)("div",{className:"min-h-[8rem] text-sm text-retro-ink-muted",children:"Loading diagram…"})});function I(e){let{chart:t}=e;return(0,m.jsx)("div",{"data-mermaid-block":"",className:"my-4",children:(0,m.jsx)(_,{chart:t})})}function S(e){return"string"==typeof e?e:Array.isArray(e)?e.filter(Boolean).join(" "):""}function E(e){var t;let r=S(e);if(!r)return null;let a=/language-([\w-]+)/.exec(r);return null!=(t=null==a?void 0:a[1])?t:null}function P(e){return"mermaid"===e}function A(e){return(function e(t){return"string"==typeof t?t:"number"==typeof t?String(t):Array.isArray(t)?t.map(e).join(""):p.isValidElement(t)?e(t.props.children):""})(e).replace(/\n$/,"")}let q={h1:"font-display text-retro-ink text-3xl sm:text-4xl border-b border-retro-border pb-3 mb-6 mt-8 first:mt-0",h2:"font-display text-retro-ink text-2xl sm:text-3xl border-b border-retro-border/80 pb-2 mb-4 mt-10",h3:"font-semibold text-retro-ink text-lg sm:text-xl mt-8 mb-3",h4:"font-semibold text-retro-ink text-base mt-6 mb-2",h
15:"font-semibold text-retro-ink text-sm sm:text-base mt-4 mb-2",h6:"font-semibold text-retro-ink-muted text-sm uppercase tracking-[0.16em] mt-4 mb-2",p:"text-retro-ink-muted text-base leading-relaxed mb-4",ul:"list-disc list-outside pl-6 text-retro-ink-muted text-base space-y-2 mb-4 [&_ul]:mt-2 [&_ul]:mb-0 [&_ol]:mt-2 [&_ol]:mb-0",ol:"list-decimal list-outside pl-6 text-retro-ink-muted text-base space-y-2 mb-4 [&_ul]:mt-2 [&_ul]:mb-0 [&_ol]:mt-2 [&_ol]:mb-0",li:"leading-relaxed [&>p]:mb-2 [&>p:last-child]:mb-0",blockquote:"border-l border-retro-accent pl-5 py-1 my-6 text-retro-ink-muted italic [&_blockquote]:mt-3 [&_blockquote]:mb-0",codeInline:"bg-retro-highlight border border-retro-border/70 px-1.5 py-0.5 text-sm text-retro-ink rounded-sm break-words",codeBlock:"hljs text-sm leading-relaxed",pre:"bg-[#080706] p-4 overflow-x-auto border border-retro-border mb-5 text-sm rounded-sm",a:"text-retro-accent underline underline-offset-4 decoration-retro-accent/50 hover:text-retro-accent-light hover:decoration-retro-accent-light break-words",strong:"font-semibold text-retro-ink",em:"italic text-retro-ink-muted",del:"line-through text-retro-ink-muted/80",hr:"border-0 border-t border-retro-border my-10",img:"max-w-full h-auto border border-retro-border my-6 rounded-sm",tableWrapper:"overflow-x-auto mb-5 border border-retro-border",table:"w-full min-w-[32rem] border-collapse text-sm",thead:"bg-retro-highlight",tbody:"divide-y divide-retro-border",tr:"border-b border-retro-border last:border-b-0",th:"px-3 py-2 text-left font-semibold text-retro-ink border-r border-retro-border last:border-r-0",td:"px-3 py-2 text-retro-ink-muted border-r border-retro-border last:border-r-0 align-top"};function X(e){let{src:t,alt:r}=e,[a,o]=p.useState(!1);return!t||a?(0,m.jsx)("span",{className:"inline-block my-4 px-3 py-2 text-sm text-retro-ink-muted bg-retro-highlight ",children:r?"Image unavailable: ".concat(r):"Image unavailable"}):(0,m.jsx)("img",{src:t,alt:null!=r?r:"",loading:"lazy",decoding:"async",className:q.img,onError:()=>o(!0)})}let z={h1:e=>{let{children:t}=e;return(0,m.jsx)("h1",{className:q.h1,children:t})},h2:e=>{let{children:t}=e;return(0,m.jsx)("h2",{className:q.h2,children:t})},h3:e=>{let{children:t}=e;return(0,m.jsx)("h3",{className:q.h3,children:t})},h4:e=>{let{children:t}=e;return(0,m.jsx)("h4",{className:q.h4,children:t})},h5:e=>{let{children:t}=e;return(0,m.jsx)("h5",{className:q.h5,children:t})},h6:e=>{let{children:t}=e;return(0,m.jsx)("h6",{className:q.h6,children:t})},p:e=>{let{children:t}=e;return(0,m.jsx)("p",{className:q.p,children:t})},ul:e=>{let{children:t}=e;return(0,m.jsx)("ul",{className:q.ul,children:t})},ol:e=>{let{children:t}=e;return(0,m.jsx)("ol",{className:q.ol,children:t})},li:e=>{let{children:t}=e;return(0,m.jsx)("li",{className:q.li,children:t})},blockquote:e=>{let{children:t}=e;return(0,m.jsx)("blockquote",{className:q.blockquote,children:t})},code:function(e){let{className:t,children:r,...a}=e,o=E(t);return P(o)?(0,m.jsx)(I,{chart:A(r)}):o||S(t).includes("hljs")?(0,m.jsx)("code",{className:"".concat(q.codeBlock," ").concat(S(t)),...a,children:r}):(0,m.jsx)("code",{className:q.codeInline,...a,children:r})},pre:function(e){let{children:t}=e,r=p.Children.toArray(t)[0];if(p.isValidElement(r)&&void 0!==r.props["data-mermaid-block"])return r;let a=function(e){let t=p.Children.toArray(e)[0];return p.isValidElement(t)?E(t.props.className):null}(t);return P(a)?(0,m.jsx)(I,{chart:A(t)}):(0,m.jsxs)("div",{className:"relative mb-4",children:[a&&(0,m.jsx)("span",{className:"absolute top-0 right-0 z-10 px-2 py-0.5 text-xs uppercase tracking-wide bg-retro-accent text-retro-bg border-l border-b border-retro-border",children:a}),(0,m.jsx)("pre",{className:q.pre,children:t})]})},a:function(e){let{href:t,children:r}=e,a=!!t&&(/^(https?:)?\/\//i.test(t)||t.startsWith("mailto:"));return(0,m.jsx)("a",{href:t,className:q.a,...a?{target:"_blank",rel:"noopener noreferrer"}:{},children:r})},strong:e=>{let{children:t}=e;return(0,m.jsx)("strong",{className:q.strong,children:t})},em:e=>{let{children:t}=e;return(0,m.jsx)("em",{className:q.em,children:t})},del:e=>{let{children:t}=e;return(0,m.jsx)("del",{className:q.del,children:t})},hr:()=>(0,m.jsx)("hr",{className:q.hr}),img:e=>{let{src:t,alt:r}=e;return(0,m.jsx)(X,{src:t,alt:r})},table:e=>{let{children:t}=e;return(0,m.jsx)("div",{className:q.tableWrapper,children:(0,m.jsx)("table",{className:q.table,children:t})})},thead:e=>{let{children:t}=e;return(0,m.jsx)("thead",{className:q.thead,children:t})},tbody:e=>{let{children:t}=e;return(0,m.jsx)("tbody",{className:q.tbody,children:t})},tr:e=>{let{children:t}=e;return(0,m.jsx)("tr",{className:q.tr,children:t})},th:e=>{let{children:t}=e;return(0,m.jsx)("th",{className:q.th,children:t})},td:e=>{let{children:t}=e;return(0,m.jsx)("td",{className:q.td,children:t})}};var T=r(8935);let B={...T.j,tagNames:[...null!=(i=T.j.tagNames)?i:[],"del","table","thead","tbody","tr","th","td"],attributes:{...T.j.attributes,code:[...null!=(s=null==(a=T.j.attributes)?void 0:a.code)?s:[],["className"]],span:[...null!=(d=null==(o=T.j.attributes)?void 0:o.span)?d:[],["className"]],th:[...null!=(c=null==(l=T.j.attributes)?void 0:l.th)?c:[],["align"]],td:[...null!=(h=null==(n=T.j.attributes)?void 0:n.td)?h:[],["align"]]}},C={plainText:["mermaid"]};class D extends p.Component{static getDerivedStateFromError(){return{hasError:!0}}render(){return this.state.hasError?this.props.fallback:this.props.children}constructor(...e){super(...e),this.state={hasError:!1}}}function F(){return(0,m.jsx)("p",{className:"text-retro-ink-muted text-sm border-2 border-retro-border bg-retro-highlight px-4 py-3",children:"This post could not be rendered. Check the Markdown source for unsupported or malformed content."})}
1function W(e){let{content:t,className:r=""}=e;return t.trim()?(0,m.jsx)("div",{className:"markdown-preview markdown-content ".concat(r),children:(0,m.jsx)(D,{fallback:(0,m.jsx)(F,{}),children:(0,m.jsx)(y.oz,{remarkPlugins:[w.A],rehypePlugins:[[N.A,C],[k.A,B]],components:z,skipHtml:!0,children:t})})}):(0,m.jsx)("p",{className:"text-retro-ink-muted text-sm italic markdown-content",children:"Preview will appear here…"})}var L=r(6066),M=r(3685),O=r(9134),V=r(7290),G=r(248),U=!0;let H=e=>{var t;let{post:r}=e,a="/blog/".concat(r.slug),o=null!=(t=r.description)?t:"Read ".concat(r.title," on ").concat(M.j.name,"."),l="".concat(r.date,"T00:00:00.000Z"),n=(0,O.F)(r.coverImage);return(0,m.jsxs)(V.S,{showToneSwitcher:!1,children:[(0,m.jsx)(L.g,{title:r.title,description:o,path:a,image:n,type:"article",publishedTime:l,jsonLd:{"@context":"https://schema.org","@type":"BlogPosting",headline:r.title,description:o,image:n?[n]:void 0,datePublished:l,author:{"@type":"Person",name:M.j.author,url:M.j.url},publisher:{"@type":"Person",name:M.j.author},mainEntityOfPage:{"@type":"WebPage","@id":"".concat(M.j.url).concat(a)}}}),(0,m.jsxs)("main",{children:[r.coverImage&&(0,m.jsxs)("div",{className:"relative h-56 overflow-hidden border-b border-retro-border bg-retro-highlight sm:h-72 lg:h-96",children:[(0,m.jsx)(g(),{src:r.coverImage,alt:r.title,fill:!0,priority:!0,sizes:"100vw",className:"object-cover opacity-85"}),(0,m.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-retro-bg via-retro-bg/20 to-transparent"}),(0,m.jsx)(G.h,{layout:"photo"})]}),(0,m.jsxs)(f.P.article,{initial:{opacity:0,y:16},animate:{opacity:1,y:0},className:"mx-auto max-w-measure px-4 py-12 sm:px-6 sm:py-16 lg:max-w-3xl",children:[(0,m.jsx)(u(),{href:"/blog",className:"mb-8 inline-block text-sm tracking-wide text-retro-accent transition-colors hover:text-retro-accent-light",children:"← All writing"}),(0,m.jsxs)("header",{className:"mb-10 space-y-4 border-b border-retro-border pb-8",children:[(0,m.jsx)("p",{className:"text-xs uppercase tracking-[0.22em] text-retro-ink-muted",children:(0,j._)(r.date)}),(0,m.jsx)("h1",{className:"font-display text-4xl leading-tight text-retro-ink sm:text-5xl",children:r.title}),r.description&&(0,m.jsx)("p",{className:"text-base leading-relaxed text-retro-ink-muted sm:text-lg",children:r.description})]}),(0,m.jsx)("div",{className:"prose-retro markdown-content",children:(0,m.jsx)(W,{content:r.content})}),(0,m.jsx)("div",{className:"mt-14 border-t border-retro-border pt-8",children:(0,m.jsx)(u(),{href:"/blog",className:"text-sm tracking-wide text-retro-accent transition-colors hover:text-retro-accent-light",children:"← Back to writing"})})]})]})]})}},5660:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/blog/[slug]",function(){return r(4930)}])}},e=>{e.O(0,[3800,4587,4405,8059,636,6593,8792],()=>e(e.s=5660)),_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.