text: "use strict";
  
  exports.__esModule = true;
  exports["default"] = registerSource;
  
  function registerSource(type, source, manager) {
    var registry = manager.getRegistry();
    var sourceId = registry.addSource(type, source);
  
    function unregisterSource() {
      registry.removeSource(sourceId);
    }
  
    return {
      handlerId: sourceId,
      unregister: unregisterSource
    };
  }
  
  module.exports = exports["default"];