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AoB,QAAQ,IAEnD,EAAO,cAAc,oBACrB,EAAc,KAAK,IAAI,qBAAqB,QAAQ,IAEpD,EAAO,cAAc,sBACrB,EAAc,KAAK,IAAI,kBAAkB,QAAQ,IAErD,IAAK,MAAM,KAAgB,EACnB,EAAO,SACP,QAAQ,IAAI,KAAI,IAAI,MAAO,6BAA6B,EAAa,YAAY,QAErF,EAAa,UAEjB,gBAAgB,QAAQ,QAAQ,GAIhC,OAHe,EAAO,cAAc,UAC9B,EAAI,mBAAmB,SAAS,EAAK,IAAI,mBAAmB,mBAC5D,EAAI,mBAAmB,SAAS,EAE1C,CACA,QAAQ,YAAc","file":"/npm/sp-js-deobfuscator@1.0.23/dist/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/sp-js-deobfuscator@1.0.23/dist/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\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n    return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.deobfuscate = void 0;\nconst sp_shift_parser_1 = require(\"sp-shift-parser\");\nconst sp_shift_codegen_1 = require(\"sp-shift-codegen\");\nconst proxyRemover_1 = __importDefault(require(\"./modifications/proxies/proxyRemover\"));\nconst expressionSimplifier_1 = __importDefault(require(\"./modifications/expressions/expressionSimplifier\"));\nconst arrayUnpacker_1 = __importDefault(require(\"./modifications/arrays/arrayUnpacker\"));\nconst propertySimplifier_1 = __importDefault(require(\"./modifications/properties/propertySimplifier\"));\nconst cleanupHelper_1 = __importDefault(require(\"./helpers/cleanupHelper\"));\nconst variableRenamer_1 = __importDefault(require(\"./modifications/renaming/variableRenamer\"));\nconst functionExecutor_1 = __importDefault(require(\"./modifications/execution/functionExecutor\"));\nconst deadBranchRemover_1 = __importDefault(require(\"./modifications/branches/deadBranchRemover\"));\nconst defaultConfig = {\n    verbose: false,\n    arrays: {\n        unpackArrays: true,\n        removeArrays: true\n    },\n    proxyFunctions: {\n        replaceProxyFunctions: true,\n        removeProxyFunctions: true\n    },\n    expressions: {\n        simplifyExpressions: true,\n        removeDeadBranches: true\n    },\n    miscellaneous: {\n        beautify: true,\n        simplifyProperties: true,\n        renameHexIdentifiers: false\n    }\n};\n/**\n * Deobfuscates a given source script.\n * @param source The source script.\n * @param config The deobfuscation configuration (optional).\n * @returns The deobfuscated script.\n */\nfunction deobfuscate(source, config = defaultConfig) {\n    const ast = (0, sp_shift_parser_1.parseScript)(source);\n    const modifications = [];\n    // function execution should always be checked for\n    modifications.push(new functionExecutor_1.default(ast));\n    if (config.proxyFunctions.replaceProxyFunctions) {\n        modifications.push(new proxyRemover_1.default(ast, config.proxyFunctions.removeProxyFunctions));\n    }\n    if (config.expressions.simplifyExpressions) {\n        modifications.push(new expressionSimplifier_1.default(ast));\n    }\n    if (config.arrays.unpackArrays) {\n        modifications.push(new arrayUnpacker_1.default(ast, config.arrays.removeArrays));\n    }\n    // simplify any expressions that were revealed by the array unpacking\n    if (config.expressions.simplifyExpressions) {\n        modifications.push(new expressionSimplifier_1.default(ast));\n    }\n    if (config.expressions.removeDeadBranches) {\n        modifications.push(new deadBranchRemover_1.default(ast));\n    }\n    if (config.miscellaneous.simplifyProperties) {\n        modifications.push(new propertySimplifier_1.default(ast));\n    }\n    if (config.miscellaneous.renameHexIdentifiers) {\n        modifications.push(new variableRenamer_1.default(ast));\n    }\n    for (const modification of modifications) {\n        if (config.verbose) {\n            console.log(`[${new Date().toISOString()}]: Executing ${modification.constructor.name}`);\n        }\n        modification.execute();\n    }\n    cleanupHelper_1.default.cleanup(ast);\n    const output = config.miscellaneous.beautify\n        ? (0, sp_shift_codegen_1.codeGen)(ast, new sp_shift_codegen_1.FormattedCodeGen())\n        : (0, sp_shift_codegen_1.codeGen)(ast);\n    return output;\n}\nexports.deobfuscate = deobfuscate;\n"]}