Opal-Estate-Pro/node_modules/rx/dist/rx.experimental.min.js

3 lines
7.0 KiB
JavaScript
Raw Normal View History

2019-09-13 04:44:33 +02:00
/* Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.*/
(function(a){function b(a){return a&&a.Object===Object?a:null}var c={"function":!0,object:!0},d=c[typeof exports]&&exports&&!exports.nodeType?exports:null,e=c[typeof module]&&module&&!module.nodeType?module:null,f=b(d&&e&&"object"==typeof global&&global),g=b(c[typeof self]&&self),h=b(c[typeof window]&&window),i=(e&&e.exports===d?d:null,b(c[typeof this]&&this)),j=f||h!==(i&&i.window)&&h||g||i||Function("return this")();"function"==typeof define&&define.amd?define(["./rx"],function(b,c){return a(j,c,b)}):"object"==typeof module&&module&&module.exports===d?module.exports=a(j,module.exports,require("./rx")):j.Rx=a(j,{},j.Rx)}).call(this,function(a,b,c,d){function e(a){return function(){try{return a.apply(this,arguments)}catch(b){return G.e=b,G}}}function f(a,b){return new J(a,b)}function g(){for(var a=arguments.length,b=new Array(a),c=0;a>c;c++)b[c]=arguments[c];return b}var h=c.Observable,i=h.prototype,j=c.ObservableBase,k=c.internals.AbstractObserver,l=c.FlatMapObservable,m=h.concat,n=h.defer,o=h.empty,p=c.Disposable.empty,q=c.CompositeDisposable,r=c.SerialDisposable,s=c.SingleAssignmentDisposable,t=c.internals.Enumerable,u=t.of,v=c.Scheduler.currentThread,w=c.AsyncSubject,x=c.Observer,y=c.internals.inherits,z=c.internals.addProperties,A=c.helpers,B=A.noop,C=A.isPromise,D=A.isFunction,E=(c.helpers.isIterable,c.helpers.isArrayLike,c.Scheduler.isScheduler),F=h.fromPromise,G={e:{}},H=c.internals.tryCatch=function(a){if(!D(a))throw new TypeError("fn must be a function");return e(a)},I="function"==typeof Symbol&&Symbol.iterator||"_es6shim_iterator_";a.Set&&"function"==typeof(new a.Set)["@@iterator"]&&(I="@@iterator");c.doneEnumerator={done:!0,value:d},c.helpers.isIterable=function(a){return a&&a[I]!==d},c.helpers.isArrayLike=function(a){return a&&a.length!==d};c.helpers.iterator=I;var J=function(a){function b(a,b){this.c=a,this.s=b}return y(b,a),b.prototype[I]=function(){var a=this;return{next:function(){return a.c()?{done:!1,value:a.s}:{done:!0,value:void 0}}}},b}(t);i.letBind=i.let=function(a){return a(this)},h["if"]=function(a,b,c){return n(function(){return c||(c=o()),C(b)&&(b=F(b)),C(c)&&(c=F(c)),"function"==typeof c.now&&(c=o(c)),a()?b:c})},h["for"]=h.forIn=function(a,b,c){return u(a,b,c).concat()};var K=h["while"]=h.whileDo=function(a,b){return C(b)&&(b=F(b)),f(a,b).concat()};i.doWhile=function(a){return m([this,K(a,this)])},h["case"]=function(a,b,c){return n(function(){C(c)&&(c=F(c)),c||(c=o()),E(c)&&(c=o(c));var d=b[a()];return C(d)&&(d=F(d)),d||c})};var L=function(a){function b(b,c,d){this.source=b,this._fn=c,this._scheduler=d,a.call(this)}function c(a,b){var c,d=a[0],e=a[1];if(!(d.q.length>0))return void(d.isAcquired=!1);c=d.q.shift();var f=new s;d.d.add(f),f.setDisposable(c.subscribe(new M(d,e,f))),b([d,e])}return y(b,a),b.prototype._ensureActive=function(a){var b=!1;a.q.length>0&&(b=!a.isAcquired,a.isAcquired=!0),b&&a.m.setDisposable(this._scheduler.scheduleRecursive([a,this],c))},b.prototype.subscribeCore=function(a){var b=new r,c=new q(b),d={q:[],m:b,d:c,activeCount:0,isAcquired:!1,o:a};return d.q.push(this.source),d.activeCount++,this._ensureActive(d),c},b}(j),M=function(a){function b(b,c,d){this._s=b,this._p=c,this._m1=d,a.call(this)}return y(b,a),b.prototype.next=function(a){this._s.o.onNext(a);var b=H(this._p._fn)(a);return b===G?this._s.o.onError(b.e):(this._s.q.push(b),this._s.activeCount++,void this._p._ensureActive(this._s))},b.prototype.error=function(a){this._s.o.onError(a)},b.prototype.completed=function(){this._s.d.remove(this._m1),this._s.activeCount--,0===this._s.activeCount&&this._s.o.onCompleted()},b}(k);i.expand=function(a,b){return E(b)||(b=v),new L(this,a,b)};var N=function(a){function b(b,c){this._sources=b,this._cb=c,a.call(this)}return y(b,a),b.prototype.subscribeCore=function(a){if(0===this._sources.length)return a.onCompleted(),p;for(var b=this._sources.length,c={finished:!1,hasResults:new Array(b),hasCompleted:new Array(b),results:new Array(b)},d=new q,e=0,f=this._sources.length;f>e;e++){var g=this._sources[e];C(g)&&(g=F(g)),d.add(g.subscribe(new O(a,c,e,this._cb,d)))}return d},b}(j),O=f
//# sourceMappingURL=rx.experimental.map