const i = [
  {
    key: "bash",
    aliases: ["curl", "sh", "shell"],
    displayName: "cURL",
    shikiLanguage: "bash",
    httpSnippet: { target: "shell" }
  },
  {
    key: "python",
    aliases: ["py"],
    displayName: "Python",
    shikiLanguage: "python",
    httpSnippet: { target: "python", client: "requests" }
  },
  {
    key: "javascript",
    aliases: ["js"],
    displayName: "JavaScript",
    shikiLanguage: "javascript",
    httpSnippet: { target: "javascript", client: "fetch" }
  },
  {
    key: "node",
    aliases: ["nodejs", "node.js"],
    displayName: "Node.js",
    iconKey: "node",
    shikiLanguage: "javascript",
    httpSnippet: { target: "node", client: "fetch" }
  },
  {
    key: "php",
    displayName: "PHP",
    shikiLanguage: "php",
    httpSnippet: { target: "php", client: "curl" }
  },
  {
    key: "go",
    aliases: ["golang"],
    displayName: "Go",
    shikiLanguage: "go",
    httpSnippet: { target: "go" }
  },
  {
    key: "java",
    displayName: "Java",
    shikiLanguage: "java",
    httpSnippet: { target: "java" }
  },
  {
    key: "ruby",
    aliases: ["rb"],
    displayName: "Ruby",
    shikiLanguage: "ruby",
    httpSnippet: { target: "ruby" }
  },
  {
    key: "powershell",
    displayName: "PowerShell",
    shikiLanguage: "bash",
    // shiki doesn't have powershell in our LANGS
    httpSnippet: { target: "powershell" }
  },
  {
    key: "swift",
    displayName: "Swift",
    shikiLanguage: "swift",
    httpSnippet: { target: "swift" }
  },
  {
    key: "csharp",
    aliases: ["c#"],
    displayName: "C#",
    shikiLanguage: "csharp",
    httpSnippet: { target: "csharp", client: "restsharp" }
  },
  {
    key: "dotnet",
    aliases: [".net", ".NET", "dotnet", "dot-net"],
    displayName: ".NET",
    iconKey: "dot-net",
    shikiLanguage: "csharp",
    httpSnippet: { target: "csharp", client: "restsharp" }
  },
  {
    key: "typescript",
    aliases: ["ts"],
    displayName: "TypeScript",
    shikiLanguage: "typescript",
    httpSnippet: { target: "javascript", client: "fetch" }
  },
  {
    key: "c",
    displayName: "C",
    shikiLanguage: "c",
    httpSnippet: { target: "c" }
  },
  {
    key: "c++",
    aliases: ["cpp"],
    displayName: "C++",
    shikiLanguage: "c++",
    iconKey: "cplusplus",
    httpSnippet: { target: "c" }
  },
  {
    key: "kotlin",
    aliases: ["kt"],
    displayName: "Kotlin",
    shikiLanguage: "kotlin",
    httpSnippet: { target: "kotlin" }
  },
  {
    key: "rust",
    aliases: ["rs"],
    displayName: "Rust",
    shikiLanguage: "rust",
    httpSnippet: { target: "rust" }
  },
  {
    key: "dart",
    aliases: ["flutter"],
    displayName: "Dart",
    shikiLanguage: "dart",
    httpSnippet: { target: "dart" }
  },
  {
    key: "toml",
    displayName: "TOML",
    shikiLanguage: "yaml"
  }
], a = /* @__PURE__ */ new Map();
for (const e of i) {
  a.set(e.key.toLowerCase(), e);
  for (const t of e.aliases ?? [])
    a.set(t.toLowerCase(), e);
}
const s = (e) => a.get(e.toLowerCase()), p = (e) => {
  var t;
  return ((t = s(e)) == null ? void 0 : t.displayName) ?? e;
}, n = (e) => {
  const t = s(e);
  return t ? t.iconKey ?? t.key : void 0;
}, r = (e) => {
  var t;
  return ((t = s(e)) == null ? void 0 : t.shikiLanguage) ?? e;
};
export {
  i as SNIPPET_PRESETS,
  p as getDisplayName,
  n as getIconKey,
  s as getPreset,
  r as getShikiLanguageFromPreset
};
