1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="01a0ca74-b99f-7972-b7ee-e078932ba6ad")}catch(e){}}();(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,664659,e=>{"use strict";let t=(0,e.i(475254).default)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);e.s(["ChevronDown",0,t],664659)},555436,e=>{"use strict";let t=(0,e.i(475254).default)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);e.s(["Search",0,t],555436)},814573,e=>{"use strict";var t=e.i(843476),r=e.i(500932),a=e.i(522016),l=e.i(635333);e.s(["default",0,function(e){let s,i,o,n,c,h,d,m,x,u,f=(0,r.c)(23),{white:p,compact:y,mini:b,alwaysWordmark:v,lang:g}=e,w=void 0===g?"en":g,j=p?"white":"currentColor",k=b?"w-6 h-6":y?"w-8 h-8":"w-8 h-8 md:w-[2.4rem] md:h-[2.4rem]",N=b?"text-sm":y?"text-lg":"text-base md:text-[1.2rem]",C=v?"inline":b?"hidden lg:inline":"hidden sm:inline";f[0]!==w?(s=(0,l.localePath)("/",w),f[0]=w,f[1]=s):s=f[1];let S=`inline-flex items-center ${b?"gap-1.5":"gap-3"} ${p?"text-white hover:opacity-80":"text-primary hover:text-secondary"} transition-colors`;f[2]!==j?(i=(0,t.jsx)("circle",{cx:"12",cy:"12",r:"10",stroke:j,strokeWidth:"1"}),o=(0,t.jsx)("circle",{cx:"12",cy:"12",r:"7",stroke:j,strokeWidth:"1"}),n=(0,t.jsx)("circle",{cx:"12",cy:"12",r:"4",stroke:j,strokeWidth:"1"}),f[2]=j,f[3]=i,f[4]=o,f[5]=n):(i=f[3],o=f[4],n=f[5]),f[6]!==k||f[7]!==i||f[8]!==o||f[9]!==n?(c=(0,t.jsxs)("svg",{className:k,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[i,o,n]}),f[6]=k,f[7]=i,f[8]=o,f[9]=n,f[10]=c):c=f[10];let P=`${N} uppercase tracking-wider ${C}`;return f[11]===Symbol.for("react.memo_cache_sentinel")?(d=(0,t.jsx)("span",{className:"font-semibold",children:"Source"}),h=(0,t.jsx)("span",{className:"font-light",children:"Library"}),f[11]=h,f[12]=d):(h=f[11],d=f[12]),f[13]!==b?(m=!b&&(0,t.jsx)("sup",{className:"text-[0.6em] font-light tracking-normal normal-case ml-1 opacity-80 relative -top-[0.5em]",children:"Beta"}),f[13]=b,f[14]=m):m=f[14],f[15]!==m||f[16]!==P?(x=(0,t.jsxs)("span",{className:P,children:[d,h,m]}),f[15]=m,f[16]=P,f[17]=x):x=f[17],f[18]!==x||f[19]!==s||f[20]!==S||f[21]!==c?(u=(0,t.jsxs)(a.default,{href:s,className:S,"aria-label":"Source Library home",children:[c,x]}),f[18]=x,f[19]=s,f[20]=S,f[21]=c,f[22]=u):u=f[22],u}])},250309,e=>{"use strict";var t=e.i(843476),r=e.i(500932),a=e.i(271645),l=e.i(522016),s=e.i(618566),i=e.i(814573),o=e.i(481011),n=e.i(555436),c=e.i(664659),h=e.i(100930),d=e.i(635333),m=e.i(603064),x=e.i(927908),u=e.i(565961);function f(){return(0,u.trackEvent)("give_nav_click",{source:"header",url:"/give"})}function p(e){return!(0,m.isGlobalOnlyNavHref)((0,d.canonicalPath)(e.href))}e.s(["default",0,function(e){let u,y,b,v,g,w,j,k,N,C,S,P,$,_,L,E,W,M,O,R,U,z,A,B,H,T=(0,r.c)(63),{variant:G,breadcrumbs:I,sticky:F,className:D,homeLocale:K}=e,q=void 0===G?"light":G,V="transparent"===q||"dark"===q,[J,Q]=(0,a.useState)(!1),[X,Y]=(0,a.useState)(null),Z=(0,a.useRef)(null),ee=(0,a.useRef)(null),et=(0,s.usePathname)(),er=(0,h.useLocale)(),ea=K??er,el=h.NAV_STRINGS[ea],es=(0,x.useIsEmbedded)();T[0]!==es?(u=e=>!(es&&(0,m.isGlobalOnlyNavHref)((0,d.canonicalPath)(e.href))),T[0]=es,T[1]=u):u=T[1],T[2]!==es?(y=e=>e.children&&es?{...e,children:e.children.filter(p)}:e,T[2]=es,T[3]=y):y=T[3];let ei=(H=[{label:el.collections,href:"/collections",activePrefix:"/collections"},{label:el.gallery,href:"/gallery"},{label:el.identify,href:"/identify"},{label:el.browse,href:"/browse",activePrefix:"/browse",children:[{label:el.browse,href:"/browse"},{label:el.catalogue,href:"/catalog"},{label:el.works,href:"/works"}]},{label:el.explore,href:"/explore",activePrefix:"/explore"},{label:el.librarian,href:"/librarian"}],"en"===ea?H:H.map(e=>({...e,href:(0,d.localePath)(e.href,ea),...e.activePrefix?{activePrefix:(0,d.localePath)(e.activePrefix,ea)}:{},...e.children?{children:e.children.map(e=>({...e,href:(0,d.localePath)(e.href,ea)}))}:{}}))).filter(u).map(y);T[4]!==es?(b=es&&(0,m.isGlobalOnlyNavHref)("/give"),T[4]=es,T[5]=b):b=T[5];let eo=!b;T[6]!==K||T[7]!==et?(v=void 0!==K||(0,d.hasLocalizedTwin)(et),T[6]=K,T[7]=et,T[8]=v):v=T[8];let en=v;T[9]!==et?(g=(0,d.localeHref)("en",et),T[9]=et,T[10]=g):g=T[10];let ec=g;T[11]!==et?(w=(0,d.localeHref)("es",et),T[11]=et,T[12]=w):w=T[12];let eh=w;T[13]===Symbol.for("react.memo_cache_sentinel")?(j=()=>{Q(!1),Y(null)},T[13]=j):j=T[13],T[14]!==et?(k=[et],T[14]=et,T[15]=k):k=T[15],(0,a.useEffect)(j,k),T[16]!==X||T[17]!==J?(N=()=>
1{if(!J&&!X)return;let e=function(e){J&&Z.current&&!Z.current.contains(e.target)&&Q(!1),X&&ee.current&&!ee.current.contains(e.target)&&Y(null)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},C=[J,X],T[16]=X,T[17]=J,T[18]=N,T[19]=C):(N=T[18],C=T[19]),(0,a.useEffect)(N,C),T[20]===Symbol.for("react.memo_cache_sentinel")?(S={transparent:"relative z-50 py-4",light:"bg-cream border-b border-border-light py-3",dark:"bg-dark border-b border-white/10 py-3"},T[20]=S):S=T[20];let ed=S[q],em=V?"text-white/70 hover:text-white":"text-secondary hover:text-primary",ex=V?"text-white":"text-primary font-medium",eu=!!I;T[21]!==V||T[22]!==ea||T[23]!==eu?(P=(0,t.jsx)(i.default,{white:V,compact:eu,lang:ea}),T[21]=V,T[22]=ea,T[23]=eu,T[24]=P):P=T[24],T[25]!==I||T[26]!==V?($=I?.map(e=>(0,t.jsxs)("span",{className:"flex items-center gap-3",children:[(0,t.jsx)("span",{className:V?"text-white/40 hidden sm:inline":"text-stone-400 hidden sm:inline",children:"/"}),(0,t.jsx)(l.default,{href:e.href,className:`text-base font-serif ${V?"text-white hover:opacity-80":"text-primary hover:text-secondary"} transition-colors`,children:e.label})]},e.href)),T[25]=I,T[26]=V,T[27]=$):$=T[27],T[28]!==P||T[29]!==$?(_=(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[P,$]}),T[28]=P,T[29]=$,T[30]=_):_=T[30],T[31]!==V||T[32]!==eo||T[33]!==el.support?(L=eo&&(0,t.jsx)(l.default,{href:"/give",onClick:f,className:`whitespace-nowrap rounded-full border px-3 py-1.5 text-sm font-medium tracking-wide transition-colors ${V?"border-white/40 text-white hover:bg-white hover:text-dark":"border-accent-rust text-accent-rust hover:bg-accent-rust hover:text-white"}`,children:el.support}),T[31]=V,T[32]=eo,T[33]=el.support,T[34]=L):L=T[34],T[35]!==ec||T[36]!==eh||T[37]!==V||T[38]!==ea||T[39]!==en?(E=en&&(0,t.jsxs)("div",{className:"flex items-center gap-1.5 text-xs font-medium tracking-wide","aria-label":"Language",children:[(0,t.jsx)(l.default,{href:ec,"aria-current":"en"===ea?"page":void 0,className:"en"===ea?V?"text-white":"text-primary":V?"text-white/50 hover:text-white":"text-secondary hover:text-primary",children:"EN"}),(0,t.jsx)("span",{className:V?"text-white/30":"text-stone-300",children:"·"}),(0,t.jsx)(l.default,{href:eh,"aria-current":"es"===ea?"page":void 0,className:"es"===ea?V?"text-white":"text-primary":V?"text-white/50 hover:text-white":"text-secondary hover:text-primary",children:"ES"})]}),T[35]=ec,T[36]=eh,T[37]=V,T[38]=ea,T[39]=en,T[40]=E):E=T[40],T[41]!==ea?(W=(0,d.localePath)("/search",ea),T[41]=ea,T[42]=W):W=T[42];let ef=`hidden lg:flex items-center justify-center w-8 h-8 rounded-lg transition-colors ${"/search"===(0,d.canonicalPath)(et)?V?"text-white bg-white/10":"text-primary bg-warm":V?"text-white/60 hover:text-white hover:bg-white/10":"text-secondary hover:text-primary hover:bg-warm/50"}`;T[43]===Symbol.for("react.memo_cache_sentinel")?(M=(0,t.jsx)(n.Search,{className:"w-4 h-4"}),T[43]=M):M=T[43],T[44]!==el.search||T[45]!==W||T[46]!==ef?(O=(0,t.jsx)(l.default,{href:W,className:ef,"aria-label":el.search,children:M}),T[44]=el.search,T[45]=W,T[46]=ef,T[47]=O):O=T[47],T[48]!==J?(R=()=>Q(!J),T[48]=J,T[49]=R):R=T[49];let ep=`p-1.5 rounded transition-colors ${V?"text-white/70 hover:text-white":"text-secondary hover:text-primary"}`;T[50]!==J?(U=J?(0,t.jsx)("svg",{className:"w-5 h-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})}):(0,t.jsx)("svg",{className:"w-5 h-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4 6h16M4 12h16M4 18h16"})}),T[50]=J,T[51]=U):U=T[51],T[52]!==J||T[53]!==el.menu||T[54]!==R||T[55]!==ep||T[56]!==U?(z=(0,t.jsx)("button",{onClick:R,className:ep,"aria-label":el.menu,"aria-expanded":J,children:U}),T[52]=J,T[53]=el.menu,T[54]=R,T[55]=ep,T[56]=U,T[57]=z):z=T[57];let ey=J&&(0,t.jsxs)("div",{className:"absolute right-0 top-full mt-2 w-52 bg-white rounded-lg shadow-lg border border-border-light py-2 z-50",children:[ei.flatMap(e=>{if(e.children)return e.children.map(e=>{let r=et===e.href||et?.startsWith(e.href+"/");return(0,t.jsx)(l.default,{href:e.href,className:`block px-4 py-2.5 text-sm transition-colors ${r?"text-primary font-medium bg-warm":"text-secondary hover:text-primary hover:bg-warm/50"}`,children:e.label},e.href)});let r=e.activePrefix||e.href,a=et===r||et?.startsWith(r+"/");return(0,t.jsx)(l.default,{href:e.href,className:`block px-4 py-2.5 text-sm transition-colors ${a?"text-primary font-medium bg-warm":"text-secondary hover:text-primary hover:bg-warm/50"}`,children:e.label},e.href)}),(0,t.jsx)("div",{className:"border-t border-border-light my-1.5"}),(0,t.jsx)(l.default,{href:(0,d.localePath)("/search",ea),className:"block px-4 py-2.5 text-sm text-secondary hover:text-primary hover:bg-warm/50 transition-colors",children:el.search})]});T[58]!==z||T[59]!==ey?(A=(0,t.jsxs)("div",{className:"relative lg:hidden",ref:Z,children:[z,ey]}),T[58]=z,T[59]=ey,T[60]=A):A=T[60];let eb=V?"hero":"default";return T[61]!==eb?(B=(0,t.jsx)(o.default,{variant:eb}
1),T[61]=eb,T[62]=B):B=T[62],(0,t.jsx)("header",{"data-site-header":"",className:`${ed} ${F?"sticky top-0 z-20":""} ${void 0===D?"":D}`,children:(0,t.jsxs)("div",{className:"flex items-center justify-between px-6 md:px-12 max-w-[var(--container-wide)] mx-auto",children:[_,(0,t.jsxs)("div",{className:"flex items-center gap-6",children:[(0,t.jsx)("nav",{className:"hidden lg:flex items-center gap-5",children:ei.map(e=>{let r=e.activePrefix||e.href,a=et===r||et?.startsWith(r+"/"),s=e.children?.some(e=>et===e.href||et?.startsWith(e.href+"/"));return e.children?(0,t.jsxs)("div",{className:"relative",ref:ee,children:[(0,t.jsxs)("button",{onClick:()=>Y(X===e.label?null:e.label),className:`text-sm font-sans tracking-wide transition-colors flex items-center gap-0.5 ${a||s?ex:em}`,children:[e.label,(0,t.jsx)(c.ChevronDown,{className:`w-3 h-3 transition-transform ${X===e.label?"rotate-180":""}`})]}),X===e.label&&(0,t.jsx)("div",{className:"absolute left-0 top-full mt-2 w-36 bg-white rounded-lg shadow-lg border border-border-light py-1.5 z-50",children:e.children.map(e=>{let r=et===e.href||et?.startsWith(e.href+"/");return(0,t.jsx)(l.default,{href:e.href,className:`block px-4 py-2 text-sm transition-colors ${r?"text-primary font-medium bg-warm":"text-secondary hover:text-primary hover:bg-warm/50"}`,children:e.label},e.href)})})]},e.href):(0,t.jsx)(l.default,{href:e.href,className:`text-sm font-sans tracking-wide transition-colors ${a?ex:em}`,children:e.label},e.href)})}),L,E,O,A,B]})]})})}])},481011,e=>{"use strict";var t=e.i(843476),r=e.i(500932),a=e.i(526732),l=e.i(304412),s=e.i(522016),i=e.i(271645),o=e.i(100930),n=e.i(635333);function c(){return(0,a.signOut)({callbackUrl:"/"})}function h(e){return e[0]}e.s(["default",0,function(e){let a,d,m,x,u,f,p,y,b,v,g=(0,r.c)(40),{variant:w}=e,j=void 0===w?"default":w,{data:k,status:N}=(0,l.useStableSession)(),C=(0,o.useLocale)(),[S,P]=(0,i.useState)(!1),[$,_]=(0,i.useState)(!1),L=(0,i.useRef)(null);g[0]===Symbol.for("react.memo_cache_sentinel")?(a=()=>_(!0),g[0]=a):a=g[0];let E=a;if(g[1]===Symbol.for("react.memo_cache_sentinel")?(d=()=>{let e=function(e){L.current&&!L.current.contains(e.target)&&P(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},m=[],g[1]=d,g[2]=m):(d=g[1],m=g[2]),(0,i.useEffect)(d,m),"loading"===N){let e;return g[3]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)("div",{className:"w-8 h-8"}),g[3]=e):e=g[3],e}if(!k){let e,r,a,l="hero"===j?"text-white/80 hover:text-white":"";g[4]!==j?(e="hero"===j?{}:{color:"var(--text-muted)"},g[4]=j,g[5]=e):e=g[5];let i=e;g[6]!==C?(r=(0,n.localePath)("/auth/signin",C),g[6]=C,g[7]=r):r=g[7];let o=`text-sm font-medium transition-colors hover:opacity-80 ${l}`,c="es"===C?"Iniciar sesión":"Sign in";return g[8]!==r||g[9]!==o||g[10]!==c||g[11]!==i?(a=(0,t.jsx)(s.default,{href:r,className:o,style:i,children:c}),g[8]=r,g[9]=o,g[10]=c,g[11]=i,g[12]=a):a=g[12],a}let W=k.user?.role,M="admin"===W||"superadmin"===W,O=k.user?.membership!=null;g[13]!==k.user?.email?.[0]||g[14]!==k.user?.name?(x=k.user?.name?.split(" ").map(h).join("").toUpperCase().slice(0,2)||k.user?.email?.[0]?.toUpperCase()||"?",g[13]=k.user?.email?.[0],g[14]=k.user?.name,g[15]=x):x=g[15];let R=x,U="hero"===j,z=O?"var(--accent-gold)":U?"rgba(255,255,255,0.3)":"var(--border-light)";g[16]!==z||g[17]!==O||g[18]!==U?(u=U?{background:O?"rgba(201,168,108,0.2)":"rgba(255,255,255,0.2)",color:"#fff",borderColor:z}:{background:O?"rgba(201,168,108,0.2)":"var(--bg-warm)",color:"var(--text-primary)",borderColor:z},g[16]=z,g[17]=O,g[18]=U,g[19]=u):u=g[19];let A=u;return g[20]!==S?(f=()=>P(!S),g[20]=S,g[21]=f):f=g[21],g[22]!==z||g[23]!==A||g[24]!==$||g[25]!==R||g[26]!==k.user?(p=k.user?.image&&!$?(0,t.jsx)("img",{src:k.user.image,alt:k.user.name||"User","data-avatar":"true",className:"w-8 h-8 rounded-full border-2",style:{borderColor:z},onError:E}):(0,t.jsx)("div",{"data-avatar":"true",className:"w-8 h-8 rounded-full flex items-center justify-center text-sm font-medium border-2",style:A,children:R}),g[22]=z,g[23]=A,g[24]=$,g[25]=R,g[26]=k.user,g[27]=p):p=g[27],g[28]!==f||g[29]!==p?(y=(0,t.jsx)("button",{onClick:f,"aria-label":"Account menu",className:"flex items-center gap-2 cursor-pointer focus:outline-none",children:p}),g[28]=f,g[29]=p,g[30]=y):y=g[30],g[31]!==M||g[32]!==S||g[33]!==C||g[34]!==k.user?.email||g[35]!==k.user?.name?(b=S&&(0,t.jsxs)("div",{className:"absolute right-0 mt-2 w-56 rounded-xl shadow-lg py-2 z-50",style:{background:"var(--bg-white)",border:"1px solid var(--border-light)"},children:[(0,t.jsxs)("div",{className:"px-4 py-2 border-b",style:{borderColor:"var(--border-light)"},children:[(0,t.jsx)("p",{className:"text-sm font-medium truncate",style:{color:"var(--text-primary)"},children:k.user?.name}),(0,t.jsx)("p",{className:"text-xs truncate",style:{color:"var(--text-muted)"},children:k.user?.email})]}),(0,t.jsxs)("div",{className:"py-1",children:[(0,t.jsx)(s.default,{href:"/account",className:"block px-4 py-2 text-sm hover:opacity-70 transition-opacity",style:{color:"var(--text-primary)"},onClick:()=>P(!1),children:"Account"}),(0,t.jsx)(s.default,{href:"/favorites",className:"block px-4 py-2 text-sm hover:opacity-70 transition-opacity",style:{color:"var(--text-primary)"},onClick:()=>P(!1),children:"Favorites"}),(0,t.jsx)(s.default,{href:"/lists",className:"block px-4 py-2 text-sm hover:opacity-70 transition-opacity",style:{color:"var(--text-primary)"},onClick:()=>P(!1),children:"My Lists"}),(0,t.jsx)(s.default,{href:"/reading-history",className:"block px-4 py-2 text-sm hover:opacity-70 transition-opacity",style:{color:"var(--text-primary)"},onClick:()=>P(!1),children:"Reading History"}),(0,t.jsx)(s.default,{href:(0,n.localePath)("/support",C),className:"block px-4 py-2 text-sm hover:opacity-70 transition-opacity",style:{color:"var(--text-primary)"},onClick:()=>P(!1),children:"Support"}),M&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.default,{href:"/analytics",className:"block px-4 py-2 text-sm hover:opacity-70 transition-opacity",style:{color:"var(--text-primary)"},onClick:()=>P(!1),children:"Analytics"}),(0,t.jsx)(s.default,{href:"/admin/introductions",className:"block px-4 py-2 text-sm hover:opacity-70 transition-opacity",style:{color:"var(--text-primary)"},onClick:()=>P(!1),children:"Introductions"}),(0,t.jsx)(s.default,{href:"/admin/users",className:"block px-4 py-2 text-sm hover:opacity-70 transition-opacity",style:{color:"var(--text-primary)"},onClick:()=>P(!1),children:"Users"}),(0,t.jsx)(s.default,{href:"/feedback",className:"block px-4 py-2 text-sm hover:opacity-70 transition-opacity",style:{color:"var(--text-primary)"},onClick:()=>P(!1),children:"Feedback"})]}),(0,t.jsx)("button",{onClick:c,className:"w-full text-left px-4 py-2 text-sm hover:opacity-70 transition-opacity cursor-pointer",style:{color:"var(--accent-rust)"},children:"Sign Out"})]})]}),g[31]=M,g[32]=S,g[33]=C,g[34]=k.user?.email,g[35]=k.user?.name,g[36]=b):b=g[36],g[37]!==b||g[38]!==y?(v=(0,t.jsxs)("div",{ref:L,className:"relative",children:[y,b]}),g[37]=b,g[38]=y,g[39]=v):v=g[39],v}])}]); 2 3//# chunkId=01a0ca74-b99f-7972-b7ee-e078932ba6ad
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.