import{__exports as e}from"../../../_virtual/util.mjs";import t from"../../../_virtual/_node_fs.mjs";var r;function n(){if(r)return e;r=1;var n=e&&e.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=e&&e.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return o(t,e),t};Object.defineProperty(e,"__esModule",{value:!0}),e.isDirectorySync=e.isDirectory=e.removeUndefinedValuesFromObject=e.getPropertyByPath=e.emplace=void 0;const c=i(t);return e.emplace=function(e,t,r){const n=e.get(t);if(void 0!==n)return n;const o=r();return e.set(t,o),o},e.getPropertyByPath=function(e,t){return"string"==typeof t&&Object.prototype.hasOwnProperty.call(e,t)?e[t]:("string"==typeof t?t.split("."):t).reduce((e,t)=>void 0===e?e:e[t],e)},e.removeUndefinedValuesFromObject=function(e){return Object.fromEntries(Object.entries(e).filter(([,e])=>void 0!==e))},e.isDirectory=
/* istanbul ignore next -- @preserve */
async function(e){try{return(await c.promises.stat(e)).isDirectory()}catch(e){if("ENOENT"===e.code)return!1;throw e}},e.isDirectorySync=
/* istanbul ignore next -- @preserve */
function(e){try{return c.default.statSync(e).isDirectory()}catch(e){if("ENOENT"===e.code)return!1;throw e}},e}export{n as __require};