PageSourceSearch

https://libscie.org/_next/static/immutable/chunks/0jjvqazvi1kuz.js

js libscie.org collected 2026-09-25 18:52:58 UTC 51,830 bytes, 19 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,523705,552224,534827,e=>{"use strict";var t=e.i(95187);let n=(0,t.createServerReference)("4065a30afa551604fd30448f9d91324f096e19d077",t.callServer,void 0,t.findSourceMapURL,"checkUrlFrameable");e.s(["checkUrlFrameable",0,n],523705);var o=e.i(843476),r=e.i(500932),s=e.i(271645),i=e.i(814649),a=e.i(386834),l=e.i(811256),c=e.i(271235);let d=(0,t.createServerReference)("602e731d66ed919bf5e55732d775abdc46dedf16c9",t.callServer,void 0,t.findSourceMapURL,"getDocumentsByTag"),u=(0,t.createServerReference)("605aa5bdb7c77700f226e35d2af6d2b44e74d26c20",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,s.use
1State)(!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=>g(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)(i.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)},38023,e=>{"use strict";var t=e.i(843476),n=e.i(500932),o=e.i(126479),r=e.i(871040),s=e.i(685372),i=e.i(788244),a=e.i(375421),l=e.i(794866),c=e.i(413458),d=e.i(250209),u=e.i(593302),m=e.i(465082),p=e.i(271645),h=e.i(618566);function f(e){return e?.images?.map(g)??[]}function g(e,t){let n=new Image;return n.decoding="async",n.fetchPriority="low",n.src=e,0===t&&n.decode?.().catch(x),n}function x(){}function b(e){return!e.complete&&"lazy"!==e.loading}var w=e.i(899169),v=e.i(22272),j=e.i(155687),P=e.i(859015),y=e.i(134087);let C=e=>{let o,r,s,i,a,l,c,g,x,C,S=(0,n.c)(28),{prevNext:k,publication:I,uri:N}=(0,m.useDocument)();if(!function(e){let t,o,r=(0,n.c)(7),{prevNext:s,publication:i,uri:a}=(0,m.useDocument)(),l=(0,h.useRouter)(),c=function(e){let t,o,r=(0,n.c)(3),[s,i]=(0,p.useState)(!1);return r[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>{let e,t=Array.from(document.images).filter(b);if(0===t.length)return void i(!0);i(!1),e=t.length;let n=()=>{0==(e-=1)&&i(!0)};for(let e of t)e.addEventListener("load",n,{once:!0}),e.addEventListener("error",n,{once:!0});let o=window.setTimeout(()=>i(!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,p.useEffect)(t,o),s}(a);r[0]!==e||r[1]!==s||r[2]!==i||r[3]!==l||r[4]!==c?(t=()=>{if(!c||!e||!i||!s)return;let t=(0,d.getPublicationURL)(i);for(let e of[s.next?.uri,s.prev?.uri,s.nextPreload,s.prevPreload]){if(!e)continue;let n=`${t}/${new u.AtUri(e).rkey}`;try{if(new URL(n,window.location.href).origin!==window.location.origin)continue}catch{continue}l.prefetch(n)}let n=[s.next,s.prev].flatMap(f);return()=>{for(let e of n)e.complete||(e.src="")}},o=[c,e,i,s,l],r[0]=e,r[1]=s,r[2]=i,r[3]=l,r[4]=c,r[5]=t,r[6]=o):(t=r[5],o=r[6]),(0,p.useEffect)(t,o)}(e.showPrevNext),!e.showPrevNext&&!e.showFirstLast||!I)return null;S[0]!==I?(o=function(e){return I&&e?`${(0,d.getPublicationURL)(I)}/${new u.AtUri(e).rkey}`:"leaflet.pub/not-found"},S[0]=I,S[1]=o):o=S[1];let R=o,M=e.showPrevNext&&k?.prev?k?.prev:void 0,L=e.showPrevNext&&k?.next?k?.next:void 0,T=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]!==T||S[3]!==R||S[4]!==U||S[5]!==L||S[6]!==M||S[7]!==e.direction){var _,B;let{adjacent:n,edge:o}=(_=(0,y.resolvePrevNextDirection)(e.direction),B={prevPost:M,nextPost:L,firstPost:T,lastPost:U},"ltr"===_?{adjacent:{left:B.prevPost,right:B.nextPost},edge:{left:B.firstPost,right:B.lastPost}}:{adjacent:{left:B.nextPost,right:B.prevPost},edge:{left:B.lastPost,right:B.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)(w.SpeedyLink,{href:R(o.left.uri),className:"flex flex-row gap-1 items-center min-w-4 ",children:[(0,t.jsx)(j.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)(P.Separator,{})]}),u=n.left?(0,t.jsxs)(w.SpeedyLink,{href:R(n.left.uri),className:"flex flex-row gap-1 items-center min-w-0 grow",children:[(0,t.jsx)(v.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",s=n.right?(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)(w.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)(v.ArrowRightTiny,{className:"shrink-0"})]})}):(0,t.jsx)("div",{}),i=o.right&&(0,t.jsxs)(t.Fragment,{children:[n.right&&(0,t.jsx)(P.Separator,{}),(0,t.jsxs)(w.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)(j.DoubleArrowRightTiny,{className:"shrink-0 "})]})]}),S[2]=T,S[3]=R,S[4]=U,S[5]=L,S[6]=M,S[7]=e.direction,S[8]=r,S[9]=s,S[10]=i,S[11]=a,S[12]=l,S[13]=c}else r=S[8],s=S[9],i=S[10],a=S[11],l=S[12],c=S[13];return S[17]!==r||S[18]!==s||S[19]!==i?(g=(0,t.jsxs)("div",{className:r,children:[s,i]}),S[17]=r,S[18]=s,S[19]=i,S[20]=g):g=S[20],S[21]!==a||S[22]!==l||S[23]!==g?(x=(0,t.jsxs)("div",{className:a,children:[l,g]}),S[21]=a,S[22]=l,S[23]=g,S[24]=x):x=S[24],S[25]!==c||S[26]!==x?(C=(0,t.jsx)("div",{className:c,children:x}),S[25]=c,S[26]=x,S[27]=C):C=S[27],C};e.i(859041);var S=e.i(246346),k=e.i(43400),I=e.i(271264),N=e.i(471747),R=e.i(493306),M=e.i(365172),L=e.i(51687),T=e.i(182193);function U(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 _(e){let o,r,s=(0,n.c)(7);if(0===e.footnotes.length)return null;if(s[0]!==e.footnoteIndexMap||s[1]!==e.footnotes){let n;s[3]!==e.footnoteIndexMap?(n=n=>(0,t.jsx)(B,{footnote:n,footnoteIndexMap:e.footnoteIndexMap},n.footnoteId),s[3]=e.footnoteIndexMap,s[4]=n):n=s[4],o=e.footnotes.map(n),s[0]=e.footnoteIndexMap,s[1]=e.footnotes,s[2]=o}else o=s[2];return s[5]!==o?(r=(0,t.jsx)(T.FootnoteSectionLayout,{className:"mt-4",children:o}),s[5]=o,s[6]=r):r=s[6],r}function B(e){let o,r,s,i,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=I.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:U},d[1]=r):r=d[1],d[2]!==u.source.facets||d[3]!==u.source.plaintext||d[4]!==e.footnoteIndexMap?(s=(0,t.jsx)(L.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]=s):s=d[5],d[6]!==f||d[7]!==s?(i=(0,t.jsx)("div",{className:f,children:s}),d[6]=f,d[7]=s,d[8]=i):i=d[8],d[9]!==u.footnoteId||d[10]!==h||d[11]!==i?(a={footnoteID:u.footnoteId,sourceSelector:h,content:i},d[9]=u.footnoteId,d[10]=h,d[11]=i,d[12]=a):a=d[12],d[13]!==u.contentFacets||d[14]!==u.contentPlaintext?(l=u.contentPlaintext?(0,t.jsx)(L.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)(T.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 O(e){let o,r,s=(0,n.c)(6);s[0]!==e.footnotes?(o=e.footnotes.map($),s[0]=e.footnotes,s[1]=o):o=s[1];let i=o,a=e.footnotes.length>0;return s[2]!==i||s[3]!==e.fullPageScroll||s[4]!==a?(r=(0,t.jsx)(D.FootnoteSideColumnLayout,{items:i,visible:a,fullPageScroll:e.fullPageScroll,getAnchorSelector:A,renderItem:q}),s[2]=i,s[3]=e.fullPageScroll,s[4]=a,s[5]=r):r=s[5],r}function q(e){return(0,t.jsx)(T.FootnoteItemLayout,{index:e.index,indexHref:`#fnref-${e.footnoteId}`,children:e.contentPlaintext?(0,t.jsx)(L.TextBlockCore,{plaintext:e.contentPlaintext,facets:e.contentFacets,index:[]}):(0,t.jsx)("span",{className:"italic text-tertiary",children:"Empty footnote"})})}function A(e){return`#fnref-${e.id}`}function $(e){return{...e,id:e.footnoteId}}var F=e.i(148120),E=e.i(368408);e.s(["LinearDocumentPage",0,function(e){let d,u,m,p,h,f,g,x,b,w,v,j,P,y,L,T,U,B,D,q=(0,n.c)(77);q[0]!==e?({blocks:d,...u}=e,q[0]=e,q[1]=d,q[2]=u):(d=q[1],u=q[2]);let{document:A,did:$,profile:V,contributors:z,preferences:H,prerenderedCodeBlocks:W,bskyPostData:K,standardSitePostData:Q,standardSitePublicationData:G,pollData:X,document_uri:Y,pageId:J,pageOptions:Z,fullPageScroll:ee,hasPageBackgroun
1d:et}=u,en=(0,a.useInlineDrawer)(Y),{pages:eo}=(0,o.useLeafletContent)();q[3]!==d?(p=function(e){let t=new Map;for(let n of e)t.set(n.footnoteId,n.index);return t}(m=function(e){let t=[],n=new Set,o=1;function r(e){(k.PubLeafletBlocksText.isMain(e)||I.PubLeafletBlocksHeader.isMain(e)||N.PubLeafletBlocksBlockquote.isMain(e))&&function(e){let r=e.facets;if(r&&Array.isArray(r))for(let s of r)for(let r of s.features)S.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 s(e){for(let t of e)r(t.content),t.children?.length&&s(t.children),t.unorderedListChildren?.children?.length&&i(t.unorderedListChildren.children)}function i(e){for(let t of e)r(t.content),t.children?.length&&i(t.children),t.orderedListChildren?.children?.length&&s(t.orderedListChildren.children)}for(let t of e){let e=t.block;R.PubLeafletBlocksOrderedList.isMain(e)?s(e.children):M.PubLeafletBlocksUnorderedList.isMain(e)?i(e.children):r(e)}return t}(d)),q[3]=d,q[4]=m,q[5]=p):(m=q[4],p=q[5]);let er=p;if(!A)return null;let es=!!J,ei=`post-page-${J??Y}`,ea=!!en&&(J?en.pageId===J:!en.pageId);q[6]!==m||q[7]!==ee||q[8]!==u.hasContentToRight?(h=u.hasContentToRight?void 0:(0,t.jsx)(O,{footnotes:m,fullPageScroll:ee}),q[6]=m,q[7]=ee,q[8]=u.hasContentToRight,q[9]=h):h=q[9],q[10]!==z||q[11]!==A||q[12]!==es||q[13]!==H||q[14]!==V?(f=!es&&(0,t.jsx)(i.PostHeader,{data:A,profile:V,contributors:z,preferences:H}),q[10]=z,q[11]=A,q[12]=es,q[13]=H,q[14]=V,q[15]=f):f=q[15],q[16]!==d||q[17]!==K||q[18]!==$||q[19]!==er||q[20]!==J||q[21]!==X||q[22]!==W||q[23]!==Q||q[24]!==G||q[25]!==eo?(g=(0,t.jsx)(s.PostContent,{pollData:X,pages:eo,pageId:J,bskyPostData:K,standardSitePostData:Q,standardSitePublicationData:G,blocks:d,did:$,prerenderedCodeBlocks:W,footnoteIndexMap:er}),q[16]=d,q[17]=K,q[18]=$,q[19]=er,q[20]=J,q[21]=X,q[22]=W,q[23]=Q,q[24]=G,q[25]=eo,q[26]=g):g=q[26],q[27]!==J||q[28]!==g?(x=(0,t.jsx)(l.DrawerThreadPageProvider,{pageId:J,children:g}),q[27]=J,q[28]=g,q[29]=x):x=q[29],q[30]!==er||q[31]!==m?(b=(0,t.jsx)(_,{footnotes:m,footnoteIndexMap:er}),q[30]=er,q[31]=m,q[32]=b):b=q[32],q[33]!==f||q[34]!==x||q[35]!==b?(w=(0,t.jsxs)("article",{className:"contents",children:[f,x,b]}),q[33]=f,q[34]=x,q[35]=b,q[36]=w):w=q[36];let el=!1!==H.showPrevNext&&!es,ec=!0===H.showFirstLast&&!es;q[37]!==H.prevNextDirection||q[38]!==el||q[39]!==ec?(v=(0,t.jsx)(C,{showPrevNext:el,showFirstLast:ec,direction:H.prevNextDirection}),q[37]=H.prevNextDirection,q[38]=el,q[39]=ec,q[40]=v):v=q[40];let ed=!1!==H.showComments,eu=!1!==H.showMentions,em=!1!==H.showRecommends,ep=A.commentsCountByPage[J??""]??0;return q[41]!==A.quotesAndMentions||q[42]!==J?(j=(0,r.getQuoteCount)(A.quotesAndMentions,J)||0,q[41]=A.quotesAndMentions,q[42]=J,q[43]=j):j=q[43],q[44]!==A.recommendsCount||q[45]!==J||q[46]!==ed||q[47]!==eu||q[48]!==em||q[49]!==ep||q[50]!==j?(P=(0,t.jsx)(r.ExpandedInteractions,{pageId:J,showComments:ed,showMentions:eu,showRecommends:em,commentsCount:ep,quotesCount:j,recommendsCount:A.recommendsCount}),q[44]=A.recommendsCount,q[45]=J,q[46]=ed,q[47]=eu,q[48]=em,q[49]=ep,q[50]=j,q[51]=P):P=q[51],q[52]===Symbol.for("react.memo_cache_sentinel")?(y=(0,t.jsx)("div",{className:"spacer h-4 w-full"}),q[52]=y):y=q[52],q[53]!==A.membersOnly?.gated||q[54]!==A.publication||q[55]!==u.pubRecord?.description||q[56]!==u.pubRecord?.name||q[57]!==u.pubRecord?.url?(L=A.publication?.uri&&!A.membersOnly?.gated&&(0,t.jsx)("div",{className:"px-3 sm:px-4 w-full pt-4",children:(0,t.jsx)(E.SubscribePanel,{publicationUri:A.publication.uri,publicationUrl:u.pubRecord?.url,source:{placement:"post_footer"},publicationName:u.pubRecord?.name??A.publication.name,publicationDescription:u.pubRecord?.description,newsletterMode:A.publication.newsletterMode})}),q[53]=A.membersOnly?.gated,q[54]=A.publication,q[55]=u.pubRecord?.description,q[56]=u.pubRecord?.name,q[57]=u.pubRecord?.url,q[58]=L):L=q[58],q[59]!==et?(T=!et&&(0,t.jsx)("div",{className:"spacer h-8 w-full"}),q[59]=et,q[60]=T):T=q[60],q[61]!==ee||q[62]!==Z||q[63]!==w||q[64]!==v||q[65]!==P||q[66]!==ei||q[67]!==L||q[68]!==T||q[69]!==ea||q[70]!==h?(U=(0,t.jsxs)(c.PageWrapper,{pageType:"doc",fullPageScroll:ee,id:ei,drawerOpen:ea,pageOptions:Z,footnoteSideColumn:h,children:[w,v,P,y,L,T]}),q[61]=ee,q[62]=Z,q[63]=w,q[64]=v,q[65]=P,q[66]=ei,q[67]=L,q[68]=T,q[69]=ea,q[70]=h,q[71]=U):U=q[71],q[72]!==m?(B=(0,t.jsx)(F.PublishedFootnotePopover,{footnotes:m}),q[72]=m,q[73]=B):B=q[73],q[74]!==U||q[75]!==B?(D=(0,t.jsxs)(t.Fragment,{children:[U,B]}),q[74]=U,q[75]=B,q[76]=D):D=q[76],D}
1],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),s=e.i(465082),i=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,s,i,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?(s=S.data?.posts??[],g[6]=S.data?.posts,g[7]=s):s=g[7],g[8]!==v?(i=e=>e.documents.uri!==v,g[8]=v,g[9]=i):i=g[9];let I=s.filter(i);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 M=d.filter(u),L=M.slice(0,I.length>=20?5:20),T=M.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],B=n=>(0,t.jsx)(y.PostListing,{...n,compact:!0,onOpenInViewer:e.onOpenPost?()=>e.onOpenPost(_,n.documents.uri):void 0},n.documents.uri),D=f.DrawerThreadContext,O=I.length>0&&(0,t.jsxs)(t.Fragment,{children:[U&&(0,t.jsx)("h4",{children:"From this Publication"}),I.map(B)]});g[25]!==U?(m=U&&(0,t.jsx)("hr",{className:"my-4"}),g[25]=U,g[26]=m):m=g[26];let q=L.length>0&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("h4",{children:"From across the Atmosphere"}),L.map(B),T&&(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]!==O||g[28]!==m||g[29]!==q?(p=(0,t.jsxs)("div",{className:"tagDrawerView flex flex-col gap-4",children:[O,m,q]}),g[27]=O,g[28]=m,g[29]=q,g[30]=p):p=g[30],g[31]!==p||g[32]!==D.Provider?(h=(0,t.jsx)(D.Provider,{value:null,children:p}),g[31]=p,g[32]=D.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:i,publication:a,normalizedPublication:l}=(0,s.useDocument)(),c=a?.uri,d=l?.preferences?.showOtherPublicationsInTags!==!1;return r[0]!==e.tag||r[1]!==c||r[2]!==d||r[3]!==i?(o=(0,t.jsx)(S,{tag:e.tag,documentUri:i,publicationUri:c,showOtherPublications:d}),r[0]=e.tag,r[1]=c,r[2]=d,r[3]=i,r[4]=o):o=r[4],o}e.s(["TagPostsList",0,S],324053);var N=e.i(968562),R=e.i(227086),M=e.i(824488),L=e.i(308231),T=e.i(149753);let U=e=>{let n=(0,h.useRef)(null),o=(0,R.useIsMobile)(),r=(0,g.useDrawerOpen)(e.document_uri),s=!!r&&(e.pageId?r.pageId===e.pageId:!r.pageId),i=(0,h.useRef)(r?.drawer);s&&r?.drawer&&(i.current=r.drawer);let c="quotes"===i.current?"quotes":"comments",d=(0,h.useRef)(r?.thread);s&&(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)(M.MobileSheet,{open:s,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})}):s?(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,M=(0,n.c)(46),{commentsCountByPage:U,recommendsCount:_}=(0,s.useDocument)(),B=U[e.pageId??""]??0,{threadStack:D}=(0,a.useInteractionState)(e.document_uri);M[0]!==e.document_uri?(r={push:t=>(0,a.pushDrawerThread)(e.document_uri,t)},M[0]=e.document_uri,M[1]=r):r=M[1],o=r;let O=e.thread,q=O?.type==="standardSitePost"?O.uri:null,A=(0,N.useDocumentDiscussionData)(q??"",!!q),[$,F]=(0,h.useState)("comments");M[2]===Symbol.for("react.memo_cache_sentinel")?(l=()=>{F("comments")},M[2]=l):l=M[2],M[3]!==q?(g=[q],M[3]=q,M[4]=g):g=M[4],(0,h.useEffect)(l,g);let E=A.showComments&&A.comments.length>0,V=A.showMentions&&A.quotesAndMentions.length>0,z=E&&V,H=$;if("comments"!==H||E||(H="quotes"),"quotes"!==H||V||(H="comments"),M[5]!==e.pageId||M[6]!==e.quotesAndMentions){let t;M[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},M[8]=e.pageId,M[9]=t):t=M[9],w=e.quotesAndMentions.filter(t),M[5]=e.pageId,M[6]=e.quotesAndMentions,M[7]=w}else w=M[7];let W=w,K=null!=e.commentsSlot,Q=W.length>0,G=K&&Q,X=e.tab;return"comments"!==X||K||(X="quotes"),"quotes"!==X||Q||(X="comments"),M[10]!==X||M[11]!==O||M[12]!==G||M[13]!==B||M[14]!==W.length||M[15]!==e.document_uri||M[16]!==_||M[17]!==A.comments||M[18]!==A.quotesAndMentions||M[19]!==H||M[20]!==z||M[21]!==q||M[22]!==D?(v=(0,t.jsx)("div",{className:"flex-1 min-w-0",children:q?z?(0,t.jsx)(p.ToggleGroup,{fullWidth:!0,value:H,onChange:(e,t)=>
1{t?.preventDefault(),F(e)},options:[{value:"comments",label:A.comments.length>0?`Comments (${A.comments.length})`:"Comments"},{value:"quotes",label:(0,t.jsxs)("div",{children:["Bluesky"," ",(0,t.jsx)("span",{className:"hidden sm:inline",children:"Mentions"})," ",A.quotesAndMentions.length>0&&`(${A.quotesAndMentions.length})`]})}]}):(0,t.jsx)("h4",{children:"quotes"===H?`Bluesky Mentions${A.quotesAndMentions.length>0?` (${A.quotesAndMentions.length})`:""}`:`Comments${A.comments.length>0?` (${A.comments.length})`:""}`}):O?.type==="tag"?(0,t.jsxs)("h3",{className:"truncate",children:['More posts tagged "',O.tag,'"']}):O?.type==="recommends"?(0,t.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,t.jsx)("h3",{children:"Recommends"}),(0,t.jsx)(T.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})]}):O?(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[D.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:X,onChange:(t,n)=>{n?.preventDefault(),(0,a.setInteractionState)(e.document_uri,{drawer:t})},options:[{value:"comments",label:B>0?`Comments (${B})`:"Comments"},{value:"quotes",label:(0,t.jsxs)("div",{children:["Bluesky ",(0,t.jsx)("span",{className:"hidden sm:inline",children:"Mentions"})," ",W.length>0&&`(${W.length})`]})}]}):(0,t.jsx)("h4",{children:"quotes"===X?"Bluesky Mentions":"Comments"})}),M[10]=X,M[11]=O,M[12]=G,M[13]=B,M[14]=W.length,M[15]=e.document_uri,M[16]=_,M[17]=A.comments,M[18]=A.quotesAndMentions,M[19]=H,M[20]=z,M[21]=q,M[22]=D,M[23]=v):v=M[23],M[24]!==e.document_uri?(j=()=>(0,a.setInteractionState)(e.document_uri,{drawerOpen:!1}),M[24]=e.document_uri,M[25]=j):j=M[25],M[26]===Symbol.for("react.memo_cache_sentinel")?(P=(0,t.jsx)(d.CloseTiny,{}),M[26]=P):P=M[26],M[27]!==j?(y=(0,t.jsx)("button",{className:"text-tertiary shrink-0",onClick:j,children:P}),M[27]=j,M[28]=y):y=M[28],M[29]!==v||M[30]!==y?(C=(0,t.jsxs)("div",{className:"w-full flex items-center gap-2 mb-3",children:[v,y]}),M[29]=v,M[30]=y,M[31]=C):C=M[31],M[32]!==X||M[33]!==O||M[34]!==W||M[35]!==e.commentsSlot||M[36]!==e.did||M[37]!==H||M[38]!==q?(S=q?(0,t.jsx)(b.StandardSitePostDrawerView,{uri:q,tab:H}):O?.type==="tag"?(0,t.jsx)(I,{tag:O.tag}):O?.type==="recommends"?(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(L.RecommendsList,{documentUri:O.uri})}):O?.type==="thread"||O?.type==="quotes"?(0,t.jsx)(x.ThreadView,{parentUri:O.uri,initialTab:"quotes"===O.type?"quotes":"replies"}):"quotes"===X?(0,t.jsx)(i.DiscussionDrawerContent,{did:e.did,quotesAndMentions:W}):e.commentsSlot,M[32]=X,M[33]=O,M[34]=W,M[35]=e.commentsSlot,M[36]=e.did,M[37]=H,M[38]=q,M[39]=S):S=M[39],M[40]!==o||M[41]!==S?(k=(0,t.jsx)(f.DrawerThreadContext.Provider,{value:o,children:S}),M[40]=o,M[41]=S,M[42]=k):k=M[42],M[43]!==k||M[44]!==C?(R=(0,t.jsxs)(t.Fragment,{children:[C,k]}),M[43]=k,M[44]=C,M[45]=R):R=M[45],R};var B=e.i(497366),D=e.i(38023),O=e.i(413458),q=e.i(685372),A=e.i(929495),$=e.i(637777),F=e.i(859015),E=e.i(814649),V=e.i(246146),z=e.i(788244),H=e.i(510038),W=e.i(702354),W=W,K=e.i(781616);function Q({blocks:e,pages:n,...o}){let{document:r,did:s,profile:i,contributors:l,preferences:c,pubRecord:d,theme:u,prerenderedCodeBlocks:m,bskyPostData:p,standardSitePostData:x,pollData:b,document_uri:w,pageId:v,pageOptions:j,fullPageScroll:P,hasPageBackground:y}=o,C=(0,h.useMemo)(()=>({data:r,profile:i,contributors:l,preferences:c}),[r,i,l,c]);if(!r)return null;let S=!!v,k=(0,g.useInlineDrawer)(w),I=e.some(e=>W.isMain(e.block));return(0,t.jsxs)(O.PageWrapper,{pageType:"canvas",fullPageScroll:P,id:`post-page-${v??w}`,drawerOpen:!!k&&(v?k.pageId===v:!k.pageId),pageOptions:j,children:[!I&&(0,t.jsx)(Y,{pageId:v,isSubpage:S,data:r,profile:i,contributors:l,preferences:c,commentsCount:r.commentsCountByPage[v??""]??0,quotesCount:(0,a.getQuoteCount)(r.quotesAndMentions,v),recommendsCount:r.recommendsCount}),(0,t.jsx)(f.DrawerThreadPageProvider,{pageId:v,children:(0,t.jsx)(K.PostHeaderBlockProvider,{value:C,children:(0,t.jsx)(G,{blocks:e,did:s,prerenderedCodeBlocks:m,bskyPostData:p,standardSitePostData:x,pollData:b,pageId:v,pages:n})})})]})}function G({blocks:e,did:n,prerenderedCodeBlocks:o,bskyPostData:r,standardSitePostData:s,pageId:i,pollData:a,pages:l}){let c=(0,h.useMemo)(()=>[...e].sort(A.canvasBlockOrder),[e]),d=(0,h.useMemo)(()=>(0,A.canvasStackOrders)(c),[c]),u=c.length>0?Math.max(...c.map(e=>e.y),0):0;return(0,t.jsx)("div",{className:"canvasWrapper h-full w-fit overflow-y-scroll postContent",children:(0,t.jsxs)("div",{style:{minHeight:u+512,contain:"size layout paint"},className:"relative h-full w-[1272px]",children:[(0,t.jsx)(J,{}),c.map((e,c)=>(0,t.jsx)(X,{canvasBlock:e,did:n,pollData:a,prerenderedCodeBlocks:o,bskyPostData:r,standardSitePostData:s,pageId:i,pages:l,index:c,stackOrder:d[c]},c))]})})}function X(e){let o,r,s,i,a,l=(0,n.c)(21),{canvasBlock:c,did:d,prerenderedCodeBlocks:u,bskyPostData:m,standardSitePostData:p,pollData:h,pageId:f,pages:g,index:x,stackOrder:b}=e,{x:w,y:v,width:j,rotation:P}=c,y=`translate(${w}px, ${v}px)${P?` rotate(${P}deg)`:""}`;l[0]!==c.block?(o={$type:"pub.leaflet.pages.linearDocument#block",block:c.block},l[0]=c.block,l[1]=o):o=l[1];let C=o;return l[2]!==b||l[3]!==y||l[4]!==j?(r={top:0,left:0,width:j,zIndex:b,transform:y},l[2]=b,l[3]=y,l[4]=j,l[5]=r):r=l[5],l[6]!==x?(s=[x],l[6]=x,l[7]=s):s=l[7],l[8]!==m||l[9]!==d||l[10]!==C||l[11]!==f||l[12]!==g||l[13]!==h||l[14]!==u||l[15]!==p||l[16]!==s?(i=(0,t.jsx)("div",{className:"contents",children:(0,t.jsx)(q.Block,{pollData:h,pageId:f,pages:g,bskyPostData:m,standardSitePostData:p,block:C,did:d,index:s,preview:!1,prerenderedCodeBlocks:u})}),l[8]=m,l[9]=d,l[10]=C,l[11]=f,l[12]=g,l[13]=h,l[14]=u,l[15]=p,l[16]=s,l[17]=i):i=l[17],l[18]!==r||l[19]!==i?(a=(0,t.jsx)("div",{className:"absolute rounded-lg flex items-stretch origin-center p-3",style:r,children:i}),l[18]=r,l[19]=i,l[20]=a):a=l[20],a}let Y=e=>{let o,r,s,i=(0,n.c)(18),l=(0,R.useIsMobile)(),c=!(0,H.usePostFrame)().headerInteractions&&!e.isSubpage;return i[0]!==c||i[1]!==e.commentsCount||i[2]!==e.pageId||i[3]!==e.preferences||i[4]!==e.quotesCount||i[5]!==e.recommendsCount?(o=!c&&(0,t.jsx)(a.Interactions,{quotesCount:e.quotesCount||0,commentsCount:e.commentsCount||0,recommendsCount:e.recommendsCount,showComments:!1!==e.preferences.showComments,showMentions:!1!==e.preferences.showMentions,showRecommends:!1!==e.preferences.showRecommends,pageId:e.pageId}),i[0]=c,i[1]=e.commentsCount,i[2]=e.pageId,i[3]=e.preferences,i[4]=e.quotesCount,i[5]=e.recommendsCount,i[6]=o):o=i[6],i[7]!==c||i[8]!==l||i[9]!==e.contributors||i[10]!==e.data||i[11]!==e.isSubpage||i[12]!==e.preferences||i[13]!==e.profile?(r=!e.isSubpage&&(0,t.jsxs)(t.Fragment,{children:[!c&&(0,t.jsx)(F.Separator,{classname:"h-5"}),(0,t.jsx)(E.Popover,{side:"bottom",align:"end",className:`flex flex-col gap-2 p-0! text-primary ${l?"w-full":"max-w-sm w-[1000px] t"}`,trigger:(0,t.jsx)(V.InfoSmall,{}),children:(0,t.jsx)(z.PostHeader,{data:e.data,profile:e.profile,contributors:e.contributors,preferences:e.preferences,isCanvas:!0})})]}),i[7]=c,i[8]=l,i[9]=e.contributors,i[10]=e.data,i[11]=e.isSubpage,i[12]=e.preferences,i[13]=e.profile,i[14]=r):r=i[14],i[15]!==o||i[16]!==r?(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:[o,r]}),i[15]=o,i[16]=r,i[17]=s):s=i[17],s},J=()=>{let e,o=(0,n.c)(1);return o[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)("div",{className:"w-full h-full pointer-events-none",children:(0,t.jsx)($.CanvasBackgroun
1dPattern,{pattern:"grid"})}),o[0]=e):e=o[0],e};var Z=e.i(713136),ee=e.i(960622),et=e.i(602448),en=e.i(952994),eo=e.i(949555);function er(e){let r,s,i,a,l=(0,n.c)(13);if(l[0]!==e?({page:r,...s}=e,l[0]=e,l[1]=r,l[2]=s):(r=l[1],s=l[2]),o.PubLeafletPagesCanvas.isMain(r)){let e,n;return l[3]!==r?(e=r.blocks||[],l[3]=r,l[4]=e):e=l[4],l[5]!==s||l[6]!==e?(n=(0,t.jsx)(Q,{...s,blocks:e,pages:s.allPages}),l[5]=s,l[6]=e,l[7]=n):n=l[7],n}return l[8]!==r?(i=r.blocks||[],l[8]=r,l[9]=i):i=l[9],l[10]!==s||l[11]!==i?(a=(0,t.jsx)(D.LinearDocumentPage,{...s,blocks:i}),l[10]=s,l[11]=i,l[12]=a):a=l[12],a}let es=e=>{let o,r,s=(0,n.c)(3);return s[0]===Symbol.for("react.memo_cache_sentinel")?(o=(0,t.jsx)(d.CloseTiny,{}),s[0]=o):o=s[0],s[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)(B.PageOptionButton,{onClick:e.onClick,children:o})}),s[1]=e.onClick,s[2]=r):r=s[2],r};e.s(["PostPages",0,function({document:e,did:n,profile:i,contributors:a,preferences:c,pubRecord:d,prerenderedCodeBlocks:u,document_uri:m,commentsSlot:p}){let f=(0,g.useInlineDrawer)(m),x=(0,H.usePostFrame)(),b=x.openPages,{pages:w}=(0,r.useLeafletContent)(),{bskyPostData:v,standardSitePostData:j,standardSitePublicationData:P,pollData:y}=(0,eo.usePostResources)(),{quotesAndMentions:C}=(0,s.useDocument)(),S=e?.normalizedDocument;if(!e||!S)return null;let k=d?.theme||S.theme||null,I=!(0,ee.useCardBorderHidden)(),N=w[0],R=o.PubLeafletPagesCanvas.isMain(N),M={document:e,did:n,profile:i,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};return(0,t.jsxs)(Z.GlobalImageLightbox,{did:n,children:[!M.fullPageScroll&&(0,t.jsx)(l.BookendSpacer,{}),(0,t.jsx)(er,{page:N,...M,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 s=(0,et.getPageKey)(o);if("iframe"===o.type)return(0,t.jsxs)(h.Fragment,{children:[(0,t.jsx)(l.SandwichSpacer,{}),(0,t.jsx)(en.IframePageView,{url:o.url,onOpen:e=>{x.openPage(o,{type:"iframe",url:e})},pageOptions:(0,t.jsx)(es,{onClick:()=>x.closePage(o),hasPageBackground:I})})]},s);if("doc"!==o.type)return null;let i=w.find(e=>e.id===o.id);return i?(0,t.jsxs)(h.Fragment,{children:[(0,t.jsx)(l.SandwichSpacer,{}),(0,t.jsx)(er,{page:i,...M,fullPageScroll:!1,pageId:i.id,hasContentToRight:r<b.length-1||!!(f&&f.pageId===i.id),pageOptions:(0,t.jsx)(es,{onClick:()=>x.closePage(o),hasPageBackground:I})}),x.drawer&&(0,t.jsx)(U,{showPageBackground:d?.theme?.showPageBackground,pageId:i.id,document_uri:e.uri,commentsSlot:!1===c.showComments?null:p,quotesAndMentions:!1===c.showMentions?[]:C,did:n})]},s):null}),!M.fullPageScroll&&(0,t.jsx)(l.BookendSpacer,{})]})}],522290)},240064,e=>{"use strict";var t=e.i(843476),n=e.i(500932),o=e.i(781543),r=e.i(859015),s=e.i(793610),i=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),s=j(t.endContainer,t.endOffset,o.element),i={...n.pageId&&{pageId:n.pageId},start:{block:n.index.split(".").map(b),offset:r},end:{block:o.index.split(".").map(x),offset:s}};return(0,a.encodeQuotePosition)(i)}function x(e){return parseInt(e)}function b(e){return parseInt(e)}let w=e=>{let n=(0,s.useSmoker)(),{identity:p}=(0,l.useIdentityData)(),{uri:h,publication:g}=(0,u.useDocument)(),x=(0,m.usePostFrame)(),[b,w]=(0,i.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:()=>
3b&&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))},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,s,a,l=(0,n.c)(15),{uri:c,publication:d,normalizedDocument:m,normalizedPublication:f,postUrl:x}=(0,u.useDocument)(),[b,v]=(0,i.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?(s=(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]=s):s=l[11],l[12]!==e||l[13]!==s?(a=(0,t.jsxs)(t.Fragment,{children:[e,s]}),l[12]=e,l[13]=s,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,s,i=(0,n.c)(4);i[0]===Symbol.for("react.memo_cache_sentinel")?(r={width:"calc((var(--leaflet-layout-width, 100vw) - var(--page-width-units)) / 2)"},i[0]=r):r=i[0];let a=e.onClick?e.onClick:o;return i[1]!==e.children||i[2]!==a?(s=(0,t.jsx)("div",{className:"spacer shrink-0 flex justify-end items-start",style:r,onClick:a,children:e.children}),i[1]=e.children,i[2]=a,i[3]=s):s=i[3],s},"LeafletLayout",0,e=>{let o,r,s=(0,n.c)(6),i=`
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 s[0]!==e.children||s[1]!==a?(o=(0,t.jsx)("div",{id:"pages",className:a,children:e.children}),s[0]=e.children,s[1]=a,s[2]=o):o=s[2],s[3]!==i||s[4]!==o?(r=(0,t.jsx)("div",{className:i,id:"page-carousel",children:o}),s[3]=i,s[4]=o,s[5]=r):r=s[5],r},"SandwichSpacer",0,e=>{let o,r=(0,n.c)(3),s=`spacer shrink-0 lg:snap-center ${e.noWidth?"w-0":"w-6"} ${e.className}`;return r[0]!==e.onClick||r[1]!==s?(o=(0,t.jsx)("div",{onClick:e.onClick,className:s}),r[0]=e.onClick,r[1]=s,r[2]=o):o=r[2],o}],368442);var r=e.i(828517),s=e.i(629683),i=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,s.useColorAttribute)(null,"theme/page-background"),g=(0,s.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)(i.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),s=e.i(425481);e.s(["PostByline",0,function(e){let i,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,s.namedBylineProfiles)(u);if(0===e.length){l=null;break e}i=`postByline relative inline-flex flex-row flex-wrap items-center ${m??""}`,a=e.map((n,i)=>(0,t.jsxs)(o.Fragment,{children:[i>0&&(0,t.jsx)("span",{className:"whitespace-pre",children:(0,s.bylineSeparator)(i,e.length)}),(0,t.jsx)(r.ProfilePopover,{didOrHandle:n.did,trigger:(0,t.jsx)("span",{className:"hover:underline",children:(0,s.bylineName)(n)})})]},n.did))}d[0]=m,d[1]=u,d[2]=i,d[3]=a,d[4]=l}else i=d[2],a=d[3],l=d[4];return l!==Symbol.for("react.early_return_sentinel")?l:(d[5]!==i||d[6]!==a?(c=(0,t.jsx)("span",{className:i,children:a}),d[5]=i,d[6]=a,d[7]=c):c=d[7],c)}],10971);let i=(0,e.i(768834).create)(e=>({selectedPostListing:null,setSelectedPostListing:t=>e({selectedPostListing:t})}));e.s(["useSelectedPostListing",0,i],125591)},769877,e=>{"use strict";var t=e.i(843476),n=e.i(500932),o=e.i(593302),r=e.i(634622),s=e.i(850952),i=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(523705),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 s,l,d,u,m,p,h,f,g=(0,n.c)(31);g[0]!==e.postRecord?(s=(0,a.hasLeafletContent)(e.postRecord),g[0]=e.postRecord,g[1]=s):s=g[1];let x=s;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,i.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,s;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?(s=(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]=s):s=g[15],s}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},M=e=>{let o,r,s=(0,n.c)(3);return e.publishedAt?(s[0]===Symbol.for("react.memo_cache_sentinel")?(o={year:"2-digit",month:"short",day:"numeric"},s[0]=o):o=s[0],s[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})}),s[1]=e.publishedAt,s[2]=r):r=s[2],r):null},L=e=>{let o,r,s,i,a,l,c,d=(0,n.c)(33),u=(0,p.useSelectedPostListing)(T),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?(s=h?()=>h({type:"discussion"}):void 0,d[6]=h,d[7]=s):s=d[7],d[8]!==m||d[9]!==e.document||d[10]!==e.documentUri||d[11]!==e.publication||d[12]!==u?(i=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]=i):i=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]!==s||d[22]!==i?(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:s,onOpenChange:i}),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]=s,d[22]=i,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 T(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,i.blobRefToSrc)(w.backgroundImage.image.ref,new o.AtUri(p).host):null,T=w?.backgroundImage?.repeat,U=w?.backgroundImage?.width||500,_=n?n?.theme?.showPageBackground:r.theme?.showPageBackground??!0,B=(0,b.mergePreferences)(r?.preferences,n?.preferences),D=e.documents.mentionsCount??e.documents.document_mentions_in_bsky?.[0]?.count??0,O=!1===B.showComments?0:e.documents.comments_on_documents?.[0]?.count||0,q=e.documents.recommends_on_documents?.[0]?.count||0,A=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,z=(0,h.useReaderPostViewer)(e=>e.setPreloadUrl),H=(0,h.useReaderPostViewer)(e=>e.clearPreloadUrl),W=(0,d.useRef)(null),K=()=>{if((0,a.hasLeafletContent)(r))return(0,f.prefetchReaderPost)(e.documents.uri);z(F),(0,g.preload)(`frameable-${F}`,()=>(0,x.checkUrlFrameable)(F))},Q=E?{onMouseEnter:()=>{W.current=setTimeout(K,150)},onMouseLeave:()=>{W.current&&clearTimeout(W.current),H(F)},onTouchStart:K,onTouchEnd:()=>setTimeout(()=>H(F),300),onTouchCancel:()=>setTimeout(()=>H(F),300)}:void 0,G=r.coverImage?(0,i.blobRefToSrc)(r.coverImage.ref,c.host,void 0,{width:e.compact?i.COVER_THUMBNAIL_WIDTH.medium:i.COVER_THUMBNAIL_WIDTH.large}):void 0,X=$.length>0?(0,t.jsx)(u.PostByline,{contributors:$}):void 0,Y=r.publishedAt?(0,t.jsx)(M,{publishedAt:r.publishedAt}):void 0,J=e.publication&&n?(0,t.jsx)(R,{href:e.publication.href,pubRecord:n,uri:e.publication.uri,postRecord:r,compact:e.compact}):void 0,Z=(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:D,commentsCount:O,re
14commendsCount:q,tags:A,showComments:!1!==B.showComments,showMentions:!1!==B.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,description:r.description||(0,P.getFirstParagraph)(r),author:X,date:Y,interactions:Z,pubInfo:J,coverImageSrc:G,coverImageAlt:r.title};return(0,t.jsx)("div",{className:"postListing flex flex-col gap-1",...Q,children:(0,t.jsx)(s.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:T?"repeat":"no-repeat",backgroundSize:T?`${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),s=(0,n.useRef)(e.resolve);s.current=e.resolve;let i=(0,n.useRef)(null);(0,n.useLayoutEffect)(()=>{if(!o||!i.current)return;let e=i.current.offsetWidth,t=Math.max(8,Math.min(o.centerX-e/2,window.innerWidth-e-8));i.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(),s=o?r.left:r.right;return{top:o?r.top-28:r.bottom+8,centerX:s}},n=()=>{let n=e();if(!n)return r(null);let o=s.current(n);if(null==o)return r(null);r({...t(n.selection,n.range),data:o})},o=0,i=()=>{o=0,r(n=>{if(!n)return n;let o=e();return o?{...n,...t(o.selection,o.range)}:n})},l=()=>{o||(o=requestAnimationFrame(i))};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:i,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 s=(0,r.createServerReference)("402357d601722ebeb3062194e7f7b39e80fb906a54",r.callServer,void 0,r.findSourceMapURL,"getReaderPost"),i=e=>["reader_post",e];e.s(["prefetchReaderPost",0,function(e){(0,o.preload)(i(e),()=>s(e))},"useReaderPost",0,function(e){let o,r,a,l=(0,t.c)(5);return l[0]!==e?(o=e?i(e):null,l[0]=e,l[1]=o):o=l[1],l[2]!==e?(r=()=>s(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),s=r.findIndex(e=>e.documents.uri===n);-1!==s&&e({queue:r,index:s,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.