text: import{S as s,i as t,s as a,e,t as r,k as c,c as i,a as o,g as l,d as f,n,b as h,f as m,G as u,h as v,H as d}from"../../chunks/vendor-0bc65d02.js";function k(s){let t,a,k,p,$,x,E,b,g,y,z,A,_,H,P,S,j=s[1]+s[2]+1+"",w=s[0].title+"",C=s[4]()+"",G=s[0].user+"",I=s[0].time_ago+"";return{c(){t=e("article"),a=e("span"),k=r(j),p=c(),$=e("h2"),x=e("a"),E=r(w),b=c(),g=e("p"),y=e("a"),z=r(C),_=r(" by "),H=r(G),P=c(),S=r(I),this.h()},l(s){t=i(s,"ARTICLE",{class:!0});var e=o(t);a=i(e,"SPAN",{class:!0});var r=o(a);k=l(r,j),r.forEach(f),p=n(e),$=i(e,"H2",{class:!0});var c=o($);x=i(c,"A",{target:!0,href:!0,class:!0});var h=o(x);E=l(h,w),h.forEach(f),c.forEach(f),b=n(e),g=i(e,"P",{class:!0});var m=o(g);y=i(m,"A",{href:!0,class:!0});var u=o(y);z=l(u,C),u.forEach(f),_=l(m," by "),H=l(m,G),P=n(m),S=l(m,I),m.forEach(f),e.forEach(f),this.h()},h(){h(a,"class","svelte-12xk5z5"),h(x,"target","_blank"),h(x,"href",s[3]),h(x,"class","svelte-12xk5z5"),h($,"class","svelte-12xk5z5"),h(y,"href",A="#/item/"+s[0].id),h(y,"class","svelte-12xk5z5"),h(g,"class","meta"),h(t,"class","svelte-12xk5z5")},m(s,e){m(s,t,e),u(t,a),u(a,k),u(t,p),u(t,$),u($,x),u(x,E),u(t,b),u(t,g),u(g,y),u(y,z),u(g,_),u(g,H),u(g,P),u(g,S)},p(s,[t]){6&t&&j!==(j=s[1]+s[2]+1+"")&&v(k,j),1&t&&w!==(w=s[0].title+"")&&v(E,w),8&t&&h(x,"href",s[3]),1&t&&A!==(A="#/item/"+s[0].id)&&h(y,"href",A),1&t&&G!==(G=s[0].user+"")&&v(H,G),1&t&&I!==(I=s[0].time_ago+"")&&v(S,I)},i:d,o:d,d(s){s&&f(t)}}}function p(s,t,a){let e,{item:r}=t,{i:c}=t,{offset:i}=t;return s.$$set=s=>{"item"in s&&a(0,r=s.item),"i"in s&&a(1,c=s.i),"offset"in s&&a(2,i=s.offset)},s.$$.update=()=>{1&s.$$.dirty&&a(3,e="ask"===r.type?`https://news.ycombinator.com/${r.url}`:r.url)},[r,c,i,e,function(){const s=r.comments_count;return`${s} ${1===s?"comment":"comments"}`}]}export default class extends s{constructor(s){super(),t(this,s,p,k,a,{item:0,i:1,offset:2})}}
  