!function(e){"object"==typeof module&&"object"==typeof module.exports?e(require,exports):"function"==typeof define&&define.amd&&define(["require","exports","tslib","../../deps/bluebird_fork","../../Validation","./tools","esri/geometry/geometryEngineAsync"],e)}(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("tslib").__importDefault(e("../../deps/bluebird_fork")),o=e("../../Validation"),r=e("./tools"),a=e("esri/geometry/geometryEngineAsync"),e=(i.prototype.execute=function(e){var t=o.validation.exists("geometry1",e.geometry1),i=o.validation.exists("geometry2",e.geometry2),e=o.validation.array("relations",e.relations,o.validation.never).map(function(e){return a.relate(t,i,e)});return r.inline(n.default.all(e),function(e){return{incident:0<=e.indexOf(!0),incidents:e}})},i.action="gcx:wf:arcgis::RelateEngineTask",i.suite="gcx:wf:builtin",i);function i(){}t.RelateEngineTask=e});