{#each items as item, index (item.key)}
{@const state = stateOf(index)}
{@const here = !complete && index === current}
{@const filled = complete || index < current}
{@const selectable = index <= furthest}
{@const slot = steps({ state, filled, here, clickable: selectable && !here })}
{@const description = `Step ${index + 1} of ${items.length}: ${item.label}`}
-
{#if selectable}
{:else}
{index + 1}
{item.label}
{description}
{/if}
{#if index < items.length - 1}
{/if}
{/each}