rxjs-rails 2.2.20 → 2.2.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. checksums.yaml +4 -4
  2. data/lib/rxjs/rails/version.rb +1 -1
  3. data/vendor/assets/javascripts/rx.aggregates.js +38 -20
  4. data/vendor/assets/javascripts/rx.aggregates.min.js +1 -1
  5. data/vendor/assets/javascripts/rx.all.compat.js +9288 -0
  6. data/vendor/assets/javascripts/rx.all.compat.min.js +3 -0
  7. data/vendor/assets/javascripts/rx.all.js +9102 -0
  8. data/vendor/assets/javascripts/rx.all.min.js +3 -0
  9. data/vendor/assets/javascripts/rx.async.compat.js +5 -4
  10. data/vendor/assets/javascripts/rx.async.compat.min.js +1 -1
  11. data/vendor/assets/javascripts/rx.async.js +5 -4
  12. data/vendor/assets/javascripts/rx.async.min.js +1 -1
  13. data/vendor/assets/javascripts/rx.backpressure.js +24 -12
  14. data/vendor/assets/javascripts/rx.backpressure.min.js +1 -1
  15. data/vendor/assets/javascripts/rx.binding.js +85 -85
  16. data/vendor/assets/javascripts/rx.coincidence.js +59 -15
  17. data/vendor/assets/javascripts/rx.coincidence.min.js +1 -1
  18. data/vendor/assets/javascripts/rx.compat.js +809 -742
  19. data/vendor/assets/javascripts/rx.compat.min.js +2 -2
  20. data/vendor/assets/javascripts/rx.core.compat.js +2629 -0
  21. data/vendor/assets/javascripts/rx.core.compat.min.js +1 -0
  22. data/vendor/assets/javascripts/rx.core.js +2511 -0
  23. data/vendor/assets/javascripts/rx.core.min.js +1 -0
  24. data/vendor/assets/javascripts/rx.experimental.js +43 -43
  25. data/vendor/assets/javascripts/rx.joinpatterns.js +281 -281
  26. data/vendor/assets/javascripts/rx.js +792 -725
  27. data/vendor/assets/javascripts/rx.lite.compat.js +890 -758
  28. data/vendor/assets/javascripts/rx.lite.compat.min.js +2 -2
  29. data/vendor/assets/javascripts/rx.lite.extras.js +664 -0
  30. data/vendor/assets/javascripts/rx.lite.extras.min.js +1 -0
  31. data/vendor/assets/javascripts/rx.lite.js +890 -758
  32. data/vendor/assets/javascripts/rx.lite.min.js +2 -2
  33. data/vendor/assets/javascripts/rx.min.js +2 -2
  34. data/vendor/assets/javascripts/rx.testing.js +166 -166
  35. data/vendor/assets/javascripts/rx.testing.min.js +1 -1
  36. data/vendor/assets/javascripts/rx.time.js +132 -131
  37. data/vendor/assets/javascripts/rx.time.min.js +1 -1
  38. data/vendor/assets/javascripts/rx.virtualtime.js +2 -2
  39. metadata +13 -4
  40. data/vendor/assets/javascripts/rx.node.js +0 -142
