"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.idFromUnitValue = exports.evaluateBundleStr = void 0;
const evaluate_1 = require("../spec/evaluate");
function evaluateBundleStr(system, value) {
    const bundle_str = value.substring(1);
    const bundle = (0, evaluate_1.evaluate)(bundle_str, system.specs, system.classes);
    return bundle;
}
exports.evaluateBundleStr = evaluateBundleStr;
function idFromUnitValue(value) {
    const bundle_str = value.substring(1);
    const bundle = (0, evaluate_1.evaluate)(bundle_str, {}, {});
    const { unit } = bundle;
    const { id } = unit;
    return id;
}
exports.idFromUnitValue = idFromUnitValue;
//# sourceMappingURL=idFromUnitValue.js.map