'use strict'
!(function(require, directRequire) {
  const {
      BROADCAST_CHANNEL_NAME: a,
      SERVER: b,
      CLIENT: c,
      ACTION_SWITCH_TO_WEB_DEV: d,
      ACTION_SWITCH_TO_MINI_PROGRAM_DEV: e
    } = require('./2a5f467fee8074e6717476c4358ed82b.js'),
    f = require('./cc2c2970ff81ae4a83123e81ee123da2.js'),
    g = require('./0634ee2ebd3e560d9d4804ecc960160f.js')
  let h
  module.exports = {
    init: () => {
      h = new BroadcastChannel(a)
    },
    createProjectOpen: () => {
      return (
        !!h && (h.postMessage({ action: g.PROJECT_CREATE_PROJECT_OPEN }), !0)
      )
    },
    createMiniCodeOpen: (a, b) => {
      return (
        !!h &&
        (h.postMessage({
          action: g.PROJECT_CREATE_MINICODE_OPEN,
          type: a,
          data: b
        }),
        !0)
      )
    },
    selectProjectOpen: a => {
      return (
        !!h &&
        (h.postMessage({ action: g.PROJECT_SELECT_PROJECT_OPEN, options: a }),
        !0)
      )
    },
    switchToWebDev: () => {
      return !!h && (h.postMessage({ action: d }), !0)
    },
    switchToMiniProgramDev: () => {
      return !!h && (h.postMessage({ action: e }), !0)
    },
    openProject: a => {
      return (
        !!h && void h.postMessage({ action: g.PROJECT_OPEN_PROJECT, id: a })
      )
    }
  }
})(require('lazyload'), require)
