define(["require","exports","tslib","../../Validation","./tools","esri/geometry/geometryEngineAsync","esri/geometry/Polygon"],function(e,t,n,i,o,r,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),a=n.__importDefault(a);g.prototype.execute=function(e){var t=i.validation.exists("geometry",e.geometry),n=i.validation.number("angle",e.angle,i.validation.never),t=o.polygonFromExtent(t,a.default),e=r.rotate(t,n,e.origin);return o.inline(e,function(e){return{geometry:e}})},g.action="gcx:wf:arcgis::RotateEngineTask",g.suite="gcx:wf:builtin",n=g;function g(){}t.RotateEngineTask=n});