✘✘ GRAYBYTE WORDPRESS FILE MANAGER ✘✘

​🇳​​🇦​​🇲​​🇪♯➤ premium290.web-hosting.com ​🇻​♯➤ 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP 🇾​♯➤ 2025

𝗛𝗢𝗠𝗘 𝗜𝗗 ♯➤ 63.250.38.37 ♯➤ 𝗔𝗗𝗠𝗜𝗡 𝗜𝗗 216.73.216.138
𝗢𝗣𝗧𝗜𝗢𝗡𝗦 ♯ CRL ♯➤ 𝗢𝗞 ┃ WGT ♯➤ 𝗢𝗞 ┃ SDO ♯➤ 𝗢𝗙𝗙 ┃ PKEX ♯➤ 𝗢𝗙𝗙
𝗗𝗘𝗔𝗖𝗧𝗜𝗩𝗔𝗧𝗘𝗗 ♯➤ 𝗔𝗟𝗟 𝗪𝗢𝗥𝗞𝗜𝗡𝗚....

𝗛𝗢𝗠𝗘
𝗖𝗨𝗥𝗥𝗘𝗡𝗧 𝗙𝗜𝗟𝗘 : /lib/node_modules/npm/node_modules/bluebird/js/release//promise_array.js
"use strict";
module.exports = function(Promise, INTERNAL, tryConvertToPromise,
    apiRejection, Proxyable) {
var util = require("./util");
var isArray = util.isArray;

function toResolutionValue(val) {
    switch(val) {
    case -2: return [];
    case -3: return {};
    case -6: return new Map();
    }
}

function PromiseArray(values) {
    var promise = this._promise = new Promise(INTERNAL);
    if (values instanceof Promise) {
        promise._propagateFrom(values, 3);
    }
    promise._setOnCancel(this);
    this._values = values;
    this._length = 0;
    this._totalResolved = 0;
    this._init(undefined, -2);
}
util.inherits(PromiseArray, Proxyable);

PromiseArray.prototype.length = function () {
    return this._length;
};

PromiseArray.prototype.promise = function () {
    return this._promise;
};

PromiseArray.prototype._init = function init(_, resolveValueIfEmpty) {
    var values = tryConvertToPromise(this._values, this._promise);
    if (values instanceof Promise) {
        values = values._target();
        var bitField = values._bitField;
        ;
        this._values = values;

        if (((bitField & 50397184) === 0)) {
            this._promise._setAsyncGuaranteed();
            return values._then(
                init,
                this._reject,
                undefined,
                this,
                resolveValueIfEmpty
           );
        } else if (((bitField & 33554432) !== 0)) {
            values = values._value();
        } else if (((bitField & 16777216) !== 0)) {
            return this._reject(values._reason());
        } else {
            return this._cancel();
        }
    }
    values = util.asArray(values);
    if (values === null) {
        var err = apiRejection(
            "expecting an array or an iterable object but got " + util.classString(values)).reason();
        this._promise._rejectCallback(err, false);
        return;
    }

    if (values.length === 0) {
        if (resolveValueIfEmpty === -5) {
            this._resolveEmptyArray();
        }
        else {
            this._resolve(toResolutionValue(resolveValueIfEmpty));
        }
        return;
    }
    this._iterate(values);
};

PromiseArray.prototype._iterate = function(values) {
    var len = this.getActualLength(values.length);
    this._length = len;
    this._values = this.shouldCopyValues() ? new Array(len) : this._values;
    var result = this._promise;
    var isResolved = false;
    var bitField = null;
    for (var i = 0; i < len; ++i) {
        var maybePromise = tryConvertToPromise(values[i], result);

        if (maybePromise instanceof Promise) {
            maybePromise = maybePromise._target();
            bitField = maybePromise._bitField;
        } else {
            bitField = null;
        }

        if (isResolved) {
            if (bitField !== null) {
                maybePromise.suppressUnhandledRejections();
            }
        } else if (bitField !== null) {
            if (((bitField & 50397184) === 0)) {
                maybePromise._proxy(this, i);
                this._values[i] = maybePromise;
            } else if (((bitField & 33554432) !== 0)) {
                isResolved = this._promiseFulfilled(maybePromise._value(), i);
            } else if (((bitField & 16777216) !== 0)) {
                isResolved = this._promiseRejected(maybePromise._reason(), i);
            } else {
                isResolved = this._promiseCancelled(i);
            }
        } else {
            isResolved = this._promiseFulfilled(maybePromise, i);
        }
    }
    if (!isResolved) result._setAsyncGuaranteed();
};

PromiseArray.prototype._isResolved = function () {
    return this._values === null;
};

PromiseArray.prototype._resolve = function (value) {
    this._values = null;
    this._promise._fulfill(value);
};

PromiseArray.prototype._cancel = function() {
    if (this._isResolved() || !this._promise._isCancellable()) return;
    this._values = null;
    this._promise._cancel();
};

PromiseArray.prototype._reject = function (reason) {
    this._values = null;
    this._promise._rejectCallback(reason, false);
};

PromiseArray.prototype._promiseFulfilled = function (value, index) {
    this._values[index] = value;
    var totalResolved = ++this._totalResolved;
    if (totalResolved >= this._length) {
        this._resolve(this._values);
        return true;
    }
    return false;
};

PromiseArray.prototype._promiseCancelled = function() {
    this._cancel();
    return true;
};

PromiseArray.prototype._promiseRejected = function (reason) {
    this._totalResolved++;
    this._reject(reason);
    return true;
};

PromiseArray.prototype._resultCancelled = function() {
    if (this._isResolved()) return;
    var values = this._values;
    this._cancel();
    if (values instanceof Promise) {
        values.cancel();
    } else {
        for (var i = 0; i < values.length; ++i) {
            if (values[i] instanceof Promise) {
                values[i].cancel();
            }
        }
    }
};

PromiseArray.prototype.shouldCopyValues = function () {
    return true;
};

PromiseArray.prototype.getActualLength = function (len) {
    return len;
};

return PromiseArray;
};


