"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
  for (var name in all)
    __defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
  if (from && typeof from === "object" || typeof from === "function") {
    for (let key of __getOwnPropNames(from))
      if (!__hasOwnProp.call(to, key) && key !== except)
        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  }
  return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var runtime_core_exports = {};
__export(runtime_core_exports, {
  RuntimeCore: () => RuntimeCore
});
module.exports = __toCommonJS(runtime_core_exports);
var import_breakpoints = require("../../state/modules/breakpoints");
var import_react_page = require("../../state/react-page");
class RuntimeCore {
  store;
  constructor({ breakpoints }) {
    this.store = (0, import_react_page.configureStore)({
      name: "Runtime store",
      preloadedState: null,
      breakpoints: breakpoints ? (0, import_breakpoints.parseBreakpointsInput)(breakpoints) : void 0
    });
  }
  copyElementTree(elementTree, replacementContext) {
    return (0, import_react_page.copyElementTree)(this.store.getState(), elementTree, replacementContext);
  }
  getBreakpoints() {
    return (0, import_react_page.getBreakpoints)(this.store.getState());
  }
}
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
  RuntimeCore
});
//# sourceMappingURL=runtime-core.js.map