'use strict'
!(function(require, directRequire) {
  const a = require('path'),
    b = require('fs'),
    { NO_BOM_VAR: c } = require('./6242f55dbdfe53c2f07b7a51568311f2.js'),
    d = '<!-- wxConfig -->',
    e = '<!-- devtoolsConfig -->',
    f = '<!- wxmlxcjs -->',
    g = '<!- wxappcode -->',
    h = `
<!DOCTYPE html>
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline' 'unsafe-eval'">
  <script>
  var __wxAppData = {}
  var __wxRoute
  var __wxRouteBegin
  var __wxAppCode__ = {}
  var __wxAppCurrentFile__
  var Component = function() {}
  var Behavior = function() {}
  var definePlugin = function() {}
  var requirePlugin = function() {}
  global = {}
  var __workerVendorCode__ = {}
  var __workersCode__ = {}
  var __WeixinWorker = WeixinWorker = {}
  var $gwx
  </script>
  ${d}
  ${e}
  ${f}
  ${g}
`,
    i = `
<style>
    body {
      overflow: hidden;
      background-color: #f3f3f3;
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
    }
  </style>
</head>
<body>
</body>
</html>
<script>
if (document.readyState == 'complete') {
  window.__global.alert('DOCUMENT_READY')
} else {
  var fn = function(event) {
    window.__global.alert('DOCUMENT_READY')
    window.removeEventListener("load", fn)
  }
  window.addEventListener('load', fn)
}
</script>
`,
    j = global.appConfig.isDev
      ? a.join(__dirname, '../../../extensions/appservice/index.js')
      : a.join(__dirname, './extensions/appservice/index.js'),
    k = global.appConfig.isDev
      ? a.join(__dirname, '../../../extensions/context/index.js')
      : a.join(__dirname, './extensions/context/index.js'),
    l = global.appConfig.isDev
      ? a.join(__dirname, '../../../extensions/worker/index.js')
      : a.join(__dirname, './extensions/worker/index.js'),
    m = global.appConfig.isDev
      ? a.join(__dirname, '../../../extensions/worker/weixinworker.tpl.js')
      : a.join(__dirname, './extensions/worker/weixinworker.tpl.js'),
    n = b.readFileSync(j, 'utf8'),
    o = b.readFileSync(k, 'utf8'),
    p = b.readFileSync(l, 'utf8'),
    q = b.readFileSync(m, 'utf8'),
    r = c.join(',')
  module.exports = {
    asDebug: n,
    subAsDebug: o,
    workerAsDebug: p,
    WeixinWorkerTpl: q,
    htmlBegin: h,
    htmlEnd: i,
    vendorList: ['WAService.js'],
    devVendorList: [
      'wx-config.js',
      'wx-console.js',
      'native-buffer.js',
      'wx-worker.js',
      'js-context.js',
      'reporter-sdk.js',
      'protect-sdk.js',
      'subcontext-engine-main.js',
      'appservice-sdk.js',
      'exparser.min.js',
      'virtual_dom_data.js',
      'app_service_engine.js',
      'plugin-node.js',
      'webnode.js',
      'global-read-only.js'
    ],
    devWorkerList: [
      'wx-config.js',
      'native-buffer.js',
      'wx-console.js',
      'wx-worker.js',
      'webnode.js',
      'worker-sdk.js'
    ],
    workerVendorList: ['WAWorker.js'],
    noBrowser: r,
    devtoolsConfigPlaceholder: e,
    wxConfigPlaceholder: d,
    wxmlXCJSPlaceholder: f,
    wxappcodePlaceholder: g,
    plugincodePlaceholder: '<!- plugincode -->'
  }
})(require('lazyload'), require)
