'use strict'
!(function(require, directRequire) {
  let a
  try {
    const b = require('git-utils')
    a = {
      open(...a) {
        let c
        try {
          c = b.open(...a)
        } catch (a) {
          c = null
        }
        return c
          ? new Proxy(c, {
              get(a, b) {
                const c = a[b]
                return 'function' == typeof c
                  ? function(...b) {
                      let d
                      try {
                        d = c.apply(a, b)
                      } catch (a) {
                        console.log('proxy intercepted an error', a), (d = null)
                      }
                      return d
                    }
                  : c
              }
            })
          : null
      }
    }
  } catch (b) {
    console.log('import git module failed.'),
      (a = {
        open() {
          return null
        }
      })
  }
  module.exports = a
})(require('lazyload'), require)
