!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,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var r=e("tslib"),a=e("../../Validation"),l=e("./tools"),s=r.__importDefault(e("esri/tasks/GeometryService")),e=(t.prototype.execute=function(e,i){var t=a.validation.string("url",e.url,a.validation.never),o=a.validation.array("geometry1",e.geometry1,a.validation.never),n=a.validation.array("geometry2",e.geometry2,[]),e=new s.default(t),t=l.isAbortable(i.cancellationToken)?{signal:i.cancellationToken.signal}:void 0,t=e.union(r.__spreadArrays(o,n),t);return l.schedulePromiseCancellation(i,t),l.inline(t,function(e){return{geometry:e}})},t.action="gcx:wf:arcgis::UnionServiceTask",t.suite="gcx:wf:builtin",t);function t(){}i.UnionServiceTask=e});