{#each segments as seg, i (i)}
{@render item(seg.item)}
{/each}
{#if items.length > 0}
{#each railEntries as entry} {@const isLoaded = populated.has(entry)} {@const couldLoad = !isLoaded && hasMore} {@const enabled = isLoaded || couldLoad} {@const isPending = pendingBucket === entry}
enabled && jumpTo(entry)} aria-label={enabled ? `Jump to ${entry === '#' ? 'numbers' : entry === '&' ? 'symbols' : entry}` : `${entry === '#' ? 'Numbers' : entry === '&' ? 'Symbols' : entry} — no entries`} aria-busy={isPending} > {#if isPending}
{:else} {entry} {/if}
{/each}
{/if}