'use strict'
!(function(require, directRequire) {
  async function a(a, d) {
    let e = d.args
    if (e.dataURL) {
      let a = c.getCurrent(),
        f = e.fileType ? `.${e.fileType}` : '.png',
        g = b.saveBase64DataToFile(a, e.dataURL, f)
      if (!g.error)
        return { errMsg: `${d.api}:ok`, tempFilePath: g.tempFilePath }
    }
    return { errMsg: `${d.api}:fail` }
  }
  const b = require('./f6cbcecf6ed9f533f6a506310d8f07b6.js'),
    c = require('./3bfffbe88b3d923921f851c0697974fe.js')
  module.exports = { canvasToTempFilePath: a, canvasToTempFilePathSync: a }
})(require('lazyload'), require)
