'use strict';

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

var ThemeCache = require('./ThemeCache.cjs');
var Theme = require('./Theme.cjs');

const cacheThemes = new ThemeCache.default();
function createTheme(derivatives) {
  const derivativeArr = Array.isArray(derivatives) ? derivatives : [derivatives];
  if (!cacheThemes.has(derivativeArr))
    cacheThemes.set(derivativeArr, new Theme.default(derivativeArr));
  return cacheThemes.get(derivativeArr);
}

exports.default = createTheme;
//# sourceMappingURL=createTheme.cjs.map
