import{validation}from"../../Validation.js";import{inline}from"./tools.js";import{union}from"@arcgis/core/geometry/geometryEngineAsync";class UnionEngineTask{execute(n){var i=validation.array("geometry1",n.geometry1,[]),n=validation.array("geometry2",n.geometry2,[]),n=union([...i,...n]);return inline(n,function(n){return{geometry:n}})}}UnionEngineTask.action="gcx:wf:arcgis::UnionEngineTask",UnionEngineTask.suite="gcx:wf:builtin";export{UnionEngineTask};