globalThis.process ??= {}; globalThis.process.env ??= {};
import { c as createJsonResponse, a as createIndexKey } from '../../../../chunks/apiHelpers_CD8DANYs.mjs';
import { t as tabs } from '../../../../chunks/apiIndex_rjiPwa_V.mjs';
export { r as renderers } from '../../../../chunks/_@astro-renderers_OzpRq-hZ.mjs';

const prerender = false;
const GET = async ({ params }) => {
  const { version, section, page } = params;
  if (!version || !section || !page) {
    return createJsonResponse(
      { error: "Version, section, and page parameters are required" },
      400
    );
  }
  const key = createIndexKey(version, section, page);
  const tabs$1 = tabs[key];
  if (!tabs$1) {
    return createJsonResponse(
      {
        error: `Page '${page}' not found in section '${section}' for version '${version}'`
      },
      404
    );
  }
  return createJsonResponse(tabs$1);
};

const _page = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
  __proto__: null,
  GET,
  prerender
}, Symbol.toStringTag, { value: 'Module' }));

const page = () => _page;

export { page };
