{#snippet actions()} {#if jobId && download} {/if} {/snippet}
{#if content}{@const len =
						(content?.length ?? 0) +
						(loadedFromObjectStore?.length ?? 0)}{#if splitHtml}{@html splitHtml.before}{@html splitHtml.after}{:else if downloadStartUrl}
{@html html}{:else if len > LOG_LIMIT}(truncated to the last {LOG_LIMIT} characters)...

{@html html}{:else}{@html html}{/if}{:else if isLoading}Waiting for job to start...{:else}No logs are available yet{/if}
{#if jobId && download} {/if} {#if !noAutoScroll} {/if}
{#if isLoading}
{#if tag}
{tagLabel ?? 'tag'}: {tag}
{/if} {#if jobId} {/if}
{:else if duration} took {duration}ms {/if} {#if mem} mem peak: {(mem / 1024).toPrecision(4)}MB {/if}
{#if content}{@const len =
						(content?.length ?? 0) +
						(loadedFromObjectStore?.length ?? 0)}{#if splitHtml}{@html splitHtml.before}{@html splitHtml.after}{:else if downloadStartUrl}
{@html html}{:else if len > LOG_LIMIT} ({LOG_LIMIT}/{len} chars)
{@html html}{:else}{@html html}{/if}{:else if !isLoading}{customEmptyMessage}{/if}