404

[ Avaa Bypassed ]




Upload:

Command:

botdev@3.135.209.247: ~ $
"use strict";
var __extends = (this && this.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    }
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
Object.defineProperty(exports, "__esModule", { value: true });
var fromArray_1 = require("./fromArray");
var isArray_1 = require("../util/isArray");
var Subscriber_1 = require("../Subscriber");
var iterator_1 = require("../../internal/symbol/iterator");
var innerSubscribe_1 = require("../innerSubscribe");
function zip() {
    var observables = [];
    for (var _i = 0; _i < arguments.length; _i++) {
        observables[_i] = arguments[_i];
    }
    var resultSelector = observables[observables.length - 1];
    if (typeof resultSelector === 'function') {
        observables.pop();
    }
    return fromArray_1.fromArray(observables, undefined).lift(new ZipOperator(resultSelector));
}
exports.zip = zip;
var ZipOperator = (function () {
    function ZipOperator(resultSelector) {
        this.resultSelector = resultSelector;
    }
    ZipOperator.prototype.call = function (subscriber, source) {
        return source.subscribe(new ZipSubscriber(subscriber, this.resultSelector));
    };
    return ZipOperator;
}());
exports.ZipOperator = ZipOperator;
var ZipSubscriber = (function (_super) {
    __extends(ZipSubscriber, _super);
    function ZipSubscriber(destination, resultSelector, values) {
        if (values === void 0) { values = Object.create(null); }
        var _this = _super.call(this, destination) || this;
        _this.resultSelector = resultSelector;
        _this.iterators = [];
        _this.active = 0;
        _this.resultSelector = (typeof resultSelector === 'function') ? resultSelector : undefined;
        return _this;
    }
    ZipSubscriber.prototype._next = function (value) {
        var iterators = this.iterators;
        if (isArray_1.isArray(value)) {
            iterators.push(new StaticArrayIterator(value));
        }
        else if (typeof value[iterator_1.iterator] === 'function') {
            iterators.push(new StaticIterator(value[iterator_1.iterator]()));
        }
        else {
            iterators.push(new ZipBufferIterator(this.destination, this, value));
        }
    };
    ZipSubscriber.prototype._complete = function () {
        var iterators = this.iterators;
        var len = iterators.length;
        this.unsubscribe();
        if (len === 0) {
            this.destination.complete();
            return;
        }
        this.active = len;
        for (var i = 0; i < len; i++) {
            var iterator = iterators[i];
            if (iterator.stillUnsubscribed) {
                var destination = this.destination;
                destination.add(iterator.subscribe());
            }
            else {
                this.active--;
            }
        }
    };
    ZipSubscriber.prototype.notifyInactive = function () {
        this.active--;
        if (this.active === 0) {
            this.destination.complete();
        }
    };
    ZipSubscriber.prototype.checkIterators = function () {
        var iterators = this.iterators;
        var len = iterators.length;
        var destination = this.destination;
        for (var i = 0; i < len; i++) {
            var iterator = iterators[i];
            if (typeof iterator.hasValue === 'function' && !iterator.hasValue()) {
                return;
            }
        }
        var shouldComplete = false;
        var args = [];
        for (var i = 0; i < len; i++) {
            var iterator = iterators[i];
            var result = iterator.next();
            if (iterator.hasCompleted()) {
                shouldComplete = true;
            }
            if (result.done) {
                destination.complete();
                return;
            }
            args.push(result.value);
        }
        if (this.resultSelector) {
            this._tryresultSelector(args);
        }
        else {
            destination.next(args);
        }
        if (shouldComplete) {
            destination.complete();
        }
    };
    ZipSubscriber.prototype._tryresultSelector = function (args) {
        var result;
        try {
            result = this.resultSelector.apply(this, args);
        }
        catch (err) {
            this.destination.error(err);
            return;
        }
        this.destination.next(result);
    };
    return ZipSubscriber;
}(Subscriber_1.Subscriber));
exports.ZipSubscriber = ZipSubscriber;
var StaticIterator = (function () {
    function StaticIterator(iterator) {
        this.iterator = iterator;
        this.nextResult = iterator.next();
    }
    StaticIterator.prototype.hasValue = function () {
        return true;
    };
    StaticIterator.prototype.next = function () {
        var result = this.nextResult;
        this.nextResult = this.iterator.next();
        return result;
    };
    StaticIterator.prototype.hasCompleted = function () {
        var nextResult = this.nextResult;
        return Boolean(nextResult && nextResult.done);
    };
    return StaticIterator;
}());
var StaticArrayIterator = (function () {
    function StaticArrayIterator(array) {
        this.array = array;
        this.index = 0;
        this.length = 0;
        this.length = array.length;
    }
    StaticArrayIterator.prototype[iterator_1.iterator] = function () {
        return this;
    };
    StaticArrayIterator.prototype.next = function (value) {
        var i = this.index++;
        var array = this.array;
        return i < this.length ? { value: array[i], done: false } : { value: null, done: true };
    };
    StaticArrayIterator.prototype.hasValue = function () {
        return this.array.length > this.index;
    };
    StaticArrayIterator.prototype.hasCompleted = function () {
        return this.array.length === this.index;
    };
    return StaticArrayIterator;
}());
var ZipBufferIterator = (function (_super) {
    __extends(ZipBufferIterator, _super);
    function ZipBufferIterator(destination, parent, observable) {
        var _this = _super.call(this, destination) || this;
        _this.parent = parent;
        _this.observable = observable;
        _this.stillUnsubscribed = true;
        _this.buffer = [];
        _this.isComplete = false;
        return _this;
    }
    ZipBufferIterator.prototype[iterator_1.iterator] = function () {
        return this;
    };
    ZipBufferIterator.prototype.next = function () {
        var buffer = this.buffer;
        if (buffer.length === 0 && this.isComplete) {
            return { value: null, done: true };
        }
        else {
            return { value: buffer.shift(), done: false };
        }
    };
    ZipBufferIterator.prototype.hasValue = function () {
        return this.buffer.length > 0;
    };
    ZipBufferIterator.prototype.hasCompleted = function () {
        return this.buffer.length === 0 && this.isComplete;
    };
    ZipBufferIterator.prototype.notifyComplete = function () {
        if (this.buffer.length > 0) {
            this.isComplete = true;
            this.parent.notifyInactive();
        }
        else {
            this.destination.complete();
        }
    };
    ZipBufferIterator.prototype.notifyNext = function (innerValue) {
        this.buffer.push(innerValue);
        this.parent.checkIterators();
    };
    ZipBufferIterator.prototype.subscribe = function () {
        return innerSubscribe_1.innerSubscribe(this.observable, new innerSubscribe_1.SimpleInnerSubscriber(this));
    };
    return ZipBufferIterator;
}(innerSubscribe_1.SimpleOuterSubscriber));
//# sourceMappingURL=zip.js.map