Current_dir [ 𝗡𝗢𝗧 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ] Document_root [ 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ]


[ Back ]
𝗡𝗔𝗠𝗘
𝗦𝗜𝗭𝗘
𝗟𝗔𝗦𝗧 𝗧𝗢𝗨𝗖𝗛
𝗨𝗦𝗘𝗥
𝗦𝗧𝗔𝗧𝗨𝗦
𝗙𝗨𝗡𝗖𝗧𝗜𝗢𝗡𝗦
..
--
3 Mar 2024 10.36 PM
root / root
0755
any.js
0.411 KB
10 Mar 2021 2.36 PM
root / root
0644
assert.js
1.614 KB
10 Mar 2021 2.36 PM
root / root
0644
async.js
4.05 KB
10 Mar 2021 2.36 PM
root / root
0644
bind.js
1.924 KB
10 Mar 2021 2.36 PM
root / root
0644
bluebird.js
0.284 KB
10 Mar 2021 2.36 PM
root / root
0644
call_get.js
4.253 KB
10 Mar 2021 2.36 PM
root / root
0644
cancel.js
3.62 KB
10 Mar 2021 2.36 PM
root / root
0644
catch_filter.js
1.393 KB
10 Mar 2021 2.36 PM
root / root
0644
context.js
2.326 KB
10 Mar 2021 2.36 PM
root / root
0644
debuggability.js
29.63 KB
10 Mar 2021 2.36 PM
root / root
0644
direct_resolve.js
1.362 KB
10 Mar 2021 2.36 PM
root / root
0644
each.js
0.771 KB
10 Mar 2021 2.36 PM
root / root
0644
errors.js
3.63 KB
10 Mar 2021 2.36 PM
root / root
0644
es5.js
1.932 KB
10 Mar 2021 2.36 PM
root / root
0644
filter.js
0.307 KB
10 Mar 2021 2.36 PM
root / root
0644
finally.js
4.505 KB
10 Mar 2021 2.36 PM
root / root
0644
generators.js
7.579 KB
10 Mar 2021 2.36 PM
root / root
0644
join.js
8.025 KB
10 Mar 2021 2.36 PM
root / root
0644
map.js
5.251 KB
10 Mar 2021 2.36 PM
root / root
0644
method.js
1.727 KB
10 Mar 2021 2.36 PM
root / root
0644
nodeback.js
1.523 KB
10 Mar 2021 2.36 PM
root / root
0644
nodeify.js
1.608 KB
10 Mar 2021 2.36 PM
root / root
0644
promise.js
25.591 KB
10 Mar 2021 2.36 PM
root / root
0644
promise_array.js
5.084 KB
10 Mar 2021 2.36 PM
root / root
0644
promisify.js
11.896 KB
10 Mar 2021 2.36 PM
root / root
0644
props.js
3.044 KB
10 Mar 2021 2.36 PM
root / root
0644
queue.js
1.829 KB
10 Mar 2021 2.36 PM
root / root
0644
race.js
1.221 KB
10 Mar 2021 2.36 PM
root / root
0644
reduce.js
5.006 KB
10 Mar 2021 2.36 PM
root / root
0644
schedule.js
2.098 KB
10 Mar 2021 2.36 PM
root / root
0644
settle.js
1.233 KB
10 Mar 2021 2.36 PM
root / root
0644
some.js
3.866 KB
10 Mar 2021 2.36 PM
root / root
0644
synchronous_inspection.js
2.747 KB
10 Mar 2021 2.36 PM
root / root
0644
thenables.js
2.081 KB
10 Mar 2021 2.36 PM
root / root
0644
timers.js
2.339 KB
10 Mar 2021 2.36 PM
root / root
0644
using.js
7.349 KB
10 Mar 2021 2.36 PM
root / root
0644
util.js
10.279 KB
10 Mar 2021 2.36 PM
root / root
0644

✘✘ GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME ✘✘
Static GIF Static GIF