function getOptions(options) {
    options = _.defaults(options, {
        submitOnEnter: false,
        iconset: getIconSet(options && options.icons ? options.icons : Formio.icons),
        i18next: null,
        saveDraft: false,
        alwaysDirty: false,
        saveDraftThrottle: 5000,
        display: 'form',
        cdnUrl: Formio.cdn.baseUrl,
    });
    if (!options.events) {
        options.events = new EventEmitter();
    }
    return options;
}
@param {any} options - The options to get.
@returns {any} - The options.