Filemanager

Name Type Size Permission Actions
dom Folder 0755
ConnectableObservable.d.ts File 907 B 0644
ConnectableObservable.js File 5.84 KB 0644
ConnectableObservable.js.map File 3.78 KB 0644
SubscribeOnObservable.d.ts File 985 B 0644
SubscribeOnObservable.js File 2.36 KB 0644
SubscribeOnObservable.js.map File 1.24 KB 0644
bindCallback.d.ts File 7.31 KB 0644
bindCallback.js File 3.91 KB 0644
bindCallback.js.map File 2.76 KB 0644
bindNodeCallback.d.ts File 7.31 KB 0644
bindNodeCallback.js File 4.37 KB 0644
bindNodeCallback.js.map File 3.16 KB 0644
combineLatest.d.ts File 14.21 KB 0644
combineLatest.js File 4.28 KB 0644
combineLatest.js.map File 2.89 KB 0644
concat.d.ts File 4.77 KB 0644
concat.js File 436 B 0644
concat.js.map File 294 B 0644
defer.d.ts File 2.1 KB 0644
defer.js File 646 B 0644
defer.js.map File 554 B 0644
empty.d.ts File 2 KB 0644
empty.js File 556 B 0644
empty.js.map File 522 B 0644
forkJoin.d.ts File 3.08 KB 0644
forkJoin.js File 2.65 KB 0644
forkJoin.js.map File 2.38 KB 0644
from.d.ts File 404 B 0644
from.js File 587 B 0644
from.js.map File 411 B 0644
fromArray.d.ts File 187 B 0644
fromArray.js File 551 B 0644
fromArray.js.map File 364 B 0644
fromEvent.d.ts File 2.09 KB 0644
fromEvent.js File 2.7 KB 0644
fromEvent.js.map File 2.45 KB 0644
fromEventPattern.d.ts File 557 B 0644
fromEventPattern.js File 1.28 KB 0644
fromEventPattern.js.map File 1.03 KB 0644
fromIterable.d.ts File 189 B 0644
fromIterable.js File 663 B 0644
fromIterable.js.map File 444 B 0644
fromPromise.d.ts File 191 B 0644
fromPromise.js File 575 B 0644
fromPromise.js.map File 368 B 0644
generate.d.ts File 8.94 KB 0644
generate.js File 3.64 KB 0644
generate.js.map File 2.83 KB 0644
iif.d.ts File 3.08 KB 0644
iif.js File 466 B 0644
iif.js.map File 367 B 0644
interval.d.ts File 1.7 KB 0644
interval.js File 1.04 KB 0644
interval.js.map File 899 B 0644
merge.d.ts File 6.45 KB 0644
merge.js File 1.13 KB 0644
merge.js.map File 938 B 0644
never.d.ts File 1.12 KB 0644
never.js File 321 B 0644
never.js.map File 248 B 0644
of.d.ts File 3.22 KB 0644
of.js File 649 B 0644
of.js.map File 478 B 0644
onErrorResumeNext.d.ts File 1.03 KB 0644
onErrorResumeNext.js File 1.08 KB 0644
onErrorResumeNext.js.map File 843 B 0644
pairs.d.ts File 1.97 KB 0644
pairs.js File 1.59 KB 0644
pairs.js.map File 1.5 KB 0644
partition.d.ts File 2.28 KB 0644
partition.js File 624 B 0644
partition.js.map File 456 B 0644
race.d.ts File 2.53 KB 0644
race.js File 3.3 KB 0644
race.js.map File 2.06 KB 0644
range.d.ts File 1.44 KB 0644
range.js File 1.39 KB 0644
range.js.map File 1.2 KB 0644
throwError.d.ts File 1.81 KB 0644
throwError.js File 645 B 0644
throwError.js.map File 583 B 0644
timer.d.ts File 2.16 KB 0644
timer.js File 1.39 KB 0644
timer.js.map File 1.2 KB 0644
using.d.ts File 2.32 KB 0644
using.js File 1.01 KB 0644
using.js.map File 849 B 0644
zip.d.ts File 5.54 KB 0644
zip.js File 7.82 KB 0644
zip.js.map File 5.84 KB 0644