{"version":3,"sources":["jsdelivr-header.js","/npm/@babel/plugin-syntax-flow@7.28.6/src/index.ts"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,2FCNA,IAAA,mBAAA,QAAA,8BAAqD,SAAA,QAAA,SAMtC,EAAA,6BAAQ,CAAC,EAAK,KAC3B,EAAI,cAA+B,wBAKnC,MAAM,IAAE,EAAG,MAAE,GAAU,EAEvB,GAAmB,kBAAR,QAA6B,IAAR,EAC9B,MAAM,IAAI,MAAM,wCAiBlB,OAPgB,IAAV,GACF,QAAQ,KACN,mEAKC,CACL,KAAM,cAEN,kBAAkB,EAAM,GAKlB,EAAW,QAAQ,MACjB,GAAuC,gBAAjC,MAAM,QAAQ,GAAK,EAAE,GAAK,MAWpC,EAAW,QAAQ,KAAK,CAAC,OAAQ,CAAE,MAAK,UAE5C,EACD","file":"/npm/@babel/plugin-syntax-flow@7.28.6/lib/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/@babel/plugin-syntax-flow@7.28.6/lib/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","import { declare } from \"@babel/helper-plugin-utils\";\n\nexport interface Options {\n  all?: boolean;\n}\n\nexport default declare((api, options: Options) => {\n  api.assertVersion(REQUIRED_VERSION(\"^7.0.0-0 || ^8.0.0-0\"));\n\n  // When enabled and plugins includes flow, all files should be parsed as if\n  // the @flow pragma was provided.\n  // @ts-expect-error Babel 7\n  const { all, enums } = options;\n\n  if (typeof all !== \"boolean\" && all !== undefined) {\n    throw new Error(\".all must be a boolean, or undefined\");\n  }\n\n  if (process.env.BABEL_8_BREAKING) {\n    if (enums !== undefined) {\n      throw new Error(\n        \"The .enums option has been removed and it's now always enabled. Please remove it from your config.\",\n      );\n    }\n  } else {\n    if (enums === false) {\n      console.warn(\n        \"The .enums option has been removed and it's now always enabled.\",\n      );\n    }\n  }\n\n  return {\n    name: \"syntax-flow\",\n\n    manipulateOptions(opts, parserOpts) {\n      if (!process.env.BABEL_8_BREAKING) {\n        // If the file has already enabled TS, assume that this is not a\n        // valid Flowtype file.\n        if (\n          parserOpts.plugins.some(\n            p => (Array.isArray(p) ? p[0] : p) === \"typescript\",\n          )\n        ) {\n          return;\n        }\n      }\n\n      if (process.env.BABEL_8_BREAKING) {\n        parserOpts.plugins.push([\"flow\", { all }]);\n      } else {\n        // @ts-expect-error Babel 7\n        parserOpts.plugins.push([\"flow\", { all, enums }]);\n      }\n    },\n  };\n});\n"]}