import{bw as _isIndex,bx as isObject_1,aM as getDefaultExportFromCjs}from"./js-core.esm4.js";import{az as _assignValue}from"./js-core.esm9.js";import{b5 as _castPath,b6 as _toKey}from"./js-core.esm7.js";var assignValue=_assignValue,castPath=_castPath,isIndex=_isIndex,isObject=isObject_1,toKey=_toKey;function baseSet$1(s,e,t,a){if(isObject(s))for(var r=-1,o=(e=castPath(e,s)).length,i=o-1,n=s;null!=n&&++r<o;){var _,b=toKey(e[r]),c=t;if("__proto__"===b||"constructor"===b||"prototype"===b)return s;r!=i&&(_=n[b],void 0===(c=a?a(_,b,n):void 0))&&(c=isObject(_)?_:isIndex(e[r+1])?[]:{}),assignValue(n,b,c),n=n[b]}return s}var _baseSet=baseSet$1,baseSet=_baseSet;function set(s,e,t){return null==s?s:baseSet(s,e,t)}var set_1=set,set$1=getDefaultExportFromCjs(set);export{_baseSet as _,set$1 as s};
