/* COPYRIGHT Esri - https://js.arcgis.com/5.1.0/LICENSE.txt */
import{__decorate as t}from"tslib";import{property as e,subclass as n}from"../../../core/accessorSupport/decorators.js";import r from"./BaseFunctionArguments.js";var o;let a=o=class extends r{constructor(){super(...arguments),this.includedRanges=null,this.noDataValues=null,this.noDataInterpretation=0}get normalizedNoDataValues(){const{noDataValues:t}=this;if(!t?.length)return null;let e=!1;const n=t.map(t=>{if("number"==typeof t)return e=!0,[t];if("string"==typeof t){const n=t.trim().split(" ").filter(t=>""!==t.trim()).map(t=>Number(t));return e=e||n.length>0,0===n.length?null:n}return null});return e?n:null}clone(){return new o({includedRanges:this.includedRanges?.slice()??[],noDataValues:this.noDataValues?.slice()??[],noDataInterpretation:this.noDataInterpretation})}};t([e({json:{write:!0}})],a.prototype,"includedRanges",void 0),t([e({json:{write:!0}})],a.prototype,"noDataValues",void 0),t([e()],a.prototype,"normalizedNoDataValues",null),t([e({json:{write:!0}})],a.prototype,"noDataInterpretation",void 0),a=o=t([n("esri.layers.raster.functions.MaskFunctionArguments")],a);const s=a;export{s as default};
