HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux ip-172-31-4-197 6.8.0-1036-aws #38~22.04.1-Ubuntu SMP Fri Aug 22 15:44:33 UTC 2025 x86_64
User: ubuntu (1000)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/api-storage/node_modules/@swc/core/util.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.wrapNativeSuper = void 0;
//@ts-ignore
function wrapNativeSuper(Class) {
    var _cache = typeof Map === "function" ? new Map() : undefined;
    //@ts-ignore
    exports.wrapNativeSuper = wrapNativeSuper = function wrapNativeSuper(Class) {
        if (Class === null || !_isNativeFunction(Class))
            return Class;
        if (typeof Class !== "function") {
            throw new TypeError("Super expression must either be null or a function");
        }
        if (typeof _cache !== "undefined") {
            if (_cache.has(Class))
                return _cache.get(Class);
            _cache.set(Class, Wrapper);
        }
        function Wrapper() {
            //@ts-ignore
            return _construct(Class, arguments, _getPrototypeOf(this).constructor);
        }
        Wrapper.prototype = Object.create(Class.prototype, {
            constructor: {
                value: Wrapper,
                enumerable: false,
                writable: true,
                configurable: true,
            },
        });
        return _setPrototypeOf(Wrapper, Class);
    };
    return wrapNativeSuper(Class);
}
exports.wrapNativeSuper = wrapNativeSuper;
function isNativeReflectConstruct() {
    if (typeof Reflect === "undefined" || !Reflect.construct)
        return false;
    //@ts-ignore
    if (Reflect.construct.sham)
        return false;
    if (typeof Proxy === "function")
        return true;
    try {
        Date.prototype.toString.call(Reflect.construct(Date, [], function () { }));
        return true;
    }
    catch (e) {
        return false;
    }
}
//@ts-ignore
function _construct(Parent, args, Class) {
    if (isNativeReflectConstruct()) {
        //@ts-ignore
        _construct = Reflect.construct;
    }
    else {
        //@ts-ignore
        _construct = function _construct(Parent, args, Class) {
            var a = [null];
            a.push.apply(a, args);
            //@ts-ignore
            var Constructor = Function.bind.apply(Parent, a);
            //@ts-ignore
            var instance = new Constructor();
            if (Class)
                _setPrototypeOf(instance, Class.prototype);
            return instance;
        };
    }
    //@ts-ignore
    return _construct.apply(null, arguments);
}
function _isNativeFunction(fn) {
    return Function.toString.call(fn).indexOf("[native code]") !== -1;
}
//@ts-ignore
function _setPrototypeOf(o, p) {
    //@ts-ignore
    _setPrototypeOf =
        Object.setPrototypeOf ||
            //@ts-ignore
            function _setPrototypeOf(o, p) {
                o.__proto__ = p;
                return o;
            };
    return _setPrototypeOf(o, p);
}
//@ts-ignore
function _getPrototypeOf(o) {
    //@ts-ignore
    _getPrototypeOf = Object.setPrototypeOf
        ? Object.getPrototypeOf
        : function _getPrototypeOf(
        //@ts-ignore
        o) {
            return o.__proto__ || Object.getPrototypeOf(o);
        };
    return _getPrototypeOf(o);
}
module.exports = {
    wrapNativeSuper,
};