biofriction-wp-theme/node_modules/rx/dist/rx.lite.compat.min.js

5 lines
86 KiB
JavaScript
Raw Normal View History

2021-10-26 14:18:09 +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}function c(a){for(var b=a.length,c=new Array(b),d=0;b>d;d++)c[d]=a[d];return c}function d(a){return function(){try{return a.apply(this,arguments)}catch(b){return va.e=b,va}}}function e(a){throw a}function f(a,b){if(xa&&b.stack&&"object"==typeof a&&null!==a&&a.stack&&-1===a.stack.indexOf(Ba)){for(var c=[],d=b;d;d=d.source)d.stack&&c.unshift(d.stack);c.unshift(a.stack);var e=c.join("\n"+Ba+"\n");a.stack=g(e)}}function g(a){for(var b=a.split("\n"),c=[],d=0,e=b.length;e>d;d++){var f=b[d];h(f)||i(f)||!f||c.push(f)}return c.join("\n")}function h(a){var b=k(a);if(!b)return!1;var c=b[0],d=b[1];return c===za&&d>=Aa&&xe>=d}function i(a){return-1!==a.indexOf("(module.js:")||-1!==a.indexOf("(node.js:")}function j(){if(xa)try{throw new Error}catch(a){var b=a.stack.split("\n"),c=b[0].indexOf("@")>0?b[1]:b[2],d=k(c);if(!d)return;return za=d[0],d[1]}}function k(a){var b=/at .+ \((.+):(\d+):(?:\d+)\)$/.exec(a);if(b)return[b[1],Number(b[2])];var c=/at ([^ ]+):(\d+):(?:\d+)$/.exec(a);if(c)return[c[1],Number(c[2])];var d=/.*@(.+):(\d+)$/.exec(a);return d?[d[1],Number(d[2])]:void 0}function l(b,c,d,e,f,g){var h=vb(b),i=h.length,j=vb(c),k=j.length;if(i!==k&&!e)return!1;for(var l,m=i;m--;)if(l=h[m],!(e?l in c:sb.call(c,l)))return!1;for(var n=e;++m<i;){l=h[m];var o,p=b[l],q=c[l];if(!(o===a?d(p,q,e,f,g):o))return!1;n||(n="constructor"===l)}if(!n){var r=b.constructor,s=c.constructor;if(r!==s&&"constructor"in b&&"constructor"in c&&!("function"==typeof r&&r instanceof r&&"function"==typeof s&&s instanceof s))return!1}return!0}function m(a,b,c){switch(c){case Xa:case Ya:return+a===+b;case Za:return a.name===b.name&&a.message===b.message;case ab:return a!==+a?b!==+b:a===+b;case cb:case eb:return a===b+""}return!1}function n(a){return!!a&&"object"==typeof a}function o(a){return"number"==typeof a&&a>-1&&a%1===0&&ub>=a}function p(a){return n(a)&&o(a.length)&&!!qb[tb.call(a)]}function q(a,b){for(var c=-1,d=a.length;++c<d;)if(b(a[c],c,a))return!0;return!1}function r(b,c,d,e,f,g){var h=-1,i=b.length,j=c.length;if(i!==j&&!(e&&j>i))return!1;for(;++h<i;){var k,l=b[h],m=c[h];if(k!==a){if(k)continue;return!1}if(e){if(!q(c,function(a){return l===a||d(l,a,e,f,g)}))return!1}else if(l!==m&&!d(l,m,e,f,g))return!1}return!0}function s(a,b,c,d,e,f){var g=yb(a),h=yb(b),i=Wa,j=Wa;g||(i=tb.call(a),i===Va?i=bb:i!==bb&&(g=p(a))),h||(j=tb.call(b),j===Va&&(j=bb));var k=i===bb&&!xb(a),n=j===bb&&!xb(b),o=i===j;if(o&&!g&&!k)return m(a,b,i);if(!d){var q=k&&sb.call(a,"__wrapped__"),s=n&&sb.call(b,"__wrapped__");if(q||s)return c(q?a.value():a,s?b.value():b,d,e,f)}if(!o)return!1;e||(e=[]),f||(f=[]);for(var t=e.length;t--;)if(e[t]===a)return f[t]===b;e.push(a),f.push(b);var u=(g?r:l)(a,b,c,d,e,f);return e.pop(),f.pop(),u}function t(a,b,c,d,e){return a===b?!0:null==a||null==b||!wb(a)&&!n(b)?a!==a&&b!==b:s(a,b,t,c,d,e)}function u(a,b){for(var c=new Array(a),d=0;a>d;d++)c[d]=b();return c}function v(a,b){this.id=a,this.value=b}function w(a){this._s=a,this.isDisposed=!1}function x(a){this._s=a}function y(a){this._s=a,this._l=a.length,this._i=0}function z(a){this._a=a}function A(a){this._a=a,this._l=E(a),this._i=0}function B(a){return"number"==typeof a&&la.isFinite(a)}function C(b){var c,d=b[Oa];if(!d&&"string"==typeof b)return c=new x(b),c[Oa]();if(!d&&b.length!==a)return c=new z(b),c[Oa]();if(!d)throw new TypeError("Object is not iterable");return b[Oa]()}function D(a){var b=+a;return 0===b?b:isNaN(b)?b:0>b?-1:1}function E(a){var b=+a.length;return isNaN(b)?0:0!==b&&B(b)?(b=D(b)*Math.floor(Math.abs(b)),0>=b?0:b>Hc?Hc:b):b}function F(a,b){return Rb(a)||(a=Xb),new Jc(b,a)}function G(a,b){this.observer=a,this.parent=b}function H(){return!1}function I(){for(var a=arguments.length,b=new Array(a),c=0;a>c;c++)b[c]=arguments[c];return b}function H(){return!1}function I(){for(var a=arguments.length,b=new Array(a),c=0;a>c;c++)b[c]=arguments[c];return b}function H(){return!1}function J(){return[]}function H(){return!1}function J(){return[]}function I(){for(var a=arguments.length,b=new Array(a),c=0;a>c;c++)b[c]=arguments[c];return b}func
this._subscribe=a(this,b)}}return dc=b.prototype,b.isObservable=function(a){return a&&ua(a.subscribe)},dc.subscribe=dc.forEach=function(a,b,c){return this._subscribe("object"==typeof a?a:mc(a,b,c))},dc.subscribeOnNext=function(a,b){return this._subscribe(mc("undefined"!=typeof b?function(c){a.call(b,c)}:a))},dc.subscribeOnError=function(a,b){return this._subscribe(mc(null,"undefined"!=typeof b?function(c){a.call(b,c)}:a))},dc.subscribeOnCompleted=function(a,b){return this._subscribe(mc(null,null,"undefined"!=typeof b?function(){a.call(b)}:a))},b}(),qc=ma.ObservableBase=function(a){function b(a){return a&&ua(a.dispose)?a:ua(a)?Fb(a):Gb}function c(a,c){var d=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))}function d(){a.call(this)}return Ab(d,a),d.prototype._subscribe=function(a){var b=new qe(a),d=[b,this];return Xb.scheduleRequired()?Xb.schedule(d,c):c(null,d),b},d.prototype.subscribeCore=Na,d}(pc),rc=ma.FlatMapObservable=function(a){function b(b,c,d,e){this.resultSelector=ua(d)?d:null,this.selector=Sa(ua(c)?c:function(){return c},e,3),this.source=b,a.call(this)}function c(a,b,c,d){this.i=0,this.selector=b,this.resultSelector=c,this.source=d,this.o=a,nc.call(this)}return Ab(b,a),b.prototype.subscribeCore=function(a){return this.source.subscribe(new c(a,this.selector,this.resultSelector,this))},Ab(c,nc),c.prototype._wrapResult=function(a,b,c){return this.resultSelector?a.map(function(a,d){return this.resultSelector(b,a,c,d)},this):a},c.prototype.next=function(a){var b=this.i++,c=wa(this.selector)(a,b,this.source);return c===va?this.o.onError(c.e):(ta(c)&&(c=Yd(c)),(Ra(c)||Qa(c))&&(c=pc.from(c)),void this.o.onNext(this._wrapResult(c,a,b)))},c.prototype.error=function(a){this.o.onError(a)},c.prototype.completed=function(){this.o.onCompleted()},b}(qc),sc=ma.internals.Enumerable=function(){};w.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this._s.isDisposed=!0)};var tc=function(a){function b(b){this.sources=b,a.call(this)}function c(a,b){if(!a.isDisposed){var c=wa(a.e.next).call(a.e);if(c===va)return a.o.onError(c.e);if(c.done)return a.o.onCompleted();var e=c.value;ta(e)&&(e=Yd(e));var f=new Kb;a.subscription.setDisposable(f),f.setDisposable(e.subscribe(new d(a,b)))}}function d(a,b){this._state=a,this._recurse=b,nc.call(this)}return Ab(b,a),b.prototype.subscribeCore=function(a){var b=new Lb,d={isDisposed:!1,o:a,subscription:b,e:this.sources[Oa]()},e=Xb.scheduleRecursive(d,c);return new Nb([b,e,new w(d)])},Ab(d,nc),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}(qc);sc.prototype.concat=function(){return new tc(this)};var uc=function(a){function b(b){this.sources=b,a.call(this)}function c(a,b){if(!a.isDisposed){var c=wa(a.e.next).call(a.e);if(c===va)return a.o.onError(c.e);if(c.done)return null!==a.lastError?a.o.onError(a.lastError):a.o.onCompleted();var e=c.value;ta(e)&&(e=Yd(e));var f=new Kb;a.subscription.setDisposable(f),f.setDisposable(e.subscribe(new d(a,b)))}}function d(a,b){this._state=a,this._recurse=b,nc.call(this)}return Ab(b,a),b.prototype.subscribeCore=function(a){var b=new Lb,d={isDisposed:!1,e:this.sources[Oa](),subscription:b,lastError:null,o:a},e=Xb.scheduleRecursive(d,c);return new Nb([b,e,new w(d)])},Ab(d,nc),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}(qc);sc.prototype.catchError=function(){return new uc(this)};var vc=function(a){function b(a,b){this.v=a,this.c=null==b?-1:b}function c(a){this.v=a.v,this.l=a.c}return Ab(b,a),b.prototype[Oa]=function(){return new c(this)},c.prototype.next=function(){return 0===this.l?Pa:(this.l>0&&this.l--,{done:!1,value:this.v})},b}(sc),wc=sc.repeat=function(a,b){return new vc(a,b)},xc=function(a){function b(a,b,c){this.s=a,this.fn=b?Sa(b,c,3):null}function c(a){this.i=-1,this.s=a.s,this.l=this.s.length,this.fn=a.fn}return Ab(b,a),b
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}(nc);dc.takeLast=function(a){if(0>a)throw new Ka;var b=this;return new pe(function(c){return b.subscribe(new Ld(c,a))},b)},dc.flatMapConcat=dc.concatMap=function(a,b,c){return new rc(this,a,b,c).merge(1)};var Md=function(a){function b(b,c,d){this.source=b,this.selector=Sa(c,d,3),a.call(this)}function c(a,b){return function(c,d,e){return a.call(this,b.selector(c,d,e),d,e)}}function d(a,b,c){this.o=a,this.selector=b,this.source=c,this.i=0,nc.call(this)}return Ab(b,a),b.prototype.internalMap=function(a,d){return new b(this.source,c(a,this),d)},b.prototype.subscribeCore=function(a){return this.source.subscribe(new d(a,this.selector,this))},Ab(d,nc),d.prototype.next=function(a){var b=wa(this.selector)(a,this.i++,this.source);return b===va?this.o.onError(b.e):void this.o.onNext(b)},d.prototype.error=function(a){this.o.onError(a)},d.prototype.completed=function(){this.o.onCompleted()},b}(qc);dc.map=dc.select=function(a,b){var c="function"==typeof a?a:function(){return a};return this instanceof Md?this.internalMap(c,b):new Md(this,c,b)},dc.pluck=function(){var a=arguments.length,b=new Array(a);if(0===a)throw new Error("List of properties cannot be empty.");for(var c=0;a>c;c++)b[c]=arguments[c];return this.map(M(b,a))},dc.flatMap=dc.selectMany=dc.mergeMap=function(a,b,c){return new rc(this,a,b,c).mergeAll()},dc.flatMapLatest=dc.switchMap=function(a,b,c){return new rc(this,a,b,c).switchLatest()};var Nd=function(a){function b(b,c){this.source=b,this._count=c,a.call(this)}function c(a,b){this._o=a,this._r=b,nc.call(this)}return Ab(b,a),b.prototype.subscribeCore=function(a){return this.source.subscribe(new c(a,this._count))},Ab(c,nc),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}(qc);dc.skip=function(a){if(0>a)throw new Ka;return new Nd(this,a)};var Od=function(a){function b(b,c){this.source=b,this._fn=c,a.call(this)}return Ab(b,a),b.prototype.subscribeCore=function(a){return this.source.subscribe(new Pd(a,this))},b}(qc),Pd=function(a){function b(b,c){this._o=b,this._p=c,this._i=0,this._r=!1,a.call(this)}return Ab(b,a),b.prototype.next=function(a){if(!this._r){var b=wa(this._p._fn)(a,this._i++,this._p);if(b===va)return this._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}(nc);dc.skipWhile=function(a,b){var c=Sa(a,b,3);return new Od(this,c)};var Qd=function(a){function b(b,c){this.source=b,this._count=c,a.call(this)}function c(a,b){this._o=a,this._c=b,this._r=b,nc.call(this)}return Ab(b,a),b.prototype.subscribeCore=function(a){return this.source.subscribe(new c(a,this._count))},Ab(c,nc),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}(qc);dc.take=function(a,b){if(0>a)throw new Ka;return 0===a?Fc(b):new Qd(this,a)};var Rd=function(a){function b(b,c){this.source=b,this._fn=c,a.call(this)}return Ab(b,a),b.prototype.subscribeCore=function(a){return this.source.subscribe(new Sd(a,this))},b}(qc),Sd=function(a){function b(b,c){this._o=b,this._p=c,this._i=0,this._r=!0,a.call(this)}return Ab(b,a),b.prototype.next=function(a){return this._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}(nc);dc.takeWhile=function(a,b){var c=Sa(a,b,3);return new Rd(this,c)};var Td=function(a){function b(b,c,d){this.source=b,this.predicate=Sa(c,d,3),a.call(this)}function c(a,b){return function(c,d,e){return b.predicate(c,d
//# sourceMappingURL=rx.lite.compat.map