import{validation}from"../../Validation.js";class Max{addValuesToArray(a,e){"number"==typeof a?e.push(a):e.push(...a)}execute(a){validation.exists("value1",a.value1);var e=[];return this.addValuesToArray(a.value1,e),null!==a.value2&&void 0!==a.value2&&this.addValuesToArray(a.value2,e),{result:Math.max(...e)}}}Max.action="gcx:wf:math::Max",Max.suite="gcx:wf:builtin";export{Max};