for(n=0;e-1>n;++n){vari=arguments[n];if(!f.isObject(i))returnu("Catch statement predicate: expecting an object but got "+f.classString(i));r[o++]=i}if(r.length=o,t=arguments[n],"function"!=typeoft)thrownewj("The last argument to .catch() must be a function, got "+f.toString(t));returnthis.then(void0,N(r,t,this))}returnthis.then(void0,t)},o.prototype.reflect=function(){returnthis._then(l,l,void0,this,void0)},o.prototype.then=function(t,e){if(A.warnings()&&arguments.length>0&&"function"!=typeoft&&"function"!=typeofe){varn=".then() only accepts functions but was passed: "+f.classString(t);arguments.length>1&&(n+=", "+f.classString(e)),this._warn(n)}returnthis._then(t,e,void0,void0,void0)},o.prototype.done=function(t,e){varn=this._then(t,e,void0,void0,void0);n._setIsFinal()},o.prototype.spread=function(t){return"function"!=typeoft?u("expecting a function but got "+f.classString(t)):this.all()._then(t,void0,void0,x,void0)},o.prototype.toJSON=function(){vart={isFulfilled:!1,isRejected:!1,fulfillmentValue:void0,rejectionReason:void0};returnthis.isFulfilled()?(t.fulfillmentValue=this.value(),t.isFulfilled=!0):this.isRejected()&&(t.rejectionReason=this.reason(),t.isRejected=!0),t},o.prototype.all=function(){returnarguments.length>0&&this._warn(".all() was passed arguments but it does not take any"),newP(this).promise()},o.prototype.error=function(t){returnthis.caught(f.originatesFromRejection,t)},o.getNewLibraryCopy=e.exports,o.is=function(t){returntinstanceofo},o.fromNode=o.fromCallback=function(t){vare=newo(T);e._captureStackTrace();varn=arguments.length>1?!!Object(arguments[1]).multiArgs:!1,r=U(t)(L(e,n));returnr===B&&e._rejectCallback(r.e,!0),e._isFateSealed()||e._setAsyncGuaranteed(),e},o.all=function(t){returnnewP(t).promise()},o.cast=function(t){vare=S(t);returneinstanceofo||(e=newo(T),e._captureStackTrace(),e._setFulfilled(),e._rejectionHandler0=t),e},o.resolve=o.fulfilled=o.cast,o.reject=o.rejected=function(t){vare=newo(T);returne._captureStackTrace(),e._rejectCallback(t,!0),e},o.setScheduler=function(t){if("function"!=typeoft)thrownewj("expecting a function but got "+f.classString(t));returnk.setScheduler(t)},o.prototype._then=function(t,e,n,r,i){vara=void0!==i,s=a?i:newo(T),c=this._target(),l=c._bitField;a||(s._propagateFrom(this,3),s._captureStackTrace(),void0===r&&0!==(2097152&this._bitField)&&(r=0!==(50397184&l)?this._boundValue():c===this?void0:this._boundTo),this._fireEvent("promiseChained",this,s));varu=g();if(0!==(50397184&l)){varp,h,d=c._settlePromiseCtx;0!==(33554432&l)?(h=c._rejectionHandler0,p=t):0!==(16777216&l)?(h=c._fulfillmentHandler0,p=e,c._unsetRejectionIsUnhandled()):(d=c._settlePromiseLateCancellationObserver,h=newF("late cancellation observer"),c._attachExtraTrace(h),p=e),k.invoke(d,c,{handler:f.contextBind(u,p),promise:s,receiver:r,value:h})}elsec._addCallbacks(t,e,s,r,u);returns},o.prototype._length=function(){return65535&this._bitField},o.prototype._isFateSealed=function(){return0!==(117506048&this._bitField)},o.prototype._isFollowing=function(){return67108864===(67108864&this._bitField)},o.prototype._setLength=function(t){this._bitField=-65536&this._bitField|65535&t},o.prototype._setFulfilled=function(){this._bitField=33554432|this._bitField,this._fireEvent("promiseFulfilled",this)},o.prototype._setRejected=function(){this._bitField=16777216|this._bitField,this._fireEvent("promiseRejected",this)},o.prototype._setFollowing=function(){this._bitField=67108864|this._bitField,this._fireEvent("promiseResolved",this)},o.prototype._setIsFinal=function(){this._bitField=4194304|this._bitField},o.prototype._isFinal=function(){return(4194304&this._bitField)>0},o.prototype._unsetCancelled=function(){this._bitField=-65537&this._bitField},o.prototype._setCancelled=function(){this._bitField=65536|this._bitField,this._fireEvent("promiseCancelled",this)},o.prototype._setWillBeCancelled=function(){this._bitField=8388608|this._bitField},o.prototype._setAsyncGuaranteed=function(){if(!k.hasCustomScheduler()){vart=this._bitField;this._bitField=t|(53