!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

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)

/usr/local/share/.cache/yarn/v6/npm-tailwindcss-2.2.17-integrity/node_modules/tailwindcss/lib/util/   drwxr-xr-x
Free 13.03 GB of 57.97 GB (22.48%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     parseAnimationValue.js (2.4 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = parseAnimationValue;
const DIRECTIONS = new Set(['normal', 'reverse', 'alternate', 'alternate-reverse']);
const PLAY_STATES = new Set(['running', 'paused']);
const FILL_MODES = new Set(['none', 'forwards', 'backwards', 'both']);
const ITERATION_COUNTS = new Set(['infinite']);
const TIMINGS = new Set(['linear', 'ease', 'ease-in', 'ease-out', 'ease-in-out', 'step-start', 'step-end']);
const TIMING_FNS = ['cubic-bezier', 'steps'];
const COMMA = /\,(?![^(]*\))/g; // Comma separator that is not located between brackets. E.g.: `cubiz-bezier(a, b, c)` these don't count.

const SPACE = /\ +(?![^(]*\))/g; // Similar to the one above, but with spaces instead.

const TIME = /^(-?[\d.]+m?s)$/;
const DIGIT = /^(\d+)$/;

function parseAnimationValue(input) {
  let animations = input.split(COMMA);
  return animations.map(animation => {
    let value = animation.trim();
    let result = {
      value
    };
    let parts = value.split(SPACE);
    let seen = new Set();

    for (let part of parts) {
      if (!seen.has('DIRECTIONS') && DIRECTIONS.has(part)) {
        result.direction = part;
        seen.add('DIRECTIONS');
      } else if (!seen.has('PLAY_STATES') && PLAY_STATES.has(part)) {
        result.playState = part;
        seen.add('PLAY_STATES');
      } else if (!seen.has('FILL_MODES') && FILL_MODES.has(part)) {
        result.fillMode = part;
        seen.add('FILL_MODES');
      } else if (!seen.has('ITERATION_COUNTS') && (ITERATION_COUNTS.has(part) || DIGIT.test(part))) {
        result.iterationCount = part;
        seen.add('ITERATION_COUNTS');
      } else if (!seen.has('TIMING_FUNCTION') && TIMINGS.has(part)) {
        result.timingFunction = part;
        seen.add('TIMING_FUNCTION');
      } else if (!seen.has('TIMING_FUNCTION') && TIMING_FNS.some(f => part.startsWith(`${f}(`))) {
        result.timingFunction = part;
        seen.add('TIMING_FUNCTION');
      } else if (!seen.has('DURATION') && TIME.test(part)) {
        result.duration = part;
        seen.add('DURATION');
      } else if (!seen.has('DELAY') && TIME.test(part)) {
        result.delay = part;
        seen.add('DELAY');
      } else if (!seen.has('NAME')) {
        result.name = part;
        seen.add('NAME');
      } else {
        if (!result.unknown) result.unknown = [];
        result.unknown.push(part);
      }
    }

    return result;
  });
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0045 ]--