@@ -0,0 +1 @@
1
+ (function(a){function b(){if(this.isDisposed)throw new Error(z)}function c(a){var b=typeof a;return a&&("function"==b||"object"==b)||!1}function d(a){var b=[];if(!c(a))return b;W.nonEnumArgs&&a.length&&h(a)&&(a=Y.call(a));var d=W.enumPrototypes&&"function"==typeof a,e=W.enumErrorProps&&(a===Q||a instanceof Error);for(var f in a)d&&"prototype"==f||e&&("message"==f||"name"==f)||b.push(f);if(W.nonEnumShadows&&a!==R){var g=a.constructor,i=-1,j=U.length;if(a===(g&&g.prototype))var k=a===stringProto?M:a===Q?H:N.call(a),l=V[k];for(;++i<j;)f=U[i],l&&l[f]||!O.call(a,f)||b.push(f)}return b}function e(a,b,c){for(var d=-1,e=c(a),f=e.length;++d<f;){var g=e[d];if(b(a[g],g,a)===!1)break}return a}function f(a,b){return e(a,b,d)}function g(a){return"function"!=typeof a.toString&&"string"==typeof(a+"")}function h(a){return a&&"object"==typeof a?N.call(a)==D:!1}function i(a){return"function"==typeof a||!1}function j(a,b,c,d){if(a===b)return 0!==a||1/a==1/b;var e=typeof a,k=typeof b;if(a===a&&(null==a||null==b||"function"!=e&&"object"!=e&&"function"!=k&&"object"!=k))return!1;var l=N.call(a),m=N.call(b);if(l==D&&(l=K),m==D&&(m=K),l!=m)return!1;switch(l){case F:case G:return+a==+b;case J:return a!=+a?b!=+b:0==a?1/a==1/b:a==+b;case L:case M:return a==String(b)}var n=l==E;if(!n){if(l!=K||!W.nodeClass&&(g(a)||g(b)))return!1;var o=!W.argsObject&&h(a)?Object:a.constructor,p=!W.argsObject&&h(b)?Object:b.constructor;if(!(o==p||O.call(a,"constructor")&&O.call(b,"constructor")||i(o)&&o instanceof o&&i(p)&&p instanceof p||!("constructor"in a&&"constructor"in b)))return!1}c||(c=[]),d||(d=[]);for(var q=c.length;q--;)if(c[q]==a)return d[q]==b;var r=0;if(result=!0,c.push(a),d.push(b),n){if(q=a.length,r=b.length,result=r==q)for(;r--;){var s=b[r];if(!(result=j(a[r],s,c,d)))break}}else f(b,function(b,e,f){return O.call(f,e)?(r++,result=O.call(a,e)&&j(a[e],b,c,d)):void 0}),result&&f(a,function(a,b,c){return O.call(c,b)?result=--r>-1:void 0});return c.pop(),d.pop(),result}function k(a,b){return 1===a.length&&Array.isArray(a[b])?a[b]:Y.call(a)}function l(a,b){this.scheduler=a,this.disposable=b,this.isDisposed=!1}var m={"boolean":!1,"function":!0,object:!0,number:!1,string:!1,undefined:!1},n=m[typeof window]&&window||this,o=m[typeof exports]&&exports&&!exports.nodeType&&exports,p=m[typeof module]&&module&&!module.nodeType&&module,q=p&&p.exports===o&&o,r=m[typeof global]&&global;!r||r.global!==r&&r.window!==r||(n=r);var s={internals:{},config:{Promise:n.Promise},helpers:{}},t=s.helpers.noop=function(){},u=s.helpers.identity=function(a){return a},v=s.helpers.defaultNow=Date.now,w=(s.helpers.defaultComparer=function(a,b){return X(a,b)},s.helpers.defaultSubComparer=function(a,b){return a>b?1:b>a?-1:0}),x=(s.helpers.defaultKeySerializer=function(a){return a.toString()},s.helpers.defaultError=function(a){throw a}),y=s.helpers.isPromise=function(a){return!!a&&"function"==typeof a.then&&a.then!==s.Observable.prototype.then},z=(s.helpers.asArray=function(){return Array.prototype.slice.call(arguments)},s.helpers.not=function(a){return!a},"Object has been disposed"),A="object"==typeof Symbol&&Symbol.iterator||"_es6shim_iterator_";n.Set&&"function"==typeof(new n.Set)["@@iterator"]&&(A="@@iterator");var B,C={done:!0,value:a},D="[object Arguments]",E="[object Array]",F="[object Boolean]",G="[object Date]",H="[object Error]",I="[object Function]",J="[object Number]",K="[object Object]",L="[object RegExp]",M="[object String]",N=Object.prototype.toString,O=Object.prototype.hasOwnProperty,P=N.call(arguments)==D,Q=Error.prototype,R=Object.prototype,S=R.propertyIsEnumerable;try{B=!(N.call(document)==K&&!({toString:0}+""))}catch(T){B=!0}var U=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],V={};V[E]=V[G]=V[J]={constructor:!0,toLocaleString:!0,toString:!0,valueOf:!0},V[F]=V[M]={constructor:!0,toString:!0,valueOf:!0},V[H]=V[I]=V[L]={constructor:!0,toString:!0},V[K]={constructor:!0};var W={};!function(){var a=function(){this.x=1},b=[];a.prototype={valueOf:1,y:1};for(var c in new a)b.push(c);for(c in arguments);W.enumErrorProps=S.call(Q,"message")||S.call(Q,"name"),W.enumPrototypes=S.call(a,"prototype"),W.nonEnumArgs=0!=c,W.nonEnumShadows=!/valueOf/.test(b)}(1),P||(h=function(a){return a&&"object"==typeof a?O.call(a,"callee"):!1}),i(/x/)&&(i=function(a){return"function"==typeof a&&N.call(a)==I});var X=s.internals.isEqual=function(a,b){return j(a,b,[],[])},Y=Array.prototype.slice,Z=({}.hasOwnProperty,this.inherits=s.internals.inherits=function(a,b){function c(){this.constructor=a}c.prototype=b.prototype,a.prototype=new c}),$=s.internals.addProperties=function(a){for(var b=Y.call(arguments,1),c=0,d=b.length;d>c;c++){var e=b[c];for(var f in e)a[f]=e[f]}},_=(s.internals.addRef=function(a,b){return new Hb(function(c){return new cb(b.getDisposable(),a.subscribe(c))})},function(a,b){this.id=a,this.value=b});_.prototype.compareTo=function(a){var b=this.value.compareTo(a.value);return 0===b&&(b=this.id-a.id),b};var ab=s.internals.PriorityQueue=function(a){this.items=new Array(a),this.length=0},bb=ab.prototype;bb.isHigherPriority=function(a,b){return this.items[a].compareTo(this.items[b])<0},bb.percolate=function(a){if(!(a>=this.length||0>a)){var b=a-1>>1;if(!(0>b||b===a)&&this.isHigherPriority(a,b)){var c=this.items[a];this.items[a]=this.items[b],this.items[b]=c,this.percolate(b)}}},bb.heapify=function(b){if(b===a&&(b=0),!(b>=this.length||0>b)){var c=2*b+1,d=2*b+2,e=b;if(c<this.length&&this.isHigherPriority(c,e)&&(e=c),d<this.length&&this.isHigherPriority(d,e)&&(e=d),e!==b){var f=this.items[b];this.items[b]=this.items[e],this.items[e]=f,this.heapify(e)}}},bb.peek=function(){return this.items[0].value},bb.removeAt=function(a){this.items[a]=this.items[--this.length],delete this.items[this.length],this.heapify()},bb.dequeue=function(){var a=this.peek();return this.removeAt(0),a},bb.enqueue=function(a){var b=this.length++;this.items[b]=new _(ab.count++,a),this.percolate(b)},bb.remove=function(a){for(var b=0;b<this.length;b++)if(this.items[b].value===a)return this.removeAt(b),!0;return!1},ab.count=0;var cb=s.CompositeDisposable=function(){this.disposables=k(arguments,0),this.isDisposed=!1,this.length=this.disposables.length},db=cb.prototype;db.add=function(a){this.isDisposed?a.dispose():(this.disposables.push(a),this.length++)},db.remove=function(a){var b=!1;if(!this.isDisposed){var c=this.disposables.indexOf(a);-1!==c&&(b=!0,this.disposables.splice(c,1),this.length--,a.dispose())}return b},db.dispose=function(){if(!this.isDisposed){this.isDisposed=!0;var a=this.disposables.slice(0);this.disposables=[],this.length=0;for(var b=0,c=a.length;c>b;b++)a[b].dispose()}},db.clear=function(){var a=this.disposables.slice(0);this.disposables=[],this.length=0;for(var b=0,c=a.length;c>b;b++)a[b].dispose()},db.contains=function(a){return-1!==this.disposables.indexOf(a)},db.toArray=function(){return this.disposables.slice(0)};var eb=s.Disposable=function(a){this.isDisposed=!1,this.action=a||t};eb.prototype.dispose=function(){this.isDisposed||(this.action(),this.isDisposed=!0)};{var fb=eb.create=function(a){return new eb(a)},gb=eb.empty={dispose:t},hb=function(){function a(a){this.isSingle=a,this.isDisposed=!1,this.current=null}var b=a.prototype;return b.getDisposable=function(){return this.current},b.setDisposable=function(a){if(this.current&&this.isSingle)throw new Error("Disposable has already been assigned");var b,c=this.isDisposed;c||(b=this.current,this.current=a),b&&b.dispose(),c&&a&&a.dispose()},b.dispose=function(){var a;this.isDisposed||(this.isDisposed=!0,a=this.current,this.current=null),a&&a.dispose()},a}(),ib=s.SingleAssignmentDisposable=function(a){function b(){a.call(this,!0)}return Z(b,a),b}(hb),jb=s.SerialDisposable=function(a){function b(){a.call(this,!1)}return Z(b,a),b}(hb);s.RefCountDisposable=function(){function a(a){this.disposable=a,this.disposable.count++,this.isInnerDisposed=!1}function b(a){this.underlyingDisposable=a,this.isDisposed=!1,this.isPrimaryDisposed=!1,this.count=0}return a.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(){return this.isDisposed?gb:new a(this)},b}()}l.prototype.dispose=function(){var a=this;this.scheduler.schedule(function(){a.isDisposed||(a.isDisposed=!0,a.disposable.dispose())})};var kb=s.internals.ScheduledItem=function(a,b,c,d,e){this.scheduler=a,this.state=b,this.action=c,this.dueTime=d,this.comparer=e||w,this.disposable=new ib};kb.prototype.invoke=function(){this.disposable.setDisposable(this.invokeCore())},kb.prototype.compareTo=function(a){return this.comparer(this.dueTime,a.dueTime)},kb.prototype.isCancelled=function(){return this.disposable.isDisposed},kb.prototype.invokeCore=function(){return this.action(this.scheduler,this.state)};var lb,mb=s.Scheduler=function(){function a(a,b,c,d){this.now=a,this._schedule=b,this._scheduleRelative=c,this._scheduleAbsolute=d}function b(a,b){var c=b.first,d=b.second,e=new cb,f=function(b){d(b,function(b){var c=!1,d=!1,g=a.scheduleWithState(b,function(a,b){return c?e.remove(g):d=!0,f(b),gb});d||(e.add(g),c=!0)})};return f(c),e}function c(a,b,c){var d=b.first,e=b.second,f=new cb,g=function(b){e(b,function(b,d){var e=!1,h=!1,i=a[c].call(a,b,d,function(a,b){return e?f.remove(i):h=!0,g(b),gb});h||(f.add(i),e=!0)})};return g(d),f}function d(a,b){return b(),gb}var e=a.prototype;return e.catchException=e["catch"]=function(a){return new rb(this,a)},e.schedulePeriodic=function(a,b){return this.schedulePeriodicWithState(null,a,function(){b()})},e.schedulePeriodicWithState=function(a,b,c){var d=a,e=setInterval(function(){d=c(d)},b);return fb(function(){clearInterval(e)})},e.schedule=function(a){return this._schedule(a,d)},e.scheduleWithState=function(a,b){return this._schedule(a,b)},e.scheduleWithRelative=function(a,b){return this._scheduleRelative(b,a,d)},e.scheduleWithRelativeAndState=function(a,b,c){return this._scheduleRelative(a,b,c)},e.scheduleWithAbsolute=function(a,b){return this._scheduleAbsolute(b,a,d)},e.scheduleWithAbsoluteAndState=function(a,b,c){return this._scheduleAbsolute(a,b,c)},e.scheduleRecursive=function(a){return this.scheduleRecursiveWithState(a,function(a,b){a(function(){b(a)})})},e.scheduleRecursiveWithState=function(a,c){return this.scheduleWithState({first:a,second:c},function(a,c){return b(a,c)})},e.scheduleRecursiveWithRelative=function(a,b){return this.scheduleRecursiveWithRelativeAndState(b,a,function(a,b){a(function(c){b(a,c)})})},e.scheduleRecursiveWithRelativeAndState=function(a,b,d){return this._scheduleRelative({first:a,second:d},b,function(a,b){return c(a,b,"scheduleWithRelativeAndState")})},e.scheduleRecursiveWithAbsolute=function(a,b){return this.scheduleRecursiveWithAbsoluteAndState(b,a,function(a,b){a(function(c){b(a,c)})})},e.scheduleRecursiveWithAbsoluteAndState=function(a,b,d){return this._scheduleAbsolute({first:a,second:d},b,function(a,b){return c(a,b,"scheduleWithAbsoluteAndState")})},a.now=v,a.normalize=function(a){return 0>a&&(a=0),a},a}(),nb=mb.normalize,ob=(s.internals.SchedulePeriodicRecursive=function(){function a(a,b){b(0,this._period);try{this._state=this._action(this._state)}catch(c){throw this._cancel.dispose(),c}}function b(a,b,c,d){this._scheduler=a,this._state=b,this._period=c,this._action=d}return b.prototype.start=function(){var b=new ib;return this._cancel=b,b.setDisposable(this._scheduler.scheduleRecursiveWithRelativeAndState(0,this._period,a.bind(this))),b},b}(),mb.immediate=function(){function a(a,b){return b(this,a)}function b(a,b,c){for(var d=nb(d);d-this.now()>0;);return c(this,a)}function c(a,b,c){return this.scheduleWithRelativeAndState(a,b-this.now(),c)}return new mb(v,a,b,c)}()),pb=mb.currentThread=function(){function a(a){for(var b;a.length>0;)if(b=a.dequeue(),!b.isCancelled()){for(;b.dueTime-mb.now()>0;);b.isCancelled()||b.invoke()}}function b(a,b){return this.scheduleWithRelativeAndState(a,0,b)}function c(b,c,d){var f=this.now()+mb.normalize(c),g=new kb(this,b,d,f);if(e)e.enqueue(g);else{e=new ab(4),e.enqueue(g);try{a(e)}catch(h){throw h}finally{e=null}}return g.disposable}function d(a,b,c){return this.scheduleWithRelativeAndState(a,b-this.now(),c)}var e,f=new mb(v,b,c,d);return f.scheduleRequired=function(){return null===e},f.ensureTrampoline=function(a){return null===e?this.schedule(a):a()},f}(),qb=t;!function(){function a(){if(!n.postMessage||n.importScripts)return!1;var a=!1,b=n.onmessage;return n.onmessage=function(){a=!0},n.postMessage("","*"),n.onmessage=b,a}function b(a){if("string"==typeof a.data&&a.data.substring(0,f.length)===f){var b=a.data.substring(f.length),c=g[b];c(),delete g[b]}}var c=RegExp("^"+String(N).replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/toString| for [^\]]+/g,".*?")+"$"),d="function"==typeof(d=r&&q&&r.setImmediate)&&!c.test(d)&&d,e="function"==typeof(e=r&&q&&r.clearImmediate)&&!c.test(e)&&e;if("undefined"!=typeof process&&"[object process]"==={}.toString.call(process))lb=process.nextTick;else if("function"==typeof d)lb=d,qb=e;else if(a()){var f="ms.rx.schedule"+Math.random(),g={},h=0;n.addEventListener?n.addEventListener("message",b,!1):n.attachEvent("onmessage",b,!1),lb=function(a){var b=h++;g[b]=a,n.postMessage(f+b,"*")}}else if(n.MessageChannel){var i=new n.MessageChannel,j={},k=0;i.port1.onmessage=function(a){var b=a.data,c=j[b];c(),delete j[b]},lb=function(a){var b=k++;j[b]=a,i.port2.postMessage(b)}}else"document"in n&&"onreadystatechange"in n.document.createElement("script")?lb=function(a){var b=n.document.createElement("script");b.onreadystatechange=function(){a(),b.onreadystatechange=null,b.parentNode.removeChild(b),b=null},n.document.documentElement.appendChild(b)}:(lb=function(a){return setTimeout(a,0)},qb=clearTimeout)}();var rb=(mb.timeout=function(){function a(a,b){var c=this,d=new ib,e=lb(function(){d.isDisposed||d.setDisposable(b(c,a))});return new cb(d,fb(function(){qb(e)}))}function b(a,b,c){var d=this,e=mb.normalize(b);if(0===e)return d.scheduleWithState(a,c);var f=new ib,g=setTimeout(function(){f.isDisposed||f.setDisposable(c(d,a))},e);return new cb(f,fb(function(){clearTimeout(g)}))}function c(a,b,c){return this.scheduleWithRelativeAndState(a,b-this.now(),c)}return new mb(v,a,b,c)}(),function(a){function b(){return this._scheduler.now()}function c(a,b){return this._scheduler.scheduleWithState(a,this._wrap(b))}function d(a,b,c){return this._scheduler.scheduleWithRelativeAndState(a,b,this._wrap(c))}function e(a,b,c){return this._scheduler.scheduleWithAbsoluteAndState(a,b,this._wrap(c))}function f(f,g){this._scheduler=f,this._handler=g,this._recursiveOriginal=null,this._recursiveWrapper=null,a.call(this,b,c,d,e)}return Z(f,a),f.prototype._clone=function(a){return new f(a,this._handler)},f.prototype._wrap=function(a){var b=this;return function(c,d){try{return a(b._getRecursiveWrapper(c),d)}catch(e){if(!b._handler(e))throw e;return gb}}},f.prototype._getRecursiveWrapper=function(a){if(this._recursiveOriginal!==a){this._recursiveOriginal=a;var b=this._clone(a);b._recursiveOriginal=a,b._recursiveWrapper=b,this._recursiveWrapper=b}return this._recursiveWrapper},f.prototype.schedulePeriodicWithState=function(a,b,c){var d=this,e=!1,f=new ib;return f.setDisposable(this._scheduler.schedulePeriodicWithState(a,b,function(a){if(e)return null;try{return c(a)}catch(b){if(e=!0,!d._handler(b))throw b;return f.dispose(),null}})),f},f}(mb)),sb=s.Notification=function(){function a(a,b){this.hasValue=null==b?!1:b,this.kind=a}var b=a.prototype;return b.accept=function(a,b,c){return 1===arguments.length&&"object"==typeof a?this._acceptObservable(a):this._accept(a,b,c)},b.toObservable=function(a){var b=this;return a||(a=ob),new Hb(function(c){return a.schedule(function(){b._acceptObservable(c),"N"===b.kind&&c.onCompleted()})})},a}(),tb=sb.createOnNext=function(){function a(a){return a(this.value)}function b(a){return a.onNext(this.value)}function c(){return"OnNext("+this.value+")"}return function(d){var e=new sb("N",!0);return e.value=d,e._accept=a,e._acceptObservable=b,e.toString=c,e}}(),ub=sb.createOnError=function(){function a(a,b){return b(this.exception)}function b(a){return a.onError(this.exception)}function c(){return"OnError("+this.exception+")"}return function(d){var e=new sb("E");return e.exception=d,e._accept=a,e._acceptObservable=b,e.toString=c,e}}(),vb=sb.createOnCompleted=function(){function a(a,b,c){return c()}function b(a){return a.onCompleted()}function c(){return"OnCompleted()"}return function(){var d=new sb("C");return d._accept=a,d._acceptObservable=b,d.toString=c,d}}(),wb=s.internals.Enumerator=function(a){this._next=a};wb.prototype.next=function(){return this._next()},wb.prototype[A]=function(){return this};var xb=s.internals.Enumerable=function(a){this._iterator=a};xb.prototype[A]=function(){return this._iterator()},xb.prototype.concat=function(){var a=this;return new Hb(function(b){var c;try{c=a[A]()}catch(d){return void b.onError()}var e,f=new jb,g=ob.scheduleRecursive(function(a){var d;if(!e){try{d=c.next()}catch(g){return void b.onError(g)}if(d.done)return void b.onCompleted();var h=d.value;y(h)&&(h=observableFromPromise(h));var i=new ib;f.setDisposable(i),i.setDisposable(h.subscribe(b.onNext.bind(b),b.onError.bind(b),function(){a()}))}});return new cb(f,g,fb(function(){e=!0}))})},xb.prototype.catchException=function(){var a=this;return new Hb(function(b){var c;try{c=a[A]()}catch(d){return void b.onError()}var e,f,g=new jb,h=ob.scheduleRecursive(function(a){if(!e){var d;try{d=c.next()}catch(h){return void b.onError(h)}if(d.done)return void(f?b.onError(f):b.onCompleted());var i=d.value;y(i)&&(i=observableFromPromise(i));var j=new ib;g.setDisposable(j),j.setDisposable(i.subscribe(b.onNext.bind(b),function(b){f=b,a()},b.onCompleted.bind(b)))}});return new cb(g,h,fb(function(){e=!0}))})};var yb=(xb.repeat=function(a,b){return null==b&&(b=-1),new xb(function(){var c=b;return new wb(function(){return 0===c?C:(c>0&&c--,{done:!1,value:a})})})},xb.forEach=function(a,b,c){return b||(b=u),new xb(function(){var d=-1;return new wb(function(){return++d<a.length?{done:!1,value:b.call(c,a[d],d,a)}:C})})},s.Observer=function(){});yb.prototype.toNotifier=function(){var a=this;return function(b){return b.accept(a)}},yb.prototype.asObserver=function(){return new Cb(this.onNext.bind(this),this.onError.bind(this),this.onCompleted.bind(this))},yb.prototype.checked=function(){return new Db(this)};var zb=yb.create=function(a,b,c){return a||(a=t),b||(b=x),c||(c=t),new Cb(a,b,c)};yb.fromNotifier=function(a){return new Cb(function(b){return a(tb(b))},function(b){return a(ub(b))},function(){return a(vb())})},yb.notifyOn=function(a){return new Fb(a,this)};var Ab,Bb=s.internals.AbstractObserver=function(a){function b(){this.isStopped=!1,a.call(this)}return Z(b,a),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){return this.isStopped?!1:(this.isStopped=!0,this.error(a),!0)},b}(yb),Cb=s.AnonymousObserver=function(a){function b(b,c,d){a.call(this),this._onNext=b,this._onError=c,this._onCompleted=d}return Z(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}(Bb),Db=function(a){function b(b){a.call(this),this._observer=b,this._state=0}Z(b,a);var c=b.prototype;return c.onNext=function(a){this.checkAccess();try{this._observer.onNext(a)}catch(b){throw b}finally{this._state=0}},c.onError=function(a){this.checkAccess();try{this._observer.onError(a)}catch(b){throw b}finally{this._state=2}},c.onCompleted=function(){this.checkAccess();try{this._observer.onCompleted()}catch(a){throw a}finally{this._state=2}},c.checkAccess=function(){if(1===this._state)throw new Error("Re-entrancy detected");if(2===this._state)throw new Error("Observer completed");0===this._state&&(this._state=1)},b}(yb),Eb=s.internals.ScheduledObserver=function(a){function b(b,c){a.call(this),this.scheduler=b,this.observer=c,this.isAcquired=!1,this.hasFaulted=!1,this.queue=[],this.disposable=new jb}return Z(b,a),b.prototype.next=function(a){var b=this;this.queue.push(function(){b.observer.onNext(a)})},b.prototype.error=function(a){var b=this;this.queue.push(function(){b.observer.onError(a)})},b.prototype.completed=function(){var a=this;this.queue.push(function(){a.observer.onCompleted()})},b.prototype.ensureActive=function(){var a=!1,b=this;!this.hasFaulted&&this.queue.length>0&&(a=!this.isAcquired,this.isAcquired=!0),a&&this.disposable.setDisposable(this.scheduler.scheduleRecursive(function(a){var c;if(!(b.queue.length>0))return void(b.isAcquired=!1);c=b.queue.shift();try{c()}catch(d){throw b.queue=[],b.hasFaulted=!0,d}a()}))},b.prototype.dispose=function(){a.prototype.dispose.call(this),this.disposable.dispose()},b}(Bb),Fb=function(a){function b(){a.apply(this,arguments)}return Z(b,a),b.prototype.next=function(b){a.prototype.next.call(this,b),this.ensureActive()},b.prototype.error=function(b){a.prototype.error.call(this,b),this.ensureActive()},b.prototype.completed=function(){a.prototype.completed.call(this),this.ensureActive()},b}(Eb),Gb=s.Observable=function(){function a(a){this._subscribe=a}return Ab=a.prototype,Ab.subscribe=Ab.forEach=function(a,b,c){var d="object"==typeof a?a:zb(a,b,c);return this._subscribe(d)},a}(),Hb=s.AnonymousObservable=function(a){function b(a){return"undefined"==typeof a?a=gb:"function"==typeof a&&(a=fb(a)),a}function c(d){function e(a){var c=new Ib(a);if(pb.scheduleRequired())pb.schedule(function(){try{c.setDisposable(b(d(c)))}catch(a){if(!c.fail(a))throw a}});else try{c.setDisposable(b(d(c)))}catch(e){if(!c.fail(e))throw e}return c}return this instanceof c?void a.call(this,e):new c(d)}return Z(c,a),c}(Gb),Ib=function(a){function b(b){a.call(this),this.observer=b,this.m=new ib}Z(b,a);var c=b.prototype;return c.next=function(a){var b=!1;try{this.observer.onNext(a),b=!0}catch(c){throw c}finally{b||this.dispose()}},c.error=function(a){try{this.observer.onError(a)}catch(b){throw b}finally{this.dispose()}},c.completed=function(){try{this.observer.onCompleted()}catch(a){throw a}finally{this.dispose()}},c.setDisposable=function(a){this.m.setDisposable(a)},c.getDisposable=function(){return this.m.getDisposable()},c.disposable=function(a){return arguments.length?this.getDisposable():setDisposable(a)},c.dispose=function(){a.prototype.dispose.call(this),this.m.dispose()},b}(Bb),Jb=(function(a){function b(a){return this.underlyingObservable.subscribe(a)}function c(c,d,e){a.call(this,b),this.key=c,this.underlyingObservable=e?new Hb(function(a){return new cb(e.getDisposable(),d.subscribe(a))}):d}return Z(c,a),c}(Gb),function(a,b){this.subject=a,this.observer=b});Jb.prototype.dispose=function(){if(!this.subject.isDisposed&&null!==this.observer){var a=this.subject.observers.indexOf(this.observer);this.subject.observers.splice(a,1),this.observer=null}};var Kb=(s.Subject=function(a){function c(a){return b.call(this),this.isStopped?this.exception?(a.onError(this.exception),gb):(a.onCompleted(),gb):(this.observers.push(a),new Jb(this,a))}function d(){a.call(this,c),this.isDisposed=!1,this.isStopped=!1,this.observers=[]}return Z(d,a),$(d.prototype,yb,{hasObservers:function(){return this.observers.length>0},onCompleted:function(){if(b.call(this),!this.isStopped){var a=this.observers.slice(0);this.isStopped=!0;for(var c=0,d=a.length;d>c;c++)a[c].onCompleted();this.observers=[]}},onError:function(a){if(b.call(this),!this.isStopped){var c=this.observers.slice(0);this.isStopped=!0,this.exception=a;for(var d=0,e=c.length;e>d;d++)c[d].onError(a);this.observers=[]}},onNext:function(a){if(b.call(this),!this.isStopped)for(var c=this.observers.slice(0),d=0,e=c.length;e>d;d++)c[d].onNext(a)},dispose:function(){this.isDisposed=!0,this.observers=null}}),d.create=function(a,b){return new Kb(a,b)},d}(Gb),s.AsyncSubject=function(a){function c(a){if(b.call(this),!this.isStopped)return this.observers.push(a),new Jb(this,a);var c=this.exception,d=this.hasValue,e=this.value;return c?a.onError(c):d?(a.onNext(e),a.onCompleted()):a.onCompleted(),gb}function d(){a.call(this,c),this.isDisposed=!1,this.isStopped=!1,this.value=null,this.hasValue=!1,this.observers=[],this.exception=null}return Z(d,a),$(d.prototype,yb,{hasObservers:function(){return b.call(this),this.observers.length>0},onCompleted:function(){var a,c,d;if(b.call(this),!this.isStopped){this.isStopped=!0;var e=this.observers.slice(0),f=this.value,g=this.hasValue;if(g)for(c=0,d=e.length;d>c;c++)a=e[c],a.onNext(f),a.onCompleted();else for(c=0,d=e.length;d>c;c++)e[c].onCompleted();this.observers=[]}},onError:function(a){if(b.call(this),!this.isStopped){var c=this.observers.slice(0);this.isStopped=!0,this.exception=a;for(var d=0,e=c.length;e>d;d++)c[d].onError(a);this.observers=[]}},onNext:function(a){b.call(this),this.isStopped||(this.value=a,this.hasValue=!0)},dispose:function(){this.isDisposed=!0,this.observers=null,this.exception=null,this.value=null}}),d}(Gb),function(a){function b(a){return this.observable.subscribe(a)}function c(c,d){a.call(this,b),this.observer=c,this.observable=d}return Z(c,a),$(c.prototype,yb,{onCompleted:function(){this.observer.onCompleted()},onError:function(a){this.observer.onError(a)},onNext:function(a){this.observer.onNext(a)}}),c}(Gb));"function"==typeof define&&"object"==typeof define.amd&&define.amd?(n.Rx=s,define(function(){return s})):o&&p?q?(p.exports=s).Rx=s:o.Rx=s:n.Rx=s}).call(this);
@@ -1,4 +1,4 @@
1
- // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
1
+ // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
2
2
 
