{"ast":null,"code":"import _extends from \"@babel/runtime/helpers/esm/extends\";\nexport function isPlainObject(item) {\n  return item !== null && typeof item === 'object' && // TS thinks `item is possibly null` even though this was our first guard.\n  // @ts-expect-error\n  item.constructor === Object;\n}\nexport default function deepmerge(target, source) {\n  var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {\n    clone: true\n  };\n  var output = options.clone ? _extends({}, target) : target;\n\n  if (isPlainObject(target) && isPlainObject(source)) {\n    Object.keys(source).forEach(function (key) {\n      // Avoid prototype pollution\n      if (key === '__proto__') {\n        return;\n      }\n\n      if (isPlainObject(source[key]) && key in target && isPlainObject(target[key])) {\n        // Since `output` is a clone of `target` and we have narrowed `target` in this block we can cast to the same type.\n        output[key] = deepmerge(target[key], source[key], options);\n      } else {\n        output[key] = source[key];\n      }\n    });\n  }\n\n  return output;\n}","map":{"version":3,"sources":["C:/laragon/www/iot.mksolusi/DriverOPCDA/frontend/node_modules/@material-ui/data-grid/node_modules/@material-ui/utils/esm/deepmerge.js"],"names":["_extends","isPlainObject","item","constructor","Object","deepmerge","target","source","options","clone","output","keys","forEach","key"],"mappings":"AAAA,OAAOA,QAAP,MAAqB,oCAArB;AACA,OAAO,SAASC,aAAT,CAAuBC,IAAvB,EAA6B;AAClC,SAAOA,IAAI,KAAK,IAAT,IAAiB,OAAOA,IAAP,KAAgB,QAAjC,IAA6C;AACpD;AACAA,EAAAA,IAAI,CAACC,WAAL,KAAqBC,MAFrB;AAGD;AACD,eAAe,SAASC,SAAT,CAAmBC,MAAnB,EAA2BC,MAA3B,EAEZ;AAAA,MAF+CC,OAE/C,uEAFyD;AAC1DC,IAAAA,KAAK,EAAE;AADmD,GAEzD;AACD,MAAMC,MAAM,GAAGF,OAAO,CAACC,KAAR,GAAgBT,QAAQ,CAAC,EAAD,EAAKM,MAAL,CAAxB,GAAuCA,MAAtD;;AAEA,MAAIL,aAAa,CAACK,MAAD,CAAb,IAAyBL,aAAa,CAACM,MAAD,CAA1C,EAAoD;AAClDH,IAAAA,MAAM,CAACO,IAAP,CAAYJ,MAAZ,EAAoBK,OAApB,CAA4B,UAAAC,GAAG,EAAI;AACjC;AACA,UAAIA,GAAG,KAAK,WAAZ,EAAyB;AACvB;AACD;;AAED,UAAIZ,aAAa,CAACM,MAAM,CAACM,GAAD,CAAP,CAAb,IAA8BA,GAAG,IAAIP,MAArC,IAA+CL,aAAa,CAACK,MAAM,CAACO,GAAD,CAAP,CAAhE,EAA+E;AAC7E;AACAH,QAAAA,MAAM,CAACG,GAAD,CAAN,GAAcR,SAAS,CAACC,MAAM,CAACO,GAAD,CAAP,EAAcN,MAAM,CAACM,GAAD,CAApB,EAA2BL,OAA3B,CAAvB;AACD,OAHD,MAGO;AACLE,QAAAA,MAAM,CAACG,GAAD,CAAN,GAAcN,MAAM,CAACM,GAAD,CAApB;AACD;AACF,KAZD;AAaD;;AAED,SAAOH,MAAP;AACD","sourcesContent":["import _extends from \"@babel/runtime/helpers/esm/extends\";\nexport function isPlainObject(item) {\n  return item !== null && typeof item === 'object' && // TS thinks `item is possibly null` even though this was our first guard.\n  // @ts-expect-error\n  item.constructor === Object;\n}\nexport default function deepmerge(target, source, options = {\n  clone: true\n}) {\n  const output = options.clone ? _extends({}, target) : target;\n\n  if (isPlainObject(target) && isPlainObject(source)) {\n    Object.keys(source).forEach(key => {\n      // Avoid prototype pollution\n      if (key === '__proto__') {\n        return;\n      }\n\n      if (isPlainObject(source[key]) && key in target && isPlainObject(target[key])) {\n        // Since `output` is a clone of `target` and we have narrowed `target` in this block we can cast to the same type.\n        output[key] = deepmerge(target[key], source[key], options);\n      } else {\n        output[key] = source[key];\n      }\n    });\n  }\n\n  return output;\n}"]},"metadata":{},"sourceType":"module"}