work.suroh.tk/node_modules/rx/dist/rx.core.testing.min.js

3 lines
14 KiB
JavaScript
Raw Normal View History

2019-12-02 12:22:45 +00: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.core"],function(b,c){return a(j,c,b)}):"object"==typeof module&&module&&module.exports===d?module.exports=a(j,module.exports,require("./rx.core")):j.Rx=a(j,{},j.Rx)}).call(this,function(a,b,c,d){function e(a,b,c,e,f,g){var h=ja(a),i=h.length,j=ja(b),k=j.length;if(i!==k&&!e)return!1;for(var l,m=i;m--;)if(l=h[m],!(e?l in b:ga.call(b,l)))return!1;for(var n=e;++m<i;){l=h[m];var o,p=a[l],q=b[l];if(!(o===d?c(p,q,e,f,g):o))return!1;n||(n="constructor"===l)}if(!n){var r=a.constructor,s=b.constructor;if(r!==s&&"constructor"in a&&"constructor"in b&&!("function"==typeof r&&r instanceof r&&"function"==typeof s&&s instanceof s))return!1}return!0}function f(a,b,c){switch(c){case L:case M:return+a===+b;case N:return a.name===b.name&&a.message===b.message;case Q:return a!==+a?b!==+b:a===+b;case S:case U:return a===b+""}return!1}function g(a){return!!a&&"object"==typeof a}function h(a){return"number"==typeof a&&a>-1&&a%1===0&&ia>=a}function i(a){return g(a)&&h(a.length)&&!!ea[ha.call(a)]}function j(a,b){for(var c=-1,d=a.length;++c<d;)if(b(a[c],c,a))return!0;return!1}function k(a,b,c,e,f,g){var h=-1,i=a.length,k=b.length;if(i!==k&&!(e&&k>i))return!1;for(;++h<i;){var l,m=a[h],n=b[h];if(l!==d){if(l)continue;return!1}if(e){if(!j(b,function(a){return m===a||c(m,a,e,f,g)}))return!1}else if(m!==n&&!c(m,n,e,f,g))return!1}return!0}function l(a,b,c,d,g,h){var j=ma(a),l=ma(b),m=K,n=K;j||(m=ha.call(a),m===J?m=R:m!==R&&(j=i(a))),l||(n=ha.call(b),n===J&&(n=R));var o=m===R&&!la(a),p=n===R&&!la(b),q=m===n;if(q&&!j&&!o)return f(a,b,m);if(!d){var r=o&&ga.call(a,"__wrapped__"),s=p&&ga.call(b,"__wrapped__");if(r||s)return c(r?a.value():a,s?b.value():b,d,g,h)}if(!q)return!1;g||(g=[]),h||(h=[]);for(var t=g.length;t--;)if(g[t]===a)return h[t]===b;g.push(a),h.push(b);var u=(j?k:e)(a,b,c,d,g,h);return g.pop(),h.pop(),u}function m(a,b,c,d,e){return a===b?!0:null==a||null==b||!ka(a)&&!g(b)?a!==a&&b!==b:l(a,b,m,c,d,e)}function n(a){this.predicate=a}function o(a){this.predicate=a}function p(a,b){var c=this;this.scheduler=a,this.messages=b,this.subscriptions=[],this.observers=[];for(var d=0,e=this.messages.length;e>d;d++){var f=this.messages[d],g=f.value;!function(b){a.scheduleAbsolute(null,f.time,function(){for(var a=c.observers.slice(0),d=0,e=a.length;e>d;d++)b.accept(a[d]);return t})}(g)}}var q=c.Observer,r=c.Observable,s=c.Disposable,t=s.empty,u=s.create,v=c.CompositeDisposable,w=c.SingleAssignmentDisposable,x=c.Scheduler,y=c.internals.ScheduledItem,z=c.internals.SchedulePeriodicRecursive,A=c.internals.PriorityQueue,B=c.internals.inherits,C=c.helpers.notImplemented,D=c.helpers.defaultComparer=function(a,b){return na(a,b)},E=c.Notification=function(){function a(){}return a.prototype._accept=function(a,b,c){throw new NotImplementedError},a.prototype._acceptObserver=function(a,b,c){throw new NotImplementedError},a.prototype.accept=function(a,b,c){return a&&"object"==typeof a?this._acceptObserver(a):this._accept(a,b,c)},a.prototype.toObservable=function(a){var b=this;return isScheduler(a)||(a=immediateScheduler),new AnonymousObservable(function(c){return a.schedule(b,function(a,b){b._acceptObserver(c),"N"===b.kind&&c.onCompleted()})})},a}(),F=function(a){function b(a){this.value=a,this.kind="N"}return B(b,a),b.prototype._accept=function(a){return a(this.value)},b.prototype._acceptObserver=function(a){return a.onNext(this.value)},b.prototype.toString=function(){return"OnNext("+this.value+")"},b}(E),G=function(a){function b(a){this.error=a,this.kind="E"}return B(b,a),b.prototype._accept=function(a,b){return b(this.error)},b.prototype._acceptObserver=function(a){return a.onError(this.error)},b.prototype.
//# sourceMappingURL=rx.core.testing.map