3
3
  ;(function (factory) {
4
4
  var objectTypes = {
@@ -33,37 +33,37 @@
33
33
  }
34
34
  }.call(this, function (root, exp, Rx, undefined) {
35
35
 
36
- // Aliases
37
- var Observable = Rx.Observable,
38
- observableProto = Observable.prototype,
39
- AnonymousObservable = Rx.AnonymousObservable,
40
- observableConcat = Observable.concat,
41
- observableDefer = Observable.defer,
42
- observableEmpty = Observable.empty,
43
- disposableEmpty = Rx.Disposable.empty,
44
- CompositeDisposable = Rx.CompositeDisposable,
45
- SerialDisposable = Rx.SerialDisposable,
46
- SingleAssignmentDisposable = Rx.SingleAssignmentDisposable,
47
- Enumerator = Rx.internals.Enumerator,
48
- Enumerable = Rx.internals.Enumerable,
49
- enumerableForEach = Enumerable.forEach,
50
- immediateScheduler = Rx.Scheduler.immediate,
51
- currentThreadScheduler = Rx.Scheduler.currentThread,
52
- slice = Array.prototype.slice,
53
- AsyncSubject = Rx.AsyncSubject,
54
- Observer = Rx.Observer,
55
- inherits = Rx.internals.inherits,
56
- addProperties = Rx.internals.addProperties,
57
- noop = Rx.helpers.noop,
58
- isPromise = Rx.helpers.isPromise,
59
- observableFromPromise = Observable.fromPromise;
60
-
61
- // Utilities
62
- function argsOrArray(args, idx) {
63
- return args.length === 1 && Array.isArray(args[idx]) ?
64
- args[idx] :
65
- slice.call(args);
66
- }
36
+ // Aliases
37
+ var Observable = Rx.Observable,
38
+ observableProto = Observable.prototype,
39
+ AnonymousObservable = Rx.AnonymousObservable,
40
+ observableConcat = Observable.concat,
41
+ observableDefer = Observable.defer,
42
+ observableEmpty = Observable.empty,
43
+ disposableEmpty = Rx.Disposable.empty,
44
+ CompositeDisposable = Rx.CompositeDisposable,
45
+ SerialDisposable = Rx.SerialDisposable,
46
+ SingleAssignmentDisposable = Rx.SingleAssignmentDisposable,
47
+ Enumerator = Rx.internals.Enumerator,
48
+ Enumerable = Rx.internals.Enumerable,
49
+ enumerableFor = Enumerable.forEach,
50
+ immediateScheduler = Rx.Scheduler.immediate,
51
+ currentThreadScheduler = Rx.Scheduler.currentThread,
52
+ slice = Array.prototype.slice,
53
+ AsyncSubject = Rx.AsyncSubject,
54
+ Observer = Rx.Observer,
55
+ inherits = Rx.internals.inherits,
56
+ addProperties = Rx.internals.addProperties,
57
+ noop = Rx.helpers.noop,
58
+ isPromise = Rx.helpers.isPromise,
59
+ observableFromPromise = Observable.fromPromise;
60
+
61
+ // Utilities
62
+ function argsOrArray(args, idx) {
63
+ return args.length === 1 && Array.isArray(args[idx]) ?
64
+ args[idx] :
65
+ slice.call(args);
66
+ }
67
67
 
68
68
  // Shim in iterator support
69
69
  var $iterator$ = (typeof Symbol === 'object' && Symbol.iterator) ||
@@ -122,16 +122,16 @@
122
122
  });
123
123
  };
