1var Gr=Object.defineProperty;var d=(g,i)=>Gr(g,"name",{value:i,configurable:!0});import{y as Dt,C as dt,D as re,a5 as Mt,aD as Wr,c as t,g as n,F as Y,k as f,l as r,dj as c,S as y,t as I,cb as br,cc as Vr,cd as Yr,cs as qr,cv as Qr,dk as Jr,cJ as Xr,J as lr,K as rt,bE as en,bX as tn,N as It,s as nt,aA as Et,a7 as Ut,w as se,bn as Ft,A as ut,m as le,cD as rn,cE as nn,cF as on,h as Gt,d as ar,e as wt,aY as At,u as Wt,aW as sr,aT as ln,X as dr,E as Q,dl as St,o as an,n as sn,_ as De,dm as j,W as tt,V as he,q as te,bc as pr,j as $t,Z as Ot,dn as ur,ah as dn,b as Nr,ak as Mr,a4 as Ir,bx as Fr,bp as Ar,aH as Kr,R as zr,bC as Ht,aZ as un,as as Ge,Y as tr,x as Sr,bS as rr,aw as jt,bG as Lr,ax as Zr,ay as pt,dp as Rr,dq as Br,av as Er,T as cn}from"./index-f68349cc.js";import{a as fn,s as nr}from"./dates-748019a8.js";import{F as cr}from"./FollowButton-22f8cbf7.js";import{T as ie}from"./OA5MXRPO-ff64568a.js";import{A as gn}from"./ArticlePreview-8e45b354.js";import{B as vn}from"./ButtonCopy-9e5ad856.js";import{L as Ur}from"./Loader-71f47e19.js";import{N as $r}from"./Note-7c5a6841.js";import{P as st}from"./Paginator-11fc995b.js";import{N as wr}from"./NoteGallery-2e32436e.js";import{a as _n,d as Or,P as mn}from"./ParsedNote-c3db899f.js";import{F as ir,L as hn,a as bn,S as kt,b as pn}from"./FeedNoteSkeleton-1ceecff0.js";import{A as Sn}from"./ArticlePreviewSkeleton-f87e7ecf.js";import{a as Tt}from"./index-79fe1018.js";import{s as K}from"./Skeleton.module-cebd7135.js";import{s as xt}from"./scroll-88dc0c55.js";import{P as $n}from"./ProfileQrCodeModal-55e24352.js";import{P as or}from"./PremiumCohortInfo-954de31b.js";import{W as wn}from"./Wormhole-f714c5bd.js";import{S as yn}from"./StickySidebar-c3b41a89.js";import{A as Pn}from"./ArticleShort-2f918654.js";import{A as yr}from"./ArticlePreviewSidebarSkeleton-a9e2109a.js";import{W as Cn}from"./WalletBalanceWidget-e8200d9a.js";import{S as kn}from"./Search-0a7e1dfb.js";import"./ButtonFlip-90f1ffdf.js";import"./FollowButton.module-e4529910.js";import"./QZDH5R5B-99961c38.js";import"./LR7LBJN3-53927935.js";import"./SOM3K36D-68985547.js";import"./NoteContextTrigger-f1fd59ff.js";import"./streaming-d9387461.js";import"./wallet-11185009.js";import"./ButtonGhost-1d894155.js";import"./qr-code-styling-79e7fb37.js";import"./qr_nostrich-54e27ae3.js";import"./qr_lightning-fba50a71.js";import"./FullEmojiPicker-25bc79d6.js";import"./LiveVideo.module-0b55f634.js";import"./NoteVideo-5147c57c.js";import"./currency-d55f0621.js";import"./SearchOption-2ce78828.js";var Pr=I("<br>"),xn=I("<span><a link target=_blank>"),Tn=I("<span> "),Nn=I("<span class=whole> <!> "),Mn=I("<div>");const Nt=d(g=>{const i=Dt(),[e,h]=dt({}),[m,v]=dt([]),[o,S]=dt([]);let T="text";const C=d(b=>{const s=b.replace(tn," __LB__ ").replace(/\s+/g," __SP__ ").split(/[\s]+/);v(()=>[...s])},"tokenizeAbout"),p=d((b,x,s)=>{S(k=>{if(k.length>0&&k[k.length-1].type===b){const Z={...k[k.length-1]};return Z.tokens=[...Z.tokens,x],s&&(Z.meta={...s}),[...k.slice(0,k.length-1),{...Z}]}return[...k,{type:b,tokens:[x],meta:{...s}}]})},"updateAboutContent"),M=d(b=>{if(b==="__LB__"){p("linebreak",b),T="LB";return}if(b==="__SP__"){["LB"].includes(T)||p("text"," ");return}if(br(b)){T="text",p("text",b);return}if(Vr(b)){const x=b.indexOf("http");if(x>0){const k=b.slice(0,x),Z=(b.match(Yr)||[])[0];if(Z){const X=b.substring(Z.length+x,b.length);M(k),M(Z),M(X);return}else{M(k),M(b.slice(x));return}}const s=b[b.length-1];if(br(s)){M(b.slice(0,-1)),M(s);return}T="link",p("link",b);return}if(qr(b)){T="usermention",p("usermention",b);return}if(Qr(b)){T="hashtag",p("hashtag",b);return}T="text",p("text",b)},"parseAboutToken"),U=d(b=>{const x=Math.min(2,b.tokens.length),s=Array(x).fill(Pr());return t(Y,{each:s,children:k=>Pr()})},"renderLinebreak"),J=d(b=>{let x=[];for(let k=0;k<b.tokens.length;k++){const Z=b.tokens[k];x.push(Z)}return x.join(" ").replaceAll("<","<").replaceAll(">",">")},"renderText"),ve=d((b,x)=>t(Y,{get each(){return b.tokens},children:s=>(()=>{var k=xn(),Z=k.firstChild;return nt(k,"data-url",s),nt(Z,"href",s),n(Z,s),k})()}),"renderLinks"),z=d(b=>t(Y,{get each(){return b.tokens}
1,children:x=>{let[s,k]=x.split(":");if(!k)return x;let Z="",X=nn.exec(k);if(X){const B=X.index;Z=k.slice(B),k=k.slice(0,B)}try{const B=Et.decode(k).data,G=typeof B=="string"?B:B.pubkey,q=Ut(G),u=i?.actions.profileLink(q)||"";let l=e&&e[G];const a=l?se(l):Ft(q);return l?[le(()=>rn({user:l,npub:q})),Z]:[t(ut,{href:u,get children(){return["@",a]}}),Z]}catch{return(()=>{var G=Tn();return G.firstChild,n(G,x,null),f(()=>r(G,c.error)),G})()}}}),"renderUserMention"),de=d(b=>t(Y,{get each(){return b.tokens},children:x=>{let[s,k]=x.split("#"),Z="",X=on.exec(k);if(X){const B=X.index;Z=k.slice(B),k=k.slice(0,B)}return(()=>{var B=Nn(),G=B.firstChild,q=G.nextSibling;return q.nextSibling,n(B,t(ut,{href:`/search/%23${k}`,get children(){return["#",k]}}),q),n(B,Z,null),B})()}}),"renderHashtag"),we=d((b,x)=>{const s={linebreak:U,text:J,link:ve,usermention:z,hashtag:de};return s[b.type]?s[b.type](b,x):[]},"renderAboutContent");re(()=>{if(m.length!==0)for(let b=0;b<m.length;b++)M(m[b])});const Ce=d(b=>{let x=[],s;do s=Jr.exec(b),s&&x.push(Xr(s[1]));while(s);const k=`pa_u_${It}`,Z=lr(k,{onEvent:(X,B)=>{if(B?.kind===rt.Metadata){const G=B,q=JSON.parse(G.content);h(()=>({[G.pubkey]:{...q}}))}},onEose:()=>{Z(),C(b)}});en(x,k)},"parseForMentions");return re(Mt(()=>g.about,(b,x)=>{b&&b!==x&&b.length>0&&(S([]),v([]),h(Wr({})),Ce(b))})),t(y,{get when(){return o.length>0},get children(){var b=Mn();return n(b,t(Y,{each:o,children:(x,s)=>(s()===o.length-1&&g.onParseComplete&&g.onParseComplete(),we(x,s()))})),f(()=>r(b,c.profileAbout)),b}})},"ProfileAbout"),In="_missingImage_148d8_9",Fn="_profileTabs_148d8_13",An="_fadeIn_148d8_1",Kn="_profileTab_148d8_13",zn="_profileTabIndicator_148d8_50",Ln="_stat_148d8_60",Zn="_statNumber_148d8_66",Rn="_statName_148d8_72",Bn="_profileNotes_148d8_80",En="_mutedProfile_148d8_84",Un="_separator_148d8_114",On="_zapItem_148d8_119",Hn="_zapInfo_148d8_129",jn="_zapHeader_148d8_136",Dn="_zapName_148d8_140",Gn="_zapTime_148d8_147",Wn="_zapMessage_148d8_159",Vn="_zapValue_148d8_169",Yn="_zapAmount_148d8_175",qn="_zapUnit_148d8_184",Qn="_totalSats_148d8_193",Jn="_totalSatsLabel_148d8_198",Xn="_totalSatsAmount_148d8_205",ei="_tabContent_148d8_216",ti="_profileRelays_148d8_221",ri="_profileRelay_148d8_221",ni="_relayIcon_148d8_237",ii="_relayUrl_148d8_245",oi="_profileTabsPlaceholder_148d8_256",li="_loader_148d8_270",ai="_galleryGrid_148d8_287",si="_profileZaps_148d8_301",F={missingImage:In,profileTabs:Fn,fadeIn:An,profileTab:Kn,profileTabIndicator:zn,stat:Ln,statNumber:Zn,statName:Rn,profileNotes:Bn,mutedProfile:En,separator:Un,zapItem:On,zapInfo:Hn,zapHeader:jn,zapName:Dn,zapTime:Gn,zapMessage:Wn,zapValue:Vn,zapAmount:Yn,zapUnit:qn,totalSats:Qn,totalSatsLabel:Jn,totalSatsAmount:Xn,tabContent:ei,profileRelays:ti,profileRelay:ri,relayIcon:ni,relayUrl:ii,profileTabsPlaceholder:oi,loader:li,galleryGrid:ai,profileZaps:si};var di=I("<div><div></div><div><div></div><div>");const ui=d(g=>(()=>{var i=di(),e=i.firstChild,h=e.nextSibling,m=h.firstChild,v=m.nextSibling;return f(o=>{var S=K.zapSkeleton,T=K.zapinfo,C=K.zapSubjectInfo,p=K.zapDate,M=K.zapSubjectContent;return S!==o.e&&r(i,o.e=S),T!==o.t&&r(e,o.t=T),C!==o.a&&r(h,o.a=C),p!==o.o&&r(m,o.o=p),M!==o.i&&r(v,o.i=M),o},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0}),i})(),"ZapSkeleton");var ci=I("<div><div></div><div><div></div><div>");const Hr=d(g=>(()=>{var i=ci(),e=i.firstChild,h=e.nextSibling,m=h.firstChild,v=m.nextSibling;return f(o=>{var S=K.profileGalleryImageSkeleton,T=K.zapinfo,C=K.zapSubjectInfo,p=K.zapDate,M=K.zapSubjectContent;return S!==o.e&&r(i,o.e=S),T!==o.t&&r(e,o.t=T),C!==o.a&&r(h,o.a=C),p!==o.o&&r(m,o.o=p),M!==o.i&&r(v,o.i=M),o},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0}),i})(),"ProfileGalleryImageSkeleton");var lt=I("<div><div></div><div>"),Xe=I("<div><button>"),D=I("<div>"),Bt=I("<div class=animated>"),fi=I("<div style=margin-top:40px>");const gi=d(g=>{const i=wt(),e=At(),h=Wt();sr();const m=ln(),v=dr(),o=d(()=>m.hash.length>1?m.hash.substring(1):"notes","hash"),[S,T]=Q(o()),C=d(async()=>{const u=g.profileKey;u&&h?.actions.addToAllowlist(u)},"addToAllowlist"),p=d((u,l=!1)=>{const a=h?.mutelists.find($=>$.pubkey===h.publicKey)?.content;return u&&h?.muted.includes(u)&&(l?!0:a)},"isMuted"),M=d(()=>e?.filterReason!==null,"isFiltered"),U=d(()=>{const u=g.profileKey;!h||!u||h.actions.removeFromMuteList(u,"user",()=>{g.setProfile&&g.setProfile(u),s(S())})},"unMuteProfile"),[J,ve]=Q(0),[z,de]=dt([]);re(()=>{if(!e||e.isFetchingContacts)return;const u=[...e.contacts||[]];u.sort((l,a)=>{const $=e.profileStats[l.pubkey]||0;return(e.profileStats[a.pubkey]||0)>=$?1:-1}),de(()=>[...u.slice(0,J()+St)])});const[we,Ce]=Q(0),[b,x]=dt([]);re(()=>{if(!e||e.isFetchingFollowers)return;const u=[...e.followers||[]];u.sort((l,a)=>{const $=e.profileStats[l.pubkey]||0;return(e.profileStats[a.pubkey]||0)>=$?1:-1}),x(l=>[...l,...u.slice(we(),we()+St)])}),re(Mt(()=>g.profileKey,(u,l)=>{if(!u||u===l)return;const a=o();e?.actions.clearNotes(),e?.actions.clearArticles(),e?.actions.clearGallery(),e?.actions.clearZaps(),e?.actions.clearReplies(),k(a)}));const s=d(u=>{T(()=>u),window.location.hash=u,e?.actions.resetScroll(),k(u)}
1,"onChangeValue"),k=d(u=>{if(e)switch(u){case"reads":e.articles.length===0&&e.actions.getProfileMegaFeed(g.profileKey,"reads");break;case"notes":e.notes.length===0&&e.actions.getProfileMegaFeed(g.profileKey,"notes");break;case"replies":e.replies.length===0&&e.actions.getProfileMegaFeed(g.profileKey,"replies");break;case"media":e.gallery.length===0&&e.actions.getProfileMegaFeed(g.profileKey,"media");break;case"zaps":e.zaps.length===0&&e.actions.fetchZapList(g.profileKey);break;case"relays":Object.keys(e.relays||{}).length===0&&e.actions.fetchRelayList(g.profileKey);break}},"updateTabContent"),Z=d(()=>e?.gallery.filter(u=>pr.test(u.content)),"galleryImages"),X=d(u=>pr.test(u.content),"hasImages"),B=d(u=>{if(u.zappedKind===rt.Text)return e?.zappedNotes.find(l=>l.id===u.zappedId);if(u.zappedKind===rt.LongForm)return e?.zappedArticles.find(l=>[l.noteId,l.id].includes(u.zappedId||""));if(u.zappedKind===rt.Metadata)return u.reciver},"getZapSubject");re(Mt(S,(u,l)=>{if(u!==l){if(u==="notes"&&!e?.isFetching){xt(e?.scrollTop.notes);return}if(u==="reads"&&!e?.isFetching){xt(e?.scrollTop.reads);return}if(u==="replies"&&!e?.isFetchingReplies){xt(e?.scrollTop.replies);return}if(u==="media"&&!e?.isFetchingGallery){xt(e?.scrollTop.media);return}if(u==="zaps"&&!e?.isFetchingZaps){xt(e?.scrollTop.zaps);return}}}));const G=d(()=>{const u=document.body.scrollTop||document.documentElement.scrollTop,l=S();e?.actions.updateScrollTop(u,l)},"onScroll");an(()=>{window.addEventListener("scroll",G)}),sn(()=>{window.removeEventListener("scroll",G)});const q=d(u=>{try{return`/e/${u.noteIdShort}`}catch{return"/404"}},"noteLinkId");return t(ie,{get value(){return o()},onChange:s,get defaultValue(){return o()},get children(){return[t(y,{get when(){return e&&e.fetchedUserStats},get children(){return t(ie.List,{get class(){return F.profileTabs},get children(){return[t(ie.Trigger,{get class(){return F.profileTab},value:"notes",get children(){var u=lt(),l=u.firstChild,a=l.nextSibling;return n(l,()=>De(e?.userStats?.note_count||0)),n(a,()=>i.formatMessage(j.stats.notes)),f($=>{var E=F.stat,O=F.statNumber,ee=F.statName;return E!==$.e&&r(u,$.e=E),O!==$.t&&r(l,$.t=O),ee!==$.a&&r(a,$.a=ee),$},{e:void 0,t:void 0,a:void 0}),u}}),t(ie.Trigger,{get class(){return F.profileTab},value:"replies",get children(){var u=lt(),l=u.firstChild,a=l.nextSibling;return n(l,()=>De(e?.userStats?.reply_count||0)),n(a,()=>i.formatMessage(j.stats.replies)),f($=>{var E=F.stat,O=F.statNumber,ee=F.statName;return E!==$.e&&r(u,$.e=E),O!==$.t&&r(l,$.t=O),ee!==$.a&&r(a,$.a=ee),$},{e:void 0,t:void 0,a:void 0}),u}}),t(ie.Trigger,{get class(){return F.profileTab},value:"reads",get children(){var u=lt(),l=u.firstChild,a=l.nextSibling;return n(l,()=>De(e?.userStats?.long_form_note_count||0)),n(a,()=>i.formatMessage(j.stats.articles)),f($=>{var E=F.stat,O=F.statNumber,ee=F.statName;return E!==$.e&&r(u,$.e=E),O!==$.t&&r(l,$.t=O),ee!==$.a&&r(a,$.a=ee),$},{e:void 0,t:void 0,a:void 0}),u}}),t(ie.Trigger,{get class(){return F.profileTab},value:"media",get children(){var u=lt(),l=u.firstChild,a=l.nextSibling;return n(l,()=>De(e?.userStats.media_count||0)),n(a,()=>i.formatMessage(j.stats.gallery)),f($=>{var E=F.stat,O=F.statNumber,ee=F.statName;return E!==$.e&&r(u,$.e=E),O!==$.t&&r(l,$.t=O),ee!==$.a&&r(a,$.a=ee),$},{e:void 0,t:void 0,a:void 0}),u}}),t(ie.Trigger,{get class(){return F.profileTab},value:"zaps",get children(){var u=lt(),l=u.firstChild,a=l.nextSibling;return n(l,()=>De(e?.userStats?.total_zap_count||0)),n(a,()=>i.formatMessage(j.stats.zaps)),f($=>{var E=F.stat,O=F.statNumber,ee=F.statName;return E!==$.e&&r(u,$.e=E),O!==$.t&&r(l,$.t=O),ee!==$.a&&r(a,$.a=ee),$},{e:void 0,t:void 0,a:void 0}),u}}),t(ie.Trigger,{get class(){return F.profileTab},value:"relays",get children(){var u=lt(),l=u.firstChild,a=l.nextSibling;return n(l,()=>De(e?.userStats?.relay_count||0)),n(a,()=>i.formatMessage(j.stats.relays)),f($=>{var E=F.stat,O=F.statNumber,ee=F.statName;return E!==$.e&&r(u,$.e=E),O!==$.t&&r(l,$.t=O),ee!==$.a&&r(a,$.a=ee),$},{e:void 0,t:void 0,a:void 0}),u}}),t(ie.Indicator,{get class(){return F.profileTabIndicator}})]}})}}),t(ie.Content,{get class(){return F.tabContent},value:"reads",get children(){var u=D();return n(u,t(tt,{get children(){return[t(he,{get when(){return p(g.profileKey)},get children(){var l=Xe(),a=l.firstChild;return n(l,()=>i.formatMessage(j.isMuted,{name:e?.userProfile?se(e?.userProfile):g.profileKey}),a),a.$$click=U,n(a,()=>i.formatMessage(te.unmute)),f(()=>r(l,F.mutedProfile)),l}}),t(he,{get when(){return M()},get children(){var l=Xe(),a=l.firstChild;return n(l,()=>i.formatMessage(j.isFiltered),a),a.$$click=C,n(a,()=>i.formatMessage(te.addToAllowlist)),f(()=>r(l,F.mutedProfile)),l}}),t(he,{when:!0,get children(){return t(Tt,{name:"slide-fade",get children(){return[(()=>{var l=D();return n(l,t(y,{get when(){return le(()=>!!(e&&e.isFetching))()&&e.articles.length===0},get children(){var a=D();return n(a,t(Y,{each:new Array(10),children:()=>t(Sn,{})})),a}})),l})(),(()=>{var l=D();return n(l,t(y,{get when(){return le(()=>!!(e&&e.articles.length===0))()&&!e.isFetching},get children(){var a=D();return n(a,()=>i.formatMessage(j.noArticles,{name:e?.userProfile?se(e?.userProfile):g.profileKey})),f(()=>r(a,F.mutedProfile)),a}}
1)),l})(),t(y,{get when(){return e&&e.articles.length>0},get children(){var l=D();return n(l,t(Y,{get each(){return e?.articles},children:a=>(()=>{var $=Bt();return n($,t(gn,{article:a,onClick:v,onRemove:E=>{e?.actions.removeEvent(E,"articles")}})),$})()}),null),n(l,t(st,{loadNextPage:()=>{e?.actions.getProfileMegaFeedNextPage(g.profileKey,"reads")},isSmall:!0}),null),l}})]}})}})]}})),f(()=>r(u,F.profileNotes)),u}}),t(ie.Content,{get class(){return F.tabContent},value:"notes",get children(){var u=D();return n(u,t(tt,{get children(){return[t(he,{get when(){return p(g.profileKey)},get children(){var l=Xe(),a=l.firstChild;return n(l,()=>i.formatMessage(j.isMuted,{name:e?.userProfile?se(e?.userProfile):g.profileKey}),a),a.$$click=U,n(a,()=>i.formatMessage(te.unmute)),f(()=>r(l,F.mutedProfile)),l}}),t(he,{get when(){return M()},get children(){var l=Xe(),a=l.firstChild;return n(l,()=>i.formatMessage(j.isFiltered),a),a.$$click=C,n(a,()=>i.formatMessage(te.addToAllowlist)),f(()=>r(l,F.mutedProfile)),l}}),t(he,{when:!0,get children(){return t(Tt,{name:"slide-fade",get children(){return[(()=>{var l=D();return n(l,t(y,{get when(){return le(()=>!!(e&&e.isFetching))()&&e.notes.length===0},get children(){var a=D();return n(a,t(Y,{each:new Array(10),children:()=>t(ir,{})})),a}})),l})(),(()=>{var l=D();return n(l,t(y,{get when(){return le(()=>!!(e&&e.notes.length===0))()&&!e.isFetching},get children(){var a=D();return n(a,()=>i.formatMessage(j.noNotes,{name:e?.userProfile?se(e?.userProfile):g.profileKey})),f(()=>r(a,F.mutedProfile)),a}})),l})(),t(y,{get when(){return e&&e.notes.length>0},get children(){var l=D();return n(l,t(Y,{get each(){return e?.notes},children:a=>(()=>{var $=Bt();return n($,t($r,{note:a,shorten:!0,onRemove:(E,O)=>{if(a.pubkey!==h?.publicKey){e?.actions.removeEvent(E,"notes");return}e?.actions.removeEvent(E,"notes",O)}})),$})()}),null),n(l,t(st,{loadNextPage:()=>{e?.actions.getProfileMegaFeedNextPage(g.profileKey,"notes")},isSmall:!0}),null),l}})]}})}})]}})),f(()=>r(u,F.profileNotes)),u}}),t(ie.Content,{get class(){return F.tabContent},value:"replies",get children(){var u=D();return n(u,t(tt,{get children(){return[t(he,{get when(){return p(g.profileKey)},get children(){var l=Xe(),a=l.firstChild;return n(l,()=>i.formatMessage(j.isMuted,{name:e?.userProfile?se(e?.userProfile):g.profileKey}),a),a.$$click=U,n(a,()=>i.formatMessage(te.unmute)),f(()=>r(l,F.mutedProfile)),l}}),t(he,{get when(){return M()},get children(){var l=Xe(),a=l.firstChild;return n(l,()=>i.formatMessage(j.isFiltered),a),a.$$click=C,n(a,()=>i.formatMessage(te.addToAllowlist)),f(()=>r(l,F.mutedProfile)),l}}),t(he,{when:!0,get children(){return t(Tt,{name:"slide-fade",get children(){return[(()=>{var l=D();return n(l,t(y,{get when(){return le(()=>!!(e&&e.isFetchingReplies))()&&e.replies.length===0},get children(){var a=D();return n(a,t(Y,{each:new Array(10),children:()=>t(ir,{})})),a}})),l})(),(()=>{var l=D();return n(l,t(y,{get when(){return le(()=>!!(e&&e.replies.length===0))()&&!e.isFetchingReplies},get children(){var a=D();return n(a,()=>i.formatMessage(j.noReplies,{name:e?.userProfile?se(e?.userProfile):g.profileKey})),f(()=>r(a,F.mutedProfile)),a}})),l})(),t(y,{get when(){return e&&e.replies.length>0},get children(){var l=D();return n(l,t(Y,{get each(){return e?.replies},children:a=>(()=>{var $=Bt();return n($,t($r,{note:a,shorten:!0,onRemove:E=>{e?.actions.removeEvent(E,"replies")}})),$})()}),null),n(l,t(st,{loadNextPage:()=>{e?.actions.getProfileMegaFeedNextPage(g.profileKey,"replies")},isSmall:!0}),null),l}})]}})}})]}})),f(()=>r(u,F.profileNotes)),u}}),t(ie.Content,{get class(){return F.tabContent},value:"media",get children(){var u=D();return n(u,t(tt,{get children(){return[t(he,{get when(){return p(g.profileKey)},get children(){var l=Xe(),a=l.firstChild;return n(l,()=>i.formatMessage(j.isMuted,{name:e?.userProfile?se(e?.userProfile):g.profileKey}),a),a.$$click=U,n(a,()=>i.formatMessage(te.unmute)),f(()=>r(l,F.mutedProfile)),l}}),t(he,{get when(){return M()},get children(){var l=Xe(),a=l.firstChild;return n(l,()=>i.formatMessage(j.isFiltered),a),a.$$click=C,n(a,()=>i.formatMessage(te.addToAllowlist)),f(()=>r(l,F.mutedProfile)),l}}),t(he,{when:!0,get children(){return[(()=>{var l=D();return n(l,t(y,{get when(){return le(()=>!!(e&&e.isFetchingGallery))()&&e.gallery.length===0},get children(){var a=D();return n(a,t(Y,{each:new Array(24),children:()=>t(Hr,{})})),f(()=>r(a,F.galleryGrid)),a}})),l})(),(()=>{var l=D();return n(l,t(y,{get when(){return le(()=>!!(e&&e.gallery.length===0))()&&!e.isFetchingGallery},get children(){var a=D();return n(a,()=>
1i.formatMessage(j.noReplies,{name:e?.userProfile?se(e?.userProfile):g.profileKey})),f(()=>r(a,F.mutedProfile)),a}})),l})(),t(y,{get when(){return e&&e.gallery.length>0},get children(){return[(()=>{var l=D();return n(l,t(Y,{get each(){return Z()},children:a=>t(tt,{get children(){return[t(he,{get when(){return X(a)},get children(){return t(wr,{note:a})}}),t(he,{get when(){return!X(a)},get children(){return t(ut,{get href(){return q(a)},get class(){return F.missingImage},get children(){return t(wr,{note:a})}})}})]}})})),f(()=>r(l,F.galleryGrid)),l})(),t(st,{loadNextPage:()=>{e?.actions.getProfileMegaFeedNextPage(g.profileKey,"media")},isSmall:!0})]}})]}})]}})),f(()=>r(u,F.profileNotes)),u}}),t(ie.Content,{get class(){return F.tabContent},value:"zaps",get children(){var u=D();return n(u,t(Tt,{name:"slide-fade",get children(){return[(()=>{var l=D();return n(l,t(y,{get when(){return le(()=>!!(e&&e.isFetchingZaps))()&&e.zaps.length===0},get children(){var a=D();return n(a,t(Y,{each:new Array(10),children:()=>t(ui,{})})),a}})),l})(),(()=>{var l=D();return n(l,t(y,{get when(){return le(()=>!!(e&&!e.isFetchingZaps))()&&e.zaps.length===0},get children(){var a=D();return n(a,()=>i.formatMessage(j.noZaps,{name:e?.userProfile?se(e?.userProfile):g.profileKey})),f(()=>r(a,F.mutedProfile)),a}})),l})(),t(y,{get when(){return e&&e.zaps.length>0},get children(){var l=D();return n(l,t(Y,{get each(){return e?.zaps},children:a=>(()=>{var $=Bt();return n($,t(_n,{zap:a,get subject(){return B(a)}})),$})()}),null),n(l,t(st,{get loadNextPage(){return e?.actions.fetchNextZapsPage},isSmall:!0}),null),f(()=>r(l,F.profileZaps)),l}})]}})),f(()=>r(u,F.profileNotes)),u}}),t(ie.Content,{get class(){return F.tabContent},value:"relays",get children(){var u=D();
1return n(u,t(y,{get when(){return!e?.isFetchingRelays},get fallback(){return(()=>{var l=fi();return n(l,t(Ur,{})),l})()},get children(){return t(Y,{get each(){return Object.keys(e?.relays||{})},get fallback(){return(()=>{var l=D();return n(l,()=>i.formatMessage(j.noRelays,{name:e?.userProfile?se(e?.userProfile):g.profileKey})),f(()=>r(l,F.mutedProfile)),l})()},children:l=>(()=>{var a=lt(),$=a.firstChild,E=$.nextSibling;return n(E,l),n(a,t(vn,{copyValue:l,get label(){return i.formatMessage(te.copy)}}),null),f(O=>{var ee=F.profileRelay,_e=F.relayIcon,me=F.relayUrl;return ee!==O.e&&r(a,O.e=ee),_e!==O.t&&r($,O.t=_e),me!==O.a&&r(E,O.a=me),O},{e:void 0,t:void 0,a:void 0}),a})()})}})),f(()=>r(u,F.profileRelays)),u}})]}})},"ProfileTabs"),jr=Gt(gi);ar(["click"]);const vi="_hidden_273oa_1",_i="_profileFollowModal_273oa_5",mi="_tabContent_273oa_17",hi="_profileTabs_273oa_24",bi="_profileTab_273oa_24",pi="_profileTabIndicator_273oa_53",Si="_footer_273oa_63",$i="_date_273oa_70",Ae={hidden:vi,profileFollowModal:_i,tabContent:mi,profileTabs:hi,profileTab:bi,profileTabIndicator:pi,footer:Si,date:$i},wi="_profileContact_1swmd_1",yi="_info_1swmd_13",Pi="_personal_1swmd_20",Ci="_profileInfo_1swmd_24",ki="_name_1swmd_29",xi="_nip05_1swmd_44",Ti="_action_1swmd_62",Ni="_stats_1swmd_66",Mi="_number_1swmd_69",Ii="_label_1swmd_76",Fi="_placeholderDiv_1swmd_85",Le={profileContact:wi,info:yi,personal:Pi,profileInfo:Ci,name:ki,nip05:xi,action:Ti,stats:Ni,number:Mi,label:Ii,placeholderDiv:Fi};var Ai=I("<span>"),Ki=I("<div><div><div></div><div>"),zi=I("<div><div></div><div>"),Li=I("<div><div>"),Zi=I("<div>");const Ri=d(g=>{const i=wt(),e=Wt(),h=Dt();return(()=>{var m=Li(),v=m.firstChild;return n(m,t(ut,{get href(){return h?.actions.profileLink(g.profile?.npub)||""},get class(){return Le.info},get children(){var o=Ki(),S=o.firstChild,T=S.firstChild,C=T.nextSibling;return n(o,t($t,{get src(){return g.profile?.picture},size:"sm"}),S),n(T,()=>se(g.profile)),n(C,t(y,{get when(){return g.profile?.nip05},get children(){var p=Ai();return n(p,()=>Ot(g.profile)),f(M=>{var U=Le.verifiedBy,J=g.profile?.nip05;return U!==M.e&&r(p,M.e=U),J!==M.t&&nt(p,"title",M.t=J),M},{e:void 0,t:void 0}),p}})),f(p=>{var M=Le.personal,U=Le.profileInfo,J=Le.name,ve=Le.nip05;return M!==p.e&&r(o,p.e=M),U!==p.t&&r(S,p.t=U),J!==p.a&&r(T,p.a=J),ve!==p.o&&r(C,p.o=ve),p},{e:void 0,t:void 0,a:void 0,o:void 0}),o}}),v),n(v,t(y,{get when(){return g.profileStats},get children(){var o=zi(),S=o.firstChild,T=S.nextSibling;return n(S,()=>De(g.profileStats)),n(T,()=>i.formatMessage(j.stats.followers)),f(C=>{var p=Le.stats,M=Le.number,U=Le.label;return p!==C.e&&r(o,C.e=p),M!==C.t&&r(S,C.t=M),U!==C.a&&r(T,C.a=U),C},{e:void 0,t:void 0,a:void 0}),o}}),null),n(v,t(y,{get when(){return e?.publicKey!==g.profile?.pubkey||!e?.following.includes(g.profile?.pubkey||"")},get fallback(){return(()=>{var o=Zi();return f(()=>r(o,Le.placeholderDiv)),o})()},get children(){return t(cr,{get person(){return g.profile},get postAction(){return g.postAction},get light(){return g.light}})}}),null),f(o=>{var S=g.id,T=Le.profileContact,C=Le.action;return S!==o.e&&nt(m,"id",o.e=S),T!==o.t&&r(m,o.t=T),C!==o.a&&r(v,o.a=C),o},{e:void 0,t:void 0,a:void 0}),m})()},"ProfileContact"),Cr=Gt(Ri);var et=I("<div>"),Bi=I("<div><div>Last updated: <!> ago</div><div>"),kr=I("<div style=margin-top:40px>");const Ei=d(g=>{const i=wt(),e=At(),[h,m]=Q(),[v,o]=Q("follows");re(()=>{const b=g.open;b!==void 0&&b!==!1&&o(()=>b)}),re(()=>{h()!==e?.profileKey&&g.open&&(m(()=>e?.profileKey),S())});const S=d(()=>{de(()=>[]),ve(()=>0),M(()=>[]),C(()=>0),e?.contacts.length===0&&e.actions.fetchContactList(e.profileKey),e?.followers.length===0&&e.actions.fetchFollowerList(e.profileKey)},"fetchContacts"),[T,C]=Q(0),[p,M]=dt([]);re(()=>{if(!e||e.isFetchingContacts)return;const b=[...e.contacts||[]].filter(x=>x.pubkey!==e.profileKey);b.sort((x,s)=>{const k=e.profileStats[x.pubkey]||0;return(e.profileStats[s.pubkey]||0)>=k?1:-1}),M(()=>[...b.slice(0,T()+St)])});const U=d(()=>{C(T()+St)},"loadMoreFollows"),[J,ve]=Q(0),[z,de]=dt([]);re(()=>{if(!e||e.isFetchingFollowers)return;const b=[...e.followers||[]].filter(x=>x.pubkey!==e.profileKey);b.sort((x,s)=>{const k=e.profileStats[x.pubkey]||0;return(e.profileStats[s.pubkey]||0)>=k?1:-1}),de(x=>[...x,...b.slice(J(),J()+St)])});const we=d(()=>{ve(J()+St)},"loadMoreFollowers"),Ce=d((b,x)=>{b?e?.actions.removeContact(x):e?.actions.addContact(x,e.followers)},"onContactAction");return ur(b=>{g.setOpen&&g.setOpen(!1)}),t(dn,{get open(){return g.open!==!1}
1,get setOpen(){return g.setOpen},get triggerClass(){return Ae.hidden},get title(){return(()=>{var b=et();return n(b,t(ie,{get value(){return v()},onChange:o,get children(){return t(ie.List,{get class(){return Ae.profileTabs},get children(){return[t(ie.Trigger,{get class(){return Ae.profileTab},value:"follows",get children(){return["Following",le(()=>le(()=>!!g.stats?.following)()?` (${De(g.stats.following)})`:"")]}}),t(ie.Trigger,{get class(){return Ae.profileTab},value:"followers",get children(){return["Followers",le(()=>le(()=>!!g.stats?.followers)()?` (${De(g.stats.followers)})`:"")]}}),t(ie.Indicator,{get class(){return Ae.profileTabIndicator}})]}})}})),f(()=>r(b,Ae.dialogTitle)),b})()},get children(){var b=et();return n(b,t(ie,{get value(){return v()},get children(){return[t(ie.Content,{value:"follows",get children(){return[(()=>{var x=et();return n(x,t(y,{get when(){return!e?.isFetchingContacts},get fallback(){return(()=>{var s=kr();return n(s,t(Ur,{})),s})()},get children(){return[t(Y,{each:p,get fallback(){return(()=>{var s=et();return n(s,()=>i.formatMessage(j.noFollows,{name:e?.userProfile?se(e?.userProfile):e?.profileKey})),f(()=>r(s,Ae.mutedProfile)),s})()},children:s=>(()=>{var k=et();return n(k,t(Cr,{profile:s,get profileStats(){return e?.profileStats[s.pubkey]},postAction:Ce,light:!0})),k})()}),t(st,{loadNextPage:U,isSmall:!0})]}})),f(()=>r(x,Ae.tabContent)),x})(),(()=>{var x=Bi(),s=x.firstChild,k=s.firstChild,Z=k.nextSibling;Z.nextSibling;var X=s.nextSibling;return n(s,()=>fn(e?.contactListDate||0).label,Z),f(B=>{var G=Ae.footer,q=Ae.date,u=Ae.actions;return G!==B.e&&r(x,B.e=G),q!==B.t&&r(s,B.t=q),u!==B.a&&r(X,B.a=u),B},{e:void 0,t:void 0,a:void 0}),x})()]}}),t(ie.Content,{value:"followers",get children(){var x=et();
1return n(x,t(y,{get when(){return!e?.isFetchingFollowers},get fallback(){return kr()},get children(){return[t(Y,{each:z,get fallback(){return(()=>{var s=et();return n(s,()=>i.formatMessage(j.noFollowers,{name:e?.userProfile?se(e?.userProfile):e?.profileKey})),f(()=>r(s,Ae.mutedProfile)),s})()},children:s=>(()=>{var k=et();return n(k,t(Cr,{profile:s,get profileStats(){return e?.profileStats[s.pubkey]},postAction:Ce,light:!0})),k})()}),t(st,{loadNextPage:we,isSmall:!0})]}})),f(()=>r(x,Ae.tabContent)),x}})]}})),f(()=>r(b,Ae.profileFollowModal)),b}})},"ProfileFollowModal"),Dr=Gt(Ei),Ui="_articlePreviewSkeleton_1ntdd_9",Oi="_header_1ntdd_20",Hi="_avatar_1ntdd_26",ji="_userInfo_1ntdd_32",Di="_body_1ntdd_38",Gi="_text_1ntdd_44",Wi="_image_1ntdd_50",Vi="_topZaps_1ntdd_56",Yi="_zaps_1ntdd_61",qi="_stats_1ntdd_67",Qi="_stat_1ntdd_67",Ji="_articlePreviewSidebarSkeleton_1ntdd_80",Xi="_authorSubscribeSkeleton_1ntdd_129",eo="_readsFeaturedTopicsSkeleton_1ntdd_139",to="_topic_1ntdd_147",ro="_articleSkeleton_1ntdd_154",no="_name_1ntdd_182",io="_nip05_1ntdd_188",oo="_toolbar_1ntdd_203",lo="_time_1ntdd_211",ao="_title_1ntdd_217",so="_summary_1ntdd_229",uo="_border_1ntdd_236",co="_summaryText_1ntdd_242",fo="_firstLine_1ntdd_251",go="_secondLine_1ntdd_257",vo="_content_1ntdd_263",_o="_firstZap_1ntdd_276",mo="_restZap_1ntdd_282",ho="_zap_1ntdd_61",bo="_profileBannerSkeleton_1ntdd_299",po="_profileAvatarSkeleton_1ntdd_306",So="_background_1ntdd_313",$o="_profileVerificationSkeleton_1ntdd_321",wo="_firstRow_1ntdd_327",yo="_secondRow_1ntdd_344",Po="_connections_1ntdd_355",Co="_follows_1ntdd_361",ko="_profileAboutSkeleton_1ntdd_368",xo="_profileLinksSkeleton_1ntdd_376",To="_profileTabsSkeletonWrapper_1ntdd_391",No="_galleryGrid_1ntdd_397",Mo="_profileTabsSkeleton_1ntdd_391",Io="_tab_1ntdd_415",Fo="_number_1ntdd_423",Ao="_labelT_1ntdd_429",Ko="_feedNoteSkeleton_1ntdd_436",zo="_headerN_1ntdd_445",Lo="_avatarN_1ntdd_451",Zo="_userInfoN_1ntdd_457",Ro="_contentN_1ntdd_463",Bo="_zapsN_1ntdd_469",Eo="_bestZap_1ntdd_475",Uo="_avatarsZN_1ntdd_487",Oo="_avatarZN_1ntdd_494",Ho="_fillZN_1ntdd_504",jo="_footerN_1ntdd_511",Do="_footerOptionN_1ntdd_518",Go="_shortNoteSkeleton_1ntdd_525",Wo="_avatarSN_1ntdd_533",Vo="_shortNote_1ntdd_525",Yo="_headerSN_1ntdd_545",qo="_contentSN_1ntdd_551",Qo="_articleTotalZapsSkeleton_1ntdd_558",Jo="_zapNumber_1ntdd_564",Xo="_zapSats_1ntdd_570",el="_primaryNoteSkeleton_1ntdd_577",tl="_headerPN_1ntdd_591",rl="_avatarPN_1ntdd_600",nl="_userInfoPN_1ntdd_606",il="_namePN_1ntdd_613",ol="_nip05PN_1ntdd_619",ll="_bodyPN_1ntdd_625",al="_replyToNoteSkeleton_1ntdd_632",sl="_avatarRN_1ntdd_642",dl="_bodyRN_1ntdd_648",ul="_threadNoteSkeleton_1ntdd_655",cl="_headerTN_1ntdd_665",fl="_avatarTN_1ntdd_671",gl="_userInfoTN_1ntdd_677",vl="_bodyTN_1ntdd_683",_l="_fillTN_1ntdd_689",ml="_threadPeopleSkeleton_1ntdd_696",hl="_headerTP_1ntdd_707",bl="_avatarTP_1ntdd_715",pl="_userInfoTP_1ntdd_721",Sl="_nameTP_1ntdd_728",$l="_nip05TP_1ntdd_734",wl="_bodyTP_1ntdd_740",yl="_zapSkeleton_1ntdd_747",Pl="_zapinfo_1ntdd_756",Cl="_zapSubjectInfo_1ntdd_762",kl="_zapDate_1ntdd_769",xl="_zapSubjectContent_1ntdd_775",Tl="_profileActionsSkeleton_1ntdd_782",Nl="_roundButton_1ntdd_789",Ml="_elongButton_1ntdd_795",Il="_profileCardSkeleton_1ntdd_803",Fl="_userImage_1ntdd_810",Al="_profileActions_1ntdd_782",Kl="_profileSection_1ntdd_826",zl="_profileGalleryImageSkeleton_1ntdd_830",R={articlePreviewSkeleton:Ui,"skeleton-fade":"_skeleton-fade_1ntdd_1",header:Oi,avatar:Hi,userInfo:ji,body:Di,text:Gi,image:Wi,topZaps:Vi,zaps:Yi,stats:qi,stat:Qi,articlePreviewSidebarSkeleton:Ji,authorSubscribeSkeleton:Xi,readsFeaturedTopicsSkeleton:eo,topic:to,articleSkeleton:ro,name:no,nip05:io,toolbar:oo,time:lo,title:ao,summary:so,border:uo,summaryText:co,firstLine:fo,secondLine:go,content:vo,firstZap:_o,restZap:mo,zap:ho,profileBannerSkeleton:bo,profileAvatarSkeleton:po,background:So,profileVerificationSkeleton:$o,firstRow:wo,secondRow:yo,connections:Po,follows:Co,profileAboutSkeleton:ko,profileLinksSkeleton:xo,profileTabsSkeletonWrapper:To,galleryGrid:No,profileTabsSkeleton:Mo,tab:Io,number:Fo,labelT:Ao,feedNoteSkeleton:Ko,headerN:zo,avatarN:Lo,userInfoN:
1Zo,contentN:Ro,zapsN:Bo,bestZap:Eo,avatarsZN:Uo,avatarZN:Oo,fillZN:Ho,footerN:jo,footerOptionN:Do,shortNoteSkeleton:Go,avatarSN:Wo,shortNote:Vo,headerSN:Yo,contentSN:qo,articleTotalZapsSkeleton:Qo,zapNumber:Jo,zapSats:Xo,primaryNoteSkeleton:el,headerPN:tl,avatarPN:rl,userInfoPN:nl,namePN:il,nip05PN:ol,bodyPN:ll,replyToNoteSkeleton:al,avatarRN:sl,bodyRN:dl,threadNoteSkeleton:ul,headerTN:cl,avatarTN:fl,userInfoTN:gl,bodyTN:vl,fillTN:_l,threadPeopleSkeleton:ml,headerTP:hl,avatarTP:bl,userInfoTP:pl,nameTP:Sl,nip05TP:$l,bodyTP:wl,zapSkeleton:yl,zapinfo:Pl,zapSubjectInfo:Cl,zapDate:kl,zapSubjectContent:xl,profileActionsSkeleton:Tl,roundButton:Nl,elongButton:Ml,profileCardSkeleton:Il,userImage:Fl,profileActions:Al,profileSection:Kl,profileGalleryImageSkeleton:zl};var Ll=I("<div>");const Zl=d(g=>(()=>{var i=Ll();return f(()=>r(i,R.profileAboutSkeleton)),i})(),"ProfileAboutSkeleton$1");var Rl=I("<div><div></div><div></div><div>");const Bl=d(g=>(()=>{var i=Rl(),e=i.firstChild,h=e.nextSibling,m=h.nextSibling;return f(v=>{var o=R.profileActionsSkeleton,S=R.roundButton,T=R.roundButton,C=R.elongButton;return o!==v.e&&r(i,v.e=o),S!==v.t&&r(e,v.t=S),T!==v.a&&r(h,v.a=T),C!==v.o&&r(m,v.o=C),v},{e:void 0,t:void 0,a:void 0,o:void 0}),i})(),"ProfileActionsSkeleton$1");var El=I("<div><div>");const Ul=d(g=>(()=>{var i=El(),e=i.firstChild;return f(h=>{var m=R.profileAvatarSkeleton,v=R.background;return m!==h.e&&r(i,h.e=m),v!==h.t&&r(e,h.t=v),h},{e:void 0,t:void 0}),i})(),"ProfileAvatarSkeleton$1");var Ol=I("<div>");const Hl=d(g=>(()=>{var i=Ol();return f(()=>r(i,R.profileBannerSkeleton)),i})(),"ProfileBannerSkeleton$1");var jl=I("<div><div>");const Dl=d(g=>(()=>{var i=jl(),e=i.firstChild;return f(h=>{var m=R.profileLinksSkeleton,v=R.name;return m!==h.e&&r(i,h.e=m),v!==h.t&&r(e,h.t=v),h},{e:void 0,t:void 0}),i})(),"ProfileLinksSkeleton$1");var Gl=I("<div><div><div></div><div></div></div><div>");const Wl=d(g=>(()=>{var i=Gl(),e=i.firstChild,h=e.firstChild,m=h.nextSibling,v=e.nextSibling;return f(o=>{var S=R.feedNoteSkeleton,T=R.headerN,C=R.avatarN,p=R.userInfoN,M=R.contentN;return S!==o.e&&r(i,o.e=S),T!==o.t&&r(e,o.t=T),C!==o.a&&r(h,o.a=C),p!==o.o&&r(m,o.o=p),M!==o.i&&r(v,o.i=M),o},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0}),i})(),"FeedNotePhoneSkeleton");var Vl=I("<div><div></div><div><div></div><div>");const Yl=d(g=>(()=>{var i=Vl(),e=i.firstChild,h=e.nextSibling,m=h.firstChild,v=m.nextSibling;return f(o=>{var S=R.profileGalleryImageSkeleton,T=R.zapinfo,C=R.zapSubjectInfo,p=R.zapDate,M=R.zapSubjectContent;return S!==o.e&&r(i,o.e=S),T!==o.t&&r(e,o.t=T),C!==o.a&&r(h,o.a=C),p!==o.o&&r(m,o.o=p),M!==o.i&&r(v,o.i=M),o},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0}),i})(),"ProfileGalleryImagePhoneSkeleton");var ql=I("<div>"),Ql=I("<div><div><div><div></div><div>notes</div></div><div><div></div><div>replies</div></div><div><div></div><div>reads</div></div><div><div></div><div>media");const Jl=d(g=>(()=>{var i=Ql(),e=i.firstChild,h=e.firstChild,m=h.firstChild,v=m.nextSibling,o=h.nextSibling,S=o.firstChild,T=S.nextSibling,C=o.nextSibling,p=C.firstChild,M=p.nextSibling,U=C.nextSibling,J=U.firstChild,ve=J.nextSibling;return n(i,t(tt,{get fallback(){return t(Y,{each:new Array(10),children:()=>t(Wl,{})})},get children(){return t(he,{get when(){return g.tab==="media"},get children(){var z=ql();return n(z,t(Y,{each:new Array(24),children:()=>t(Yl,{})})),f(()=>r(z,R.galleryGrid)),z}})}}),null),f(z=>{var de=R.profileTabsSkeletonWrapper,we=R.profileTabsSkeleton,Ce=R.tab,b=R.number,x=R.labelT,s=R.tab,k=R.number,Z=R.labelT,X=R.tab,B=R.number,G=R.labelT,q=R.tab,u=R.number,l=R.labelT;return de!==z.e&&r(i,z.e=de),we!==z.t&&r(e,z.t=we),Ce!==z.a&&r(h,z.a=Ce),b!==z.o&&r(m,z.o=b),x!==z.i&&r(v,z.i=x),s!==z.n&&r(o,z.n=s),k!==z.s&&r(S,z.s=k),Z!==z.h&&r(T,z.h=Z),X!==z.r&&r(C,z.r=X),B!==z.d&&r(p,z.d=B),G!==z.l&&r(M,z.l=G),q!==z.u&&r(U,z.u=q),u!==z.c&&r(J,z.c=u),l!==z.w&&r(ve,z.w=l),z},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0,r:void 0,d:void 0,l:void 0,u:void 0,c:void 0,w:void 0}),i})(),"ProfileTabsSkeleton$1");var Xl=I("<div><div></div><div></div><div></div><div>");const ea=d(g=>(()=>{var i=Xl(),e=i.firstChild,h=e.nextSibling,m=h.nextSibling,v=m.nextSibling;return n(i,t(Hl,{}),e),n(e,t(Ul,{})),n(h,t(Bl,{})),n(m,t(Dl,{})),n(v,t(Zl,{})),n(i,t(Jl,{get tab(){return g.tab}}),null),f(o=>{var S=R.profileCardSkeleton,T=R.userImage,C=R.profileActions,p=R.profileSection,M=R.profileSection;return S!==o.e&&r(i,o.e=S),T!==o.t&&r(e,o.t=T),C!==o.a&&r(h,o.a=C),p!==o.o&&r(m,o.o=p),M!==o.i&&r(v,o.i=M),o},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0}),i})(),"ProfileCardSkeleton$1");var ta=I("<div class=preload>"),Ee=I("<div>"),ra=I("<a target=_blank>"),na=I("<span>..."),ia=I("<div><div></div><div style=margin-left:8px><span style=margin-right:4px>Followed by"),oa=I("<div id=central_header><div id=profile_banner></div><div><div class=styles.avatar><div></div></div></div><div></div><div class=hidden></div><div><div><div><div><div></div></div></div><div><div></div></div><div><button>
1<div></div><div>following</div></button><button><div></div><div>followers</div></button></div><div><div></div></div><div class=animated><div><div>"),la=I("<span>");const aa=d(()=>{Nr();const g=Mr(),i=At(),e=Wt(),h=sr(),m=Dt(),v=wt(),o=dr(),S=Ir(),[T,C]=Q(!1),[p,M]=Q(!1),[U,J]=Q(!1),[ve,z]=Q(!1),[de,we]=Q(!1),[Ce,b]=Q(!1),x=new Or({gallery:"#central_header",children:"a.profile_image",showHideAnimationType:"zoom",initialZoomLevel:"fit",secondaryZoomLevel:2,maxZoomLevel:3,pswpModule:()=>Fr(()=>import("./photoswipe.esm-128e73ba.js"),[])}),s=d(()=>location.hash.length>1?location.hash.substring(1):"notes","tabHash");let k;const[Z,X]=Q(),B=d(async A=>{if(A){const ue=A.toLowerCase(),ke=(await Lr(ue)).names[ue];if(!ke){o("/404");return}X(()=>ke),i?.profileKey!==ke&&G(ke);return}let V=S.npub||e?.publicKey;if(S.npub?.startsWith("npub")||S.npub?.startsWith("nprofile")){const ue=Et.decode(S.npub);ue.type==="npub"&&(V=ue.data),ue.type==="nprofile"&&(V=ue.data.pubkey)}X(()=>V),i?.profileKey!==V&&G(V)},"resolveHex");re(()=>{B(S.vanityName)}),re(Mt(()=>i?.profileKey,(A,V)=>{!A||A===V||Kt(!1)}));const G=d(A=>{i?.actions.setProfileKey(A),i?.actions.clearArticles(),i?.actions.clearNotes(),i?.actions.clearReplies(),i?.actions.clearContacts(),i?.actions.clearZaps(),i?.actions.clearFilterReason(),i?.actions.clearGallery(),b(()=>!1)},"setProfile"),q=d(()=>window.innerWidth<721,"isSmallScreen"),u=Ar(()=>Ut(i?.profileKey)),l=d(()=>i?.userProfile?.displayName||i?.userProfile?.name||Ft(u()),"profileName"),a=d(A=>{const V=A.target;if(Pt(!0),V.src!==i?.userProfile?.banner)return V.onerror="",V.src=i?.userProfile?.banner,!0;const ue=document.getElementById("profile_banner");return ue&&(ue.innerHTML=`<div class="${c.bannerPlaceholder}"></div>`),!0},"imgError"),$=d(A=>!A.startsWith("http://")&&!A.startsWith("https://")?`http://${A}`:A,"rectifyUrl"),E=d(()=>i?.isProfileFollowing,"isFollowingYou"),[O,ee]=Q(!1),_e=d(()=>{const A=i?.userProfile?.banner,V=h?.actions.getMediaUrl(A,"m",!0);return ee(!!V),V??A},"banner"),me=d(()=>{const A=localStorage.getItem("devMode")==="true";return O()||!A?"":c.cacheFlag},"flagBannerForWarning"),We=d(()=>!e||!i||!e.isKeyLookupDone?!1:e?.publicKey===i?.profileKey,"isCurrentUser");re(()=>{const A=Z();A&&e?.muted.includes(A)&&i?.actions.clearNotes()});const Oe=d(A=>{document?.getElementById("profile_context")?.contains(A.target)||C(!1)},"onClickOutside"),ct=d(()=>{const A=Z();A&&e?.actions.addToMuteList(A)},"doMuteUser"),ft=d(()=>{const A=Z();A&&(Zr(A,`report_user_${It}`,i?.userProfile),C(!1),g?.sendSuccess(v.formatMessage(pt.noteAuthorReported,{name:se(i?.userProfile)})))},"doReportUser");re(()=>{T()?document.addEventListener("click",Oe):document.removeEventListener("click",Oe)});const[gt,yt]=Q(!1),Vt=d(async A=>{A||yt(!1);const V=await Rr(i?.userProfile?.nip05);if(V&&V.pubkey===A){yt(!0);return}yt(!1)},"checkVerification");re(()=>{i?.profileKey&&Vt(i?.profileKey)}),ur(A=>{A.to.toString().startsWith(A.from.pathname)});const[Yt,Pt]=Q(!1),[vt,Kt]=Q(!1);re(()=>{i?.isProfileFetched&&!i.isFetchingSidebarArticles&&!i.isFetchingSidebarNotes&&i.profileKey===Z()&&(!i.userProfile||Yt())&&Kt(()=>!0)}),re(()=>{vt()&&x.init()});const qt=d(()=>({profile:i?.userProfile,onConfirm:A=>{m?.actions.closeCustomZapModal()},onSuccess:A=>{m?.actions.closeCustomZapModal(),m?.actions.resetCustomZap(),g?.sendSuccess(v.formatMessage(Br,{name:Er(i?.userProfile)}))},onFail:A=>{m?.actions.closeCustomZapModal(),m?.actions.resetCustomZap()},onCancel:A=>{m?.actions.closeCustomZapModal(),m?.actions.resetCustomZap()}}),"customZapInfo");re(()=>{i?.userProfile&&Qt(i.userProfile)});const Qt=d(A=>{if(!A)return;const V=`article_tiers_${It}`,ue=lr(V,{onEvent:(it,ke)=>{if(ke.kind!==rt.TierList&&ke.kind===rt.Tier){b(()=>!0);return}},onEose:()=>{ue()}});Kr(A.pubkey,V)},"getTiers"),Jt=d(()=>!i?.profileKey||!m?.memberCohortInfo[i.profileKey]?!1:!!(m?.memberCohortInfo[i.profileKey].tier==="premium-legend"&&m?.legendCustomization[i.profileKey]&&m?.legendCustomization[i.profileKey].style!==""||m?.memberCohortInfo[i.profileKey].tier==="premium"&&(m?.memberCohortInfo[i.profileKey].expires_on||0)>Math.floor(new Date().getTime()/1e3)),"isVisibleLegend"),Xt=d(()=>!i?.profileKey||!m?.legendCustomization[i.profileKey]||!m?.memberCohortInfo[i.profileKey]||m?.legendCustomization[i.profileKey].style===""||m?.memberCohortInfo[i.profileKey].tier!=="premium-legend","showAvatarBorder"),_t=d(()=>!i?.commonFollowers||i.commonFollowers.length===0?[]:i.commonFollowers.toSorted((ue,it)=>{const ke=m?.memberCohortInfo[ue.pubkey]?.tier==="premium-legend",Me=m?.memberCohortInfo[it.pubkey]?.tier==="premium-legend";let Ue=1;return ke&&!Me&&(Ue=-1),Ue}).slice(0,5).reverse(),"commonFollowers");return[t(zr,{get title(){return v.formatMessage(j.title,{name:i?.userProfile?.displayName||i?.userProfile?.name||Ft(u())})}}),t(y,{get when(){return i?.userProfile},get children(){var A=ta();return n(A,t(Ht,{get src(){return _e()},get altSrc(){return i?.userProfile?.banner},onError:a,plainBorder:!0,onImageLoaded:()=>{Pt(!0)},width:640,get media(){return h?.actions.getMedia(_e()||"","o")},get mediaThumb(){return h?.actions.getMedia(_e()||"","m")||h?.actions.getMedia(_e()||"","o")||_e()},get authorPk(){return i?.profileKey}})),A}}),t(y,{get when(){return vt()},get fallback(){return(()=>{var A=Ee();return n(A,t(ea,{get tab(){return s()}})),f(()=>r(A,`${c.skeletonHolder} ${un()?c.ios:""}`)),A})()},get children(){var A=oa(),V=A.firstChild,ue=V.nextSibling,it=ue.firstChild,ke=it.firstChild,Me=ue.nextSibling,Ue=Me.nextSibling,zt=Ue.nextSibling,Lt=zt.firstChild,mt=Lt.firstChild,ot=mt.firstChild,Zt=ot.firstChild,He=mt.nextSibling,Rt=He.firstChild,P=He.nextSibling,H=P.firstChild,oe=H.firstChild,je=oe.nextSibling,ye=H.nextSibling,Ie=ye.firstChild,Ve=Ie.nextSibling,ht=P.nextSibling,bt=ht.firstChild,L=ht.nextSibling,ce=L.firstChild,be=ce.firstChild;n(V,t(y,{get when(){return i?.userProfile?.banner},get fallback(){return(()=>{var _=Ee();return f(()=>r(_,c.bannerPlaceholder)),_})()},get children(){return t(Ht,{class:"profile_image",get src(){return _e()},get altSrc(){return i?.userProfile?.banner},onError:a,plainBorder:!0,width:640,get media(){return h?.actions.getMedia(_e()||"","o")},get mediaThumb(){return h?.actions.getMedia(_e()||"","m")||h?.actions.getMedia(_e()||"","o")||_e()},ignoreRatio:!0,get authorPk(){return i?.profileKey}})}})),n(ke,t($t,{get user(){return i?.userProfile},get size(){return q()?"lg":"xxl"},zoomable:!0,get showBorderRing(){return Xt()}})),n(Me,t(Ge,{onClick:()=>z(!0),shrink:!0,get children(){var _=Ee();return f(()=>r(_,c.qrIcon)),_}}),null),n(Me,t(y,{get when(){return!We()},get children(){return t(Ge,{onClick:()=>m?.actions.openCustomZapModal(qt()),shrink:!0,get children(){var _=Ee();return f(()=>r(_,c.zapIcon)),_}})}}),null),n(Me,t(y,{get when(){return e?.publicKey},get children(){return t(Ge,{onClick:()=>o(`/dms/${i?.userProfile?.npub}`),shrink:!0,get children(){var _=Ee();return f(()=>r(_,c.messageIcon)),_}})}}),null),n(Me,t(y,{get when(){return!We()||!e?.following.includes(i?.profileKey||"")},get children(){return t(cr,{get person(){return i?.userProfile},large:!0})}}),null),n(Me,t(y,{get when(){return We()},get children(){var _=Ee();return n(_,t(Ge,{onClick:()=>o("/settings/profile"),get title(){return v.formatMessage(te.editProfile)},get children(){var fe=Ee();return n(fe,()=>v.formatMessage(te.editProfile)),fe}})),f(()=>r(_,c.editProfileButton)),_}}),null);var Ze=k;typeof Ze=="function"?Sr(Ze,Ue):k=Ue,n(Ue,t(Nt,{get about(){return i?.userProfile?.about}})),n(Zt,l),n(ot,t(y,{get when(){return le(()=>!!i?.userProfile?.nip05)()&>()},get children(){var _=Ee();return n(_,t(tr,{get user(){return i?.userProfile},large:!0})),f(()=>r(_,c.vc)),_}}
1),null),n(ot,t(y,{get when(){return Jt()},get children(){return t(or,{get user(){return i?.userProfile},get cohortInfo(){return m?.memberCohortInfo[i?.profileKey]},get legendConfig(){return m?.legendCustomization[i?.profileKey]}})}}),null),n(Rt,t(y,{get when(){return i?.userProfile?.nip05},get children(){var _=Ee();return n(_,()=>Ot(i?.userProfile)),f(()=>r(_,c.nip05)),_}})),n(He,t(y,{get when(){return i?.userStats.time_joined},get children(){var _=Ee();return n(_,()=>v.formatMessage(j.jointDate,{date:nr(i?.userStats.time_joined)})),f(()=>r(_,c.joined)),_}}),null),H.$$click=()=>we(()=>"follows"),n(oe,()=>(i?.userStats?.follows_count||0).toLocaleString()),ye.$$click=()=>we(()=>"followers"),n(Ie,()=>(i?.userStats?.followers_count||0).toLocaleString()),n(P,t(y,{get when(){return E()},get children(){var _=Ee();return n(_,()=>v.formatMessage(j.followsYou)),f(()=>r(_,c.followsBadge)),_}}),null);var ze=k;return typeof ze=="function"?Sr(ze,bt):k=bt,n(bt,t(Nt,{get about(){return i?.userProfile?.about}})),n(be,t(y,{get when(){return i?.userProfile?.website},get children(){var _=ra();return n(_,()=>rr(i?.userProfile?.website||"")),f(()=>nt(_,"href",$(i?.userProfile?.website||""))),_}})),n(ce,t(y,{get when(){return _t().length>0},get children(){var _=ia(),fe=_.firstChild,pe=fe.nextSibling;return pe.firstChild,n(fe,t(Y,{get each(){return _t()},children:(ne,xe)=>t(ut,{get href(){return m?.actions.profileLink(ne.npub)||""},get class(){return c.avatar},get style(){return`z-index: ${1+xe()}`},get children(){return t($t,{size:"xxs",user:ne})}})})),n(pe,t(Y,{get each(){return _t()},children:(ne,xe)=>(()=>{var Te=la();return n(Te,t(y,{get when(){return xe()>0},get children(){return", "}}),null),n(Te,()=>se(ne),null),Te})()}),null),n(pe,t(y,{get when(){return(_t().length||0)>5},get children(){return na()}}),null),f(ne=>{var xe=`${c.commonFollows} ${c.phone}`,Te=c.avatars,Fe=c.label;return xe!==ne.e&&r(_,ne.e=xe),Te!==ne.t&&r(fe,ne.t=Te),Fe!==ne.a&&r(pe,ne.a=Fe),ne},{e:void 0,t:void 0,a:void 0}),_}}),null),f(_=>{var fe=c.fullHeaderPhone,pe=`${c.banner} ${me()} animated`,ne=`${c.userImage} animated`,xe=q()?c.phoneAvatar:c.desktopAvatar,Te=`${c.profileActions} animated`,Fe=c.profileCard,Ye=c.bigAbout,N=`${c.basicInfo} animated`,Pe=c.basicInfoName,ae=c.text,W=`${c.verificationInfo} animated`,w=c.verified,Se=`${c.followings} ${c.left}`,$e=c.stats,ge=c.number,Ke=c.label,Re=c.stats,Be=c.number,qe=c.label,Qe=`${c.profileAboutHolder} animated`,Je=c.profileLinks,Ct=c.website;return fe!==_.e&&r(A,_.e=fe),pe!==_.t&&r(V,_.t=pe),ne!==_.a&&r(ue,_.a=ne),xe!==_.o&&r(ke,_.o=xe),Te!==_.i&&r(Me,_.i=Te),Fe!==_.n&&r(zt,_.n=Fe),Ye!==_.s&&r(Lt,_.s=Ye),N!==_.h&&r(mt,_.h=N),Pe!==_.r&&r(ot,_.r=Pe),ae!==_.d&&r(Zt,_.d=ae),W!==_.l&&r(He,_.l=W),w!==_.u&&r(Rt,_.u=w),Se!==_.c&&r(P,_.c=Se),$e!==_.w&&r(H,_.w=$e),ge!==_.m&&r(oe,_.m=ge),Ke!==_.f&&r(je,_.f=Ke),Re!==_.y&&r(ye,_.y=Re),Be!==_.g&&r(Ie,_.g=Be),qe!==_.p&&r(Ve,_.p=qe),Qe!==_.b&&r(ht,_.b=Qe),Je!==_.T&&r(ce,_.T=Je),Ct!==_.A&&r(be,_.A=Ct),_},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0,r:void 0,d:void 0,l:void 0,u:void 0,c:void 0,w:void 0,m:void 0,f:void 0,y:void 0,g:void 0,p:void 0,b:void 0,T:void 0,A:void 0}),A}}),t(y,{get when(){return le(()=>!!i?.profileKey)()&&vt()},get children(){return t(jr,{setProfile:G,get profileKey(){return i?.profileKey}})}}),t(jt,{get open(){return p()},get description(){return v.formatMessage(te.reportUserConfirm,{name:se(i?.userProfile)})},onConfirm:()=>{ft(),M(!1)},onAbort:()=>M(!1)}),t(jt,{get open(){return U()},get description(){return v.formatMessage(te.muteUserConfirm,{name:se(i?.userProfile)})},onConfirm:()=>{ct(),J(!1)},onAbort:()=>J(!1)}),t(Dr,{get open(){return de()},setOpen:we,get stats(){return{following:i?.userStats?.follows_count||0,followers:i?.userStats?.followers_count||0}}}),t($n,{get open(){return ve()},onClose:()=>z(!1),get profile(){return i?.userProfile}})]},"ProfileMobile");ar(["click"]);const sa="_headingTrending_11p0c_1",da="_noNotes_11p0c_28",ua="_articles_11p0c_33",at={headingTrending:sa,noNotes:da,articles:ua};var ca=I("<div><div>Live Now"),er=I("<div>"),fa=I("<div class=animated><div><div></div></div><div>"),ga=I("<div class=animated><div><div>"),va=I("<div class=animated>"),xr=I("<div><div>");const _a=d(g=>{const i=At(),e=wt(),h=d(()=>(g.articles||[]).length>0?(g.notes||[]).slice(0,5):g.notes,"topNotes"),m=d(()=>g.stream?[g.stream]:[],"streams");return(()=>{var v=va();return n(v,t(Cn,{}),null),n(v,t(y,{get when(){return m().length>0},get children(){return[(()=>{var o=ca();return f(()=>r(o,at.headingTrending)),o})(),(()=>{var o=er();return n(o,t(Y,{get each(){return m()},children:S=>t(y,{get when(){return g.profile},get fallback(){return t(hn,{})},get children(){return t(bn,{liveEvent:S,get liveAuthor(){return g.profile}})}})})),f(()=>r(o,at.articles)),o})()]}}),null),n(v,t(y,{get when(){return le(()=>!!g.articles)()&&g.articles.length>0},get fallback(){return t(y,{get when(){return i?.isFetchingSidebarArticles},get children(){return[(()=>{var o=xr();return f(()=>r(o,at.headingTrending)),o})(),(()=>{var o=er();return n(o,t(yr,{}),null),n(o,t(yr,{}),null),o})()]}})},get children(){var o=fa(),S=o.firstChild,T=S.firstChild,C=S.nextSibling;return n(T,()=>e.formatMessage(j.sidebarCaptionReads)),n(C,t(Y,{get each(){return g.articles},children:p=>t(Pn,{article:p,shorter:!0})})),f(p=>{var M=at.headingTrending,U=at.articles;return M!==p.e&&r(S,p.e=M),U!==p.t&&r(C,p.t=U),p},{e:void 0,t:void 0}),o}}),null),n(v,t(y,{get when(){return le(()=>!!g.notes)()&&g.notes.length>0},get fallback(){return t(y,{get when(){return i?.isFetchingSidebarArticles},get children(){return[(()=>{var o=xr();return f(()=>r(o,at.headingTrending)),o})(),(()=>{var o=er();return n(o,t(kt,{}),null),n(o,t(kt,{}),null),n(o,t(kt,{}),null),n(o,t(kt,{}),null),n(o,t(kt,{}),null),o})()]}})},get children(){var o=ga(),S=o.firstChild,T=S.firstChild;return n(T,()=>e.formatMessage(j.sidebarCaptionNotes)),n(o,t(Y,{get each(){return h()},children:C=>t(pn,{note:C})}),null),f(()=>r(S,at.headingTrending)),o}}),null),f(()=>nt(v,"id",g.id)),v})()},"ProfileSidebar"),ma=Gt(_a);var ha=I("<div>");const ba=d(g=>(()=>{var i=ha();return f(()=>r(i,K.profileAboutSkeleton)),i})(),"ProfileAboutSkeleton");var pa=I("<div><div></div><div></div><div></div><div></div><div>");const Sa=d(g=>(()=>{var i=pa(),e=i.firstChild,h=e.nextSibling,m=h.nextSibling,v=m.nextSibling,o=v.nextSibling;return f(S=>{var T=K.profileActionsSkeleton,C=K.roundButton,p=K.roundButton,M=K.roundButton,U=K.roundButton,J=K.elongButton;return T!==S.e&&r(i,S.e=T),C!==S.t&&r(e,S.t=C),p!==S.a&&r(h,S.a=p),M!==S.o&&r(m,
1S.o=M),U!==S.i&&r(v,S.i=U),J!==S.n&&r(o,S.n=J),S},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0}),i})(),"ProfileActionsSkeleton");var $a=I("<div><div>");const wa=d(g=>(()=>{var i=$a(),e=i.firstChild;return f(h=>{var m=K.profileAvatarSkeleton,v=K.background;return m!==h.e&&r(i,h.e=m),v!==h.t&&r(e,h.t=v),h},{e:void 0,t:void 0}),i})(),"ProfileAvatarSkeleton");var ya=I("<div>");const Pa=d(g=>(()=>{var i=ya();return f(()=>r(i,K.profileBannerSkeleton)),i})(),"ProfileBannerSkeleton");var Ca=I("<div><div></div><div>");const ka=d(g=>(()=>{var i=Ca(),e=i.firstChild,h=e.nextSibling;return f(m=>{var v=K.profileLinksSkeleton,o=K.website,S=K.commonFollows;return v!==m.e&&r(i,m.e=v),o!==m.t&&r(e,m.t=o),S!==m.a&&r(h,m.a=S),m},{e:void 0,t:void 0,a:void 0}),i})(),"ProfileLinksSkeleton");var xa=I("<div>"),Ta=I("<div><div><div><div></div><div>notes</div></div><div><div></div><div>replies</div></div><div><div></div><div>reads</div></div><div><div></div><div>media</div></div><div><div></div><div>zaps</div></div><div><div></div><div>relays");const Na=d(g=>(()=>{var i=Ta(),e=i.firstChild,h=e.firstChild,m=h.firstChild,v=m.nextSibling,o=h.nextSibling,S=o.firstChild,T=S.nextSibling,C=o.nextSibling,p=C.firstChild,M=p.nextSibling,U=C.nextSibling,J=U.firstChild,ve=J.nextSibling,z=U.nextSibling,de=z.firstChild,we=de.nextSibling,Ce=z.nextSibling,b=Ce.firstChild,x=b.nextSibling;return n(i,t(tt,{get fallback(){return t(Y,{each:new Array(10),children:()=>t(ir,{})})},get children(){return t(he,{get when(){return g.tab==="media"},get children(){var s=xa();return n(s,t(Y,{each:new Array(24),children:()=>t(Hr,{})})),f(()=>r(s,K.galleryGrid)),s}})}}),null),f(s=>{var k=K.profileTabsSkeletonWrapper,Z=K.profileTabsSkeleton,X=K.tab,B=K.number,G=K.labelT,q=K.tab,u=K.number,l=K.labelT,a=K.tab,$=K.number,E=K.labelT,O=K.tab,ee=K.number,_e=K.labelT,me=K.tab,We=K.number,Oe=K.labelT,ct=K.tab,ft=K.number,gt=K.labelT;return k!==s.e&&r(i,s.e=k),Z!==s.t&&r(e,s.t=Z),X!==s.a&&r(h,s.a=X),B!==s.o&&r(m,s.o=B),G!==s.i&&r(v,s.i=G),q!==s.n&&r(o,s.n=q),u!==s.s&&r(S,s.s=u),l!==s.h&&r(T,s.h=l),a!==s.r&&r(C,s.r=a),$!==s.d&&r(p,s.d=$),E!==s.l&&r(M,s.l=E),O!==s.u&&r(U,s.u=O),ee!==s.c&&r(J,s.c=ee),_e!==s.w&&r(ve,s.w=_e),me!==s.m&&r(z,s.m=me),We!==s.f&&r(de,s.f=We),Oe!==s.y&&r(we,s.y=Oe),ct!==s.g&&r(Ce,s.g=ct),ft!==s.p&&r(b,s.p=ft),gt!==s.b&&r(x,s.b=gt),s},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0,r:void 0,d:void 0,l:void 0,u:void 0,c:void 0,w:void 0,m:void 0,f:void 0,y:void 0,g:void 0,p:void 0,b:void 0}),i})(),"ProfileTabsSkeleton");var Ma=I("<div><div></div><div></div><div></div><div>");const Ia=d(g=>(()=>{var i=Ma(),e=i.firstChild,h=e.nextSibling,m=h.nextSibling,v=m.nextSibling;return n(i,t(Pa,{}),e),n(e,t(wa,{})),n(h,t(Sa,{})),n(m,t(ka,{})),n(v,t(ba,{})),n(i,t(Na,{get tab(){return g.tab}}),null),f(o=>{var S=K.profileCardSkeleton,T=K.userImage,C=K.profileActions,p=K.profileSection,M=K.profileSection;return S!==o.e&&r(i,o.e=S),T!==o.t&&r(e,o.t=T),C!==o.a&&r(h,o.a=C),p!==o.o&&r(m,o.o=p),M!==o.i&&r(v,o.i=M),o},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0}),i})(),"ProfileCardSkeleton");var Fa=I("<div class=preload>"),Ne=I("<div>"),Aa=I("<div><div><div>"),Ka=I("<div><a target=_blank>"),Tr=I("<div><div>Followed by</div><div>"),za=I("<div><div><div><div></div></div><div></div></div><div><div><button><div></div><div>following</div></button><button><div></div><div>followers"),La=I("<a target=_blank>"),Za=I("<div><div><div><div></div></div><div><button><div></div><div>following</div></button><button><div></div><div>followers</div></button></div></div><div><div></div></div><div></div><div class=animated><div><div>"),Ra=I("<div id=central_header><div id=profile_banner></div><div><div class=styles.avatar><div></div></div></div><div><div></div></div><div class=hidden></div><div>");const Ba=d(()=>{const g=Nr(),i=Mr(),e=At(),h=Wt(),m=sr(),v=Dt(),o=wt(),S=dr(),T=Ir(),[C,p]=Q(!1),[M,U]=Q(!1),[J,ve]=Q(!1),[z,de]=Q(!1),[we,Ce]=Q(!1),b=new Or({gallery:"#central_header",children:"a.profile_image",showHideAnimationType:"zoom",initialZoomLevel:"fit",secondaryZoomLevel:2,maxZoomLevel:3,pswpModule:()=>Fr(()=>import("./photoswipe.esm-128e73ba.js"),[])}),x=d(()=>location.hash.length>1?location.hash.substring(1):"notes","tabHash"),[s,k]=Q(),Z=d(async P=>{if(P){let oe=P.toLowerCase();oe==="gigi"&&(oe="dergigi");const ye=(await Lr(oe)).names[oe];if(!ye){S("/404");return}k(()=>ye),e?.profileKey!==ye&&X(ye);return}let H=T.npub||h?.publicKey;T.npub?.startsWith("npub")&&(H=Et.decode(T.npub).data),T.npub?.startsWith("nprofile")&&(H=Et.decode(T.npub).data.pubkey),k(()=>H),e?.profileKey!==H&&X(H)},"resolveHex");re(()=>{Z(T.vanityName)}),re(Mt(()=>e?.profileKey,(P,H)=>{!P||P===H||Ue(!1)}));const X=d(P=>{e?.actions.setProfileKey(P),e?.actions.clearArticles(),e?.actions.clearNotes(),e?.actions.clearReplies(),e?.actions.clearContacts(),e?.actions.clearZaps(),e?.actions.clearFilterReason(),e?.actions.clearGallery(),Ce(()=>!1)},"setProfile"),B=d(()=>window.innerWidth<721,"isSmallScreen"),G=Ar(()=>Ut(e?.profileKey)),q=d(()=>e?.userProfile?.displayName||e?.userProfile?.name||Ft(G()),"profileName"),u=d(()=>{g?.actions.addProfileHomeFeed(q(),e?.profileKey),i?.sendSuccess(o.formatMessage(pt.addFeedToHomeSuccess,{name:q()}))},"addToHome"),l=d(()=>{g?.actions.removeProfileHomeFeed(e?.profileKey),i?.sendSuccess(o.formatMessage(pt.removeFeedFromHomeSuccess,{name:q()}))},"removeFromHome"),a=d(()=>g?.actions.hasProfileFeedAtHome(e?.profileKey),"hasFeedAtHome"),$=d(P=>{const H=P.target;if(ke(!0),H.src!==e?.userProfile?.banner)return H.onerror="",H.src=e?.userProfile?.banner,!0;const oe=document.getElementById("profile_banner");return oe&&(oe.innerHTML=`<div class="${c.bannerPlaceholder}"></div>`),!0},"imgError"),E=d(P=>!P.startsWith("http://")&&!P.startsWith("https://")?`http://${P}
1`:P,"rectifyUrl"),O=d(()=>e?.isProfileFollowing,"isFollowingYou"),[ee,_e]=Q(!1),me=d(()=>{const P=e?.userProfile?.banner,H=m?.actions.getMediaUrl(P,"m",!0);return _e(!!H),H??P},"banner"),We=d(()=>{const P=localStorage.getItem("devMode")==="true";return ee()||!P?"":c.cacheFlag},"flagBannerForWarning"),Oe=d(()=>!h||!e||!h.isKeyLookupDone?!1:h?.publicKey===e?.profileKey,"isCurrentUser");re(()=>{const P=s();P&&h?.muted.includes(P)&&e?.actions.clearNotes()});const ct=d((P,H=!1)=>{const oe=h?.mutelists.find(je=>je.pubkey===h.publicKey)?.content;return P&&h?.muted.includes(P)&&(H?!0:oe)},"isMuted"),ft=d(()=>{!h||!e?.profileKey||h.actions.removeFromMuteList(e.profileKey,"user",()=>X(e.profileKey))},"unMuteProfile"),gt=d(P=>P?h?.mutelists.find(H=>H.pubkey===P):!1,"isFollowingMute"),yt=d(()=>{h?.actions.addFilterList(e?.profileKey)},"followMute"),Vt=d(()=>{h?.actions.removeFilterList(e?.profileKey)},"unfollowMute"),Yt=d(P=>{P.preventDefault(),p(!0)},"openContextMenu"),Pt=d(P=>{document?.getElementById("profile_context")?.contains(P.target)||p(!1)},"onClickOutside"),vt=d(()=>[a()?{label:o.formatMessage(te.profileContext.removeFeed),action:()=>{l(),p(!1)},icon:"feed_remove"}:{label:o.formatMessage(te.profileContext.addFeed),action:()=>{u(),p(!1)},icon:"feed_add"},{label:o.formatMessage(te.profileContext.copyLink),action:()=>{Xt(),p(!1)},icon:"copy_note_link"},{label:o.formatMessage(te.profileContext.copyPubkey),action:()=>{_t(),p(!1)},icon:"copy_pubkey"}],"profileContextForEveryone"),Kt=d(()=>{const P=ct(s(),!0)?{label:o.formatMessage(te.profileContext.unmuteUser),action:()=>{ft(),p(!1)},icon:"mute_user",warning:!0}:{label:o.formatMessage(te.profileContext.muteUser),action:()=>{ve(!0),p(!1)},icon:"mute_user",warning:!0};return[gt(s())?{label:o.formatMessage(te.profileContext.unfollowMute),action:()=>{Vt(),p(!1)},icon:"mute_user"}:{label:o.formatMessage(te.profileContext.followMute),action:()=>{yt(),p(!1)},icon:"mute_user"},{action:()=>{},label:"",separator:!0},P,{label:o.formatMessage(te.profileContext.reportUser),action:()=>{U(!0),p(!1)},icon:"report",warning:!0}]},"profileContextForOtherPeople"),qt=d(()=>h?.publicKey!==s()?[...vt(),...Kt()]:vt(),"profileContext"),Qt=d(()=>{const P=s();P&&h?.actions.addToMuteList(P)},"doMuteUser"),Jt=d(()=>{const P=s();P&&(Zr(P,`report_user_${It}`,e?.userProfile),p(!1),i?.sendSuccess(o.formatMessage(pt.noteAuthorReported,{name:se(e?.userProfile)})))},"doReportUser"),Xt=d(()=>{navigator.clipboard.writeText(`${window.location.host}${v?.actions.profileLink(s())||""}`),p(!1),i?.sendSuccess(o.formatMessage(pt.notePrimalLinkCoppied))},"copyProfileLink"),_t=d(()=>{navigator.clipboard.writeText(`${Ut(s())}`),p(!1),i?.sendSuccess(o.formatMessage(pt.noteAuthorNpubCoppied))},"copyUserNpub");re(()=>{C()?document.addEventListener("click",Pt):document.removeEventListener("click",Pt)});const[A,V]=Q(!1),ue=d(async P=>{P||V(!1);const H=await Rr(e?.userProfile?.nip05);if(H&&H.pubkey===P){V(!0);return}V(!1)},"checkVerification");re(()=>{e?.profileKey&&ue(e?.profileKey)}),ur(P=>{P.to.toString().startsWith(P.from.pathname)});const[it,ke]=Q(!1),[Me,Ue]=Q(!1);re(()=>{e?.isProfileFetched&&!e.isFetchingSidebarArticles&&!e.isFetchingSidebarNotes&&e.profileKey===s()&&(!e.userProfile||it())&&Ue(()=>!0)}),re(()=>{Me()&&b.init()});const zt=d(()=>({profile:e?.userProfile,onConfirm:P=>{v?.actions.closeCustomZapModal()},onSuccess:P=>{v?.actions.closeCustomZapModal(),v?.actions.resetCustomZap(),i?.sendSuccess(o.formatMessage(Br,{name:Er(e?.userProfile)}))},onFail:P=>{v?.actions.closeCustomZapModal(),v?.actions.resetCustomZap()},onCancel:P=>{v?.actions.closeCustomZapModal(),v?.actions.resetCustomZap()}}),"customZapInfo");re(()=>{e?.userProfile&&Lt(e.userProfile)});const Lt=d(P=>{if(!P)return;const H=`article_tiers_${It}`,oe=lr(H,{onEvent:(je,ye)=>{if(ye.kind!==rt.TierList&&ye.kind===rt.Tier){Ce(()=>!0);return}},onEose:()=>{oe()}});Kr(P.pubkey,H)},"getTiers"),mt=d(P=>P?P.length<50:!0,"shortProfileAbout"),ot=d(()=>!e?.profileKey||!v?.memberCohortInfo[e.profileKey]?!1:!!(v?.memberCohortInfo[e.profileKey].tier==="premium-legend"&&v?.legendCustomization[e.profileKey]&&v?.legendCustomization[e.profileKey].style!==""||v?.memberCohortInfo[e.profileKey].tier==="premium"&&(v?.memberCohortInfo[e.profileKey].expires_on||0)>Math.floor(new Date().getTime()/1e3)),"isVisibleLegend"),Zt=d(()=>!e?.profileKey||!v?.legendCustomization[e.profileKey]||!v?.memberCohortInfo[e.profileKey]||v?.legendCustomization[e.profileKey].style===""||v?.memberCohortInfo[e.profileKey].tier!=="premium-legend","showAvatarBorder"),He=d(()=>!e?.commonFollowers||e.commonFollowers.length===0?[]:e.commonFollowers.toSorted((oe,je)=>{const ye=v?.memberCohortInfo[oe.pubkey]?.tier==="premium-legend",Ie=v?.memberCohortInfo[je.pubkey]?.tier==="premium-legend";let Ve=1;return ye&&!Ie&&(Ve=-1),Ve}).slice(0,5).reverse(),"commonFollowers"),Rt=d(()=>m?.actions.getStream(e?.profileKey||"n/a",!0),"getStream");return[t(zr,{get title(){return o.formatMessage(j.title,{name:e?.userProfile?.displayName||e?.userProfile?.name||Ft(G())})}}),t(y,{get when(){return e?.userProfile},get children(){var P=Fa();return n(P,t(Ht,{get src(){return me()},get altSrc(){return e?.userProfile?.banner},onError:$,plainBorder:!0,onImageLoaded:()=>{ke(!0)},width:640,get media(){return m?.actions.getMedia(me()||"","o")},get mediaThumb(){return m?.actions.getMedia(me()||"","m")||m?.actions.getMedia(me()||"","o")||me()},get authorPk(){return e?.profileKey}})),P}}),t(wn,{to:"search_section",get children(){return t(kn,{})}}),t(yn,{get children(){return t(Tt,{name:"slide-fade",get children(){return t(y,{get when(){return Me()},get children(){return t(ma,{get notes(){return e?.sidebarNotes.notes},get articles(){return e?.sidebarArticles.notes},get profile(){return e?.userProfile},get stream(){return Rt()}})}})}})}}),t(y,{get when(){return Me()},get fallback(){return t(Ia,{get tab(){return x()}})},get children(){var P=Ra(),H=P.firstChild,oe=H.nextSibling,je=oe.firstChild,ye=je.firstChild,Ie=oe.nextSibling,Ve=Ie.firstChild,ht=Ie.nextSibling,bt=ht.nextSibling;return n(H,t(y,{get when(){return e?.userProfile?.banner},get fallback(){return(()=>{var L=Ne();return f(()=>r(L,c.bannerPlaceholder)),L})()},get children(){return t(Ht,{class:"profile_image",get src(){return me()},get altSrc(){return e?.userProfile?.banner},onError:$,plainBorder:!0,width:640,get media(){return m?.actions.getMedia(me()||"","o")},get mediaThumb(){return m?.actions.getMedia(me()||"","m")||m?.actions.getMedia(me()||"","o")||me()},ignoreRatio:!0,get authorPk(){return e?.profileKey}})}})),n(ye,t($t,{get user(){return e?.userProfile},get size(){return B()?"lg":"xxl"},zoomable:!0,get showBorderRing(){return Zt()}})),n(Ve,t(Ge,{onClick:Yt,shrink:!0,get children(){var L=Ne();return f(()=>r(L,c.contextIcon)),L}}),null),n(Ve,t(mn,{id:"profile_context",get items(){return qt()},position:"profile",reverse:!0,get hidden(){return!C()}}),null),n(Ie,t(Ge,{onClick:()=>e?.userProfile&&v?.actions.openProfileQr(e?.userProfile),shrink:!0,get children(){var L=Ne();return f(()=>r(L,c.qrIcon)),L}}),null),n(Ie,t(y,{get when(){return!Oe()},get children(){return t(Ge,{onClick:()=>v?.actions.openCustomZapModal(zt()),shrink:!0,get children(){var L=Ne();return f(()=>r(L,c.zapIcon)),L}})}}),null),n(Ie,t(y,{get when(){return h?.publicKey},get children(){return t(Ge,{onClick:()=>S(`/dms/${e?.userProfile?.npub}`),shrink:!0,get children(){var L=Ne();return f(()=>r(L,c.messageIcon)),L}})}}),null),n(Ie,t(y,{get when(){return!Oe()||!h?.following.includes(e?.profileKey||"")},get children(){return t(cr,{get person(){return e?.userProfile},large:!0})}}),null),n(Ie,t(y,{get when(){return Oe()},get children(){var L=Ne();return n(L,t(Ge,{onClick:()=>S("/settings/profile"),get title(){return o.formatMessage(te.editProfile)},get children(){var ce=Ne();return n(ce,()=>o.formatMessage(te.editProfile)),ce}})),f(()=>r(L,c.editProfileButton)),L}}),null),n(ht,t(Nt,{get about(){return e?.userProfile?.about}})),n(bt,t(tt,{get children(){return[t(he,{get when(){return mt(e?.userProfile?.about)},get children(){var L=za(),ce=L.firstChild,be=ce.firstChild,Ze=be.firstChild,ze=be.nextSibling,_=ce.nextSibling,fe=_.firstChild,pe=fe.firstChild,ne=pe.firstChild,xe=ne.nextSibling,Te=pe.nextSibling,Fe=Te.firstChild,Ye=Fe.nextSibling;return n(Ze,q),n(be,t(y,{get when(){return le(()=>!!e?.userProfile?.nip05)()&&A()},get children(){var N=Ne();return n(N,t(tr,{get user(){return e?.userProfile},large:!0})),f(()=>r(N,c.vc)),N}}
1),null),n(be,t(y,{get when(){return ot()},get children(){return t(or,{get user(){return e?.userProfile},get cohortInfo(){return v?.memberCohortInfo[e?.profileKey]},get legendConfig(){return v?.legendCustomization[e?.profileKey]}})}}),null),n(ze,t(y,{get when(){return e?.userProfile?.nip05},get children(){var N=Aa(),Pe=N.firstChild,ae=Pe.firstChild;return n(ae,()=>Ot(e?.userProfile)),f(W=>{var w=`${c.verificationInfo} animated`,Se=c.verified,$e=c.nip05;return w!==W.e&&r(N,W.e=w),Se!==W.t&&r(Pe,W.t=Se),$e!==W.a&&r(ae,W.a=$e),W},{e:void 0,t:void 0,a:void 0}),N}}),null),n(ze,t(y,{get when(){return O()},get children(){var N=Ne();return n(N,()=>o.formatMessage(j.followsYou)),f(()=>r(N,c.followsBadge)),N}}),null),n(ce,t(y,{get when(){return e?.userProfile?.about},get children(){var N=Ne();return n(N,t(Nt,{get about(){return e?.userProfile?.about}})),f(()=>r(N,`${c.profileAboutHolder} animated`)),N}}),null),n(ce,t(y,{get when(){return e?.userProfile?.website},get children(){var N=Ka(),Pe=N.firstChild;return n(Pe,()=>rr(e?.userProfile?.website||"")),f(ae=>{var W=`${c.website} animated`,w=E(e?.userProfile?.website||"");return W!==ae.e&&r(N,ae.e=W),w!==ae.t&&nt(Pe,"href",ae.t=w),ae},{e:void 0,t:void 0}),N}}),null),pe.$$click=()=>de(()=>"follows"),n(ne,()=>(e?.userStats?.follows_count||0).toLocaleString()),Te.$$click=()=>de(()=>"followers"),n(Fe,()=>(e?.userStats?.followers_count||0).toLocaleString()),n(_,t(y,{get when(){return e?.userStats.time_joined},get children(){var N=Ne();return n(N,()=>o.formatMessage(j.jointDate,{date:nr(e?.userStats.time_joined)})),f(()=>r(N,`${c.joined} animated`)),N}}),null),n(_,t(y,{get when(){return He().length>0},get children(){var N=Tr(),Pe=N.firstChild,ae=Pe.nextSibling;return n(ae,t(Y,{get each(){return He()},children:(W,w)=>t(ut,{get href(){return v?.actions.profileLink(W.npub)||""},get class(){return c.avatar},get style(){return`z-index: ${1+w()}`},get children(){return t($t,{size:"nano",user:W})}})})),f(W=>{var w=`${c.commonFollows} animated`,Se=c.label,$e=c.avatars;return w!==W.e&&r(N,W.e=w),Se!==W.t&&r(Pe,W.t=Se),$e!==W.a&&r(ae,W.a=$e),W},{e:void 0,t:void 0,a:void 0}),N}}),null),f(N=>{var Pe=c.smallAbout,ae=c.columnLeft,W=`${c.basicInfoName} animated`,w=c.text,Se=c.nipLine,$e=c.columnRight,ge=`${c.followings} animated`,Ke=c.stats,Re=c.number,Be=c.label,qe=c.stats,Qe=c.number,Je=c.label;return Pe!==N.e&&r(L,N.e=Pe),ae!==N.t&&r(ce,N.t=ae),W!==N.a&&r(be,N.a=W),w!==N.o&&r(Ze,N.o=w),Se!==N.i&&r(ze,N.i=Se),$e!==N.n&&r(_,N.n=$e),ge!==N.s&&r(fe,N.s=ge),Ke!==N.h&&r(pe,N.h=Ke),Re!==N.r&&r(ne,N.r=Re),Be!==N.d&&r(xe,N.d=Be),qe!==N.l&&r(Te,N.l=qe),Qe!==N.u&&r(Fe,N.u=Qe),Je!==N.c&&r(Ye,N.c=Je),N},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0,r:void 0,d:void 0,l:void 0,u:void 0,c:void 0}),L}}),t(he,{get when(){return!mt(e?.userProfile?.about)},get children(){var L=Za(),ce=L.firstChild,be=ce.firstChild,Ze=be.firstChild,ze=be.nextSibling,_=ze.firstChild,fe=_.firstChild,pe=fe.nextSibling,ne=_.nextSibling,xe=ne.firstChild,Te=xe.nextSibling,Fe=ce.nextSibling,Ye=Fe.firstChild,N=Fe.nextSibling,Pe=N.nextSibling,ae=Pe.firstChild,W=ae.firstChild;return n(Ze,q),n(be,t(y,{get when(){return le(()=>!!e?.userProfile?.nip05)()&&A()},get children(){var w=Ne();return n(w,t(tr,{get user(){return e?.userProfile},large:!0})),f(()=>r(w,c.vc)),w}}),null),n(be,t(y,{get when(){return ot()},get children(){return t(or,{get user(){return e?.userProfile},get cohortInfo(){return v?.memberCohortInfo[e?.profileKey]},get legendConfig(){return v?.legendCustomization[e?.profileKey]}})}}),null),_.$$click=()=>de(()=>"follows"),n(fe,()=>(e?.userStats?.follows_count||0).toLocaleString()),ne.$$click=()=>de(()=>"followers"),n(xe,()=>(e?.userStats?.followers_count||0).toLocaleString()),n(Ye,t(y,{get when(){return e?.userProfile?.nip05},get children(){var w=Ne();return n(w,()=>Ot(e?.userProfile)),f(()=>r(w,c.nip05)),w}}),null),n(Ye,t(y,{get when(){return O()},get children(){var w=Ne();return n(w,()=>o.formatMessage(j.followsYou)),f(()=>r(w,c.followsBadge)),w}}),null),n(Fe,t(y,{get when(){return e?.userStats.time_joined},get children(){var w=Ne();return n(w,()=>o.formatMessage(j.jointDate,{date:nr(e?.userStats.time_joined)})),f(()=>r(w,c.joined)),w}}),null),n(N,t(Nt,{get about(){return e?.userProfile?.about}})),n(W,t(y,{get when(){return e?.userProfile?.website},get children(){var w=La();return n(w,()=>rr(e?.userProfile?.website||"")),f(()=>nt(w,"href",E(e?.userProfile?.website||""))),w}})),n(ae,t(y,{get when(){return He().length>0},get children(){var w=Tr(),Se=w.firstChild,$e=Se.nextSibling;return n($e,t(Y,{get each(){return He()},children:(ge,Ke)=>t(ut,{get href(){return v?.actions.profileLink(ge.npub)||""},get class(){return c.avatar},get style(){return`z-index: ${1+Ke()}`},get children(){return t($t,{size:"nano",user:ge})}})})),f(ge=>{var Ke=c.commonFollows,Re=c.label,Be=c.avatars;
1return Ke!==ge.e&&r(w,ge.e=Ke),Re!==ge.t&&r(Se,ge.t=Re),Be!==ge.a&&r($e,ge.a=Be),ge},{e:void 0,t:void 0,a:void 0}),w}}),null),f(w=>{var Se=c.bigAbout,$e=`${c.basicInfo} animated`,ge=c.basicInfoName,Ke=c.text,Re=c.followings,Be=c.stats,qe=c.number,Qe=c.label,Je=c.stats,Ct=c.number,fr=c.label,gr=`${c.verificationInfo} animated`,vr=c.verified,_r=`${c.profileAboutHolder} animated`,mr=c.profileLinks,hr=c.website;return Se!==w.e&&r(L,w.e=Se),$e!==w.t&&r(ce,w.t=$e),ge!==w.a&&r(be,w.a=ge),Ke!==w.o&&r(Ze,w.o=Ke),Re!==w.i&&r(ze,w.i=Re),Be!==w.n&&r(_,w.n=Be),qe!==w.s&&r(fe,w.s=qe),Qe!==w.h&&r(pe,w.h=Qe),Je!==w.r&&r(ne,w.r=Je),Ct!==w.d&&r(xe,w.d=Ct),fr!==w.l&&r(Te,w.l=fr),gr!==w.u&&r(Fe,w.u=gr),vr!==w.c&&r(Ye,w.c=vr),_r!==w.w&&r(N,w.w=_r),mr!==w.m&&r(ae,w.m=mr),hr!==w.f&&r(W,w.f=hr),w},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0,r:void 0,d:void 0,l:void 0,u:void 0,c:void 0,w:void 0,m:void 0,f:void 0}),L}})]}})),f(L=>{var ce=c.fullHeader,be=`${c.banner} ${We()} animated`,Ze=`${c.userImage} animated`,ze=B()?c.phoneAvatar:c.desktopAvatar,_=`${c.profileActions} animated`,fe=c.contextArea,pe=c.profileCard;return ce!==L.e&&r(P,L.e=ce),be!==L.t&&r(H,L.t=be),Ze!==L.a&&r(oe,L.a=Ze),ze!==L.o&&r(ye,L.o=ze),_!==L.i&&r(Ie,L.i=_),fe!==L.n&&r(Ve,L.n=fe),pe!==L.s&&r(bt,L.s=pe),L},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0}),P}}),t(y,{get when(){return le(()=>!!e?.profileKey)()&&Me()},get children(){return t(jr,{setProfile:X,get profileKey(){return e?.profileKey}})}}),t(jt,{get open(){return M()},get description(){return o.formatMessage(te.reportUserConfirm,{name:se(e?.userProfile)})},onConfirm:()=>{Jt(),U(!1)},onAbort:()=>U(!1)}),t(jt,{get open(){return J()},get description(){return o.formatMessage(te.muteUserConfirm,{name:se(e?.userProfile)})},onConfirm:()=>{Qt(),ve(!1)},onAbort:()=>ve(!1)}),t(Dr,{get open(){return z()},setOpen:de,get stats(){return{following:e?.userStats?.follows_count||0,followers:e?.userStats?.followers_count||0}}})]},"ProfileDesktop");ar(["click"]);const Ts=d(()=>t(y,{get when(){return cn()},get fallback(){return t(Ba,{})},get children(){return t(aa,{})}}),"Profile");export{Ts as default}; 2//# sourceMappingURL=Profile-216ef43a.js.map
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.