'use strict'
!(function(require, directRequire) {
  const a = require('js-beautify').html,
    b = require('perfectionist'),
    c = require('postcss')
  module.exports = (d, e) => {
    let f,
      g = d.code,
      h = d.fileType
    if ('css' === h)
      f = c([
        b({
          indentSize: e,
          cascade: !1,
          trimTrailingZeros: !1,
          trimLeadingZero: !1,
          zeroLengthNoUnit: !1
        })
      ]).process(g).css
    else {
      let b = g.replace(/\<wxs/g, '<script').replace(/\<\/wxs/g, '</script')
      ;(f = a(b, {
        indent_size: e,
        unformatted: [],
        content_unformatted: ['text']
      })),
        (f = f.replace(/\<script/g, '<wxs').replace(/\<\/script/g, '</wxs'))
    }
    return f
  }
})(require('lazyload'), require)
