"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const SYSTEM_BOOT_ID_1 = require("../../constants/SYSTEM_BOOT_ID");
const SYSTEM_BUNDLE_ID_1 = require("../../constants/SYSTEM_BUNDLE_ID");
const render_1 = require("./render");
function objFromElement(id) {
    let obj = {};
    const jsonElement = document.getElementById(id);
    if (jsonElement) {
        const json = jsonElement.textContent;
        try {
            obj = JSON.parse(json);
        }
        catch (err) {
            //
        }
    }
    return obj;
}
const bundle = objFromElement(SYSTEM_BUNDLE_ID_1.SYSTEM_BUNDLE_ID);
const system = objFromElement(SYSTEM_BOOT_ID_1.SYSTEM_BOOT_ID);
(0, render_1.render)(bundle, system);
//# sourceMappingURL=web.js.map