Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) Safe-mode: OFF (not secure) /var/www/html/pmb/node_modules_old/js-sdsl/dist/cjs/container/SequentialContainer/Base/ drwxrwxrwx | |
| Viewing file: Select action/file-type: "use strict";
Object.defineProperty(exports, "t", {
value: true
});
exports.RandomIterator = void 0;
var _ContainerBase = require("../../ContainerBase");
class RandomIterator extends _ContainerBase.ContainerIterator {
constructor(t, r, e, i, s) {
super(s);
this.I = t;
this.D = r;
this.g = e;
this.m = i;
if (this.iteratorType === 0) {
this.pre = function() {
if (this.I === 0) {
throw new RangeError("Random iterator access denied!");
}
this.I -= 1;
return this;
};
this.next = function() {
if (this.I === this.D()) {
throw new RangeError("Random Iterator access denied!");
}
this.I += 1;
return this;
};
} else {
this.pre = function() {
if (this.I === this.D() - 1) {
throw new RangeError("Random iterator access denied!");
}
this.I += 1;
return this;
};
this.next = function() {
if (this.I === -1) {
throw new RangeError("Random iterator access denied!");
}
this.I -= 1;
return this;
};
}
}
get pointer() {
if (this.I < 0 || this.I > this.D() - 1) {
throw new RangeError;
}
return this.g(this.I);
}
set pointer(t) {
if (this.I < 0 || this.I > this.D() - 1) {
throw new RangeError;
}
this.m(this.I, t);
}
equals(t) {
return this.I === t.I;
}
}
exports.RandomIterator = RandomIterator; |
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0052 ]-- |