1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="781e0b9e-dbb2-ca78-b219-cdb83f3b8fd2")}catch(e){}}(); 2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,9190,e=>{"use strict";var t=e.i(843476),a=e.i(522016);function r(){let{pending:e}=(0,a.useLinkStatus)();return e?(0,t.jsx)("span",{role:"status",className:"absolute inset-0 z-10 flex items-center justify-center rounded-[inherit] bg-white/95 px-2 text-center font-body text-sm font-medium text-ink",children:"Loading articleâ¦"}):null}e.s(["ArticleLinkStatus",()=>r])},794909,(e,t,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0});var r={default:function(){return c},getImageProps:function(){return d}};for(var i in r)Object.defineProperty(a,i,{enumerable:!0,get:r[i]});let l=e.r(555682),n=e.r(908927),s=e.r(605500),o=l._(e.r(423630));function d(e){let{props:t}=(0,n.getImgProps)(e,{defaultLoader:o.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048],imageSizes:[32,48,64,96,128,256,384],qualities:[25,50,75,90],path:"/blog/_next/image/",loader:"custom",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,a]of Object.entries(t))void 0===a&&delete t[e];return{props:t}}let c=s.Image},657688,(e,t,a)=>{t.exports=e.r(794909)},837154,e=>{"use strict";var t=e.i(843476),a=e.i(657688);function r(e){let r="string"==typeof e.src&&e.src.startsWith("/images/")?`/blog${e.src}`:e.src;return(0,t.jsx)(a.default,{...e,src:r,alt:e.alt})}e.s(["BlogImage",()=>r])},894274,e=>{"use strict";var t=e.i(843476),a=e.i(271645),r=e.i(522016),i=e.i(837154);function l({video:e,priority:l=!1,transcriptHref:s}){let[o,d]=(0,a.useState)(!1),[c,u]=(0,a.useState)(!1),m=(0,a.useCallback)(()=>{d(!0)},[]),h=(0,a.useCallback)(()=>{u(!0)},[]),x=c?`https://i.ytimg.com/vi/${e.id}/hqdefault.jpg`:e.thumbnail,f=e.duration?function(e){let t=e.match(/PT(?:(\d+)H)?(?:(\d+)M)?(?:(\d+)S)?/);if(!t)return"";let a=parseInt(t[1]||"0",10),r=parseInt(t[2]||"0",10),i=parseInt(t[3]||"0",10);return a>0?`${a}:${String(r).padStart(2,"0")}:${String(i).padStart(2,"0")}`:`${r}:${String(i).padStart(2,"0")}`}(e.duration):"";return(0,t.jsxs)("article",{className:"group flex h-full flex-col overflow-hidden rounded-3xl border border-hair bg-white shadow-soft",children:[(0,t.jsx)("div",{className:"relative aspect-video w-full overflow-hidden bg-white",children:o?(0,t.jsx)("iframe",{src:`https://www.youtube.com/embed/${e.id}?autoplay=1&rel=0&modestbranding=1`,title:e.title,allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0,className:"absolute inset-0 w-full h-full",loading:"eager"}):(0,t.jsx)("button",{type:"button",onClick:m,className:"absolute inset-0 w-full h-full cursor-pointer focus:outline-none focus-visible:ring-2 focus-visible:ring-brand focus-visible:ring-offset-2","aria-label":`Play video: ${e.title}`,children:(0,t.jsx)(i.BlogImage,{src:x,alt:`Thumbnail for ${e.title}`,fill:!0,className:"object-contain",sizes:"(max-width: 640px) 100vw, (max-width: 1024px) 50vw, (max-width: 1280px) 33vw, 25vw",quality:75,priority:l,onError:h})})}),(0,t.jsxs)("div",{className:"flex flex-col flex-grow px-5 pb-5 pt-4",children:[(f||e.viewCount>0)&&(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1 font-body text-sm text-ink-secondary mb-2",children:[f&&(0,t.jsx)("span",{children:f}),e.viewCount>0&&(0,t.jsxs)("span",{"aria-label":`${n(e.viewCount)} views`,children:[n(e.viewCount)," views"]})]}),(0,t.jsxs)("button",{type:"button",onClick:m,className:"inline-flex min-h-[48px] items-center self-start text-brand-dark text-sm underline underline-offset-4 mb-2",children:[o?"Playing video":"Watch video"," ",(0,t.jsx)("span",{"aria-hidden":"true",className:"ml-2",children:"â"})]}),(0,t.jsx)("h3",{className:"font-display text-xl leading-snug transition-colors duration-200 text-ink group-hover:text-brand-dark",children:e.title}),s&&(0,t.jsxs)(r.default,{href:s,className:"mt-3 inline-flex min-h-[48px] items-center gap-1.5 font-body text-base font-medium text-brand-dark underline-offset-4 hover:underline",children:["Read the transcript",(0,t.jsx)("span",{"aria-hidden":"true",children:"â"})]})]})]})}function n(e){if(e>=1e6){let t=e/1e6;return`${Number.isInteger(t)?t:t.toFixed(1)}M`}if(e>=1e3){let t=e/1e3;return`${Number.isInteger(t)?t:t.toFixed(1)}K`}return e.toString()}e.s(["VideoCard",()=>l])},12874,e=>{"use strict";var t=e.i(843476),a=e.i(271645),r=e.i(618566),i=e.i(522016),l=e.i(9190),n=e.i(837154);function s(e){return e?new Date(e).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"}):""}let o={"dr. kevin tran":{name:"Dr. Kevin Tran",bio:"Dr. Kevin Tran is a Doctor of Pharmacy and APOE4/4 carrier dedicated to helping others with the APOE4 gene variant take proactive steps for their health. He founded The Phoenix Community to provide evidence-based resources and support for APOE4 carriers.",profile_image:"/images/authors/dr-kevin-tran.webp"}},d="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAMCAgMCAgMDAwMEAwMEBQgFBQQEBQoHBwYIDAoMCwsKCwsNDhIQDQ4RDgsLEBYQERMUFRUVDA8XGBYUGBIUFRT/2wBDAQMEBAUEBQkFBQkUDQsNFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBT/wAARCAAIAAoDASIAAhEBAxEB/8QAFgABAQEAAAAAAAAAAAAAAAAAAAYH/8QAIhAAAgEDBAMBAAAAAAAAAAAAAQIDAAQRBQYSITFBUWH/xAAVAQEBAAAAAAAAAAAAAAAAAAADBP/EABkRAAIDAQAAAAAAAAAAAAAAAAECAAMRIf/aAAwDAQACEQMRAD8AzLYu3dOv9sW13d2cc9xKZWaV+WTiSUAJJIAA7HXdT/8AKpP0CL/AKlf/2Q==",c=(0,a.memo)(function({post:e,featured:a=!1,variant:r="default",headingLevel:c=3,priority:u=!1}){var m;let h=2===c?"h2":"h3",x="reading_time"in e&&"number"==typeof e.reading_time?e.reading_time:"content_html"in e&&e.content_html?(m=e.content_html)?Math.max(1,Math.ceil(m.replace(/<[^>]*>
2/g,"").split(/\s+/).filter(Boolean).length/200)):1:void 0,f=e.thumbnail_url&&!e.thumbnail_url.includes("/uploads/publication/thumbnail/")?e.thumbnail_url:null,g=e.content_tags&&e.content_tags.length>0?e.content_tags[0]:null,p=`/posts/${e.slug}`,b=e.authors&&e.authors.length>0?function(e){if(!e)return{name:"Phoenix Team"};if("object"==typeof e&&"name"in e&&e.name){let t=o[e.name.toLowerCase()];return t?{name:e.name,bio:e.bio||t.bio,profile_image:e.profile_image||t.profile_image}:e}if("string"==typeof e&&e.trim()){let t=o[e.toLowerCase()];return t||{name:e}}return{name:"Phoenix Team"}}(e.authors[0]):null;return"large"===r?(0,t.jsxs)("article",{className:"fn-feature-card group grid overflow-hidden rounded-3xl border border-hair bg-white shadow-soft md:grid-cols-2",children:[f?(0,t.jsxs)(i.default,{href:p,"aria-label":`Read article: ${e.title}`,className:"relative block aspect-video w-full overflow-hidden bg-white md:aspect-auto md:h-full md:min-h-[320px]",children:[(0,t.jsx)(l.ArticleLinkStatus,{}),(0,t.jsx)(n.BlogImage,{src:f,alt:"",width:1200,height:675,className:"post-card-image h-full w-full object-contain",sizes:"(max-width: 1024px) 100vw, 50vw",placeholder:"blur",blurDataURL:d,quality:75,priority:u,fetchPriority:u?"high":void 0})]}):(0,t.jsx)("div",{"aria-hidden":"true",className:"flex aspect-video w-full flex-col items-start justify-end bg-[#E4ECE7] p-6 md:aspect-auto md:h-full md:min-h-[320px] md:p-8",children:(0,t.jsxs)("span",{className:"font-display text-2xl text-ink",children:["Field Notes",(0,t.jsx)("span",{className:"text-brand-dark",children:"."})]})}),(0,t.jsxs)("div",{className:"flex flex-col justify-center p-6 md:p-8 lg:p-10",children:[g&&(0,t.jsx)("div",{className:"mb-3",children:(0,t.jsx)(i.default,{href:`/category/${encodeURIComponent(g.toLowerCase())}`,className:"font-body text-base font-medium text-brand-dark hover:underline",children:g})}),(0,t.jsx)(h,{className:"font-display text-2xl md:text-[2rem] leading-tight mb-3",children:(0,t.jsxs)(i.default,{href:p,className:"post-card-title relative block text-ink group-hover:text-brand-dark transition-colors",children:[(0,t.jsx)(l.ArticleLinkStatus,{}),(0,t.jsx)("span",{children:e.title})]})}),(e.subtitle||e.preview_text)&&(0,t.jsx)("p",{className:"text-ink-secondary text-lg mb-5 line-clamp-3 font-body leading-relaxed",children:e.subt
2itle||e.preview_text}),(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1 font-body text-base text-ink-secondary",children:[e.publish_date&&(0,t.jsx)("time",{dateTime:e.publish_date,children:s(e.publish_date)}),"number"==typeof x&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"w-1 h-1 rounded-full bg-ink-subtle","aria-hidden":"true"}),(0,t.jsxs)("span",{children:[x," min read"]})]})]})]})]}):(0,t.jsxs)("article",{className:`group flex flex-col h-full overflow-hidden rounded-3xl border border-hair shadow-soft ${f?"bg-white":"fn-text-card"}`,children:[f?(0,t.jsxs)(i.default,{href:p,"aria-label":`Read article: ${e.title}`,className:"relative block aspect-video w-full overflow-hidden bg-white",children:[(0,t.jsx)(l.ArticleLinkStatus,{}),(0,t.jsx)(n.BlogImage,{src:f,alt:"",width:1200,height:675,className:"post-card-image h-full w-full object-contain",sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw",placeholder:"blur",blurDataURL:d,quality:75,priority:u,fetchPriority:u?"high":void 0})]}):null,(0,t.jsxs)("div",{className:"flex flex-col flex-grow p-5 md:p-6",children:[g&&(0,t.jsx)("div",{className:"mb-2",children:(0,t.jsx)(i.default,{href:`/category/${encodeURIComponent(g.toLowerCase())}`,className:"font-body text-sm font-medium text-brand-dark hover:underline",children:g})}),(0,t.jsx)(h,{className:`font-display mb-2.5 leading-snug ${a?"text-3xl":"text-2xl"}`,children:(0,t.jsxs)(i.default,{href:p,className:"post-card-title relative text-ink group-hover:text-brand-dark transition-colors",children:[(0,t.jsx)(l.ArticleLinkStatus,{}),(0,t.jsx)("span",{children:e.title})]})}),(e.subtitle||e.preview_text)&&(0,t.jsx)("p",{className:"text-ink-secondary text-base mb-4 line-clamp-2 flex-grow font-body leading-relaxed",children:e.subt
2itle||e.preview_text}),(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-x-2.5 gap-y-1 font-body text-sm text-ink-secondary mt-auto pt-4 border-t border-hair",children:[b&&(0,t.jsxs)(t.Fragment,{children:[b.profile_image?(0,t.jsx)(n.BlogImage,{src:b.profile_image,alt:b.name,width:28,height:28,className:"rounded-full ring-1 ring-hair"}):(0,t.jsx)("div",{className:"w-7 h-7 rounded-full bg-zinc-100 flex items-center justify-center flex-shrink-0","aria-hidden":"true",children:(0,t.jsx)("svg",{className:"w-3.5 h-3.5 text-ink-muted",fill:"currentColor",viewBox:"0 0 20 20",children:(0,t.jsx)("path",{fillRule:"evenodd",d:"M10 9a3 3 0 100-6 3 3 0 000 6zm-7 9a7 7 0 1114 0H3z",clipRule:"evenodd"})})}),(0,t.jsx)("span",{className:"truncate font-medium text-ink",children:b.name})]}),e.publish_date&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"w-1 h-1 rounded-full bg-ink-subtle","aria-hidden":"true"}),(0,t.jsx)("time",{dateTime:e.publish_date,title:s(e.publish_date),children:function(e){let t=new Date,a=new Date(e),r=Math.floor((t.getTime()-a.getTime())/864e5);if(0===r)return"Today";if(1===r)return"Yesterday";if(r<7)return`${r} days ago`;if(r<30){let e=Math.floor(r/7);return`${e} week${e>1?"s":""} ago`}return s(e)}(e.publish_date)})]}),"number"==typeof x&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"w-1 h-1 rounded-full bg-ink-subtle","aria-hidden":"true"}),(0,t.jsxs)("span",{children:[x," min read"]})]})]})]})]})}),u=[{name:"All",slug:"all"},{name:"Research",slug:"research"},{name:"Protocols",slug:"protocols"},{name:"Supplements",slug:"supplements"},{name:"Therapies",slug:"therapies"},{name:"Tracking",slug:"tracking"},{name:"Community",slug:"community"},{name:"Sleep",slug:"sleep"},{name:"Nutrition",slug:"nutrition"},{name:"Exercise",slug:"exercise"},{name:"Cognition",slug:"cognition"}];function m({posts:e,maxPosts:l}){let n=e.filter((e,t,a)=>a.findIndex(t=>t.slug===e.slug)===t),s=(0,r.useSearchParams)(),o=(0,r.useRouter)(),d=(0,a.useRef)(null),[m,h]=(0,a.useState)(!1),[x,f]=(0,a.useState)(0),[g,p]=(0,a.useState)(s.get("topic")||"all"),b=(0,a.useRef)(null),A=(0,a.useRef)(null),w=(0,a.useRef)(!0);(0,a.useEffect)(()=>{let e=s.get("topic")||"all";p(t=>e!==t?e:t)},[s]),(0,a.useEffect)(()=>()=>{b.current&&clearTimeout(b.current),A.current&&clearTimeout(A.current)},[]);let j="all"===g?n:n.filter(e=>e.content_tags?.some(e=>e.toLowerCase().replace(/\s+/g,"-")===g||e.toLowerCase()===g.replace(/-/g," "))),v=!!l&&j.length>l,y=l?j.slice(0,l):j,k=(0,a.useCallback)(e=>"all"===e?n.length:n.filter(t=>t.content_tags?.some(t=>t.toLowerCase().replace(/\s+/g,"-")===e||t.toLowerCase()===e.replace(/-/g," "))).length,[n]),N=(0,a.useCallback)(e=>{e!==g&&(b.current&&clearTimeout(b.current),A.current&&clearTimeout(A.current),h(!0),b.current=setTimeout(()=>{p(e);let t=new URLSearchParams(s.toString());"all"===e?t.delete("topic"):t.set("topic",e);let a=t.toString()?`?${t.toString()}`:"/";o.push(a,{scroll:!1}),f(e=>e+1),A.current=setTimeout(()=>{h(!1)},50)},150))},[g,s,o]);return(0,a.useEffect)(()=>{if(w.current){w.current=!1;return}if(d.current){let e=d.current.querySelector('[data-active="true"]');e&&e.scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})}},[g]),(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"mb-10",children:(0,t.jsx)("div",{ref:d,className:"flex flex-wrap gap-2",children:u.map(e=>{let a=g===e.slug,r=k(e.slug);return(0,t.jsxs)("button",{"data-active":a,"aria-pressed":a,onClick:()=>N(e.slug),className:` 3 inline-flex items-center gap-2 4 px-4 py-2.5 min-h-[48px] 5 font-body text-sm 6 rounded-full border 7 transition-all duration-200 8 ${a?"bg-ink text-white border-ink":"bg-white text-ink-secondary hover:text-ink hover:border-hair-strong border-hair"} 9 `,children:[(0,t.jsx)("span",{children:e.name}),(0,t.jsx)("span",{className:` 10 text-sm tabular-nums px-1.5 py-0.5 rounded-full min-w-[22px] text-center 11 ${a?"bg-white/20 text-white":"bg-surface-alt text-ink-muted"} 12 `,children:r})]},e.slug)})})}),(0,t.jsx)("div",{className:` 13 transition-all duration-200 ease-out 14 ${m?"opacity-0 translate-y-2":"opacity-100 translate-y-0"} 15 `,children:y.length>0?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6 md:gap-8",children:y.map((e,a)=>(0,t.jsx)("div",{className:"h-full animate-stagger-in",style:{animationDelay:`${50*a}ms`,animationFillMode:"both"},children:(0,t.jsx)(c,{post:e})},e.id))},x),"all"!==g&&(0,t.jsx)("div",{className:"mt-10 text-center animate-fade-in",style:{animationDelay:"300ms"},children:(0,t.jsxs)(i.default,{href:`/category/${g}`,className:"btn-tertiary",children:["View all ",u.find(e=>e.slug===g)?.name," articles",(0,t.jsx)("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})]})}),v&&(0,t.jsx)("div",{className:"mt-10 text-center animate-fade-in",style:{animationDelay:"300ms"},children:(0,t.jsxs)(i.default,{href:"all"===g?"/posts":`/category/${g}`,className:"btn-secondary",children:["View all ",j.length," articles",(0,t.jsx)("svg",{className:"w-4 h-4 ml-1",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})]})})]}):(0,t.jsxs)("div",{className:"text-center py-16 animate-fade-in",children:[(0,t.jsx)("div",{className:"w-16 h-16 mx-auto mb-6 rounded-full bg-surface-alt flex items-center justify-center",children:(0,t.jsx)("svg",{className:"w-8 h-8 text-ink-muted",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})})}),(0,t.jsx)("h3",{className:"heading-section text-ink mb-2",children:"No articles yet"}),(0,t.jsxs)("p",{className:"text-ink-secondary mb-6",children:["We're working on ",u.find(e=>e.slug===g)?.name.toLowerCase()," content. Check back soon!"]}),(0,t.jsx)("button",{onClick:()=>N("all"),className:"btn-secondary",children:"View all articles"})]})}),y.length>0&&(0,t.jsxs)("div",{className:"mt-8 text-center mono text-base text-ink-muted",children:[y.length," article",1!==y.length?"s":"","all"!==g&&` in ${u.find(e=>e.slug===g)?.name}`]})]})}e.s(["FilterableArticles",()=>m],12874)}]); 16 17//# debugId=781e0b9e-dbb2-ca78-b219-cdb83f3b8fd2
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.