varo=i(r,this._promise);if(!(oinstanceofe)&&(o=a(o,this._yieldHandlers,this._promise),null===o))returnvoidthis._promiseRejected(newl("A value %s was yielded that could not be treated as a promise\n\n See http://goo.gl/MqrFmX\n\n".replace("%s",String(r))+"From coroutine:\n"+this._stack.split("\n").slice(1,-7).join("\n")));o=o._target();vars=o._bitField;0===(50397184&s)?(this._yieldedPromise=o,o._proxy(this,null)):0!==(33554432&s)?e._async.invoke(this._promiseFulfilled,this,o._value()):0!==(16777216&s)?e._async.invoke(this._promiseRejected,this,o._reason()):this._promiseCancelled()},e.coroutine=function(t,e){if("function"!=typeoft)thrownewl("generatorFunction must be a function\n\n See http://goo.gl/MqrFmX\n");varn=Object(e).yieldHandler,r=c,i=(newError).stack;returnfunction(){vare=t.apply(this,arguments),o=newr(void0,void0,n,i),s=o.promise();returno._generator=e,o._promiseFulfilled(void0),s}},e.coroutine.addYieldHandler=function(t){if("function"!=typeoft)thrownewl("expecting a function but got "+p.classString(t));_.push(t)},e.spawn=function(t){if(s.deprecated("Promise.spawn()","Promise.coroutine()"),"function"!=typeoft)returnn("generatorFunction must be a function\n\n See http://goo.gl/MqrFmX\n");varr=newc(t,this),i=r.promise();returnr._run(e.spawn),i}}},{"./errors":12,"./util":36}],17:[function(t,e,n){"use strict";e.exports=function(e,n,r,i,o){vars=t("./util");s.canEvaluate,s.tryCatch,s.errorObj;e.join=function(){vart,e=arguments.length-1;if(e>0&&"function"==typeofarguments[e]){t=arguments[e];varr}vari=[].slice.call(arguments);t&&i.pop();varr=newn(i).promise();returnvoid0!==t?r.spread(t):r}}},{"./util":36}],18:[function(t,e,n){"use strict";e.exports=function(e,n,r,i,o,s){functiona(t,n,r,i){this.constructor$(t),this._promise._captureStackTrace();vars=e._getContext();if(this._callback=u.contextBind(s,n),this._preservedValues=i===o?newArray(this.length()):null,this._limit=r,this._inFlight=0,this._queue=[],f.invoke(this._asyncInit,this,void0),u.isArray(t))for(vara=0;a<t.length;++a){varc=t[a];cinstanceofe&&c.suppressUnhandledRejections()}}functionc(t,n,i,o){if("function"!=typeofn)returnr("expecting a function but got "+u.classString(n));vars=0;if(void0!==i){if("object"!=typeofi||null===i)returne.reject(newTypeError("options argument must be an object but it is "+u.classString(i)));if("number"!=typeofi.concurrency)returne.reject(newTypeError("'concurrency' must be a number but it is "+u.classString(i.concurrency)));s=i.concurrency}returns="number"==typeofs&&isFinite(s)&&s>=1?s:0,newa(t,n,s,o).promise()}varu=t("./util"),l=u.tryCatch,p=u.errorObj,f=e._async;u.inherits(a,n),a.prototype._asyncInit=function(){this._init$(void0,-2)},a.prototype._init=function(){},a.prototype._promiseFulfilled=function(t,n){varr=this._values,o=this.length(),a=this._preservedValues,c=this._limit;if(0>n){if(n=-1*n-1,r[n]=t,c>=1&&(this._inFlight--,this._drainQueue(),this._isResolved()))return!0}else{if(c>=1&&this._inFlight>=c)returnr[n]=t,this._queue.push(n),!1;null!==a&&(a[n]=t);varu=this._promise,f=this._callback,h=u._boundValue();u._pushContext();var_=l(f).call(h,t,n,o),d=u._popContext();if(s.checkForgottenReturns(_,d,null!==a?"Promise.filter":"Promise.map",u),_===p)returnthis._reject(_.e),!0;varv=i(_,this._promise);if(vinstanceofe){v=v._target();vary=v._bitField;if(0===(50397184&y))returnc>=1&&this._inFlight++,r[n]=v,v._proxy(this,-1*(n+1)),!1;if(0===(33554432&y))return0!==(16777216&y)?(this._reject(v._reason()),!0):(this._cancel(),!0);_=v._value()}r[n]=_}varg=++this._totalResolved;returng>=o?(null!==a?this._filter(r,a):this._resolve(r),!0):!1},a.prototype._drainQueue=function(){for(vart=this._queue,e=this._limit,n=this._values;t.length>0&&this._inFlight<e;){if(this._isResolved())return;varr=t.pop();this._promiseFulfilled(n[r],r)}},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){return
varu=s.resolve();r=function(t){u.then(t)}}elser="undefined"!=typeofMutationObserver&&("undefined"==typeofwindow||!window.navigator||!window.navigator.standalone&&!window.cordova)&&"classList"indocument.documentElement?function(){vart=document.createElement("div"),e={attributes:!0},n=!1,r=document.createElement("div"),i=newMutationObserver(function(){t.classList.toggle("foo"),n=!1});i.observe(r,e);varo=function(){n||(n=!0,r.classList.toggle("foo"))};returnfunction(n){varr=newMutationObserver(function(){r.disconnect(),n()});r.observe(t,e),o()}}():"undefined"!=typeofsetImmediate?function(t){setImmediate(t)}:"undefined"!=typeofsetTimeout?function(t){setTimeout(t,0)}:o;e.exports=r},{"./util":36}],30:[function(t,e,n){"use strict";e.exports=function(e,n,r){functioni(t){this.constructor$(t)}varo=e.PromiseInspection,s=t("./util");s.inherits(i,n),i.prototype._promiseResolved=function(t,e){this._values[t]=e;varn=++this._totalResolved;returnn>=this._length?(this._resolve(this._values),!0):!1},i.prototype._promiseFulfilled=function(t,e){varn=newo;returnn._bitField=33554432,n._settledValueField=t,this._promiseResolved(e,n)},i.prototype._promiseRejected=function(t,e){varn=newo;returnn._bitField=16777216,n._settledValueField=t,this._promiseResolved(e,n)},e.settle=function(t){returnr.deprecated(".settle()",".reflect()"),newi(t).promise()},e.allSettled=function(t){returnnewi(t).promise()},e.prototype.settle=function(){returne.settle(this)}}},{"./util":36}],31:[function(t,e,n){"use strict";e.exports=function(e,n,r){functioni(t){this.constructor$(t),this._howMany=0,this._unwrap=!1,this._initialized=!1}functiono(t,e){if((0|e)!==e||0>e)returnr("expecting a positive integer\n\n See http://goo.gl/MqrFmX\n");varn=newi(t),o=n.promise();returnn.setHowMany(e),n.init(),o}vars=t("./util"),a=t("./errors").RangeError,c=t("./errors").AggregateError,u=s.isArray,l={};s.inherits(i,n),i.prototype._init=function(){if(this._initialized){if(0===this._howMany)returnvoidthis._resolve([]);this._init$(void0,-5);vart=u(this._values);!this._isResolved()&&t&&this._howMany>this._canPossiblyFulfill()&&this._reject(this._getRangeError(this.length()))}},i.prototype.init=function(){this._initialized=!0,this._init()},i.prototype.setUnwrap=function(){this._unwrap=!0},i.prototype.howMany=function(){returnthis._howMany},i.prototype.setHowMany=function(t){this._howMany=t},i.prototype._promiseFulfilled=function(t){returnthis._addFulfilled(t),this._fulfilled()===this.howMany()?(this._values.length=this.howMany(),1===this.howMany()&&this._unwrap?this._resolve(this._values[0]):this._resolve(this._values),!0):!1},i.prototype._promiseRejected=function(t){returnthis._addRejected(t),this._checkOutcome()},i.prototype._promiseCancelled=function(){returnthis._valuesinstanceofe||null==this._values?this._cancel():(this._addRejected(l),this._checkOutcome())},i.prototype._checkOutcome=function(){if(this.howMany()>this._canPossiblyFulfill()){for(vart=newc,e=this.length();e<this._values.length;++e)this._values[e]!==l&&t.push(this._values[e]);returnt.length>0?this._reject(t):this._cancel(),!0}return!1},i.prototype._fulfilled=function(){returnthis._totalResolved},i.prototype._rejected=function(){returnthis._values.length-this.length()},i.prototype._addRejected=function(t){this._values.push(t)},i.prototype._addFulfilled=function(t){this._values[this._totalResolved++]=t},i.prototype._canPossiblyFulfill=function(){returnthis.length()-this._rejected()},i.prototype._getRangeError=function(t){vare="Input array must contain at least "+this._howMany+" items but contains only "+t+" items";returnnewa(e)},i.prototype._resolveEmptyArray=function(){this._reject(this._getRangeError(0))},e.some=function(t,e){returno(t,e)},e.prototype.some=function(t){returno(this,t)},e._SomePromiseArray=i}},{"./errors":12,"./util":36}],32:[function(t,e,n){"use strict";e.exports=function(t){functione(t){void0!==t?(t=t._target(),this._bitField=t._bitField,this._settledValueField=t._isFateSealed()?t._settledValue():void0):(this._bitField=0,this._settledValueField=void