!function(e){"object"==typeof module&&"object"==typeof module.exports?e(require,exports):"function"==typeof define&&define.amd&&define(["require","exports","tslib","../../Validation","./tools","esri/tasks/GeometryService"],e)}(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=e("tslib"),r=e("../../Validation"),a=e("./tools"),s=i.__importDefault(e("esri/tasks/GeometryService")),e=(o.prototype.execute=function(e,t){var i=r.validation.string("url",e.url,r.validation.never),o=r.validation.exists("geometry",e.geometry),n=r.validation.exists("reshaper",e.reshaper),e=new s.default(i),i=a.isAbortable(t.cancellationToken)?{signal:t.cancellationToken.signal}:void 0,i=e.reshape(o,n,i);return a.schedulePromiseCancellation(t,i),a.inline(i,function(e){return{geometry:e}})},o.action="gcx:wf:arcgis::ReshapeServiceTask",o.suite="gcx:wf:builtin",o);function o(){}t.ReshapeServiceTask=e});