import{SasXe,casZe,aaset,dasEe,easye,masCe,tasV,hasVe,basP,faske,gastt,jasxe,nasHe}from"./index-Bq12SwZr.js";import{aasf,basy,tasre,fasu,has$,dasr,kasC,jasne,lasT,iasN,masl,naspe,Haslt,casat,pasue,qasBe,easUe}from"./lifecycle-DxKVJJp3.js";import{easJe}from"./each-7Ynn8rM3.js";import{$asst}from"./runtime-5BIk_n0E.js";import{easrt}from"./ZoomOut24-DEQR2-6L.js";import{Aasnt}from"./Avatar-U99fs8j3.js";import{Basot}from"./BlockOrReport-CiplvoIf.js";import{Casit}from"./Created-B7rrzSx4.js";import{Dasft}from"./DisplayName-tXfxWo2j.js";import{Hasut}from"./History-Pa1WX-Nj.js";import{Maspt}from"./MainMenu-DrcDUQ27.js";import{PasWe}from"./Project-CM8B3tsp.js";functionYe(o,t,n){conste=o.slice();returne[5]=t[n],e}functionqe(o,t,n){conste=o.slice();returne[5]=t[n],e}functionct(o){lett,n=o[2]("page.profile.projects.empty")+"",e,i,a,c=o[2]("page.profile.projects.add_or_import",{values:{addElementOpen:'<a class="anchor" href="#">',addElementClose:"</a>",importElementOpen:`<a class="anchor" href="/projects/import/" data-sb-kind=${o[1]}>`,importElementClose:"</a>"}})+"";return{c(){t=f("p"),e=re(n),i=y(),a=newlt(!1),this.h()},l(h){t=u(h,"P",{class:!0});varg=$(t);e=ne(g,n),i=C(g),a=at(g,!1),g.forEach(r),this.h()},h(){a.a=null,T(t,"class","px-4")},m(h,g){N(h,t,g),l(t,e),l(t,i),a.m(c,t)},p(h,g){g&4&&n!==(n=h[2]("page.profile.projects.empty")+"")&&pe(e,n),g&6&&c!==(c=h[2]("page.profile.projects.add_or_import",{values:{addElementOpen:'<a class="anchor" href="#">',addElementClose:"</a>",importElementOpen:`<a class="anchor" href="/projects/import/" data-sb-kind=${h[1]}>`,importElementClose:"</a>"}})+"")&&a.p(c)},i:He,o:He,d(h){h&&r(t)}}}functionmt(o){varx;lett,n,e,i=o[2]("page.profile.repositories.heading")+"",a,c,h,g,j,S,Y="The following is DEBUG information and will be removed in the near future.",A,U,D=Je(o[0].user.followingsMap),b=[];for(lets=0;s<D.length;s+=1)b[s]=Ge(qe(o,D,s));constq=s=>V(b[s],1,1,()=>{b[s]=null});letk=Je(o[0].user.followingsMap),v=[];for(lets=0;s<k.length;s+=1)v[s]=Ke(Ye(o,k,s));constW=s=>V(v[s],1,1,()=>{v[s]=null});letI=((x=o[0])==null?void0:x.user)&&Qe(o);return{c(){t=f("ul");for(lets=0;s<b.length;s+=1)b[s].c();n=y(),e=f("h2"),a=re(i),c=y(),h=f("section");for(lets=0;s<v.length;s+=1)v[s].c();g=y(),j=f("div"),S=f("p"),S.textContent=Y,A=y(),I&&I.c(),this.h()},l(s){t=u(s,"UL",{});vard=$(t);for(letH=0;H<b.length;H+=1)b[H].l(d);d.forEach(r),n=C(s),e=u(s,"H2",{class:!0});varM=$(e);a=ne(M,i),M.forEach(r),c=C(s),h=u(s,"SECTION",{class:!0});varp=$(h);for(letH=0;H<v.length;H+=1)v[H].l(p);p.forEach(r),g=C(s),j=u(s,"DIV",{});varR=$(j);S=u(R,"P",{"data-svelte-h":!0}),ue(S)!=="svelte-qlo5bs"&&(S.textContent=Y),A=C(R),I&&I.l(R),R.forEach(r),this.h()},h(){T(e,"class","h2 font-semibold leading-tight text-base px-4"),T(h,"class","flex flex-col gap-4")},m(s,d){N(s,t,d);for(letM=0;M<b.length;M+=1)b[M]&&b[M].m(t,null);N(s,n,d),N(s,e,d),l(e,a),N(s,c,d),N(s,h,d);for(letM=0;M<v.length;M+=1)v[M]&&v[M].m(h,null);N(s,g,d),N(s,j,d),l(j,S),l(j,A),I&&I.m(j,null),U=!0},p(s,d){varM;if(d&25){D=Je(s[0].user.followingsMap);letp;for(p=0;p<D.length;p+=1){constR=qe(s,D,p);b[p]?(b[p].p(R,d),P(b[p],1)):(b[p]=Ge(R),b[p].c(),P(b[p],1),b[p].m(t,null))}for(xe(),p=D.length;p<b.length;p+=1)q(p);Ve()}if((!U||d&4)&&i!==(i=s[2]("page.profile.repositories.heading")+"")&&pe(a,i),d&9){k=Je(s[0].user.followingsMap);letp;for(p=0;p<k.length;p+=1){constR=Ye(s,k,p);v[p]?(v[p].p(R,d),P(v[p],1)):(v[p]=Ke(R),v[p].c(),P(v[p],1),v[p].m(h,null))}for(xe(),p=k.length;p<v.length;p+=1)W(p);Ve()}(M=s[0])!=null&&M.user?I?I.p(s,d):(I=Qe(s),I.c(),I.m(j,null)):I&&(I.d(1),I=null)},i(s){if(!U){for(letd=0;d<D.length;d+=1)P(b[d]);for(letd=0;d<k.length;d+=1)P(v[d]);U=!0}},o(s){b=b.filter(Boolean);for(letd=0;d<b.length;d+=1)V(b[d]);v=v.filter(Boolean);for(letd=0;d<v.length;d+=1)V(v[d]);U=!1},d(s){s&&(r(t),r(n),r(e),r(c),r(h),r(g),r(j)),Be(b,s),Be(v,s),I&&I.d()}}}functionFe(o){lett,n,e,i;returnn=newWe({props:{collaborators:o[4]([o[0].user.person],o[0].user.collaboratorsMap,o[5]