define(["require","exports","tslib","../../Validation","./tools","./MapProvider","../../Hooks","esri/tasks/Geoprocessor"],function(e,r,t,i,s,a,n,o){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),o=t.__importDefault(o);l.prototype.execute=function(e,r,t){var a=i.validation.string("url",e.url,i.validation.never),a=new o.default(a);a.outSpatialReference=t.getOutSR(e.outSpatialReference),a.processSpatialReference=t.getOutSR(e.processSpatialReference);t=i.validation.exists("arguments",e.arguments,{}),e=s.isAbortable(r.cancellationToken)?{signal:r.cancellationToken.signal}:void 0,e=a.execute(t,e);return s.schedulePromiseCancellation(r,e),s.inline(e,function(e){for(var r={},t=0,a=Array.isArray(e)?e:e.results;t<a.length;t++){var i=a[t];r[i.paramName]=i.value}return{messages:Array.isArray(e)?[]:e.messages,results:r}})},l.action="gcx:wf:arcgis::Geoprocessing",l.suite="gcx:wf:builtin",a=t.__decorate([n.activate(a.MapProvider)],l);function l(){}r.Geoprocessing=a});