{"version":3,"sources":["webpack:///./node_modules/@arcgis/core/rest/support/ProjectParameters.js","webpack:///./node_modules/@arcgis/core/rest/geometryService/utils.js","webpack:///./node_modules/@arcgis/core/rest/geometryService/project.js","webpack:///./node_modules/@arcgis/core/portal/support/geometryServiceUtils.js"],"names":["i","r","super","this","geometries","outSpatialReference","transformation","transformForward","map","toJSON","t","o","outSR","wkid","JSON","stringify","inSR","spatialReference","geometryType","prototype","json","read","source","a","e","n","fromJSON","async","m","u","c","query","f","j","path","then","data","l","geometryServiceUrl","portal","getDefault","load","signal","helperServices","geometry","url","s","Array","isArray","length"],"mappings":"kHAAA,kIAI8a,IAAIA,EAAE,cAAc,OAAE,YAAYC,GAAGC,MAAMD,GAAGE,KAAKC,WAAW,KAAKD,KAAKE,oBAAoB,KAAKF,KAAKG,eAAe,KAAKH,KAAKI,iBAAiB,KAAK,SAAS,MAAMN,EAAEE,KAAKC,WAAWI,KAAI,SAAUP,GAAG,OAAOA,EAAEQ,YAAYC,EAAEP,KAAKC,WAAW,GAAGO,EAAE,GAAG,OAAOA,EAAEC,MAAMT,KAAKE,oBAAoBQ,MAAMC,KAAKC,UAAUZ,KAAKE,oBAAoBI,UAAUE,EAAEK,KAAKN,EAAEO,iBAAiBJ,MAAMC,KAAKC,UAAUL,EAAEO,iBAAiBR,UAAUE,EAAEP,WAAWU,KAAKC,UAAU,CAACG,aAAa,eAAER,GAAGN,WAAWH,IAAIE,KAAKG,iBAAiBK,EAAEL,eAAeH,KAAKG,eAAeO,MAAMC,KAAKC,UAAUZ,KAAKG,iBAAiB,MAAMH,KAAKI,mBAAmBI,EAAEJ,iBAAiBJ,KAAKI,kBAAkBI,IAAI,eAAE,CAAC,kBAAKX,EAAEmB,UAAU,kBAAa,GAAQ,eAAE,CAAC,eAAE,CAACC,KAAK,CAACC,KAAK,CAACC,OAAO,aAAatB,EAAEmB,UAAU,2BAAsB,GAAQ,eAAE,CAAC,kBAAKnB,EAAEmB,UAAU,sBAAiB,GAAQ,eAAE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GAAG,MAAMO,QAAQ9B,EAAEqC,EAAEd,GAAGuB,EAAE,IAAI,OAAEA,EAAE1C,WAAW,CAACH,GAAG6C,EAAEzC,oBAAoBK,EAAE,MAAMkB,QAAQ,eAAEE,EAAEgB,EAAE,CAACJ,OAAOnB,IAAI,GAAGK,GAAGmB,MAAMC,QAAQpB,IAAI,IAAIA,EAAEqB,OAAO,OAAOrB,EAAE,GAAG,MAAM,IAAI,OAAE","file":"js/chunk-0658e062.b59a11d8.js","sourcesContent":["/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.23/esri/copyright.txt for details.\n*/\nimport{_ as r}from\"../../chunks/tslib.es6.js\";import{JSONSupport as t}from\"../../core/JSONSupport.js\";import{property as o}from\"../../core/accessorSupport/decorators/property.js\";import\"../../core/arrayUtils.js\";import\"../../core/has.js\";import\"../../core/accessorSupport/ensureType.js\";import{subclass as e}from\"../../core/accessorSupport/decorators/subclass.js\";import{getJsonType as s}from\"../../geometry/support/jsonUtils.js\";let i=class extends t{constructor(r){super(r),this.geometries=null,this.outSpatialReference=null,this.transformation=null,this.transformForward=null}toJSON(){const r=this.geometries.map((function(r){return r.toJSON()})),t=this.geometries[0],o={};return o.outSR=this.outSpatialReference.wkid||JSON.stringify(this.outSpatialReference.toJSON()),o.inSR=t.spatialReference.wkid||JSON.stringify(t.spatialReference.toJSON()),o.geometries=JSON.stringify({geometryType:s(t),geometries:r}),this.transformation&&(o.transformation=this.transformation.wkid||JSON.stringify(this.transformation)),null!=this.transformForward&&(o.transformForward=this.transformForward),o}};r([o()],i.prototype,\"geometries\",void 0),r([o({json:{read:{source:\"outSR\"}}})],i.prototype,\"outSpatialReference\",void 0),r([o()],i.prototype,\"transformation\",void 0),r([o()],i.prototype,\"transformForward\",void 0),i=r([e(\"esri.rest.support.ProjectParameters\")],i);const a=i;export{a as default};\n","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.23/esri/copyright.txt for details.\n*/\nimport{getJsonType as e,getGeometryType as t}from\"../../geometry/support/jsonUtils.js\";function r(t){return{geometryType:e(t[0]),geometries:t.map((e=>e.toJSON()))}}function o(e,r,o){const n=t(r);return e.map((e=>{const t=n.fromJSON(e);return t.spatialReference=o,t}))}export{o as decodeGeometries,r as encodeGeometries};\n","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.23/esri/copyright.txt for details.\n*/\nimport r from\"../../request.js\";import{ensureType as o}from\"../../core/accessorSupport/ensureType.js\";import{getJsonType as t}from\"../../geometry/support/jsonUtils.js\";import{parseUrl as e,asValidOptions as s}from\"../utils.js\";import{decodeGeometries as p}from\"./utils.js\";import m from\"../support/ProjectParameters.js\";const i=o(m);async function n(o,m,n){m=i(m);const u=e(o),c={...u.query,f:\"json\",...m.toJSON()},j=m.outSpatialReference,a=t(m.geometries[0]),f=s(c,n);return r(u.path+\"/project\",f).then((({data:{geometries:r}})=>p(r,a,j)))}export{n as project};\n","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.23/esri/copyright.txt for details.\n*/\nimport r from\"../../config.js\";import e from\"../../core/Error.js\";import t from\"../Portal.js\";import{project as o}from\"../../rest/geometryService/project.js\";import n from\"../../rest/support/ProjectParameters.js\";async function i(o=null,n){var i,l;if(r.geometryServiceUrl)return r.geometryServiceUrl;if(!o)throw new e(\"internal:geometry-service-url-not-configured\");let a;a=\"portal\"in o?o.portal||t.getDefault():o,await a.load({signal:n});const c=null==(i=a.helperServices)||null==(l=i.geometry)?void 0:l.url;if(!c)throw new e(\"internal:geometry-service-url-not-configured\");return c}async function l(r,t,l=null,a){const c=await i(l,a),s=new n;s.geometries=[r],s.outSpatialReference=t;const m=await o(c,s,{signal:a});if(m&&Array.isArray(m)&&1===m.length)return m[0];throw new e(\"internal:geometry-service-projection-failed\")}export{i as getGeometryServiceURL,l as projectGeometry};\n"],"sourceRoot":""}