import CJS_COMPAT_NODE_URL_7akq6ta4tq from 'node:url';
import CJS_COMPAT_NODE_PATH_7akq6ta4tq from 'node:path';
import CJS_COMPAT_NODE_MODULE_7akq6ta4tq from "node:module";

var __filename = CJS_COMPAT_NODE_URL_7akq6ta4tq.fileURLToPath(import.meta.url);
var __dirname = CJS_COMPAT_NODE_PATH_7akq6ta4tq.dirname(__filename);
var require = CJS_COMPAT_NODE_MODULE_7akq6ta4tq.createRequire(import.meta.url);

// ------------------------------------------------------------
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
// ------------------------------------------------------------

// src/common/versions.ts
var versions_default = {
  "@storybook/addon-a11y": "0.0.0-pr-34561-sha-18f76fca",
  "@storybook/addon-docs": "0.0.0-pr-34561-sha-18f76fca",
  "@storybook/addon-links": "0.0.0-pr-34561-sha-18f76fca",
  "@storybook/addon-onboarding": "0.0.0-pr-34561-sha-18f76fca",
  "storybook-addon-pseudo-states": "0.0.0-pr-34561-sha-18f76fca",
  "@storybook/addon-themes": "0.0.0-pr-34561-sha-18f76fca",
  "@storybook/addon-vitest": "0.0.0-pr-34561-sha-18f76fca",
  "@storybook/builder-vite": "0.0.0-pr-34561-sha-18f76fca",
  "@storybook/builder-webpack5": "0.0.0-pr-34561-sha-18f76fca",
  storybook: "0.0.0-pr-34561-sha-18f76fca",
  "@storybook/angular": "0.0.0-pr-34561-sha-18f76fca",
  "@storybook/ember": "0.0.0-pr-34561-sha-18f76fca",
  "@storybook/html-vite": "0.0.0-pr-34561-sha-18f76fca",
  "@storybook/nextjs": "0.0.0-pr-34561-sha-18f76fca",
  "@storybook/nextjs-vite": "0.0.0-pr-34561-sha-18f76fca",
  "@storybook/preact-vite": "0.0.0-pr-34561-sha-18f76fca",
  "@storybook/react-native-web-vite": "0.0.0-pr-34561-sha-18f76fca",
  "@storybook/react-vite": "0.0.0-pr-34561-sha-18f76fca",
  "@storybook/react-webpack5": "0.0.0-pr-34561-sha-18f76fca",
  "@storybook/server-webpack5": "0.0.0-pr-34561-sha-18f76fca",
  "@storybook/svelte-vite": "0.0.0-pr-34561-sha-18f76fca",
  "@storybook/sveltekit": "0.0.0-pr-34561-sha-18f76fca",
  "@storybook/vue3-vite": "0.0.0-pr-34561-sha-18f76fca",
  "@storybook/web-components-vite": "0.0.0-pr-34561-sha-18f76fca",
  sb: "0.0.0-pr-34561-sha-18f76fca",
  "@storybook/cli": "0.0.0-pr-34561-sha-18f76fca",
  "@storybook/codemod": "0.0.0-pr-34561-sha-18f76fca",
  "@storybook/core-webpack": "0.0.0-pr-34561-sha-18f76fca",
  "create-storybook": "0.0.0-pr-34561-sha-18f76fca",
  "@storybook/csf-plugin": "0.0.0-pr-34561-sha-18f76fca",
  "eslint-plugin-storybook": "0.0.0-pr-34561-sha-18f76fca",
  "@storybook/react-dom-shim": "0.0.0-pr-34561-sha-18f76fca",
  "@storybook/preset-create-react-app": "0.0.0-pr-34561-sha-18f76fca",
  "@storybook/preset-react-webpack": "0.0.0-pr-34561-sha-18f76fca",
  "@storybook/preset-server-webpack": "0.0.0-pr-34561-sha-18f76fca",
  "@storybook/html": "0.0.0-pr-34561-sha-18f76fca",
  "@storybook/preact": "0.0.0-pr-34561-sha-18f76fca",
  "@storybook/react": "0.0.0-pr-34561-sha-18f76fca",
  "@storybook/server": "0.0.0-pr-34561-sha-18f76fca",
  "@storybook/svelte": "0.0.0-pr-34561-sha-18f76fca",
  "@storybook/vue3": "0.0.0-pr-34561-sha-18f76fca",
  "@storybook/web-components": "0.0.0-pr-34561-sha-18f76fca"
};

// src/common/node-version.ts
import { satisfies } from "semver";
var MIN_SUPPORTED_NODE_VERSIONS = [
  { major: 20, minor: 19, patch: 0 },
  { major: 22, minor: 12, patch: 0 }
];
function formatMinVersion(v) {
  return v.minor === 0 && v.patch === 0 ? `${v.major}+` : v.patch === 0 ? `${v.major}.${v.minor}+` : `${v.major}.${v.minor}.${v.patch}+`;
}
var MIN_SUPPORTED_NODE_DESCRIPTION = MIN_SUPPORTED_NODE_VERSIONS.map(formatMinVersion).join(" or ");
function isNodeVersionSupported(major, minor, patch) {
  let sortedMinimums = [...MIN_SUPPORTED_NODE_VERSIONS].sort((a, b) => a.major - b.major), supportedRange = sortedMinimums.map((min, index) => {
    let next = sortedMinimums[index + 1], lowerBound = `>=${min.major}.${min.minor}.${min.patch}`;
    return next ? `${lowerBound} <${next.major}.0.0` : lowerBound;
  }).join(" || ");
  return satisfies(`${major}.${minor}.${patch}`, supportedRange);
}

export {
  versions_default,
  MIN_SUPPORTED_NODE_VERSIONS,
  formatMinVersion,
  MIN_SUPPORTED_NODE_DESCRIPTION,
  isNodeVersionSupported
};
