}},a.prototype._filter=function(t,e){for(varn=e.length,r=newArray(n),i=0,o=0;n>o;++o)t[o]&&(r[i++]=e[o]);r.length=i,this._resolve(r)},a.prototype.preservedValues=function(){returnthis._preservedValues},e.prototype.map=function(t,e){returnc(this,t,e,null)},e.map=function(t,e,n,r){returnc(t,e,n,r)}}},{"./util":36}],19:[function(t,e){"use strict";e.exports=function(e,n,r,i,o){vars=t("./util"),a=s.tryCatch;e.method=function(t){if("function"!=typeoft)thrownewe.TypeError("expecting a function but got "+s.classString(t));returnfunction(){varr=newe(n);r._captureStackTrace(),r._pushContext();vari=a(t).apply(this,arguments),s=r._popContext();returno.checkForgottenReturns(i,s,"Promise.method",r),r._resolveFromSyncValue(i),r}},e.attempt=e["try"]=function(t){if("function"!=typeoft)returni("expecting a function but got "+s.classString(t));varr=newe(n);r._captureStackTrace(),r._pushContext();varc;if(arguments.length>1){o.deprecated("calling Promise.try with more than 1 argument");varl=arguments[1],u=arguments[2];c=s.isArray(l)?a(t).apply(u,l):a(t).call(u,l)}elsec=a(t)();varp=r._popContext();returno.checkForgottenReturns(c,p,"Promise.try",r),r._resolveFromSyncValue(c),r},e.prototype._resolveFromSyncValue=function(t){t===s.errorObj?this._rejectCallback(t.e,!1):this._resolveCallback(t,!0)}}},{"./util":36}],20:[function(t,e){"use strict";functionn(t){returntinstanceofError&&l.getPrototypeOf(t)===Error.prototype}functionr(t){vare;if(n(t)){e=newc(t),e.name=t.name,e.message=t.message,e.stack=t.stack;for(varr=l.keys(t),i=0;i<r.length;++i){vars=r[i];u.test(s)||(e[s]=t[s])}returne}returno.markAsOriginatingFromRejection(t),t}functioni(t,e){returnfunction(n,i){if(null!==t){if(n){varo=r(s(n));t._attachExtraTrace(o),t._reject(o)}elseif(e){vara=[].slice.call(arguments,1);t._fulfill(a)}elset._fulfill(i);t=null}}}varo=t("./util"),s=o.maybeWrapAsError,a=t("./errors"),c=a.OperationalError,l=t("./es5"),u=/^(?:name|message|stack|cause)$/;e.exports=i},{"./errors":12,"./es5":13,"./util":36}],21:[function(t,e){"use strict";e.exports=function(e){functionn(t,e){varn=this;if(!o.isArray(t))returnr.call(n,t,e);vari=a(e).apply(n._boundValue(),[null].concat(t));i===c&&s.throwLater(i.e)}functionr(t,e){varn=this,r=n._boundValue(),i=void0===t?a(e).call(r,null):a(e).call(r,null,t);i===c&&s.throwLater(i.e)}functioni(t,e){varn=this;if(!t){varr=newError(t+"");r.cause=t,t=r}vari=a(e).call(n._boundValue(),t);i===c&&s.throwLater(i.e)}varo=t("./util"),s=e._async,a=o.tryCatch,c=o.errorObj;e.prototype.asCallback=e.prototype.nodeify=function(t,e){if("function"==typeoft){varo=r;void0!==e&&Object(e).spread&&(o=n),this._then(o,i,void0,this,t)}returnthis}}},{"./util":36}],22:[function(t,e){"use strict";e.exports=function(){functione(){}functionn(t,e){if("function"!=typeofe)thrownewy("expecting a function but got "+h.classString(e));if(t.constructor!==r)thrownewy("the promise constructor cannot be invoked directly\n\n See http://goo.gl/MqrFmX\n")}functionr(t){this._bitField=0,this._fulfillmentHandler0=void0,this._rejectionHandler0=void0,this._promise0=void0,this._receiver0=void0,t!==m&&(n(this,t),this._resolveFromExecutor(t)),this._promiseCreated()}functioni(t){this.promise._resolveCallback(t)}functiono(t){this.promise._rejectCallback(t,!1)}functions(t){vare=newr(m);e._fulfillmentHandler0=t,e._rejectionHandler0=t,e._promise0=t,e._receiver0=t}vara,c=function(){returnnewy("circular promise resolution chain\n\n See http://goo.gl/MqrFmX\n")},l=function(){returnnewr.PromiseInspection(this._target())},u=function(t){returnr.reject(newy(t))},p={},h=t("./util");a=h.isNode?function(){vart=process.domain;returnvoid0===t&&(t=null),t}:function(){returnnull},h.notEnumerableProp(r,"_getDomain",a);varf=t("./es5"),_=t("./async"),d=new_;f.defineProperty(r,"_async",{value:d});varv=t("./errors"),y=r.TypeError=v.TypeError;r.RangeError=v.RangeError;varg=r.CancellationError=v.CancellationError;r.TimeoutError=v.TimeoutError,r.OperationalError=v.OperationalError,r.RejectionError=v.OperationalError,r.AggregateErro
},t.prototype._reason=function(){returnthis._unsetRejectionIsUnhandled(),this._settledValue()},t.PromiseInspection=e}},{}],33:[function(t,e){"use strict";e.exports=function(e,n){functionr(t,r){if(u(t)){if(tinstanceofe)returnt;vari=o(t);if(i===l){r&&r._pushContext();varc=e.reject(i.e);returnr&&r._popContext(),c}if("function"==typeofi){if(s(t)){varc=newe(n);returnt._then(c._fulfill,c._reject,void0,c,null),c}returna(t,i,r)}}returnt}functioni(t){returnt.then}functiono(t){try{returni(t)}catch(e){returnl.e=e,l}}functions(t){returnp.call(t,"_promise0")}functiona(t,r,i){functiono(t){a&&(a._resolveCallback(t),a=null)}functions(t){a&&(a._rejectCallback(t,p,!0),a=null)}vara=newe(n),u=a;i&&i._pushContext(),a._captureStackTrace(),i&&i._popContext();varp=!0,h=c.tryCatch(r).call(t,o,s);returnp=!1,a&&h===l&&(a._rejectCallback(h.e,!0,!0),a=null),u}varc=t("./util"),l=c.errorObj,u=c.isObject,p={}.hasOwnProperty;returnr}},{"./util":36}],34:[function(t,e){"use strict";e.exports=function(e,n){functionr(t){vare=this;returneinstanceofNumber&&(e=+e),clearTimeout(e),t}functioni(t){vare=this;throweinstanceofNumber&&(e=+e),clearTimeout(e),t}varo=t("./util"),s=e.TimeoutError,a=function(t,e,n){if(t.isPending()){varr;r="string"!=typeofe?einstanceofError?e:news("operation timed out"):news(e),o.markAsOriginatingFromRejection(r),t._attachExtraTrace(r),t._reject(r),n.cancel()}},c=function(t){returnl(+this).thenReturn(t)},l=e.delay=function(t,r){vari;returnvoid0!==r?i=e.resolve(r)._then(c,null,null,t,void0):(i=newe(n),setTimeout(function(){i._fulfill()},+t)),i._setAsyncGuaranteed(),i};e.prototype.delay=function(t){returnl(t,this)},e.prototype.timeout=function(t,e){t=+t;varn=this.then(),o=n.then(),s=setTimeout(function(){a(o,e,n)},t);returno._then(r,i,void0,s,void0)}}},{"./util":36}],35:[function(t,e){"use strict";e.exports=function(e,n,r,i,o,s){functiona(t){setTimeout(function(){throwt},0)}functionc(t){vare=r(t);returne!==t&&"function"==typeoft._isDisposable&&"function"==typeoft._getDisposer&&t._isDisposable()&&e._setDisposable(t._getDisposer()),e}functionl(t,n){functioni(){if(s>=l)returnu._fulfill();varo=c(t[s++]);if(oinstanceofe&&o._isDisposable()){try{o=r(o._getDisposer().tryDispose(n),t.promise)}catch(p){returna(p)}if(oinstanceofe)returno._then(i,a,null,null,null)}i()}vars=0,l=t.length,u=newe(o);returni(),u}functionu(t,e,n){this._data=t,this._promise=e,this._context=n}functionp(t,e,n){this.constructor$(t,e,n)}functionh(t){returnu.isDisposer(t)?(this.resources[this.index]._setDisposable(t),t.promise()):t}functionf(t){this.length=t,this.promise=null,this[t-1]=null}var_=t("./util"),d=t("./errors").TypeError,v=t("./util").inherits,y=_.errorObj,g=_.tryCatch;u.prototype.data=function(){returnthis._data},u.prototype.promise=function(){returnthis._promise},u.prototype.resource=function(){returnthis.promise().isFulfilled()?this.promise().value():null},u.prototype.tryDispose=function(t){vare=this.resource(),n=this._context;void0!==n&&n._pushContext();varr=null!==e?this.doDispose(e,t):null;returnvoid0!==n&&n._popContext(),this._promise._unsetDisposable(),this._data=null,r},u.isDisposer=function(t){returnnull!=t&&"function"==typeoft.resource&&"function"==typeoft.tryDispose},v(p,u),p.prototype.doDispose=function(t,e){varn=this.data();returnn.call(t,t,e)},f.prototype._resultCancelled=function(){for(vart=this.length,n=0;t>n;++n){varr=this[n];rinstanceofe&&r.cancel()}},e.using=function(){vart=arguments.length;if(2>t)returnn("you must pass at least 2 arguments to Promise.using");vari=arguments[t-1];if("function"!=typeofi)returnn("expecting a function but got "+_.classString(i));varo,a=!0;2===t&&Array.isArray(arguments[0])?(o=arguments[0],t=o.length,a=!1):(o=arguments,t--);for(varc=newf(t),p=0;t>p;++p){vard=o[p];if(u.isDisposer(d)){varv=d;d=d.promise(),d._setDisposable(v)}else{varm=r(d);minstanceofe&&(d=m._then(h,null,null,{resources:c,index:p},void0))}c[p]=d}for(varb=newArray(c.length),p=0;p<b.length;++p)b[p]=e.resolve(c[p]).reflect();varw=e.all(b).th