UNPKG

javascript-obfuscator

Version:
2 lines 594 kB
/*! For license information please see index.js.LICENSE.txt */ require("source-map-support").install(),(()=>{"use strict";var __webpack_modules__={17:function(e,t,r){var o,n,i=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.BlockStatementSimplifyTransformer=void 0;const c=r(5337),l=r(9835),d=r(77),u=r(3490),f=r(3450),p=r(1136),m=r(6366),g=r(8987),S=r(1527),y=r(9188);let N=class extends m.AbstractStatementSimplifyTransformer{constructor(e,t){super(e,t),this.runAfter=[f.NodeTransformer.VariableDeclarationsMergeTransformer]}getVisitor(e){return e===p.NodeTransformationStage.Simplifying?{leave:(e,t)=>{if(t&&g.NodeGuards.isBlockStatementNode(e))return this.transformNode(e,t)}}:null}transformNode(e,t){const r=this.getStatementSimplifyData(e);if(!r)return e;const o=this.getPartialStatement(r),n=g.NodeGuards.isBlockStatementNode(o)?o:S.NodeFactory.blockStatementNode([o]);return y.NodeUtils.parentizeNode(n,t)}};t.BlockStatementSimplifyTransformer=N,t.BlockStatementSimplifyTransformer=N=i([(0,c.injectable)(),s(0,(0,c.inject)(l.ServiceIdentifiers.IRandomGenerator)),s(1,(0,c.inject)(l.ServiceIdentifiers.IOptions)),a("design:paramtypes",["function"==typeof(o=void 0!==u.IRandomGenerator&&u.IRandomGenerator)?o:Object,"function"==typeof(n=void 0!==d.IOptions&&d.IOptions)?n:Object])],N)},32:function(e,t,r){var o,n,i=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.NumberNumericalExpressionAnalyzer=void 0;const c=r(5337),l=r(3490),d=r(9835),u=r(4488);let f=o=class{constructor(e){this.numberFactorsMap=new Map,this.randomGenerator=e}analyze(e,t){if(isNaN(e))throw new Error("Given value is NaN");return u.NumberUtils.isUnsafeNumber(e)?[e]:this.generateAdditionParts(e,t).map(e=>this.mixWithMultiplyParts(e))}generateAdditionParts(e,t){const r=[],n=Math.min(Math.abs(2*e),Number.MAX_SAFE_INTEGER),i=Math.min(-o.delta,-n),a=Math.max(o.delta,n);let s=0;for(let o=0;o<t;o++)if(o<t-1){let e=this.randomGenerator.getRandomInteger(i,a);u.NumberUtils.isUnsafeNumber(s+e)&&(e=-e),r.push(e),s+=e}else{const t=e-s;u.NumberUtils.isUnsafeNumber(t)?(r.push(0-s),r.push(e)):r.push(t)}return r}mixWithMultiplyParts(e){var t;if(!(this.randomGenerator.getMathRandom()>.5)||0===e)return e;let r=null!==(t=this.numberFactorsMap.get(e))&&void 0!==t?t:null;if(r||(r=u.NumberUtils.getFactors(e),this.numberFactorsMap.set(e,r)),!r.length)return e;const o=r[this.randomGenerator.getRandomInteger(0,r.length-1)];return[o,e/o]}};t.NumberNumericalExpressionAnalyzer=f,f.defaultAdditionalPartsCount=3,f.delta=1e4,t.NumberNumericalExpressionAnalyzer=f=o=i([(0,c.injectable)(),s(0,(0,c.inject)(d.ServiceIdentifiers.IRandomGenerator)),a("design:paramtypes",["function"==typeof(n=void 0!==l.IRandomGenerator&&l.IRandomGenerator)?n:Object])],f)},39:function(e,t,r){var o,n,i=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ParentificationTransformer=void 0;const c=r(5337),l=r(9835),d=r(77),u=r(3490),f=r(1136),p=r(7769),m=r(9188);let g=class extends p.AbstractNodeTransformer{constructor(e,t){super(e,t)}getVisitor(e){return e===f.NodeTransformationStage.Preparing?{enter:(e,t)=>this.transformNode(e,t)}:null}transformNode(e,t){return m.NodeUtils.parentizeNode(e,t)}};t.ParentificationTransformer=g,t.ParentificationTransformer=g=i([(0,c.injectable)(),s(0,(0,c.inject)(l.ServiceIdentifiers.IRandomGenerator)),s(1,(0,c.inject)(l.ServiceIdentifiers.IOptions)),a("design:paramtypes",["function"==typeof(o=void 0!==u.IRandomGenerator&&u.IRandomGenerator)?o:Object,"function"==typeof(n=void 0!==d.IOptions&&d.IOptions)?n:Object])],g)},65:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Rc4Template=function(){return"\n const {rc4FunctionName} = function (str, key) {\n let s = [], j = 0, x, output = '';\n \n str = {atobFunctionName}(str);\n \n let i;\n \t \n for (i = 0; i < 256; i++) {\n s[i] = i;\n }\n \n for (i = 0; i < 256; i++) {\n j = (j + s[i] + key.charCodeAt(i % key.length)) % 256;\n x = s[i];\n s[i] = s[j];\n s[j] = x;\n }\n \n i = 0;\n j = 0;\n \n for (let y = 0; y < str.length; y++) {\n i = (i + 1) % 256;\n j = (j + s[i]) % 256;\n x = s[i];\n s[i] = s[j];\n s[j] = x;\n output += String.fromCharCode(str.charCodeAt(y) ^ s[(s[i] + s[j]) % 256]);\n }\n \n return output;\n }\n "}},77:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},112:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},131:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SelfDefendingRule=void 0,t.SelfDefendingRule=e=>(e.selfDefending&&(e={...e,compact:!0,selfDefending:!0}),e)},149:function(e,t,r){var o,n,i=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.LiteralNodesCacheStorage=void 0;const c=r(5337),l=r(9835),d=r(77),u=r(3490),f=r(1265),p=r(9900);let m=class extends p.MapStorage{constructor(e,t){super(e,t)}buildKey(e,t){return`${e}-${Boolean(t)}`}shouldUseCachedValue(e,t){return!this.options.stringArrayWrappersCount&&(null==t?void 0:t.encoding)!==f.StringArrayEncoding.Rc4&&this.storage.has(e)}};t.LiteralNodesCacheStorage=m,t.LiteralNodesCacheStorage=m=i([(0,c.injectable)(),s(0,(0,c.inject)(l.ServiceIdentifiers.IRandomGenerator)),s(1,(0,c.inject)(l.ServiceIdentifiers.IOptions)),a("design:paramtypes",["function"==typeof(o=void 0!==u.IRandomGenerator&&u.IRandomGenerator)?o:Object,"function"==typeof(n=void 0!==d.IOptions&&d.IOptions)?n:Object])],m)},156:function(e,t,r){var o,n,i=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ThroughIdentifierReplacer=void 0;const c=r(5337),l=r(9835),d=r(3780),u=r(77),f=r(1527);let p=class{constructor(e,t){this.identifierNamesCacheStorage=e,this.options=t}replace(e){var t;const r=e.name,o=this.options.identifierNamesCache&&!this.isReservedName(r)&&null!==(t=this.identifierNamesCacheStorage.get(r))&&void 0!==t?t:r;return f.NodeFactory.identifierNode(o)}isReservedName(e){return!!this.options.reservedNames.length&&this.options.reservedNames.some(t=>null!==new RegExp(t,"g").exec(e))}};t.ThroughIdentifierReplacer=p,t.ThroughIdentifierReplacer=p=i([(0,c.injectable)(),s(0,(0,c.inject)(l.ServiceIdentifiers.IGlobalIdentifierNamesCacheStorage)),s(1,(0,c.inject)(l.ServiceIdentifiers.IOptions)),a("design:paramtypes",["function"==typeof(o=void 0!==d.IGlobalIdentifierNamesCacheStorage&&d.IGlobalIdentifierNamesCacheStorage)?o:Object,"function"==typeof(n=void 0!==u.IOptions&&u.IOptions)?n:Object])],p)},184:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},270:function(e,t,r){var o,n,i,a,s,c=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},l=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},d=this&&this.__param||function(e,t){return function(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.SelfDefendingCodeHelperGroup=void 0;const u=r(5337),f=r(9835),p=r(6660),m=r(2345),g=r(77),S=r(3490),y=r(1808),N=r(9879),h=r(1136),_=r(595),b=r(1126),I=r(9652);let O=class extends _.AbstractCustomCodeHelperGroup{constructor(e,t,r,o){super(t,r,o),this.customCodeHelperFactory=e}appendOnPreparingStage(e,t){var r;if(!this.options.selfDefending)return;const o=this.getRandomCallsGraphIndex(t.length),n=t.length?b.NodeAppender.getOptimalBlockScope(t,o):e,i=t.length?b.NodeAppender.getOptimalBlockScope(t,o,1):e,a=null!==(r=I.NodeLexicalScopeUtils.getLexicalScope(n))&&void 0!==r?r:null,s=a?this.identifierNamesGenerator.generate(a):this.identifierNamesGenerator.generateNext(),c=a?this.identifierNamesGenerator.generate(a):this.identifierNamesGenerator.generateNext();this.appendCustomNodeIfExist(N.CustomCodeHelper.SelfDefending,e=>{e.initialize(c,s),b.NodeAppender.prepend(n,e.getNode())}),this.appendCustomNodeIfExist(N.CustomCodeHelper.CallsControllerFunction,e=>{e.initialize(h.NodeTransformationStage.Preparing,c),b.NodeAppender.prepend(i,e.getNode())})}initialize(){if(this.customCodeHelpers=new Map,!this.options.selfDefending)return;const e=this.customCodeHelperFactory(N.CustomCodeHelper.SelfDefending),t=this.customCodeHelperFactory(N.CustomCodeHelper.CallsControllerFunction);this.customCodeHelpers.set(N.CustomCodeHelper.SelfDefending,e),this.customCodeHelpers.set(N.CustomCodeHelper.CallsControllerFunction,t)}};t.SelfDefendingCodeHelperGroup=O,c([(0,y.initializable)(),l("design:type","function"==typeof(s="undefined"!=typeof Map&&Map)?s:Object)],O.prototype,"customCodeHelpers",void 0),t.SelfDefendingCodeHelperGroup=O=c([(0,u.injectable)(),d(0,(0,u.inject)(f.ServiceIdentifiers.Factory__ICustomCodeHelper)),d(1,(0,u.inject)(f.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d(2,(0,u.inject)(f.ServiceIdentifiers.IRandomGenerator)),d(3,(0,u.inject)(f.ServiceIdentifiers.IOptions)),l("design:paramtypes",["function"==typeof(o=void 0!==p.TCustomCodeHelperFactory&&p.TCustomCodeHelperFactory)?o:Object,"function"==typeof(n=void 0!==m.TIdentifierNamesGeneratorFactory&&m.TIdentifierNamesGeneratorFactory)?n:Object,"function"==typeof(i=void 0!==S.IRandomGenerator&&S.IRandomGenerator)?i:Object,"function"==typeof(a=void 0!==g.IOptions&&g.IOptions)?a:Object])],O)},286:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},297:function(e,t,r){var o,n,i,a,s=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},c=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},l=this&&this.__param||function(e,t){return function(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CallExpressionControlFlowStorageCallNode=void 0;const d=r(5337),u=r(9835),f=r(2345),p=r(9452),m=r(77),g=r(3490),S=r(1808),y=r(5233),N=r(1527),h=r(9188);let _=class extends y.AbstractCustomNode{constructor(e,t,r,o){super(e,t,r,o)}initialize(e,t,r,o){this.controlFlowStorageName=e,this.controlFlowStorageKey=t,this.callee=r,this.expressionArguments=o}getNodeStructure(){const e=N.NodeFactory.expressionStatementNode(N.NodeFactory.callExpressionNode(N.NodeFactory.memberExpressionNode(N.NodeFactory.identifierNode(this.controlFlowStorageName),N.NodeFactory.identifierNode(this.controlFlowStorageKey)),[this.callee,...this.expressionArguments]));return h.NodeUtils.parentizeAst(e),[e]}};t.CallExpressionControlFlowStorageCallNode=_,s([(0,S.initializable)(),c("design:type",Object)],_.prototype,"callee",void 0),s([(0,S.initializable)(),c("design:type",String)],_.prototype,"controlFlowStorageKey",void 0),s([(0,S.initializable)(),c("design:type",String)],_.prototype,"controlFlowStorageName",void 0),s([(0,S.initializable)(),c("design:type",Array)],_.prototype,"expressionArguments",void 0),t.CallExpressionControlFlowStorageCallNode=_=s([(0,d.injectable)(),l(0,(0,d.inject)(u.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),l(1,(0,d.inject)(u.ServiceIdentifiers.ICustomCodeHelperFormatter)),l(2,(0,d.inject)(u.ServiceIdentifiers.IRandomGenerator)),l(3,(0,d.inject)(u.ServiceIdentifiers.IOptions)),c("design:paramtypes",["function"==typeof(o=void 0!==f.TIdentifierNamesGeneratorFactory&&f.TIdentifierNamesGeneratorFactory)?o:Object,"function"==typeof(n=void 0!==p.ICustomCodeHelperFormatter&&p.ICustomCodeHelperFormatter)?n:Object,"function"==typeof(i=void 0!==g.IRandomGenerator&&g.IRandomGenerator)?i:Object,"function"==typeof(a=void 0!==m.IOptions&&m.IOptions)?a:Object])],_)},300:function(e,t,r){var o,n,i,a,s,c,l,d,u=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},f=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},p=this&&this.__param||function(e,t){return function(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayCallNode=void 0;const m=r(5337),g=r(9835),S=r(2345),y=r(9182),N=r(6774),h=r(9452),_=r(77),b=r(3490),I=r(663),O=r(1808),E=r(6026),T=r(1527),v=r(9188),C=r(2647);let R=class extends E.AbstractStringArrayCallNode{constructor(e,t,r,o,n,i,a){super(e,t,r,o,n,i,a)}initialize(e,t,r,o){this.index=e,this.indexShiftAmount=t,this.stringArrayCallsWrapperData=r,this.decodeKey=o}getNodeStructure(){var e,t;const r=this.indexShiftAmount+this.stringArrayCallsWrapperData.index+this.index,o=this.getStringArrayIndexNode(r),n=this.decodeKey?this.getRc4KeyLiteralNode(this.decodeKey):null,i=this.arrayUtils.fillWithRange(this.stringArrayCallsWrapperData.parameterIndexesData?this.options.stringArrayWrappersParametersMaxCount:E.AbstractStringArrayCallNode.stringArrayRootCallsWrapperParametersCount,()=>this.getFakeStringArrayIndexNode(r));i.splice(null!==(t=null===(e=this.stringArrayCallsWrapperData.parameterIndexesData)||void 0===e?void 0:e.valueIndexParameterIndex)&&void 0!==t?t:0,1,o),this.stringArrayCallsWrapperData.parameterIndexesData?i.splice(this.stringArrayCallsWrapperData.parameterIndexesData.decodeKeyParameterIndex,1,null!=n?n:this.getFakeStringArrayIndexNode(r)):n?i.splice(1,1,n):i.splice(1,1);const a=T.NodeFactory.expressionStatementNode(T.NodeFactory.callExpressionNode(T.NodeFactory.identifierNode(this.stringArrayCallsWrapperData.name),i));return v.NodeUtils.parentizeAst(a),[a]}getFakeStringArrayIndexNode(e){return this.getStringArrayIndexNode(this.getFakeStringArrayIndex(e))}getFakeStringArrayIndex(e){const t=this.stringArrayStorage.getLength()/2,r=e-t,o=e+t;return this.randomGenerator.getRandomInteger(r,o)}};t.StringArrayCallNode=R,u([(0,O.initializable)(),f("design:type",Object)],R.prototype,"decodeKey",void 0),u([(0,O.initializable)(),f("design:type",Number)],R.prototype,"index",void 0),u([(0,O.initializable)(),f("design:type",Number)],R.prototype,"indexShiftAmount",void 0),u([(0,O.initializable)(),f("design:type","function"==typeof(d=void 0!==C.IStringArrayScopeCallsWrapperData&&C.IStringArrayScopeCallsWrapperData)?d:Object)],R.prototype,"stringArrayCallsWrapperData",void 0),t.StringArrayCallNode=R=u([(0,m.injectable)(),p(0,(0,m.inject)(g.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),p(1,(0,m.inject)(g.ServiceIdentifiers.Factory__IStringArrayIndexNode)),p(2,(0,m.inject)(g.ServiceIdentifiers.ICustomCodeHelperFormatter)),p(3,(0,m.inject)(g.ServiceIdentifiers.IStringArrayStorage)),p(4,(0,m.inject)(g.ServiceIdentifiers.IArrayUtils)),p(5,(0,m.inject)(g.ServiceIdentifiers.IRandomGenerator)),p(6,(0,m.inject)(g.ServiceIdentifiers.IOptions)),f("design:paramtypes",["function"==typeof(o=void 0!==S.TIdentifierNamesGeneratorFactory&&S.TIdentifierNamesGeneratorFactory)?o:Object,"function"==typeof(n=void 0!==y.TStringArrayIndexNodeFactory&&y.TStringArrayIndexNodeFactory)?n:Object,"function"==typeof(i=void 0!==h.ICustomCodeHelperFormatter&&h.ICustomCodeHelperFormatter)?i:Object,"function"==typeof(a=void 0!==I.IStringArrayStorage&&I.IStringArrayStorage)?a:Object,"function"==typeof(s=void 0!==N.IArrayUtils&&N.IArrayUtils)?s:Object,"function"==typeof(c=void 0!==b.IRandomGenerator&&b.IRandomGenerator)?c:Object,"function"==typeof(l=void 0!==_.IOptions&&_.IOptions)?l:Object])],R)},363:function(e,t,r){var o,n,i,a,s=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,o,n)}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),c=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),l=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},d=this&&this.__importStar||(o=function(e){return o=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t},o(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r=o(e),n=0;n<r.length;n++)"default"!==r[n]&&s(t,e,r[n]);return c(t,e),t}),u=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},f=this&&this.__param||function(e,t){return function(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.SplitStringTransformer=void 0;const p=r(5337),m=r(9835),g=d(r(1659)),S=d(r(3921)),y=r(77),N=r(3490),h=r(3450),_=r(1136),b=r(7769),I=r(1527),O=r(8987),E=r(4601),T=r(9188);let v=n=class extends b.AbstractNodeTransformer{constructor(e,t){super(e,t),this.runAfter=[h.NodeTransformer.ObjectExpressionKeysTransformer,h.NodeTransformer.TemplateLiteralTransformer]}static chunkString(e,t,r){const o=Math.ceil(t/r),n=[];let i=0;for(let t=0;t<o;++t,i+=r)n[t]=S.substr(e,i,r);return n}getVisitor(e){return this.options.splitStrings&&e===_.NodeTransformationStage.Converting?{enter:(e,t)=>{if(t&&O.NodeGuards.isLiteralNode(e))return this.transformNode(e,t)}}:null}transformNode(e,t){if(E.NodeLiteralUtils.isProhibitedLiteralNode(e,t))return e;const r=this.transformLiteralNodeByChunkLength(e,n.firstPassChunkLength),o=g.replace(r,{enter:(e,t)=>{if(O.NodeGuards.isLiteralNode(e))return this.transformLiteralNodeByChunkLength(e,this.options.splitStringsChunkLength)}});return T.NodeUtils.parentizeNode(o,t),T.NodeUtils.parentizeAst(o),o}transformLiteralNodeByChunkLength(e,t){if(!E.NodeLiteralUtils.isStringLiteralNode(e))return e;const r=S.length(e.value);if(t>=r)return e;const o=n.chunkString(e.value,r,t);return this.transformStringChunksToBinaryExpressionNode(o)}transformStringChunksToBinaryExpressionNode(e){const t=e.shift(),r=e.shift();if(!t||!r)throw new Error("First and second chunks values should not be empty");const o=I.NodeFactory.binaryExpressionNode("+",I.NodeFactory.literalNode(t),I.NodeFactory.literalNode(r));return e.reduce((e,t)=>{const r=I.NodeFactory.literalNode(t);return I.NodeFactory.binaryExpressionNode("+",e,r)},o)}};t.SplitStringTransformer=v,v.firstPassChunkLength=1e3,t.SplitStringTransformer=v=n=l([(0,p.injectable)(),f(0,(0,p.inject)(m.ServiceIdentifiers.IRandomGenerator)),f(1,(0,p.inject)(m.ServiceIdentifiers.IOptions)),u("design:paramtypes",["function"==typeof(i=void 0!==N.IRandomGenerator&&N.IRandomGenerator)?i:Object,"function"==typeof(a=void 0!==y.IOptions&&y.IOptions)?a:Object])],v)},442:function(e,t,r){var o,n=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};Object.defineProperty(t,"__esModule",{value:!0}),t.ConditionalCommentObfuscatingGuard=void 0;const i=r(5337),a=r(4967),s=r(8987);let c=o=class{constructor(){this.obfuscationAllowed=!0}static isConditionalComment(e){return o.obfuscationEnableCommentRegExp.test(e.value)||o.obfuscationDisableCommentRegExp.test(e.value)}check(e){if(s.NodeGuards.isNodeWithComments(e)){const t=e.leadingComments;t&&(this.obfuscationAllowed=this.checkComments(t))}return this.obfuscationAllowed?a.ObfuscatingGuardResult.Transform:a.ObfuscatingGuardResult.Ignore}checkComments(e){const t=e.length;let r=this.obfuscationAllowed;for(let n=0;n<t;n++){const t=e[n];o.obfuscationEnableCommentRegExp.test(t.value)?r=!0:o.obfuscationDisableCommentRegExp.test(t.value)&&(r=!1)}return r}};t.ConditionalCommentObfuscatingGuard=c,c.obfuscationEnableCommentRegExp=new RegExp("javascript-obfuscator *: *enable"),c.obfuscationDisableCommentRegExp=new RegExp("javascript-obfuscator *: *disable"),t.ConditionalCommentObfuscatingGuard=c=o=n([(0,i.injectable)()],c)},493:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},506:function(e,t,r){var o,n,i,a,s,c,l=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},d=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},u=this&&this.__param||function(e,t){return function(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractCustomCodeHelper=void 0;const f=r(5337),p=r(9835),m=r(2345),g=r(9452),S=r(1110),y=r(77),N=r(3490),h=r(6348),_=r(2397),b=r(1195),I=r(4614),O=r(7834);let E=o=class{constructor(e,t,r,o,n){this.cachedNode=null,this.identifierNamesGenerator=e(n),this.customCodeHelperFormatter=t,this.customCodeHelperObfuscator=r,this.randomGenerator=o,this.options=n}getNode(){if(!this.cachedNode){const e=this.getCodeHelperTemplate();this.cachedNode=this.customCodeHelperFormatter.formatStructure(this.getNodeStructure(e))}return this.cachedNode}getGlobalVariableTemplate(){switch(this.options.target){case b.ObfuscationTarget.BrowserNoEval:return(0,I.GlobalVariableNoEvalTemplate)();case b.ObfuscationTarget.ServiceWorker:return(0,O.GlobalVariableServiceWorkerTemplate)();default:return this.randomGenerator.getRandomGenerator().pickone(o.globalVariableTemplateFunctions)}}getCodeHelperTemplate(){return""}};t.AbstractCustomCodeHelper=E,E.globalVariableTemplateFunctions=[(0,h.GlobalVariableTemplate1)(),(0,_.GlobalVariableTemplate2)()],t.AbstractCustomCodeHelper=E=o=l([(0,f.injectable)(),u(0,(0,f.inject)(p.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),u(1,(0,f.inject)(p.ServiceIdentifiers.ICustomCodeHelperFormatter)),u(2,(0,f.inject)(p.ServiceIdentifiers.ICustomCodeHelperObfuscator)),u(3,(0,f.inject)(p.ServiceIdentifiers.IRandomGenerator)),u(4,(0,f.inject)(p.ServiceIdentifiers.IOptions)),d("design:paramtypes",["function"==typeof(n=void 0!==m.TIdentifierNamesGeneratorFactory&&m.TIdentifierNamesGeneratorFactory)?n:Object,"function"==typeof(i=void 0!==g.ICustomCodeHelperFormatter&&g.ICustomCodeHelperFormatter)?i:Object,"function"==typeof(a=void 0!==S.ICustomCodeHelperObfuscator&&S.ICustomCodeHelperObfuscator)?a:Object,"function"==typeof(s=void 0!==N.IRandomGenerator&&N.IRandomGenerator)?s:Object,"function"==typeof(c=void 0!==y.IOptions&&y.IOptions)?c:Object])],E)},565:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.optionsModule=void 0;const o=r(5337),n=r(9835),i=r(7167),a=r(2244);t.optionsModule=new o.ContainerModule(e=>{e(n.ServiceIdentifiers.IOptions).to(i.Options).inSingletonScope(),e(n.ServiceIdentifiers.IOptionsNormalizer).to(a.OptionsNormalizer).inSingletonScope()})},582:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},595:function(e,t,r){var o,n,i,a=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=this&&this.__param||function(e,t){return function(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractCustomCodeHelperGroup=void 0;const l=r(5337),d=r(9835),u=r(2345),f=r(77),p=r(3490);let m=class{constructor(e,t,r){this.identifierNamesGenerator=e(r),this.randomGenerator=t,this.options=r}getCustomCodeHelpers(){return this.customCodeHelpers}appendCustomNodeIfExist(e,t){const r=this.customCodeHelpers.get(e);r&&t(r)}getRandomCallsGraphIndex(e){return this.randomGenerator.getRandomInteger(0,Math.max(0,Math.round(e-1)))}};t.AbstractCustomCodeHelperGroup=m,t.AbstractCustomCodeHelperGroup=m=a([(0,l.injectable)(),c(0,(0,l.inject)(d.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),c(1,(0,l.inject)(d.ServiceIdentifiers.IRandomGenerator)),c(2,(0,l.inject)(d.ServiceIdentifiers.IOptions)),s("design:paramtypes",["function"==typeof(o=void 0!==u.TIdentifierNamesGeneratorFactory&&u.TIdentifierNamesGeneratorFactory)?o:Object,"function"==typeof(n=void 0!==p.IRandomGenerator&&p.IRandomGenerator)?n:Object,"function"==typeof(i=void 0!==f.IOptions&&f.IOptions)?i:Object])],m)},600:function(e,t,r){var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayCallsWrapperRc4CodeHelper=void 0;const n=r(5337),i=r(5054),a=r(65),s=r(1451),c=r(3599);let l=class extends c.StringArrayCallsWrapperCodeHelper{getDecodeStringArrayTemplate(){const e=this.randomGenerator.getRandomString(6),t=this.randomGenerator.getRandomString(6),r=this.customCodeHelperFormatter.formatTemplate((0,i.AtobTemplate)(this.options.selfDefending),{atobFunctionName:e}),o=this.customCodeHelperFormatter.formatTemplate((0,a.Rc4Template)(),{atobFunctionName:e,rc4FunctionName:t}),n=this.getSelfDefendingTemplate();return this.customCodeHelperFormatter.formatTemplate((0,s.StringArrayRC4DecodeTemplate)(this.randomGenerator),{atobPolyfill:r,rc4FunctionName:t,rc4Polyfill:o,selfDefendingCode:n,stringArrayCallsWrapperName:this.stringArrayCallsWrapperName,stringArrayFunctionName:this.stringArrayFunctionName})}};t.StringArrayCallsWrapperRc4CodeHelper=l,t.StringArrayCallsWrapperRc4CodeHelper=l=o([(0,n.injectable)()],l)},607:function(e,t,r){var o,n=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},a=this&&this.__param||function(e,t){return function(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ForceTransformStringObfuscatingGuard=void 0;const s=r(5337),c=r(77),l=r(4967),d=r(9835),u=r(8987);let f=class{constructor(e){this.options=e}check(e){return this.options.forceTransformStrings.length&&u.NodeGuards.isLiteralNode(e)&&"string"==typeof e.value&&this.isForceTransformString(e.value)?l.ObfuscatingGuardResult.ForceTransform:l.ObfuscatingGuardResult.Transform}isForceTransformString(e){return this.options.forceTransformStrings.some(t=>null!==new RegExp(t,"g").exec(e))}};t.ForceTransformStringObfuscatingGuard=f,t.ForceTransformStringObfuscatingGuard=f=n([(0,s.injectable)(),a(0,(0,s.inject)(d.ServiceIdentifiers.IOptions)),i("design:paramtypes",["function"==typeof(o=void 0!==c.IOptions&&c.IOptions)?o:Object])],f)},616:function(e,t,r){var o,n,i,a,s,c=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},l=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},d=this&&this.__param||function(e,t){return function(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.DebugProtectionFunctionIntervalCodeHelper=void 0;const u=r(5337),f=r(9835),p=r(2345),m=r(9452),g=r(1110),S=r(77),y=r(3490),N=r(1195),h=r(1808),_=r(4568),b=r(4614),I=r(506),O=r(9188);let E=class extends I.AbstractCustomCodeHelper{constructor(e,t,r,o,n){super(e,t,r,o,n)}initialize(e,t){this.debugProtectionFunctionName=e,this.debugProtectionInterval=t}getNodeStructure(e){return O.NodeUtils.convertCodeToStructure(e)}getCodeHelperTemplate(){const e=this.options.target!==N.ObfuscationTarget.BrowserNoEval?this.getGlobalVariableTemplate():(0,b.GlobalVariableNoEvalTemplate)();return this.customCodeHelperFormatter.formatTemplate((0,_.DebugProtectionFunctionIntervalTemplate)(),{debugProtectionFunctionName:this.debugProtectionFunctionName,debugProtectionInterval:this.debugProtectionInterval,globalVariableTemplate:e})}};t.DebugProtectionFunctionIntervalCodeHelper=E,c([(0,h.initializable)(),l("design:type",String)],E.prototype,"debugProtectionFunctionName",void 0),c([(0,h.initializable)(),l("design:type",Number)],E.prototype,"debugProtectionInterval",void 0),t.DebugProtectionFunctionIntervalCodeHelper=E=c([(0,u.injectable)(),d(0,(0,u.inject)(f.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d(1,(0,u.inject)(f.ServiceIdentifiers.ICustomCodeHelperFormatter)),d(2,(0,u.inject)(f.ServiceIdentifiers.ICustomCodeHelperObfuscator)),d(3,(0,u.inject)(f.ServiceIdentifiers.IRandomGenerator)),d(4,(0,u.inject)(f.ServiceIdentifiers.IOptions)),l("design:paramtypes",["function"==typeof(o=void 0!==p.TIdentifierNamesGeneratorFactory&&p.TIdentifierNamesGeneratorFactory)?o:Object,"function"==typeof(n=void 0!==m.ICustomCodeHelperFormatter&&m.ICustomCodeHelperFormatter)?n:Object,"function"==typeof(i=void 0!==g.ICustomCodeHelperObfuscator&&g.ICustomCodeHelperObfuscator)?i:Object,"function"==typeof(a=void 0!==y.IRandomGenerator&&y.IRandomGenerator)?a:Object,"function"==typeof(s=void 0!==S.IOptions&&S.IOptions)?s:Object])],E)},620:function(e,t,r){var o,n,i=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.NumberLiteralTransformer=void 0;const c=r(5337),l=r(9835),d=r(77),u=r(3490),f=r(3450),p=r(1136),m=r(7769),g=r(1527),S=r(8987),y=r(4488);let N=class extends m.AbstractNodeTransformer{constructor(e,t){super(e,t),this.runAfter=[f.NodeTransformer.NumberToNumericalExpressionTransformer],this.numberLiteralCache=new Map}getVisitor(e){return e===p.NodeTransformationStage.Converting?{enter:(e,t)=>{if(t&&S.NodeGuards.isLiteralNode(e))return this.transformNode(e,t)}}:null}transformNode(e,t){if("number"!=typeof e.value&&"bigint"!=typeof e.value)return e;const r=e.value;let o;return this.numberLiteralCache.has(r)?o=this.numberLiteralCache.get(r):(o=y.NumberUtils.isCeil(r)?y.NumberUtils.toHex(r):String(r),this.numberLiteralCache.set(r,o)),g.NodeFactory.literalNode(r,o)}};t.NumberLiteralTransformer=N,t.NumberLiteralTransformer=N=i([(0,c.injectable)(),s(0,(0,c.inject)(l.ServiceIdentifiers.IRandomGenerator)),s(1,(0,c.inject)(l.ServiceIdentifiers.IOptions)),a("design:paramtypes",["function"==typeof(o=void 0!==u.IRandomGenerator&&u.IRandomGenerator)?o:Object,"function"==typeof(n=void 0!==d.IOptions&&d.IOptions)?n:Object])],N)},624:function(e,t,r){var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};Object.defineProperty(t,"__esModule",{value:!0}),t.CodeTransformerNamesGroupsBuilder=void 0;const n=r(5337),i=r(6368);let a=class extends i.AbstractTransformerNamesGroupsBuilder{};t.CodeTransformerNamesGroupsBuilder=a,t.CodeTransformerNamesGroupsBuilder=a=o([(0,n.injectable)()],a)},641:function(e,t,r){var o,n,i,a,s=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},c=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},l=this&&this.__param||function(e,t){return function(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.DeadCodeInjectionIdentifiersTransformer=void 0;const d=r(5337),u=r(9835),f=r(8949),p=r(77),m=r(3490),g=r(5149),S=r(1136),y=r(7769),N=r(8987);let h=class extends y.AbstractNodeTransformer{constructor(e,t,r,o){super(t,r),this.identifierReplacer=e,this.scopeIdentifiersTraverser=o}getVisitor(e){return e===S.NodeTransformationStage.RenameIdentifiers?{enter:(e,t)=>{if(t&&N.NodeGuards.isProgramNode(e))return this.transformNode(e,t)}}:null}transformNode(e,t){return this.scopeIdentifiersTraverser.traverseScopeThroughIdentifiers(e,t,e=>{const{reference:t,variableLexicalScopeNode:r}=e;this.transformScopeThroughIdentifiers(t,r)}),e}transformScopeThroughIdentifiers(e,t){if(e.resolved)return;const r=e.identifier;this.storeIdentifierName(r,t),this.replaceIdentifierName(r,t,e)}storeIdentifierName(e,t){this.identifierReplacer.storeLocalName(e,t)}replaceIdentifierName(e,t,r){const o=this.identifierReplacer.replace(e,t);r.identifier.name=o.name}};t.DeadCodeInjectionIdentifiersTransformer=h,t.DeadCodeInjectionIdentifiersTransformer=h=s([(0,d.injectable)(),l(0,(0,d.inject)(u.ServiceIdentifiers.IIdentifierReplacer)),l(1,(0,d.inject)(u.ServiceIdentifiers.IRandomGenerator)),l(2,(0,d.inject)(u.ServiceIdentifiers.IOptions)),l(3,(0,d.inject)(u.ServiceIdentifiers.IScopeIdentifiersTraverser)),c("design:paramtypes",["function"==typeof(o=void 0!==f.IIdentifierReplacer&&f.IIdentifierReplacer)?o:Object,"function"==typeof(n=void 0!==m.IRandomGenerator&&m.IRandomGenerator)?n:Object,"function"==typeof(i=void 0!==p.IOptions&&p.IOptions)?i:Object,"function"==typeof(a=void 0!==g.IScopeIdentifiersTraverser&&g.IScopeIdentifiersTraverser)?a:Object])],h)},648:(e,t)=>{var r;Object.defineProperty(t,"__esModule",{value:!0}),t.CustomCodeHelperGroup=void 0,function(e){e.ConsoleOutput="ConsoleOutput",e.DebugProtection="DebugProtection",e.DomainLock="DomainLock",e.SelfDefending="SelfDefending",e.StringArray="StringArray"}(r||(t.CustomCodeHelperGroup=r={}))},663:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},704:(e,t)=>{var r;Object.defineProperty(t,"__esModule",{value:!0}),t.CodeTransformationStage=void 0,function(e){e.PreparingTransformers="PreparingTransformers",e.FinalizingTransformers="FinalizingTransformers"}(r||(t.CodeTransformationStage=r={}))},742:function(e,t,r){var o,n,i=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CustomCodeHelperObfuscator=void 0;const c=r(5337),l=r(9835),d=r(77),u=r(3490),f=r(5267),p=r(4061);let m=class{constructor(e,t){this.randomGenerator=e,this.options=t}obfuscateTemplate(e,t={}){return p.JavaScriptObfuscator.obfuscate(e,{...f.NO_ADDITIONAL_NODES_PRESET,identifierNamesGenerator:this.options.identifierNamesGenerator,identifiersDictionary:this.options.identifiersDictionary,numbersToExpressions:this.options.numbersToExpressions,simplify:this.options.simplify,seed:this.randomGenerator.getRawSeed(),...t}).getObfuscatedCode()}};t.CustomCodeHelperObfuscator=m,t.CustomCodeHelperObfuscator=m=i([(0,c.injectable)(),s(0,(0,c.inject)(l.ServiceIdentifiers.IRandomGenerator)),s(1,(0,c.inject)(l.ServiceIdentifiers.IOptions)),a("design:paramtypes",["function"==typeof(o=void 0!==u.IRandomGenerator&&u.IRandomGenerator)?o:Object,"function"==typeof(n=void 0!==d.IOptions&&d.IOptions)?n:Object])],m)},806:function(e,t,r){var o,n=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},a=this&&this.__param||function(e,t){return function(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ArrayUtils=void 0;const s=r(5337),c=r(9835),l=r(3490);let d=class{constructor(e){this.randomGenerator=e}createWithRange(e){const t=[];for(let r=0;r<e;r++)t.push(r);return t}fillWithRange(e,t){const r=[];for(let o=0;o<e;o++)r.push(t(o));return r}findMostOccurringElement(e){var t;if(!e.length)return null;const r={};let o=e[0],n=1;for(const i of e){const e=(null!==(t=r[i])&&void 0!==t?t:0)+1;e>n&&(o=i,n=e),r[i]=e}return o}getLastElement(e){return this.getLastElementByIndex(e,0)}getLastElementByIndex(e,t){var r;return null!==(r=e[e.length-1-t])&&void 0!==r?r:void 0}rotate(e,t){if(!e.length)throw new ReferenceError("Cannot rotate empty array.");if(t<=0)return e;const r=e;let o;for(;t--;)o=r.pop(),o&&r.unshift(o);return r}shuffle(e){const t=[...e];for(let e=t.length;e;e--){const r=Math.floor(this.randomGenerator.getMathRandom()*e);[t[e-1],t[r]]=[t[r],t[e-1]]}return t}};t.ArrayUtils=d,t.ArrayUtils=d=n([(0,s.injectable)(),a(0,(0,s.inject)(c.ServiceIdentifiers.IRandomGenerator)),i("design:paramtypes",["function"==typeof(o=void 0!==l.IRandomGenerator&&l.IRandomGenerator)?o:Object])],d)},829:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},858:function(e,t,r){var o,n,i=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ObjectPatternPropertiesTransformer=void 0;const c=r(5337),l=r(9835),d=r(77),u=r(3490),f=r(1136),p=r(7769),m=r(8987),g=r(9652),S=r(9188);let y=class extends p.AbstractNodeTransformer{constructor(e,t){super(e,t)}getVisitor(e){return e===f.NodeTransformationStage.Converting?{enter:(e,t)=>{if(t&&m.NodeGuards.isPropertyNode(e))return this.transformNode(e,t)}}:null}transformNode(e,t){if(!m.NodeGuards.isObjectPatternNode(t)||!e.shorthand)return e;if(!this.options.renameGlobals){const t=g.NodeLexicalScopeUtils.getLexicalScope(e);if(t&&m.NodeGuards.isProgramNode(t))return e}return e.shorthand=!1,e.value=S.NodeUtils.clone(e.value),S.NodeUtils.parentizeNode(e.value,e),e}};t.ObjectPatternPropertiesTransformer=y,t.ObjectPatternPropertiesTransformer=y=i([(0,c.injectable)(),s(0,(0,c.inject)(l.ServiceIdentifiers.IRandomGenerator)),s(1,(0,c.inject)(l.ServiceIdentifiers.IOptions)),a("design:paramtypes",["function"==typeof(o=void 0!==u.IRandomGenerator&&u.IRandomGenerator)?o:Object,"function"==typeof(n=void 0!==d.IOptions&&d.IOptions)?n:Object])],y)},861:function(e,t,r){var o,n,i,a,s=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},c=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},l=this&&this.__param||function(e,t){return function(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ExpressionWithOperatorControlFlowStorageCallNode=void 0;const d=r(5337),u=r(9835),f=r(2345),p=r(9452),m=r(77),g=r(3490),S=r(1808),y=r(5233),N=r(1527),h=r(9188);let _=class extends y.AbstractCustomNode{constructor(e,t,r,o){super(e,t,r,o)}initialize(e,t,r,o){this.controlFlowStorageName=e,this.controlFlowStorageKey=t,this.leftValue=r,this.rightValue=o}getNodeStructure(){const e=N.NodeFactory.expressionStatementNode(N.NodeFactory.callExpressionNode(N.NodeFactory.memberExpressionNode(N.NodeFactory.identifierNode(this.controlFlowStorageName),N.NodeFactory.identifierNode(this.controlFlowStorageKey)),[this.leftValue,this.rightValue]));return h.NodeUtils.parentizeAst(e),[e]}};t.ExpressionWithOperatorControlFlowStorageCallNode=_,s([(0,S.initializable)(),c("design:type",String)],_.prototype,"controlFlowStorageKey",void 0),s([(0,S.initializable)(),c("design:type",String)],_.prototype,"controlFlowStorageName",void 0),t.ExpressionWithOperatorControlFlowStorageCallNode=_=s([(0,d.injectable)(),l(0,(0,d.inject)(u.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),l(1,(0,d.inject)(u.ServiceIdentifiers.ICustomCodeHelperFormatter)),l(2,(0,d.inject)(u.ServiceIdentifiers.IRandomGenerator)),l(3,(0,d.inject)(u.ServiceIdentifiers.IOptions)),c("design:paramtypes",["function"==typeof(o=void 0!==f.TIdentifierNamesGeneratorFactory&&f.TIdentifierNamesGeneratorFactory)?o:Object,"function"==typeof(n=void 0!==p.ICustomCodeHelperFormatter&&p.ICustomCodeHelperFormatter)?n:Object,"function"==typeof(i=void 0!==g.IRandomGenerator&&g.IRandomGenerator)?i:Object,"function"==typeof(a=void 0!==m.IOptions&&m.IOptions)?a:Object])],_)},869:function(e,t,r){var o,n,i,a,s,c=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},l=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},d=this&&this.__param||function(e,t){return function(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.DebugProtectionFunctionCallCodeHelper=void 0;const u=r(5337),f=r(9835),p=r(2345),m=r(9452),g=r(1110),S=r(77),y=r(3490),N=r(1808),h=r(4760),_=r(506),b=r(9188);let I=class extends _.AbstractCustomCodeHelper{constructor(e,t,r,o,n){super(e,t,r,o,n)}initialize(e,t){this.debugProtectionFunctionName=e,this.callsControllerFunctionName=t}getNodeStructure(e){return b.NodeUtils.convertCodeToStructure(e)}getCodeHelperTemplate(){return this.customCodeHelperFormatter.formatTemplate((0,h.DebugProtectionFunctionCallTemplate)(),{debugProtectionFunctionName:this.debugProtectionFunctionName,callControllerFunctionName:this.callsControllerFunctionName})}};t.DebugProtectionFunctionCallCodeHelper=I,c([(0,N.initializable)(),l("design:type",String)],I.prototype,"callsControllerFunctionName",void 0),c([(0,N.initializable)(),l("design:type",String)],I.prototype,"debugProtectionFunctionName",void 0),t.DebugProtectionFunctionCallCodeHelper=I=c([(0,u.injectable)(),d(0,(0,u.inject)(f.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d(1,(0,u.inject)(f.ServiceIdentifiers.ICustomCodeHelperFormatter)),d(2,(0,u.inject)(f.ServiceIdentifiers.ICustomCodeHelperObfuscator)),d(3,(0,u.inject)(f.ServiceIdentifiers.IRandomGenerator)),d(4,(0,u.inject)(f.ServiceIdentifiers.IOptions)),l("design:paramtypes",["function"==typeof(o=void 0!==p.TIdentifierNamesGeneratorFactory&&p.TIdentifierNamesGeneratorFactory)?o:Object,"function"==typeof(n=void 0!==m.ICustomCodeHelperFormatter&&m.ICustomCodeHelperFormatter)?n:Object,"function"==typeof(i=void 0!==g.ICustomCodeHelperObfuscator&&g.ICustomCodeHelperObfuscator)?i:Object,"function"==typeof(a=void 0!==y.IRandomGenerator&&y.IRandomGenerator)?a:Object,"function"==typeof(s=void 0!==S.IOptions&&S.IOptions)?s:Object])],I)},876:function(e,t,r){var o,n,i,a=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=this&&this.__param||function(e,t){return function(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ClassFieldTransformer=void 0;const l=r(5337),d=r(9835),u=r(77),f=r(3490),p=r(1136),m=r(7769),g=r(1527),S=r(8987);let y=o=class extends m.AbstractNodeTransformer{constructor(e,t){super(e,t)}getVisitor(e){return e===p.NodeTransformationStage.Converting?{enter:(e,t)=>{if(t&&(S.NodeGuards.isMethodDefinitionNode(e)||S.NodeGuards.isPropertyDefinitionNode(e)))return this.transformNode(e,t)}}:null}transformNode(e,t){return S.NodeGuards.isIdentifierNode(e.key)?this.replaceIdentifierKey(e,e.key):S.NodeGuards.isLiteralNode(e.key)?this.replaceLiteralKey(e,e.key):e}replaceIdentifierKey(e,t){return o.ignoredNames.includes(t.name)||e.computed||(e.computed=!0,e.key=g.NodeFactory.literalNode(t.name)),e}replaceLiteralKey(e,t){return"string"!=typeof t.value||o.ignoredNames.includes(t.value)||e.computed||(e.computed=!0),e}};t.ClassFieldTransformer=y,y.ignoredNames=["constructor"],t.ClassFieldTransformer=y=o=a([(0,l.injectable)(),c(0,(0,l.inject)(d.ServiceIdentifiers.IRandomGenerator)),c(1,(