import{c as t,d as s,b as e,e as l,f as a,g as o,h as n,i as r,j as h,k as c,l as f,m as u,n as i,o as p,ag as g,p as d,a as m,a1 as v}from"./chunk.82446879.js";function E(t,s,e){const l=t.slice();return l[1]=s[e],l}function b(t){let s,e,p,g,d=t[1].title+"";return{c(){s=l("li"),e=l("a"),p=a(d),this.h()},l(t){s=o(t,"LI",{});var l=n(s);e=o(l,"A",{rel:!0,href:!0});var a=n(e);p=r(a,d),a.forEach(h),l.forEach(h),this.h()},h(){c(e,"rel","prefetch"),c(e,"href",g="blog/"+t[1].slug)},m(t,l){f(t,s,l),u(s,e),u(e,p)},p(t,s){1&s&&d!==(d=t[1].title+"")&&i(p,d),1&s&&g!==(g="blog/"+t[1].slug)&&c(e,"href",g)},d(t){t&&h(s)}}}function j(t){let s,e,i,j,x,y=t[0],k=[];for(let s=0;s<y.length;s+=1)k[s]=b(E(t,y,s));return{c(){s=p(),e=l("h1"),i=a("Recent posts"),j=p(),x=l("ul");for(let t=0;t<k.length;t+=1)k[t].c();this.h()},l(t){g('[data-svelte="svelte-hfp9t8"]',document.head).forEach(h),s=d(t),e=o(t,"H1",{});var l=n(e);i=r(l,"Recent posts"),l.forEach(h),j=d(t),x=o(t,"UL",{class:!0});var a=n(x);for(let t=0;t<k.length;t+=1)k[t].l(a);a.forEach(h),this.h()},h(){document.title="Blog",c(x,"class","svelte-4fatyy")},m(t,l){f(t,s,l),f(t,e,l),u(e,i),f(t,j,l),f(t,x,l);for(let t=0;t<k.length;t+=1)k[t].m(x,null)},p(t,[s]){if(1&s){let e;for(y=t[0],e=0;e<y.length;e+=1){const l=E(t,y,e);k[e]?k[e].p(l,s):(k[e]=b(l),k[e].c(),k[e].m(x,null))}for(;e<k.length;e+=1)k[e].d(1);k.length=y.length}},i:m,o:m,d(t){t&&h(s),t&&h(e),t&&h(j),t&&h(x),v(k,t)}}}function x({params:t,query:s}){return this.fetch("blog.json").then(t=>t.json()).then(t=>({posts:t}))}function y(t,s,e){let{posts:l}=s;return t.$set=(t=>{"posts"in t&&e(0,l=t.posts)}),[l]}export default class extends t{constructor(t){super(),s(this,t,y,j,e,{posts:0})}}export{x as preload};
//# sourceMappingURL=index.6cf02bd4.js.map
