!function(e){"object"==typeof module&&"object"==typeof module.exports?e(require,exports):"function"==typeof define&&define.amd&&define(["require","exports","../../Validation","./tools","esri/geometry/geometryEngineAsync"],e)}(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("../../Validation"),o=e("./tools"),r=e("esri/geometry/geometryEngineAsync"),e=(i.prototype.execute=function(e){var t=n.validation.exists("geometry",e.geometry),i=n.validation.exists("maxDeviation",e.maxDeviation),e=r.generalize(t,i,e.removeDegenerateParts,e.unit);return o.inline(e,function(e){return{geometry:e}})},i.action="gcx:wf:arcgis::GeneralizeEngineTask",i.suite="gcx:wf:builtin",i);function i(){}t.GeneralizeEngineTask=e});