!function(){functiona(a,b){returnfunction(){a.apply(b,arguments)}}functionb(b){if("object"!=typeofthis)thrownewTypeError("Promises must be constructed via new");if("function"!=typeofb)thrownewTypeError("not a function");this._state=null,this._value=null,this._deferreds=[],h(b,a(d,this),a(e,this))}functionc(a){varb=this;returnnull===this._state?voidthis._deferreds.push(a):voidj(function(){varc=b._state?a.onFulfilled:a.onRejected;if(null===c)returnvoid(b._state?a.resolve:a.reject)(b._value);vard;try{d=c(b._value)}catch(e){returnvoida.reject(e)}a.resolve(d)})}functiond(b){try{if(b===this)thrownewTypeError("A promise cannot be resolved with itself.");if(b&&("object"==typeofb||"function"==typeofb)){varc=b.then;if("function"==typeofc)returnvoidh(a(c,b),a(d,this),a(e,this))}this._state=!0,this._value=b,f.call(this)}catch(g){e.call(this,g)}}functione(a){this._state=!1,this._value=a,f.call(this)}functionf(){for(vara=0,b=this._deferreds.length;b>a;a++)c.call(this,this._deferreds[a]);this._deferreds=null}functiong(a,b,c,d){this.onFulfilled="function"==typeofa?a:null,this.onRejected="function"==typeofb?b:null,this.resolve=c,this.reject=d}functionh(a,b,c){vard=!1;try{a(function(a){d||(d=!0,b(a))},function(a){d||(d=!0,c(a))})}catch(e){if(d)return;d=!0,c(e)}}vari;i="object"==typeofwindow&&window?window:global;varj=b.immediateFn||i.setImmediate||function(a){setTimeout(a,1)},k=Array.isArray||function(a){return"[object Array]"===Object.prototype.toString.call(a)};b.prototype["catch"]=function(a){returnthis.then(null,a)},b.prototype.then=function(a,d){vare=this;returnnewb(function(b,f){c.call(e,newg(a,d,b,f))})},b.all=function(){vara=Array.prototype.slice.call(1===arguments.length&&k(arguments[0])?arguments[0]:arguments);returnnewb(function(b,c){functiond(f,g){try{if(g&&("object"==typeofg||"function"==typeofg)){varh=g.then;if("function"==typeofh)returnvoidh.call(g,function(a){d(f,a)},c)}a[f]=g,0===--e&&b(a)}catch(i){c(i)}}if(0===a.length)returnb([]);for(vare=a.length,f=0;f<a.length;f++)d(f,a[f])})},b.resolve=function(a){returna&&"object"==typeofa&&a.constructor===b?a:newb(function(b){b(a)})},b.reject=function(a){returnnewb(function(b,c){c(a)})},b.race=function(a){returnnewb(function(b,c){for(vard=0,e=a.length;e>d;d++)a[d].then(b,c)})},"undefined"!=typeofmodule&&module.exports?module.exports=b:i.Promise||(i.Promise=b)}();
\ No newline at end of file
/*! promise-polyfill 2.0.1 */
!function(){functiona(a,b){returnfunction(){a.apply(b,arguments)}}functionb(b){if("object"!=typeofthis)thrownewTypeError("Promises must be constructed via new");if("function"!=typeofb)thrownewTypeError("not a function");this._state=null,this._value=null,this._deferreds=[],h(b,a(d,this),a(e,this))}functionc(a){varb=this;returnnull===this._state?voidthis._deferreds.push(a):voidj(function(){varc=b._state?a.onFulfilled:a.onRejected;if(null===c)returnvoid(b._state?a.resolve:a.reject)(b._value);vard;try{d=c(b._value)}catch(e){returnvoida.reject(e)}a.resolve(d)})}functiond(b){try{if(b===this)thrownewTypeError("A promise cannot be resolved with itself.");if(b&&("object"==typeofb||"function"==typeofb)){varc=b.then;if("function"==typeofc)returnvoidh(a(c,b),a(d,this),a(e,this))}this._state=!0,this._value=b,f.call(this)}catch(g){e.call(this,g)}}functione(a){this._state=!1,this._value=a,f.call(this)}functionf(){for(vara=0,b=this._deferreds.length;b>a;a++)c.call(this,this._deferreds[a]);this._deferreds=null}functiong(a,b,c,d){this.onFulfilled="function"==typeofa?a:null,this.onRejected="function"==typeofb?b:null,this.resolve=c,this.reject=d}functionh(a,b,c){vard=!1;try{a(function(a){d||(d=!0,b(a))},function(a){d||(d=!0,c(a))})}catch(e){if(d)return;d=!0,c(e)}}vari;i="object"==typeofwindow&&window?window:"object"==typeofglobal&&global?global:{};varj=b.immediateFn||i.setImmediate||function(a){setTimeout(a,1)},k=Array.isArray||function(a){return"[object Array]"===Object.prototype.toString.call(a)};b.prototype["catch"]=function(a){returnthis.then(null,a)},b.prototype.then=function(a,d){vare=this;returnnewb(function(b,f){c.call(e,newg(a,d,b,f))})},b.all=function(){vara=Array.prototype.slice.call(1===arguments.length&&k(arguments[0])?arguments[0]:arguments);returnnewb(function(b,c){functiond(f,g){try{if(g&&("object"==typeofg||"function"==typeofg)){varh=g.then;if("function"==typeofh)returnvoidh.call(g,function(a){d(f,a)},c)}a[f]=g,0===--e&&b(a)}catch(i){c(i)}}if(0===a.length)returnb([]);for(vare=a.length,f=0;f<a.length;f++)d(f,a[f])})},b.resolve=function(a){returna&&"object"==typeofa&&a.constructor===b?a:newb(function(b){b(a)})},b.reject=function(a){returnnewb(function(b,c){c(a)})},b.race=function(a){returnnewb(function(b,c){for(vard=0,e=a.length;e>d;d++)a[d].then(b,c)})},"undefined"!=typeofmodule&&module.exports?module.exports=b:i.Promise||(i.Promise=b)}();