!function(e){"object"==typeof module&&"object"==typeof module.exports?e(require,exports):"function"==typeof define&&define.amd&&define(["require","exports","tslib","../../Validation","./tools","esri/tasks/GeometryService"],e)}(function(e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var t=e("tslib"),n=e("../../Validation"),a=e("./tools"),r=t.__importDefault(e("esri/tasks/GeometryService")),e=(o.prototype.execute=function(e,i){var t=n.validation.string("url",e.url,n.validation.never),o=n.validation.array("geometry",e.geometry,n.validation.never),e=new r.default(t),t=a.isAbortable(i.cancellationToken)?{signal:i.cancellationToken.signal}:void 0,t=e.labelPoints(o,t);return a.schedulePromiseCancellation(i,t),a.inline(t,function(e){return{points:e}})},o.action="gcx:wf:arcgis::LabelPointsServiceTask",o.suite="gcx:wf:builtin",o);function o(){}i.LabelPointsServiceTask=e});