124
124
 
125
- /**
126
- * Concatenates the observable sequences obtained by running the specified result selector for each element in source.
127
- * There is an alias for this method called 'forIn' for browsers <IE9
128
- * @param {Array} sources An array of values to turn into an observable sequence.
129
- * @param {Function} resultSelector A function to apply to each item in the sources array to turn it into an observable sequence.
130
- * @returns {Observable} An observable sequence from the concatenated observable sequences.
131
- */
132
- Observable['for'] = Observable.forIn = function (sources, resultSelector) {
133
- return enumerableForEach(sources, resultSelector).concat();
134
- };
125
+ /**
126
+ * Concatenates the observable sequences obtained by running the specified result selector for each element in source.
127
+ * There is an alias for this method called 'forIn' for browsers <IE9
128
+ * @param {Array} sources An array of values to turn into an observable sequence.
129
+ * @param {Function} resultSelector A function to apply to each item in the sources array to turn it into an observable sequence.
130
+ * @returns {Observable} An observable sequence from the concatenated observable sequences.
131
+ */
132
+ Observable['for'] = Observable.forIn = function (sources, resultSelector) {
133
+ return enumerableFor(sources, resultSelector).concat();
134
+ };
135
135
 
136
136
  /**
137
137
  * Repeats source as long as condition holds emulating a while loop.
@@ -467,5 +467,5 @@
467
467
 
468
468
  }(Observable));
469
469
 
470
- return Rx;
470
+ return Rx;
471
471
  }));