All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.dist.prod.thirdparty._merge.js.map Maven / Gradle / Ivy

{
  "version": 3,
  "sources": ["../../../src/thirdparty/_merge.ts"],
  "sourcesContent": ["import isPlainObject from './isPlainObject.js';\nvar oToken = Object.create(null);\nvar fnMerge = function (arg1?: any, arg2?: any, arg3?: any, arg4?: any) {\n    var src, copyIsArray, copy, name, options, clone, target = arguments[2] || {}, i = 3, length = arguments.length, deep = arguments[0] || false, skipToken = arguments[1] ? undefined : oToken;\n    if (typeof target !== 'object' && typeof target !== 'function') {\n        target = {};\n    }\n    for (; i < length; i++) {\n        if ((options = arguments[i]) != null) {\n            for (name in options) {\n                src = target[name];\n                copy = options[name];\n                if (name === '__proto__' || target === copy) {\n                    continue;\n                }\n                if (deep && copy && (isPlainObject(copy) || (copyIsArray = Array.isArray(copy)))) {\n                    if (copyIsArray) {\n                        copyIsArray = false;\n                        clone = src && Array.isArray(src) ? src : [];\n                    } else {\n                        clone = src && isPlainObject(src) ? src : {};\n                    }\n                    target[name] = fnMerge(deep, arguments[1], clone, copy);\n                } else if (copy !== skipToken) {\n                    target[name] = copy;\n                }\n            }\n        }\n    }\n    return target;\n};\nexport default fnMerge;\n"],
  "mappings": "aAAA,OAAOA,MAAmB,qBAC1B,IAAIC,EAAS,OAAO,OAAO,IAAI,EAC3BC,EAAU,SAAUC,EAAYC,EAAYC,EAAYC,EAAY,CACpE,IAAIC,EAAKC,EAAaC,EAAMC,EAAMC,EAASC,EAAOC,EAAS,UAAU,CAAC,GAAK,CAAC,EAAGC,EAAI,EAAGC,EAAS,UAAU,OAAQC,EAAO,UAAU,CAAC,GAAK,GAAOC,EAAY,UAAU,CAAC,EAAI,OAAYhB,EAItL,IAHI,OAAOY,GAAW,UAAY,OAAOA,GAAW,aAChDA,EAAS,CAAC,GAEPC,EAAIC,EAAQD,IACf,IAAKH,EAAU,UAAUG,CAAC,IAAM,KAC5B,IAAKJ,KAAQC,EACTJ,EAAMM,EAAOH,CAAI,EACjBD,EAAOE,EAAQD,CAAI,EACf,EAAAA,IAAS,aAAeG,IAAWJ,KAGnCO,GAAQP,IAAST,EAAcS,CAAI,IAAMD,EAAc,MAAM,QAAQC,CAAI,KACrED,GACAA,EAAc,GACdI,EAAQL,GAAO,MAAM,QAAQA,CAAG,EAAIA,EAAM,CAAC,GAE3CK,EAAQL,GAAOP,EAAcO,CAAG,EAAIA,EAAM,CAAC,EAE/CM,EAAOH,CAAI,EAAIR,EAAQc,EAAM,UAAU,CAAC,EAAGJ,EAAOH,CAAI,GAC/CA,IAASQ,IAChBJ,EAAOH,CAAI,EAAID,IAK/B,OAAOI,CACX,EACA,eAAeX",
  "names": ["isPlainObject", "oToken", "fnMerge", "arg1", "arg2", "arg3", "arg4", "src", "copyIsArray", "copy", "name", "options", "clone", "target", "i", "length", "deep", "skipToken"]
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy