!function(e){"object"==typeof module&&"object"==typeof module.exports?e(require,exports):"function"==typeof define&&define.amd&&define(["require","exports","tslib","../../Validation","./MapProvider","../../Hooks","./tools"],e)}(function(e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var o=e("tslib"),a=e("../../Validation"),n=e("./MapProvider"),t=e("../../Hooks"),d=e("./tools"),n=(r.prototype.execute=function(e,i,o){var n=a.validation.id("layerId",e.layerId,a.validation.never),t=a.validation.id("sublayerId",e.sublayerId,void 0),r=o.create();return d.inline(r.load(),function(){var i=r.findLayer(n);return null!=i?d.inline(i.load(),function(){if(void 0===t)return{expression:i.getDefinitionExpression()};var e=r.findLayer(t,i.layer);return null!=e?{expression:e.getDefinitionExpression()}:{}}):{}})},r.action="gcx:wf:arcgis::GetLayerDefinitionExpression",r.suite="gcx:wf:builtin",o.__decorate([t.activate(n.MapProvider)],r));function r(){}i.GetLayerDefinitionExpression=n});