{"version":3,"file":"findRootLayout.js","names":[],"sources":["esm/utils/findRootLayout.js"],"sourcesContent":["function findRootLayout(routes, routerRoot) {\n  const exactKey = `/${routerRoot}/_layout.tsx`;\n  if (routes[exactKey]) return routes[exactKey]();\n  for (const suffix of [\"+ssg\", \"+ssr\", \"+spa\"]) {\n    const key = `/${routerRoot}/_layout${suffix}.tsx`;\n    if (routes[key]) return routes[key]();\n  }\n  const exactKeyTs = `/${routerRoot}/_layout.ts`;\n  if (routes[exactKeyTs]) return routes[exactKeyTs]();\n  for (const suffix of [\"+ssg\", \"+ssr\", \"+spa\"]) {\n    const key = `/${routerRoot}/_layout${suffix}.ts`;\n    if (routes[key]) return routes[key]();\n  }\n  return void 0;\n}\nexport {\n  findRootLayout\n};\n//# sourceMappingURL=findRootLayout.js.map\n"],"mappings":";AAAA,SAAS,eAAe,QAAQ,YAAY;CAC1C,MAAM,WAAW,IAAI,WAAW;CAChC,IAAI,OAAO,WAAW,OAAO,OAAO,SAAS,CAAC;CAC9C,KAAK,MAAM,UAAU;EAAC;EAAQ;EAAQ;CAAM,GAAG;EAC7C,MAAM,MAAM,IAAI,WAAW,UAAU,OAAO;EAC5C,IAAI,OAAO,MAAM,OAAO,OAAO,IAAI,CAAC;CACtC;CACA,MAAM,aAAa,IAAI,WAAW;CAClC,IAAI,OAAO,aAAa,OAAO,OAAO,WAAW,CAAC;CAClD,KAAK,MAAM,UAAU;EAAC;EAAQ;EAAQ;CAAM,GAAG;EAC7C,MAAM,MAAM,IAAI,WAAW,UAAU,OAAO;EAC5C,IAAI,OAAO,MAAM,OAAO,OAAO,IAAI,CAAC;CACtC;CACA,OAAO,KAAK;AACd"}