"use strict";
exports.ids = [
    "552"
];
exports.modules = {
    "./webpack/webpack-lib/branding.ts" (__unused_rspack_module, __webpack_exports__, __webpack_require__) {
        __webpack_require__.d(__webpack_exports__, {
            P: ()=>makeSanitizedConsole,
            h: ()=>scrubBrand
        });
        function scrubBrand(txt, brand = 'Extension.js') {
            if (!txt) return txt;
            const safeBrand = brand.replace(/\$/g, '$$$$');
            const preserved = [];
            const preserve = (value)=>{
                const token = `__EXT_BRAND_PRESERVE_${preserved.length}__`;
                preserved.push(value);
                return token;
            };
            let output = txt.replace(/\bRspack\b(?=\s+performance recommendations:)/gi, preserve).replace(/https?:\/\/rspack\.(?:rs|dev)\/[^\s)]+/gi, preserve).replace(RegExp("(?<!@)\\bRspack\\b", "gi"), safeBrand).replace(RegExp("(?<!@)\\bWebpack\\b", "gi"), safeBrand).replace(RegExp("(?<!@)\\bwebpack-dev-server\\b", "gi"), `${safeBrand} dev server`).replace(RegExp("(?<!@)\\bRspackDevServer\\b", "gi"), `${safeBrand} dev server`).replace(/ModuleBuildError:\s*/g, '').replace(/ModuleParseError:\s*/g, '').replace(/Error:\s*Module\s+build\s+failed.*?\n/gi, '').replace(/\n{3,}/g, '\n\n').replace(/\n{2}(?=WARNING in )/g, '\n');
            preserved.forEach((value, index)=>{
                output = output.replace(`__EXT_BRAND_PRESERVE_${index}__`, value);
            });
            return output;
        }
        function makeSanitizedConsole(brand = 'Extension.js') {
            const sanitize = (a)=>'string' == typeof a ? scrubBrand(a, brand) : a;
            return {
                log: (...args)=>console.log(...args.map(sanitize)),
                info: (...args)=>console.info(...args.map(sanitize)),
                warn: (...args)=>console.warn(...args.map(sanitize)),
                error: (...args)=>console.error(...args.map(sanitize))
            };
        }
    },
    "./webpack/webpack-lib/stats-handler.ts" (__unused_rspack_module, __webpack_exports__, __webpack_require__) {
        __webpack_require__.r(__webpack_exports__);
        __webpack_require__.d(__webpack_exports__, {
            handleStatsErrors: ()=>handleStatsErrors
        });
        var _branding__rspack_import_0 = __webpack_require__("./webpack/webpack-lib/branding.ts");
        function handleStatsErrors(stats) {
            try {
                const verbose = '1' === String(process.env.EXTENSION_VERBOSE || '').trim();
                const str = stats.toString({
                    colors: true,
                    all: false,
                    errors: true,
                    warnings: !!verbose
                });
                if (str) console.error((0, _branding__rspack_import_0.h)(str));
            } catch  {
                try {
                    const str = stats.toString({
                        colors: true,
                        all: false,
                        errors: true,
                        warnings: true
                    });
                    if (str) console.error((0, _branding__rspack_import_0.h)(str));
                } catch  {}
            }
        }
    }
};
