/*
 * Copyright (c) 2018, 2026, Oracle and/or its affiliates.
 * Licensed under The Universal Permissive License (UPL), Version 1.0
 * as shown at https://oss.oracle.com/licenses/upl/
 */
function cloneOptions(opts){var o={},p;for(p in opts){if(p.startsWith("$")||p.startsWith("_")){continue}o[p]=cloneProperty(opts[p])}return o};function cloneProperty(p){var t=typeof p;if(Array.isArray(p)){let a=[],i;for(i=0;i<p.length;i++){a.push(cloneProperty(p[i]))}return a}else if(t==="object"){return JSON.parse(JSON.stringify(p))}else if(t==="string"){return""+p}return p}module.exports={cloneOptions,cloneProperty};