{#if showOverlay}

{displayTitle}

{#if progress() > 0}
{Math.round(progress())}% abgeschlossen {#if loading.estimatedTime && loading.estimatedTime > Date.now()} ~{Math.max(1, Math.ceil((loading.estimatedTime - Date.now()) / 1000))}s verbleibend {/if}
{/if}
{#if !minimized}
{#each loading.steps as step, index}
{#if step.status === 'completed'}
{:else if step.status === 'active'}
{:else if step.status === 'error'}
{:else}
{/if}

{step.label}

{#if step.message}

{step.message}

{/if}
{#if index < loading.steps.length - 1}
{#if step.status === 'active'}
{/if}
{/if} {/each}
{#if loading.error}

{loading.error}

{/if} {#if loading.funFact && !loading.error}

{loading.funFact}

{/if}
{#if loading.error}
{/if} {/if}
{/if}