"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.cloneStructured = cloneStructured;
function cloneStructured(value) {
    if (typeof globalThis.structuredClone === "function") {
        return globalThis.structuredClone(value);
    }
    if (value === undefined || value === null) {
        return value;
    }
    return JSON.parse(JSON.stringify(value));
}
