"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.removeFn = void 0;
exports.initializeStore = initializeStore;
const zustand_1 = require("zustand");
const middleware_1 = require("zustand/middleware");
function initializeStore(initialState, methods) {
    return (overrideInitialState) => {
        return (0, zustand_1.create)((0, middleware_1.subscribeWithSelector)((0, middleware_1.devtools)((set, get) => {
            return {
                ...initialState,
                ...overrideInitialState,
                ...methods(set, get),
            };
        })));
    };
}
const removeFn = (object) => {
    return JSON.parse(JSON.stringify(object));
};
exports.removeFn = removeFn;
//# sourceMappingURL=utils.js.map
