/*
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/4.24/esri/copyright.txt for details.
*/
define(["exports","./lang"],(function(e,r){"use strict";function t(e,r,t=!1){return i(e,r,t)}function n(e,r){if(null!=r)return r[e]||u(e.split("."),!1,r)}function o(e,r,t){const n=e.split("."),o=n.pop(),i=u(n,!0,t);i&&o&&(i[o]=r)}function u(e,r,t){let n=t;for(const o of e){if(null==n)return;if(!(o in n)){if(!r)return;n[o]={}}n=n[o]}return n}function i(e,t,n){return t?Object.keys(t).reduce(((e,o)=>{let u=e[o],c=t[o];return u===c?e:void 0===u?(e[o]=r.clone(c),e):(Array.isArray(c)||Array.isArray(e)?(u=u?Array.isArray(u)?e[o]=u.concat():e[o]=[u]:e[o]=[],c&&(Array.isArray(c)||(c=[c]),n?c.forEach((e=>{u.includes(e)||u.push(e)})):e[o]=c.concat())):c&&"object"==typeof c?e[o]=i(u,c,n):e.hasOwnProperty(o)&&!t.hasOwnProperty(o)||(e[o]=c),e)}),e||{}):e}e.deepMerge=t,e.getDeepValue=n,e.setDeepValue=o,Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
