+ {#each names as n}
{n}
{/each}
+ {#each weeks as week}
+ {#each week as day}
+ {@const list = byDay.get(day) ?? []}
+ {@const outside = day.slice(0, 7) !== month}
+ {#snippet cell()}
+
{parse(day).getDate()}
+ {#each list.slice(0, 3) as e (e.id)}
+
{e.title}
+ {/each}
+ {#if list.length > 3}
+{list.length - 3}{/if}
+ {/snippet}
+ {#if onday}
+
+ {:else}
+
{@render cell()}
+ {/if}
+ {/each}
+ {/each}
+
+