{"version":3,"sources":["node_modules/@arcgis/core/core/jsonMap.js"],"sourcesContent":["/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.31/esri/copyright.txt for details.\n*/\nimport { setDeepValue as o } from \"./object.js\";\nclass n {\n constructor(n, i = {\n ignoreUnknown: !1,\n useNumericKeys: !1\n }) {\n this._jsonToAPI = n, this._options = i, this.apiValues = [], this.jsonValues = [], this._apiToJSON = t(n), this.apiValues = s(this._apiToJSON), this.jsonValues = s(this._jsonToAPI), this.read = o => this.fromJSON(o), this.write = (n, t, s) => {\n const i = this.toJSON(n);\n void 0 !== i && o(s, i, t);\n }, this.write.isJSONMapWriter = !0;\n }\n toJSON(o) {\n if (null == o) return null;\n if (this._apiToJSON.hasOwnProperty(o)) {\n const n = this._apiToJSON[o];\n return this._options.useNumericKeys ? +n : n;\n }\n return this._options.ignoreUnknown ? void 0 : o;\n }\n fromJSON(o) {\n return null != o && this._jsonToAPI.hasOwnProperty(o) ? this._jsonToAPI[o] : this._options.ignoreUnknown ? void 0 : o;\n }\n}\nfunction t(o) {\n const n = {};\n for (const t in o) n[o[t]] = t;\n return n;\n}\nfunction s(o) {\n const n = [];\n for (const t in o) n.push(t);\n return n.sort(), n;\n}\nfunction i() {\n return function (o, t) {\n return new n(o, {\n ignoreUnknown: !0,\n ...t\n });\n };\n}\nexport { n as JSONMap, i as strict };"],"mappings":"gFAKA,IAAMA,EAAN,KAAQ,CACN,YAAYA,EAAGC,EAAI,CACjB,cAAe,GACf,eAAgB,EAClB,EAAG,CACD,KAAK,WAAaD,EAAG,KAAK,SAAWC,EAAG,KAAK,UAAY,CAAC,EAAG,KAAK,WAAa,CAAC,EAAG,KAAK,WAAaC,EAAEF,CAAC,EAAG,KAAK,UAAYG,EAAE,KAAK,UAAU,EAAG,KAAK,WAAaA,EAAE,KAAK,UAAU,EAAG,KAAK,KAAOC,GAAK,KAAK,SAASA,CAAC,EAAG,KAAK,MAAQ,CAACJ,EAAGE,EA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