{"version":3,"sources":["node_modules/@arcgis/core/rest/support/ProjectParameters.js","node_modules/@arcgis/core/rest/geometryService/project.js"],"sourcesContent":["/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.28/esri/copyright.txt for details.\n*/\nimport { _ as r } from \"../../chunks/tslib.es6.js\";\nimport { JSONSupport as o } from \"../../core/JSONSupport.js\";\nimport { property as t } from \"../../core/accessorSupport/decorators/property.js\";\nimport \"../../core/accessorSupport/ensureType.js\";\nimport \"../../core/arrayUtils.js\";\nimport \"../../core/has.js\";\nimport { subclass as e } from \"../../core/accessorSupport/decorators/subclass.js\";\nimport { getJsonType as s } from \"../../geometry/support/jsonUtils.js\";\nimport { srToRESTValue as i } from \"../../geometry/support/spatialReferenceUtils.js\";\nlet a = class extends o {\n constructor(r) {\n super(r), this.geometries = [], this.outSpatialReference = null, this.transformation = null, this.transformForward = null;\n }\n toJSON() {\n const r = this.geometries.map(r => r.toJSON()),\n o = this.geometries[0],\n t = {};\n return t.outSR = i(this.outSpatialReference), t.inSR = i(o.spatialReference), t.geometries = JSON.stringify({\n geometryType: s(o),\n geometries: r\n }), this.transformation && (t.transformation = this.transformation.wkid || JSON.stringify(this.transformation)), null != this.transformForward && (t.transformForward = this.transformForward), t;\n }\n};\nr([t()], a.prototype, \"geometries\", void 0), r([t({\n json: {\n read: {\n source: \"outSR\"\n }\n }\n})], a.prototype, \"outSpatialReference\", void 0), r([t()], a.prototype, \"transformation\", void 0), r([t()], a.prototype, \"transformForward\", void 0), a = r([e(\"esri.rest.support.ProjectParameters\")], a);\nconst p = a;\nexport { p as default };","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.28/esri/copyright.txt for details.\n*/\nimport r from \"../../request.js\";\nimport { ensureType as o } from \"../../core/accessorSupport/ensureType.js\";\nimport { getJsonType as t } from \"../../geometry/support/jsonUtils.js\";\nimport { parseUrl as e, asValidOptions as s } from \"../utils.js\";\nimport { decodeGeometries as p } from \"./utils.js\";\nimport m from \"../support/ProjectParameters.js\";\nconst i = o(m);\nasync function n(o, m, n) {\n m = i(m);\n const u = e(o),\n c = {\n ...u.query,\n f: \"json\",\n ...m.toJSON()\n },\n j = m.outSpatialReference,\n a = t(m.geometries[0]),\n f = s(c, n);\n return r(u.path + \"/project\", f).then(({\n data: {\n geometries: r\n }\n }) => p(r, a, j));\n}\nexport { n as project };"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAaA,IAAI,IAAI,cAAc,EAAE;AAAA,EACtB,YAAY,GAAG;AACb,UAAM,CAAC,GAAG,KAAK,aAAa,CAAC,GAAG,KAAK,sBAAsB,MAAM,KAAK,iBAAiB,MAAM,KAAK,mBAAmB;AAAA,EACvH;AAAA,EACA,SAAS;AACP,UAAM,IAAI,KAAK,WAAW,IAAI,CAAAA,OAAKA,GAAE,OAAO,CAAC,GAC3CC,KAAI,KAAK,WAAW,CAAC,GACrB,IAAI,CAAC;AACP,WAAO,EAAE,QAAQ,EAAE,KAAK,mBAAmB,GAAG,EAAE,OAAO,EAAEA,GAAE,gBAAgB,GAAG,EAAE,aAAa,KAAK,UAAU;AAAA,MAC1G,cAAc,EAAEA,EAAC;AAAA,MACjB,YAAY;AAAA,IACd,CAAC,GAAG,KAAK,mBAAmB,EAAE,iBAAiB,KAAK,eAAe,QAAQ,KAAK,UAAU,KAAK,cAAc,IAAI,QAAQ,KAAK,qBAAqB,EAAE,mBAAmB,KAAK,mBAAmB;AAAA,EAClM;AACF;AACA,EAAE,CAAC,EAAE,CAAC,GAAG,EAAE,WAAW,cAAc,MAAM,GAAG,EAAE,CAAC,EAAE;AAAA,EAChD,MAAM;AAAA,IACJ,MAAM;AAAA,MACJ,QAAQ;AAAA,IACV;AAAA,EACF;AACF,CAAC,CAAC,GAAG,EAAE,WAAW,uBAAuB,MAAM,GAAG,EAAE,CAAC,EAAE,CAAC,GAAG,EAAE,WAAW,kBAAkB,MAAM,GAAG,EAAE,C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