{#if open}
{#if searchable} {/if}
{#each visibleOptions as option, index (`${option.value}:${index}`)} {#if option.group && (index === 0 || visibleOptions[index - 1]?.group !== option.group)} {/if} {/each}
{#if searchable && !visibleOptions.length}
{emptyText}
{/if}
{/if}