{"version":3,"sources":["node_modules/@arcgis/core/core/accessorSupport/decorators/writer.js","node_modules/@arcgis/core/geometry/SpatialReference.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 { propertyJSONMeta as t } from \"./property.js\";\nfunction r(r, o, e) {\n let i, n;\n return void 0 === o ? (n = r, i = [void 0]) : \"string\" != typeof o ? (n = r, i = [void 0], e = o) : (n = o, i = Array.isArray(r) ? r : [r]), (r, o) => {\n const p = r.constructor.prototype;\n for (const c of i) {\n const i = t(r, c, n);\n i.write && \"object\" == typeof i.write || (i.write = {}), e && (i.write.target = e), i.write.writer = p[o];\n }\n };\n}\nexport { r as writer };","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.31/esri/copyright.txt for details.\n*/\nimport { _ as e } from \"../chunks/tslib.es6.js\";\nimport t from \"../core/Accessor.js\";\nimport { JSONSupport as r } from \"../core/JSONSupport.js\";\nimport { clone as i } from \"../core/lang.js\";\nimport { getMetersPerUnitForSR as o, getUnitString as s } from \"../core/unitUtils.js\";\nimport { Integer as n } from \"../core/accessorSupport/ensureType.js\";\nimport { property as l } from \"../core/accessorSupport/decorators/property.js\";\nimport { subclass as a } from \"../core/accessorSupport/decorators/subclass.js\";\nimport { writer as p } from \"../core/accessorSupport/decorators/writer.js\";\nimport { wgs84 as u, webMercator as d, plateCarree as c, isWGS84 as m, isWebMercator as w, isGeographic as y, isWrappable as k, equals as h } from \"./support/spatialReferenceUtils.js\";\nvar S;\nlet f = S = class extends r {\n static fromJSON(e) {\n if (!e) return null;\n if (102100 === e?.wkid) return S.WebMercator;\n if (4326 === e?.wkid) return S.WGS84;\n const t = new S();\n return t.read(e), t;\n }\n constructor(e) {\n super(e), this.latestWkid = null, this.wkid = null, this.wkt = null, this.wkt2 = null, this.vcsWkid = null, this.latestVcsWkid = null, this.imageCoordinateSystem = null;\n }\n normalizeCtorArgs(e) {\n if (e && \"object\" == typeof e) return e;\n const t = \"string\" == typeof e ? \"wkt\" : \"wkid\";\n return {\n [t]: e\n };\n }\n get isWGS84() {\n return m(this);\n }\n get isWebMercator() {\n return w(this);\n }\n get isGeographic() {\n return y(this);\n }\n get isWrappable() {\n return k(this);\n }\n get metersPerUnit() {\n return o(this);\n }\n get unit() {\n return s(this) || (this.isGeographic ? \"degrees\" : null);\n }\n writeWkt(e, t) {\n this.wkid || (t.wkt = e);\n }\n clone() {\n if (this === S.WGS84) return new S(u);\n if (this === S.WebMercator) return new S(d);\n const e = new S();\n return null != this.wkid ? (e.wkid = this.wkid, null != this.latestWkid && (e.latestWkid = this.latestWkid), null != this.vcsWkid && (e.vcsWkid = this.vcsWkid), null != this.latestVcsWkid && (e.latestVcsWkid = this.latestVcsWkid)) : (null != this.wkt && (e.wkt = this.wkt), null != this.wkt2 && (e.wkt2 = this.wkt2)), this.imageCoordinateSystem && (e.imageCoordinateSystem = i(this.imageCoordinateSystem)), e;\n }\n equals(e) {\n if (null == e) return !1;\n if (this.imageCoordinateSystem || e.imageCoordinateSystem) {\n if (null == this.imageCoordinateSystem || null == e.imageCoordinateSystem) return !1;\n const {\n id: t,\n referenceServiceName: r\n } = e.imageCoordinateSystem,\n {\n geodataXform: i\n } = e.imageCoordinateSystem,\n o = this.imageCoordinateSystem;\n return null == t || i ? JSON.stringify(o) === JSON.stringify(e.imageCoordinateSystem) : r ? o.id === t && o.referenceServiceName === r : o.id === t;\n }\n return h(this, e);\n }\n toJSON(e) {\n return this.write(void 0, e);\n }\n};\nf.GCS_NAD_1927 = null, f.WGS84 = null, f.WebMercator = null, f.PlateCarree = null, e([l({\n readOnly: !0\n})], f.prototype, \"isWGS84\", null), e([l({\n readOnly: !0\n})], f.prototype, \"isWebMercator\", null), e([l({\n readOnly: !0\n})], f.prototype, \"isGeographic\", null), e([l({\n readOnly: !0\n})], f.prototype, \"isWrappable\", null), e([l({\n type: n,\n json: {\n write: !0\n }\n})], f.prototype, \"latestWkid\", void 0), e([l({\n readOnly: !0\n})], f.prototype, \"metersPerUnit\", null), e([l({\n readOnly: !0\n})], f.prototype, \"unit\", null), e([l({\n type: n,\n json: {\n write: !0,\n origins: {\n \"web-scene\": {\n write: {\n overridePolicy() {\n return {\n isRequired: null == this.wkt\n };\n }\n }\n }\n }\n }\n})], f.prototype, \"wkid\", void 0), e([l({\n type: String,\n json: {\n origins: {\n \"web-scene\": {\n write: {\n overridePolicy() {\n return {\n isRequired: null == this.wkid\n };\n }\n }\n }\n }\n }\n})], f.prototype, \"wkt\", void 0), e([p(\"wkt\"), p(\"web-scene\", \"wkt\")], f.prototype, \"writeWkt\", null), e([l({\n type: String,\n json: {\n write: !1\n }\n})], f.prototype, \"wkt2\", void 0), e([l({\n type: n,\n json: {\n write: !0\n }\n})], f.prototype, \"vcsWkid\", void 0), e([l({\n type: n,\n json: {\n write: !0\n }\n})], f.prototype, \"latestVcsWkid\", void 0), e([l()], f.prototype, \"imageCoordinateSystem\", void 0), f = S = e([a(\"esri.geometry.SpatialReference\")], f), f.prototype.toJSON.isDefaultToJSON = !0, f.GCS_NAD_1927 = t.freeze(new f({\n wkid: 4267,\n wkt: 'GEOGCS[\"GCS_North_American_1927\",DATUM[\"D_North_American_1927\",SPHEROID[\"Clarke_1866\",6378206.4,294.9786982]],PRIMEM[\"Greenwich\",0.0],UNIT[\"Degree\",0.0174532925199433]]'\n})), f.WGS84 = t.freeze(new f(u)), f.WebMercator = t.freeze(new f(d)), f.PlateCarree = t.freeze(new f(c));\nconst g = f;\nexport { g as default };"],"mappings":"sUAKA,SAASA,EAAEA,EAAGC,EAAGC,EAAG,CAClB,IAAIC,EAAG,EACP,OAAkBF,IAAX,QAAgB,EAAID,EAAGG,EAAI,CAAC,MAAM,GAAiB,OAAOF,GAAnB,UAAwB,EAAID,EAAGG,EAAI,CAAC,MAAM,EAAGD,EAAID,IAAM,EAAIA,EAAGE,EAAI,MAAM,QAAQH,CAAC,EAAIA,EAAI,CAAC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AAC,EAAGhB,EAAE,UAAW,UAAW,MAAM,EAAG,EAAE,CAACe,EAAE,CACzC,KAAMC,EACN,KAAM,CACJ,MAAO,EACT,CACF,CAAC,CAAC,EAAGhB,EAAE,UAAW,gBAAiB,MAAM,EAAG,EAAE,CAACe,EAAE,CAAC,EAAGf,EAAE,UAAW,wBAAyB,MAAM,EAAGA,EAAID,EAAI,EAAE,CAACW,EAAE,gCAAgC,CAAC,EAAGV,CAAC,EAAGA,EAAE,UAAU,OAAO,gBAAkB,GAAIA,EAAE,aAAeiB,EAAE,OAAO,IAAIjB,EAAE,CAChO,KAAM,KACN,IAAK,0KACP,CAAC,CAAC,EAAGA,EAAE,MAAQiB,EAAE,OAAO,IAAIjB,EAAEQ,CAAC,CAAC,EAAGR,EAAE,YAAciB,EAAE,OAAO,IAAIjB,EAAES,CAAC,CAAC,EAAGT,EAAE,YAAciB,EAAE,OAAO,IAAIjB,EAAEe,CAAC,CAAC,EACxG,IAAMG,EAAIlB","names":["r","o","e","i","p","c","j","S","f","e","t","O","P","N","z","ee","U","h","a","r","i","o","s","m","x","b","g"],"x_google_ignoreList":[0,1]}