{"version":3,"sources":["start-app.js","discourse-boot.js"],"sourcesContent":["document.addEventListener(\"discourse-booted\", (e) => {\n  performance.mark(\"discourse-booted\");\n  const config = e.detail;\n  const app = require(`${config.modulePrefix}/app`)[\"default\"].create(config);\n  app.start();\n});\n","(function () {\n  if (window.unsupportedBrowser) {\n    throw \"Unsupported browser detected\";\n  }\n\n  // TODO: Remove this and have resolver find the templates\n  const prefix = \"discourse/templates/\";\n  const adminPrefix = \"admin/templates/\";\n  const wizardPrefix = \"wizard/templates/\";\n  let len = prefix.length;\n  Object.keys(requirejs.entries).forEach(function (key) {\n    if (key.startsWith(prefix)) {\n      Ember.TEMPLATES[key.slice(len)] = require(key).default;\n    } else if (key.startsWith(adminPrefix) || key.startsWith(wizardPrefix)) {\n      Ember.TEMPLATES[key] = require(key).default;\n    }\n  });\n\n  window.__widget_helpers = require(\"discourse-widget-hbs/helpers\").default;\n\n  // TODO: Eliminate this global\n  window.virtualDom = require(\"virtual-dom\");\n\n  let element = document.querySelector(\n    `meta[name=\"discourse/config/environment\"]`\n  );\n  const config = JSON.parse(\n    decodeURIComponent(element.getAttribute(\"content\"))\n  );\n  const event = new CustomEvent(\"discourse-booted\", { detail: config });\n  document.dispatchEvent(event);\n})();\n"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;;ACLA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;","file":"start-discourse.js"}