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

5 lines
77 KiB
JavaScript
Raw Permalink 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 la.e=b,la}}}function e(a){throw a}function f(a,b){if(na&&b.stack&&"object"==typeof a&&null!==a&&a.stack&&-1===a.stack.indexOf(ra)){for(var c=[],d=b;d;d=d.source)d.stack&&c.unshift(d.stack);c.unshift(a.stack);var e=c.join("\n"+ra+"\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===pa&&d>=qa&&fe>=d}function i(a){return-1!==a.indexOf("(module.js:")||-1!==a.indexOf("(node.js:")}function j(){if(na)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 pa=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=lb(b),i=h.length,j=lb(c),k=j.length;if(i!==k&&!e)return!1;for(var l,m=i;m--;)if(l=h[m],!(e?l in c:ib.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 Na:case Oa:return+a===+b;case Pa:return a.name===b.name&&a.message===b.message;case Sa:return a!==+a?b!==+b:a===+b;case Ua:case Wa: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&&kb>=a}function p(a){return n(a)&&o(a.length)&&!!gb[jb.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=ob(a),h=ob(b),i=Ma,j=Ma;g||(i=jb.call(a),i===La?i=Ta:i!==Ta&&(g=p(a))),h||(j=jb.call(b),j===La&&(j=Ta));var k=i===Ta&&!nb(a),n=j===Ta&&!nb(b),o=i===j;if(o&&!g&&!k)return m(a,b,i);if(!d){var q=k&&ib.call(a,"__wrapped__"),s=n&&ib.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||!mb(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.scheduler=a,this.disposable=b,this.isDisposed=!1}function w(a,b){b.isDisposed||(b.isDisposed=!0,b.disposable.dispose())}function x(a,b){this.id=a,this.value=b}function y(a){this._s=a,this.isDisposed=!1}function z(a){this._s=a}function A(a){this._s=a,this._l=a.length,this._i=0}function B(a){this._a=a}function C(a){this._a=a,this._l=G(a),this._i=0}function D(a){return"number"==typeof a&&ba.isFinite(a)}function E(b){var c,d=b[Ea];if(!d&&"string"==typeof b)return c=new z(b),c[Ea]();if(!d&&b.length!==a)return c=new B(b),c[Ea]();if(!d)throw new TypeError("Object is not iterable");return b[Ea]()}function F(a){var b=+a;return 0===b?b:isNaN(b)?b:0>b?-1:1}function G(a){var b=+a.length;return isNaN(b)?0:0!==b&&D(b)?(b=F(b)*Math.floor(Math.abs(b)),0>=b?0:b>Fc?Fc:b):b}function H(a,b){return Jb(a)||(a=Pb),new Hc(b,a)}function I(a,b){this.observer=a,this.parent=b}function J(a,b){return a.amb(b)}function K(){return!1}function L(){for(var a=arguments.length,b=new Array(a),c=0;a>c;c++)b[c]=arguments[c];return b}function K(){return!1}function L(){for(var a=arguments.length,b=new Array(a),c=0;a>c;c++)b[c]=arguments[c];return b}function K(){
g!==la||d.fail(la.e)||e(la.e),d.setDisposable(b(g))}function d(){a.call(this)}return qb(d,a),d.prototype._subscribe=function(a){var b=new be(a),d=[b,this];return Pb.scheduleRequired()?Pb.schedule(d,c):c(null,d),b},d.prototype.subscribeCore=Da,d}(lc),nc=ca.FlatMapObservable=function(a){function b(b,c,d,e){this.resultSelector=ka(d)?d:null,this.selector=Ia(ka(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,gc.call(this)}return qb(b,a),b.prototype.subscribeCore=function(a){return this.source.subscribe(new c(a,this.selector,this.resultSelector,this))},qb(c,gc),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=ma(this.selector)(a,b,this.source);return c===la?this.o.onError(c.e):(ja(c)&&(c=yc(c)),(Ha(c)||Ga(c))&&(c=lc.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}(mc),oc=ca.internals.Enumerable=function(){};y.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this._s.isDisposed=!0)};var pc=function(a){function b(b){this.sources=b,a.call(this)}function c(a,b){if(!a.isDisposed){var c=ma(a.e.next).call(a.e);if(c===la)return a.o.onError(c.e);if(c.done)return a.o.onCompleted();var e=c.value;ja(e)&&(e=yc(e));var f=new Bb;a.subscription.setDisposable(f),f.setDisposable(e.subscribe(new d(a,b)))}}function d(a,b){this._state=a,this._recurse=b,gc.call(this)}return qb(b,a),b.prototype.subscribeCore=function(a){var b=new Cb,d={isDisposed:!1,o:a,subscription:b,e:this.sources[Ea]()},e=Pb.scheduleRecursive(d,c);return new Eb([b,e,new y(d)])},qb(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}(mc);oc.prototype.concat=function(){return new pc(this)};var qc=function(a){function b(b){this.sources=b,a.call(this)}function c(a,b){if(!a.isDisposed){var c=ma(a.e.next).call(a.e);if(c===la)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;ja(e)&&(e=yc(e));var f=new Bb;a.subscription.setDisposable(f),f.setDisposable(e.subscribe(new d(a,b)))}}function d(a,b){this._state=a,this._recurse=b,gc.call(this)}return qb(b,a),b.prototype.subscribeCore=function(a){var b=new Cb,d={isDisposed:!1,e:this.sources[Ea](),subscription:b,lastError:null,o:a},e=Pb.scheduleRecursive(d,c);return new Eb([b,e,new y(d)])},qb(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}(mc);oc.prototype.catchError=function(){return new qc(this)};var rc=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 qb(b,a),b.prototype[Ea]=function(){return new c(this)},c.prototype.next=function(){return 0===this.l?Fa:(this.l>0&&this.l--,{done:!1,value:this.v})},b}(oc),sc=oc.repeat=function(a,b){return new rc(a,b)},tc=function(a){function b(a,b,c){this.s=a,this.fn=b?Ia(b,c,3):null}function c(a){this.i=-1,this.s=a.s,this.l=this.s.length,this.fn=a.fn}return qb(b,a),b.prototype[Ea]=function(){return new c(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]}:Fa},b}(oc),uc=oc.of=function(a,b,c){return new tc(a,b,c)},vc=function(a){function b(b,c){this.source=b,this._s=c,a.call(this)}return qb(b,a),b.prototype.subscribeCore=function(a){return this.source.subscribe(new kc(this._s,a))},b}(mc);fc.observeOn=function(a){return new vc(this,a)};var wc=function(a){function b(b,c){this.source=b,this._s=c,a.call(this)}function c(a,b){var c=b[0],d=b[1],e=b[2];d.setDisposable(new v(a,c.subscribe(e)))}return qb(b,a),b.prototype.subscribeCore=function(a){var b=new Bb,d=new Cb;return d.setDisposable(b
a.call(this)}return qb(c,a),c.prototype.subscribeCore=function(a){var c,d=new de,e=new de,f=this._notifier(d),g=f.subscribe(e),h=this.source["@@iterator"](),i={isDisposed:!1},j=new Cb,k=Pb.scheduleRecursive(null,function(b,f){if(!i.isDisposed){var g=h.next();if(g.done)return void(c?a.onError(c):a.onCompleted());var k=g.value;ja(k)&&(k=yc(k));var l=new Bb,m=new Bb;j.setDisposable(new Db(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()}))}});return new Eb([g,j,k,b(i)])},c}(mc);fc.repeatWhen=function(a){return new Jd(Q(this),a)};var Kd=function(a){function b(b,c,d,e){this.source=b,this.accumulator=c,this.hasSeed=d,this.seed=e,a.call(this)}return qb(b,a),b.prototype.subscribeCore=function(a){return this.source.subscribe(new Ld(a,this))},b}(mc),Ld=function(a){function b(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)}return qb(b,a),b.prototype.next=function(a){return!this._hv&&(this._hv=!0),this._ha?this._a=ma(this._fn)(this._a,a,this._i,this._p):(this._a=this._hs?ma(this._fn)(this._s,a,this._i,this._p):a,this._ha=!0),this._a===la?this._o.onError(this._a.e):(this._o.onNext(this._a),void this._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);fc.scan=function(){var a,b=!1,c=arguments[0];return 2===arguments.length&&(b=!0,a=arguments[1]),new Kd(this,c,b,a)};var Md=function(a){function b(b,c){this.source=b,this._c=c,a.call(this)}return qb(b,a),b.prototype.subscribeCore=function(a){return this.source.subscribe(new Nd(a,this._c))},b}(mc),Nd=function(a){function b(b,c){this._o=b,this._c=c,this._q=[],a.call(this)}return qb(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);fc.skipLast=function(a){if(0>a)throw new Aa;return new Md(this,a)},fc.startWith=function(){var a,b=0;arguments.length&&Jb(arguments[0])?(a=arguments[0],b=1):a=Nb;for(var c=[],d=b,e=arguments.length;e>d;d++)c.push(arguments[d]);return ad.apply(null,[Ic(c,a),this])};var Od=function(a){function b(b,c){this._o=b,this._c=c,this._q=[],a.call(this)}return qb(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);fc.takeLast=function(a){if(0>a)throw new Aa;var b=this;return new ae(function(c){return b.subscribe(new Od(c,a))},b)};var Pd=function(a){function b(b,c){this._o=b,this._c=c,this._q=[],a.call(this)}return qb(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(){this._o.onNext(this._q),this._o.onCompleted()},b}(gc);fc.takeLastBuffer=function(a){if(0>a)throw new Aa;var b=this;return new ae(function(c){return b.subscribe(new Pd(c,a))},b)},fc.windowWithCount=fc.windowCount=function(a,b){var c=this;if(+a||(a=0),Math.abs(a)===1/0&&(a=0),0>=a)throw new Aa;if(null==b&&(b=a),+b||(b=0),Math.abs(b)===1/0&&(b=0),0>=b)throw new Aa;return new ae(function(d){function e(){var a=new de;i.push(a),d.onNext(sb(a,g))}var f=new Bb,g=new Fb(f),h=0,i=[];return e(),f.setDisposable(c.subscribe(function(c){for(var d=0,f=i.length;f>d;d++)i[d].onNext(c);var g=h-a+1;g>=0&&g%b===0&&i.shift().onCompleted(),++h%b===0&&e()},function(a){for(;i.length>0;)i.shift().onError(a);d.onError(a)},function(){for(;i.length>0;)i.shift().onCompleted();d.onCompleted()})),g},c)},fc.flatMapConcat=fc.concatMap=function(a,b,c){return new nc(this,a,b,c).merge(1)},fc.concatMapObserver=fc.selectConcatObserver=function(a,b,c,d){var e=this,f=Ia(a,d,2),g=Ia(b,d,1),h=Ia(c,d,0);
//# sourceMappingURL=rx.compat.map