import { i as isArray_1 } from "./isArray.mjs";
import { _ as _isKey } from "./_isKey.mjs";
import { _ as _stringToPath } from "./_stringToPath.mjs";
import { t as toString_1 } from "./toString.mjs";
var isArray = isArray_1, isKey = _isKey, stringToPath = _stringToPath, toString = toString_1;
function castPath(value, object) {
  if (isArray(value)) {
    return value;
  }
  return isKey(value, object) ? [value] : stringToPath(toString(value));
}
var _castPath = castPath;
export {
  _castPath as _
};
