/*
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/4.24/esri/copyright.txt for details.
*/
define(["exports","../chunks/_rollupPluginBabelHelpers","./maybe","./promiseUtils"],(function(r,e,t,n){"use strict";function o(r,e,t){return n.eachAlways(r.map(((r,n)=>e.apply(t,[r,n]))))}function u(r,e,t){return a.apply(this,arguments)}function a(){return a=e._asyncToGenerator((function*(r,e,t){return(yield n.eachAlways(r.map(((r,n)=>e.apply(t,[r,n]))))).map((r=>r.value))})),a.apply(this,arguments)}function i(r){return l.apply(this,arguments)}function l(){return(l=e._asyncToGenerator((function*(r){if(t.isNone(r))return{ok:!1,error:new Error("no promise provided")};try{return{ok:!0,value:yield r}}catch(e){return{ok:!1,error:e}}}))).apply(this,arguments)}function p(r){return s.apply(this,arguments)}function s(){return(s=e._asyncToGenerator((function*(r){try{return{ok:!0,value:yield r}}catch(e){return n.throwIfAbortError(e),{ok:!1,error:e}}}))).apply(this,arguments)}function c(r){if(!0===r.ok)return r.value;throw r.error}r.assertResult=c,r.forEach=o,r.map=u,r.result=i,r.resultOrAbort=p,Object.defineProperties(r,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
