import{validation}from"../../Validation.js";import{inline,polygonFromExtent}from"./tools.js";import{rotate}from"@arcgis/core/geometry/geometryEngineAsync";import Polygon from"@arcgis/core/geometry/Polygon";class RotateEngineTask{execute(o){var e=validation.exists("geometry",o.geometry),t=validation.number("angle",o.angle,validation.never),e=polygonFromExtent(e,Polygon),o=rotate(e,t,o.origin);return inline(o,function(o){return{geometry:o}})}}RotateEngineTask.action="gcx:wf:arcgis::RotateEngineTask",RotateEngineTask.suite="gcx:wf:builtin";export{RotateEngineTask};