'use strict'
!(function(require, directRequire) {
  const a = require('./15ba1827c7f6564a45df6bd44da3a977.js')
  module.exports = {
    geoLocation: async function(b, c) {
      let { api: d, args: e, callbackID: f, runtimeID: g } = c,
        h = {}
      try {
        let { body: b } = await a({
          url:
            'http://apis.map.qq.com/ws/location/v1/ip?key=JMRBZ-R4HCD-X674O-PXLN4-B7CLH-42BSB',
          needToken: -1,
          needCheckErrCode: -1
        })
        0 == b.status &&
          ((h = {
            latitude: b.result.location.lat,
            longitude: b.result.location.lng
          }),
          (h.errMsg = `${d}:ok`)),
          h.errMsg || (h.errMsg = `${d}:fail timeout`)
      } catch (a) {
        h.errMsg = `${d}:fail ${a}`
      }
      return h
    },
    openLocation: async function(a, b) {
      let { api: c, args: d, callbackID: e, runtimeID: f } = b
      return { errMsg: `${c}:ok` }
    }
  }
})(require('lazyload'), require)
