/* Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.*/(function(a){functionb(a){returna&&a.Object===Object?a:null}functionc(a){for(varb=a.length,c=newArray(b),d=0;b>d;d++)c[d]=a[d];returnc}functiond(a){returnfunction(){try{returna.apply(this,arguments)}catch(b){returnva.e=b,va}}}functione(a){throwa}functionf(a,b){if(xa&&b.stack&&"object"==typeofa&&null!==a&&a.stack&&-1===a.stack.indexOf(Ba)){for(varc=[],d=b;d;d=d.source)d.stack&&c.unshift(d.stack);c.unshift(a.stack);vare=c.join("\n"+Ba+"\n");a.stack=g(e)}}functiong(a){for(varb=a.split("\n"),c=[],d=0,e=b.length;e>d;d++){varf=b[d];h(f)||i(f)||!f||c.push(f)}returnc.join("\n")}functionh(a){varb=k(a);if(!b)return!1;varc=b[0],d=b[1];returnc===za&&d>=Aa&&qe>=d}functioni(a){return-1!==a.indexOf("(module.js:")||-1!==a.indexOf("(node.js:")}functionj(){if(xa)try{thrownewError}catch(a){varb=a.stack.split("\n"),c=b[0].indexOf("@")>0?b[1]:b[2],d=k(c);if(!d)return;returnza=d[0],d[1]}}functionk(a){varb=/at .+ \((.+):(\d+):(?:\d+)\)$/.exec(a);if(b)return[b[1],Number(b[2])];varc=/at ([^]+):(\d+):(?:\d+)$/.exec(a);if(c)return[c[1],Number(c[2])];vard=/.*@(.+):(\d+)$/.exec(a);returnd?[d[1],Number(d[2])]:void0}functionl(b,c,d,e,f,g){varh=ob(b),i=h.length,j=ob(c),k=j.length;if(i!==k&&!e)return!1;for(varl,m=i;m--;)if(l=h[m],!(e?linc:lb.call(c,l)))return!1;for(varn=e;++m<i;){l=h[m];varo,p=b[l],q=c[l];if(!(o===a?d(p,q,e,f,g):o))return!1;n||(n="constructor"===l)}if(!n){varr=b.constructor,s=c.constructor;if(r!==s&&"constructor"inb&&"constructor"inc&&!("function"==typeofr&&rinstanceofr&&"function"==typeofs&&sinstanceofs))return!1}return!0}functionm(a,b,c){switch(c){caseQa:caseRa:return+a===+b;caseSa:returna.name===b.name&&a.message===b.message;caseVa:returna!==+a?b!==+b:a===+b;caseXa:caseZa:returna===b+""}return!1}functionn(a){return!!a&&"object"==typeofa}functiono(a){return"number"==typeofa&&a>-1&&a%1===0&&nb>=a}functionp(a){returnn(a)&&o(a.length)&&!!jb[mb.call(a)]}functionq(a,b){for(varc=-1,d=a.length;++c<d;)if(b(a[c],c,a))return!0;return!1}functionr(b,c,d,e,f,g){varh=-1,i=b.length,j=c.length;if(i!==j&&!(e&&j>i))return!1;for(;++h<i;){vark,l=b[h],m=c[h];if(k!==a){if(k)continue;return!1}if(e){if(!q(c,function(a){returnl===a||d(l,a,e,f,g)}))return!1}elseif(l!==m&&!d(l,m,e,f,g))return!1}return!0}functions(a,b,c,d,e,f){varg=rb(a),h=rb(b),i=Pa,j=Pa;g||(i=mb.call(a),i===Oa?i=Wa:i!==Wa&&(g=p(a))),h||(j=mb.call(b),j===Oa&&(j=Wa));vark=i===Wa&&!qb(a),n=j===Wa&&!qb(b),o=i===j;if(o&&!g&&!k)returnm(a,b,i);if(!d){varq=k&&lb.call(a,"__wrapped__"),s=n&&lb.call(b,"__wrapped__");if(q||s)returnc(q?a.value():a,s?b.value():b,d,e,f)}if(!o)return!1;e||(e=[]),f||(f=[]);for(vart=e.length;t--;)if(e[t]===a)returnf[t]===b;e.push(a),f.push(b);varu=(g?r:l)(a,b,c,d,e,f);returne.pop(),f.pop(),u}functiont(a,b,c,d,e){returna===b?!0:null==a||null==b||!pb(a)&&!n(b)?a!==a&&b!==b:s(a,b,t,c,d,e)}functionu(a,b){for(varc=newArray(a),d=0;a>d;d++)c[d]=b();returnc}functionv(a,b){this.id=a,this.value=b}functionw(a){this._s=a,this.isDisposed=!1}functionx(a){this._s=a}functiony(a){this._s=a,this._l=a.length,this._i=0}functionz(a){this._a=a}functionA(a){this._a=a,this._l=E(a),this._i=0}functionB(a){return"number"==typeofa&&la.isFinite(a)}functionC(b){varc,d=b[Ia];if(!d&&"string"==typeofb)returnc=newx(b),c[Ia]();if(!d&&b.length!==a)returnc=newz(b),c[Ia]();if(!d)thrownewTypeError("Object is not iterable");returnb[Ia]()}functionD(a){varb=+a;return0===b?b:isNaN(b)?b:0>b?-1:1}functionE(a){varb=+a.length;returnisNaN(b)?0:0!==b&&B(b)?(b=D(b)*Math.floor(Math.abs(b)),0>=b?0:b>Ac?Ac:b):b}functionF(a,b){returnKb(a)||(a=Qb),newCc(b,a)}functionG(a,b){this.observer=a,this.parent=b}functionH(){return!1}functionI(){for(vara=arguments.length,b=newArray(a),c=0;a>c;c++)b[c]=arguments[c];returnb}functionH(){return!1}functionI(){for(vara=arguments.length,b=newArray(a),c=0;a>c;c++)b[c]=arguments[c];returnb}functionH(){return!1}functionJ(){return[]}functionH(){return!1}functionJ(){return[]}functionI(){for(vara=arguments.length,b=newArray(a),c=0;a>c;c++)b[c]=arguments[c];returnb}functionK(a){returnfunction(b){returna.subscribe(b)}}functionL(a){return{"@@iterator":function(){return{next:function(){return{done:!1,value:a}}}}}}functionL(a){return{"@@iterator":function(){return{next:function(){return{done:!1,value:a}}}}}}functionM(b,c){returnfunction(d){for(vare=d,f=0;c>f;f++){varg=e[b[f]];if("undefined"==typeofg)returna;e=g}returne}}functionN(a,b,c,d){vare=newme;returnd.push(O(e,b,c)),a.apply(b,d),e.asObservable()}functionO(a,b,c){returnfunction(){for(vard=arguments.length,e=newArray(d),f=0;d>f;f++)e[f]=arguments[f];if(ua(c)){if(e=wa(c).apply(b,e),e===va)returna.onError(e.e);a.onNext(e)}elsee.length<=1?a.onNext(e[0]):a.onNext(e);a.onCompleted()}}functionP(a,b,c,d){vare=newme;returnd.push(Q(e,b,c)),a.apply(b,d),e.asObservable()}functionQ(a,b,c){returnfunction(){vard=arguments[0];if(d)returna.onError(d);for(vare=arguments.length,f=[],g=1;e>g;g++)f[g-1]=arguments[g];if(ua(c)){varf=wa(c).apply(b,f);if(f===va)returna.onError(f.e);a.onNext(f)}elsef.length<=1?a.onNext(f[0]):a.onNext(f);a.onCompleted()}}functionR(a){returnla.StaticNodeList?ainstanceofla.StaticNodeList||ainstanceofla.NodeList:"[object NodeList]"===Object.prototype.toString.call(a)}functionS(a,b,c){this._e=a,this._n=b,this._fn=c,this._e.addEventListener(this._n,this._fn,!1),this.isDisposed=!1}functionT(a,b,c){vard=newvb,e=Object.prototype.toString.call(a);if(R(a)||"[object HTMLCollection]"===e)for(varf=0,g=a.length;g>f;f++)d.add(T(a.item(f),b,c));elsea&&d.add(newS(a,b,c));returnd}functionU(a,b){returnnewVd(a,b)}functionV(a,b,c){returnnewie(function(d){vare=a,f=Jb(b);returnc.scheduleRecursiveFuture(0,e,function(a,b){if(f>0){varg=c.now();e=newDate(e.getTime()+f),e.getTime()<=g&&(e=newDate(g+f))}d.onNext(a),b(a+1,newDate(e))})})}functionW(a,b,c){returna===b?newie(function(a){returnc.schedulePeriodic(0,b,function(b){returna.onNext(b),b+1})}):vc(function(){returnV(newDate(c.now()+a),b,c)})}functionX(a,b,c){returnnewie(function(d){vare,f=!1,g=newEb,h=null,i=[],j=!1;returne=a.materialize().timestamp(c).subscribe(function(a){vare,k;"E"===a.value.kind?(i=[],i.push(a),h=a.value.error,k=!j):(i.push({value:a.value,timestamp:a.timestamp+b}),k=!f,f=!0),k&&(null!==h?d.onError(h):(e=newDb,g.setDisposable(e),e.setDisposable(c.scheduleRecursiveFuture(null,b,function(a,b){vare,g,k,l;if(null===h){j=!0;dok=null,i.length>0&&i[0].timestamp-c.now()<=0&&(k=i.shift().value),null!==k&&k.accept(d);while(null!==k);l=!1,g=0,i.length>0?(l=!0,g=Math.max(0,i[0].timestamp-c.now())):f=!1,e=h,j=!1,null!==e?d.onError(e):l&&b(null,g)}}))))}),newFb(e,g)},a)}functionY(a,b,c){returnvc(function(){returnX(a,b-c.now(),c)})}functionZ(a,b,c){vard,e;returnua(b)?e=b:(d=b,e=c),newie(function(b){functionc(){i.setDisposable(a.subscribe(function(a){varc=wa(e)(a);if(c===va)returnb.onError(c.e);vard=newDb;g.add(d),d.setDisposable(c.subscribe(function(){b.onNext(a),g.remove(d),f()},function(a){b.onError(a)},function(){b.onNext(a),g.remove(d),f()}))},function(a){b.onError(a)},function(){h=!0,i.dispose(),f()}))}functionf(){h&&0===g.length&&b.onCompleted()}varg=newvb,h=!1,i=newEb;returnd?i.setDisposable(d.subscribe(c,function(a){b.onError(a)},c)):c(),newFb(i,g)},a)}function$(a,b){returnnewie(function(c){vard,e=!1,f=newEb,g=0,h=a.subscribe(function(a){varh=wa(b)(a);if(h===va)returnc.onError(h.e);ta(h)&&(h=Rd(h)),e=!0,d=a,g++;vari=g,j=newDb;f.setDisposable(j),j.setDisposable(h.subscribe(function(){e&&g===i&&c.onNext(d),e=!1,j.dispose()},function(a){c.onError(a)},function(){e&&g===i&&c.onNext(d),e=!1,j.dispose()}))},function(a){f.dispose(),c.onError(a),e=!1,g++},function(){f.dispose(),e&&c.onNext(d),c.onCompleted(),e=!1,g++});returnnewFb(h,f)},a)}function_(a,b,c,d){returnua(b)&&(d=c,c=b,b=Gc()),ic.isObservable(d)||(d=Mc(newce)),newie(function(e){functionf(a){functionb(){returnl=c===k}varc=k,f=newDb;i.setDisposable(f),f.setDisposable(a.subscribe(function(){b()&&h.setDisposable(d.subscribe(e)),f.dispose()},function(a){b()&&e.onError(a)},function(){b()&&h.setDisposable(d.subscribe(e))}))}functiong(){vara=!l;returna&&k++,a}varh=newEb,i=newEb,j=newDb;h.setDisposable(j);vark=0,l=!1;returnf(b),j.setDisposable(a.subscribe(function(a){if(g()){e.onNext(a);varb=wa(c)(a);if(b===va)returne.onError(b.e);f(ta(b)?Rd(b):b)}},function(a){g()&&e.onError(a)},function(){g()&&e.onCompleted()})),newFb(h,i)},a)}functionaa(a,b,c,d){returnKb(c)&&(d=c,c=Mc(newce)),cinstanceofError&&(c=Mc(c)),Kb(d)||(d=Vb),ic.isObservable(c)||(c=Mc(newce)),newie(function(e){functionf(){vara=g;k.setDisposable(d.scheduleFuture(null,b,function(){j=g===a,j&&(ta(c)&&(c=Rd(c)),i.setDisposable(c.subscribe(e)))}))}varg=0,h=newDb,i=newEb,j=!1,k=newEb;returni.setDisposable(h),f(),h.setDisposable(a.subscribe(function(a){j||(g++,e.onNext(a),f())},function(a){j||(g++,e.onError(a))},function(){j||(g++,e.onCompleted())})),newFb(i,k)},a)}functionba(a,b,c){returnnewie(function(d){functione(a,b){if(j[b]=a,g[b]=!0,h||(h=g.every(oa))){if(f)returnd.onError(f);vare=wa(c).apply(null,j);if(e===va)returnd.onError(e.e);d.onNext(e)}i&&j[1]&&d.onCompleted()}varf,g=[!1,!1],h=!1,i=!1,j=newArray(2);returnnewFb(a.subscribe(function(a){e(a,0)},function(a){j[1]?d.onError(a):f=a},function(){i=!0,j[1]&&d.onCompleted()}),b.subscribe(function(a){e(a,1)},function(a){d.onError(a)},function(){i=!0,e(!0,1)}))},a)}functionca(a){return{"@@transducer/init":function(){returna},"@@transducer/step":function(a,b){returna.onNext(b)},"@@transducer/result":function(a){returna.onCompleted()}}}varda={"function":!0,object:!0},ea=da[typeofexports]&&exports&&!exports.nodeType?exports:null,fa=da[typeofmodule]&&module&&!module.nodeType?module:null,ga=b(ea&&fa&&"object"==typeofglobal&&global),ha=b(da[typeofself]&&self),ia=b(da[typeofwindow]&&window),ja=fa&&fa.exports===ea?ea:null,ka=b(da[typeofthis]&&this),la=ga||ia!==(ka&&ka.window)&&ia||ha||ka||Function("return this")(),ma={internals:{},config:{Promise:la.Promise},helpers:{}},na=ma.helpers.noop=function(){},oa=ma.helpers.identity=function(a){returna},pa=ma.helpers.defaultNow=Date.now,qa=ma.helpers.defaultComparer=function(a,b){returnsb(a,b)},ra=ma.helpers.defaultSubComparer=function(a,b){returna>b?1:b>a?-1:0},sa=(ma.helpers.defaultKeySerializer=function(a){returna.toString()},ma.helpers.defaultError=function(a){throwa}),ta=ma.helpers.isPromise=function(a){return!!a&&"function"!=typeofa.subscribe&&"function"==typeofa.then},ua=ma.helpers.isFunction=function(){vara=function(a){return"function"==typeofa||!1};returna(/x/)&&(a=function(a){return"function"==typeofa&&"[object Function]"==toString.call(a)}),a}(),va={e:{}},wa=ma.internals.tryCatch=function(a){if(!ua(a))thrownewTypeError("fn must be a function");returnd(a)};ma.config.longStackSupport=!1;varxa=!1,ya=wa(function(){thrownewError})();xa=!!ya.e&&!!ya.e.stack;varza,Aa=j(),Ba="From previous event:",Ca=ma.EmptyError=function(){this.message="Sequence contains no elements.",Error.call(this)};Ca.prototype=Object.create(Error.prototype),Ca.prototype.name="EmptyError";varDa=ma.ObjectDisposedError=function(){this.message="Object has been disposed",Error.call(this)};Da.prototype=Object.create(Error.prototype),Da.prototype.name="ObjectDisposedError";varEa=ma.ArgumentOutOfRangeError=function(){this.message="Argument out of range",Error.call(this)};Ea.prototype=Object.create(Error.prototype),Ea.prototype.name="ArgumentOutOfRangeError";varFa=ma.NotSupportedError=function(a){this.message=a||"This operation is not supported",Error.call(this)};Fa.prototype=Object.create(Error.prototype),Fa.prototype.name="NotSupportedError";varGa=ma.NotImplementedError=function(a){this.message=a||"This operation is not implemented",Error.call(this)};Ga.prototype=Object.create(Error.prototype),Ga.prototype.name="NotImplementedError";varHa=ma.helpers.notImplemented=function(){thrownewGa},Ia=(ma.helpers.notSupported=function(){thrownewFa},"function"==typeofSymbol&&Symbol.iterator||"_es6shim_iterator_");la.Set&&"function"==typeof(newla.Set)["@@iterator"]&&(Ia="@@iterator");varJa=ma.doneEnumerator={done:!0,value:a},Ka=ma.helpers.isIterable=function(b){returnb&&b[Ia]!==a},La=ma.helpers.isArrayLike=function(b){returnb&&b.length!==a};ma.helpers.iterator=Ia;varMa=ma.internals.bindCallback=function(a,b,c){if("undefined"==typeofb)returna;switch(c){case0:returnfunction(){returna.call(b)};case1:returnfunction(c){returna.call(b,c)};case2:returnfunction(c,d){returna.call(b,c,d)};case3:returnfunction(c,d,e){returna.call(b,c,d,e)}}returnfunction(){returna.apply(b,arguments)}},Na=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],Oa=(Na.length,"[object Arguments]"),Pa="[object Array]",Qa="[object Boolean]",Ra="[object Date]",Sa="[object Error]",Ta="[object Function]",Ua="[object Map]",Va="[object Number]",Wa="[object Object]",Xa="[object RegExp]",Ya="[object Set]",Za="[object String]",$a="[object WeakMap]",_a="[object ArrayBuffer]",ab="[object Float32Array]",bb="[object Float64Array]",cb="[object Int8Array]",db="[object Int16Array]",eb="[object Int32Array]",fb="[object Uint8Array]",gb="[object Uint8ClampedArray]",hb="[object Uint16Array]",ib="[object Uint32Array]",jb={};jb[ab]=jb[bb]=jb[cb]=jb[db]=jb[eb]=jb[fb]=jb[gb]=jb[hb]=jb[ib]=!0,jb[Oa]=jb[Pa]=jb[_a]=jb[Qa]=jb[Ra]=jb[Sa]=jb[Ta]=jb[Ua]=jb[Va]=jb[Wa]=jb[Xa]=jb[Ya]=jb[Za]=jb[$a]=!1;varkb=Object.prototype,lb=kb.hasOwnProperty,mb=kb.toString,nb=Math.pow(2,53)-1,ob=Object.keys||function(){vara=Object.prototype.hasOwnProperty,b=!{toString:null}.propertyIsEnumerable("toString"),c=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],d=c.length;returnfunction(e){if("object"!=typeofe&&("function"!=typeofe||null===e))thrownewTypeError("Object.keys called on non-object");varf,g,h=[];for(fine)a.call(e,f)&&h.push(f);if(b)for(g=0;d>g;g++)a.call(e,c[g])&&h.push(c[g]);returnh}}(),pb=ma.internals.isObject=function(a){varb=typeofa;return!!a&&("object"===b||"function"===b)},qb=function(){try{Object({toString:0}+"")}catch(a){returnfunction(){return!1}}returnfunction(a){return"function"!=typeofa.toString&&"string"==typeof(a+"")}}(),rb=Array.isArray||function(a){returnn(a)&&o(a.length)&&mb.call(a)===Pa},sb=ma.internals.isEqual=function(a,b){returnt(a,b)},tb=({}.hasOwnProperty,Array.prototype.slice,ma.internals.inherits=function(a,b){functionc(){this.constructor=a}c.prototype=b.prototype,a.prototype=newc}),ub=ma.internals.addProperties=function(a){for(varb=[],c=1,d=arguments.length;d>c;c++)b.push(arguments[c]);for(vare=0,f=b.length;f>e;e++){varg=b[e];for(varhing)a[h]=g[h]}},vb=(ma.internals.addRef=function(a,b){returnnewie(function(c){returnnewFb(b.getDisposable(),a.subscribe(c))})},ma.CompositeDisposable=function(){vara,b,c=[];if(Array.isArray(arguments[0]))c=arguments[0];elsefor(b=arguments.length,c=newArray(b),a=0;b>a;a++)c[a]=arguments[a];this.disposables=c,this.isDisposed=!1,this.length=c.length}),wb=vb.prototype;wb.add=function(a){this.isDisposed?a.dispose():(this.disposables.push(a),this.length++)},wb.remove=function(a){varb=!1;if(!this.isDisposed){varc=this.disposables.indexOf(a);-1!==c&&(b=!0,this.disposables.splice(c,1),this.length--,a.dispose())}returnb},wb.dispose=function(){if(!this.isDisposed){this.isDisposed=!0;for(vara=this.disposables.length,b=newArray(a),c=0;a>c;c++)b[c]=this.disposables[c];for(this.disposables=[],this.length=0,c=0;a>c;c++)b[c].dispose()}};varxb=ma.Disposable=function(a){this.isDisposed=!1,this.action=a||na};xb.prototype.dispose=function(){this.isDisposed||(this.action(),this.isDisposed=!0)};varyb=xb.create=function(a){returnnewxb(a)},zb=xb.empty={dispose:na},Ab=xb.isDisposable=function(a){returna&&ua(a.dispose)},Bb=xb.checkDisposed=function(a){if(a.isDisposed)thrownewDa},Cb=xb._fixup=function(a){returnAb(a)?a:zb},Db=ma.SingleAssignmentDisposable=function(){this.isDisposed=!1,this.current=null};Db.prototype.getDisposable=function(){returnthis.current},Db.prototype.setDisposable=function(a){if(this.current)thrownewError("Disposable has already been assigned");varb=this.isDisposed;!b&&(this.current=a),b&&a&&a.dispose()},Db.prototype.dispose=function(){if(!this.isDisposed){this.isDisposed=!0;vara=this.current;this.current=null,a&&a.dispose()}};varEb=ma.SerialDisposable=function(){this.isDisposed=!1,this.current=null};Eb.prototype.getDisposable=function(){returnthis.current},Eb.prototype.setDisposable=function(a){varb=this.isDisposed;if(!b){varc=this.current;this.current=a}c&&c.dispose(),b&&a&&a.dispose()},Eb.prototype.dispose=function(){if(!this.isDisposed){this.isDisposed=!0;vara=this.current;this.current=null}a&&a.dispose()};varFb=ma.BinaryDisposable=function(a,b){this._first=a,this._second=b,this.isDisposed=!1};Fb.prototype.dispose=function(){if(!this.isDisposed){this.isDisposed=!0;vara=this._first;this._first=null,a&&a.dispose();varb=this._second;this._second=null,b&&b.dispose()}};varGb=ma.NAryDisposable=function(a){this._disposables=a,this.isDisposed=!1};Gb.prototype.dispose=function(){if(!this.isDisposed){this.isDisposed=!0;for(vara=0,b=this._disposables.length;b>a;a++)this._disposables[a].dispose();this._disposables.length=0}};varHb=(ma.RefCountDisposable=function(){functiona(a){this.disposable=a,this.disposable.count++,this.isInnerDisposed=!1}functionb(a){this.underlyingDisposable=a,this.isDisposed=!1,this.isPrimaryDisposed=!1,this.count=0}returna.prototype.dispose=function(){this.disposable.isDisposed||this.isInnerDisposed||(this.isInnerDisposed=!0,this.disposable.count--,0===this.disposable.count&&this.disposable.isPrimaryDisposed&&(this.disposable.isDisposed=!0,this.disposable.underlyingDisposable.dispose()))},b.prototype.dispose=function(){this.isDisposed||this.isPrimaryDisposed||(this.isPrimaryDisposed=!0,0===this.count&&(this.isDisposed=!0,this.underlyingDisposable.dispose()))},b.prototype.getDisposable=function(){returnthis.isDisposed?zb:newa(this)},b}(),ma.internals.ScheduledItem=function(a,b,c,d,e){this.scheduler=a,this.state=b,this.action=c,this.dueTime=d,this.comparer=e||ra,this.disposable=newDb});Hb.prototype.invoke=function(){this.disposable.setDisposable(this.invokeCore())},Hb.prototype.compareTo=function(a){returnthis.comparer(this.dueTime,a.dueTime)},Hb.prototype.isCancelled=function(){returnthis.disposable.isDisposed},Hb.prototype.invokeCore=function(){returnCb(this.action(this.scheduler,this.state))};varIb=ma.Scheduler=function(){functiona(){}a.isScheduler=function(b){returnbinstanceofa};varb=a.prototype;returnb.schedule=function(a,b){thrownewGa},b.scheduleFuture=function(b,c,d){vare=c;returneinstanceofDate&&(e-=this.now()),e=a.normalize(e),0===e?this.schedule(b,d):this._scheduleFuture(b,e,d)},b._scheduleFuture=function(a,b,c){thrownewGa},a.now=pa,a.prototype.now=pa,a.normalize=function(a){return0>a&&(a=0),a},a}(),Jb=Ib.normalize,Kb=Ib.isScheduler;!function(a){functionb(a,b){functionc(b){functiond(a,b){returng?f.remove(i):h=!0,e(b,c),zb}varg=!1,h=!1,i=a.schedule(b,d);h||(f.add(i),g=!0)}vard=b[0],e=b[1],f=newvb;returne(d,c),f}functionc(a,b){functionc(b,d){functiong(a,b){returnh?f.remove(j):i=!0,e(b,c),zb}varh=!1,i=!1,j=a.scheduleFuture(b,d,g);i||(f.add(j),h=!0)}vard=b[0],e=b[1],f=newvb;returne(d,c),f}a.scheduleRecursive=function(a,c){returnthis.schedule([a,c],b)},a.scheduleRecursiveFuture=function(a,b,d){returnthis.scheduleFuture([a,d],b,c)}}(Ib.prototype),function(a){a.schedulePeriodic=function(a,b,c){if("undefined"==typeofla.setInterval)thrownewFa;b=Jb(b);vard=a,e=la.setInterval(function(){d=c(d)},b);returnyb(function(){la.clearInterval(e)})}}(Ib.prototype);varLb,Mb,Nb=function(a){functionb(){a.call(this)}returntb(b,a),b.prototype.schedule=function(a,b){returnCb(b(this,a))},b}(Ib),Ob=Ib.immediate=newNb,Pb=function(a){functionb(){for(;d.length>0;){vara=d.dequeue();!a.isCancelled()&&a.invoke()}}functionc(){a.call(this)}vard;returntb(c,a),c.prototype.schedule=function(a,c){varf=newHb(this,a,c,this.now());if(d)d.enqueue(f);else{d=newWb(4),d.enqueue(f);varg=wa(b)();d=null,g===va&&e(g.e)}returnf.disposable},c.prototype.scheduleRequired=function(){return!d},c}(Ib),Qb=Ib.currentThread=newPb,Rb=(ma.internals.SchedulePeriodicRecursive=function(){functiona(a){returnfunction(b,c){c(0,a._period);vard=wa(a._action)(a._state);d===va&&(a._cancel.dispose(),e(d.e)),a._state=d}}functionb(a,b,c,d){this._scheduler=a,this._state=b,this._period=c,this._action=d}returnb.prototype.start=function(){varb=newDb;returnthis._cancel=b,b.setDisposable(this._scheduler.scheduleRecursiveFuture(0,this._period,a(this))),b},b}(),function(){vara,b=na;if(la.setTimeout)a=la.setTimeout,b=la.clearTimeout;else{if(!la.WScript)thrownewFa;a=function(a,b){la.WScript.Sleep(b),a()}}return{setTimeout:a,clearTimeout:b}}()),Sb=Rb.setTimeout,Tb=Rb.clearTimeout;!function(){functiona(b){if(f)Sb(function(){a(b)},0);else{varc=d[b];if(c){f=!0;varg=wa(c)();Mb(b),f=!1,g===va&&e(g.e)}}}functionb(){if(!la.postMessage||la.importScripts)return!1;vara=!1,b=la.onmessage;returnla.onmessage=function(){a=!0},la.postMessage("","*"),la.onmessage=b,a}varc=1,d={},f=!1;Mb=function(a){deleted[a]};varg=newRegExp("^"+String(toString).replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/toString| for [^\]]+/g,".*?")+"$"),h="function"==typeof(h=ga&&ja&&ga.setImmediate)&&!g.test(h)&&h;if(ua(h))Lb=function(b){vare=c++;returnd[e]=b,h(function(){a(e)}),e};elseif("undefined"!=typeofprocess&&"[object process]"==={}.toString.call(process))Lb=function(b){vare=c++;returnd[e]=b,process.nextTick(function(){a(e)}),e};elseif(b()){vari="ms.rx.schedule"+Math.random(),j=function(b){"string"==typeofb.data&&b.data.substring(0,i.length)===i&&a(b.data.substring(i.length))};la.addEventListener("message",j,!1),Lb=function(a){varb=c++;returnd[b]=a,la.postMessage(i+b,"*"),b}}elseif(la.MessageChannel){vark=newla.MessageChannel;k.port1.onmessage=function(b){a(b.data)},Lb=function(a){varb=c++;returnd[b]=a,k.port2.postMessage(b),b}}elseLb="document"inla&&"onreadystatechange"inla.document.createElement("script")?function(b){vare=la.document.createElement("script"),f=c++;returnd[f]=b,e.onreadystatechange=function(){a(f),e.onreadystatechange=null,e.parentNode.removeChild(e),e=null},la.document.documentElement.appendChild(e),f}:function(b){vare=c++;returnd[e]=b,Sb(function(){a(e)},0),e}}();varUb=function(a){functionb(){a.call(this)}functionc(a,b,c,d){returnfunction(){a.setDisposable(xb._fixup(b(c,d)))}}functiond(a){this._id=a,this.isDisposed=!1}functione(a){this._id=a,this.isDisposed=!1}returntb(b,a),d.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,Mb(this._id))},e.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,Tb(this._id))},b.prototype.schedule=function(a,b){vare=newDb,f=Lb(c(e,b,this,a));returnnewFb(e,newd(f))},b.prototype._scheduleFuture=function(a,b,d){if(0===b)returnthis.schedule(a,d);varf=newDb,g=Sb(c(f,d,this,a),b);returnnewFb(f,newe(g))},b}(Ib),Vb=Ib["default"]=Ib.async=newUb;v.prototype.compareTo=function(a){varb=this.value.compareTo(a.value);return0===b&&(b=this.id-a.id),b};varWb=ma.internals.PriorityQueue=function(a){this.items=newArray(a),this.length=0},Xb=Wb.prototype;Xb.isHigherPriority=function(a,b){returnthis.items[a].compareTo(this.items[b])<0},Xb.percolate=function(a){if(!(a>=this.length||0>a)){varb=a-1>>1;if(!(0>b||b===a)&&this.isHigherPriority(a,b)){varc=this.items[a];this.items[a]=this.items[b],this.items[b]=c,this.percolate(b)}}},Xb.heapify=function(a){if(+a||(a=0),!(a>=this.length||0>a)){varb=2*a+1,c=2*a+2,d=a;if(b<this.length&&this.isHigherPriority(b,d)&&(d=b),c<this.length&&this.isHigherPriority(c,d)&&(d=c),d!==a){vare=this.items[a];this.items[a]=this.items[d],this.items[d]=e,this.heapify(d)}}},Xb.peek=function(){returnthis.items[0].value},Xb.removeAt=function(b){this.items[b]=this.items[--this.length],this.items[this.length]=a,this.heapify()},Xb.dequeue=function(){vara=this.peek();returnthis.removeAt(0),a},Xb.enqueue=function(a){varb=this.length++;this.items[b]=newv(Wb.count++,a),this.percolate(b)},Xb.remove=function(a){for(varb=0;b<this.length;b++)if(this.items[b].value===a)returnthis.removeAt(b),!0;return!1},Wb.count=0;varYb,Zb=ma.Notification=function(){functiona(){}returna.prototype._accept=function(a,b,c){thrownewGa},a.prototype._acceptObserver=function(a,b,c){thrownewGa},a.prototype.accept=function(a,b,c){returna&&"object"==typeofa?this._acceptObserver(a):this._accept(a,b,c)},a.prototype.toObservable=function(a){varb=this;returnKb(a)||(a=Ob),newie(function(c){returna.schedule(b,function(a,b){b._acceptObserver(c),"N"===b.kind&&c.onCompleted()})})},a}(),$b=function(a){functionb(a){this.value=a,this.kind="N"}returntb(b,a),b.prototype._accept=function(a){returna(this.value)},b.prototype._acceptObserver=function(a){returna.onNext(this.value)},b.prototype.toString=function(){return"OnNext("+this.value+")"},b}(Zb),_b=function(a){functionb(a){this.error=a,this.kind="E"}returntb(b,a),b.prototype._accept=function(a,b){returnb(this.error)},b.prototype._acceptObserver=function(a){returna.onError(this.error)},b.prototype.toString=function(){return"OnError("+this.error+")"},b}(Zb),ac=function(a){functionb(){this.kind="C"}returntb(b,a),b.prototype._accept=function(a,b,c){returnc()},b.prototype._acceptObserver=function(a){returna.onCompleted()},b.prototype.toString=function(){return"OnCompleted()"},b}(Zb),bc=Zb.createOnNext=function(a){returnnew$b(a)},cc=Zb.createOnError=function(a){returnnew_b(a)},dc=Zb.createOnCompleted=function(){returnnewac},ec=ma.Observer=function(){},fc=ec.create=function(a,b,c){returna||(a=na),b||(b=sa),c||(c=na),newhc(a,b,c)},gc=ma.internals.AbstractObserver=function(a){functionb(){this.isStopped=!1}returntb(b,a),b.prototype.next=Ha,b.prototype.error=Ha,b.prototype.completed=Ha,b.prototype.onNext=function(a){!this.isStopped&&this.next(a)},b.prototype.onError=function(a){this.isStopped||(this.isStopped=!0,this.error(a))},b.prototype.onCompleted=function(){this.isStopped||(this.isStopped=!0,this.completed())},b.prototype.dispose=function(){this.isStopped=!0},b.prototype.fail=function(a){returnthis.isStopped?!1:(this.isStopped=!0,this.error(a),!0)},b}(ec),hc=ma.AnonymousObserver=function(a){functionb(b,c,d){a.call(this),this._onNext=b,this._onError=c,this._onCompleted=d}returntb(b,a),b.prototype.next=function(a){this._onNext(a)},b.prototype.error=function(a){this._onError(a)},b.prototype.completed=function(){this._onCompleted()},b}(gc),ic=ma.Observable=function(){functiona(a,b){returnfunction(c){vard=c.onError;returnc.onError=function(b){f(b,a),d.call(c,b)},b.call(a,c)}}functionb(){if(ma.config.longStackSupport&&xa){varb=this._subscribe,c=wa(e)(newError).e;this.stack=c.stack.substring(c.stack.indexOf("\n")+1),this._subscribe=a(this,b)}}returnYb=b.prototype,b.isObservable=function(a){returna&&ua(a.subscribe)},Yb.subscribe=Yb.forEach=function(a,b,c){returnthis._subscribe("object"==typeofa?a:fc(a,b,c))},Yb.subscribeOnNext=function(a,b){returnthis._subscribe(fc("undefined"!=typeofb?function(c){a.call(b,c)}:a))},Yb.subscribeOnError=function(a,b){returnthis._subscribe(fc(null,"undefined"!=typeofb?function(c){a.call(b,c)}:a))},Yb.subscribeOnCompleted=function(a,b){returnthis._subscribe(fc(null,null,"undefined"!=typeofb?function(){a.call(b)}:a))},b}(),jc=ma.internals.ScheduledObserver=function(a){functionb(b,c){a.call(this),this.scheduler=b,this.observer=c,this.isAcquired=!1,this.hasFaulted=!1,this.queue=[],this.disposable=newEb}functionc(a,b){returnfunction(){a.onNext(b)}}functiond(a,b){returnfunction(){a.onError(b)}}functionf(a){returnfunction(){a.onCompleted()}}functiong(a,b){varc;if(!(a.queue.length>0))returnvoid(a.isAcquired=!1);c=a.queue.shift();vard=wa(c)();returnd===va?(a.queue=[],a.hasFaulted=!0,e(d.e)):voidb(a)}returntb(b,a),b.prototype.next=function(a){this.queue.push(c(this.observer,a))},b.prototype.error=function(a){this.queue.push(d(this.observer,a))},b.prototype.completed=function(){this.queue.push(f(this.observer))},b.prototype.ensureActive=function(){vara=!1;!this.hasFaulted&&this.queue.length>0&&(a=!this.isAcquired,this.isAcquired=!0),a&&this.disposable.setDisposable(this.scheduler.scheduleRecursive(this,g))},b.prototype.dispose=function(){a.prototype.dispose.call(this),this.disposable.dispose()},b}(gc),kc=ma.ObservableBase=function(a){functionb(a){returna&&ua(a.dispose)?a:ua(a)?yb(a):zb}functionc(a,c){vard=c[0],f=c[1],g=wa(f.subscribeCore).call(f,d);g!==va||d.fail(va.e)||e(va.e),d.setDisposable(b(g))}functiond(){a.call(this)}returntb(d,a),d.prototype._subscribe=function(a){varb=newje(a),d=[b,this];returnQb.scheduleRequired()?Qb.schedule(d,c):c(null,d),b},d.prototype.subscribeCore=Ha,d}(ic),lc=ma.FlatMapObservable=function(a){functionb(b,c,d,e){this.resultSelector=ua(d)?d:null,this.selector=Ma(ua(c)?c:function(){returnc},e,3),this.source=b,a.call(this)}functionc(a,b,c,d){this.i=0,this.selector=b,this.resultSelector=c,this.source=d,this.o=a,gc.call(this)}returntb(b,a),b.prototype.subscribeCore=function(a){returnthis.source.subscribe(newc(a,this.selector,this.resultSelector,this))},tb(c,gc),c.prototype._wrapResult=function(a,b,c){returnthis.resultSelector?a.map(function(a,d){returnthis.resultSelector(b,a,c,d)},this):a},c.prototype.next=function(a){varb=this.i++,c=wa(this.selector)(a,b,this.source);returnc===va?this.o.onError(c.e):(ta(c)&&(c=Rd(c)),(La(c)||Ka(c))&&(c=ic.from(c)),voidthis.o.onNext(this._wrapResult(c,a,b)))},c.prototype.error=function(a){this.o.onError(a)},c.prototype.completed=function(){this.o.onCompleted()},b}(kc),mc=ma.internals.Enumerable=function(){};w.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this._s.isDisposed=!0)};varnc=function(a){functionb(b){this.sources=b,a.call(this)}functionc(a,b){if(!a.isDisposed){varc=wa(a.e.next).call(a.e);if(c===va)returna.o.onError(c.e);if(c.done)returna.o.onCompleted();vare=c.value;ta(e)&&(e=Rd(e));varf=newDb;a.subscription.setDisposable(f),f.setDisposable(e.subscribe(newd(a,b)))}}functiond(a,b){this._state=a,this._recurse=b,gc.call(this)}returntb(b,a),b.prototype.subscribeCore=function(a){varb=newEb,d={isDisposed:!1,o:a,subscription:b,e:this.sources[Ia]()},e=Qb.scheduleRecursive(d,c);returnnewGb([b,e,neww(d)])},tb(d,gc),d.prototype.next=function(a){this._state.o.onNext(a)},d.prototype.error=function(a){this._state.o.onError(a)},d.prototype.completed=function(){this._recurse(this._state)},b}(kc);mc.prototype.concat=function(){returnnewnc(this)};varoc=function(a){functionb(b){this.sources=b,a.call(this)}functionc(a,b){if(!a.isDisposed){varc=wa(a.e.next).call(a.e);if(c===va)returna.o.onError(c.e);if(c.done)returnnull!==a.lastError?a.o.onError(a.lastError):a.o.onCompleted();vare=c.value;ta(e)&&(e=Rd(e));varf=newDb;a.subscription.setDisposable(f),f.setDisposable(e.subscribe(newd(a,b)))}}functiond(a,b){this._state=a,this._recurse=b,gc.call(this)}returntb(b,a),b.prototype.subscribeCore=function(a){varb=newEb,d={isDisposed:!1,e:this.sources[Ia](),subscription:b,lastError:null,o:a},e=Qb.scheduleRecursive(d,c);returnnewGb([b,e,neww(d)])},tb(d,gc),d.prototype.next=function(a){this._state.o.onNext(a)},d.prototype.error=function(a){this._state.lastError=a,this._recurse(this._state)},d.prototype.completed=function(){this._state.o.onCompleted()},b}(kc);mc.prototype.catchError=function(){returnnewoc(this)};varpc=function(a){functionb(a,b){this.v=a,this.c=null==b?-1:b}functionc(a){this.v=a.v,this.l=a.c}returntb(b,a),b.prototype[Ia]=function(){returnnewc(this)},c.prototype.next=function(){return0===this.l?Ja:(this.l>0&&this.l--,{done:!1,value:this.v})},b}(mc),qc=mc.repeat=function(a,b){returnnewpc(a,b)},rc=function(a){functionb(a,b,c){this.s=a,this.fn=b?Ma(b,c,3):null}functionc(a){this.i=-1,this.s=a.s,this.l=this.s.length,this.fn=a.fn}returntb(b,a),b.prototype[Ia]=function(){returnnewc(this)},c.prototype.next=function(){return++this.i<this.l?{done:!1,value:this.fn?this.fn(this.s[this.i],this.i,this.s):this.s[this.i]}:Ja},b}(mc),sc=mc.of=function(a,b,c){returnnewrc(a,b,c)},tc=function(a){functionb(b){this.source=b,a.call(this)}functionc(a){this.o=a,this.a=[],gc.call(this)}returntb(b,a),b.prototype.subscribeCore=function(a){returnthis.source.subscribe(newc(a))},tb(c,gc),c.prototype.next=function(a){this.a.push(a)},c.prototype.error=function(a){this.o.onError(a)},c.prototype.completed=function(){this.o.onNext(this.a),this.o.onCompleted()},b}(kc);Yb.toArray=function(){returnnewtc(this)},ic.create=function(a,b){returnnewie(a,b)};varuc=function(a){functionb(b){this._f=b,a.call(this)}returntb(b,a),b.prototype.subscribeCore=function(a){varb=wa(this._f)();returnb===va?Mc(b.e).subscribe(a):(ta(b)&&(b=Rd(b)),b.subscribe(a))},b}(kc),vc=ic.defer=function(a){returnnewuc(a)},wc=function(a){functionb(b){this.scheduler=b,a.call(this)}functionc(a,b){this.observer=a,this.scheduler=b}functiond(a,b){returnb.onCompleted(),zb}returntb(b,a),b.prototype.subscribeCore=function(a){varb=newc(a,this.scheduler);returnb.run()},c.prototype.run=function(){vara=this.observer;returnthis.scheduler===Ob?d(null,a):this.scheduler.schedule(a,d)},b}(kc),xc=newwc(Ob),yc=ic.empty=function(a){returnKb(a)||(a=Ob),a===Ob?xc:newwc(a)},zc=function(a){functionb(b,c,d){this._iterable=b,this._fn=c,this._scheduler=d,a.call(this)}functionc(a,b,c){returnfunction(d,e){varf=wa(b.next).call(b);if(f===va)returna.onError(f.e);if(f.done)returna.onCompleted();varg=f.value;returnua(c)&&(g=wa(c)(g,d),g===va)?a.onError(g.e):(a.onNext(g),voide(d+1))}}returntb(b,a),b.prototype.subscribeCore=function(a){varb=Object(this._iterable),d=C(b);returnthis._scheduler.scheduleRecursive(0,c(a,d,this._fn))},b}(kc),Ac=Math.pow(2,53)-1;x.prototype[Ia]=function(){returnnewy(this._s)},y.prototype[Ia]=function(){returnthis},y.prototype.next=function(){returnthis._i<this._l?{done:!1,value:this._s.charAt(this._i++)}:Ja},z.prototype[Ia]=function(){returnnewA(this._a)},A.prototype[Ia]=function(){returnthis},A.prototype.next=function(){returnthis._i<this._l?{done:!1,value:this._a[this._i++]}:Ja};varBc=ic.from=function(a,b,c,d){if(null==a)thrownewError("iterable cannot be null.");if(b&&!ua(b))thrownewError("mapFn when provided must be a function");if(b)vare=Ma(b,c,2);returnKb(d)||(d=Qb),newzc(a,e,d)},Cc=function(a){functionb(b,c){this._args=b,this._scheduler=c,a.call(this)}functionc(a,b){varc=b.length;returnfunction(d,e){c>d?(a.onNext(b[d]),e(d+1)):a.onCompleted()}}returntb(b,a),b.prototype.subscribeCore=function(a){returnthis._scheduler.scheduleRecursive(0,c(a,this._args))},b}(kc),Dc=ic.fromArray=function(a,b){returnKb(b)||(b=Qb),newCc(a,b)},Ec=function(a){functionb(){a.call(this)}returntb(b,a),b.prototype.subscribeCore=function(a){returnzb},b}(kc),Fc=newEc,Gc=ic.never=function(){returnFc};ic.of=function(){for(vara=arguments.length,b=newArray(a),c=0;a>c;c++)b[c]=arguments[c];returnnewCc(b,Qb)},ic.ofWithScheduler=function(a){for(varb=arguments.length,c=newArray(b-1),d=1;b>d;d++)c[d-1]=arguments[d];returnnewCc(c,a)};varHc=function(a){functionb(b,c){this._o=b,this._keys=Object.keys(b),this._scheduler=c,a.call(this)}functionc(a,b,c){returnfunction(d,e){if(d<c.length){varf=c[d];a.onNext([f,b[f]]),e(d+1)}elsea.onCompleted()}}returntb(b,a),b.prototype.subscribeCore=function(a){returnthis._scheduler.scheduleRecursive(0,c(a,this._o,this._keys))},b}(kc);ic.pairs=function(a,b){returnb||(b=Qb),newHc(a,b)};varIc=function(a){functionb(b,c,d){this.start=b,this.rangeCount=c,this.scheduler=d,a.call(this)}functionc(a,b,c){returnfunction(d,e){b>d?(c.onNext(a+d),e(d+1)):c.onCompleted()}}returntb(b,a),b.prototype.subscribeCore=function(a){returnthis.scheduler.scheduleRecursive(0,c(this.start,this.rangeCount,a))},b}(kc);ic.range=function(a,b,c){returnKb(c)||(c=Qb),newIc(a,b,c)};varJc=function(a){functionb(b,c,d){this.value=b,this.repeatCount=null==c?-1:c,this.scheduler=d,a.call(this)}returntb(b,a),b.prototype.subscribeCore=function(a){varb=newG(a,this);returnb.run()},b}(kc);G.prototype.run=function(){functiona(a,d){return(-1===a||a>0)&&(b.onNext(c),a>0&&a--),0===a?b.onCompleted():voidd(a)}varb=this.observer,c=this.parent.value;returnthis.parent.scheduler.scheduleRecursive(this.parent.repeatCount,a)},ic.repeat=function(a,b,c){returnKb(c)||(c=Qb),newJc(a,b,c)};varKc=function(a){functionb(b,c){this._value=b,this._scheduler=c,a.call(this)}functionc(a,b){varc=b[0],d=b[1];returnd.onNext(c),d.onCompleted(),zb}returntb(b,a),b.prototype.subscribeCore=function(a){varb=[this._value,a];returnthis._scheduler===Ob?c(null,b):this._scheduler.schedule(b,c)},b}(kc),Lc=(ic["return"]=ic.just=function(a,b){returnKb(b)||(b=Ob),newKc(a,b)},function(a){functionb(b,c){this._error=b,this._scheduler=c,a.call(this)}functionc(a,b){varc=b[0],d=b[1];returnd.onError(c),zb}returntb(b,a),b.prototype.subscribeCore=function(a){varb=[this._error,a];returnthis._scheduler===Ob?c(null,b):this._scheduler.schedule(b,c)},b}(kc)),Mc=ic["throw"]=function(a,b){returnKb(b)||(b=Ob),newLc(a,b)},Nc=function(a){functionb(b,c){this.source=b,this._fn=c,a.call(this)}returntb(b,a),b.prototype.subscribeCore=function(a){varb=newDb,c=newEb;returnc.setDisposable(b),b.setDisposable(this.source.subscribe(newOc(a,c,this._fn))),c},b}(kc),Oc=function(a){functionb(b,c,d){this._o=b,this._s=c,this._fn=d,a.call(this)}returntb(b,a),b.prototype.next=function(a){this._o.onNext(a)},b.prototype.completed=function(){returnthis._o.onCompleted()},b.prototype.error=function(a){varb=wa(this._fn)(a);if(b===va)returnthis._o.onError(b.e);ta(b)&&(b=Rd(b));varc=newDb;this._s.setDisposable(c),c.setDisposable(b.subscribe(this._o))},b}(gc);Yb["catch"]=function(a){returnua(a)?newNc(this,a):Pc([this,a])};varPc=ic["catch"]=function(){vara;if(Array.isArray(arguments[0]))a=arguments[0];else{varb=arguments.length;a=newArray(b);for(varc=0;b>c;c++)a[c]=arguments[c]}returnsc(a).catchError()};Yb.combineLatest=function(){for(vara=arguments.length,b=newArray(a),c=0;a>c;c++)b[c]=arguments[c];returnArray.isArray(b[0])?b[0].unshift(this):b.unshift(this),Sc.apply(this,b)};varQc=function(a){functionb(b,c){this._params=b,this._cb=c,a.call(this)}returntb(b,a),b.prototype.subscribeCore=function(a){for(varb=this._params.length,c=newArray(b),d={hasValue:u(b,H),hasValueAll:!1,isDone:u(b,H),values:newArray(b)},e=0;b>e;e++){varf=this._params[e],g=newDb;c[e]=g,ta(f)&&(f=Rd(f)),g.setDisposable(f.subscribe(newRc(a,e,this._cb,d)))}returnnewGb(c)},b}(kc),Rc=function(a){functionb(b,c,d,e){this._o=b,this._i=c,this._cb=d,this._state=e,a.call(this)}functionc(a){returnfunction(b,c){returnc!==a}}returntb(b,a),b.prototype.next=function(a){if(this._state.values[this._i]=a,this._state.hasValue[this._i]=!0,this._state.hasValueAll||(this._state.hasValueAll=this._state.hasValue.every(oa))){varb=wa(this._cb).apply(null,this._state.values);if(b===va)returnthis._o.onError(b.e);this._o.onNext(b)}elsethis._state.isDone.filter(c(this._i)).every(oa)&&this._o.onCompleted()},b.prototype.error=function(a){this._o.onError(a)},b.prototype.completed=function(){this._state.isDone[this._i]=!0,this._state.isDone.every(oa)&&this._o.onCompleted()},b}(gc),Sc=ic.combineLatest=function(){for(vara=arguments.length,b=newArray(a),c=0;a>c;c++)b[c]=arguments[c];vard=ua(b[a-1])?b.pop():I;returnArray.isArray(b[0])&&(b=b[0]),newQc(b,d)};Yb.concat=function(){for(vara=[],b=0,c=arguments.length;c>b;b++)a.push(arguments[b]);returna.unshift(this),Vc.apply(null,a)};varTc=function(a){functionb(b,c){this._s=b,this._fn=c,a.call(this)}returntb(b,a),b.prototype.next=function(a){this._s.o.onNext(a)},b.prototype.error=function(a){this._s.o.onError(a)},b.prototype.completed=function(){this._s.i++,this._fn(this._s)},b}(gc),Uc=function(a){functionb(b){this._sources=b,a.call(this)}functionc(a,b){if(!a.disposable.isDisposed){if(a.i===a.sources.length)returna.o.onCompleted();varc=a.sources[a.i];ta(c)&&(c=Rd(c));vard=newDb;a.subscription.setDisposable(d),d.setDisposable(c.subscribe(newTc(a,b)))}}returntb(b,a),b.prototype.subscribeCore=function(a){varb=newEb,d=yb(na),e={o:a,i:0,subscription:b,disposable:d,sources:this._sources},f=Ob.scheduleRecursive(e,c);returnnewGb([b,d,f])},b}(kc),Vc=ic.concat=function(){vara;if(Array.isArray(arguments[0]))a=arguments[0];else{a=newArray(arguments.length);for(varb=0,c=arguments.length;c>b;b++)a[b]=arguments[b]}returnnewUc(a)};Yb.concatAll=function(){returnthis.merge(1)};varWc=function(a){functionb(b,c){this.source=b,this.maxConcurrent=c,a.call(this)}returntb(b,a),b.prototype.subscribeCore=function(a){varb=newvb;returnb.add(this.source.subscribe(newXc(a,this.maxConcurrent,b))),b},b}(kc),Xc=function(a){functionb(b,c,d){this.o=b,this.max=c,this.g=d,this.done=!1,this.q=[],this.activeCount=0,a.call(this)}functionc(b,c){this.parent=b,this.sad=c,a.call(this)}returntb(b,a),b.prototype.handleSubscribe=function(a){varb=newDb;this.g.add(b),ta(a)&&(a=Rd(a)),b.setDisposable(a.subscribe(newc(this,b)))},b.prototype.next=function(a){this.activeCount<this.max?(this.activeCount++,this.handleSubscribe(a)):this.q.push(a)},b.prototype.error=function(a){this.o.onError(a)},b.prototype.completed=function(){this.done=!0,0===this.activeCount&&this.o.onCompleted()},tb(c,a),c.prototype.next=function(a){this.parent.o.onNext(a)},c.prototype.error=function(a){this.parent.o.onError(a)},c.prototype.completed=function(){this.parent.g.remove(this.sad),this.parent.q.length>0?this.parent.handleSubscribe(this.parent.q.shift()):(this.parent.activeCount--,this.parent.done&&0===this.parent.activeCount&&this.parent.o.onCompleted())},b}(gc);Yb.merge=function(a){return"number"!=typeofa?Yc(this,a):newWc(this,a)};varYc=ic.merge=function(){vara,b,c=[],d=arguments.length;if(arguments[0])if(Kb(arguments[0]))for(a=arguments[0],b=1;d>b;b++)c.push(arguments[b]);elsefor(a=Ob,b=0;d>b;b++)c.push(arguments[b]);elsefor(a=Ob,b=1;d>b;b++)c.push(arguments[b]);returnArray.isArray(c[0])&&(c=c[0]),F(a,c).mergeAll()},Zc=ma.CompositeError=function(a){this.innerErrors=a,this.message="This contains multiple errors. Check the innerErrors",Error.call(this)};Zc.prototype=Object.create(Error.prototype),Zc.prototype.name="CompositeError";var$c=function(a){functionb(b){this.source=b,a.call(this)}returntb(b,a),b.prototype.subscribeCore=function(a){varb=newvb,c=newDb,d={isStopped:!1,errors:[],o:a};returnb.add(c),c.setDisposable(this.source.subscribe(new_c(b,d))),b},b}(kc),_c=function(a){functionb(b,c){this._group=b,this._state=c,a.call(this)}functionc(a,b){0===b.length?a.onCompleted():1===b.length?a.onError(b[0]):a.onError(newZc(b))}functiond(b,c,d){this._inner=b,this._group=c,this._state=d,a.call(this)}returntb(b,a),b.prototype.next=function(a){varb=newDb;this._group.add(b),ta(a)&&(a=Rd(a)),b.setDisposable(a.subscribe(newd(b,this._group,this._state)))},b.prototype.error=function(a){this._state.errors.push(a),this._state.isStopped=!0,1===this._group.length&&c(this._state.o,this._state.errors)},b.prototype.completed=function(){this._state.isStopped=!0,1===this._group.length&&c(this._state.o,this._state.errors)},tb(d,a),d.prototype.next=function(a){this._state.o.onNext(a)},d.prototype.error=function(a){this._state.errors.push(a),this._group.remove(this._inner),this._state.isStopped&&1===this._group.length&&c(this._state.o,this._state.errors)},d.prototype.completed=function(){this._group.remove(this._inner),this._state.isStopped&&1===this._group.length&&c(this._state.o,this._state.errors)},b}(gc);ic.mergeDelayError=function(){vara;if(Array.isArray(arguments[0]))a=arguments[0];else{varb=arguments.length;a=newArray(b);for(varc=0;b>c;c++)a[c]=arguments[c]}vard=F(null,a);returnnew$c(d)};varad=function(a){functionb(b){this.source=b,a.call(this)}returntb(b,a),b.prototype.subscribeCore=function(a){varb=newvb,c=newDb;returnb.add(c),c.setDisposable(this.source.subscribe(newbd(a,b))),b},b}(kc),bd=function(a){functionb(b,c){this.o=b,this.g=c,this.done=!1,a.call(this)}functionc(b,c){this.parent=b,this.sad=c,a.call(this)}returntb(b,a),b.prototype.next=function(a){varb=newDb;this.g.add(b),ta(a)&&(a=Rd(a)),b.setDisposable(a.subscribe(newc(this,b)))},b.prototype.error=function(a){this.o.onError(a)},b.prototype.completed=function(){this.done=!0,1===this.g.length&&this.o.onCompleted()},tb(c,a),c.prototype.next=function(a){this.parent.o.onNext(a)},c.prototype.error=function(a){this.parent.o.onError(a)},c.prototype.completed=function(){this.parent.g.remove(this.sad),this.parent.done&&1===this.parent.g.length&&this.parent.o.onCompleted()},b}(gc);Yb.mergeAll=function(){returnnewad(this)};varcd=function(a){functionb(b,c){this._s=b,this._o=ta(c)?Rd(c):c,this._open=!1,a.call(this)}returntb(b,a),b.prototype.subscribeCore=function(a){varb=newDb;b.setDisposable(this._s.subscribe(newdd(a,this))),ta(this._o)&&(this._o=Rd(this._o));varc=newDb;returnc.setDisposable(this._o.subscribe(newed(a,this,c))),newFb(b,c)},b}(kc),dd=function(a){functionb(b,c){this._o=b,this._p=c,a.call(this)}returntb(b,a),b.prototype.next=function(a){this._p._open&&this._o.onNext(a)},b.prototype.error=function(a){this._o.onError(a)},b.prototype.onCompleted=function(){this._p._open&&this._o.onCompleted()},b}(gc),ed=function(a){functionb(b,c,d){this._o=b,this._p=c,this._r=d,a.call(this)}returntb(b,a),b.prototype.next=function(){this._p._open=!0,this._r.dispose()},b.prototype.error=function(a){this._o.onError(a)},b.prototype.onCompleted=function(){this._r.dispose()},b}(gc);Yb.skipUntil=function(a){returnnewcd(this,a)};varfd=function(a){functionb(b){this.source=b,a.call(this)}functionc(a,b){this.o=a,this.inner=b,this.stopped=!1,this.latest=0,this.hasLatest=!1,gc.call(this)}functiond(a,b){this.parent=a,this.id=b,gc.call(this)}returntb(b,a),b.prototype.subscribeCore=function(a){varb=newEb,d=this.source.subscribe(newc(a,b));returnnewFb(d,b)},tb(c,gc),c.prototype.next=function(a){varb=newDb,c=++this.latest;this.hasLatest=!0,this.inner.setDisposable(b),ta(a)&&(a=Rd(a)),b.setDisposable(a.subscribe(newd(this,c)))},c.prototype.error=function(a){this.o.onError(a)},c.prototype.completed=function(){this.stopped=!0,!this.hasLatest&&this.o.onCompleted()},tb(d,gc),d.prototype.next=function(a){this.parent.latest===this.id&&this.parent.o.onNext(a)},d.prototype.error=function(a){this.parent.latest===this.id&&this.parent.o.onError(a)},d.prototype.completed=function(){this.parent.latest===this.id&&(this.parent.hasLatest=!1,this.parent.stopped&&this.parent.o.onCompleted())},b}(kc);Yb["switch"]=Yb.switchLatest=function(){returnnewfd(this)};vargd=function(a){functionb(b,c){this.source=b,this.other=ta(c)?Rd(c):c,a.call(this)}returntb(b,a),b.prototype.subscribeCore=function(a){returnnewFb(this.source.subscribe(a),this.other.subscribe(newhd(a)))},b}(kc),hd=function(a){functionb(b){this._o=b,a.call(this)}returntb(b,a),b.prototype.next=function(){this._o.onCompleted()},b.prototype.error=function(a){this._o.onError(a)},b.prototype.onCompleted=na,b}(gc);Yb.takeUntil=function(a){returnnewgd(this,a)};varid=function(a){functionb(b,c,d){this._s=b,this._ss=c,this._cb=d,a.call(this)}returntb(b,a),b.prototype.subscribeCore=function(a){for(varb=this._ss.length,c={hasValue:u(b,H),hasValueAll:!1,values:newArray(b)},d=this._ss.length,e=newArray(d+1),f=0;d>f;f++){varg=this._ss[f],h=newDb;ta(g)&&(g=Rd(g)),h.setDisposable(g.subscribe(newjd(a,f,c))),e[f]=h}vari=newDb;returni.setDisposable(this._s.subscribe(newkd(a,this._cb,c))),e[d]=i,newGb(e)},b}(kc),jd=function(a){functionb(b,c,d){this._o=b,this._i=c,this._state=d,a.call(this)}returntb(b,a),b.prototype.next=function(a){this._state.values[this._i]=a,this._state.hasValue[this._i]=!0,this._state.hasValueAll=this._state.hasValue.every(oa)},b.prototype.error=function(a){this._o.onError(a)},b.prototype.completed=na,b}(gc),kd=function(a){functionb(b,c,d){this._o=b,this._cb=c,this._state=d,a.call(this)}returntb(b,a),b.prototype.next=function(a){varb=[a].concat(this._state.values);if(this._state.hasValueAll){varc=wa(this._cb).apply(null,b);returnc===va?this._o.onError(c.e):voidthis._o.onNext(c)}},b.prototype.error=function(a){this._o.onError(a)},b.prototype.completed=function(){this._o.onCompleted()},b}(gc);Yb.withLatestFrom=function(){if(0===arguments.length)thrownewError("invalid arguments");for(vara=arguments.length,b=newArray(a),c=0;a>c;c++)b[c]=arguments[c];vard=ua(b[a-1])?b.pop():I;returnArray.isArray(b[0])&&(b=b[0]),newid(this,b,d)};varld=function(a){functionb(b,c){this._s=b,this._cb=c,a.call(this)}returntb(b,a),b.prototype.subscribeCore=function(a){for(varb=this._s.length,c=newArray(b),d=u(b,H),e=u(b,J),f=0;b>f;f++){varg=this._s[f],h=newDb;c[f]=h,ta(g)&&(g=Rd(g)),h.setDisposable(g.subscribe(newmd(a,f,this,e,d)))}returnnewGb(c)},b}(kc),md=function(a){functionb(b,c,d,e,f){this._o=b,this._i=c,this._p=d,this._q=e,this._d=f,a.call(this)}functionc(a){returna.length>0}functiond(a){returna.shift()}functione(a){returnfunction(b,c){returnc!==a}}returntb(b,a),b.prototype.next=function(a){if(this._q[this._i].push(a),this._q.every(c)){varb=this._q.map(d),f=wa(this._p._cb).apply(null,b);if(f===va)returnthis._o.onError(f.e);this._o.onNext(f)}elsethis._d.filter(e(this._i)).every(oa)&&this._o.onCompleted()},b.prototype.error=function(a){this._o.onError(a)},b.prototype.completed=function(){this._d[this._i]=!0,this._d.every(oa)&&this._o.onCompleted()},b}(gc);Yb.zip=function(){if(0===arguments.length)thrownewError("invalid arguments");for(vara=arguments.length,b=newArray(a),c=0;a>c;c++)b[c]=arguments[c];vard=ua(b[a-1])?b.pop():I;Array.isArray(b[0])&&(b=b[0]);vare=this;returnb.unshift(e),newld(b,d)},ic.zip=function(){for(vara=arguments.length,b=newArray(a),c=0;a>c;c++)b[c]=arguments[c];Array.isArray(b[0])&&(b=ua(b[1])?b[0].concat(b[1]):b[0]);vard=b.shift();returnd.zip.apply(d,b)};varnd=function(a){functionb(b,c){this.sources=b,this._cb=c,a.call(this)}returntb(b,a),b.prototype.subscribeCore=function(a){for(varb=this.sources,c=b.length,d=newArray(c),e={q:u(c,J),done:u(c,H),cb:this._cb,o:a},f=0;c>f;f++)!function(a){varc=b[a],f=newDb;(La(c)||Ka(c))&&(c=Bc(c)),d[a]=f,f.setDisposable(c.subscribe(newod(e,a)))}(f);returnnewGb(d)},b}(kc),od=function(a){functionb(b,c){this._s=b,this._i=c,a.call(this)}functionc(a){returna.length>0}functiond(a){returna.shift()}functione(a){returnfunction(b,c){returnc!==a}}returntb(b,a),b.prototype.next=function(a){if(this._s.q[this._i].push(a),this._s.q.every(c)){varb=this._s.q.map(d),f=wa(this._s.cb).apply(null,b);if(f===va)returnthis._s.o.onError(f.e);this._s.o.onNext(f)}elsethis._s.done.filter(e(this._i)).every(oa)&&this._s.o.onCompleted()},b.prototype.error=function(a){this._s.o.onError(a)},b.prototype.completed=function(){this._s.done[this._i]=!0,this._s.done.every(oa)&&this._s.o.onCompleted()},b}(gc);Yb.zipIterable=function(){if(0===arguments.length)thrownewError("invalid arguments");for(vara=arguments.length,b=newArray(a),c=0;a>c;c++)b[c]=arguments[c];vard=ua(b[a-1])?b.pop():I,e=this;returnb.unshift(e),newnd(b,d)},Yb.asObservable=function(){returnnewie(K(this),this)};varpd=function(a){functionb(b){this.source=b,a.call(this)}returntb(b,a),b.prototype.subscribeCore=function(a){returnthis.source.subscribe(newqd(a))},b}(kc),qd=function(a){functionb(b){this._o=b,a.call(this)}returntb(b,a),b.prototype.next=function(a){a.accept(this._o)},b.prototype.error=function(a){this._o.onError(a)},b.prototype.completed=function(){this._o.onCompleted()},b}(gc);Yb.dematerialize=function(){returnnewpd(this)};varrd=function(a){functionb(b,c,d){this.source=b,this.keyFn=c,this.comparer=d,a.call(this)}returntb(b,a),b.prototype.subscribeCore=function(a){returnthis.source.subscribe(newsd(a,this.keyFn,this.comparer))},b}(kc),sd=function(a){functionb(b,c,d){this.o=b,this.keyFn=c,this.comparer=d,this.hasCurrentKey=!1,this.currentKey=null,a.call(this)}returntb(b,a),b.prototype.next=function(a){varb,c=a;returnua(this.keyFn)&&(c=wa(this.keyFn)(a),c===va)?this.o.onError(c.e):this.hasCurrentKey&&(b=wa(this.comparer)(this.currentKey,c),b===va)?this.o.onError(b.e):void(this.hasCurrentKey&&b||(this.hasCurrentKey=!0,this.currentKey=c,this.o.onNext(a)))},b.prototype.error=function(a){this.o.onError(a)},b.prototype.completed=function(){this.o.onCompleted()},b}(gc);Yb.distinctUntilChanged=function(a,b){returnb||(b=qa),newrd(this,a,b)};vartd=function(a){functionb(b,c,d,e){this.source=b,this._oN=c,this._oE=d,this._oC=e,a.call(this)}functionc(a,b){this.o=a,this.t=!b._oN||ua(b._oN)?fc(b._oN||na,b._oE||na,b._oC||na):b._oN,this.isStopped=!1,gc.call(this)}returntb(b,a),b.prototype.subscribeCore=function(a){returnthis.source.subscribe(newc(a,this))},tb(c,gc),c.prototype.next=function(a){varb=wa(this.t.onNext).call(this.t,a);b===va&&this.o.onError(b.e),this.o.onNext(a)},c.prototype.error=function(a){varb=wa(this.t.onError).call(this.t,a);returnb===va?this.o.onError(b.e):voidthis.o.onError(a)},c.prototype.completed=function(){vara=wa(this.t.onCompleted).call(this.t);returna===va?this.o.onError(a.e):voidthis.o.onCompleted()},b}(kc);Yb["do"]=Yb.tap=Yb.doAction=function(a,b,c){returnnewtd(this,a,b,c)},Yb.doOnNext=Yb.tapOnNext=function(a,b){returnthis.tap("undefined"!=typeofb?function(c){a.call(b,c)}:a)},Yb.doOnError=Yb.tapOnError=function(a,b){returnthis.tap(na,"undefined"!=typeofb?function(c){a.call(b,c)}:a)},Yb.doOnCompleted=Yb.tapOnCompleted=function(a,b){returnthis.tap(na,null,"undefined"!=typeofb?function(){a.call(b)}:a)};varud=function(a){functionb(b,c,d){this.source=b,this._fn=Ma(c,d,0),a.call(this)}functionc(a,b){this.isDisposed=!1,this._s=a,this._fn=b}returntb(b,a),b.prototype.subscribeCore=function(a){varb=wa(this.source.subscribe).call(this.source,a);returnb===va&&(this._fn(),e(b.e)),newc(b,this._fn)},c.prototype.dispose=function(){if(!this.isDisposed){vara=wa(this._s.dispose).call(this._s);this._fn(),a===va&&e(a.e)}},b}(kc);Yb["finally"]=function(a,b){returnnewud(this,a,b)};varvd=function(a){functionb(b){this.source=b,a.call(this)}functionc(a){this.o=a,this.isStopped=!1}returntb(b,a),b.prototype.subscribeCore=function(a){returnthis.source.subscribe(newc(a))},c.prototype.onNext=na,c.prototype.onError=function(a){this.isStopped||(this.isStopped=!0,this.o.onError(a))},c.prototype.onCompleted=function(){this.isStopped||(this.isStopped=!0,this.o.onCompleted())},c.prototype.dispose=function(){this.isStopped=!0},c.prototype.fail=function(a){returnthis.isStopped?!1:(this.isStopped=!0,this.observer.onError(a),!0)},b}(kc);Yb.ignoreElements=function(){returnnewvd(this)};varwd=function(a){functionb(b,c){this.source=b,a.call(this)}returntb(b,a),b.prototype.subscribeCore=function(a){returnthis.source.subscribe(newxd(a))},b}(kc),xd=function(a){functionb(b){this._o=b,a.call(this)}returntb(b,a),b.prototype.next=function(a){this._o.onNext(bc(a))},b.prototype.error=function(a){this._o.onNext(cc(a)),this._o.onCompleted()},b.prototype.completed=function(){this._o.onNext(dc()),this._o.onCompleted()},b}(gc);Yb.materialize=function(){returnnewwd(this)},Yb.repeat=function(a){returnqc(this,a).concat()},Yb.retry=function(a){returnqc(this,a).catchError()};varyd=function(a){functionb(a){return{isDisposed:!1,dispose:function(){this.isDisposed||(this.isDisposed=!0,a.isDisposed=!0)}}}functionc(b,c){this.source=b,this._notifier=c,a.call(this)}returntb(c,a),c.prototype.subscribeCore=function(a){varc,d=newle,e=newle,f=this._notifier(d),g=f.subscribe(e),h=this.source["@@iterator"](),i={isDisposed:!1},j=newEb,k=Qb.scheduleRecursive(null,function(b,f){if(!i.isDisposed){varg=h.next();if(g.done)returnvoid(c?a.onError(c):a.onCompleted());vark=g.value;ta(k)&&(k=Rd(k));varl=newDb,m=newDb;j.setDisposable(newFb(m,l)),l.setDisposable(k.subscribe(function(b){a.onNext(b)},function(b){m.setDisposable(e.subscribe(f,function(b){a.onError(b)},function(){a.onCompleted()})),d.onNext(b),l.dispose()},function(){a.onCompleted()}))}});returnnewGb([g,j,k,b(i)])},c}(kc);Yb.retryWhen=function(a){returnnewyd(L(this),a)};varzd=function(a){functionb(a){return{isDisposed:!1,dispose:function(){this.isDisposed||(this.isDisposed=!0,a.isDisposed=!0)}}}functionc(b,c){this.source=b,this._notifier=c,a.call(this)}returntb(c,a),c.prototype.subscribeCore=function(a){varc,d=newle,e=newle,f=this._notifier(d),g=f.subscribe(e),h=this.source["@@iterator"](),i={isDisposed:!1},j=newEb,k=Qb.scheduleRecursive(null,function(b,f){if(!i.isDisposed){varg=h.next();if(g.done)returnvoid(c?a.onError(c):a.onCompleted());vark=g.value;ta(k)&&(k=Rd(k));varl=newDb,m=newDb;j.setDisposable(newFb(m,l)),l.setDisposable(k.subscribe(function(b){a.onNext(b)},function(b){a.onError(b)},function(){m.setDisposable(e.subscribe(f,function(b){a.onError(b)},function(){a.onCompleted()})),d.onNext(null),l.dispose()}))}});returnnewGb([g,j,k,b(i)])},c}(kc);Yb.repeatWhen=function(a){returnnewzd(L(this),a)};varAd=function(a){functionb(b,c,d,e){this.source=b,this.accumulator=c,this.hasSeed=d,this.seed=e,a.call(this)}returntb(b,a),b.prototype.subscribeCore=function(a){returnthis.source.subscribe(newBd(a,this))},b}(kc),Bd=function(a){functionb(b,c){this._o=b,this._p=c,this._fn=c.accumulator,this._hs=c.hasSeed,this._s=c.seed,this._ha=!1,this._a=null,this._hv=!1,this._i=0,a.call(this)}returntb(b,a),b.prototype.next=function(a){return!this._hv&&(this._hv=!0),this._ha?this._a=wa(this._fn)(this._a,a,this._i,this._p):(this._a=this._hs?wa(this._fn)(this._s,a,this._i,this._p):a,this._ha=!0),this._a===va?this._o.onError(this._a.e):(this._o.onNext(this._a),voidthis._i++)},b.prototype.error=function(a){this._o.onError(a)},b.prototype.completed=function(){!this._hv&&this._hs&&this._o.onNext(this._s),this._o.onCompleted()},b}(gc);Yb.scan=function(){vara,b=!1,c=arguments[0];return2===arguments.length&&(b=!0,a=arguments[1]),newAd(this,c,b,a)};varCd=function(a){functionb(b,c){this.source=b,this._c=c,a.call(this)}returntb(b,a),b.prototype.subscribeCore=function(a){returnthis.source.subscribe(newDd(a,this._c))},b}(kc),Dd=function(a){functionb(b,c){this._o=b,this._c=c,this._q=[],a.call(this)}returntb(b,a),b.prototype.next=function(a){this._q.push(a),this._q.length>this._c&&this._o.onNext(this._q.shift())},b.prototype.error=function(a){this._o.onError(a)},b.prototype.completed=function(){this._o.onCompleted()},b}(gc);Yb.skipLast=function(a){if(0>a)thrownewEa;returnnewCd(this,a)},Yb.startWith=function(){vara,b=0;arguments.length&&Kb(arguments[0])?(a=arguments[0],b=1):a=Ob;for(varc=[],d=b,e=arguments.length;e>d;d++)c.push(arguments[d]);returnsc([Dc(c,a),this]).concat()};varEd=function(a){functionb(b,c){this._o=b,this._c=c,this._q=[],a.call(this)}returntb(b,a),b.prototype.next=function(a){this._q.push(a),this._q.length>this._c&&this._q.shift()},b.prototype.error=function(a){this._o.onError(a)},b.prototype.completed=function(){for(;this._q.length>0;)this._o.onNext(this._q.shift());this._o.onCompleted()},b}(gc);Yb.takeLast=function(a){if(0>a)thrownewEa;varb=this;returnnewie(function(c){returnb.subscribe(newEd(c,a))},b)},Yb.flatMapConcat=Yb.concatMap=function(a,b,c){returnnewlc(this,a,b,c).merge(1)};varFd=function(a){functionb(b,c,d){this.source=b,this.selector=Ma(c,d,3),a.call(this)}functionc(a,b){returnfunction(c,d,e){returna.call(this,b.selector(c,d,e),d,e)}}functiond(a,b,c){this.o=a,this.selector=b,this.source=c,this.i=0,gc.call(this)}returntb(b,a),b.prototype.internalMap=function(a,d){returnnewb(this.source,c(a,this),d)},b.prototype.subscribeCore=function(a){returnthis.source.subscribe(newd(a,this.selector,this))},tb(d,gc),d.prototype.next=function(a){varb=wa(this.selector)(a,this.i++,this.source);returnb===va?this.o.onError(b.e):voidthis.o.onNext(b)},d.prototype.error=function(a){this.o.onError(a)},d.prototype.completed=function(){this.o.onCompleted()},b}(kc);Yb.map=Yb.select=function(a,b){varc="function"==typeofa?a:function(){returna};returnthisinstanceofFd?this.internalMap(c,b):newFd(this,c,b)},Yb.pluck=function(){vara=arguments.length,b=newArray(a);if(0===a)thrownewError("List of properties cannot be empty.");for(varc=0;a>c;c++)b[c]=arguments[c];returnthis.map(M(b,a))},Yb.flatMap=Yb.selectMany=function(a,b,c){returnnewlc(this,a,b,c).mergeAll()},ma.Observable.prototype.flatMapLatest=function(a,b,c){returnnewlc(this,a,b,c).switchLatest()};varGd=function(a){functionb(b,c){this.source=b,this._count=c,a.call(this)}functionc(a,b){this._o=a,this._r=b,gc.call(this)}returntb(b,a),b.prototype.subscribeCore=function(a){returnthis.source.subscribe(newc(a,this._count))},tb(c,gc),c.prototype.next=function(a){this._r<=0?this._o.onNext(a):this._r--},c.prototype.error=function(a){this._o.onError(a)},c.prototype.completed=function(){this._o.onCompleted()},b}(kc);Yb.skip=function(a){if(0>a)thrownewEa;returnnewGd(this,a)};varHd=function(a){functionb(b,c){this.source=b,this._fn=c,a.call(this)}returntb(b,a),b.prototype.subscribeCore=function(a){returnthis.source.subscribe(newId(a,this))},b}(kc),Id=function(a){functionb(b,c){this._o=b,this._p=c,this._i=0,this._r=!1,a.call(this)}returntb(b,a),b.prototype.next=function(a){if(!this._r){varb=wa(this._p._fn)(a,this._i++,this._p);if(b===va)returnthis._o.onError(b.e);this._r=!b}this._r&&this._o.onNext(a)},b.prototype.error=function(a){this._o.onError(a)},b.prototype.completed=function(){this._o.onCompleted()},b}(gc);Yb.skipWhile=function(a,b){varc=Ma(a,b,3);returnnewHd(this,c)};varJd=function(a){functionb(b,c){this.source=b,this._count=c,a.call(this)}functionc(a,b){this._o=a,this._c=b,this._r=b,gc.call(this)}returntb(b,a),b.prototype.subscribeCore=function(a){returnthis.source.subscribe(newc(a,this._count))},tb(c,gc),c.prototype.next=function(a){this._r-->0&&(this._o.onNext(a),this._r<=0&&this._o.onCompleted())},c.prototype.error=function(a){this._o.onError(a)},c.prototype.completed=function(){this._o.onCompleted()},b}(kc);Yb.take=function(a,b){if(0>a)thrownewEa;return0===a?yc(b):newJd(this,a)};varKd=function(a){functionb(b,c){this.source=b,this._fn=c,a.call(this)}returntb(b,a),b.prototype.subscribeCore=function(a){returnthis.source.subscribe(newLd(a,this))},b}(kc),Ld=function(a){functionb(b,c){this._o=b,this._p=c,this._i=0,this._r=!0,a.call(this)}returntb(b,a),b.prototype.next=function(a){returnthis._r&&(this._r=wa(this._p._fn)(a,this._i++,this._p),this._r===va)?this._o.onError(this._r.e):void(this._r?this._o.onNext(a):this._o.onCompleted())},b.prototype.error=function(a){this._o.onError(a)},b.prototype.completed=function(){this._o.onCompleted()},b}(gc);Yb.takeWhile=function(a,b){varc=Ma(a,b,3);returnnewKd(this,c)};varMd=function(a){functionb(b,c,d){this.source=b,this.predicate=Ma(c,d,3),a.call(this)}functionc(a,b){returnfunction(c,d,e){returnb.predicate(c,d,e)&&a.call(this,c,d,e)}}functiond(a,b,c){this.o=a,this.predicate=b,this.source=c,this.i=0,gc.call(this)}returntb(b,a),b.prototype.subscribeCore=function(a){returnthis.source.subscribe(newd(a,this.predicate,this))},b.prototype.internalFilter=function(a,d){returnnewb(this.source,c(a,this),d)},tb(d,gc),d.prototype.next=function(a){varb=wa(this.predicate)(a,this.i++,this.source);returnb===va?this.o.onError(b.e):void(b&&this.o.onNext(a))},d.prototype.error=function(a){this.o.onError(a)},d.prototype.completed=function(){this.o.onCompleted()},b}(kc);Yb.filter=Yb.where=function(a,b){returnthisinstanceofMd?this.internalFilter(a,b):newMd(this,a,b)},ic.fromCallback=function(a,b,c){returnfunction(){"undefined"==typeofb&&(b=this);for(vard=arguments.length,e=newArray(d),f=0;d>f;f++)e[f]=arguments[f];returnN(a,b,c,e)}},ic.fromNodeCallback=function(a,b,c){returnfunction(){"undefined"==typeofb&&(b=this);for(vard=arguments.length,e=newArray(d),f=0;d>f;f++)e[f]=arguments[f];returnP(a,b,c,e)}},S.prototype.dispose=function(){this.isDisposed||(this._e.removeEventListener(this._n,this._fn,!1),this.isDisposed=!0)},ma.config.useNativeEvents=!1;varNd=function(a){functionb(b,c,d){this._el=b,this._n=c,this._fn=d,a.call(this)}functionc(a,b){returnfunction(){varc=arguments[0];returnua(b)&&(c=wa(b).apply(null,arguments),c===va)?a.onError(c.e):voida.onNext(c)}}returntb(b,a),b.prototype.subscribeCore=function(a){returnT(this._el,this._n,c(a,this._fn))},b}(kc);ic.fromEvent=function(a,b,c){returna.addListener?Pd(function(c){a.addListener(b,c)},function(c){a.removeListener(b,c)},c):ma.config.useNativeEvents||"function"!=typeofa.on||"function"!=typeofa.off?newNd(a,b,c).publish().refCount():Pd(function(c){a.on(b,c)},function(c){a.off(b,c)},c)};varOd=function(a){functionb(b,c,d){this._add=b,this._del=c,this._fn=d,a.call(this)}functionc(a,b){returnfunction(){varc=arguments[0];returnua(b)&&(c=wa(b).apply(null,arguments),c===va)?a.onError(c.e):voida.onNext(c)}}functiond(a,b,c){this._del=a,this._fn=b,this._ret=c,this.isDisposed=!1}returntb(b,a),b.prototype.subscribeCore=function(a){varb=c(a,this._fn),e=this._add(b);returnnewd(this._del,b,e)},d.prototype.dispose=function(){this.isDisposed||(ua(this._del)&&this._del(this._fn,this._ret),this.isDisposed=!0)},b}(kc),Pd=ic.fromEventPattern=function(a,b,c){returnnewOd(a,b,c).publish().refCount()},Qd=function(a){functionb(b,c){this._p=b,this._s=c,a.call(this)}functionc(a,b){varc=b[0],d=b[1];c.onNext(d),c.onCompleted()}functiond(a,b){varc=b[0],d=b[1];c.onError(d)}returntb(b,a),b.prototype.subscribeCore=function(a){varb=newDb,e=this;returnthis._p.then(function(d){b.setDisposable(e._s.schedule([a,d],c))},function(c){b.setDisposable(e._s.schedule([a,c],d))}),b},b}(kc),Rd=ic.fromPromise=function(a,b){returnb||(b=Vb),newQd(a,b)};Yb.toPromise=function(a){if(a||(a=ma.config.Promise),!a)thrownewFa("Promise type not provided nor in Rx.config.Promise");varb=this;returnnewa(function(a,c){vard;b.subscribe(function(a){d=a},c,function(){a(d)})})},ic.startAsync=function(a){varb=wa(a)();returnb===va?Mc(b.e):Rd(b)};varSd=function(a){functionb(b,c,d){this.source=b,this._fn1=c,this._fn2=d,a.call(this)}returntb(b,a),b.prototype.subscribeCore=function(a){varb=this.source.multicast(this._fn1());returnnewFb(this._fn2(b).subscribe(a),b.connect())},b}(kc);Yb.multicast=function(a,b){returnua(a)?newSd(this,a,b):newUd(this,a)},Yb.publish=function(a){returna&&ua(a)?this.multicast(function(){returnnewle},a):this.multicast(newle)},Yb.share=function(){returnthis.publish().refCount()},Yb.publishLast=function(a){returna&&ua(a)?this.multicast(function(){returnnewme},a):this.multicast(newme)},Yb.publishValue=function(a,b){return2===arguments.length?this.multicast(function(){returnnewoe(b)},a):this.multicast(newoe(a))},Yb.shareValue=function(a){returnthis.publishValue(a).refCount()},Yb.replay=function(a,b,c,d){returna&&ua(a)?this.multicast(function(){returnnewpe(b,c,d)},a):this.multicast(newpe(b,c,d))},Yb.shareReplay=function(a,b,c){returnthis.replay(null,a,b,c).refCount()};varTd=function(a){functionb(b){this.source=b,this._count=0,this._connectableSubscription=null,a.call(this)}functionc(a,b){this._p=a,this._s=b,this.isDisposed=!1}returntb(b,a),b.prototype.subscribeCore=function(a){varb=this.source.subscribe(a);return1===++this._count&&(this._connectableSubscription=this.source.connect()),newc(this,b)},c.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this._s.dispose(),0===--this._p._count&&this._p._connectableSubscription.dispose())},b}(kc),Ud=ma.ConnectableObservable=function(a){functionb(b,c){this.source=b,this._connection=null,this._source=b.asObservable(),this._subject=c,a.call(this)}functionc(a,b){this._p=a,this._s=b}returntb(b,a),c.prototype.dispose=function(){this._s&&(this._s.dispose(),this._s=null,this._p._connection=null)},b.prototype.connect=function(){if(!this._connection){vara=this._source.subscribe(this._subject);this._connection=newc(this,a)}returnthis._connection},b.prototype._subscribe=function(a){returnthis._subject.subscribe(a)},b.prototype.refCount=function(){returnnewTd(this)},b}(ic),Vd=function(a){functionb(b,c){this._dt=b,this._s=c,a.call(this)}functionc(a,b){b.onNext(0),b.onCompleted()}returntb(b,a),b.prototype.subscribeCore=function(a){returnthis._s.scheduleFuture(a,this._dt,c)},b}(kc),Wd=ic.interval=function(a,b){returnW(a,a,Kb(b)?b:Vb)};ic.timer=function(b,c,d){vare;returnKb(d)||(d=Vb),null!=c&&"number"==typeofc?e=c:Kb(c)&&(d=c),(binstanceofDate||"number"==typeofb)&&e===a?U(b,d):binstanceofDate&&e!==a?V(b,c,d):W(b,e,d)};Yb.delay=function(){vara=arguments[0];if("number"==typeofa||ainstanceofDate){varb=a,c=arguments[1];returnKb(c)||(c=Vb),binstanceofDate?Y(this,b,c):X(this,b,c)}if(ic.isObservable(a)||ua(a))returnZ(this,a,arguments[1]);thrownewError("Invalid arguments")};varXd=function(a){functionb(b,c,d){Kb(d)||(d=Vb),this.source=b,this._dt=c,this._s=d,a.call(this)}returntb(b,a),b.prototype.subscribeCore=function(a){varb=newEb;returnnewFb(this.source.subscribe(newYd(a,this._dt,this._s,b)),b)},b}(kc),Yd=function(a){functionb(b,c,d,e){this._o=b,this._d=c,this._scheduler=d,this._c=e,this._v=null,this._hv=!1,this._id=0,a.call(this)}returntb(b,a),b.prototype.next=function(a){this._hv=!0,this._v=a;varb=++this._id,c=newDb;this._c.setDisposable(c),c.setDisposable(this._scheduler.scheduleFuture(this,this._d,function(c,d){d._hv&&d._id===b&&d._o.onNext(a),d._hv=!1}))},b.prototype.error=function(a){this._c.dispose(),this._o.onError(a),this._hv=!1,this._id++},b.prototype.completed=function(){this._c.dispose(),this._hv&&this._o.onNext(this._v),this._o.onCompleted(),this._hv=!1,this._id++},b}(gc);Yb.debounce=function(){if(ua(arguments[0]))return$(this,arguments[0]);if("number"==typeofarguments[0])returnnewXd(this,arguments[0],arguments[1]);thrownewError("Invalid arguments")};varZd=function(a){functionb(b,c){this.source=b,this._s=c,a.call(this)}returntb(b,a),b.prototype.subscribeCore=function(a){returnthis.source.subscribe(new$d(a,this._s))},b}(kc),$d=function(a){functionb(b,c){this._o=b,this._s=c,a.call(this)}returntb(b,a),b.prototype.next=function(a){this._o.onNext({value:a,timestamp:this._s.now()})},b.prototype.error=function(a){this._o.onError(a)},b.prototype.completed=function(){this._o.onCompleted()},b}(gc);Yb.timestamp=function(a){returnKb(a)||(a=Vb),newZd(this,a)};var_d=function(a){functionb(b,c){this.source=b,this._sampler=c,a.call(this)}returntb(b,a),b.prototype.subscribeCore=function(a){varb={o:a,atEnd:!1,value:null,hasValue:!1,sourceSubscription:newDb};returnb.sourceSubscription.setDisposable(this.source.subscribe(newbe(b))),newFb(b.sourceSubscription,this._sampler.subscribe(newae(b)))},b}(kc),ae=function(a){functionb(b){this._s=b,a.call(this)}returntb(b,a),b.prototype._handleMessage=function(){this._s.hasValue&&(this._s.hasValue=!1,this._s.o.onNext(this._s.value)),this._s.atEnd&&this._s.o.onCompleted()},b.prototype.next=function(){this._handleMessage()},b.prototype.error=function(a){this._s.onError(a)},b.prototype.completed=function(){this._handleMessage()},b}(gc),be=function(a){functionb(b){this._s=b,a.call(this)}returntb(b,a),b.prototype.next=function(a){this._s.hasValue=!0,this._s.value=a},b.prototype.error=function(a){this._s.o.onError(a)},b.prototype.completed=function(){this._s.atEnd=!0,this._s.sourceSubscription.dispose()},b}(gc);Yb.sample=function(a,b){returnKb(b)||(b=Vb),"number"==typeofa?new_d(this,Wd(a,b)):new_d(this,a)};varce=ma.TimeoutError=function(a){this.message=a||"Timeout has occurred",this.name="TimeoutError",Error.call(this)};ce.prototype=Object.create(Error.prototype),Yb.timeout=function(){vara=arguments[0];if(ainstanceofDate||"number"==typeofa)returnaa(this,a,arguments[1],arguments[2]);if(ic.isObservable(a)||ua(a))return_(this,a,arguments[1],arguments[2]);thrownewError("Invalid arguments")},Yb.throttle=function(a,b){Kb(b)||(b=Vb);varc=+a||0;if(0>=c)thrownewRangeError("windowDuration cannot be less or equal zero.");vard=this;returnnewie(function(a){vare=0;returnd.subscribe(function(d){varf=b.now();(0===e||f-e>=c)&&(e=f,a.onNext(d))},function(b){a.onError(b)},function(){a.onCompleted()})},d)};varde=function(a){functionb(b,c){this.source=b,this.controller=newle,c&&c.subscribe?this.pauser=this.controller.merge(c):this.pauser=this.controller,a.call(this)}returntb(b,a),b.prototype._subscribe=function(a){varb=this.source.publish(),c=b.subscribe(a),d=zb,e=this.pauser.distinctUntilChanged().subscribe(function(a){a?d=b.connect():(d.dispose(),d=zb)});returnnewGb([c,d,e])},b.prototype.pause=function(){this.controller.onNext(!1)},b.prototype.resume=function(){this.controller.onNext(!0)},b}(ic);Yb.pausable=function(a){returnnewde(this,a)};varee=function(b){functionc(a,c){this.source=a,this.controller=newle,c&&c.subscribe?this.pauser=this.controller.merge(c):this.pauser=this.controller,b.call(this)}returntb(c,b),c.prototype._subscribe=function(b){functionc(){for(;e.length>0;)b.onNext(e.shift())}vard,e=[],f=ba(this.source,this.pauser.startWith(!1).distinctUntilChanged(),function(a,b){return{data:a,shouldFire:b}}).subscribe(function(f){d!==a&&f.shouldFire!==d?(d=f.shouldFire,f.shouldFire&&c()):(d=f.shouldFire,f.shouldFire?b.onNext(f.data):e.push(f.data))},function(a){c(),b.onError(a)},function(){c(),b.onCompleted()});returnf},c.prototype.pause=function(){this.controller.onNext(!1)},c.prototype.resume=function(){this.controller.onNext(!0)},c}(ic);Yb.pausableBuffered=function(a){returnnewee(this,a)};varfe=function(a){functionb(b,c,d){a.call(this),this.subject=newge(c,d),this.source=b.multicast(this.subject).refCount()}returntb(b,a),b.prototype._subscribe=function(a){returnthis.source.subscribe(a)},b.prototype.request=function(a){returnthis.subject.request(null==a?-1:a)},b}(ic),ge=function(a){functionb(b,c){null==b&&(b=!0),a.call(this),this.subject=newle,this.enableQueue=b,this.queue=b?[]:null,this.requestedCount=0,this.requestedDisposable=null,this.error=null,this.hasFailed=!1,this.hasCompleted=!1,this.scheduler=c||Qb}returntb(b,a),ub(b.prototype,ec,{_subscribe:function(a){returnthis.subject.subscribe(a)},onCompleted:function(){this.hasCompleted=!0,this.enableQueue&&0!==this.queue.length?this.queue.push(Zb.createOnCompleted()):(this.subject.onCompleted(),this.disposeCurrentRequest())},onError:function(a){this.hasFailed=!0,this.error=a,this.enableQueue&&0!==this.queue.length?this.queue.push(Zb.createOnError(a)):(this.subject.onError(a),this.disposeCurrentRequest())},onNext:function(a){this.requestedCount<=0?this.enableQueue&&this.queue.push(Zb.createOnNext(a)):(0===this.requestedCount--&&this.disposeCurrentRequest(),this.subject.onNext(a))},_processRequest:function(a){if(this.enableQueue)for(;this.queue.length>0&&(a>0||"N"!==this.queue[0].kind);){varb=this.queue.shift();b.accept(this.subject),"N"===b.kind?a--:(this.disposeCurrentRequest(),this.queue=[])}returna},request:function(a){this.disposeCurrentRequest();varb=this;returnthis.requestedDisposable=this.scheduler.schedule(a,function(a,c){vard=b._processRequest(c),e=b.hasCompleted||b.hasFailed;return!e&&d>0?(b.requestedCount=d,yb(function(){b.requestedCount=0})):void0}),this.requestedDisposable},disposeCurrentRequest:function(){this.requestedDisposable&&(this.requestedDisposable.dispose(),this.requestedDisposable=null)}}),b}(ic);Yb.controlled=function(a,b){returna&&Kb(a)&&(b=a,a=!0),null==a&&(a=!0),newfe(this,a,b)},Yb.pipe=function(a){functionb(){c.resume()}varc=this.pausableBuffered();returna.addListener("drain",b),c.subscribe(function(b){!a.write(String(b))&&c.pause()},function(b){a.emit("error",b)},function(){!a._isStdio&&a.end(),a.removeListener("drain",b)}),c.resume(),a};varhe=function(a){functionb(b,c){this._o=b,this._xform=c,a.call(this)}returntb(b,a),b.prototype.next=function(a){varb=wa(this._xform["@@transducer/step"]).call(this._xform,this._o,a);b===va&&this._o.onError(b.e)},b.prototype.error=function(a){this._o.onError(a)},b.prototype.completed=function(){this._xform["@@transducer/result"](this._o)},b}(gc);Yb.transduce=function(a){varb=this;returnnewie(function(c){vard=a(ca(c));returnb.subscribe(newhe(c,d))},b)};varie=ma.AnonymousObservable=function(a){functionb(a){returna&&ua(a.dispose)?a:ua(a)?yb(a):zb}functionc(a,c){vard=c[0],f=c[1],g=wa(f.__subscribe).call(f,d);g!==va||d.fail(va.e)||e(va.e),d.setDisposable(b(g))}functiond(b,c){this.source=c,this.__subscribe=b,a.call(this)}returntb(d,a),d.prototype._subscribe=function(a){varb=newje(a),d=[b,this];returnQb.scheduleRequired()?Qb.schedule(d,c):c(null,d),b},d}(ic),je=function(a){functionb(b){a.call(this),this.observer=b,this.m=newDb}tb(b,a);varc=b.prototype;returnc.next=function(a){varb=wa(this.observer.onNext).call(this.observer,a);b===va&&(this.dispose(),e(b.e))},c.error=function(a){varb=wa(this.observer.onError).call(this.observer,a);this.dispose(),b===va&&e(b.e)},c.completed=function(){vara=wa(this.observer.onCompleted).call(this.observer);this.dispose(),a===va&&e(a.e)},c.setDisposable=function(a){this.m.setDisposable(a)},c.getDisposable=function(){returnthis.m.getDisposable()},c.dispose=function(){a.prototype.dispose.call(this),this.m.dispose()},b}(gc),ke=function(a,b){this._s=a,this._o=b};ke.prototype.dispose=function(){if(!this._s.isDisposed&&null!==this._o){vara=this._s.observers.indexOf(this._o);this._s.observers.splice(a,1),this._o=null}};varle=ma.Subject=function(a){functionb(){a.call(this),this.isDisposed=!1,this.isStopped=!1,this.observers=[],this.hasError=!1}returntb(b,a),ub(b.prototype,ec.prototype,{_subscribe:function(a){returnBb(this),this.isStopped?this.hasError?(a.onError(this.error),zb):(a.onCompleted(),zb):(this.observers.push(a),newke(this,a))},hasObservers:function(){returnBb(this),this.observers.length>0},onCompleted:function(){if(Bb(this),!this.isStopped){this.isStopped=!0;for(vara=0,b=c(this.observers),d=b.length;d>a;a++)b[a].onCompleted();this.observers.length=0}},onError:function(a){if(Bb(this),!this.isStopped){this.isStopped=!0,this.error=a,this.hasError=!0;for(varb=0,d=c(this.observers),e=d.length;e>b;b++)d[b].onError(a);this.observers.length=0}},onNext:function(a){if(Bb(this),!this.isStopped)for(varb=0,d=c(this.observers),e=d.length;e>b;b++)d[b].onNext(a)},dispose:function(){this.isDisposed=!0,this.observers=null}}),b.create=function(a,b){returnnewne(a,b)},b}(ic),me=ma.AsyncSubject=function(a){functionb(){a.call(this),this.isDisposed=!1,this.isStopped=!1,this.hasValue=!1,this.observers=[],this.hasError=!1}returntb(b,a),ub(b.prototype,ec.prototype,{_subscribe:function(a){returnBb(this),this.isStopped?(this.hasError?a.onError(this.error):this.hasValue?(a.onNext(this.value),a.onCompleted()):a.onCompleted(),zb):(this.observers.push(a),newke(this,a))},hasObservers:function(){returnBb(this),this.observers.length>0},onCompleted:function(){vara,b;if(Bb(this),!this.isStopped){this.isStopped=!0;vard=c(this.observers),b=d.length;if(this.hasValue)for(a=0;b>a;a++){vare=d[a];e.onNext(this.value),e.onCompleted()}elsefor(a=0;b>a;a++)d[a].onCompleted();this.observers.length=0}},onError:function(a){if(Bb(this),!this.isStopped){this.isStopped=!0,this.hasError=!0,this.error=a;for(varb=0,d=c(this.observers),e=d.length;e>b;b++)d[b].onError(a);this.observers.length=0}},onNext:function(a){Bb(this),this.isStopped||(this.value=a,this.hasValue=!0)},dispose:function(){this.isDisposed=!0,this.observers=null,this.error=null,this.value=null}}),b}(ic),ne=ma.AnonymousSubject=function(a){functionb(b,c){this.observer=b,this.observable=c,a.call(this)}returntb(b,a),ub(b.prototype,ec.prototype,{_subscribe:function(a){returnthis.observable.subscribe(a)},onCompleted:function(){this.observer.onCompleted()},onError:function(a){this.observer.onError(a)},onNext:function(a){this.observer.onNext(a)}}),b}(ic),oe=ma.BehaviorSubject=function(a){functionb(b){a.call(this),this.value=b,this.observers=[],this.isDisposed=!1,this.isStopped=!1,this.hasError=!1}returntb(b,a),ub(b.prototype,ec.prototype,{_subscribe:function(a){returnBb(this),this.isStopped?(this.hasError?a.onError(this.error):a.onCompleted(),zb):(this.observers.push(a),a.onNext(this.value),newke(this,a))},getValue:function(){returnBb(this),this.hasError&&e(this.error),this.value},hasObservers:function(){returnBb(this),this.observers.length>0},onCompleted:function(){if(Bb(this),!this.isStopped){this.isStopped=!0;for(vara=0,b=c(this.observers),d=b.length;d>a;a++)b[a].onCompleted();this.observers.length=0}},onError:function(a){if(Bb(this),!this.isStopped){this.isStopped=!0,this.hasError=!0,this.error=a;for(varb=0,d=c(this.observers),e=d.length;e>b;b++)d[b].onError(a);this.observers.length=0}},onNext:function(a){if(Bb(this),!this.isStopped){this.value=a;for(varb=0,d=c(this.observers),e=d.length;e>b;b++)d[b].onNext(a)}},dispose:function(){this.isDisposed=!0,this.observers=null,this.value=null,this.error=null}}),b}(ic),pe=ma.ReplaySubject=function(a){functionb(a,b){returnyb(function(){b.dispose(),!a.isDisposed&&a.observers.splice(a.observers.indexOf(b),1)})}functiond(b,c,d){this.bufferSize=null==b?e:b,this.windowSize=null==c?e:c,this.scheduler=d||Qb,this.q=[],this.observers=[],this.isStopped=!1,this.isDisposed=!1,this.hasError=!1,this.error=null,a.call(this)}vare=Math.pow(2,53)-1;returntb(d,a),ub(d.prototype,ec.prototype,{_subscribe:function(a){Bb(this);varc=newjc(this.scheduler,a),d=b(this,c);this._trim(this.scheduler.now()),this.observers.push(c);for(vare=0,f=this.q.length;f>e;e++)c.onNext(this.q[e].value);returnthis.hasError?c.onError(this.error):this.isStopped&&c.onCompleted(),c.ensureActive(),d},hasObservers:function(){returnBb(this),this.observers.length>0},_trim:function(a){for(;this.q.length>this.bufferSize;)this.q.shift();for(;this.q.length>0&&a-this.q[0].interval>this.windowSize;)this.q.shift()},onNext:function(a){if(Bb(this),!this.isStopped){varb=this.scheduler.now();this.q.push({interval:b,value:a}),this._trim(b);for(vard=0,e=c(this.observers),f=e.length;f>d;d++){varg=e[d];g.onNext(a),g.ensureActive()}}},onError:function(a){if(Bb(this),!this.isStopped){this.isStopped=!0,this.error=a,this.hasError=!0;varb=this.scheduler.now();this._trim(b);for(vard=0,e=c(this.observers),f=e.length;f>d;d++){varg=e[d];g.onError(a),g.ensureActive()}this.observers.length=0}},onCompleted:function(){if(Bb(this),!this.isStopped){this.isStopped=!0;vara=this.scheduler.now();this._trim(a);for(varb=0,d=c(this.observers),e=d.length;e>b;b++){varf=d[b];f.onCompleted(),f.ensureActive()}this.observers.length=0}},dispose:function(){this.isDisposed=!0,this.observers=null}}),d}(ic);ma.Pauser=function(a){functionb(){a.call(this)}returntb(b,a),b.prototype.pause=function(){this.onNext(!1)},b.prototype.resume=function(){this.onNext(!0)},b}(le),"function"==typeofdefine&&"object"==typeofdefine.amd&&define.amd?(la.Rx=ma,define(function(){returnma})):ea&&fa?ja?(fa.exports=ma).Rx=ma:ea.Rx=ma:la.Rx=ma;varqe=j()}).call(this);//# sourceMappingURL=rx.lite.map