{"version":3,"sources":["webpack:///./node_modules/arcgis-js-api/arcade/functions/featuresetstats.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,iCAAO,CAAC,kCAAS,CAAC,OAAS,CAAC,2BAAkB,CAAC,2BAAc,CAAC,2BAAyB,CAAC,2BAA4B,CAAC,mCAAE,sBAAsB,aAAa,wBAAwB,iBAAiB,yFAAyF,4GAA4G,sBAAsB,yFAAyF,4GAA4G,6DAA6D,8EAA8E,+EAA+E,GAAG,GAAG,gFAAgF,8EAA8E,+EAA+E,GAAG,GAAG,0CAA0C,kBAAkB,IAAI,uBAAuB,eAAe,iBAAiB,WAAW,KAAK,OAAO,WAAW,kCAAkC,kCAAkC,YAAY,KAAK,WAAW,iBAAiB,wBAAwB,GAAG,oBAAoB,SAAS,oBAAoB,sCAAsC,SAAS,6DAA6D,mDAAmD,oDAAoD,4BAA4B,GAAG,oCAAoC,oDAAoD,+BAA+B,GAAG,mCAAmC,oDAAoD,2BAA2B,GAAG,gCAAgC,oDAAoD,2BAA2B,GAAG,+BAA+B,oDAAoD,0BAA0B,GAAG,+BAA+B,oDAAoD,0BAA0B,GAAG,+BAA+B,oDAAoD,0BAA0B,GAAG,iCAAiC,oDAAoD,0EAA0E,wDAAwD,iDAAiD,gDAAgD,GAAG,GAAG;AAAA,oGAAE,C","file":"js/chunk-2d0e6360.7fd86c77.js","sourcesContent":["// COPYRIGHT © 2020 Esri\n//\n// All rights reserved under the copyright laws of the United States\n// and applicable international laws, treaties, and conventions.\n//\n// This material is licensed for use under the Esri Master License\n// Agreement (MLA), and is bound by the terms of that agreement.\n// You may redistribute and use this code without modification,\n// provided you adhere to the terms of the MLA and include this\n// copyright notice.\n//\n// See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english\n//\n// For additional information, contact:\n// Environmental Systems Research Institute, Inc.\n// Attn: Contracts and Legal Services Department\n// 380 New York Street\n// Redlands, California, USA 92373\n// USA\n//\n// email: contracts@esri.com\n//\n// See http://js.arcgis.com/4.17/esri/copyright.txt for details.\n\ndefine([\"require\",\"exports\",\"../languageUtils\",\"./fieldStats\",\"../../core/promiseUtils\",\"../../core/sql/WhereClause\"],(function(n,t,e,r,u,a){\"use strict\";function i(n,t,i,o,s,f){if(1===o.length){if(e.isArray(o[0]))return u.resolve(r.calculateStat(n,o[0],e.defaultUndefined(o[1],-1)));if(e.isImmutableArray(o[0]))return u.resolve(r.calculateStat(n,o[0].toArray(),e.defaultUndefined(o[1],-1)))}else if(2===o.length){if(e.isArray(o[0]))return u.resolve(r.calculateStat(n,o[0],e.defaultUndefined(o[1],-1)));if(e.isImmutableArray(o[0]))return u.resolve(r.calculateStat(n,o[0].toArray(),e.defaultUndefined(o[1],-1)));if(e.isFeatureSet(o[0]))return o[0].load().then((function(r){return c(a.WhereClause.create(o[1],r.getFieldsIndex()),f,s).then((function(r){return o[0].calculateStatistic(n,r,e.defaultUndefined(o[2],1e3),t.abortSignal)}))}))}else if(3===o.length&&e.isFeatureSet(o[0]))return o[0].load().then((function(r){return c(a.WhereClause.create(o[1],r.getFieldsIndex()),f,s).then((function(r){return o[0].calculateStatistic(n,r,e.defaultUndefined(o[2],1e3),t.abortSignal)}))}));return u.resolve(r.calculateStat(n,o,-1))}function c(n,t,e){try{var r=n.getVariables();if(r.length>0){for(var a=[],i=0;i