text: "use strict";
  
  Object.defineProperty(exports, "__esModule", {
    value: true
  });
  exports.default = void 0;
  
  function _helperPluginUtils() {
    var data = require("@babel/helper-plugin-utils");
  
    _helperPluginUtils = function _helperPluginUtils() {
      return data;
    };
  
    return data;
  }
  
  function _pluginSyntaxOptionalCatchBinding() {
    var data = _interopRequireDefault(require("@babel/plugin-syntax-optional-catch-binding"));
  
    _pluginSyntaxOptionalCatchBinding = function _pluginSyntaxOptionalCatchBinding() {
      return data;
    };
  
    return data;
  }
  
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  
  var _default = (0, _helperPluginUtils().declare)(function (api) {
    api.assertVersion(7);
    return {
      inherits: _pluginSyntaxOptionalCatchBinding().default,
      visitor: {
        CatchClause: function CatchClause(path) {
          if (!path.node.param) {
            var uid = path.scope.generateUidIdentifier("unused");
            var paramPath = path.get("param");
            paramPath.replaceWith(uid);
          }
        }
      }
    };
  });
  
  exports.default = _default;