import*as Root from"../root/root.js";import*as ThemeSupport from"../theme_support/theme_support.js";import{CSS_RESOURCES_TO_LOAD_INTO_RUNTIME}from"./get-stylesheet.js";export async function setup(){const t={get:()=>"default"};ThemeSupport.ThemeSupport.instance({forceNew:!0,setting:t});const e=CSS_RESOURCES_TO_LOAD_INTO_RUNTIME.map((t=>fetch("/front_end/"+t).then((t=>t.text())).then((e=>{Root.Runtime.cachedResources.set(t,e)}))));await Promise.all(e)}