{"size": 4297, "ext": "js", "max_stars_repo_path": "packages/embed/lib/setups/index.js", "max_stars_repo_name": "LeoChat/BotFramework-WebChat", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "packages/embed/lib/setups/index.js", "max_issues_repo_name": "LeoChat/BotFramework-WebChat", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "packages/embed/lib/setups/index.js", "max_forks_repo_name": "LeoChat/BotFramework-WebChat", "max_forks_repo_forks_event_min_datetime": "2018-11-01T18:05:50.000Z", "max_forks_repo_forks_event_max_datetime": "2018-11-01T18:05:50.000Z"}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": 1, "avg_line_length": 46.7065217391, "max_line_length": 1728, "alphanum_fraction": 0.7337677449}
'use strict';

var _interopRequireDefault = require('@babel/runtime/helpers/interopRequireDefault');

Object.defineProperty(exports, '__esModule', {
  value: true
});
exports.default = setup;

var _regenerator = _interopRequireDefault(require('@babel/runtime/regenerator'));

var _asyncToGenerator2 = _interopRequireDefault(require('@babel/runtime/helpers/asyncToGenerator'));

var _aries = _interopRequireDefault(require('./aries'));

var _scorpio = _interopRequireDefault(require('./scorpio'));

var _version = _interopRequireDefault(require('./version3'));

var _version2 = _interopRequireDefault(require('./version4'));

function setup() {
  return _setup.apply(this, arguments);
}

function _setup() {
  _setup = (0, _asyncToGenerator2.default)(
    /*#__PURE__*/
    _regenerator.default.mark(function _callee() {
      var _len,
        args,
        _key,
        _args$,
        versionFamily,
        _args = arguments;

      return _regenerator.default.wrap(function _callee$(_context) {
        while (1) {
          switch ((_context.prev = _context.next)) {
            case 0:
              for (_len = _args.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
                args[_key] = _args[_key];
              }

              _args$ = args[0];
              _args$ = _args$ === void 0 ? {} : _args$;
              versionFamily = _args$.versionFamily;
              _context.t0 = versionFamily;
              _context.next =
                _context.t0 === 'aries' ? 7 : _context.t0 === 'scorpio' ? 10 : _context.t0 === '3' ? 13 : 16;
              break;

            case 7:
              _context.next = 9;
              return _aries.default.apply(void 0, args);

            case 9:
              return _context.abrupt('return', _context.sent);

            case 10:
              _context.next = 12;
              return _scorpio.default.apply(void 0, args);

            case 12:
              return _context.abrupt('return', _context.sent);

            case 13:
              _context.next = 15;
              return _version.default.apply(void 0, args);

            case 15:
              return _context.abrupt('return', _context.sent);

            case 16:
              _context.next = 18;
              return _version2.default.apply(void 0, args);

            case 18:
              return _context.abrupt('return', _context.sent);

            case 19:
            case 'end':
              return _context.stop();
          }
        }
      }, _callee);
    })
  );
  return _setup.apply(this, arguments);
}
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9zZXR1cHMvaW5kZXguanMiXSwibmFtZXMiOlsic2V0dXAiLCJhcmdzIiwidmVyc2lvbkZhbWlseSIsInNldHVwQXJpZXMiLCJzZXR1cFNjb3JwaW8iLCJzZXR1cFZlcnNpb24zIiwic2V0dXBWZXJzaW9uNCJdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7OztBQUFBOztBQUNBOztBQUNBOztBQUNBOztTQUU4QkEsSzs7Ozs7Ozs0QkFBZjtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTs7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBLHNDQUF3QkMsSUFBeEI7QUFBd0JBLGNBQUFBLElBQXhCO0FBQUE7O0FBQUEscUJBQ29CQSxJQURwQjtBQUFBLHlDQUNjLEVBRGQ7QUFDSkMsWUFBQUEsYUFESSxVQUNKQSxhQURJO0FBQUEsMEJBR0xBLGFBSEs7QUFBQSw0Q0FJTixPQUpNLHVCQU9OLFNBUE0sd0JBVU4sR0FWTTtBQUFBOztBQUFBO0FBQUE7QUFBQSxtQkFLSUMsNkJBQWNGLElBQWQsQ0FMSjs7QUFBQTtBQUFBOztBQUFBO0FBQUE7QUFBQS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