;(function(a) {
  function b(d) {
    if (c[d]) return c[d].exports
    var e = (c[d] = { i: d, l: !1, exports: {} })
    return a[d].call(e.exports, e, e.exports, b), (e.l = !0), e.exports
  }
  var c = {}
  return (
    (b.m = a),
    (b.c = c),
    (b.i = function(a) {
      return a
    }),
    (b.d = function(a, c, d) {
      b.o(a, c) ||
        Object.defineProperty(a, c, {
          configurable: !1,
          enumerable: !0,
          get: d
        })
    }),
    (b.n = function(a) {
      var c =
        a && a.__esModule
          ? function() {
              return a['default']
            }
          : function() {
              return a
            }
      return b.d(c, 'a', c), c
    }),
    (b.o = function(a, b) {
      return Object.prototype.hasOwnProperty.call(a, b)
    }),
    (b.p = ''),
    b((b.s = 270))
  )
})({
  270: function() {
    function a(a) {
      return `subcontext_${a}`
    }
    var b = 1,
      c = {}
    ;(__WeixinJSContext.create = d => {
      if (/^subContext(\.js)?$/.test(d)) {
        var e = window.__global.document.createElement('iframe')
        const d = a(b),
          h = window.__global.getNewWeixinJSBridge(d)
        window.__global.WeixinJSBridgeMap[d] = h
        var f = {
          WeixinJSContext: __WeixinJSContext,
          WeixinJSBridge: h,
          __wxConfig
        }
        ;(c[b] = { iframe: e, global: f }), (e.src = `/game/subcontext.html`)
        var g = window.__global.document.getElementsByTagName('body')[0]
        return (
          g.appendChild(e),
          (window.__subcontextready__ = () => {
            for (let a in f) e.contentWindow[a] = f[a]
          }),
          b++,
          b - 1
        )
      }
      return 0
    }),
      (__WeixinJSContext.destroy = a => {
        let b = c[a]
        b && (delete c[a], b.iframe.remove())
      }),
      (window.__sandbox_map_ = c)
  }
})
