voluptasvelit
Version:
JavaScript obfuscator
24 lines (21 loc) • 233 kB
JavaScript
/*!
Copyright (C) 2016-2018 Timofey Kachalov <sanex3339@yandex.ru>
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
require("source-map-support").install(),module.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var a=t[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,r),a.l=!0,a.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)r.d(n,a,function(t){return e[t]}.bind(null,a));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=202)}([function(e,t){e.exports=require("@babel/runtime/helpers/interopRequireDefault")},function(e,t){e.exports=require("@babel/runtime/helpers/classCallCheck")},function(e,t){e.exports=require("inversify")},function(e,t){e.exports=require("@babel/runtime/helpers/createClass")},function(e,t){e.exports=require("tslib")},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.Factory__ICalleeDataExtractor="Factory<ICalleeDataExtractor>",e.Factory__IControlFlowCustomNode="Factory<IControlFlowCustomNode>",e.Factory__IControlFlowReplacer="Factory<IControlFlowReplacer>",e.Factory__ICustomNode="Factory<ICustomNode>",e.Factory__ICustomNodeGroup="Factory<ICustomNodeGroup>",e.Factory__IDeadCodeInjectionCustomNode="Factory<IDeadCodeInjectionCustomNode>",e.Factory__IIdentifierNamesGenerator="Factory<IIdentifierNamesGenerator>",e.Factory__IIdentifierObfuscatingReplacer="Factory<IIdentifierObfuscatingReplacer>",e.Factory__INodeGuard="Factory<INodeGuard>",e.Factory__INodeTransformer="Factory<INodeTransformer[]>",e.Factory__IObfuscatedCode="Factory<IObfuscatedCode>",e.Factory__IObfuscatingReplacer="Factory<IObfuscatingReplacer>",e.Factory__IPropertiesExtractor="Factory<IPropertiesExtractor>",e.Factory__TControlFlowStorage="Factory<TControlFlowStorage>",e.IArrayUtils="IArrayUtils",e.ICalleeDataExtractor="ICalleeDataExtractor",e.ICryptUtils="ICryptUtils",e.ICustomNode="ICustomNode",e.ICustomNodeGroup="ICustomNodeGroup",e.IControlFlowReplacer="IControlFlowReplacer",e.IEscapeSequenceEncoder="IEscapeSequenceEncoder",e.IIdentifierNamesGenerator="IIdentifierNamesGenerator",e.IIdentifierObfuscatingReplacer="IIdentifierObfuscatingReplacer",e.IJavaScriptObfuscator="IJavaScriptObfuscator",e.ILogger="ILogger",e.INodeGuard="INodeGuard",e.INodeTransformer="INodeTransformer",e.IObfuscationEventEmitter="IObfuscationEventEmitter",e.IObfuscatedCode="IObfuscatedCode",e.IOptions="IOptions",e.IOptionsNormalizer="IOptionsNormalizer",e.IObfuscatingReplacer="IObfuscatingReplacer",e.IPropertiesExtractor="IPropertiesExtractor",e.IRandomGenerator="IRandomGenerator",e.ISourceCode="ISourceCode",e.ISourceMapCorrector="ISourceMapCorrector",e.IStackTraceAnalyzer="IStackTraceAnalyzer",e.ITransformersRunner="ITransformersRunner",e.Newable__ICustomNode="Newable<ICustomNode>",e.Newable__TControlFlowStorage="Newable<TControlFlowStorage>",e.TCustomNodeGroupStorage="TCustomNodeGroupStorage",e.TInputOptions="TInputOptions",e.TStringArrayStorage="TStringArrayStorage"}(t.ServiceIdentifiers||(t.ServiceIdentifiers={}))},function(e,t){e.exports=require("@babel/runtime/helpers/possibleConstructorReturn")},function(e,t){e.exports=require("@babel/runtime/helpers/getPrototypeOf")},function(e,t){e.exports=require("@babel/runtime/helpers/inherits")},function(e,t,r){"use strict";var n=r(0),a=n(r(1)),o=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i=r(19),s=function(){function e(){(0,a.default)(this,e)}return(0,o.default)(e,null,[{key:"isArrayPatternNode",value:function(e){return e.type===i.NodeType.ArrayPattern}},{key:"isArrowFunctionExpressionNode",value:function(e){return e.type===i.NodeType.ArrowFunctionExpression}},{key:"isAssignmentPatternNode",value:function(e){return e.type===i.NodeType.AssignmentPattern}},{key:"isAwaitExpressionNode",value:function(e){return e.type===i.NodeType.AwaitExpression}},{key:"isBlockStatementNode",value:function(e){return e.type===i.NodeType.BlockStatement}},{key:"isBreakStatementNode",value:function(e){return e.type===i.NodeType.BreakStatement}},{key:"isCallExpressionNode",value:function(e){return e.type===i.NodeType.CallExpression}},{key:"isCatchClauseNode",value:function(e){return e.type===i.NodeType.CatchClause}},{key:"isClassDeclarationNode",value:function(e){return e.type===i.NodeType.ClassDeclaration}},{key:"isContinueStatementNode",value:function(e){return e.type===i.NodeType.ContinueStatement}},{key:"isExportNamedDeclarationNode",value:function(e){return e.type===i.NodeType.ExportNamedDeclaration}},{key:"isExpressionStatementNode",value:function(e){return e.type===i.NodeType.ExpressionStatement}},{key:"isFunctionNode",value:function(t){return e.isFunctionDeclarationNode(t)||e.isFunctionExpressionNode(t)||e.isArrowFunctionExpressionNode(t)}},{key:"isFunctionDeclarationNode",value:function(e){return e.type===i.NodeType.FunctionDeclaration}},{key:"isFunctionExpressionNode",value:function(e){return e.type===i.NodeType.FunctionExpression}},{key:"isIdentifierNode",value:function(e){return e.type===i.NodeType.Identifier}},{key:"isImportDeclarationNode",value:function(e){return e.type===i.NodeType.ImportDeclaration}},{key:"isImportSpecifierNode",value:function(e){return e.type===i.NodeType.ImportSpecifier}},{key:"isLabelIdentifierNode",value:function(t,r){var n=e.isLabeledStatementNode(r)&&r.label===t,a=e.isContinueStatementNode(r)&&r.label===t,o=e.isBreakStatementNode(r)&&r.label===t;return n||a||o}},{key:"isLabeledStatementNode",value:function(e){return e.type===i.NodeType.LabeledStatement}},{key:"isLiteralNode",value:function(e){return e.type===i.NodeType.Literal}},{key:"isMemberExpressionNode",value:function(e){return e.type===i.NodeType.MemberExpression}},{key:"isMethodDefinitionNode",value:function(e){return e.type===i.NodeType.MethodDefinition}},{key:"isNode",value:function(e){return e&&void 0!==!e.type}},{key:"isNodeWithLexicalScope",value:function(t){return e.isProgramNode(t)||e.isFunctionNode(t)}},{key:"isNodeWithBlockLexicalScope",value:function(t){return e.isNodeWithLexicalScope(t)||e.isBlockStatementNode(t)}},{key:"isNodeWithLexicalScopeStatements",value:function(t,r){return e.isProgramNode(t)||e.isBlockStatementNode(t)&&e.nodesWithLexicalStatements.includes(r.type)}},{key:"isNodeWithStatements",value:function(t){return e.isProgramNode(t)||e.isBlockStatementNode(t)||e.isSwitchCaseNode(t)}},{key:"isNodeWithComments",value:function(e){return Boolean(e.leadingComments)||Boolean(e.trailingComments)}},{key:"isObjectPatternNode",value:function(e){return e.type===i.NodeType.ObjectPattern}},{key:"isObjectExpressionNode",value:function(e){return e.type===i.NodeType.ObjectExpression}},{key:"isProgramNode",value:function(e){return e.type===i.NodeType.Program}},{key:"isPropertyNode",value:function(e){return e.type===i.NodeType.Property}},{key:"parentNodeIsPropertyNode",value:function(t,r){return e.isPropertyNode(r)&&!r.computed&&r.key===t}},{key:"parentNodeIsMemberExpressionNode",value:function(t,r){return e.isMemberExpressionNode(r)&&!r.computed&&r.property===t}},{key:"parentNodeIsMethodDefinitionNode",value:function(t,r){return e.isMethodDefinitionNode(r)&&!r.computed}},{key:"isReplaceableIdentifierNode",value:function(t,r){return e.isIdentifierNode(t)&&!e.parentNodeIsPropertyNode(t,r)&&!e.parentNodeIsMemberExpressionNode(t,r)&&!e.parentNodeIsMethodDefinitionNode(t,r)&&!e.isLabelIdentifierNode(t,r)}},{key:"isRestElementNode",value:function(e){return e.type===i.NodeType.RestElement}},{key:"isReturnStatementNode",value:function(e){return e.type===i.NodeType.ReturnStatement}},{key:"isSuperNode",value:function(e){return e.type===i.NodeType.Super}},{key:"isSwitchCaseNode",value:function(e){return e.type===i.NodeType.SwitchCase}},{key:"isTaggedTemplateExpressionNode",value:function(e){return e.type===i.NodeType.TaggedTemplateExpression}},{key:"isTemplateLiteralNode",value:function(e){return e.type===i.NodeType.TemplateLiteral}},{key:"isUnaryExpressionNode",value:function(e){return e.type===i.NodeType.UnaryExpression}},{key:"isUseStrictOperator",value:function(e){return e.type===i.NodeType.ExpressionStatement&&"use strict"===e.directive}},{key:"isVariableDeclarationNode",value:function(e){return e.type===i.NodeType.VariableDeclaration}},{key:"isVariableDeclaratorNode",value:function(e){return e.type===i.NodeType.VariableDeclarator}},{key:"isWhileStatementNode",value:function(e){return e.type===i.NodeType.WhileStatement}}]),e}();t.NodeGuards=s,s.nodesWithLexicalStatements=[i.NodeType.ArrowFunctionExpression,i.NodeType.FunctionDeclaration,i.NodeType.FunctionExpression,i.NodeType.MethodDefinition]},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={configurable:!0,enumerable:!0},a="_initialized",o="_initializablePropertiesSet",i="_wrappedMethodsSet",s="constructor";function c(e,t,r){Reflect.hasMetadata(e,r)||Reflect.defineMetadata(e,t,r)}t.initializable=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"initialize",t=Object.keys(this)[0];return function(r,d){var u=r[e];if(!u||"function"!=typeof u)throw new Error("`".concat(e,"` method with initialization logic not ")+"found. `@".concat(t,"` decorator requires `").concat(e,"` method"));return c(a,!1,r),c(o,new Set,r),c(i,new Set,r),function(e,t){var r=Object.getOwnPropertyNames(e),c=[t,s];r.forEach((function(r){var s=Reflect.getMetadata(o,e),d=Reflect.getMetadata(i,e);if(!(c.includes(r)||s.has(r)||d.has(r))&&"function"==typeof e[r]){var u=Object.getOwnPropertyDescriptor(e,r)||n,l=u.value;Object.defineProperty(e,r,Object.assign(Object.assign({},u),{value:function(){if(!Reflect.getMetadata(a,this))throw new Error("Class should be initialized with `".concat(t,"()` method"));return l.apply(this,arguments)}})),d.add(r)}}))}(r,e),function(e,t,r){var o=Object.getOwnPropertyDescriptor(e,t)||n,i=o.value;Object.defineProperty(e,t,Object.assign(Object.assign({},o),{value:function(){Reflect.defineMetadata(a,!0,this);var e=i.apply(this,arguments);return this[r],e}}))}(r,e,d),function(e,t){Reflect.getMetadata(o,e).add(t);var r="_".concat(t.toString()),a=Object.getOwnPropertyDescriptor(e,r)||n;return Object.defineProperty(e,t,Object.assign(Object.assign({},a),{get:function(){if(void 0===this[r])throw new Error("Property `".concat(t.toString(),"` is not initialized! Initialize it first!"));return this[r]},set:function(e){this[r]=e}})),a}(r,d)}}},function(e,t,r){"use strict";var n=r(0),a=n(r(50)),o=n(r(1)),i=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var s=r(4),c=s.__importStar(r(44)),d=s.__importStar(r(51)),u=s.__importStar(r(16)),l=r(9),f=r(17),p=function(){function e(){(0,o.default)(this,e)}return(0,i.default)(e,null,[{key:"addXVerbatimPropertyTo",value:function(e){return e["x-verbatim-property"]={content:e.raw,precedence:c.Precedence.Primary},e}},{key:"clone",value:function(t){return e.parentizeAst(e.cloneRecursive(t))}},{key:"convertCodeToStructure",value:function(t){var r=d.parse(t,{sourceType:"script"});return u.replace(r,{enter:function(t,r){return e.parentizeNode(t,r),l.NodeGuards.isLiteralNode(t)&&e.addXVerbatimPropertyTo(t),f.NodeMetadata.set(t,{ignoredNode:!1}),t}}),r.body}},{key:"convertStructureToCode",value:function(e){return e.reduce((function(e,t){return e+c.generate(t,{sourceMapWithCode:!0}).code}),"")}},{key:"getUnaryExpressionArgumentNode",value:function(t){return l.NodeGuards.isUnaryExpressionNode(t.argument)?e.getUnaryExpressionArgumentNode(t.argument):t.argument}},{key:"parentizeAst",value:function(t){return u.replace(t,{enter:e.parentizeNode}),t}},{key:"parentizeNode",value:function(e,t){return e.parentNode=t||e,e}},{key:"cloneRecursive",value:function(t){if(null===t)return t;var r={};return Object.keys(t).forEach((function(n){if("parentNode"!==n){var o,i=t[n];o=null===i||i instanceof RegExp?i:Array.isArray(i)?i.map(e.cloneRecursive):"object"===(0,a.default)(i)?e.cloneRecursive(i):i,r[n]=o}})),r}}]),e}();t.NodeUtils=p},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.Initializing="Initializing",e.Preparing="Preparing",e.DeadCodeInjection="DeadCodeInjection",e.ControlFlowFlattening="ControlFlowFlattening",e.Converting="Converting",e.Obfuscating="Obfuscating",e.Finalizing="Finalizing"}(t.TransformationStage||(t.TransformationStage={}))},function(e,t,r){"use strict";var n=r(0)(r(1));Object.defineProperty(t,"__esModule",{value:!0});var a=r(4),o=r(2),i=r(5),s=function e(t,r){(0,n.default)(this,e),this.randomGenerator=t,this.options=r};s=a.__decorate([o.injectable(),a.__param(0,o.inject(i.ServiceIdentifiers.IRandomGenerator)),a.__param(1,o.inject(i.ServiceIdentifiers.IOptions)),a.__metadata("design:paramtypes",[Object,Object])],s),t.AbstractNodeTransformer=s},function(e,t,r){"use strict";var n=r(0),a=n(r(1)),o=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i=r(4).__importStar(r(44)),s=r(19),c=function(){function e(){(0,a.default)(this,e)}return(0,o.default)(e,null,[{key:"programNode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return{type:s.NodeType.Program,body:e,sourceType:"script",metadata:{ignoredNode:!1}}}},{key:"arrayExpressionNode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return{type:s.NodeType.ArrayExpression,elements:e,metadata:{ignoredNode:!1}}}},{key:"assignmentExpressionNode",value:function(e,t,r){return{type:s.NodeType.AssignmentExpression,operator:e,left:t,right:r,metadata:{ignoredNode:!1}}}},{key:"binaryExpressionNode",value:function(e,t,r){return{type:s.NodeType.BinaryExpression,operator:e,left:t,right:r,metadata:{ignoredNode:!1}}}},{key:"blockStatementNode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return{type:s.NodeType.BlockStatement,body:e,metadata:{ignoredNode:!1}}}},{key:"breakStatement",value:function(e){return{type:s.NodeType.BreakStatement,label:e,metadata:{ignoredNode:!1}}}},{key:"callExpressionNode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return{type:s.NodeType.CallExpression,callee:e,arguments:t,metadata:{ignoredNode:!1}}}},{key:"continueStatement",value:function(e){return{type:s.NodeType.ContinueStatement,label:e,metadata:{ignoredNode:!1}}}},{key:"expressionStatementNode",value:function(e){return{type:s.NodeType.ExpressionStatement,expression:e,metadata:{ignoredNode:!1}}}},{key:"functionDeclarationNode",value:function(t,r,n){return{type:s.NodeType.FunctionDeclaration,id:e.identifierNode(t),params:r,body:n,generator:!1,metadata:{ignoredNode:!1}}}},{key:"functionExpressionNode",value:function(e,t){return{type:s.NodeType.FunctionExpression,params:e,body:t,generator:!1,metadata:{ignoredNode:!1}}}},{key:"ifStatementNode",value:function(e,t,r){return Object.assign(Object.assign({type:s.NodeType.IfStatement,test:e,consequent:t},r&&{alternate:r}),{metadata:{ignoredNode:!1}})}},{key:"identifierNode",value:function(e){return{type:s.NodeType.Identifier,name:e,metadata:{ignoredNode:!1}}}},{key:"literalNode",value:function(e,t){return t=void 0!==t?t:"'".concat(e,"'"),{type:s.NodeType.Literal,value:e,raw:t,"x-verbatim-property":{content:t,precedence:i.Precedence.Primary},metadata:{ignoredNode:!1}}}},{key:"logicalExpressionNode",value:function(e,t,r){return{type:s.NodeType.LogicalExpression,operator:e,left:t,right:r,metadata:{ignoredNode:!1}}}},{key:"memberExpressionNode",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{type:s.NodeType.MemberExpression,computed:r,object:e,property:t,metadata:{ignoredNode:!1}}}},{key:"methodDefinitionNode",value:function(e,t,r,n){return{type:s.NodeType.MethodDefinition,key:e,value:t,kind:r,computed:n,static:!1,metadata:{ignoredNode:!1}}}},{key:"objectExpressionNode",value:function(e){return{type:s.NodeType.ObjectExpression,properties:e,metadata:{ignoredNode:!1}}}},{key:"propertyNode",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{type:s.NodeType.Property,key:e,value:t,kind:"init",method:!1,shorthand:!1,computed:r,metadata:{ignoredNode:!1}}}},{key:"returnStatementNode",value:function(e){return{type:s.NodeType.ReturnStatement,argument:e,metadata:{ignoredNode:!1}}}},{key:"switchStatementNode",value:function(e,t){return{type:s.NodeType.SwitchStatement,discriminant:e,cases:t,metadata:{ignoredNode:!1}}}},{key:"switchCaseNode",value:function(e,t){return{type:s.NodeType.SwitchCase,test:e,consequent:t,metadata:{ignoredNode:!1}}}},{key:"unaryExpressionNode",value:function(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return{type:s.NodeType.UnaryExpression,operator:e,argument:t,prefix:r,metadata:{ignoredNode:!1}}}},{key:"updateExpressionNode",value:function(e,t){return{type:s.NodeType.UpdateExpression,operator:e,argument:t,prefix:!1,metadata:{ignoredNode:!1}}}},{key:"variableDeclarationNode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"var";return{type:s.NodeType.VariableDeclaration,declarations:e,kind:t,metadata:{ignoredNode:!1}}}},{key:"variableDeclaratorNode",value:function(e,t){return{type:s.NodeType.VariableDeclarator,id:e,init:t,metadata:{ignoredNode:!1}}}},{key:"whileStatementNode",value:function(e,t){return{type:s.NodeType.WhileStatement,test:e,body:t,metadata:{ignoredNode:!1}}}}]),e}();t.NodeFactory=c},function(e,t,r){"use strict";var n,a=r(0),o=a(r(1)),i=a(r(3));Object.defineProperty(t,"__esModule",{value:!0});var s=r(4),c=r(2),d=r(5),u=r(95),l=r(96),f=n=function(){function e(t,r,n){(0,o.default)(this,e),this.cachedNode=null,this.identifierNamesGenerator=t(n),this.randomGenerator=r,this.options=n}return(0,i.default)(e,[{key:"getNode",value:function(){return this.cachedNode||(this.cachedNode=this.getNodeStructure()),this.cachedNode}},{key:"getGlobalVariableTemplate",value:function(){return this.randomGenerator.getRandomGenerator().pickone(n.globalVariableTemplateFunctions)}}]),e}();f.globalVariableTemplateFunctions=[u.GlobalVariableTemplate1(),l.GlobalVariableTemplate2()],f=n=s.__decorate([c.injectable(),s.__param(0,c.inject(d.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),s.__param(1,c.inject(d.ServiceIdentifiers.IRandomGenerator)),s.__param(2,c.inject(d.ServiceIdentifiers.IOptions)),s.__metadata("design:paramtypes",[Function,Object,Object])],f),t.AbstractCustomNode=f},function(e,t){e.exports=require("estraverse")},function(e,t,r){"use strict";var n=r(0),a=n(r(1)),o=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){(0,a.default)(this,e)}return(0,o.default)(e,null,[{key:"set",value:function(e,t){e.metadata=Object.assign(e.metadata||{},t)}},{key:"get",value:function(e,t){return void 0!==e.metadata?e.metadata[t]:void 0}},{key:"isIgnoredNode",value:function(t){return!0===e.get(t,"ignoredNode")}},{key:"isRenamedIdentifier",value:function(t){return!0===e.get(t,"renamedIdentifier")}},{key:"isReplacedLiteral",value:function(t){return!0===e.get(t,"replacedLiteral")}}]),e}();t.NodeMetadata=i},function(e,t){e.exports=require("string-template")},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.ArrayExpression="ArrayExpression",e.ArrayPattern="ArrayPattern",e.ArrowFunctionExpression="ArrowFunctionExpression",e.AssignmentExpression="AssignmentExpression",e.AssignmentPattern="AssignmentPattern",e.AwaitExpression="AwaitExpression",e.BinaryExpression="BinaryExpression",e.BlockStatement="BlockStatement",e.BreakStatement="BreakStatement",e.CallExpression="CallExpression",e.CatchClause="CatchClause",e.ClassDeclaration="ClassDeclaration",e.ContinueStatement="ContinueStatement",e.ExportNamedDeclaration="ExportNamedDeclaration",e.ExpressionStatement="ExpressionStatement",e.FunctionDeclaration="FunctionDeclaration",e.FunctionExpression="FunctionExpression",e.Identifier="Identifier",e.IfStatement="IfStatement",e.ImportDeclaration="ImportDeclaration",e.ImportDefaultSpecifier="ImportDefaultSpecifier",e.ImportNamespaceSpecifier="ImportNamespaceSpecifier",e.ImportSpecifier="ImportSpecifier",e.LabeledStatement="LabeledStatement",e.Literal="Literal",e.LogicalExpression="LogicalExpression",e.MemberExpression="MemberExpression",e.MethodDefinition="MethodDefinition",e.ObjectExpression="ObjectExpression",e.ObjectPattern="ObjectPattern",e.Program="Program",e.Property="Property",e.RestElement="RestElement",e.ReturnStatement="ReturnStatement",e.Super="Super",e.SwitchCase="SwitchCase",e.SwitchStatement="SwitchStatement",e.TaggedTemplateExpression="TaggedTemplateExpression",e.TemplateLiteral="TemplateLiteral",e.TryStatement="TryStatement",e.UnaryExpression="UnaryExpression",e.UpdateExpression="UpdateExpression",e.VariableDeclaration="VariableDeclaration",e.VariableDeclarator="VariableDeclarator",e.WhileStatement="WhileStatement"}(t.NodeType||(t.NodeType={}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.BaseIdentifierObfuscatingReplacer="BaseIdentifierObfuscatingReplacer"}(t.IdentifierObfuscatingReplacer||(t.IdentifierObfuscatingReplacer={}))},function(e,t,r){"use strict";var n=r(0),a=n(r(66)),o=n(r(1)),i=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var s=r(2),c=r(5),d=r(67),u=r(72),l=r(80),f=r(88),p=r(134),m=r(135),g=r(138),N=r(139),v=r(153),y=r(169),_=r(179),h=r(184),b=r(190),S=r(64),I=r(193),C=r(195),O=r(196),F=r(197),j=function(){function e(){(0,o.default)(this,e),this.container=new s.Container}return(0,i.default)(e,[{key:"get",value:function(e){return this.container.get(e)}},{key:"getNamed",value:function(e,t){return this.container.getNamed(e,t)}},{key:"load",value:function(e,t,r){this.container.bind(c.ServiceIdentifiers.ISourceCode).toDynamicValue((function(){return new O.SourceCode(e,t)})).inSingletonScope(),this.container.bind(c.ServiceIdentifiers.TInputOptions).toDynamicValue((function(){return r})).inSingletonScope(),this.container.bind(c.ServiceIdentifiers.ILogger).to(S.Logger).inSingletonScope(),this.container.bind(c.ServiceIdentifiers.IJavaScriptObfuscator).to(b.JavaScriptObfuscator).inSingletonScope(),this.container.bind(c.ServiceIdentifiers.ITransformersRunner).to(F.TransformersRunner).inSingletonScope(),this.container.bind(c.ServiceIdentifiers.IObfuscatedCode).to(C.ObfuscatedCode),this.container.bind(c.ServiceIdentifiers.Factory__IObfuscatedCode).toFactory((function(e){return function(t,r){var n=e.container.get(c.ServiceIdentifiers.IObfuscatedCode);return n.initialize(t,r),n}})),this.container.bind(c.ServiceIdentifiers.IObfuscationEventEmitter).to(I.ObfuscationEventEmitter).inSingletonScope(),this.container.load(d.analyzersModule),this.container.load(u.controlFlowTransformersModule),this.container.load(l.convertingTransformersModule),this.container.load(f.customNodesModule),this.container.load(p.finalizingTransformersModule),this.container.load(m.generatorsModule),this.container.load(g.nodeTransformersModule),this.container.load(N.obfuscatingTransformersModule),this.container.load(v.optionsModule),this.container.load(y.preparingTransformersModule),this.container.load(_.storagesModule),this.container.load(h.utilsModule)}},{key:"unload",value:function(){this.container.unbindAll()}}],[{key:"getFactory",value:function(e){return function(t){return function(r){return t.container.getNamed(e,r)}}}},{key:"getCacheFactory",value:function(e){return function(t){var r=new Map;return function(n){if(r.has(n))return r.get(n);var a=t.container.getNamed(e,n);return r.set(n,a),a}}}},{key:"getConstructorFactory",value:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return function(t){var n=new Map,o=[];return function(i){if(r.forEach((function(e,r){o[r]||(o[r]=t.container.get(e))})),n.has(i))return(0,a.default)(n.get(i),o);var s=t.container.getNamed(e,i);return n.set(i,s),(0,a.default)(s,o)}}}}]),e}();t.InversifyContainerFacade=j},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.BinaryExpressionFunctionNode="BinaryExpressionFunctionNode",e.BlockStatementControlFlowFlatteningNode="BlockStatementControlFlowFlatteningNode",e.CallExpressionControlFlowStorageCallNode="CallExpressionControlFlowStorageCallNode",e.CallExpressionFunctionNode="CallExpressionFunctionNode",e.ControlFlowStorageNode="ControlFlowStorageNode",e.ExpressionWithOperatorControlFlowStorageCallNode="ExpressionWithOperatorControlFlowStorageCallNode",e.LogicalExpressionFunctionNode="LogicalExpressionFunctionNode",e.StringLiteralControlFlowStorageCallNode="StringLiteralControlFlowStorageCallNode",e.StringLiteralNode="StringLiteralNode"}(t.ControlFlowCustomNode||(t.ControlFlowCustomNode={}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.Browser="browser",e.BrowserNoEval="browser-no-eval",e.Node="node"}(t.ObfuscationTarget||(t.ObfuscationTarget={}))},function(e,t,r){"use strict";var n=r(0),a=n(r(1)),o=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i=r(9),s=function(){function e(){(0,a.default)(this,e)}return(0,o.default)(e,null,[{key:"getParentNodeWithStatements",value:function(t){return e.getParentNodesWithStatementsRecursive(t,1)[0]}},{key:"getParentNodesWithStatements",value:function(t){return e.getParentNodesWithStatementsRecursive(t)}},{key:"getNextSiblingStatement",value:function(t){return e.getSiblingStatementByOffset(t,1)}},{key:"getPreviousSiblingStatement",value:function(t){return e.getSiblingStatementByOffset(t,-1)}},{key:"getRootStatementOfNode",value:function(t){if(i.NodeGuards.isProgramNode(t))throw new Error("Unable to find root statement for `Program` node");var r=t.parentNode;if(!r)throw new ReferenceError("`parentNode` property of given node is `undefined`");return i.NodeGuards.isNodeWithStatements(r)?t:e.getRootStatementOfNode(r)}},{key:"getScopeOfNode",value:function(t){var r=t.parentNode;if(!r)throw new ReferenceError("`parentNode` property of given node is `undefined`");return i.NodeGuards.isNodeWithStatements(r)?r:e.getScopeOfNode(r)}},{key:"getParentNodesWithStatementsRecursive",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1/0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;if(n.length>=r)return n;var o=t.parentNode;if(!o)throw new ReferenceError("`parentNode` property of given node is `undefined`");return(i.NodeGuards.isProgramNode(t)||i.NodeGuards.isNodeWithLexicalScopeStatements(t,o)&&a>0)&&n.push(t),t!==o?e.getParentNodesWithStatementsRecursive(o,r,n,++a):n}},{key:"getSiblingStatementByOffset",value:function(t,r){var n=e.getScopeOfNode(t),a=i.NodeGuards.isSwitchCaseNode(n)?n.consequent:n.body,o=a.indexOf(t);return a[o+r]||null}}]),e}();t.NodeStatementUtils=s},function(e,t,r){"use strict";var n=r(0),a=n(r(28)),o=n(r(1)),i=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var s=r(9),c=function(){function e(){(0,o.default)(this,e)}return(0,i.default)(e,null,[{key:"append",value:function(t,r){r=e.parentizeScopeStatementsBeforeAppend(t,r),e.setScopeStatements(t,[].concat((0,a.default)(e.getScopeStatements(t)),(0,a.default)(r)))}},{key:"appendToOptimalBlockScope",value:function(t,r,n){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=t.length?e.getOptimalBlockScope(t,a):r;e.prepend(o,n)}},{key:"getOptimalBlockScope",value:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,a=t[r];if(n<=0)throw new Error("Invalid `deep` argument value. Value should be bigger then 0.");return n>1&&a.stackTrace.length?e.getOptimalBlockScope(a.stackTrace,0,--n):a.callee}},{key:"insertAfter",value:function(t,r,n){var a=e.getScopeStatements(t).indexOf(n);e.insertAtIndex(t,r,a+1)}},{key:"insertAtIndex",value:function(t,r,n){r=e.parentizeScopeStatementsBeforeAppend(t,r),e.setScopeStatements(t,[].concat((0,a.default)(e.getScopeStatements(t).slice(0,n)),(0,a.default)(r),(0,a.default)(e.getScopeStatements(t).slice(n))))}},{key:"prepend",value:function(t,r){r=e.parentizeScopeStatementsBeforeAppend(t,r),e.setScopeStatements(t,[].concat((0,a.default)(r),(0,a.default)(e.getScopeStatements(t))))}},{key:"getScopeStatements",value:function(e){return s.NodeGuards.isSwitchCaseNode(e)?e.consequent:e.body}},{key:"parentizeScopeStatementsBeforeAppend",value:function(e,t){return t.forEach((function(t){t.parentNode=e})),t}},{key:"setScopeStatements",value:function(e,t){s.NodeGuards.isSwitchCaseNode(e)?e.consequent=t:e.body=t}}]),e}();t.NodeAppender=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.AfterObfuscation="afterObfuscation",e.BeforeObfuscation="beforeObfuscation"}(t.ObfuscationEvent||(t.ObfuscationEvent={}))},function(e,t,r){"use strict";var n=r(0),a=n(r(1)),o=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i=r(9),s=function(){function e(){(0,a.default)(this,e)}return(0,o.default)(e,null,[{key:"getLexicalScope",value:function(t){return e.getLexicalScopesRecursive(t,1)[0]}},{key:"getLexicalScopes",value:function(t){return e.getLexicalScopesRecursive(t)}},{key:"getLexicalScopesRecursive",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1/0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;if(n.length>=r)return n;var o=t.parentNode;if(!o)throw new ReferenceError("`parentNode` property of given node is `undefined`");return i.NodeGuards.isNodeWithLexicalScope(t)&&n.push(t),t!==o?e.getLexicalScopesRecursive(o,r,n,++a):n}}]),e}();t.NodeLexicalScopeUtils=s},function(e,t){e.exports=require("@babel/runtime/helpers/toConsumableArray")},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.BlockStatementControlFlowTransformer="BlockStatementControlFlowTransformer",e.ClassDeclarationTransformer="ClassDeclarationTransformer",e.CommentsTransformer="CommentsTransformer",e.CustomNodesTransformer="CustomNodesTransformer",e.DeadCodeInjectionTransformer="DeadCodeInjectionTransformer",e.EvalCallExpressionTransformer="EvalCallExpressionTransformer",e.FunctionControlFlowTransformer="FunctionControlFlowTransformer",e.CatchClauseTransformer="CatchClauseTransformer",e.FunctionDeclarationTransformer="FunctionDeclarationTransformer",e.FunctionTransformer="FunctionTransformer",e.ImportDeclarationTransformer="ImportDeclarationTransformer",e.LabeledStatementTransformer="LabeledStatementTransformer",e.LiteralTransformer="LiteralTransformer",e.MemberExpressionTransformer="MemberExpressionTransformer",e.MetadataTransformer="MetadataTransformer",e.MethodDefinitionTransformer="MethodDefinitionTransformer",e.ObfuscatingGuardsTransformer="ObfuscatingGuardsTransformer",e.ObjectExpressionKeysTransformer="ObjectExpressionKeysTransformer",e.ObjectExpressionTransformer="ObjectExpressionTransformer",e.ParentificationTransformer="ParentificationTransformer",e.TemplateLiteralTransformer="TemplateLiteralTransformer",e.VariableDeclarationTransformer="VariableDeclarationTransformer",e.VariablePreserveTransformer="VariablePreserveTransformer"}(t.NodeTransformer||(t.NodeTransformer={}))},function(e,t){e.exports=require("@babel/runtime/helpers/slicedToArray")},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.ConsoleOutputDisableExpressionNode="ConsoleOutputDisableExpressionNode",e.DebugProtectionFunctionCallNode="DebugProtectionFunctionCallNode",e.DebugProtectionFunctionIntervalNode="DebugProtectionFunctionIntervalNode",e.DebugProtectionFunctionNode="DebugProtectionFunctionNode",e.DomainLockNode="DomainLockNode",e.NodeCallsControllerFunctionNode="NodeCallsControllerFunctionNode",e.SelfDefendingUnicodeNode="SelfDefendingUnicodeNode",e.StringArrayCallsWrapper="StringArrayCallsWrapper",e.StringArrayNode="StringArrayNode",e.StringArrayRotateFunctionNode="StringArrayRotateFunctionNode"}(t.CustomNode||(t.CustomNode={}))},function(e,t,r){"use strict";var n=r(0),a=n(r(1)),o=n(r(3));Object.defineProperty(t,"__esModule",{value:!0}),r(63);var i=r(5),s=r(21),c=function(){function e(){(0,a.default)(this,e)}return(0,o.default)(e,null,[{key:"obfuscate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=new s.InversifyContainerFacade;r.load(e,"",t);var n=r.get(i.ServiceIdentifiers.IJavaScriptObfuscator),a=n.obfuscate(e);return r.unload(),a}}]),e}();t.JavaScriptObfuscator=c,c.version="0.18.8"},function(e,t,r){"use strict";var n=r(0),a=n(r(1)),o=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i=r(4),s=r(2),c=r(5),d=function(){function e(t,r,n){(0,a.default)(this,e),this.identifierNamesGenerator=t(n),this.randomGenerator=r,this.options=n}return(0,o.default)(e,[{key:"getAppendEvent",value:function(){return this.appendEvent}},{key:"getCustomNodes",value:function(){return this.customNodes}},{key:"appendCustomNodeIfExist",value:function(e,t){var r=this.customNodes.get(e);r&&t(r)}},{key:"getRandomStackTraceIndex",value:function(e){return this.randomGenerator.getRandomInteger(0,Math.max(0,Math.round(e-1)))}}]),e}();d=i.__decorate([s.injectable(),i.__param(0,s.inject(c.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i.__param(1,s.inject(c.ServiceIdentifiers.IRandomGenerator)),i.__param(2,s.inject(c.ServiceIdentifiers.IOptions)),i.__metadata("design:paramtypes",[Function,Object,Object])],d),t.AbstractCustomNodeGroup=d},function(e,t,r){"use strict";var n=r(0),a=n(r(1)),o=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){(0,a.default)(this,e)}return(0,o.default)(e,null,[{key:"extractDomainFrom",value:function(e){return(e.indexOf("://")>-1||0===e.indexOf("//")?e.split("/")[2]:e.split("/")[0]).split(":")[0]}}]),e}();t.Utils=i,i.hexadecimalPrefix="0x"},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.HexadecimalIdentifierNamesGenerator="hexadecimal",e.MangledIdentifierNamesGenerator="mangled"}(t.IdentifierNamesGenerator||(t.IdentifierNamesGenerator={}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.Inline="inline",e.Separate="separate"}(t.SourceMapMode||(t.SourceMapMode={}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.Base64="base64",e.Rc4="rc4"}(t.StringArrayEncoding||(t.StringArrayEncoding={}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(35),a=r(23),o=r(36);t.NO_ADDITIONAL_NODES_PRESET=Object.freeze({compact:!0,controlFlowFlattening:!1,controlFlowFlatteningThreshold:0,deadCodeInjection:!1,deadCodeInjectionThreshold:0,debugProtection:!1,debugProtectionInterval:!1,disableConsoleOutput:!1,domainLock:[],exclude:[],identifierNamesGenerator:n.IdentifierNamesGenerator.HexadecimalIdentifierNamesGenerator,identifiersPrefix:"",inputFileName:"",log:!1,renameGlobals:!1,reservedNames:[],reservedStrings:[],rotateStringArray:!1,seed:0,selfDefending:!1,sourceMap:!1,sourceMapBaseUrl:"",sourceMapFileName:"",sourceMapMode:o.SourceMapMode.Separate,stringArray:!1,stringArrayEncoding:!1,stringArrayThreshold:0,target:a.ObfuscationTarget.Browser,transformObjectKeys:!1,unicodeEscapeSequence:!1})},function(e,t){e.exports=require("@babel/runtime/helpers/get")},function(e,t,r){"use strict";var n=r(0),a=n(r(1)),o=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){(0,a.default)(this,e)}return(0,o.default)(e,null,[{key:"toHex",value:function(e){return e.toString(16)}},{key:"isCeil",value:function(e){return e%1==0}}]),e}();t.NumberUtils=i},function(e,t,r){"use strict";var n=r(0)(r(1));Object.defineProperty(t,"__esModule",{value:!0});var a=r(4),o=r(2),i=r(5),s=function e(t){(0,n.default)(this,e),this.options=t};s=a.__decorate([o.injectable(),a.__param(0,o.inject(i.ServiceIdentifiers.IOptions)),a.__metadata("design:paramtypes",[Object])],s),t.AbstractObfuscatingReplacer=s},function(e,t,r){"use strict";var n=r(0)(r(1));Object.defineProperty(t,"__esModule",{value:!0});var a=r(4),o=r(2),i=function e(){(0,n.default)(this,e)};i=a.__decorate([o.injectable()],i),t.AbstractCalleeDataExtractor=i},function(e,t,r){"use strict";var n,a=r(0),o=a(r(1)),i=a(r(3));Object.defineProperty(t,"__esModule",{value:!0});var s=r(4),c=r(2),d=r(5),u=n=function(){function e(t,r,n){(0,o.default)(this,e),this.replacerDataByControlFlowStorageId=new Map,this.controlFlowCustomNodeFactory=t,this.randomGenerator=r,this.options=n}return(0,i.default)(e,[{key:"insertCustomNodeToControlFlowStorage",value:function(e,t,r,a){var o=this,i=t.getStorageId(),s=n.getStorageKeysByIdForCurrentStorage(this.replacerDataByControlFlowStorageId,i),c=s.get(r);if(this.randomGenerator.getMathRandom()<a&&c&&c.length)return this.randomGenerator.getRandomGenerator().pickone(c);var d=function e(r){var n=o.randomGenerator.getRandomString(r);return t.getStorage().has(n)?e(r):n}(5);return s.set(r,[d]),this.replacerDataByControlFlowStorageId.set(i,s),t.set(d,e),d}}],[{key:"getStorageKeysByIdForCurrentStorage",value:function(e,t){return e.has(t)?e.get(t):new Map}}]),e}();u=n=s.__decorate([c.injectable(),s.__param(0,c.inject(d.ServiceIdentifiers.Factory__IControlFlowCustomNode)),s.__param(1,c.inject(d.ServiceIdentifiers.IRandomGenerator)),s.__param(2,c.inject(d.ServiceIdentifiers.IOptions)),s.__metadata("design:paramtypes",[Function,Object,Object])],u),t.AbstractControlFlowReplacer=u},function(e,t){e.exports=require("escodegen-wallaby")},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalVariableNoEvalTemplate=function(){return"\n var that = (typeof window !== 'undefined'\n ? window\n : (typeof process === 'object' &&\n typeof require === 'function' &&\n typeof global === 'object')\n ? global\n : this);\n "}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(35),a=r(23),o=r(36);t.DEFAULT_PRESET=Object.freeze({compact:!0,config:"",controlFlowFlattening:!1,controlFlowFlatteningThreshold:.75,deadCodeInjection:!1,deadCodeInjectionThreshold:.4,debugProtection:!1,debugProtectionInterval:!1,disableConsoleOutput:!1,domainLock:[],exclude:[],identifierNamesGenerator:n.IdentifierNamesGenerator.HexadecimalIdentifierNamesGenerator,identifiersPrefix:"",inputFileName:"",log:!1,renameGlobals:!1,reservedNames:[],reservedStrings:[],rotateStringArray:!0,seed:0,selfDefending:!1,sourceMap:!1,sourceMapBaseUrl:"",sourceMapFileName:"",sourceMapMode:o.SourceMapMode.Separate,stringArray:!0,stringArrayEncoding:!1,stringArrayThreshold:.75,target:a.ObfuscationTarget.Browser,transformObjectKeys:!1,unicodeEscapeSequence:!1})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.FunctionDeclarationCalleeDataExtractor="FunctionDeclarationCalleeDataExtractor",e.FunctionExpressionCalleeDataExtractor="FunctionExpressionCalleeDataExtractor",e.ObjectExpressionCalleeDataExtractor="ObjectExpressionCalleeDataExtractor"}(t.CalleeDataExtractor||(t.CalleeDataExtractor={}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.BinaryExpressionControlFlowReplacer="BinaryExpressionControlFlowReplacer",e.CallExpressionControlFlowReplacer="CallExpressionControlFlowReplacer",e.LogicalExpressionControlFlowReplacer="LogicalExpressionControlFlowReplacer",e.StringLiteralControlFlowReplacer="StringLiteralControlFlowReplacer"}(t.ControlFlowReplacer||(t.ControlFlowReplacer={}))},function(e,t,r){"use strict";var n=r(0),a=n(r(1)),o=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d=r(4),u=r(2),l=r(5),f=r(22),p=r(43),m=r(9),g=function(e){function t(e,r,n){return(0,a.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r,n))}return(0,c.default)(t,e),(0,o.default)(t,[{key:"getControlFlowStorageCallNode",value:function(e,t,r,n){var a=this.controlFlowCustomNodeFactory(f.ControlFlowCustomNode.ExpressionWithOperatorControlFlowStorageCallNode);a.initialize(e,t,r,n);var o=a.getNode()[0];if(!o||!m.NodeGuards.isExpressionStatementNode(o))throw new Error("`controlFlowStorageCallCustomNode.getNode()[0]` should returns array with `ExpressionStatement` node");return o.expression}}]),t}(p.AbstractControlFlowReplacer);g=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IControlFlowCustomNode)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object])],g),t.ExpressionWithOperatorControlFlowReplacer=g},function(e,t){e.exports=require("@babel/runtime/helpers/typeof")},function(e,t){e.exports=require("espree")},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.BlockStatementDeadCodeInjectionNode="BlockStatementDeadCodeInjectionNode"}(t.DeadCodeInjectionCustomNode||(t.DeadCodeInjectionCustomNode={}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.AssignmentExpressionPropertiesExtractor="AssignmentExpressionPropertiesExtractor",e.VariableDeclaratorPropertiesExtractor="VariableDeclaratorPropertiesExtractor"}(t.PropertiesExtractor||(t.PropertiesExtractor={}))},function(e,t,r){"use strict";var n,a=r(0),o=a(r(30)),i=a(r(1)),s=a(r(3));Object.defineProperty(t,"__esModule",{value:!0});var c=r(4),d=r(2),u=r(5),l=r(25),f=r(14),p=r(9),m=r(24),g=n=function(){function e(t,r){(0,i.default)(this,e),this.cachedHostNodesWithStatementsMap=new Map,this.cachedHostStatementsMap=new Map,this.randomGenerator=t,this.options=r}return(0,s.default)(e,[{key:"extractPropertiesToExpressionStatements",value:function(e,t){for(var r=e.length,a=[],o=[],i=0;i<r;i++){var s=e[i],c=s.value;if(!n.isProhibitedPattern(c)){var d=n.getPropertyNodeKeyName(s);if(d){var u=!s.computed||s.computed&&!!s.key&&p.NodeGuards.isLiteralNode(s.key)?f.NodeFactory.literalNode(d):f.NodeFactory.identifierNode(d),l=f.NodeFactory.memberExpressionNode(t,u,!0),m=f.NodeFactory.expressionStatementNode(f.NodeFactory.assignmentExpressionNode("=",l,c));p.NodeGuards.isObjectExpressionNode(s.value)&&this.transformObjectExpressionNode(s.value,l),a.push(m),o.push(i)}}}return[a,o]}},{key:"filterExtractedObjectExpressionProperties",value:function(e,t){e.properties=e.properties.filter((function(e,r){return!t.includes(r)}))}},{key:"transformObjectExpressionNode",value:function(e,t){var r=e.properties,n=this.extractPropertiesToExpressionStatements(r,t),a=(0,o.default)(n,2),i=a[0],s=a[1],c=this.getHostStatement(e),d=this.getHostNodeWithStatements(e,c);return this.filterExtractedObjectExpressionProperties(e,s),l.NodeAppender.insertAfter(d,i,c),e}},{key:"getHostNodeWithStatements",value:function(e,t){if(this.cachedHostNodesWithStatementsMap.has(e))return this.cachedHostNodesWithStatementsMap.get(e);var r=m.NodeStatementUtils.getScopeOfNode(t);return this.cachedHostNodesWithStatementsMap.set(e,r),r}},{key:"getHostStatement",value:function(e){if(this.cachedHostStatementsMap.has(e))return this.cachedHostStatementsMap.get(e);var t=m.NodeStatementUtils.getRootStatementOfNode(e);return this.cachedHostStatementsMap.set(e,t),t}}],[{key:"getPropertyNodeKeyName",value:function(e){if(!e.key)return null;var t=e.key;return p.NodeGuards.isLiteralNode(t)&&"string"==typeof t.value?t.value:p.NodeGuards.isIdentifierNode(t)?t.name:null}},{key:"isProhibitedHostParent",value:function(e){return p.NodeGuards.isMemberExpressionNode(e)}},{key:"isProhibitedPattern",value:function(e){return!e||p.NodeGuards.isObjectPatternNode(e)||p.NodeGuards.isArrayPatternNode(e)||p.NodeGuards.isAssignmentPatternNode(e)||p.NodeGuards.isRestElementNode(e)}}]),e}();g=n=c.__decorate([d.injectable(),c.__param(0,d.inject(u.ServiceIdentifiers.IRandomGenerator)),c.__param(1,d.inject(u.ServiceIdentifiers.IOptions)),c.__metadata("design:paramtypes",[Object,Object])],g),t.AbstractPropertiesExtractor=g},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.ConsoleOutputCustomNodeGroup="ConsoleOutputCustomNodeGroup",e.DebugProtectionCustomNodeGroup="DebugProtectionCustomNodeGroup",e.DomainLockCustomNodeGroup="DomainLockCustomNodeGroup",e.SelfDefendingCustomNodeGroup="SelfDefendingCustomNodeGroup",e.StringArrayCustomNodeGroup="StringArrayCustomNodeGroup"}(t.CustomNodeGroup||(t.CustomNodeGroup={}))},function(e,t,r){"use strict";var n=r(0),a=n(r(1)),o=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i=r(4),s=r(2),c=r(5),d=function(){function e(t,r){(0,a.default)(this,e),this.preservedNames=[],this.randomGenerator=t,this.options=r}return(0,o.default)(e,[{key:"preserveName",value:function(e){this.preservedNames.push(e)}},{key:"isValidIdentifierName",value:function(e){return this.notReservedName(e)&&!this.preservedNames.includes(e)}},{key:"notReservedName",value:function(e){return!this.options.reservedNames.length||!this.options.reservedNames.some((function(t){return null!==new RegExp(t,"g").exec(e)}))}}]),e}();d=i.__decorate([s.injectable(),i.__param(0,s.inject(c.ServiceIdentifiers.IRandomGenerator)),i.__param(1,s.inject(c.ServiceIdentifiers.IOptions)),i.__metadata("design:paramtypes",[Object,Object])],d),t.AbstractIdentifierNamesGenerator=d},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.BooleanLiteralObfuscatingReplacer="BooleanLiteralObfuscatingReplacer",e.NumberLiteralObfuscatingReplacer="NumberLiteralObfuscatingReplacer",e.StringLiteralObfuscatingReplacer="StringLiteralObfuscatingReplacer"}(t.LiteralObfuscatingReplacer||(t.LiteralObfuscatingReplacer={}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.BlackListNodeGuard="BlackListNodeGuard",e.ConditionalCommentNodeGuard="ConditionalCommentNodeGuard"}(t.ObfuscatingGuard||(t.ObfuscatingGuard={}))},function(e,t,r){"use strict";var n,a=r(0),o=a(r(1)),i=a(r(3));Object.defineProperty(t,"__esModule",{value:!0});var s=r(4),c=r(2),d=r(9),u=n=function(){function e(){(0,o.default)(this,e),this.obfuscationAllowedForCurrentNode=!0,this.obfuscationAllowedForNextNode=null}return(0,i.default)(e,[{key:"check",value:function(e){if(this.obfuscationAllowedForNextNode&&(this.obfuscationAllowedForCurrentNode=this.obfuscationAllowedForNextNode,this.obfuscationAllowedForNextNode=null),!d.NodeGuards.isNodeWithComments(e))return this.obfuscationAllowedForCurrentNode;var t=e.leadingComments,r=e.trailingComments;return t&&(this.obfuscationAllowedForCurrentNode=this.checkComments(t)),r&&(this.obfuscationAllowedForNextNode=this.checkComments(r)),this.obfuscationAllowedForCurrentNode}},{key:"checkComments",value:function(e){for(var t=e.length,r=this.obfuscationAllowedForCurrentNode,a=0;a<t;a++){var o=e[a];n.obfuscationEnableCommentRegExp.test(o.value)?r=!0:n.obfuscationDisableCommentRegExp.test(o.value)&&(r=!1)}return r}}],[{key:"isConditionalComment",value:function(e){return n.obfuscationEnableCommentRegExp.test(e.value)||n.obfuscationDisableCommentRegExp.test(e.value)}}]),e}();u.obfuscationEnableCommentRegExp=new RegExp("javascript-obfuscator *: *enable"),u.obfuscationDisableCommentRegExp=new RegExp("javascript-obfuscator *: *disable"),u=n=s.__decorate([c.injectable()],u),t.ConditionalCommentObfuscatingGuard=u},function(e,t,r){"use strict";var n=r(0),a=n(r(28)),o=n(r(30)),i=n(r(1)),s=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var c=r(4),d=r(2),u=r(5),l=r(10),f=function(){function e(t,r){(0,i.default)(this,e),this.randomGenerator=t,this.options=r}return(0,s.default)(e,[{key:"initialize",value:function(){this.storage=new Map,this.storageId=this.randomGenerator.getRandomString(6)}},{key:"get",value:function(e){var t=this.storage.get(e);if(!t)throw new Error("No value found in map storage with key `".concat(e,"`"));return t}},{key:"getKeyOf",value:function(e){var t=!0,r=!1,n=void 0;try{for(var a,i=this.storage[Symbol.iterator]();!(t=(a=i.next()).done);t=!0){var s=(0,o.default)(a.value,2),c=s[0];if(e===s[1])return c}}catch(e){r=!0,n=e}finally{try{t||null==i.return||i.return()}finally{if(r)throw n}}return null}},{key:"getLength",value:function(){return this.storage.size}},{key:"getStorage",value:function(){return this.storage}},{key:"getStorageId",value:function(){return this.storageId}},{key:"has",value:function(e){return this.storage.has(e)}},{key:"merg