summaryrefslogtreecommitdiff
path: root/blockly/accessible/libs/Rx.umd.min.js
blob: 8187174095ab5f2c3043b23fbfc56185057ea596 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
(function(t){"object"===typeof exports&&"undefined"!==typeof module?module.exports=t():"function"===typeof define&&define.amd?define([],t):("undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof self?self:this).Rx=t()})(function(){return function a(b,e,h){function k(f,d){if(!e[f]){if(!b[f]){var c="function"==typeof require&&require;if(!d&&c)return c(f,!0);if(m)return m(f,!0);c=Error("Cannot find module '"+f+"'");throw c.code="MODULE_NOT_FOUND",c;}c=e[f]={exports:{}};
b[f][0].call(c.exports,function(a){var c=b[f][1][a];return k(c?c:a)},c,c.exports,a,b,e,h)}return e[f].exports}for(var m="function"==typeof require&&require,l=0;l<h.length;l++)k(h[l]);return k}({1:[function(a,b,e){var h=this&&this.__extends||function(a,b){function l(){this.constructor=a}for(var f in b)b.hasOwnProperty(f)&&(a[f]=b[f]);a.prototype=null===b?Object.create(b):(l.prototype=b.prototype,new l)};a=function(a){function b(l,f,d){a.call(this);this.parent=l;this.outerValue=f;this.outerIndex=d;
this.index=0}h(b,a);b.prototype._next=function(a){var f=this.index++;this.parent.notifyNext(this.outerValue,a,this.outerIndex,f)};b.prototype._error=function(a){this.parent.notifyError(a,this)};b.prototype._complete=function(){this.parent.notifyComplete(this)};return b}(a("./Subscriber").Subscriber);e.InnerSubscriber=a},{"./Subscriber":7}],2:[function(a,b,e){var h=a("./Observable");a=function(){function a(b,l,f){this.kind=b;this.value=l;this.exception=f;this.hasValue="N"===b}a.prototype.observe=function(a){switch(this.kind){case "N":return a.next(this.value);
case "E":return a.error(this.exception);case "C":return a.complete()}};a.prototype.do=function(a,b,f){switch(this.kind){case "N":return a(this.value);case "E":return b(this.exception);case "C":return f()}};a.prototype.accept=function(a,b,f){return a&&"function"===typeof a.next?this.observe(a):this.do(a,b,f)};a.prototype.toObservable=function(){switch(this.kind){case "N":return h.Observable.of(this.value);case "E":return h.Observable.throw(this.exception);case "C":return h.Observable.empty()}};a.createNext=
function(b){return"undefined"!==typeof b?new a("N",b):this.undefinedValueNotification};a.createError=function(b){return new a("E",void 0,b)};a.createComplete=function(){return this.completeNotification};a.completeNotification=new a("C");a.undefinedValueNotification=new a("N",void 0);return a}();e.Notification=a},{"./Observable":3}],3:[function(a,b,e){var h=a("./Subscriber"),k=a("./util/root"),m=a("./util/SymbolShim"),l=a("./symbol/rxSubscriber");a=function(){function a(d){this._isScalar=!1;d&&(this._subscribe=
d)}a.prototype.lift=function(d){var c=new a;c.source=this;c.operator=d;return c};a.prototype[m.SymbolShim.observable]=function(){return this};a.prototype.subscribe=function(a,c,g){a=a&&"object"===typeof a?a instanceof h.Subscriber?a:a[l.rxSubscriber]?a[l.rxSubscriber]():new h.Subscriber(a):h.Subscriber.create(a,c,g);a.add(this._subscribe(a));return a};a.prototype.forEach=function(a,c,g){g||(k.root.Rx&&k.root.Rx.config&&k.root.Rx.config.Promise?g=k.root.Rx.config.Promise:k.root.Promise&&(g=k.root.Promise));
if(!g)throw Error("no Promise impl found");var n;c?(n=function q(a){return q.next.call(q.thisArg,a)},n.thisArg=c,n.next=a):n=a;a=function q(a,c){q.source.subscribe(q.nextHandler,c,a)};a.source=this;a.nextHandler=n;return new g(a)};a.prototype._subscribe=function(a){return this.source._subscribe(this.operator.call(a))};a.create=function(d){return new a(d)};return a}();e.Observable=a},{"./Subscriber":7,"./symbol/rxSubscriber":221,"./util/SymbolShim":229,"./util/root":238}],4:[function(a,b,e){var h=
this&&this.__extends||function(a,b){function l(){this.constructor=a}for(var f in b)b.hasOwnProperty(f)&&(a[f]=b[f]);a.prototype=null===b?Object.create(b):(l.prototype=b.prototype,new l)};a=function(a){function b(){a.apply(this,arguments)}h(b,a);b.prototype.notifyComplete=function(a){this.destination.complete()};b.prototype.notifyNext=function(a,f,d,c){this.destination.next(f)};b.prototype.notifyError=function(a,f){this.destination.error(a)};return b}(a("./Subscriber").Subscriber);e.OuterSubscriber=
a},{"./Subscriber":7}],5:[function(a,b,e){b=a("./Subject");e.Subject=b.Subject;b=a("./Observable");e.Observable=b.Observable;a("./add/operator/combineLatest-static");a("./add/operator/concat-static");a("./add/operator/merge-static");a("./add/observable/bindCallback");a("./add/observable/defer");a("./add/observable/empty");a("./add/observable/forkJoin");a("./add/observable/from");a("./add/observable/fromArray");a("./add/observable/fromEvent");a("./add/observable/fromEventPattern");a("./add/observable/fromPromise");
a("./add/observable/interval");a("./add/observable/never");a("./add/observable/range");a("./add/observable/throw");a("./add/observable/timer");a("./add/operator/zip-static");a("./add/operator/buffer");a("./add/operator/bufferCount");a("./add/operator/bufferTime");a("./add/operator/bufferToggle");a("./add/operator/bufferWhen");a("./add/operator/catch");a("./add/operator/combineAll");a("./add/operator/combineLatest");a("./add/operator/concat");a("./add/operator/concatAll");a("./add/operator/concatMap");
a("./add/operator/concatMapTo");a("./add/operator/count");a("./add/operator/dematerialize");a("./add/operator/debounce");a("./add/operator/debounceTime");a("./add/operator/defaultIfEmpty");a("./add/operator/delay");a("./add/operator/distinctUntilChanged");a("./add/operator/do");a("./add/operator/expand");a("./add/operator/filter");a("./add/operator/finally");a("./add/operator/first");a("./add/operator/groupBy");a("./add/operator/ignoreElements");a("./add/operator/every");a("./add/operator/last");
a("./add/operator/map");a("./add/operator/mapTo");a("./add/operator/materialize");a("./add/operator/merge");a("./add/operator/mergeAll");a("./add/operator/mergeMap");a("./add/operator/mergeMapTo");a("./add/operator/multicast");a("./add/operator/observeOn");a("./add/operator/partition");a("./add/operator/publish");a("./add/operator/publishBehavior");a("./add/operator/publishReplay");a("./add/operator/publishLast");a("./add/operator/reduce");a("./add/operator/repeat");a("./add/operator/retry");a("./add/operator/retryWhen");
a("./add/operator/sample");a("./add/operator/sampleTime");a("./add/operator/scan");a("./add/operator/share");a("./add/operator/single");a("./add/operator/skip");a("./add/operator/skipUntil");a("./add/operator/skipWhile");a("./add/operator/startWith");a("./add/operator/subscribeOn");a("./add/operator/switch");a("./add/operator/switchMap");a("./add/operator/switchMapTo");a("./add/operator/take");a("./add/operator/takeUntil");a("./add/operator/takeWhile");a("./add/operator/throttle");a("./add/operator/throttleTime");
a("./add/operator/timeout");a("./add/operator/timeoutWith");a("./add/operator/toArray");a("./add/operator/toPromise");a("./add/operator/window");a("./add/operator/windowCount");a("./add/operator/windowTime");a("./add/operator/windowToggle");a("./add/operator/windowWhen");a("./add/operator/withLatestFrom");a("./add/operator/zip");a("./add/operator/zipAll");b=a("./Subscription");e.Subscription=b.Subscription;b=a("./Subscriber");e.Subscriber=b.Subscriber;b=a("./subject/AsyncSubject");e.AsyncSubject=
b.AsyncSubject;b=a("./subject/ReplaySubject");e.ReplaySubject=b.ReplaySubject;b=a("./subject/BehaviorSubject");e.BehaviorSubject=b.BehaviorSubject;b=a("./observable/ConnectableObservable");e.ConnectableObservable=b.ConnectableObservable;b=a("./Notification");e.Notification=b.Notification;b=a("./util/EmptyError");e.EmptyError=b.EmptyError;b=a("./util/ArgumentOutOfRangeError");e.ArgumentOutOfRangeError=b.ArgumentOutOfRangeError;b=a("./util/ObjectUnsubscribedError");e.ObjectUnsubscribedError=b.ObjectUnsubscribedError;
b=a("./scheduler/asap");var h=a("./scheduler/queue");a=a("./symbol/rxSubscriber");e.Scheduler={asap:b.asap,queue:h.queue};e.Symbol={rxSubscriber:a.rxSubscriber}},{"./Notification":2,"./Observable":3,"./Subject":6,"./Subscriber":7,"./Subscription":8,"./add/observable/bindCallback":9,"./add/observable/defer":10,"./add/observable/empty":11,"./add/observable/forkJoin":12,"./add/observable/from":13,"./add/observable/fromArray":14,"./add/observable/fromEvent":15,"./add/observable/fromEventPattern":16,"./add/observable/fromPromise":17,
"./add/observable/interval":18,"./add/observable/never":19,"./add/observable/range":20,"./add/observable/throw":21,"./add/observable/timer":22,"./add/operator/buffer":23,"./add/operator/bufferCount":24,"./add/operator/bufferTime":25,"./add/operator/bufferToggle":26,"./add/operator/bufferWhen":27,"./add/operator/catch":28,"./add/operator/combineAll":29,"./add/operator/combineLatest":31,"./add/operator/combineLatest-static":30,"./add/operator/concat":33,"./add/operator/concat-static":32,"./add/operator/concatAll":34,
"./add/operator/concatMap":35,"./add/operator/concatMapTo":36,"./add/operator/count":37,"./add/operator/debounce":38,"./add/operator/debounceTime":39,"./add/operator/defaultIfEmpty":40,"./add/operator/delay":41,"./add/operator/dematerialize":42,"./add/operator/distinctUntilChanged":43,"./add/operator/do":44,"./add/operator/every":45,"./add/operator/expand":46,"./add/operator/filter":47,"./add/operator/finally":48,"./add/operator/first":49,"./add/operator/groupBy":50,"./add/operator/ignoreElements":51,
"./add/operator/last":52,"./add/operator/map":53,"./add/operator/mapTo":54,"./add/operator/materialize":55,"./add/operator/merge":57,"./add/operator/merge-static":56,"./add/operator/mergeAll":58,"./add/operator/mergeMap":59,"./add/operator/mergeMapTo":60,"./add/operator/multicast":61,"./add/operator/observeOn":62,"./add/operator/partition":63,"./add/operator/publish":64,"./add/operator/publishBehavior":65,"./add/operator/publishLast":66,"./add/operator/publishReplay":67,"./add/operator/reduce":68,
"./add/operator/repeat":69,"./add/operator/retry":70,"./add/operator/retryWhen":71,"./add/operator/sample":72,"./add/operator/sampleTime":73,"./add/operator/scan":74,"./add/operator/share":75,"./add/operator/single":76,"./add/operator/skip":77,"./add/operator/skipUntil":78,"./add/operator/skipWhile":79,"./add/operator/startWith":80,"./add/operator/subscribeOn":81,"./add/operator/switch":82,"./add/operator/switchMap":83,"./add/operator/switchMapTo":84,"./add/operator/take":85,"./add/operator/takeUntil":86,
"./add/operator/takeWhile":87,"./add/operator/throttle":88,"./add/operator/throttleTime":89,"./add/operator/timeout":90,"./add/operator/timeoutWith":91,"./add/operator/toArray":92,"./add/operator/toPromise":93,"./add/operator/window":94,"./add/operator/windowCount":95,"./add/operator/windowTime":96,"./add/operator/windowToggle":97,"./add/operator/windowWhen":98,"./add/operator/withLatestFrom":99,"./add/operator/zip":101,"./add/operator/zip-static":100,"./add/operator/zipAll":102,"./observable/ConnectableObservable":103,
"./scheduler/asap":215,"./scheduler/queue":216,"./subject/AsyncSubject":217,"./subject/BehaviorSubject":218,"./subject/ReplaySubject":219,"./symbol/rxSubscriber":221,"./util/ArgumentOutOfRangeError":222,"./util/EmptyError":223,"./util/ObjectUnsubscribedError":228}],6:[function(a,b,e){var h=this&&this.__extends||function(a,c){function g(){this.constructor=a}for(var d in c)c.hasOwnProperty(d)&&(a[d]=c[d]);a.prototype=null===c?Object.create(c):(g.prototype=c.prototype,new g)};b=a("./Observable");var k=
a("./Subscriber"),m=a("./Subscription"),l=a("./subject/SubjectSubscription"),f=a("./symbol/rxSubscriber"),d=m.Subscription.prototype.add,c=m.Subscription.prototype.remove,g=m.Subscription.prototype.unsubscribe,n=k.Subscriber.prototype.next,p=k.Subscriber.prototype.error,q=k.Subscriber.prototype.complete,w=k.Subscriber.prototype._next,x=k.Subscriber.prototype._error,r=k.Subscriber.prototype._complete;a=function(a){function n(){a.apply(this,arguments);this.observers=[];this.completeSignal=this.errorSignal=
this.dispatching=this.isUnsubscribed=!1}h(n,a);n.prototype[f.rxSubscriber]=function(){return this};n.create=function(a,c){return new v(a,c)};n.prototype.lift=function(a){var c=new v(this,this.destination||this);c.operator=a;return c};n.prototype._subscribe=function(a){if(!a.isUnsubscribed)if(this.errorSignal)a.error(this.errorInstance);else if(this.completeSignal)a.complete();else{if(this.isUnsubscribed)throw Error("Cannot subscribe to a disposed Subject.");this.observers.push(a);return new l.SubjectSubscription(this,
a)}};n.prototype.add=function(a){d.call(this,a)};n.prototype.remove=function(a){c.call(this,a)};n.prototype.unsubscribe=function(){this.observers=void 0;g.call(this)};n.prototype.next=function(a){this.isUnsubscribed||(this.dispatching=!0,this._next(a),this.dispatching=!1,this.errorSignal?this.error(this.errorInstance):this.completeSignal&&this.complete())};n.prototype.error=function(a){this.isUnsubscribed||this.completeSignal||(this.errorSignal=!0,this.errorInstance=a,this.dispatching||(this._error(a),
this.unsubscribe()))};n.prototype.complete=function(){this.isUnsubscribed||this.errorSignal||(this.completeSignal=!0,this.dispatching||(this._complete(),this.unsubscribe()))};n.prototype._next=function(a){for(var c=-1,g=this.observers.slice(0),n=g.length;++c<n;)g[c].next(a)};n.prototype._error=function(a){var c=-1,g=this.observers,n=g.length;this.observers=void 0;for(this.isUnsubscribed=!0;++c<n;)g[c].error(a);this.isUnsubscribed=!1};n.prototype._complete=function(){var a=-1,c=this.observers,g=c.length;
this.observers=void 0;for(this.isUnsubscribed=!0;++a<g;)c[a].complete();this.isUnsubscribed=!1};return n}(b.Observable);e.Subject=a;var v=function(a){function c(g,n){a.call(this);this.source=g;this.destination=n}h(c,a);c.prototype._subscribe=function(a){var c=this.operator;return this.source._subscribe.call(this.source,c?c.call(a):a)};c.prototype.next=function(a){n.call(this,a)};c.prototype.error=function(a){p.call(this,a)};c.prototype.complete=function(){q.call(this)};c.prototype._next=function(a){w.call(this,
a)};c.prototype._error=function(a){x.call(this,a)};c.prototype._complete=function(){r.call(this)};return c}(a)},{"./Observable":3,"./Subscriber":7,"./Subscription":8,"./subject/SubjectSubscription":220,"./symbol/rxSubscriber":221}],7:[function(a,b,e){var h=this&&this.__extends||function(a,c){function g(){this.constructor=a}for(var n in c)c.hasOwnProperty(n)&&(a[n]=c[n]);a.prototype=null===c?Object.create(c):(g.prototype=c.prototype,new g)},k=a("./util/noop"),m=a("./util/throwError"),l=a("./util/tryOrOnError");
b=a("./Subscription");var f=a("./symbol/rxSubscriber");a=function(a){function c(g){a.call(this);this.destination=g;this._isUnsubscribed=!1;if(this.destination){var n=g._subscription;n?this._subscription=n:g instanceof c&&(this._subscription=g)}}h(c,a);c.prototype[f.rxSubscriber]=function(){return this};Object.defineProperty(c.prototype,"isUnsubscribed",{get:function(){var a=this._subscription;return a?this._isUnsubscribed||a.isUnsubscribed:this._isUnsubscribed},set:function(a){var c=this._subscription;
c?c.isUnsubscribed=Boolean(a):this._isUnsubscribed=Boolean(a)},enumerable:!0,configurable:!0});c.create=function(a,n,d){var f=new c;f._next="function"===typeof a&&l.tryOrOnError(a)||k.noop;f._error="function"===typeof n&&n||m.throwError;f._complete="function"===typeof d&&d||k.noop;return f};c.prototype.add=function(c){var n=this._subscription;n?n.add(c):a.prototype.add.call(this,c)};c.prototype.remove=function(c){this._subscription?this._subscription.remove(c):a.prototype.remove.call(this,c)};c.prototype.unsubscribe=
function(){this._isUnsubscribed||(this._subscription?this._isUnsubscribed=!0:a.prototype.unsubscribe.call(this))};c.prototype._next=function(a){var c=this.destination;c.next&&c.next(a)};c.prototype._error=function(a){var c=this.destination;c.error&&c.error(a)};c.prototype._complete=function(){var a=this.destination;a.complete&&a.complete()};c.prototype.next=function(a){this.isUnsubscribed||this._next(a)};c.prototype.error=function(a){this.isUnsubscribed||(this._error(a),this.unsubscribe())};c.prototype.complete=
function(){this.isUnsubscribed||(this._complete(),this.unsubscribe())};return c}(b.Subscription);e.Subscriber=a},{"./Subscription":8,"./symbol/rxSubscriber":221,"./util/noop":236,"./util/throwError":240,"./util/tryOrOnError":242}],8:[function(a,b,e){var h=a("./util/noop");a=function(){function a(b){this.isUnsubscribed=!1;b&&(this._unsubscribe=b)}a.prototype._unsubscribe=function(){h.noop()};a.prototype.unsubscribe=function(){if(!this.isUnsubscribed){this.isUnsubscribed=!0;var a=this._unsubscribe,
b=this._subscriptions;this._subscriptions=void 0;a&&a.call(this);if(null!=b)for(var a=-1,f=b.length;++a<f;)b[a].unsubscribe()}};a.prototype.add=function(b){if(b&&b!==this&&b!==a.EMPTY){var l=b;switch(typeof b){case "function":l=new a(b);case "object":if(l.isUnsubscribed||"function"!==typeof l.unsubscribe)break;else this.isUnsubscribed?l.unsubscribe():(this._subscriptions||(this._subscriptions=[])).push(l);break;default:throw Error("Unrecognized subscription "+b+" added to Subscription.");}}};a.prototype.remove=
function(b){if(null!=b&&b!==this&&b!==a.EMPTY){var l=this._subscriptions;l&&(b=l.indexOf(b),-1!==b&&l.splice(b,1))}};a.EMPTY=function(a){a.isUnsubscribed=!0;return a}(new a);return a}();e.Subscription=a},{"./util/noop":236}],9:[function(a,b,e){b=a("../../Observable");a=a("../../observable/bindCallback");b.Observable.bindCallback=a.BoundCallbackObservable.create},{"../../Observable":3,"../../observable/bindCallback":107}],10:[function(a,b,e){b=a("../../Observable");a=a("../../observable/defer");b.Observable.defer=
a.DeferObservable.create},{"../../Observable":3,"../../observable/defer":108}],11:[function(a,b,e){b=a("../../Observable");a=a("../../observable/empty");b.Observable.empty=a.EmptyObservable.create},{"../../Observable":3,"../../observable/empty":109}],12:[function(a,b,e){b=a("../../Observable");a=a("../../observable/forkJoin");b.Observable.forkJoin=a.ForkJoinObservable.create},{"../../Observable":3,"../../observable/forkJoin":110}],13:[function(a,b,e){b=a("../../Observable");a=a("../../observable/from");
b.Observable.from=a.FromObservable.create},{"../../Observable":3,"../../observable/from":111}],14:[function(a,b,e){b=a("../../Observable");a=a("../../observable/fromArray");b.Observable.fromArray=a.ArrayObservable.create;b.Observable.of=a.ArrayObservable.of},{"../../Observable":3,"../../observable/fromArray":112}],15:[function(a,b,e){b=a("../../Observable");a=a("../../observable/fromEvent");b.Observable.fromEvent=a.FromEventObservable.create},{"../../Observable":3,"../../observable/fromEvent":113}],
16:[function(a,b,e){b=a("../../Observable");a=a("../../observable/fromEventPattern");b.Observable.fromEventPattern=a.FromEventPatternObservable.create},{"../../Observable":3,"../../observable/fromEventPattern":114}],17:[function(a,b,e){b=a("../../Observable");a=a("../../observable/fromPromise");b.Observable.fromPromise=a.PromiseObservable.create},{"../../Observable":3,"../../observable/fromPromise":115}],18:[function(a,b,e){b=a("../../Observable");a=a("../../observable/interval");b.Observable.interval=
a.IntervalObservable.create},{"../../Observable":3,"../../observable/interval":116}],19:[function(a,b,e){b=a("../../Observable");a=a("../../observable/never");b.Observable.never=a.InfiniteObservable.create},{"../../Observable":3,"../../observable/never":117}],20:[function(a,b,e){b=a("../../Observable");a=a("../../observable/range");b.Observable.range=a.RangeObservable.create},{"../../Observable":3,"../../observable/range":118}],21:[function(a,b,e){b=a("../../Observable");a=a("../../observable/throw");
b.Observable.throw=a.ErrorObservable.create},{"../../Observable":3,"../../observable/throw":119}],22:[function(a,b,e){b=a("../../Observable");a=a("../../observable/timer");b.Observable.timer=a.TimerObservable.create},{"../../Observable":3,"../../observable/timer":120}],23:[function(a,b,e){b=a("../../Observable");a=a("../../operator/buffer");b.Observable.prototype.buffer=a.buffer},{"../../Observable":3,"../../operator/buffer":121}],24:[function(a,b,e){b=a("../../Observable");a=a("../../operator/bufferCount");
b.Observable.prototype.bufferCount=a.bufferCount},{"../../Observable":3,"../../operator/bufferCount":122}],25:[function(a,b,e){b=a("../../Observable");a=a("../../operator/bufferTime");b.Observable.prototype.bufferTime=a.bufferTime},{"../../Observable":3,"../../operator/bufferTime":123}],26:[function(a,b,e){b=a("../../Observable");a=a("../../operator/bufferToggle");b.Observable.prototype.bufferToggle=a.bufferToggle},{"../../Observable":3,"../../operator/bufferToggle":124}],27:[function(a,b,e){b=a("../../Observable");
a=a("../../operator/bufferWhen");b.Observable.prototype.bufferWhen=a.bufferWhen},{"../../Observable":3,"../../operator/bufferWhen":125}],28:[function(a,b,e){b=a("../../Observable");a=a("../../operator/catch");b.Observable.prototype.catch=a._catch},{"../../Observable":3,"../../operator/catch":126}],29:[function(a,b,e){b=a("../../Observable");a=a("../../operator/combineAll");b.Observable.prototype.combineAll=a.combineAll},{"../../Observable":3,"../../operator/combineAll":127}],30:[function(a,b,e){b=
a("../../Observable");a=a("../../operator/combineLatest-static");b.Observable.combineLatest=a.combineLatest},{"../../Observable":3,"../../operator/combineLatest-static":128}],31:[function(a,b,e){b=a("../../Observable");a=a("../../operator/combineLatest");b.Observable.prototype.combineLatest=a.combineLatest},{"../../Observable":3,"../../operator/combineLatest":130}],32:[function(a,b,e){b=a("../../Observable");a=a("../../operator/concat-static");b.Observable.concat=a.concat},{"../../Observable":3,"../../operator/concat-static":131}],
33:[function(a,b,e){b=a("../../Observable");a=a("../../operator/concat");b.Observable.prototype.concat=a.concat},{"../../Observable":3,"../../operator/concat":132}],34:[function(a,b,e){b=a("../../Observable");a=a("../../operator/concatAll");b.Observable.prototype.concatAll=a.concatAll},{"../../Observable":3,"../../operator/concatAll":133}],35:[function(a,b,e){b=a("../../Observable");a=a("../../operator/concatMap");b.Observable.prototype.concatMap=a.concatMap},{"../../Observable":3,"../../operator/concatMap":134}],
36:[function(a,b,e){b=a("../../Observable");a=a("../../operator/concatMapTo");b.Observable.prototype.concatMapTo=a.concatMapTo},{"../../Observable":3,"../../operator/concatMapTo":135}],37:[function(a,b,e){b=a("../../Observable");a=a("../../operator/count");b.Observable.prototype.count=a.count},{"../../Observable":3,"../../operator/count":136}],38:[function(a,b,e){b=a("../../Observable");a=a("../../operator/debounce");b.Observable.prototype.debounce=a.debounce},{"../../Observable":3,"../../operator/debounce":137}],
39:[function(a,b,e){b=a("../../Observable");a=a("../../operator/debounceTime");b.Observable.prototype.debounceTime=a.debounceTime},{"../../Observable":3,"../../operator/debounceTime":138}],40:[function(a,b,e){b=a("../../Observable");a=a("../../operator/defaultIfEmpty");b.Observable.prototype.defaultIfEmpty=a.defaultIfEmpty},{"../../Observable":3,"../../operator/defaultIfEmpty":139}],41:[function(a,b,e){b=a("../../Observable");a=a("../../operator/delay");b.Observable.prototype.delay=a.delay},{"../../Observable":3,
"../../operator/delay":140}],42:[function(a,b,e){b=a("../../Observable");a=a("../../operator/dematerialize");b.Observable.prototype.dematerialize=a.dematerialize},{"../../Observable":3,"../../operator/dematerialize":141}],43:[function(a,b,e){b=a("../../Observable");a=a("../../operator/distinctUntilChanged");b.Observable.prototype.distinctUntilChanged=a.distinctUntilChanged},{"../../Observable":3,"../../operator/distinctUntilChanged":142}],44:[function(a,b,e){b=a("../../Observable");a=a("../../operator/do");
b.Observable.prototype.do=a._do},{"../../Observable":3,"../../operator/do":143}],45:[function(a,b,e){b=a("../../Observable");a=a("../../operator/every");b.Observable.prototype.every=a.every},{"../../Observable":3,"../../operator/every":144}],46:[function(a,b,e){b=a("../../Observable");a=a("../../operator/expand");b.Observable.prototype.expand=a.expand},{"../../Observable":3,"../../operator/expand":146}],47:[function(a,b,e){b=a("../../Observable");a=a("../../operator/filter");b.Observable.prototype.filter=
a.filter},{"../../Observable":3,"../../operator/filter":147}],48:[function(a,b,e){b=a("../../Observable");a=a("../../operator/finally");b.Observable.prototype.finally=a._finally},{"../../Observable":3,"../../operator/finally":148}],49:[function(a,b,e){b=a("../../Observable");a=a("../../operator/first");b.Observable.prototype.first=a.first},{"../../Observable":3,"../../operator/first":149}],50:[function(a,b,e){b=a("../../Observable");a=a("../../operator/groupBy");b.Observable.prototype.groupBy=a.groupBy},
{"../../Observable":3,"../../operator/groupBy":151}],51:[function(a,b,e){b=a("../../Observable");a=a("../../operator/ignoreElements");b.Observable.prototype.ignoreElements=a.ignoreElements},{"../../Observable":3,"../../operator/ignoreElements":152}],52:[function(a,b,e){b=a("../../Observable");a=a("../../operator/last");b.Observable.prototype.last=a.last},{"../../Observable":3,"../../operator/last":153}],53:[function(a,b,e){b=a("../../Observable");a=a("../../operator/map");b.Observable.prototype.map=
a.map},{"../../Observable":3,"../../operator/map":154}],54:[function(a,b,e){b=a("../../Observable");a=a("../../operator/mapTo");b.Observable.prototype.mapTo=a.mapTo},{"../../Observable":3,"../../operator/mapTo":155}],55:[function(a,b,e){b=a("../../Observable");a=a("../../operator/materialize");b.Observable.prototype.materialize=a.materialize},{"../../Observable":3,"../../operator/materialize":156}],56:[function(a,b,e){b=a("../../Observable");a=a("../../operator/merge-static");b.Observable.merge=a.merge},
{"../../Observable":3,"../../operator/merge-static":157}],57:[function(a,b,e){b=a("../../Observable");a=a("../../operator/merge");b.Observable.prototype.merge=a.merge},{"../../Observable":3,"../../operator/merge":158}],58:[function(a,b,e){b=a("../../Observable");a=a("../../operator/mergeAll");b.Observable.prototype.mergeAll=a.mergeAll},{"../../Observable":3,"../../operator/mergeAll":160}],59:[function(a,b,e){b=a("../../Observable");a=a("../../operator/mergeMap");b.Observable.prototype.mergeMap=a.mergeMap;
b.Observable.prototype.flatMap=a.mergeMap},{"../../Observable":3,"../../operator/mergeMap":162}],60:[function(a,b,e){b=a("../../Observable");a=a("../../operator/mergeMapTo");b.Observable.prototype.mergeMapTo=a.mergeMapTo},{"../../Observable":3,"../../operator/mergeMapTo":164}],61:[function(a,b,e){b=a("../../Observable");a=a("../../operator/multicast");b.Observable.prototype.multicast=a.multicast},{"../../Observable":3,"../../operator/multicast":165}],62:[function(a,b,e){b=a("../../Observable");a=
a("../../operator/observeOn");b.Observable.prototype.observeOn=a.observeOn},{"../../Observable":3,"../../operator/observeOn":167}],63:[function(a,b,e){b=a("../../Observable");a=a("../../operator/partition");b.Observable.prototype.partition=a.partition},{"../../Observable":3,"../../operator/partition":168}],64:[function(a,b,e){b=a("../../Observable");a=a("../../operator/publish");b.Observable.prototype.publish=a.publish},{"../../Observable":3,"../../operator/publish":169}],65:[function(a,b,e){b=a("../../Observable");
a=a("../../operator/publishBehavior");b.Observable.prototype.publishBehavior=a.publishBehavior},{"../../Observable":3,"../../operator/publishBehavior":170}],66:[function(a,b,e){b=a("../../Observable");a=a("../../operator/publishLast");b.Observable.prototype.publishLast=a.publishLast},{"../../Observable":3,"../../operator/publishLast":171}],67:[function(a,b,e){b=a("../../Observable");a=a("../../operator/publishReplay");b.Observable.prototype.publishReplay=a.publishReplay},{"../../Observable":3,"../../operator/publishReplay":172}],
68:[function(a,b,e){b=a("../../Observable");a=a("../../operator/reduce");b.Observable.prototype.reduce=a.reduce},{"../../Observable":3,"../../operator/reduce":174}],69:[function(a,b,e){b=a("../../Observable");a=a("../../operator/repeat");b.Observable.prototype.repeat=a.repeat},{"../../Observable":3,"../../operator/repeat":175}],70:[function(a,b,e){b=a("../../Observable");a=a("../../operator/retry");b.Observable.prototype.retry=a.retry},{"../../Observable":3,"../../operator/retry":176}],71:[function(a,
b,e){b=a("../../Observable");a=a("../../operator/retryWhen");b.Observable.prototype.retryWhen=a.retryWhen},{"../../Observable":3,"../../operator/retryWhen":177}],72:[function(a,b,e){b=a("../../Observable");a=a("../../operator/sample");b.Observable.prototype.sample=a.sample},{"../../Observable":3,"../../operator/sample":178}],73:[function(a,b,e){b=a("../../Observable");a=a("../../operator/sampleTime");b.Observable.prototype.sampleTime=a.sampleTime},{"../../Observable":3,"../../operator/sampleTime":179}],
74:[function(a,b,e){b=a("../../Observable");a=a("../../operator/scan");b.Observable.prototype.scan=a.scan},{"../../Observable":3,"../../operator/scan":180}],75:[function(a,b,e){b=a("../../Observable");a=a("../../operator/share");b.Observable.prototype.share=a.share},{"../../Observable":3,"../../operator/share":181}],76:[function(a,b,e){b=a("../../Observable");a=a("../../operator/single");b.Observable.prototype.single=a.single},{"../../Observable":3,"../../operator/single":182}],77:[function(a,b,e){b=
a("../../Observable");a=a("../../operator/skip");b.Observable.prototype.skip=a.skip},{"../../Observable":3,"../../operator/skip":183}],78:[function(a,b,e){b=a("../../Observable");a=a("../../operator/skipUntil");b.Observable.prototype.skipUntil=a.skipUntil},{"../../Observable":3,"../../operator/skipUntil":184}],79:[function(a,b,e){b=a("../../Observable");a=a("../../operator/skipWhile");b.Observable.prototype.skipWhile=a.skipWhile},{"../../Observable":3,"../../operator/skipWhile":185}],80:[function(a,
b,e){b=a("../../Observable");a=a("../../operator/startWith");b.Observable.prototype.startWith=a.startWith},{"../../Observable":3,"../../operator/startWith":186}],81:[function(a,b,e){b=a("../../Observable");a=a("../../operator/subscribeOn");b.Observable.prototype.subscribeOn=a.subscribeOn},{"../../Observable":3,"../../operator/subscribeOn":187}],82:[function(a,b,e){b=a("../../Observable");a=a("../../operator/switch");b.Observable.prototype.switch=a._switch},{"../../Observable":3,"../../operator/switch":188}],
83:[function(a,b,e){b=a("../../Observable");a=a("../../operator/switchMap");b.Observable.prototype.switchMap=a.switchMap},{"../../Observable":3,"../../operator/switchMap":189}],84:[function(a,b,e){b=a("../../Observable");a=a("../../operator/switchMapTo");b.Observable.prototype.switchMapTo=a.switchMapTo},{"../../Observable":3,"../../operator/switchMapTo":190}],85:[function(a,b,e){b=a("../../Observable");a=a("../../operator/take");b.Observable.prototype.take=a.take},{"../../Observable":3,"../../operator/take":191}],
86:[function(a,b,e){b=a("../../Observable");a=a("../../operator/takeUntil");b.Observable.prototype.takeUntil=a.takeUntil},{"../../Observable":3,"../../operator/takeUntil":192}],87:[function(a,b,e){b=a("../../Observable");a=a("../../operator/takeWhile");b.Observable.prototype.takeWhile=a.takeWhile},{"../../Observable":3,"../../operator/takeWhile":193}],88:[function(a,b,e){b=a("../../Observable");a=a("../../operator/throttle");b.Observable.prototype.throttle=a.throttle},{"../../Observable":3,"../../operator/throttle":194}],
89:[function(a,b,e){b=a("../../Observable");a=a("../../operator/throttleTime");b.Observable.prototype.throttleTime=a.throttleTime},{"../../Observable":3,"../../operator/throttleTime":195}],90:[function(a,b,e){b=a("../../Observable");a=a("../../operator/timeout");b.Observable.prototype.timeout=a.timeout},{"../../Observable":3,"../../operator/timeout":196}],91:[function(a,b,e){b=a("../../Observable");a=a("../../operator/timeoutWith");b.Observable.prototype.timeoutWith=a.timeoutWith},{"../../Observable":3,
"../../operator/timeoutWith":197}],92:[function(a,b,e){b=a("../../Observable");a=a("../../operator/toArray");b.Observable.prototype.toArray=a.toArray},{"../../Observable":3,"../../operator/toArray":198}],93:[function(a,b,e){b=a("../../Observable");a=a("../../operator/toPromise");b.Observable.prototype.toPromise=a.toPromise},{"../../Observable":3,"../../operator/toPromise":199}],94:[function(a,b,e){b=a("../../Observable");a=a("../../operator/window");b.Observable.prototype.window=a.window},{"../../Observable":3,
"../../operator/window":200}],95:[function(a,b,e){b=a("../../Observable");a=a("../../operator/windowCount");b.Observable.prototype.windowCount=a.windowCount},{"../../Observable":3,"../../operator/windowCount":201}],96:[function(a,b,e){b=a("../../Observable");a=a("../../operator/windowTime");b.Observable.prototype.windowTime=a.windowTime},{"../../Observable":3,"../../operator/windowTime":202}],97:[function(a,b,e){b=a("../../Observable");a=a("../../operator/windowToggle");b.Observable.prototype.windowToggle=
a.windowToggle},{"../../Observable":3,"../../operator/windowToggle":203}],98:[function(a,b,e){b=a("../../Observable");a=a("../../operator/windowWhen");b.Observable.prototype.windowWhen=a.windowWhen},{"../../Observable":3,"../../operator/windowWhen":204}],99:[function(a,b,e){b=a("../../Observable");a=a("../../operator/withLatestFrom");b.Observable.prototype.withLatestFrom=a.withLatestFrom},{"../../Observable":3,"../../operator/withLatestFrom":205}],100:[function(a,b,e){b=a("../../Observable");a=a("../../operator/zip-static");
b.Observable.zip=a.zip},{"../../Observable":3,"../../operator/zip-static":206}],101:[function(a,b,e){b=a("../../Observable");a=a("../../operator/zip");b.Observable.prototype.zip=a.zipProto},{"../../Observable":3,"../../operator/zip":208}],102:[function(a,b,e){b=a("../../Observable");a=a("../../operator/zipAll");b.Observable.prototype.zipAll=a.zipAll},{"../../Observable":3,"../../operator/zipAll":209}],103:[function(a,b,e){var h=this&&this.__extends||function(a,g){function n(){this.constructor=a}for(var d in g)g.hasOwnProperty(d)&&
(a[d]=g[d]);a.prototype=null===g?Object.create(g):(n.prototype=g.prototype,new n)};b=a("../Observable");var k=a("../Subscription");a=a("../Subscriber");var m=function(a){function g(n,g){a.call(this);this.source=n;this.subjectFactory=g}h(g,a);g.prototype._subscribe=function(a){return this._getSubject().subscribe(a)};g.prototype._getSubject=function(){var a=this.subject;return a&&!a.isUnsubscribed?a:this.subject=this.subjectFactory()};g.prototype.connect=function(){var a=this.subscription;if(a&&!a.isUnsubscribed)return a;
a=this.source.subscribe(this._getSubject());a.add(new l(this));return this.subscription=a};g.prototype.refCount=function(){return new f(this)};return g}(b.Observable);e.ConnectableObservable=m;var l=function(a){function g(g){a.call(this);this.connectable=g}h(g,a);g.prototype._unsubscribe=function(){var a=this.connectable;a.subject=void 0;this.connectable=a.subscription=void 0};return g}(k.Subscription),f=function(a){function g(g,d){void 0===d&&(d=0);a.call(this);this.connectable=g;this.refCount=d}
h(g,a);g.prototype._subscribe=function(a){var c=this.connectable;a=new d(a,this);var g=c.subscribe(a);g.isUnsubscribed||1!==++this.refCount||(a.connection=this.connection=c.connect());return g};return g}(b.Observable),d=function(a){function g(g,d){a.call(this,null);this.destination=g;this.refCountObservable=d;this.connection=d.connection;g.add(this)}h(g,a);g.prototype._next=function(a){this.destination.next(a)};g.prototype._error=function(a){this._resetConnectable();this.destination.error(a)};g.prototype._complete=
function(){this._resetConnectable();this.destination.complete()};g.prototype._resetConnectable=function(){var a=this.refCountObservable,c=a.connection,g=this.connection;g&&g===c&&(a.refCount=0,c.unsubscribe(),a.connection=void 0,this.unsubscribe())};g.prototype._unsubscribe=function(){var a=this.refCountObservable;if(0!==a.refCount&&0===--a.refCount){var c=a.connection,g=this.connection;g&&g===c&&(c.unsubscribe(),a.connection=void 0)}};return g}(a.Subscriber)},{"../Observable":3,"../Subscriber":7,
"../Subscription":8}],104:[function(a,b,e){var h=this&&this.__extends||function(a,c){function g(){this.constructor=a}for(var d in c)c.hasOwnProperty(d)&&(a[d]=c[d]);a.prototype=null===c?Object.create(c):(g.prototype=c.prototype,new g)};b=a("../Observable");var k=a("../util/root"),m=a("../util/SymbolShim"),l=a("../util/tryCatch"),f=a("../util/errorObject");a=function(a){function g(f,b,p,l){a.call(this);this.project=b;this.thisArg=p;this.scheduler=l;if(null==f)throw Error("iterator cannot be null.");
if(b&&"function"!==typeof b)throw Error("When provided, `project` must be a function.");if((b=f[m.SymbolShim.iterator])||"string"!==typeof f)if(b||void 0===f.length){if(!b)throw new TypeError("Object is not iterable");f=f[m.SymbolShim.iterator]()}else f=new c(f);else f=new d(f);this.iterator=f}h(g,a);g.create=function(a,c,d,n){return new g(a,c,d,n)};g.dispatch=function(a){var c=a.index,g=a.thisArg,d=a.project,n=a.iterator,b=a.subscriber;a.hasError?b.error(a.error):(n=n.next(),n.done?b.complete():
(d?(n=l.tryCatch(d).call(g,n.value,c),n===f.errorObject?(a.error=f.errorObject.e,a.hasError=!0):(b.next(n),a.index=c+1)):(b.next(n.value),a.index=c+1),b.isUnsubscribed||this.schedule(a)))};g.prototype._subscribe=function(a){var c=0,d=this.iterator,n=this.project,b=this.thisArg,m=this.scheduler;if(m)a.add(m.schedule(g.dispatch,0,{index:c,thisArg:b,project:n,iterator:d,subscriber:a}));else{do{m=d.next();if(m.done){a.complete();break}else if(n){m=l.tryCatch(n).call(b,m.value,c++);if(m===f.errorObject){a.error(f.errorObject.e);
break}a.next(m)}else a.next(m.value);if(a.isUnsubscribed)break}while(1)}};return g}(b.Observable);e.IteratorObservable=a;var d=function(){function a(c,g,d){void 0===g&&(g=0);void 0===d&&(d=c.length);this.str=c;this.idx=g;this.len=d}a.prototype[m.SymbolShim.iterator]=function(){return this};a.prototype.next=function(){return this.idx<this.len?{done:!1,value:this.str.charAt(this.idx++)}:{done:!0,value:void 0}};return a}(),c=function(){function a(c,d,n){void 0===d&&(d=0);if(void 0===n)if(n=+c.length,
isNaN(n))n=0;else if(0!==n&&"number"===typeof n&&k.root.isFinite(n)){var f;f=+n;f=0===f?f:isNaN(f)?f:0>f?-1:1;n=f*Math.floor(Math.abs(n));n=0>=n?0:n>g?g:n}this.arr=c;this.idx=d;this.len=n}a.prototype[m.SymbolShim.iterator]=function(){return this};a.prototype.next=function(){return this.idx<this.len?{done:!1,value:this.arr[this.idx++]}:{done:!0,value:void 0}};return a}(),g=Math.pow(2,53)-1},{"../Observable":3,"../util/SymbolShim":229,"../util/errorObject":230,"../util/root":238,"../util/tryCatch":241}],
105:[function(a,b,e){var h=this&&this.__extends||function(a,g){function d(){this.constructor=a}for(var f in g)g.hasOwnProperty(f)&&(a[f]=g[f]);a.prototype=null===g?Object.create(g):(d.prototype=g.prototype,new d)};b=a("../Observable");var k=a("../util/tryCatch"),m=a("../util/errorObject"),l=a("./throw"),f=a("./empty"),d=function(a){function g(g,d){a.call(this);this.value=g;this.scheduler=d;this._isScalar=!0}h(g,a);g.create=function(a,c){return new g(a,c)};g.dispatch=function(a){var c=a.value,g=a.subscriber;
a.done?g.complete():(g.next(c),g.isUnsubscribed||(a.done=!0,this.schedule(a)))};g.prototype._subscribe=function(a){var c=this.value,d=this.scheduler;d?a.add(d.schedule(g.dispatch,0,{done:!1,value:c,subscriber:a})):(a.next(c),a.isUnsubscribed||a.complete())};return g}(b.Observable);e.ScalarObservable=d;a=d.prototype;a.map=function(a,g){return k.tryCatch(a).call(g||this,this.value,0)===m.errorObject?new l.ErrorObservable(m.errorObject.e):new d(a.call(g||this,this.value,0))};a.filter=function(a,g){var d=
k.tryCatch(a).call(g||this,this.value,0);return d===m.errorObject?new l.ErrorObservable(m.errorObject.e):d?this:new f.EmptyObservable};a.reduce=function(a,g){if("undefined"===typeof g)return this;var n=k.tryCatch(a)(g,this.value);return n===m.errorObject?new l.ErrorObservable(m.errorObject.e):new d(n)};a.scan=function(a,g){return this.reduce(a,g)};a.count=function(a){return a?(a=k.tryCatch(a).call(this,this.value,0,this),a===m.errorObject?new l.ErrorObservable(m.errorObject.e):new d(a?1:0)):new d(1)};
a.skip=function(a){return 0<a?new f.EmptyObservable:this};a.take=function(a){return 0<a?this:new f.EmptyObservable}},{"../Observable":3,"../util/errorObject":230,"../util/tryCatch":241,"./empty":109,"./throw":119}],106:[function(a,b,e){var h=this&&this.__extends||function(a,f){function d(){this.constructor=a}for(var c in f)f.hasOwnProperty(c)&&(a[c]=f[c]);a.prototype=null===f?Object.create(f):(d.prototype=f.prototype,new d)};b=a("../Observable");var k=a("../scheduler/asap"),m=a("../util/isNumeric");
a=function(a){function f(d,c,g){void 0===c&&(c=0);void 0===g&&(g=k.asap);a.call(this);this.source=d;this.delayTime=c;this.scheduler=g;if(!m.isNumeric(c)||0>c)this.delayTime=0;g&&"function"===typeof g.schedule||(this.scheduler=k.asap)}h(f,a);f.create=function(a,c,g){void 0===c&&(c=0);void 0===g&&(g=k.asap);return new f(a,c,g)};f.dispatch=function(a){return a.source.subscribe(a.subscriber)};f.prototype._subscribe=function(a){a.add(this.scheduler.schedule(f.dispatch,this.delayTime,{source:this.source,
subscriber:a}))};return f}(b.Observable);e.SubscribeOnObservable=a},{"../Observable":3,"../scheduler/asap":215,"../util/isNumeric":233}],107:[function(a,b,e){function h(a){var n=a.source;a=a.subscriber;var b=n.callbackFunc,l=n.args,e=n.scheduler,h=n.subject;if(!h){var h=n.subject=new c.AsyncSubject,r=function u(){for(var a=[],c=0;c<arguments.length;c++)a[c-0]=arguments[c];var g=u.source,c=g.selector,g=g.subject;c?(a=f.tryCatch(c).apply(this,a),a===d.errorObject?g.add(e.schedule(m,0,{err:d.errorObject.e,
subject:g})):g.add(e.schedule(k,0,{value:a,subject:g}))):g.add(e.schedule(k,0,{value:1===a.length?a[0]:a,subject:g}))};r.source=n;f.tryCatch(b).apply(this,l.concat(r))===d.errorObject&&h.error(d.errorObject.e)}this.add(h.subscribe(a))}function k(a){var c=a.subject;c.next(a.value);c.complete()}function m(a){a.subject.error(a.err)}var l=this&&this.__extends||function(a,c){function d(){this.constructor=a}for(var f in c)c.hasOwnProperty(f)&&(a[f]=c[f]);a.prototype=null===c?Object.create(c):(d.prototype=
c.prototype,new d)};b=a("../Observable");var f=a("../util/tryCatch"),d=a("../util/errorObject"),c=a("../subject/AsyncSubject");a=function(a){function n(c,d,n,f){a.call(this);this.callbackFunc=c;this.selector=d;this.args=n;this.scheduler=f}l(n,a);n.create=function(a,c,g){void 0===c&&(c=void 0);return function(){for(var d=[],f=0;f<arguments.length;f++)d[f-0]=arguments[f];return new n(a,c,d,g)}};n.prototype._subscribe=function(a){var g=this.callbackFunc,n=this.args,b=this.scheduler,l=this.subject;if(b)return a.add(b.schedule(h,
0,{source:this,subscriber:a})),a;l||(l=this.subject=new c.AsyncSubject,b=function u(){for(var a=[],c=0;c<arguments.length;c++)a[c-0]=arguments[c];var g=u.source,c=g.selector,g=g.subject;c?(a=f.tryCatch(c).apply(this,a),a===d.errorObject?g.error(d.errorObject.e):(g.next(a),g.complete())):(g.next(1===a.length?a[0]:a),g.complete())},b.source=this,f.tryCatch(g).apply(this,n.concat(b))===d.errorObject&&l.error(d.errorObject.e));return l.subscribe(a)};return n}(b.Observable);e.BoundCallbackObservable=a},
{"../Observable":3,"../subject/AsyncSubject":217,"../util/errorObject":230,"../util/tryCatch":241}],108:[function(a,b,e){var h=this&&this.__extends||function(a,f){function d(){this.constructor=a}for(var c in f)f.hasOwnProperty(c)&&(a[c]=f[c]);a.prototype=null===f?Object.create(f):(d.prototype=f.prototype,new d)};b=a("../Observable");var k=a("../util/tryCatch"),m=a("../util/errorObject");a=function(a){function f(d){a.call(this);this.observableFactory=d}h(f,a);f.create=function(a){return new f(a)};
f.prototype._subscribe=function(a){var c=k.tryCatch(this.observableFactory)();c===m.errorObject?a.error(m.errorObject.e):c.subscribe(a)};return f}(b.Observable);e.DeferObservable=a},{"../Observable":3,"../util/errorObject":230,"../util/tryCatch":241}],109:[function(a,b,e){var h=this&&this.__extends||function(a,b){function l(){this.constructor=a}for(var f in b)b.hasOwnProperty(f)&&(a[f]=b[f]);a.prototype=null===b?Object.create(b):(l.prototype=b.prototype,new l)};a=function(a){function b(l){a.call(this);
this.scheduler=l}h(b,a);b.create=function(a){return new b(a)};b.dispatch=function(a){a.subscriber.complete()};b.prototype._subscribe=function(a){var f=this.scheduler;f?a.add(f.schedule(b.dispatch,0,{subscriber:a})):a.complete()};return b}(a("../Observable").Observable);e.EmptyObservable=a},{"../Observable":3}],110:[function(a,b,e){function h(a){return null!==a}var k=this&&this.__extends||function(a,c){function g(){this.constructor=a}for(var d in c)c.hasOwnProperty(d)&&(a[d]=c[d]);a.prototype=null===
c?Object.create(c):(g.prototype=c.prototype,new g)},m=a("../Observable");b=a("../Subscriber");var l=a("./fromPromise"),f=a("./empty"),d=a("../util/isPromise"),c=a("../util/isArray");a=function(a){function b(c,g){a.call(this);this.sources=c;this.resultSelector=g}k(b,a);b.create=function(){for(var a=[],g=0;g<arguments.length;g++)a[g-0]=arguments[g];if(null===a||0===arguments.length)return new f.EmptyObservable;g=null;"function"===typeof a[a.length-1]&&(g=a.pop());1===a.length&&c.isArray(a[0])&&(a=a[0]);
return new b(a,g)};b.prototype._subscribe=function(a){for(var c=this.sources,n=c.length,f=[],b=0;b<n;b++)f.push(null);f={completed:0,total:n,values:f,selector:this.resultSelector};for(b=0;b<n;b++){var p=c[b];d.isPromise(p)&&(p=new l.PromiseObservable(p));p.subscribe(new g(a,b,f))}};return b}(m.Observable);e.ForkJoinObservable=a;var g=function(a){function c(g,d,f){a.call(this,g);this.index=d;this.context=f;this._value=null}k(c,a);c.prototype._next=function(a){this._value=a};c.prototype._complete=function(){var a=
this.destination;null==this._value&&a.complete();var c=this.context;c.completed++;c.values[this.index]=this._value;var g=c.values;c.completed===g.length&&(g.every(h)&&(c=c.selector?c.selector.apply(this,g):g,a.next(c)),a.complete())};return c}(b.Subscriber)},{"../Observable":3,"../Subscriber":7,"../util/isArray":231,"../util/isPromise":234,"./empty":109,"./fromPromise":115}],111:[function(a,b,e){var h=this&&this.__extends||function(a,c){function g(){this.constructor=a}for(var d in c)c.hasOwnProperty(d)&&
(a[d]=c[d]);a.prototype=null===c?Object.create(c):(g.prototype=c.prototype,new g)},k=a("./fromPromise"),m=a("./IteratorObservable"),l=a("./fromArray"),f=a("../util/SymbolShim"),d=a("../Observable"),c=a("../operator/observeOn-support"),g=a("../scheduler/queue"),n=Array.isArray;a=function(a){function b(c,g){a.call(this,null);this.ish=c;this.scheduler=g}h(b,a);b.create=function(a,c){void 0===c&&(c=g.queue);if(a){if(n(a))return new l.ArrayObservable(a,c);if("function"===typeof a.then)return new k.PromiseObservable(a,
c);if("function"===typeof a[f.SymbolShim.observable])return a instanceof d.Observable?a:new b(a,c);if("function"===typeof a[f.SymbolShim.iterator])return new m.IteratorObservable(a,null,null,c)}throw new TypeError(typeof a+" is not observable");};b.prototype._subscribe=function(a){var d=this.ish,n=this.scheduler;return n===g.queue?d[f.SymbolShim.observable]().subscribe(a):d[f.SymbolShim.observable]().subscribe(new c.ObserveOnSubscriber(a,n,0))};return b}(d.Observable);e.FromObservable=a},{"../Observable":3,
"../operator/observeOn-support":166,"../scheduler/queue":216,"../util/SymbolShim":229,"./IteratorObservable":104,"./fromArray":112,"./fromPromise":115}],112:[function(a,b,e){var h=this&&this.__extends||function(a,d){function c(){this.constructor=a}for(var g in d)d.hasOwnProperty(g)&&(a[g]=d[g]);a.prototype=null===d?Object.create(d):(c.prototype=d.prototype,new c)};b=a("../Observable");var k=a("./ScalarObservable"),m=a("./empty"),l=a("../util/isScheduler");a=function(a){function d(c,g){a.call(this);
this.array=c;this.scheduler=g;g||1!==c.length||(this._isScalar=!0,this.value=c[0])}h(d,a);d.create=function(a,g){return new d(a,g)};d.of=function(){for(var a=[],g=0;g<arguments.length;g++)a[g-0]=arguments[g];g=a[a.length-1];l.isScheduler(g)?a.pop():g=void 0;var n=a.length;return 1<n?new d(a,g):1===n?new k.ScalarObservable(a[0],g):new m.EmptyObservable(g)};d.dispatch=function(a){var g=a.array,d=a.index,f=a.subscriber;d>=a.count?f.complete():(f.next(g[d]),f.isUnsubscribed||(a.index=d+1,this.schedule(a)))};
d.prototype._subscribe=function(a){var g=this.array,n=g.length,f=this.scheduler;if(f)a.add(f.schedule(d.dispatch,0,{array:g,index:0,count:n,subscriber:a}));else{for(f=0;f<n&&!a.isUnsubscribed;f++)a.next(g[f]);a.complete()}};return d}(b.Observable);e.ArrayObservable=a},{"../Observable":3,"../util/isScheduler":235,"./ScalarObservable":105,"./empty":109}],113:[function(a,b,e){var h=this&&this.__extends||function(a,d){function c(){this.constructor=a}for(var g in d)d.hasOwnProperty(g)&&(a[g]=d[g]);a.prototype=
null===d?Object.create(d):(c.prototype=d.prototype,new c)};b=a("../Observable");var k=a("../util/tryCatch"),m=a("../util/errorObject"),l=a("../Subscription");a=function(a){function d(c,g,d){a.call(this);this.sourceObj=c;this.eventName=g;this.selector=d}h(d,a);d.create=function(a,g,n){return new d(a,g,n)};d.setupSubscription=function(a,g,n,f){var b,e=a.toString();if("[object NodeList]"===e||"[object HTMLCollection]"===e)for(var e=0,m=a.length;e<m;e++)d.setupSubscription(a[e],g,n,f);else"function"===
typeof a.addEventListener&&"function"===typeof a.removeEventListener?(a.addEventListener(g,n),b=function(){return a.removeEventListener(g,n)}):"function"===typeof a.on&&"function"===typeof a.off?(a.on(g,n),b=function(){return a.off(g,n)}):"function"===typeof a.addListener&&"function"===typeof a.removeListener&&(a.addListener(g,n),b=function(){return a.removeListener(g,n)});f.add(new l.Subscription(b))};d.prototype._subscribe=function(a){var g=this.selector;d.setupSubscription(this.sourceObj,this.eventName,
g?function(d){d=k.tryCatch(g)(d);d===m.errorObject?a.error(d.e):a.next(d)}:function(g){return a.next(g)},a)};return d}(b.Observable);e.FromEventObservable=a},{"../Observable":3,"../Subscription":8,"../util/errorObject":230,"../util/tryCatch":241}],114:[function(a,b,e){var h=this&&this.__extends||function(a,d){function c(){this.constructor=a}for(var g in d)d.hasOwnProperty(g)&&(a[g]=d[g]);a.prototype=null===d?Object.create(d):(c.prototype=d.prototype,new c)};b=a("../Observable");var k=a("../Subscription"),
m=a("../util/tryCatch"),l=a("../util/errorObject");a=function(a){function d(c,g,d){a.call(this);this.addHandler=c;this.removeHandler=g;this.selector=d}h(d,a);d.create=function(a,g,n){return new d(a,g,n)};d.prototype._subscribe=function(a){var g=this.removeHandler,d=this.selector,f=d?function(g){var f=m.tryCatch(d).apply(null,arguments);f===l.errorObject?a.error(f.e):a.next(f)}:function(g){a.next(g)},b=m.tryCatch(this.addHandler)(f);b===l.errorObject&&a.error(b.e);a.add(new k.Subscription(function(){g(f)}))};
return d}(b.Observable);e.FromEventPatternObservable=a},{"../Observable":3,"../Subscription":8,"../util/errorObject":230,"../util/tryCatch":241}],115:[function(a,b,e){function h(a){var c=a.subscriber;c.next(a.value);c.complete()}function k(a){a.subscriber.error(a.err)}var m=this&&this.__extends||function(a,c){function g(){this.constructor=a}for(var n in c)c.hasOwnProperty(n)&&(a[n]=c[n]);a.prototype=null===c?Object.create(c):(g.prototype=c.prototype,new g)};b=a("../Observable");var l=a("../Subscription"),
f=a("../scheduler/queue");a=function(a){function c(c,n){void 0===n&&(n=f.queue);a.call(this);this.promise=c;this.scheduler=n;this._isScalar=!1}m(c,a);c.create=function(a,d){void 0===d&&(d=f.queue);return new c(a,d)};c.prototype._subscribe=function(a){var c=this,d=this.scheduler,b=this.promise;if(d===f.queue)this._isScalar?(a.next(this.value),a.complete()):b.then(function(d){c._isScalar=!0;c.value=d;a.next(d);a.complete()},function(c){return a.error(c)}).then(null,function(a){setTimeout(function(){throw a;
})});else{var e=new l.Subscription;this._isScalar?e.add(d.schedule(h,0,{value:this.value,subscriber:a})):b.then(function(f){c._isScalar=!0;c.value=f;e.add(d.schedule(h,0,{value:f,subscriber:a}))},function(c){return e.add(d.schedule(k,0,{err:c,subscriber:a}))}).then(null,function(a){d.schedule(function(){throw a;})});return e}};return c}(b.Observable);e.PromiseObservable=a},{"../Observable":3,"../Subscription":8,"../scheduler/queue":216}],116:[function(a,b,e){var h=this&&this.__extends||function(a,
f){function d(){this.constructor=a}for(var c in f)f.hasOwnProperty(c)&&(a[c]=f[c]);a.prototype=null===f?Object.create(f):(d.prototype=f.prototype,new d)},k=a("../util/isNumeric");b=a("../Observable");var m=a("../scheduler/asap");a=function(a){function f(d,c){void 0===d&&(d=0);void 0===c&&(c=m.asap);a.call(this);this.period=d;this.scheduler=c;if(!k.isNumeric(d)||0>d)this.period=0;c&&"function"===typeof c.schedule||(this.scheduler=m.asap)}h(f,a);f.create=function(a,c){void 0===a&&(a=0);void 0===c&&
(c=m.asap);return new f(a,c)};f.dispatch=function(a){var c=a.subscriber,g=a.period;c.next(a.index);c.isUnsubscribed||(a.index+=1,this.schedule(a,g))};f.prototype._subscribe=function(a){var c=this.period;a.add(this.scheduler.schedule(f.dispatch,c,{index:0,subscriber:a,period:c}))};return f}(b.Observable);e.IntervalObservable=a},{"../Observable":3,"../scheduler/asap":215,"../util/isNumeric":233}],117:[function(a,b,e){var h=this&&this.__extends||function(a,b){function f(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&
(a[d]=b[d]);a.prototype=null===b?Object.create(b):(f.prototype=b.prototype,new f)};b=a("../Observable");var k=a("../util/noop");a=function(a){function b(){a.call(this)}h(b,a);b.create=function(){return new b};b.prototype._subscribe=function(a){k.noop()};return b}(b.Observable);e.InfiniteObservable=a},{"../Observable":3,"../util/noop":236}],118:[function(a,b,e){var h=this&&this.__extends||function(a,b){function l(){this.constructor=a}for(var f in b)b.hasOwnProperty(f)&&(a[f]=b[f]);a.prototype=null===
b?Object.create(b):(l.prototype=b.prototype,new l)};a=function(a){function b(l,f,d){a.call(this);this.start=l;this.end=f;this.scheduler=d}h(b,a);b.create=function(a,f,d){void 0===a&&(a=0);void 0===f&&(f=0);return new b(a,f,d)};b.dispatch=function(a){var b=a.start,d=a.index,c=a.subscriber;d>=a.end?c.complete():(c.next(b),c.isUnsubscribed||(a.index=d+1,a.start=b+1,this.schedule(a)))};b.prototype._subscribe=function(a){var f=0,d=this.start,c=this.end,g=this.scheduler;if(g)a.add(g.schedule(b.dispatch,
0,{index:f,end:c,start:d,subscriber:a}));else{do{if(f++>=c){a.complete();break}a.next(d++);if(a.isUnsubscribed)break}while(1)}};return b}(a("../Observable").Observable);e.RangeObservable=a},{"../Observable":3}],119:[function(a,b,e){var h=this&&this.__extends||function(a,b){function l(){this.constructor=a}for(var f in b)b.hasOwnProperty(f)&&(a[f]=b[f]);a.prototype=null===b?Object.create(b):(l.prototype=b.prototype,new l)};a=function(a){function b(l,f){a.call(this);this.error=l;this.scheduler=f}h(b,
a);b.create=function(a,f){return new b(a,f)};b.dispatch=function(a){a.subscriber.error(a.error)};b.prototype._subscribe=function(a){var f=this.error,d=this.scheduler;d?a.add(d.schedule(b.dispatch,0,{error:f,subscriber:a})):a.error(f)};return b}(a("../Observable").Observable);e.ErrorObservable=a},{"../Observable":3}],120:[function(a,b,e){var h=this&&this.__extends||function(a,c){function g(){this.constructor=a}for(var n in c)c.hasOwnProperty(n)&&(a[n]=c[n]);a.prototype=null===c?Object.create(c):(g.prototype=
c.prototype,new g)},k=a("../util/isNumeric");b=a("../Observable");var m=a("../scheduler/asap"),l=a("../util/isScheduler"),f=a("../util/isDate");a=function(a){function c(c,n,b){void 0===c&&(c=0);a.call(this);this.period=n;this.scheduler=b;this.dueTime=0;k.isNumeric(n)?this._period=1>Number(n)&&1||Number(n):l.isScheduler(n)&&(b=n);l.isScheduler(b)||(b=m.asap);this.scheduler=b;this.dueTime=f.isDate(c)?+c-this.scheduler.now():c}h(c,a);c.create=function(a,d,b){void 0===a&&(a=0);return new c(a,d,b)};c.dispatch=
function(a){var d=a.index,b=a.period,f=a.subscriber;f.next(d);"undefined"===typeof b?f.complete():f.isUnsubscribed||("undefined"===typeof this.delay?this.add(this.scheduler.schedule(c.dispatch,b,{index:d+1,period:b,subscriber:f})):(a.index=d+1,this.schedule(a,b)))};c.prototype._subscribe=function(a){a.add(this.scheduler.schedule(c.dispatch,this.dueTime,{index:0,period:this._period,subscriber:a}))};return c}(b.Observable);e.TimerObservable=a},{"../Observable":3,"../scheduler/asap":215,"../util/isDate":232,
"../util/isNumeric":233,"../util/isScheduler":235}],121:[function(a,b,e){var h=this&&this.__extends||function(a,d){function c(){this.constructor=a}for(var g in d)d.hasOwnProperty(g)&&(a[g]=d[g]);a.prototype=null===d?Object.create(d):(c.prototype=d.prototype,new c)};a=a("../Subscriber");e.buffer=function(a){return this.lift(new k(a))};var k=function(){function a(d){this.closingNotifier=d}a.prototype.call=function(a){return new m(a,this.closingNotifier)};return a}(),m=function(a){function d(c,g){a.call(this,
c);this.buffer=[];this.notifierSubscriber=null;this.notifierSubscriber=new l(this);this.add(g._subscribe(this.notifierSubscriber))}h(d,a);d.prototype._next=function(a){this.buffer.push(a)};d.prototype._error=function(a){this.destination.error(a)};d.prototype._complete=function(){this.destination.complete()};d.prototype.flushBuffer=function(){var a=this.buffer;this.buffer=[];this.destination.next(a);this.isUnsubscribed&&this.notifierSubscriber.unsubscribe()};return d}(a.Subscriber),l=function(a){function d(c){a.call(this,
null);this.parent=c}h(d,a);d.prototype._next=function(a){this.parent.flushBuffer()};d.prototype._error=function(a){this.parent.error(a)};d.prototype._complete=function(){this.parent.complete()};return d}(a.Subscriber)},{"../Subscriber":7}],122:[function(a,b,e){var h=this&&this.__extends||function(a,b){function d(){this.constructor=a}for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c]);a.prototype=null===b?Object.create(b):(d.prototype=b.prototype,new d)};a=a("../Subscriber");e.bufferCount=function(a,b){void 0===
b&&(b=null);return this.lift(new k(a,b))};var k=function(){function a(b,d){this.bufferSize=b;this.startBufferEvery=d}a.prototype.call=function(a){return new m(a,this.bufferSize,this.startBufferEvery)};return a}(),m=function(a){function b(d,c,g){a.call(this,d);this.bufferSize=c;this.startBufferEvery=g;this.buffers=[[]];this.count=0}h(b,a);b.prototype._next=function(a){var c=this.count+=1,g=this.destination,n=this.bufferSize,b=this.buffers,f=b.length,l=-1;0===c%(null==this.startBufferEvery?n:this.startBufferEvery)&&
b.push([]);for(c=0;c<f;c++){var e=b[c];e.push(a);e.length===n&&(l=c,g.next(e))}-1!==l&&b.splice(l,1)};b.prototype._error=function(a){this.destination.error(a)};b.prototype._complete=function(){for(var a=this.destination,c=this.buffers;0<c.length;){var g=c.shift();0<g.length&&a.next(g)}a.complete()};return b}(a.Subscriber)},{"../Subscriber":7}],123:[function(a,b,e){function h(a){var c=a.subscriber,d=a.buffer;d&&c.closeBuffer(d);a.buffer=c.openBuffer();c.isUnsubscribed||this.schedule(a,a.bufferTimeSpan)}
function k(a){var c=a.bufferCreationInterval,d=a.bufferTimeSpan,b=a.subscriber,f=a.scheduler,l=b.openBuffer();b.isUnsubscribed||(this.add(f.schedule(m,d,{subscriber:b,buffer:l})),this.schedule(a,c))}function m(a){a.subscriber.closeBuffer(a.buffer)}var l=this&&this.__extends||function(a,c){function d(){this.constructor=a}for(var b in c)c.hasOwnProperty(b)&&(a[b]=c[b]);a.prototype=null===c?Object.create(c):(d.prototype=c.prototype,new d)};b=a("../Subscriber");var f=a("../scheduler/asap");e.bufferTime=
function(a,c,b){void 0===c&&(c=null);void 0===b&&(b=f.asap);return this.lift(new d(a,c,b))};var d=function(){function a(c,d,g){this.bufferTimeSpan=c;this.bufferCreationInterval=d;this.scheduler=g}a.prototype.call=function(a){return new c(a,this.bufferTimeSpan,this.bufferCreationInterval,this.scheduler)};return a}(),c=function(a){function c(d,b,n,f){a.call(this,d);this.bufferTimeSpan=b;this.bufferCreationInterval=n;this.scheduler=f;this.buffers=[];d=this.openBuffer();if(null!==n&&0<=n){var l={bufferTimeSpan:b,
bufferCreationInterval:n,subscriber:this,scheduler:f};this.add(f.schedule(m,b,{subscriber:this,buffer:d}));this.add(f.schedule(k,n,l))}else this.add(f.schedule(h,b,{subscriber:this,buffer:d,bufferTimeSpan:b}))}l(c,a);c.prototype._next=function(a){for(var c=this.buffers,d=c.length,g=0;g<d;g++)c[g].push(a)};c.prototype._error=function(a){this.buffers.length=0;this.destination.error(a)};c.prototype._complete=function(){for(var a=this.buffers;0<a.length;)this.destination.next(a.shift());this.destination.complete()};
c.prototype.openBuffer=function(){var a=[];this.buffers.push(a);return a};c.prototype.closeBuffer=function(a){this.destination.next(a);var c=this.buffers;c.splice(c.indexOf(a),1)};return c}(b.Subscriber)},{"../Subscriber":7,"../scheduler/asap":215}],124:[function(a,b,e){var h=this&&this.__extends||function(a,c){function d(){this.constructor=a}for(var g in c)c.hasOwnProperty(g)&&(a[g]=c[g]);a.prototype=null===c?Object.create(c):(d.prototype=c.prototype,new d)};b=a("../Subscriber");var k=a("../Subscription"),
m=a("../util/tryCatch"),l=a("../util/errorObject");e.bufferToggle=function(a,c){return this.lift(new f(a,c))};var f=function(){function a(c,d){this.openings=c;this.closingSelector=d}a.prototype.call=function(a){return new d(a,this.openings,this.closingSelector)};return a}(),d=function(a){function d(g,b,f){a.call(this,g);this.openings=b;this.closingSelector=f;this.contexts=[];this.add(this.openings._subscribe(new c(this)))}h(d,a);d.prototype._next=function(a){for(var c=this.contexts,d=c.length,g=0;g<
d;g++)c[g].buffer.push(a)};d.prototype._error=function(a){for(var c=this.contexts;0<c.length;){var d=c.shift();d.subscription.unsubscribe();d.buffer=null;d.subscription=null}this.contexts=null;this.destination.error(a)};d.prototype._complete=function(){for(var a=this.contexts;0<a.length;){var c=a.shift();this.destination.next(c.buffer);c.subscription.unsubscribe();c.buffer=null;c.subscription=null}this.contexts=null;this.destination.complete()};d.prototype.openBuffer=function(a){var c=this.contexts,
d=m.tryCatch(this.closingSelector)(a);d===l.errorObject?this._error(d.e):(a={buffer:[],subscription:new k.Subscription},c.push(a),c=new g(this,a),c=d._subscribe(c),a.subscription.add(c),this.add(c))};d.prototype.closeBuffer=function(a){var c=this.contexts;if(null!==c){var d=a.subscription;this.destination.next(a.buffer);c.splice(c.indexOf(a),1);this.remove(d);d.unsubscribe()}};return d}(b.Subscriber),c=function(a){function c(d){a.call(this,null);this.parent=d}h(c,a);c.prototype._next=function(a){this.parent.openBuffer(a)};
c.prototype._error=function(a){this.parent.error(a)};c.prototype._complete=function(){};return c}(b.Subscriber),g=function(a){function c(d,g){a.call(this,null);this.parent=d;this.context=g}h(c,a);c.prototype._next=function(){this.parent.closeBuffer(this.context)};c.prototype._error=function(a){this.parent.error(a)};c.prototype._complete=function(){this.parent.closeBuffer(this.context)};return c}(b.Subscriber)},{"../Subscriber":7,"../Subscription":8,"../util/errorObject":230,"../util/tryCatch":241}],
125:[function(a,b,e){var h=this&&this.__extends||function(a,d){function b(){this.constructor=a}for(var f in d)d.hasOwnProperty(f)&&(a[f]=d[f]);a.prototype=null===d?Object.create(d):(b.prototype=d.prototype,new b)};b=a("../Subscriber");var k=a("../util/tryCatch"),m=a("../util/errorObject");e.bufferWhen=function(a){return this.lift(new l(a))};var l=function(){function a(c){this.closingSelector=c}a.prototype.call=function(a){return new f(a,this.closingSelector)};return a}(),f=function(a){function g(d,
g){a.call(this,d);this.closingSelector=g;this.openBuffer()}h(g,a);g.prototype._next=function(a){this.buffer.push(a)};g.prototype._error=function(a){this.buffer=null;this.destination.error(a)};g.prototype._complete=function(){this.destination.next(this.buffer);this.buffer=null;this.destination.complete()};g.prototype.openBuffer=function(){var a=this.closingNotification;a&&(this.remove(a),a.unsubscribe());(a=this.buffer)&&this.destination.next(a);this.buffer=[];a=k.tryCatch(this.closingSelector)();
a===m.errorObject?(a=a.e,this.buffer=null,this.destination.error(a)):this.add(this.closingNotification=a._subscribe(new d(this)))};return g}(b.Subscriber),d=function(a){function d(g){a.call(this,null);this.parent=g}h(d,a);d.prototype._next=function(){this.parent.openBuffer()};d.prototype._error=function(a){this.parent.error(a)};d.prototype._complete=function(){this.parent.openBuffer()};return d}(b.Subscriber)},{"../Subscriber":7,"../util/errorObject":230,"../util/tryCatch":241}],126:[function(a,b,
e){var h=this&&this.__extends||function(a,c){function g(){this.constructor=a}for(var b in c)c.hasOwnProperty(b)&&(a[b]=c[b]);a.prototype=null===c?Object.create(c):(g.prototype=c.prototype,new g)};b=a("../Subscriber");var k=a("../util/tryCatch"),m=a("../util/errorObject");e._catch=function(a){a=new l(a);var c=this.lift(a);return a.caught=c};var l=function(){function a(c){this.selector=c}a.prototype.call=function(a){return new f(a,this.selector,this.caught)};return a}(),f=function(a){function c(c,b,
f){a.call(this,null);this.destination=c;this.selector=b;this.caught=f;this.lastSubscription=this;this.destination.add(this)}h(c,a);c.prototype._next=function(a){this.destination.next(a)};c.prototype._error=function(a){a=k.tryCatch(this.selector)(a,this.caught);a===m.errorObject?this.destination.error(m.errorObject.e):(this.lastSubscription.unsubscribe(),this.lastSubscription=a.subscribe(this.destination))};c.prototype._complete=function(){this.lastSubscription.unsubscribe();this.destination.complete()};
c.prototype._unsubscribe=function(){this.lastSubscription.unsubscribe()};return c}(b.Subscriber)},{"../Subscriber":7,"../util/errorObject":230,"../util/tryCatch":241}],127:[function(a,b,e){var h=a("./combineLatest-support");e.combineAll=function(a){return this.lift(new h.CombineLatestOperator(a))}},{"./combineLatest-support":129}],128:[function(a,b,e){var h=a("../observable/fromArray"),k=a("./combineLatest-support"),m=a("../util/isScheduler"),l=a("../util/isArray");e.combineLatest=function(){for(var a=
[],d=0;d<arguments.length;d++)a[d-0]=arguments[d];var c=d=null;m.isScheduler(a[a.length-1])&&(c=a.pop());"function"===typeof a[a.length-1]&&(d=a.pop());1===a.length&&l.isArray(a[0])&&(a=a[0]);return(new h.ArrayObservable(a,c)).lift(new k.CombineLatestOperator(d))}},{"../observable/fromArray":112,"../util/isArray":231,"../util/isScheduler":235,"./combineLatest-support":129}],129:[function(a,b,e){var h=this&&this.__extends||function(a,c){function g(){this.constructor=a}for(var b in c)c.hasOwnProperty(b)&&
(a[b]=c[b]);a.prototype=null===c?Object.create(c):(g.prototype=c.prototype,new g)},k=a("../util/tryCatch"),m=a("../util/errorObject");b=a("../OuterSubscriber");var l=a("../util/subscribeToResult");a=function(){function a(c){this.project=c}a.prototype.call=function(a){return new f(a,this.project)};return a}();e.CombineLatestOperator=a;var f=function(a){function c(c,b){a.call(this,c);this.project=b;this.active=0;this.values=[];this.observables=[];this.toRespond=[]}h(c,a);c.prototype._next=function(a){var c=
this.toRespond;c.push(c.length);this.observables.push(a)};c.prototype._complete=function(){var a=this.observables,c=a.length;if(0===c)this.destination.complete();else{this.active=c;for(var d=0;d<c;d++){var b=a[d];this.add(l.subscribeToResult(this,b,b,d))}}};c.prototype.notifyComplete=function(a){0===--this.active&&this.destination.complete()};c.prototype.notifyNext=function(a,c,d,b){a=this.values;a[d]=c;c=this.toRespond;0<c.length&&(d=c.indexOf(d),-1!==d&&c.splice(d,1));0===c.length&&(c=this.project,
d=this.destination,c?(a=k.tryCatch(c).apply(this,a),a===m.errorObject?d.error(m.errorObject.e):d.next(a)):d.next(a))};return c}(b.OuterSubscriber);e.CombineLatestSubscriber=f},{"../OuterSubscriber":4,"../util/errorObject":230,"../util/subscribeToResult":239,"../util/tryCatch":241}],130:[function(a,b,e){var h=a("../observable/fromArray"),k=a("./combineLatest-support"),m=a("../util/isArray");e.combineLatest=function(){for(var a=[],b=0;b<arguments.length;b++)a[b-0]=arguments[b];b=null;"function"===typeof a[a.length-
1]&&(b=a.pop());1===a.length&&m.isArray(a[0])&&(a=a[0]);a.unshift(this);return(new h.ArrayObservable(a)).lift(new k.CombineLatestOperator(b))}},{"../observable/fromArray":112,"../util/isArray":231,"./combineLatest-support":129}],131:[function(a,b,e){var h=a("../scheduler/queue"),k=a("./mergeAll-support"),m=a("../observable/fromArray"),l=a("../util/isScheduler");e.concat=function(){for(var a=[],d=0;d<arguments.length;d++)a[d-0]=arguments[d];d=h.queue;l.isScheduler(a[a.length-1])&&(d=a.pop());return(new m.ArrayObservable(a,
d)).lift(new k.MergeAllOperator(1))}},{"../observable/fromArray":112,"../scheduler/queue":216,"../util/isScheduler":235,"./mergeAll-support":159}],132:[function(a,b,e){var h=a("../util/isScheduler"),k=a("../observable/fromArray"),m=a("./mergeAll-support");e.concat=function(){for(var a=[],b=0;b<arguments.length;b++)a[b-0]=arguments[b];a.unshift(this);b=null;h.isScheduler(a[a.length-1])&&(b=a.pop());return(new k.ArrayObservable(a,b)).lift(new m.MergeAllOperator(1))}},{"../observable/fromArray":112,
"../util/isScheduler":235,"./mergeAll-support":159}],133:[function(a,b,e){var h=a("./mergeAll-support");e.concatAll=function(){return this.lift(new h.MergeAllOperator(1))}},{"./mergeAll-support":159}],134:[function(a,b,e){var h=a("./mergeMap-support");e.concatMap=function(a,b){return this.lift(new h.MergeMapOperator(a,b,1))}},{"./mergeMap-support":161}],135:[function(a,b,e){var h=a("./mergeMapTo-support");e.concatMapTo=function(a,b){return this.lift(new h.MergeMapToOperator(a,b,1))}},{"./mergeMapTo-support":163}],
136:[function(a,b,e){var h=this&&this.__extends||function(a,c){function g(){this.constructor=a}for(var b in c)c.hasOwnProperty(b)&&(a[b]=c[b]);a.prototype=null===c?Object.create(c):(g.prototype=c.prototype,new g)};b=a("../Subscriber");var k=a("../util/tryCatch"),m=a("../util/errorObject");e.count=function(a){return this.lift(new l(a,this))};var l=function(){function a(c,d){this.predicate=c;this.source=d}a.prototype.call=function(a){return new f(a,this.predicate,this.source)};return a}(),f=function(a){function c(c,
b,f){a.call(this,c);this.predicate=b;this.source=f;this.index=this.count=0}h(c,a);c.prototype._next=function(a){var c=this.predicate,d=!0;if(c&&(d=k.tryCatch(c)(a,this.index++,this.source),d===m.errorObject)){this.destination.error(d.e);return}d&&(this.count+=1)};c.prototype._complete=function(){this.destination.next(this.count);this.destination.complete()};return c}(b.Subscriber)},{"../Subscriber":7,"../util/errorObject":230,"../util/tryCatch":241}],137:[function(a,b,e){var h=this&&this.__extends||
function(a,c){function d(){this.constructor=a}for(var g in c)c.hasOwnProperty(g)&&(a[g]=c[g]);a.prototype=null===c?Object.create(c):(d.prototype=c.prototype,new d)},k=a("../observable/fromPromise");b=a("../Subscriber");var m=a("../util/tryCatch"),l=a("../util/isPromise"),f=a("../util/errorObject");e.debounce=function(a){return this.lift(new d(a))};var d=function(){function a(c){this.durationSelector=c}a.prototype.call=function(a){return new c(a,this.durationSelector)};return a}(),c=function(a){function c(d,
g){a.call(this,d);this.durationSelector=g;this.lastValue=this.debouncedSubscription=null;this._index=0}h(c,a);Object.defineProperty(c.prototype,"index",{get:function(){return this._index},enumerable:!0,configurable:!0});c.prototype._next=function(a){var c=this.destination,d=++this._index,b=m.tryCatch(this.durationSelector)(a);b===f.errorObject?c.error(f.errorObject.e):(l.isPromise(b)&&(b=k.PromiseObservable.create(b)),this.lastValue=a,this.clearDebounce(),this.add(this.debouncedSubscription=b._subscribe(new g(this,
d))))};c.prototype._complete=function(){this.debouncedNext();this.destination.complete()};c.prototype.debouncedNext=function(){this.clearDebounce();null!=this.lastValue&&(this.destination.next(this.lastValue),this.lastValue=null)};c.prototype.clearDebounce=function(){var a=this.debouncedSubscription;a&&(a.unsubscribe(),this.remove(a),this.debouncedSubscription=null)};return c}(b.Subscriber),g=function(a){function c(d,g){a.call(this,null);this.parent=d;this.currentIndex=g}h(c,a);c.prototype.debounceNext=
function(){var a=this.parent;this.currentIndex===a.index&&(a.debouncedNext(),this.isUnsubscribed||this.unsubscribe())};c.prototype._next=function(a){this.debounceNext()};c.prototype._error=function(a){this.parent.error(a)};c.prototype._complete=function(){this.debounceNext()};return c}(b.Subscriber)},{"../Subscriber":7,"../observable/fromPromise":115,"../util/errorObject":230,"../util/isPromise":234,"../util/tryCatch":241}],138:[function(a,b,e){function h(a){a.debouncedNext()}var k=this&&this.__extends||
function(a,c){function g(){this.constructor=a}for(var b in c)c.hasOwnProperty(b)&&(a[b]=c[b]);a.prototype=null===c?Object.create(c):(g.prototype=c.prototype,new g)};b=a("../Subscriber");var m=a("../scheduler/asap");e.debounceTime=function(a,c){void 0===c&&(c=m.asap);return this.lift(new l(a,c))};var l=function(){function a(c,d){this.dueTime=c;this.scheduler=d}a.prototype.call=function(a){return new f(a,this.dueTime,this.scheduler)};return a}(),f=function(a){function c(c,b,f){a.call(this,c);this.dueTime=
b;this.scheduler=f;this.lastValue=this.debouncedSubscription=null}k(c,a);c.prototype._next=function(a){this.clearDebounce();this.lastValue=a;this.add(this.debouncedSubscription=this.scheduler.schedule(h,this.dueTime,this))};c.prototype._complete=function(){this.debouncedNext();this.destination.complete()};c.prototype.debouncedNext=function(){this.clearDebounce();null!=this.lastValue&&(this.destination.next(this.lastValue),this.lastValue=null)};c.prototype.clearDebounce=function(){var a=this.debouncedSubscription;
null!==a&&(this.remove(a),a.unsubscribe(),this.debouncedSubscription=null)};return c}(b.Subscriber)},{"../Subscriber":7,"../scheduler/asap":215}],139:[function(a,b,e){var h=this&&this.__extends||function(a,b){function d(){this.constructor=a}for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c]);a.prototype=null===b?Object.create(b):(d.prototype=b.prototype,new d)};a=a("../Subscriber");e.defaultIfEmpty=function(a){void 0===a&&(a=null);return this.lift(new k(a))};var k=function(){function a(b){this.defaultValue=
b}a.prototype.call=function(a){return new m(a,this.defaultValue)};return a}(),m=function(a){function b(d,c){a.call(this,d);this.defaultValue=c;this.isEmpty=!0}h(b,a);b.prototype._next=function(a){this.isEmpty=!1;this.destination.next(a)};b.prototype._complete=function(){this.isEmpty&&this.destination.next(this.defaultValue);this.destination.complete()};return b}(a.Subscriber)},{"../Subscriber":7}],140:[function(a,b,e){var h=this&&this.__extends||function(a,c){function d(){this.constructor=a}for(var b in c)c.hasOwnProperty(b)&&
(a[b]=c[b]);a.prototype=null===c?Object.create(c):(d.prototype=c.prototype,new d)};b=a("../Subscriber");var k=a("../Notification"),m=a("../scheduler/queue"),l=a("../util/isDate");e.delay=function(a,c){void 0===c&&(c=m.queue);var d=l.isDate(a)?+a-c.now():a;return this.lift(new f(d,c))};var f=function(){function a(c,d){this.delay=c;this.scheduler=d}a.prototype.call=function(a){return new d(a,this.delay,this.scheduler)};return a}(),d=function(a){function d(c,b,f){a.call(this,c);this.delay=b;this.scheduler=
f;this.queue=[];this.errored=this.active=!1}h(d,a);d.dispatch=function(a){for(var c=a.source,d=c.queue,b=a.scheduler,g=a.destination;0<d.length&&0>=d[0].time-b.now();)d.shift().notification.observe(g);0<d.length?(c=Math.max(0,d[0].time-b.now()),this.schedule(a,c)):c.active=!1};d.prototype._schedule=function(a){this.active=!0;this.add(a.schedule(d.dispatch,this.delay,{source:this,destination:this.destination,scheduler:a}))};d.prototype.scheduleNotification=function(a){if(!0!==this.errored){var d=this.scheduler;
a=new c(d.now()+this.delay,a);this.queue.push(a);!1===this.active&&this._schedule(d)}};d.prototype._next=function(a){this.scheduleNotification(k.Notification.createNext(a))};d.prototype._error=function(a){this.errored=!0;this.queue=[];this.destination.error(a)};d.prototype._complete=function(){this.scheduleNotification(k.Notification.createComplete())};return d}(b.Subscriber),c=function(){return function(a,c){this.time=a;this.notification=c}}()},{"../Notification":2,"../Subscriber":7,"../scheduler/queue":216,
"../util/isDate":232}],141:[function(a,b,e){var h=this&&this.__extends||function(a,b){function d(){this.constructor=a}for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c]);a.prototype=null===b?Object.create(b):(d.prototype=b.prototype,new d)};a=a("../Subscriber");e.dematerialize=function(){return this.lift(new k)};var k=function(){function a(){}a.prototype.call=function(a){return new m(a)};return a}(),m=function(a){function b(d){a.call(this,d)}h(b,a);b.prototype._next=function(a){a.observe(this.destination)};
return b}(a.Subscriber)},{"../Subscriber":7}],142:[function(a,b,e){var h=this&&this.__extends||function(a,c){function b(){this.constructor=a}for(var f in c)c.hasOwnProperty(f)&&(a[f]=c[f]);a.prototype=null===c?Object.create(c):(b.prototype=c.prototype,new b)};b=a("../Subscriber");var k=a("../util/tryCatch"),m=a("../util/errorObject");e.distinctUntilChanged=function(a){return this.lift(new l(a))};var l=function(){function a(c){this.compare=c}a.prototype.call=function(a){return new f(a,this.compare)};
return a}(),f=function(a){function c(c,b){a.call(this,c);this.hasValue=!1;"function"===typeof b&&(this.compare=b)}h(c,a);c.prototype.compare=function(a,c){return a===c};c.prototype._next=function(a){var c=!1;if(this.hasValue){if(c=k.tryCatch(this.compare)(this.value,a),c===m.errorObject){this.destination.error(m.errorObject.e);return}}else this.hasValue=!0;!1===Boolean(c)&&(this.value=a,this.destination.next(a))};return c}(b.Subscriber)},{"../Subscriber":7,"../util/errorObject":230,"../util/tryCatch":241}],
143:[function(a,b,e){var h=this&&this.__extends||function(a,d){function b(){this.constructor=a}for(var f in d)d.hasOwnProperty(f)&&(a[f]=d[f]);a.prototype=null===d?Object.create(d):(b.prototype=d.prototype,new b)};b=a("../Subscriber");var k=a("../util/noop"),m=a("../util/tryCatch"),l=a("../util/errorObject");e._do=function(a,d,b){var l;a&&"object"===typeof a?(l=a.next,d=a.error,b=a.complete):l=a;return this.lift(new f(l||k.noop,d||k.noop,b||k.noop))};var f=function(){function a(c,d,b){this.next=c;
this.error=d;this.complete=b}a.prototype.call=function(a){return new d(a,this.next,this.error,this.complete)};return a}(),d=function(a){function d(b,g,f,l){a.call(this,b);this.__next=g;this.__error=f;this.__complete=l}h(d,a);d.prototype._next=function(a){m.tryCatch(this.__next)(a)===l.errorObject?this.destination.error(l.errorObject.e):this.destination.next(a)};d.prototype._error=function(a){m.tryCatch(this.__error)(a)===l.errorObject?this.destination.error(l.errorObject.e):this.destination.error(a)};
d.prototype._complete=function(){m.tryCatch(this.__complete)()===l.errorObject?this.destination.error(l.errorObject.e):this.destination.complete()};return d}(b.Subscriber)},{"../Subscriber":7,"../util/errorObject":230,"../util/noop":236,"../util/tryCatch":241}],144:[function(a,b,e){var h=this&&this.__extends||function(a,c){function d(){this.constructor=a}for(var b in c)c.hasOwnProperty(b)&&(a[b]=c[b]);a.prototype=null===c?Object.create(c):(d.prototype=c.prototype,new d)},k=a("../observable/ScalarObservable"),
m=a("../observable/fromArray"),l=a("../observable/throw");b=a("../Subscriber");var f=a("../util/tryCatch"),d=a("../util/errorObject");e.every=function(a,b){var g;return this._isScalar?(g=f.tryCatch(a).call(b||this,this.value,0,this),g===d.errorObject?new l.ErrorObservable(d.errorObject.e,this.scheduler):new k.ScalarObservable(g,this.scheduler)):this instanceof m.ArrayObservable?(g=this.array,g=f.tryCatch(function(a,c,d){return a.every(c,d)})(g,a,b),g===d.errorObject?new l.ErrorObservable(d.errorObject.e,
this.scheduler):new k.ScalarObservable(g,this.scheduler)):this.lift(new c(a,b,this))};var c=function(){function a(c,d,b){this.predicate=c;this.thisArg=d;this.source=b}a.prototype.call=function(a){return new g(a,this.predicate,this.thisArg,this.source)};return a}(),g=function(a){function c(d,b,g,f){a.call(this,d);this.predicate=b;this.thisArg=g;this.source=f;this.index=0}h(c,a);c.prototype.notifyComplete=function(a){this.destination.next(a);this.destination.complete()};c.prototype._next=function(a){a=
f.tryCatch(this.predicate).call(this.thisArg||this,a,this.index++,this.source);a===d.errorObject?this.destination.error(a.e):a||this.notifyComplete(!1)};c.prototype._complete=function(){this.notifyComplete(!0)};return c}(b.Subscriber)},{"../Subscriber":7,"../observable/ScalarObservable":105,"../observable/fromArray":112,"../observable/throw":119,"../util/errorObject":230,"../util/tryCatch":241}],145:[function(a,b,e){var h=this&&this.__extends||function(a,c){function b(){this.constructor=a}for(var f in c)c.hasOwnProperty(f)&&
(a[f]=c[f]);a.prototype=null===c?Object.create(c):(b.prototype=c.prototype,new b)},k=a("../util/tryCatch"),m=a("../util/errorObject");b=a("../OuterSubscriber");var l=a("../util/subscribeToResult");a=function(){function a(c,d,b){this.project=c;this.concurrent=d;this.scheduler=b}a.prototype.call=function(a){return new f(a,this.project,this.concurrent,this.scheduler)};return a}();e.ExpandOperator=a;var f=function(a){function c(c,b,f,l){a.call(this,c);this.project=b;this.concurrent=f;this.scheduler=l;
this.active=this.index=0;this.hasCompleted=!1;f<Number.POSITIVE_INFINITY&&(this.buffer=[])}h(c,a);c.dispatch=function(a){a.subscriber.subscribeToProjection(a.result,a.value,a.index)};c.prototype._next=function(a){var d=this.destination;if(d.isUnsubscribed)this._complete();else{var b=this.index++;if(this.active<this.concurrent){d.next(a);var f=k.tryCatch(this.project)(a,b);f===m.errorObject?d.error(f.e):this.scheduler?this.add(this.scheduler.schedule(c.dispatch,0,{subscriber:this,result:f,value:a,
index:b})):this.subscribeToProjection(f,a,b)}else this.buffer.push(a)}};c.prototype.subscribeToProjection=function(a,c,d){a._isScalar?this._next(a.value):(this.active++,this.add(l.subscribeToResult(this,a,c,d)))};c.prototype._complete=function(){(this.hasCompleted=!0,0===this.active)&&this.destination.complete()};c.prototype.notifyComplete=function(a){var c=this.buffer;this.remove(a);this.active--;c&&0<c.length&&this._next(c.shift());this.hasCompleted&&0===this.active&&this.destination.complete()};
c.prototype.notifyNext=function(a,c,d,b){this._next(c)};return c}(b.OuterSubscriber);e.ExpandSubscriber=f},{"../OuterSubscriber":4,"../util/errorObject":230,"../util/subscribeToResult":239,"../util/tryCatch":241}],146:[function(a,b,e){var h=a("./expand-support");e.expand=function(a,b,l){void 0===b&&(b=Number.POSITIVE_INFINITY);void 0===l&&(l=void 0);b=1>(b||0)?Number.POSITIVE_INFINITY:b;return this.lift(new h.ExpandOperator(a,b,l))}},{"./expand-support":145}],147:[function(a,b,e){var h=this&&this.__extends||
function(a,c){function b(){this.constructor=a}for(var f in c)c.hasOwnProperty(f)&&(a[f]=c[f]);a.prototype=null===c?Object.create(c):(b.prototype=c.prototype,new b)};b=a("../Subscriber");var k=a("../util/tryCatch"),m=a("../util/errorObject");e.filter=function(a,c){return this.lift(new l(a,c))};var l=function(){function a(c,d){this.select=c;this.thisArg=d}a.prototype.call=function(a){return new f(a,this.select,this.thisArg)};return a}(),f=function(a){function c(c,b,f){a.call(this,c);this.thisArg=f;
this.count=0;this.select=b}h(c,a);c.prototype._next=function(a){var c=k.tryCatch(this.select).call(this.thisArg||this,a,this.count++);c===m.errorObject?this.destination.error(m.errorObject.e):Boolean(c)&&this.destination.next(a)};return c}(b.Subscriber)},{"../Subscriber":7,"../util/errorObject":230,"../util/tryCatch":241}],148:[function(a,b,e){var h=this&&this.__extends||function(a,d){function c(){this.constructor=a}for(var b in d)d.hasOwnProperty(b)&&(a[b]=d[b]);a.prototype=null===d?Object.create(d):
(c.prototype=d.prototype,new c)};b=a("../Subscriber");var k=a("../Subscription");e._finally=function(a){return this.lift(new m(a))};var m=function(){function a(d){this.finallySelector=d}a.prototype.call=function(a){return new l(a,this.finallySelector)};return a}(),l=function(a){function d(c,d){a.call(this,c);this.add(new k.Subscription(d))}h(d,a);return d}(b.Subscriber)},{"../Subscriber":7,"../Subscription":8}],149:[function(a,b,e){var h=this&&this.__extends||function(a,d){function b(){this.constructor=
a}for(var f in d)d.hasOwnProperty(f)&&(a[f]=d[f]);a.prototype=null===d?Object.create(d):(b.prototype=d.prototype,new b)};b=a("../Subscriber");var k=a("../util/tryCatch"),m=a("../util/errorObject"),l=a("../util/EmptyError");e.first=function(a,d,b){return this.lift(new f(a,d,b,this))};var f=function(){function a(c,d,b,f){this.predicate=c;this.resultSelector=d;this.defaultValue=b;this.source=f}a.prototype.call=function(a){return new d(a,this.predicate,this.resultSelector,this.defaultValue,this.source)};
return a}(),d=function(a){function d(b,g,f,l,e){a.call(this,b);this.predicate=g;this.resultSelector=f;this.defaultValue=l;this.source=e;this.index=0;this.hasCompleted=!1}h(d,a);d.prototype._next=function(a){var c=this.destination,d=this.predicate,b=this.resultSelector,g=this.index++,f=!0;if(d&&(f=k.tryCatch(d)(a,g,this.source),f===m.errorObject)){c.error(m.errorObject.e);return}if(f){if(b&&(a=k.tryCatch(b)(a,g),a===m.errorObject)){c.error(m.errorObject.e);return}c.next(a);c.complete();this.hasCompleted=
!0}};d.prototype._complete=function(){var a=this.destination;this.hasCompleted||"undefined"===typeof this.defaultValue?this.hasCompleted||a.error(new l.EmptyError):(a.next(this.defaultValue),a.complete())};return d}(b.Subscriber)},{"../Subscriber":7,"../util/EmptyError":223,"../util/errorObject":230,"../util/tryCatch":241}],150:[function(a,b,e){var h=this&&this.__extends||function(a,b){function d(){this.constructor=a}for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c]);a.prototype=null===b?Object.create(b):
(d.prototype=b.prototype,new d)},k=a("../Subscription");a=a("../Observable");b=function(a){function b(){a.call(this);this.attemptedToUnsubscribePrimary=!1;this.count=0}h(b,a);b.prototype.setPrimary=function(a){this.primary=a};b.prototype.unsubscribe=function(){this.isUnsubscribed||this.attemptedToUnsubscribePrimary||(this.attemptedToUnsubscribePrimary=!0,0===this.count&&(a.prototype.unsubscribe.call(this),this.primary.unsubscribe()))};return b}(k.Subscription);e.RefCountSubscription=b;a=function(a){function b(d,
c,g){a.call(this);this.key=d;this.groupSubject=c;this.refCountSubscription=g}h(b,a);b.prototype._subscribe=function(a){var c=new k.Subscription;this.refCountSubscription&&!this.refCountSubscription.isUnsubscribed&&c.add(new m(this.refCountSubscription));c.add(this.groupSubject.subscribe(a));return c};return b}(a.Observable);e.GroupedObservable=a;var m=function(a){function b(d){a.call(this);this.parent=d;d.count++}h(b,a);b.prototype.unsubscribe=function(){this.parent.isUnsubscribed||this.isUnsubscribed||
(a.prototype.unsubscribe.call(this),this.parent.count--,0===this.parent.count&&this.parent.attemptedToUnsubscribePrimary&&(this.parent.unsubscribe(),this.parent.primary.unsubscribe()))};return b}(k.Subscription);e.InnerRefCountSubscription=m},{"../Observable":3,"../Subscription":8}],151:[function(a,b,e){var h=this&&this.__extends||function(a,c){function d(){this.constructor=a}for(var b in c)c.hasOwnProperty(b)&&(a[b]=c[b]);a.prototype=null===c?Object.create(c):(d.prototype=c.prototype,new d)};b=a("../Subscriber");
var k=a("../Observable"),m=a("../Subject"),l=a("../util/Map"),f=a("../util/FastMap"),d=a("./groupBy-support"),c=a("../util/tryCatch"),g=a("../util/errorObject");e.groupBy=function(a,c,d){return new n(this,a,c,d)};var n=function(a){function c(d,b,g,f){a.call(this);this.source=d;this.keySelector=b;this.elementSelector=g;this.durationSelector=f}h(c,a);c.prototype._subscribe=function(a){var c=new d.RefCountSubscription;a=new p(a,c,this.keySelector,this.elementSelector,this.durationSelector);c.setPrimary(this.source.subscribe(a));
return c};return c}(k.Observable);e.GroupByObservable=n;var p=function(a){function b(c,d,g,f,n){a.call(this);this.refCountSubscription=d;this.keySelector=g;this.elementSelector=f;this.durationSelector=n;this.groups=null;this.destination=c;this.add(c)}h(b,a);b.prototype._next=function(a){var b=c.tryCatch(this.keySelector)(a);if(b===g.errorObject)this.error(b.e);else{var n=this.groups,e=this.elementSelector,k=this.durationSelector;n||(n=this.groups="string"===typeof b?new f.FastMap:new l.Map);var h=
n.get(b);h||(n.set(b,h=new m.Subject),n=new d.GroupedObservable(b,h,this.refCountSubscription),k&&(k=c.tryCatch(k)(new d.GroupedObservable(b,h)),k===g.errorObject?this.error(k.e):this.add(k._subscribe(new q(b,h,this)))),this.destination.next(n));e?(a=c.tryCatch(e)(a),a===g.errorObject?this.error(a.e):h.next(a)):h.next(a)}};b.prototype._error=function(a){var c=this,b=this.groups;b&&b.forEach(function(b,d){b.error(a);c.removeGroup(d)});this.destination.error(a)};b.prototype._complete=function(){var a=
this,c=this.groups;c&&c.forEach(function(c,b){c.complete();a.removeGroup(c)});this.destination.complete()};b.prototype.removeGroup=function(a){this.groups.delete(a)};return b}(b.Subscriber),q=function(a){function c(b,d,g){a.call(this,null);this.key=b;this.group=d;this.parent=g}h(c,a);c.prototype._next=function(a){this.group.complete();this.parent.removeGroup(this.key)};c.prototype._error=function(a){this.group.error(a);this.parent.removeGroup(this.key)};c.prototype._complete=function(){this.group.complete();
this.parent.removeGroup(this.key)};return c}(b.Subscriber)},{"../Observable":3,"../Subject":6,"../Subscriber":7,"../util/FastMap":224,"../util/Map":226,"../util/errorObject":230,"../util/tryCatch":241,"./groupBy-support":150}],152:[function(a,b,e){var h=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var g in b)b.hasOwnProperty(g)&&(a[g]=b[g]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};b=a("../Subscriber");var k=a("../util/noop");e.ignoreElements=
function(){return this.lift(new m)};var m=function(){function a(){}a.prototype.call=function(a){return new l(a)};return a}(),l=function(a){function b(){a.apply(this,arguments)}h(b,a);b.prototype._next=function(a){k.noop()};return b}(b.Subscriber)},{"../Subscriber":7,"../util/noop":236}],153:[function(a,b,e){var h=this&&this.__extends||function(a,b){function d(){this.constructor=a}for(var f in b)b.hasOwnProperty(f)&&(a[f]=b[f]);a.prototype=null===b?Object.create(b):(d.prototype=b.prototype,new d)};
b=a("../Subscriber");var k=a("../util/tryCatch"),m=a("../util/errorObject"),l=a("../util/EmptyError");e.last=function(a,b,d){return this.lift(new f(a,b,d,this))};var f=function(){function a(c,b,d,f){this.predicate=c;this.resultSelector=b;this.defaultValue=d;this.source=f}a.prototype.call=function(a){return new d(a,this.predicate,this.resultSelector,this.defaultValue,this.source)};return a}(),d=function(a){function b(d,g,f,e,l){a.call(this,d);this.predicate=g;this.resultSelector=f;this.defaultValue=
e;this.source=l;this.hasValue=!1;this.index=0;"undefined"!==typeof e&&(this.lastValue=e,this.hasValue=!0)}h(b,a);b.prototype._next=function(a){var c=this.predicate,b=this.resultSelector,d=this.destination,g=this.index++;if(c)if(c=k.tryCatch(c)(a,g,this.source),c===m.errorObject)d.error(m.errorObject.e);else{if(c){if(b&&(a=k.tryCatch(b)(a,g),a===m.errorObject)){d.error(m.errorObject.e);return}this.lastValue=a;this.hasValue=!0}}else this.lastValue=a,this.hasValue=!0};b.prototype._complete=function(){var a=
this.destination;this.hasValue?(a.next(this.lastValue),a.complete()):a.error(new l.EmptyError)};return b}(b.Subscriber)},{"../Subscriber":7,"../util/EmptyError":223,"../util/errorObject":230,"../util/tryCatch":241}],154:[function(a,b,e){var h=this&&this.__extends||function(a,c){function b(){this.constructor=a}for(var f in c)c.hasOwnProperty(f)&&(a[f]=c[f]);a.prototype=null===c?Object.create(c):(b.prototype=c.prototype,new b)};b=a("../Subscriber");var k=a("../util/tryCatch"),m=a("../util/errorObject");
e.map=function(a,c){if("function"!==typeof a)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return this.lift(new l(a,c))};var l=function(){function a(c,b){this.project=c;this.thisArg=b}a.prototype.call=function(a){return new f(a,this.project,this.thisArg)};return a}(),f=function(a){function c(c,b,f){a.call(this,c);this.project=b;this.thisArg=f;this.count=0}h(c,a);c.prototype._next=function(a){a=k.tryCatch(this.project).call(this.thisArg||this,a,this.count++);a===
m.errorObject?this.error(m.errorObject.e):this.destination.next(a)};return c}(b.Subscriber)},{"../Subscriber":7,"../util/errorObject":230,"../util/tryCatch":241}],155:[function(a,b,e){var h=this&&this.__extends||function(a,b){function d(){this.constructor=a}for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c]);a.prototype=null===b?Object.create(b):(d.prototype=b.prototype,new d)};a=a("../Subscriber");e.mapTo=function(a){return this.lift(new k(a))};var k=function(){function a(b){this.value=b}a.prototype.call=
function(a){return new m(a,this.value)};return a}(),m=function(a){function b(d,c){a.call(this,d);this.value=c}h(b,a);b.prototype._next=function(a){this.destination.next(this.value)};return b}(a.Subscriber)},{"../Subscriber":7}],156:[function(a,b,e){var h=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var g in b)b.hasOwnProperty(g)&&(a[g]=b[g]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};b=a("../Subscriber");var k=a("../Notification");e.materialize=
function(){return this.lift(new m)};var m=function(){function a(){}a.prototype.call=function(a){return new l(a)};return a}(),l=function(a){function b(c){a.call(this,c)}h(b,a);b.prototype._next=function(a){this.destination.next(k.Notification.createNext(a))};b.prototype._error=function(a){var b=this.destination;b.next(k.Notification.createError(a));b.complete()};b.prototype._complete=function(){var a=this.destination;a.next(k.Notification.createComplete());a.complete()};return b}(b.Subscriber)},{"../Notification":2,
"../Subscriber":7}],157:[function(a,b,e){var h=a("../observable/fromArray"),k=a("./mergeAll-support"),m=a("../scheduler/queue"),l=a("../util/isScheduler");e.merge=function(){for(var a=[],b=0;b<arguments.length;b++)a[b-0]=arguments[b];var b=Number.POSITIVE_INFINITY,c=m.queue,g=a[a.length-1];l.isScheduler(g)?(c=a.pop(),1<a.length&&"number"===typeof a[a.length-1]&&(b=a.pop())):"number"===typeof g&&(b=a.pop());return 1===a.length?a[0]:(new h.ArrayObservable(a,c)).lift(new k.MergeAllOperator(b))}},{"../observable/fromArray":112,
"../scheduler/queue":216,"../util/isScheduler":235,"./mergeAll-support":159}],158:[function(a,b,e){var h=a("./merge-static");e.merge=function(){for(var a=[],b=0;b<arguments.length;b++)a[b-0]=arguments[b];a.unshift(this);return h.merge.apply(this,a)}},{"./merge-static":157}],159:[function(a,b,e){var h=this&&this.__extends||function(a,b){function d(){this.constructor=a}for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c]);a.prototype=null===b?Object.create(b):(d.prototype=b.prototype,new d)};b=a("../OuterSubscriber");
var k=a("../util/subscribeToResult");a=function(){function a(b){this.concurrent=b}a.prototype.call=function(a){return new m(a,this.concurrent)};return a}();e.MergeAllOperator=a;var m=function(a){function b(d,c){a.call(this,d);this.concurrent=c;this.hasCompleted=!1;this.buffer=[];this.active=0}h(b,a);b.prototype._next=function(a){this.active<this.concurrent?a._isScalar?this.destination.next(a.value):(this.active++,this.add(k.subscribeToResult(this,a))):this.buffer.push(a)};b.prototype._complete=function(){this.hasCompleted=
!0;0===this.active&&0===this.buffer.length&&this.destination.complete()};b.prototype.notifyComplete=function(a){var c=this.buffer;this.remove(a);this.active--;0<c.length?this._next(c.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()};return b}(b.OuterSubscriber);e.MergeAllSubscriber=m},{"../OuterSubscriber":4,"../util/subscribeToResult":239}],160:[function(a,b,e){var h=a("./mergeAll-support");e.mergeAll=function(a){void 0===a&&(a=Number.POSITIVE_INFINITY);return this.lift(new h.MergeAllOperator(a))}},
{"./mergeAll-support":159}],161:[function(a,b,e){var h=this&&this.__extends||function(a,c){function b(){this.constructor=a}for(var f in c)c.hasOwnProperty(f)&&(a[f]=c[f]);a.prototype=null===c?Object.create(c):(b.prototype=c.prototype,new b)},k=a("../util/tryCatch"),m=a("../util/errorObject"),l=a("../util/subscribeToResult");a=a("../OuterSubscriber");b=function(){function a(c,b,d){void 0===d&&(d=Number.POSITIVE_INFINITY);this.project=c;this.resultSelector=b;this.concurrent=d}a.prototype.call=function(a){return new f(a,
this.project,this.resultSelector,this.concurrent)};return a}();e.MergeMapOperator=b;var f=function(a){function c(c,b,f,e){void 0===e&&(e=Number.POSITIVE_INFINITY);a.call(this,c);this.project=b;this.resultSelector=f;this.concurrent=e;this.hasCompleted=!1;this.buffer=[];this.index=this.active=0}h(c,a);c.prototype._next=function(a){if(this.active<this.concurrent){var c=this.index++,b=k.tryCatch(this.project)(a,c),d=this.destination;b===m.errorObject?d.error(b.e):(this.active++,this._innerSub(b,a,c))}else this.buffer.push(a)};
c.prototype._innerSub=function(a,c,b){this.add(l.subscribeToResult(this,a,c,b))};c.prototype._complete=function(){this.hasCompleted=!0;0===this.active&&0===this.buffer.length&&this.destination.complete()};c.prototype.notifyNext=function(a,c,b,d){var f=this.destination,e=this.resultSelector;e?(a=k.tryCatch(e)(a,c,b,d),a===m.errorObject?f.error(m.errorObject.e):f.next(a)):f.next(c)};c.prototype.notifyComplete=function(a){var c=this.buffer;this.remove(a);this.active--;0<c.length?this._next(c.shift()):
0===this.active&&this.hasCompleted&&this.destination.complete()};return c}(a.OuterSubscriber);e.MergeMapSubscriber=f},{"../OuterSubscriber":4,"../util/errorObject":230,"../util/subscribeToResult":239,"../util/tryCatch":241}],162:[function(a,b,e){var h=a("./mergeMap-support");e.mergeMap=function(a,b,e){void 0===e&&(e=Number.POSITIVE_INFINITY);return this.lift(new h.MergeMapOperator(a,b,e))}},{"./mergeMap-support":161}],163:[function(a,b,e){var h=this&&this.__extends||function(a,c){function b(){this.constructor=
a}for(var f in c)c.hasOwnProperty(f)&&(a[f]=c[f]);a.prototype=null===c?Object.create(c):(b.prototype=c.prototype,new b)},k=a("../util/tryCatch"),m=a("../util/errorObject");b=a("../OuterSubscriber");var l=a("../util/subscribeToResult");a=function(){function a(c,b,d){void 0===d&&(d=Number.POSITIVE_INFINITY);this.ish=c;this.resultSelector=b;this.concurrent=d}a.prototype.call=function(a){return new f(a,this.ish,this.resultSelector,this.concurrent)};return a}();e.MergeMapToOperator=a;var f=function(a){function c(c,
b,f,e){void 0===e&&(e=Number.POSITIVE_INFINITY);a.call(this,c);this.ish=b;this.resultSelector=f;this.concurrent=e;this.hasCompleted=!1;this.buffer=[];this.index=this.active=0}h(c,a);c.prototype._next=function(a){if(this.active<this.concurrent){var c=this.resultSelector,b=this.index++,d=this.ish,f=this.destination;this.active++;this._innerSub(d,f,c,a,b)}else this.buffer.push(a)};c.prototype._innerSub=function(a,c,b,d,f){this.add(l.subscribeToResult(this,a,d,f))};c.prototype._complete=function(){this.hasCompleted=
!0;0===this.active&&0===this.buffer.length&&this.destination.complete()};c.prototype.notifyNext=function(a,c,b,d){var f=this.resultSelector,e=this.destination;f?(a=k.tryCatch(f)(a,c,b,d),a===m.errorObject?e.error(m.errorObject.e):e.next(a)):e.next(c)};c.prototype.notifyError=function(a){this.destination.error(a)};c.prototype.notifyComplete=function(a){var c=this.buffer;this.remove(a);this.active--;0<c.length?this._next(c.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()};return c}(b.OuterSubscriber);
e.MergeMapToSubscriber=f},{"../OuterSubscriber":4,"../util/errorObject":230,"../util/subscribeToResult":239,"../util/tryCatch":241}],164:[function(a,b,e){var h=a("./mergeMapTo-support");e.mergeMapTo=function(a,b,e){void 0===e&&(e=Number.POSITIVE_INFINITY);return this.lift(new h.MergeMapToOperator(a,b,e))}},{"./mergeMapTo-support":163}],165:[function(a,b,e){var h=a("../observable/ConnectableObservable");e.multicast=function(a){return new h.ConnectableObservable(this,"function"===typeof a?a:function(){return a})}},
{"../observable/ConnectableObservable":103}],166:[function(a,b,e){var h=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var g in b)b.hasOwnProperty(g)&&(a[g]=b[g]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};b=a("../Subscriber");var k=a("../Notification");a=function(){function a(b,c){void 0===c&&(c=0);this.scheduler=b;this.delay=c}a.prototype.call=function(a){return new m(a,this.scheduler,this.delay)};return a}();e.ObserveOnOperator=a;var m=function(a){function b(c,
d,n){void 0===n&&(n=0);a.call(this,c);this.scheduler=d;this.delay=n}h(b,a);b.dispatch=function(a){a.notification.observe(a.destination)};b.prototype.scheduleMessage=function(a){this.add(this.scheduler.schedule(b.dispatch,this.delay,new l(a,this.destination)))};b.prototype._next=function(a){this.scheduleMessage(k.Notification.createNext(a))};b.prototype._error=function(a){this.scheduleMessage(k.Notification.createError(a))};b.prototype._complete=function(){this.scheduleMessage(k.Notification.createComplete())};
return b}(b.Subscriber);e.ObserveOnSubscriber=m;var l=function(){return function(a,b){this.notification=a;this.destination=b}}()},{"../Notification":2,"../Subscriber":7}],167:[function(a,b,e){var h=a("./observeOn-support");e.observeOn=function(a,b){void 0===b&&(b=0);return this.lift(new h.ObserveOnOperator(a,b))}},{"./observeOn-support":166}],168:[function(a,b,e){var h=a("../util/not"),k=a("./filter");e.partition=function(a,b){return[k.filter.call(this,a),k.filter.call(this,h.not(a,b))]}},{"../util/not":237,
"./filter":147}],169:[function(a,b,e){var h=a("../Subject"),k=a("./multicast");e.publish=function(){return k.multicast.call(this,new h.Subject)}},{"../Subject":6,"./multicast":165}],170:[function(a,b,e){var h=a("../subject/BehaviorSubject"),k=a("./multicast");e.publishBehavior=function(a){return k.multicast.call(this,new h.BehaviorSubject(a))}},{"../subject/BehaviorSubject":218,"./multicast":165}],171:[function(a,b,e){var h=a("../subject/AsyncSubject"),k=a("./multicast");e.publishLast=function(){return k.multicast.call(this,
new h.AsyncSubject)}},{"../subject/AsyncSubject":217,"./multicast":165}],172:[function(a,b,e){var h=a("../subject/ReplaySubject"),k=a("./multicast");e.publishReplay=function(a,b,f){void 0===a&&(a=Number.POSITIVE_INFINITY);void 0===b&&(b=Number.POSITIVE_INFINITY);return k.multicast.call(this,new h.ReplaySubject(a,b,f))}},{"../subject/ReplaySubject":219,"./multicast":165}],173:[function(a,b,e){var h=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var g in b)b.hasOwnProperty(g)&&
(a[g]=b[g]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};b=a("../Subscriber");var k=a("../util/tryCatch"),m=a("../util/errorObject");a=function(){function a(b,c){this.project=b;this.seed=c}a.prototype.call=function(a){return new l(a,this.project,this.seed)};return a}();e.ReduceOperator=a;var l=function(a){function b(c,d,n){a.call(this,c);this.hasValue=!1;this.acc=n;this.project=d;this.hasSeed="undefined"!==typeof n}h(b,a);b.prototype._next=function(a){this.hasValue||(this.hasValue=
this.hasSeed)?(a=k.tryCatch(this.project).call(this,this.acc,a),a===m.errorObject?this.destination.error(m.errorObject.e):this.acc=a):(this.acc=a,this.hasValue=!0)};b.prototype._complete=function(){(this.hasValue||this.hasSeed)&&this.destination.next(this.acc);this.destination.complete()};return b}(b.Subscriber);e.ReduceSubscriber=l},{"../Subscriber":7,"../util/errorObject":230,"../util/tryCatch":241}],174:[function(a,b,e){var h=a("./reduce-support");e.reduce=function(a,b){return this.lift(new h.ReduceOperator(a,
b))}},{"./reduce-support":173}],175:[function(a,b,e){var h=this&&this.__extends||function(a,c){function b(){this.constructor=a}for(var f in c)c.hasOwnProperty(f)&&(a[f]=c[f]);a.prototype=null===c?Object.create(c):(b.prototype=c.prototype,new b)};b=a("../Subscriber");var k=a("../observable/empty");e.repeat=function(a){void 0===a&&(a=-1);return 0===a?new k.EmptyObservable:this.lift(new m(a,this))};var m=function(){function a(c,b){this.count=c;this.source=b}a.prototype.call=function(a){return new l(a,
this.count,this.source)};return a}(),l=function(a){function c(c,b,f){a.call(this);this.destination=c;this.count=b;this.source=f;c.add(this);this.lastSubscription=this}h(c,a);c.prototype._next=function(a){this.destination.next(a)};c.prototype._error=function(a){this.destination.error(a)};c.prototype.complete=function(){this.isUnsubscribed||this.resubscribe(this.count)};c.prototype.unsubscribe=function(){var c=this.lastSubscription;c===this?a.prototype.unsubscribe.call(this):c.unsubscribe()};c.prototype.resubscribe=
function(a){var c=this.destination,b=this.lastSubscription;c.remove(b);b.unsubscribe();0===a-1?c.complete():(a=new f(this,a-1),this.lastSubscription=this.source.subscribe(a),c.add(this.lastSubscription))};return c}(b.Subscriber),f=function(a){function c(c,b){a.call(this);this.parent=c;this.count=b}h(c,a);c.prototype._next=function(a){this.parent.destination.next(a)};c.prototype._error=function(a){this.parent.destination.error(a)};c.prototype._complete=function(){var a=this.count;this.parent.resubscribe(0>
a?-1:a)};return c}(b.Subscriber)},{"../Subscriber":7,"../observable/empty":109}],176:[function(a,b,e){var h=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var g in b)b.hasOwnProperty(g)&&(a[g]=b[g]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};a=a("../Subscriber");e.retry=function(a){void 0===a&&(a=0);return this.lift(new k(a,this))};var k=function(){function a(b,c){this.count=b;this.source=c}a.prototype.call=function(a){return new m(a,this.count,
this.source)};return a}(),m=function(a){function b(c,d,n){a.call(this);this.destination=c;this.count=d;this.source=n;c.add(this);this.lastSubscription=this}h(b,a);b.prototype._next=function(a){this.destination.next(a)};b.prototype.error=function(a){this.isUnsubscribed||(this.unsubscribe(),this.resubscribe())};b.prototype._complete=function(){this.unsubscribe();this.destination.complete()};b.prototype.resubscribe=function(a){void 0===a&&(a=0);var b=this.lastSubscription,d=this.destination;d.remove(b);
b.unsubscribe();a=new l(this,this.count,a+1);this.lastSubscription=this.source.subscribe(a);d.add(this.lastSubscription)};return b}(a.Subscriber),l=function(a){function b(c,d,n){void 0===n&&(n=0);a.call(this,null);this.parent=c;this.count=d;this.retried=n}h(b,a);b.prototype._next=function(a){this.parent.destination.next(a)};b.prototype._error=function(a){var b=this.parent,d=this.retried,f=this.count;f&&d===f?b.destination.error(a):b.resubscribe(d)};b.prototype._complete=function(){this.parent.destination.complete()};
return b}(a.Subscriber)},{"../Subscriber":7}],177:[function(a,b,e){var h=this&&this.__extends||function(a,c){function b(){this.constructor=a}for(var d in c)c.hasOwnProperty(d)&&(a[d]=c[d]);a.prototype=null===c?Object.create(c):(b.prototype=c.prototype,new b)};b=a("../Subscriber");var k=a("../Subject"),m=a("../util/tryCatch"),l=a("../util/errorObject");e.retryWhen=function(a){return this.lift(new f(a,this))};var f=function(){function a(c,b){this.notifier=c;this.source=b}a.prototype.call=function(a){return new d(a,
this.notifier,this.source)};return a}(),d=function(a){function b(c,d,g){a.call(this);this.destination=c;this.notifier=d;this.source=g;c.add(this);this.lastSubscription=this}h(b,a);b.prototype._next=function(a){this.destination.next(a)};b.prototype.error=function(c){var b=this.destination;if(!this.isUnsubscribed){a.prototype.unsubscribe.call(this);if(!this.retryNotifications){this.errors=new k.Subject;var d=m.tryCatch(this.notifier).call(this,this.errors);if(d===l.errorObject)b.error(l.errorObject.e);
else{this.retryNotifications=d;var f=new g(this);this.notificationSubscription=d.subscribe(f);b.add(this.notificationSubscription)}}this.errors.next(c)}};b.prototype.destinationError=function(a){this.tearDown();this.destination.error(a)};b.prototype._complete=function(){this.destinationComplete()};b.prototype.destinationComplete=function(){this.tearDown();this.destination.complete()};b.prototype.unsubscribe=function(){this.lastSubscription===this?a.prototype.unsubscribe.call(this):this.tearDown()};
b.prototype.tearDown=function(){a.prototype.unsubscribe.call(this);this.lastSubscription.unsubscribe();var c=this.notificationSubscription;c&&c.unsubscribe()};b.prototype.resubscribe=function(){var a=this.destination,b=this.lastSubscription;a.remove(b);b.unsubscribe();b=new c(this);this.lastSubscription=this.source.subscribe(b);a.add(this.lastSubscription)};return b}(b.Subscriber),c=function(a){function c(b){a.call(this,null);this.parent=b}h(c,a);c.prototype._next=function(a){this.parent.destination.next(a)};
c.prototype._error=function(a){this.parent.errors.next(a)};c.prototype._complete=function(){this.parent.destinationComplete()};return c}(b.Subscriber),g=function(a){function c(b){a.call(this,null);this.parent=b}h(c,a);c.prototype._next=function(a){this.parent.resubscribe()};c.prototype._error=function(a){this.parent.destinationError(a)};c.prototype._complete=function(){this.parent.destinationComplete()};return c}(b.Subscriber)},{"../Subject":6,"../Subscriber":7,"../util/errorObject":230,"../util/tryCatch":241}],
178:[function(a,b,e){var h=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var g in b)b.hasOwnProperty(g)&&(a[g]=b[g]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};a=a("../Subscriber");e.sample=function(a){return this.lift(new k(a))};var k=function(){function a(b){this.notifier=b}a.prototype.call=function(a){return new m(a,this.notifier)};return a}(),m=function(a){function b(c,d){a.call(this,c);this.notifier=d;this.hasValue=!1;this.add(d._subscribe(new l(this)))}
h(b,a);b.prototype._next=function(a){this.lastValue=a;this.hasValue=!0};b.prototype.notifyNext=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))};return b}(a.Subscriber),l=function(a){function b(c){a.call(this,null);this.parent=c}h(b,a);b.prototype._next=function(){this.parent.notifyNext()};b.prototype._error=function(a){this.parent.error(a)};b.prototype._complete=function(){this.parent.notifyNext()};return b}(a.Subscriber)},{"../Subscriber":7}],179:[function(a,b,
e){function h(a){var c=a.delay;a.subscriber.notifyNext();this.schedule(a,c)}var k=this&&this.__extends||function(a,c){function b(){this.constructor=a}for(var f in c)c.hasOwnProperty(f)&&(a[f]=c[f]);a.prototype=null===c?Object.create(c):(b.prototype=c.prototype,new b)};b=a("../Subscriber");var m=a("../scheduler/asap");e.sampleTime=function(a,c){void 0===c&&(c=m.asap);return this.lift(new l(a,c))};var l=function(){function a(c,b){this.delay=c;this.scheduler=b}a.prototype.call=function(a){return new f(a,
this.delay,this.scheduler)};return a}(),f=function(a){function c(c,b,f){a.call(this,c);this.delay=b;this.scheduler=f;this.hasValue=!1;this.add(f.schedule(h,b,{subscriber:this,delay:b}))}k(c,a);c.prototype._next=function(a){this.lastValue=a;this.hasValue=!0};c.prototype.notifyNext=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))};return c}(b.Subscriber)},{"../Subscriber":7,"../scheduler/asap":215}],180:[function(a,b,e){var h=this&&this.__extends||function(a,c){function b(){this.constructor=
a}for(var f in c)c.hasOwnProperty(f)&&(a[f]=c[f]);a.prototype=null===c?Object.create(c):(b.prototype=c.prototype,new b)};b=a("../Subscriber");var k=a("../util/tryCatch"),m=a("../util/errorObject");e.scan=function(a,c){return this.lift(new l(a,c))};var l=function(){function a(c,b){this.accumulator=c;this.seed=b}a.prototype.call=function(a){return new f(a,this.accumulator,this.seed)};return a}(),f=function(a){function c(c,b,f){a.call(this,c);this.accumulator=b;this.accumulatorSet=!1;this.seed=f;this.accumulator=
b;this.accumulatorSet="undefined"!==typeof f}h(c,a);Object.defineProperty(c.prototype,"seed",{get:function(){return this._seed},set:function(a){this.accumulatorSet=!0;this._seed=a},enumerable:!0,configurable:!0});c.prototype._next=function(a){this.accumulatorSet?(a=k.tryCatch(this.accumulator).call(this,this.seed,a),a===m.errorObject?this.destination.error(m.errorObject.e):(this.seed=a,this.destination.next(this.seed))):(this.seed=a,this.destination.next(a))};return c}(b.Subscriber)},{"../Subscriber":7,
"../util/errorObject":230,"../util/tryCatch":241}],181:[function(a,b,e){function h(){return new m.Subject}var k=a("./multicast"),m=a("../Subject");e.share=function(){return k.multicast.call(this,h).refCount()}},{"../Subject":6,"./multicast":165}],182:[function(a,b,e){var h=this&&this.__extends||function(a,b){function d(){this.constructor=a}for(var f in b)b.hasOwnProperty(f)&&(a[f]=b[f]);a.prototype=null===b?Object.create(b):(d.prototype=b.prototype,new d)};b=a("../Subscriber");var k=a("../util/tryCatch"),
m=a("../util/errorObject"),l=a("../util/EmptyError");e.single=function(a){return this.lift(new f(a,this))};var f=function(){function a(b,c){this.predicate=b;this.source=c}a.prototype.call=function(a){return new d(a,this.predicate,this.source)};return a}(),d=function(a){function b(d,g,f){a.call(this,d);this.predicate=g;this.source=f;this.seenValue=!1;this.index=0}h(b,a);b.prototype.applySingleValue=function(a){this.seenValue?this.destination.error("Sequence contains more than one element"):(this.seenValue=
!0,this.singleValue=a)};b.prototype._next=function(a){var b=this.predicate,c=this.index++;b?(b=k.tryCatch(b)(a,c,this.source),b===m.errorObject?this.destination.error(b.e):b&&this.applySingleValue(a)):this.applySingleValue(a)};b.prototype._complete=function(){var a=this.destination;0<this.index?(a.next(this.seenValue?this.singleValue:void 0),a.complete()):a.error(new l.EmptyError)};return b}(b.Subscriber)},{"../Subscriber":7,"../util/EmptyError":223,"../util/errorObject":230,"../util/tryCatch":241}],
183:[function(a,b,e){var h=this&&this.__extends||function(a,b){function d(){this.constructor=a}for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c]);a.prototype=null===b?Object.create(b):(d.prototype=b.prototype,new d)};a=a("../Subscriber");e.skip=function(a){return this.lift(new k(a))};var k=function(){function a(b){this.total=b}a.prototype.call=function(a){return new m(a,this.total)};return a}(),m=function(a){function b(d,c){a.call(this,d);this.total=c;this.count=0}h(b,a);b.prototype._next=function(a){++this.count>
this.total&&this.destination.next(a)};return b}(a.Subscriber)},{"../Subscriber":7}],184:[function(a,b,e){var h=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var g in b)b.hasOwnProperty(g)&&(a[g]=b[g]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};a=a("../Subscriber");e.skipUntil=function(a){return this.lift(new k(a))};var k=function(){function a(b){this.notifier=b}a.prototype.call=function(a){return new m(a,this.notifier)};return a}(),m=function(a){function b(c,
d){a.call(this,c);this.notifier=d;this.notificationSubscriber=null;this.notificationSubscriber=new l(this);this.add(this.notifier.subscribe(this.notificationSubscriber))}h(b,a);b.prototype._next=function(a){this.notificationSubscriber.hasValue&&this.destination.next(a)};b.prototype._error=function(a){this.destination.error(a)};b.prototype._complete=function(){this.notificationSubscriber.hasCompleted&&this.destination.complete();this.notificationSubscriber.unsubscribe()};b.prototype.unsubscribe=function(){this._isUnsubscribed||
(this._subscription?(this._subscription.unsubscribe(),this._isUnsubscribed=!0):a.prototype.unsubscribe.call(this))};return b}(a.Subscriber),l=function(a){function b(c){a.call(this,null);this.parent=c;this.hasCompleted=this.hasValue=!1}h(b,a);b.prototype._next=function(a){this.hasValue=!0};b.prototype._error=function(a){this.parent.error(a);this.hasValue=!0};b.prototype._complete=function(){this.hasCompleted=!0};return b}(a.Subscriber)},{"../Subscriber":7}],185:[function(a,b,e){var h=this&&this.__extends||
function(a,b){function g(){this.constructor=a}for(var f in b)b.hasOwnProperty(f)&&(a[f]=b[f]);a.prototype=null===b?Object.create(b):(g.prototype=b.prototype,new g)};b=a("../Subscriber");var k=a("../util/tryCatch"),m=a("../util/errorObject");e.skipWhile=function(a){return this.lift(new l(a))};var l=function(){function a(b){this.predicate=b}a.prototype.call=function(a){return new f(a,this.predicate)};return a}(),f=function(a){function b(c,f){a.call(this,c);this.predicate=f;this.skipping=!0;this.index=
0}h(b,a);b.prototype._next=function(a){var b=this.destination;if(!0===this.skipping){var c=this.index++,c=k.tryCatch(this.predicate)(a,c);c===m.errorObject?b.error(c.e):this.skipping=Boolean(c)}!1===this.skipping&&b.next(a)};return b}(b.Subscriber)},{"../Subscriber":7,"../util/errorObject":230,"../util/tryCatch":241}],186:[function(a,b,e){var h=a("../observable/fromArray"),k=a("../observable/ScalarObservable"),m=a("../observable/empty"),l=a("./concat-static"),f=a("../util/isScheduler");e.startWith=
function(){for(var a=[],b=0;b<arguments.length;b++)a[b-0]=arguments[b];b=a[a.length-1];f.isScheduler(b)?a.pop():b=void 0;var g=a.length;return 1===g?l.concat(new k.ScalarObservable(a[0],b),this):1<g?l.concat(new h.ArrayObservable(a,b),this):l.concat(new m.EmptyObservable(b),this)}},{"../observable/ScalarObservable":105,"../observable/empty":109,"../observable/fromArray":112,"../util/isScheduler":235,"./concat-static":131}],187:[function(a,b,e){var h=a("../observable/SubscribeOnObservable");e.subscribeOn=
function(a,b){void 0===b&&(b=0);return new h.SubscribeOnObservable(this,b,a)}},{"../observable/SubscribeOnObservable":106}],188:[function(a,b,e){var h=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var g in b)b.hasOwnProperty(g)&&(a[g]=b[g]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};b=a("../OuterSubscriber");var k=a("../util/subscribeToResult");e._switch=function(){return this.lift(new m)};var m=function(){function a(){}a.prototype.call=function(a){return new l(a)};
return a}(),l=function(a){function b(c){a.call(this,c);this.active=0;this.hasCompleted=!1}h(b,a);b.prototype._next=function(a){this.unsubscribeInner();this.active++;this.add(this.innerSubscription=k.subscribeToResult(this,a))};b.prototype._complete=function(){this.hasCompleted=!0;0===this.active&&this.destination.complete()};b.prototype.unsubscribeInner=function(){this.active=0<this.active?this.active-1:0;var a=this.innerSubscription;a&&(a.unsubscribe(),this.remove(a))};b.prototype.notifyNext=function(a,
b){this.destination.next(b)};b.prototype.notifyError=function(a){this.destination.error(a)};b.prototype.notifyComplete=function(){this.unsubscribeInner();this.hasCompleted&&0===this.active&&this.destination.complete()};return b}(b.OuterSubscriber)},{"../OuterSubscriber":4,"../util/subscribeToResult":239}],189:[function(a,b,e){var h=this&&this.__extends||function(a,b){function d(){this.constructor=a}for(var f in b)b.hasOwnProperty(f)&&(a[f]=b[f]);a.prototype=null===b?Object.create(b):(d.prototype=
b.prototype,new d)},k=a("../util/tryCatch"),m=a("../util/errorObject");b=a("../OuterSubscriber");var l=a("../util/subscribeToResult");e.switchMap=function(a,b){return this.lift(new f(a,b))};var f=function(){function a(b,c){this.project=b;this.resultSelector=c}a.prototype.call=function(a){return new d(a,this.project,this.resultSelector)};return a}(),d=function(a){function b(d,g,f){a.call(this,d);this.project=g;this.resultSelector=f;this.hasCompleted=!1;this.index=0}h(b,a);b.prototype._next=function(a){var b=
this.index++,c=this.destination,d=k.tryCatch(this.project)(a,b);d===m.errorObject?c.error(d.e):((c=this.innerSubscription)&&c.unsubscribe(),this.add(this.innerSubscription=l.subscribeToResult(this,d,a,b)))};b.prototype._complete=function(){var a=this.innerSubscription;this.hasCompleted=!0;a&&!a.isUnsubscribed||this.destination.complete()};b.prototype.notifyComplete=function(a){this.remove(a);(a=this.innerSubscription)&&a.unsubscribe();this.innerSubscription=null;this.hasCompleted&&this.destination.complete()};
b.prototype.notifyError=function(a){this.destination.error(a)};b.prototype.notifyNext=function(a,b,c,d){var g=this.resultSelector,f=this.destination;g?(a=k.tryCatch(g)(a,b,c,d),a===m.errorObject?f.error(m.errorObject.e):f.next(a)):f.next(b)};return b}(b.OuterSubscriber)},{"../OuterSubscriber":4,"../util/errorObject":230,"../util/subscribeToResult":239,"../util/tryCatch":241}],190:[function(a,b,e){var h=this&&this.__extends||function(a,b){function d(){this.constructor=a}for(var f in b)b.hasOwnProperty(f)&&
(a[f]=b[f]);a.prototype=null===b?Object.create(b):(d.prototype=b.prototype,new d)},k=a("../util/tryCatch"),m=a("../util/errorObject");b=a("../OuterSubscriber");var l=a("../util/subscribeToResult");e.switchMapTo=function(a,b){return this.lift(new f(a,b))};var f=function(){function a(b,c){this.observable=b;this.resultSelector=c}a.prototype.call=function(a){return new d(a,this.observable,this.resultSelector)};return a}(),d=function(a){function b(d,f,g){a.call(this,d);this.inner=f;this.resultSelector=
g;this.hasCompleted=!1;this.index=0}h(b,a);b.prototype._next=function(a){var b=this.index++,c=this.innerSubscription;c&&c.unsubscribe();this.add(this.innerSubscription=l.subscribeToResult(this,this.inner,a,b))};b.prototype._complete=function(){var a=this.innerSubscription;this.hasCompleted=!0;a&&!a.isUnsubscribed||this.destination.complete()};b.prototype.notifyComplete=function(a){this.remove(a);(a=this.innerSubscription)&&a.unsubscribe();this.innerSubscription=null;this.hasCompleted&&this.destination.complete()};
b.prototype.notifyError=function(a){this.destination.error(a)};b.prototype.notifyNext=function(a,b,c,d){var f=this.resultSelector,g=this.destination;f?(a=k.tryCatch(f)(a,b,c,d),a===m.errorObject?g.error(m.errorObject.e):g.next(a)):g.next(b)};return b}(b.OuterSubscriber)},{"../OuterSubscriber":4,"../util/errorObject":230,"../util/subscribeToResult":239,"../util/tryCatch":241}],191:[function(a,b,e){var h=this&&this.__extends||function(a,b){function f(){this.constructor=a}for(var e in b)b.hasOwnProperty(e)&&
(a[e]=b[e]);a.prototype=null===b?Object.create(b):(f.prototype=b.prototype,new f)};b=a("../Subscriber");var k=a("../util/ArgumentOutOfRangeError"),m=a("../observable/empty");e.take=function(a){return 0===a?new m.EmptyObservable:this.lift(new l(a))};var l=function(){function a(b){this.total=b;if(0>this.total)throw new k.ArgumentOutOfRangeError;}a.prototype.call=function(a){return new f(a,this.total)};return a}(),f=function(a){function b(c,f){a.call(this,c);this.total=f;this.count=0}h(b,a);b.prototype._next=
function(a){var b=this.total;++this.count<=b&&(this.destination.next(a),this.count===b&&this.destination.complete())};return b}(b.Subscriber)},{"../Subscriber":7,"../observable/empty":109,"../util/ArgumentOutOfRangeError":222}],192:[function(a,b,e){var h=this&&this.__extends||function(a,b){function f(){this.constructor=a}for(var e in b)b.hasOwnProperty(e)&&(a[e]=b[e]);a.prototype=null===b?Object.create(b):(f.prototype=b.prototype,new f)};b=a("../Subscriber");var k=a("../util/noop");e.takeUntil=function(a){return this.lift(new m(a))};
var m=function(){function a(b){this.notifier=b}a.prototype.call=function(a){return new l(a,this.notifier)};return a}(),l=function(a){function b(c,e){a.call(this,c);this.notifier=e;this.notificationSubscriber=null;this.notificationSubscriber=new f(c);this.add(e.subscribe(this.notificationSubscriber))}h(b,a);b.prototype._complete=function(){this.destination.complete();this.notificationSubscriber.unsubscribe()};return b}(b.Subscriber),f=function(a){function b(c){a.call(this,null);this.destination=c}
h(b,a);b.prototype._next=function(a){this.destination.complete()};b.prototype._error=function(a){this.destination.error(a)};b.prototype._complete=function(){k.noop()};return b}(b.Subscriber)},{"../Subscriber":7,"../util/noop":236}],193:[function(a,b,e){var h=this&&this.__extends||function(a,b){function f(){this.constructor=a}for(var e in b)b.hasOwnProperty(e)&&(a[e]=b[e]);a.prototype=null===b?Object.create(b):(f.prototype=b.prototype,new f)};b=a("../Subscriber");var k=a("../util/tryCatch"),m=a("../util/errorObject");
e.takeWhile=function(a){return this.lift(new l(a))};var l=function(){function a(b){this.predicate=b}a.prototype.call=function(a){return new f(a,this.predicate)};return a}(),f=function(a){function b(c,f){a.call(this,c);this.predicate=f;this.index=0}h(b,a);b.prototype._next=function(a){var b=this.destination,c=k.tryCatch(this.predicate)(a,this.index++);c==m.errorObject?b.error(c.e):Boolean(c)?b.next(a):b.complete()};return b}(b.Subscriber)},{"../Subscriber":7,"../util/errorObject":230,"../util/tryCatch":241}],
194:[function(a,b,e){var h=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},k=a("../observable/fromPromise");b=a("../Subscriber");var m=a("../util/tryCatch"),l=a("../util/isPromise"),f=a("../util/errorObject");e.throttle=function(a){return this.lift(new d(a))};var d=function(){function a(b){this.durationSelector=b}a.prototype.call=function(a){return new c(a,this.durationSelector)};
return a}(),c=function(a){function b(c,d){a.call(this,c);this.durationSelector=d}h(b,a);b.prototype._next=function(a){if(!this.throttled){var b=this.destination,c=m.tryCatch(this.durationSelector)(a);c===f.errorObject?b.error(f.errorObject.e):(l.isPromise(c)&&(c=k.PromiseObservable.create(c)),this.add(this.throttled=c._subscribe(new g(this))),b.next(a))}};b.prototype._error=function(b){this.clearThrottle();a.prototype._error.call(this,b)};b.prototype._complete=function(){this.clearThrottle();a.prototype._complete.call(this)};
b.prototype.clearThrottle=function(){var a=this.throttled;a&&(a.unsubscribe(),this.remove(a),this.throttled=null)};return b}(b.Subscriber),g=function(a){function b(c){a.call(this,null);this.parent=c}h(b,a);b.prototype._next=function(a){this.parent.clearThrottle()};b.prototype._error=function(a){this.parent.error(a)};b.prototype._complete=function(){this.parent.clearThrottle()};return b}(b.Subscriber)},{"../Subscriber":7,"../observable/fromPromise":115,"../util/errorObject":230,"../util/isPromise":234,
"../util/tryCatch":241}],195:[function(a,b,e){function h(a){a.subscriber.clearThrottle()}var k=this&&this.__extends||function(a,b){function f(){this.constructor=a}for(var e in b)b.hasOwnProperty(e)&&(a[e]=b[e]);a.prototype=null===b?Object.create(b):(f.prototype=b.prototype,new f)};b=a("../Subscriber");var m=a("../scheduler/asap");e.throttleTime=function(a,b){void 0===b&&(b=m.asap);return this.lift(new l(a,b))};var l=function(){function a(b,d){this.delay=b;this.scheduler=d}a.prototype.call=function(a){return new f(a,
this.delay,this.scheduler)};return a}(),f=function(a){function b(c,f,e){a.call(this,c);this.delay=f;this.scheduler=e}k(b,a);b.prototype._next=function(a){this.throttled||(this.add(this.throttled=this.scheduler.schedule(h,this.delay,{subscriber:this})),this.destination.next(a))};b.prototype.clearThrottle=function(){var a=this.throttled;a&&(a.unsubscribe(),this.remove(a),this.throttled=null)};return b}(b.Subscriber)},{"../Subscriber":7,"../scheduler/asap":215}],196:[function(a,b,e){var h=this&&this.__extends||
function(a,b){function f(){this.constructor=a}for(var e in b)b.hasOwnProperty(e)&&(a[e]=b[e]);a.prototype=null===b?Object.create(b):(f.prototype=b.prototype,new f)};b=a("../Subscriber");var k=a("../scheduler/queue"),m=a("../util/isDate");e.timeout=function(a,b,f){void 0===b&&(b=null);void 0===f&&(f=k.queue);var e=m.isDate(a);a=e?+a-f.now():a;return this.lift(new l(a,e,b,f))};var l=function(){function a(b,d,f,e){this.waitFor=b;this.absoluteTimeout=d;this.errorToSend=f;this.scheduler=e}a.prototype.call=
function(a){return new f(a,this.absoluteTimeout,this.waitFor,this.errorToSend,this.scheduler)};return a}(),f=function(a){function b(c,f,e,l,k){a.call(this,c);this.absoluteTimeout=f;this.waitFor=e;this.errorToSend=l;this.scheduler=k;this._previousIndex=this.index=0;this._hasCompleted=!1;this.scheduleTimeout()}h(b,a);Object.defineProperty(b.prototype,"previousIndex",{get:function(){return this._previousIndex},enumerable:!0,configurable:!0});Object.defineProperty(b.prototype,"hasCompleted",{get:function(){return this._hasCompleted},
enumerable:!0,configurable:!0});b.dispatchTimeout=function(a){var b=a.subscriber;a=a.index;b.hasCompleted||b.previousIndex!==a||b.notifyTimeout()};b.prototype.scheduleTimeout=function(){var a=this.index;this.scheduler.schedule(b.dispatchTimeout,this.waitFor,{subscriber:this,index:a});this.index++;this._previousIndex=a};b.prototype._next=function(a){this.destination.next(a);this.absoluteTimeout||this.scheduleTimeout()};b.prototype._error=function(a){this.destination.error(a);this._hasCompleted=!0};
b.prototype._complete=function(){this.destination.complete();this._hasCompleted=!0};b.prototype.notifyTimeout=function(){this.error(this.errorToSend||Error("timeout"))};return b}(b.Subscriber)},{"../Subscriber":7,"../scheduler/queue":216,"../util/isDate":232}],197:[function(a,b,e){var h=this&&this.__extends||function(a,b){function d(){this.constructor=a}for(var f in b)b.hasOwnProperty(f)&&(a[f]=b[f]);a.prototype=null===b?Object.create(b):(d.prototype=b.prototype,new d)},k=a("../scheduler/queue"),
m=a("../util/isDate");b=a("../OuterSubscriber");var l=a("../util/subscribeToResult");e.timeoutWith=function(a,b,d){void 0===d&&(d=k.queue);var e=m.isDate(a);a=e?+a-d.now():a;return this.lift(new f(a,e,b,d))};var f=function(){function a(b,c,d,f){this.waitFor=b;this.absoluteTimeout=c;this.withObservable=d;this.scheduler=f}a.prototype.call=function(a){return new d(a,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler)};return a}(),d=function(a){function b(d,f,g,e,l){a.call(this,null);
this.destination=d;this.absoluteTimeout=f;this.waitFor=g;this.withObservable=e;this.scheduler=l;this.timeoutSubscription=void 0;this._previousIndex=this.index=0;this._hasCompleted=!1;d.add(this);this.scheduleTimeout()}h(b,a);Object.defineProperty(b.prototype,"previousIndex",{get:function(){return this._previousIndex},enumerable:!0,configurable:!0});Object.defineProperty(b.prototype,"hasCompleted",{get:function(){return this._hasCompleted},enumerable:!0,configurable:!0});b.dispatchTimeout=function(a){var b=
a.subscriber;a=a.index;b.hasCompleted||b.previousIndex!==a||b.handleTimeout()};b.prototype.scheduleTimeout=function(){var a=this.index;this.scheduler.schedule(b.dispatchTimeout,this.waitFor,{subscriber:this,index:a});this.index++;this._previousIndex=a};b.prototype._next=function(a){this.destination.next(a);this.absoluteTimeout||this.scheduleTimeout()};b.prototype._error=function(a){this.destination.error(a);this._hasCompleted=!0};b.prototype._complete=function(){this.destination.complete();this._hasCompleted=
!0};b.prototype.handleTimeout=function(){if(!this.isUnsubscribed){var a=this.withObservable;this.unsubscribe();this.destination.add(this.timeoutSubscription=l.subscribeToResult(this,a))}};return b}(b.OuterSubscriber)},{"../OuterSubscriber":4,"../scheduler/queue":216,"../util/isDate":232,"../util/subscribeToResult":239}],198:[function(a,b,e){var h=this&&this.__extends||function(a,b){function d(){this.constructor=a}for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c]);a.prototype=null===b?Object.create(b):
(d.prototype=b.prototype,new d)};a=a("../Subscriber");e.toArray=function(){return this.lift(new k)};var k=function(){function a(){}a.prototype.call=function(a){return new m(a)};return a}(),m=function(a){function b(d){a.call(this,d);this.array=[]}h(b,a);b.prototype._next=function(a){this.array.push(a)};b.prototype._complete=function(){this.destination.next(this.array);this.destination.complete()};return b}(a.Subscriber)},{"../Subscriber":7}],199:[function(a,b,e){var h=a("../util/root");e.toPromise=
function(a){var b=this;a||(h.root.Rx&&h.root.Rx.config&&h.root.Rx.config.Promise?a=h.root.Rx.config.Promise:h.root.Promise&&(a=h.root.Promise));if(!a)throw Error("no Promise impl found");return new a(function(a,f){var d;b.subscribe(function(a){return d=a},function(a){return f(a)},function(){return a(d)})})}},{"../util/root":238}],200:[function(a,b,e){var h=this&&this.__extends||function(a,b){function f(){this.constructor=a}for(var e in b)b.hasOwnProperty(e)&&(a[e]=b[e]);a.prototype=null===b?Object.create(b):
(f.prototype=b.prototype,new f)};b=a("../Subscriber");var k=a("../Subject");e.window=function(a){return this.lift(new m(a))};var m=function(){function a(b){this.closingNotifier=b}a.prototype.call=function(a){return new l(a,this.closingNotifier)};return a}(),l=function(a){function b(c,e){a.call(this,c);this.destination=c;this.closingNotifier=e;this.add(e._subscribe(new f(this)));this.openWindow()}h(b,a);b.prototype._next=function(a){this.window.next(a)};b.prototype._error=function(a){this.window.error(a);
this.destination.error(a)};b.prototype._complete=function(){this.window.complete();this.destination.complete()};b.prototype.openWindow=function(){var a=this.window;a&&a.complete();var a=this.destination,b=this.window=new k.Subject;a.add(b);a.next(b)};return b}(b.Subscriber),f=function(a){function b(c){a.call(this,null);this.parent=c}h(b,a);b.prototype._next=function(){this.parent.openWindow()};b.prototype._error=function(a){this.parent._error(a)};b.prototype._complete=function(){this.parent._complete()};
return b}(b.Subscriber)},{"../Subject":6,"../Subscriber":7}],201:[function(a,b,e){var h=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var g in b)b.hasOwnProperty(g)&&(a[g]=b[g]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};b=a("../Subscriber");var k=a("../Subject");e.windowCount=function(a,b){void 0===b&&(b=0);return this.lift(new m(a,b))};var m=function(){function a(b,c){this.windowSize=b;this.startWindowEvery=c}a.prototype.call=function(a){return new l(a,
this.windowSize,this.startWindowEvery)};return a}(),l=function(a){function b(c,d,e){a.call(this,c);this.destination=c;this.windowSize=d;this.startWindowEvery=e;this.windows=[new k.Subject];this.count=0;d=this.windows[0];c.add(d);c.next(d)}h(b,a);b.prototype._next=function(a){for(var b=0<this.startWindowEvery?this.startWindowEvery:this.windowSize,d=this.destination,f=this.windowSize,e=this.windows,l=e.length,h=0;h<l;h++)e[h].next(a);a=this.count-f+1;0<=a&&0===a%b&&e.shift().complete();0===++this.count%
b&&(b=new k.Subject,e.push(b),d.add(b),d.next(b))};b.prototype._error=function(a){for(var b=this.windows;0<b.length;)b.shift().error(a);this.destination.error(a)};b.prototype._complete=function(){for(var a=this.windows;0<a.length;)a.shift().complete();this.destination.complete()};return b}(b.Subscriber)},{"../Subject":6,"../Subscriber":7}],202:[function(a,b,e){function h(a){var b=a.subscriber,c=a.windowTimeSpan,d=a.window;d&&d.complete();a.window=b.openWindow();this.schedule(a,c)}function k(a){var b=
a.windowTimeSpan,c=a.subscriber,d=a.scheduler,f=a.windowCreationInterval,e=c.openWindow(),g={action:this,subscription:null};g.subscription=d.schedule(m,b,{subscriber:c,window:e,context:g});this.add(g.subscription);this.schedule(a,f)}function m(a){var b=a.subscriber,c=a.window;(a=a.context)&&a.action&&a.subscription&&a.action.remove(a.subscription);b.closeWindow(c)}var l=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=
null===b?Object.create(b):(c.prototype=b.prototype,new c)};b=a("../Subscriber");var f=a("../Subject"),d=a("../scheduler/asap");e.windowTime=function(a,b,f){void 0===b&&(b=null);void 0===f&&(f=d.asap);return this.lift(new c(a,b,f))};var c=function(){function a(b,c,d){this.windowTimeSpan=b;this.windowCreationInterval=c;this.scheduler=d}a.prototype.call=function(a){return new g(a,this.windowTimeSpan,this.windowCreationInterval,this.scheduler)};return a}(),g=function(a){function b(c,d,f,e){a.call(this,
c);this.destination=c;this.windowTimeSpan=d;this.windowCreationInterval=f;this.scheduler=e;this.windows=[];if(null!==f&&0<=f){c={subscriber:this,window:this.openWindow(),context:null};var g={windowTimeSpan:d,windowCreationInterval:f,subscriber:this,scheduler:e};this.add(e.schedule(m,d,c));this.add(e.schedule(k,f,g))}else f={subscriber:this,window:this.openWindow(),windowTimeSpan:d},this.add(e.schedule(h,d,f))}l(b,a);b.prototype._next=function(a){for(var b=this.windows,c=b.length,d=0;d<c;d++)b[d].next(a)};
b.prototype._error=function(a){for(var b=this.windows;0<b.length;)b.shift().error(a);this.destination.error(a)};b.prototype._complete=function(){for(var a=this.windows;0<a.length;)a.shift().complete();this.destination.complete()};b.prototype.openWindow=function(){var a=new f.Subject;this.windows.push(a);var b=this.destination;b.add(a);b.next(a);return a};b.prototype.closeWindow=function(a){a.complete();var b=this.windows;b.splice(b.indexOf(a),1)};return b}(b.Subscriber)},{"../Subject":6,"../Subscriber":7,
"../scheduler/asap":215}],203:[function(a,b,e){var h=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};b=a("../Subscriber");var k=a("../Subject"),m=a("../Subscription"),l=a("../util/tryCatch"),f=a("../util/errorObject");e.windowToggle=function(a,b){return this.lift(new d(a,b))};var d=function(){function a(b,c){this.openings=b;this.closingSelector=c}a.prototype.call=
function(a){return new c(a,this.openings,this.closingSelector)};return a}(),c=function(a){function b(c,d,f){a.call(this,c);this.destination=c;this.openings=d;this.closingSelector=f;this.contexts=[];this.add(this.openings._subscribe(new n(this)))}h(b,a);b.prototype._next=function(a){for(var b=this.contexts,c=b.length,d=0;d<c;d++)b[d].window.next(a)};b.prototype._error=function(a){for(var b=this.contexts;0<b.length;)b.shift().window.error(a);this.destination.error(a)};b.prototype._complete=function(){for(var a=
this.contexts;0<a.length;){var b=a.shift();b.window.complete();b.subscription.unsubscribe()}this.destination.complete()};b.prototype.openWindow=function(a){var b=l.tryCatch(this.closingSelector)(a);if(b===f.errorObject)this.error(b.e);else{a=this.destination;var c=new k.Subject,d=new m.Subscription,e={window:c,subscription:d};this.contexts.push(e);e=new g(this,e);b=b._subscribe(e);d.add(b);a.add(d);a.add(c);a.next(c)}};b.prototype.closeWindow=function(a){var b=a.window,c=a.subscription,d=this.contexts,
f=this.destination;d.splice(d.indexOf(a),1);b.complete();f.remove(c);f.remove(b);c.unsubscribe()};return b}(b.Subscriber),g=function(a){function b(c,d){a.call(this,null);this.parent=c;this.windowContext=d}h(b,a);b.prototype._next=function(){this.parent.closeWindow(this.windowContext)};b.prototype._error=function(a){this.parent.error(a)};b.prototype._complete=function(){this.parent.closeWindow(this.windowContext)};return b}(b.Subscriber),n=function(a){function b(c){a.call(this);this.parent=c}h(b,a);
b.prototype._next=function(a){this.parent.openWindow(a)};b.prototype._error=function(a){this.parent.error(a)};b.prototype._complete=function(){};return b}(b.Subscriber)},{"../Subject":6,"../Subscriber":7,"../Subscription":8,"../util/errorObject":230,"../util/tryCatch":241}],204:[function(a,b,e){var h=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};b=a("../Subscriber");
var k=a("../Subject"),m=a("../Subscription"),l=a("../util/tryCatch"),f=a("../util/errorObject");e.windowWhen=function(a){return this.lift(new d(a))};var d=function(){function a(b){this.closingSelector=b}a.prototype.call=function(a){return new c(a,this.closingSelector)};return a}(),c=function(a){function b(c,d){a.call(this,c);this.destination=c;this.closingSelector=d;this.openWindow()}h(b,a);b.prototype._next=function(a){this.window.next(a)};b.prototype._error=function(a){this.window.error(a);this.destination.error(a);
this._unsubscribeClosingNotification()};b.prototype._complete=function(){this.window.complete();this.destination.complete();this._unsubscribeClosingNotification()};b.prototype.unsubscribe=function(){a.prototype.unsubscribe.call(this);this._unsubscribeClosingNotification()};b.prototype._unsubscribeClosingNotification=function(){var a=this.closingNotification;a&&a.unsubscribe()};b.prototype.openWindow=function(){var a=this.closingNotification;a&&(this.remove(a),a.unsubscribe());(a=this.window)&&a.complete();
a=this.window=new k.Subject;this.destination.next(a);var b=l.tryCatch(this.closingSelector)();if(b===f.errorObject)a=b.e,this.destination.error(a),this.window.error(a);else{var c=this.closingNotification=new m.Subscription;c.add(b._subscribe(new g(this)));this.add(c);this.add(a)}};return b}(b.Subscriber),g=function(a){function b(c){a.call(this,null);this.parent=c}h(b,a);b.prototype._next=function(){this.parent.openWindow()};b.prototype._error=function(a){this.parent.error(a)};b.prototype._complete=
function(){this.parent.openWindow()};return b}(b.Subscriber)},{"../Subject":6,"../Subscriber":7,"../Subscription":8,"../util/errorObject":230,"../util/tryCatch":241}],205:[function(a,b,e){var h=this&&this.__extends||function(a,b){function d(){this.constructor=a}for(var f in b)b.hasOwnProperty(f)&&(a[f]=b[f]);a.prototype=null===b?Object.create(b):(d.prototype=b.prototype,new d)},k=a("../util/tryCatch"),m=a("../util/errorObject");b=a("../OuterSubscriber");var l=a("../util/subscribeToResult");e.withLatestFrom=
function(){for(var a=[],b=0;b<arguments.length;b++)a[b-0]=arguments[b];var d;"function"===typeof a[a.length-1]&&(d=a.pop());return this.lift(new f(a,d))};var f=function(){function a(b,c){this.observables=b;this.project=c}a.prototype.call=function(a){return new d(a,this.observables,this.project)};return a}(),d=function(a){function b(d,f,e){a.call(this,d);this.observables=f;this.project=e;this.toRespond=[];d=f.length;this.values=Array(d);for(e=0;e<d;e++)this.toRespond.push(e);for(e=0;e<d;e++){var g=
f[e];this.add(l.subscribeToResult(this,g,g,e))}}h(b,a);b.prototype.notifyNext=function(a,b,c,d){this.values[c]=b;a=this.toRespond;0<a.length&&(c=a.indexOf(c),-1!==c&&a.splice(c,1))};b.prototype.notifyComplete=function(){};b.prototype._next=function(a){if(0===this.toRespond.length){var b=this.destination,c=this.project;a=[a].concat(this.values);c?(c=k.tryCatch(this.project).apply(this,a),c===m.errorObject?b.error(c.e):b.next(c)):b.next(a)}};return b}(b.OuterSubscriber)},{"../OuterSubscriber":4,"../util/errorObject":230,
"../util/subscribeToResult":239,"../util/tryCatch":241}],206:[function(a,b,e){var h=a("../observable/fromArray"),k=a("./zip-support");e.zip=function(){for(var a=[],b=0;b<arguments.length;b++)a[b-0]=arguments[b];b=a[a.length-1];"function"===typeof b&&a.pop();return(new h.ArrayObservable(a)).lift(new k.ZipOperator(b))}},{"../observable/fromArray":112,"./zip-support":207}],207:[function(a,b,e){var h=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&
(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};b=a("../Subscriber");var k=a("../util/tryCatch"),m=a("../util/errorObject"),l=a("../OuterSubscriber"),f=a("../util/subscribeToResult"),d=a("../util/SymbolShim"),c=Array.isArray;a=function(){function a(b){this.project=b}a.prototype.call=function(a){return new g(a,this.project)};return a}();e.ZipOperator=a;var g=function(a){function b(c,d,f){void 0===f&&(f=Object.create(null));a.call(this,c);this.index=0;this.iterators=
[];this.active=0;this.project="function"===typeof d?d:null;this.values=f}h(b,a);b.prototype._next=function(a){var b=this.iterators,f=this.index++;c(a)?b.push(new p(a)):"function"===typeof a[d.SymbolShim.iterator]?b.push(new n(a[d.SymbolShim.iterator]())):b.push(new q(this.destination,this,a,f))};b.prototype._complete=function(){var a=this.iterators,b=a.length;this.active=b;for(var c=0;c<b;c++){var d=a[c];d.stillUnsubscribed?d.subscribe(d,c):this.active--}};b.prototype.notifyInactive=function(){this.active--;
0===this.active&&this.destination.complete()};b.prototype.checkIterators=function(){for(var a=this.iterators,b=a.length,c=this.destination,d=0;d<b;d++){var f=a[d];if("function"===typeof f.hasValue&&!f.hasValue())return}for(var e=!1,g=[],d=0;d<b;d++){var f=a[d],l=f.next();f.hasCompleted()&&(e=!0);if(l.done){c.complete();return}g.push(l.value)}(a=this.project)?(l=k.tryCatch(a).apply(this,g),l===m.errorObject?c.error(m.errorObject.e):c.next(l)):c.next(g);e&&c.complete()};return b}(b.Subscriber);e.ZipSubscriber=
g;var n=function(){function a(b){this.iterator=b;this.nextResult=b.next()}a.prototype.hasValue=function(){return!0};a.prototype.next=function(){var a=this.nextResult;this.nextResult=this.iterator.next();return a};a.prototype.hasCompleted=function(){var a=this.nextResult;return a&&a.done};return a}(),p=function(){function a(b){this.array=b;this.length=this.index=0;this.length=b.length}a.prototype[d.SymbolShim.iterator]=function(){return this};a.prototype.next=function(a){a=this.index++;var b=this.array;
return a<this.length?{value:b[a],done:!1}:{done:!0}};a.prototype.hasValue=function(){return this.array.length>this.index};a.prototype.hasCompleted=function(){return this.array.length===this.index};return a}(),q=function(a){function b(c,d,f,e){a.call(this,c);this.parent=d;this.observable=f;this.index=e;this.stillUnsubscribed=!0;this.buffer=[];this.isComplete=!1}h(b,a);b.prototype[d.SymbolShim.iterator]=function(){return this};b.prototype.next=function(){var a=this.buffer;return 0===a.length&&this.isComplete?
{done:!0}:{value:a.shift(),done:!1}};b.prototype.hasValue=function(){return 0<this.buffer.length};b.prototype.hasCompleted=function(){return 0===this.buffer.length&&this.isComplete};b.prototype.notifyComplete=function(){0<this.buffer.length?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()};b.prototype.notifyNext=function(a,b,c,d){this.buffer.push(b);this.parent.checkIterators()};b.prototype.subscribe=function(a,b){this.add(f.subscribeToResult(this,this.observable,this,
b))};return b}(l.OuterSubscriber)},{"../OuterSubscriber":4,"../Subscriber":7,"../util/SymbolShim":229,"../util/errorObject":230,"../util/subscribeToResult":239,"../util/tryCatch":241}],208:[function(a,b,e){var h=a("./zip-static");e.zipProto=function(){for(var a=[],b=0;b<arguments.length;b++)a[b-0]=arguments[b];a.unshift(this);return h.zip.apply(this,a)}},{"./zip-static":206}],209:[function(a,b,e){var h=a("./zip-support");e.zipAll=function(a){return this.lift(new h.ZipOperator(a))}},{"./zip-support":207}],
210:[function(a,b,e){var h=this&&this.__extends||function(a,b){function f(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(f.prototype=b.prototype,new f)},k=a("../util/Immediate");a=function(a){function b(){a.apply(this,arguments)}h(b,a);b.prototype.schedule=function(a){var b=this;if(this.isUnsubscribed)return this;this.state=a;a=this.scheduler;a.actions.push(this);a.scheduled||(a.scheduled=!0,this.id=k.Immediate.setImmediate(function(){b.id=
null;b.scheduler.scheduled=!1;b.scheduler.flush()}));return this};b.prototype.unsubscribe=function(){var b=this.id,d=this.scheduler;a.prototype.unsubscribe.call(this);0===d.actions.length&&(d.active=!1,d.scheduled=!1);b&&(this.id=null,k.Immediate.clearImmediate(b))};return b}(a("./QueueAction").QueueAction);e.AsapAction=a},{"../util/Immediate":225,"./QueueAction":213}],211:[function(a,b,e){var h=this&&this.__extends||function(a,b){function d(){this.constructor=a}for(var c in b)b.hasOwnProperty(c)&&
(a[c]=b[c]);a.prototype=null===b?Object.create(b):(d.prototype=b.prototype,new d)};b=a("./QueueScheduler");var k=a("./AsapAction"),m=a("./QueueAction");a=function(a){function b(){a.apply(this,arguments)}h(b,a);b.prototype.scheduleNow=function(a,b){return(this.scheduled?new m.QueueAction(this,a):new k.AsapAction(this,a)).schedule(b)};return b}(b.QueueScheduler);e.AsapScheduler=a},{"./AsapAction":210,"./QueueAction":213,"./QueueScheduler":214}],212:[function(a,b,e){var h=this&&this.__extends||function(a,
b){function e(){this.constructor=a}for(var f in b)b.hasOwnProperty(f)&&(a[f]=b[f]);a.prototype=null===b?Object.create(b):(e.prototype=b.prototype,new e)};a=function(a){function b(e,f){a.call(this,e,f);this.scheduler=e;this.work=f}h(b,a);b.prototype.schedule=function(a,b){var d=this;void 0===b&&(b=0);if(this.isUnsubscribed)return this;this.delay=b;this.state=a;var c=this.id;null!=c&&(this.id=void 0,clearTimeout(c));var e=this.scheduler;this.id=setTimeout(function(){d.id=void 0;e.actions.push(d);e.flush()},
this.delay);return this};b.prototype.unsubscribe=function(){var b=this.id;null!=b&&(this.id=void 0,clearTimeout(b));a.prototype.unsubscribe.call(this)};return b}(a("./QueueAction").QueueAction);e.FutureAction=a},{"./QueueAction":213}],213:[function(a,b,e){var h=this&&this.__extends||function(a,b){function e(){this.constructor=a}for(var f in b)b.hasOwnProperty(f)&&(a[f]=b[f]);a.prototype=null===b?Object.create(b):(e.prototype=b.prototype,new e)};a=function(a){function b(e,f){a.call(this);this.scheduler=
e;this.work=f}h(b,a);b.prototype.schedule=function(a){if(this.isUnsubscribed)return this;this.state=a;a=this.scheduler;a.actions.push(this);a.flush();return this};b.prototype.execute=function(){if(this.isUnsubscribed)throw Error("How did did we execute a canceled Action?");this.work(this.state)};b.prototype.unsubscribe=function(){var b=this.scheduler.actions,f=b.indexOf(this);this.scheduler=this.state=this.work=void 0;-1!==f&&b.splice(f,1);a.prototype.unsubscribe.call(this)};return b}(a("../Subscription").Subscription);
e.QueueAction=a},{"../Subscription":8}],214:[function(a,b,e){var h=a("./QueueAction"),k=a("./FutureAction");a=function(){function a(){this.actions=[];this.scheduled=this.active=!1}a.prototype.now=function(){return Date.now()};a.prototype.flush=function(){if(!this.active&&!this.scheduled){this.active=!0;for(var a=this.actions,b=void 0;b=a.shift();)b.execute();this.active=!1}};a.prototype.schedule=function(a,b,d){void 0===b&&(b=0);return 0>=b?this.scheduleNow(a,d):this.scheduleLater(a,b,d)};a.prototype.scheduleNow=
function(a,b){return(new h.QueueAction(this,a)).schedule(b)};a.prototype.scheduleLater=function(a,b,d){return(new k.FutureAction(this,a)).schedule(d,b)};return a}();e.QueueScheduler=a},{"./FutureAction":212,"./QueueAction":213}],215:[function(a,b,e){a=a("./AsapScheduler");e.asap=new a.AsapScheduler},{"./AsapScheduler":211}],216:[function(a,b,e){a=a("./QueueScheduler");e.queue=new a.QueueScheduler},{"./QueueScheduler":214}],217:[function(a,b,e){var h=this&&this.__extends||function(a,b){function e(){this.constructor=
a}for(var f in b)b.hasOwnProperty(f)&&(a[f]=b[f]);a.prototype=null===b?Object.create(b):(e.prototype=b.prototype,new e)};a=function(a){function b(){a.call(this);this._value=void 0;this._isScalar=this._hasNext=!1}h(b,a);b.prototype._subscribe=function(b){this.completeSignal&&this._hasNext&&b.next(this._value);return a.prototype._subscribe.call(this,b)};b.prototype._next=function(a){this._value=a;this._hasNext=!0};b.prototype._complete=function(){var a=-1,b=this.observers,d=b.length;this.observers=
void 0;this.isUnsubscribed=!0;if(this._hasNext)for(;++a<d;){var c=b[a];c.next(this._value);c.complete()}else for(;++a<d;)b[a].complete();this.isUnsubscribed=!1};return b}(a("../Subject").Subject);e.AsyncSubject=a},{"../Subject":6}],218:[function(a,b,e){var h=this&&this.__extends||function(a,b){function d(){this.constructor=a}for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c]);a.prototype=null===b?Object.create(b):(d.prototype=b.prototype,new d)};b=a("../Subject");var k=a("../util/throwError"),m=a("../util/ObjectUnsubscribedError");
a=function(a){function b(d){a.call(this);this._value=d;this._hasError=!1}h(b,a);b.prototype.getValue=function(){if(this._hasError)k.throwError(this._err);else if(this.isUnsubscribed)k.throwError(new m.ObjectUnsubscribedError);else return this._value};Object.defineProperty(b.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0});b.prototype._subscribe=function(b){var c=a.prototype._subscribe.call(this,b);if(c)return c.isUnsubscribed||b.next(this._value),c};b.prototype._next=
function(b){a.prototype._next.call(this,this._value=b)};b.prototype._error=function(b){this._hasError=!0;a.prototype._error.call(this,this._err=b)};return b}(b.Subject);e.BehaviorSubject=a},{"../Subject":6,"../util/ObjectUnsubscribedError":228,"../util/throwError":240}],219:[function(a,b,e){var h=this&&this.__extends||function(a,b){function d(){this.constructor=a}for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c]);a.prototype=null===b?Object.create(b):(d.prototype=b.prototype,new d)};b=a("../Subject");
var k=a("../scheduler/queue");a=function(a){function b(d,c,f){void 0===d&&(d=Number.POSITIVE_INFINITY);void 0===c&&(c=Number.POSITIVE_INFINITY);a.call(this);this.events=[];this.bufferSize=1>d?1:d;this._windowTime=1>c?1:c;this.scheduler=f}h(b,a);b.prototype._next=function(b){var c=this._getNow();this.events.push(new m(c,b));this._trimBufferThenGetEvents(c);a.prototype._next.call(this,b)};b.prototype._subscribe=function(b){for(var c=this._trimBufferThenGetEvents(this._getNow()),f=-1,e=c.length;!b.isUnsubscribed&&
++f<e;)b.next(c[f].value);return a.prototype._subscribe.call(this,b)};b.prototype._getNow=function(){return(this.scheduler||k.queue).now()};b.prototype._trimBufferThenGetEvents=function(a){for(var b=this.bufferSize,f=this._windowTime,e=this.events,h=e.length,k=0;k<h&&!(a-e[k].time<f);)k+=1;h>b&&(k=Math.max(k,h-b));0<k&&e.splice(0,k);return e};return b}(b.Subject);e.ReplaySubject=a;var m=function(){return function(a,b){this.time=a;this.value=b}}()},{"../Subject":6,"../scheduler/queue":216}],220:[function(a,
b,e){var h=this&&this.__extends||function(a,b){function f(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(f.prototype=b.prototype,new f)};b=a("../Subscription");var k=a("../Subscriber");a=function(a){function b(f,d){a.call(this);this.subject=f;this.observer=d;this.isUnsubscribed=!1}h(b,a);b.prototype.unsubscribe=function(){if(!this.isUnsubscribed){this.isUnsubscribed=!0;var a=this.subject,b=a.observers;this.subject=void 0;b&&0!==b.length&&
!a.isUnsubscribed&&(this.observer instanceof k.Subscriber&&this.observer.unsubscribe(),a=b.indexOf(this.observer),-1!==a&&b.splice(a,1))}};return b}(b.Subscription);e.SubjectSubscription=a},{"../Subscriber":7,"../Subscription":8}],221:[function(a,b,e){a=a("../util/SymbolShim");e.rxSubscriber=a.SymbolShim.for("rxSubscriber")},{"../util/SymbolShim":229}],222:[function(a,b,e){a=function(){return function(){this.name="ArgumentOutOfRangeError";this.message="argument out of range"}}();e.ArgumentOutOfRangeError=
a},{}],223:[function(a,b,e){a=function(){return function(){this.name="EmptyError";this.message="no elements in sequence"}}();e.EmptyError=a},{}],224:[function(a,b,e){a=function(){function a(){this.values={}}a.prototype.delete=function(a){this.values[a]=null;return!0};a.prototype.set=function(a,b){this.values[a]=b;return this};a.prototype.get=function(a){return this.values[a]};a.prototype.forEach=function(a,b){var e=this.values,f;for(f in e)e.hasOwnProperty(f)&&null!==e[f]&&a.call(b,e[f],f)};a.prototype.clear=
function(){this.values={}};return a}();e.FastMap=a},{}],225:[function(a,b,e){a=a("./root");b=function(){function a(b){this.root=b;b.setImmediate?(this.setImmediate=b.setImmediate,this.clearImmediate=b.clearImmediate):(this.nextHandle=1,this.tasksByHandle={},this.currentlyRunningATask=!1,this.canUseProcessNextTick()?this.setImmediate=this.createProcessNextTickSetImmediate():this.canUsePostMessage()?this.setImmediate=this.createPostMessageSetImmediate():this.canUseMessageChannel()?this.setImmediate=
this.createMessageChannelSetImmediate():this.canUseReadyStateChange()?this.setImmediate=this.createReadyStateChangeSetImmediate():this.setImmediate=this.createSetTimeoutSetImmediate(),b=function l(a){delete l.instance.tasksByHandle[a]},b.instance=this,this.clearImmediate=b)}a.prototype.identify=function(a){return this.root.Object.prototype.toString.call(a)};a.prototype.canUseProcessNextTick=function(){return"[object process]"===this.identify(this.root.process)};a.prototype.canUseMessageChannel=function(){return Boolean(this.root.MessageChannel)};
a.prototype.canUseReadyStateChange=function(){var a=this.root.document;return Boolean(a&&"onreadystatechange"in a.createElement("script"))};a.prototype.canUsePostMessage=function(){var a=this.root;if(a.postMessage&&!a.importScripts){var b=!0,e=a.onmessage;a.onmessage=function(){b=!1};a.postMessage("","*");a.onmessage=e;return b}return!1};a.prototype.partiallyApplied=function(a){for(var b=[],e=1;e<arguments.length;e++)b[e-1]=arguments[e];e=function d(){var a=d.handler,b=d.args;"function"===typeof a?
a.apply(void 0,b):(new Function(""+a))()};e.handler=a;e.args=b;return e};a.prototype.addFromSetImmediateArguments=function(a){this.tasksByHandle[this.nextHandle]=this.partiallyApplied.apply(void 0,a);return this.nextHandle++};a.prototype.createProcessNextTickSetImmediate=function(){var a=function l(){var a=l.instance,b=a.addFromSetImmediateArguments(arguments);a.root.process.nextTick(a.partiallyApplied(a.runIfPresent,b));return b};a.instance=this;return a};a.prototype.createPostMessageSetImmediate=
function(){var a=this.root,b="setImmediate$"+a.Math.random()+"$",e=function d(c){var e=d.instance;c.source===a&&"string"===typeof c.data&&0===c.data.indexOf(b)&&e.runIfPresent(+c.data.slice(b.length))};e.instance=this;a.addEventListener("message",e,!1);e=function c(){var a=c,b=a.messagePrefix,a=a.instance,e=a.addFromSetImmediateArguments(arguments);a.root.postMessage(b+e,"*");return e};e.instance=this;e.messagePrefix=b;return e};a.prototype.runIfPresent=function(a){if(this.currentlyRunningATask)this.root.setTimeout(this.partiallyApplied(this.runIfPresent,
a),0);else{var b=this.tasksByHandle[a];if(b){this.currentlyRunningATask=!0;try{b()}finally{this.clearImmediate(a),this.currentlyRunningATask=!1}}}};a.prototype.createMessageChannelSetImmediate=function(){var a=this,b=new this.root.MessageChannel;b.port1.onmessage=function(b){a.runIfPresent(b.data)};var e=function d(){var a=d,b=a.channel,a=a.instance.addFromSetImmediateArguments(arguments);b.port2.postMessage(a);return a};e.channel=b;e.instance=this;return e};a.prototype.createReadyStateChangeSetImmediate=
function(){var a=function l(){var a=l.instance,b=a.root.document,c=b.documentElement,e=a.addFromSetImmediateArguments(arguments),h=b.createElement("script");h.onreadystatechange=function(){a.runIfPresent(e);h.onreadystatechange=null;c.removeChild(h);h=null};c.appendChild(h);return e};a.instance=this;return a};a.prototype.createSetTimeoutSetImmediate=function(){var a=function l(){var a=l.instance,b=a.addFromSetImmediateArguments(arguments);a.root.setTimeout(a.partiallyApplied(a.runIfPresent,b),0);
return b};a.instance=this;return a};return a}();e.ImmediateDefinition=b;e.Immediate=new b(a.root)},{"./root":238}],226:[function(a,b,e){b=a("./root");a=a("./MapPolyfill");e.Map=b.root.Map||a.MapPolyfill},{"./MapPolyfill":227,"./root":238}],227:[function(a,b,e){a=function(){function a(){this.size=0;this._values=[];this._keys=[]}a.prototype.get=function(a){a=this._keys.indexOf(a);return-1===a?void 0:this._values[a]};a.prototype.set=function(a,b){var e=this._keys.indexOf(a);-1===e?(this._keys.push(a),
this._values.push(b),this.size++):this._values[e]=b;return this};a.prototype.delete=function(a){a=this._keys.indexOf(a);if(-1===a)return!1;this._values.splice(a,1);this._keys.splice(a,1);this.size--;return!0};a.prototype.forEach=function(a,b){for(var e=0;e<this.size;e++)a.call(b,this._values[e],this._keys[e])};return a}();e.MapPolyfill=a},{}],228:[function(a,b,e){var h=this&&this.__extends||function(a,b){function e(){this.constructor=a}for(var f in b)b.hasOwnProperty(f)&&(a[f]=b[f]);a.prototype=null===
b?Object.create(b):(e.prototype=b.prototype,new e)};a=function(a){function b(){a.call(this,"object unsubscribed");this.name="ObjectUnsubscribedError"}h(b,a);return b}(Error);e.ObjectUnsubscribedError=a},{}],229:[function(a,b,e){function h(a){var b=m(a);f(b,a);d(b);k(b);return b}function k(a){a.for||(a.for=l)}function m(a){a.Symbol||(a.Symbol=function(a){return"@@Symbol("+a+"):"+c++});return a.Symbol}function l(a){return"@@"+a}function f(a,b){if(!a.iterator)if("function"===typeof a.for)a.iterator=
a.for("iterator");else if(b.Set&&"function"===typeof(new b.Set)["@@iterator"])a.iterator="@@iterator";else if(b.Map)for(var c=Object.getOwnPropertyNames(b.Map.prototype),d=0;d<c.length;++d){var e=c[d];if("entries"!==e&&"size"!==e&&b.Map.prototype[e]===b.Map.prototype.entries){a.iterator=e;break}}else a.iterator="@@iterator"}function d(a){a.observable||(a.observable="function"===typeof a.for?a.for("observable"):"@@observable")}a=a("./root");e.polyfillSymbol=h;e.ensureFor=k;var c=0;e.ensureSymbol=m;
e.symbolForPolyfill=l;e.ensureIterator=f;e.ensureObservable=d;e.SymbolShim=h(a.root)},{"./root":238}],230:[function(a,b,e){e.errorObject={e:{}}},{}],231:[function(a,b,e){e.isArray=Array.isArray||function(a){return a&&"number"===typeof a.length}},{}],232:[function(a,b,e){e.isDate=function(a){return a instanceof Date&&!isNaN(+a)}},{}],233:[function(a,b,e){var h=Array.isArray;e.isNumeric=function(a){return!h(a)&&0<=a-parseFloat(a)+1}},{}],234:[function(a,b,e){e.isPromise=function(a){return a&&"function"!==
typeof a.subscribe&&"function"===typeof a.then}},{}],235:[function(a,b,e){e.isScheduler=function(a){return a&&"function"===typeof a.schedule}},{}],236:[function(a,b,e){e.noop=function(){}},{}],237:[function(a,b,e){e.not=function(a,b){function e(){return!e.pred.apply(e.thisArg,arguments)}e.pred=a;e.thisArg=b;return e}},{}],238:[function(a,b,e){a="undefined"!==typeof global?global:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{};b={"boolean":!1,"function":!0,object:!0,number:!1,
string:!1,undefined:!1};e.root=b[typeof self]&&self||b[typeof window]&&window;!(a=b[typeof a]&&a)||a.global!==a&&a.window!==a||(e.root=a)},{}],239:[function(a,b,e){var h=a("../Observable"),k=a("../util/SymbolShim"),m=a("../InnerSubscriber"),l=Array.isArray;e.subscribeToResult=function(a,b,c,e){var n=new m.InnerSubscriber(a,c,e);if(!n.isUnsubscribed){if(b instanceof h.Observable){if(b._isScalar){n.next(b.value);n.complete();return}return b.subscribe(n)}if(l(b)){a=0;for(c=b.length;a<c&&!n.isUnsubscribed;a++)n.next(b[a]);
n.isUnsubscribed||n.complete()}else{if("function"===typeof b.then)return b.then(function(a){n.isUnsubscribed||(n.next(a),n.complete())},function(a){return n.error(a)}).then(null,function(a){setTimeout(function(){throw a;})}),n;if("function"===typeof b[k.SymbolShim.iterator]){for(a=0;a<b.length&&(n.next(b[a]),!n.isUnsubscribed);a++);n.isUnsubscribed||n.complete()}else if("function"===typeof b[k.SymbolShim.observable])if(b=b[k.SymbolShim.observable](),"function"!==typeof b.subscribe)n.error("invalid observable");
else return b.subscribe(new m.InnerSubscriber(a,c,e));else n.error(new TypeError("unknown type returned"))}}}},{"../InnerSubscriber":1,"../Observable":3,"../util/SymbolShim":229}],240:[function(a,b,e){e.throwError=function(a){throw a;}},{}],241:[function(a,b,e){function h(){try{return m.apply(this,arguments)}catch(a){return k.errorObject.e=a,k.errorObject}}var k=a("./errorObject"),m;e.tryCatch=function(a){m=a;return h}},{"./errorObject":230}],242:[function(a,b,e){e.tryOrOnError=function(a){function b(){try{b.target.apply(this,
arguments)}catch(a){this.error(a)}}b.target=a;return b}},{}]},{},[5])(5)});