/* eslint-disable @typescript-eslint/ban-ts-comment, no-underscore-dangle */ // @ts-ignore
"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
Object.defineProperty(exports, "collectPackageInfo", {
    enumerable: true,
    get: function() {
        return collectPackageInfo;
    }
});
const _pkg = /*#__PURE__*/ _interop_require_default(require("@pkg"));
function _interop_require_default(obj) {
    return obj && obj.__esModule ? obj : {
        default: obj
    };
}
const collectPackageInfo = (entityName)=>{
    if (typeof window === 'undefined') {
        return;
    }
    const { name, version } = _pkg.default;
    if (!window.__PLASMA_INFO__) {
        window.__PLASMA_INFO__ = {};
    }
    if (!window.__PLASMA_INFO__[name]) {
        window.__PLASMA_INFO__[name] = {
            version,
            entities: [
                entityName
            ]
        };
        return;
    }
    window.__PLASMA_INFO__[name].entities.push(entityName);
};
