const imports = { async signals() { return import("./modules/brk-signals/index.js").then((d) => d.default); }, async leanQr() { return import("./modules/lean-qr/2.6.0/index.mjs").then((d) => d); }, async ufuzzy() { return import("./modules/leeoniya-ufuzzy/1.0.19/dist/uFuzzy.mjs").then( ({ default: d }) => d, ); }, async brkClient() { return import("./modules/brk-client/index.js").then((d) => d); }, async brkResources() { return import("./modules/brk-resources/index.js").then((d) => d); }, async chart() { return window.document.fonts.ready.then(() => import("./core/chart/index.js").then((d) => d.default), ); }, async options() { return import("./core/options/full.js").then((d) => d); }, }; /** * @template {keyof typeof imports} K * @param {K} key */ function lazyImport(key) { /** @type {any | null} */ let packagePromise = null; return function () { if (!packagePromise) { packagePromise = imports[key](); } return /** @type {ReturnType} */ (packagePromise); }; } export default /** @type {{ [K in keyof typeof imports]: () => ReturnType }} */ ( Object.fromEntries( Object.keys(imports).map((key) => [ key, lazyImport(/** @type {keyof typeof imports} */ (key)), ]), ) );