1 |
- (window.webpackJsonpNVIV=window.webpackJsonpNVIV||[]).push([[14],{1686:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1974),o=i(1699),s=i(1976),u=i(1917),c=function(t){function e(e,i,n){switch(t.call(this),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=s.empty;break;case 1:if(!e){this.destination=s.empty;break}if("object"==typeof e){if(l(e)){var r=e[u.rxSubscriber]();this.syncErrorThrowable=r.syncErrorThrowable,this.destination=r,r.add(this)}else this.syncErrorThrowable=!0,this.destination=new a(this,e);break}default:this.syncErrorThrowable=!0,this.destination=new a(this,e,i,n)}}return n(e,t),e.prototype[u.rxSubscriber]=function(){return this},e.create=function(t,i,n){var r=new e(t,i,n);return r.syncErrorThrowable=!1,r},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this._parent,e=this._parents;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=t,this._parents=e,this},e}(o.Subscription);e.Subscriber=c;var a=function(t){function e(e,i,n,o){var u;t.call(this),this._parentSubscriber=e;var c=this;r.isFunction(i)?u=i:i&&(u=i.next,n=i.error,o=i.complete,i!==s.empty&&(c=Object.create(i),r.isFunction(c.unsubscribe)&&this.add(c.unsubscribe.bind(c)),c.unsubscribe=this.unsubscribe.bind(this))),this._context=c,this._next=u,this._error=n,this._complete=o}return n(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber;if(this._error)e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else{if(!e.syncErrorThrowable)throw this.unsubscribe(),t;e.syncErrorValue=t,e.syncErrorThrown=!0,this.unsubscribe()}}},e.prototype.complete=function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var i=function(){return t._complete.call(t._context)};e.syncErrorThrowable?(this.__tryOrSetError(e,i),this.unsubscribe()):(this.__tryOrUnsub(i),this.unsubscribe())}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(t){throw this.unsubscribe(),t}},e.prototype.__tryOrSetError=function(t,e,i){try{e.call(this._context,i)}catch(e){return t.syncErrorValue=e,t.syncErrorThrown=!0,!0}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(c);function l(t){return t instanceof c||"syncErrorThrowable"in t&&t[u.rxSubscriber]}},1690:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=function(t){function e(){t.apply(this,arguments)}return n(e,t),e.prototype.notifyNext=function(t,e,i,n,r){this.destination.next(e)},e.prototype.notifyError=function(t,e){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.complete()},e}(i(1686).Subscriber);e.OuterSubscriber=r},1691:function(t,e,i){"use strict";var n=i(1710),r=i(1981),o=i(1982),s=i(1975),u=i(1695),c=i(1878),a=i(2112),l=i(1918);e.subscribeToResult=function(t,e,i,h){var p=new a.InnerSubscriber(t,i,h);if(p.closed)return null;if(e instanceof u.Observable)return e._isScalar?(p.next(e.value),p.complete(),null):(p.syncErrorThrowable=!0,e.subscribe(p));if(r.isArrayLike(e)){for(var f=0,d=e.length;f<d&&!p.closed;f++)p.next(e[f]);p.closed||p.complete()}else{if(o.isPromise(e))return e.then((function(t){p.closed||(p.next(t),p.complete())}),(function(t){return p.error(t)})).then(null,(function(t){n.root.setTimeout((function(){throw t}))})),p;if(e&&"function"==typeof e[c.iterator])for(var b=e[c.iterator]();;){var v=b.next();if(v.done){p.complete();break}if(p.next(v.value),p.closed)break}else if(e&&"function"==typeof e[l.observable]){var y=e[l.observable]();if("function"==typeof y.subscribe)return y.subscribe(new a.InnerSubscriber(t,i,h));p.error(new TypeError("Provided object does not correctly implement Symbol.observable"))}else{var m="You provided "+(s.isObject(e)?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.";p.error(new TypeError(m))}}return null}},1694:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1695),o=i(1686),s=i(1699),u=i(1919),c=i(1979),a=i(1917),l=function(t){function e(e){t.call(this,e),this.destination=e}return n(e,t),e}(o.Subscriber);e.SubjectSubscriber=l;var h=function(t){function e(){t.call(this),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}return n(e,t),e.prototype[a.rxSubscriber]=function(){return new l(this)},e.prototype.lift=function(t){var e=new p(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new u.ObjectUnsubscribedError;if(!this.isStopped)for(var e=this.observers,i=e.length,n=e.slice(),r=0;r<i;r++)n[r].next(t)},e.prototype.error=function(t){if(this.closed)throw new u.ObjectUnsubscribedError;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var e=this.observers,i=e.length,n=e.slice(),r=0;r<i;r++)n[r].error(t);this.observers.length=0},e.prototype.complete=function(){if(this.closed)throw new u.ObjectUnsubscribedError;this.isStopped=!0;for(var t=this.observers,e=t.length,i=t.slice(),n=0;n<e;n++)i[n].complete();this.observers.length=0},e.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},e.prototype._trySubscribe=function(e){if(this.closed)throw new u.ObjectUnsubscribedError;return t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){if(this.closed)throw new u.ObjectUnsubscribedError;return this.hasError?(t.error(this.thrownError),s.Subscription.EMPTY):this.isStopped?(t.complete(),s.Subscription.EMPTY):(this.observers.push(t),new c.SubjectSubscription(this,t))},e.prototype.asObservable=function(){var t=new r.Observable;return t.source=this,t},e.create=function(t,e){return new p(t,e)},e}(r.Observable);e.Subject=h;var p=function(t){function e(e,i){t.call(this),this.destination=e,this.source=i}return n(e,t),e.prototype.next=function(t){var e=this.destination;e&&e.next&&e.next(t)},e.prototype.error=function(t){var e=this.destination;e&&e.error&&this.destination.error(t)},e.prototype.complete=function(){var t=this.destination;t&&t.complete&&this.destination.complete()},e.prototype._subscribe=function(t){return this.source?this.source.subscribe(t):s.Subscription.EMPTY},e}(h);e.AnonymousSubject=p},1695:function(t,e,i){"use strict";var n=i(1710),r=i(2109),o=i(1918),s=i(1977),u=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var i=new t;return i.source=this,i.operator=e,i},t.prototype.subscribe=function(t,e,i){var n=this.operator,o=r.toSubscriber(t,e,i);if(n?n.call(o,this.source):o.add(this.source||!o.syncErrorThrowable?this._subscribe(o):this._trySubscribe(o)),o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.syncErrorThrown=!0,t.syncErrorValue=e,t.error(e)}},t.prototype.forEach=function(t,e){var i=this;if(e||(n.root.Rx&&n.root.Rx.config&&n.root.Rx.config.Promise?e=n.root.Rx.config.Promise:n.root.Promise&&(e=n.root.Promise)),!e)throw new Error("no Promise impl found");return new e((function(e,n){var r;r=i.subscribe((function(e){if(r)try{t(e)}catch(t){n(t),r.unsubscribe()}else t(e)}),n,e)}))},t.prototype._subscribe=function(t){return this.source.subscribe(t)},t.prototype[o.observable]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return 0===t.length?this:s.pipeFromArray(t)(this)},t.prototype.toPromise=function(t){var e=this;if(t||(n.root.Rx&&n.root.Rx.config&&n.root.Rx.config.Promise?t=n.root.Rx.config.Promise:n.root.Promise&&(t=n.root.Promise)),!t)throw new Error("no Promise impl found");return new t((function(t,i){var n;e.subscribe((function(t){return n=t}),(function(t){return i(t)}),(function(){return t(n)}))}))},t.create=function(e){return new t(e)},t}();e.Observable=u},1699:function(t,e,i){"use strict";var n=i(1847),r=i(1975),o=i(1974),s=i(1706),u=i(1702),c=i(2110),a=function(){function t(t){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}var e;return t.prototype.unsubscribe=function(){var t,e=!1;if(!this.closed){var i=this._parent,a=this._parents,h=this._unsubscribe,p=this._subscriptions;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;for(var f=-1,d=a?a.length:0;i;)i.remove(this),i=++f<d&&a[f]||null;if(o.isFunction(h))s.tryCatch(h).call(this)===u.errorObject&&(e=!0,t=t||(u.errorObject.e instanceof c.UnsubscriptionError?l(u.errorObject.e.errors):[u.errorObject.e]));if(n.isArray(p))for(f=-1,d=p.length;++f<d;){var b=p[f];if(r.isObject(b))if(s.tryCatch(b.unsubscribe).call(b)===u.errorObject){e=!0,t=t||[];var v=u.errorObject.e;v instanceof c.UnsubscriptionError?t=t.concat(l(v.errors)):t.push(v)}}if(e)throw new c.UnsubscriptionError(t)}},t.prototype.add=function(e){if(!e||e===t.EMPTY)return t.EMPTY;if(e===this)return this;var i=e;switch(typeof e){case"function":i=new t(e);case"object":if(i.closed||"function"!=typeof i.unsubscribe)return i;if(this.closed)return i.unsubscribe(),i;if("function"!=typeof i._addParent){var n=i;(i=new t)._subscriptions=[n]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}return(this._subscriptions||(this._subscriptions=[])).push(i),i._addParent(this),i},t.prototype.remove=function(t){var e=this._subscriptions;if(e){var i=e.indexOf(t);-1!==i&&e.splice(i,1)}},t.prototype._addParent=function(t){var e=this._parent,i=this._parents;e&&e!==t?i?-1===i.indexOf(t)&&i.push(t):this._parents=[t]:this._parent=t},t.EMPTY=((e=new t).closed=!0,e),t}();function l(t){return t.reduce((function(t,e){return t.concat(e instanceof c.UnsubscriptionError?e.errors:e)}),[])}e.Subscription=a},1702:function(t,e,i){"use strict";e.errorObject={e:{}}},1703:function(t,e,i){"use strict";var n=i(1983),r=i(1984);e.async=new r.AsyncScheduler(n.AsyncAction)},1706:function(t,e,i){"use strict";var n,r=i(1702);function o(){try{return n.apply(this,arguments)}catch(t){return r.errorObject.e=t,r.errorObject}}e.tryCatch=function(t){return n=t,o}},1710:function(t,e,i){"use strict";(function(t){var i="undefined"!=typeof window&&window,n="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,r=i||void 0!==t&&t||n;e.root=r,function(){if(!r)throw new Error("RxJS could not find any global context (window, self, global)")}()}).call(this,i(213))},1847:function(t,e,i){"use strict";e.isArray=Array.isArray||function(t){return t&&"number"==typeof t.length}},1853:function(t,e,i){"use strict";e.isScheduler=function(t){return t&&"function"==typeof t.schedule}},1854:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1695),o=i(1920),s=i(1857),u=i(1853),c=function(t){function e(e,i){t.call(this),this.array=e,this.scheduler=i,i||1!==e.length||(this._isScalar=!0,this.value=e[0])}return n(e,t),e.create=function(t,i){return new e(t,i)},e.of=function(){for(var t=[],i=0;i<arguments.length;i++)t[i-0]=arguments[i];var n=t[t.length-1];u.isScheduler(n)?t.pop():n=null;var r=t.length;return r>1?new e(t,n):1===r?new o.ScalarObservable(t[0],n):new s.EmptyObservable(n)},e.dispatch=function(t){var e=t.array,i=t.index,n=t.count,r=t.subscriber;i>=n?r.complete():(r.next(e[i]),r.closed||(t.index=i+1,this.schedule(t)))},e.prototype._subscribe=function(t){var i=this.array,n=i.length,r=this.scheduler;if(r)return r.schedule(e.dispatch,0,{array:i,index:0,count:n,subscriber:t});for(var o=0;o<n&&!t.closed;o++)t.next(i[o]);t.complete()},e}(r.Observable);e.ArrayObservable=c},1857:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=function(t){function e(e){t.call(this),this.scheduler=e}return n(e,t),e.create=function(t){return new e(t)},e.dispatch=function(t){t.subscriber.complete()},e.prototype._subscribe=function(t){var i=this.scheduler;if(i)return i.schedule(e.dispatch,0,{subscriber:t});t.complete()},e}(i(1695).Observable);e.EmptyObservable=r},1858:function(t,e,i){"use strict";var n=i(2163);e.multicast=function(t,e){return function(i){var o;if(o="function"==typeof t?t:function(){return t},"function"==typeof e)return i.lift(new r(o,e));var s=Object.create(i,n.connectableObservableDescriptor);return s.source=i,s.subjectFactory=o,s}};var r=function(){function t(t,e){this.subjectFactory=t,this.selector=e}return t.prototype.call=function(t,e){var i=this.selector,n=this.subjectFactory(),r=i(n).subscribe(t);return r.add(e.subscribe(n)),r},t}();e.MulticastOperator=r},1878:function(t,e,i){"use strict";var n=i(1710);function r(t){var e=t.Symbol;if("function"==typeof e)return e.iterator||(e.iterator=e("iterator polyfill")),e.iterator;var i=t.Set;if(i&&"function"==typeof(new i)["@@iterator"])return"@@iterator";var n=t.Map;if(n)for(var r=Object.getOwnPropertyNames(n.prototype),o=0;o<r.length;++o){var s=r[o];if("entries"!==s&&"size"!==s&&n.prototype[s]===n.prototype.entries)return s}return"@@iterator"}e.symbolIteratorPonyfill=r,e.iterator=r(n.root),e.$$iterator=e.iterator},1879:function(t,e,i){"use strict";e.isDate=function(t){return t instanceof Date&&!isNaN(+t)}},1880:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1691),o=i(1690);e.mergeMap=function(t,e,i){return void 0===i&&(i=Number.POSITIVE_INFINITY),function(n){return"number"==typeof e&&(i=e,e=null),n.lift(new s(t,e,i))}};var s=function(){function t(t,e,i){void 0===i&&(i=Number.POSITIVE_INFINITY),this.project=t,this.resultSelector=e,this.concurrent=i}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.project,this.resultSelector,this.concurrent))},t}();e.MergeMapOperator=s;var u=function(t){function e(e,i,n,r){void 0===r&&(r=Number.POSITIVE_INFINITY),t.call(this,e),this.project=i,this.resultSelector=n,this.concurrent=r,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}return n(e,t),e.prototype._next=function(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)},e.prototype._tryNext=function(t){var e,i=this.index++;try{e=this.project(t,i)}catch(t){return void this.destination.error(t)}this.active++,this._innerSub(e,t,i)},e.prototype._innerSub=function(t,e,i){this.add(r.subscribeToResult(this,t,e,i))},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete()},e.prototype.notifyNext=function(t,e,i,n,r){this.resultSelector?this._notifyResultSelector(t,e,i,n):this.destination.next(e)},e.prototype._notifyResultSelector=function(t,e,i,n){var r;try{r=this.resultSelector(t,e,i,n)}catch(t){return void this.destination.error(t)}this.destination.next(r)},e.prototype.notifyComplete=function(t){var e=this.buffer;this.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(o.OuterSubscriber);e.MergeMapSubscriber=u},1881:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=function(t){function e(){var e=t.call(this,"argument out of range");this.name=e.name="ArgumentOutOfRangeError",this.stack=e.stack,this.message=e.message}return n(e,t),e}(Error);e.ArgumentOutOfRangeError=r},1882:function(t,e,i){"use strict";var n=i(1995),r=i(1996),o=i(1991),s=i(1977);e.reduce=function(t,e){return arguments.length>=2?function(i){return s.pipe(n.scan(t,e),r.takeLast(1),o.defaultIfEmpty(e))(i)}:function(e){return s.pipe(n.scan((function(e,i,n){return t(e,i,n+1)})),r.takeLast(1))(e)}}},1917:function(t,e,i){"use strict";var n=i(1710).root.Symbol;e.rxSubscriber="function"==typeof n&&"function"==typeof n.for?n.for("rxSubscriber"):"@@rxSubscriber",e.$$rxSubscriber=e.rxSubscriber},1918:function(t,e,i){"use strict";var n=i(1710);function r(t){var e,i=t.Symbol;return"function"==typeof i?i.observable?e=i.observable:(e=i("observable"),i.observable=e):e="@@observable",e}e.getSymbolObservable=r,e.observable=r(n.root),e.$$observable=e.observable},1919:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=function(t){function e(){var e=t.call(this,"object unsubscribed");this.name=e.name="ObjectUnsubscribedError",this.stack=e.stack,this.message=e.message}return n(e,t),e}(Error);e.ObjectUnsubscribedError=r},1920:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=function(t){function e(e,i){t.call(this),this.value=e,this.scheduler=i,this._isScalar=!0,i&&(this._isScalar=!1)}return n(e,t),e.create=function(t,i){return new e(t,i)},e.dispatch=function(t){var e=t.done,i=t.value,n=t.subscriber;e?n.complete():(n.next(i),n.closed||(t.done=!0,this.schedule(t)))},e.prototype._subscribe=function(t){var i=this.value,n=this.scheduler;if(n)return n.schedule(e.dispatch,0,{done:!1,value:i,subscriber:t});t.next(i),t.closed||t.complete()},e}(i(1695).Observable);e.ScalarObservable=r},1921:function(t,e,i){"use strict";var n=i(1853),r=i(2126),o=i(2127),s=i(1988);e.concat=function(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return 1===t.length||2===t.length&&n.isScheduler(t[1])?o.from(t[0]):s.concatAll()(r.of.apply(void 0,t))}},1922:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1686),o=i(1923);e.observeOn=function(t,e){return void 0===e&&(e=0),function(i){return i.lift(new s(t,e))}};var s=function(){function t(t,e){void 0===e&&(e=0),this.scheduler=t,this.delay=e}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.scheduler,this.delay))},t}();e.ObserveOnOperator=s;var u=function(t){function e(e,i,n){void 0===n&&(n=0),t.call(this,e),this.scheduler=i,this.delay=n}return n(e,t),e.dispatch=function(t){var e=t.notification,i=t.destination;e.observe(i),this.unsubscribe()},e.prototype.scheduleMessage=function(t){this.add(this.scheduler.schedule(e.dispatch,this.delay,new c(t,this.destination)))},e.prototype._next=function(t){this.scheduleMessage(o.Notification.createNext(t))},e.prototype._error=function(t){this.scheduleMessage(o.Notification.createError(t))},e.prototype._complete=function(){this.scheduleMessage(o.Notification.createComplete())},e}(r.Subscriber);e.ObserveOnSubscriber=u;var c=function(t,e){this.notification=t,this.destination=e};e.ObserveOnMessage=c},1923:function(t,e,i){"use strict";var n=i(1695),r=function(){function t(t,e,i){this.kind=t,this.value=e,this.error=i,this.hasValue="N"===t}return t.prototype.observe=function(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}},t.prototype.do=function(t,e,i){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return i&&i()}},t.prototype.accept=function(t,e,i){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,i)},t.prototype.toObservable=function(){switch(this.kind){case"N":return n.Observable.of(this.value);case"E":return n.Observable.throw(this.error);case"C":return n.Observable.empty()}throw new Error("unexpected notification kind value")},t.createNext=function(e){return void 0!==e?new t("N",e):t.undefinedValueNotification},t.createError=function(e){return new t("E",void 0,e)},t.createComplete=function(){return t.completeNotification},t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t}();e.Notification=r},1924:function(t,e,i){"use strict";var n=i(1880),r=i(1989);e.mergeAll=function(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),n.mergeMap(r.identity,null,t)}},1925:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=function(t){function e(){var e=t.call(this,"no elements in sequence");this.name=e.name="EmptyError",this.stack=e.stack,this.message=e.message}return n(e,t),e}(Error);e.EmptyError=r},1926:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1686);e.map=function(t,e){return function(i){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return i.lift(new o(t,e))}};var o=function(){function t(t,e){this.project=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.project,this.thisArg))},t}();e.MapOperator=o;var s=function(t){function e(e,i,n){t.call(this,e),this.project=i,this.count=0,this.thisArg=n||this}return n(e,t),e.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(r.Subscriber)},1927:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1686);e.refCount=function(){return function(t){return t.lift(new o(t))}};var o=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var i=this.connectable;i._refCount++;var n=new s(t,i),r=e.subscribe(n);return n.closed||(n.connection=i.connect()),r},t}(),s=function(t){function e(e,i){t.call(this,e),this.connectable=i}return n(e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)this.connection=null;else{var i=this.connection,n=t._connection;this.connection=null,!n||i&&n!==i||n.unsubscribe()}}else this.connection=null},e}(r.Subscriber)},1973:function(t,e,i){"use strict";i.r(e),i.d(e,"Ng5SliderModule",(function(){return J})),i.d(e,"ChangeContext",(function(){return I})),i.d(e,"PointerType",(function(){return N})),i.d(e,"LabelType",(function(){return H})),i.d(e,"Options",(function(){return M})),i.d(e,"ɵb",(function(){return F})),i.d(e,"ɵc",(function(){return z})),i.d(e,"ɵd",(function(){return W})),i.d(e,"ɵa",(function(){return $})),i.d(e,"ɵe",(function(){return X}));var n=i(1),r=i(1694),o=(i(1699),i(0)),s=i(2111),u=i(2215),c=i.n(u),a=i(624),l=i(3),h=["tooltipTemplate"],p=["leftOuterSelectionBar"],f=["rightOuterSelectionBar"],d=["fullBar"],b=["selectionBar"],v=["minHandle"],y=["maxHandle"],m=["floorLabel"],w=["ceilLabel"],g=["minHandleLabel"],O=["maxHandleLabel"],x=["combinedLabel"],S=["ticksElement"];function _(t,e){if(1&t&&o["ɵɵelement"](0,"ng5-slider-tooltip-wrapper",31),2&t){var i=o["ɵɵnextContext"]().$implicit,n=o["ɵɵnextContext"]();o["ɵɵproperty"]("template",n.tooltipTemplate)("tooltip",i.valueTooltip)("placement",i.valueTooltipPlacement)("content",i.value)}}function E(t,e){if(1&t&&o["ɵɵelement"](0,"span",32),2&t){var i=o["ɵɵnextContext"]().$implicit;o["ɵɵproperty"]("innerHTML",i.legend,o["ɵɵsanitizeHtml"])}}var T=function(t){return{"ng5-slider-selected":t}};function V(t,e){if(1&t&&(o["ɵɵelementStart"](0,"span",27),o["ɵɵelement"](1,"ng5-slider-tooltip-wrapper",28),o["ɵɵtemplate"](2,_,1,4,"ng5-slider-tooltip-wrapper",29),o["ɵɵtemplate"](3,E,1,1,"span",30),o["ɵɵelementEnd"]()),2&t){var i=e.$implicit,n=o["ɵɵnextContext"]();o["ɵɵproperty"]("ngClass",o["ɵɵpureFunction1"](7,T,i.selected))("ngStyle",i.style),o["ɵɵadvance"](1),o["ɵɵproperty"]("template",n.tooltipTemplate)("tooltip",i.tooltip)("placement",i.tooltipPlacement),o["ɵɵadvance"](1),o["ɵɵproperty"]("ngIf",null!=i.value),o["ɵɵadvance"](1),o["ɵɵproperty"]("ngIf",null!=i.legend)}}function C(t,e){}function L(t,e){1&t&&o["ɵɵtemplate"](0,C,0,0,"ng-template")}var P=function(t,e,i){return{tooltip:t,placement:e,content:i}};function j(t,e){if(1&t&&(o["ɵɵelementContainerStart"](0),o["ɵɵtemplate"](1,L,1,0,void 0,1),o["ɵɵelementContainerEnd"]()),2&t){var i=o["ɵɵnextContext"]();o["ɵɵadvance"](1),o["ɵɵproperty"]("ngTemplateOutlet",i.template)("ngTemplateOutletContext",o["ɵɵpureFunction3"](2,P,i.tooltip,i.placement,i.content))}}function k(t,e){if(1&t&&(o["ɵɵelementContainerStart"](0),o["ɵɵelementStart"](1,"div",2),o["ɵɵtext"](2),o["ɵɵelementEnd"](),o["ɵɵelementContainerEnd"]()),2&t){var i=o["ɵɵnextContext"]();o["ɵɵadvance"](1),o["ɵɵattribute"]("title",i.tooltip)("data-tooltip-placement",i.placement),o["ɵɵadvance"](1),o["ɵɵtextInterpolate1"](" ",i.content," ")}}var N={Min:0,Max:1};N[N.Min]="Min",N[N.Max]="Max";var H={Low:0,High:1,Floor:2,Ceil:3,TickValue:4};H[H.Low]="Low",H[H.High]="High",H[H.Floor]="Floor",H[H.Ceil]="Ceil",H[H.TickValue]="TickValue";var M=function(){this.floor=0,this.ceil=null,this.step=1,this.minRange=null,this.maxRange=null,this.pushRange=!1,this.minLimit=null,this.maxLimit=null,this.translate=null,this.combineLabels=null,this.getLegend=null,this.stepsArray=null,this.bindIndexForStepsArray=!1,this.draggableRange=!1,this.draggableRangeOnly=!1,this.showSelectionBar=!1,this.showSelectionBarEnd=!1,this.showSelectionBarFromValue=null,this.showOuterSelectionBars=!1,this.hidePointerLabels=!1,this.hideLimitLabels=!1,this.autoHideLimitLabels=!0,this.readOnly=!1,this.disabled=!1,this.mouseEventsInterval=50,this.touchEventsInterval=50,this.inputEventsInterval=100,this.outputEventsInterval=100,this.showTicks=!1,this.showTicksValues=!1,this.tickStep=null,this.tickValueStep=1,this.ticksArray=null,this.ticksTooltip=null,this.ticksValuesTooltip=null,this.vertical=!1,this.getSelectionBarColor=null,this.getTickColor=null,this.getPointerColor=null,this.keyboardSupport=!0,this.scale=1,this.enforceStep=!0,this.enforceRange=!0,this.noSwitching=!1,this.onlyBindHandles=!1,this.rightToLeft=!1,this.reversedControls=!1,this.boundPointerLabels=!0,this.logScale=!1,this.customValueToPosition=null,this.customPositionToValue=null,this.precisionLimit=12,this.selectionBarGradient=null,this.ariaLabel=null,this.ariaLabelledBy=null,this.ariaLabelHigh=null,this.ariaLabelledByHigh=null,this.handleDimension=null,this.barDimension=null,this.animate=!0},I=function(){},R=function(){function t(){}return t.isNullOrUndefined=function(t){return null==t},t.linearValueToPosition=function(t,e,i){return(t-e)/(i-e)},t.logValueToPosition=function(t,e,i){return((t=Math.log(t))-(e=Math.log(e)))/((i=Math.log(i))-e)},t.linearPositionToValue=function(t,e,i){return t*(i-e)+e},t.logPositionToValue=function(t,e,i){e=Math.log(e);var n=t*((i=Math.log(i))-e)+e;return Math.exp(n)},t.findStepIndex=function(t,e){for(var i=e.map((function(e){return Math.abs(t-e.value)})),n=0,r=0;r<e.length;r++)i[r]!==i[n]&&i[r]<i[n]&&(n=r);return n},t}(),A=function(){function t(){}return t.isTouchEvent=function(t){return void 0!==window.TouchEvent?t instanceof TouchEvent:void 0!==t.touches},t.isResizeObserverAvailable=function(){return void 0!==window.ResizeObserver},t}(),B=function(){function t(){}return t.roundToPrecisionLimit=function(t,e){return+t.toPrecision(e)},t.clampToRange=function(t,e,i){return Math.min(Math.max(t,e),i)},t}(),U=function(){this.eventName=null,this.events=null,this.eventsSubscription=null,this.teardownCallback=null},D=function(){function t(t){this.renderer=t}return t.prototype.attachPassiveEventListener=function(t,e,i,n){if(!0!==c.a.hasSupport)return this.attachEventListener(t,e,i,n);var o=new U;o.eventName=e,o.events=new r.Subject;var u=function(t){o.events.next(t)};return t.addEventListener(e,u,{passive:!0,capture:!1}),o.teardownCallback=function(){t.removeEventListener(e,u,{passive:!0,capture:!1})},o.eventsSubscription=o.events.pipe(R.isNullOrUndefined(n)?Object(s.tap)((function(){})):Object(s.throttleTime)(n,void 0,{leading:!0,trailing:!0})).subscribe((function(t){i(t)})),o},t.prototype.detachEventListener=function(t){R.isNullOrUndefined(t.eventsSubscription)||(t.eventsSubscription.unsubscribe(),t.eventsSubscription=null),R.isNullOrUndefined(t.events)||(t.events.complete(),t.events=null),R.isNullOrUndefined(t.teardownCallback)||(t.teardownCallback(),t.teardownCallback=null)},t.prototype.attachEventListener=function(t,e,i,n){var o=new U;o.eventName=e,o.events=new r.Subject;return o.teardownCallback=this.renderer.listen(t,e,(function(t){o.events.next(t)})),o.eventsSubscription=o.events.pipe(R.isNullOrUndefined(n)?Object(s.tap)((function(){})):Object(s.throttleTime)(n,void 0,{leading:!0,trailing:!0})).subscribe((function(t){i(t)})),o},t}(),F=function(){function t(t,e){this.elemRef=t,this.renderer=e,this._position=0,this._dimension=0,this._alwaysHide=!1,this._vertical=!1,this._scale=1,this.opacity=1,this.visibility="visible",this.left="",this.bottom="",this.height="",this.width="",this.eventListeners=[],this.eventListenerHelper=new D(this.renderer)}return Object.defineProperty(t.prototype,"position",{get:function(){return this._position},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dimension",{get:function(){return this._dimension},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"alwaysHide",{get:function(){return this._alwaysHide},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"vertical",{get:function(){return this._vertical},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"scale",{get:function(){return this._scale},enumerable:!0,configurable:!0}),t.prototype.setAlwaysHide=function(t){this._alwaysHide=t,this.visibility=t?"hidden":"visible"},t.prototype.hide=function(){this.opacity=0},t.prototype.show=function(){this.alwaysHide||(this.opacity=1)},t.prototype.isVisible=function(){return!this.alwaysHide&&0!==this.opacity},t.prototype.setVertical=function(t){this._vertical=t,this._vertical?(this.left="",this.width=""):(this.bottom="",this.height="")},t.prototype.setScale=function(t){this._scale=t},t.prototype.setPosition=function(t){this._position=t,this._vertical?this.bottom=Math.round(t)+"px":this.left=Math.round(t)+"px"},t.prototype.calculateDimension=function(){var t=this.getBoundingClientRect();this.vertical?this._dimension=(t.bottom-t.top)*this.scale:this._dimension=(t.right-t.left)*this.scale},t.prototype.setDimension=function(t){this._dimension=t,this._vertical?this.height=Math.round(t)+"px":this.width=Math.round(t)+"px"},t.prototype.getBoundingClientRect=function(){return this.elemRef.nativeElement.getBoundingClientRect()},t.prototype.on=function(t,e,i){var n=this.eventListenerHelper.attachEventListener(this.elemRef.nativeElement,t,e,i);this.eventListeners.push(n)},t.prototype.onPassive=function(t,e,i){var n=this.eventListenerHelper.attachPassiveEventListener(this.elemRef.nativeElement,t,e,i);this.eventListeners.push(n)},t.prototype.off=function(t){var e,i,r,o;R.isNullOrUndefined(t)?(e=[],i=this.eventListeners):(e=this.eventListeners.filter((function(e){return e.eventName!==t})),i=this.eventListeners.filter((function(e){return e.eventName===t})));try{for(var s=Object(n.j)(i),u=s.next();!u.done;u=s.next()){var c=u.value;this.eventListenerHelper.detachEventListener(c)}}catch(t){r={error:t}}finally{try{u&&!u.done&&(o=s.return)&&o.call(s)}finally{if(r)throw r.error}}this.eventListeners=e},t.ɵfac=function(e){return new(e||t)(o["ɵɵdirectiveInject"](o.ElementRef),o["ɵɵdirectiveInject"](o.Renderer2))},t.ɵdir=o["ɵɵdefineDirective"]({type:t,selectors:[["","ng5SliderElement",""]],hostVars:12,hostBindings:function(t,e){2&t&&o["ɵɵstyleProp"]("opacity",e.opacity)("visibility",e.visibility)("left",e.left)("bottom",e.bottom)("height",e.height)("width",e.width)}}),t}();F.ctorParameters=function(){return[{type:o.ElementRef},{type:o.Renderer2}]},F.propDecorators={opacity:[{type:o.HostBinding,args:["style.opacity"]}],visibility:[{type:o.HostBinding,args:["style.visibility"]}],left:[{type:o.HostBinding,args:["style.left"]}],bottom:[{type:o.HostBinding,args:["style.bottom"]}],height:[{type:o.HostBinding,args:["style.height"]}],width:[{type:o.HostBinding,args:["style.width"]}]};var z=function(t){function e(e,i){var n=t.call(this,e,i)||this;return n.active=!1,n.role="",n.tabindex="",n.ariaOrientation="",n.ariaLabel="",n.ariaLabelledBy="",n.ariaValueNow="",n.ariaValueText="",n.ariaValueMin="",n.ariaValueMax="",n}return Object(n.c)(e,t),e.prototype.focus=function(){this.elemRef.nativeElement.focus()},e.ɵfac=function(t){return new(t||e)(o["ɵɵdirectiveInject"](o.ElementRef),o["ɵɵdirectiveInject"](o.Renderer2))},e.ɵdir=o["ɵɵdefineDirective"]({type:e,selectors:[["","ng5SliderHandle",""]],hostVars:11,hostBindings:function(t,e){2&t&&(o["ɵɵattribute"]("role",e.role)("tabindex",e.tabindex)("aria-orientation",e.ariaOrientation)("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledBy)("aria-valuenow",e.ariaValueNow)("aria-valuetext",e.ariaValueText)("aria-valuemin",e.ariaValueMin)("aria-valuemax",e.ariaValueMax),o["ɵɵclassProp"]("ng5-slider-active",e.active))},features:[o["ɵɵInheritDefinitionFeature"]]}),e}(F);z.ctorParameters=function(){return[{type:o.ElementRef},{type:o.Renderer2}]},z.propDecorators={active:[{type:o.HostBinding,args:["class.ng5-slider-active"]}],role:[{type:o.HostBinding,args:["attr.role"]}],tabindex:[{type:o.HostBinding,args:["attr.tabindex"]}],ariaOrientation:[{type:o.HostBinding,args:["attr.aria-orientation"]}],ariaLabel:[{type:o.HostBinding,args:["attr.aria-label"]}],ariaLabelledBy:[{type:o.HostBinding,args:["attr.aria-labelledby"]}],ariaValueNow:[{type:o.HostBinding,args:["attr.aria-valuenow"]}],ariaValueText:[{type:o.HostBinding,args:["attr.aria-valuetext"]}],ariaValueMin:[{type:o.HostBinding,args:["attr.aria-valuemin"]}],ariaValueMax:[{type:o.HostBinding,args:["attr.aria-valuemax"]}]};var W=function(t){function e(e,i){var n=t.call(this,e,i)||this;return n._value=null,n}return Object(n.c)(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),e.prototype.setValue=function(t){var e=!1;!this.alwaysHide&&(R.isNullOrUndefined(this.value)||this.value.length!==t.length||this.value.length>0&&0===this.dimension)&&(e=!0),this._value=t,this.elemRef.nativeElement.innerHTML=t,e&&this.calculateDimension()},e.ɵfac=function(t){return new(t||e)(o["ɵɵdirectiveInject"](o.ElementRef),o["ɵɵdirectiveInject"](o.Renderer2))},e.ɵdir=o["ɵɵdefineDirective"]({type:e,selectors:[["","ng5SliderLabel",""]],features:[o["ɵɵInheritDefinitionFeature"]]}),e}(F);W.ctorParameters=function(){return[{type:o.ElementRef},{type:o.Renderer2}]};var q=function(){this.selected=!1,this.style={},this.tooltip=null,this.tooltipPlacement=null,this.value=null,this.valueTooltip=null,this.valueTooltipPlacement=null,this.legend=null},Y=function(){this.active=!1,this.value=0,this.difference=0,this.position=0,this.lowLimit=0,this.highLimit=0},Q=function(){function t(){}return t.compare=function(t,e){return(!R.isNullOrUndefined(t)||!R.isNullOrUndefined(e))&&(R.isNullOrUndefined(t)===R.isNullOrUndefined(e)&&(t.value===e.value&&t.highValue===e.highValue))},t}(),G=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(n.c)(e,t),e.compare=function(t,e){return(!R.isNullOrUndefined(t)||!R.isNullOrUndefined(e))&&(R.isNullOrUndefined(t)===R.isNullOrUndefined(e)&&(t.value===e.value&&t.highValue===e.highValue&&t.forceChange===e.forceChange))},e}(Q),K={provide:a.NG_VALUE_ACCESSOR,useExisting:Object(o.forwardRef)((function(){return $})),multi:!0},$=function(){function t(t,e,i,n){this.renderer=t,this.elementRef=e,this.changeDetectionRef=i,this.zone=n,this.value=null,this.valueChange=new o.EventEmitter,this.highValue=null,this.highValueChange=new o.EventEmitter,this.options=new M,this.userChangeStart=new o.EventEmitter,this.userChange=new o.EventEmitter,this.userChangeEnd=new o.EventEmitter,this.initHasRun=!1,this.inputModelChangeSubject=new r.Subject,this.inputModelChangeSubscription=null,this.outputModelChangeSubject=new r.Subject,this.outputModelChangeSubscription=null,this.viewLowValue=null,this.viewHighValue=null,this.viewOptions=new M,this.handleHalfDimension=0,this.maxHandlePosition=0,this.currentTrackingPointer=null,this.currentFocusPointer=null,this.firstKeyDown=!1,this.touchId=null,this.dragging=new Y,this.sliderElementVerticalClass=!1,this.sliderElementAnimateClass=!1,this.sliderElementDisabledAttr=null,this.barStyle={},this.minPointerStyle={},this.maxPointerStyle={},this.fullBarTransparentClass=!1,this.selectionBarDraggableClass=!1,this.ticksUnderValuesClass=!1,this.intermediateTicks=!1,this.ticks=[],this.eventListenerHelper=null,this.onMoveEventListener=null,this.onEndEventListener=null,this.resizeObserver=null,this.onTouchedCallback=null,this.onChangeCallback=null,this.eventListenerHelper=new D(this.renderer)}return Object.defineProperty(t.prototype,"manualRefresh",{set:function(t){var e=this;this.unsubscribeManualRefresh(),this.manualRefreshSubscription=t.subscribe((function(){setTimeout((function(){return e.calculateViewDimensionsAndDetectChanges()}))}))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"triggerFocus",{set:function(t){var e=this;this.unsubscribeTriggerFocus(),this.triggerFocusSubscription=t.subscribe((function(t){e.focusPointer(t)}))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"range",{get:function(){return!R.isNullOrUndefined(this.value)&&!R.isNullOrUndefined(this.highValue)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showTicks",{get:function(){return this.viewOptions.showTicks},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){this.viewOptions=new M,Object.assign(this.viewOptions,this.options),this.updateDisabledState(),this.updateVerticalState()},t.prototype.ngAfterViewInit=function(){this.applyOptions(),this.subscribeInputModelChangeSubject(this.viewOptions.inputEventsInterval),this.subscribeOutputModelChangeSubject(this.viewOptions.outputEventsInterval),this.renormaliseModelValues(),this.viewLowValue=this.modelValueToViewValue(this.value),this.range?this.viewHighValue=this.modelValueToViewValue(this.highValue):this.viewHighValue=null,this.updateVerticalState(),this.manageElementsStyle(),this.updateDisabledState(),this.calculateViewDimensions(),this.addAccessibility(),this.updateCeilLabel(),this.updateFloorLabel(),this.initHandles(),this.manageEventsBindings(),this.subscribeResizeObserver(),this.initHasRun=!0,this.changeDetectionRef.detectChanges()},t.prototype.ngOnChanges=function(t){R.isNullOrUndefined(t.options)||this.onChangeOptions(),R.isNullOrUndefined(t.value)&&R.isNullOrUndefined(t.highValue)||this.inputModelChangeSubject.next({value:this.value,highValue:this.highValue,forceChange:!1,internalChange:!1})},t.prototype.ngOnDestroy=function(){this.unbindEvents(),this.unsubscribeResizeObserver(),this.unsubscribeInputModelChangeSubject(),this.unsubscribeOutputModelChangeSubject(),this.unsubscribeManualRefresh(),this.unsubscribeTriggerFocus()},t.prototype.writeValue=function(t){t instanceof Array?(this.value=t[0],this.highValue=t[1]):this.value=t,this.inputModelChangeSubject.next({value:this.value,highValue:this.highValue,forceChange:!1,internalChange:!1})},t.prototype.registerOnChange=function(t){this.onChangeCallback=t},t.prototype.registerOnTouched=function(t){this.onTouchedCallback=t},t.prototype.setDisabledState=function(t){this.viewOptions.disabled=t,this.updateDisabledState()},t.prototype.onResize=function(t){this.calculateViewDimensionsAndDetectChanges()},t.prototype.subscribeInputModelChangeSubject=function(t){var e=this;this.inputModelChangeSubscription=this.inputModelChangeSubject.pipe(Object(s.distinctUntilChanged)(G.compare),Object(s.filter)((function(t){return!t.forceChange&&!t.internalChange})),R.isNullOrUndefined(t)?Object(s.tap)((function(){})):Object(s.throttleTime)(t,void 0,{leading:!0,trailing:!0})).subscribe((function(t){return e.applyInputModelChange(t)}))},t.prototype.subscribeOutputModelChangeSubject=function(t){var e=this;this.outputModelChangeSubscription=this.outputModelChangeSubject.pipe(Object(s.distinctUntilChanged)(G.compare),R.isNullOrUndefined(t)?Object(s.tap)((function(){})):Object(s.throttleTime)(t,void 0,{leading:!0,trailing:!0})).subscribe((function(t){return e.publishOutputModelChange(t)}))},t.prototype.subscribeResizeObserver=function(){var t=this;A.isResizeObserverAvailable()&&(this.resizeObserver=new ResizeObserver((function(){return t.calculateViewDimensionsAndDetectChanges()})),this.resizeObserver.observe(this.elementRef.nativeElement))},t.prototype.unsubscribeResizeObserver=function(){A.isResizeObserverAvailable()&&null!==this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)},t.prototype.unsubscribeOnMove=function(){R.isNullOrUndefined(this.onMoveEventListener)||(this.eventListenerHelper.detachEventListener(this.onMoveEventListener),this.onMoveEventListener=null)},t.prototype.unsubscribeOnEnd=function(){R.isNullOrUndefined(this.onEndEventListener)||(this.eventListenerHelper.detachEventListener(this.onEndEventListener),this.onEndEventListener=null)},t.prototype.unsubscribeInputModelChangeSubject=function(){R.isNullOrUndefined(this.inputModelChangeSubscription)||(this.inputModelChangeSubscription.unsubscribe(),this.inputModelChangeSubscription=null)},t.prototype.unsubscribeOutputModelChangeSubject=function(){R.isNullOrUndefined(this.outputModelChangeSubscription)||(this.outputModelChangeSubscription.unsubscribe(),this.outputModelChangeSubscription=null)},t.prototype.unsubscribeManualRefresh=function(){R.isNullOrUndefined(this.manualRefreshSubscription)||(this.manualRefreshSubscription.unsubscribe(),this.manualRefreshSubscription=null)},t.prototype.unsubscribeTriggerFocus=function(){R.isNullOrUndefined(this.triggerFocusSubscription)||(this.triggerFocusSubscription.unsubscribe(),this.triggerFocusSubscription=null)},t.prototype.getPointerElement=function(t){return t===N.Min?this.minHandleElement:t===N.Max?this.maxHandleElement:null},t.prototype.getCurrentTrackingValue=function(){return this.currentTrackingPointer===N.Min?this.viewLowValue:this.currentTrackingPointer===N.Max?this.viewHighValue:null},t.prototype.modelValueToViewValue=function(t){return R.isNullOrUndefined(t)?NaN:R.isNullOrUndefined(this.viewOptions.stepsArray)||this.viewOptions.bindIndexForStepsArray?+t:R.findStepIndex(+t,this.viewOptions.stepsArray)},t.prototype.viewValueToModelValue=function(t){return R.isNullOrUndefined(this.viewOptions.stepsArray)||this.viewOptions.bindIndexForStepsArray?t:this.getStepValue(t)},t.prototype.getStepValue=function(t){var e=this.viewOptions.stepsArray[t];return R.isNullOrUndefined(e)?NaN:e.value},t.prototype.applyViewChange=function(){this.value=this.viewValueToModelValue(this.viewLowValue),this.range&&(this.highValue=this.viewValueToModelValue(this.viewHighValue)),this.outputModelChangeSubject.next({value:this.value,highValue:this.highValue,userEventInitiated:!0,forceChange:!1}),this.inputModelChangeSubject.next({value:this.value,highValue:this.highValue,forceChange:!1,internalChange:!0})},t.prototype.applyInputModelChange=function(t){var e=this.normaliseModelValues(t),i=!Q.compare(t,e);i&&(this.value=e.value,this.highValue=e.highValue),this.viewLowValue=this.modelValueToViewValue(e.value),this.range?this.viewHighValue=this.modelValueToViewValue(e.highValue):this.viewHighValue=null,this.updateLowHandle(this.valueToPosition(this.viewLowValue)),this.range&&this.updateHighHandle(this.valueToPosition(this.viewHighValue)),this.updateSelectionBar(),this.updateTicksScale(),this.updateAriaAttributes(),this.range&&this.updateCombinedLabel(),this.outputModelChangeSubject.next({value:e.value,highValue:e.highValue,forceChange:i,userEventInitiated:!1})},t.prototype.publishOutputModelChange=function(t){var e=this,i=function(){e.valueChange.emit(t.value),e.range&&e.highValueChange.emit(t.highValue),R.isNullOrUndefined(e.onChangeCallback)||(e.range?e.onChangeCallback([t.value,t.highValue]):e.onChangeCallback(t.value)),R.isNullOrUndefined(e.onTouchedCallback)||(e.range?e.onTouchedCallback([t.value,t.highValue]):e.onTouchedCallback(t.value))};t.userEventInitiated?(i(),this.userChange.emit(this.getChangeContext())):setTimeout((function(){i()}))},t.prototype.normaliseModelValues=function(t){var e=new Q;if(e.value=t.value,e.highValue=t.highValue,this.viewOptions.enforceStep&&(e.value=this.roundStep(e.value),this.range&&(e.highValue=this.roundStep(e.highValue))),!R.isNullOrUndefined(this.viewOptions.stepsArray)||!this.viewOptions.enforceRange)return e;if(e.value=B.clampToRange(e.value,this.viewOptions.floor,this.viewOptions.ceil),this.range&&(e.highValue=B.clampToRange(e.highValue,this.viewOptions.floor,this.viewOptions.ceil)),this.range&&t.value>t.highValue)if(this.viewOptions.noSwitching)e.value=e.highValue;else{var i=t.value;e.value=t.highValue,e.highValue=i}return e},t.prototype.renormaliseModelValues=function(){var t={value:this.value,highValue:this.highValue},e=this.normaliseModelValues(t);Q.compare(e,t)||(this.value=e.value,this.highValue=e.highValue,this.outputModelChangeSubject.next({value:this.value,highValue:this.highValue,forceChange:!0,userEventInitiated:!1}))},t.prototype.onChangeOptions=function(){if(this.initHasRun){var t=this.viewOptions.inputEventsInterval,e=this.viewOptions.outputEventsInterval;this.applyOptions(),t!==this.viewOptions.inputEventsInterval&&(this.unsubscribeInputModelChangeSubject(),this.subscribeInputModelChangeSubject(this.viewOptions.inputEventsInterval)),e!==this.viewOptions.outputEventsInterval&&(this.unsubscribeInputModelChangeSubject(),this.subscribeInputModelChangeSubject(this.viewOptions.outputEventsInterval)),this.renormaliseModelValues(),this.viewLowValue=this.modelValueToViewValue(this.value),this.range?this.viewHighValue=this.modelValueToViewValue(this.highValue):this.viewHighValue=null,this.resetSlider()}},t.prototype.applyOptions=function(){if(this.viewOptions=new M,Object.assign(this.viewOptions,this.options),this.viewOptions.draggableRange=this.range&&this.viewOptions.draggableRange,this.viewOptions.draggableRangeOnly=this.range&&this.viewOptions.draggableRangeOnly,this.viewOptions.draggableRangeOnly&&(this.viewOptions.draggableRange=!0),this.viewOptions.showTicks=this.viewOptions.showTicks||this.viewOptions.showTicksValues||!R.isNullOrUndefined(this.viewOptions.ticksArray),!this.viewOptions.showTicks||R.isNullOrUndefined(this.viewOptions.tickStep)&&R.isNullOrUndefined(this.viewOptions.ticksArray)||(this.intermediateTicks=!0),this.viewOptions.showSelectionBar=this.viewOptions.showSelectionBar||this.viewOptions.showSelectionBarEnd||!R.isNullOrUndefined(this.viewOptions.showSelectionBarFromValue),R.isNullOrUndefined(this.viewOptions.stepsArray)?this.applyFloorCeilOptions():this.applyStepsArrayOptions(),R.isNullOrUndefined(this.viewOptions.combineLabels)&&(this.viewOptions.combineLabels=function(t,e){return t+" - "+e}),this.viewOptions.logScale&&0===this.viewOptions.floor)throw Error("Can't use floor=0 with logarithmic scale")},t.prototype.applyStepsArrayOptions=function(){var t=this;this.viewOptions.floor=0,this.viewOptions.ceil=this.viewOptions.stepsArray.length-1,this.viewOptions.step=1,R.isNullOrUndefined(this.viewOptions.translate)&&(this.viewOptions.translate=function(e){return t.viewOptions.bindIndexForStepsArray?String(t.getStepValue(e)):String(e)}),this.viewOptions.getLegend=function(e){return t.viewOptions.stepsArray[e].legend}},t.prototype.applyFloorCeilOptions=function(){if(R.isNullOrUndefined(this.viewOptions.step)?this.viewOptions.step=1:(this.viewOptions.step=+this.viewOptions.step,this.viewOptions.step<=0&&(this.viewOptions.step=1)),R.isNullOrUndefined(this.viewOptions.ceil)||R.isNullOrUndefined(this.viewOptions.floor))throw Error("floor and ceil options must be supplied");this.viewOptions.ceil=+this.viewOptions.ceil,this.viewOptions.floor=+this.viewOptions.floor,R.isNullOrUndefined(this.viewOptions.translate)&&(this.viewOptions.translate=function(t){return String(t)})},t.prototype.resetSlider=function(){this.manageElementsStyle(),this.addAccessibility(),this.updateCeilLabel(),this.updateFloorLabel(),this.unbindEvents(),this.manageEventsBindings(),this.updateDisabledState(),this.calculateViewDimensions(),this.refocusPointerIfNeeded()},t.prototype.focusPointer=function(t){t!==N.Min&&t!==N.Max&&(t=N.Min),t===N.Min?this.minHandleElement.focus():this.range&&t===N.Max&&this.maxHandleElement.focus()},t.prototype.refocusPointerIfNeeded=function(){R.isNullOrUndefined(this.currentFocusPointer)||(this.onPointerFocus(this.currentFocusPointer),this.getPointerElement(this.currentFocusPointer).focus())},t.prototype.manageElementsStyle=function(){var t=this;this.updateScale(),this.floorLabelElement.setAlwaysHide(this.viewOptions.showTicksValues||this.viewOptions.hideLimitLabels),this.ceilLabelElement.setAlwaysHide(this.viewOptions.showTicksValues||this.viewOptions.hideLimitLabels);var e=this.viewOptions.showTicksValues&&!this.intermediateTicks;this.minHandleLabelElement.setAlwaysHide(e||this.viewOptions.hidePointerLabels),this.maxHandleLabelElement.setAlwaysHide(e||!this.range||this.viewOptions.hidePointerLabels),this.combinedLabelElement.setAlwaysHide(e||!this.range||this.viewOptions.hidePointerLabels),this.selectionBarElement.setAlwaysHide(!this.range&&!this.viewOptions.showSelectionBar),this.leftOuterSelectionBarElement.setAlwaysHide(!this.range||!this.viewOptions.showOuterSelectionBars),this.rightOuterSelectionBarElement.setAlwaysHide(!this.range||!this.viewOptions.showOuterSelectionBars),this.fullBarTransparentClass=this.range&&this.viewOptions.showOuterSelectionBars,this.selectionBarDraggableClass=this.viewOptions.draggableRange&&!this.viewOptions.onlyBindHandles,this.ticksUnderValuesClass=this.intermediateTicks&&this.options.showTicksValues,this.sliderElementVerticalClass!==this.viewOptions.vertical&&(this.updateVerticalState(),setTimeout((function(){t.resetSlider()}))),this.sliderElementAnimateClass!==this.viewOptions.animate&&setTimeout((function(){t.sliderElementAnimateClass=t.viewOptions.animate}))},t.prototype.manageEventsBindings=function(){this.viewOptions.disabled||this.viewOptions.readOnly?this.unbindEvents():this.bindEvents()},t.prototype.updateDisabledState=function(){this.sliderElementDisabledAttr=this.viewOptions.disabled?"disabled":null},t.prototype.updateVerticalState=function(){this.sliderElementVerticalClass=this.viewOptions.vertical;try{for(var t=Object(n.j)(this.getAllSliderElements()),e=t.next();!e.done;e=t.next()){var i=e.value;R.isNullOrUndefined(i)||i.setVertical(this.viewOptions.vertical)}}catch(t){r={error:t}}finally{try{e&&!e.done&&(o=t.return)&&o.call(t)}finally{if(r)throw r.error}}var r,o},t.prototype.updateScale=function(){try{for(var t=Object(n.j)(this.getAllSliderElements()),e=t.next();!e.done;e=t.next()){e.value.setScale(this.viewOptions.scale)}}catch(t){i={error:t}}finally{try{e&&!e.done&&(r=t.return)&&r.call(t)}finally{if(i)throw i.error}}var i,r},t.prototype.getAllSliderElements=function(){return[this.leftOuterSelectionBarElement,this.rightOuterSelectionBarElement,this.fullBarElement,this.selectionBarElement,this.minHandleElement,this.maxHandleElement,this.floorLabelElement,this.ceilLabelElement,this.minHandleLabelElement,this.maxHandleLabelElement,this.combinedLabelElement,this.ticksElement]},t.prototype.initHandles=function(){this.updateLowHandle(this.valueToPosition(this.viewLowValue)),this.range&&this.updateHighHandle(this.valueToPosition(this.viewHighValue)),this.updateSelectionBar(),this.range&&this.updateCombinedLabel(),this.updateTicksScale()},t.prototype.addAccessibility=function(){this.updateAriaAttributes(),this.minHandleElement.role="slider",!this.viewOptions.keyboardSupport||this.viewOptions.readOnly||this.viewOptions.disabled?this.minHandleElement.tabindex="":this.minHandleElement.tabindex="0",this.viewOptions.vertical&&(this.minHandleElement.ariaOrientation="vertical"),R.isNullOrUndefined(this.viewOptions.ariaLabel)?R.isNullOrUndefined(this.viewOptions.ariaLabelledBy)||(this.minHandleElement.ariaLabelledBy=this.viewOptions.ariaLabelledBy):this.minHandleElement.ariaLabel=this.viewOptions.ariaLabel,this.range&&(this.maxHandleElement.role="slider",!this.viewOptions.keyboardSupport||this.viewOptions.readOnly||this.viewOptions.disabled?this.maxHandleElement.tabindex="":this.maxHandleElement.tabindex="0",this.maxHandleElement.ariaOrientation=this.viewOptions.vertical?"vertical":"horizontal",R.isNullOrUndefined(this.viewOptions.ariaLabelHigh)?R.isNullOrUndefined(this.viewOptions.ariaLabelledByHigh)||(this.maxHandleElement.ariaLabelledBy=this.viewOptions.ariaLabelledByHigh):this.maxHandleElement.ariaLabel=this.viewOptions.ariaLabelHigh)},t.prototype.updateAriaAttributes=function(){this.minHandleElement.ariaValueNow=(+this.value).toString(),this.minHandleElement.ariaValueText=this.viewOptions.translate(+this.value,H.Low),this.minHandleElement.ariaValueMin=this.viewOptions.floor.toString(),this.minHandleElement.ariaValueMax=this.viewOptions.ceil.toString(),this.range&&(this.maxHandleElement.ariaValueNow=(+this.highValue).toString(),this.maxHandleElement.ariaValueText=this.viewOptions.translate(+this.highValue,H.High),this.maxHandleElement.ariaValueMin=this.viewOptions.floor.toString(),this.maxHandleElement.ariaValueMax=this.viewOptions.ceil.toString())},t.prototype.calculateViewDimensions=function(){R.isNullOrUndefined(this.viewOptions.handleDimension)?this.minHandleElement.calculateDimension():this.minHandleElement.setDimension(this.viewOptions.handleDimension);var t=this.minHandleElement.dimension;this.handleHalfDimension=t/2,R.isNullOrUndefined(this.viewOptions.barDimension)?this.fullBarElement.calculateDimension():this.fullBarElement.setDimension(this.viewOptions.barDimension),this.maxHandlePosition=this.fullBarElement.dimension-t,this.initHasRun&&(this.updateFloorLabel(),this.updateCeilLabel(),this.initHandles())},t.prototype.calculateViewDimensionsAndDetectChanges=function(){this.calculateViewDimensions(),this.changeDetectionRef.detectChanges()},t.prototype.updateTicksScale=function(){var t=this;if(this.viewOptions.showTicks){var e=R.isNullOrUndefined(this.viewOptions.ticksArray)?this.getTicksArray():this.viewOptions.ticksArray,i=this.viewOptions.vertical?"translateY":"translateX";this.viewOptions.rightToLeft&&e.reverse();var n=e.map((function(e){var n=t.valueToPosition(e);t.viewOptions.vertical&&(n=t.maxHandlePosition-n);var r=i+"("+Math.round(n)+"px)",o=new q;if(o.selected=t.isTickSelected(e),o.style={"-webkit-transform":r,"-moz-transform":r,"-o-transform":r,"-ms-transform":r,transform:r},o.selected&&!R.isNullOrUndefined(t.viewOptions.getSelectionBarColor)&&(o.style["background-color"]=t.getSelectionBarColor()),o.selected||R.isNullOrUndefined(t.viewOptions.getTickColor)||(o.style["background-color"]=t.getTickColor(e)),R.isNullOrUndefined(t.viewOptions.ticksTooltip)||(o.tooltip=t.viewOptions.ticksTooltip(e),o.tooltipPlacement=t.viewOptions.vertical?"right":"top"),t.viewOptions.showTicksValues&&e%t.viewOptions.tickValueStep==0&&(o.value=t.getDisplayValue(e,H.TickValue),R.isNullOrUndefined(t.viewOptions.ticksValuesTooltip)||(o.valueTooltip=t.viewOptions.ticksValuesTooltip(e),o.valueTooltipPlacement=t.viewOptions.vertical?"right":"top")),!R.isNullOrUndefined(t.viewOptions.getLegend)){var s=t.viewOptions.getLegend(e);R.isNullOrUndefined(s)||(o.legend=s)}return o}));if(R.isNullOrUndefined(this.ticks)||this.ticks.length!==n.length)this.ticks=n;else for(var r=0;r<n.length;++r)Object.assign(this.ticks[r],n[r]);this.changeDetectionRef.detectChanges()}},t.prototype.getTicksArray=function(){for(var t=R.isNullOrUndefined(this.viewOptions.tickStep)?this.viewOptions.step:this.viewOptions.tickStep,e=[],i=this.viewOptions.floor;i<=this.viewOptions.ceil;i+=t)e.push(i);return e},t.prototype.isTickSelected=function(t){if(!this.range)if(R.isNullOrUndefined(this.viewOptions.showSelectionBarFromValue)){if(this.viewOptions.showSelectionBarEnd){if(t>=this.viewLowValue)return!0}else if(this.viewOptions.showSelectionBar&&t<=this.viewLowValue)return!0}else{var e=this.viewOptions.showSelectionBarFromValue;if(this.viewLowValue>e&&t>=e&&t<=this.viewLowValue)return!0;if(this.viewLowValue<e&&t<=e&&t>=this.viewLowValue)return!0}return!!(this.range&&t>=this.viewLowValue&&t<=this.viewHighValue)},t.prototype.updateFloorLabel=function(){if(!this.floorLabelElement.alwaysHide){this.floorLabelElement.setValue(this.getDisplayValue(this.viewOptions.floor,H.Floor)),this.floorLabelElement.calculateDimension();var t=this.viewOptions.rightToLeft?this.fullBarElement.dimension-this.floorLabelElement.dimension:0;this.floorLabelElement.setPosition(t)}},t.prototype.updateCeilLabel=function(){if(!this.ceilLabelElement.alwaysHide){this.ceilLabelElement.setValue(this.getDisplayValue(this.viewOptions.ceil,H.Ceil)),this.ceilLabelElement.calculateDimension();var t=this.viewOptions.rightToLeft?0:this.fullBarElement.dimension-this.ceilLabelElement.dimension;this.ceilLabelElement.setPosition(t)}},t.prototype.updateHandles=function(t,e){t===N.Min?this.updateLowHandle(e):t===N.Max&&this.updateHighHandle(e),this.updateSelectionBar(),this.updateTicksScale(),this.range&&this.updateCombinedLabel()},t.prototype.getHandleLabelPos=function(t,e){var i=t===N.Min?this.minHandleLabelElement.dimension:this.maxHandleLabelElement.dimension,n=e-i/2+this.handleHalfDimension,r=this.fullBarElement.dimension-i;return this.viewOptions.boundPointerLabels?this.viewOptions.rightToLeft&&t===N.Min||!this.viewOptions.rightToLeft&&t===N.Max?Math.min(n,r):Math.min(Math.max(n,0),r):n},t.prototype.updateLowHandle=function(t){this.minHandleElement.setPosition(t),this.minHandleLabelElement.setValue(this.getDisplayValue(this.viewLowValue,H.Low)),this.minHandleLabelElement.setPosition(this.getHandleLabelPos(N.Min,t)),R.isNullOrUndefined(this.viewOptions.getPointerColor)||(this.minPointerStyle={backgroundColor:this.getPointerColor(N.Min)}),this.viewOptions.autoHideLimitLabels&&this.updateFloorAndCeilLabelsVisibility()},t.prototype.updateHighHandle=function(t){this.maxHandleElement.setPosition(t),this.maxHandleLabelElement.setValue(this.getDisplayValue(this.viewHighValue,H.High)),this.maxHandleLabelElement.setPosition(this.getHandleLabelPos(N.Max,t)),R.isNullOrUndefined(this.viewOptions.getPointerColor)||(this.maxPointerStyle={backgroundColor:this.getPointerColor(N.Max)}),this.viewOptions.autoHideLimitLabels&&this.updateFloorAndCeilLabelsVisibility()},t.prototype.updateFloorAndCeilLabelsVisibility=function(){if(!this.viewOptions.hidePointerLabels){var t=!1,e=!1,i=this.isLabelBelowFloorLabel(this.minHandleLabelElement),n=this.isLabelAboveCeilLabel(this.minHandleLabelElement),r=this.isLabelAboveCeilLabel(this.maxHandleLabelElement),o=this.isLabelBelowFloorLabel(this.combinedLabelElement),s=this.isLabelAboveCeilLabel(this.combinedLabelElement);if(i?(t=!0,this.floorLabelElement.hide()):(t=!1,this.floorLabelElement.show()),n?(e=!0,this.ceilLabelElement.hide()):(e=!1,this.ceilLabelElement.show()),this.range){var u=this.combinedLabelElement.isVisible()?s:r,c=this.combinedLabelElement.isVisible()?o:i;u?this.ceilLabelElement.hide():e||this.ceilLabelElement.show(),c?this.floorLabelElement.hide():t||this.floorLabelElement.show()}}},t.prototype.isLabelBelowFloorLabel=function(t){var e=t.position,i=t.dimension,n=this.floorLabelElement.position,r=this.floorLabelElement.dimension;return this.viewOptions.rightToLeft?e+i>=n-2:e<=n+r+2},t.prototype.isLabelAboveCeilLabel=function(t){var e=t.position,i=t.dimension,n=this.ceilLabelElement.position,r=this.ceilLabelElement.dimension;return this.viewOptions.rightToLeft?e<=n+r+2:e+i>=n-2},t.prototype.updateSelectionBar=function(){var t=0,e=0,i=this.viewOptions.rightToLeft?!this.viewOptions.showSelectionBarEnd:this.viewOptions.showSelectionBarEnd,n=this.viewOptions.rightToLeft?this.maxHandleElement.position+this.handleHalfDimension:this.minHandleElement.position+this.handleHalfDimension;if(this.range)e=Math.abs(this.maxHandleElement.position-this.minHandleElement.position),t=n;else if(R.isNullOrUndefined(this.viewOptions.showSelectionBarFromValue))i?(e=Math.ceil(Math.abs(this.maxHandlePosition-this.minHandleElement.position)+this.handleHalfDimension),t=Math.floor(this.minHandleElement.position+this.handleHalfDimension)):(e=this.minHandleElement.position+this.handleHalfDimension,t=0);else{var r=this.viewOptions.showSelectionBarFromValue,o=this.valueToPosition(r);(this.viewOptions.rightToLeft?this.viewLowValue<=r:this.viewLowValue>r)?(e=this.minHandleElement.position-o,t=o+this.handleHalfDimension):(e=o-this.minHandleElement.position,t=this.minHandleElement.position+this.handleHalfDimension)}if(this.selectionBarElement.setDimension(e),this.selectionBarElement.setPosition(t),this.range&&this.viewOptions.showOuterSelectionBars&&(this.viewOptions.rightToLeft?(this.rightOuterSelectionBarElement.setDimension(t),this.rightOuterSelectionBarElement.setPosition(0),this.fullBarElement.calculateDimension(),this.leftOuterSelectionBarElement.setDimension(this.fullBarElement.dimension-(t+e)),this.leftOuterSelectionBarElement.setPosition(t+e)):(this.leftOuterSelectionBarElement.setDimension(t),this.leftOuterSelectionBarElement.setPosition(0),this.fullBarElement.calculateDimension(),this.rightOuterSelectionBarElement.setDimension(this.fullBarElement.dimension-(t+e)),this.rightOuterSelectionBarElement.setPosition(t+e))),R.isNullOrUndefined(this.viewOptions.getSelectionBarColor)){if(!R.isNullOrUndefined(this.viewOptions.selectionBarGradient)){var s=R.isNullOrUndefined(this.viewOptions.showSelectionBarFromValue)?0:this.valueToPosition(this.viewOptions.showSelectionBarFromValue),u=s-t>0&&!i||s-t<=0&&i,c=this.viewOptions.vertical?u?"bottom":"top":u?"left":"right";this.barStyle={backgroundImage:"linear-gradient(to "+c+", "+this.viewOptions.selectionBarGradient.from+" 0%,"+this.viewOptions.selectionBarGradient.to+" 100%)"},this.viewOptions.vertical?(this.barStyle.backgroundPosition="center "+(s+e+t+(u?-this.handleHalfDimension:0))+"px",this.barStyle.backgroundSize="100% "+(this.fullBarElement.dimension-this.handleHalfDimension)+"px"):(this.barStyle.backgroundPosition=s-t+(u?this.handleHalfDimension:0)+"px center",this.barStyle.backgroundSize=this.fullBarElement.dimension-this.handleHalfDimension+"px 100%")}}else{var a=this.getSelectionBarColor();this.barStyle={backgroundColor:a}}},t.prototype.getSelectionBarColor=function(){return this.range?this.viewOptions.getSelectionBarColor(this.value,this.highValue):this.viewOptions.getSelectionBarColor(this.value)},t.prototype.getPointerColor=function(t){return t===N.Max?this.viewOptions.getPointerColor(this.highValue,t):this.viewOptions.getPointerColor(this.value,t)},t.prototype.getTickColor=function(t){return this.viewOptions.getTickColor(t)},t.prototype.updateCombinedLabel=function(){if(this.viewOptions.rightToLeft?this.minHandleLabelElement.position-this.minHandleLabelElement.dimension-10<=this.maxHandleLabelElement.position:this.minHandleLabelElement.position+this.minHandleLabelElement.dimension+10>=this.maxHandleLabelElement.position){var t=this.getDisplayValue(this.viewLowValue,H.Low),e=this.getDisplayValue(this.viewHighValue,H.High),i=this.viewOptions.rightToLeft?this.viewOptions.combineLabels(e,t):this.viewOptions.combineLabels(t,e);this.combinedLabelElement.setValue(i);var n=this.viewOptions.boundPointerLabels?Math.min(Math.max(this.selectionBarElement.position+this.selectionBarElement.dimension/2-this.combinedLabelElement.dimension/2,0),this.fullBarElement.dimension-this.combinedLabelElement.dimension):this.selectionBarElement.position+this.selectionBarElement.dimension/2-this.combinedLabelElement.dimension/2;this.combinedLabelElement.setPosition(n),this.minHandleLabelElement.hide(),this.maxHandleLabelElement.hide(),this.combinedLabelElement.show()}else this.updateHighHandle(this.valueToPosition(this.viewHighValue)),this.updateLowHandle(this.valueToPosition(this.viewLowValue)),this.maxHandleLabelElement.show(),this.minHandleLabelElement.show(),this.combinedLabelElement.hide();this.viewOptions.autoHideLimitLabels&&this.updateFloorAndCeilLabelsVisibility()},t.prototype.getDisplayValue=function(t,e){return R.isNullOrUndefined(this.viewOptions.stepsArray)||this.viewOptions.bindIndexForStepsArray||(t=this.getStepValue(t)),this.viewOptions.translate(t,e)},t.prototype.roundStep=function(t,e){var i=R.isNullOrUndefined(e)?this.viewOptions.step:e,n=B.roundToPrecisionLimit((t-this.viewOptions.floor)/i,this.viewOptions.precisionLimit);return n=Math.round(n)*i,B.roundToPrecisionLimit(this.viewOptions.floor+n,this.viewOptions.precisionLimit)},t.prototype.valueToPosition=function(t){var e=R.linearValueToPosition;R.isNullOrUndefined(this.viewOptions.customValueToPosition)?this.viewOptions.logScale&&(e=R.logValueToPosition):e=this.viewOptions.customValueToPosition;var i=e(t=B.clampToRange(t,this.viewOptions.floor,this.viewOptions.ceil),this.viewOptions.floor,this.viewOptions.ceil);return R.isNullOrUndefined(i)&&(i=0),this.viewOptions.rightToLeft&&(i=1-i),i*this.maxHandlePosition},t.prototype.positionToValue=function(t){var e=t/this.maxHandlePosition;this.viewOptions.rightToLeft&&(e=1-e);var i=R.linearPositionToValue;R.isNullOrUndefined(this.viewOptions.customPositionToValue)?this.viewOptions.logScale&&(i=R.logPositionToValue):i=this.viewOptions.customPositionToValue;var n=i(e,this.viewOptions.floor,this.viewOptions.ceil);return R.isNullOrUndefined(n)?0:n},t.prototype.getEventXY=function(t,e){if(t instanceof MouseEvent)return this.viewOptions.vertical?t.clientY:t.clientX;var i=0,n=t.touches;if(!R.isNullOrUndefined(e))for(var r=0;r<n.length;r++)if(n[r].identifier===e){i=r;break}return this.viewOptions.vertical?n[i].clientY:n[i].clientX},t.prototype.getEventPosition=function(t,e){var i=this.elementRef.nativeElement.getBoundingClientRect(),n=this.viewOptions.vertical?i.bottom:i.left;return(this.viewOptions.vertical?-this.getEventXY(t,e)+n:this.getEventXY(t,e)-n)*this.viewOptions.scale-this.handleHalfDimension},t.prototype.getNearestHandle=function(t){if(!this.range)return N.Min;var e=this.getEventPosition(t),i=Math.abs(e-this.minHandleElement.position),n=Math.abs(e-this.maxHandleElement.position);return i<n?N.Min:i>n?N.Max:this.viewOptions.rightToLeft?e>this.minHandleElement.position?N.Min:N.Max:e<this.minHandleElement.position?N.Min:N.Max},t.prototype.bindEvents=function(){var t=this,e=this.viewOptions.draggableRange;this.viewOptions.onlyBindHandles||this.selectionBarElement.on("mousedown",(function(i){return t.onBarStart(null,e,i,!0,!0,!0)})),this.viewOptions.draggableRangeOnly?(this.minHandleElement.on("mousedown",(function(i){return t.onBarStart(N.Min,e,i,!0,!0)})),this.maxHandleElement.on("mousedown",(function(i){return t.onBarStart(N.Max,e,i,!0,!0)}))):(this.minHandleElement.on("mousedown",(function(e){return t.onStart(N.Min,e,!0,!0)})),this.range&&this.maxHandleElement.on("mousedown",(function(e){return t.onStart(N.Max,e,!0,!0)})),this.viewOptions.onlyBindHandles||(this.fullBarElement.on("mousedown",(function(e){return t.onStart(null,e,!0,!0,!0)})),this.ticksElement.on("mousedown",(function(e){return t.onStart(null,e,!0,!0,!0,!0)})))),this.viewOptions.onlyBindHandles||this.selectionBarElement.onPassive("touchstart",(function(i){return t.onBarStart(null,e,i,!0,!0,!0)})),this.viewOptions.draggableRangeOnly?(this.minHandleElement.onPassive("touchstart",(function(i){return t.onBarStart(N.Min,e,i,!0,!0)})),this.maxHandleElement.onPassive("touchstart",(function(i){return t.onBarStart(N.Max,e,i,!0,!0)}))):(this.minHandleElement.onPassive("touchstart",(function(e){return t.onStart(N.Min,e,!0,!0)})),this.range&&this.maxHandleElement.onPassive("touchstart",(function(e){return t.onStart(N.Max,e,!0,!0)})),this.viewOptions.onlyBindHandles||(this.fullBarElement.onPassive("touchstart",(function(e){return t.onStart(null,e,!0,!0,!0)})),this.ticksElement.onPassive("touchstart",(function(e){return t.onStart(null,e,!1,!1,!0,!0)})))),this.viewOptions.keyboardSupport&&(this.minHandleElement.on("focus",(function(){return t.onPointerFocus(N.Min)})),this.range&&this.maxHandleElement.on("focus",(function(){return t.onPointerFocus(N.Max)})))},t.prototype.unbindEvents=function(){this.unsubscribeOnMove(),this.unsubscribeOnEnd();try{for(var t=Object(n.j)(this.getAllSliderElements()),e=t.next();!e.done;e=t.next()){e.value.off()}}catch(t){i={error:t}}finally{try{e&&!e.done&&(r=t.return)&&r.call(t)}finally{if(i)throw i.error}}var i,r},t.prototype.onBarStart=function(t,e,i,n,r,o,s){e?this.onDragStart(t,i,n,r):this.onStart(t,i,n,r,o,s)},t.prototype.onStart=function(t,e,i,n,r,o){var s=this;e.stopPropagation(),A.isTouchEvent(e)&&c.a.hasSupport||e.preventDefault(),this.calculateViewDimensions(),R.isNullOrUndefined(t)&&(t=this.getNearestHandle(e)),this.currentTrackingPointer=t;var u=this.getPointerElement(t);if(u.active=!0,this.viewOptions.keyboardSupport&&u.focus(),i){this.unsubscribeOnMove();var a=function(t){return s.dragging.active?s.onDragMove(t):s.onMove(t)};A.isTouchEvent(e)?this.onMoveEventListener=this.eventListenerHelper.attachPassiveEventListener(document,"touchmove",a,this.viewOptions.touchEventsInterval):this.onMoveEventListener=this.eventListenerHelper.attachEventListener(document,"mousemove",a,this.viewOptions.mouseEventsInterval)}if(n){this.unsubscribeOnEnd();var l=function(t){return s.onEnd(t)};A.isTouchEvent(e)?this.onEndEventListener=this.eventListenerHelper.attachPassiveEventListener(document,"touchend",l):this.onEndEventListener=this.eventListenerHelper.attachEventListener(document,"mouseup",l)}this.userChangeStart.emit(this.getChangeContext()),A.isTouchEvent(e)&&!R.isNullOrUndefined(e.changedTouches)&&R.isNullOrUndefined(this.touchId)&&(this.touchId=e.changedTouches[0].identifier),r&&this.onMove(e,!0),o&&this.onEnd(e)},t.prototype.onMove=function(t,e){var i=null;if(A.isTouchEvent(t)){for(var n=t.changedTouches,r=0;r<n.length;r++)if(n[r].identifier===this.touchId){i=n[r];break}if(R.isNullOrUndefined(i))return}var o,s=R.isNullOrUndefined(i)?this.getEventPosition(t):this.getEventPosition(t,i.identifier),u=this.viewOptions.rightToLeft?this.viewOptions.floor:this.viewOptions.ceil,c=this.viewOptions.rightToLeft?this.viewOptions.ceil:this.viewOptions.floor;s<=0?o=c:s>=this.maxHandlePosition?o=u:(o=this.positionToValue(s),o=e&&!R.isNullOrUndefined(this.viewOptions.tickStep)?this.roundStep(o,this.viewOptions.tickStep):this.roundStep(o)),this.positionTrackingHandle(o)},t.prototype.onEnd=function(t){if(A.isTouchEvent(t)&&t.changedTouches[0].identifier!==this.touchId)return;this.touchId=null,this.viewOptions.keyboardSupport||(this.minHandleElement.active=!1,this.maxHandleElement.active=!1,this.currentTrackingPointer=null),this.dragging.active=!1,this.unsubscribeOnMove(),this.unsubscribeOnEnd(),this.userChangeEnd.emit(this.getChangeContext())},t.prototype.onPointerFocus=function(t){var e=this,i=this.getPointerElement(t);i.on("blur",(function(){return e.onPointerBlur(i)})),i.on("keydown",(function(t){return e.onKeyboardEvent(t)})),i.on("keyup",(function(){return e.onKeyUp()})),i.active=!0,this.currentTrackingPointer=t,this.currentFocusPointer=t,this.firstKeyDown=!0},t.prototype.onKeyUp=function(){this.firstKeyDown=!0,this.userChangeEnd.emit(this.getChangeContext())},t.prototype.onPointerBlur=function(t){t.off("blur"),t.off("keydown"),t.off("keyup"),t.active=!1,R.isNullOrUndefined(this.touchId)&&(this.currentTrackingPointer=null,this.currentFocusPointer=null)},t.prototype.getKeyActions=function(t){var e=this.viewOptions.ceil-this.viewOptions.floor,i=t+this.viewOptions.step,n=t-this.viewOptions.step,r=t+e/10,o=t-e/10;this.viewOptions.reversedControls&&(i=t-this.viewOptions.step,n=t+this.viewOptions.step,r=t-e/10,o=t+e/10);var s={UP:i,DOWN:n,LEFT:n,RIGHT:i,PAGEUP:r,PAGEDOWN:o,HOME:this.viewOptions.reversedControls?this.viewOptions.ceil:this.viewOptions.floor,END:this.viewOptions.reversedControls?this.viewOptions.floor:this.viewOptions.ceil};return this.viewOptions.rightToLeft&&(s.LEFT=i,s.RIGHT=n,this.viewOptions.vertical&&(s.UP=n,s.DOWN=i)),s},t.prototype.onKeyboardEvent=function(t){var e=this.getCurrentTrackingValue(),i=R.isNullOrUndefined(t.keyCode)?t.which:t.keyCode,n=this.getKeyActions(e)[{38:"UP",40:"DOWN",37:"LEFT",39:"RIGHT",33:"PAGEUP",34:"PAGEDOWN",36:"HOME",35:"END"}[i]];if(!R.isNullOrUndefined(n)&&!R.isNullOrUndefined(this.currentTrackingPointer)){t.preventDefault(),this.firstKeyDown&&(this.firstKeyDown=!1,this.userChangeStart.emit(this.getChangeContext()));var r=B.clampToRange(n,this.viewOptions.floor,this.viewOptions.ceil),o=this.roundStep(r);if(this.viewOptions.draggableRangeOnly){var s=this.viewHighValue-this.viewLowValue,u=void 0,c=void 0;this.currentTrackingPointer===N.Min?(u=o,(c=o+s)>this.viewOptions.ceil&&(u=(c=this.viewOptions.ceil)-s)):this.currentTrackingPointer===N.Max&&(c=o,(u=o-s)<this.viewOptions.floor&&(c=(u=this.viewOptions.floor)+s)),this.positionTrackingBar(u,c)}else this.positionTrackingHandle(o)}},t.prototype.onDragStart=function(t,e,i,n){var r=this.getEventPosition(e);this.dragging=new Y,this.dragging.active=!0,this.dragging.value=this.positionToValue(r),this.dragging.difference=this.viewHighValue-this.viewLowValue,this.dragging.lowLimit=this.viewOptions.rightToLeft?this.minHandleElement.position-r:r-this.minHandleElement.position,this.dragging.highLimit=this.viewOptions.rightToLeft?r-this.maxHandleElement.position:this.maxHandleElement.position-r,this.onStart(t,e,i,n)},t.prototype.getMinValue=function(t,e,i){var n=this.viewOptions.rightToLeft,r=null;return r=e?i?n?this.viewOptions.floor:this.viewOptions.ceil-this.dragging.difference:n?this.viewOptions.ceil-this.dragging.difference:this.viewOptions.floor:n?this.positionToValue(t+this.dragging.lowLimit):this.positionToValue(t-this.dragging.lowLimit),this.roundStep(r)},t.prototype.getMaxValue=function(t,e,i){var n=this.viewOptions.rightToLeft,r=null;return r=e?i?n?this.viewOptions.floor+this.dragging.difference:this.viewOptions.ceil:n?this.viewOptions.ceil:this.viewOptions.floor+this.dragging.difference:n?this.positionToValue(t+this.dragging.lowLimit)+this.dragging.difference:this.positionToValue(t-this.dragging.lowLimit)+this.dragging.difference,this.roundStep(r)},t.prototype.onDragMove=function(t){var e,i,n,r,o=this.getEventPosition(t);this.viewOptions.rightToLeft?(e=this.dragging.lowLimit,i=this.dragging.highLimit,n=this.maxHandleElement,r=this.minHandleElement):(e=this.dragging.highLimit,i=this.dragging.lowLimit,n=this.minHandleElement,r=this.maxHandleElement);var s,u,c=o<=i,a=o>=this.maxHandlePosition-e;if(c){if(0===n.position)return;s=this.getMinValue(o,!0,!1),u=this.getMaxValue(o,!0,!1)}else if(a){if(r.position===this.maxHandlePosition)return;u=this.getMaxValue(o,!0,!0),s=this.getMinValue(o,!0,!0)}else s=this.getMinValue(o,!1,!1),u=this.getMaxValue(o,!1,!1);this.positionTrackingBar(s,u)},t.prototype.positionTrackingBar=function(t,e){!R.isNullOrUndefined(this.viewOptions.minLimit)&&t<this.viewOptions.minLimit&&(t=this.viewOptions.minLimit,e=B.roundToPrecisionLimit(t+this.dragging.difference,this.viewOptions.precisionLimit)),!R.isNullOrUndefined(this.viewOptions.maxLimit)&&e>this.viewOptions.maxLimit&&(e=this.viewOptions.maxLimit,t=B.roundToPrecisionLimit(e-this.dragging.difference,this.viewOptions.precisionLimit)),this.viewLowValue=t,this.viewHighValue=e,this.applyViewChange(),this.updateHandles(N.Min,this.valueToPosition(t)),this.updateHandles(N.Max,this.valueToPosition(e))},t.prototype.positionTrackingHandle=function(t){t=this.applyMinMaxLimit(t),this.range&&(this.viewOptions.pushRange?t=this.applyPushRange(t):(this.viewOptions.noSwitching&&(this.currentTrackingPointer===N.Min&&t>this.viewHighValue?t=this.applyMinMaxRange(this.viewHighValue):this.currentTrackingPointer===N.Max&&t<this.viewLowValue&&(t=this.applyMinMaxRange(this.viewLowValue))),t=this.applyMinMaxRange(t),this.currentTrackingPointer===N.Min&&t>this.viewHighValue?(this.viewLowValue=this.viewHighValue,this.applyViewChange(),this.updateHandles(N.Min,this.maxHandleElement.position),this.updateAriaAttributes(),this.currentTrackingPointer=N.Max,this.minHandleElement.active=!1,this.maxHandleElement.active=!0,this.viewOptions.keyboardSupport&&this.maxHandleElement.focus()):this.currentTrackingPointer===N.Max&&t<this.viewLowValue&&(this.viewHighValue=this.viewLowValue,this.applyViewChange(),this.updateHandles(N.Max,this.minHandleElement.position),this.updateAriaAttributes(),this.currentTrackingPointer=N.Min,this.maxHandleElement.active=!1,this.minHandleElement.active=!0,this.viewOptions.keyboardSupport&&this.minHandleElement.focus()))),this.getCurrentTrackingValue()!==t&&(this.currentTrackingPointer===N.Min?(this.viewLowValue=t,this.applyViewChange()):this.currentTrackingPointer===N.Max&&(this.viewHighValue=t,this.applyViewChange()),this.updateHandles(this.currentTrackingPointer,this.valueToPosition(t)),this.updateAriaAttributes())},t.prototype.applyMinMaxLimit=function(t){return!R.isNullOrUndefined(this.viewOptions.minLimit)&&t<this.viewOptions.minLimit?this.viewOptions.minLimit:!R.isNullOrUndefined(this.viewOptions.maxLimit)&&t>this.viewOptions.maxLimit?this.viewOptions.maxLimit:t},t.prototype.applyMinMaxRange=function(t){var e=this.currentTrackingPointer===N.Min?this.viewHighValue:this.viewLowValue,i=Math.abs(t-e);if(!R.isNullOrUndefined(this.viewOptions.minRange)&&i<this.viewOptions.minRange){if(this.currentTrackingPointer===N.Min)return B.roundToPrecisionLimit(this.viewHighValue-this.viewOptions.minRange,this.viewOptions.precisionLimit);if(this.currentTrackingPointer===N.Max)return B.roundToPrecisionLimit(this.viewLowValue+this.viewOptions.minRange,this.viewOptions.precisionLimit)}if(!R.isNullOrUndefined(this.viewOptions.maxRange)&&i>this.viewOptions.maxRange){if(this.currentTrackingPointer===N.Min)return B.roundToPrecisionLimit(this.viewHighValue-this.viewOptions.maxRange,this.viewOptions.precisionLimit);if(this.currentTrackingPointer===N.Max)return B.roundToPrecisionLimit(this.viewLowValue+this.viewOptions.maxRange,this.viewOptions.precisionLimit)}return t},t.prototype.applyPushRange=function(t){var e=this.currentTrackingPointer===N.Min?this.viewHighValue-t:t-this.viewLowValue,i=R.isNullOrUndefined(this.viewOptions.minRange)?this.viewOptions.step:this.viewOptions.minRange,n=this.viewOptions.maxRange;return e<i?(this.currentTrackingPointer===N.Min?(this.viewHighValue=B.roundToPrecisionLimit(Math.min(t+i,this.viewOptions.ceil),this.viewOptions.precisionLimit),t=B.roundToPrecisionLimit(this.viewHighValue-i,this.viewOptions.precisionLimit),this.applyViewChange(),this.updateHandles(N.Max,this.valueToPosition(this.viewHighValue))):this.currentTrackingPointer===N.Max&&(this.viewLowValue=B.roundToPrecisionLimit(Math.max(t-i,this.viewOptions.floor),this.viewOptions.precisionLimit),t=B.roundToPrecisionLimit(this.viewLowValue+i,this.viewOptions.precisionLimit),this.applyViewChange(),this.updateHandles(N.Min,this.valueToPosition(this.viewLowValue))),this.updateAriaAttributes()):!R.isNullOrUndefined(n)&&e>n&&(this.currentTrackingPointer===N.Min?(this.viewHighValue=B.roundToPrecisionLimit(t+n,this.viewOptions.precisionLimit),this.applyViewChange(),this.updateHandles(N.Max,this.valueToPosition(this.viewHighValue))):this.currentTrackingPointer===N.Max&&(this.viewLowValue=B.roundToPrecisionLimit(t-n,this.viewOptions.precisionLimit),this.applyViewChange(),this.updateHandles(N.Min,this.valueToPosition(this.viewLowValue))),this.updateAriaAttributes()),t},t.prototype.getChangeContext=function(){var t=new I;return t.pointerType=this.currentTrackingPointer,t.value=+this.value,this.range&&(t.highValue=+this.highValue),t},t.ɵfac=function(e){return new(e||t)(o["ɵɵdirectiveInject"](o.Renderer2),o["ɵɵdirectiveInject"](o.ElementRef),o["ɵɵdirectiveInject"](o.ChangeDetectorRef),o["ɵɵdirectiveInject"](o.NgZone))},t.ɵcmp=o["ɵɵdefineComponent"]({type:t,selectors:[["ng5-slider"]],contentQueries:function(t,e,i){var n;(1&t&&o["ɵɵcontentQuery"](i,h,!0),2&t)&&(o["ɵɵqueryRefresh"](n=o["ɵɵloadQuery"]())&&(e.tooltipTemplate=n.first))},viewQuery:function(t,e){var i;(1&t&&(o["ɵɵviewQuery"](p,!0,F),o["ɵɵviewQuery"](f,!0,F),o["ɵɵviewQuery"](d,!0,F),o["ɵɵviewQuery"](b,!0,F),o["ɵɵviewQuery"](v,!0,z),o["ɵɵviewQuery"](y,!0,z),o["ɵɵviewQuery"](m,!0,W),o["ɵɵviewQuery"](w,!0,W),o["ɵɵviewQuery"](g,!0,W),o["ɵɵviewQuery"](O,!0,W),o["ɵɵviewQuery"](x,!0,W),o["ɵɵviewQuery"](S,!0,F)),2&t)&&(o["ɵɵqueryRefresh"](i=o["ɵɵloadQuery"]())&&(e.leftOuterSelectionBarElement=i.first),o["ɵɵqueryRefresh"](i=o["ɵɵloadQuery"]())&&(e.rightOuterSelectionBarElement=i.first),o["ɵɵqueryRefresh"](i=o["ɵɵloadQuery"]())&&(e.fullBarElement=i.first),o["ɵɵqueryRefresh"](i=o["ɵɵloadQuery"]())&&(e.selectionBarElement=i.first),o["ɵɵqueryRefresh"](i=o["ɵɵloadQuery"]())&&(e.minHandleElement=i.first),o["ɵɵqueryRefresh"](i=o["ɵɵloadQuery"]())&&(e.maxHandleElement=i.first),o["ɵɵqueryRefresh"](i=o["ɵɵloadQuery"]())&&(e.floorLabelElement=i.first),o["ɵɵqueryRefresh"](i=o["ɵɵloadQuery"]())&&(e.ceilLabelElement=i.first),o["ɵɵqueryRefresh"](i=o["ɵɵloadQuery"]())&&(e.minHandleLabelElement=i.first),o["ɵɵqueryRefresh"](i=o["ɵɵloadQuery"]())&&(e.maxHandleLabelElement=i.first),o["ɵɵqueryRefresh"](i=o["ɵɵloadQuery"]())&&(e.combinedLabelElement=i.first),o["ɵɵqueryRefresh"](i=o["ɵɵloadQuery"]())&&(e.ticksElement=i.first))},hostAttrs:[1,"ng5-slider"],hostVars:5,hostBindings:function(t,e){1&t&&o["ɵɵlistener"]("resize",(function(t){return e.onResize(t)}),!1,o["ɵɵresolveWindow"]),2&t&&(o["ɵɵattribute"]("disabled",e.sliderElementDisabledAttr),o["ɵɵclassProp"]("vertical",e.sliderElementVerticalClass)("animate",e.sliderElementAnimateClass))},inputs:{value:"value",highValue:"highValue",options:"options",manualRefresh:"manualRefresh",triggerFocus:"triggerFocus"},outputs:{valueChange:"valueChange",highValueChange:"highValueChange",userChangeStart:"userChangeStart",userChange:"userChange",userChangeEnd:"userChangeEnd"},features:[o["ɵɵProvidersFeature"]([K]),o["ɵɵNgOnChangesFeature"]],decls:29,vars:13,consts:[["ng5SliderElement","",1,"ng5-slider-span","ng5-slider-bar-wrapper","ng5-slider-left-out-selection"],["leftOuterSelectionBar",""],[1,"ng5-slider-span","ng5-slider-bar"],["ng5SliderElement","",1,"ng5-slider-span","ng5-slider-bar-wrapper","ng5-slider-right-out-selection"],["rightOuterSelectionBar",""],["ng5SliderElement","",1,"ng5-slider-span","ng5-slider-bar-wrapper","ng5-slider-full-bar"],["fullBar",""],["ng5SliderElement","",1,"ng5-slider-span","ng5-slider-bar-wrapper","ng5-slider-selection-bar"],["selectionBar",""],[1,"ng5-slider-span","ng5-slider-bar","ng5-slider-selection",3,"ngStyle"],["ng5SliderHandle","",1,"ng5-slider-span","ng5-slider-pointer","ng5-slider-pointer-min",3,"ngStyle"],["minHandle",""],["ng5SliderHandle","",1,"ng5-slider-span","ng5-slider-pointer","ng5-slider-pointer-max",3,"ngStyle"],["maxHandle",""],["ng5SliderLabel","",1,"ng5-slider-span","ng5-slider-bubble","ng5-slider-limit","ng5-slider-floor"],["floorLabel",""],["ng5SliderLabel","",1,"ng5-slider-span","ng5-slider-bubble","ng5-slider-limit","ng5-slider-ceil"],["ceilLabel",""],["ng5SliderLabel","",1,"ng5-slider-span","ng5-slider-bubble","ng5-slider-model-value"],["minHandleLabel",""],["ng5SliderLabel","",1,"ng5-slider-span","ng5-slider-bubble","ng5-slider-model-high"],["maxHandleLabel",""],["ng5SliderLabel","",1,"ng5-slider-span","ng5-slider-bubble","ng5-slider-combined"],["combinedLabel",""],["ng5SliderElement","",1,"ng5-slider-ticks",3,"hidden"],["ticksElement",""],["class","ng5-slider-tick",3,"ngClass","ngStyle",4,"ngFor","ngForOf"],[1,"ng5-slider-tick",3,"ngClass","ngStyle"],[3,"template","tooltip","placement"],["class","ng5-slider-span ng5-slider-tick-value",3,"template","tooltip","placement","content",4,"ngIf"],["class","ng5-slider-span ng5-slider-tick-legend",3,"innerHTML",4,"ngIf"],[1,"ng5-slider-span","ng5-slider-tick-value",3,"template","tooltip","placement","content"],[1,"ng5-slider-span","ng5-slider-tick-legend",3,"innerHTML"]],template:function(t,e){1&t&&(o["ɵɵelementStart"](0,"span",0,1),o["ɵɵelement"](2,"span",2),o["ɵɵelementEnd"](),o["ɵɵelementStart"](3,"span",3,4),o["ɵɵelement"](5,"span",2),o["ɵɵelementEnd"](),o["ɵɵelementStart"](6,"span",5,6),o["ɵɵelement"](8,"span",2),o["ɵɵelementEnd"](),o["ɵɵelementStart"](9,"span",7,8),o["ɵɵelement"](11,"span",9),o["ɵɵelementEnd"](),o["ɵɵelement"](12,"span",10,11),o["ɵɵelement"](14,"span",12,13),o["ɵɵelement"](16,"span",14,15),o["ɵɵelement"](18,"span",16,17),o["ɵɵelement"](20,"span",18,19),o["ɵɵelement"](22,"span",20,21),o["ɵɵelement"](24,"span",22,23),o["ɵɵelementStart"](26,"span",24,25),o["ɵɵtemplate"](28,V,4,9,"span",26),o["ɵɵelementEnd"]()),2&t&&(o["ɵɵadvance"](6),o["ɵɵclassProp"]("ng5-slider-transparent",e.fullBarTransparentClass),o["ɵɵadvance"](3),o["ɵɵclassProp"]("ng5-slider-draggable",e.selectionBarDraggableClass),o["ɵɵadvance"](2),o["ɵɵproperty"]("ngStyle",e.barStyle),o["ɵɵadvance"](1),o["ɵɵproperty"]("ngStyle",e.minPointerStyle),o["ɵɵadvance"](2),o["ɵɵstyleProp"]("display",e.range?"inherit":"none"),o["ɵɵproperty"]("ngStyle",e.maxPointerStyle),o["ɵɵadvance"](12),o["ɵɵclassProp"]("ng5-slider-ticks-values-under",e.ticksUnderValuesClass),o["ɵɵproperty"]("hidden",!e.showTicks),o["ɵɵadvance"](2),o["ɵɵproperty"]("ngForOf",e.ticks))},directives:function(){return[F,l.NgStyle,z,W,l.NgForOf,l.NgClass,X,l.NgIf]},styles:[".ng5-slider{display:inline-block;position:relative;height:4px;width:100%;margin:35px 0 15px;vertical-align:middle;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-ms-touch-action:pan-y;touch-action:pan-y} .ng5-slider.with-legend{margin-bottom:40px} .ng5-slider[disabled]{cursor:not-allowed} .ng5-slider[disabled] .ng5-slider-pointer{cursor:not-allowed;background-color:#d8e0f3} .ng5-slider[disabled] .ng5-slider-draggable{cursor:not-allowed} .ng5-slider[disabled] .ng5-slider-selection{background:#8b91a2} .ng5-slider[disabled] .ng5-slider-tick{cursor:not-allowed} .ng5-slider[disabled] .ng5-slider-tick.ng5-slider-selected{background:#8b91a2} .ng5-slider .ng5-slider-span{white-space:nowrap;position:absolute;display:inline-block} .ng5-slider .ng5-slider-base{width:100%;height:100%;padding:0} .ng5-slider .ng5-slider-bar-wrapper{left:0;-webkit-box-sizing:border-box;box-sizing:border-box;margin-top:-16px;padding-top:16px;width:100%;height:32px;z-index:1} .ng5-slider .ng5-slider-draggable{cursor:move} .ng5-slider .ng5-slider-bar{left:0;width:100%;height:4px;z-index:1;background:#d8e0f3;border-radius:2px} .ng5-slider .ng5-slider-bar-wrapper.ng5-slider-transparent .ng5-slider-bar{background:0 0} .ng5-slider .ng5-slider-bar-wrapper.ng5-slider-left-out-selection .ng5-slider-bar{background:#df002d} .ng5-slider .ng5-slider-bar-wrapper.ng5-slider-right-out-selection .ng5-slider-bar{background:#03a688} .ng5-slider .ng5-slider-selection{z-index:2;background:#0db9f0;border-radius:2px} .ng5-slider .ng5-slider-pointer{cursor:pointer;width:32px;height:32px;top:-14px;background-color:#0db9f0;z-index:3;border-radius:16px} .ng5-slider .ng5-slider-pointer:after{content:'';width:8px;height:8px;position:absolute;top:12px;left:12px;border-radius:4px;background:#fff} .ng5-slider .ng5-slider-pointer:hover:after{background-color:#fff} .ng5-slider .ng5-slider-pointer.ng5-slider-active{z-index:4} .ng5-slider .ng5-slider-pointer.ng5-slider-active:after{background-color:#451aff} .ng5-slider .ng5-slider-bubble{cursor:default;bottom:16px;padding:1px 3px;color:#55637d;font-size:16px} .ng5-slider .ng5-slider-bubble.ng5-slider-limit{color:#55637d} .ng5-slider .ng5-slider-ticks{-webkit-box-sizing:border-box;box-sizing:border-box;width:100%;height:0;position:absolute;left:0;top:-3px;margin:0;z-index:1;list-style:none} .ng5-slider .ng5-slider-ticks-values-under .ng5-slider-tick-value{top:auto;bottom:-36px} .ng5-slider .ng5-slider-tick{text-align:center;cursor:pointer;width:10px;height:10px;background:#d8e0f3;border-radius:50%;position:absolute;top:0;left:0;margin-left:11px} .ng5-slider .ng5-slider-tick.ng5-slider-selected{background:#0db9f0} .ng5-slider .ng5-slider-tick-value{position:absolute;top:-34px;-webkit-transform:translate(-50%,0);transform:translate(-50%,0)} .ng5-slider .ng5-slider-tick-legend{position:absolute;top:24px;-webkit-transform:translate(-50%,0);transform:translate(-50%,0);max-width:50px;white-space:normal} .ng5-slider.vertical{position:relative;width:4px;height:100%;margin:0 20px;padding:0;vertical-align:baseline;-ms-touch-action:pan-x;touch-action:pan-x} .ng5-slider.vertical .ng5-slider-base{width:100%;height:100%;padding:0} .ng5-slider.vertical .ng5-slider-bar-wrapper{top:auto;left:0;margin:0 0 0 -16px;padding:0 0 0 16px;height:100%;width:32px} .ng5-slider.vertical .ng5-slider-bar{bottom:0;left:auto;width:4px;height:100%} .ng5-slider.vertical .ng5-slider-pointer{left:-14px!important;top:auto;bottom:0} .ng5-slider.vertical .ng5-slider-bubble{left:16px!important;bottom:0} .ng5-slider.vertical .ng5-slider-ticks{height:100%;width:0;left:-3px;top:0;z-index:1} .ng5-slider.vertical .ng5-slider-tick{vertical-align:middle;margin-left:auto;margin-top:11px} .ng5-slider.vertical .ng5-slider-tick-value{left:24px;top:auto;-webkit-transform:translate(0,-28%);transform:translate(0,-28%)} .ng5-slider.vertical .ng5-slider-tick-legend{top:auto;right:24px;-webkit-transform:translate(0,-28%);transform:translate(0,-28%);max-width:none;white-space:nowrap} .ng5-slider.vertical .ng5-slider-ticks-values-under .ng5-slider-tick-value{bottom:auto;left:auto;right:24px} .ng5-slider *{-webkit-transition:none;transition:none} .ng5-slider.animate .ng5-slider-bar-wrapper{-webkit-transition:all linear .3s;transition:all linear .3s} .ng5-slider.animate .ng5-slider-selection{-webkit-transition:background-color linear .3s;transition:background-color linear .3s} .ng5-slider.animate .ng5-slider-pointer{-webkit-transition:all linear .3s;transition:all linear .3s} .ng5-slider.animate .ng5-slider-bubble{-webkit-transition:all linear .3s;transition:all linear .3s} .ng5-slider.animate .ng5-slider-bubble.ng5-slider-limit{-webkit-transition:opacity linear .3s;transition:opacity linear .3s} .ng5-slider.animate .ng5-slider-bubble.ng5-slider-combined{-webkit-transition:opacity linear .3s;transition:opacity linear .3s} .ng5-slider.animate .ng5-slider-tick{-webkit-transition:background-color linear .3s;transition:background-color linear .3s}"]}),t}();$.ctorParameters=function(){return[{type:o.Renderer2},{type:o.ElementRef},{type:o.ChangeDetectorRef},{type:o.NgZone}]},$.propDecorators={value:[{type:o.Input}],valueChange:[{type:o.Output}],highValue:[{type:o.Input}],highValueChange:[{type:o.Output}],options:[{type:o.Input}],userChangeStart:[{type:o.Output}],userChange:[{type:o.Output}],userChangeEnd:[{type:o.Output}],manualRefresh:[{type:o.Input}],triggerFocus:[{type:o.Input}],leftOuterSelectionBarElement:[{type:o.ViewChild,args:["leftOuterSelectionBar",{read:F}]}],rightOuterSelectionBarElement:[{type:o.ViewChild,args:["rightOuterSelectionBar",{read:F}]}],fullBarElement:[{type:o.ViewChild,args:["fullBar",{read:F}]}],selectionBarElement:[{type:o.ViewChild,args:["selectionBar",{read:F}]}],minHandleElement:[{type:o.ViewChild,args:["minHandle",{read:z}]}],maxHandleElement:[{type:o.ViewChild,args:["maxHandle",{read:z}]}],floorLabelElement:[{type:o.ViewChild,args:["floorLabel",{read:W}]}],ceilLabelElement:[{type:o.ViewChild,args:["ceilLabel",{read:W}]}],minHandleLabelElement:[{type:o.ViewChild,args:["minHandleLabel",{read:W}]}],maxHandleLabelElement:[{type:o.ViewChild,args:["maxHandleLabel",{read:W}]}],combinedLabelElement:[{type:o.ViewChild,args:["combinedLabel",{read:W}]}],ticksElement:[{type:o.ViewChild,args:["ticksElement",{read:F}]}],tooltipTemplate:[{type:o.ContentChild,args:["tooltipTemplate"]}],sliderElementVerticalClass:[{type:o.HostBinding,args:["class.vertical"]}],sliderElementAnimateClass:[{type:o.HostBinding,args:["class.animate"]}],sliderElementDisabledAttr:[{type:o.HostBinding,args:["attr.disabled"]}],onResize:[{type:o.HostListener,args:["window:resize",["$event"]]}]};var X=function(){function t(){}return t.ɵfac=function(e){return new(e||t)},t.ɵcmp=o["ɵɵdefineComponent"]({type:t,selectors:[["ng5-slider-tooltip-wrapper"]],inputs:{template:"template",tooltip:"tooltip",placement:"placement",content:"content"},decls:2,vars:2,consts:[[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"ng5-slider-inner-tooltip"]],template:function(t,e){1&t&&(o["ɵɵtemplate"](0,j,2,6,"ng-container",0),o["ɵɵtemplate"](1,k,3,3,"ng-container",0)),2&t&&(o["ɵɵproperty"]("ngIf",e.template),o["ɵɵadvance"](1),o["ɵɵproperty"]("ngIf",!e.template))},directives:[l.NgIf,l.NgTemplateOutlet],styles:[".ng5-slider-inner-tooltip[_ngcontent-%COMP%]{height:100%}"]}),t}();X.ctorParameters=function(){return[]},X.propDecorators={template:[{type:o.Input}],tooltip:[{type:o.Input}],placement:[{type:o.Input}],content:[{type:o.Input}]};var J=function(){function t(){}return t.ɵmod=o["ɵɵdefineNgModule"]({type:t}),t.ɵinj=o["ɵɵdefineInjector"]({factory:function(e){return new(e||t)},imports:[[l.CommonModule]]}),("undefined"==typeof ngJitMode||ngJitMode)&&o["ɵɵsetNgModuleScope"](t,{declarations:function(){return[$,F,z,W,X]},imports:function(){return[l.CommonModule]},exports:function(){return[$]}}),t}();J.ctorParameters=function(){return[]}},1974:function(t,e,i){"use strict";e.isFunction=function(t){return"function"==typeof t}},1975:function(t,e,i){"use strict";e.isObject=function(t){return null!=t&&"object"==typeof t}},1976:function(t,e,i){"use strict";e.empty={closed:!0,next:function(t){},error:function(t){throw t},complete:function(){}}},1977:function(t,e,i){"use strict";var n=i(1978);function r(t){return t?1===t.length?t[0]:function(e){return t.reduce((function(t,e){return e(t)}),e)}:n.noop}e.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return r(t)},e.pipeFromArray=r},1978:function(t,e,i){"use strict";e.noop=function(){}},1979:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=function(t){function e(e,i){t.call(this),this.subject=e,this.subscriber=i,this.closed=!1}return n(e,t),e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var i=e.indexOf(this.subscriber);-1!==i&&e.splice(i,1)}}},e}(i(1699).Subscription);e.SubjectSubscription=r},1980:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1706),o=i(1702),s=i(1690),u=i(1691);e.audit=function(t){return function(e){return e.lift(new c(t))}};var c=function(){function t(t){this.durationSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.durationSelector))},t}(),a=function(t){function e(e,i){t.call(this,e),this.durationSelector=i,this.hasValue=!1}return n(e,t),e.prototype._next=function(t){if(this.value=t,this.hasValue=!0,!this.throttled){var e=r.tryCatch(this.durationSelector)(t);if(e===o.errorObject)this.destination.error(o.errorObject.e);else{var i=u.subscribeToResult(this,e);i.closed?this.clearThrottle():this.add(this.throttled=i)}}},e.prototype.clearThrottle=function(){var t=this.value,e=this.hasValue,i=this.throttled;i&&(this.remove(i),this.throttled=null,i.unsubscribe()),e&&(this.value=null,this.hasValue=!1,this.destination.next(t))},e.prototype.notifyNext=function(t,e,i,n){this.clearThrottle()},e.prototype.notifyComplete=function(){this.clearThrottle()},e}(s.OuterSubscriber)},1981:function(t,e,i){"use strict";e.isArrayLike=function(t){return t&&"number"==typeof t.length}},1982:function(t,e,i){"use strict";e.isPromise=function(t){return t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}},1983:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1710),o=function(t){function e(e,i){t.call(this,e,i),this.scheduler=e,this.pending=!1,this.work=i}return n(e,t),e.prototype.schedule=function(t,e){if(void 0===e&&(e=0),this.closed)return this;this.state=t,this.pending=!0;var i=this.id,n=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(n,i,e)),this.delay=e,this.id=this.id||this.requestAsyncId(n,this.id,e),this},e.prototype.requestAsyncId=function(t,e,i){return void 0===i&&(i=0),r.root.setInterval(t.flush.bind(t,this),i)},e.prototype.recycleAsyncId=function(t,e,i){if(void 0===i&&(i=0),null!==i&&this.delay===i&&!1===this.pending)return e;r.root.clearInterval(e)},e.prototype.execute=function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var i=this._execute(t,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,e){var i=!1,n=void 0;try{this.work(t)}catch(t){i=!0,n=!!t&&t||new Error(t)}if(i)return this.unsubscribe(),n},e.prototype._unsubscribe=function(){var t=this.id,e=this.scheduler,i=e.actions,n=i.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==n&&i.splice(n,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null},e}(i(2114).Action);e.AsyncAction=o},1984:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=function(t){function e(){t.apply(this,arguments),this.actions=[],this.active=!1,this.scheduled=void 0}return n(e,t),e.prototype.flush=function(t){var e=this.actions;if(this.active)e.push(t);else{var i;this.active=!0;do{if(i=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,i){for(;t=e.shift();)t.unsubscribe();throw i}}},e}(i(2115).Scheduler);e.AsyncScheduler=r},1985:function(t,e,i){"use strict";var n=i(1847);e.isNumeric=function(t){return!n.isArray(t)&&t-parseFloat(t)+1>=0}},1986:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1854),o=i(1847),s=i(1690),u=i(1691),c={};e.combineLatest=function(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];var i=null;return"function"==typeof t[t.length-1]&&(i=t.pop()),1===t.length&&o.isArray(t[0])&&(t=t[0].slice()),function(e){return e.lift.call(new r.ArrayObservable([e].concat(t)),new a(i))}};var a=function(){function t(t){this.project=t}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.project))},t}();e.CombineLatestOperator=a;var l=function(t){function e(e,i){t.call(this,e),this.project=i,this.active=0,this.values=[],this.observables=[]}return n(e,t),e.prototype._next=function(t){this.values.push(c),this.observables.push(t)},e.prototype._complete=function(){var t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(var i=0;i<e;i++){var n=t[i];this.add(u.subscribeToResult(this,n,n,i))}}},e.prototype.notifyComplete=function(t){0==(this.active-=1)&&this.destination.complete()},e.prototype.notifyNext=function(t,e,i,n,r){var o=this.values,s=o[i],u=this.toRespond?s===c?--this.toRespond:this.toRespond:0;o[i]=e,0===u&&(this.project?this._tryProject(o):this.destination.next(o.slice()))},e.prototype._tryProject=function(t){var e;try{e=this.project.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(s.OuterSubscriber);e.CombineLatestSubscriber=l},1987:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1847),o=i(1981),s=i(1982),u=i(2128),c=i(2129),a=i(1854),l=i(2130),h=i(1878),p=i(1695),f=i(1922),d=i(1918),b=function(t){function e(e,i){t.call(this,null),this.ish=e,this.scheduler=i}return n(e,t),e.create=function(t,i){if(null!=t){if("function"==typeof t[d.observable])return t instanceof p.Observable&&!i?t:new e(t,i);if(r.isArray(t))return new a.ArrayObservable(t,i);if(s.isPromise(t))return new u.PromiseObservable(t,i);if("function"==typeof t[h.iterator]||"string"==typeof t)return new c.IteratorObservable(t,i);if(o.isArrayLike(t))return new l.ArrayLikeObservable(t,i)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")},e.prototype._subscribe=function(t){var e=this.ish,i=this.scheduler;return null==i?e[d.observable]().subscribe(t):e[d.observable]().subscribe(new f.ObserveOnSubscriber(t,i,0))},e}(p.Observable);e.FromObservable=b},1988:function(t,e,i){"use strict";var n=i(1924);e.concatAll=function(){return n.mergeAll(1)}},1989:function(t,e,i){"use strict";e.identity=function(t){return t}},1990:function(t,e,i){"use strict";var n=i(1880);e.concatMap=function(t,e){return n.mergeMap(t,e,1)}},1991:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1686);e.defaultIfEmpty=function(t){return void 0===t&&(t=null),function(e){return e.lift(new o(t))}};var o=function(){function t(t){this.defaultValue=t}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.defaultValue))},t}(),s=function(t){function e(e,i){t.call(this,e),this.defaultValue=i,this.isEmpty=!0}return n(e,t),e.prototype._next=function(t){this.isEmpty=!1,this.destination.next(t)},e.prototype._complete=function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()},e}(r.Subscriber)},1992:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1686),o=i(1706),s=i(1702);e.distinctUntilChanged=function(t,e){return function(i){return i.lift(new u(t,e))}};var u=function(){function t(t,e){this.compare=t,this.keySelector=e}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.compare,this.keySelector))},t}(),c=function(t){function e(e,i,n){t.call(this,e),this.keySelector=n,this.hasKey=!1,"function"==typeof i&&(this.compare=i)}return n(e,t),e.prototype.compare=function(t,e){return t===e},e.prototype._next=function(t){var e=t;if(this.keySelector&&(e=o.tryCatch(this.keySelector)(t))===s.errorObject)return this.destination.error(s.errorObject.e);var i=!1;if(this.hasKey){if((i=o.tryCatch(this.compare)(this.key,e))===s.errorObject)return this.destination.error(s.errorObject.e)}else this.hasKey=!0;!1===Boolean(i)&&(this.key=e,this.destination.next(t))},e}(r.Subscriber)},1993:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1686);e.filter=function(t,e){return function(i){return i.lift(new o(t,e))}};var o=function(){function t(t,e){this.predicate=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.predicate,this.thisArg))},t}(),s=function(t){function e(e,i,n){t.call(this,e),this.predicate=i,this.thisArg=n,this.count=0}return n(e,t),e.prototype._next=function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}e&&this.destination.next(t)},e}(r.Subscriber)},1994:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1686);e.find=function(t,e){if("function"!=typeof t)throw new TypeError("predicate is not a function");return function(i){return i.lift(new o(t,i,!1,e))}};var o=function(){function t(t,e,i,n){this.predicate=t,this.source=e,this.yieldIndex=i,this.thisArg=n}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.predicate,this.source,this.yieldIndex,this.thisArg))},t}();e.FindValueOperator=o;var s=function(t){function e(e,i,n,r,o){t.call(this,e),this.predicate=i,this.source=n,this.yieldIndex=r,this.thisArg=o,this.index=0}return n(e,t),e.prototype.notifyComplete=function(t){var e=this.destination;e.next(t),e.complete()},e.prototype._next=function(t){var e=this.predicate,i=this.thisArg,n=this.index++;try{e.call(i||this,t,n,this.source)&&this.notifyComplete(this.yieldIndex?n:t)}catch(t){this.destination.error(t)}},e.prototype._complete=function(){this.notifyComplete(this.yieldIndex?-1:void 0)},e}(r.Subscriber);e.FindValueSubscriber=s},1995:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1686);e.scan=function(t,e){var i=!1;return arguments.length>=2&&(i=!0),function(n){return n.lift(new o(t,e,i))}};var o=function(){function t(t,e,i){void 0===i&&(i=!1),this.accumulator=t,this.seed=e,this.hasSeed=i}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.accumulator,this.seed,this.hasSeed))},t}(),s=function(t){function e(e,i,n,r){t.call(this,e),this.accumulator=i,this._seed=n,this.hasSeed=r,this.index=0}return n(e,t),Object.defineProperty(e.prototype,"seed",{get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t},enumerable:!0,configurable:!0}),e.prototype._next=function(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)},e.prototype._tryNext=function(t){var e,i=this.index++;try{e=this.accumulator(this.seed,t,i)}catch(t){this.destination.error(t)}this.seed=e,this.destination.next(e)},e}(r.Subscriber)},1996:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1686),o=i(1881),s=i(1857);e.takeLast=function(t){return function(e){return 0===t?new s.EmptyObservable:e.lift(new u(t))}};var u=function(){function t(t){if(this.total=t,this.total<0)throw new o.ArgumentOutOfRangeError}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.total))},t}(),c=function(t){function e(e,i){t.call(this,e),this.total=i,this.ring=new Array,this.count=0}return n(e,t),e.prototype._next=function(t){var e=this.ring,i=this.total,n=this.count++;e.length<i?e.push(t):e[n%i]=t},e.prototype._complete=function(){var t=this.destination,e=this.count;if(e>0)for(var i=this.count>=this.total?this.total:this.count,n=this.ring,r=0;r<i;r++){var o=e++%i;t.next(n[o])}t.complete()},e}(r.Subscriber)},1997:function(t,e,i){"use strict";var n=i(1695),r=i(1854),o=i(1853),s=i(1924);e.merge=function(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];var i=Number.POSITIVE_INFINITY,u=null,c=t[t.length-1];return o.isScheduler(c)?(u=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(i=t.pop())):"number"==typeof c&&(i=t.pop()),null===u&&1===t.length&&t[0]instanceof n.Observable?t[0]:s.mergeAll(i)(new r.ArrayObservable(t,u))}},1998:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1694),o=i(2175),s=i(1699),u=i(1922),c=i(1919),a=i(1979),l=function(t){function e(e,i,n){void 0===e&&(e=Number.POSITIVE_INFINITY),void 0===i&&(i=Number.POSITIVE_INFINITY),t.call(this),this.scheduler=n,this._events=[],this._bufferSize=e<1?1:e,this._windowTime=i<1?1:i}return n(e,t),e.prototype.next=function(e){var i=this._getNow();this._events.push(new h(i,e)),this._trimBufferThenGetEvents(),t.prototype.next.call(this,e)},e.prototype._subscribe=function(t){var e,i=this._trimBufferThenGetEvents(),n=this.scheduler;if(this.closed)throw new c.ObjectUnsubscribedError;this.hasError||this.isStopped?e=s.Subscription.EMPTY:(this.observers.push(t),e=new a.SubjectSubscription(this,t)),n&&t.add(t=new u.ObserveOnSubscriber(t,n));for(var r=i.length,o=0;o<r&&!t.closed;o++)t.next(i[o].value);return this.hasError?t.error(this.thrownError):this.isStopped&&t.complete(),e},e.prototype._getNow=function(){return(this.scheduler||o.queue).now()},e.prototype._trimBufferThenGetEvents=function(){for(var t=this._getNow(),e=this._bufferSize,i=this._windowTime,n=this._events,r=n.length,o=0;o<r&&!(t-n[o].time<i);)o++;return r>e&&(o=Math.max(o,r-e)),o>0&&n.splice(0,o),n},e}(r.Subject);e.ReplaySubject=l;var h=function(t,e){this.time=t,this.value=e}},1999:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1690),o=i(1691);e.switchMap=function(t,e){return function(i){return i.lift(new s(t,e))}};var s=function(){function t(t,e){this.project=t,this.resultSelector=e}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.project,this.resultSelector))},t}(),u=function(t){function e(e,i,n){t.call(this,e),this.project=i,this.resultSelector=n,this.index=0}return n(e,t),e.prototype._next=function(t){var e,i=this.index++;try{e=this.project(t,i)}catch(t){return void this.destination.error(t)}this._innerSub(e,t,i)},e.prototype._innerSub=function(t,e,i){var n=this.innerSubscription;n&&n.unsubscribe(),this.add(this.innerSubscription=o.subscribeToResult(this,t,e,i))},e.prototype._complete=function(){var e=this.innerSubscription;e&&!e.closed||t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.innerSubscription=null},e.prototype.notifyComplete=function(e){this.remove(e),this.innerSubscription=null,this.isStopped&&t.prototype._complete.call(this)},e.prototype.notifyNext=function(t,e,i,n,r){this.resultSelector?this._tryNotifyNext(t,e,i,n):this.destination.next(e)},e.prototype._tryNotifyNext=function(t,e,i,n){var r;try{r=this.resultSelector(t,e,i,n)}catch(t){return void this.destination.error(t)}this.destination.next(r)},e}(r.OuterSubscriber)},2e3:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1690),o=i(1691);e.defaultThrottleConfig={leading:!0,trailing:!1},e.throttle=function(t,i){return void 0===i&&(i=e.defaultThrottleConfig),function(e){return e.lift(new s(t,i.leading,i.trailing))}};var s=function(){function t(t,e,i){this.durationSelector=t,this.leading=e,this.trailing=i}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.durationSelector,this.leading,this.trailing))},t}(),u=function(t){function e(e,i,n,r){t.call(this,e),this.destination=e,this.durationSelector=i,this._leading=n,this._trailing=r,this._hasTrailingValue=!1}return n(e,t),e.prototype._next=function(t){if(this.throttled)this._trailing&&(this._hasTrailingValue=!0,this._trailingValue=t);else{var e=this.tryDurationSelector(t);e&&this.add(this.throttled=o.subscribeToResult(this,e)),this._leading&&(this.destination.next(t),this._trailing&&(this._hasTrailingValue=!0,this._trailingValue=t))}},e.prototype.tryDurationSelector=function(t){try{return this.durationSelector(t)}catch(t){return this.destination.error(t),null}},e.prototype._unsubscribe=function(){var t=this.throttled;this._trailingValue,this._hasTrailingValue,this._trailing;this._trailingValue=null,this._hasTrailingValue=!1,t&&(this.remove(t),this.throttled=null,t.unsubscribe())},e.prototype._sendTrailing=function(){var t=this,e=t.destination,i=t.throttled,n=t._trailing,r=t._trailingValue,o=t._hasTrailingValue;i&&n&&o&&(e.next(r),this._trailingValue=null,this._hasTrailingValue=!1)},e.prototype.notifyNext=function(t,e,i,n,r){this._sendTrailing(),this._unsubscribe()},e.prototype.notifyComplete=function(){this._sendTrailing(),this._unsubscribe()},e}(r.OuterSubscriber)},2001:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1854),o=i(1847),s=i(1686),u=i(1690),c=i(1691),a=i(1878);function l(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];var i=t[t.length-1];return"function"==typeof i&&t.pop(),new r.ArrayObservable(t).lift(new h(i))}e.zip=function(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return function(e){return e.lift.call(l.apply(void 0,[e].concat(t)))}},e.zipStatic=l;var h=function(){function t(t){this.project=t}return t.prototype.call=function(t,e){return e.subscribe(new p(t,this.project))},t}();e.ZipOperator=h;var p=function(t){function e(e,i,n){void 0===n&&(n=Object.create(null)),t.call(this,e),this.iterators=[],this.active=0,this.project="function"==typeof i?i:null,this.values=n}return n(e,t),e.prototype._next=function(t){var e=this.iterators;o.isArray(t)?e.push(new d(t)):"function"==typeof t[a.iterator]?e.push(new f(t[a.iterator]())):e.push(new b(this.destination,this,t))},e.prototype._complete=function(){var t=this.iterators,e=t.length;if(0!==e){this.active=e;for(var i=0;i<e;i++){var n=t[i];n.stillUnsubscribed?this.add(n.subscribe(n,i)):this.active--}}else this.destination.complete()},e.prototype.notifyInactive=function(){this.active--,0===this.active&&this.destination.complete()},e.prototype.checkIterators=function(){for(var t=this.iterators,e=t.length,i=this.destination,n=0;n<e;n++){if("function"==typeof(s=t[n]).hasValue&&!s.hasValue())return}var r=!1,o=[];for(n=0;n<e;n++){var s,u=(s=t[n]).next();if(s.hasCompleted()&&(r=!0),u.done)return void i.complete();o.push(u.value)}this.project?this._tryProject(o):i.next(o),r&&i.complete()},e.prototype._tryProject=function(t){var e;try{e=this.project.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(s.Subscriber);e.ZipSubscriber=p;var f=function(){function t(t){this.iterator=t,this.nextResult=t.next()}return t.prototype.hasValue=function(){return!0},t.prototype.next=function(){var t=this.nextResult;return this.nextResult=this.iterator.next(),t},t.prototype.hasCompleted=function(){var t=this.nextResult;return t&&t.done},t}(),d=function(){function t(t){this.array=t,this.index=0,this.length=0,this.length=t.length}return t.prototype[a.iterator]=function(){return this},t.prototype.next=function(t){var e=this.index++,i=this.array;return e<this.length?{value:i[e],done:!1}:{value:null,done:!0}},t.prototype.hasValue=function(){return this.array.length>this.index},t.prototype.hasCompleted=function(){return this.array.length===this.index},t}(),b=function(t){function e(e,i,n){t.call(this,e),this.parent=i,this.observable=n,this.stillUnsubscribed=!0,this.buffer=[],this.isComplete=!1}return n(e,t),e.prototype[a.iterator]=function(){return this},e.prototype.next=function(){var t=this.buffer;return 0===t.length&&this.isComplete?{value:null,done:!0}:{value:t.shift(),done:!1}},e.prototype.hasValue=function(){return this.buffer.length>0},e.prototype.hasCompleted=function(){return 0===this.buffer.length&&this.isComplete},e.prototype.notifyComplete=function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()},e.prototype.notifyNext=function(t,e,i,n,r){this.buffer.push(e),this.parent.checkIterators()},e.prototype.subscribe=function(t,e){return c.subscribeToResult(this,this.observable,this,e)},e}(u.OuterSubscriber)},2109:function(t,e,i){"use strict";var n=i(1686),r=i(1917),o=i(1976);e.toSubscriber=function(t,e,i){if(t){if(t instanceof n.Subscriber)return t;if(t[r.rxSubscriber])return t[r.rxSubscriber]()}return t||e||i?new n.Subscriber(t,e,i):new n.Subscriber(o.empty)}},2110:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=function(t){function e(e){t.call(this),this.errors=e;var i=Error.call(this,e?e.length+" errors occurred during unsubscription:\n "+e.map((function(t,e){return e+1+") "+t.toString()})).join("\n "):"");this.name=i.name="UnsubscriptionError",this.stack=i.stack,this.message=i.message}return n(e,t),e}(Error);e.UnsubscriptionError=r},2111:function(t,e,i){"use strict";var n=i(1980);e.audit=n.audit;var r=i(2113);e.auditTime=r.auditTime;var o=i(2118);e.buffer=o.buffer;var s=i(2119);e.bufferCount=s.bufferCount;var u=i(2120);e.bufferTime=u.bufferTime;var c=i(2121);e.bufferToggle=c.bufferToggle;var a=i(2122);e.bufferWhen=a.bufferWhen;var l=i(2123);e.catchError=l.catchError;var h=i(2124);e.combineAll=h.combineAll;var p=i(1986);e.combineLatest=p.combineLatest;var f=i(2125);e.concat=f.concat;var d=i(1988);e.concatAll=d.concatAll;var b=i(1990);e.concatMap=b.concatMap;var v=i(2131);e.concatMapTo=v.concatMapTo;var y=i(2132);e.count=y.count;var m=i(2133);e.debounce=m.debounce;var w=i(2134);e.debounceTime=w.debounceTime;var g=i(1991);e.defaultIfEmpty=g.defaultIfEmpty;var O=i(2135);e.delay=O.delay;var x=i(2136);e.delayWhen=x.delayWhen;var S=i(2137);e.dematerialize=S.dematerialize;var _=i(2138);e.distinct=_.distinct;var E=i(1992);e.distinctUntilChanged=E.distinctUntilChanged;var T=i(2140);e.distinctUntilKeyChanged=T.distinctUntilKeyChanged;var V=i(2141);e.elementAt=V.elementAt;var C=i(2142);e.every=C.every;var L=i(2143);e.exhaust=L.exhaust;var P=i(2144);e.exhaustMap=P.exhaustMap;var j=i(2145);e.expand=j.expand;var k=i(1993);e.filter=k.filter;var N=i(2146);e.finalize=N.finalize;var H=i(1994);e.find=H.find;var M=i(2147);e.findIndex=M.findIndex;var I=i(2148);e.first=I.first;var R=i(2149);e.groupBy=R.groupBy;var A=i(2153);e.ignoreElements=A.ignoreElements;var B=i(2154);e.isEmpty=B.isEmpty;var U=i(2155);e.last=U.last;var D=i(1926);e.map=D.map;var F=i(2156);e.mapTo=F.mapTo;var z=i(2157);e.materialize=z.materialize;var W=i(2158);e.max=W.max;var q=i(2159);e.merge=q.merge;var Y=i(1924);e.mergeAll=Y.mergeAll;var Q=i(1880);e.mergeMap=Q.mergeMap;var G=i(1880);e.flatMap=G.mergeMap;var K=i(2160);e.mergeMapTo=K.mergeMapTo;var $=i(2161);e.mergeScan=$.mergeScan;var X=i(2162);e.min=X.min;var J=i(1858);e.multicast=J.multicast;var Z=i(1922);e.observeOn=Z.observeOn;var tt=i(2164);e.onErrorResumeNext=tt.onErrorResumeNext;var et=i(2165);e.pairwise=et.pairwise;var it=i(2166);e.partition=it.partition;var nt=i(2168);e.pluck=nt.pluck;var rt=i(2169);e.publish=rt.publish;var ot=i(2170);e.publishBehavior=ot.publishBehavior;var st=i(2172);e.publishLast=st.publishLast;var ut=i(2174);e.publishReplay=ut.publishReplay;var ct=i(2178);e.race=ct.race;var at=i(1882);e.reduce=at.reduce;var lt=i(2180);e.repeat=lt.repeat;var ht=i(2181);e.repeatWhen=ht.repeatWhen;var pt=i(2182);e.retry=pt.retry;var ft=i(2183);e.retryWhen=ft.retryWhen;var dt=i(1927);e.refCount=dt.refCount;var bt=i(2184);e.sample=bt.sample;var vt=i(2185);e.sampleTime=vt.sampleTime;var yt=i(1995);e.scan=yt.scan;var mt=i(2186);e.sequenceEqual=mt.sequenceEqual;var wt=i(2187);e.share=wt.share;var gt=i(2188);e.shareReplay=gt.shareReplay;var Ot=i(2189);e.single=Ot.single;var xt=i(2190);e.skip=xt.skip;var St=i(2191);e.skipLast=St.skipLast;var _t=i(2192);e.skipUntil=_t.skipUntil;var Et=i(2193);e.skipWhile=Et.skipWhile;var Tt=i(2194);e.startWith=Tt.startWith;var Vt=i(2195);e.switchAll=Vt.switchAll;var Ct=i(1999);e.switchMap=Ct.switchMap;var Lt=i(2196);e.switchMapTo=Lt.switchMapTo;var Pt=i(2197);e.take=Pt.take;var jt=i(1996);e.takeLast=jt.takeLast;var kt=i(2198);e.takeUntil=kt.takeUntil;var Nt=i(2199);e.takeWhile=Nt.takeWhile;var Ht=i(2200);e.tap=Ht.tap;var Mt=i(2e3);e.throttle=Mt.throttle;var It=i(2201);e.throttleTime=It.throttleTime;var Rt=i(2202);e.timeInterval=Rt.timeInterval;var At=i(2203);e.timeout=At.timeout;var Bt=i(2205);e.timeoutWith=Bt.timeoutWith;var Ut=i(2206);e.timestamp=Ut.timestamp;var Dt=i(2207);e.toArray=Dt.toArray;var Ft=i(2208);e.window=Ft.window;var zt=i(2209);e.windowCount=zt.windowCount;var Wt=i(2210);e.windowTime=Wt.windowTime;var qt=i(2211);e.windowToggle=qt.windowToggle;var Yt=i(2212);e.windowWhen=Yt.windowWhen;var Qt=i(2213);e.withLatestFrom=Qt.withLatestFrom;var Gt=i(2001);e.zip=Gt.zip;var Kt=i(2214);e.zipAll=Kt.zipAll},2112:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=function(t){function e(e,i,n){t.call(this),this.parent=e,this.outerValue=i,this.outerIndex=n,this.index=0}return n(e,t),e.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)},e.prototype._error=function(t){this.parent.notifyError(t,this),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},e}(i(1686).Subscriber);e.InnerSubscriber=r},2113:function(t,e,i){"use strict";var n=i(1703),r=i(1980),o=i(2116);e.auditTime=function(t,e){return void 0===e&&(e=n.async),r.audit((function(){return o.timer(t,e)}))}},2114:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=function(t){function e(e,i){t.call(this)}return n(e,t),e.prototype.schedule=function(t,e){return void 0===e&&(e=0),this},e}(i(1699).Subscription);e.Action=r},2115:function(t,e,i){"use strict";var n=function(){function t(e,i){void 0===i&&(i=t.now),this.SchedulerAction=e,this.now=i}return t.prototype.schedule=function(t,e,i){return void 0===e&&(e=0),new this.SchedulerAction(this,t).schedule(i,e)},t.now=Date.now?Date.now:function(){return+new Date},t}();e.Scheduler=n},2116:function(t,e,i){"use strict";var n=i(2117);e.timer=n.TimerObservable.create},2117:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1985),o=i(1695),s=i(1703),u=i(1853),c=i(1879),a=function(t){function e(e,i,n){void 0===e&&(e=0),t.call(this),this.period=-1,this.dueTime=0,r.isNumeric(i)?this.period=Number(i)<1?1:Number(i):u.isScheduler(i)&&(n=i),u.isScheduler(n)||(n=s.async),this.scheduler=n,this.dueTime=c.isDate(e)?+e-this.scheduler.now():e}return n(e,t),e.create=function(t,i,n){return void 0===t&&(t=0),new e(t,i,n)},e.dispatch=function(t){var e=t.index,i=t.period,n=t.subscriber;if(n.next(e),!n.closed){if(-1===i)return n.complete();t.index=e+1,this.schedule(t,i)}},e.prototype._subscribe=function(t){var i=this.period,n=this.dueTime;return this.scheduler.schedule(e.dispatch,n,{index:0,period:i,subscriber:t})},e}(o.Observable);e.TimerObservable=a},2118:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1690),o=i(1691);e.buffer=function(t){return function(e){return e.lift(new s(t))}};var s=function(){function t(t){this.closingNotifier=t}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.closingNotifier))},t}(),u=function(t){function e(e,i){t.call(this,e),this.buffer=[],this.add(o.subscribeToResult(this,i))}return n(e,t),e.prototype._next=function(t){this.buffer.push(t)},e.prototype.notifyNext=function(t,e,i,n,r){var o=this.buffer;this.buffer=[],this.destination.next(o)},e}(r.OuterSubscriber)},2119:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1686);e.bufferCount=function(t,e){return void 0===e&&(e=null),function(i){return i.lift(new o(t,e))}};var o=function(){function t(t,e){this.bufferSize=t,this.startBufferEvery=e,this.subscriberClass=e&&t!==e?u:s}return t.prototype.call=function(t,e){return e.subscribe(new this.subscriberClass(t,this.bufferSize,this.startBufferEvery))},t}(),s=function(t){function e(e,i){t.call(this,e),this.bufferSize=i,this.buffer=[]}return n(e,t),e.prototype._next=function(t){var e=this.buffer;e.push(t),e.length==this.bufferSize&&(this.destination.next(e),this.buffer=[])},e.prototype._complete=function(){var e=this.buffer;e.length>0&&this.destination.next(e),t.prototype._complete.call(this)},e}(r.Subscriber),u=function(t){function e(e,i,n){t.call(this,e),this.bufferSize=i,this.startBufferEvery=n,this.buffers=[],this.count=0}return n(e,t),e.prototype._next=function(t){var e=this.bufferSize,i=this.startBufferEvery,n=this.buffers,r=this.count;this.count++,r%i==0&&n.push([]);for(var o=n.length;o--;){var s=n[o];s.push(t),s.length===e&&(n.splice(o,1),this.destination.next(s))}},e.prototype._complete=function(){for(var e=this.buffers,i=this.destination;e.length>0;){var n=e.shift();n.length>0&&i.next(n)}t.prototype._complete.call(this)},e}(r.Subscriber)},2120:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1703),o=i(1686),s=i(1853);e.bufferTime=function(t){var e=arguments.length,i=r.async;s.isScheduler(arguments[arguments.length-1])&&(i=arguments[arguments.length-1],e--);var n=null;e>=2&&(n=arguments[1]);var o=Number.POSITIVE_INFINITY;return e>=3&&(o=arguments[2]),function(e){return e.lift(new u(t,n,o,i))}};var u=function(){function t(t,e,i,n){this.bufferTimeSpan=t,this.bufferCreationInterval=e,this.maxBufferSize=i,this.scheduler=n}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))},t}(),c=function(){this.buffer=[]},a=function(t){function e(e,i,n,r,o){t.call(this,e),this.bufferTimeSpan=i,this.bufferCreationInterval=n,this.maxBufferSize=r,this.scheduler=o,this.contexts=[];var s=this.openContext();if(this.timespanOnly=null==n||n<0,this.timespanOnly){var u={subscriber:this,context:s,bufferTimeSpan:i};this.add(s.closeAction=o.schedule(l,i,u))}else{var c={subscriber:this,context:s},a={bufferTimeSpan:i,bufferCreationInterval:n,subscriber:this,scheduler:o};this.add(s.closeAction=o.schedule(p,i,c)),this.add(o.schedule(h,n,a))}}return n(e,t),e.prototype._next=function(t){for(var e,i=this.contexts,n=i.length,r=0;r<n;r++){var o=i[r],s=o.buffer;s.push(t),s.length==this.maxBufferSize&&(e=o)}e&&this.onBufferFull(e)},e.prototype._error=function(e){this.contexts.length=0,t.prototype._error.call(this,e)},e.prototype._complete=function(){for(var e=this.contexts,i=this.destination;e.length>0;){var n=e.shift();i.next(n.buffer)}t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.contexts=null},e.prototype.onBufferFull=function(t){this.closeContext(t);var e=t.closeAction;if(e.unsubscribe(),this.remove(e),!this.closed&&this.timespanOnly){t=this.openContext();var i=this.bufferTimeSpan,n={subscriber:this,context:t,bufferTimeSpan:i};this.add(t.closeAction=this.scheduler.schedule(l,i,n))}},e.prototype.openContext=function(){var t=new c;return this.contexts.push(t),t},e.prototype.closeContext=function(t){this.destination.next(t.buffer);var e=this.contexts;(e?e.indexOf(t):-1)>=0&&e.splice(e.indexOf(t),1)},e}(o.Subscriber);function l(t){var e=t.subscriber,i=t.context;i&&e.closeContext(i),e.closed||(t.context=e.openContext(),t.context.closeAction=this.schedule(t,t.bufferTimeSpan))}function h(t){var e=t.bufferCreationInterval,i=t.bufferTimeSpan,n=t.subscriber,r=t.scheduler,o=n.openContext();n.closed||(n.add(o.closeAction=r.schedule(p,i,{subscriber:n,context:o})),this.schedule(t,e))}function p(t){var e=t.subscriber,i=t.context;e.closeContext(i)}},2121:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1699),o=i(1691),s=i(1690);e.bufferToggle=function(t,e){return function(i){return i.lift(new u(t,e))}};var u=function(){function t(t,e){this.openings=t,this.closingSelector=e}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.openings,this.closingSelector))},t}(),c=function(t){function e(e,i,n){t.call(this,e),this.openings=i,this.closingSelector=n,this.contexts=[],this.add(o.subscribeToResult(this,i))}return n(e,t),e.prototype._next=function(t){for(var e=this.contexts,i=e.length,n=0;n<i;n++)e[n].buffer.push(t)},e.prototype._error=function(e){for(var i=this.contexts;i.length>0;){var n=i.shift();n.subscription.unsubscribe(),n.buffer=null,n.subscription=null}this.contexts=null,t.prototype._error.call(this,e)},e.prototype._complete=function(){for(var e=this.contexts;e.length>0;){var i=e.shift();this.destination.next(i.buffer),i.subscription.unsubscribe(),i.buffer=null,i.subscription=null}this.contexts=null,t.prototype._complete.call(this)},e.prototype.notifyNext=function(t,e,i,n,r){t?this.closeBuffer(t):this.openBuffer(e)},e.prototype.notifyComplete=function(t){this.closeBuffer(t.context)},e.prototype.openBuffer=function(t){try{var e=this.closingSelector.call(this,t);e&&this.trySubscribe(e)}catch(t){this._error(t)}},e.prototype.closeBuffer=function(t){var e=this.contexts;if(e&&t){var i=t.buffer,n=t.subscription;this.destination.next(i),e.splice(e.indexOf(t),1),this.remove(n),n.unsubscribe()}},e.prototype.trySubscribe=function(t){var e=this.contexts,i=new r.Subscription,n={buffer:[],subscription:i};e.push(n);var s=o.subscribeToResult(this,t,n);!s||s.closed?this.closeBuffer(n):(s.context=n,this.add(s),i.add(s))},e}(s.OuterSubscriber)},2122:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1699),o=i(1706),s=i(1702),u=i(1690),c=i(1691);e.bufferWhen=function(t){return function(e){return e.lift(new a(t))}};var a=function(){function t(t){this.closingSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.closingSelector))},t}(),l=function(t){function e(e,i){t.call(this,e),this.closingSelector=i,this.subscribing=!1,this.openBuffer()}return n(e,t),e.prototype._next=function(t){this.buffer.push(t)},e.prototype._complete=function(){var e=this.buffer;e&&this.destination.next(e),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.buffer=null,this.subscribing=!1},e.prototype.notifyNext=function(t,e,i,n,r){this.openBuffer()},e.prototype.notifyComplete=function(){this.subscribing?this.complete():this.openBuffer()},e.prototype.openBuffer=function(){var t=this.closingSubscription;t&&(this.remove(t),t.unsubscribe());var e=this.buffer;this.buffer&&this.destination.next(e),this.buffer=[];var i=o.tryCatch(this.closingSelector)();i===s.errorObject?this.error(s.errorObject.e):(t=new r.Subscription,this.closingSubscription=t,this.add(t),this.subscribing=!0,t.add(c.subscribeToResult(this,i)),this.subscribing=!1)},e}(u.OuterSubscriber)},2123:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1690),o=i(1691);e.catchError=function(t){return function(e){var i=new s(t),n=e.lift(i);return i.caught=n}};var s=function(){function t(t){this.selector=t}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.selector,this.caught))},t}(),u=function(t){function e(e,i,n){t.call(this,e),this.selector=i,this.caught=n}return n(e,t),e.prototype.error=function(e){if(!this.isStopped){var i=void 0;try{i=this.selector(e,this.caught)}catch(e){return void t.prototype.error.call(this,e)}this._unsubscribeAndRecycle(),this.add(o.subscribeToResult(this,i))}},e}(r.OuterSubscriber)},2124:function(t,e,i){"use strict";var n=i(1986);e.combineAll=function(t){return function(e){return e.lift(new n.CombineLatestOperator(t))}}},2125:function(t,e,i){"use strict";var n=i(1921),r=i(1921);e.concatStatic=r.concat,e.concat=function(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return function(e){return e.lift.call(n.concat.apply(void 0,[e].concat(t)))}}},2126:function(t,e,i){"use strict";var n=i(1854);e.of=n.ArrayObservable.of},2127:function(t,e,i){"use strict";var n=i(1987);e.from=n.FromObservable.create},2128:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1710),o=function(t){function e(e,i){t.call(this),this.promise=e,this.scheduler=i}return n(e,t),e.create=function(t,i){return new e(t,i)},e.prototype._subscribe=function(t){var e=this,i=this.promise,n=this.scheduler;if(null==n)this._isScalar?t.closed||(t.next(this.value),t.complete()):i.then((function(i){e.value=i,e._isScalar=!0,t.closed||(t.next(i),t.complete())}),(function(e){t.closed||t.error(e)})).then(null,(function(t){r.root.setTimeout((function(){throw t}))}));else if(this._isScalar){if(!t.closed)return n.schedule(s,0,{value:this.value,subscriber:t})}else i.then((function(i){e.value=i,e._isScalar=!0,t.closed||t.add(n.schedule(s,0,{value:i,subscriber:t}))}),(function(e){t.closed||t.add(n.schedule(u,0,{err:e,subscriber:t}))})).then(null,(function(t){r.root.setTimeout((function(){throw t}))}))},e}(i(1695).Observable);function s(t){var e=t.value,i=t.subscriber;i.closed||(i.next(e),i.complete())}function u(t){var e=t.err,i=t.subscriber;i.closed||i.error(e)}e.PromiseObservable=o},2129:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1710),o=i(1695),s=i(1878),u=function(t){function e(e,i){if(t.call(this),this.scheduler=i,null==e)throw new Error("iterator cannot be null.");this.iterator=function(t){var e=t[s.iterator];if(!e&&"string"==typeof t)return new c(t);if(!e&&void 0!==t.length)return new a(t);if(!e)throw new TypeError("object is not iterable");return t[s.iterator]()}(e)}return n(e,t),e.create=function(t,i){return new e(t,i)},e.dispatch=function(t){var e=t.index,i=t.hasError,n=t.iterator,r=t.subscriber;if(i)r.error(t.error);else{var o=n.next();o.done?r.complete():(r.next(o.value),t.index=e+1,r.closed?"function"==typeof n.return&&n.return():this.schedule(t))}},e.prototype._subscribe=function(t){var i=this.iterator,n=this.scheduler;if(n)return n.schedule(e.dispatch,0,{index:0,iterator:i,subscriber:t});for(;;){var r=i.next();if(r.done){t.complete();break}if(t.next(r.value),t.closed){"function"==typeof i.return&&i.return();break}}},e}(o.Observable);e.IteratorObservable=u;var c=function(){function t(t,e,i){void 0===e&&(e=0),void 0===i&&(i=t.length),this.str=t,this.idx=e,this.len=i}return t.prototype[s.iterator]=function(){return this},t.prototype.next=function(){return this.idx<this.len?{done:!1,value:this.str.charAt(this.idx++)}:{done:!0,value:void 0}},t}(),a=function(){function t(t,e,i){void 0===e&&(e=0),void 0===i&&(i=function(t){var e=+t.length;if(isNaN(e))return 0;if(0===e||(i=e,"number"!=typeof i||!r.root.isFinite(i)))return e;var i;if((e=function(t){var e=+t;if(0===e)return e;if(isNaN(e))return e;return e<0?-1:1}(e)*Math.floor(Math.abs(e)))<=0)return 0;if(e>l)return l;return e}(t)),this.arr=t,this.idx=e,this.len=i}return t.prototype[s.iterator]=function(){return this},t.prototype.next=function(){return this.idx<this.len?{done:!1,value:this.arr[this.idx++]}:{done:!0,value:void 0}},t}();var l=Math.pow(2,53)-1},2130:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1695),o=i(1920),s=i(1857),u=function(t){function e(e,i){t.call(this),this.arrayLike=e,this.scheduler=i,i||1!==e.length||(this._isScalar=!0,this.value=e[0])}return n(e,t),e.create=function(t,i){var n=t.length;return 0===n?new s.EmptyObservable:1===n?new o.ScalarObservable(t[0],i):new e(t,i)},e.dispatch=function(t){var e=t.arrayLike,i=t.index,n=t.length,r=t.subscriber;r.closed||(i>=n?r.complete():(r.next(e[i]),t.index=i+1,this.schedule(t)))},e.prototype._subscribe=function(t){var i=this.arrayLike,n=this.scheduler,r=i.length;if(n)return n.schedule(e.dispatch,0,{arrayLike:i,index:0,length:r,subscriber:t});for(var o=0;o<r&&!t.closed;o++)t.next(i[o]);t.complete()},e}(r.Observable);e.ArrayLikeObservable=u},2131:function(t,e,i){"use strict";var n=i(1990);e.concatMapTo=function(t,e){return n.concatMap((function(){return t}),e)}},2132:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1686);e.count=function(t){return function(e){return e.lift(new o(t,e))}};var o=function(){function t(t,e){this.predicate=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.predicate,this.source))},t}(),s=function(t){function e(e,i,n){t.call(this,e),this.predicate=i,this.source=n,this.count=0,this.index=0}return n(e,t),e.prototype._next=function(t){this.predicate?this._tryPredicate(t):this.count++},e.prototype._tryPredicate=function(t){var e;try{e=this.predicate(t,this.index++,this.source)}catch(t){return void this.destination.error(t)}e&&this.count++},e.prototype._complete=function(){this.destination.next(this.count),this.destination.complete()},e}(r.Subscriber)},2133:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1690),o=i(1691);e.debounce=function(t){return function(e){return e.lift(new s(t))}};var s=function(){function t(t){this.durationSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.durationSelector))},t}(),u=function(t){function e(e,i){t.call(this,e),this.durationSelector=i,this.hasValue=!1,this.durationSubscription=null}return n(e,t),e.prototype._next=function(t){try{var e=this.durationSelector.call(this,t);e&&this._tryNext(t,e)}catch(t){this.destination.error(t)}},e.prototype._complete=function(){this.emitValue(),this.destination.complete()},e.prototype._tryNext=function(t,e){var i=this.durationSubscription;this.value=t,this.hasValue=!0,i&&(i.unsubscribe(),this.remove(i)),(i=o.subscribeToResult(this,e)).closed||this.add(this.durationSubscription=i)},e.prototype.notifyNext=function(t,e,i,n,r){this.emitValue()},e.prototype.notifyComplete=function(){this.emitValue()},e.prototype.emitValue=function(){if(this.hasValue){var e=this.value,i=this.durationSubscription;i&&(this.durationSubscription=null,i.unsubscribe(),this.remove(i)),this.value=null,this.hasValue=!1,t.prototype._next.call(this,e)}},e}(r.OuterSubscriber)},2134:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1686),o=i(1703);e.debounceTime=function(t,e){return void 0===e&&(e=o.async),function(i){return i.lift(new s(t,e))}};var s=function(){function t(t,e){this.dueTime=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.dueTime,this.scheduler))},t}(),u=function(t){function e(e,i,n){t.call(this,e),this.dueTime=i,this.scheduler=n,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}return n(e,t),e.prototype._next=function(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(c,this.dueTime,this))},e.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},e.prototype.debouncedNext=function(){this.clearDebounce(),this.hasValue&&(this.destination.next(this.lastValue),this.lastValue=null,this.hasValue=!1)},e.prototype.clearDebounce=function(){var t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)},e}(r.Subscriber);function c(t){t.debouncedNext()}},2135:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1703),o=i(1879),s=i(1686),u=i(1923);e.delay=function(t,e){void 0===e&&(e=r.async);var i=o.isDate(t)?+t-e.now():Math.abs(t);return function(t){return t.lift(new c(i,e))}};var c=function(){function t(t,e){this.delay=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.delay,this.scheduler))},t}(),a=function(t){function e(e,i,n){t.call(this,e),this.delay=i,this.scheduler=n,this.queue=[],this.active=!1,this.errored=!1}return n(e,t),e.dispatch=function(t){for(var e=t.source,i=e.queue,n=t.scheduler,r=t.destination;i.length>0&&i[0].time-n.now()<=0;)i.shift().notification.observe(r);if(i.length>0){var o=Math.max(0,i[0].time-n.now());this.schedule(t,o)}else this.unsubscribe(),e.active=!1},e.prototype._schedule=function(t){this.active=!0,this.add(t.schedule(e.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))},e.prototype.scheduleNotification=function(t){if(!0!==this.errored){var e=this.scheduler,i=new l(e.now()+this.delay,t);this.queue.push(i),!1===this.active&&this._schedule(e)}},e.prototype._next=function(t){this.scheduleNotification(u.Notification.createNext(t))},e.prototype._error=function(t){this.errored=!0,this.queue=[],this.destination.error(t)},e.prototype._complete=function(){this.scheduleNotification(u.Notification.createComplete())},e}(s.Subscriber),l=function(t,e){this.time=t,this.notification=e}},2136:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1686),o=i(1695),s=i(1690),u=i(1691);e.delayWhen=function(t,e){return e?function(i){return new l(i,e).lift(new c(t))}:function(e){return e.lift(new c(t))}};var c=function(){function t(t){this.delayDurationSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.delayDurationSelector))},t}(),a=function(t){function e(e,i){t.call(this,e),this.delayDurationSelector=i,this.completed=!1,this.delayNotifierSubscriptions=[],this.values=[]}return n(e,t),e.prototype.notifyNext=function(t,e,i,n,r){this.destination.next(t),this.removeSubscription(r),this.tryComplete()},e.prototype.notifyError=function(t,e){this._error(t)},e.prototype.notifyComplete=function(t){var e=this.removeSubscription(t);e&&this.destination.next(e),this.tryComplete()},e.prototype._next=function(t){try{var e=this.delayDurationSelector(t);e&&this.tryDelay(e,t)}catch(t){this.destination.error(t)}},e.prototype._complete=function(){this.completed=!0,this.tryComplete()},e.prototype.removeSubscription=function(t){t.unsubscribe();var e=this.delayNotifierSubscriptions.indexOf(t),i=null;return-1!==e&&(i=this.values[e],this.delayNotifierSubscriptions.splice(e,1),this.values.splice(e,1)),i},e.prototype.tryDelay=function(t,e){var i=u.subscribeToResult(this,t,e);i&&!i.closed&&(this.add(i),this.delayNotifierSubscriptions.push(i)),this.values.push(e)},e.prototype.tryComplete=function(){this.completed&&0===this.delayNotifierSubscriptions.length&&this.destination.complete()},e}(s.OuterSubscriber),l=function(t){function e(e,i){t.call(this),this.source=e,this.subscriptionDelay=i}return n(e,t),e.prototype._subscribe=function(t){this.subscriptionDelay.subscribe(new h(t,this.source))},e}(o.Observable),h=function(t){function e(e,i){t.call(this),this.parent=e,this.source=i,this.sourceSubscribed=!1}return n(e,t),e.prototype._next=function(t){this.subscribeToSource()},e.prototype._error=function(t){this.unsubscribe(),this.parent.error(t)},e.prototype._complete=function(){this.subscribeToSource()},e.prototype.subscribeToSource=function(){this.sourceSubscribed||(this.sourceSubscribed=!0,this.unsubscribe(),this.source.subscribe(this.parent))},e}(r.Subscriber)},2137:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1686);e.dematerialize=function(){return function(t){return t.lift(new o)}};var o=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new s(t))},t}(),s=function(t){function e(e){t.call(this,e)}return n(e,t),e.prototype._next=function(t){t.observe(this.destination)},e}(r.Subscriber)},2138:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1690),o=i(1691),s=i(2139);e.distinct=function(t,e){return function(i){return i.lift(new u(t,e))}};var u=function(){function t(t,e){this.keySelector=t,this.flushes=e}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.keySelector,this.flushes))},t}(),c=function(t){function e(e,i,n){t.call(this,e),this.keySelector=i,this.values=new s.Set,n&&this.add(o.subscribeToResult(this,n))}return n(e,t),e.prototype.notifyNext=function(t,e,i,n,r){this.values.clear()},e.prototype.notifyError=function(t,e){this._error(t)},e.prototype._next=function(t){this.keySelector?this._useKeySelector(t):this._finalizeNext(t,t)},e.prototype._useKeySelector=function(t){var e,i=this.destination;try{e=this.keySelector(t)}catch(t){return void i.error(t)}this._finalizeNext(e,t)},e.prototype._finalizeNext=function(t,e){var i=this.values;i.has(t)||(i.add(t),this.destination.next(e))},e}(r.OuterSubscriber);e.DistinctSubscriber=c},2139:function(t,e,i){"use strict";var n=i(1710);function r(){return function(){function t(){this._values=[]}return t.prototype.add=function(t){this.has(t)||this._values.push(t)},t.prototype.has=function(t){return-1!==this._values.indexOf(t)},Object.defineProperty(t.prototype,"size",{get:function(){return this._values.length},enumerable:!0,configurable:!0}),t.prototype.clear=function(){this._values.length=0},t}()}e.minimalSetImpl=r,e.Set=n.root.Set||r()},2140:function(t,e,i){"use strict";var n=i(1992);e.distinctUntilKeyChanged=function(t,e){return n.distinctUntilChanged((function(i,n){return e?e(i[t],n[t]):i[t]===n[t]}))}},2141:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1686),o=i(1881);e.elementAt=function(t,e){return function(i){return i.lift(new s(t,e))}};var s=function(){function t(t,e){if(this.index=t,this.defaultValue=e,t<0)throw new o.ArgumentOutOfRangeError}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.index,this.defaultValue))},t}(),u=function(t){function e(e,i,n){t.call(this,e),this.index=i,this.defaultValue=n}return n(e,t),e.prototype._next=function(t){0==this.index--&&(this.destination.next(t),this.destination.complete())},e.prototype._complete=function(){var t=this.destination;this.index>=0&&(void 0!==this.defaultValue?t.next(this.defaultValue):t.error(new o.ArgumentOutOfRangeError)),t.complete()},e}(r.Subscriber)},2142:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1686);e.every=function(t,e){return function(i){return i.lift(new o(t,e,i))}};var o=function(){function t(t,e,i){this.predicate=t,this.thisArg=e,this.source=i}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.predicate,this.thisArg,this.source))},t}(),s=function(t){function e(e,i,n,r){t.call(this,e),this.predicate=i,this.thisArg=n,this.source=r,this.index=0,this.thisArg=n||this}return n(e,t),e.prototype.notifyComplete=function(t){this.destination.next(t),this.destination.complete()},e.prototype._next=function(t){var e=!1;try{e=this.predicate.call(this.thisArg,t,this.index++,this.source)}catch(t){return void this.destination.error(t)}e||this.notifyComplete(!1)},e.prototype._complete=function(){this.notifyComplete(!0)},e}(r.Subscriber)},2143:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1690),o=i(1691);e.exhaust=function(){return function(t){return t.lift(new s)}};var s=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new u(t))},t}(),u=function(t){function e(e){t.call(this,e),this.hasCompleted=!1,this.hasSubscription=!1}return n(e,t),e.prototype._next=function(t){this.hasSubscription||(this.hasSubscription=!0,this.add(o.subscribeToResult(this,t)))},e.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete()},e.prototype.notifyComplete=function(t){this.remove(t),this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},e}(r.OuterSubscriber)},2144:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1690),o=i(1691);e.exhaustMap=function(t,e){return function(i){return i.lift(new s(t,e))}};var s=function(){function t(t,e){this.project=t,this.resultSelector=e}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.project,this.resultSelector))},t}(),u=function(t){function e(e,i,n){t.call(this,e),this.project=i,this.resultSelector=n,this.hasSubscription=!1,this.hasCompleted=!1,this.index=0}return n(e,t),e.prototype._next=function(t){this.hasSubscription||this.tryNext(t)},e.prototype.tryNext=function(t){var e=this.index++,i=this.destination;try{var n=this.project(t,e);this.hasSubscription=!0,this.add(o.subscribeToResult(this,n,t,e))}catch(t){i.error(t)}},e.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete()},e.prototype.notifyNext=function(t,e,i,n,r){var o=this.resultSelector,s=this.destination;o?this.trySelectResult(t,e,i,n):s.next(e)},e.prototype.trySelectResult=function(t,e,i,n){var r=this.resultSelector,o=this.destination;try{var s=r(t,e,i,n);o.next(s)}catch(t){o.error(t)}},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.remove(t),this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},e}(r.OuterSubscriber)},2145:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1706),o=i(1702),s=i(1690),u=i(1691);e.expand=function(t,e,i){return void 0===e&&(e=Number.POSITIVE_INFINITY),void 0===i&&(i=void 0),e=(e||0)<1?Number.POSITIVE_INFINITY:e,function(n){return n.lift(new c(t,e,i))}};var c=function(){function t(t,e,i){this.project=t,this.concurrent=e,this.scheduler=i}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.project,this.concurrent,this.scheduler))},t}();e.ExpandOperator=c;var a=function(t){function e(e,i,n,r){t.call(this,e),this.project=i,this.concurrent=n,this.scheduler=r,this.index=0,this.active=0,this.hasCompleted=!1,n<Number.POSITIVE_INFINITY&&(this.buffer=[])}return n(e,t),e.dispatch=function(t){var e=t.subscriber,i=t.result,n=t.value,r=t.index;e.subscribeToProjection(i,n,r)},e.prototype._next=function(t){var i=this.destination;if(i.closed)this._complete();else{var n=this.index++;if(this.active<this.concurrent){i.next(t);var s=r.tryCatch(this.project)(t,n);if(s===o.errorObject)i.error(o.errorObject.e);else if(this.scheduler){var u={subscriber:this,result:s,value:t,index:n};this.add(this.scheduler.schedule(e.dispatch,0,u))}else this.subscribeToProjection(s,t,n)}else this.buffer.push(t)}},e.prototype.subscribeToProjection=function(t,e,i){this.active++,this.add(u.subscribeToResult(this,t,e,i))},e.prototype._complete=function(){this.hasCompleted=!0,this.hasCompleted&&0===this.active&&this.destination.complete()},e.prototype.notifyNext=function(t,e,i,n,r){this._next(e)},e.prototype.notifyComplete=function(t){var e=this.buffer;this.remove(t),this.active--,e&&e.length>0&&this._next(e.shift()),this.hasCompleted&&0===this.active&&this.destination.complete()},e}(s.OuterSubscriber);e.ExpandSubscriber=a},2146:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1686),o=i(1699);e.finalize=function(t){return function(e){return e.lift(new s(t))}};var s=function(){function t(t){this.callback=t}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.callback))},t}(),u=function(t){function e(e,i){t.call(this,e),this.add(new o.Subscription(i))}return n(e,t),e}(r.Subscriber)},2147:function(t,e,i){"use strict";var n=i(1994);e.findIndex=function(t,e){return function(i){return i.lift(new n.FindValueOperator(t,i,!0,e))}}},2148:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1686),o=i(1925);e.first=function(t,e,i){return function(n){return n.lift(new s(t,e,i,n))}};var s=function(){function t(t,e,i,n){this.predicate=t,this.resultSelector=e,this.defaultValue=i,this.source=n}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.predicate,this.resultSelector,this.defaultValue,this.source))},t}(),u=function(t){function e(e,i,n,r,o){t.call(this,e),this.predicate=i,this.resultSelector=n,this.defaultValue=r,this.source=o,this.index=0,this.hasCompleted=!1,this._emitted=!1}return n(e,t),e.prototype._next=function(t){var e=this.index++;this.predicate?this._tryPredicate(t,e):this._emit(t,e)},e.prototype._tryPredicate=function(t,e){var i;try{i=this.predicate(t,e,this.source)}catch(t){return void this.destination.error(t)}i&&this._emit(t,e)},e.prototype._emit=function(t,e){this.resultSelector?this._tryResultSelector(t,e):this._emitFinal(t)},e.prototype._tryResultSelector=function(t,e){var i;try{i=this.resultSelector(t,e)}catch(t){return void this.destination.error(t)}this._emitFinal(i)},e.prototype._emitFinal=function(t){var e=this.destination;this._emitted||(this._emitted=!0,e.next(t),e.complete(),this.hasCompleted=!0)},e.prototype._complete=function(){var t=this.destination;this.hasCompleted||void 0===this.defaultValue?this.hasCompleted||t.error(new o.EmptyError):(t.next(this.defaultValue),t.complete())},e}(r.Subscriber)},2149:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1686),o=i(1699),s=i(1695),u=i(1694),c=i(2150),a=i(2152);e.groupBy=function(t,e,i,n){return function(r){return r.lift(new l(t,e,i,n))}};var l=function(){function t(t,e,i,n){this.keySelector=t,this.elementSelector=e,this.durationSelector=i,this.subjectSelector=n}return t.prototype.call=function(t,e){return e.subscribe(new h(t,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))},t}(),h=function(t){function e(e,i,n,r,o){t.call(this,e),this.keySelector=i,this.elementSelector=n,this.durationSelector=r,this.subjectSelector=o,this.groups=null,this.attemptedToUnsubscribe=!1,this.count=0}return n(e,t),e.prototype._next=function(t){var e;try{e=this.keySelector(t)}catch(t){return void this.error(t)}this._group(t,e)},e.prototype._group=function(t,e){var i=this.groups;i||(i=this.groups="string"==typeof e?new a.FastMap:new c.Map);var n,r=i.get(e);if(this.elementSelector)try{n=this.elementSelector(t)}catch(t){this.error(t)}else n=t;if(!r){r=this.subjectSelector?this.subjectSelector():new u.Subject,i.set(e,r);var o=new f(e,r,this);if(this.destination.next(o),this.durationSelector){var s=void 0;try{s=this.durationSelector(new f(e,r))}catch(t){return void this.error(t)}this.add(s.subscribe(new p(e,r,this)))}}r.closed||r.next(n)},e.prototype._error=function(t){var e=this.groups;e&&(e.forEach((function(e,i){e.error(t)})),e.clear()),this.destination.error(t)},e.prototype._complete=function(){var t=this.groups;t&&(t.forEach((function(t,e){t.complete()})),t.clear()),this.destination.complete()},e.prototype.removeGroup=function(t){this.groups.delete(t)},e.prototype.unsubscribe=function(){this.closed||(this.attemptedToUnsubscribe=!0,0===this.count&&t.prototype.unsubscribe.call(this))},e}(r.Subscriber),p=function(t){function e(e,i,n){t.call(this,i),this.key=e,this.group=i,this.parent=n}return n(e,t),e.prototype._next=function(t){this.complete()},e.prototype._unsubscribe=function(){var t=this.parent,e=this.key;this.key=this.parent=null,t&&t.removeGroup(e)},e}(r.Subscriber),f=function(t){function e(e,i,n){t.call(this),this.key=e,this.groupSubject=i,this.refCountSubscription=n}return n(e,t),e.prototype._subscribe=function(t){var e=new o.Subscription,i=this.refCountSubscription,n=this.groupSubject;return i&&!i.closed&&e.add(new d(i)),e.add(n.subscribe(t)),e},e}(s.Observable);e.GroupedObservable=f;var d=function(t){function e(e){t.call(this),this.parent=e,e.count++}return n(e,t),e.prototype.unsubscribe=function(){var e=this.parent;e.closed||this.closed||(t.prototype.unsubscribe.call(this),e.count-=1,0===e.count&&e.attemptedToUnsubscribe&&e.unsubscribe())},e}(o.Subscription)},2150:function(t,e,i){"use strict";var n=i(1710),r=i(2151);e.Map=n.root.Map||r.MapPolyfill},2151:function(t,e,i){"use strict";var n=function(){function t(){this.size=0,this._values=[],this._keys=[]}return t.prototype.get=function(t){var e=this._keys.indexOf(t);return-1===e?void 0:this._values[e]},t.prototype.set=function(t,e){var i=this._keys.indexOf(t);return-1===i?(this._keys.push(t),this._values.push(e),this.size++):this._values[i]=e,this},t.prototype.delete=function(t){var e=this._keys.indexOf(t);return-1!==e&&(this._values.splice(e,1),this._keys.splice(e,1),this.size--,!0)},t.prototype.clear=function(){this._keys.length=0,this._values.length=0,this.size=0},t.prototype.forEach=function(t,e){for(var i=0;i<this.size;i++)t.call(e,this._values[i],this._keys[i])},t}();e.MapPolyfill=n},2152:function(t,e,i){"use strict";var n=function(){function t(){this.values={}}return t.prototype.delete=function(t){return this.values[t]=null,!0},t.prototype.set=function(t,e){return this.values[t]=e,this},t.prototype.get=function(t){return this.values[t]},t.prototype.forEach=function(t,e){var i=this.values;for(var n in i)i.hasOwnProperty(n)&&null!==i[n]&&t.call(e,i[n],n)},t.prototype.clear=function(){this.values={}},t}();e.FastMap=n},2153:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1686),o=i(1978);e.ignoreElements=function(){return function(t){return t.lift(new s)}};var s=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new u(t))},t}(),u=function(t){function e(){t.apply(this,arguments)}return n(e,t),e.prototype._next=function(t){o.noop()},e}(r.Subscriber)},2154:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1686);e.isEmpty=function(){return function(t){return t.lift(new o)}};var o=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new s(t))},t}(),s=function(t){function e(e){t.call(this,e)}return n(e,t),e.prototype.notifyComplete=function(t){var e=this.destination;e.next(t),e.complete()},e.prototype._next=function(t){this.notifyComplete(!1)},e.prototype._complete=function(){this.notifyComplete(!0)},e}(r.Subscriber)},2155:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1686),o=i(1925);e.last=function(t,e,i){return function(n){return n.lift(new s(t,e,i,n))}};var s=function(){function t(t,e,i,n){this.predicate=t,this.resultSelector=e,this.defaultValue=i,this.source=n}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.predicate,this.resultSelector,this.defaultValue,this.source))},t}(),u=function(t){function e(e,i,n,r,o){t.call(this,e),this.predicate=i,this.resultSelector=n,this.defaultValue=r,this.source=o,this.hasValue=!1,this.index=0,void 0!==r&&(this.lastValue=r,this.hasValue=!0)}return n(e,t),e.prototype._next=function(t){var e=this.index++;if(this.predicate)this._tryPredicate(t,e);else{if(this.resultSelector)return void this._tryResultSelector(t,e);this.lastValue=t,this.hasValue=!0}},e.prototype._tryPredicate=function(t,e){var i;try{i=this.predicate(t,e,this.source)}catch(t){return void this.destination.error(t)}if(i){if(this.resultSelector)return void this._tryResultSelector(t,e);this.lastValue=t,this.hasValue=!0}},e.prototype._tryResultSelector=function(t,e){var i;try{i=this.resultSelector(t,e)}catch(t){return void this.destination.error(t)}this.lastValue=i,this.hasValue=!0},e.prototype._complete=function(){var t=this.destination;this.hasValue?(t.next(this.lastValue),t.complete()):t.error(new o.EmptyError)},e}(r.Subscriber)},2156:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1686);e.mapTo=function(t){return function(e){return e.lift(new o(t))}};var o=function(){function t(t){this.value=t}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.value))},t}(),s=function(t){function e(e,i){t.call(this,e),this.value=i}return n(e,t),e.prototype._next=function(t){this.destination.next(this.value)},e}(r.Subscriber)},2157:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1686),o=i(1923);e.materialize=function(){return function(t){return t.lift(new s)}};var s=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new u(t))},t}(),u=function(t){function e(e){t.call(this,e)}return n(e,t),e.prototype._next=function(t){this.destination.next(o.Notification.createNext(t))},e.prototype._error=function(t){var e=this.destination;e.next(o.Notification.createError(t)),e.complete()},e.prototype._complete=function(){var t=this.destination;t.next(o.Notification.createComplete()),t.complete()},e}(r.Subscriber)},2158:function(t,e,i){"use strict";var n=i(1882);e.max=function(t){var e="function"==typeof t?function(e,i){return t(e,i)>0?e:i}:function(t,e){return t>e?t:e};return n.reduce(e)}},2159:function(t,e,i){"use strict";var n=i(1997),r=i(1997);e.mergeStatic=r.merge,e.merge=function(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return function(e){return e.lift.call(n.merge.apply(void 0,[e].concat(t)))}}},2160:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1690),o=i(1691);e.mergeMapTo=function(t,e,i){return void 0===i&&(i=Number.POSITIVE_INFINITY),"number"==typeof e&&(i=e,e=null),function(n){return n.lift(new s(t,e,i))}};var s=function(){function t(t,e,i){void 0===i&&(i=Number.POSITIVE_INFINITY),this.ish=t,this.resultSelector=e,this.concurrent=i}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.ish,this.resultSelector,this.concurrent))},t}();e.MergeMapToOperator=s;var u=function(t){function e(e,i,n,r){void 0===r&&(r=Number.POSITIVE_INFINITY),t.call(this,e),this.ish=i,this.resultSelector=n,this.concurrent=r,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}return n(e,t),e.prototype._next=function(t){if(this.active<this.concurrent){var e=this.resultSelector,i=this.index++,n=this.ish,r=this.destination;this.active++,this._innerSub(n,r,e,t,i)}else this.buffer.push(t)},e.prototype._innerSub=function(t,e,i,n,r){this.add(o.subscribeToResult(this,t,n,r))},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete()},e.prototype.notifyNext=function(t,e,i,n,r){var o=this.resultSelector,s=this.destination;o?this.trySelectResult(t,e,i,n):s.next(e)},e.prototype.trySelectResult=function(t,e,i,n){var r,o=this.resultSelector,s=this.destination;try{r=o(t,e,i,n)}catch(t){return void s.error(t)}s.next(r)},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(t){var e=this.buffer;this.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(r.OuterSubscriber);e.MergeMapToSubscriber=u},2161:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1706),o=i(1702),s=i(1691),u=i(1690);e.mergeScan=function(t,e,i){return void 0===i&&(i=Number.POSITIVE_INFINITY),function(n){return n.lift(new c(t,e,i))}};var c=function(){function t(t,e,i){this.accumulator=t,this.seed=e,this.concurrent=i}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.accumulator,this.seed,this.concurrent))},t}();e.MergeScanOperator=c;var a=function(t){function e(e,i,n,r){t.call(this,e),this.accumulator=i,this.acc=n,this.concurrent=r,this.hasValue=!1,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}return n(e,t),e.prototype._next=function(t){if(this.active<this.concurrent){var e=this.index++,i=r.tryCatch(this.accumulator)(this.acc,t),n=this.destination;i===o.errorObject?n.error(o.errorObject.e):(this.active++,this._innerSub(i,t,e))}else this.buffer.push(t)},e.prototype._innerSub=function(t,e,i){this.add(s.subscribeToResult(this,t,e,i))},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())},e.prototype.notifyNext=function(t,e,i,n,r){var o=this.destination;this.acc=e,this.hasValue=!0,o.next(e)},e.prototype.notifyComplete=function(t){var e=this.buffer;this.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())},e}(u.OuterSubscriber);e.MergeScanSubscriber=a},2162:function(t,e,i){"use strict";var n=i(1882);e.min=function(t){var e="function"==typeof t?function(e,i){return t(e,i)<0?e:i}:function(t,e){return t<e?t:e};return n.reduce(e)}},2163:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1694),o=i(1695),s=i(1686),u=i(1699),c=i(1927),a=function(t){function e(e,i){t.call(this),this.source=e,this.subjectFactory=i,this._refCount=0,this._isComplete=!1}return n(e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},e.prototype.connect=function(){var t=this._connection;return t||(this._isComplete=!1,(t=this._connection=new u.Subscription).add(this.source.subscribe(new h(this.getSubject(),this))),t.closed?(this._connection=null,t=u.Subscription.EMPTY):this._connection=t),t},e.prototype.refCount=function(){return c.refCount()(this)},e}(o.Observable);e.ConnectableObservable=a;var l=a.prototype;e.connectableObservableDescriptor={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:l._subscribe},_isComplete:{value:l._isComplete,writable:!0},getSubject:{value:l.getSubject},connect:{value:l.connect},refCount:{value:l.refCount}};var h=function(t){function e(e,i){t.call(this,e),this.connectable=i}return n(e,t),e.prototype._error=function(e){this._unsubscribe(),t.prototype._error.call(this,e)},e.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}},e}(r.SubjectSubscriber),p=(function(){function t(t){this.connectable=t}t.prototype.call=function(t,e){var i=this.connectable;i._refCount++;var n=new p(t,i),r=e.subscribe(n);return n.closed||(n.connection=i.connect()),r}}(),function(t){function e(e,i){t.call(this,e),this.connectable=i}return n(e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)this.connection=null;else{var i=this.connection,n=t._connection;this.connection=null,!n||i&&n!==i||n.unsubscribe()}}else this.connection=null},e}(s.Subscriber))},2164:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1987),o=i(1847),s=i(1690),u=i(1691);e.onErrorResumeNext=function(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return 1===t.length&&o.isArray(t[0])&&(t=t[0]),function(e){return e.lift(new c(t))}},e.onErrorResumeNextStatic=function(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];var i=null;return 1===t.length&&o.isArray(t[0])&&(t=t[0]),i=t.shift(),new r.FromObservable(i,null).lift(new c(t))};var c=function(){function t(t){this.nextSources=t}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.nextSources))},t}(),a=function(t){function e(e,i){t.call(this,e),this.destination=e,this.nextSources=i}return n(e,t),e.prototype.notifyError=function(t,e){this.subscribeToNextSource()},e.prototype.notifyComplete=function(t){this.subscribeToNextSource()},e.prototype._error=function(t){this.subscribeToNextSource()},e.prototype._complete=function(){this.subscribeToNextSource()},e.prototype.subscribeToNextSource=function(){var t=this.nextSources.shift();t?this.add(u.subscribeToResult(this,t)):this.destination.complete()},e}(s.OuterSubscriber)},2165:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1686);e.pairwise=function(){return function(t){return t.lift(new o)}};var o=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new s(t))},t}(),s=function(t){function e(e){t.call(this,e),this.hasPrev=!1}return n(e,t),e.prototype._next=function(t){this.hasPrev?this.destination.next([this.prev,t]):this.hasPrev=!0,this.prev=t},e}(r.Subscriber)},2166:function(t,e,i){"use strict";var n=i(2167),r=i(1993);e.partition=function(t,e){return function(i){return[r.filter(t,e)(i),r.filter(n.not(t,e))(i)]}}},2167:function(t,e,i){"use strict";e.not=function(t,e){function i(){return!i.pred.apply(i.thisArg,arguments)}return i.pred=t,i.thisArg=e,i}},2168:function(t,e,i){"use strict";var n=i(1926);function r(t,e){return function(i){for(var n=i,r=0;r<e;r++){var o=n[t[r]];if(void 0===o)return;n=o}return n}}e.pluck=function(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];var i=t.length;if(0===i)throw new Error("list of properties cannot be empty.");return function(e){return n.map(r(t,i))(e)}}},2169:function(t,e,i){"use strict";var n=i(1694),r=i(1858);e.publish=function(t){return t?r.multicast((function(){return new n.Subject}),t):r.multicast(new n.Subject)}},2170:function(t,e,i){"use strict";var n=i(2171),r=i(1858);e.publishBehavior=function(t){return function(e){return r.multicast(new n.BehaviorSubject(t))(e)}}},2171:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1694),o=i(1919),s=function(t){function e(e){t.call(this),this._value=e}return n(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),e.prototype._subscribe=function(e){var i=t.prototype._subscribe.call(this,e);return i&&!i.closed&&e.next(this._value),i},e.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new o.ObjectUnsubscribedError;return this._value},e.prototype.next=function(e){t.prototype.next.call(this,this._value=e)},e}(r.Subject);e.BehaviorSubject=s},2172:function(t,e,i){"use strict";var n=i(2173),r=i(1858);e.publishLast=function(){return function(t){return r.multicast(new n.AsyncSubject)(t)}}},2173:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1694),o=i(1699),s=function(t){function e(){t.apply(this,arguments),this.value=null,this.hasNext=!1,this.hasCompleted=!1}return n(e,t),e.prototype._subscribe=function(e){return this.hasError?(e.error(this.thrownError),o.Subscription.EMPTY):this.hasCompleted&&this.hasNext?(e.next(this.value),e.complete(),o.Subscription.EMPTY):t.prototype._subscribe.call(this,e)},e.prototype.next=function(t){this.hasCompleted||(this.value=t,this.hasNext=!0)},e.prototype.error=function(e){this.hasCompleted||t.prototype.error.call(this,e)},e.prototype.complete=function(){this.hasCompleted=!0,this.hasNext&&t.prototype.next.call(this,this.value),t.prototype.complete.call(this)},e}(r.Subject);e.AsyncSubject=s},2174:function(t,e,i){"use strict";var n=i(1998),r=i(1858);e.publishReplay=function(t,e,i,o){i&&"function"!=typeof i&&(o=i);var s="function"==typeof i?i:void 0,u=new n.ReplaySubject(t,e,o);return function(t){return r.multicast((function(){return u}),s)(t)}}},2175:function(t,e,i){"use strict";var n=i(2176),r=i(2177);e.queue=new r.QueueScheduler(n.QueueAction)},2176:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=function(t){function e(e,i){t.call(this,e,i),this.scheduler=e,this.work=i}return n(e,t),e.prototype.schedule=function(e,i){return void 0===i&&(i=0),i>0?t.prototype.schedule.call(this,e,i):(this.delay=i,this.state=e,this.scheduler.flush(this),this)},e.prototype.execute=function(e,i){return i>0||this.closed?t.prototype.execute.call(this,e,i):this._execute(e,i)},e.prototype.requestAsyncId=function(e,i,n){return void 0===n&&(n=0),null!==n&&n>0||null===n&&this.delay>0?t.prototype.requestAsyncId.call(this,e,i,n):e.flush(this)},e}(i(1983).AsyncAction);e.QueueAction=r},2177:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=function(t){function e(){t.apply(this,arguments)}return n(e,t),e}(i(1984).AsyncScheduler);e.QueueScheduler=r},2178:function(t,e,i){"use strict";var n=i(1847),r=i(2179);e.race=function(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return function(e){return 1===t.length&&n.isArray(t[0])&&(t=t[0]),e.lift.call(r.race.apply(void 0,[e].concat(t)))}}},2179:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1847),o=i(1854),s=i(1690),u=i(1691);e.race=function(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];if(1===t.length){if(!r.isArray(t[0]))return t[0];t=t[0]}return new o.ArrayObservable(t).lift(new c)};var c=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new a(t))},t}();e.RaceOperator=c;var a=function(t){function e(e){t.call(this,e),this.hasFirst=!1,this.observables=[],this.subscriptions=[]}return n(e,t),e.prototype._next=function(t){this.observables.push(t)},e.prototype._complete=function(){var t=this.observables,e=t.length;if(0===e)this.destination.complete();else{for(var i=0;i<e&&!this.hasFirst;i++){var n=t[i],r=u.subscribeToResult(this,n,n,i);this.subscriptions&&this.subscriptions.push(r),this.add(r)}this.observables=null}},e.prototype.notifyNext=function(t,e,i,n,r){if(!this.hasFirst){this.hasFirst=!0;for(var o=0;o<this.subscriptions.length;o++)if(o!==i){var s=this.subscriptions[o];s.unsubscribe(),this.remove(s)}this.subscriptions=null}this.destination.next(e)},e}(s.OuterSubscriber);e.RaceSubscriber=a},2180:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1686),o=i(1857);e.repeat=function(t){return void 0===t&&(t=-1),function(e){return 0===t?new o.EmptyObservable:t<0?e.lift(new s(-1,e)):e.lift(new s(t-1,e))}};var s=function(){function t(t,e){this.count=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.count,this.source))},t}(),u=function(t){function e(e,i,n){t.call(this,e),this.count=i,this.source=n}return n(e,t),e.prototype.complete=function(){if(!this.isStopped){var e=this.source,i=this.count;if(0===i)return t.prototype.complete.call(this);i>-1&&(this.count=i-1),e.subscribe(this._unsubscribeAndRecycle())}},e}(r.Subscriber)},2181:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1694),o=i(1706),s=i(1702),u=i(1690),c=i(1691);e.repeatWhen=function(t){return function(e){return e.lift(new a(t))}};var a=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.notifier,e))},t}(),l=function(t){function e(e,i,n){t.call(this,e),this.notifier=i,this.source=n,this.sourceIsBeingSubscribedTo=!0}return n(e,t),e.prototype.notifyNext=function(t,e,i,n,r){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)},e.prototype.notifyComplete=function(e){if(!1===this.sourceIsBeingSubscribedTo)return t.prototype.complete.call(this)},e.prototype.complete=function(){if(this.sourceIsBeingSubscribedTo=!1,!this.isStopped){if(this.retries||this.subscribeToRetries(),!this.retriesSubscription||this.retriesSubscription.closed)return t.prototype.complete.call(this);this._unsubscribeAndRecycle(),this.notifications.next()}},e.prototype._unsubscribe=function(){var t=this.notifications,e=this.retriesSubscription;t&&(t.unsubscribe(),this.notifications=null),e&&(e.unsubscribe(),this.retriesSubscription=null),this.retries=null},e.prototype._unsubscribeAndRecycle=function(){var e=this.notifications,i=this.retries,n=this.retriesSubscription;return this.notifications=null,this.retries=null,this.retriesSubscription=null,t.prototype._unsubscribeAndRecycle.call(this),this.notifications=e,this.retries=i,this.retriesSubscription=n,this},e.prototype.subscribeToRetries=function(){this.notifications=new r.Subject;var e=o.tryCatch(this.notifier)(this.notifications);if(e===s.errorObject)return t.prototype.complete.call(this);this.retries=e,this.retriesSubscription=c.subscribeToResult(this,e)},e}(u.OuterSubscriber)},2182:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1686);e.retry=function(t){return void 0===t&&(t=-1),function(e){return e.lift(new o(t,e))}};var o=function(){function t(t,e){this.count=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.count,this.source))},t}(),s=function(t){function e(e,i,n){t.call(this,e),this.count=i,this.source=n}return n(e,t),e.prototype.error=function(e){if(!this.isStopped){var i=this.source,n=this.count;if(0===n)return t.prototype.error.call(this,e);n>-1&&(this.count=n-1),i.subscribe(this._unsubscribeAndRecycle())}},e}(r.Subscriber)},2183:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1694),o=i(1706),s=i(1702),u=i(1690),c=i(1691);e.retryWhen=function(t){return function(e){return e.lift(new a(t,e))}};var a=function(){function t(t,e){this.notifier=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.notifier,this.source))},t}(),l=function(t){function e(e,i,n){t.call(this,e),this.notifier=i,this.source=n}return n(e,t),e.prototype.error=function(e){if(!this.isStopped){var i=this.errors,n=this.retries,u=this.retriesSubscription;if(n)this.errors=null,this.retriesSubscription=null;else{if(i=new r.Subject,(n=o.tryCatch(this.notifier)(i))===s.errorObject)return t.prototype.error.call(this,s.errorObject.e);u=c.subscribeToResult(this,n)}this._unsubscribeAndRecycle(),this.errors=i,this.retries=n,this.retriesSubscription=u,i.next(e)}},e.prototype._unsubscribe=function(){var t=this.errors,e=this.retriesSubscription;t&&(t.unsubscribe(),this.errors=null),e&&(e.unsubscribe(),this.retriesSubscription=null),this.retries=null},e.prototype.notifyNext=function(t,e,i,n,r){var o=this.errors,s=this.retries,u=this.retriesSubscription;this.errors=null,this.retries=null,this.retriesSubscription=null,this._unsubscribeAndRecycle(),this.errors=o,this.retries=s,this.retriesSubscription=u,this.source.subscribe(this)},e}(u.OuterSubscriber)},2184:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1690),o=i(1691);e.sample=function(t){return function(e){return e.lift(new s(t))}};var s=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){var i=new u(t),n=e.subscribe(i);return n.add(o.subscribeToResult(i,this.notifier)),n},t}(),u=function(t){function e(){t.apply(this,arguments),this.hasValue=!1}return n(e,t),e.prototype._next=function(t){this.value=t,this.hasValue=!0},e.prototype.notifyNext=function(t,e,i,n,r){this.emitValue()},e.prototype.notifyComplete=function(){this.emitValue()},e.prototype.emitValue=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))},e}(r.OuterSubscriber)},2185:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1686),o=i(1703);e.sampleTime=function(t,e){return void 0===e&&(e=o.async),function(i){return i.lift(new s(t,e))}};var s=function(){function t(t,e){this.period=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.period,this.scheduler))},t}(),u=function(t){function e(e,i,n){t.call(this,e),this.period=i,this.scheduler=n,this.hasValue=!1,this.add(n.schedule(c,i,{subscriber:this,period:i}))}return n(e,t),e.prototype._next=function(t){this.lastValue=t,this.hasValue=!0},e.prototype.notifyNext=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))},e}(r.Subscriber);function c(t){var e=t.subscriber,i=t.period;e.notifyNext(),this.schedule(t,i)}},2186:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1686),o=i(1706),s=i(1702);e.sequenceEqual=function(t,e){return function(i){return i.lift(new u(t,e))}};var u=function(){function t(t,e){this.compareTo=t,this.comparor=e}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.compareTo,this.comparor))},t}();e.SequenceEqualOperator=u;var c=function(t){function e(e,i,n){t.call(this,e),this.compareTo=i,this.comparor=n,this._a=[],this._b=[],this._oneComplete=!1,this.add(i.subscribe(new a(e,this)))}return n(e,t),e.prototype._next=function(t){this._oneComplete&&0===this._b.length?this.emit(!1):(this._a.push(t),this.checkValues())},e.prototype._complete=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0},e.prototype.checkValues=function(){for(var t=this._a,e=this._b,i=this.comparor;t.length>0&&e.length>0;){var n=t.shift(),r=e.shift(),u=!1;i?(u=o.tryCatch(i)(n,r))===s.errorObject&&this.destination.error(s.errorObject.e):u=n===r,u||this.emit(!1)}},e.prototype.emit=function(t){var e=this.destination;e.next(t),e.complete()},e.prototype.nextB=function(t){this._oneComplete&&0===this._a.length?this.emit(!1):(this._b.push(t),this.checkValues())},e}(r.Subscriber);e.SequenceEqualSubscriber=c;var a=function(t){function e(e,i){t.call(this,e),this.parent=i}return n(e,t),e.prototype._next=function(t){this.parent.nextB(t)},e.prototype._error=function(t){this.parent.error(t)},e.prototype._complete=function(){this.parent._complete()},e}(r.Subscriber)},2187:function(t,e,i){"use strict";var n=i(1858),r=i(1927),o=i(1694);function s(){return new o.Subject}e.share=function(){return function(t){return r.refCount()(n.multicast(s)(t))}}},2188:function(t,e,i){"use strict";var n=i(1998);e.shareReplay=function(t,e,i){return function(r){return r.lift(function(t,e,i){var r,o,s=0,u=!1,c=!1;return function(a){s++,r&&!u||(u=!1,r=new n.ReplaySubject(t,e,i),o=a.subscribe({next:function(t){r.next(t)},error:function(t){u=!0,r.error(t)},complete:function(){c=!0,r.complete()}}));var l=r.subscribe(this);return function(){s--,l.unsubscribe(),o&&0===s&&c&&o.unsubscribe()}}}(t,e,i))}}},2189:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1686),o=i(1925);e.single=function(t){return function(e){return e.lift(new s(t,e))}};var s=function(){function t(t,e){this.predicate=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.predicate,this.source))},t}(),u=function(t){function e(e,i,n){t.call(this,e),this.predicate=i,this.source=n,this.seenValue=!1,this.index=0}return n(e,t),e.prototype.applySingleValue=function(t){this.seenValue?this.destination.error("Sequence contains more than one element"):(this.seenValue=!0,this.singleValue=t)},e.prototype._next=function(t){var e=this.index++;this.predicate?this.tryNext(t,e):this.applySingleValue(t)},e.prototype.tryNext=function(t,e){try{this.predicate(t,e,this.source)&&this.applySingleValue(t)}catch(t){this.destination.error(t)}},e.prototype._complete=function(){var t=this.destination;this.index>0?(t.next(this.seenValue?this.singleValue:void 0),t.complete()):t.error(new o.EmptyError)},e}(r.Subscriber)},2190:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1686);e.skip=function(t){return function(e){return e.lift(new o(t))}};var o=function(){function t(t){this.total=t}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.total))},t}(),s=function(t){function e(e,i){t.call(this,e),this.total=i,this.count=0}return n(e,t),e.prototype._next=function(t){++this.count>this.total&&this.destination.next(t)},e}(r.Subscriber)},2191:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1686),o=i(1881);e.skipLast=function(t){return function(e){return e.lift(new s(t))}};var s=function(){function t(t){if(this._skipCount=t,this._skipCount<0)throw new o.ArgumentOutOfRangeError}return t.prototype.call=function(t,e){return 0===this._skipCount?e.subscribe(new r.Subscriber(t)):e.subscribe(new u(t,this._skipCount))},t}(),u=function(t){function e(e,i){t.call(this,e),this._skipCount=i,this._count=0,this._ring=new Array(i)}return n(e,t),e.prototype._next=function(t){var e=this._skipCount,i=this._count++;if(i<e)this._ring[i]=t;else{var n=i%e,r=this._ring,o=r[n];r[n]=t,this.destination.next(o)}},e}(r.Subscriber)},2192:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1690),o=i(1691);e.skipUntil=function(t){return function(e){return e.lift(new s(t))}};var s=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.notifier))},t}(),u=function(t){function e(e,i){t.call(this,e),this.hasValue=!1,this.isInnerStopped=!1,this.add(o.subscribeToResult(this,i))}return n(e,t),e.prototype._next=function(e){this.hasValue&&t.prototype._next.call(this,e)},e.prototype._complete=function(){this.isInnerStopped?t.prototype._complete.call(this):this.unsubscribe()},e.prototype.notifyNext=function(t,e,i,n,r){this.hasValue=!0},e.prototype.notifyComplete=function(){this.isInnerStopped=!0,this.isStopped&&t.prototype._complete.call(this)},e}(r.OuterSubscriber)},2193:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1686);e.skipWhile=function(t){return function(e){return e.lift(new o(t))}};var o=function(){function t(t){this.predicate=t}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.predicate))},t}(),s=function(t){function e(e,i){t.call(this,e),this.predicate=i,this.skipping=!0,this.index=0}return n(e,t),e.prototype._next=function(t){var e=this.destination;this.skipping&&this.tryCallPredicate(t),this.skipping||e.next(t)},e.prototype.tryCallPredicate=function(t){try{var e=this.predicate(t,this.index++);this.skipping=Boolean(e)}catch(t){this.destination.error(t)}},e}(r.Subscriber)},2194:function(t,e,i){"use strict";var n=i(1854),r=i(1920),o=i(1857),s=i(1921),u=i(1853);e.startWith=function(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return function(e){var i=t[t.length-1];u.isScheduler(i)?t.pop():i=null;var c=t.length;return 1===c?s.concat(new r.ScalarObservable(t[0],i),e):c>1?s.concat(new n.ArrayObservable(t,i),e):s.concat(new o.EmptyObservable(i),e)}}},2195:function(t,e,i){"use strict";var n=i(1999),r=i(1989);e.switchAll=function(){return n.switchMap(r.identity)}},2196:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1690),o=i(1691);e.switchMapTo=function(t,e){return function(i){return i.lift(new s(t,e))}};var s=function(){function t(t,e){this.observable=t,this.resultSelector=e}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.observable,this.resultSelector))},t}(),u=function(t){function e(e,i,n){t.call(this,e),this.inner=i,this.resultSelector=n,this.index=0}return n(e,t),e.prototype._next=function(t){var e=this.innerSubscription;e&&e.unsubscribe(),this.add(this.innerSubscription=o.subscribeToResult(this,this.inner,t,this.index++))},e.prototype._complete=function(){var e=this.innerSubscription;e&&!e.closed||t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.innerSubscription=null},e.prototype.notifyComplete=function(e){this.remove(e),this.innerSubscription=null,this.isStopped&&t.prototype._complete.call(this)},e.prototype.notifyNext=function(t,e,i,n,r){var o=this.resultSelector,s=this.destination;o?this.tryResultSelector(t,e,i,n):s.next(e)},e.prototype.tryResultSelector=function(t,e,i,n){var r,o=this.resultSelector,s=this.destination;try{r=o(t,e,i,n)}catch(t){return void s.error(t)}s.next(r)},e}(r.OuterSubscriber)},2197:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1686),o=i(1881),s=i(1857);e.take=function(t){return function(e){return 0===t?new s.EmptyObservable:e.lift(new u(t))}};var u=function(){function t(t){if(this.total=t,this.total<0)throw new o.ArgumentOutOfRangeError}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.total))},t}(),c=function(t){function e(e,i){t.call(this,e),this.total=i,this.count=0}return n(e,t),e.prototype._next=function(t){var e=this.total,i=++this.count;i<=e&&(this.destination.next(t),i===e&&(this.destination.complete(),this.unsubscribe()))},e}(r.Subscriber)},2198:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1690),o=i(1691);e.takeUntil=function(t){return function(e){return e.lift(new s(t))}};var s=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.notifier))},t}(),u=function(t){function e(e,i){t.call(this,e),this.notifier=i,this.add(o.subscribeToResult(this,i))}return n(e,t),e.prototype.notifyNext=function(t,e,i,n,r){this.complete()},e.prototype.notifyComplete=function(){},e}(r.OuterSubscriber)},2199:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1686);e.takeWhile=function(t){return function(e){return e.lift(new o(t))}};var o=function(){function t(t){this.predicate=t}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.predicate))},t}(),s=function(t){function e(e,i){t.call(this,e),this.predicate=i,this.index=0}return n(e,t),e.prototype._next=function(t){var e,i=this.destination;try{e=this.predicate(t,this.index++)}catch(t){return void i.error(t)}this.nextOrComplete(t,e)},e.prototype.nextOrComplete=function(t,e){var i=this.destination;Boolean(e)?i.next(t):i.complete()},e}(r.Subscriber)},2200:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1686);e.tap=function(t,e,i){return function(n){return n.lift(new o(t,e,i))}};var o=function(){function t(t,e,i){this.nextOrObserver=t,this.error=e,this.complete=i}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.nextOrObserver,this.error,this.complete))},t}(),s=function(t){function e(e,i,n,o){t.call(this,e);var s=new r.Subscriber(i,n,o);s.syncErrorThrowable=!0,this.add(s),this.safeSubscriber=s}return n(e,t),e.prototype._next=function(t){var e=this.safeSubscriber;e.next(t),e.syncErrorThrown?this.destination.error(e.syncErrorValue):this.destination.next(t)},e.prototype._error=function(t){var e=this.safeSubscriber;e.error(t),e.syncErrorThrown?this.destination.error(e.syncErrorValue):this.destination.error(t)},e.prototype._complete=function(){var t=this.safeSubscriber;t.complete(),t.syncErrorThrown?this.destination.error(t.syncErrorValue):this.destination.complete()},e}(r.Subscriber)},2201:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1686),o=i(1703),s=i(2e3);e.throttleTime=function(t,e,i){return void 0===e&&(e=o.async),void 0===i&&(i=s.defaultThrottleConfig),function(n){return n.lift(new u(t,e,i.leading,i.trailing))}};var u=function(){function t(t,e,i,n){this.duration=t,this.scheduler=e,this.leading=i,this.trailing=n}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.duration,this.scheduler,this.leading,this.trailing))},t}(),c=function(t){function e(e,i,n,r,o){t.call(this,e),this.duration=i,this.scheduler=n,this.leading=r,this.trailing=o,this._hasTrailingValue=!1,this._trailingValue=null}return n(e,t),e.prototype._next=function(t){this.throttled?this.trailing&&(this._trailingValue=t,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(a,this.duration,{subscriber:this})),this.leading&&this.destination.next(t))},e.prototype.clearThrottle=function(){var t=this.throttled;t&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),t.unsubscribe(),this.remove(t),this.throttled=null)},e}(r.Subscriber);function a(t){t.subscriber.clearThrottle()}},2202:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1686),o=i(1703);e.timeInterval=function(t){return void 0===t&&(t=o.async),function(e){return e.lift(new u(t))}};var s=function(t,e){this.value=t,this.interval=e};e.TimeInterval=s;var u=function(){function t(t){this.scheduler=t}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.scheduler))},t}(),c=function(t){function e(e,i){t.call(this,e),this.scheduler=i,this.lastTime=0,this.lastTime=i.now()}return n(e,t),e.prototype._next=function(t){var e=this.scheduler.now(),i=e-this.lastTime;this.lastTime=e,this.destination.next(new s(t,i))},e}(r.Subscriber)},2203:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1703),o=i(1879),s=i(1686),u=i(2204);e.timeout=function(t,e){void 0===e&&(e=r.async);var i=o.isDate(t),n=i?+t-e.now():Math.abs(t);return function(t){return t.lift(new c(n,i,e,new u.TimeoutError))}};var c=function(){function t(t,e,i,n){this.waitFor=t,this.absoluteTimeout=e,this.scheduler=i,this.errorInstance=n}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.absoluteTimeout,this.waitFor,this.scheduler,this.errorInstance))},t}(),a=function(t){function e(e,i,n,r,o){t.call(this,e),this.absoluteTimeout=i,this.waitFor=n,this.scheduler=r,this.errorInstance=o,this.action=null,this.scheduleTimeout()}return n(e,t),e.dispatchTimeout=function(t){t.error(t.errorInstance)},e.prototype.scheduleTimeout=function(){var t=this.action;t?this.action=t.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(e.dispatchTimeout,this.waitFor,this))},e.prototype._next=function(e){this.absoluteTimeout||this.scheduleTimeout(),t.prototype._next.call(this,e)},e.prototype._unsubscribe=function(){this.action=null,this.scheduler=null,this.errorInstance=null},e}(s.Subscriber)},2204:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=function(t){function e(){var e=t.call(this,"Timeout has occurred");this.name=e.name="TimeoutError",this.stack=e.stack,this.message=e.message}return n(e,t),e}(Error);e.TimeoutError=r},2205:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1703),o=i(1879),s=i(1690),u=i(1691);e.timeoutWith=function(t,e,i){return void 0===i&&(i=r.async),function(n){var r=o.isDate(t),s=r?+t-i.now():Math.abs(t);return n.lift(new c(s,r,e,i))}};var c=function(){function t(t,e,i,n){this.waitFor=t,this.absoluteTimeout=e,this.withObservable=i,this.scheduler=n}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))},t}(),a=function(t){function e(e,i,n,r,o){t.call(this,e),this.absoluteTimeout=i,this.waitFor=n,this.withObservable=r,this.scheduler=o,this.action=null,this.scheduleTimeout()}return n(e,t),e.dispatchTimeout=function(t){var e=t.withObservable;t._unsubscribeAndRecycle(),t.add(u.subscribeToResult(t,e))},e.prototype.scheduleTimeout=function(){var t=this.action;t?this.action=t.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(e.dispatchTimeout,this.waitFor,this))},e.prototype._next=function(e){this.absoluteTimeout||this.scheduleTimeout(),t.prototype._next.call(this,e)},e.prototype._unsubscribe=function(){this.action=null,this.scheduler=null,this.withObservable=null},e}(s.OuterSubscriber)},2206:function(t,e,i){"use strict";var n=i(1703),r=i(1926);e.timestamp=function(t){return void 0===t&&(t=n.async),r.map((function(e){return new o(e,t.now())}))};var o=function(t,e){this.value=t,this.timestamp=e};e.Timestamp=o},2207:function(t,e,i){"use strict";var n=i(1882);function r(t,e,i){return 0===i?[e]:(t.push(e),t)}e.toArray=function(){return n.reduce(r,[])}},2208:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1694),o=i(1690),s=i(1691);e.window=function(t){return function(e){return e.lift(new u(t))}};var u=function(){function t(t){this.windowBoundaries=t}return t.prototype.call=function(t,e){var i=new c(t),n=e.subscribe(i);return n.closed||i.add(s.subscribeToResult(i,this.windowBoundaries)),n},t}(),c=function(t){function e(e){t.call(this,e),this.window=new r.Subject,e.next(this.window)}return n(e,t),e.prototype.notifyNext=function(t,e,i,n,r){this.openWindow()},e.prototype.notifyError=function(t,e){this._error(t)},e.prototype.notifyComplete=function(t){this._complete()},e.prototype._next=function(t){this.window.next(t)},e.prototype._error=function(t){this.window.error(t),this.destination.error(t)},e.prototype._complete=function(){this.window.complete(),this.destination.complete()},e.prototype._unsubscribe=function(){this.window=null},e.prototype.openWindow=function(){var t=this.window;t&&t.complete();var e=this.destination,i=this.window=new r.Subject;e.next(i)},e}(o.OuterSubscriber)},2209:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1686),o=i(1694);e.windowCount=function(t,e){return void 0===e&&(e=0),function(i){return i.lift(new s(t,e))}};var s=function(){function t(t,e){this.windowSize=t,this.startWindowEvery=e}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.windowSize,this.startWindowEvery))},t}(),u=function(t){function e(e,i,n){t.call(this,e),this.destination=e,this.windowSize=i,this.startWindowEvery=n,this.windows=[new o.Subject],this.count=0,e.next(this.windows[0])}return n(e,t),e.prototype._next=function(t){for(var e=this.startWindowEvery>0?this.startWindowEvery:this.windowSize,i=this.destination,n=this.windowSize,r=this.windows,s=r.length,u=0;u<s&&!this.closed;u++)r[u].next(t);var c=this.count-n+1;if(c>=0&&c%e==0&&!this.closed&&r.shift().complete(),++this.count%e==0&&!this.closed){var a=new o.Subject;r.push(a),i.next(a)}},e.prototype._error=function(t){var e=this.windows;if(e)for(;e.length>0&&!this.closed;)e.shift().error(t);this.destination.error(t)},e.prototype._complete=function(){var t=this.windows;if(t)for(;t.length>0&&!this.closed;)t.shift().complete();this.destination.complete()},e.prototype._unsubscribe=function(){this.count=0,this.windows=null},e}(r.Subscriber)},2210:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1694),o=i(1703),s=i(1686),u=i(1985),c=i(1853);e.windowTime=function(t){var e=o.async,i=null,n=Number.POSITIVE_INFINITY;return c.isScheduler(arguments[3])&&(e=arguments[3]),c.isScheduler(arguments[2])?e=arguments[2]:u.isNumeric(arguments[2])&&(n=arguments[2]),c.isScheduler(arguments[1])?e=arguments[1]:u.isNumeric(arguments[1])&&(i=arguments[1]),function(r){return r.lift(new a(t,i,n,e))}};var a=function(){function t(t,e,i,n){this.windowTimeSpan=t,this.windowCreationInterval=e,this.maxWindowSize=i,this.scheduler=n}return t.prototype.call=function(t,e){return e.subscribe(new h(t,this.windowTimeSpan,this.windowCreationInterval,this.maxWindowSize,this.scheduler))},t}(),l=function(t){function e(){t.apply(this,arguments),this._numberOfNextedValues=0}return n(e,t),e.prototype.next=function(e){this._numberOfNextedValues++,t.prototype.next.call(this,e)},Object.defineProperty(e.prototype,"numberOfNextedValues",{get:function(){return this._numberOfNextedValues},enumerable:!0,configurable:!0}),e}(r.Subject),h=function(t){function e(e,i,n,r,o){t.call(this,e),this.destination=e,this.windowTimeSpan=i,this.windowCreationInterval=n,this.maxWindowSize=r,this.scheduler=o,this.windows=[];var s=this.openWindow();if(null!==n&&n>=0){var u={subscriber:this,window:s,context:null},c={windowTimeSpan:i,windowCreationInterval:n,subscriber:this,scheduler:o};this.add(o.schedule(d,i,u)),this.add(o.schedule(f,n,c))}else{var a={subscriber:this,window:s,windowTimeSpan:i};this.add(o.schedule(p,i,a))}}return n(e,t),e.prototype._next=function(t){for(var e=this.windows,i=e.length,n=0;n<i;n++){var r=e[n];r.closed||(r.next(t),r.numberOfNextedValues>=this.maxWindowSize&&this.closeWindow(r))}},e.prototype._error=function(t){for(var e=this.windows;e.length>0;)e.shift().error(t);this.destination.error(t)},e.prototype._complete=function(){for(var t=this.windows;t.length>0;){var e=t.shift();e.closed||e.complete()}this.destination.complete()},e.prototype.openWindow=function(){var t=new l;return this.windows.push(t),this.destination.next(t),t},e.prototype.closeWindow=function(t){t.complete();var e=this.windows;e.splice(e.indexOf(t),1)},e}(s.Subscriber);function p(t){var e=t.subscriber,i=t.windowTimeSpan,n=t.window;n&&e.closeWindow(n),t.window=e.openWindow(),this.schedule(t,i)}function f(t){var e=t.windowTimeSpan,i=t.subscriber,n=t.scheduler,r=t.windowCreationInterval,o=i.openWindow(),s={action:this,subscription:null},u={subscriber:i,window:o,context:s};s.subscription=n.schedule(d,e,u),this.add(s.subscription),this.schedule(t,r)}function d(t){var e=t.subscriber,i=t.window,n=t.context;n&&n.action&&n.subscription&&n.action.remove(n.subscription),e.closeWindow(i)}},2211:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1694),o=i(1699),s=i(1706),u=i(1702),c=i(1690),a=i(1691);e.windowToggle=function(t,e){return function(i){return i.lift(new l(t,e))}};var l=function(){function t(t,e){this.openings=t,this.closingSelector=e}return t.prototype.call=function(t,e){return e.subscribe(new h(t,this.openings,this.closingSelector))},t}(),h=function(t){function e(e,i,n){t.call(this,e),this.openings=i,this.closingSelector=n,this.contexts=[],this.add(this.openSubscription=a.subscribeToResult(this,i,i))}return n(e,t),e.prototype._next=function(t){var e=this.contexts;if(e)for(var i=e.length,n=0;n<i;n++)e[n].window.next(t)},e.prototype._error=function(e){var i=this.contexts;if(this.contexts=null,i)for(var n=i.length,r=-1;++r<n;){var o=i[r];o.window.error(e),o.subscription.unsubscribe()}t.prototype._error.call(this,e)},e.prototype._complete=function(){var e=this.contexts;if(this.contexts=null,e)for(var i=e.length,n=-1;++n<i;){var r=e[n];r.window.complete(),r.subscription.unsubscribe()}t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.contexts;if(this.contexts=null,t)for(var e=t.length,i=-1;++i<e;){var n=t[i];n.window.unsubscribe(),n.subscription.unsubscribe()}},e.prototype.notifyNext=function(t,e,i,n,c){if(t===this.openings){var l=this.closingSelector,h=s.tryCatch(l)(e);if(h===u.errorObject)return this.error(u.errorObject.e);var p=new r.Subject,f=new o.Subscription,d={window:p,subscription:f};this.contexts.push(d);var b=a.subscribeToResult(this,h,d);b.closed?this.closeWindow(this.contexts.length-1):(b.context=d,f.add(b)),this.destination.next(p)}else this.closeWindow(this.contexts.indexOf(t))},e.prototype.notifyError=function(t){this.error(t)},e.prototype.notifyComplete=function(t){t!==this.openSubscription&&this.closeWindow(this.contexts.indexOf(t.context))},e.prototype.closeWindow=function(t){if(-1!==t){var e=this.contexts,i=e[t],n=i.window,r=i.subscription;e.splice(t,1),n.complete(),r.unsubscribe()}},e}(c.OuterSubscriber)},2212:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1694),o=i(1706),s=i(1702),u=i(1690),c=i(1691);e.windowWhen=function(t){return function(e){return e.lift(new a(t))}};var a=function(){function t(t){this.closingSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.closingSelector))},t}(),l=function(t){function e(e,i){t.call(this,e),this.destination=e,this.closingSelector=i,this.openWindow()}return n(e,t),e.prototype.notifyNext=function(t,e,i,n,r){this.openWindow(r)},e.prototype.notifyError=function(t,e){this._error(t)},e.prototype.notifyComplete=function(t){this.openWindow(t)},e.prototype._next=function(t){this.window.next(t)},e.prototype._error=function(t){this.window.error(t),this.destination.error(t),this.unsubscribeClosingNotification()},e.prototype._complete=function(){this.window.complete(),this.destination.complete(),this.unsubscribeClosingNotification()},e.prototype.unsubscribeClosingNotification=function(){this.closingNotification&&this.closingNotification.unsubscribe()},e.prototype.openWindow=function(t){void 0===t&&(t=null),t&&(this.remove(t),t.unsubscribe());var e=this.window;e&&e.complete();var i=this.window=new r.Subject;this.destination.next(i);var n=o.tryCatch(this.closingSelector)();if(n===s.errorObject){var u=s.errorObject.e;this.destination.error(u),this.window.error(u)}else this.add(this.closingNotification=c.subscribeToResult(this,n))},e}(u.OuterSubscriber)},2213:function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=i(1690),o=i(1691);e.withLatestFrom=function(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return function(e){var i;"function"==typeof t[t.length-1]&&(i=t.pop());var n=t;return e.lift(new s(n,i))}};var s=function(){function t(t,e){this.observables=t,this.project=e}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.observables,this.project))},t}(),u=function(t){function e(e,i,n){t.call(this,e),this.observables=i,this.project=n,this.toRespond=[];var r=i.length;this.values=new Array(r);for(var s=0;s<r;s++)this.toRespond.push(s);for(s=0;s<r;s++){var u=i[s];this.add(o.subscribeToResult(this,u,u,s))}}return n(e,t),e.prototype.notifyNext=function(t,e,i,n,r){this.values[i]=e;var o=this.toRespond;if(o.length>0){var s=o.indexOf(i);-1!==s&&o.splice(s,1)}},e.prototype.notifyComplete=function(){},e.prototype._next=function(t){if(0===this.toRespond.length){var e=[t].concat(this.values);this.project?this._tryProject(e):this.destination.next(e)}},e.prototype._tryProject=function(t){var e;try{e=this.project.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(r.OuterSubscriber)},2214:function(t,e,i){"use strict";var n=i(2001);e.zipAll=function(t){return function(e){return e.lift(new n.ZipOperator(t))}}},2215:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n={update:function(){if("undefined"!=typeof window&&"function"==typeof window.addEventListener){var t=!1,e=Object.defineProperty({},"passive",{get:function(){t=!0}}),i=function(){};window.addEventListener("testPassiveEventSupport",i,e),window.removeEventListener("testPassiveEventSupport",i,e),n.hasSupport=t}}};n.update(),e.default=n}}]);
|