PageSourceSearch

https://libscie.org/_next/static/immutable/chunks/2vwwyy_7-fa2p.js

js libscie.org collected 2026-10-03 21:39:23 UTC 51,996 bytes, 19 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,537265,552224,534827,e=>{"use strict";var t=e.i(95187);let n=(0,t.createServerReference)("4033831cad4bbc826ff2167241ba40c1a429c6e906",t.callServer,void 0,t.findSourceMapURL,"checkUrlFrameable");e.s(["checkUrlFrameable",0,n],537265);var o=e.i(843476),r=e.i(500932),i=e.i(271645),s=e.i(814649),a=e.i(386834),l=e.i(811256),c=e.i(271235);let d=(0,t.createServerReference)("606b47edcfd2316df59445451e1001df59a1e61de4",t.callServer,void 0,t.findSourceMapURL,"getDocumentsByTag"),u=(0,t.createServerReference)("60dcbdcb68ebc7518329bcdc23253a6fbb2e6061fd",t.callServer,void 0,t.findSourceMapURL,"getPublicationDocumentsByTag"),m=(e,t)=>["tag-publication-posts",e,t],p=e=>["tag-posts",e,"trending"],h=(e,t)=>u(e,t),f=e=>d(e,{orderBy:"trending"});function g(e){let{tag:t,publicationUri:n}=e;n&&(0,c.preload)(m(t,n),()=>h(t,n)),e.showOtherPublications&&(0,c.preload)(p(t),()=>f(t))}e.s(["fetchOtherPublications",0,f,"fetchSamePublication",0,h,"otherPublicationsKey",0,p,"prefetchTagPosts",0,g,"samePublicationKey",0,m],552224),e.s(["TagButton",0,function(e){let t,n,c,d,u,m,p,h=(0,r.c)(21),[f,x]=(0,i.useState)(!1);if(0===e.tags.length)return null;h[0]!==e.publicationUri||h[1]!==e.showOtherPublications?(t=t=>({tag:t,publicationUri:e.publicationUri,showOtherPublications:e.showOtherPublications}),h[0]=e.publicationUri,h[1]=e.showOtherPublications,h[2]=t):t=h[2];let b=t;h[3]!==e.tags[0]||h[4]!==e.tags.length||h[5]!==b?(n=1===e.tags.length?()=>g(b(e.tags[0])):void 0,h[3]=e.tags[0],h[4]=e.tags.length,h[5]=b,h[6]=n):n=h[6];let w=n,v=`tagButton relative flex gap-1 items-center hover:text-accent-contrast ${e.className??""}`;return h[7]===Symbol.for("react.memo_cache_sentinel")?(c=(0,o.jsx)(l.TagTiny,{"aria-hidden":!0}),h[7]=c):c=h[7],h[8]!==w||h[9]!==e.tags.length||h[10]!==v?(d=(0,o.jsxs)("button",{"aria-label":"Post tags",className:v,onMouseEnter:w,onPointerDown:w,children:[c,e.tags.length]}),h[8]=w,h[9]=e.tags.length,h[10]=v,h[11]=d):d=h[11],h[12]!==e||h[13]!==b?(u=e.tags.map(t=>(0,o.jsx)(a.Tag,{name:t,onPrefetch:e=>
1g(b(e)),onClick:t=>{x(!1),e.onTagClick(t)}},t)),h[12]=e,h[13]=b,h[14]=u):u=h[14],h[15]!==u?(m=(0,o.jsx)("div",{className:"flex gap-1 flex-wrap py-1",role:"list","aria-label":"Tags",children:u}),h[15]=u,h[16]=m):m=h[16],h[17]!==f||h[18]!==d||h[19]!==m?(p=(0,o.jsx)(s.Popover,{asChild:!0,open:f,onOpenChange:x,className:"max-w-xs",trigger:d,children:m}),h[17]=f,h[18]=d,h[19]=m,h[20]=p):p=h[20],p}],534827)},63069,e=>{"use strict";var t=e.i(843476),n=e.i(500932),o=e.i(227086),r=e.i(271645),i=e.i(413458),s=e.i(864293),a=e.i(512197),l=e.i(731313),c=e.i(570613),d=e.i(523995),u=e.i(255960),m=e.i(980205),p=e.i(929495),h=e.i(871040),f=e.i(859015),g=e.i(814649),x=e.i(246146),b=e.i(788244),w=e.i(375421),v=e.i(794866),j=e.i(510038);e.i(859041);var P=e.i(702354),P=P,y=e.i(781616),C=e.i(67722);function S(e){let o,r,i,h,f,g,x,b,w,v,j,P,y,S=(0,n.c)(34);S[0]!==e?({page:o,zoomKey:f,pageScroll:r,contentWidth:h,...i}=e,S[0]=e,S[1]=o,S[2]=r,S[3]=i,S[4]=h,S[5]=f):(o=S[1],r=S[2],i=S[3],h=S[4],f=S[5]);let k=void 0===h?d.CONTENT_WIDTH:h;S[6]!==o.blocks?(g=o.blocks??[],S[6]=o.blocks,S[7]=g):g=S[7];let I=g;S[8]!==k||S[9]!==o.mobileView?(x=(0,c.mobileViewArea)(o.mobileView,k),S[8]=k,S[9]=o.mobileView,S[10]=x):x=S[10];let N=x,R=o.theme,T=!!o.lockViewerZoom;return S[11]!==I?(b=(0,p.canvasContentHeight)(I),S[11]=I,S[12]=b):b=S[12],S[13]!==I||S[14]!==k||S[15]!==o.background||S[16]!==o.pattern||S[17]!==i?(w=(0,t.jsx)(m.CanvasBlocks,{...i,blocks:I,background:o.background,pattern:o.pattern,contentWidth:k,preview:!1}),S[13]=I,S[14]=k,S[15]=o.background,S[16]=o.pattern,S[17]=i,S[18]=w):w=S[18],S[19]!==N||S[20]!==b||S[21]!==w?(v=(0,t.jsx)(a.CanvasZoomLayer,{className:"postContent",contentHeight:b,mobileArea:N,children:w}),S[19]=N,S[20]=b,S[21]=w,S[22]=v):v=S[22],S[23]===Symbol.for("react.memo_cache_sentinel")?(j=(0,t.jsx)(l.CanvasOverlay,{edge:"bottom",children:(0,t.jsx)(u.CanvasZoomControls,{className:"absolute bottom-3 right-3 sm:bottom-4 sm:right-4 z-20 bg-bg-page border border-border-light rounded-md px-1 py-0.5"})}),S[23]=j):j=S[23],S[24]!==k||S[25]!==N||S[26]!==r||S[27]!==T||S[28]!==v||S[29]!==f?(P=(0,t.jsxs)(s.CanvasZoomProvider,{pageKey:f,pageScroll:r,contentWidth:k,initialArea:N,lockViewerZoom:T,children:[v,j]}),S[24]=k,S[25]=N,S[26]=r,S[27]=T,S[28]=v,S[29]=f,S[30]=P):P=S[30],S[31]!==o.theme||S[32]!==P?(y=(0,t.jsx)(C.PublishedPageThemeProvider,{theme:R,children:P}),S[31]=o.theme,S[32]=P,S[33]=y):y=S[33],y}let k=e=>{let r,i,s,a=(0,n.c)(18),l=(0,o.useIsMobile)(),c=!(0,j.usePostFrame)().headerInteractions&&!e.isSubpage;return a[0]!==c||a[1]!==e.commentsCount||a[2]!==e.pageId||a[3]!==e.preferences||a[4]!==e.quotesCount||a[5]!==e.recommendsCount?(r=!c&&(0,t.jsx)(h.Interactions,{quotesCount:e.quotesCount,commentsCount:e.commentsCount,recommendsCount:e.recommendsCount,showComments:!1!==e.preferences.showComments,showMentions:!1!==e.preferences.showMentions,showRecommends:!1!==e.preferences.showRecommends,pageId:e.pageId}),a[0]=c,a[1]=e.commentsCount,a[2]=e.pageId,a[3]=e.preferences,a[4]=e.quotesCount,a[5]=e.recommendsCount,a[6]=r):r=a[6],a[7]!==c||a[8]!==l||a[9]!==e.contributors||a[10]!==e.data||a[11]!==e.isSubpage||a[12]!==e.preferences||a[13]!==e.profile?(i=!e.isSubpage&&(0,t.jsxs)(t.Fragment,{children:[!c&&(0,t.jsx)(f.Separator,{classname:"h-5"}),(0,t.jsx)(g.Popover,{side:"bottom",align:"end",className:`flex flex-col gap-2 p-0! text-primary ${l?"w-full":"max-w-sm w-[1000px]"}`,trigger:(0,t.jsx)(x.InfoSmall,{}),children:(0,t.jsx)(b.PostHeader,{data:e.data,profile:e.profile,contributors:e.contributors,preferences:e.preferences,isCanvas:!0})})]}),a[7]=c,a[8]=l,a[9]=e.contributors,a[10]=e.data,a[11]=e.isSubpage,a[12]=e.preferences,a[13]=e.profile,a[14]=i):i=a[14],a[15]!==r||a[16]!==i?(s=(0,t.jsxs)("div",{className:"flex flex-row gap-1 items-center absolute top-3 right-3 sm:top-4 sm:right-4 bg-bg-page border-border-light rounded-md px-2 py-1 h-fit z-20",children:[r,i]}),a[15]=r,a[16]=i,a[17]=s):s=a[17],s};e.s(["CanvasContent",0,S,"CanvasPage",0,function({page:e,pages:n,...o}){let{document:s,did:a,profile:l,contributors:c,preferences:d,prerenderedCodeBlocks:u,bskyPostData:m,standardSitePostData:p,pollData:f,document_uri:g,pageId:x,pageOptions:b,fullPageScroll:j}=o,I=(0,r.useMemo)(()=>({data:s,profile:l,contributors:c,preferences:d}),[s,l,c,d]);if(!s)return null;let N=!!x,R=(0,w.useInlineDrawer)(g),T=e.blocks?.some(e=>P.isMain(e.block));return(0,t.jsx)(C.PublishedPageThemeProvider,{theme:e.theme,children:(0,t.jsxs)(i.PageWrapper,{pageType:"canvas",fullPageScroll:j,id:`post-page-${x??g}`,drawerOpen:!!R&&(x?R.pageId===x:!R.pageId),pageOptions:b,children:[!T&&(0,t.jsx)(k,{pageId:x,isSubpage:N,data:s,profile:l,contributors:c,preferences:d,commentsCount:s.commentsCountByPage[x??""]??0,quotesCount:(0,h.getQuoteCount)(s.quotesAndMentions,x),recommendsCount:s.recommendsCount}),(0,t.jsx)(v.DrawerThreadPageProvider,{pageId:x,children:(0,t.jsx)(y.PostHeaderBlockProvider,{value:I,children:(0,t.jsx)(S,{page:e,did:a,prerenderedCodeBlocks:u,bskyPostData:m,standardSitePostData:p,pollData:f,pageId:x,pages:n,zoomKey:x?`${g}#${x}`:g})})})]})})}],63069)},38023,e=>{"use strict";var t=e.i(843476),n=e.i(500932),o=e.i(67722),r=e.i(126479),i=e.i(871040),s=e.i(685372),a=e.i(788244),l=e.i(375421),c=e.i(794866),d=e.i(413458),u=e.i(250209),m=e.i(593302),p=e.i(465082),h=e.i(271645),f=e.i(618566);function g(e){return e?.images?.map(x)??[]}function x(e,t){let n=new Image;return n.decoding="async",n.fetchPriority="low",n.src=e,0===t&&n.decode?.().catch(b),n}function b(){}function w(e){return!e.complete&&"lazy"!==e.loading}var v=e.i(899169),j=e.i(22272),P=e.i(155687),y=e.i(859015),C=e.i(134087);let S=e=>{let o,r,i,s,a,l,c,d,x,b,S=(0,n.c)(28),{prevNext:k,publication:I,uri:N}=(0,p.useDocument)();if(!function(e){let t,o,r=(0,n.c)(7),{prevNext:i,publication:s,uri:a}=(0,p.useDocument)(),l=(0,f.useRouter)(),c=function(e){let t,o,r=(0,n.c)(3),[i,s]=(0,h.useState)(!1);return r[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>{let e,t=Array.from(document.images).filter(w);if(0===t.length)return void s(!0);s(!1),e=t.length;let n=()=>{0==(e-=1)&&s(!0)};for(let e of t)e.addEventListener("load",n,{once:!0}),e.addEventListener("error",n,{once:!0});let o=window.setTimeout(()=>s(!0),5e3);return()=>{for(let e of(window.clearTimeout(o),t))e.removeEventListener("load",n),e.removeEventListener("error",n)}},r[0]=t):t=r[0],r[1]!==e?(o=[e],r[1]=e,r[2]=o):o=r[2],(0,h.useEffect)(t,o),i}(a);r[0]!==e||r[1]!==i||r[2]!==s||r[3]!==l||r[4]!==c?(t=()=>{if(!c||!e||!s||!i)return;let t=(0,u.getPublicationURL)(s);for(let e of[i.next?.uri,i.prev?.uri,i.nextPreload,i.prevPreload]){if(!e)continue;let n=`${t}/${new m.AtUri(e).rkey}`;
1try{if(new URL(n,window.location.href).origin!==window.location.origin)continue}catch{continue}l.prefetch(n)}let n=[i.next,i.prev].flatMap(g);return()=>{for(let e of n)e.complete||(e.src="")}},o=[c,e,s,i,l],r[0]=e,r[1]=i,r[2]=s,r[3]=l,r[4]=c,r[5]=t,r[6]=o):(t=r[5],o=r[6]),(0,h.useEffect)(t,o)}(e.showPrevNext),!e.showPrevNext&&!e.showFirstLast||!I)return null;S[0]!==I?(o=function(e){return I&&e?`${(0,u.getPublicationURL)(I)}/${new m.AtUri(e).rkey}`:"leaflet.pub/not-found"},S[0]=I,S[1]=o):o=S[1];let R=o,T=e.showPrevNext&&k?.prev?k?.prev:void 0,L=e.showPrevNext&&k?.next?k?.next:void 0,M=e.showFirstLast&&k?.first&&k.first.uri!==N?k?.first:void 0,U=e.showFirstLast&&k?.last&&k.last.uri!==N?k?.last:void 0;if(S[2]!==M||S[3]!==R||S[4]!==U||S[5]!==L||S[6]!==T||S[7]!==e.direction){var _,O;let{adjacent:n,edge:o}=(_=(0,C.resolvePrevNextDirection)(e.direction),O={prevPost:T,nextPost:L,firstPost:M,lastPost:U},"ltr"===_?{adjacent:{left:O.prevPost,right:O.nextPost},edge:{left:O.firstPost,right:O.lastPost}}:{adjacent:{left:O.nextPost,right:O.prevPost},edge:{left:O.lastPost,right:O.firstPost}});c="postPrevNext flex flex-col gap-0.5 w-full px-3 sm:px-4 pb-3 pt-2",a="flex justify-between w-full gap-8 ";let d=o.left&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(v.SpeedyLink,{href:R(o.left.uri),className:"flex flex-row gap-1 items-center min-w-4 ",children:[(0,t.jsx)(P.DoubleArrowRightTiny,{className:"rotate-180 shrink-0 "}),!n.left&&(0,t.jsx)("div",{className:"min-w-0 truncate",children:o.left.title})]}),n.left&&(0,t.jsx)(y.Separator,{})]}),u=n.left?(0,t.jsxs)(v.SpeedyLink,{href:R(n.left.uri),className:"flex flex-row gap-1 items-center min-w-0 grow",children:[(0,t.jsx)(j.ArrowRightTiny,{className:"rotate-180 shrink-0"}),(0,t.jsx)("div",{className:"min-w-0 truncate",children:n.left.title})]}):(0,t.jsx)("div",{});S[14]!==d||S[15]!==u?(l=(0,t.jsxs)("div",{className:"flex gap-2 items-center grow basis-1/2 min-w-0",children:[d,u]}),S[14]=d,S[15]=u,S[16]=l):l=S[16],r="flex gap-2 items-center grow justify-end basis-1/2 min-w-0",i=n.right?(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)(v.SpeedyLink,{href:R(n.right.uri),className:"flex flex-row gap-1 items-center truncate min-w-0 grow w-fit max-w-full text-right justify-end",children:[(0,t.jsx)("div",{className:"min-w-0 truncate ",children:n.right.title}),(0,t.jsx)(j.ArrowRightTiny,{className:"shrink-0"})]})}):(0,t.jsx)("div",{}),s=o.right&&(0,t.jsxs)(t.Fragment,{children:[n.right&&(0,t.jsx)(y.Separator,{}),(0,t.jsxs)(v.SpeedyLink,{href:R(o.right.uri),className:"flex flex-row gap-1 items-center min-w-4",children:[!n.right&&(0,t.jsx)("div",{className:"min-w-0 truncate",children:o.right.title}),(0,t.jsx)(P.DoubleArrowRightTiny,{className:"shrink-0 "})]})]}),S[2]=M,S[3]=R,S[4]=U,S[5]=L,S[6]=T,S[7]=e.direction,S[8]=r,S[9]=i,S[10]=s,S[11]=a,S[12]=l,S[13]=c}else r=S[8],i=S[9],s=S[10],a=S[11],l=S[12],c=S[13];return S[17]!==r||S[18]!==i||S[19]!==s?(d=(0,t.jsxs)("div",{className:r,children:[i,s]}),S[17]=r,S[18]=i,S[19]=s,S[20]=d):d=S[20],S[21]!==a||S[22]!==l||S[23]!==d?(x=(0,t.jsxs)("div",{className:a,children:[l,d]}),S[21]=a,S[22]=l,S[23]=d,S[24]=x):x=S[24],S[25]!==c||S[26]!==x?(b=(0,t.jsx)("div",{className:c,children:x}),S[25]=c,S[26]=x,S[27]=b):b=S[27],b};e.i(859041);var k=e.i(246346),I=e.i(43400),N=e.i(271264),R=e.i(471747),T=e.i(493306),L=e.i(365172),M=e.i(51687),U=e.i(182193);function _(e){let o,r=(0,n.c)(3);return r[0]!==e.footnoteId||r[1]!==e.index?(o=(0,t.jsx)("sup",{className:"text-accent-contrast -ml-0.5 -mr-1 -my-1 p-1","data-footnote-id":e.footnoteId,children:e.index}),r[0]=e.footnoteId,r[1]=e.index,r[2]=o):o=r[2],o}function O(e){let o,r,i=(0,n.c)(7);if(0===e.footnotes.length)return null;if(i[0]!==e.footnoteIndexMap||i[1]!==e.footnotes){let n;i[3]!==e.footnoteIndexMap?(n=n=>(0,t.jsx)(B,{footnote:n,footnoteIndexMap:e.footnoteIndexMap},n.footnoteId),i[3]=e.footnoteIndexMap,i[4]=n):n=i[4],o=e.footnotes.map(n),i[0]=e.footnoteIndexMap,i[1]=e.footnotes,i[2]=o}else o=i[2];return i[5]!==o?(r=(0,t.jsx)(U.FootnoteSectionLayout,{className:"mt-4",children:o}),i[5]=o,i[6]=r):r=i[6],r}function B(e){let o,r,i,s,a,l,c,d=(0,n.c)(22),u=e.footnote,m=`#fnref-${u.footnoteId}`,p=`fn-${u.footnoteId}`,h=`[id="fnref-${u.footnoteId}"]`,f=N.PubLeafletBlocksHeader.isMain(u.source)?"font-bold":"";return d[0]===Symbol.for("react.memo_cache_sentinel")?(o=[],d[0]=o):o=d[0],d[1]===Symbol.for("react.memo_cache_sentinel")?(r={FootnoteRef:_},d[1]=r):r=d[1],d[2]!==u.source.facets||d[3]!==u.source.plaintext||d[4]!==e.footnoteIndexMap?(i=(0,t.jsx)(M.TextBlockCore,{plaintext:u.source.plaintext,facets:u.source.facets,index:o,footnoteIndexMap:e.footnoteIndexMap,renderers:r}),d[2]=u.source.facets,d[3]=u.source.plaintext,d[4]=e.footnoteIndexMap,d[5]=i):i=d[5],d[6]!==f||d[7]!==i?(s=(0,t.jsx)("div",{className:f,children:i}),d[6]=f,d[7]=i,d[8]=s):s=d[8],d[9]!==u.footnoteId||d[10]!==h||d[11]!==s?(a={footnoteID:u.footnoteId,sourceSelector:h,content:s},d[9]=u.footnoteId,d[10]=h,d[11]=s,d[12]=a):a=d[12],d[13]!==u.contentFacets||d[14]!==u.contentPlaintext?(l=u.contentPlaintext?(0,t.jsx)(M.TextBlockCore,{plaintext:u.contentPlaintext,facets:u.contentFacets,index:[]}):(0,t.jsx)("span",{className:"italic text-tertiary",children:"Empty footnote"}),d[13]=u.contentFacets,d[14]=u.contentPlaintext,d[15]=l):l=d[15],d[16]!==u.index||d[17]!==m||d[18]!==p||d[19]!==a||d[20]!==l?(c=(0,t.jsx)(U.FootnoteItemLayout,{index:u.index,indexHref:m,id:p,sourcePreview:a,children:l}),d[16]=u.index,d[17]=m,d[18]=p,d[19]=a,d[20]=l,d[21]=c):c=d[21],c}var D=e.i(607895);function A(e){let o,r,i=(0,n.c)(6);i[0]!==e.footnotes?(o=e.footnotes.map(F),i[0]=e.footnotes,i[1]=o):o=i[1];let s=o,a=e.footnotes.length>0;return i[2]!==s||i[3]!==e.fullPageScroll||i[4]!==a?(r=(0,t.jsx)(D.FootnoteSideColumnLayout,{items:s,visible:a,fullPageScroll:e.fullPageScroll,getAnchorSelector:$,renderItem:q}),i[2]=s,i[3]=e.fullPageScroll,i[4]=a,i[5]=r):r=i[5],r}function q(e){return(0,t.jsx)(U.FootnoteItemLayout,{index:e.index,indexHref:`#fnref-${e.footnoteId}`,children:e.contentPlaintext?(0,t.jsx)(M.TextBlockCore,{plaintext:e.contentPlaintext,facets:e.contentFacets,index:[]}):(0,t.jsx)("span",{className:"italic text-tertiary",children:"Empty footnote"})})}function $(e){return`#fnref-${e.id}`}function F(e){return{...e,id:e.footnoteId}}var E=e.i(148120),V=e.i(368408);e.s(["LinearDocumentPage",0,function(e){let u,m,p,h,f,g,x,b,w,v,j,P,y,C,M,U,_,B,D,q,$=(0,n.c)(79);$[0]!==e?({blocks:u,pageTheme:m,...p}=e,$[0]=e,$[1]=u,$[2]=m,$[3]=p):(u=$[1],m=$[2],p=$[3]);let{document:F,did:H,profile:W,contributors:z,preferences:K,prerenderedCodeBlocks:Q,bskyPostData:G,standardSitePostData:Z,standardSitePublicationData:X,pollData:Y,document_uri:J,pageId:ee,pageOptions:et,fullPageScroll:en,hasPageBackgroun
1d:eo}=p,er=(0,l.useInlineDrawer)(J),{pages:ei}=(0,r.useLeafletContent)();$[4]!==u?(f=function(e){let t=new Map;for(let n of e)t.set(n.footnoteId,n.index);return t}(h=function(e){let t=[],n=new Set,o=1;function r(e){(I.PubLeafletBlocksText.isMain(e)||N.PubLeafletBlocksHeader.isMain(e)||R.PubLeafletBlocksBlockquote.isMain(e))&&function(e){let r=e.facets;if(r&&Array.isArray(r))for(let i of r)for(let r of i.features)k.PubLeafletRichtextFacet.isFootnote(r)&&!n.has(r.footnoteId)&&(n.add(r.footnoteId),t.push({footnoteId:r.footnoteId,index:o++,contentPlaintext:r.contentPlaintext,contentFacets:r.contentFacets,source:e}))}(e)}function i(e){for(let t of e)r(t.content),t.children?.length&&i(t.children),t.unorderedListChildren?.children?.length&&s(t.unorderedListChildren.children)}function s(e){for(let t of e)r(t.content),t.children?.length&&s(t.children),t.orderedListChildren?.children?.length&&i(t.orderedListChildren.children)}for(let t of e){let e=t.block;T.PubLeafletBlocksOrderedList.isMain(e)?i(e.children):L.PubLeafletBlocksUnorderedList.isMain(e)?s(e.children):r(e)}return t}(u)),$[4]=u,$[5]=h,$[6]=f):(h=$[5],f=$[6]);let es=f;if(!F)return null;let ea=!!ee,el=`post-page-${ee??J}`,ec=!!er&&(ee?er.pageId===ee:!er.pageId);$[7]!==h||$[8]!==en||$[9]!==p.hasContentToRight?(g=p.hasContentToRight?void 0:(0,t.jsx)(A,{footnotes:h,fullPageScroll:en}),$[7]=h,$[8]=en,$[9]=p.hasContentToRight,$[10]=g):g=$[10],$[11]!==z||$[12]!==F||$[13]!==ea||$[14]!==K||$[15]!==W?(x=!ea&&(0,t.jsx)(a.PostHeader,{data:F,profile:W,contributors:z,preferences:K}),$[11]=z,$[12]=F,$[13]=ea,$[14]=K,$[15]=W,$[16]=x):x=$[16],$[17]!==u||$[18]!==G||$[19]!==H||$[20]!==es||$[21]!==ee||$[22]!==Y||$[23]!==Q||$[24]!==Z||$[25]!==X||$[26]!==ei?(b=(0,t.jsx)(s.PostContent,{pollData:Y,pages:ei,pageId:ee,bskyPostData:G,standardSitePostData:Z,standardSitePublicationData:X,blocks:u,did:H,prerenderedCodeBlocks:Q,footnoteIndexMap:es}),$[17]=u,$[18]=G,$[19]=H,$[20]=es,$[21]=ee,$[22]=Y,$[23]=Q,$[24]=Z,$[25]=X,$[26]=ei,$[27]=b):b=$[27],$[28]!==ee||$[29]!==b?(w=(0,t.jsx)(c.DrawerThreadPageProvider,{pageId:ee,children:b}),$[28]=ee,$[29]=b,$[30]=w):w=$[30],$[31]!==es||$[32]!==h?(v=(0,t.jsx)(O,{footnotes:h,footnoteIndexMap:es}),$[31]=es,$[32]=h,$[33]=v):v=$[33],$[34]!==x||$[35]!==w||$[36]!==v?(j=(0,t.jsxs)("article",{className:"contents",children:[x,w,v]}),$[34]=x,$[35]=w,$[36]=v,$[37]=j):j=$[37];let ed=!1!==K.showPrevNext&&!ea,eu=!0===K.showFirstLast&&!ea;$[38]!==K.prevNextDirection||$[39]!==ed||$[40]!==eu?(P=(0,t.jsx)(S,{showPrevNext:ed,showFirstLast:eu,direction:K.prevNextDirection}),$[38]=K.prevNextDirection,$[39]=ed,$[40]=eu,$[41]=P):P=$[41];let em=!1!==K.showComments,ep=!1!==K.showMentions,eh=!1!==K.showRecommends,ef=F.commentsCountByPage[ee??""]??0;return $[42]!==F.quotesAndMentions||$[43]!==ee?(y=(0,i.getQuoteCount)(F.quotesAndMentions,ee)||0,$[42]=F.quotesAndMentions,$[43]=ee,$[44]=y):y=$[44],$[45]!==F.recommendsCount||$[46]!==ee||$[47]!==em||$[48]!==ep||$[49]!==eh||$[50]!==ef||$[51]!==y?(C=(0,t.jsx)(i.ExpandedInteractions,{pageId:ee,showComments:em,showMentions:ep,showRecommends:eh,commentsCount:ef,quotesCount:y,recommendsCount:F.recommendsCount}),$[45]=F.recommendsCount,$[46]=ee,$[47]=em,$[48]=ep,$[49]=eh,$[50]=ef,$[51]=y,$[52]=C):C=$[52],$[53]===Symbol.for("react.memo_cache_sentinel")?(M=(0,t.jsx)("div",{className:"spacer h-4 w-full"}),$[53]=M):M=$[53],$[54]!==F.membersOnly?.gated||$[55]!==F.publication||$[56]!==p.pubRecord?.description||$[57]!==p.pubRecord?.name||$[58]!==p.pubRecord?.url?(U=F.publication?.uri&&!F.membersOnly?.gated&&(0,t.jsx)("div",{className:"px-3 sm:px-4 w-full pt-4",children:(0,t.jsx)(V.SubscribePanel,{publicationUri:F.publication.uri,publicationUrl:p.pubRecord?.url,source:{placement:"post_footer"},publicationName:p.pubRecord?.name??F.publication.name,publicationDescription:p.pubRecord?.description,newsletterMode:F.publication.newsletterMode})}),$[54]=F.membersOnly?.gated,$[55]=F.publication,$[56]=p.pubRecord?.description,$[57]=p.pubRecord?.name,$[58]=p.pubRecord?.url,$[59]=U):U=$[59],$[60]!==eo?(_=!eo&&(0,t.jsx)("div",{className:"spacer h-8 w-full"}),$[60]=eo,$[61]=_):_=$[61],$[62]!==en||$[63]!==et||$[64]!==j||$[65]!==P||$[66]!==C||$[67]!==el||$[68]!==U||$[69]!==_||$[70]!==ec||$[71]!==g?(B=(0,t.jsxs)(d.PageWrapper,{pageType:"doc",fullPageScroll:en,id:el,drawerOpen:ec,pageOptions:et,footnoteSideColumn:g,children:[j,P,C,M,U,_]}
1),$[62]=en,$[63]=et,$[64]=j,$[65]=P,$[66]=C,$[67]=el,$[68]=U,$[69]=_,$[70]=ec,$[71]=g,$[72]=B):B=$[72],$[73]!==h?(D=(0,t.jsx)(E.PublishedFootnotePopover,{footnotes:h}),$[73]=h,$[74]=D):D=$[74],$[75]!==m||$[76]!==B||$[77]!==D?(q=(0,t.jsxs)(o.PublishedPageThemeProvider,{theme:m,children:[B,D]}),$[75]=m,$[76]=B,$[77]=D,$[78]=q):q=$[78],q}],38023)},522290,324053,e=>{"use strict";var t=e.i(843476),n=e.i(500932);e.i(859041);var o=e.i(536116),r=e.i(126479),i=e.i(465082),s=e.i(902057),a=e.i(871040),l=e.i(368442),c=e.i(517770),d=e.i(133564),u=e.i(432801),m=e.i(155687),p=e.i(791676),h=e.i(271645),f=e.i(794866),g=e.i(375421),x=e.i(278688),b=e.i(596814),w=e.i(283599),v=e.i(593302),j=e.i(522016),P=e.i(788613),y=e.i(769877),C=e.i(552224);function S(e){let o,r,i,s,a,l,c,d,u,m,p,h,g=(0,n.c)(34),{tag:x,publicationUri:b,documentUri:v}=e;g[0]!==b||g[1]!==x?(o=b?(0,C.samePublicationKey)(x,b):null,g[0]=b,g[1]=x,g[2]=o):o=g[2],g[3]!==b||g[4]!==x?(r=()=>(0,C.fetchSamePublication)(x,b),g[3]=b,g[4]=x,g[5]=r):r=g[5];let S=(0,w.default)(o,r);g[6]!==S.data?.posts?(i=S.data?.posts??[],g[6]=S.data?.posts,g[7]=i):i=g[7],g[8]!==v?(s=e=>e.documents.uri!==v,g[8]=v,g[9]=s):s=g[9];let I=i.filter(s);g[10]!==e.showOtherPublications||g[11]!==x?(a=e.showOtherPublications?(0,C.otherPublicationsKey)(x):null,g[10]=e.showOtherPublications,g[11]=x,g[12]=a):a=g[12],g[13]!==x?(l=()=>(0,C.fetchOtherPublications)(x),g[13]=x,g[14]=l):l=g[14];let N=(0,w.default)(a,l);if(S.isLoading||N.isLoading){let e;return g[15]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsxs)("div",{className:"flex items-center justify-center gap-1 text-tertiary italic text-sm py-8",children:[(0,t.jsx)("span",{children:"loading"}),(0,t.jsx)(P.DotLoader,{})]}),g[15]=e):e=g[15],e}g[16]!==b?(c=k(b),g[16]=b,g[17]=c):c=g[17];let R=c;g[18]!==N.data?.posts?(d=N.data?.posts??[],g[18]=N.data?.posts,g[19]=d):d=g[19],g[20]!==R||g[21]!==v?(u=e=>e.documents.uri!==v&&(!R||k(e.publication?.uri)!==R),g[20]=R,g[21]=v,g[22]=u):u=g[22];let T=d.filter(u),L=T.slice(0,I.length>=20?5:20),M=T.length>L.length,U=I.length>0&&L.length>0;if(I.length+L.length===0){let e;return g[23]!==x?(e=(0,t.jsxs)("div",{className:"text-tertiary italic text-sm py-8 text-center",children:["No other posts tagged ",x]}),g[23]=x,g[24]=e):e=g[24],e}let _=[...I,...L],O=n=>(0,t.jsx)(y.PostListing,{...n,compact:!0,onOpenInViewer:e.onOpenPost?()=>e.onOpenPost(_,n.documents.uri):void 0},n.documents.uri),B=f.DrawerThreadContext,D=I.length>0&&(0,t.jsxs)(t.Fragment,{children:[U&&(0,t.jsx)("h4",{children:"From this Publication"}),I.map(O)]});g[25]!==U?(m=U&&(0,t.jsx)("hr",{className:"my-4"}),g[25]=U,g[26]=m):m=g[26];let A=L.length>0&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("h4",{children:"From across the Atmosphere"}),L.map(O),M&&(0,t.jsx)(j.default,{href:`https://leaflet.pub/tag/${encodeURIComponent(x)}`,className:"text-sm text-tertiary hover:text-accent-contrast text-center pt-1",children:"See more"})]});return g[27]!==D||g[28]!==m||g[29]!==A?(p=(0,t.jsxs)("div",{className:"tagDrawerView flex flex-col gap-4",children:[D,m,A]}),g[27]=D,g[28]=m,g[29]=A,g[30]=p):p=g[30],g[31]!==p||g[32]!==B.Provider?(h=(0,t.jsx)(B.Provider,{value:null,children:p}),g[31]=p,g[32]=B.Provider,g[33]=h):h=g[33],h}function k(e){if(!e)return null;try{let{host:t,rkey:n}=new v.AtUri(e);return`${t}/${n}`}catch{return null}}function I(e){let o,r=(0,n.c)(5),{uri:s,publication:a,normalizedPublication:l}=(0,i.useDocument)(),c=a?.uri,d=l?.preferences?.showOtherPublicationsInTags!==!1;return r[0]!==e.tag||r[1]!==c||r[2]!==d||r[3]!==s?(o=(0,t.jsx)(S,{tag:e.tag,documentUri:s,publicationUri:c,showOtherPublications:d}),r[0]=e.tag,r[1]=c,r[2]=d,r[3]=s,r[4]=o):o=r[4],o}e.s(["TagPostsList",0,S],324053);var N=e.i(968562),R=e.i(227086),T=e.i(824488),L=e.i(308231),M=e.i(149753);let U=e=>{let n=(0,h.useRef)(null),o=(0,R.useIsMobile)(),r=(0,g.useDrawerOpen)(e.document_uri),i=!!r&&(e.pageId?r.pageId===e.pageId:!r.pageId),s=(0,h.useRef)(r?.drawer);i&&r?.drawer&&(s.current=r.drawer);let c="quotes"===s.current?"quotes":"comments",d=(0,h.useRef)(r?.thread);i&&(d.current=r?.thread);let u=d.current,m=u?`${u.type}:${(0,f.drawerThreadKey)(u)}`:"";return((0,h.useEffect)(()=>{n.current?.scrollTo({top:0})},[m]),o)?(0,t.jsx)(T.MobileSheet,{open:i,onOpenChange:t=>{t||(0,a.setInteractionState)(e.document_uri,{drawerOpen:!1})},id:"interaction-drawer",contentRef:n,children:(0,t.jsx)(_,{...e,tab:c,thread:u})}):i?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(l.SandwichSpacer,{noWidth:!0}),(0,t.jsx)("div",{className:"interactionDrawer snap-center h-full  flex z-10 shrink-0 sm:max-w-prose sm:w-full w-[calc(100vw-12px)]",children:(0,t.jsx)("div",{ref:n,id:"interaction-drawer",className:`relative h-full w-full px-3 sm:px-4 pt-2 sm:pt-3 pb-6  overflow-scroll flex flex-col  ${e.showPageBackgroun
1d?"light-container rounded-l-none! rounded-r-lg! -ml-[1px]":" opaque-container rounded-lg! sm:ml-4"}`,children:(0,t.jsx)(_,{...e,tab:c,thread:u})})})]}):null},_=e=>{let o,r,l,g,w,v,j,P,y,C,S,k,R,T=(0,n.c)(46),{commentsCountByPage:U,recommendsCount:_}=(0,i.useDocument)(),O=U[e.pageId??""]??0,{threadStack:B}=(0,a.useInteractionState)(e.document_uri);T[0]!==e.document_uri?(r={push:t=>(0,a.pushDrawerThread)(e.document_uri,t)},T[0]=e.document_uri,T[1]=r):r=T[1],o=r;let D=e.thread,A=D?.type==="standardSitePost"?D.uri:null,q=(0,N.useDocumentDiscussionData)(A??"",!!A),[$,F]=(0,h.useState)("comments");T[2]===Symbol.for("react.memo_cache_sentinel")?(l=()=>{F("comments")},T[2]=l):l=T[2],T[3]!==A?(g=[A],T[3]=A,T[4]=g):g=T[4],(0,h.useEffect)(l,g);let E=q.showComments&&q.comments.length>0,V=q.showMentions&&q.quotesAndMentions.length>0,H=E&&V,W=$;if("comments"!==W||E||(W="quotes"),"quotes"!==W||V||(W="comments"),T[5]!==e.pageId||T[6]!==e.quotesAndMentions){let t;T[8]!==e.pageId?(t=t=>{if(!t.link)return!e.pageId;let n=new URL(t.link).pathname.split("/l-quote/")[1];if(!n)return!e.pageId;let o=(0,c.decodeQuotePosition)(n);return o?.pageId===e.pageId},T[8]=e.pageId,T[9]=t):t=T[9],w=e.quotesAndMentions.filter(t),T[5]=e.pageId,T[6]=e.quotesAndMentions,T[7]=w}else w=T[7];let z=w,K=null!=e.commentsSlot,Q=z.length>0,G=K&&Q,Z=e.tab;return"comments"!==Z||K||(Z="quotes"),"quotes"!==Z||Q||(Z="comments"),T[10]!==Z||T[11]!==D||T[12]!==G||T[13]!==O||T[14]!==z.length||T[15]!==e.document_uri||T[16]!==_||T[17]!==q.comments||T[18]!==q.quotesAndMentions||T[19]!==W||T[20]!==H||T[21]!==A||T[22]!==B?(v=(0,t.jsx)("div",{className:"flex-1 min-w-0",children:A?H?(0,t.jsx)(p.ToggleGroup,{fullWidth:!0,value:W,onChange:(e,t)=>
1{t?.preventDefault(),F(e)},options:[{value:"comments",label:q.comments.length>0?`Comments (${q.comments.length})`:"Comments"},{value:"quotes",label:(0,t.jsxs)("div",{children:["Bluesky"," ",(0,t.jsx)("span",{className:"hidden sm:inline",children:"Mentions"})," ",q.quotesAndMentions.length>0&&`(${q.quotesAndMentions.length})`]})}]}):(0,t.jsx)("h4",{children:"quotes"===W?`Bluesky Mentions${q.quotesAndMentions.length>0?` (${q.quotesAndMentions.length})`:""}`:`Comments${q.comments.length>0?` (${q.comments.length})`:""}`}):D?.type==="tag"?(0,t.jsxs)("h3",{className:"truncate",children:['More posts tagged "',D.tag,'"']}):D?.type==="recommends"?(0,t.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,t.jsx)("h3",{children:"Recommends"}),(0,t.jsx)(M.RecommendButton,{documentUri:e.document_uri,recommendsCount:_,recommendOnly:!0,className:"p-0! border-none! flex-row-reverse! hover:sm:bg-transparent! h-fit! hover:text-accent-contrast!",large:!0})]}):D?(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[B.length>=2&&(0,t.jsx)("button",{className:"text-tertiary hover:text-secondary shrink-0","aria-label":"Back to the top of the thread",onClick:()=>(0,a.popDrawerThreadToRoot)(e.document_uri),children:(0,t.jsx)(m.DoubleArrowRightTiny,{className:"rotate-180"})}),(0,t.jsxs)("button",{className:"flex items-center gap-1 text-tertiary hover:text-secondary font-bold text-sm",onClick:()=>(0,a.popDrawerThread)(e.document_uri),children:[(0,t.jsx)(u.GoBackTiny,{})," Back"]})]}):G?(0,t.jsx)(p.ToggleGroup,{fullWidth:!0,value:Z,onChange:(t,n)=>{n?.preventDefault(),(0,a.setInteractionState)(e.document_uri,{drawer:t})},options:[{value:"comments",label:O>0?`Comments (${O})`:"Comments"},{value:"quotes",label:(0,t.jsxs)("div",{children:["Bluesky ",(0,t.jsx)("span",{className:"hidden sm:inline",children:"Mentions"})," ",z.length>0&&`(${z.length})`]})}]}):(0,t.jsx)("h4",{children:"quotes"===Z?"Bluesky Mentions":"Comments"})}),T[10]=Z,T[11]=D,T[12]=G,T[13]=O,T[14]=z.length,T[15]=e.document_uri,T[16]=_,T[17]=q.comments,T[18]=q.quotesAndMentions,T[19]=W,T[20]=H,T[21]=A,T[22]=B,T[23]=v):v=T[23],T[24]!==e.document_uri?(j=()=>(0,a.setInteractionState)(e.document_uri,{drawerOpen:!1}),T[24]=e.document_uri,T[25]=j):j=T[25],T[26]===Symbol.for("react.memo_cache_sentinel")?(P=(0,t.jsx)(d.CloseTiny,{}),T[26]=P):P=T[26],T[27]!==j?(y=(0,t.jsx)("button",{className:"text-tertiary shrink-0",onClick:j,children:P}),T[27]=j,T[28]=y):y=T[28],T[29]!==v||T[30]!==y?(C=(0,t.jsxs)("div",{className:"w-full flex items-center gap-2 mb-3",children:[v,y]}),T[29]=v,T[30]=y,T[31]=C):C=T[31],T[32]!==Z||T[33]!==D||T[34]!==z||T[35]!==e.commentsSlot||T[36]!==e.did||T[37]!==W||T[38]!==A?(S=A?(0,t.jsx)(b.StandardSitePostDrawerView,{uri:A,tab:W}):D?.type==="tag"?(0,t.jsx)(I,{tag:D.tag}):D?.type==="recommends"?(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(L.RecommendsList,{documentUri:D.uri})}):D?.type==="thread"||D?.type==="quotes"?(0,t.jsx)(x.ThreadView,{parentUri:D.uri,initialTab:"quotes"===D.type?"quotes":"replies"}):"quotes"===Z?(0,t.jsx)(s.DiscussionDrawerContent,{did:e.did,quotesAndMentions:z}):e.commentsSlot,T[32]=Z,T[33]=D,T[34]=z,T[35]=e.commentsSlot,T[36]=e.did,T[37]=W,T[38]=A,T[39]=S):S=T[39],T[40]!==o||T[41]!==S?(k=(0,t.jsx)(f.DrawerThreadContext.Provider,{value:o,children:S}),T[40]=o,T[41]=S,T[42]=k):k=T[42],T[43]!==k||T[44]!==C?(R=(0,t.jsxs)(t.Fragment,{children:[C,k]}),T[43]=k,T[44]=C,T[45]=R):R=T[45],R};var O=e.i(497366),B=e.i(38023),D=e.i(63069),A=e.i(713136),q=e.i(960622),$=e.i(602448),F=e.i(510038),E=e.i(952994),V=e.i(949555);function H(e){let r,i,s,a,l=(0,n.c)(12);if(l[0]!==e?({page:r,...i}=e,l[0]=e,l[1]=r,l[2]=i):(r=l[1],i=l[2]),o.PubLeafletPagesCanvas.isMain(r)){let e;return l[3]!==r||l[4]!==i?(e=(0,t.jsx)(D.CanvasPage,{...i,page:r,pages:i.allPages}),l[3]=r,l[4]=i,l[5]=e):e=l[5],e}return l[6]!==r?(s=r.blocks||[],l[6]=r,l[7]=s):s=l[7],l[8]!==r.theme||l[9]!==i||l[10]!==s?(a=(0,t.jsx)(B.LinearDocumentPage,{...i,blocks:s,pageTheme:r.theme}),l[8]=r.theme,l[9]=i,l[10]=s,l[11]=a):a=l[11],a}let W=e=>{let o,r,i=(0,n.c)(3);return i[0]===Symbol.for("react.memo_cache_sentinel")?(o=(0,t.jsx)(d.
1CloseTiny,{}),i[0]=o):o=i[0],i[1]!==e.onClick?(r=(0,t.jsx)("div",{className:`pageOptions w-fit z-10
2      absolute sm:-right-[19px] right-3 sm:top-3 top-0
3      flex sm:flex-col flex-row-reverse gap-1 items-start`,children:(0,t.jsx)(O.PageOptionButton,{onClick:e.onClick,children:o})}),i[1]=e.onClick,i[2]=r):r=i[2],r};e.s(["PostPages",0,function({document:e,did:n,profile:s,contributors:a,preferences:c,pubRecord:d,prerenderedCodeBlocks:u,document_uri:m,commentsSlot:p}){let f=(0,g.useInlineDrawer)(m),x=(0,F.usePostFrame)(),b=x.openPages,{pages:w}=(0,r.useLeafletContent)(),{bskyPostData:v,standardSitePostData:j,standardSitePublicationData:P,pollData:y}=(0,V.usePostResources)(),{quotesAndMentions:C}=(0,i.useDocument)(),S=e?.normalizedDocument;if(!e||!S)return null;let k=d?.theme||S.theme||null,I=!(0,q.useCardBorderHidden)(),N=w[0],R=o.PubLeafletPagesCanvas.isMain(N),T={document:e,did:n,profile:s,contributors:a,preferences:c,pubRecord:d,theme:k,prerenderedCodeBlocks:u,bskyPostData:v,standardSitePostData:j,standardSitePublicationData:P,pollData:y,document_uri:m,hasPageBackground:I,allPages:w,fullPageScroll:!I&&!f&&0===b.length&&!R},L=R&&0===b.length&&!f;return(0,t.jsxs)(A.GlobalImageLightbox,{did:n,children:[!T.fullPageScroll&&(0,t.jsx)(l.BookendSpacer,{shrink:L}),(0,t.jsx)(H,{page:N,...T,hasContentToRight:b.length>0||!!(f&&!f.pageId)}),x.drawer&&(0,t.jsx)(U,{showPageBackground:d?.theme?.showPageBackground,document_uri:e.uri,commentsSlot:!1===c.showComments?null:p,quotesAndMentions:!1===c.showMentions?[]:C,did:n}),b.map((o,r)=>{let i=(0,$.getPageKey)(o);if("iframe"===o.type)return(0,t.jsxs)(h.Fragment,{children:[(0,t.jsx)(l.SandwichSpacer,{}),(0,t.jsx)(E.IframePageView,{url:o.url,onOpen:e=>{x.openPage(o,{type:"iframe",url:e})},pageOptions:(0,t.jsx)(W,{onClick:()=>x.closePage(o),hasPageBackground:I})})]},i);if("doc"!==o.type)return null;let s=w.find(e=>e.id===o.id);return s?(0,t.jsxs)(h.Fragment,{children:[(0,t.jsx)(l.SandwichSpacer,{}),(0,t.jsx)(H,{page:s,...T,fullPageScroll:!1,pageId:s.id,hasContentToRight:r<b.length-1||!!(f&&f.pageId===s.id),pageOptions:(0,t.jsx)(W,{onClick:()=>x.closePage(o),hasPageBackground:I})}),x.drawer&&(0,t.jsx)(U,{showPageBackground:d?.theme?.showPageBackground,pageId:s.id,document_uri:e.uri,commentsSlot:!1===c.showComments?null:p,quotesAndMentions:!1===c.showMentions?[]:C,did:n})]},i):null}),!T.fullPageScroll&&(0,t.jsx)(l.BookendSpacer,{shrink:L})]})}],522290)},240064,e=>{"use strict";var t=e.i(843476),n=e.i(500932),o=e.i(781543),r=e.i(859015),i=e.i(793610),s=e.i(271645),a=e.i(517770),l=e.i(806398),c=e.i(88891),d=e.i(871040),u=e.i(465082),m=e.i(510038),p=e.i(97406),h=e.i(280190),f=e.i(67180);function g(e){let{range:t}=e,n=v(t.startContainer),o=v(t.endContainer);if(!n||!o)return null;let r=j(t.startContainer,t.startOffset,n.element),i=j(t.endContainer,t.endOffset,o.element),s={...n.pageId&&{pageId:n.pageId},start:{block:n.index.split(".").map(b),offset:r},end:{block:o.index.split(".").map(x),offset:i}};return(0,a.encodeQuotePosition)(s)}function x(e){return parseInt(e)}function b(e){return parseInt(e)}let w=e=>{let n=(0,i.useSmoker)(),{identity:p}=(0,l.useIdentityData)(),{uri:h,publication:g}=(0,u.useDocument)(),x=(0,m.usePostFrame)(),[b,w]=(0,s.useMemo)(()=>{let t=new URL(e.postUrl,window.location.origin),n=(0,a.decodeQuotePosition)(e.position);t.pathname.includes("/l-quote/")&&(t.pathname=t.pathname.split("/l-quote/")[0]),t.pathname=t.pathname+`/l-quote/${e.position}`,t.search="";let o=n?.pageId?`${n.pageId}~${n.start.block.join(".")}_${n.start.offset}`:`${n?.start.block.join(".")}_${n?.start.offset}`;return t.hash=`#${o}`,[t.toString(),n]},[e.position]),v=g?.record;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"",children:"Share via"}),(0,t.jsxs)("button",{className:"flex relative gap-1 items-center hover:font-bold px-1 hover:no-underline!",onClick:()=>b&&e.onShare(b),children:[(0,t.jsx)(f.BlueskyTiny,{className:"shrink-0"}),"Bluesky"]}),(0,t.jsx)(r.Separator,{classname:"h-4!"}),(0,t.jsxs)("button",{id:"copy-quote-link",className:"flex gap-1 items-center hover:font-bold px-1",onClick:()=>{let e=document.getElementById("copy-quote-link")?.getBoundingClientRect();b&&(navigator.clipboard.writeText(b),n({text:(0,t.jsx)("strong",{children:"Copied Link"}),position:{y:e?e.top:0,x:e?e.right+5:0}}))},children:[(0,t.jsx)(o.CopyTiny,{className:"shrink-0"}),"Link"]}),v?.preferences?.showComments!==!1&&p?.atp_did&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.Separator,{classname:"h-4! "}),(0,t.jsxs)("button",{className:"flex gap-1 items-center hover:font-bold px-1",onClick:()=>{w&&((0,d.setInteractionState)(h,{commentBox:{quote:w}}),x.openDiscussion("comments",w.pageId))}
3,children:[(0,t.jsx)(c.CommentTiny,{})," Comment"]})]})]})};function v(e){if(e.nodeType===Node.ELEMENT_NODE&&e.hasAttribute("data-index")){let t=e.getAttribute("data-index");if(t){let n=e.getAttribute("data-page-id")||void 0;return{index:t,element:e,pageId:n}}}return e.parentNode?v(e.parentNode):null}function j(e,t,n){if(e===n)return t;let o=document.createRange();return o.setStart(n,0),o.setEnd(e,t),o.toString().length}e.s(["QuoteHandler",0,function(){let e,o,r,i,a,l=(0,n.c)(15),{uri:c,publication:d,normalizedDocument:m,normalizedPublication:f,postUrl:x}=(0,u.useDocument)(),[b,v]=(0,s.useState)(null);l[0]!==x?(e=(0,t.jsx)(p.SelectionActionPopover,{id:"quote-trigger",containerSelector:".postContent",resolve:g,children:e=>(0,t.jsx)(w,{position:e,onShare:v,postUrl:x})}),l[0]=x,l[1]=e):e=l[1];let j=d?.identity_did,P=b||void 0,y=d?.uri,C=f||void 0;l[2]===Symbol.for("react.memo_cache_sentinel")?(o=()=>v(null),l[2]=o):o=l[2];let S=null!==b;return l[3]===Symbol.for("react.memo_cache_sentinel")?(r=e=>{e||v(null)},l[3]=r):r=l[3],l[4]!==c||l[5]!==m||l[6]!==j||l[7]!==P||l[8]!==y||l[9]!==C||l[10]!==S?(i=(0,t.jsx)(h.BskyShareModal,{pubOwnerDid:j,docRecord:m,postUrl:P,documentUri:c,pubUri:y,publication:C,preferUrlScreenshot:!0,onPosted:o,shareModalOpen:S,setShareModalOpen:r}),l[4]=c,l[5]=m,l[6]=j,l[7]=P,l[8]=y,l[9]=C,l[10]=S,l[11]=i):i=l[11],l[12]!==e||l[13]!==i?(a=(0,t.jsxs)(t.Fragment,{children:[e,i]}),l[12]=e,l[13]=i,l[14]=a):a=l[14],a}])},368442,952994,e=>{"use strict";var t=e.i(843476),n=e.i(500932);function o(){}e.s(["BookendSpacer",0,e=>{let r,i,s=(0,n.c)(5),a=`spacer flex justify-end items-start ${e.shrink?"shrink min-w-0":"shrink-0"}`;s[0]===Symbol.for("react.memo_cache_sentinel")?(r={width:"calc((var(--leaflet-layout-width, 100vw) - var(--page-width-units)) / 2)"},s[0]=r):r=s[0];let l=e.onClick?e.onClick:o;return s[1]!==e.children||s[2]!==a||s[3]!==l?(i=(0,t.jsx)("div",{className:a,style:r,onClick:l,children:e.children}),s[1]=e.children,s[2]=a,s[3]=l,s[4]=i):i=s[4],i},"LeafletLayout",0,e=>{let o,r,i=(0,n.c)(6),s=`
4        leafetLayout
5        w-full relative
6        mx-auto pwa-padding
7        flex items-stretch
8        ${e.flow?"":"h-full grow"}`,a=`pagesWrapper
9          w-full
10          flex gap-0
11          py-2 sm:py-6
12          no-scrollbar
13          ${e.flow?"justify-center":"h-full overflow-y-hidden overflow-x-scroll snap-x snap-mandatory"}
14          ${e.className}`;return i[0]!==e.children||i[1]!==a?(o=(0,t.jsx)("div",{id:"pages",className:a,children:e.children}),i[0]=e.children,i[1]=a,i[2]=o):o=i[2],i[3]!==s||i[4]!==o?(r=(0,t.jsx)("div",{className:s,id:"page-carousel",children:o}),i[3]=s,i[4]=o,i[5]=r):r=i[5],r},"SandwichSpacer",0,e=>{let o,r=(0,n.c)(3),i=`spacer shrink-0 lg:snap-center ${e.noWidth?"w-0":"w-6"} ${e.className}`;return r[0]!==e.onClick||r[1]!==i?(o=(0,t.jsx)("div",{onClick:e.onClick,className:i}),r[0]=e.onClick,r[1]=i,r[2]=o):o=r[2],o}],368442);var r=e.i(828517),i=e.i(629683),s=e.i(413458);function a(){}function l(){}e.s(["IframePageView",0,function(e){let o,c,d,u,m,p=(0,n.c)(13);p[0]!==e.onOpen?(o={onOpen:e.onOpen,onReplaceWith:l,onAddBelow:a},p[0]=e.onOpen,p[1]=o):o=p[1];let{iframeRef:h}=(0,r.useIframeChannel)(o),f=(0,i.useColorAttribute)(null,"theme/page-background"),g=(0,i.useColorAttribute)(null,"theme/primary");if(p[2]!==f||p[3]!==g||p[4]!==e.url){let t=new URL(e.url);t.searchParams.set("parts.page.embed.ctx.mode","edit"),t.searchParams.set("parts.page.embed.ctx.bgColor",f.toString("hex")),t.searchParams.set("parts.page.embed.ctx.primaryColor",g.toString("hex")),d=t.toString(),p[2]=f,p[3]=g,p[4]=e.url,p[5]=d}else d=p[5];c=d;let x=`iframe-page-${e.url}`;return p[6]!==h||p[7]!==c?(u=(0,t.jsx)("iframe",{ref:h,className:"w-full h-full",src:c,allow:"fullscreen",loading:"lazy"}),p[6]=h,p[7]=c,p[8]=u):u=p[8],p[9]!==e.pageOptions||p[10]!==x||p[11]!==u?(m=(0,t.jsx)(s.PageWrapper,{id:x,isFocused:!1,fullPageScroll:!1,pageType:"doc",drawerOpen:!1,pageOptions:e.pageOptions,noBottomSpacer:!0,overflow:"hidden",children:u}),p[9]=e.pageOptions,p[10]=x,p[11]=u,p[12]=m):m=p[12],m}],952994)},10971,125591,e=>{"use strict";var t=e.i(843476),n=e.i(500932),o=e.i(271645),r=e.i(732849),i=e.i(425481);e.s(["PostByline",0,function(e){let s,a,l,c,d=(0,n.c)(8),{contributors:u,className:m}=e;if(d[0]!==m||d[1]!==u){l=Symbol.for("react.early_return_sentinel");e:{let e=(0,i.namedBylineProfiles)(u);if(0===e.length){l=null;break e}s=`postByline relative inline-flex flex-row flex-wrap items-center ${m??""}`,a=e.map((n,s)=>(0,t.jsxs)(o.Fragment,{children:[s>0&&(0,t.jsx)("span",{className:"whitespace-pre",children:(0,i.bylineSeparator)(s,e.length)}),(0,t.jsx)(r.ProfilePopover,{didOrHandle:n.did,trigger:(0,t.jsx)("span",{className:"hover:underline",children:(0,i.bylineName)(n)})})]},n.did))}d[0]=m,d[1]=u,d[2]=s,d[3]=a,d[4]=l}else s=d[2],a=d[3],l=d[4];return l!==Symbol.for("react.early_return_sentinel")?l:(d[5]!==s||d[6]!==a?(c=(0,t.jsx)("span",{className:s,children:a}),d[5]=s,d[6]=a,d[7]=c):c=d[7],c)}],10971);let s=(0,e.i(768834).create)(e=>({selectedPostListing:null,setSelectedPostListing:t=>e({selectedPostListing:t})}));e.s(["useSelectedPostListing",0,s],125591)},769877,e=>{"use strict";var t=e.i(843476),n=e.i(500932),o=e.i(593302),r=e.i(634622),i=e.i(850952),s=e.i(124670),a=e.i(615405),l=e.i(192506),c=e.i(522016),d=e.i(271645),u=e.i(10971),m=e.i(425481),p=e.i(125591),h=e.i(270095),f=e.i(81932),g=e.i(271235),x=e.i(537265),b=e.i(134087),w=e.i(213459),v=e.i(250209),j=e.i(149753),P=e.i(927895),y=e.i(238713),C=e.i(534827),S=e.i(280190);e.i(875981);var k=e.i(114366),I=e.i(191544),N=e.i(465477);let R=e=>{let i,l,d,u,m,p,h,f,g=(0,n.c)(31);g[0]!==e.postRecord?(i=(0,a.hasLeafletContent)(e.postRecord),g[0]=e.postRecord,g[1]=i):i=g[1];let x=i;g[2]!==e.pubRecord.url?(l=e.pubRecord.url?.replace(/^https?:\/\//,"").replace(/^www\./,""),g[2]=e.pubRecord.url,g[3]=l):l=g[3];let b=l;g[4]!==e.pubRecord.icon||g[5]!==e.uri?(d=e.pubRecord.icon?(0,s.blobRefToSrc)(e.pubRecord.icon.ref,new o.AtUri(e.uri).host):void 0,g[4]=e.pubRecord.icon,g[5]=e.uri,g[6]=d):d=g[6];let v=d;if(e.compact){let n,o,i;return g[7]!==v||g[8]!==e.pubRecord.name?(n=(0,t.jsx)(r.PubIcon,{tiny:!0,className:"w-3! h-3!",icon:v,pubName:e.pubRecord.name}),g[7]=v,g[8]=e.pubRecord.name,g[9]=n):n=g[9],g[10]!==e.pubRecord.name?(o=(0,t.jsx)("span",{className:"min-w-0 truncate",children:e.pubRecord.name}),g[10]=e.pubRecord.name,g[11]=o):o=g[11],g[12]!==e.href||g[13]!==n||g[14]!==o?(i=(0,t.jsxs)(c.default,{href:e.href,className:"relative w-fit max-w-full flex items-center gap-1.5 text-accent-contrast font-bold no-underline! text-sm z-[2]",children:[n,o]}),g[12]=e.href,g[13]=n,g[14]=o,g[15]=i):i=g[15],i}return g[16]!==v||g[17]!==e.pubRecord.name?(u=(0,t.jsx)(r.PubIcon,{tiny:!0,icon:v,pubName:e.pubRecord.name}),g[16]=v,g[17]=e.pubRecord.name,g[18]=u):u=g[18],g[19]!==e.pubRecord.name?(m=(0,t.jsx)("div",{className:"w-max min-w-0",children:e.pubRecord.name}),g[19]=e.pubRecord.name,g[20]=m):m=g[20],g[21]!==e.href||g[22]!==u||g[23]!==m?(p=(0,t.jsxs)(c.default,{href:e.href,className:"text-accent-contrast font-bold no-underline! text-sm flex gap-[6px] items-center relative z-[2] grow w-max shrink-0 min-w-0",children:[u,m]}),g[21]=e.href,g[22]=u,g[23]=m,g[24]=p):p=g[24],g[25]!==b||g[26]!==x?(h=!x&&(0,t.jsxs)("div",{className:"text-sm flex flex-row items-center text-tertiary gap-1  min-w-0",children:[(0,t.jsx)("div",{className:"truncate min-w-0",children:b}),(0,t.jsx)(w.ExternalLinkTiny,{className:"shrink-0"})]}),g[25]=b,g[26]=x,g[27]=h):h=g[27],g[28]!==p||g[29]!==h?(f=(0,t.jsxs)("div",{className:"flex justify-between gap-4 w-full pb-1",children:[p,h]}
14),g[28]=p,g[29]=h,g[30]=f):f=g[30],f},T=e=>{let o,r,i=(0,n.c)(3);return e.publishedAt?(i[0]===Symbol.for("react.memo_cache_sentinel")?(o={year:"2-digit",month:"short",day:"numeric"},i[0]=o):o=i[0],i[1]!==e.publishedAt?(r=(0,t.jsx)("div",{className:"shrink-0 sm:text-sm text-sm",children:(0,t.jsx)(N.LocalizedDate,{dateString:e.publishedAt,omitYear:!0,options:o})}),i[1]=e.publishedAt,i[2]=r):r=i[2],r):null},L=e=>{let o,r,i,s,a,l,c,d=(0,n.c)(33),u=(0,p.useSelectedPostListing)(M),m=e.showComments&&e.commentsCount>0?"comments":"quotes",h=e.openPanelInViewer;return d[0]!==h?(o=h?()=>h({type:"recommends"}):void 0,d[0]=h,d[1]=o):o=d[1],d[2]!==e.documentUri||d[3]!==e.recommendsCount||d[4]!==o?(r=(0,t.jsx)(j.RecommendButton,{documentUri:e.documentUri,recommendsCount:e.recommendsCount,onOpenRecommends:o}),d[2]=e.documentUri,d[3]=e.recommendsCount,d[4]=o,d[5]=r):r=d[5],d[6]!==h?(i=h?()=>h({type:"discussion"}):void 0,d[6]=h,d[7]=i):i=d[7],d[8]!==m||d[9]!==e.document||d[10]!==e.documentUri||d[11]!==e.publication||d[12]!==u?(s=t=>{t?u({document_uri:e.documentUri,document:e.document,publication:e.publication,drawer:m}):u(null)},d[8]=m,d[9]=e.document,d[10]=e.documentUri,d[11]=e.publication,d[12]=u,d[13]=s):s=d[13],d[14]!==e.commentsCount||d[15]!==e.document.title||d[16]!==e.documentUri||d[17]!==e.postUrl||d[18]!==e.quotesCount||d[19]!==e.showComments||d[20]!==e.showMentions||d[21]!==i||d[22]!==s?(a=(0,t.jsx)(y.DiscussionButton,{documentUri:e.documentUri,commentsCount:e.commentsCount,quotesCount:e.quotesCount,showComments:e.showComments,showMentions:e.showMentions,postUrl:e.postUrl,title:e.document.title,onClick:i,onOpenChange:s}),d[14]=e.commentsCount,d[15]=e.document.title,d[16]=e.documentUri,d[17]=e.postUrl,d[18]=e.quotesCount,d[19]=e.showComments,d[20]=e.showMentions,d[21]=i,d[22]=s,d[23]=a):a=d[23],d[24]!==h||d[25]!==e.publicationUri||d[26]!==e.showOtherPublicationsInTags||d[27]!==e.tags?(l=h&&(0,t.jsx)(C.TagButton,{tags:e.tags??[],publicationUri:e.publicationUri,showOtherPublications:e.showOtherPublicationsInTags,onTagClick:e=>h({type:"tag",tag:e})}),d[24]=h,d[25]=e.publicationUri,d[26]=e.showOtherPublicationsInTags,d[27]=e.tags,d[28]=l):l=d[28],d[29]!==r||d[30]!==a||d[31]!==l?(c=(0,t.jsx)("div",{className:"flex gap-4 text-tertiary text-sm  items-center",children:(0,t.jsxs)("div",{className:"postListingsInteractions flex gap-4",children:[r,a,l]})}),d[29]=r,d[30]=a,d[31]=l,d[32]=c):c=d[32],c};function M(e){return e.setSelectedPostListing}e.s(["PostListing",0,e=>{let n=e.publication?.pubRecord,r=e.documents.data;if(!r)return null;let c=new o.AtUri(e.documents.uri),p=e.publication?e.publication?.uri:e.documents.uri,w=n?.theme||r?.theme,j=(0,d.useRef)(null),[y,C]=(0,d.useState)(!1);(0,d.useEffect)(()=>{w?.backgroundImage?.image&&j.current?C(.7>Number(window.getComputedStyle(j.current).getPropertyValue("--bg-page-alpha"))):C(!1)},[w?.backgroundImage?.image]);let N=w?.backgroundImage?.image?.ref&&p?(0,s.blobRefToSrc)(w.backgroundImage.image.ref,new o.AtUri(p).host):null,M=w?.backgroundImage?.repeat,U=w?.backgroundImage?.width||500,_=n?n?.theme?.showPageBackground:r.theme?.showPageBackground??!0,O=(0,b.mergePreferences)(r?.preferences,n?.preferences),B=e.documents.mentionsCount??e.documents.document_mentions_in_bsky?.[0]?.count??0,D=!1===O.showComments?0:e.documents.comments_on_documents?.[0]?.count||0,A=e.documents.recommends_on_documents?.[0]?.count||0,q=r?.tags||[],$=(0,m.namedBylineProfiles)(e.contributors),F=(0,v.getDocumentURL)(r,e.documents.uri,n),E=e.onOpenInViewer,V=E?e=>{e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||(e.preventDefault(),E())}:void 0,H=(0,h.useReaderPostViewer)(e=>e.setPreloadUrl),W=(0,h.useReaderPostViewer)(e=>e.clearPreloadUrl),z=(0,d.useRef)(null),K=()=>{if((0,a.hasLeafletContent)(r))return(0,f.prefetchReaderPost)(e.documents.uri);H(F),(0,g.preload)(`frameable-${F}`,()=>(0,x.checkUrlFrameable)(F))},Q=E?{onMouseEnter:()=>{z.current=setTimeout(K,150)},onMouseLeave:()=>{z.current&&clearTimeout(z.current),W(F)},onTouchStart:K,onTouchEnd:()=>setTimeout(()=>W(F),300),onTouchCancel:()=>setTimeout(()=>W(F),300)}:void 0,G=r.coverImage?(0,s.blobRefToSrc)(r.coverImage.ref,c.host,void 0,{width:e.compact?s.COVER_THUMBNAIL_WIDTH.medium:s.COVER_THUMBNAIL_WIDTH.large}):void 0,Z=$.length>0?(0,t.jsx)(u.PostByline,{contributors:$}):void 0,X=r.publishedAt?(0,t.jsx)(T,{publishedAt:r.publishedAt}):void 0,Y=e.publication&&n?(0,t.jsx)(R,{href:e.publication.href,pubRecord:n,uri:e.publication.uri,postRecord:r,compact:e.compact}):void 0,J=(0,t.jsxs)("div",{className:"relative z-[2] text-sm flex gap-4 items-center text-tertiary shrink-0",children:[(0,t.jsx)(L,{postUrl:F,quotesCount:B,commentsCount:D,recommendsCount:A,tags:q,showComments:!1!==O.showComments,showMentions:!1!==O.showMentions,documentUri:e.documents.uri,document:r,publication:n,publicationUri:e.publication?.uri,showOtherPublicationsInTags:n?.preferences?.showOtherPublicationsInTags!==!1,openPanelInViewer:e.onOpenPanelInViewer}),(0,t.jsx)(S.InteractionShareButton,{postRecord:r,postUrl:F,documentUri:e.documents.uri,publication:n,pubUri:e.publication?.uri})]}),ee={href:F,onClick:V,membersOnly:(0,l.postHasMembersDelimiter)(r),publicationUri:e.publication?.uri,gatePolicy:(0,l.getGatedPostPolicy)(r),title:r.title,de
14scription:r.description||(0,P.getFirstParagraph)(r),author:Z,date:X,interactions:J,pubInfo:Y,coverImageSrc:G,coverImageAlt:r.title};return(0,t.jsx)("div",{className:"postListing flex flex-col gap-1",...Q,children:(0,t.jsx)(i.PublicationThemeWrapper,{postRecord:r,pubRecord:n,children:(0,t.jsx)("div",{ref:j,id:`post-listing-${c}`,className:`
15          relative
16          flex flex-col overflow-hidden
17          selected-outline  rounded-lg w-full
18          ${e.selected?"outline-2 outline-offset-1 outline-accent-contrast border-accent-contrast":"hover:outline-accent-contrast hover:border-accent-contrast border-border-light"}
19          ${_?"bg-bg-page ":"bg-bg-leaflet"} `,style:y?{backgroundImage:N?`url(${N})`:void 0,backgroundRepeat:M?"repeat":"no-repeat",backgroundSize:M?`${U}px`:"cover"}:{},children:e.compact?(0,t.jsx)(I.PublicationPostItemMedium,{...ee}):(0,t.jsx)(k.PublicationPostItemLarge,{...ee})})})})}])},97406,e=>{"use strict";var t=e.i(843476),n=e.i(271645);e.s(["SelectionActionPopover",0,function(e){let[o,r]=(0,n.useState)(null),i=(0,n.useRef)(e.resolve);i.current=e.resolve;let s=(0,n.useRef)(null);(0,n.useLayoutEffect)(()=>{if(!o||!s.current)return;let e=s.current.offsetWidth,t=Math.max(8,Math.min(o.centerX-e/2,window.innerWidth-e-8));s.current.style.left=`${t}px`},[o]);let{containerSelector:a}=e;return((0,n.useEffect)(()=>{let e=()=>{let e=document.getSelection();if(!e||0===e.rangeCount||!e.toString())return null;let t=e.getRangeAt(0),n=t.commonAncestorContainer,o=n.nodeType===Node.ELEMENT_NODE?n:n.parentElement,r=o?.closest(a)??null;return r?{selection:e,range:t,container:r}:null},t=(e,t)=>{let n=t.getClientRects(),o="backward"===e.direction,r=(o?n[0]:n[n.length-1])??t.getBoundingClientRect(),i=o?r.left:r.right;return{top:o?r.top-28:r.bottom+8,centerX:i}},n=()=>{let n=e();if(!n)return r(null);let o=i.current(n);if(null==o)return r(null);r({...t(n.selection,n.range),data:o})},o=0,s=()=>{o=0,r(n=>{if(!n)return n;let o=e();return o?{...n,...t(o.selection,o.range)}:n})},l=()=>{o||(o=requestAnimationFrame(s))};return document.addEventListener("selectionchange",n),window.addEventListener("scroll",l,!0),window.addEventListener("resize",l),()=>{document.removeEventListener("selectionchange",n),window.removeEventListener("scroll",l,!0),window.removeEventListener("resize",l),o&&cancelAnimationFrame(o)}},[a]),o)?(0,t.jsx)("div",{ref:s,id:e.id,className:e.className??"z-20 accent-container border border-border-light text-accent-contrast px-1 flex gap-1 text-sm justify-center text-center items-center",style:{position:"fixed",top:o.top,left:o.centerX},children:e.children(o.data)}):null}])},81932,e=>{"use strict";var t=e.i(500932),n=e.i(283599),o=e.i(271235),r=e.i(95187);let i=(0,r.createServerReference)("40120d36c16c24b2b09226a2bdc6b2f7480e0430c6",r.callServer,void 0,r.findSourceMapURL,"getReaderPost"),s=e=>["reader_post",e];e.s(["prefetchReaderPost",0,function(e){(0,o.preload)(s(e),()=>i(e))},"useReaderPost",0,function(e){let o,r,a,l=(0,t.c)(5);return l[0]!==e?(o=e?s(e):null,l[0]=e,l[1]=o):o=l[1],l[2]!==e?(r=()=>i(e),l[2]=e,l[3]=r):r=l[3],l[4]===Symbol.for("react.memo_cache_sentinel")?(a={revalidateOnFocus:!1,revalidateIfStale:!1},l[4]=a):a=l[4],(0,n.default)(o,r,a)}],81932)},270095,e=>{"use strict";let t=(0,e.i(768834).create)(e=>({queue:[],index:null,preloadUrl:null,panel:null,pages:[],setPages:t=>e(e=>({pages:t(e.pages)})),openViewer:(t,n,o)=>{let r=t.filter(e=>e.documents.data),i=r.findIndex(e=>e.documents.uri===n);-1!==i&&e({queue:r,index:i,panel:o?.panel??null,pages:[]})},nextPost:()=>e(e=>null===e.index||e.index>=e.queue.length-1?e:{index:e.index+1,panel:null,pages:[]}),prevPost:()=>e(e=>null===e.index||e.index<=0?e:{index:e.index-1,panel:null,pages:[]}),closeViewer:()=>e({queue:[],index:null,preloadUrl:null,panel:null,pages:[]}),setPanel:t=>e({panel:t}),setPreloadUrl:t=>e({preloadUrl:t}),clearPreloadUrl:t=>e(e=>e.preloadUrl===t?{preloadUrl:null}:e)}));e.s(["useReaderPostViewer",0,t])}]);

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.