import { lazy as l } from "react";
const u = (t, o = "default", e = 0) => l(async () => {
  const r = await t();
  if (!r[o])
    throw new Error(`Module does not export '${o}'.`);
  return new Promise((s) => {
    setTimeout(() => {
      s({
        default: r[o]
      });
    }, e);
  });
});
export {
  u as lazyImport
};
