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,SAC5B,OAAQ,EAAM,OACV,IAAK,OACL,IAAK,QACL,IAAK,QACD,EAAS,GACT,MACJ,QACI,EAAQ,GAEhB,IAGJ,QAAQ,KAAO,QAAQ,IAAM,YAAa,GACtC,EAAO,MAAK,EAAI,YAAY,WAAW,GAC3C,EACA,QAAQ,KAAO,YAAa,GACxB,EAAO,MAAK,EAAI,YAAY,WAAW,GAC3C,EACA,QAAQ,MAAQ,YAAa,GACzB,EAAO,OAAM,EAAI,YAAY,WAAW,GAC5C,EACA,IACI,aAAa,EAAI,iBAAiB,YAAY,EAAQ,QAAS,EACnE,CACA,MAAO,GACH,GAAI,aAAe,iBAAiB,mBAChC,EAAO,MAAM,UAAU,EAAI,eAE1B,IAAI,aAAe,MAAO,CAC3B,IACI,MAAM,GAAU,EAAI,WAAW,qBAAqB,GACpD,EAAO,MAAM,oCAAoC,EAAI,iBACzC,0BAChB,CACA,MAAO,GACH,EAAO,MAAM,oCAAoC,EAAI,gDACV,KACvC,EAAI,OACJ,EAAO,MAAM,EAAI,MAEzB,CACA,OAAO,GACX,CACwB,iBAAR,EACZ,EAAO,MAAM,GAEO,iBAAR,GAIZ,EAAO,MAAM,iCAAiC,IAClD,CACA,OAAO,CACX,CACA,QACI,EAAO,iBACD,EAGN,QAAQ,IAAM,QAAQ,KAAO,EAC7B,QAAQ,KAAO,EACf,QAAQ,MAAQ,CACpB,CACJ","file":"/npm/@angular/cli@21.2.9/lib/cli/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/@angular/cli@21.2.9/lib/cli/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","\"use strict\";\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.VERSION = void 0;\nexports.default = default_1;\nconst core_1 = require(\"@angular-devkit/core\");\nconst node_util_1 = require(\"node:util\");\nconst command_module_1 = require(\"../../src/command-builder/command-module\");\nconst command_runner_1 = require(\"../../src/command-builder/command-runner\");\nconst color_1 = require(\"../../src/utilities/color\");\nconst environment_options_1 = require(\"../../src/utilities/environment-options\");\nconst log_file_1 = require(\"../../src/utilities/log-file\");\nvar version_1 = require(\"../../src/utilities/version\");\nObject.defineProperty(exports, \"VERSION\", { enumerable: true, get: function () { return version_1.VERSION; } });\nconst MIN_NODEJS_VERSION = [20, 19];\n/* eslint-disable no-console */\nasync function default_1(options) {\n    // This node version check ensures that the requirements of the project instance of the CLI are met\n    const [major, minor] = process.versions.node.split('.').map((part) => Number(part));\n    if (major < MIN_NODEJS_VERSION[0] ||\n        (major === MIN_NODEJS_VERSION[0] && minor < MIN_NODEJS_VERSION[1])) {\n        process.stderr.write(`Node.js version ${process.version} detected.\\n` +\n            `The Angular CLI requires a minimum of v${MIN_NODEJS_VERSION[0]}.${MIN_NODEJS_VERSION[1]}.\\n\\n` +\n            'Please update your Node.js version or visit https://nodejs.org/ for additional instructions.\\n');\n        return 3;\n    }\n    const colorLevels = {\n        info: (s) => s,\n        debug: (s) => s,\n        warn: (s) => color_1.colors.bold(color_1.colors.yellow(s)),\n        error: (s) => color_1.colors.bold(color_1.colors.red(s)),\n        fatal: (s) => color_1.colors.bold(color_1.colors.red(s)),\n    };\n    const logger = new core_1.logging.IndentLogger('cli-main-logger');\n    const logInfo = console.log;\n    const logWarn = console.warn;\n    const logError = console.error;\n    const useColor = (0, color_1.supportColor)();\n    const loggerFinished = logger.forEach((entry) => {\n        if (!environment_options_1.ngDebug && entry.level === 'debug') {\n            return;\n        }\n        const color = useColor ? colorLevels[entry.level] : node_util_1.stripVTControlCharacters;\n        const message = color(entry.message);\n        switch (entry.level) {\n            case 'warn':\n            case 'fatal':\n            case 'error':\n                logError(message);\n                break;\n            default:\n                logInfo(message);\n                break;\n        }\n    });\n    // Redirect console to logger\n    console.info = console.log = function (...args) {\n        logger.info((0, node_util_1.format)(...args));\n    };\n    console.warn = function (...args) {\n        logger.warn((0, node_util_1.format)(...args));\n    };\n    console.error = function (...args) {\n        logger.error((0, node_util_1.format)(...args));\n    };\n    try {\n        return await (0, command_runner_1.runCommand)(options.cliArgs, logger);\n    }\n    catch (err) {\n        if (err instanceof command_module_1.CommandModuleError) {\n            logger.fatal(`Error: ${err.message}`);\n        }\n        else if (err instanceof Error) {\n            try {\n                const logPath = (0, log_file_1.writeErrorToLogFile)(err);\n                logger.fatal(`An unhandled exception occurred: ${err.message}\\n` +\n                    `See \"${logPath}\" for further details.`);\n            }\n            catch (e) {\n                logger.fatal(`An unhandled exception occurred: ${err.message}\\n` +\n                    `Fatal error writing debug log file: ${e}`);\n                if (err.stack) {\n                    logger.fatal(err.stack);\n                }\n            }\n            return 127;\n        }\n        else if (typeof err === 'string') {\n            logger.fatal(err);\n        }\n        else if (typeof err === 'number') {\n            // Log nothing.\n        }\n        else {\n            logger.fatal(`An unexpected error occurred: ${err}`);\n        }\n        return 1;\n    }\n    finally {\n        logger.complete();\n        await loggerFinished;\n        // Restore original console methods so that late consumers\n        // (e.g. process.on('exit') handlers) still produce output.\n        console.log = console.info = logInfo;\n        console.warn = logWarn;\n        console.error = logError;\n    }\n}\n"]}