!function(e){"object"==typeof module&&"object"==typeof module.exports?e(require,exports):"function"==typeof define&&define.amd&&define(["require","exports","tslib","./esriDelegate!esri/geometry/SpatialReference","../../Validation","./tools","esri/tasks/GeometryService"],e)}(function(e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var o=e("tslib"),s=e("./esriDelegate!esri/geometry/SpatialReference"),l=e("../../Validation"),c=e("./tools"),d=o.__importDefault(e("esri/tasks/GeometryService")),e=(n.prototype.execute=function(e,i){var o=l.validation.string("url",e.url,l.validation.never),n=l.validation.array("strings",e.strings,l.validation.never),t=l.validation.exists("spatialReference",e.spatialReference),r=l.validation.string("conversionType",e.conversionType,l.validation.never),a="object"==typeof t?t:void 0;"number"==typeof t&&(a=new s.SpatialReference({wkid:t}));r={strings:n,sr:a="string"==typeof t?new s.SpatialReference({wkt:t}):a,conversionType:r};null!==e.conversionMode&&void 0!==e.conversionMode&&(r.conversionMode=e.conversionMode);e=new d.default(o),o=c.isAbortable(i.cancellationToken)?{signal:i.cancellationToken.signal}:void 0,o=e.fromGeoCoordinateString(r,o);return c.schedulePromiseCancellation(i,o),c.inline(o,function(e){return{coordinates:e}})},n.action="gcx:wf:arcgis::FromGeoCoordinateStringServiceTask",n.suite="gcx:wf:builtin",n);function n(){}i.FromGeoCoordinateStringServiceTask=e});