'use strict'
var _extends =
  Object.assign ||
  function(a) {
    for (var b, c = 1; c < arguments.length; c++)
      for (var d in ((b = arguments[c]), b))
        Object.prototype.hasOwnProperty.call(b, d) && (a[d] = b[d])
    return a
  }
!(function(require, directRequire) {
  const a = require('request')
  module.exports = async function(b) {
    return new Promise((c, d) => {
      a(_extends({}, b, { uri: b.uri || b.url }), (a, b, e) => {
        a && d(a), c({ response: b, body: e })
      })
    })
  }
})(require('lazyload'), require)
