define(["require","exports","../../Validation","./tools","esri/geometry/geometryEngineAsync"],function(e,n,i,o,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var t=(g.prototype.executeUsing=function(e,n,t){return e?r.geodesicLength(n,t):r.planarLength(n,t)},g.prototype.execute=function(e){var n=i.validation.exists("geometry",e.geometry),t=i.validation.boolean("geodesic",e.geodesic,!1),e=this.executeUsing(t,n,e.unit);return o.inline(e,function(e){return{length:e}})},g.action="gcx:wf:arcgis::LengthEngineTask",g.suite="gcx:wf:builtin",g);function g(){}n.LengthEngineTask=t});