"use strict";

var _githubPackage = _interopRequireDefault(require("./github-package"));
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
let pack;
const entry = {
  initialize() {
    pack = new _githubPackage.default({
      workspace: atom.workspace,
      project: atom.project,
      commands: atom.commands,
      notificationManager: atom.notifications,
      tooltips: atom.tooltips,
      styles: atom.styles,
      keymaps: atom.keymaps,
      grammars: atom.grammars,
      config: atom.config,
      deserializers: atom.deserializers,
      confirm: atom.confirm.bind(atom),
      getLoadSettings: atom.getLoadSettings.bind(atom),
      currentWindow: atom.getCurrentWindow(),
      configDirPath: atom.getConfigDirPath()
    });
  }
};
module.exports = new Proxy(entry, {
  get(target, name) {
    if (pack && Reflect.has(pack, name)) {
      let item = pack[name];
      if (typeof item === 'function') {
        item = item.bind(pack);
      }
      return item;
    } else {
      return target[name];
    }
  }
});
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6WyJfZ2l0aHViUGFja2FnZSIsIl9pbnRlcm9wUmVxdWlyZURlZmF1bHQiLCJyZXF1aXJlIiwiZSIsIl9fZXNNb2R1bGUiLCJkZWZhdWx0IiwicGFjayIsImVudHJ5IiwiaW5pdGlhbGl6ZSIsIkdpdGh1YlBhY2thZ2UiLCJ3b3Jrc3BhY2UiLCJhdG9tIiwicHJvamVjdCIsImNvbW1hbmRzIiwibm90aWZpY2F0aW9uTWFuYWdlciIsIm5vdGlmaWNhdGlvbnMiLCJ0b29sdGlwcyIsInN0eWxlcyIsImtleW1hcHMiLCJncmFtbWFycyIsImNvbmZpZyIsImRlc2VyaWFsaXplcnMiLCJjb25maXJtIiwiYmluZCIsImdldExvYWRTZXR0aW5ncyIsImN1cnJlbnRXaW5kb3ciLCJnZXRDdXJyZW50V2luZG93IiwiY29uZmlnRGlyUGF0aCIsImdldENvbmZpZ0RpclBhdGgiLCJtb2R1bGUiLCJleHBvcnRzIiwiUHJveHkiLCJnZXQiLCJ0YXJnZXQiLCJuYW1lIiwiUm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