From 523141175a2f8dc6295d880434ba61244aabe631 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sun, 10 Nov 2019 18:30:30 +0000 Subject: [PATCH 01/13] Bump handlebars from 4.0.11 to 4.5.1 Bumps [handlebars](https://github.com/wycats/handlebars.js) from 4.0.11 to 4.5.1. - [Release notes](https://github.com/wycats/handlebars.js/releases) - [Changelog](https://github.com/wycats/handlebars.js/blob/master/release-notes.md) - [Commits](https://github.com/wycats/handlebars.js/compare/v4.0.11...v4.5.1) Signed-off-by: dependabot[bot] --- yarn.lock | 112 ++++++++++-------------------------------------------- 1 file changed, 21 insertions(+), 91 deletions(-) diff --git a/yarn.lock b/yarn.lock index ad4698509..c732bc30a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -544,7 +544,7 @@ "@sinonjs/formatio@^2.0.0": version "2.0.0" - resolved "http://registry.npmjs.org/@sinonjs/formatio/-/formatio-2.0.0.tgz#84db7e9eb5531df18a8c5e0bfb6e449e55e654b2" + resolved "https://registry.npmjs.org/@sinonjs/formatio/-/formatio-2.0.0.tgz#84db7e9eb5531df18a8c5e0bfb6e449e55e654b2" dependencies: samsam "1.3.0" @@ -827,14 +827,6 @@ ajv@^6.1.0: json-schema-traverse "^0.3.0" uri-js "^3.0.2" -align-text@^0.1.1, align-text@^0.1.3: - version "0.1.4" - resolved "https://registry.yarnpkg.com/align-text/-/align-text-0.1.4.tgz#0cd90a561093f35d0a99256c22b7069433fad117" - dependencies: - kind-of "^3.0.2" - longest "^1.0.1" - repeat-string "^1.5.2" - amdefine@>=0.0.4: version "1.0.1" resolved "https://registry.yarnpkg.com/amdefine/-/amdefine-1.0.1.tgz#4a5282ac164729e93619bcfd3ad151f817ce91f5" @@ -963,7 +955,7 @@ async-each@^1.0.0: version "1.0.1" resolved "https://registry.yarnpkg.com/async-each/-/async-each-1.0.1.tgz#19d386a1d9edc6e7c1c85d388aedbcc56d33602d" -async@1.x, async@^1.4.0: +async@1.x: version "1.5.2" resolved "https://registry.yarnpkg.com/async/-/async-1.5.2.tgz#ec6a61ae56480c0c3cb241c95618e20892f9672a" @@ -1283,10 +1275,6 @@ caller-id@^0.1.0: dependencies: stack-trace "~0.0.7" -camelcase@^1.0.2: - version "1.2.1" - resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-1.2.1.tgz#9bb5304d2e0b56698b2c758b08a3eaa9daa58a39" - camelcase@^4.1.0: version "4.1.0" resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-4.1.0.tgz#d545635be1e33c542649c69173e5de6acfae34dd" @@ -1299,13 +1287,6 @@ caseless@~0.12.0: version "0.12.0" resolved "https://registry.yarnpkg.com/caseless/-/caseless-0.12.0.tgz#1b681c21ff84033c826543090689420d187151dc" -center-align@^0.1.1: - version "0.1.3" - resolved "https://registry.yarnpkg.com/center-align/-/center-align-0.1.3.tgz#aa0d32629b6ee972200411cbd4461c907bc2b7ad" - dependencies: - align-text "^0.1.3" - lazy-cache "^1.0.3" - chai@4.1.2: version "4.1.2" resolved "https://registry.yarnpkg.com/chai/-/chai-4.1.2.tgz#0f64584ba642f0f2ace2806279f4f06ca23ad73c" @@ -1416,14 +1397,6 @@ cli-width@^2.0.0: version "2.2.0" resolved "https://registry.yarnpkg.com/cli-width/-/cli-width-2.2.0.tgz#ff19ede8a9a5e579324147b0c11f0fbcbabed639" -cliui@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/cliui/-/cliui-2.1.0.tgz#4b475760ff80264c762c3a1719032e91c7fea0d1" - dependencies: - center-align "^0.1.1" - right-align "^0.1.1" - wordwrap "0.0.2" - cliui@^4.0.0: version "4.1.0" resolved "https://registry.yarnpkg.com/cliui/-/cliui-4.1.0.tgz#348422dbe82d800b3022eef4f6ac10bf2e4d1b49" @@ -1479,6 +1452,10 @@ commander@~2.13.0: version "2.13.0" resolved "https://registry.yarnpkg.com/commander/-/commander-2.13.0.tgz#6964bca67685df7c1f1430c584f07d7597885b9c" +commander@~2.20.3: + version "2.20.3" + resolved "https://registry.yarnpkg.com/commander/-/commander-2.20.3.tgz#fd485e84c03eb4881c20722ba48035e8531aeb33" + commondir@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/commondir/-/commondir-1.0.1.tgz#ddd800da0c66127393cca5950ea968a3aaf1253b" @@ -1654,10 +1631,6 @@ debug@^2.1.2, debug@^2.2.0, debug@^2.3.3, debug@^2.6.8: dependencies: ms "2.0.0" -decamelize@^1.0.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-1.2.0.tgz#f6534d15148269b20352e7bee26f501f9a191290" - decamelize@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-2.0.0.tgz#656d7bbc8094c4c788ea53c5840908c9c7d063c7" @@ -2230,14 +2203,14 @@ growl@1.10.5, "growl@~> 1.10.0": resolved "https://registry.yarnpkg.com/growl/-/growl-1.10.5.tgz#f2735dc2283674fa67478b10181059355c369e5e" handlebars@^4.0.3: - version "4.0.11" - resolved "https://registry.yarnpkg.com/handlebars/-/handlebars-4.0.11.tgz#630a35dfe0294bc281edae6ffc5d329fc7982dcc" + version "4.5.1" + resolved "https://registry.yarnpkg.com/handlebars/-/handlebars-4.5.1.tgz#8a01c382c180272260d07f2d1aa3ae745715c7ba" dependencies: - async "^1.4.0" + neo-async "^2.6.0" optimist "^0.6.1" - source-map "^0.4.4" + source-map "^0.6.1" optionalDependencies: - uglify-js "^2.6" + uglify-js "^3.1.4" har-schema@^2.0.0: version "2.0.0" @@ -2811,10 +2784,6 @@ kind-of@^6.0.0, kind-of@^6.0.2: version "6.0.2" resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-6.0.2.tgz#01146b36a6218e64e58f3a8d66de5d7fc6f6d051" -lazy-cache@^1.0.3: - version "1.0.4" - resolved "https://registry.yarnpkg.com/lazy-cache/-/lazy-cache-1.0.4.tgz#a1d78fc3a50474cb80845d3b3b6e1da49a446e8e" - lcid@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/lcid/-/lcid-1.0.0.tgz#308accafa0bc483a3867b4b6f2b9506251d1b835" @@ -2899,10 +2868,6 @@ long@^3.2.0: version "3.2.0" resolved "https://registry.yarnpkg.com/long/-/long-3.2.0.tgz#d821b7138ca1cb581c172990ef14db200b5c474b" -longest@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/longest/-/longest-1.0.1.tgz#30a0b2da38f73770e8294a0d22e6625ed77d0097" - loose-envify@^1.0.0: version "1.3.1" resolved "https://registry.yarnpkg.com/loose-envify/-/loose-envify-1.3.1.tgz#d1a8ad33fa9ce0e713d65fdd0ac8b748d478c848" @@ -3157,9 +3122,9 @@ needle@^2.2.0: iconv-lite "^0.4.4" sax "^1.2.4" -neo-async@^2.5.0: - version "2.5.1" - resolved "https://registry.yarnpkg.com/neo-async/-/neo-async-2.5.1.tgz#acb909e327b1e87ec9ef15f41b8a269512ad41ee" +neo-async@^2.5.0, neo-async@^2.6.0: + version "2.6.1" + resolved "https://registry.yarnpkg.com/neo-async/-/neo-async-2.6.1.tgz#ac27ada66167fa8849a6addd837f6b189ad2081c" next-tick@1: version "1.0.0" @@ -3782,7 +3747,7 @@ repeat-element@^1.1.2: version "1.1.2" resolved "https://registry.yarnpkg.com/repeat-element/-/repeat-element-1.1.2.tgz#ef089a178d1483baae4d93eb98b4f9e4e11d990a" -repeat-string@^1.5.2, repeat-string@^1.6.1: +repeat-string@^1.6.1: version "1.6.1" resolved "https://registry.yarnpkg.com/repeat-string/-/repeat-string-1.6.1.tgz#8dcae470e1c88abc2d600fff4a776286da75e637" @@ -3856,12 +3821,6 @@ ret@~0.1.10: version "0.1.15" resolved "https://registry.yarnpkg.com/ret/-/ret-0.1.15.tgz#b8a4825d5bdb1fc3f6f53c2bc33f81388681c7bc" -right-align@^0.1.1: - version "0.1.3" - resolved "https://registry.yarnpkg.com/right-align/-/right-align-0.1.3.tgz#61339b722fe6a3515689210d24e14c96148613ef" - dependencies: - align-text "^0.1.1" - rimraf@2.6.2, rimraf@^2.5.4, rimraf@^2.6.1, rimraf@^2.6.2: version "2.6.2" resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.6.2.tgz#2ed8150d24a16ea8651e6d6ef0f47c4158ce7a36" @@ -4069,13 +4028,7 @@ source-map-url@^0.4.0: version "0.4.0" resolved "https://registry.yarnpkg.com/source-map-url/-/source-map-url-0.4.0.tgz#3e935d7ddd73631b97659956d55128e87b5084a3" -source-map@^0.4.4: - version "0.4.4" - resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.4.4.tgz#eba4f5da9c0dc999de68032d8b4f76173652036b" - dependencies: - amdefine ">=0.0.4" - -source-map@^0.5.0, source-map@^0.5.3, source-map@^0.5.6, source-map@^0.5.7, source-map@~0.5.1: +source-map@^0.5.0, source-map@^0.5.3, source-map@^0.5.6, source-map@^0.5.7: version "0.5.7" resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.5.7.tgz#8a039d2d1021d22d1ea14c80d8ea468ba2ef3fcc" @@ -4450,18 +4403,12 @@ uglify-es@^3.3.4: commander "~2.13.0" source-map "~0.6.1" -uglify-js@^2.6: - version "2.8.29" - resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-2.8.29.tgz#29c5733148057bb4e1f75df35b7a9cb72e6a59dd" +uglify-js@^3.1.4: + version "3.6.8" + resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-3.6.8.tgz#5edcbcf9d49cbb0403dc49f856fe81530d65145e" dependencies: - source-map "~0.5.1" - yargs "~3.10.0" - optionalDependencies: - uglify-to-browserify "~1.0.0" - -uglify-to-browserify@~1.0.0: - version "1.0.2" - resolved "https://registry.yarnpkg.com/uglify-to-browserify/-/uglify-to-browserify-1.0.2.tgz#6e0924d6bda6b5afe349e39a6d632850a0f882b7" + commander "~2.20.3" + source-map "~0.6.1" uglifyjs-webpack-plugin@^1.2.4: version "1.2.5" @@ -4708,14 +4655,6 @@ wide-align@^1.1.0: dependencies: string-width "^1.0.2" -window-size@0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/window-size/-/window-size-0.1.0.tgz#5438cd2ea93b202efa3a19fe8887aee7c94f9c9d" - -wordwrap@0.0.2: - version "0.0.2" - resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-0.0.2.tgz#b79669bb42ecb409f83d583cad52ca17eaa1643f" - wordwrap@^1.0.0, wordwrap@~1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-1.0.0.tgz#27584810891456a4171c8d0226441ade90cbcaeb" @@ -4784,15 +4723,6 @@ yargs@^12.0.1: y18n "^3.2.1 || ^4.0.0" yargs-parser "^10.1.0" -yargs@~3.10.0: - version "3.10.0" - resolved "https://registry.yarnpkg.com/yargs/-/yargs-3.10.0.tgz#f7ee7bd857dd7c1d2d38c0e74efbd681d1431fd1" - dependencies: - camelcase "^1.0.2" - cliui "^2.1.0" - decamelize "^1.0.0" - window-size "0.1.0" - yn@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/yn/-/yn-2.0.0.tgz#e5adabc8acf408f6385fc76495684c88e6af689a" From 1b423e795a1a5c6fd12292393749c0633287ba99 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sun, 10 Nov 2019 18:30:32 +0000 Subject: [PATCH 02/13] Bump extend from 3.0.1 to 3.0.2 Bumps [extend](https://github.com/justmoon/node-extend) from 3.0.1 to 3.0.2. - [Release notes](https://github.com/justmoon/node-extend/releases) - [Changelog](https://github.com/justmoon/node-extend/blob/master/CHANGELOG.md) - [Commits](https://github.com/justmoon/node-extend/compare/v3.0.1...v3.0.2) Signed-off-by: dependabot[bot] --- yarn.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yarn.lock b/yarn.lock index ad4698509..d5699c91f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -544,7 +544,7 @@ "@sinonjs/formatio@^2.0.0": version "2.0.0" - resolved "http://registry.npmjs.org/@sinonjs/formatio/-/formatio-2.0.0.tgz#84db7e9eb5531df18a8c5e0bfb6e449e55e654b2" + resolved "https://registry.npmjs.org/@sinonjs/formatio/-/formatio-2.0.0.tgz#84db7e9eb5531df18a8c5e0bfb6e449e55e654b2" dependencies: samsam "1.3.0" @@ -1984,8 +1984,8 @@ extend-shallow@^3.0.0, extend-shallow@^3.0.2: is-extendable "^1.0.1" extend@~3.0.1: - version "3.0.1" - resolved "https://registry.yarnpkg.com/extend/-/extend-3.0.1.tgz#a755ea7bc1adfcc5a31ce7e762dbaadc5e636444" + version "3.0.2" + resolved "https://registry.yarnpkg.com/extend/-/extend-3.0.2.tgz#f8b1136b4071fbd8eb140aff858b1019ec2915fa" external-editor@^2.0.1: version "2.2.0" From 5073be766d903a4e78eda84676ddbd1c41e41aea Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sun, 10 Nov 2019 18:30:33 +0000 Subject: [PATCH 03/13] Bump js-yaml from 3.11.0 to 3.13.1 Bumps [js-yaml](https://github.com/nodeca/js-yaml) from 3.11.0 to 3.13.1. - [Release notes](https://github.com/nodeca/js-yaml/releases) - [Changelog](https://github.com/nodeca/js-yaml/blob/master/CHANGELOG.md) - [Commits](https://github.com/nodeca/js-yaml/compare/3.11.0...3.13.1) Signed-off-by: dependabot[bot] --- yarn.lock | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/yarn.lock b/yarn.lock index ad4698509..328fb7cdf 100644 --- a/yarn.lock +++ b/yarn.lock @@ -544,7 +544,7 @@ "@sinonjs/formatio@^2.0.0": version "2.0.0" - resolved "http://registry.npmjs.org/@sinonjs/formatio/-/formatio-2.0.0.tgz#84db7e9eb5531df18a8c5e0bfb6e449e55e654b2" + resolved "https://registry.npmjs.org/@sinonjs/formatio/-/formatio-2.0.0.tgz#84db7e9eb5531df18a8c5e0bfb6e449e55e654b2" dependencies: samsam "1.3.0" @@ -1906,8 +1906,8 @@ esprima@^2.7.1: resolved "https://registry.yarnpkg.com/esprima/-/esprima-2.7.3.tgz#96e3b70d5779f6ad49cd032673d1c312767ba581" esprima@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/esprima/-/esprima-4.0.0.tgz#4499eddcd1110e0b218bacf2fa7f7f59f55ca804" + version "4.0.1" + resolved "https://registry.yarnpkg.com/esprima/-/esprima-4.0.1.tgz#13b04cdb3e6c5d19df91ab6987a8695619b0aa71" esrecurse@^4.1.0: version "4.2.1" @@ -2728,16 +2728,9 @@ js-tokens@^3.0.0, js-tokens@^3.0.2: version "3.0.2" resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-3.0.2.tgz#9866df395102130e38f7f996bceb65443209c25b" -js-yaml@3.x, js-yaml@^3.7.0: - version "3.11.0" - resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.11.0.tgz#597c1a8bd57152f26d622ce4117851a51f5ebaef" - dependencies: - argparse "^1.0.7" - esprima "^4.0.0" - -js-yaml@^3.11.0: - version "3.12.0" - resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.12.0.tgz#eaed656ec8344f10f527c6bfa1b6e2244de167d1" +js-yaml@3.x, js-yaml@^3.11.0, js-yaml@^3.7.0: + version "3.13.1" + resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.13.1.tgz#aff151b30bfdfa8e49e05da22e7415e9dfa37847" dependencies: argparse "^1.0.7" esprima "^4.0.0" From f05c820c7fe8f50c17973740586bddba36cc447f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sun, 10 Nov 2019 18:30:35 +0000 Subject: [PATCH 04/13] Bump mixin-deep from 1.3.1 to 1.3.2 Bumps [mixin-deep](https://github.com/jonschlinkert/mixin-deep) from 1.3.1 to 1.3.2. - [Release notes](https://github.com/jonschlinkert/mixin-deep/releases) - [Commits](https://github.com/jonschlinkert/mixin-deep/compare/1.3.1...1.3.2) Signed-off-by: dependabot[bot] --- yarn.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yarn.lock b/yarn.lock index ad4698509..1fbb5beee 100644 --- a/yarn.lock +++ b/yarn.lock @@ -544,7 +544,7 @@ "@sinonjs/formatio@^2.0.0": version "2.0.0" - resolved "http://registry.npmjs.org/@sinonjs/formatio/-/formatio-2.0.0.tgz#84db7e9eb5531df18a8c5e0bfb6e449e55e654b2" + resolved "https://registry.npmjs.org/@sinonjs/formatio/-/formatio-2.0.0.tgz#84db7e9eb5531df18a8c5e0bfb6e449e55e654b2" dependencies: samsam "1.3.0" @@ -3062,8 +3062,8 @@ mississippi@^2.0.0: through2 "^2.0.0" mixin-deep@^1.2.0: - version "1.3.1" - resolved "https://registry.yarnpkg.com/mixin-deep/-/mixin-deep-1.3.1.tgz#a49e7268dce1a0d9698e45326c5626df3543d0fe" + version "1.3.2" + resolved "https://registry.yarnpkg.com/mixin-deep/-/mixin-deep-1.3.2.tgz#1120b43dc359a785dce65b55b82e257ccf479566" dependencies: for-in "^1.0.2" is-extendable "^1.0.1" From 26cc3a4d63eb3a50082d80befeb5d9ee9f18d423 Mon Sep 17 00:00:00 2001 From: Date: Wed, 20 Nov 2019 21:09:25 +0300 Subject: [PATCH 05/13] Fixed issue #437 Some nodes can have no values --- dist/index.browser.js | 2 +- dist/index.cli.js | 2 +- dist/index.js | 2 +- .../AbstractPropertiesExtractor.ts | 3 +- .../issues/fixtures/issue437.js | 10 +++++++ test/functional-tests/issues/issue437.spec.ts | 29 +++++++++++++++++++ 6 files changed, 44 insertions(+), 4 deletions(-) create mode 100644 test/functional-tests/issues/fixtures/issue437.js create mode 100644 test/functional-tests/issues/issue437.spec.ts diff --git a/dist/index.browser.js b/dist/index.browser.js index d06097bd9..df3bd25d8 100644 --- a/dist/index.browser.js +++ b/dist/index.browser.js @@ -21,7 +21,7 @@ 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. */ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.JavaScriptObfuscator=t():e.JavaScriptObfuscator=t()}(window,function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=109)}([function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}}},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(17);t.METADATA_KEY=r;var i=n(112);t.Container=i.Container;var o=n(23);t.BindingScopeEnum=o.BindingScopeEnum,t.BindingTypeEnum=o.BindingTypeEnum,t.TargetTypeEnum=o.TargetTypeEnum;var a=n(128);t.AsyncContainerModule=a.AsyncContainerModule,t.ContainerModule=a.ContainerModule;var s=n(129);t.injectable=s.injectable;var u=n(130);t.tagged=u.tagged;var d=n(131);t.named=d.named;var l=n(74);t.inject=l.inject,t.LazyServiceIdentifer=l.LazyServiceIdentifer;var c=n(132);t.optional=c.optional;var p=n(133);t.unmanaged=p.unmanaged;var f=n(134);t.multiInject=f.multiInject;var h=n(135);t.targetName=h.targetName;var g=n(136);t.postConstruct=g.postConstruct;var m=n(72);t.MetadataReader=m.MetadataReader;var y=n(29);t.guid=y.guid;var b=n(26);t.decorate=b.decorate;var v=n(77);t.traverseAncerstors=v.traverseAncerstors,t.taggedConstraint=v.taggedConstraint,t.namedConstraint=v.namedConstraint,t.typeConstraint=v.typeConstraint;var C=n(43);t.getServiceIdentifierAsString=C.getServiceIdentifierAsString;var S=n(137);t.multiBindToService=S.multiBindToService},function(e,t){function n(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:"initialize",t=Object.keys(this)[0];return function(n,d){var l=n[e];if(!l||"function"!=typeof l)throw new Error("`".concat(e,"` method with initialization logic not ")+"found. `@".concat(t,"` decorator requires `").concat(e,"` method"));return u(i,!1,n),u(o,new Set,n),u(a,new Set,n),function(e,t){var n=Object.getOwnPropertyNames(e),u=[t,s];n.forEach(function(n){var s=Reflect.getMetadata(o,e),d=Reflect.getMetadata(a,e),l=u.includes(n)||s.has(n)||d.has(n);if(!l){var c=e[n];if("function"==typeof c){var p=Object.getOwnPropertyDescriptor(e,n)||r,f=p.value;Object.defineProperty(e,n,Object.assign({},p,{value:function(){if(!Reflect.getMetadata(i,this))throw new Error("Class should be initialized with `".concat(t,"()` method"));return f.apply(this,arguments)}})),d.add(n)}}})}(n,e),function(e,t,n){var o=Object.getOwnPropertyDescriptor(e,t)||r,a=o.value;Object.defineProperty(e,t,Object.assign({},o,{value:function(){Reflect.defineMetadata(i,!0,this);var e=a.apply(this,arguments);return this[n],e}}))}(n,e,d),function(e,t){Reflect.getMetadata(o,e).add(t);var n="_".concat(t.toString()),i=Object.getOwnPropertyDescriptor(e,n)||r;return Object.defineProperty(e,t,Object.assign({},i,{get:function(){if(void 0===this[n])throw new Error("Property `".concat(t.toString(),"` is not initialized! Initialize it first!"));return this[n]},set:function(e){this[n]=e}})),i}(n,d)}}},function(e,t,n){"use strict";var r=n(0),i=r(n(5)),o=r(n(1)),a=r(n(3)),s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var u=s(n(61)),d=s(n(82)),l=s(n(18)),c=n(10),p=n(20),f=function(){function e(){(0,o.default)(this,e)}return(0,a.default)(e,null,[{key:"addXVerbatimPropertyTo",value:function(e){return e["x-verbatim-property"]={content:e.raw,precedence:u.Precedence.Primary},e}},{key:"clone",value:function(t){return e.parentizeAst(e.cloneRecursive(t))}},{key:"convertCodeToStructure",value:function(t){var n=d.parse(t,{sourceType:"script"});return l.replace(n,{enter:function(t,n){return e.parentizeNode(t,n),c.NodeGuards.isLiteralNode(t)&&e.addXVerbatimPropertyTo(t),p.NodeMetadata.set(t,{ignoredNode:!1}),t}}),n.body}},{key:"convertStructureToCode",value:function(e){return e.reduce(function(e,t){return e+u.generate(t,{sourceMapWithCode:!0}).code},"")}},{key:"getUnaryExpressionArgumentNode",value:function(t){return c.NodeGuards.isUnaryExpressionNode(t.argument)?e.getUnaryExpressionArgumentNode(t.argument):t.argument}},{key:"parentizeAst",value:function(t){return l.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 n={};return Object.keys(t).forEach(function(r){if("parentNode"!==r){var o,a=t[r];o=null===a||a instanceof RegExp?a:Array.isArray(a)?a.map(e.cloneRecursive):"object"===(0,i.default)(a)?e.cloneRecursive(a):a,n[r]=o}}),n}}]),e}();t.NodeUtils=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){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,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(5)),a=function(e,t,n,r){var i,a=arguments.length,s=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,o.default)(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var u=e.length-1;u>=0;u--)(i=e[u])&&(s=(a<3?i(s):a>3?i(t,n,s):i(t,n))||s);return a>3&&s&&Object.defineProperty(t,n,s),s},s=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,o.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},u=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var d=n(2),l=n(4),c=function e(t,n){(0,i.default)(this,e),this.randomGenerator=t,this.options=n};c=a([d.injectable(),u(0,d.inject(l.ServiceIdentifiers.IRandomGenerator)),u(1,d.inject(l.ServiceIdentifiers.IOptions)),s("design:paramtypes",[Object,Object])],c),t.AbstractNodeTransformer=c},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(3)),a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var s=a(n(61)),u=n(24),d=function(){function e(){(0,i.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:u.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:u.NodeType.ArrayExpression,elements:e,metadata:{ignoredNode:!1}}}},{key:"assignmentExpressionNode",value:function(e,t,n){return{type:u.NodeType.AssignmentExpression,operator:e,left:t,right:n,metadata:{ignoredNode:!1}}}},{key:"binaryExpressionNode",value:function(e,t,n){return{type:u.NodeType.BinaryExpression,operator:e,left:t,right:n,metadata:{ignoredNode:!1}}}},{key:"blockStatementNode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return{type:u.NodeType.BlockStatement,body:e,metadata:{ignoredNode:!1}}}},{key:"breakStatement",value:function(e){return{type:u.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:u.NodeType.CallExpression,callee:e,arguments:t,metadata:{ignoredNode:!1}}}},{key:"continueStatement",value:function(e){return{type:u.NodeType.ContinueStatement,label:e,metadata:{ignoredNode:!1}}}},{key:"expressionStatementNode",value:function(e){return{type:u.NodeType.ExpressionStatement,expression:e,metadata:{ignoredNode:!1}}}},{key:"functionDeclarationNode",value:function(t,n,r){return{type:u.NodeType.FunctionDeclaration,id:e.identifierNode(t),params:n,body:r,generator:!1,metadata:{ignoredNode:!1}}}},{key:"functionExpressionNode",value:function(e,t){return{type:u.NodeType.FunctionExpression,params:e,body:t,generator:!1,metadata:{ignoredNode:!1}}}},{key:"ifStatementNode",value:function(e,t,n){return Object.assign({type:u.NodeType.IfStatement,test:e,consequent:t},n&&{alternate:n},{metadata:{ignoredNode:!1}})}},{key:"identifierNode",value:function(e){return{type:u.NodeType.Identifier,name:e,metadata:{ignoredNode:!1}}}},{key:"literalNode",value:function(e,t){return t=void 0!==t?t:"'".concat(e,"'"),{type:u.NodeType.Literal,value:e,raw:t,"x-verbatim-property":{content:t,precedence:s.Precedence.Primary},metadata:{ignoredNode:!1}}}},{key:"logicalExpressionNode",value:function(e,t,n){return{type:u.NodeType.LogicalExpression,operator:e,left:t,right:n,metadata:{ignoredNode:!1}}}},{key:"memberExpressionNode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{type:u.NodeType.MemberExpression,computed:n,object:e,property:t,metadata:{ignoredNode:!1}}}},{key:"methodDefinitionNode",value:function(e,t,n,r){return{type:u.NodeType.MethodDefinition,key:e,value:t,kind:n,computed:r,static:!1,metadata:{ignoredNode:!1}}}},{key:"objectExpressionNode",value:function(e){return{type:u.NodeType.ObjectExpression,properties:e,metadata:{ignoredNode:!1}}}},{key:"propertyNode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{type:u.NodeType.Property,key:e,value:t,kind:"init",method:!1,shorthand:!1,computed:n,metadata:{ignoredNode:!1}}}},{key:"returnStatementNode",value:function(e){return{type:u.NodeType.ReturnStatement,argument:e,metadata:{ignoredNode:!1}}}},{key:"switchStatementNode",value:function(e,t){return{type:u.NodeType.SwitchStatement,discriminant:e,cases:t,metadata:{ignoredNode:!1}}}},{key:"switchCaseNode",value:function(e,t){return{type:u.NodeType.SwitchCase,test:e,consequent:t,metadata:{ignoredNode:!1}}}},{key:"unaryExpressionNode",value:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return{type:u.NodeType.UnaryExpression,operator:e,argument:t,prefix:n,metadata:{ignoredNode:!1}}}},{key:"updateExpressionNode",value:function(e,t){return{type:u.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:u.NodeType.VariableDeclaration,declarations:e,kind:t,metadata:{ignoredNode:!1}}}},{key:"variableDeclaratorNode",value:function(e,t){return{type:u.NodeType.VariableDeclarator,id:e,init:t,metadata:{ignoredNode:!1}}}},{key:"whileStatementNode",value:function(e,t){return{type:u.NodeType.WhileStatement,test:e,body:t,metadata:{ignoredNode:!1}}}}]),e}();t.NodeFactory=d},function(e,t,n){"use strict";var r,i=n(0),o=i(n(1)),a=i(n(3)),s=i(n(5)),u=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,s.default)(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var u=e.length-1;u>=0;u--)(i=e[u])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},d=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,s.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},l=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var c=n(2),p=n(4),f=n(190),h=n(191),g=r=function(){function e(t,n,r){(0,o.default)(this,e),this.cachedNode=null,this.identifierNamesGenerator=t(r),this.randomGenerator=n,this.options=r}return(0,a.default)(e,[{key:"getNode",value:function(){return this.cachedNode||(this.cachedNode=this.getNodeStructure()),this.cachedNode}},{key:"getGlobalVariableTemplate",value:function(){return this.randomGenerator.getRandomGenerator().pickone(r.globalVariableTemplateFunctions)}}]),e}();g.globalVariableTemplateFunctions=[f.GlobalVariableTemplate1(),h.GlobalVariableTemplate2()],g=r=u([c.injectable(),l(0,c.inject(p.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),l(1,c.inject(p.ServiceIdentifiers.IRandomGenerator)),l(2,c.inject(p.ServiceIdentifiers.IOptions)),d("design:paramtypes",[Function,Object,Object])],g),t.AbstractCustomNode=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NAMED_TAG="named",t.NAME_TAG="name",t.UNMANAGED_TAG="unmanaged",t.OPTIONAL_TAG="optional",t.INJECT_TAG="inject",t.MULTI_INJECT_TAG="multi_inject",t.TAGGED="inversify:tagged",t.TAGGED_PROP="inversify:tagged_props",t.PARAM_TYPES="inversify:paramtypes",t.DESIGN_PARAM_TYPES="design:paramtypes",t.POST_CONSTRUCT="post_construct"},function(e,t,n){!function e(t){"use strict";var r,i,o,a,s,u,d,l,c;function p(e){var t,n,r={};for(t in e)e.hasOwnProperty(t)&&(n=e[t],r[t]="object"==typeof n&&null!==n?p(n):n);return r}function f(e,t){this.parent=e,this.key=t}function h(e,t,n,r){this.node=e,this.path=t,this.wrap=n,this.ref=r}function g(){}function m(e){return null!=e&&("object"==typeof e&&"string"==typeof e.type)}function y(e,t){return(e===r.ObjectExpression||e===r.ObjectPattern)&&"properties"===t}function b(e,t){return(new g).traverse(e,t)}function v(e,t){var n;return n=function(e,t){var n,r,i,o;for(r=e.length,i=0;r;)t(e[o=i+(n=r>>>1)])?r=n:(i=o+1,r-=n+1);return i}(t,function(t){return t.range[0]>e.range[0]}),e.extendedRange=[e.range[0],e.range[1]],n!==t.length&&(e.extendedRange[1]=t[n].range[0]),(n-=1)>=0&&(e.extendedRange[0]=t[n].range[1]),e}return(i=Array.isArray)||(i=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),s=Object.create||function(){function e(){}return function(t){return e.prototype=t,new e}}(),u=Object.keys||function(e){var t,n=[];for(t in e)n.push(t);return n},r={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ComprehensionBlock:"ComprehensionBlock",ComprehensionExpression:"ComprehensionExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DebuggerStatement:"DebuggerStatement",DirectiveStatement:"DirectiveStatement",DoWhileStatement:"DoWhileStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForInStatement:"ForInStatement",ForOfStatement:"ForOfStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",GeneratorExpression:"GeneratorExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",ModuleSpecifier:"ModuleSpecifier",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",Program:"Program",Property:"Property",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchStatement:"SwitchStatement",SwitchCase:"SwitchCase",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"},a={AssignmentExpression:["left","right"],AssignmentPattern:["left","right"],ArrayExpression:["elements"],ArrayPattern:["elements"],ArrowFunctionExpression:["params","body"],AwaitExpression:["argument"],BlockStatement:["body"],BinaryExpression:["left","right"],BreakStatement:["label"],CallExpression:["callee","arguments"],CatchClause:["param","body"],ClassBody:["body"],ClassDeclaration:["id","superClass","body"],ClassExpression:["id","superClass","body"],ComprehensionBlock:["left","right"],ComprehensionExpression:["blocks","filter","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DirectiveStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExportAllDeclaration:["source"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source"],ExportSpecifier:["exported","local"],ExpressionStatement:["expression"],ForStatement:["init","test","update","body"],ForInStatement:["left","right","body"],ForOfStatement:["left","right","body"],FunctionDeclaration:["id","params","body"],FunctionExpression:["id","params","body"],GeneratorExpression:["blocks","filter","body"],Identifier:[],IfStatement:["test","consequent","alternate"],ImportDeclaration:["specifiers","source"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],Literal:[],LabeledStatement:["label","body"],LogicalExpression:["left","right"],MemberExpression:["object","property"],MetaProperty:["meta","property"],MethodDefinition:["key","value"],ModuleSpecifier:[],NewExpression:["callee","arguments"],ObjectExpression:["properties"],ObjectPattern:["properties"],Program:["body"],Property:["key","value"],RestElement:["argument"],ReturnStatement:["argument"],SequenceExpression:["expressions"],SpreadElement:["argument"],Super:[],SwitchStatement:["discriminant","cases"],SwitchCase:["test","consequent"],TaggedTemplateExpression:["tag","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],YieldExpression:["argument"]},o={Break:d={},Skip:l={},Remove:c={}},f.prototype.replace=function(e){this.parent[this.key]=e},f.prototype.remove=function(){return i(this.parent)?(this.parent.splice(this.key,1),!0):(this.replace(null),!1)},g.prototype.path=function(){var e,t,n,r,o;function a(e,t){if(i(t))for(n=0,r=t.length;n=0;)if(b=a[c=g[p]])if(i(b)){for(f=b.length;(f-=1)>=0;)if(b[f]){if(y(s,g[p]))o=new h(b[f],[c,f],"Property",null);else{if(!m(b[f]))continue;o=new h(b[f],[c,f],null,null)}n.push(o)}}else m(b)&&n.push(new h(b,c,null,null))}}else if(o=r.pop(),u=this.__execute(t.leave,o),this.__state===d||u===d)return},g.prototype.replace=function(e,t){var n,r,o,a,s,u,p,g,b,v,C,S,N;function A(e){var t,r,i,o;if(e.ref.remove())for(r=e.ref.key,o=e.ref.parent,t=n.length;t--;)if((i=n[t]).ref&&i.ref.parent===o){if(i.ref.key=0;)if(v=o[N=b[p]])if(i(v)){for(g=v.length;(g-=1)>=0;)if(v[g]){if(y(a,b[p]))u=new h(v[g],[N,g],"Property",new f(v,g));else{if(!m(v[g]))continue;u=new h(v[g],[N,g],null,new f(v,g))}n.push(u)}}else m(v)&&n.push(new h(v,N,null,new f(o,N)))}}else if(u=r.pop(),void 0!==(s=this.__execute(t.leave,u))&&s!==d&&s!==l&&s!==c&&u.ref.replace(s),this.__state!==c&&s!==c||A(u),this.__state===d||s===d)return S.root;return S.root},t.version=n(141).version,t.Syntax=r,t.traverse=b,t.replace=function(e,t){return(new g).replace(e,t)},t.attachComments=function(e,t,n){var r,i,a,s,u=[];if(!e.range)throw new Error("attachComments needs range information");if(!n.length){if(t.length){for(a=0,i=t.length;ae.range[0]);)t.extendedRange[1]===e.range[0]?(e.leadingComments||(e.leadingComments=[]),e.leadingComments.push(t),u.splice(s,1)):s+=1;return s===u.length?o.Break:u[s].extendedRange[0]>e.range[1]?o.Skip:void 0}}),s=0,b(e,{leave:function(e){for(var t;se.range[1]?o.Skip:void 0}}),e},t.VisitorKeys=a,t.VisitorOption=o,t.Controller=g,t.cloneEnvironment=function(){return e({})},t}(t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DUPLICATED_INJECTABLE_DECORATOR="Cannot apply @injectable decorator multiple times.",t.DUPLICATED_METADATA="Metadata key was used more than once in a parameter:",t.NULL_ARGUMENT="NULL argument",t.KEY_NOT_FOUND="Key Not Found",t.AMBIGUOUS_MATCH="Ambiguous match found for serviceIdentifier:",t.CANNOT_UNBIND="Could not unbind serviceIdentifier:",t.NOT_REGISTERED="No matching bindings found for serviceIdentifier:",t.MISSING_INJECTABLE_ANNOTATION="Missing required @injectable annotation in:",t.MISSING_INJECT_ANNOTATION="Missing required @inject or @multiInject annotation in:",t.UNDEFINED_INJECT_ANNOTATION=function(e){return"@inject called with undefined this could mean that the class "+e+" has a circular dependency problem. You can use a LazyServiceIdentifer to overcome this limitation."},t.CIRCULAR_DEPENDENCY="Circular dependency found:",t.NOT_IMPLEMENTED="Sorry, this feature is not fully implemented yet.",t.INVALID_BINDING_TYPE="Invalid binding type:",t.NO_MORE_SNAPSHOTS_AVAILABLE="No snapshot available to restore.",t.INVALID_MIDDLEWARE_RETURN="Invalid return type in middleware. Middleware must return!",t.INVALID_FUNCTION_BINDING="Value provided to function binding must be a function!",t.INVALID_TO_SELF_VALUE="The toSelf function can only be applied when a constructor is used as service identifier",t.INVALID_DECORATOR_OPERATION="The @inject @multiInject @tagged and @named decorators must be applied to the parameters of a class constructor or a class property.",t.ARGUMENTS_LENGTH_MISMATCH=function(){for(var e=[],t=0;t= than the number of constructor arguments of its base class."},t.CONTAINER_OPTIONS_MUST_BE_AN_OBJECT="Invalid Container constructor argument. Container options must be an object.",t.CONTAINER_OPTIONS_INVALID_DEFAULT_SCOPE="Invalid Container option. Default scope must be a string ('singleton' or 'transient').",t.CONTAINER_OPTIONS_INVALID_AUTO_BIND_INJECTABLE="Invalid Container option. Auto bind injectable must be a boolean",t.CONTAINER_OPTIONS_INVALID_SKIP_BASE_CHECK="Invalid Container option. Skip base check must be a boolean",t.MULTIPLE_POST_CONSTRUCT_METHODS="Cannot apply @postConstruct decorator multiple times in the same class",t.POST_CONSTRUCT_ERROR=function(){for(var e=[],t=0;t1?t-1:0),r=1;r1&&void 0!==arguments[1]?arguments[1]:1/0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;if(r.length>=n)return r;var o=t.parentNode;if(!o)throw new ReferenceError("`parentNode` property of given node is `undefined`");return(a.NodeGuards.isProgramNode(t)||a.NodeGuards.isNodeWithLexicalScopeStatements(t,o)&&i>0)&&r.push(t),t!==o?e.getParentNodesWithStatementsRecursive(o,n,r,++i):r}},{key:"getSiblingStatementByOffset",value:function(t,n){var r=e.getScopeOfNode(t),i=a.NodeGuards.isSwitchCaseNode(r)?r.consequent:r.body;return i[i.indexOf(t)+n]||null}}]),e}();t.NodeStatementUtils=s},function(e,t,n){"use strict";var r=n(0),i=r(n(36)),o=r(n(1)),a=r(n(3));Object.defineProperty(t,"__esModule",{value:!0});var s=n(10),u=function(){function e(){(0,o.default)(this,e)}return(0,a.default)(e,null,[{key:"append",value:function(t,n){n=e.parentizeScopeStatementsBeforeAppend(t,n),e.setScopeStatements(t,(0,i.default)(e.getScopeStatements(t)).concat((0,i.default)(n)))}},{key:"appendToOptimalBlockScope",value:function(t,n,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=t.length?e.getOptimalBlockScope(t,i):n;e.prepend(o,r)}},{key:"getOptimalBlockScope",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,i=t[n];if(r<=0)throw new Error("Invalid `deep` argument value. Value should be bigger then 0.");return r>1&&i.stackTrace.length?e.getOptimalBlockScope(i.stackTrace,0,--r):i.callee}},{key:"insertAfter",value:function(t,n,r){var i=e.getScopeStatements(t).indexOf(r);e.insertAtIndex(t,n,i+1)}},{key:"insertAtIndex",value:function(t,n,r){n=e.parentizeScopeStatementsBeforeAppend(t,n),e.setScopeStatements(t,(0,i.default)(e.getScopeStatements(t).slice(0,r)).concat((0,i.default)(n),(0,i.default)(e.getScopeStatements(t).slice(r))))}},{key:"prepend",value:function(t,n){n=e.parentizeScopeStatementsBeforeAppend(t,n),e.setScopeStatements(t,(0,i.default)(n).concat((0,i.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=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.AfterObfuscation="afterObfuscation",e.BeforeObfuscation="beforeObfuscation"}(t.ObfuscationEvent||(t.ObfuscationEvent={}))},function(e,t,n){"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,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(3));Object.defineProperty(t,"__esModule",{value:!0});var a=n(10),s=function(){function e(){(0,i.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 n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1/0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;if(r.length>=n)return r;var o=t.parentNode;if(!o)throw new ReferenceError("`parentNode` property of given node is `undefined`");return a.NodeGuards.isNodeWithLexicalScope(t)&&r.push(t),t!==o?e.getLexicalScopesRecursive(o,n,r,++i):r}}]),e}();t.NodeLexicalScopeUtils=s},function(e,t,n){"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"}(t.NodeTransformer||(t.NodeTransformer={}))},function(e,t,n){var r=n(167),i=n(168),o=n(169);e.exports=function(e){return r(e)||i(e)||o()}},function(e,t,n){var r=n(174),i=n(175),o=n(176);e.exports=function(e,t){return r(e)||i(e,t)||o()}},function(e,t,n){"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,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){}return e.isValid=function(e){var t=this;return"isValid"!==e&&"getMessage"!==e&&-1!==Object.keys(this).map(function(e){return t[e]}).indexOf(e)},e.getMessage=function(e,t){var n=this,r=t?"each value in ":"";switch(e){case this.NESTED_VALIDATION:return r+"nested property $property must be either object or array";case this.IS_DEFINED:return r+"$property should not be null or undefined";case this.EQUALS:return r+"$property must be equal to $constraint1";case this.NOT_EQUALS:return r+"$property should not be equal to $constraint1";case this.IS_EMPTY:return r+"$property must be empty";case this.IS_NOT_EMPTY:return r+"$property should not be empty";case this.IS_IN:return r+"$property must be one of the following values: $constraint1";case this.IS_NOT_IN:return r+"$property should not be one of the following values: $constraint1";case this.IS_BOOLEAN:return r+"$property must be a boolean value";case this.IS_DATE:return r+"$property must be a Date instance";case this.IS_NUMBER:return r+"$property must be a number";case this.IS_INT:return r+"$property must be an integer number";case this.IS_STRING:return r+"$property must be a string";case this.IS_DATE_STRING:return r+"$property must be a ISOString";case this.IS_ARRAY:return r+"$property must be an array";case this.IS_ENUM:return r+"$property must be a valid enum value";case this.IS_DIVISIBLE_BY:return r+"$property must be divisible by $constraint1";case this.IS_POSITIVE:return r+"$property must be a positive number";case this.IS_NEGATIVE:return r+"$property must be a negative number";case this.MIN:return r+"$property must not be less than $constraint1";case this.MAX:return r+"$property must not be greater than $constraint1";case this.MIN_DATE:return"minimal allowed date for "+r+"$property is $constraint1";case this.MAX_DATE:return"maximal allowed date for "+r+"$property is $constraint1";case this.IS_BOOLEAN_STRING:return r+"$property must be a boolean string";case this.IS_NUMBER_STRING:return r+"$property must be a number string";case this.CONTAINS:return r+"$property must contain a $constraint1 string";case this.NOT_CONTAINS:return r+"$property should not contain a $constraint1 string";case this.IS_ALPHA:return r+"$property must contain only letters (a-zA-Z)";case this.IS_ALPHANUMERIC:return r+"$property must contain only letters and numbers";case this.IS_ASCII:return r+"$property must contain only ASCII characters";case this.IS_BASE64:return r+"$property must be base64 encoded";case this.IS_BYTE_LENGTH:return r+"$property's byte length must fall into ($constraint1, $constraint2) range";case this.IS_CREDIT_CARD:return r+"$property must be a credit card";case this.IS_CURRENCY:return r+"$property must be a currency";case this.IS_EMAIL:return r+"$property must be an email";case this.IS_FQDN:return r+"$property must be a valid domain name";case this.IS_FULL_WIDTH:return r+"$property must contain a full-width characters";case this.IS_HALF_WIDTH:return r+"$property must contain a half-width characters";case this.IS_VARIABLE_WIDTH:return r+"$property must contain a full-width and half-width characters";case this.IS_HEX_COLOR:return r+"$property must be a hexadecimal color";case this.IS_HEXADECIMAL:return r+"$property must be a hexadecimal number";case this.IS_IP:return r+"$property must be an ip address";case this.IS_ISBN:return r+"$property must be an ISBN";case this.IS_ISIN:return r+"$property must be an ISIN (stock/security identifier)";case this.IS_ISO8601:return r+"$property must be a valid ISO 8601 date string";case this.IS_JSON:return r+"$property must be a json string";case this.IS_LOWERCASE:return r+"$property must be a lowercase string";case this.IS_MOBILE_PHONE:return r+"$property must be a phone number";case this.IS_PHONE_NUMBER:return r+"$property must be a valid phone number";case this.IS_MONGO_ID:return r+"$property must be a mongodb id";case this.IS_MULTIBYTE:return r+"$property must contain one or more multibyte chars";case this.IS_SURROGATE_PAIR:return r+"$property must contain any surrogate pairs chars";case this.IS_URL:return r+"$property must be an URL address";case this.IS_UUID:return r+"$property must be an UUID";case this.IS_UPPERCASE:return r+"$property must be uppercase";case this.LENGTH:return function(e){var t=null!==e.constraints[0]&&void 0!==e.constraints[0],n=null!==e.constraints[1]&&void 0!==e.constraints[1];return t&&(!e.value||e.value.lengthe.constraints[1]?r+"$property must be shorter than or equal to $constraint2 characters":r+"$property must be longer than or equal to $constraint1 and shorter than or equal to $constraint2 characters"};case this.MIN_LENGTH:return r+"$property must be longer than or equal to $constraint1 characters";case this.MAX_LENGTH:return r+"$property must be shorter than or equal to $constraint1 characters";case this.MATCHES:return r+"$property must match $constraint1 regular expression";case this.ARRAY_CONTAINS:return r+"$property must contain $constraint1 values";case this.ARRAY_NOT_CONTAINS:return r+"$property should not contain $constraint1 values";case this.ARRAY_NOT_EMPTY:return r+"$property should not be empty";case this.ARRAY_MIN_SIZE:return r+"$property must contain at least $constraint1 elements";case this.ARRAY_MAX_SIZE:return r+"$property must contain not more than $constraint1 elements";case this.ARRAY_UNIQUE:return r+"All $property's elements must be unique";case this.IS_INSTANCE:return function(e){return e.constraints[0]?r+"$property must be an instance of "+e.constraints[0].name:r+(n.IS_INSTANCE+" decorator expects and object as value, but got falsy value.")}}return""},e.CUSTOM_VALIDATION="customValidation",e.NESTED_VALIDATION="nestedValidation",e.CONDITIONAL_VALIDATION="conditionalValidation",e.WHITELIST="whitelistValidation",e.IS_DEFINED="isDefined",e.EQUALS="equals",e.NOT_EQUALS="notEquals",e.IS_EMPTY="isEmpty",e.IS_NOT_EMPTY="isNotEmpty",e.IS_IN="isIn",e.IS_NOT_IN="isNotIn",e.IS_BOOLEAN="isBoolean",e.IS_DATE="isDate",e.IS_NUMBER="isNumber",e.IS_STRING="isString",e.IS_DATE_STRING="isDateString",e.IS_ARRAY="isArray",e.IS_INT="isInt",e.IS_ENUM="isEnum",e.IS_DIVISIBLE_BY="isDivisibleBy",e.IS_POSITIVE="isPositive",e.IS_NEGATIVE="isNegative",e.MIN="min",e.MAX="max",e.MIN_DATE="minDate",e.MAX_DATE="maxDate",e.IS_BOOLEAN_STRING="isBooleanString",e.IS_NUMBER_STRING="isNumberString",e.CONTAINS="contains",e.NOT_CONTAINS="notContains",e.IS_ALPHA="isAlpha",e.IS_ALPHANUMERIC="isAlphanumeric",e.IS_ASCII="isAscii",e.IS_BASE64="isBase64",e.IS_BYTE_LENGTH="isByteLength",e.IS_CREDIT_CARD="isCreditCard",e.IS_CURRENCY="isCurrency",e.IS_EMAIL="isEmail",e.IS_FQDN="isFqdn",e.IS_FULL_WIDTH="isFullWidth",e.IS_HALF_WIDTH="isHalfWidth",e.IS_VARIABLE_WIDTH="isVariableWidth",e.IS_HEX_COLOR="isHexColor",e.IS_HEXADECIMAL="isHexadecimal",e.IS_IP="isIp",e.IS_ISBN="isIsbn",e.IS_ISIN="isIsin",e.IS_ISO8601="isIso8601",e.IS_JSON="isJson",e.IS_LOWERCASE="isLowercase",e.IS_MOBILE_PHONE="isMobilePhone",e.IS_PHONE_NUMBER="isPhoneNumber",e.IS_MONGO_ID="isMongoId",e.IS_MULTIBYTE="isMultibyte",e.IS_SURROGATE_PAIR="isSurrogatePair",e.IS_URL="isUrl",e.IS_UUID="isUuid",e.LENGTH="length",e.IS_UPPERCASE="isUppercase",e.MIN_LENGTH="minLength",e.MAX_LENGTH="maxLength",e.MATCHES="matches",e.IS_MILITARY_TIME="isMilitaryTime",e.ARRAY_CONTAINS="arrayContains",e.ARRAY_NOT_CONTAINS="arrayNotContains",e.ARRAY_NOT_EMPTY="arrayNotEmpty",e.ARRAY_MIN_SIZE="arrayMinSize",e.ARRAY_MAX_SIZE="arrayMaxSize",e.ARRAY_UNIQUE="arrayUnique",e.IS_INSTANCE="isInstance",e}();t.ValidationTypes=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i,o=new(function(){function e(){this.instances=[]}return e.prototype.get=function(e){var t=this.instances.find(function(t){return t.type===e});return t||(t={type:e,object:new e},this.instances.push(t)),t.object},e}());t.useContainer=function(e,t){r=e,i=t},t.getFromContainer=function(e){if(r)try{var t=r.get(e);if(t)return t;if(!i||!i.fallback)return t}catch(e){if(!i||!i.fallbackOnErrors)throw e}return o.get(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];for(var n in t)void 0===e[n]&&(e[n]=t[n]);return e},e.exports=t.default},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(3));Object.defineProperty(t,"__esModule",{value:!0}),n(110);var a=n(4),s=n(25),u=function(){function e(){(0,i.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]:{},n=new s.InversifyContainerFacade;n.load(e,"",t);var r=n.get(a.ServiceIdentifiers.IJavaScriptObfuscator).obfuscate(e);return n.unload(),r}}]),e}();u.version="0.18.3",t.JavaScriptObfuscator=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(19);function i(e){return"function"==typeof e?e.name:"symbol"==typeof e?e.toString():e}function o(e){if(e.name)return e.name;var t=e.toString(),n=t.match(/^function\s*([^\s(]+)/);return n?n[1]:"Anonymous function: "+t}t.getServiceIdentifierAsString=i,t.listRegisteredBindingsForServiceIdentifier=function(e,t,n){var r="",i=n(e,t);return 0!==i.length&&(r="\nRegistered bindings:",i.forEach(function(e){var t="Object";null!==e.implementationType&&(t=o(e.implementationType)),r=r+"\n "+t,e.constraint.metaData&&(r=r+" - "+e.constraint.metaData)})),r},t.circularDependencyToException=function e(t){t.childRequests.forEach(function(t){if(function e(t,n){return null!==t.parentRequest&&(t.parentRequest.serviceIdentifier===n||e(t.parentRequest,n))}(t,t.serviceIdentifier)){var n=function e(t,n){void 0===n&&(n=[]);var r=i(t.serviceIdentifier);return n.push(r),null!==t.parentRequest?e(t.parentRequest,n):n}(t).reverse().join(" --\x3e ");throw new Error(r.CIRCULAR_DEPENDENCY+" "+n)}e(t)})},t.listMetadataForTarget=function(e,t){if(t.isTagged()||t.isNamed()){var n="",r=t.getNamedTag(),i=t.getCustomTags();return null!==r&&(n+=r.toString()+"\n"),null!==i&&i.forEach(function(e){n+=e.toString()+"\n"})," "+e+"\n "+e+" - "+n}return" "+e},t.getFunctionName=o},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(3)),a=r(n(5)),s=function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,a.default)(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var u=e.length-1;u>=0;u--)(i=e[u])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},u=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,a.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},d=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var l=n(2),c=n(4),p=function(){function e(t,n,r){(0,i.default)(this,e),this.identifierNamesGenerator=t(r),this.randomGenerator=n,this.options=r}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 n=this.customNodes.get(e);n&&t(n)}},{key:"getRandomStackTraceIndex",value:function(e){return this.randomGenerator.getRandomInteger(0,Math.max(0,Math.round(e-1)))}}]),e}();p=s([l.injectable(),d(0,l.inject(c.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d(1,l.inject(c.ServiceIdentifiers.IRandomGenerator)),d(2,l.inject(c.ServiceIdentifiers.IOptions)),u("design:paramtypes",[Function,Object,Object])],p),t.AbstractCustomNodeGroup=p},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(3));Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(){(0,i.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}();a.hexadecimalPrefix="0x",t.Utils=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(252),i=function(){function e(){this.validationMetadatas=[],this.constraintMetadatas=[]}return Object.defineProperty(e.prototype,"hasValidationMetaData",{get:function(){return!!this.validationMetadatas.length},enumerable:!0,configurable:!0}),e.prototype.addValidationSchema=function(e){var t=this;(new r.ValidationSchemaToMetadataTransformer).transform(e).forEach(function(e){return t.addValidationMetadata(e)})},e.prototype.addValidationMetadata=function(e){this.validationMetadatas.push(e)},e.prototype.addConstraintMetadata=function(e){this.constraintMetadatas.push(e)},e.prototype.groupByPropertyName=function(e){var t={};return e.forEach(function(e){t[e.propertyName]||(t[e.propertyName]=[]),t[e.propertyName].push(e)}),t},e.prototype.getTargetValidationMetadatas=function(e,t,n){var r=this.validationMetadatas.filter(function(r){return(r.target===e||r.target===t)&&(!!r.always||(!(n&&n.length>0)||r.groups&&!!r.groups.find(function(e){return-1!==n.indexOf(e)})))}),i=this.validationMetadatas.filter(function(t){return"string"!=typeof t.target&&(t.target!==e&&((!(t.target instanceof Function)||e.prototype instanceof t.target)&&(!!t.always||(!(n&&n.length>0)||t.groups&&!!t.groups.find(function(e){return-1!==n.indexOf(e)})))))}).filter(function(e){return!r.find(function(t){return t.propertyName===e.propertyName&&t.type===e.type})});return r.concat(i)},e.prototype.getTargetValidatorConstraints=function(e){return this.constraintMetadatas.filter(function(t){return t.target===e})},e}();t.MetadataStorage=i},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(49),i=n(33),o=n(50);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:r.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:i.ObfuscationTarget.Browser,transformObjectKeys:!1,unicodeEscapeSequence:!1})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.HexadecimalIdentifierNamesGenerator="hexadecimal",e.MangledIdentifierNamesGenerator="mangled"}(t.IdentifierNamesGenerator||(t.IdentifierNamesGenerator={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.Inline="inline",e.Separate="separate"}(t.SourceMapMode||(t.SourceMapMode={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.Base64="base64",e.Rc4="rc4"}(t.StringArrayEncoding||(t.StringArrayEncoding={}))},function(e,t,n){n(6);var r=n(223);function i(t,n,o){return"undefined"!=typeof Reflect&&Reflect.get?e.exports=i=Reflect.get:e.exports=i=function(e,t,n){var i=r(e,t);if(i){var o=Object.getOwnPropertyDescriptor(i,t);return o.get?o.get.call(n):o.value}},i(t,n,o||t)}e.exports=i},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(3));Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(){(0,i.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=a},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(5)),a=function(e,t,n,r){var i,a=arguments.length,s=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,o.default)(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var u=e.length-1;u>=0;u--)(i=e[u])&&(s=(a<3?i(s):a>3?i(t,n,s):i(t,n))||s);return a>3&&s&&Object.defineProperty(t,n,s),s},s=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,o.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},u=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var d=n(2),l=n(4),c=function e(t){(0,i.default)(this,e),this.options=t};c=a([d.injectable(),u(0,d.inject(l.ServiceIdentifiers.IOptions)),s("design:paramtypes",[Object])],c),t.AbstractObfuscatingReplacer=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});for(var r,i=t.alpha={"en-US":/^[A-Z]+$/i,"bg-BG":/^[А-Я]+$/i,"cs-CZ":/^[A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ]+$/i,"da-DK":/^[A-ZÆØÅ]+$/i,"de-DE":/^[A-ZÄÖÜß]+$/i,"el-GR":/^[Α-ω]+$/i,"es-ES":/^[A-ZÁÉÍÑÓÚÜ]+$/i,"fr-FR":/^[A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ]+$/i,"it-IT":/^[A-ZÀÉÈÌÎÓÒÙ]+$/i,"nb-NO":/^[A-ZÆØÅ]+$/i,"nl-NL":/^[A-ZÁÉËÏÓÖÜÚ]+$/i,"nn-NO":/^[A-ZÆØÅ]+$/i,"hu-HU":/^[A-ZÁÉÍÓÖŐÚÜŰ]+$/i,"pl-PL":/^[A-ZĄĆĘŚŁŃÓŻŹ]+$/i,"pt-PT":/^[A-ZÃÁÀÂÇÉÊÍÕÓÔÚÜ]+$/i,"ru-RU":/^[А-ЯЁ]+$/i,"sk-SK":/^[A-ZÁČĎÉÍŇÓŠŤÚÝŽĹŔĽÄÔ]+$/i,"sr-RS@latin":/^[A-ZČĆŽŠĐ]+$/i,"sr-RS":/^[А-ЯЂЈЉЊЋЏ]+$/i,"sv-SE":/^[A-ZÅÄÖ]+$/i,"tr-TR":/^[A-ZÇĞİıÖŞÜ]+$/i,"uk-UA":/^[А-ЩЬЮЯЄIЇҐі]+$/i,ar:/^[ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]+$/},o=t.alphanumeric={"en-US":/^[0-9A-Z]+$/i,"bg-BG":/^[0-9А-Я]+$/i,"cs-CZ":/^[0-9A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ]+$/i,"da-DK":/^[0-9A-ZÆØÅ]+$/i,"de-DE":/^[0-9A-ZÄÖÜß]+$/i,"el-GR":/^[0-9Α-ω]+$/i,"es-ES":/^[0-9A-ZÁÉÍÑÓÚÜ]+$/i,"fr-FR":/^[0-9A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ]+$/i,"it-IT":/^[0-9A-ZÀÉÈÌÎÓÒÙ]+$/i,"hu-HU":/^[0-9A-ZÁÉÍÓÖŐÚÜŰ]+$/i,"nb-NO":/^[0-9A-ZÆØÅ]+$/i,"nl-NL":/^[0-9A-ZÁÉËÏÓÖÜÚ]+$/i,"nn-NO":/^[0-9A-ZÆØÅ]+$/i,"pl-PL":/^[0-9A-ZĄĆĘŚŁŃÓŻŹ]+$/i,"pt-PT":/^[0-9A-ZÃÁÀÂÇÉÊÍÕÓÔÚÜ]+$/i,"ru-RU":/^[0-9А-ЯЁ]+$/i,"sk-SK":/^[0-9A-ZÁČĎÉÍŇÓŠŤÚÝŽĹŔĽÄÔ]+$/i,"sr-RS@latin":/^[0-9A-ZČĆŽŠĐ]+$/i,"sr-RS":/^[0-9А-ЯЂЈЉЊЋЏ]+$/i,"sv-SE":/^[0-9A-ZÅÄÖ]+$/i,"tr-TR":/^[0-9A-ZÇĞİıÖŞÜ]+$/i,"uk-UA":/^[0-9А-ЩЬЮЯЄIЇҐі]+$/i,ar:/^[٠١٢٣٤٥٦٧٨٩0-9ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]+$/},a=t.decimal={"en-US":".",ar:"٫"},s=t.englishLocales=["AU","GB","HK","IN","NZ","ZA","ZM"],u=0;u=0;u--)(i=e[u])&&(s=(a<3?i(s):a>3?i(t,n,s):i(t,n))||s);return a>3&&s&&Object.defineProperty(t,n,s),s};Object.defineProperty(t,"__esModule",{value:!0});var s=function e(){(0,i.default)(this,e)};s=a([n(2).injectable()],s),t.AbstractCalleeDataExtractor=s},function(e,t,n){"use strict";var r,i=n(0),o=i(n(1)),a=i(n(3)),s=i(n(5)),u=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,s.default)(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var u=e.length-1;u>=0;u--)(i=e[u])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},d=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,s.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},l=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var c=n(2),p=n(4),f=r=function(){function e(t,n,r){(0,o.default)(this,e),this.replacerDataByControlFlowStorageId=new Map,this.controlFlowCustomNodeFactory=t,this.randomGenerator=n,this.options=r}return(0,a.default)(e,[{key:"insertCustomNodeToControlFlowStorage",value:function(e,t,n,i){var o=this,a=t.getStorageId(),s=r.getStorageKeysByIdForCurrentStorage(this.replacerDataByControlFlowStorageId,a),u=s.get(n);if(this.randomGenerator.getMathRandom()":i.Relational,"<=":i.Relational,">=":i.Relational,in:i.Relational,instanceof:i.Relational,"<<":i.BitwiseSHIFT,">>":i.BitwiseSHIFT,">>>":i.BitwiseSHIFT,"+":i.Additive,"-":i.Additive,"*":i.Multiplicative,"%":i.Multiplicative,"/":i.Multiplicative,"**":i.Exponentiation};var P=7,R=1;function x(e,t){var n="";for(t|=0;t>0;t>>>=1,e+=e)1&t&&(n+=e);return n}function O(e){return/[\r\n]/g.test(e)}function $(e){var t=e.length;return t&&u.code.isLineTerminator(e.charCodeAt(t-1))}function w(e,t){var n;for(n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function B(e,t){var n,r;function i(e){return"object"==typeof e&&e instanceof Object&&!(e instanceof RegExp)}for(n in t)t.hasOwnProperty(n)&&(i(r=t[n])?i(e[n])?B(e[n],r):e[n]=B({},r):e[n]=r);return e}function k(e,t){return 8232==(-2&e)?(t?"u":"\\u")+(8232===e?"2028":"2029"):10===e||13===e?(t?"":"\\")+(10===e?"n":"r"):String.fromCharCode(e)}function L(e,t){var n;return 8===e?"\\b":12===e?"\\f":9===e?"\\t":(n=e.toString(16).toUpperCase(),p||e>255?"\\u"+"0000".slice(n.length)+n:0!==e||u.code.isDecimalDigit(t)?11===e?"\\x0B":"\\x"+"00".slice(n.length)+n:"\\0")}function j(e){if(92===e)return"\\\\";if(10===e)return"\\n";if(13===e)return"\\r";if(8232===e)return"\\u2028";if(8233===e)return"\\u2029";throw new Error("Incorrectly classified character")}function G(e,t){if(!E)return d(e)?function e(t){var n,r,i,o="";for(n=0,r=t.length;na&&(s=a)}for(void 0!==t?(d=l,"*"===n[1][s]&&(t+=" "),l=t):(1&s&&--s,d=l),r=1,i=n.length;r0){if(a=t,T){for(t=[],f=(o=e.leadingComments[0]).extendedRange,h=o.range,(y=((m=I.substring(f[0],h[0])).match(/\n/g)||[]).length)>0?(t.push(x("\n",y)),t.push(H(z(o)))):(t.push(m),t.push(z(o))),g=h,n=1,i=e.leadingComments.length;n0?(t.push(x("\n",y)),t.push(H(z(o)))):(t.push(m),t.push(z(o)));else for(s=!$(G(t).toString()),d=x(" ",function(e){var t;for(t=e.length-1;t>=0&&!u.code.isLineTerminator(e.charCodeAt(t));--t);return e.length-1-t}(G([l,t,c]).toString())),n=0,i=e.trailingComments.length;n")),e.expression?(t.push(b),"{"===(n=this.generateExpression(e.body,i.Assignment,P)).toString().charAt(0)&&(n=["(",n,")"]),t.push(n)):t.push(this.maybeBlock(e.body,9)),t},Z.prototype.generateIterationForStatement=function(e,t,n){var o=["for"+b+(t.await?"await"+b:"")+"("],a=this;return W(function(){t.left.type===r.VariableDeclaration?W(function(){o.push(t.left.kind+V()),o.push(a.generateStatement(t.left.declarations[0],0))}):o.push(a.generateExpression(t.left,i.Call,P)),o=[U(o=U(o,e),a.generateExpression(t.right,i.Sequence+("of"===e?1:0),P)),")"]}),o.push(this.maybeBlock(t.body,n)),o},Z.prototype.generatePropertyKey=function(e,t){var n=[];return t&&n.push("["),n.push(this.generateExpression(e,i.Sequence,P)),t&&n.push("]"),n},Z.prototype.generateAssignment=function(e,t,n,r,o){return i.Assignment2&&("\n"===(r=I.substring(n[0]+1,n[1]-1))[0]&&(i=["{"]),i.push(r)),d=R,8&t&&(d|=16),a=0,s=e.body.length;a0&&(e.body[a-1].trailingComments||e.body[a].leadingComments||J(e.body[a-1].range[1],e.body[a].range[0],i))),a===s-1&&(d|=32),u=e.body[a].leadingComments&&T?o.generateStatement(e.body[a],d):H(o.generateStatement(e.body[a],d)),i.push(u),$(G(u).toString())||T&&a1?W(u):u(),n.push(this.semicolon(t)),n},ThrowStatement:function(e,t){return[U("throw",this.generateExpression(e.argument,i.Sequence,P)),this.semicolon(t)]},TryStatement:function(e,t){var n,r,i,o;if(n=["try",this.maybeBlock(e.block,R)],n=this.maybeBlockSuffix(e.block,n),e.handlers)for(r=0,i=e.handlers.length;r0?"\n":""],a=17,i=0;i0&&(e.body[i-1].trailingComments||e.body[i].leadingComments||J(e.body[i-1].range[1],e.body[i].range[0],n))),r=H(this.generateStatement(e.body[i],a)),n.push(r),i+10){for(r.push("("),a=0,s=o;a=2&&48===a.charCodeAt(0))&&o.push("."),o.push("."),o.push(X(e.property))),Y(o,i.Member,t)},MetaProperty:function(e,t,n){return Y([e.meta&&"string"==typeof e.meta.type&&e.meta.type===r.Identifier?e.meta.name:e.meta,".",e.property&&"string"==typeof e.property.type&&e.property.type===r.Identifier?e.property.name:e.property],i.Member,t)},UnaryExpression:function(e,t,n){var r,o,a,s,d;return o=this.generateExpression(e.argument,i.Unary,P),""===b?r=U(e.operator,o):(r=[e.operator],e.operator.length>2?r=U(r,o):(d=(s=G(r).toString()).charCodeAt(s.length-1),a=o.toString().charCodeAt(0),(43===d||45===d)&&d===a||u.code.isIdentifierPartES5(d)&&u.code.isIdentifierPartES5(a)?(r.push(V()),r.push(o)):r.push(o))),Y(r,i.Unary,t)},YieldExpression:function(e,t,n){var r;return r=e.delegate?"yield*":"yield",e.argument&&(r=U(r,this.generateExpression(e.argument,i.Yield,P))),Y(r,i.Yield,t)},AwaitExpression:function(e,t,n){return Y(U(e.all?"await*":"await",this.generateExpression(e.argument,i.Await,P)),i.Await,t)},UpdateExpression:function(e,t,n){return e.prefix?Y([e.operator,this.generateExpression(e.argument,i.Unary,P)],i.Unary,t):Y([this.generateExpression(e.argument,i.Postfix,P),e.operator],i.Postfix,t)},FunctionExpression:function(e,t,n){var r=[Q(e,!0),"function"];return e.id?(r.push(ee(e)||V()),r.push(X(e.id))):r.push(ee(e)||b),r.push(this.generateFunctionBody(e)),r},ArrayPattern:function(e,t,n){return this.ArrayExpression(e,t,n,!0)},ArrayExpression:function(e,t,n,r){var o,a,s=this;return e.elements.length?(a=!r&&e.elements.length>1,o=["[",a?y:""],W(function(t){var n,r;for(n=0,r=e.elements.length;n1,W(function(){a=s.generateExpression(e.properties[0],i.Sequence,P)}),r||O(G(a).toString())?(W(function(t){var n,u;if(o=["{",y,t,a],r)for(o.push(","+y),n=1,u=e.properties.length;n126))){a+=L(r,e.charCodeAt(t+1));continue}}a+=String.fromCharCode(r)}if(o=(i=!("double"===g||"auto"===g&&d0&&(i=+r.slice(o+1),r=r.slice(0,o)),n>=0&&(i-=r.length-n-1,r=+(r.slice(0,n)+r.slice(n+1))+""),o=0;48===r.charCodeAt(r.length+o-1);)--o;return 0!==o&&(i-=o,r=r.slice(0,o)),0!==i&&(r+="e"+i),(r.length1e12&&Math.floor(e)===e&&(r="0x"+e.toString(16)).length0||A.moz.comprehensionExpressionStartsWithAssignment?o=U(o,u):o.push(u)}),e.filter&&(o=U(o,"if"+b),u=this.generateExpression(e.filter,i.Sequence,P),o=U(o,["(",u,")"])),A.moz.comprehensionExpressionStartsWithAssignment||(u=this.generateExpression(e.body,i.Assignment,P),o=U(o,u)),o.push(e.type===r.GeneratorExpression?")":"]"),o},ComprehensionBlock:function(e,t,n){var o;return o=U(o=U(o=e.left.type===r.VariableDeclaration?[e.left.kind,V(),this.generateStatement(e.left.declarations[0],0)]:this.generateExpression(e.left,i.Call,P),e.of?"of":"in"),this.generateExpression(e.right,i.Sequence,P)),["for"+b+"(",o,")"]},SpreadElement:function(e,t,n){return["...",this.generateExpression(e.argument,i.Assignment,P)]},RestElement:function(e,t,n){return["...",this.generatePattern(e.argument,i.Assignment,P)]},SpreadProperty:function(e,t,n){return["...",this.generateExpression(e.argument,i.Assignment,P)]},RestProperty:function(e,t,n){return["...",this.generatePattern(e.argument,i.Assignment,P)]},TaggedTemplateExpression:function(e,t,n){var r=3;return 2&n||(r=1),Y([this.generateExpression(e.tag,i.Call,r),this.generateExpression(e.quasi,i.Primary,4)],i.TaggedTemplate,t)},TemplateElement:function(e,t,n){return e.value.raw},TemplateLiteral:function(e,t,n){var r,o,a;for(r=["`"],o=0,a=e.quasis.length;o=0||e.indexOf("'")>=0)return t;return"double"===g?'"'+e+'"':"'"+e+"'"}(e.value.value,e.value.raw):this.generateExpression(e.value,i.Sequence,{allowIn:!0,allowCall:!0}),o.push(a)),o},JSXClosingElement:function(e,t,n){return[""]},JSXFragment:function(e,t,n){return this.JSXElement(e,t,n)},JSXOpeningFragment:function(e,t,n){return this.JSXOpeningElement(e,t,n)},JSXClosingFragment:function(e,t,n){return this.JSXClosingElement(e,t,n)},JSXElement:function(e,t,n){var o=[],a=this;256&n||(l+=c);var s=this.generateExpression(e.openingElement,i.JSXElement,{allowIn:!0,allowCall:!0});o.push(s);var u,d,p=[];return W(function(t){for(u=0,d=e.children.length;u3&&e.attributes[d].value&&e.attributes[d].value.type!==r.Literal&&(u[u.length-1].multiline=!0);return W(function(e){for(var t=0,n=u.length;t0&&t%3==0||u[t].multiline?o.push(y+e):o.push(" "),o.push(a.generateExpression(u[t].expr,i.Sequence,3))}),o.push(e.selfClosing?"/>":">"),o},JSXSpreadAttribute:function(e,t,n){return["{...",this.generateExpression(e.argument,i.Sequence,{allowIn:!0,allowCall:!0}),"}"]},JSXText:function(e,t,n){return e.raw}},w(Z.prototype,Z.Expression),Z.prototype.generateExpression=function(e,t,n){var o,a;return a=e.type||r.Property,A.verbatim&&e.hasOwnProperty(A.verbatim)?function(e,t){var n;return G("string"==typeof(n=e[A.verbatim])?Y(q(n),i.Sequence,t):Y(q(n.content),null!=n.precedence?n.precedence:i.Sequence,t),e)}(e,t):(o=this[a](e,t,n),A.comment&&(o=K(e,o)),G(o,e))},Z.prototype.generateStatement=function(e,t){var n,i;return n=this[e.type](e,t),A.comment&&(n=K(e,n)),i=G(n).toString(),e.type!==r.Program||S||""!==y||"\n"!==i.charAt(i.length-1)||(n=E?G(n).replaceRight(/\s+$/,""):i.replace(/\s+$/,"")),G(n,e)},D={indent:{style:"",base:0},renumber:!0,hexadecimal:!0,quotes:"auto",escapeless:!0,compact:!0,parentheses:!1,semicolons:!1},F={indent:{style:" ",base:0,adjustMultilineComment:!1},newline:"\n",space:" ",json:!1,renumber:!1,hexadecimal:!1,quotes:"single",escapeless:!1,compact:!1,parentheses:!0,semicolons:!0,safeConcatenation:!1,preserveBlankLines:!1},t.version=n(156).version,t.generate=function(r,i){var o,s,u={indent:null,base:null,parse:null,comment:!1,format:{indent:{style:" ",base:0,adjustMultilineComment:!1},newline:"\n",space:" ",json:!1,renumber:!1,hexadecimal:!1,quotes:"single",escapeless:!1,compact:!1,parentheses:!0,semicolons:!0,safeConcatenation:!1,preserveBlankLines:!1},moz:{comprehensionExpressionStartsWithAssignment:!1,starlessGenerator:!1},sourceMap:null,sourceMapRoot:null,sourceMapWithCode:!1,directive:!1,raw:!0,verbatim:null,sourceCode:null};return null!=i?("string"==typeof i.indent&&(u.format.indent.style=i.indent),"number"==typeof i.base&&(u.format.indent.base=i.base),i=B(u,i),c=i.format.indent.style,l="string"==typeof i.base?i.base:x(c,i.format.indent.base)):(c=(i=u).format.indent.style,l=x(c,i.format.indent.base)),p=i.format.json,f=i.format.renumber,h=!p&&i.format.hexadecimal,g=p?"double":i.format.quotes,m=i.format.escapeless,y=i.format.newline,b=i.format.space,i.format.compact&&(y=b=c=l=""),v=i.format.parentheses,C=i.format.semicolons,S=i.format.safeConcatenation,N=i.directive,_=p?null:i.parse,E=i.sourceMap,I=i.sourceCode,T=i.format.preserveBlankLines&&null!==I,A=i,E&&(a=t.browser?e.sourceMap.SourceNode:n(152).SourceNode),o=ne(r),E?(s=o.toStringWithSourceMap({file:i.file,sourceRoot:i.sourceMapRoot}),i.sourceContent&&s.map.setSourceContent(i.sourceMap,i.sourceContent),i.sourceMapWithCode?s:s.map.toString()):(s={code:o.toString(),map:null},i.sourceMapWithCode?s:s.code)},t.attachComments=s.attachComments,t.Precedence=B({},i),t.browser=!1,t.FORMAT_MINIFY=D,t.FORMAT_DEFAULTS=F}()}).call(this,n(56))},function(e,t){e.exports=function(){throw new Error("define cannot be used indirect")}},function(e,t){function n(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id=63},function(e,t,n){"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,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){return function(e){this.groups=[],this.always=!1,this.each=!1,this.context=void 0,this.type=e.type,this.target=e.target,this.propertyName=e.propertyName,this.constraints=e.constraints,this.constraintCls=e.constraintCls,this.validationTypeOptions=e.validationTypeOptions,e.validationOptions&&(this.message=e.validationOptions.message,this.groups=e.validationOptions.groups,this.always=e.validationOptions.always,this.each=e.validationOptions.each,this.context=e.validationOptions.context)}}();t.ValidationMetadata=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),e=Date.parse(e),isNaN(e)?null:new Date(e)};var r,i=n(9),o=(r=i)&&r.__esModule?r:{default:r};e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.default=function(e){"object"===(void 0===e?"undefined":r(e))&&null!==e?e="function"==typeof e.toString?e.toString():"[object Object]":(null===e||void 0===e||isNaN(e)&&!e.length)&&(e="");return String(e)},e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,r.default)(e),(t=(0,i.default)(t,a)).allow_trailing_dot&&"."===e[e.length-1]&&(e=e.substring(0,e.length-1));for(var n=e.split("."),o=0;o63)return!1;if(t.require_tld){var s=n.pop();if(!n.length||!/^([a-z\u00a1-\uffff]{2,}|xn[a-z0-9-]{2,})$/i.test(s))return!1;if(/[\s\u2002-\u200B\u202F\u205F\u3000\uFEFF\uDB40\uDC20]/.test(s))return!1}for(var u,d=0;d1&&void 0!==arguments[1]?arguments[1]:"";(0,o.default)(t);n=String(n);if(!n)return e(t,4)||e(t,6);if("4"===n){if(!a.test(t))return!1;var r=t.split(".").sort(function(e,t){return e-t});return r[3]<=255}if("6"===n){var i=t.split(":"),u=!1,d=e(i[i.length-1],4),l=d?7:8;if(i.length>l)return!1;if("::"===t)return!0;"::"===t.substr(0,2)?(i.shift(),i.shift(),u=!0):"::"===t.substr(t.length-2)&&(i.pop(),i.pop(),u=!0);for(var c=0;c0&&c=1:i.length===l}return!1};var r,i=n(9),o=(r=i)&&r.__esModule?r:{default:r};var a=/^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})$/,s=/^[0-9A-F]{1,4}$/i;e.exports=t.default},function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var u,d=[],l=!1,c=-1;function p(){l&&u&&(l=!1,u.length?d=u.concat(d):c=-1,d.length&&f())}function f(){if(!l){var e=s(p);l=!0;for(var t=d.length;t;){for(u=d,d=[];++c1)for(var n=1;n=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},c=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},p=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var f=n(2),h=n(4),g=n(27),m=n(60),y=n(10),b=function(e){function t(e,n,r){return(0,i.default)(this,t),(0,a.default)(this,(0,s.default)(t).call(this,e,n,r))}return(0,u.default)(t,e),(0,o.default)(t,[{key:"getControlFlowStorageCallNode",value:function(e,t,n,r){var i=this.controlFlowCustomNodeFactory(g.ControlFlowCustomNode.ExpressionWithOperatorControlFlowStorageCallNode);i.initialize(e,t,n,r);var o=i.getNode()[0];if(!o||!y.NodeGuards.isExpressionStatementNode(o))throw new Error("`controlFlowStorageCallCustomNode.getNode()[0]` should returns array with `ExpressionStatement` node");return o.expression}}]),t}(m.AbstractControlFlowReplacer);b=l([f.injectable(),p(0,f.inject(h.ServiceIdentifiers.Factory__IControlFlowCustomNode)),p(1,f.inject(h.ServiceIdentifiers.IRandomGenerator)),p(2,f.inject(h.ServiceIdentifiers.IOptions)),c("design:paramtypes",[Function,Object,Object])],b),t.ExpressionWithOperatorControlFlowReplacer=b},function(e,t){!function(){"use strict";var t,n,r,i,o,a;function s(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(Math.floor((e-65536)/1024)+55296)+String.fromCharCode((e-65536)%1024+56320)}for(n={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B2\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA7AD\uA7B0\uA7B1\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB5F\uAB64\uAB65\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,NonAsciiIdentifierPart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B2\u08E4-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58\u0C59\u0C60-\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D60-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFC-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA69D\uA69F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA7AD\uA7B0\uA7B1\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB5F\uAB64\uAB65\uABC0-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2D\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/},t={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B2\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA7AD\uA7B0\uA7B1\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB5F\uAB64\uAB65\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDE00-\uDE11\uDE13-\uDE2B\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF5D-\uDF61]|\uD805[\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDE00-\uDE2F\uDE44\uDE80-\uDEAA]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF98]|\uD809[\uDC00-\uDC6E]|[\uD80C\uD840-\uD868\uD86A-\uD86C][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B2\u08E4-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58\u0C59\u0C60-\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D60-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFC-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA69D\uA69F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA7AD\uA7B0\uA7B1\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB5F\uAB64\uAB65\uABC0-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2D\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDD0-\uDDDA\uDE00-\uDE11\uDE13-\uDE37\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF01-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF98]|\uD809[\uDC00-\uDC6E]|[\uD80C\uD840-\uD868\uD86A-\uD86C][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/},r=[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279],i=new Array(128),a=0;a<128;++a)i[a]=a>=97&&a<=122||a>=65&&a<=90||36===a||95===a;for(o=new Array(128),a=0;a<128;++a)o[a]=a>=97&&a<=122||a>=65&&a<=90||a>=48&&a<=57||36===a||95===a;e.exports={isDecimalDigit:function(e){return 48<=e&&e<=57},isHexDigit:function(e){return 48<=e&&e<=57||97<=e&&e<=102||65<=e&&e<=70},isOctalDigit:function(e){return e>=48&&e<=55},isWhiteSpace:function(e){return 32===e||9===e||11===e||12===e||160===e||e>=5760&&r.indexOf(e)>=0},isLineTerminator:function(e){return 10===e||13===e||8232===e||8233===e},isIdentifierStartES5:function(e){return e<128?i[e]:n.NonAsciiIdentifierStart.test(s(e))},isIdentifierPartES5:function(e){return e<128?o[e]:n.NonAsciiIdentifierPart.test(s(e))},isIdentifierStartES6:function(e){return e<128?i[e]:t.NonAsciiIdentifierStart.test(s(e))},isIdentifierPartES6:function(e){return e<128?o[e]:t.NonAsciiIdentifierPart.test(s(e))}}}()},function(e,t,n){"use strict";var r,i,o,a=n(83),s=n(157),u=n(158),d=n(159)(n(161)),l=5;function c(){i={tokens:null,range:!1,loc:!1,comment:!1,comments:[],tolerant:!1,errors:[],strict:!1,ecmaFeatures:{},ecmaVersion:l,isModule:!1}}var p=d.tokTypes,f=d.getLineInfo;function h(e){if("number"!=typeof e)return l;var t=e;switch(t>=2015&&(t-=2009),t){case 3:case 5:case 6:case 7:case 8:case 9:case 10:return t;default:throw new Error("Invalid ecmaVersion.")}}function g(e){if(function(e){switch(e.type){case"ImportDeclaration":case"ExportNamedDeclaration":case"ExportDefaultDeclaration":case"ExportAllDeclaration":return i.isModule;default:return!0}}(e)||this.unexpected(e.start),"TemplateElement"===e.type){var t="${"===this.input.slice(e.end,e.end+2);e.range&&(e.range[0]--,e.range[1]+=t?2:1),e.loc&&(e.loc.start.column--,e.loc.end.column+=t?2:1)}return i.attachComment&&s.processComment(e),e.type.indexOf("Function")>-1&&!e.generator&&(e.generator=!1),e}function m(e){return function(t,n,r,i){var o=e.call(this,t,n,r,i);return g.call(this,o)}}function y(e,t,n,r,i,o){var a={type:e?"Block":"Line",value:t};return"number"==typeof n&&(a.start=n,a.end=r,a.range=[n,r]),"object"==typeof i&&(a.loc={start:i,end:o}),a}p.jsxAttrValueToken={},d.plugins.espree=function(e){e.extend("finishNode",m),e.extend("finishNodeAt",m),e.extend("next",function(e){return function(){return function(e){var t=i.ecmaFeatures;switch(e.type){case p.jsxName:case p.jsxText:case p.jsxTagStart:case p.jsxTagEnd:return t.jsx;case p.regexp:return!(i.ecmaVersion<6&&e.value.flags&&e.value.flags.indexOf("y")>-1);default:return!0}}(this)||this.unexpected(),e.call(this)}}),e.extend("parseTopLevel",function(e){return function(t){return i.ecmaFeatures.impliedStrict&&this.options.ecmaVersion>=5&&(this.strict=!0),e.call(this,t)}}),e.raise=e.raiseRecoverable=function(e,t){var n=f(this.input,e),r=new SyntaxError(t);throw r.index=e,r.lineNumber=n.line,r.column=n.column+1,r},e.unexpected=function(e){var t="Unexpected token";if(null!==e&&void 0!==e){if(this.pos=e,this.options.locations)for(;this.posthis.start&&(t+=" "+this.input.slice(this.start,this.end)),this.raise(this.start,t)},e.extend("jsx_readString",function(e){return function(t){var n=e.call(this,t);return this.type===p.string&&(i.jsxAttrValueToken=!0),n}})},t.version=n(162).version,t.tokenize=function(e,t){var n,o,a,s=new u(p,e);n=String,"string"==typeof e||e instanceof String||(e=n(e)),r=null,t=Object.assign({},t);var f={ecmaVersion:l,plugins:{espree:!0}};c(),t.tokens=!0,i.tokens=[],i.range="boolean"==typeof t.range&&t.range,f.ranges=i.range,i.loc="boolean"==typeof t.loc&&t.loc,f.locations=i.loc,i.comment="boolean"==typeof t.comment&&t.comment,i.comment&&(f.onComment=function(){var e=y.apply(this,arguments);i.comments.push(e)}),i.tolerant="boolean"==typeof t.tolerant&&t.tolerant,f.ecmaVersion=i.ecmaVersion=h(t.ecmaVersion),t.ecmaFeatures&&"object"==typeof t.ecmaFeatures&&(i.ecmaFeatures=Object.assign({},t.ecmaFeatures),a=i.ecmaFeatures.impliedStrict,i.ecmaFeatures.impliedStrict="boolean"==typeof a&&a);try{for(var g=d.tokenizer(e,f);(r=g.getToken()).type!==p.eof;)s.onToken(r,i);o=i.tokens,i.comment&&(o.comments=i.comments),i.tolerant&&(o.errors=i.errors)}catch(e){throw e}return o},t.parse=function(e,t){var n,r,a,f=String,g={ecmaVersion:l,plugins:{espree:!0}};return o=null,"string"==typeof e||e instanceof String||(e=f(e)),c(),s.reset(),void 0!==t&&(i.range="boolean"==typeof t.range&&t.range,i.loc="boolean"==typeof t.loc&&t.loc,i.attachComment="boolean"==typeof t.attachComment&&t.attachComment,i.loc&&null!==t.source&&void 0!==t.source&&(i.source=f(t.source)),"boolean"==typeof t.tokens&&t.tokens&&(i.tokens=[],r=new u(p,e)),"boolean"==typeof t.comment&&t.comment&&(i.comment=!0,i.comments=[]),"boolean"==typeof t.tolerant&&t.tolerant&&(i.errors=[]),i.attachComment&&(i.range=!0,i.comments=[],s.reset()),g.ecmaVersion=i.ecmaVersion=h(t.ecmaVersion),"module"===t.sourceType&&(i.isModule=!0,g.ecmaVersion<6&&(g.ecmaVersion=6,i.ecmaVersion=6),g.sourceType="module"),t.ecmaFeatures&&"object"==typeof t.ecmaFeatures&&(i.ecmaFeatures=Object.assign({},t.ecmaFeatures),a=i.ecmaFeatures.impliedStrict,i.ecmaFeatures.impliedStrict="boolean"==typeof a&&a,t.ecmaFeatures.globalReturn&&(g.allowReturnOutsideFunction=!0)),g.onToken=function(e){i.tokens&&r.onToken(e,i),e.type!==p.eof&&(o=e)},(i.attachComment||i.comment)&&(g.onComment=function(){var e=y.apply(this,arguments);i.comments.push(e),i.attachComment&&s.addComment(e)}),i.range&&(g.ranges=!0),i.loc&&(g.locations=!0),i.ecmaFeatures.jsx&&(g.plugins={jsx:!0,espree:!0})),(n=d.parse(e,g)).sourceType=i.isModule?"module":"script",(i.comment||i.attachComment)&&(n.comments=i.comments),i.tokens&&(n.tokens=i.tokens),n.range&&(n.range[0]=n.body.length?n.body[0].range[0]:n.range[0],n.range[1]=o?o.range[1]:n.range[1]),n.loc&&(n.loc.start=n.body.length?n.body[0].loc.start:n.loc.start,n.loc.end=o?o.loc.end:n.loc.end),n},t.Syntax=function(){var e,t={};for(e in"function"==typeof Object.create&&(t=Object.create(null)),a)a.hasOwnProperty(e)&&(t[e]=a[e]);return"function"==typeof Object.freeze&&Object.freeze(t),t}(),t.VisitorKeys=function(){var e,t=n(163),r={};for(e in"function"==typeof Object.create&&(r=Object.create(null)),t)t.hasOwnProperty(e)&&(r[e]=t[e]);return"function"==typeof Object.freeze&&Object.freeze(r),r}()},function(e,t,n){"use strict";e.exports={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DoWhileStatement:"DoWhileStatement",DebuggerStatement:"DebuggerStatement",EmptyStatement:"EmptyStatement",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForInStatement:"ForInStatement",ForOfStatement:"ForOfStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",Identifier:"Identifier",IfStatement:"IfStatement",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",Program:"Program",Property:"Property",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchCase:"SwitchCase",SwitchStatement:"SwitchStatement",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression",JSXIdentifier:"JSXIdentifier",JSXNamespacedName:"JSXNamespacedName",JSXMemberExpression:"JSXMemberExpression",JSXEmptyExpression:"JSXEmptyExpression",JSXExpressionContainer:"JSXExpressionContainer",JSXElement:"JSXElement",JSXClosingElement:"JSXClosingElement",JSXOpeningElement:"JSXOpeningElement",JSXAttribute:"JSXAttribute",JSXSpreadAttribute:"JSXSpreadAttribute",JSXText:"JSXText",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportAllDeclaration:"ExportAllDeclaration",ExportSpecifier:"ExportSpecifier",ImportDeclaration:"ImportDeclaration",ImportSpecifier:"ImportSpecifier",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.BlockStatementDeadCodeInjectionNode="BlockStatementDeadCodeInjectionNode"}(t.DeadCodeInjectionCustomNode||(t.DeadCodeInjectionCustomNode={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.AssignmentExpressionPropertiesExtractor="AssignmentExpressionPropertiesExtractor",e.VariableDeclaratorPropertiesExtractor="VariableDeclaratorPropertiesExtractor"}(t.PropertiesExtractor||(t.PropertiesExtractor={}))},function(e,t,n){"use strict";var r,i=n(0),o=i(n(37)),a=i(n(1)),s=i(n(3)),u=i(n(5)),d=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,u.default)(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},l=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,u.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var p=n(2),f=n(4),h=n(31),g=n(15),m=n(10),y=n(30),b=r=function(){function e(t,n){(0,a.default)(this,e),this.cachedHostNodesWithStatementsMap=new Map,this.cachedHostStatementsMap=new Map,this.randomGenerator=t,this.options=n}return(0,s.default)(e,[{key:"extractPropertiesToExpressionStatements",value:function(e,t){for(var n=e.length,i=[],o=[],a=0;a=0;u--)(i=e[u])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},u=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,a.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},d=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var l=n(2),c=n(4),p=function(){function e(t,n){(0,i.default)(this,e),this.randomGenerator=t,this.options=n}return(0,o.default)(e,[{key:"isValidIdentifierName",value:function(e){return!this.options.reservedNames.length||!this.options.reservedNames.some(function(t){return null!==new RegExp(t,"g").exec(e)})}}]),e}();p=s([l.injectable(),d(0,l.inject(c.ServiceIdentifiers.IRandomGenerator)),d(1,l.inject(c.ServiceIdentifiers.IOptions)),u("design:paramtypes",[Object,Object])],p),t.AbstractIdentifierNamesGenerator=p},function(e,t,n){"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,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n(function(t){t(e.value)}).then(a,s)}u((r=r.apply(e,t||[])).next())})},i=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=0},e.prototype.isNumber=function(e,t){return void 0===t&&(t={}),e===1/0||e===-1/0?t.allowInfinity:Number.isNaN(e)?t.allowNaN:Number.isFinite(e)},e.prototype.isInt=function(e){return Number.isInteger(e)},e.prototype.isDivisibleBy=function(e,t){return"number"==typeof e&&"number"==typeof t&&this.validatorJs.isDivisibleBy(String(e),t)},e.prototype.isPositive=function(e){return"number"==typeof e&&e>0},e.prototype.isNegative=function(e){return"number"==typeof e&&e<0},e.prototype.min=function(e,t){return"number"==typeof e&&"number"==typeof t&&e>=t},e.prototype.max=function(e,t){return"number"==typeof e&&"number"==typeof t&&e<=t},e.prototype.minDate=function(e,t){return e&&e.getTime()>=t.getTime()},e.prototype.maxDate=function(e,t){return e&&e.getTime()<=t.getTime()},e.prototype.isBooleanString=function(e){return"string"==typeof e&&this.validatorJs.isBoolean(e)},e.prototype.isNumberString=function(e){return"string"==typeof e&&this.validatorJs.isNumeric(e)},e.prototype.contains=function(e,t){return"string"==typeof e&&this.validatorJs.contains(e,t)},e.prototype.notContains=function(e,t){return"string"==typeof e&&!this.validatorJs.contains(e,t)},e.prototype.isAlpha=function(e){return"string"==typeof e&&this.validatorJs.isAlpha(e)},e.prototype.isAlphanumeric=function(e){return"string"==typeof e&&this.validatorJs.isAlphanumeric(e)},e.prototype.isAscii=function(e){return"string"==typeof e&&this.validatorJs.isAscii(e)},e.prototype.isBase64=function(e){return"string"==typeof e&&this.validatorJs.isBase64(e)},e.prototype.isByteLength=function(e,t,n){return"string"==typeof e&&this.validatorJs.isByteLength(e,t,n)},e.prototype.isCreditCard=function(e){return"string"==typeof e&&this.validatorJs.isCreditCard(e)},e.prototype.isCurrency=function(e,t){return"string"==typeof e&&this.validatorJs.isCurrency(e,t)},e.prototype.isEmail=function(e,t){return"string"==typeof e&&this.validatorJs.isEmail(e,t)},e.prototype.isFQDN=function(e,t){return"string"==typeof e&&this.validatorJs.isFQDN(e,t)},e.prototype.isFullWidth=function(e){return"string"==typeof e&&this.validatorJs.isFullWidth(e)},e.prototype.isHalfWidth=function(e){return"string"==typeof e&&this.validatorJs.isHalfWidth(e)},e.prototype.isVariableWidth=function(e){return"string"==typeof e&&this.validatorJs.isVariableWidth(e)},e.prototype.isHexColor=function(e){return"string"==typeof e&&this.validatorJs.isHexColor(e)},e.prototype.isHexadecimal=function(e){return"string"==typeof e&&this.validatorJs.isHexadecimal(e)},e.prototype.isIP=function(e,t){return"string"==typeof e&&this.validatorJs.isIP(e,t)},e.prototype.isISBN=function(e,t){return"string"==typeof e&&this.validatorJs.isISBN(e,t)},e.prototype.isISIN=function(e){return"string"==typeof e&&this.validatorJs.isISIN(e)},e.prototype.isISO8601=function(e){return"string"==typeof e&&this.validatorJs.isISO8601(e)},e.prototype.isJSON=function(e){return"string"==typeof e&&this.validatorJs.isJSON(e)},e.prototype.isLowercase=function(e){return"string"==typeof e&&this.validatorJs.isLowercase(e)},e.prototype.isMobilePhone=function(e,t){return"string"==typeof e&&this.validatorJs.isMobilePhone(e,t)},e.prototype.isPhoneNumber=function(e,t){try{var n=this.libPhoneNumber.phoneUtil.parseAndKeepRawInput(e,t);return this.libPhoneNumber.phoneUtil.isValidNumber(n)}catch(e){return!1}},e.prototype.isMongoId=function(e){return"string"==typeof e&&this.validatorJs.isMongoId(e)},e.prototype.isMultibyte=function(e){return"string"==typeof e&&this.validatorJs.isMultibyte(e)},e.prototype.isSurrogatePair=function(e){return"string"==typeof e&&this.validatorJs.isSurrogatePair(e)},e.prototype.isURL=function(e,t){return"string"==typeof e&&this.validatorJs.isURL(e,t)},e.prototype.isUUID=function(e,t){return"string"==typeof e&&this.validatorJs.isUUID(e,t)},e.prototype.isUppercase=function(e){return"string"==typeof e&&this.validatorJs.isUppercase(e)},e.prototype.length=function(e,t,n){return"string"==typeof e&&this.validatorJs.isLength(e,t,n)},e.prototype.minLength=function(e,t){return"string"==typeof e&&this.length(e,t)},e.prototype.maxLength=function(e,t){return"string"==typeof e&&this.length(e,0,t)},e.prototype.matches=function(e,t,n){return"string"==typeof e&&this.validatorJs.matches(e,t,n)},e.prototype.isMilitaryTime=function(e){return this.matches(e,/^([01]\d|2[0-3]):?([0-5]\d)$/)},e.prototype.arrayContains=function(e,t){return e instanceof Array&&(!e||t.every(function(t){return-1!==e.indexOf(t)}))},e.prototype.arrayNotContains=function(e,t){return e instanceof Array&&(!e||t.every(function(t){return-1===e.indexOf(t)}))},e.prototype.arrayNotEmpty=function(e){return e instanceof Array&&(e instanceof Array&&e.length>0)},e.prototype.arrayMinSize=function(e,t){return e instanceof Array&&(e instanceof Array&&e.length>=t)},e.prototype.arrayMaxSize=function(e,t){return e instanceof Array&&(e instanceof Array&&e.length<=t)},e.prototype.arrayUnique=function(e){if(!(e instanceof Array))return!1;var t=e.filter(function(e,t,n){return n.indexOf(e)===t});return e.length===t.length},e.prototype.isInstance=function(e,t){return t&&"function"==typeof t&&e instanceof t},e}();t.Validator=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){}return e.prototype.toString=function(e,t,n){var r=this;void 0===e&&(e=!1),void 0===t&&(t=!1),void 0===n&&(n="");var i=e?"":"",o=e?"":"",a=function(e){return" - property "+i+n+e+o+" has failed the following constraints: "+i+Object.keys(r.constraints).join(", ")+o+" \n"};if(t){var s=Number.isInteger(+this.property)?"["+this.property+"]":(n?".":"")+this.property;return this.constraints?a(s):this.children.map(function(t){return t.toString(e,!0,""+n+s)}).join("")}return"An instance of "+i+(this.target?this.target.constructor.name:"an object")+o+" has failed the validation:\n"+(this.constraints?a(this.property):"")+this.children.map(function(t){return t.toString(e,!0,r.property)}).join("")},e}();t.ValidationError=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),parseFloat(e)};var r,i=n(9),o=(r=i)&&r.__esModule?r:{default:r};e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.default=function(e,t){(0,a.default)(e);var n=void 0,i=void 0;"object"===(void 0===t?"undefined":r(t))?(n=t.min||0,i=t.max):(n=arguments[1],i=arguments[2]);var o=encodeURI(e).split(/%..|./).length-1;return o>=n&&(void 0===i||o<=i)};var i,o=n(9),a=(i=o)&&i.__esModule?i:{default:i};e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,o.default)(e);var n=(t=t||{}).hasOwnProperty("allow_leading_zeroes")&&!t.allow_leading_zeroes?a:s,r=!t.hasOwnProperty("min")||e>=t.min,i=!t.hasOwnProperty("max")||e<=t.max,u=!t.hasOwnProperty("lt")||et.gt;return n.test(e)&&r&&i&&u&&d};var r,i=n(9),o=(r=i)&&r.__esModule?r:{default:r};var a=/^(?:[-+]?(?:0|[1-9][0-9]*))$/,s=/^[-+]?[0-9]+$/;e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fullWidth=void 0,t.default=function(e){return(0,o.default)(e),a.test(e)};var r,i=n(9),o=(r=i)&&r.__esModule?r:{default:r};var a=t.fullWidth=/[^\u0020-\u007E\uFF61-\uFF9F\uFFA0-\uFFDC\uFFE8-\uFFEE0-9a-zA-Z]/},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.halfWidth=void 0,t.default=function(e){return(0,o.default)(e),a.test(e)};var r,i=n(9),o=(r=i)&&r.__esModule?r:{default:r};var a=t.halfWidth=/[\u0020-\u007E\uFF61-\uFF9F\uFFA0-\uFFDC\uFFE8-\uFFEE0-9a-zA-Z]/},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),a.test(e)};var r,i=n(9),o=(r=i)&&r.__esModule?r:{default:r};var a=/^[0-9A-F]+$/i;e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,o.default)(e);var n=t?new RegExp("^["+t+"]+","g"):/^\s+/g;return e.replace(n,"")};var r,i=n(9),o=(r=i)&&r.__esModule?r:{default:r};e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,o.default)(e);for(var n=t?new RegExp("["+t+"]"):/\s/,r=e.length-1;r>=0&&n.test(e[r]);r--);return r=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},l=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,u.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var p=n(2),f=n(4),h=n(11),g=function(){function e(t,n){(0,a.default)(this,e),this.randomGenerator=t,this.options=n}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,n=!1,r=void 0;try{for(var i,a=this.storage[Symbol.iterator]();!(t=(i=a.next()).done);t=!0){var s=(0,o.default)(i.value,2),u=s[0];if(e===s[1])return u}}catch(e){n=!0,r=e}finally{try{t||null==a.return||a.return()}finally{if(n)throw r}}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:"mergeWith",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.storage=new Map((0,i.default)(this.storage).concat((0,i.default)(e.getStorage()))),t&&(this.storageId=e.getStorageId())}},{key:"set",value:function(e,t){this.storage.set(e,t)}}]),e}();d([h.initializable(),l("design:type",String)],g.prototype,"storageId",void 0),d([h.initializable(),l("design:type",Map)],g.prototype,"storage",void 0),d([p.postConstruct(),l("design:type",Function),l("design:paramtypes",[]),l("design:returntype",void 0)],g.prototype,"initialize",null),g=d([p.injectable(),c(0,p.inject(f.ServiceIdentifiers.IRandomGenerator)),c(1,p.inject(f.ServiceIdentifiers.IOptions)),l("design:paramtypes",[Object,Object])],g),t.MapStorage=g},function(e,t,n){"use strict";var r,i=n(0),o=i(n(1)),a=i(n(3)),s=i(n(5)),u=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,s.default)(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var u=e.length-1;u>=0;u--)(i=e[u])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},d=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,s.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},l=function(e,t){return function(n,r){t(n,r,e)}},c=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var p=n(2),f=n(4),h=c(n(347)),g=n(350),m=n(11),y=r=function(){function e(t,n){(0,o.default)(this,e),this.sourceCode=t,this.options=n}return(0,a.default)(e,[{key:"initialize",value:function(){var e,t,n,r=this;this.seed=0!==this.options.seed?this.options.seed:(e=0,t=999999999,Math.floor(Math.random()*(t-e+1)+e)),this.randomGenerator=new g.Chance((n=h.default(r.sourceCode.getSourceCode()),r.seed+Number(n.replace(/\D/g,""))))}},{key:"getMathRandom",value:function(){return this.getRandomInteger(0,99999)/1e5}},{key:"getRandomGenerator",value:function(){return this.randomGenerator}},{key:"getRandomInteger",value:function(e,t){return this.getRandomGenerator().integer({min:e,max:t})}},{key:"getRandomString",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.randomGeneratorPool;return this.getRandomGenerator().string({length:e,pool:t})}},{key:"getSeed",value:function(){return this.seed}}]),e}();y.randomGeneratorPool="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",u([m.initializable(),d("design:type",Object)],y.prototype,"randomGenerator",void 0),u([m.initializable(),d("design:type",Number)],y.prototype,"seed",void 0),u([p.postConstruct(),d("design:type",Function),d("design:paramtypes",[]),d("design:returntype",void 0)],y.prototype,"initialize",null),y=r=u([p.injectable(),l(0,p.inject(f.ServiceIdentifiers.ISourceCode)),l(1,p.inject(f.ServiceIdentifiers.IOptions)),d("design:paramtypes",[Object,Object])],y),t.RandomGenerator=y},function(e,t){var n={utf8:{stringToBytes:function(e){return n.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(n.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],n=0;n0}function p(e){if(!this||!(this instanceof p)||this.template){const t={};return c(t,e),t.template=function(){const e=[].slice.call(arguments);return function(e,t){if(!Array.isArray(t))return[].slice.call(arguments,1).join(" ");const n=[].slice.call(arguments,2),r=[t.raw[0]];for(let e=1;e{},l);function h(e,t,n){const r=function(){return function(){const e=arguments,t=e.length;let n=String(arguments[0]);if(0===t)return"";if(t>1)for(let r=1;ro.level,set(e){o.level=e}}),Object.defineProperty(r,"enabled",{enumerable:!0,get:()=>o.enabled,set(e){o.enabled=e}}),r.hasGrey=this.hasGrey||"gray"===n||"grey"===n,r.__proto__=f,r}Object.defineProperties(p.prototype,l),e.exports=p(),e.exports.supportsColor=o,e.exports.default=e.exports}).call(this,n(70))},function(e,t,n){var r=n(362),i={};for(var o in r)r.hasOwnProperty(o)&&(i[r[o]]=o);var a=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var s in a)if(a.hasOwnProperty(s)){if(!("channels"in a[s]))throw new Error("missing channels property: "+s);if(!("labels"in a[s]))throw new Error("missing channel labels property: "+s);if(a[s].labels.length!==a[s].channels)throw new Error("channel and label counts mismatch: "+s);var u=a[s].channels,d=a[s].labels;delete a[s].channels,delete a[s].labels,Object.defineProperty(a[s],"channels",{value:u}),Object.defineProperty(a[s],"labels",{value:d})}a.rgb.hsl=function(e){var t,n,r=e[0]/255,i=e[1]/255,o=e[2]/255,a=Math.min(r,i,o),s=Math.max(r,i,o),u=s-a;return s===a?t=0:r===s?t=(i-o)/u:i===s?t=2+(o-r)/u:o===s&&(t=4+(r-i)/u),(t=Math.min(60*t,360))<0&&(t+=360),n=(a+s)/2,[t,100*(s===a?0:n<=.5?u/(s+a):u/(2-s-a)),100*n]},a.rgb.hsv=function(e){var t,n,r=e[0],i=e[1],o=e[2],a=Math.min(r,i,o),s=Math.max(r,i,o),u=s-a;return n=0===s?0:u/s*1e3/10,s===a?t=0:r===s?t=(i-o)/u:i===s?t=2+(o-r)/u:o===s&&(t=4+(r-i)/u),(t=Math.min(60*t,360))<0&&(t+=360),[t,n,s/255*1e3/10]},a.rgb.hwb=function(e){var t=e[0],n=e[1],r=e[2];return[a.rgb.hsl(e)[0],100*(1/255*Math.min(t,Math.min(n,r))),100*(r=1-1/255*Math.max(t,Math.max(n,r)))]},a.rgb.cmyk=function(e){var t,n=e[0]/255,r=e[1]/255,i=e[2]/255;return[100*((1-n-(t=Math.min(1-n,1-r,1-i)))/(1-t)||0),100*((1-r-t)/(1-t)||0),100*((1-i-t)/(1-t)||0),100*t]},a.rgb.keyword=function(e){var t=i[e];if(t)return t;var n,o,a,s=1/0;for(var u in r)if(r.hasOwnProperty(u)){var d=r[u],l=(o=e,a=d,Math.pow(o[0]-a[0],2)+Math.pow(o[1]-a[1],2)+Math.pow(o[2]-a[2],2));l.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)),100*(.2126*t+.7152*n+.0722*r),100*(.0193*t+.1192*n+.9505*r)]},a.rgb.lab=function(e){var t=a.rgb.xyz(e),n=t[0],r=t[1],i=t[2];return r/=100,i/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(n-r),200*(r-(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116))]},a.hsl.rgb=function(e){var t,n,r,i,o,a=e[0]/360,s=e[1]/100,u=e[2]/100;if(0===s)return[o=255*u,o,o];t=2*u-(n=u<.5?u*(1+s):u+s-u*s),i=[0,0,0];for(var d=0;d<3;d++)(r=a+1/3*-(d-1))<0&&r++,r>1&&r--,o=6*r<1?t+6*(n-t)*r:2*r<1?n:3*r<2?t+(n-t)*(2/3-r)*6:t,i[d]=255*o;return i},a.hsl.hsv=function(e){var t=e[0],n=e[1]/100,r=e[2]/100,i=n,o=Math.max(r,.01);return n*=(r*=2)<=1?r:2-r,i*=o<=1?o:2-o,[t,100*(0===r?2*i/(o+i):2*n/(r+n)),100*((r+n)/2)]},a.hsv.rgb=function(e){var t=e[0]/60,n=e[1]/100,r=e[2]/100,i=Math.floor(t)%6,o=t-Math.floor(t),a=255*r*(1-n),s=255*r*(1-n*o),u=255*r*(1-n*(1-o));switch(r*=255,i){case 0:return[r,u,a];case 1:return[s,r,a];case 2:return[a,r,u];case 3:return[a,s,r];case 4:return[u,a,r];case 5:return[r,a,s]}},a.hsv.hsl=function(e){var t,n,r,i=e[0],o=e[1]/100,a=e[2]/100,s=Math.max(a,.01);return r=(2-o)*a,n=o*s,[i,100*(n=(n/=(t=(2-o)*s)<=1?t:2-t)||0),100*(r/=2)]},a.hwb.rgb=function(e){var t,n,r,i,o,a,s,u=e[0]/360,d=e[1]/100,l=e[2]/100,c=d+l;switch(c>1&&(d/=c,l/=c),n=1-l,r=6*u-(t=Math.floor(6*u)),0!=(1&t)&&(r=1-r),i=d+r*(n-d),t){default:case 6:case 0:o=n,a=i,s=d;break;case 1:o=i,a=n,s=d;break;case 2:o=d,a=n,s=i;break;case 3:o=d,a=i,s=n;break;case 4:o=i,a=d,s=n;break;case 5:o=n,a=d,s=i}return[255*o,255*a,255*s]},a.cmyk.rgb=function(e){var t=e[0]/100,n=e[1]/100,r=e[2]/100,i=e[3]/100;return[255*(1-Math.min(1,t*(1-i)+i)),255*(1-Math.min(1,n*(1-i)+i)),255*(1-Math.min(1,r*(1-i)+i))]},a.xyz.rgb=function(e){var t,n,r,i=e[0]/100,o=e[1]/100,a=e[2]/100;return n=-.9689*i+1.8758*o+.0415*a,r=.0557*i+-.204*o+1.057*a,t=(t=3.2406*i+-1.5372*o+-.4986*a)>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,[255*(t=Math.min(Math.max(0,t),1)),255*(n=Math.min(Math.max(0,n),1)),255*(r=Math.min(Math.max(0,r),1))]},a.xyz.lab=function(e){var t=e[0],n=e[1],r=e[2];return n/=100,r/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(t-n),200*(n-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]},a.lab.xyz=function(e){var t,n,r,i=e[0],o=e[1],a=e[2];t=o/500+(n=(i+16)/116),r=n-a/200;var s=Math.pow(n,3),u=Math.pow(t,3),d=Math.pow(r,3);return n=s>.008856?s:(n-16/116)/7.787,t=u>.008856?u:(t-16/116)/7.787,r=d>.008856?d:(r-16/116)/7.787,[t*=95.047,n*=100,r*=108.883]},a.lab.lch=function(e){var t,n=e[0],r=e[1],i=e[2];return(t=360*Math.atan2(i,r)/2/Math.PI)<0&&(t+=360),[n,Math.sqrt(r*r+i*i),t]},a.lch.lab=function(e){var t,n=e[0],r=e[1];return t=e[2]/360*2*Math.PI,[n,r*Math.cos(t),r*Math.sin(t)]},a.rgb.ansi16=function(e){var t=e[0],n=e[1],r=e[2],i=1 in arguments?arguments[1]:a.rgb.hsv(e)[2];if(0===(i=Math.round(i/50)))return 30;var o=30+(Math.round(r/255)<<2|Math.round(n/255)<<1|Math.round(t/255));return 2===i&&(o+=60),o},a.hsv.ansi16=function(e){return a.rgb.ansi16(a.hsv.rgb(e),e[2])},a.rgb.ansi256=function(e){var t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},a.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},a.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var n;return e-=16,[Math.floor(e/36)/5*255,Math.floor((n=e%36)/6)/5*255,n%6/5*255]},a.rgb.hex=function(e){var t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},a.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var n=t[0];3===t[0].length&&(n=n.split("").map(function(e){return e+e}).join(""));var r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},a.rgb.hcg=function(e){var t,n,r=e[0]/255,i=e[1]/255,o=e[2]/255,a=Math.max(Math.max(r,i),o),s=Math.min(Math.min(r,i),o),u=a-s;return t=u<1?s/(1-u):0,n=u<=0?0:a===r?(i-o)/u%6:a===i?2+(o-r)/u:4+(r-i)/u+4,n/=6,[360*(n%=1),100*u,100*t]},a.hsl.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=1,i=0;return(r=n<.5?2*t*n:2*t*(1-n))<1&&(i=(n-.5*r)/(1-r)),[e[0],100*r,100*i]},a.hsv.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=t*n,i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],100*r,100*i]},a.hcg.rgb=function(e){var t=e[0]/360,n=e[1]/100,r=e[2]/100;if(0===n)return[255*r,255*r,255*r];var i,o=[0,0,0],a=t%1*6,s=a%1,u=1-s;switch(Math.floor(a)){case 0:o[0]=1,o[1]=s,o[2]=0;break;case 1:o[0]=u,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=s;break;case 3:o[0]=0,o[1]=u,o[2]=1;break;case 4:o[0]=s,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=u}return i=(1-n)*r,[255*(n*o[0]+i),255*(n*o[1]+i),255*(n*o[2]+i)]},a.hcg.hsv=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t),r=0;return n>0&&(r=t/n),[e[0],100*r,100*n]},a.hcg.hsl=function(e){var t=e[1]/100,n=e[2]/100*(1-t)+.5*t,r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],100*r,100*n]},a.hcg.hwb=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},a.hwb.hcg=function(e){var t=e[1]/100,n=1-e[2]/100,r=n-t,i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],100*r,100*i]},a.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},a.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},a.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},a.gray.hsl=a.gray.hsv=function(e){return[0,0,e[0]]},a.gray.hwb=function(e){return[0,100,e[0]]},a.gray.cmyk=function(e){return[0,0,0,e[0]]},a.gray.lab=function(e){return[e[0],0,0]},a.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},a.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(42);e.exports=r.JavaScriptObfuscator},function(e,t,n){(function(e,t){ +!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.JavaScriptObfuscator=t():e.JavaScriptObfuscator=t()}(window,function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=109)}([function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}}},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(17);t.METADATA_KEY=r;var i=n(112);t.Container=i.Container;var o=n(23);t.BindingScopeEnum=o.BindingScopeEnum,t.BindingTypeEnum=o.BindingTypeEnum,t.TargetTypeEnum=o.TargetTypeEnum;var a=n(128);t.AsyncContainerModule=a.AsyncContainerModule,t.ContainerModule=a.ContainerModule;var s=n(129);t.injectable=s.injectable;var u=n(130);t.tagged=u.tagged;var d=n(131);t.named=d.named;var l=n(74);t.inject=l.inject,t.LazyServiceIdentifer=l.LazyServiceIdentifer;var c=n(132);t.optional=c.optional;var p=n(133);t.unmanaged=p.unmanaged;var f=n(134);t.multiInject=f.multiInject;var h=n(135);t.targetName=h.targetName;var g=n(136);t.postConstruct=g.postConstruct;var m=n(72);t.MetadataReader=m.MetadataReader;var y=n(29);t.guid=y.guid;var b=n(26);t.decorate=b.decorate;var v=n(77);t.traverseAncerstors=v.traverseAncerstors,t.taggedConstraint=v.taggedConstraint,t.namedConstraint=v.namedConstraint,t.typeConstraint=v.typeConstraint;var C=n(43);t.getServiceIdentifierAsString=C.getServiceIdentifierAsString;var S=n(137);t.multiBindToService=S.multiBindToService},function(e,t){function n(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:"initialize",t=Object.keys(this)[0];return function(n,d){var l=n[e];if(!l||"function"!=typeof l)throw new Error("`".concat(e,"` method with initialization logic not ")+"found. `@".concat(t,"` decorator requires `").concat(e,"` method"));return u(i,!1,n),u(o,new Set,n),u(a,new Set,n),function(e,t){var n=Object.getOwnPropertyNames(e),u=[t,s];n.forEach(function(n){var s=Reflect.getMetadata(o,e),d=Reflect.getMetadata(a,e),l=u.includes(n)||s.has(n)||d.has(n);if(!l){var c=e[n];if("function"==typeof c){var p=Object.getOwnPropertyDescriptor(e,n)||r,f=p.value;Object.defineProperty(e,n,Object.assign({},p,{value:function(){if(!Reflect.getMetadata(i,this))throw new Error("Class should be initialized with `".concat(t,"()` method"));return f.apply(this,arguments)}})),d.add(n)}}})}(n,e),function(e,t,n){var o=Object.getOwnPropertyDescriptor(e,t)||r,a=o.value;Object.defineProperty(e,t,Object.assign({},o,{value:function(){Reflect.defineMetadata(i,!0,this);var e=a.apply(this,arguments);return this[n],e}}))}(n,e,d),function(e,t){Reflect.getMetadata(o,e).add(t);var n="_".concat(t.toString()),i=Object.getOwnPropertyDescriptor(e,n)||r;return Object.defineProperty(e,t,Object.assign({},i,{get:function(){if(void 0===this[n])throw new Error("Property `".concat(t.toString(),"` is not initialized! Initialize it first!"));return this[n]},set:function(e){this[n]=e}})),i}(n,d)}}},function(e,t,n){"use strict";var r=n(0),i=r(n(5)),o=r(n(1)),a=r(n(3)),s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var u=s(n(61)),d=s(n(82)),l=s(n(18)),c=n(10),p=n(20),f=function(){function e(){(0,o.default)(this,e)}return(0,a.default)(e,null,[{key:"addXVerbatimPropertyTo",value:function(e){return e["x-verbatim-property"]={content:e.raw,precedence:u.Precedence.Primary},e}},{key:"clone",value:function(t){return e.parentizeAst(e.cloneRecursive(t))}},{key:"convertCodeToStructure",value:function(t){var n=d.parse(t,{sourceType:"script"});return l.replace(n,{enter:function(t,n){return e.parentizeNode(t,n),c.NodeGuards.isLiteralNode(t)&&e.addXVerbatimPropertyTo(t),p.NodeMetadata.set(t,{ignoredNode:!1}),t}}),n.body}},{key:"convertStructureToCode",value:function(e){return e.reduce(function(e,t){return e+u.generate(t,{sourceMapWithCode:!0}).code},"")}},{key:"getUnaryExpressionArgumentNode",value:function(t){return c.NodeGuards.isUnaryExpressionNode(t.argument)?e.getUnaryExpressionArgumentNode(t.argument):t.argument}},{key:"parentizeAst",value:function(t){return l.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 n={};return Object.keys(t).forEach(function(r){if("parentNode"!==r){var o,a=t[r];o=null===a||a instanceof RegExp?a:Array.isArray(a)?a.map(e.cloneRecursive):"object"===(0,i.default)(a)?e.cloneRecursive(a):a,n[r]=o}}),n}}]),e}();t.NodeUtils=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){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,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(5)),a=function(e,t,n,r){var i,a=arguments.length,s=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,o.default)(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var u=e.length-1;u>=0;u--)(i=e[u])&&(s=(a<3?i(s):a>3?i(t,n,s):i(t,n))||s);return a>3&&s&&Object.defineProperty(t,n,s),s},s=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,o.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},u=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var d=n(2),l=n(4),c=function e(t,n){(0,i.default)(this,e),this.randomGenerator=t,this.options=n};c=a([d.injectable(),u(0,d.inject(l.ServiceIdentifiers.IRandomGenerator)),u(1,d.inject(l.ServiceIdentifiers.IOptions)),s("design:paramtypes",[Object,Object])],c),t.AbstractNodeTransformer=c},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(3)),a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var s=a(n(61)),u=n(24),d=function(){function e(){(0,i.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:u.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:u.NodeType.ArrayExpression,elements:e,metadata:{ignoredNode:!1}}}},{key:"assignmentExpressionNode",value:function(e,t,n){return{type:u.NodeType.AssignmentExpression,operator:e,left:t,right:n,metadata:{ignoredNode:!1}}}},{key:"binaryExpressionNode",value:function(e,t,n){return{type:u.NodeType.BinaryExpression,operator:e,left:t,right:n,metadata:{ignoredNode:!1}}}},{key:"blockStatementNode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return{type:u.NodeType.BlockStatement,body:e,metadata:{ignoredNode:!1}}}},{key:"breakStatement",value:function(e){return{type:u.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:u.NodeType.CallExpression,callee:e,arguments:t,metadata:{ignoredNode:!1}}}},{key:"continueStatement",value:function(e){return{type:u.NodeType.ContinueStatement,label:e,metadata:{ignoredNode:!1}}}},{key:"expressionStatementNode",value:function(e){return{type:u.NodeType.ExpressionStatement,expression:e,metadata:{ignoredNode:!1}}}},{key:"functionDeclarationNode",value:function(t,n,r){return{type:u.NodeType.FunctionDeclaration,id:e.identifierNode(t),params:n,body:r,generator:!1,metadata:{ignoredNode:!1}}}},{key:"functionExpressionNode",value:function(e,t){return{type:u.NodeType.FunctionExpression,params:e,body:t,generator:!1,metadata:{ignoredNode:!1}}}},{key:"ifStatementNode",value:function(e,t,n){return Object.assign({type:u.NodeType.IfStatement,test:e,consequent:t},n&&{alternate:n},{metadata:{ignoredNode:!1}})}},{key:"identifierNode",value:function(e){return{type:u.NodeType.Identifier,name:e,metadata:{ignoredNode:!1}}}},{key:"literalNode",value:function(e,t){return t=void 0!==t?t:"'".concat(e,"'"),{type:u.NodeType.Literal,value:e,raw:t,"x-verbatim-property":{content:t,precedence:s.Precedence.Primary},metadata:{ignoredNode:!1}}}},{key:"logicalExpressionNode",value:function(e,t,n){return{type:u.NodeType.LogicalExpression,operator:e,left:t,right:n,metadata:{ignoredNode:!1}}}},{key:"memberExpressionNode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{type:u.NodeType.MemberExpression,computed:n,object:e,property:t,metadata:{ignoredNode:!1}}}},{key:"methodDefinitionNode",value:function(e,t,n,r){return{type:u.NodeType.MethodDefinition,key:e,value:t,kind:n,computed:r,static:!1,metadata:{ignoredNode:!1}}}},{key:"objectExpressionNode",value:function(e){return{type:u.NodeType.ObjectExpression,properties:e,metadata:{ignoredNode:!1}}}},{key:"propertyNode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{type:u.NodeType.Property,key:e,value:t,kind:"init",method:!1,shorthand:!1,computed:n,metadata:{ignoredNode:!1}}}},{key:"returnStatementNode",value:function(e){return{type:u.NodeType.ReturnStatement,argument:e,metadata:{ignoredNode:!1}}}},{key:"switchStatementNode",value:function(e,t){return{type:u.NodeType.SwitchStatement,discriminant:e,cases:t,metadata:{ignoredNode:!1}}}},{key:"switchCaseNode",value:function(e,t){return{type:u.NodeType.SwitchCase,test:e,consequent:t,metadata:{ignoredNode:!1}}}},{key:"unaryExpressionNode",value:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return{type:u.NodeType.UnaryExpression,operator:e,argument:t,prefix:n,metadata:{ignoredNode:!1}}}},{key:"updateExpressionNode",value:function(e,t){return{type:u.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:u.NodeType.VariableDeclaration,declarations:e,kind:t,metadata:{ignoredNode:!1}}}},{key:"variableDeclaratorNode",value:function(e,t){return{type:u.NodeType.VariableDeclarator,id:e,init:t,metadata:{ignoredNode:!1}}}},{key:"whileStatementNode",value:function(e,t){return{type:u.NodeType.WhileStatement,test:e,body:t,metadata:{ignoredNode:!1}}}}]),e}();t.NodeFactory=d},function(e,t,n){"use strict";var r,i=n(0),o=i(n(1)),a=i(n(3)),s=i(n(5)),u=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,s.default)(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var u=e.length-1;u>=0;u--)(i=e[u])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},d=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,s.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},l=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var c=n(2),p=n(4),f=n(190),h=n(191),g=r=function(){function e(t,n,r){(0,o.default)(this,e),this.cachedNode=null,this.identifierNamesGenerator=t(r),this.randomGenerator=n,this.options=r}return(0,a.default)(e,[{key:"getNode",value:function(){return this.cachedNode||(this.cachedNode=this.getNodeStructure()),this.cachedNode}},{key:"getGlobalVariableTemplate",value:function(){return this.randomGenerator.getRandomGenerator().pickone(r.globalVariableTemplateFunctions)}}]),e}();g.globalVariableTemplateFunctions=[f.GlobalVariableTemplate1(),h.GlobalVariableTemplate2()],g=r=u([c.injectable(),l(0,c.inject(p.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),l(1,c.inject(p.ServiceIdentifiers.IRandomGenerator)),l(2,c.inject(p.ServiceIdentifiers.IOptions)),d("design:paramtypes",[Function,Object,Object])],g),t.AbstractCustomNode=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NAMED_TAG="named",t.NAME_TAG="name",t.UNMANAGED_TAG="unmanaged",t.OPTIONAL_TAG="optional",t.INJECT_TAG="inject",t.MULTI_INJECT_TAG="multi_inject",t.TAGGED="inversify:tagged",t.TAGGED_PROP="inversify:tagged_props",t.PARAM_TYPES="inversify:paramtypes",t.DESIGN_PARAM_TYPES="design:paramtypes",t.POST_CONSTRUCT="post_construct"},function(e,t,n){!function e(t){"use strict";var r,i,o,a,s,u,d,l,c;function p(e){var t,n,r={};for(t in e)e.hasOwnProperty(t)&&(n=e[t],r[t]="object"==typeof n&&null!==n?p(n):n);return r}function f(e,t){this.parent=e,this.key=t}function h(e,t,n,r){this.node=e,this.path=t,this.wrap=n,this.ref=r}function g(){}function m(e){return null!=e&&("object"==typeof e&&"string"==typeof e.type)}function y(e,t){return(e===r.ObjectExpression||e===r.ObjectPattern)&&"properties"===t}function b(e,t){return(new g).traverse(e,t)}function v(e,t){var n;return n=function(e,t){var n,r,i,o;for(r=e.length,i=0;r;)t(e[o=i+(n=r>>>1)])?r=n:(i=o+1,r-=n+1);return i}(t,function(t){return t.range[0]>e.range[0]}),e.extendedRange=[e.range[0],e.range[1]],n!==t.length&&(e.extendedRange[1]=t[n].range[0]),(n-=1)>=0&&(e.extendedRange[0]=t[n].range[1]),e}return(i=Array.isArray)||(i=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),s=Object.create||function(){function e(){}return function(t){return e.prototype=t,new e}}(),u=Object.keys||function(e){var t,n=[];for(t in e)n.push(t);return n},r={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ComprehensionBlock:"ComprehensionBlock",ComprehensionExpression:"ComprehensionExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DebuggerStatement:"DebuggerStatement",DirectiveStatement:"DirectiveStatement",DoWhileStatement:"DoWhileStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForInStatement:"ForInStatement",ForOfStatement:"ForOfStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",GeneratorExpression:"GeneratorExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",ModuleSpecifier:"ModuleSpecifier",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",Program:"Program",Property:"Property",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchStatement:"SwitchStatement",SwitchCase:"SwitchCase",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"},a={AssignmentExpression:["left","right"],AssignmentPattern:["left","right"],ArrayExpression:["elements"],ArrayPattern:["elements"],ArrowFunctionExpression:["params","body"],AwaitExpression:["argument"],BlockStatement:["body"],BinaryExpression:["left","right"],BreakStatement:["label"],CallExpression:["callee","arguments"],CatchClause:["param","body"],ClassBody:["body"],ClassDeclaration:["id","superClass","body"],ClassExpression:["id","superClass","body"],ComprehensionBlock:["left","right"],ComprehensionExpression:["blocks","filter","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DirectiveStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExportAllDeclaration:["source"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source"],ExportSpecifier:["exported","local"],ExpressionStatement:["expression"],ForStatement:["init","test","update","body"],ForInStatement:["left","right","body"],ForOfStatement:["left","right","body"],FunctionDeclaration:["id","params","body"],FunctionExpression:["id","params","body"],GeneratorExpression:["blocks","filter","body"],Identifier:[],IfStatement:["test","consequent","alternate"],ImportDeclaration:["specifiers","source"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],Literal:[],LabeledStatement:["label","body"],LogicalExpression:["left","right"],MemberExpression:["object","property"],MetaProperty:["meta","property"],MethodDefinition:["key","value"],ModuleSpecifier:[],NewExpression:["callee","arguments"],ObjectExpression:["properties"],ObjectPattern:["properties"],Program:["body"],Property:["key","value"],RestElement:["argument"],ReturnStatement:["argument"],SequenceExpression:["expressions"],SpreadElement:["argument"],Super:[],SwitchStatement:["discriminant","cases"],SwitchCase:["test","consequent"],TaggedTemplateExpression:["tag","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],YieldExpression:["argument"]},o={Break:d={},Skip:l={},Remove:c={}},f.prototype.replace=function(e){this.parent[this.key]=e},f.prototype.remove=function(){return i(this.parent)?(this.parent.splice(this.key,1),!0):(this.replace(null),!1)},g.prototype.path=function(){var e,t,n,r,o;function a(e,t){if(i(t))for(n=0,r=t.length;n=0;)if(b=a[c=g[p]])if(i(b)){for(f=b.length;(f-=1)>=0;)if(b[f]){if(y(s,g[p]))o=new h(b[f],[c,f],"Property",null);else{if(!m(b[f]))continue;o=new h(b[f],[c,f],null,null)}n.push(o)}}else m(b)&&n.push(new h(b,c,null,null))}}else if(o=r.pop(),u=this.__execute(t.leave,o),this.__state===d||u===d)return},g.prototype.replace=function(e,t){var n,r,o,a,s,u,p,g,b,v,C,S,N;function A(e){var t,r,i,o;if(e.ref.remove())for(r=e.ref.key,o=e.ref.parent,t=n.length;t--;)if((i=n[t]).ref&&i.ref.parent===o){if(i.ref.key=0;)if(v=o[N=b[p]])if(i(v)){for(g=v.length;(g-=1)>=0;)if(v[g]){if(y(a,b[p]))u=new h(v[g],[N,g],"Property",new f(v,g));else{if(!m(v[g]))continue;u=new h(v[g],[N,g],null,new f(v,g))}n.push(u)}}else m(v)&&n.push(new h(v,N,null,new f(o,N)))}}else if(u=r.pop(),void 0!==(s=this.__execute(t.leave,u))&&s!==d&&s!==l&&s!==c&&u.ref.replace(s),this.__state!==c&&s!==c||A(u),this.__state===d||s===d)return S.root;return S.root},t.version=n(141).version,t.Syntax=r,t.traverse=b,t.replace=function(e,t){return(new g).replace(e,t)},t.attachComments=function(e,t,n){var r,i,a,s,u=[];if(!e.range)throw new Error("attachComments needs range information");if(!n.length){if(t.length){for(a=0,i=t.length;ae.range[0]);)t.extendedRange[1]===e.range[0]?(e.leadingComments||(e.leadingComments=[]),e.leadingComments.push(t),u.splice(s,1)):s+=1;return s===u.length?o.Break:u[s].extendedRange[0]>e.range[1]?o.Skip:void 0}}),s=0,b(e,{leave:function(e){for(var t;se.range[1]?o.Skip:void 0}}),e},t.VisitorKeys=a,t.VisitorOption=o,t.Controller=g,t.cloneEnvironment=function(){return e({})},t}(t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DUPLICATED_INJECTABLE_DECORATOR="Cannot apply @injectable decorator multiple times.",t.DUPLICATED_METADATA="Metadata key was used more than once in a parameter:",t.NULL_ARGUMENT="NULL argument",t.KEY_NOT_FOUND="Key Not Found",t.AMBIGUOUS_MATCH="Ambiguous match found for serviceIdentifier:",t.CANNOT_UNBIND="Could not unbind serviceIdentifier:",t.NOT_REGISTERED="No matching bindings found for serviceIdentifier:",t.MISSING_INJECTABLE_ANNOTATION="Missing required @injectable annotation in:",t.MISSING_INJECT_ANNOTATION="Missing required @inject or @multiInject annotation in:",t.UNDEFINED_INJECT_ANNOTATION=function(e){return"@inject called with undefined this could mean that the class "+e+" has a circular dependency problem. You can use a LazyServiceIdentifer to overcome this limitation."},t.CIRCULAR_DEPENDENCY="Circular dependency found:",t.NOT_IMPLEMENTED="Sorry, this feature is not fully implemented yet.",t.INVALID_BINDING_TYPE="Invalid binding type:",t.NO_MORE_SNAPSHOTS_AVAILABLE="No snapshot available to restore.",t.INVALID_MIDDLEWARE_RETURN="Invalid return type in middleware. Middleware must return!",t.INVALID_FUNCTION_BINDING="Value provided to function binding must be a function!",t.INVALID_TO_SELF_VALUE="The toSelf function can only be applied when a constructor is used as service identifier",t.INVALID_DECORATOR_OPERATION="The @inject @multiInject @tagged and @named decorators must be applied to the parameters of a class constructor or a class property.",t.ARGUMENTS_LENGTH_MISMATCH=function(){for(var e=[],t=0;t= than the number of constructor arguments of its base class."},t.CONTAINER_OPTIONS_MUST_BE_AN_OBJECT="Invalid Container constructor argument. Container options must be an object.",t.CONTAINER_OPTIONS_INVALID_DEFAULT_SCOPE="Invalid Container option. Default scope must be a string ('singleton' or 'transient').",t.CONTAINER_OPTIONS_INVALID_AUTO_BIND_INJECTABLE="Invalid Container option. Auto bind injectable must be a boolean",t.CONTAINER_OPTIONS_INVALID_SKIP_BASE_CHECK="Invalid Container option. Skip base check must be a boolean",t.MULTIPLE_POST_CONSTRUCT_METHODS="Cannot apply @postConstruct decorator multiple times in the same class",t.POST_CONSTRUCT_ERROR=function(){for(var e=[],t=0;t1?t-1:0),r=1;r1&&void 0!==arguments[1]?arguments[1]:1/0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;if(r.length>=n)return r;var o=t.parentNode;if(!o)throw new ReferenceError("`parentNode` property of given node is `undefined`");return(a.NodeGuards.isProgramNode(t)||a.NodeGuards.isNodeWithLexicalScopeStatements(t,o)&&i>0)&&r.push(t),t!==o?e.getParentNodesWithStatementsRecursive(o,n,r,++i):r}},{key:"getSiblingStatementByOffset",value:function(t,n){var r=e.getScopeOfNode(t),i=a.NodeGuards.isSwitchCaseNode(r)?r.consequent:r.body;return i[i.indexOf(t)+n]||null}}]),e}();t.NodeStatementUtils=s},function(e,t,n){"use strict";var r=n(0),i=r(n(36)),o=r(n(1)),a=r(n(3));Object.defineProperty(t,"__esModule",{value:!0});var s=n(10),u=function(){function e(){(0,o.default)(this,e)}return(0,a.default)(e,null,[{key:"append",value:function(t,n){n=e.parentizeScopeStatementsBeforeAppend(t,n),e.setScopeStatements(t,(0,i.default)(e.getScopeStatements(t)).concat((0,i.default)(n)))}},{key:"appendToOptimalBlockScope",value:function(t,n,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=t.length?e.getOptimalBlockScope(t,i):n;e.prepend(o,r)}},{key:"getOptimalBlockScope",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,i=t[n];if(r<=0)throw new Error("Invalid `deep` argument value. Value should be bigger then 0.");return r>1&&i.stackTrace.length?e.getOptimalBlockScope(i.stackTrace,0,--r):i.callee}},{key:"insertAfter",value:function(t,n,r){var i=e.getScopeStatements(t).indexOf(r);e.insertAtIndex(t,n,i+1)}},{key:"insertAtIndex",value:function(t,n,r){n=e.parentizeScopeStatementsBeforeAppend(t,n),e.setScopeStatements(t,(0,i.default)(e.getScopeStatements(t).slice(0,r)).concat((0,i.default)(n),(0,i.default)(e.getScopeStatements(t).slice(r))))}},{key:"prepend",value:function(t,n){n=e.parentizeScopeStatementsBeforeAppend(t,n),e.setScopeStatements(t,(0,i.default)(n).concat((0,i.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=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.AfterObfuscation="afterObfuscation",e.BeforeObfuscation="beforeObfuscation"}(t.ObfuscationEvent||(t.ObfuscationEvent={}))},function(e,t,n){"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,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(3));Object.defineProperty(t,"__esModule",{value:!0});var a=n(10),s=function(){function e(){(0,i.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 n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1/0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;if(r.length>=n)return r;var o=t.parentNode;if(!o)throw new ReferenceError("`parentNode` property of given node is `undefined`");return a.NodeGuards.isNodeWithLexicalScope(t)&&r.push(t),t!==o?e.getLexicalScopesRecursive(o,n,r,++i):r}}]),e}();t.NodeLexicalScopeUtils=s},function(e,t,n){"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"}(t.NodeTransformer||(t.NodeTransformer={}))},function(e,t,n){var r=n(167),i=n(168),o=n(169);e.exports=function(e){return r(e)||i(e)||o()}},function(e,t,n){var r=n(174),i=n(175),o=n(176);e.exports=function(e,t){return r(e)||i(e,t)||o()}},function(e,t,n){"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,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){}return e.isValid=function(e){var t=this;return"isValid"!==e&&"getMessage"!==e&&-1!==Object.keys(this).map(function(e){return t[e]}).indexOf(e)},e.getMessage=function(e,t){var n=this,r=t?"each value in ":"";switch(e){case this.NESTED_VALIDATION:return r+"nested property $property must be either object or array";case this.IS_DEFINED:return r+"$property should not be null or undefined";case this.EQUALS:return r+"$property must be equal to $constraint1";case this.NOT_EQUALS:return r+"$property should not be equal to $constraint1";case this.IS_EMPTY:return r+"$property must be empty";case this.IS_NOT_EMPTY:return r+"$property should not be empty";case this.IS_IN:return r+"$property must be one of the following values: $constraint1";case this.IS_NOT_IN:return r+"$property should not be one of the following values: $constraint1";case this.IS_BOOLEAN:return r+"$property must be a boolean value";case this.IS_DATE:return r+"$property must be a Date instance";case this.IS_NUMBER:return r+"$property must be a number";case this.IS_INT:return r+"$property must be an integer number";case this.IS_STRING:return r+"$property must be a string";case this.IS_DATE_STRING:return r+"$property must be a ISOString";case this.IS_ARRAY:return r+"$property must be an array";case this.IS_ENUM:return r+"$property must be a valid enum value";case this.IS_DIVISIBLE_BY:return r+"$property must be divisible by $constraint1";case this.IS_POSITIVE:return r+"$property must be a positive number";case this.IS_NEGATIVE:return r+"$property must be a negative number";case this.MIN:return r+"$property must not be less than $constraint1";case this.MAX:return r+"$property must not be greater than $constraint1";case this.MIN_DATE:return"minimal allowed date for "+r+"$property is $constraint1";case this.MAX_DATE:return"maximal allowed date for "+r+"$property is $constraint1";case this.IS_BOOLEAN_STRING:return r+"$property must be a boolean string";case this.IS_NUMBER_STRING:return r+"$property must be a number string";case this.CONTAINS:return r+"$property must contain a $constraint1 string";case this.NOT_CONTAINS:return r+"$property should not contain a $constraint1 string";case this.IS_ALPHA:return r+"$property must contain only letters (a-zA-Z)";case this.IS_ALPHANUMERIC:return r+"$property must contain only letters and numbers";case this.IS_ASCII:return r+"$property must contain only ASCII characters";case this.IS_BASE64:return r+"$property must be base64 encoded";case this.IS_BYTE_LENGTH:return r+"$property's byte length must fall into ($constraint1, $constraint2) range";case this.IS_CREDIT_CARD:return r+"$property must be a credit card";case this.IS_CURRENCY:return r+"$property must be a currency";case this.IS_EMAIL:return r+"$property must be an email";case this.IS_FQDN:return r+"$property must be a valid domain name";case this.IS_FULL_WIDTH:return r+"$property must contain a full-width characters";case this.IS_HALF_WIDTH:return r+"$property must contain a half-width characters";case this.IS_VARIABLE_WIDTH:return r+"$property must contain a full-width and half-width characters";case this.IS_HEX_COLOR:return r+"$property must be a hexadecimal color";case this.IS_HEXADECIMAL:return r+"$property must be a hexadecimal number";case this.IS_IP:return r+"$property must be an ip address";case this.IS_ISBN:return r+"$property must be an ISBN";case this.IS_ISIN:return r+"$property must be an ISIN (stock/security identifier)";case this.IS_ISO8601:return r+"$property must be a valid ISO 8601 date string";case this.IS_JSON:return r+"$property must be a json string";case this.IS_LOWERCASE:return r+"$property must be a lowercase string";case this.IS_MOBILE_PHONE:return r+"$property must be a phone number";case this.IS_PHONE_NUMBER:return r+"$property must be a valid phone number";case this.IS_MONGO_ID:return r+"$property must be a mongodb id";case this.IS_MULTIBYTE:return r+"$property must contain one or more multibyte chars";case this.IS_SURROGATE_PAIR:return r+"$property must contain any surrogate pairs chars";case this.IS_URL:return r+"$property must be an URL address";case this.IS_UUID:return r+"$property must be an UUID";case this.IS_UPPERCASE:return r+"$property must be uppercase";case this.LENGTH:return function(e){var t=null!==e.constraints[0]&&void 0!==e.constraints[0],n=null!==e.constraints[1]&&void 0!==e.constraints[1];return t&&(!e.value||e.value.lengthe.constraints[1]?r+"$property must be shorter than or equal to $constraint2 characters":r+"$property must be longer than or equal to $constraint1 and shorter than or equal to $constraint2 characters"};case this.MIN_LENGTH:return r+"$property must be longer than or equal to $constraint1 characters";case this.MAX_LENGTH:return r+"$property must be shorter than or equal to $constraint1 characters";case this.MATCHES:return r+"$property must match $constraint1 regular expression";case this.ARRAY_CONTAINS:return r+"$property must contain $constraint1 values";case this.ARRAY_NOT_CONTAINS:return r+"$property should not contain $constraint1 values";case this.ARRAY_NOT_EMPTY:return r+"$property should not be empty";case this.ARRAY_MIN_SIZE:return r+"$property must contain at least $constraint1 elements";case this.ARRAY_MAX_SIZE:return r+"$property must contain not more than $constraint1 elements";case this.ARRAY_UNIQUE:return r+"All $property's elements must be unique";case this.IS_INSTANCE:return function(e){return e.constraints[0]?r+"$property must be an instance of "+e.constraints[0].name:r+(n.IS_INSTANCE+" decorator expects and object as value, but got falsy value.")}}return""},e.CUSTOM_VALIDATION="customValidation",e.NESTED_VALIDATION="nestedValidation",e.CONDITIONAL_VALIDATION="conditionalValidation",e.WHITELIST="whitelistValidation",e.IS_DEFINED="isDefined",e.EQUALS="equals",e.NOT_EQUALS="notEquals",e.IS_EMPTY="isEmpty",e.IS_NOT_EMPTY="isNotEmpty",e.IS_IN="isIn",e.IS_NOT_IN="isNotIn",e.IS_BOOLEAN="isBoolean",e.IS_DATE="isDate",e.IS_NUMBER="isNumber",e.IS_STRING="isString",e.IS_DATE_STRING="isDateString",e.IS_ARRAY="isArray",e.IS_INT="isInt",e.IS_ENUM="isEnum",e.IS_DIVISIBLE_BY="isDivisibleBy",e.IS_POSITIVE="isPositive",e.IS_NEGATIVE="isNegative",e.MIN="min",e.MAX="max",e.MIN_DATE="minDate",e.MAX_DATE="maxDate",e.IS_BOOLEAN_STRING="isBooleanString",e.IS_NUMBER_STRING="isNumberString",e.CONTAINS="contains",e.NOT_CONTAINS="notContains",e.IS_ALPHA="isAlpha",e.IS_ALPHANUMERIC="isAlphanumeric",e.IS_ASCII="isAscii",e.IS_BASE64="isBase64",e.IS_BYTE_LENGTH="isByteLength",e.IS_CREDIT_CARD="isCreditCard",e.IS_CURRENCY="isCurrency",e.IS_EMAIL="isEmail",e.IS_FQDN="isFqdn",e.IS_FULL_WIDTH="isFullWidth",e.IS_HALF_WIDTH="isHalfWidth",e.IS_VARIABLE_WIDTH="isVariableWidth",e.IS_HEX_COLOR="isHexColor",e.IS_HEXADECIMAL="isHexadecimal",e.IS_IP="isIp",e.IS_ISBN="isIsbn",e.IS_ISIN="isIsin",e.IS_ISO8601="isIso8601",e.IS_JSON="isJson",e.IS_LOWERCASE="isLowercase",e.IS_MOBILE_PHONE="isMobilePhone",e.IS_PHONE_NUMBER="isPhoneNumber",e.IS_MONGO_ID="isMongoId",e.IS_MULTIBYTE="isMultibyte",e.IS_SURROGATE_PAIR="isSurrogatePair",e.IS_URL="isUrl",e.IS_UUID="isUuid",e.LENGTH="length",e.IS_UPPERCASE="isUppercase",e.MIN_LENGTH="minLength",e.MAX_LENGTH="maxLength",e.MATCHES="matches",e.IS_MILITARY_TIME="isMilitaryTime",e.ARRAY_CONTAINS="arrayContains",e.ARRAY_NOT_CONTAINS="arrayNotContains",e.ARRAY_NOT_EMPTY="arrayNotEmpty",e.ARRAY_MIN_SIZE="arrayMinSize",e.ARRAY_MAX_SIZE="arrayMaxSize",e.ARRAY_UNIQUE="arrayUnique",e.IS_INSTANCE="isInstance",e}();t.ValidationTypes=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i,o=new(function(){function e(){this.instances=[]}return e.prototype.get=function(e){var t=this.instances.find(function(t){return t.type===e});return t||(t={type:e,object:new e},this.instances.push(t)),t.object},e}());t.useContainer=function(e,t){r=e,i=t},t.getFromContainer=function(e){if(r)try{var t=r.get(e);if(t)return t;if(!i||!i.fallback)return t}catch(e){if(!i||!i.fallbackOnErrors)throw e}return o.get(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];for(var n in t)void 0===e[n]&&(e[n]=t[n]);return e},e.exports=t.default},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(3));Object.defineProperty(t,"__esModule",{value:!0}),n(110);var a=n(4),s=n(25),u=function(){function e(){(0,i.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]:{},n=new s.InversifyContainerFacade;n.load(e,"",t);var r=n.get(a.ServiceIdentifiers.IJavaScriptObfuscator).obfuscate(e);return n.unload(),r}}]),e}();u.version="0.18.3",t.JavaScriptObfuscator=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(19);function i(e){return"function"==typeof e?e.name:"symbol"==typeof e?e.toString():e}function o(e){if(e.name)return e.name;var t=e.toString(),n=t.match(/^function\s*([^\s(]+)/);return n?n[1]:"Anonymous function: "+t}t.getServiceIdentifierAsString=i,t.listRegisteredBindingsForServiceIdentifier=function(e,t,n){var r="",i=n(e,t);return 0!==i.length&&(r="\nRegistered bindings:",i.forEach(function(e){var t="Object";null!==e.implementationType&&(t=o(e.implementationType)),r=r+"\n "+t,e.constraint.metaData&&(r=r+" - "+e.constraint.metaData)})),r},t.circularDependencyToException=function e(t){t.childRequests.forEach(function(t){if(function e(t,n){return null!==t.parentRequest&&(t.parentRequest.serviceIdentifier===n||e(t.parentRequest,n))}(t,t.serviceIdentifier)){var n=function e(t,n){void 0===n&&(n=[]);var r=i(t.serviceIdentifier);return n.push(r),null!==t.parentRequest?e(t.parentRequest,n):n}(t).reverse().join(" --\x3e ");throw new Error(r.CIRCULAR_DEPENDENCY+" "+n)}e(t)})},t.listMetadataForTarget=function(e,t){if(t.isTagged()||t.isNamed()){var n="",r=t.getNamedTag(),i=t.getCustomTags();return null!==r&&(n+=r.toString()+"\n"),null!==i&&i.forEach(function(e){n+=e.toString()+"\n"})," "+e+"\n "+e+" - "+n}return" "+e},t.getFunctionName=o},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(3)),a=r(n(5)),s=function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,a.default)(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var u=e.length-1;u>=0;u--)(i=e[u])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},u=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,a.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},d=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var l=n(2),c=n(4),p=function(){function e(t,n,r){(0,i.default)(this,e),this.identifierNamesGenerator=t(r),this.randomGenerator=n,this.options=r}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 n=this.customNodes.get(e);n&&t(n)}},{key:"getRandomStackTraceIndex",value:function(e){return this.randomGenerator.getRandomInteger(0,Math.max(0,Math.round(e-1)))}}]),e}();p=s([l.injectable(),d(0,l.inject(c.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d(1,l.inject(c.ServiceIdentifiers.IRandomGenerator)),d(2,l.inject(c.ServiceIdentifiers.IOptions)),u("design:paramtypes",[Function,Object,Object])],p),t.AbstractCustomNodeGroup=p},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(3));Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(){(0,i.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}();a.hexadecimalPrefix="0x",t.Utils=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(252),i=function(){function e(){this.validationMetadatas=[],this.constraintMetadatas=[]}return Object.defineProperty(e.prototype,"hasValidationMetaData",{get:function(){return!!this.validationMetadatas.length},enumerable:!0,configurable:!0}),e.prototype.addValidationSchema=function(e){var t=this;(new r.ValidationSchemaToMetadataTransformer).transform(e).forEach(function(e){return t.addValidationMetadata(e)})},e.prototype.addValidationMetadata=function(e){this.validationMetadatas.push(e)},e.prototype.addConstraintMetadata=function(e){this.constraintMetadatas.push(e)},e.prototype.groupByPropertyName=function(e){var t={};return e.forEach(function(e){t[e.propertyName]||(t[e.propertyName]=[]),t[e.propertyName].push(e)}),t},e.prototype.getTargetValidationMetadatas=function(e,t,n){var r=this.validationMetadatas.filter(function(r){return(r.target===e||r.target===t)&&(!!r.always||(!(n&&n.length>0)||r.groups&&!!r.groups.find(function(e){return-1!==n.indexOf(e)})))}),i=this.validationMetadatas.filter(function(t){return"string"!=typeof t.target&&(t.target!==e&&((!(t.target instanceof Function)||e.prototype instanceof t.target)&&(!!t.always||(!(n&&n.length>0)||t.groups&&!!t.groups.find(function(e){return-1!==n.indexOf(e)})))))}).filter(function(e){return!r.find(function(t){return t.propertyName===e.propertyName&&t.type===e.type})});return r.concat(i)},e.prototype.getTargetValidatorConstraints=function(e){return this.constraintMetadatas.filter(function(t){return t.target===e})},e}();t.MetadataStorage=i},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(49),i=n(33),o=n(50);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:r.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:i.ObfuscationTarget.Browser,transformObjectKeys:!1,unicodeEscapeSequence:!1})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.HexadecimalIdentifierNamesGenerator="hexadecimal",e.MangledIdentifierNamesGenerator="mangled"}(t.IdentifierNamesGenerator||(t.IdentifierNamesGenerator={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.Inline="inline",e.Separate="separate"}(t.SourceMapMode||(t.SourceMapMode={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.Base64="base64",e.Rc4="rc4"}(t.StringArrayEncoding||(t.StringArrayEncoding={}))},function(e,t,n){n(6);var r=n(223);function i(t,n,o){return"undefined"!=typeof Reflect&&Reflect.get?e.exports=i=Reflect.get:e.exports=i=function(e,t,n){var i=r(e,t);if(i){var o=Object.getOwnPropertyDescriptor(i,t);return o.get?o.get.call(n):o.value}},i(t,n,o||t)}e.exports=i},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(3));Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(){(0,i.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=a},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(5)),a=function(e,t,n,r){var i,a=arguments.length,s=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,o.default)(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var u=e.length-1;u>=0;u--)(i=e[u])&&(s=(a<3?i(s):a>3?i(t,n,s):i(t,n))||s);return a>3&&s&&Object.defineProperty(t,n,s),s},s=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,o.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},u=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var d=n(2),l=n(4),c=function e(t){(0,i.default)(this,e),this.options=t};c=a([d.injectable(),u(0,d.inject(l.ServiceIdentifiers.IOptions)),s("design:paramtypes",[Object])],c),t.AbstractObfuscatingReplacer=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});for(var r,i=t.alpha={"en-US":/^[A-Z]+$/i,"bg-BG":/^[А-Я]+$/i,"cs-CZ":/^[A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ]+$/i,"da-DK":/^[A-ZÆØÅ]+$/i,"de-DE":/^[A-ZÄÖÜß]+$/i,"el-GR":/^[Α-ω]+$/i,"es-ES":/^[A-ZÁÉÍÑÓÚÜ]+$/i,"fr-FR":/^[A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ]+$/i,"it-IT":/^[A-ZÀÉÈÌÎÓÒÙ]+$/i,"nb-NO":/^[A-ZÆØÅ]+$/i,"nl-NL":/^[A-ZÁÉËÏÓÖÜÚ]+$/i,"nn-NO":/^[A-ZÆØÅ]+$/i,"hu-HU":/^[A-ZÁÉÍÓÖŐÚÜŰ]+$/i,"pl-PL":/^[A-ZĄĆĘŚŁŃÓŻŹ]+$/i,"pt-PT":/^[A-ZÃÁÀÂÇÉÊÍÕÓÔÚÜ]+$/i,"ru-RU":/^[А-ЯЁ]+$/i,"sk-SK":/^[A-ZÁČĎÉÍŇÓŠŤÚÝŽĹŔĽÄÔ]+$/i,"sr-RS@latin":/^[A-ZČĆŽŠĐ]+$/i,"sr-RS":/^[А-ЯЂЈЉЊЋЏ]+$/i,"sv-SE":/^[A-ZÅÄÖ]+$/i,"tr-TR":/^[A-ZÇĞİıÖŞÜ]+$/i,"uk-UA":/^[А-ЩЬЮЯЄIЇҐі]+$/i,ar:/^[ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]+$/},o=t.alphanumeric={"en-US":/^[0-9A-Z]+$/i,"bg-BG":/^[0-9А-Я]+$/i,"cs-CZ":/^[0-9A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ]+$/i,"da-DK":/^[0-9A-ZÆØÅ]+$/i,"de-DE":/^[0-9A-ZÄÖÜß]+$/i,"el-GR":/^[0-9Α-ω]+$/i,"es-ES":/^[0-9A-ZÁÉÍÑÓÚÜ]+$/i,"fr-FR":/^[0-9A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ]+$/i,"it-IT":/^[0-9A-ZÀÉÈÌÎÓÒÙ]+$/i,"hu-HU":/^[0-9A-ZÁÉÍÓÖŐÚÜŰ]+$/i,"nb-NO":/^[0-9A-ZÆØÅ]+$/i,"nl-NL":/^[0-9A-ZÁÉËÏÓÖÜÚ]+$/i,"nn-NO":/^[0-9A-ZÆØÅ]+$/i,"pl-PL":/^[0-9A-ZĄĆĘŚŁŃÓŻŹ]+$/i,"pt-PT":/^[0-9A-ZÃÁÀÂÇÉÊÍÕÓÔÚÜ]+$/i,"ru-RU":/^[0-9А-ЯЁ]+$/i,"sk-SK":/^[0-9A-ZÁČĎÉÍŇÓŠŤÚÝŽĹŔĽÄÔ]+$/i,"sr-RS@latin":/^[0-9A-ZČĆŽŠĐ]+$/i,"sr-RS":/^[0-9А-ЯЂЈЉЊЋЏ]+$/i,"sv-SE":/^[0-9A-ZÅÄÖ]+$/i,"tr-TR":/^[0-9A-ZÇĞİıÖŞÜ]+$/i,"uk-UA":/^[0-9А-ЩЬЮЯЄIЇҐі]+$/i,ar:/^[٠١٢٣٤٥٦٧٨٩0-9ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]+$/},a=t.decimal={"en-US":".",ar:"٫"},s=t.englishLocales=["AU","GB","HK","IN","NZ","ZA","ZM"],u=0;u=0;u--)(i=e[u])&&(s=(a<3?i(s):a>3?i(t,n,s):i(t,n))||s);return a>3&&s&&Object.defineProperty(t,n,s),s};Object.defineProperty(t,"__esModule",{value:!0});var s=function e(){(0,i.default)(this,e)};s=a([n(2).injectable()],s),t.AbstractCalleeDataExtractor=s},function(e,t,n){"use strict";var r,i=n(0),o=i(n(1)),a=i(n(3)),s=i(n(5)),u=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,s.default)(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var u=e.length-1;u>=0;u--)(i=e[u])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},d=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,s.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},l=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var c=n(2),p=n(4),f=r=function(){function e(t,n,r){(0,o.default)(this,e),this.replacerDataByControlFlowStorageId=new Map,this.controlFlowCustomNodeFactory=t,this.randomGenerator=n,this.options=r}return(0,a.default)(e,[{key:"insertCustomNodeToControlFlowStorage",value:function(e,t,n,i){var o=this,a=t.getStorageId(),s=r.getStorageKeysByIdForCurrentStorage(this.replacerDataByControlFlowStorageId,a),u=s.get(n);if(this.randomGenerator.getMathRandom()":i.Relational,"<=":i.Relational,">=":i.Relational,in:i.Relational,instanceof:i.Relational,"<<":i.BitwiseSHIFT,">>":i.BitwiseSHIFT,">>>":i.BitwiseSHIFT,"+":i.Additive,"-":i.Additive,"*":i.Multiplicative,"%":i.Multiplicative,"/":i.Multiplicative,"**":i.Exponentiation};var P=7,R=1;function x(e,t){var n="";for(t|=0;t>0;t>>>=1,e+=e)1&t&&(n+=e);return n}function O(e){return/[\r\n]/g.test(e)}function $(e){var t=e.length;return t&&u.code.isLineTerminator(e.charCodeAt(t-1))}function w(e,t){var n;for(n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function B(e,t){var n,r;function i(e){return"object"==typeof e&&e instanceof Object&&!(e instanceof RegExp)}for(n in t)t.hasOwnProperty(n)&&(i(r=t[n])?i(e[n])?B(e[n],r):e[n]=B({},r):e[n]=r);return e}function k(e,t){return 8232==(-2&e)?(t?"u":"\\u")+(8232===e?"2028":"2029"):10===e||13===e?(t?"":"\\")+(10===e?"n":"r"):String.fromCharCode(e)}function L(e,t){var n;return 8===e?"\\b":12===e?"\\f":9===e?"\\t":(n=e.toString(16).toUpperCase(),p||e>255?"\\u"+"0000".slice(n.length)+n:0!==e||u.code.isDecimalDigit(t)?11===e?"\\x0B":"\\x"+"00".slice(n.length)+n:"\\0")}function j(e){if(92===e)return"\\\\";if(10===e)return"\\n";if(13===e)return"\\r";if(8232===e)return"\\u2028";if(8233===e)return"\\u2029";throw new Error("Incorrectly classified character")}function G(e,t){if(!E)return d(e)?function e(t){var n,r,i,o="";for(n=0,r=t.length;na&&(s=a)}for(void 0!==t?(d=l,"*"===n[1][s]&&(t+=" "),l=t):(1&s&&--s,d=l),r=1,i=n.length;r0){if(a=t,T){for(t=[],f=(o=e.leadingComments[0]).extendedRange,h=o.range,(y=((m=I.substring(f[0],h[0])).match(/\n/g)||[]).length)>0?(t.push(x("\n",y)),t.push(H(z(o)))):(t.push(m),t.push(z(o))),g=h,n=1,i=e.leadingComments.length;n0?(t.push(x("\n",y)),t.push(H(z(o)))):(t.push(m),t.push(z(o)));else for(s=!$(G(t).toString()),d=x(" ",function(e){var t;for(t=e.length-1;t>=0&&!u.code.isLineTerminator(e.charCodeAt(t));--t);return e.length-1-t}(G([l,t,c]).toString())),n=0,i=e.trailingComments.length;n")),e.expression?(t.push(b),"{"===(n=this.generateExpression(e.body,i.Assignment,P)).toString().charAt(0)&&(n=["(",n,")"]),t.push(n)):t.push(this.maybeBlock(e.body,9)),t},Z.prototype.generateIterationForStatement=function(e,t,n){var o=["for"+b+(t.await?"await"+b:"")+"("],a=this;return W(function(){t.left.type===r.VariableDeclaration?W(function(){o.push(t.left.kind+V()),o.push(a.generateStatement(t.left.declarations[0],0))}):o.push(a.generateExpression(t.left,i.Call,P)),o=[U(o=U(o,e),a.generateExpression(t.right,i.Sequence+("of"===e?1:0),P)),")"]}),o.push(this.maybeBlock(t.body,n)),o},Z.prototype.generatePropertyKey=function(e,t){var n=[];return t&&n.push("["),n.push(this.generateExpression(e,i.Sequence,P)),t&&n.push("]"),n},Z.prototype.generateAssignment=function(e,t,n,r,o){return i.Assignment2&&("\n"===(r=I.substring(n[0]+1,n[1]-1))[0]&&(i=["{"]),i.push(r)),d=R,8&t&&(d|=16),a=0,s=e.body.length;a0&&(e.body[a-1].trailingComments||e.body[a].leadingComments||J(e.body[a-1].range[1],e.body[a].range[0],i))),a===s-1&&(d|=32),u=e.body[a].leadingComments&&T?o.generateStatement(e.body[a],d):H(o.generateStatement(e.body[a],d)),i.push(u),$(G(u).toString())||T&&a1?W(u):u(),n.push(this.semicolon(t)),n},ThrowStatement:function(e,t){return[U("throw",this.generateExpression(e.argument,i.Sequence,P)),this.semicolon(t)]},TryStatement:function(e,t){var n,r,i,o;if(n=["try",this.maybeBlock(e.block,R)],n=this.maybeBlockSuffix(e.block,n),e.handlers)for(r=0,i=e.handlers.length;r0?"\n":""],a=17,i=0;i0&&(e.body[i-1].trailingComments||e.body[i].leadingComments||J(e.body[i-1].range[1],e.body[i].range[0],n))),r=H(this.generateStatement(e.body[i],a)),n.push(r),i+10){for(r.push("("),a=0,s=o;a=2&&48===a.charCodeAt(0))&&o.push("."),o.push("."),o.push(X(e.property))),Y(o,i.Member,t)},MetaProperty:function(e,t,n){return Y([e.meta&&"string"==typeof e.meta.type&&e.meta.type===r.Identifier?e.meta.name:e.meta,".",e.property&&"string"==typeof e.property.type&&e.property.type===r.Identifier?e.property.name:e.property],i.Member,t)},UnaryExpression:function(e,t,n){var r,o,a,s,d;return o=this.generateExpression(e.argument,i.Unary,P),""===b?r=U(e.operator,o):(r=[e.operator],e.operator.length>2?r=U(r,o):(d=(s=G(r).toString()).charCodeAt(s.length-1),a=o.toString().charCodeAt(0),(43===d||45===d)&&d===a||u.code.isIdentifierPartES5(d)&&u.code.isIdentifierPartES5(a)?(r.push(V()),r.push(o)):r.push(o))),Y(r,i.Unary,t)},YieldExpression:function(e,t,n){var r;return r=e.delegate?"yield*":"yield",e.argument&&(r=U(r,this.generateExpression(e.argument,i.Yield,P))),Y(r,i.Yield,t)},AwaitExpression:function(e,t,n){return Y(U(e.all?"await*":"await",this.generateExpression(e.argument,i.Await,P)),i.Await,t)},UpdateExpression:function(e,t,n){return e.prefix?Y([e.operator,this.generateExpression(e.argument,i.Unary,P)],i.Unary,t):Y([this.generateExpression(e.argument,i.Postfix,P),e.operator],i.Postfix,t)},FunctionExpression:function(e,t,n){var r=[Q(e,!0),"function"];return e.id?(r.push(ee(e)||V()),r.push(X(e.id))):r.push(ee(e)||b),r.push(this.generateFunctionBody(e)),r},ArrayPattern:function(e,t,n){return this.ArrayExpression(e,t,n,!0)},ArrayExpression:function(e,t,n,r){var o,a,s=this;return e.elements.length?(a=!r&&e.elements.length>1,o=["[",a?y:""],W(function(t){var n,r;for(n=0,r=e.elements.length;n1,W(function(){a=s.generateExpression(e.properties[0],i.Sequence,P)}),r||O(G(a).toString())?(W(function(t){var n,u;if(o=["{",y,t,a],r)for(o.push(","+y),n=1,u=e.properties.length;n126))){a+=L(r,e.charCodeAt(t+1));continue}}a+=String.fromCharCode(r)}if(o=(i=!("double"===g||"auto"===g&&d0&&(i=+r.slice(o+1),r=r.slice(0,o)),n>=0&&(i-=r.length-n-1,r=+(r.slice(0,n)+r.slice(n+1))+""),o=0;48===r.charCodeAt(r.length+o-1);)--o;return 0!==o&&(i-=o,r=r.slice(0,o)),0!==i&&(r+="e"+i),(r.length1e12&&Math.floor(e)===e&&(r="0x"+e.toString(16)).length0||A.moz.comprehensionExpressionStartsWithAssignment?o=U(o,u):o.push(u)}),e.filter&&(o=U(o,"if"+b),u=this.generateExpression(e.filter,i.Sequence,P),o=U(o,["(",u,")"])),A.moz.comprehensionExpressionStartsWithAssignment||(u=this.generateExpression(e.body,i.Assignment,P),o=U(o,u)),o.push(e.type===r.GeneratorExpression?")":"]"),o},ComprehensionBlock:function(e,t,n){var o;return o=U(o=U(o=e.left.type===r.VariableDeclaration?[e.left.kind,V(),this.generateStatement(e.left.declarations[0],0)]:this.generateExpression(e.left,i.Call,P),e.of?"of":"in"),this.generateExpression(e.right,i.Sequence,P)),["for"+b+"(",o,")"]},SpreadElement:function(e,t,n){return["...",this.generateExpression(e.argument,i.Assignment,P)]},RestElement:function(e,t,n){return["...",this.generatePattern(e.argument,i.Assignment,P)]},SpreadProperty:function(e,t,n){return["...",this.generateExpression(e.argument,i.Assignment,P)]},RestProperty:function(e,t,n){return["...",this.generatePattern(e.argument,i.Assignment,P)]},TaggedTemplateExpression:function(e,t,n){var r=3;return 2&n||(r=1),Y([this.generateExpression(e.tag,i.Call,r),this.generateExpression(e.quasi,i.Primary,4)],i.TaggedTemplate,t)},TemplateElement:function(e,t,n){return e.value.raw},TemplateLiteral:function(e,t,n){var r,o,a;for(r=["`"],o=0,a=e.quasis.length;o=0||e.indexOf("'")>=0)return t;return"double"===g?'"'+e+'"':"'"+e+"'"}(e.value.value,e.value.raw):this.generateExpression(e.value,i.Sequence,{allowIn:!0,allowCall:!0}),o.push(a)),o},JSXClosingElement:function(e,t,n){return[""]},JSXFragment:function(e,t,n){return this.JSXElement(e,t,n)},JSXOpeningFragment:function(e,t,n){return this.JSXOpeningElement(e,t,n)},JSXClosingFragment:function(e,t,n){return this.JSXClosingElement(e,t,n)},JSXElement:function(e,t,n){var o=[],a=this;256&n||(l+=c);var s=this.generateExpression(e.openingElement,i.JSXElement,{allowIn:!0,allowCall:!0});o.push(s);var u,d,p=[];return W(function(t){for(u=0,d=e.children.length;u3&&e.attributes[d].value&&e.attributes[d].value.type!==r.Literal&&(u[u.length-1].multiline=!0);return W(function(e){for(var t=0,n=u.length;t0&&t%3==0||u[t].multiline?o.push(y+e):o.push(" "),o.push(a.generateExpression(u[t].expr,i.Sequence,3))}),o.push(e.selfClosing?"/>":">"),o},JSXSpreadAttribute:function(e,t,n){return["{...",this.generateExpression(e.argument,i.Sequence,{allowIn:!0,allowCall:!0}),"}"]},JSXText:function(e,t,n){return e.raw}},w(Z.prototype,Z.Expression),Z.prototype.generateExpression=function(e,t,n){var o,a;return a=e.type||r.Property,A.verbatim&&e.hasOwnProperty(A.verbatim)?function(e,t){var n;return G("string"==typeof(n=e[A.verbatim])?Y(q(n),i.Sequence,t):Y(q(n.content),null!=n.precedence?n.precedence:i.Sequence,t),e)}(e,t):(o=this[a](e,t,n),A.comment&&(o=K(e,o)),G(o,e))},Z.prototype.generateStatement=function(e,t){var n,i;return n=this[e.type](e,t),A.comment&&(n=K(e,n)),i=G(n).toString(),e.type!==r.Program||S||""!==y||"\n"!==i.charAt(i.length-1)||(n=E?G(n).replaceRight(/\s+$/,""):i.replace(/\s+$/,"")),G(n,e)},D={indent:{style:"",base:0},renumber:!0,hexadecimal:!0,quotes:"auto",escapeless:!0,compact:!0,parentheses:!1,semicolons:!1},F={indent:{style:" ",base:0,adjustMultilineComment:!1},newline:"\n",space:" ",json:!1,renumber:!1,hexadecimal:!1,quotes:"single",escapeless:!1,compact:!1,parentheses:!0,semicolons:!0,safeConcatenation:!1,preserveBlankLines:!1},t.version=n(156).version,t.generate=function(r,i){var o,s,u={indent:null,base:null,parse:null,comment:!1,format:{indent:{style:" ",base:0,adjustMultilineComment:!1},newline:"\n",space:" ",json:!1,renumber:!1,hexadecimal:!1,quotes:"single",escapeless:!1,compact:!1,parentheses:!0,semicolons:!0,safeConcatenation:!1,preserveBlankLines:!1},moz:{comprehensionExpressionStartsWithAssignment:!1,starlessGenerator:!1},sourceMap:null,sourceMapRoot:null,sourceMapWithCode:!1,directive:!1,raw:!0,verbatim:null,sourceCode:null};return null!=i?("string"==typeof i.indent&&(u.format.indent.style=i.indent),"number"==typeof i.base&&(u.format.indent.base=i.base),i=B(u,i),c=i.format.indent.style,l="string"==typeof i.base?i.base:x(c,i.format.indent.base)):(c=(i=u).format.indent.style,l=x(c,i.format.indent.base)),p=i.format.json,f=i.format.renumber,h=!p&&i.format.hexadecimal,g=p?"double":i.format.quotes,m=i.format.escapeless,y=i.format.newline,b=i.format.space,i.format.compact&&(y=b=c=l=""),v=i.format.parentheses,C=i.format.semicolons,S=i.format.safeConcatenation,N=i.directive,_=p?null:i.parse,E=i.sourceMap,I=i.sourceCode,T=i.format.preserveBlankLines&&null!==I,A=i,E&&(a=t.browser?e.sourceMap.SourceNode:n(152).SourceNode),o=ne(r),E?(s=o.toStringWithSourceMap({file:i.file,sourceRoot:i.sourceMapRoot}),i.sourceContent&&s.map.setSourceContent(i.sourceMap,i.sourceContent),i.sourceMapWithCode?s:s.map.toString()):(s={code:o.toString(),map:null},i.sourceMapWithCode?s:s.code)},t.attachComments=s.attachComments,t.Precedence=B({},i),t.browser=!1,t.FORMAT_MINIFY=D,t.FORMAT_DEFAULTS=F}()}).call(this,n(56))},function(e,t){e.exports=function(){throw new Error("define cannot be used indirect")}},function(e,t){function n(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id=63},function(e,t,n){"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,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){return function(e){this.groups=[],this.always=!1,this.each=!1,this.context=void 0,this.type=e.type,this.target=e.target,this.propertyName=e.propertyName,this.constraints=e.constraints,this.constraintCls=e.constraintCls,this.validationTypeOptions=e.validationTypeOptions,e.validationOptions&&(this.message=e.validationOptions.message,this.groups=e.validationOptions.groups,this.always=e.validationOptions.always,this.each=e.validationOptions.each,this.context=e.validationOptions.context)}}();t.ValidationMetadata=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),e=Date.parse(e),isNaN(e)?null:new Date(e)};var r,i=n(9),o=(r=i)&&r.__esModule?r:{default:r};e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.default=function(e){"object"===(void 0===e?"undefined":r(e))&&null!==e?e="function"==typeof e.toString?e.toString():"[object Object]":(null===e||void 0===e||isNaN(e)&&!e.length)&&(e="");return String(e)},e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,r.default)(e),(t=(0,i.default)(t,a)).allow_trailing_dot&&"."===e[e.length-1]&&(e=e.substring(0,e.length-1));for(var n=e.split("."),o=0;o63)return!1;if(t.require_tld){var s=n.pop();if(!n.length||!/^([a-z\u00a1-\uffff]{2,}|xn[a-z0-9-]{2,})$/i.test(s))return!1;if(/[\s\u2002-\u200B\u202F\u205F\u3000\uFEFF\uDB40\uDC20]/.test(s))return!1}for(var u,d=0;d1&&void 0!==arguments[1]?arguments[1]:"";(0,o.default)(t);n=String(n);if(!n)return e(t,4)||e(t,6);if("4"===n){if(!a.test(t))return!1;var r=t.split(".").sort(function(e,t){return e-t});return r[3]<=255}if("6"===n){var i=t.split(":"),u=!1,d=e(i[i.length-1],4),l=d?7:8;if(i.length>l)return!1;if("::"===t)return!0;"::"===t.substr(0,2)?(i.shift(),i.shift(),u=!0):"::"===t.substr(t.length-2)&&(i.pop(),i.pop(),u=!0);for(var c=0;c0&&c=1:i.length===l}return!1};var r,i=n(9),o=(r=i)&&r.__esModule?r:{default:r};var a=/^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})$/,s=/^[0-9A-F]{1,4}$/i;e.exports=t.default},function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var u,d=[],l=!1,c=-1;function p(){l&&u&&(l=!1,u.length?d=u.concat(d):c=-1,d.length&&f())}function f(){if(!l){var e=s(p);l=!0;for(var t=d.length;t;){for(u=d,d=[];++c1)for(var n=1;n=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},c=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},p=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var f=n(2),h=n(4),g=n(27),m=n(60),y=n(10),b=function(e){function t(e,n,r){return(0,i.default)(this,t),(0,a.default)(this,(0,s.default)(t).call(this,e,n,r))}return(0,u.default)(t,e),(0,o.default)(t,[{key:"getControlFlowStorageCallNode",value:function(e,t,n,r){var i=this.controlFlowCustomNodeFactory(g.ControlFlowCustomNode.ExpressionWithOperatorControlFlowStorageCallNode);i.initialize(e,t,n,r);var o=i.getNode()[0];if(!o||!y.NodeGuards.isExpressionStatementNode(o))throw new Error("`controlFlowStorageCallCustomNode.getNode()[0]` should returns array with `ExpressionStatement` node");return o.expression}}]),t}(m.AbstractControlFlowReplacer);b=l([f.injectable(),p(0,f.inject(h.ServiceIdentifiers.Factory__IControlFlowCustomNode)),p(1,f.inject(h.ServiceIdentifiers.IRandomGenerator)),p(2,f.inject(h.ServiceIdentifiers.IOptions)),c("design:paramtypes",[Function,Object,Object])],b),t.ExpressionWithOperatorControlFlowReplacer=b},function(e,t){!function(){"use strict";var t,n,r,i,o,a;function s(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(Math.floor((e-65536)/1024)+55296)+String.fromCharCode((e-65536)%1024+56320)}for(n={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B2\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA7AD\uA7B0\uA7B1\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB5F\uAB64\uAB65\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,NonAsciiIdentifierPart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B2\u08E4-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58\u0C59\u0C60-\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D60-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFC-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA69D\uA69F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA7AD\uA7B0\uA7B1\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB5F\uAB64\uAB65\uABC0-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2D\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/},t={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B2\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA7AD\uA7B0\uA7B1\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB5F\uAB64\uAB65\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDE00-\uDE11\uDE13-\uDE2B\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF5D-\uDF61]|\uD805[\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDE00-\uDE2F\uDE44\uDE80-\uDEAA]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF98]|\uD809[\uDC00-\uDC6E]|[\uD80C\uD840-\uD868\uD86A-\uD86C][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B2\u08E4-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58\u0C59\u0C60-\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D60-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFC-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA69D\uA69F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA7AD\uA7B0\uA7B1\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB5F\uAB64\uAB65\uABC0-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2D\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDD0-\uDDDA\uDE00-\uDE11\uDE13-\uDE37\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF01-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF98]|\uD809[\uDC00-\uDC6E]|[\uD80C\uD840-\uD868\uD86A-\uD86C][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/},r=[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279],i=new Array(128),a=0;a<128;++a)i[a]=a>=97&&a<=122||a>=65&&a<=90||36===a||95===a;for(o=new Array(128),a=0;a<128;++a)o[a]=a>=97&&a<=122||a>=65&&a<=90||a>=48&&a<=57||36===a||95===a;e.exports={isDecimalDigit:function(e){return 48<=e&&e<=57},isHexDigit:function(e){return 48<=e&&e<=57||97<=e&&e<=102||65<=e&&e<=70},isOctalDigit:function(e){return e>=48&&e<=55},isWhiteSpace:function(e){return 32===e||9===e||11===e||12===e||160===e||e>=5760&&r.indexOf(e)>=0},isLineTerminator:function(e){return 10===e||13===e||8232===e||8233===e},isIdentifierStartES5:function(e){return e<128?i[e]:n.NonAsciiIdentifierStart.test(s(e))},isIdentifierPartES5:function(e){return e<128?o[e]:n.NonAsciiIdentifierPart.test(s(e))},isIdentifierStartES6:function(e){return e<128?i[e]:t.NonAsciiIdentifierStart.test(s(e))},isIdentifierPartES6:function(e){return e<128?o[e]:t.NonAsciiIdentifierPart.test(s(e))}}}()},function(e,t,n){"use strict";var r,i,o,a=n(83),s=n(157),u=n(158),d=n(159)(n(161)),l=5;function c(){i={tokens:null,range:!1,loc:!1,comment:!1,comments:[],tolerant:!1,errors:[],strict:!1,ecmaFeatures:{},ecmaVersion:l,isModule:!1}}var p=d.tokTypes,f=d.getLineInfo;function h(e){if("number"!=typeof e)return l;var t=e;switch(t>=2015&&(t-=2009),t){case 3:case 5:case 6:case 7:case 8:case 9:case 10:return t;default:throw new Error("Invalid ecmaVersion.")}}function g(e){if(function(e){switch(e.type){case"ImportDeclaration":case"ExportNamedDeclaration":case"ExportDefaultDeclaration":case"ExportAllDeclaration":return i.isModule;default:return!0}}(e)||this.unexpected(e.start),"TemplateElement"===e.type){var t="${"===this.input.slice(e.end,e.end+2);e.range&&(e.range[0]--,e.range[1]+=t?2:1),e.loc&&(e.loc.start.column--,e.loc.end.column+=t?2:1)}return i.attachComment&&s.processComment(e),e.type.indexOf("Function")>-1&&!e.generator&&(e.generator=!1),e}function m(e){return function(t,n,r,i){var o=e.call(this,t,n,r,i);return g.call(this,o)}}function y(e,t,n,r,i,o){var a={type:e?"Block":"Line",value:t};return"number"==typeof n&&(a.start=n,a.end=r,a.range=[n,r]),"object"==typeof i&&(a.loc={start:i,end:o}),a}p.jsxAttrValueToken={},d.plugins.espree=function(e){e.extend("finishNode",m),e.extend("finishNodeAt",m),e.extend("next",function(e){return function(){return function(e){var t=i.ecmaFeatures;switch(e.type){case p.jsxName:case p.jsxText:case p.jsxTagStart:case p.jsxTagEnd:return t.jsx;case p.regexp:return!(i.ecmaVersion<6&&e.value.flags&&e.value.flags.indexOf("y")>-1);default:return!0}}(this)||this.unexpected(),e.call(this)}}),e.extend("parseTopLevel",function(e){return function(t){return i.ecmaFeatures.impliedStrict&&this.options.ecmaVersion>=5&&(this.strict=!0),e.call(this,t)}}),e.raise=e.raiseRecoverable=function(e,t){var n=f(this.input,e),r=new SyntaxError(t);throw r.index=e,r.lineNumber=n.line,r.column=n.column+1,r},e.unexpected=function(e){var t="Unexpected token";if(null!==e&&void 0!==e){if(this.pos=e,this.options.locations)for(;this.posthis.start&&(t+=" "+this.input.slice(this.start,this.end)),this.raise(this.start,t)},e.extend("jsx_readString",function(e){return function(t){var n=e.call(this,t);return this.type===p.string&&(i.jsxAttrValueToken=!0),n}})},t.version=n(162).version,t.tokenize=function(e,t){var n,o,a,s=new u(p,e);n=String,"string"==typeof e||e instanceof String||(e=n(e)),r=null,t=Object.assign({},t);var f={ecmaVersion:l,plugins:{espree:!0}};c(),t.tokens=!0,i.tokens=[],i.range="boolean"==typeof t.range&&t.range,f.ranges=i.range,i.loc="boolean"==typeof t.loc&&t.loc,f.locations=i.loc,i.comment="boolean"==typeof t.comment&&t.comment,i.comment&&(f.onComment=function(){var e=y.apply(this,arguments);i.comments.push(e)}),i.tolerant="boolean"==typeof t.tolerant&&t.tolerant,f.ecmaVersion=i.ecmaVersion=h(t.ecmaVersion),t.ecmaFeatures&&"object"==typeof t.ecmaFeatures&&(i.ecmaFeatures=Object.assign({},t.ecmaFeatures),a=i.ecmaFeatures.impliedStrict,i.ecmaFeatures.impliedStrict="boolean"==typeof a&&a);try{for(var g=d.tokenizer(e,f);(r=g.getToken()).type!==p.eof;)s.onToken(r,i);o=i.tokens,i.comment&&(o.comments=i.comments),i.tolerant&&(o.errors=i.errors)}catch(e){throw e}return o},t.parse=function(e,t){var n,r,a,f=String,g={ecmaVersion:l,plugins:{espree:!0}};return o=null,"string"==typeof e||e instanceof String||(e=f(e)),c(),s.reset(),void 0!==t&&(i.range="boolean"==typeof t.range&&t.range,i.loc="boolean"==typeof t.loc&&t.loc,i.attachComment="boolean"==typeof t.attachComment&&t.attachComment,i.loc&&null!==t.source&&void 0!==t.source&&(i.source=f(t.source)),"boolean"==typeof t.tokens&&t.tokens&&(i.tokens=[],r=new u(p,e)),"boolean"==typeof t.comment&&t.comment&&(i.comment=!0,i.comments=[]),"boolean"==typeof t.tolerant&&t.tolerant&&(i.errors=[]),i.attachComment&&(i.range=!0,i.comments=[],s.reset()),g.ecmaVersion=i.ecmaVersion=h(t.ecmaVersion),"module"===t.sourceType&&(i.isModule=!0,g.ecmaVersion<6&&(g.ecmaVersion=6,i.ecmaVersion=6),g.sourceType="module"),t.ecmaFeatures&&"object"==typeof t.ecmaFeatures&&(i.ecmaFeatures=Object.assign({},t.ecmaFeatures),a=i.ecmaFeatures.impliedStrict,i.ecmaFeatures.impliedStrict="boolean"==typeof a&&a,t.ecmaFeatures.globalReturn&&(g.allowReturnOutsideFunction=!0)),g.onToken=function(e){i.tokens&&r.onToken(e,i),e.type!==p.eof&&(o=e)},(i.attachComment||i.comment)&&(g.onComment=function(){var e=y.apply(this,arguments);i.comments.push(e),i.attachComment&&s.addComment(e)}),i.range&&(g.ranges=!0),i.loc&&(g.locations=!0),i.ecmaFeatures.jsx&&(g.plugins={jsx:!0,espree:!0})),(n=d.parse(e,g)).sourceType=i.isModule?"module":"script",(i.comment||i.attachComment)&&(n.comments=i.comments),i.tokens&&(n.tokens=i.tokens),n.range&&(n.range[0]=n.body.length?n.body[0].range[0]:n.range[0],n.range[1]=o?o.range[1]:n.range[1]),n.loc&&(n.loc.start=n.body.length?n.body[0].loc.start:n.loc.start,n.loc.end=o?o.loc.end:n.loc.end),n},t.Syntax=function(){var e,t={};for(e in"function"==typeof Object.create&&(t=Object.create(null)),a)a.hasOwnProperty(e)&&(t[e]=a[e]);return"function"==typeof Object.freeze&&Object.freeze(t),t}(),t.VisitorKeys=function(){var e,t=n(163),r={};for(e in"function"==typeof Object.create&&(r=Object.create(null)),t)t.hasOwnProperty(e)&&(r[e]=t[e]);return"function"==typeof Object.freeze&&Object.freeze(r),r}()},function(e,t,n){"use strict";e.exports={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DoWhileStatement:"DoWhileStatement",DebuggerStatement:"DebuggerStatement",EmptyStatement:"EmptyStatement",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForInStatement:"ForInStatement",ForOfStatement:"ForOfStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",Identifier:"Identifier",IfStatement:"IfStatement",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",Program:"Program",Property:"Property",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchCase:"SwitchCase",SwitchStatement:"SwitchStatement",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression",JSXIdentifier:"JSXIdentifier",JSXNamespacedName:"JSXNamespacedName",JSXMemberExpression:"JSXMemberExpression",JSXEmptyExpression:"JSXEmptyExpression",JSXExpressionContainer:"JSXExpressionContainer",JSXElement:"JSXElement",JSXClosingElement:"JSXClosingElement",JSXOpeningElement:"JSXOpeningElement",JSXAttribute:"JSXAttribute",JSXSpreadAttribute:"JSXSpreadAttribute",JSXText:"JSXText",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportAllDeclaration:"ExportAllDeclaration",ExportSpecifier:"ExportSpecifier",ImportDeclaration:"ImportDeclaration",ImportSpecifier:"ImportSpecifier",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.BlockStatementDeadCodeInjectionNode="BlockStatementDeadCodeInjectionNode"}(t.DeadCodeInjectionCustomNode||(t.DeadCodeInjectionCustomNode={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.AssignmentExpressionPropertiesExtractor="AssignmentExpressionPropertiesExtractor",e.VariableDeclaratorPropertiesExtractor="VariableDeclaratorPropertiesExtractor"}(t.PropertiesExtractor||(t.PropertiesExtractor={}))},function(e,t,n){"use strict";var r,i=n(0),o=i(n(37)),a=i(n(1)),s=i(n(3)),u=i(n(5)),d=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,u.default)(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},l=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,u.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var p=n(2),f=n(4),h=n(31),g=n(15),m=n(10),y=n(30),b=r=function(){function e(t,n){(0,a.default)(this,e),this.cachedHostNodesWithStatementsMap=new Map,this.cachedHostStatementsMap=new Map,this.randomGenerator=t,this.options=n}return(0,s.default)(e,[{key:"extractPropertiesToExpressionStatements",value:function(e,t){for(var n=e.length,i=[],o=[],a=0;a=0;u--)(i=e[u])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},u=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,a.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},d=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var l=n(2),c=n(4),p=function(){function e(t,n){(0,i.default)(this,e),this.randomGenerator=t,this.options=n}return(0,o.default)(e,[{key:"isValidIdentifierName",value:function(e){return!this.options.reservedNames.length||!this.options.reservedNames.some(function(t){return null!==new RegExp(t,"g").exec(e)})}}]),e}();p=s([l.injectable(),d(0,l.inject(c.ServiceIdentifiers.IRandomGenerator)),d(1,l.inject(c.ServiceIdentifiers.IOptions)),u("design:paramtypes",[Object,Object])],p),t.AbstractIdentifierNamesGenerator=p},function(e,t,n){"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,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n(function(t){t(e.value)}).then(a,s)}u((r=r.apply(e,t||[])).next())})},i=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=0},e.prototype.isNumber=function(e,t){return void 0===t&&(t={}),e===1/0||e===-1/0?t.allowInfinity:Number.isNaN(e)?t.allowNaN:Number.isFinite(e)},e.prototype.isInt=function(e){return Number.isInteger(e)},e.prototype.isDivisibleBy=function(e,t){return"number"==typeof e&&"number"==typeof t&&this.validatorJs.isDivisibleBy(String(e),t)},e.prototype.isPositive=function(e){return"number"==typeof e&&e>0},e.prototype.isNegative=function(e){return"number"==typeof e&&e<0},e.prototype.min=function(e,t){return"number"==typeof e&&"number"==typeof t&&e>=t},e.prototype.max=function(e,t){return"number"==typeof e&&"number"==typeof t&&e<=t},e.prototype.minDate=function(e,t){return e&&e.getTime()>=t.getTime()},e.prototype.maxDate=function(e,t){return e&&e.getTime()<=t.getTime()},e.prototype.isBooleanString=function(e){return"string"==typeof e&&this.validatorJs.isBoolean(e)},e.prototype.isNumberString=function(e){return"string"==typeof e&&this.validatorJs.isNumeric(e)},e.prototype.contains=function(e,t){return"string"==typeof e&&this.validatorJs.contains(e,t)},e.prototype.notContains=function(e,t){return"string"==typeof e&&!this.validatorJs.contains(e,t)},e.prototype.isAlpha=function(e){return"string"==typeof e&&this.validatorJs.isAlpha(e)},e.prototype.isAlphanumeric=function(e){return"string"==typeof e&&this.validatorJs.isAlphanumeric(e)},e.prototype.isAscii=function(e){return"string"==typeof e&&this.validatorJs.isAscii(e)},e.prototype.isBase64=function(e){return"string"==typeof e&&this.validatorJs.isBase64(e)},e.prototype.isByteLength=function(e,t,n){return"string"==typeof e&&this.validatorJs.isByteLength(e,t,n)},e.prototype.isCreditCard=function(e){return"string"==typeof e&&this.validatorJs.isCreditCard(e)},e.prototype.isCurrency=function(e,t){return"string"==typeof e&&this.validatorJs.isCurrency(e,t)},e.prototype.isEmail=function(e,t){return"string"==typeof e&&this.validatorJs.isEmail(e,t)},e.prototype.isFQDN=function(e,t){return"string"==typeof e&&this.validatorJs.isFQDN(e,t)},e.prototype.isFullWidth=function(e){return"string"==typeof e&&this.validatorJs.isFullWidth(e)},e.prototype.isHalfWidth=function(e){return"string"==typeof e&&this.validatorJs.isHalfWidth(e)},e.prototype.isVariableWidth=function(e){return"string"==typeof e&&this.validatorJs.isVariableWidth(e)},e.prototype.isHexColor=function(e){return"string"==typeof e&&this.validatorJs.isHexColor(e)},e.prototype.isHexadecimal=function(e){return"string"==typeof e&&this.validatorJs.isHexadecimal(e)},e.prototype.isIP=function(e,t){return"string"==typeof e&&this.validatorJs.isIP(e,t)},e.prototype.isISBN=function(e,t){return"string"==typeof e&&this.validatorJs.isISBN(e,t)},e.prototype.isISIN=function(e){return"string"==typeof e&&this.validatorJs.isISIN(e)},e.prototype.isISO8601=function(e){return"string"==typeof e&&this.validatorJs.isISO8601(e)},e.prototype.isJSON=function(e){return"string"==typeof e&&this.validatorJs.isJSON(e)},e.prototype.isLowercase=function(e){return"string"==typeof e&&this.validatorJs.isLowercase(e)},e.prototype.isMobilePhone=function(e,t){return"string"==typeof e&&this.validatorJs.isMobilePhone(e,t)},e.prototype.isPhoneNumber=function(e,t){try{var n=this.libPhoneNumber.phoneUtil.parseAndKeepRawInput(e,t);return this.libPhoneNumber.phoneUtil.isValidNumber(n)}catch(e){return!1}},e.prototype.isMongoId=function(e){return"string"==typeof e&&this.validatorJs.isMongoId(e)},e.prototype.isMultibyte=function(e){return"string"==typeof e&&this.validatorJs.isMultibyte(e)},e.prototype.isSurrogatePair=function(e){return"string"==typeof e&&this.validatorJs.isSurrogatePair(e)},e.prototype.isURL=function(e,t){return"string"==typeof e&&this.validatorJs.isURL(e,t)},e.prototype.isUUID=function(e,t){return"string"==typeof e&&this.validatorJs.isUUID(e,t)},e.prototype.isUppercase=function(e){return"string"==typeof e&&this.validatorJs.isUppercase(e)},e.prototype.length=function(e,t,n){return"string"==typeof e&&this.validatorJs.isLength(e,t,n)},e.prototype.minLength=function(e,t){return"string"==typeof e&&this.length(e,t)},e.prototype.maxLength=function(e,t){return"string"==typeof e&&this.length(e,0,t)},e.prototype.matches=function(e,t,n){return"string"==typeof e&&this.validatorJs.matches(e,t,n)},e.prototype.isMilitaryTime=function(e){return this.matches(e,/^([01]\d|2[0-3]):?([0-5]\d)$/)},e.prototype.arrayContains=function(e,t){return e instanceof Array&&(!e||t.every(function(t){return-1!==e.indexOf(t)}))},e.prototype.arrayNotContains=function(e,t){return e instanceof Array&&(!e||t.every(function(t){return-1===e.indexOf(t)}))},e.prototype.arrayNotEmpty=function(e){return e instanceof Array&&(e instanceof Array&&e.length>0)},e.prototype.arrayMinSize=function(e,t){return e instanceof Array&&(e instanceof Array&&e.length>=t)},e.prototype.arrayMaxSize=function(e,t){return e instanceof Array&&(e instanceof Array&&e.length<=t)},e.prototype.arrayUnique=function(e){if(!(e instanceof Array))return!1;var t=e.filter(function(e,t,n){return n.indexOf(e)===t});return e.length===t.length},e.prototype.isInstance=function(e,t){return t&&"function"==typeof t&&e instanceof t},e}();t.Validator=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){}return e.prototype.toString=function(e,t,n){var r=this;void 0===e&&(e=!1),void 0===t&&(t=!1),void 0===n&&(n="");var i=e?"":"",o=e?"":"",a=function(e){return" - property "+i+n+e+o+" has failed the following constraints: "+i+Object.keys(r.constraints).join(", ")+o+" \n"};if(t){var s=Number.isInteger(+this.property)?"["+this.property+"]":(n?".":"")+this.property;return this.constraints?a(s):this.children.map(function(t){return t.toString(e,!0,""+n+s)}).join("")}return"An instance of "+i+(this.target?this.target.constructor.name:"an object")+o+" has failed the validation:\n"+(this.constraints?a(this.property):"")+this.children.map(function(t){return t.toString(e,!0,r.property)}).join("")},e}();t.ValidationError=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),parseFloat(e)};var r,i=n(9),o=(r=i)&&r.__esModule?r:{default:r};e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.default=function(e,t){(0,a.default)(e);var n=void 0,i=void 0;"object"===(void 0===t?"undefined":r(t))?(n=t.min||0,i=t.max):(n=arguments[1],i=arguments[2]);var o=encodeURI(e).split(/%..|./).length-1;return o>=n&&(void 0===i||o<=i)};var i,o=n(9),a=(i=o)&&i.__esModule?i:{default:i};e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,o.default)(e);var n=(t=t||{}).hasOwnProperty("allow_leading_zeroes")&&!t.allow_leading_zeroes?a:s,r=!t.hasOwnProperty("min")||e>=t.min,i=!t.hasOwnProperty("max")||e<=t.max,u=!t.hasOwnProperty("lt")||et.gt;return n.test(e)&&r&&i&&u&&d};var r,i=n(9),o=(r=i)&&r.__esModule?r:{default:r};var a=/^(?:[-+]?(?:0|[1-9][0-9]*))$/,s=/^[-+]?[0-9]+$/;e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fullWidth=void 0,t.default=function(e){return(0,o.default)(e),a.test(e)};var r,i=n(9),o=(r=i)&&r.__esModule?r:{default:r};var a=t.fullWidth=/[^\u0020-\u007E\uFF61-\uFF9F\uFFA0-\uFFDC\uFFE8-\uFFEE0-9a-zA-Z]/},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.halfWidth=void 0,t.default=function(e){return(0,o.default)(e),a.test(e)};var r,i=n(9),o=(r=i)&&r.__esModule?r:{default:r};var a=t.halfWidth=/[\u0020-\u007E\uFF61-\uFF9F\uFFA0-\uFFDC\uFFE8-\uFFEE0-9a-zA-Z]/},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),a.test(e)};var r,i=n(9),o=(r=i)&&r.__esModule?r:{default:r};var a=/^[0-9A-F]+$/i;e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,o.default)(e);var n=t?new RegExp("^["+t+"]+","g"):/^\s+/g;return e.replace(n,"")};var r,i=n(9),o=(r=i)&&r.__esModule?r:{default:r};e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,o.default)(e);for(var n=t?new RegExp("["+t+"]"):/\s/,r=e.length-1;r>=0&&n.test(e[r]);r--);return r=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},l=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,u.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var p=n(2),f=n(4),h=n(11),g=function(){function e(t,n){(0,a.default)(this,e),this.randomGenerator=t,this.options=n}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,n=!1,r=void 0;try{for(var i,a=this.storage[Symbol.iterator]();!(t=(i=a.next()).done);t=!0){var s=(0,o.default)(i.value,2),u=s[0];if(e===s[1])return u}}catch(e){n=!0,r=e}finally{try{t||null==a.return||a.return()}finally{if(n)throw r}}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:"mergeWith",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.storage=new Map((0,i.default)(this.storage).concat((0,i.default)(e.getStorage()))),t&&(this.storageId=e.getStorageId())}},{key:"set",value:function(e,t){this.storage.set(e,t)}}]),e}();d([h.initializable(),l("design:type",String)],g.prototype,"storageId",void 0),d([h.initializable(),l("design:type",Map)],g.prototype,"storage",void 0),d([p.postConstruct(),l("design:type",Function),l("design:paramtypes",[]),l("design:returntype",void 0)],g.prototype,"initialize",null),g=d([p.injectable(),c(0,p.inject(f.ServiceIdentifiers.IRandomGenerator)),c(1,p.inject(f.ServiceIdentifiers.IOptions)),l("design:paramtypes",[Object,Object])],g),t.MapStorage=g},function(e,t,n){"use strict";var r,i=n(0),o=i(n(1)),a=i(n(3)),s=i(n(5)),u=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,s.default)(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var u=e.length-1;u>=0;u--)(i=e[u])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},d=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,s.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},l=function(e,t){return function(n,r){t(n,r,e)}},c=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var p=n(2),f=n(4),h=c(n(347)),g=n(350),m=n(11),y=r=function(){function e(t,n){(0,o.default)(this,e),this.sourceCode=t,this.options=n}return(0,a.default)(e,[{key:"initialize",value:function(){var e,t,n,r=this;this.seed=0!==this.options.seed?this.options.seed:(e=0,t=999999999,Math.floor(Math.random()*(t-e+1)+e)),this.randomGenerator=new g.Chance((n=h.default(r.sourceCode.getSourceCode()),r.seed+Number(n.replace(/\D/g,""))))}},{key:"getMathRandom",value:function(){return this.getRandomInteger(0,99999)/1e5}},{key:"getRandomGenerator",value:function(){return this.randomGenerator}},{key:"getRandomInteger",value:function(e,t){return this.getRandomGenerator().integer({min:e,max:t})}},{key:"getRandomString",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.randomGeneratorPool;return this.getRandomGenerator().string({length:e,pool:t})}},{key:"getSeed",value:function(){return this.seed}}]),e}();y.randomGeneratorPool="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",u([m.initializable(),d("design:type",Object)],y.prototype,"randomGenerator",void 0),u([m.initializable(),d("design:type",Number)],y.prototype,"seed",void 0),u([p.postConstruct(),d("design:type",Function),d("design:paramtypes",[]),d("design:returntype",void 0)],y.prototype,"initialize",null),y=r=u([p.injectable(),l(0,p.inject(f.ServiceIdentifiers.ISourceCode)),l(1,p.inject(f.ServiceIdentifiers.IOptions)),d("design:paramtypes",[Object,Object])],y),t.RandomGenerator=y},function(e,t){var n={utf8:{stringToBytes:function(e){return n.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(n.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],n=0;n0}function p(e){if(!this||!(this instanceof p)||this.template){const t={};return c(t,e),t.template=function(){const e=[].slice.call(arguments);return function(e,t){if(!Array.isArray(t))return[].slice.call(arguments,1).join(" ");const n=[].slice.call(arguments,2),r=[t.raw[0]];for(let e=1;e{},l);function h(e,t,n){const r=function(){return function(){const e=arguments,t=e.length;let n=String(arguments[0]);if(0===t)return"";if(t>1)for(let r=1;ro.level,set(e){o.level=e}}),Object.defineProperty(r,"enabled",{enumerable:!0,get:()=>o.enabled,set(e){o.enabled=e}}),r.hasGrey=this.hasGrey||"gray"===n||"grey"===n,r.__proto__=f,r}Object.defineProperties(p.prototype,l),e.exports=p(),e.exports.supportsColor=o,e.exports.default=e.exports}).call(this,n(70))},function(e,t,n){var r=n(362),i={};for(var o in r)r.hasOwnProperty(o)&&(i[r[o]]=o);var a=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var s in a)if(a.hasOwnProperty(s)){if(!("channels"in a[s]))throw new Error("missing channels property: "+s);if(!("labels"in a[s]))throw new Error("missing channel labels property: "+s);if(a[s].labels.length!==a[s].channels)throw new Error("channel and label counts mismatch: "+s);var u=a[s].channels,d=a[s].labels;delete a[s].channels,delete a[s].labels,Object.defineProperty(a[s],"channels",{value:u}),Object.defineProperty(a[s],"labels",{value:d})}a.rgb.hsl=function(e){var t,n,r=e[0]/255,i=e[1]/255,o=e[2]/255,a=Math.min(r,i,o),s=Math.max(r,i,o),u=s-a;return s===a?t=0:r===s?t=(i-o)/u:i===s?t=2+(o-r)/u:o===s&&(t=4+(r-i)/u),(t=Math.min(60*t,360))<0&&(t+=360),n=(a+s)/2,[t,100*(s===a?0:n<=.5?u/(s+a):u/(2-s-a)),100*n]},a.rgb.hsv=function(e){var t,n,r=e[0],i=e[1],o=e[2],a=Math.min(r,i,o),s=Math.max(r,i,o),u=s-a;return n=0===s?0:u/s*1e3/10,s===a?t=0:r===s?t=(i-o)/u:i===s?t=2+(o-r)/u:o===s&&(t=4+(r-i)/u),(t=Math.min(60*t,360))<0&&(t+=360),[t,n,s/255*1e3/10]},a.rgb.hwb=function(e){var t=e[0],n=e[1],r=e[2];return[a.rgb.hsl(e)[0],100*(1/255*Math.min(t,Math.min(n,r))),100*(r=1-1/255*Math.max(t,Math.max(n,r)))]},a.rgb.cmyk=function(e){var t,n=e[0]/255,r=e[1]/255,i=e[2]/255;return[100*((1-n-(t=Math.min(1-n,1-r,1-i)))/(1-t)||0),100*((1-r-t)/(1-t)||0),100*((1-i-t)/(1-t)||0),100*t]},a.rgb.keyword=function(e){var t=i[e];if(t)return t;var n,o,a,s=1/0;for(var u in r)if(r.hasOwnProperty(u)){var d=r[u],l=(o=e,a=d,Math.pow(o[0]-a[0],2)+Math.pow(o[1]-a[1],2)+Math.pow(o[2]-a[2],2));l.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)),100*(.2126*t+.7152*n+.0722*r),100*(.0193*t+.1192*n+.9505*r)]},a.rgb.lab=function(e){var t=a.rgb.xyz(e),n=t[0],r=t[1],i=t[2];return r/=100,i/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(n-r),200*(r-(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116))]},a.hsl.rgb=function(e){var t,n,r,i,o,a=e[0]/360,s=e[1]/100,u=e[2]/100;if(0===s)return[o=255*u,o,o];t=2*u-(n=u<.5?u*(1+s):u+s-u*s),i=[0,0,0];for(var d=0;d<3;d++)(r=a+1/3*-(d-1))<0&&r++,r>1&&r--,o=6*r<1?t+6*(n-t)*r:2*r<1?n:3*r<2?t+(n-t)*(2/3-r)*6:t,i[d]=255*o;return i},a.hsl.hsv=function(e){var t=e[0],n=e[1]/100,r=e[2]/100,i=n,o=Math.max(r,.01);return n*=(r*=2)<=1?r:2-r,i*=o<=1?o:2-o,[t,100*(0===r?2*i/(o+i):2*n/(r+n)),100*((r+n)/2)]},a.hsv.rgb=function(e){var t=e[0]/60,n=e[1]/100,r=e[2]/100,i=Math.floor(t)%6,o=t-Math.floor(t),a=255*r*(1-n),s=255*r*(1-n*o),u=255*r*(1-n*(1-o));switch(r*=255,i){case 0:return[r,u,a];case 1:return[s,r,a];case 2:return[a,r,u];case 3:return[a,s,r];case 4:return[u,a,r];case 5:return[r,a,s]}},a.hsv.hsl=function(e){var t,n,r,i=e[0],o=e[1]/100,a=e[2]/100,s=Math.max(a,.01);return r=(2-o)*a,n=o*s,[i,100*(n=(n/=(t=(2-o)*s)<=1?t:2-t)||0),100*(r/=2)]},a.hwb.rgb=function(e){var t,n,r,i,o,a,s,u=e[0]/360,d=e[1]/100,l=e[2]/100,c=d+l;switch(c>1&&(d/=c,l/=c),n=1-l,r=6*u-(t=Math.floor(6*u)),0!=(1&t)&&(r=1-r),i=d+r*(n-d),t){default:case 6:case 0:o=n,a=i,s=d;break;case 1:o=i,a=n,s=d;break;case 2:o=d,a=n,s=i;break;case 3:o=d,a=i,s=n;break;case 4:o=i,a=d,s=n;break;case 5:o=n,a=d,s=i}return[255*o,255*a,255*s]},a.cmyk.rgb=function(e){var t=e[0]/100,n=e[1]/100,r=e[2]/100,i=e[3]/100;return[255*(1-Math.min(1,t*(1-i)+i)),255*(1-Math.min(1,n*(1-i)+i)),255*(1-Math.min(1,r*(1-i)+i))]},a.xyz.rgb=function(e){var t,n,r,i=e[0]/100,o=e[1]/100,a=e[2]/100;return n=-.9689*i+1.8758*o+.0415*a,r=.0557*i+-.204*o+1.057*a,t=(t=3.2406*i+-1.5372*o+-.4986*a)>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,[255*(t=Math.min(Math.max(0,t),1)),255*(n=Math.min(Math.max(0,n),1)),255*(r=Math.min(Math.max(0,r),1))]},a.xyz.lab=function(e){var t=e[0],n=e[1],r=e[2];return n/=100,r/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(t-n),200*(n-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]},a.lab.xyz=function(e){var t,n,r,i=e[0],o=e[1],a=e[2];t=o/500+(n=(i+16)/116),r=n-a/200;var s=Math.pow(n,3),u=Math.pow(t,3),d=Math.pow(r,3);return n=s>.008856?s:(n-16/116)/7.787,t=u>.008856?u:(t-16/116)/7.787,r=d>.008856?d:(r-16/116)/7.787,[t*=95.047,n*=100,r*=108.883]},a.lab.lch=function(e){var t,n=e[0],r=e[1],i=e[2];return(t=360*Math.atan2(i,r)/2/Math.PI)<0&&(t+=360),[n,Math.sqrt(r*r+i*i),t]},a.lch.lab=function(e){var t,n=e[0],r=e[1];return t=e[2]/360*2*Math.PI,[n,r*Math.cos(t),r*Math.sin(t)]},a.rgb.ansi16=function(e){var t=e[0],n=e[1],r=e[2],i=1 in arguments?arguments[1]:a.rgb.hsv(e)[2];if(0===(i=Math.round(i/50)))return 30;var o=30+(Math.round(r/255)<<2|Math.round(n/255)<<1|Math.round(t/255));return 2===i&&(o+=60),o},a.hsv.ansi16=function(e){return a.rgb.ansi16(a.hsv.rgb(e),e[2])},a.rgb.ansi256=function(e){var t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},a.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},a.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var n;return e-=16,[Math.floor(e/36)/5*255,Math.floor((n=e%36)/6)/5*255,n%6/5*255]},a.rgb.hex=function(e){var t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},a.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var n=t[0];3===t[0].length&&(n=n.split("").map(function(e){return e+e}).join(""));var r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},a.rgb.hcg=function(e){var t,n,r=e[0]/255,i=e[1]/255,o=e[2]/255,a=Math.max(Math.max(r,i),o),s=Math.min(Math.min(r,i),o),u=a-s;return t=u<1?s/(1-u):0,n=u<=0?0:a===r?(i-o)/u%6:a===i?2+(o-r)/u:4+(r-i)/u+4,n/=6,[360*(n%=1),100*u,100*t]},a.hsl.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=1,i=0;return(r=n<.5?2*t*n:2*t*(1-n))<1&&(i=(n-.5*r)/(1-r)),[e[0],100*r,100*i]},a.hsv.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=t*n,i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],100*r,100*i]},a.hcg.rgb=function(e){var t=e[0]/360,n=e[1]/100,r=e[2]/100;if(0===n)return[255*r,255*r,255*r];var i,o=[0,0,0],a=t%1*6,s=a%1,u=1-s;switch(Math.floor(a)){case 0:o[0]=1,o[1]=s,o[2]=0;break;case 1:o[0]=u,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=s;break;case 3:o[0]=0,o[1]=u,o[2]=1;break;case 4:o[0]=s,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=u}return i=(1-n)*r,[255*(n*o[0]+i),255*(n*o[1]+i),255*(n*o[2]+i)]},a.hcg.hsv=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t),r=0;return n>0&&(r=t/n),[e[0],100*r,100*n]},a.hcg.hsl=function(e){var t=e[1]/100,n=e[2]/100*(1-t)+.5*t,r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],100*r,100*n]},a.hcg.hwb=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},a.hwb.hcg=function(e){var t=e[1]/100,n=1-e[2]/100,r=n-t,i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],100*r,100*i]},a.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},a.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},a.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},a.gray.hsl=a.gray.hsv=function(e){return[0,0,e[0]]},a.gray.hwb=function(e){return[0,100,e[0]]},a.gray.cmyk=function(e){return[0,0,0,e[0]]},a.gray.lab=function(e){return[e[0],0,0]},a.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},a.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(42);e.exports=r.JavaScriptObfuscator},function(e,t,n){(function(e,t){ /*! ***************************************************************************** Copyright (C) Microsoft. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use diff --git a/dist/index.cli.js b/dist/index.cli.js index 2bc5d58a3..a9cf4c505 100644 --- a/dist/index.cli.js +++ b/dist/index.cli.js @@ -21,5 +21,5 @@ 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 o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.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 o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));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",e.Factory__IControlFlowCustomNode="Factory",e.Factory__IControlFlowReplacer="Factory",e.Factory__ICustomNode="Factory",e.Factory__ICustomNodeGroup="Factory",e.Factory__IDeadCodeInjectionCustomNode="Factory",e.Factory__IIdentifierNamesGenerator="Factory",e.Factory__IIdentifierObfuscatingReplacer="Factory",e.Factory__INodeGuard="Factory",e.Factory__INodeTransformer="Factory",e.Factory__IObfuscatedCode="Factory",e.Factory__IObfuscatingReplacer="Factory",e.Factory__IPropertiesExtractor="Factory",e.Factory__TControlFlowStorage="Factory",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",e.Newable__TControlFlowStorage="Newable",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),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i=r(19),s=function(){function e(){(0,o.default)(this,e)}return(0,a.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,o=e.isContinueStatementNode(r)&&r.label===t,a=e.isBreakStatementNode(r)&&r.label===t;return n||o||a}},{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:"isReplaceableIdentifierNode",value:function(t,r){if(!e.isIdentifierNode(t))return!1;var n=e.isPropertyNode(r)&&!r.computed&&r.key===t,o=e.isMemberExpressionNode(r)&&!r.computed&&r.property===t,a=e.isMethodDefinitionNode(r)&&!r.computed,i=e.isLabelIdentifierNode(t,r);return!(n||o||a||i)}},{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}();s.nodesWithLexicalStatements=[i.NodeType.ArrowFunctionExpression,i.NodeType.FunctionDeclaration,i.NodeType.FunctionExpression,i.NodeType.MethodDefinition],t.NodeGuards=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={configurable:!0,enumerable:!0},o="_initialized",a="_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(o,!1,r),c(a,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(a,e),d=Reflect.getMetadata(i,e),u=c.includes(r)||s.has(r)||d.has(r);if(!u){var l=e[r];if("function"==typeof l){var f=Object.getOwnPropertyDescriptor(e,r)||n,p=f.value;Object.defineProperty(e,r,Object.assign({},f,{value:function(){if(!Reflect.getMetadata(o,this))throw new Error("Class should be initialized with `".concat(t,"()` method"));return p.apply(this,arguments)}})),d.add(r)}}})}(r,e),function(e,t,r){var a=Object.getOwnPropertyDescriptor(e,t)||n,i=a.value;Object.defineProperty(e,t,Object.assign({},a,{value:function(){Reflect.defineMetadata(o,!0,this);var e=i.apply(this,arguments);return this[r],e}}))}(r,e,d),function(e,t){Reflect.getMetadata(a,e).add(t);var r="_".concat(t.toString()),o=Object.getOwnPropertyDescriptor(e,r)||n;return Object.defineProperty(e,t,Object.assign({},o,{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}})),o}(r,d)}}},function(e,t,r){"use strict";var n=r(0),o=n(r(50)),a=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,a.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 a,i=t[n];a=null===i||i instanceof RegExp?i:Array.isArray(i)?i.map(e.cloneRecursive):"object"===(0,o.default)(i)?e.cloneRecursive(i):i,r[n]=a}}),r}}]),e}();t.NodeUtils=p},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){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 o=r(4),a=r(2),i=r(5),s=function e(t,r){(0,n.default)(this,e),this.randomGenerator=t,this.options=r};s=o.__decorate([a.injectable(),o.__param(0,a.inject(i.ServiceIdentifiers.IRandomGenerator)),o.__param(1,a.inject(i.ServiceIdentifiers.IOptions)),o.__metadata("design:paramtypes",[Object,Object])],s),t.AbstractNodeTransformer=s},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i=r(4).__importStar(r(44)),s=r(19),c=function(){function e(){(0,o.default)(this,e)}return(0,a.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({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=r(0),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i,s=r(4),c=r(2),d=r(5),u=r(94),l=r(95),f=i=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,a.default)(e,[{key:"getNode",value:function(){return this.cachedNode||(this.cachedNode=this.getNodeStructure()),this.cachedNode}},{key:"getGlobalVariableTemplate",value:function(){return this.randomGenerator.getRandomGenerator().pickone(i.globalVariableTemplateFunctions)}}]),e}();f.globalVariableTemplateFunctions=[u.GlobalVariableTemplate1(),l.GlobalVariableTemplate2()],f=i=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),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){(0,o.default)(this,e)}return(0,a.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";var n=r(0),o=n(r(65)),a=n(r(1)),i=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var s=r(2),c=r(5),d=r(66),u=r(71),l=r(79),f=r(87),p=r(133),m=r(134),g=r(137),N=r(138),v=r(152),y=r(168),h=r(178),_=r(183),b=r(189),S=r(63),I=r(192),C=r(194),F=r(195),O=r(196),j=function(){function e(){(0,a.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 F.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(O.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(h.storagesModule),this.container.load(_.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 o=t.container.getNamed(e,n);return r.set(n,o),o}}}},{key:"getConstructorFactory",value:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n1&&void 0!==arguments[1]?arguments[1]:1/0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;if(n.length>=r)return n;var a=t.parentNode;if(!a)throw new ReferenceError("`parentNode` property of given node is `undefined`");return(i.NodeGuards.isProgramNode(t)||i.NodeGuards.isNodeWithLexicalScopeStatements(t,a)&&o>0)&&n.push(t),t!==a?e.getParentNodesWithStatementsRecursive(a,r,n,++o):n}},{key:"getSiblingStatementByOffset",value:function(t,r){var n=e.getScopeOfNode(t),o=i.NodeGuards.isSwitchCaseNode(n)?n.consequent:n.body;return o[o.indexOf(t)+r]||null}}]),e}();t.NodeStatementUtils=s},function(e,t,r){"use strict";var n=r(0),o=n(r(28)),a=n(r(1)),i=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var s=r(9),c=function(){function e(){(0,a.default)(this,e)}return(0,i.default)(e,null,[{key:"append",value:function(t,r){r=e.parentizeScopeStatementsBeforeAppend(t,r),e.setScopeStatements(t,(0,o.default)(e.getScopeStatements(t)).concat((0,o.default)(r)))}},{key:"appendToOptimalBlockScope",value:function(t,r,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=t.length?e.getOptimalBlockScope(t,o):r;e.prepend(a,n)}},{key:"getOptimalBlockScope",value:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,o=t[r];if(n<=0)throw new Error("Invalid `deep` argument value. Value should be bigger then 0.");return n>1&&o.stackTrace.length?e.getOptimalBlockScope(o.stackTrace,0,--n):o.callee}},{key:"insertAfter",value:function(t,r,n){var o=e.getScopeStatements(t).indexOf(n);e.insertAtIndex(t,r,o+1)}},{key:"insertAtIndex",value:function(t,r,n){r=e.parentizeScopeStatementsBeforeAppend(t,r),e.setScopeStatements(t,(0,o.default)(e.getScopeStatements(t).slice(0,n)).concat((0,o.default)(r),(0,o.default)(e.getScopeStatements(t).slice(n))))}},{key:"prepend",value:function(t,r){r=e.parentizeScopeStatementsBeforeAppend(t,r),e.setScopeStatements(t,(0,o.default)(r).concat((0,o.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),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i=r(9),s=function(){function e(){(0,o.default)(this,e)}return(0,a.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]:[],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;if(n.length>=r)return n;var a=t.parentNode;if(!a)throw new ReferenceError("`parentNode` property of given node is `undefined`");return i.NodeGuards.isNodeWithLexicalScope(t)&&n.push(t),t!==a?e.getLexicalScopesRecursive(a,r,n,++o):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"}(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),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0}),r(62);var i=r(5),s=r(20),c=function(){function e(){(0,o.default)(this,e)}return(0,a.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).obfuscate(e);return r.unload(),n}}]),e}();c.version="0.18.3",t.JavaScriptObfuscator=c},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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,o.default)(this,e),this.identifierNamesGenerator=t(n),this.randomGenerator=r,this.options=n}return(0,a.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),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){(0,o.default)(this,e)}return(0,a.default)(e,null,[{key:"extractDomainFrom",value:function(e){return(e.indexOf("://")>-1||0===e.indexOf("//")?e.split("/")[2]:e.split("/")[0]).split(":")[0]}}]),e}();i.hexadecimalPrefix="0x",t.Utils=i},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),o=r(23),a=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:a.SourceMapMode.Separate,stringArray:!1,stringArrayEncoding:!1,stringArrayThreshold:0,target:o.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),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){(0,o.default)(this,e)}return(0,a.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 o=r(4),a=r(2),i=r(5),s=function e(t){(0,n.default)(this,e),this.options=t};s=o.__decorate([a.injectable(),o.__param(0,a.inject(i.ServiceIdentifiers.IOptions)),o.__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 o=r(4),a=r(2),i=function e(){(0,n.default)(this,e)};i=o.__decorate([a.injectable()],i),t.AbstractCalleeDataExtractor=i},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i,s=r(4),c=r(2),d=r(5),u=i=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,a.default)(e,[{key:"insertCustomNodeToControlFlowStorage",value:function(e,t,r,n){var o=this,a=t.getStorageId(),s=i.getStorageKeysByIdForCurrentStorage(this.replacerDataByControlFlowStorageId,a),c=s.get(r);if(this.randomGenerator.getMathRandom()1&&void 0!==arguments[1]&&arguments[1];this.storage=new Map((0,o.default)(this.storage).concat((0,o.default)(e.getStorage()))),t&&(this.storageId=e.getStorageId())}},{key:"set",value:function(e,t){this.storage.set(e,t)}}]),e}();c.__decorate([l.initializable(),c.__metadata("design:type",String)],f.prototype,"storageId",void 0),c.__decorate([l.initializable(),c.__metadata("design:type",Map)],f.prototype,"storage",void 0),c.__decorate([d.postConstruct(),c.__metadata("design:type",Function),c.__metadata("design:paramtypes",[]),c.__metadata("design:returntype",void 0)],f.prototype,"initialize",null),f=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])],f),t.MapStorage=f},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i,s=r(4),c=r(2),d=r(5),u=s.__importDefault(r(186)),l=r(187),f=r(10),p=i=function(){function e(t,r){(0,o.default)(this,e),this.sourceCode=t,this.options=r}return(0,a.default)(e,[{key:"initialize",value:function(){var e,t,r,n=this;this.seed=0!==this.options.seed?this.options.seed:(e=0,t=999999999,Math.floor(Math.random()*(t-e+1)+e)),this.randomGenerator=new l.Chance((r=u.default(n.sourceCode.getSourceCode()),n.seed+Number(r.replace(/\D/g,""))))}},{key:"getMathRandom",value:function(){return this.getRandomInteger(0,99999)/1e5}},{key:"getRandomGenerator",value:function(){return this.randomGenerator}},{key:"getRandomInteger",value:function(e,t){return this.getRandomGenerator().integer({min:e,max:t})}},{key:"getRandomString",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.randomGeneratorPool;return this.getRandomGenerator().string({length:e,pool:t})}},{key:"getSeed",value:function(){return this.seed}}]),e}();p.randomGeneratorPool="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",s.__decorate([f.initializable(),s.__metadata("design:type",Object)],p.prototype,"randomGenerator",void 0),s.__decorate([f.initializable(),s.__metadata("design:type",Number)],p.prototype,"seed",void 0),s.__decorate([c.postConstruct(),s.__metadata("design:type",Function),s.__metadata("design:paramtypes",[]),s.__metadata("design:returntype",void 0)],p.prototype,"initialize",null),p=i=s.__decorate([c.injectable(),s.__param(0,c.inject(d.ServiceIdentifiers.ISourceCode)),s.__param(1,c.inject(d.ServiceIdentifiers.IOptions)),s.__metadata("design:paramtypes",[Object,Object])],p),t.RandomGenerator=p},function(e,t){e.exports=require("chalk")},function(e,t){e.exports=require("reflect-metadata")},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i,s=r(4),c=r(2),d=r(5),u=s.__importDefault(r(61)),l=r(64),f=i=function(){function e(t){(0,o.default)(this,e),this.options=t}return(0,a.default)(e,[{key:"info",value:function(e,t){this.options.log&&i.log(i.colorInfo,l.LoggingPrefix.Base,e,t)}},{key:"success",value:function(e,t){this.options.log&&i.log(i.colorSuccess,l.LoggingPrefix.Base,e,t)}},{key:"warn",value:function(e,t){this.options.log&&i.log(i.colorWarn,l.LoggingPrefix.Base,e,t)}}],[{key:"log",value:function(e,t,r,n){var o=e("\n".concat(t," ").concat(r));console.log(o,n||"")}}]),e}();f.colorInfo=u.default.cyan,f.colorSuccess=u.default.green,f.colorWarn=u.default.yellow,f=i=s.__decorate([c.injectable(),s.__param(0,c.inject(d.ServiceIdentifiers.IOptions)),s.__metadata("design:paramtypes",[Object])],f),t.Logger=f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.Base="[javascript-obfuscator]",e.CLI="[javascript-obfuscator-cli]"}(t.LoggingPrefix||(t.LoggingPrefix={}))},function(e,t){e.exports=require("@babel/runtime/helpers/construct")},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(20),o=r(2),a=r(5),i=r(47),s=r(67),c=r(68),d=r(69),u=r(70);t.analyzersModule=new o.ContainerModule(function(e){e(a.ServiceIdentifiers.IStackTraceAnalyzer).to(u.StackTraceAnalyzer).inSingletonScope(),e(a.ServiceIdentifiers.ICalleeDataExtractor).to(s.FunctionDeclarationCalleeDataExtractor).whenTargetNamed(i.CalleeDataExtractor.FunctionDeclarationCalleeDataExtractor),e(a.ServiceIdentifiers.ICalleeDataExtractor).to(c.FunctionExpressionCalleeDataExtractor).whenTargetNamed(i.CalleeDataExtractor.FunctionExpressionCalleeDataExtractor),e(a.ServiceIdentifiers.ICalleeDataExtractor).to(d.ObjectExpressionCalleeDataExtractor).whenTargetNamed(i.CalleeDataExtractor.ObjectExpressionCalleeDataExtractor),e(a.ServiceIdentifiers.Factory__ICalleeDataExtractor).toFactory(n.InversifyContainerFacade.getCacheFactory(a.ServiceIdentifiers.ICalleeDataExtractor))})},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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=d.__importStar(r(16)),f=r(42),p=r(9),m=r(24),g=function(e){function t(){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).apply(this,arguments))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"extract",value:function(e,t){if(!p.NodeGuards.isIdentifierNode(t))return null;var r=this.getCalleeBlockStatement(m.NodeStatementUtils.getParentNodeWithStatements(e[0]),t.name);return r?{callee:r,name:t.name}:null}},{key:"getCalleeBlockStatement",value:function(e,t){var r=null;return l.traverse(e,{enter:function(e){if(p.NodeGuards.isFunctionDeclarationNode(e)&&e.id.name===t)return r=e.body,l.VisitorOption.Break}}),r}}]),t}(f.AbstractCalleeDataExtractor);g=d.__decorate([u.injectable()],g),t.FunctionDeclarationCalleeDataExtractor=g},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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=d.__importStar(r(16)),f=r(42),p=r(9),m=r(24),g=function(e){function t(){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).apply(this,arguments))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"extract",value:function(e,t){var r=null;return p.NodeGuards.isIdentifierNode(t)&&(r=this.getCalleeBlockStatement(m.NodeStatementUtils.getParentNodeWithStatements(e[0]),t.name)),p.NodeGuards.isFunctionExpressionNode(t)&&(r=t.body),r?{callee:r,name:t.name||null}:null}},{key:"getCalleeBlockStatement",value:function(e,t){var r=null;return l.traverse(e,{enter:function(e,n){if(p.NodeGuards.isFunctionExpressionNode(e)&&n&&p.NodeGuards.isVariableDeclaratorNode(n)&&p.NodeGuards.isIdentifierNode(n.id)&&n.id.name===t)return r=e.body,l.VisitorOption.Break}}),r}}]),t}(f.AbstractCalleeDataExtractor);g=d.__decorate([u.injectable()],g),t.FunctionExpressionCalleeDataExtractor=g},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=u.__importStar(r(16)),p=r(42),m=r(9),g=r(24),N=d=function(e){function t(){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).apply(this,arguments))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"extract",value:function(e,t){if(!m.NodeGuards.isMemberExpressionNode(t))return null;var r=this.createObjectMembersCallsChain([],t);if(!r.length)return null;var n=r[r.length-1],o=this.getCalleeBlockStatement(g.NodeStatementUtils.getParentNodeWithStatements(e[0]),r);return o?{callee:o,name:n}:null}},{key:"createObjectMembersCallsChain",value:function(e,t){if(m.NodeGuards.isIdentifierNode(t.property)&&!1===t.computed)e.unshift(t.property.name);else{if(!m.NodeGuards.isLiteralNode(t.property)||"string"!=typeof t.property.value&&"number"!=typeof t.property.value)return e;e.unshift(t.property.value)}return m.NodeGuards.isMemberExpressionNode(t.object)?this.createObjectMembersCallsChain(e,t.object):(m.NodeGuards.isIdentifierNode(t.object)&&e.unshift(t.object.name),e)}},{key:"getCalleeBlockStatement",value:function(e,t){var r=this,n=t.shift();if(!n)return null;var o=null;return f.traverse(e,{enter:function(e){if(m.NodeGuards.isVariableDeclaratorNode(e)&&m.NodeGuards.isIdentifierNode(e.id)&&e.init&&m.NodeGuards.isObjectExpressionNode(e.init)&&e.id.name===n)return o=r.findCalleeBlockStatement(e.init.properties,t),f.VisitorOption.Break}}),o}},{key:"findCalleeBlockStatement",value:function(e,t){var r=t.shift();if(!r)return null;var n=!0,o=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(n=(i=s.next()).done);n=!0){var c=i.value;if(d.isValidTargetPropertyNode(c,r)){if(m.NodeGuards.isObjectExpressionNode(c.value))return this.findCalleeBlockStatement(c.value.properties,t);if(m.NodeGuards.isFunctionExpressionNode(c.value))return c.value.body}}}catch(e){o=!0,a=e}finally{try{n||null==s.return||s.return()}finally{if(o)throw a}}return null}}],[{key:"isValidTargetPropertyNode",value:function(e,t){if(!e.key)return!1;var r=m.NodeGuards.isIdentifierNode(e.key)&&e.key.name===t,n=m.NodeGuards.isLiteralNode(e.key)&&Boolean(e.key.value)&&e.key.value===t;return r||n}}]),t}(p.AbstractCalleeDataExtractor);N=d=u.__decorate([l.injectable()],N),t.ObjectExpressionCalleeDataExtractor=N},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i,s=r(4),c=r(2),d=r(5),u=s.__importStar(r(16)),l=r(47),f=r(9),p=r(24),m=i=function(){function e(t){(0,o.default)(this,e),this.calleeDataExtractorFactory=t}return(0,a.default)(e,[{key:"analyze",value:function(e){return this.analyzeRecursive(e.body)}},{key:"analyzeRecursive",value:function(e){for(var t=this,r=i.getLimitIndex(e.length),n=[],o=e.length,a=function(o){if(o>r)return"break";var a=e[o];u.traverse(a,{enter:function(r){if(f.NodeGuards.isCallExpressionNode(r))return a.parentNode!==p.NodeStatementUtils.getParentNodeWithStatements(r)?u.VisitorOption.Skip:void t.analyzeCallExpressionNode(n,e,r)}})},s=0;sr&&(n=Math.round(r+t*i.limitThreshold))>t&&(n=t),n}}]),e}();m.calleeDataExtractorsList=[l.CalleeDataExtractor.FunctionDeclarationCalleeDataExtractor,l.CalleeDataExtractor.FunctionExpressionCalleeDataExtractor,l.CalleeDataExtractor.ObjectExpressionCalleeDataExtractor],m.limitThresholdActivationLength=25,m.limitThreshold=.002,m=i=s.__decorate([c.injectable(),s.__param(0,c.inject(d.ServiceIdentifiers.Factory__ICalleeDataExtractor)),s.__metadata("design:paramtypes",[Function])],m),t.StackTraceAnalyzer=m},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(20),o=r(2),a=r(5),i=r(48),s=r(29),c=r(72),d=r(73),u=r(74),l=r(75),f=r(76),p=r(77),m=r(78);t.controlFlowTransformersModule=new o.ContainerModule(function(e){e(a.ServiceIdentifiers.INodeTransformer).to(d.BlockStatementControlFlowTransformer).whenTargetNamed(s.NodeTransformer.BlockStatementControlFlowTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(l.DeadCodeInjectionTransformer).whenTargetNamed(s.NodeTransformer.DeadCodeInjectionTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(f.FunctionControlFlowTransformer).whenTargetNamed(s.NodeTransformer.FunctionControlFlowTransformer),e(a.ServiceIdentifiers.IControlFlowReplacer).to(c.BinaryExpressionControlFlowReplacer).whenTargetNamed(i.ControlFlowReplacer.BinaryExpressionControlFlowReplacer),e(a.ServiceIdentifiers.IControlFlowReplacer).to(u.CallExpressionControlFlowReplacer).whenTargetNamed(i.ControlFlowReplacer.CallExpressionControlFlowReplacer),e(a.ServiceIdentifiers.IControlFlowReplacer).to(p.LogicalExpressionControlFlowReplacer).whenTargetNamed(i.ControlFlowReplacer.LogicalExpressionControlFlowReplacer),e(a.ServiceIdentifiers.IControlFlowReplacer).to(m.StringLiteralControlFlowReplacer).whenTargetNamed(i.ControlFlowReplacer.StringLiteralControlFlowReplacer),e(a.ServiceIdentifiers.Factory__IControlFlowReplacer).toFactory(n.InversifyContainerFacade.getCacheFactory(a.ServiceIdentifiers.IControlFlowReplacer))})},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=r(5),p=r(21),m=r(49),g=d=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r,n))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"replace",value:function(e,t,r){var n=e.operator,o=this.controlFlowCustomNodeFactory(p.ControlFlowCustomNode.BinaryExpressionFunctionNode);o.initialize(n);var a=this.insertCustomNodeToControlFlowStorage(o,r,n,d.usingExistingIdentifierChance);return this.getControlFlowStorageCallNode(r.getStorageId(),a,e.left,e.right)}}]),t}(m.ExpressionWithOperatorControlFlowReplacer);g.usingExistingIdentifierChance=.5,g=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IControlFlowCustomNode)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],g),t.BinaryExpressionControlFlowReplacer=g},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=r(5),p=u.__importStar(r(16)),m=r(21),g=r(12),N=r(13),v=r(9),y=r(11),h=d=function(e){function t(e,r,n,a){var c;return(0,o.default)(this,t),(c=(0,i.default)(this,(0,s.default)(t).call(this,n,a))).controlFlowCustomNodeFactory=e,c.arrayUtils=r,c}return(0,c.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case g.TransformationStage.ControlFlowFlattening:return{leave:function(e,r){if(r&&v.NodeGuards.isBlockStatementNode(e))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){if(this.randomGenerator.getMathRandom()>this.options.controlFlowFlatteningThreshold||!d.canTransformBlockStatementNode(e))return e;var r=e.body,n=this.arrayUtils.createWithRange(r.length),o=this.arrayUtils.shuffle(n),a=n.map(function(e){return o.indexOf(e)}),i=this.controlFlowCustomNodeFactory(m.ControlFlowCustomNode.BlockStatementControlFlowFlatteningNode);i.initialize(r,o,a);var s=i.getNode()[0];return y.NodeUtils.parentizeNode(s,t),s}}],[{key:"isProhibitedStatementNode",value:function(e){var t=v.NodeGuards.isBreakStatementNode(e)||v.NodeGuards.isContinueStatementNode(e),r=v.NodeGuards.isVariableDeclarationNode(e)&&("const"===e.kind||"let"===e.kind),n=v.NodeGuards.isClassDeclarationNode(e);return v.NodeGuards.isFunctionDeclarationNode(e)||t||r||n}},{key:"canTransformBlockStatementNode",value:function(e){var t=!0;return p.traverse(e,{enter:function(e){if(v.NodeGuards.isWhileStatementNode(e))return p.VisitorOption.Skip;d.isProhibitedStatementNode(e)&&(t=!1)}}),e.body.length<=4&&(t=!1),t}}]),t}(N.AbstractNodeTransformer);h=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IControlFlowCustomNode)),u.__param(1,l.inject(f.ServiceIdentifiers.IArrayUtils)),u.__param(2,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(3,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object,Object])],h),t.BlockStatementControlFlowTransformer=h},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=r(5),p=r(21),m=r(43),g=r(9),N=d=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r,n))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"replace",value:function(e,t,r){var n=e.callee;if(!g.NodeGuards.isIdentifierNode(n))return e;var o=String(e.arguments.length),a=this.controlFlowCustomNodeFactory(p.ControlFlowCustomNode.CallExpressionFunctionNode),i=e.arguments;a.initialize(i);var s=this.insertCustomNodeToControlFlowStorage(a,r,o,d.usingExistingIdentifierChance);return this.getControlFlowStorageCallNode(r.getStorageId(),s,n,i)}},{key:"getControlFlowStorageCallNode",value:function(e,t,r,n){var o=this.controlFlowCustomNodeFactory(p.ControlFlowCustomNode.CallExpressionControlFlowStorageCallNode);o.initialize(e,t,r,n);var a=o.getNode()[0];if(!a||!g.NodeGuards.isExpressionStatementNode(a))throw new Error("`controlFlowStorageCallCustomNode.getNode()[0]` should returns array with `ExpressionStatement` node");return a.expression}}]),t}(m.AbstractControlFlowReplacer);N.usingExistingIdentifierChance=.5,N=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IControlFlowCustomNode)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],N),t.CallExpressionControlFlowReplacer=N},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=r(5),p=u.__importStar(r(16)),m=r(52),g=r(29),N=r(19),v=r(12),y=r(13),h=r(14),_=r(9),b=r(24),S=r(11),I=d=function(e){function t(e,r,n,a){var c;return(0,o.default)(this,t),(c=(0,i.default)(this,(0,s.default)(t).call(this,n,a))).deadCodeInjectionRootAstHostNodeSet=new Set,c.collectedBlockStatements=[],c.collectedBlockStatementsTotalLength=0,c.deadCodeInjectionCustomNodeFactory=e,c.transformersRunner=r,c}return(0,c.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case v.TransformationStage.DeadCodeInjection:return{enter:function(e,r){if(r&&_.NodeGuards.isProgramNode(e))return t.analyzeNode(e,r),e},leave:function(e,r){if(r&&_.NodeGuards.isBlockStatementNode(e))return t.transformNode(e,r)}};case v.TransformationStage.Finalizing:return this.deadCodeInjectionRootAstHostNodeSet.size?{enter:function(e,r){if(r&&t.isDeadCodeInjectionRootAstHostNode(e))return t.restoreNode(e,r)}}:null;default:return null}}},{key:"analyzeNode",value:function(e,t){var r=this;p.traverse(e,{enter:function(e){if(_.NodeGuards.isBlockStatementNode(e)){var t=S.NodeUtils.clone(e);if(d.isValidCollectedBlockStatementNode(t)){var n=r.makeClonedBlockStatementNodeUnique(t);r.collectedBlockStatements.push(n)}}}}),this.collectedBlockStatementsTotalLength=this.collectedBlockStatements.length}},{key:"transformNode",value:function(e,t){if(!this.collectedBlockStatements.length||this.collectedBlockStatementsTotalLengththis.options.deadCodeInjectionThreshold||!d.isValidWrappedBlockStatementNode(e))return e;var r=this.collectedBlockStatements.length-1,n=this.randomGenerator.getRandomInteger(0,r),o=this.collectedBlockStatements.splice(n,1)[0];return o===e?e:this.replaceBlockStatementNode(e,o,t)}},{key:"restoreNode",value:function(e,t){var r=e.body[0];if(!_.NodeGuards.isFunctionDeclarationNode(r))throw new Error("Wrong dead code injection root AST host node. Host node should contain `FunctionDeclaration` node");return r.body}},{key:"isDeadCodeInjectionRootAstHostNode",value:function(e){return _.NodeGuards.isBlockStatementNode(e)&&this.deadCodeInjectionRootAstHostNodeSet.has(e)}},{key:"makeClonedBlockStatementNodeUnique",value:function(e){var t=h.NodeFactory.functionExpressionNode([],e);return S.NodeUtils.parentizeNode(t,t),S.NodeUtils.parentizeNode(e,t),this.transformersRunner.transform(t,d.transformersToRenameBlockScopeIdentifiers,v.TransformationStage.Obfuscating).body}},{key:"replaceBlockStatementNode",value:function(e,t,r){var n=h.NodeFactory.blockStatementNode([h.NodeFactory.functionDeclarationNode(d.deadCodeInjectionRootAstHostNodeName,[],t)]);this.deadCodeInjectionRootAstHostNodeSet.add(n);var o=this.deadCodeInjectionCustomNodeFactory(m.DeadCodeInjectionCustomNode.BlockStatementDeadCodeInjectionNode);o.initialize(e,n);var a=o.getNode()[0];return S.NodeUtils.parentizeNode(a,r),a}}],[{key:"isProhibitedNodeInsideCollectedBlockStatement",value:function(e){return _.NodeGuards.isBreakStatementNode(e)||_.NodeGuards.isContinueStatementNode(e)||_.NodeGuards.isAwaitExpressionNode(e)||_.NodeGuards.isSuperNode(e)}},{key:"isScopeHoistingFunctionDeclaration",value:function(e){if(!_.NodeGuards.isFunctionDeclarationNode(e))return!1;var t=b.NodeStatementUtils.getScopeOfNode(e),r=_.NodeGuards.isSwitchCaseNode(t)?t.consequent:t.body,n=r.indexOf(e);if(0===n)return!1;var o=r.slice(0,n),a=h.NodeFactory.blockStatementNode(o),i=e.id.name,s=!1;return p.traverse(a,{enter:function(e){if(_.NodeGuards.isIdentifierNode(e)&&e.name===i)return s=!0,p.VisitorOption.Break}}),s}},{key:"isValidCollectedBlockStatementNode",value:function(e){if(!e.body.length)return!1;var t=0,r=!0;return p.traverse(e,{enter:function(e){if(_.NodeGuards.isBlockStatementNode(e)&&t++,t>d.maxNestedBlockStatementsCount||d.isProhibitedNodeInsideCollectedBlockStatement(e)||d.isScopeHoistingFunctionDeclaration(e))return r=!1,p.VisitorOption.Break}}),r}},{key:"isValidWrappedBlockStatementNode",value:function(e){if(!e.body.length)return!1;var t=!0;return p.traverse(e,{enter:function(e){if(d.isScopeHoistingFunctionDeclaration(e))return t=!1,p.VisitorOption.Break}}),!!t&&b.NodeStatementUtils.getParentNodeWithStatements(e).type!==N.NodeType.Program}}]),t}(y.AbstractNodeTransformer);I.deadCodeInjectionRootAstHostNodeName="deadCodeInjectionRootAstHostNode",I.maxNestedBlockStatementsCount=4,I.minCollectedBlockStatementsCount=5,I.transformersToRenameBlockScopeIdentifiers=[g.NodeTransformer.CatchClauseTransformer,g.NodeTransformer.ClassDeclarationTransformer,g.NodeTransformer.FunctionDeclarationTransformer,g.NodeTransformer.FunctionTransformer,g.NodeTransformer.LabeledStatementTransformer,g.NodeTransformer.VariableDeclarationTransformer],I=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IDeadCodeInjectionCustomNode)),u.__param(1,l.inject(f.ServiceIdentifiers.ITransformersRunner)),u.__param(2,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(3,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object,Object])],I),t.DeadCodeInjectionTransformer=I},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=r(5),p=u.__importStar(r(16)),m=r(21),g=r(48),N=r(19),v=r(12),y=r(13),h=r(25),_=r(9),b=r(17),S=r(24),I=d=function(e){function t(e,r,n,a,c){var d;return(0,o.default)(this,t),(d=(0,i.default)(this,(0,s.default)(t).call(this,a,c))).controlFlowData=new Map,d.visitedFunctionNodes=new Set,d.hostNodesWithControlFlowNode=new Set,d.controlFlowStorageFactory=e,d.controlFlowReplacerFactory=r,d.controlFlowCustomNodeFactory=n,d}return(0,c.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case v.TransformationStage.ControlFlowFlattening:return{leave:function(e,r){if(r&&(_.NodeGuards.isFunctionDeclarationNode(e)||_.NodeGuards.isFunctionExpressionNode(e)||_.NodeGuards.isArrowFunctionExpressionNode(e)))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){if(this.visitedFunctionNodes.add(e),!_.NodeGuards.isBlockStatementNode(e.body))return e;var r=this.getHostNode(e.body),n=this.getControlFlowStorage(r);if(this.controlFlowData.set(r,n),this.transformFunctionBody(e.body,n),!n.getLength())return e;var o=this.controlFlowCustomNodeFactory(m.ControlFlowCustomNode.ControlFlowStorageNode);return o.initialize(n),h.NodeAppender.prepend(r,o.getNode()),this.hostNodesWithControlFlowNode.add(r),e}},{key:"getControlFlowStorage",value:function(e){var t=this.controlFlowStorageFactory();if(this.controlFlowData.has(e)){this.hostNodesWithControlFlowNode.has(e)&&(_.NodeGuards.isSwitchCaseNode(e)?e.consequent.shift():e.body.shift());var r=this.controlFlowData.get(e);t.mergeWith(r,!0)}return t}},{key:"getHostNode",value:function(e){var t=S.NodeStatementUtils.getParentNodesWithStatements(e);return 1===t.length?e:(t.pop(),t.length>d.hostNodeSearchMinDepth&&t.splice(0,d.hostNodeSearchMinDepth),t.length>d.hostNodeSearchMaxDepth&&(t.length=d.hostNodeSearchMaxDepth),this.randomGenerator.getRandomGenerator().pickone(t))}},{key:"isVisitedFunctionNode",value:function(e){return(_.NodeGuards.isFunctionDeclarationNode(e)||_.NodeGuards.isFunctionExpressionNode(e)||_.NodeGuards.isArrowFunctionExpressionNode(e))&&this.visitedFunctionNodes.has(e)}},{key:"transformFunctionBody",value:function(e,t){var r=this;p.replace(e,{enter:function(e,n){if(b.NodeMetadata.isIgnoredNode(e))return p.VisitorOption.Skip;if(r.isVisitedFunctionNode(e)||!n)return p.VisitorOption.Skip;if(!d.controlFlowReplacersMap.has(e.type))return e;if(r.randomGenerator.getMathRandom()>r.options.controlFlowFlatteningThreshold)return e;var o=d.controlFlowReplacersMap.get(e.type);return void 0===o?e:Object.assign({},r.controlFlowReplacerFactory(o).replace(e,n,t),{parentNode:n})}})}}]),t}(y.AbstractNodeTransformer);I.controlFlowReplacersMap=new Map([[N.NodeType.BinaryExpression,g.ControlFlowReplacer.BinaryExpressionControlFlowReplacer],[N.NodeType.CallExpression,g.ControlFlowReplacer.CallExpressionControlFlowReplacer],[N.NodeType.LogicalExpression,g.ControlFlowReplacer.LogicalExpressionControlFlowReplacer],[N.NodeType.Literal,g.ControlFlowReplacer.StringLiteralControlFlowReplacer]]),I.hostNodeSearchMinDepth=0,I.hostNodeSearchMaxDepth=2,I=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__TControlFlowStorage)),u.__param(1,l.inject(f.ServiceIdentifiers.Factory__IControlFlowReplacer)),u.__param(2,l.inject(f.ServiceIdentifiers.Factory__IControlFlowCustomNode)),u.__param(3,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(4,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Function,Function,Object,Object])],I),t.FunctionControlFlowTransformer=I},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=r(5),p=r(21),m=r(49),g=r(9),N=r(11),v=d=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r,n))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"replace",value:function(e,t,r){if(this.checkForProhibitedExpressions(e.left,e.right))return e;var n=e.operator,o=this.controlFlowCustomNodeFactory(p.ControlFlowCustomNode.LogicalExpressionFunctionNode);o.initialize(n);var a=this.insertCustomNodeToControlFlowStorage(o,r,n,d.usingExistingIdentifierChance);return this.getControlFlowStorageCallNode(r.getStorageId(),a,e.left,e.right)}},{key:"checkForProhibitedExpressions",value:function(e,t){return[e,t].some(function(e){var t;return t=g.NodeGuards.isUnaryExpressionNode(e)?N.NodeUtils.getUnaryExpressionArgumentNode(e):e,!(g.NodeGuards.isLiteralNode(t)||g.NodeGuards.isIdentifierNode(t)||g.NodeGuards.isObjectExpressionNode(t)||g.NodeGuards.isExpressionStatementNode(t))})}}]),t}(m.ExpressionWithOperatorControlFlowReplacer);v.usingExistingIdentifierChance=.5,v=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IControlFlowCustomNode)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],v),t.LogicalExpressionControlFlowReplacer=v},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=r(5),p=r(21),m=r(43),g=r(9),N=d=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r,n))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"replace",value:function(e,t,r){if(g.NodeGuards.isPropertyNode(t)&&t.key===e)return e;if("string"!=typeof e.value||e.value.length<3)return e;var n=String(e.value),o=this.controlFlowCustomNodeFactory(p.ControlFlowCustomNode.StringLiteralNode);o.initialize(e.value);var a=this.insertCustomNodeToControlFlowStorage(o,r,n,d.usingExistingIdentifierChance);return this.getControlFlowStorageCallNode(r.getStorageId(),a)}},{key:"getControlFlowStorageCallNode",value:function(e,t){var r=this.controlFlowCustomNodeFactory(p.ControlFlowCustomNode.StringLiteralControlFlowStorageCallNode);r.initialize(e,t);var n=r.getNode()[0];if(!n||!g.NodeGuards.isExpressionStatementNode(n))throw new Error("`controlFlowStorageCallCustomNode.getNode()[0]` should returns array with `ExpressionStatement` node");return n.expression}}]),t}(m.AbstractControlFlowReplacer);N.usingExistingIdentifierChance=1,N=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IControlFlowCustomNode)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],N),t.StringLiteralControlFlowReplacer=N},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(2),o=r(20),a=r(5),i=r(29),s=r(53),c=r(80),d=r(81),u=r(82),l=r(83),f=r(84),p=r(85),m=r(86);t.convertingTransformersModule=new n.ContainerModule(function(e){e(a.ServiceIdentifiers.INodeTransformer).to(d.MemberExpressionTransformer).whenTargetNamed(i.NodeTransformer.MemberExpressionTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(u.MethodDefinitionTransformer).whenTargetNamed(i.NodeTransformer.MethodDefinitionTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(l.ObjectExpressionKeysTransformer).whenTargetNamed(i.NodeTransformer.ObjectExpressionKeysTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(f.ObjectExpressionTransformer).whenTargetNamed(i.NodeTransformer.ObjectExpressionTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(p.TemplateLiteralTransformer).whenTargetNamed(i.NodeTransformer.TemplateLiteralTransformer),e(a.ServiceIdentifiers.IPropertiesExtractor).to(c.AssignmentExpressionPropertiesExtractor).whenTargetNamed(s.PropertiesExtractor.AssignmentExpressionPropertiesExtractor),e(a.ServiceIdentifiers.IPropertiesExtractor).to(m.VariableDeclaratorPropertiesExtractor).whenTargetNamed(s.PropertiesExtractor.VariableDeclaratorPropertiesExtractor),e(a.ServiceIdentifiers.Factory__IPropertiesExtractor).toFactory(o.InversifyContainerFacade.getCacheFactory(a.ServiceIdentifiers.IPropertiesExtractor))})},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(54),p=function(e){function t(e,r){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"extract",value:function(e,t){var r=t.parentNode,n=t.left;return f.AbstractPropertiesExtractor.isProhibitedPattern(n)?e:r&&f.AbstractPropertiesExtractor.isProhibitedHostParent(r)?e:this.transformObjectExpressionNode(e,n)}}]),t}(f.AbstractPropertiesExtractor);p=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Object,Object])],p),t.AssignmentExpressionPropertiesExtractor=p},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(12),p=r(13),m=r(14),g=r(9),N=function(e){function t(e,r){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case f.TransformationStage.Converting:return{enter:function(e,r){if(r&&g.NodeGuards.isMemberExpressionNode(e))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){if(g.NodeGuards.isIdentifierNode(e.property)){if(e.computed)return e;e.computed=!0,e.property=m.NodeFactory.literalNode(e.property.name)}return e}}]),t}(p.AbstractNodeTransformer);N=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Object,Object])],N),t.MemberExpressionTransformer=N},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=r(5),p=r(12),m=r(13),g=r(14),N=r(9),v=d=function(e){function t(e,r){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case p.TransformationStage.Converting:return{enter:function(e,r){if(r&&N.NodeGuards.isMethodDefinitionNode(e))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){return N.NodeGuards.isIdentifierNode(e.key)&&!d.ignoredNames.includes(e.key.name)&&!1===e.computed&&(e.computed=!0,e.key=g.NodeFactory.literalNode(e.key.name)),e}}]),t}(m.AbstractNodeTransformer);v.ignoredNames=["constructor"],v=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(1,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Object,Object])],v),t.MethodDefinitionTransformer=v},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=r(5),p=r(19),m=r(53),g=r(12),N=r(13),v=r(9),y=d=function(e){function t(e,r,n){var a;return(0,o.default)(this,t),(a=(0,i.default)(this,(0,s.default)(t).call(this,r,n))).propertiesExtractorFactory=e,a}return(0,c.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;return e!==g.TransformationStage.Converting?null:{enter:function(e,r){if(t.options.transformObjectKeys&&r&&v.NodeGuards.isObjectExpressionNode(e))return t.transformNode(e,r)}}}},{key:"transformNode",value:function(e,t){if(!e.properties.length)return e;var r=d.propertiesExtractorsMap.get(t.type);return r?this.propertiesExtractorFactory(r).extract(e,t):e}}]),t}(N.AbstractNodeTransformer);y.propertiesExtractorsMap=new Map([[p.NodeType.AssignmentExpression,m.PropertiesExtractor.AssignmentExpressionPropertiesExtractor],[p.NodeType.VariableDeclarator,m.PropertiesExtractor.VariableDeclaratorPropertiesExtractor]]),y=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IPropertiesExtractor)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],y),t.ObjectExpressionKeysTransformer=y},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(12),p=r(13),m=r(14),g=r(9),N=function(e){function t(e,r,n){var a;return(0,o.default)(this,t),(a=(0,i.default)(this,(0,s.default)(t).call(this,r,n))).escapeSequenceEncoder=e,a}return(0,c.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case f.TransformationStage.Converting:return{enter:function(e,r){if(r&&g.NodeGuards.isObjectExpressionNode(e))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){var r=this;return e.properties.forEach(function(e){e.key&&(e.computed?r.transformComputedProperty(e):r.transformBaseProperty(e))}),e}},{key:"transformComputedProperty",value:function(e){g.NodeGuards.isLiteralNode(e.key)&&"string"==typeof e.key.value&&(e.key=m.NodeFactory.literalNode(this.getPropertyKeyValue(e.key.value)))}},{key:"transformBaseProperty",value:function(e){e.shorthand&&(e.shorthand=!1),g.NodeGuards.isIdentifierNode(e.key)&&(e.key=m.NodeFactory.literalNode(this.getPropertyKeyValue(e.key.name)))}},{key:"getPropertyKeyValue",value:function(e){return this.options.unicodeEscapeSequence?this.escapeSequenceEncoder.encode(e,!0):e}}]),t}(p.AbstractNodeTransformer);N=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.IEscapeSequenceEncoder)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Object,Object,Object])],N),t.ObjectExpressionTransformer=N},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=r(5),p=r(12),m=r(13),g=r(14),N=r(9),v=r(11),y=d=function(e){function t(e,r){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case p.TransformationStage.Converting:return{leave:function(e,r){if(r&&d.isValidTemplateLiteralNode(e,r))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){var r,n=e.expressions,o=[];if(e.quasis.forEach(function(e){o.push(g.NodeFactory.literalNode(e.value.cooked));var t=n.shift();t&&o.push(t)}),o=o.filter(function(e){return!(N.NodeGuards.isLiteralNode(e)&&""===e.value)}),d.isLiteralNodeWithStringValue(o[0])||d.isLiteralNodeWithStringValue(o[1])||o.unshift(g.NodeFactory.literalNode("")),o.length>1){var a=g.NodeFactory.binaryExpressionNode("+",o.shift(),o.shift());o.forEach(function(e){a=g.NodeFactory.binaryExpressionNode("+",a,e)}),r=a}else r=o[0];return v.NodeUtils.parentizeAst(r),r}}],[{key:"isLiteralNodeWithStringValue",value:function(e){return e&&N.NodeGuards.isLiteralNode(e)&&"string"==typeof e.value}},{key:"isValidTemplateLiteralNode",value:function(e,t){return N.NodeGuards.isTemplateLiteralNode(e)&&!N.NodeGuards.isTaggedTemplateExpressionNode(t)}}]),t}(m.AbstractNodeTransformer);y=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(1,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Object,Object])],y),t.TemplateLiteralTransformer=y},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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=d.__importStar(r(16)),p=r(54),m=r(9),g=function(e){function t(e,r){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"extract",value:function(e,t){return!m.NodeGuards.isIdentifierNode(t.id)||this.isProhibitedObjectExpressionNode(e,t.id)?e:this.transformObjectExpressionNode(e,t.id)}},{key:"getHostVariableDeclaratorNode",value:function(e){var t=e.parentNode;if(!t||!m.NodeGuards.isVariableDeclaratorNode(t))throw new Error("Cannot get `VariableDeclarator` node for `ObjectExpression` node");return t}},{key:"getHostVariableDeclarationNode",value:function(e){var t=e.parentNode;if(!t||!m.NodeGuards.isVariableDeclarationNode(t))throw new Error("Cannot get `VariableDeclaration` node for `VariableDeclarator` node");return t}},{key:"isProhibitedObjectExpressionNode",value:function(e,t){var r=this.getHostVariableDeclaratorNode(e),n=this.getHostVariableDeclarationNode(r).declarations,o=n.indexOf(r);if(o===n.length-1)return!1;var a=!1;return n.slice(o).forEach(function(e){f.traverse(e,{enter:function(e){return m.NodeGuards.isMemberExpressionNode(e)&&m.NodeGuards.isIdentifierNode(e.object)&&e.object.name===t.name?(a=!0,f.VisitorOption.Break):e}})}),a}}]),t}(p.AbstractPropertiesExtractor);g=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Object,Object])],g),t.VariableDeclaratorPropertiesExtractor=g},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(20),o=r(2),a=r(5),i=r(21),s=r(31),c=r(55),d=r(52),u=r(88),l=r(89),f=r(90),p=r(91),m=r(92),g=r(93),N=r(96),v=r(97),y=r(98),h=r(99),_=r(100),b=r(101),S=r(103),I=r(105),C=r(107),F=r(111),O=r(113),j=r(114),k=r(115),T=r(117),x=r(119),E=r(126),w=r(128),G=r(131),R=r(132);t.customNodesModule=new o.ContainerModule(function(e){e(a.ServiceIdentifiers.ICustomNode).to(b.ConsoleOutputDisableExpressionNode).whenTargetNamed(s.CustomNode.ConsoleOutputDisableExpressionNode),e(a.ServiceIdentifiers.ICustomNode).to(S.DebugProtectionFunctionCallNode).whenTargetNamed(s.CustomNode.DebugProtectionFunctionCallNode),e(a.ServiceIdentifiers.ICustomNode).to(I.DebugProtectionFunctionIntervalNode).whenTargetNamed(s.CustomNode.DebugProtectionFunctionIntervalNode),e(a.ServiceIdentifiers.ICustomNode).to(C.DebugProtectionFunctionNode).whenTargetNamed(s.CustomNode.DebugProtectionFunctionNode),e(a.ServiceIdentifiers.ICustomNode).to(F.DomainLockNode).whenTargetNamed(s.CustomNode.DomainLockNode),e(a.ServiceIdentifiers.ICustomNode).to(k.NodeCallsControllerFunctionNode).whenTargetNamed(s.CustomNode.NodeCallsControllerFunctionNode),e(a.ServiceIdentifiers.ICustomNode).to(T.SelfDefendingUnicodeNode).whenTargetNamed(s.CustomNode.SelfDefendingUnicodeNode),e(a.ServiceIdentifiers.ICustomNode).to(x.StringArrayCallsWrapper).whenTargetNamed(s.CustomNode.StringArrayCallsWrapper),e(a.ServiceIdentifiers.ICustomNode).to(E.StringArrayNode).whenTargetNamed(s.CustomNode.StringArrayNode),e(a.ServiceIdentifiers.ICustomNode).to(w.StringArrayRotateFunctionNode).whenTargetNamed(s.CustomNode.StringArrayRotateFunctionNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(g.BinaryExpressionFunctionNode).whenTargetNamed(i.ControlFlowCustomNode.BinaryExpressionFunctionNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(N.BlockStatementControlFlowFlatteningNode).whenTargetNamed(i.ControlFlowCustomNode.BlockStatementControlFlowFlatteningNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(y.CallExpressionControlFlowStorageCallNode).whenTargetNamed(i.ControlFlowCustomNode.CallExpressionControlFlowStorageCallNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(h.CallExpressionFunctionNode).whenTargetNamed(i.ControlFlowCustomNode.CallExpressionFunctionNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(_.ControlFlowStorageNode).whenTargetNamed(i.ControlFlowCustomNode.ControlFlowStorageNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(O.ExpressionWithOperatorControlFlowStorageCallNode).whenTargetNamed(i.ControlFlowCustomNode.ExpressionWithOperatorControlFlowStorageCallNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(j.LogicalExpressionFunctionNode).whenTargetNamed(i.ControlFlowCustomNode.LogicalExpressionFunctionNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(R.StringLiteralNode).whenTargetNamed(i.ControlFlowCustomNode.StringLiteralNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(G.StringLiteralControlFlowStorageCallNode).whenTargetNamed(i.ControlFlowCustomNode.StringLiteralControlFlowStorageCallNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(v.BlockStatementDeadCodeInjectionNode).whenTargetNamed(d.DeadCodeInjectionCustomNode.BlockStatementDeadCodeInjectionNode),e(a.ServiceIdentifiers.ICustomNodeGroup).to(u.ConsoleOutputCustomNodeGroup).whenTargetNamed(c.CustomNodeGroup.ConsoleOutputCustomNodeGroup),e(a.ServiceIdentifiers.ICustomNodeGroup).to(l.DebugProtectionCustomNodeGroup).whenTargetNamed(c.CustomNodeGroup.DebugProtectionCustomNodeGroup),e(a.ServiceIdentifiers.ICustomNodeGroup).to(f.DomainLockCustomNodeGroup).whenTargetNamed(c.CustomNodeGroup.DomainLockCustomNodeGroup),e(a.ServiceIdentifiers.ICustomNodeGroup).to(p.SelfDefendingCustomNodeGroup).whenTargetNamed(c.CustomNodeGroup.SelfDefendingCustomNodeGroup),e(a.ServiceIdentifiers.ICustomNodeGroup).to(m.StringArrayCustomNodeGroup).whenTargetNamed(c.CustomNodeGroup.StringArrayCustomNodeGroup),e(a.ServiceIdentifiers.Factory__ICustomNode).toFactory(n.InversifyContainerFacade.getFactory(a.ServiceIdentifiers.ICustomNode)),e(a.ServiceIdentifiers.Factory__IControlFlowCustomNode).toFactory(n.InversifyContainerFacade.getConstructorFactory(a.ServiceIdentifiers.Newable__ICustomNode,a.ServiceIdentifiers.Factory__IIdentifierNamesGenerator,a.ServiceIdentifiers.IRandomGenerator,a.ServiceIdentifiers.IOptions)),e(a.ServiceIdentifiers.Factory__IDeadCodeInjectionCustomNode).toFactory(n.InversifyContainerFacade.getConstructorFactory(a.ServiceIdentifiers.Newable__ICustomNode,a.ServiceIdentifiers.Factory__IIdentifierNamesGenerator,a.ServiceIdentifiers.IRandomGenerator,a.ServiceIdentifiers.IOptions)),e(a.ServiceIdentifiers.Factory__ICustomNodeGroup).toFactory(n.InversifyContainerFacade.getFactory(a.ServiceIdentifiers.ICustomNodeGroup))})},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(10),p=r(31),m=r(26),g=r(33),N=r(25),v=function(e){function t(e,r,n,a){var c;return(0,o.default)(this,t),(c=(0,i.default)(this,(0,s.default)(t).call(this,r,n,a))).appendEvent=m.ObfuscationEvent.BeforeObfuscation,c.customNodeFactory=e,c}return(0,c.default)(t,e),(0,a.default)(t,[{key:"appendCustomNodes",value:function(e,t){var r=this.getRandomStackTraceIndex(t.length);this.appendCustomNodeIfExist(p.CustomNode.ConsoleOutputDisableExpressionNode,function(n){N.NodeAppender.appendToOptimalBlockScope(t,e,n.getNode(),r)}),this.appendCustomNodeIfExist(p.CustomNode.NodeCallsControllerFunctionNode,function(n){var o=t.length?N.NodeAppender.getOptimalBlockScope(t,r,1):e;N.NodeAppender.prepend(o,n.getNode())})}},{key:"initialize",value:function(){if(this.customNodes=new Map,this.options.disableConsoleOutput){var e=this.identifierNamesGenerator.generate(),t=this.customNodeFactory(p.CustomNode.ConsoleOutputDisableExpressionNode),r=this.customNodeFactory(p.CustomNode.NodeCallsControllerFunctionNode);t.initialize(e),r.initialize(this.appendEvent,e),this.customNodes.set(p.CustomNode.ConsoleOutputDisableExpressionNode,t),this.customNodes.set(p.CustomNode.NodeCallsControllerFunctionNode,r)}}}]),t}(g.AbstractCustomNodeGroup);d.__decorate([f.initializable(),d.__metadata("design:type",Map)],v.prototype,"customNodes",void 0),v=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__ICustomNode)),d.__param(1,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(3,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Function,Object,Object])],v),t.ConsoleOutputCustomNodeGroup=v},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(10),p=r(31),m=r(26),g=r(33),N=r(25),v=r(9),y=function(e){function t(e,r,n,a){var c;return(0,o.default)(this,t),(c=(0,i.default)(this,(0,s.default)(t).call(this,r,n,a))).appendEvent=m.ObfuscationEvent.BeforeObfuscation,c.customNodeFactory=e,c}return(0,c.default)(t,e),(0,a.default)(t,[{key:"appendCustomNodes",value:function(e,t){var r=this,n=this.getRandomStackTraceIndex(t.length);this.appendCustomNodeIfExist(p.CustomNode.DebugProtectionFunctionCallNode,function(r){N.NodeAppender.appendToOptimalBlockScope(t,e,r.getNode(),n)}),this.appendCustomNodeIfExist(p.CustomNode.DebugProtectionFunctionNode,function(t){N.NodeAppender.append(e,t.getNode())}),this.appendCustomNodeIfExist(p.CustomNode.DebugProtectionFunctionIntervalNode,function(t){var n=v.NodeGuards.isSwitchCaseNode(e)?e.consequent.length:e.body.length,o=r.randomGenerator.getRandomInteger(0,n);N.NodeAppender.insertAtIndex(e,t.getNode(),o)}),this.appendCustomNodeIfExist(p.CustomNode.NodeCallsControllerFunctionNode,function(r){var o=t.length?N.NodeAppender.getOptimalBlockScope(t,n,1):e;N.NodeAppender.prepend(o,r.getNode())})}},{key:"initialize",value:function(){if(this.customNodes=new Map,this.options.debugProtection){var e=this.identifierNamesGenerator.generate(),t=this.identifierNamesGenerator.generate(),r=this.customNodeFactory(p.CustomNode.DebugProtectionFunctionNode),n=this.customNodeFactory(p.CustomNode.DebugProtectionFunctionCallNode),o=this.customNodeFactory(p.CustomNode.DebugProtectionFunctionIntervalNode),a=this.customNodeFactory(p.CustomNode.NodeCallsControllerFunctionNode);r.initialize(e),n.initialize(e,t),o.initialize(e),a.initialize(this.appendEvent,t),this.customNodes.set(p.CustomNode.DebugProtectionFunctionNode,r),this.customNodes.set(p.CustomNode.DebugProtectionFunctionCallNode,n),this.options.debugProtectionInterval&&this.customNodes.set(p.CustomNode.DebugProtectionFunctionIntervalNode,o),this.customNodes.set(p.CustomNode.NodeCallsControllerFunctionNode,a)}}}]),t}(g.AbstractCustomNodeGroup);d.__decorate([f.initializable(),d.__metadata("design:type",Map)],y.prototype,"customNodes",void 0),y=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__ICustomNode)),d.__param(1,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(3,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Function,Object,Object])],y),t.DebugProtectionCustomNodeGroup=y},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(10),p=r(31),m=r(26),g=r(33),N=r(25),v=function(e){function t(e,r,n,a){var c;return(0,o.default)(this,t),(c=(0,i.default)(this,(0,s.default)(t).call(this,r,n,a))).appendEvent=m.ObfuscationEvent.BeforeObfuscation,c.customNodeFactory=e,c}return(0,c.default)(t,e),(0,a.default)(t,[{key:"appendCustomNodes",value:function(e,t){var r=this.getRandomStackTraceIndex(t.length);this.appendCustomNodeIfExist(p.CustomNode.DomainLockNode,function(n){N.NodeAppender.appendToOptimalBlockScope(t,e,n.getNode(),r)}),this.appendCustomNodeIfExist(p.CustomNode.NodeCallsControllerFunctionNode,function(n){var o=t.length?N.NodeAppender.getOptimalBlockScope(t,r,1):e;N.NodeAppender.prepend(o,n.getNode())})}},{key:"initialize",value:function(){if(this.customNodes=new Map,this.options.domainLock.length){var e=this.identifierNamesGenerator.generate(),t=this.customNodeFactory(p.CustomNode.DomainLockNode),r=this.customNodeFactory(p.CustomNode.NodeCallsControllerFunctionNode);t.initialize(e),r.initialize(this.appendEvent,e),this.customNodes.set(p.CustomNode.DomainLockNode,t),this.customNodes.set(p.CustomNode.NodeCallsControllerFunctionNode,r)}}}]),t}(g.AbstractCustomNodeGroup);d.__decorate([f.initializable(),d.__metadata("design:type",Map)],v.prototype,"customNodes",void 0),v=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__ICustomNode)),d.__param(1,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(3,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Function,Object,Object])],v),t.DomainLockCustomNodeGroup=v},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(10),p=r(31),m=r(26),g=r(33),N=r(25),v=function(e){function t(e,r,n,a){var c;return(0,o.default)(this,t),(c=(0,i.default)(this,(0,s.default)(t).call(this,r,n,a))).appendEvent=m.ObfuscationEvent.AfterObfuscation,c.customNodeFactory=e,c}return(0,c.default)(t,e),(0,a.default)(t,[{key:"appendCustomNodes",value:function(e,t){var r=this.getRandomStackTraceIndex(t.length);this.appendCustomNodeIfExist(p.CustomNode.SelfDefendingUnicodeNode,function(n){N.NodeAppender.appendToOptimalBlockScope(t,e,n.getNode(),r)}),this.appendCustomNodeIfExist(p.CustomNode.NodeCallsControllerFunctionNode,function(n){var o=t.length?N.NodeAppender.getOptimalBlockScope(t,r,1):e;N.NodeAppender.prepend(o,n.getNode())})}},{key:"initialize",value:function(){if(this.customNodes=new Map,this.options.selfDefending){var e=this.identifierNamesGenerator.generate(),t=this.customNodeFactory(p.CustomNode.SelfDefendingUnicodeNode),r=this.customNodeFactory(p.CustomNode.NodeCallsControllerFunctionNode);t.initialize(e),r.initialize(this.appendEvent,e),this.customNodes.set(p.CustomNode.SelfDefendingUnicodeNode,t),this.customNodes.set(p.CustomNode.NodeCallsControllerFunctionNode,r)}}}]),t}(g.AbstractCustomNodeGroup);d.__decorate([f.initializable(),d.__metadata("design:type",Map)],v.prototype,"customNodes",void 0),v=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__ICustomNode)),d.__param(1,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(3,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Function,Object,Object])],v),t.SelfDefendingCustomNodeGroup=v},function(e,t,r){"use strict";var n=r(0),o=n(r(30)),a=n(r(1)),i=n(r(3)),s=n(r(6)),c=n(r(7)),d=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var u=r(4),l=r(2),f=r(5),p=r(10),m=r(31),g=r(26),N=r(33),v=r(25),y=function(e){function t(e,r,n,o,i){var d;return(0,a.default)(this,t),(d=(0,s.default)(this,(0,c.default)(t).call(this,n,o,i))).appendEvent=g.ObfuscationEvent.AfterObfuscation,d.customNodeFactory=e,d.stringArrayStorage=r,d}return(0,d.default)(t,e),(0,i.default)(t,[{key:"appendCustomNodes",value:function(e,t){this.stringArrayStorage.getLength()&&(this.appendCustomNodeIfExist(m.CustomNode.StringArrayNode,function(t){v.NodeAppender.prepend(e,t.getNode())}),this.appendCustomNodeIfExist(m.CustomNode.StringArrayCallsWrapper,function(t){v.NodeAppender.insertAtIndex(e,t.getNode(),1)}),this.appendCustomNodeIfExist(m.CustomNode.StringArrayRotateFunctionNode,function(t){v.NodeAppender.insertAtIndex(e,t.getNode(),1)}))}},{key:"initialize",value:function(){if(this.customNodes=new Map,this.options.stringArray){var e,t=this.customNodeFactory(m.CustomNode.StringArrayNode),r=this.customNodeFactory(m.CustomNode.StringArrayCallsWrapper),n=this.customNodeFactory(m.CustomNode.StringArrayRotateFunctionNode),a=this.stringArrayStorage.getStorageId().split("|"),i=(0,o.default)(a,2),s=i[0],c=i[1];e=this.options.rotateStringArray?this.randomGenerator.getRandomInteger(100,500):0,t.initialize(this.stringArrayStorage,s,e),r.initialize(s,c),n.initialize(s,e),this.customNodes.set(m.CustomNode.StringArrayNode,t),this.customNodes.set(m.CustomNode.StringArrayCallsWrapper,r),this.options.rotateStringArray&&this.customNodes.set(m.CustomNode.StringArrayRotateFunctionNode,n)}}}]),t}(N.AbstractCustomNodeGroup);u.__decorate([p.initializable(),u.__metadata("design:type",Map)],y.prototype,"customNodes",void 0),y=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__ICustomNode)),u.__param(1,l.inject(f.ServiceIdentifiers.TStringArrayStorage)),u.__param(2,l.inject(f.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),u.__param(3,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(4,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Function,Object,Object])],y),t.StringArrayCustomNodeGroup=y},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(10),p=r(15),m=r(14),g=r(11),N=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r,n))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"initialize",value:function(e){this.operator=e}},{key:"getNodeStructure",value:function(){var e=m.NodeFactory.expressionStatementNode(m.NodeFactory.functionExpressionNode([m.NodeFactory.identifierNode("x"),m.NodeFactory.identifierNode("y")],m.NodeFactory.blockStatementNode([m.NodeFactory.returnStatementNode(m.NodeFactory.binaryExpressionNode(this.operator,m.NodeFactory.identifierNode("x"),m.NodeFactory.identifierNode("y")))])));return g.NodeUtils.parentizeAst(e),[e]}}]),t}(p.AbstractCustomNode);d.__decorate([f.initializable(),d.__metadata("design:type",String)],N.prototype,"operator",void 0),N=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object])],N),t.BinaryExpressionFunctionNode=N},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalVariableTemplate1=function(){return"\n var that;\n \n try {\n var getGlobal = Function('return (function() ' + '{}.constructor(\"return this\")( )' + ');');\n \n that = getGlobal();\n } catch (e) {\n that = window;\n }\n "}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalVariableTemplate2=function(){return"\n var getGlobal = function () {\n var globalObject;\n \n try {\n globalObject = Function('return (function() ' + '{}.constructor(\"return this\")( )' + ');')();\n } catch (e) {\n globalObject = window;\n }\n \n return globalObject;\n };\n var that = getGlobal();\n "}},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(10),p=r(15),m=r(14),g=r(9),N=r(11),v=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r,n))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"initialize",value:function(e,t,r){this.blockStatementBody=e,this.shuffledKeys=t,this.originalKeysIndexesInShuffledArray=r}},{key:"getNodeStructure",value:function(){var e=this,t=this.randomGenerator.getRandomString(6),r=this.randomGenerator.getRandomString(6),n=m.NodeFactory.blockStatementNode([m.NodeFactory.variableDeclarationNode([m.NodeFactory.variableDeclaratorNode(m.NodeFactory.identifierNode(t),m.NodeFactory.callExpressionNode(m.NodeFactory.memberExpressionNode(m.NodeFactory.literalNode(this.originalKeysIndexesInShuffledArray.join("|")),m.NodeFactory.identifierNode("split")),[m.NodeFactory.literalNode("|")])),m.NodeFactory.variableDeclaratorNode(m.NodeFactory.identifierNode(r),m.NodeFactory.literalNode(0))]),m.NodeFactory.whileStatementNode(m.NodeFactory.literalNode(!0),m.NodeFactory.blockStatementNode([m.NodeFactory.switchStatementNode(m.NodeFactory.memberExpressionNode(m.NodeFactory.identifierNode(t),m.NodeFactory.updateExpressionNode("++",m.NodeFactory.identifierNode(r)),!0),this.shuffledKeys.map(function(t,r){var n=e.blockStatementBody[t],o=[n];return g.NodeGuards.isReturnStatementNode(n)||o.push(m.NodeFactory.continueStatement()),m.NodeFactory.switchCaseNode(m.NodeFactory.literalNode(String(r)),o)})),m.NodeFactory.breakStatement()]))]);return N.NodeUtils.parentizeAst(n),[n]}}]),t}(p.AbstractCustomNode);d.__decorate([f.initializable(),d.__metadata("design:type",Array)],v.prototype,"blockStatementBody",void 0),d.__decorate([f.initializable(),d.__metadata("design:type",Array)],v.prototype,"originalKeysIndexesInShuffledArray",void 0),d.__decorate([f.initializable(),d.__metadata("design:type",Array)],v.prototype,"shuffledKeys",void 0),v=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object])],v),t.BlockStatementControlFlowFlatteningNode=v},function(e,t,r){"use strict";var n=r(0),o=n(r(30)),a=n(r(1)),i=n(r(3)),s=n(r(6)),c=n(r(7)),d=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var u=r(4),l=r(2),f=r(5),p=r(10),m=r(15),g=r(14),N=r(11),v=function(e){function t(e,r,n){return(0,a.default)(this,t),(0,s.default)(this,(0,c.default)(t).call(this,e,r,n))}return(0,d.default)(t,e),(0,i.default)(t,[{key:"initialize",value:function(e,t){this.blockStatementNode=e,this.deadCodeInjectionRootAstHostNode=t}},{key:"getNodeStructure",value:function(){var e=this.randomGenerator.getMathRandom()>.5,t=this.randomGenerator.getMathRandom()>.5,r=e?"===":"!==",n=this.randomGenerator.getRandomString(5),a=t?n:this.randomGenerator.getRandomString(5),i=e===t?[this.blockStatementNode,this.deadCodeInjectionRootAstHostNode]:[this.deadCodeInjectionRootAstHostNode,this.blockStatementNode],s=(0,o.default)(i,2),c=s[0],d=s[1],u=g.NodeFactory.blockStatementNode([g.NodeFactory.ifStatementNode(g.NodeFactory.binaryExpressionNode(r,g.NodeFactory.literalNode(n),g.NodeFactory.literalNode(a)),c,d)]);return N.NodeUtils.parentizeAst(u),[u]}}]),t}(m.AbstractCustomNode);u.__decorate([p.initializable(),u.__metadata("design:type",Object)],v.prototype,"blockStatementNode",void 0),u.__decorate([p.initializable(),u.__metadata("design:type",Object)],v.prototype,"deadCodeInjectionRootAstHostNode",void 0),v=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],v),t.BlockStatementDeadCodeInjectionNode=v},function(e,t,r){"use strict";var n=r(0),o=n(r(28)),a=n(r(1)),i=n(r(3)),s=n(r(6)),c=n(r(7)),d=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var u=r(4),l=r(2),f=r(5),p=r(10),m=r(15),g=r(14),N=r(11),v=function(e){function t(e,r,n){return(0,a.default)(this,t),(0,s.default)(this,(0,c.default)(t).call(this,e,r,n))}return(0,d.default)(t,e),(0,i.default)(t,[{key:"initialize",value:function(e,t,r,n){this.controlFlowStorageName=e,this.controlFlowStorageKey=t,this.callee=r,this.expressionArguments=n}},{key:"getNodeStructure",value:function(){var e=g.NodeFactory.expressionStatementNode(g.NodeFactory.callExpressionNode(g.NodeFactory.memberExpressionNode(g.NodeFactory.identifierNode(this.controlFlowStorageName),g.NodeFactory.identifierNode(this.controlFlowStorageKey)),[this.callee].concat((0,o.default)(this.expressionArguments))));return N.NodeUtils.parentizeAst(e),[e]}}]),t}(m.AbstractCustomNode);u.__decorate([p.initializable(),u.__metadata("design:type",Object)],v.prototype,"callee",void 0),u.__decorate([p.initializable(),u.__metadata("design:type",String)],v.prototype,"controlFlowStorageKey",void 0),u.__decorate([p.initializable(),u.__metadata("design:type",String)],v.prototype,"controlFlowStorageName",void 0),u.__decorate([p.initializable(),u.__metadata("design:type",Array)],v.prototype,"expressionArguments",void 0),v=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],v),t.CallExpressionControlFlowStorageCallNode=v},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(10),p=r(15),m=r(14),g=r(11),N=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r,n))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"initialize",value:function(e){this.expressionArguments=e}},{key:"getNodeStructure",value:function(){for(var e=m.NodeFactory.identifierNode("callee"),t=[],r=this.expressionArguments.length,n=0;n 0;\n \n switch (isPositive) {\n case true:\n return this.item + \'_\' + this.value + \'_\' + i;\n default:\n this.item + \'_\' + this.value;\n }\n }\n }()\n };\n };\n \n var regExp = new RegExp("[{diff}]", "g");\n var domains = "{domains}".replace(regExp, "").split(";");\n var document;\n var domain;\n var location;\n var hostname;\n\n for (var d in that) {\n if (d.length == 8 && d.charCodeAt(7) == 116 && d.charCodeAt(5) == 101 && d.charCodeAt(3) == 117 && d.charCodeAt(0) == 100) {\n document = d;\n \n break;\n }\n }\n\n for (var d1 in that[document]) {\n if (d1.length == 6 && d1.charCodeAt(5) == 110 && d1.charCodeAt(0) == 100) {\n domain = d1;\n \n break;\n }\n }\n\n if (!("~" > domain)) {\n for (var d2 in that[document]) {\n if (d2.length == 8 && d2.charCodeAt(7) == 110 && d2.charCodeAt(0) == 108) {\n location = d2;\n \n break;\n }\n }\n\n for (var d3 in that[document][location]) {\n if (d3.length == 8 && d3.charCodeAt(7) == 101 && d3.charCodeAt(0) == 104) {\n hostname = d3;\n \n break;\n }\n }\n }\n \n if (!document || !that[document]) {\n return;\n }\n \n var documentDomain = that[document][domain];\n var documentLocationHostName = !!that[document][location] && that[document][location][hostname];\n var currentDomain = documentDomain || documentLocationHostName;\n \n if (!currentDomain) {\n return;\n }\n \n var ok = false;\n \n for (var i = 0; i < domains.length; i++) {\n var domain = domains[i];\n var position = currentDomain.length - domain.length;\n var lastIndex = currentDomain.indexOf(domain, position);\n var endsWith = lastIndex !== -1 && lastIndex === position;\n \n if (endsWith) {\n if (currentDomain.length == domain.length || domain.indexOf(".") === 0) {\n ok = true;\n }\n }\n }\n \n if (!ok) {\n data;\n } else {\n return;\n }\n \n func();\n });\n\n {domainLockFunctionName}();\n '}},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(10),p=r(15),m=r(14),g=r(11),N=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r,n))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"initialize",value:function(e,t,r,n){this.controlFlowStorageName=e,this.controlFlowStorageKey=t,this.leftValue=r,this.rightValue=n}},{key:"getNodeStructure",value:function(){var e=m.NodeFactory.expressionStatementNode(m.NodeFactory.callExpressionNode(m.NodeFactory.memberExpressionNode(m.NodeFactory.identifierNode(this.controlFlowStorageName),m.NodeFactory.identifierNode(this.controlFlowStorageKey)),[this.leftValue,this.rightValue]));return g.NodeUtils.parentizeAst(e),[e]}}]),t}(p.AbstractCustomNode);d.__decorate([f.initializable(),d.__metadata("design:type",String)],N.prototype,"controlFlowStorageKey",void 0),d.__decorate([f.initializable(),d.__metadata("design:type",String)],N.prototype,"controlFlowStorageName",void 0),d.__decorate([f.initializable(),d.__metadata("design:type",Object)],N.prototype,"leftValue",void 0),d.__decorate([f.initializable(),d.__metadata("design:type",Object)],N.prototype,"rightValue",void 0),N=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object])],N),t.ExpressionWithOperatorControlFlowStorageCallNode=N},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(10),p=r(15),m=r(14),g=r(11),N=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r,n))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"initialize",value:function(e){this.operator=e}},{key:"getNodeStructure",value:function(){var e=m.NodeFactory.expressionStatementNode(m.NodeFactory.functionExpressionNode([m.NodeFactory.identifierNode("x"),m.NodeFactory.identifierNode("y")],m.NodeFactory.blockStatementNode([m.NodeFactory.returnStatementNode(m.NodeFactory.logicalExpressionNode(this.operator,m.NodeFactory.identifierNode("x"),m.NodeFactory.identifierNode("y")))])));return g.NodeUtils.parentizeAst(e),[e]}}]),t}(p.AbstractCustomNode);d.__decorate([f.initializable(),d.__metadata("design:type",String)],N.prototype,"operator",void 0),N=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object])],N),t.LogicalExpressionFunctionNode=N},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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=d.__importDefault(r(18)),p=r(26),m=r(10),g=r(116),N=r(38),v=r(15),y=r(32),h=r(11),_=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r,n))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"initialize",value:function(e,t){this.appendEvent=e,this.callsControllerFunctionName=t}},{key:"getNodeStructure",value:function(){return h.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){return this.appendEvent===p.ObfuscationEvent.AfterObfuscation?y.JavaScriptObfuscator.obfuscate(f.default(g.SingleNodeCallControllerTemplate(),{singleNodeCallControllerFunctionName:this.callsControllerFunctionName}),Object.assign({},N.NO_ADDITIONAL_NODES_PRESET,{identifierNamesGenerator:this.options.identifierNamesGenerator,seed:this.options.seed})).getObfuscatedCode():f.default(g.SingleNodeCallControllerTemplate(),{singleNodeCallControllerFunctionName:this.callsControllerFunctionName})}}]),t}(v.AbstractCustomNode);d.__decorate([m.initializable(),d.__metadata("design:type",String)],_.prototype,"callsControllerFunctionName",void 0),d.__decorate([m.initializable(),d.__metadata("design:type",String)],_.prototype,"appendEvent",void 0),_=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object])],_),t.NodeCallsControllerFunctionNode=_},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SingleNodeCallControllerTemplate=function(){return"\n var {singleNodeCallControllerFunctionName} = (function(){\n var firstCall = true;\n \n return function (context, fn){\n var rfn = firstCall ? function(){\n if(fn){\n var res = fn.apply(context, arguments);\n fn = null;\n return res;\n }\n } : function(){}\n \n firstCall = false;\n \n return rfn;\n }\n })();\n "}},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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=d.__importDefault(r(18)),p=r(10),m=r(38),g=r(118),N=r(15),v=r(32),y=r(11),h=function(e){function t(e,r,n,a){var c;return(0,o.default)(this,t),(c=(0,i.default)(this,(0,s.default)(t).call(this,e,r,a))).escapeSequenceEncoder=n,c}return(0,c.default)(t,e),(0,a.default)(t,[{key:"initialize",value:function(e){this.callsControllerFunctionName=e}},{key:"getNodeStructure",value:function(){return y.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){return v.JavaScriptObfuscator.obfuscate(f.default(g.SelfDefendingTemplate(this.escapeSequenceEncoder),{selfDefendingFunctionName:this.identifierNamesGenerator.generate(),singleNodeCallControllerFunctionName:this.callsControllerFunctionName}),Object.assign({},m.NO_ADDITIONAL_NODES_PRESET,{identifierNamesGenerator:this.options.identifierNamesGenerator,seed:this.options.seed,unicodeEscapeSequence:!0})).getObfuscatedCode()}}]),t}(N.AbstractCustomNode);d.__decorate([p.initializable(),d.__metadata("design:type",String)],h.prototype,"callsControllerFunctionName",void 0),h=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IEscapeSequenceEncoder)),d.__param(3,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object,Object])],h),t.SelfDefendingUnicodeNode=h},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SelfDefendingTemplate=function(e){return"\n var {selfDefendingFunctionName} = {singleNodeCallControllerFunctionName}(this, function () {\n var func1 = function(){return 'dev';},\n func2 = function () {\n return 'window';\n };\n \n var test1 = function () {\n var regExp = new RegExp('".concat(e.encode("\\w+ *\\(\\) *{\\w+ *['|\"].+['|\"];? *}",!0),"');\n \n return !regExp.test(func1.toString());\n };\n \n var test2 = function () {\n var regExp = new RegExp('").concat(e.encode("(\\\\[x|u](\\w){2,4})+",!0),"');\n \n return regExp.test(func2.toString());\n };\n \n var recursiveFunc1 = function (string) {\n var i = ~-1 >> 1 + 255 % 0;\n \n if (string.indexOf('i' === i)) {\n recursiveFunc2(string)\n }\n };\n \n var recursiveFunc2 = function (string) {\n var i = ~-4 >> 1 + 255 % 0;\n \n if (string.indexOf((true+\"\")[3]) !== i) {\n recursiveFunc1(string)\n }\n };\n \n if (!test1()) {\n if (!test2()) {\n recursiveFunc1('indеxOf');\n } else {\n recursiveFunc1('indexOf');\n }\n } else {\n recursiveFunc1('indеxOf');\n }\n })\n \n {selfDefendingFunctionName}();\n ")}},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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=d.__importDefault(r(18)),p=r(23),m=r(37),g=r(10),N=r(38),v=r(120),y=r(45),h=r(121),_=r(122),b=r(123),S=r(124),I=r(125),C=r(15),F=r(32),O=r(11),j=function(e){function t(e,r,n,a){var c;return(0,o.default)(this,t),(c=(0,i.default)(this,(0,s.default)(t).call(this,e,r,a))).escapeSequenceEncoder=n,c}return(0,c.default)(t,e),(0,a.default)(t,[{key:"initialize",value:function(e,t){this.stringArrayName=e,this.stringArrayCallsWrapperName=t}},{key:"getNodeStructure",value:function(){return O.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){var e=this.getDecodeStringArrayTemplate();return F.JavaScriptObfuscator.obfuscate(f.default(S.StringArrayCallsWrapperTemplate(),{decodeNodeTemplate:e,stringArrayCallsWrapperName:this.stringArrayCallsWrapperName,stringArrayName:this.stringArrayName}),Object.assign({},N.NO_ADDITIONAL_NODES_PRESET,{identifierNamesGenerator:this.options.identifierNamesGenerator,seed:this.options.seed})).getObfuscatedCode()}},{key:"getDecodeStringArrayTemplate",value:function(){var e=this.options.target!==p.ObfuscationTarget.BrowserNoEval?this.getGlobalVariableTemplate():y.GlobalVariableNoEvalTemplate(),t=f.default(v.AtobTemplate(),{globalVariableTemplate:e}),r="",n="";switch(this.options.selfDefending&&(n=f.default(_.SelfDefendingTemplate(this.randomGenerator,this.escapeSequenceEncoder),{stringArrayCallsWrapperName:this.stringArrayCallsWrapperName,stringArrayName:this.stringArrayName})),this.options.stringArrayEncoding){case m.StringArrayEncoding.Rc4:r=f.default(I.StringArrayRc4DecodeNodeTemplate(this.randomGenerator),{atobPolyfill:t,rc4Polyfill:h.Rc4Template(),selfDefendingCode:n,stringArrayCallsWrapperName:this.stringArrayCallsWrapperName});break;case m.StringArrayEncoding.Base64:r=f.default(b.StringArrayBase64DecodeNodeTemplate(this.randomGenerator),{atobPolyfill:t,selfDefendingCode:n,stringArrayCallsWrapperName:this.stringArrayCallsWrapperName})}return r}}]),t}(C.AbstractCustomNode);d.__decorate([g.initializable(),d.__metadata("design:type",String)],j.prototype,"stringArrayName",void 0),d.__decorate([g.initializable(),d.__metadata("design:type",String)],j.prototype,"stringArrayCallsWrapperName",void 0),j=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IEscapeSequenceEncoder)),d.__param(3,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object,Object])],j),t.StringArrayCallsWrapper=j},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AtobTemplate=function(){return"\n (function () {\n {globalVariableTemplate}\n \n var chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';\n\n that.atob || (\n that.atob = function(input) {\n var str = String(input).replace(/=+$/, '');\n for (\n var bc = 0, bs, buffer, idx = 0, output = '';\n buffer = str.charAt(idx++);\n ~buffer && (bs = bc % 4 ? bs * 64 + buffer : buffer,\n bc++ % 4) ? output += String.fromCharCode(255 & bs >> (-2 * bc & 6)) : 0\n ) {\n buffer = chars.indexOf(buffer);\n }\n return output;\n });\n })();\n "}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Rc4Template=function(){return"\n var rc4 = function (str, key) {\n var s = [], j = 0, x, res = '', newStr = '';\n \n str = atob(str);\n \n for (var k = 0, length = str.length; k < length; k++) {\n newStr += '%' + ('00' + str.charCodeAt(k).toString(16)).slice(-2);\n }\n \n str = decodeURIComponent(newStr);\n \t \n\t for (var 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 (var 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 res += String.fromCharCode(str.charCodeAt(y) ^ s[(s[i] + s[j]) % 256]);\n }\n \n return res;\n }\n "}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SelfDefendingTemplate=function(e,t){var r=e.getRandomString(6),n=e.getRandomString(6),o=e.getRandomString(6),a=e.getRandomString(6),i=e.getRandomString(6),s=e.getRandomString(6),c=e.getRandomString(6),d=e.getRandomString(6),u=e.getRandomString(6);return"\n var StatesClass = function (".concat(r,") {\n this.").concat(r," = ").concat(r,";\n this.").concat(n," = [1, 0, 0];\n this.").concat(o," = function(){return 'newState';};\n this.").concat(a," = '").concat(t.encode("\\w+ *\\(\\) *{\\w+ *",!0),"';\n this.").concat(i," = '").concat(t.encode("['|\"].+['|\"];? *}",!0),"';\n };\n \n StatesClass.prototype.").concat(s," = function () {\n var regExp = new RegExp(this.").concat(a," + this.").concat(i,");\n var expression = regExp.test(this.").concat(o,".toString())\n ? --this.").concat(n,"[1]\n : --this.").concat(n,"[0];\n \n return this.").concat(c,"(expression);\n };\n \n StatesClass.prototype.").concat(c," = function (").concat(u,") {\n if (!Boolean(~").concat(u,")) {\n return ").concat(u,";\n }\n \n return this.").concat(d,"(this.").concat(r,");\n };\n\n StatesClass.prototype.").concat(d," = function (").concat(r,") {\n for (var i = 0, len = this.").concat(n,".length; i < len; i++) {\n this.").concat(n,".push(Math.round(Math.random()));\n len = this.").concat(n,".length;\n }\n \n return ").concat(r,"(this.").concat(n,"[0]);\n };\n\n new StatesClass({stringArrayCallsWrapperName}).").concat(s,"();\n ")}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayBase64DecodeNodeTemplate=function(e){var t=e.getRandomString(6),r=e.getRandomString(6),n=e.getRandomString(6);return"\n if ({stringArrayCallsWrapperName}.".concat(t," === undefined) {\n {atobPolyfill}\n \n {stringArrayCallsWrapperName}.").concat(r," = function (str) {\n var string = atob(str);\n var newStringChars = [];\n \n for (var i = 0, length = string.length; i < length; i++) {\n newStringChars += '%' + ('00' + string.charCodeAt(i).toString(16)).slice(-2);\n }\n \n return decodeURIComponent(newStringChars);\n };\n \n {stringArrayCallsWrapperName}.").concat(n," = {};\n \n {stringArrayCallsWrapperName}.").concat(t," = true;\n }\n \n var cachedValue = {stringArrayCallsWrapperName}.").concat(n,"[index];\n \n if (cachedValue === undefined) {\n {selfDefendingCode}\n \n value = {stringArrayCallsWrapperName}.").concat(r,"(value);\n {stringArrayCallsWrapperName}.").concat(n,"[index] = value;\n } else {\n value = cachedValue;\n }\n ")}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayCallsWrapperTemplate=function(){return"\n var {stringArrayCallsWrapperName} = function (index, key) {\n index = index - 0;\n \n var value = {stringArrayName}[index];\n \n {decodeNodeTemplate}\n \n return value;\n };\n "}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayRc4DecodeNodeTemplate=function(e){var t=e.getRandomString(6),r=e.getRandomString(6),n=e.getRandomString(6),o=e.getRandomString(6);return"\n if ({stringArrayCallsWrapperName}.".concat(t," === undefined) {\n {atobPolyfill}\n \n {rc4Polyfill}\n {stringArrayCallsWrapperName}.").concat(r," = rc4;\n \n {stringArrayCallsWrapperName}.").concat(n," = {};\n \n {stringArrayCallsWrapperName}.").concat(t," = true;\n }\n \n var cachedValue = {stringArrayCallsWrapperName}.").concat(n,"[index];\n\n if (cachedValue === undefined) {\n if ({stringArrayCallsWrapperName}.").concat(o," === undefined) {\n {selfDefendingCode}\n \n {stringArrayCallsWrapperName}.").concat(o," = true;\n }\n \n value = {stringArrayCallsWrapperName}.").concat(r,"(value, key);\n {stringArrayCallsWrapperName}.").concat(n,"[index] = value;\n } else {\n value = cachedValue;\n }\n ")}},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(39)),d=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var u=r(4),l=r(2),f=r(5),p=u.__importDefault(r(18)),m=r(10),g=r(127),N=r(15),v=r(11),y=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r,n))}return(0,d.default)(t,e),(0,a.default)(t,[{key:"initialize",value:function(e,t,r){this.stringArrayStorage=e,this.stringArrayName=t,this.stringArrayRotateValue=r}},{key:"getNode",value:function(){return this.stringArrayStorage.rotateArray(this.stringArrayRotateValue),(0,c.default)((0,s.default)(t.prototype),"getNode",this).call(this)}},{key:"getNodeStructure",value:function(){return v.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){return p.default(g.StringArrayTemplate(),{stringArrayName:this.stringArrayName,stringArray:this.stringArrayStorage.toString()})}}]),t}(N.AbstractCustomNode);u.__decorate([m.initializable(),u.__metadata("design:type",Object)],y.prototype,"stringArrayStorage",void 0),u.__decorate([m.initializable(),u.__metadata("design:type",String)],y.prototype,"stringArrayName",void 0),u.__decorate([m.initializable(),u.__metadata("design:type",Number)],y.prototype,"stringArrayRotateValue",void 0),y=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],y),t.StringArrayNode=y},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayTemplate=function(){return"\n var {stringArrayName} = [{stringArray}];\n "}},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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=d.__importDefault(r(18)),p=r(10),m=r(38),g=r(129),N=r(130),v=r(15),y=r(32),h=r(11),_=r(40),b=function(e){function t(e,r,n,a){var c;return(0,o.default)(this,t),(c=(0,i.default)(this,(0,s.default)(t).call(this,e,r,a))).escapeSequenceEncoder=n,c}return(0,c.default)(t,e),(0,a.default)(t,[{key:"initialize",value:function(e,t){this.stringArrayName=e,this.stringArrayRotateValue=t}},{key:"getNodeStructure",value:function(){return h.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){var e=this.identifierNamesGenerator.generate(),t=this.identifierNamesGenerator.generate(),r="";return r=this.options.selfDefending?f.default(g.SelfDefendingTemplate(this.escapeSequenceEncoder),{timesName:e,whileFunctionName:t}):"".concat(t,"(++").concat(e,")"),y.JavaScriptObfuscator.obfuscate(f.default(N.StringArrayRotateFunctionTemplate(),{code:r,timesName:e,stringArrayName:this.stringArrayName,stringArrayRotateValue:_.NumberUtils.toHex(this.stringArrayRotateValue),whileFunctionName:t}),Object.assign({},m.NO_ADDITIONAL_NODES_PRESET,{identifierNamesGenerator:this.options.identifierNamesGenerator,seed:this.options.seed})).getObfuscatedCode()}}]),t}(v.AbstractCustomNode);d.__decorate([p.initializable(),d.__metadata("design:type",String)],b.prototype,"stringArrayName",void 0),d.__decorate([p.initializable(),d.__metadata("design:type",Number)],b.prototype,"stringArrayRotateValue",void 0),b=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IEscapeSequenceEncoder)),d.__param(3,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object,Object])],b),t.StringArrayRotateFunctionNode=b},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SelfDefendingTemplate=function(e){return"\n var selfDefendingFunc = function () {\n var object = {\n data: {\n key: 'cookie',\n value: 'timeout'\n },\n setCookie: function (options, name, value, document) {\n document = document || {};\n \n var updatedCookie = name + \"=\" + value;\n\n var i = 0;\n \n for (var i = 0, len = options.length; i < len; i++) {\n var propName = options[i];\n \n updatedCookie += \"; \" + propName;\n \n var propValue = options[propName];\n \n options.push(propValue);\n len = options.length;\n \n if (propValue !== true) {\n updatedCookie += \"=\" + propValue;\n }\n }\n\n document['cookie'] = updatedCookie;\n },\n removeCookie: function(){return 'dev';},\n getCookie: function (document, name) {\n document = document || function (value) { return value };\n var matches = document(new RegExp(\n \"(?:^|; )\" + name.replace(/([.$?*|{}()[]\\/+^])/g, '\\$1') + \"=([^;]*)\"\n ));\n \n var func = function (param1, param2) {\n param1(++param2);\n };\n \n func({whileFunctionName}, {timesName});\n \n return matches ? decodeURIComponent(matches[1]) : undefined;\n }\n };\n \n var test1 = function () {\n var regExp = new RegExp('".concat(e.encode("\\w+ *\\(\\) *{\\w+ *['|\"].+['|\"];? *}",!0),"');\n \n return regExp.test(object.removeCookie.toString());\n };\n \n object['updateCookie'] = test1;\n \n var cookie = '';\n var result = object['updateCookie']();\n \n if (!result) {\n object['setCookie'](['*'], 'counter', 1);\n } else if (result) {\n cookie = object['getCookie'](null, 'counter');\n } else {\n object['removeCookie']();\n }\n };\n \n selfDefendingFunc();\n ")}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayRotateFunctionTemplate=function(){return"\n (function (array, {timesName}) {\n var {whileFunctionName} = function (times) {\n while (--times) {\n array['push'](array['shift']());\n }\n };\n \n {code}\n })({stringArrayName}, 0x{stringArrayRotateValue});\n "}},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(10),p=r(15),m=r(14),g=r(11),N=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r,n))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"initialize",value:function(e,t){this.controlFlowStorageName=e,this.controlFlowStorageKey=t}},{key:"getNodeStructure",value:function(){var e=m.NodeFactory.expressionStatementNode(m.NodeFactory.memberExpressionNode(m.NodeFactory.identifierNode(this.controlFlowStorageName),m.NodeFactory.identifierNode(this.controlFlowStorageKey)));return g.NodeUtils.parentizeAst(e),[e]}}]),t}(p.AbstractCustomNode);d.__decorate([f.initializable(),d.__metadata("design:type",String)],N.prototype,"controlFlowStorageKey",void 0),d.__decorate([f.initializable(),d.__metadata("design:type",String)],N.prototype,"controlFlowStorageName",void 0),N=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object])],N),t.StringLiteralControlFlowStorageCallNode=N},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(10),p=r(15),m=r(14),g=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r,n))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"initialize",value:function(e){this.literalValue=e}},{key:"getNodeStructure",value:function(){return[m.NodeFactory.expressionStatementNode(m.NodeFactory.literalNode(this.literalValue))]}}]),t}(p.AbstractCustomNode);d.__decorate([f.initializable(),d.__metadata("design:type",String)],g.prototype,"literalValue",void 0),g=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),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.StringLiteralNode=g},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(2);t.finalizingTransformersModule=new n.ContainerModule(function(e){})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(2),o=r(5),a=r(35),i=r(135),s=r(136);t.generatorsModule=new n.ContainerModule(function(e){e(o.ServiceIdentifiers.IIdentifierNamesGenerator).to(i.HexadecimalIdentifierNamesGenerator).inSingletonScope().whenTargetNamed(a.IdentifierNamesGenerator.HexadecimalIdentifierNamesGenerator),e(o.ServiceIdentifiers.IIdentifierNamesGenerator).to(s.MangledIdentifierNamesGenerator).inSingletonScope().whenTargetNamed(a.IdentifierNamesGenerator.MangledIdentifierNamesGenerator),e(o.ServiceIdentifiers.Factory__IIdentifierNamesGenerator).toFactory(function(e){var t=null;return function(r){if(t)return t;var n;switch(r.identifierNamesGenerator){case a.IdentifierNamesGenerator.MangledIdentifierNamesGenerator:n=e.container.getNamed(o.ServiceIdentifiers.IIdentifierNamesGenerator,a.IdentifierNamesGenerator.MangledIdentifierNamesGenerator);break;case a.IdentifierNamesGenerator.HexadecimalIdentifierNamesGenerator:default:n=e.container.getNamed(o.ServiceIdentifiers.IIdentifierNamesGenerator,a.IdentifierNamesGenerator.HexadecimalIdentifierNamesGenerator)}return t=n,n}})})},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=r(5),p=r(56),m=r(40),g=r(34),N=d=function(e){function t(e,r){var n;return(0,o.default)(this,t),(n=(0,i.default)(this,(0,s.default)(t).call(this,e,r))).randomVariableNameSet=new Set,n}return(0,c.default)(t,e),(0,a.default)(t,[{key:"generate",value:function(e){var t=this.randomGenerator.getRandomInteger(1e4,99999999),r=m.NumberUtils.toHex(t),n=g.Utils.hexadecimalPrefix.length+1,o=e?e-n:d.baseIdentifierNameLength,a=r.substr(0,o),i="_".concat(g.Utils.hexadecimalPrefix).concat(a);return this.randomVariableNameSet.has(i)?this.generate(e):(this.randomVariableNameSet.add(i),i)}},{key:"generateWithPrefix",value:function(e){var t=this.generate(e);return"".concat(this.options.identifiersPrefix).concat(t).replace("__","_")}}]),t}(p.AbstractIdentifierNamesGenerator);N.baseIdentifierNameLength=6,N=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(1,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Object,Object])],N),t.HexadecimalIdentifierNamesGenerator=N},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(39)),d=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var u,l=r(4),f=r(2),p=r(5),m=r(56),g=u=function(e){function t(e,r){var n;return(0,o.default)(this,t),(n=(0,i.default)(this,(0,s.default)(t).call(this,e,r))).previousMangledName=u.initMangledNameCharacter,n}return(0,d.default)(t,e),(0,a.default)(t,[{key:"generate",value:function(e){var t=this.generateNewMangledName(this.previousMangledName);return this.previousMangledName=t,t}},{key:"generateWithPrefix",value:function(e){var t=this.options.identifiersPrefix?"".concat(this.options.identifiersPrefix,"_"):"",r=this.generate(e);return"".concat(t).concat(r)}},{key:"isValidIdentifierName",value:function(e){return(0,c.default)((0,s.default)(t.prototype),"isValidIdentifierName",this).call(this,e)&&!u.reservedNames.includes(e)}},{key:"generateNewMangledName",value:function(e){var t=function(e){var t=u.nameSequence,r=e.length,n=function(e){return"0".repeat(e)},o=r-1;do{var a=e.charAt(o),i=t.indexOf(a);if(i!==t.length-1)return e.substring(0,o)+t[i+1]+n(r-(o+1));--o}while(o>=0);return"a".concat(n(r))},r=t(e);return this.isValidIdentifierName(r)||(r=this.generateNewMangledName(r)),r}}]),t}(m.AbstractIdentifierNamesGenerator);g.initMangledNameCharacter="9",g.nameSequence="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""),g.reservedNames=["byte","case","char","do","else","enum","eval","for","goto","if","in","int","let","long","new","null","this","true","try","var","void","with"],g=u=l.__decorate([f.injectable(),l.__param(0,f.inject(p.ServiceIdentifiers.IRandomGenerator)),l.__param(1,f.inject(p.ServiceIdentifiers.IOptions)),l.__metadata("design:paramtypes",[Object,Object])],g),t.MangledIdentifierNamesGenerator=g},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(20),o=r(2),a=r(5);t.nodeTransformersModule=new o.ContainerModule(function(e){e(a.ServiceIdentifiers.Factory__INodeTransformer).toFactory(n.InversifyContainerFacade.getCacheFactory(a.ServiceIdentifiers.INodeTransformer))})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(20),o=r(2),a=r(5),i=r(22),s=r(57),c=r(29),d=r(139),u=r(140),l=r(141),f=r(142),p=r(143),m=r(144),g=r(145),N=r(146),v=r(147),y=r(148),h=r(149),_=r(150);t.obfuscatingTransformersModule=new o.ContainerModule(function(e){e(a.ServiceIdentifiers.INodeTransformer).to(l.CatchClauseTransformer).whenTargetNamed(c.NodeTransformer.CatchClauseTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(f.ClassDeclarationTransformer).whenTargetNamed(c.NodeTransformer.ClassDeclarationTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(p.FunctionDeclarationTransformer).whenTargetNamed(c.NodeTransformer.FunctionDeclarationTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(m.FunctionTransformer).whenTargetNamed(c.NodeTransformer.FunctionTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(g.ImportDeclarationTransformer).whenTargetNamed(c.NodeTransformer.ImportDeclarationTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(N.LabeledStatementTransformer).whenTargetNamed(c.NodeTransformer.LabeledStatementTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(v.LiteralTransformer).whenTargetNamed(c.NodeTransformer.LiteralTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(_.VariableDeclarationTransformer).whenTargetNamed(c.NodeTransformer.VariableDeclarationTransformer),e(a.ServiceIdentifiers.IObfuscatingReplacer).to(u.BooleanLiteralObfuscatingReplacer).whenTargetNamed(s.LiteralObfuscatingReplacer.BooleanLiteralObfuscatingReplacer),e(a.ServiceIdentifiers.IObfuscatingReplacer).to(y.NumberLiteralObfuscatingReplacer).whenTargetNamed(s.LiteralObfuscatingReplacer.NumberLiteralObfuscatingReplacer),e(a.ServiceIdentifiers.IObfuscatingReplacer).to(h.StringLiteralObfuscatingReplacer).whenTargetNamed(s.LiteralObfuscatingReplacer.StringLiteralObfuscatingReplacer),e(a.ServiceIdentifiers.IIdentifierObfuscatingReplacer).to(d.BaseIdentifierObfuscatingReplacer).whenTargetNamed(i.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer),e(a.ServiceIdentifiers.Factory__IObfuscatingReplacer).toFactory(n.InversifyContainerFacade.getCacheFactory(a.ServiceIdentifiers.IObfuscatingReplacer)),e(a.ServiceIdentifiers.Factory__IIdentifierObfuscatingReplacer).toFactory(n.InversifyContainerFacade.getCacheFactory(a.ServiceIdentifiers.IIdentifierObfuscatingReplacer))})},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(41),p=r(14),m=function(e){function t(e,r){var n;return(0,o.default)(this,t),(n=(0,i.default)(this,(0,s.default)(t).call(this,r))).blockScopesMap=new Map,n.identifierNamesGenerator=e(r),n}return(0,c.default)(t,e),(0,a.default)(t,[{key:"replace",value:function(e,t){if(this.blockScopesMap.has(t)){var r=this.blockScopesMap.get(t);r.has(e)&&(e=r.get(e))}return p.NodeFactory.identifierNode(e)}},{key:"storeGlobalName",value:function(e,t){if(!this.isReservedName(e)){var r=this.identifierNamesGenerator.generateWithPrefix();this.blockScopesMap.has(t)||this.blockScopesMap.set(t,new Map),this.blockScopesMap.get(t).set(e,r)}}},{key:"storeLocalName",value:function(e,t){if(!this.isReservedName(e)){var r=this.identifierNamesGenerator.generate();this.blockScopesMap.has(t)||this.blockScopesMap.set(t,new Map),this.blockScopesMap.get(t).set(e,r)}}},{key:"isReservedName",value:function(e){return!!this.options.reservedStrings.length&&this.options.reservedNames.some(function(t){return null!==new RegExp(t,"g").exec(e)})}}]),t}(f.AbstractObfuscatingReplacer);m=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object])],m),t.BaseIdentifierObfuscatingReplacer=m},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=r(5),p=r(41),m=r(14),g=d=function(e){function t(e){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"replace",value:function(e){return e?d.getTrueUnaryExpressionNode():d.getFalseUnaryExpressionNode()}}],[{key:"getTrueUnaryExpressionNode",value:function(){return m.NodeFactory.unaryExpressionNode("!",d.getFalseUnaryExpressionNode())}},{key:"getFalseUnaryExpressionNode",value:function(){return m.NodeFactory.unaryExpressionNode("!",m.NodeFactory.arrayExpressionNode())}}]),t}(p.AbstractObfuscatingReplacer);g=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Object])],g),t.BooleanLiteralObfuscatingReplacer=g},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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=d.__importStar(r(16)),p=r(22),m=r(12),g=r(13),N=r(9),v=r(27),y=r(17),h=function(e){function t(e,r,n){var a;return(0,o.default)(this,t),(a=(0,i.default)(this,(0,s.default)(t).call(this,r,n))).identifierObfuscatingReplacer=e(p.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer),a}return(0,c.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case m.TransformationStage.Obfuscating:return{enter:function(e,r){if(r&&N.NodeGuards.isCatchClauseNode(e))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){var r=v.NodeLexicalScopeUtils.getLexicalScope(e);return r?(this.storeCatchClauseParam(e,r),this.replaceCatchClauseParam(e,r),e):e}},{key:"storeCatchClauseParam",value:function(e,t){N.NodeGuards.isIdentifierNode(e.param)&&this.identifierObfuscatingReplacer.storeLocalName(e.param.name,t)}},{key:"replaceCatchClauseParam",value:function(e,t){var r=this;f.replace(e,{enter:function(e,n){if(n&&N.NodeGuards.isReplaceableIdentifierNode(e,n)){var o=r.identifierObfuscatingReplacer.replace(e.name,t).name;e.name!==o&&(e.name=o,y.NodeMetadata.set(e,{renamedIdentifier:!0}))}}})}}]),t}(g.AbstractNodeTransformer);h=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierObfuscatingReplacer)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object])],h),t.CatchClauseTransformer=h},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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=d.__importStar(r(16)),p=r(22),m=r(19),g=r(12),N=r(13),v=r(9),y=r(27),h=r(17),_=function(e){function t(e,r,n){var a;return(0,o.default)(this,t),(a=(0,i.default)(this,(0,s.default)(t).call(this,r,n))).replaceableIdentifiers=new Map,a.identifierObfuscatingReplacer=e(p.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer),a}return(0,c.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case g.TransformationStage.Obfuscating:return{enter:function(e,r){if(r&&v.NodeGuards.isClassDeclarationNode(e)&&!v.NodeGuards.isExportNamedDeclarationNode(r))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){var r=y.NodeLexicalScopeUtils.getLexicalScope(e);if(!r)return e;var n=r.type===m.NodeType.Program;return!this.options.renameGlobals&&n?e:(this.storeClassName(e,r,n),this.replaceableIdentifiers.has(r)?this.replaceScopeCachedIdentifiers(e,r):this.replaceScopeIdentifiers(r),e)}},{key:"storeClassName",value:function(e,t,r){r?this.identifierObfuscatingReplacer.storeGlobalName(e.id.name,t):this.identifierObfuscatingReplacer.storeLocalName(e.id.name,t)}},{key:"replaceScopeCachedIdentifiers",value:function(e,t){var r=this.replaceableIdentifiers.get(t).get(e.id.name);if(r)for(var n=r.length,o=0;o2&&void 0!==arguments[2]?arguments[2]:new Set,o={enter:function(o,a){if(v.NodeGuards.isFunctionNode(o)&&o!==e)return r.replaceFunctionParams(o,t,new Set(n)),p.VisitorOption.Skip;if(d.isProhibitedIdentifierOfShorthandPropertyNode(o))n.add(o.key.name);else if(a&&v.NodeGuards.isReplaceableIdentifierNode(o,a)&&!h.NodeMetadata.isRenamedIdentifier(o)&&!n.has(o.name)){if(r.isGlobalFunctionDeclarationIdentifier(o,a))return;var i=r.identifierObfuscatingReplacer.replace(o.name,t).name;o.name!==i&&(o.name=i,h.NodeMetadata.set(o,{renamedIdentifier:!0}))}}};p.replace(e,o)}}],[{key:"isProhibitedIdentifierOfPropertyNode",value:function(e,t){return v.NodeGuards.isIdentifierNode(e)&&!!t&&v.NodeGuards.isPropertyNode(t)&&t.key===e}},{key:"isProhibitedIdentifierOfShorthandPropertyNode",value:function(e){return v.NodeGuards.isPropertyNode(e)&&e.shorthand&&v.NodeGuards.isIdentifierNode(e.key)}}]),t}(N.AbstractNodeTransformer);b=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IIdentifierObfuscatingReplacer)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],b),t.FunctionTransformer=b},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=r(5),p=u.__importStar(r(16)),m=r(22),g=r(12),N=r(13),v=r(9),y=r(27),h=r(17),_=d=function(e){function t(e,r,n){var a;return(0,o.default)(this,t),(a=(0,i.default)(this,(0,s.default)(t).call(this,r,n))).replaceableIdentifiers=new Map,a.identifierObfuscatingReplacer=e(m.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer),a}return(0,c.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case g.TransformationStage.Obfuscating:return{enter:function(e,r){if(r&&v.NodeGuards.isImportDeclarationNode(e))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){var r=y.NodeLexicalScopeUtils.getLexicalScope(e);return r?(this.storeImportSpecifierNames(e,r),this.replaceableIdentifiers.has(r)?this.replaceScopeCachedIdentifiers(r):this.replaceScopeIdentifiers(r),e):e}},{key:"storeImportSpecifierNames",value:function(e,t){var r=this;e.specifiers.forEach(function(e){d.isProhibitedImportSpecifierNode(e)||r.identifierObfuscatingReplacer.storeGlobalName(e.local.name,t)})}},{key:"replaceScopeCachedIdentifiers",value:function(e){var t=this;this.replaceableIdentifiers.get(e).forEach(function(r){var n=t.identifierObfuscatingReplacer.replace(r.name,e);r.name=n.name,h.NodeMetadata.set(r,{renamedIdentifier:!0})})}},{key:"replaceScopeIdentifiers",value:function(e){var t=this,r=[];p.replace(e,{enter:function(n,o){if(o&&v.NodeGuards.isReplaceableIdentifierNode(n,o)&&!h.NodeMetadata.isRenamedIdentifier(n)){var a=t.identifierObfuscatingReplacer.replace(n.name,e).name;n.name!==a?(n.name=a,h.NodeMetadata.set(n,{renamedIdentifier:!0})):r.push(n)}}}),this.replaceableIdentifiers.set(e,r)}}],[{key:"isProhibitedImportSpecifierNode",value:function(e){return v.NodeGuards.isImportSpecifierNode(e)&&e.imported.name===e.local.name}}]),t}(N.AbstractNodeTransformer);_=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IIdentifierObfuscatingReplacer)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],_),t.ImportDeclarationTransformer=_},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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=d.__importStar(r(16)),p=r(22),m=r(12),g=r(13),N=r(9),v=r(27),y=function(e){function t(e,r,n){var a;return(0,o.default)(this,t),(a=(0,i.default)(this,(0,s.default)(t).call(this,r,n))).identifierObfuscatingReplacer=e(p.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer),a}return(0,c.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case m.TransformationStage.Obfuscating:return{enter:function(e,r){if(r&&N.NodeGuards.isLabeledStatementNode(e))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){var r=v.NodeLexicalScopeUtils.getLexicalScope(e);return r?(this.storeLabeledStatementName(e,r),this.replaceLabeledStatementName(e,r),e):e}},{key:"storeLabeledStatementName",value:function(e,t){this.identifierObfuscatingReplacer.storeLocalName(e.label.name,t)}},{key:"replaceLabeledStatementName",value:function(e,t){var r=this;f.replace(e,{enter:function(e,n){if(n&&N.NodeGuards.isLabelIdentifierNode(e,n)){var o=r.identifierObfuscatingReplacer.replace(e.name,t);e.name=o.name}}})}}]),t}(g.AbstractNodeTransformer);y=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierObfuscatingReplacer)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object])],y),t.LabeledStatementTransformer=y},function(e,t,r){"use strict";var n=r(0),o=n(r(50)),a=n(r(1)),i=n(r(3)),s=n(r(6)),c=n(r(7)),d=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var u=r(4),l=r(2),f=r(5),p=r(57),m=r(12),g=r(13),N=r(9),v=r(17),y=r(11),h=function(e){function t(e,r,n){var o;return(0,a.default)(this,t),(o=(0,s.default)(this,(0,c.default)(t).call(this,r,n))).literalObfuscatingReplacerFactory=e,o}return(0,d.default)(t,e),(0,i.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case m.TransformationStage.Obfuscating:return{enter:function(e,r){if(r&&N.NodeGuards.isLiteralNode(e)&&!v.NodeMetadata.isReplacedLiteral(e))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){if(this.isProhibitedNode(e,t))return e;var r;switch((0,o.default)(e.value)){case"boolean":r=this.literalObfuscatingReplacerFactory(p.LiteralObfuscatingReplacer.BooleanLiteralObfuscatingReplacer).replace(e.value);break;case"number":r=this.literalObfuscatingReplacerFactory(p.LiteralObfuscatingReplacer.NumberLiteralObfuscatingReplacer).replace(e.value);break;case"string":r=this.literalObfuscatingReplacerFactory(p.LiteralObfuscatingReplacer.StringLiteralObfuscatingReplacer).replace(e.value);break;default:r=e}return y.NodeUtils.parentizeNode(r,t),r}},{key:"isProhibitedNode",value:function(e,t){return!(!N.NodeGuards.isPropertyNode(t)||t.key!==e)||!!N.NodeGuards.isImportDeclarationNode(t)}}]),t}(g.AbstractNodeTransformer);h=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IObfuscatingReplacer)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],h),t.LiteralTransformer=h},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(41),p=r(14),m=r(40),g=r(34),N=function(e){function t(e){var r;return(0,o.default)(this,t),(r=(0,i.default)(this,(0,s.default)(t).call(this,e))).numberLiteralCache=new Map,r}return(0,c.default)(t,e),(0,a.default)(t,[{key:"replace",value:function(e){var t;return this.numberLiteralCache.has(e)?t=this.numberLiteralCache.get(e):(t=m.NumberUtils.isCeil(e)?"".concat(g.Utils.hexadecimalPrefix).concat(m.NumberUtils.toHex(e)):String(e),this.numberLiteralCache.set(e,t)),p.NodeFactory.literalNode(e,t)}}]),t}(f.AbstractObfuscatingReplacer);N=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Object])],N),t.NumberLiteralObfuscatingReplacer=N},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=r(5),p=r(37),m=r(41),g=r(17),N=r(14),v=r(40),y=r(34),h=d=function(e){function t(e,r,n,a,c){var u;return(0,o.default)(this,t),(u=(0,i.default)(this,(0,s.default)(t).call(this,c))).nodesCache=new Map,u.stringLiteralHexadecimalIndexCache=new Map,u.stringArrayStorage=e,u.escapeSequenceEncoder=r,u.randomGenerator=n,u.cryptUtils=a,u.rc4Keys=u.randomGenerator.getRandomGenerator().n(function(){return u.randomGenerator.getRandomGenerator().string({length:d.rc4KeyLength})},d.rc4KeysCount),u}return(0,c.default)(t,e),(0,a.default)(t,[{key:"replace",value:function(e){if(this.isReservedString(e))return this.replaceWithReservedLiteralNode(e);var t=this.canUseStringArray(e),r="".concat(e,"-").concat(String(t));if(this.nodesCache.has(r)&&this.options.stringArrayEncoding!==p.StringArrayEncoding.Rc4)return this.nodesCache.get(r);var n=t?this.replaceWithStringArrayCallNode(e):this.replaceWithLiteralNode(e);return this.nodesCache.set(r,n),n}},{key:"canUseStringArray",value:function(e){return this.options.stringArray&&e.length>=d.minimumLengthForStringArray&&this.randomGenerator.getMathRandom()<=this.options.stringArrayThreshold}},{key:"getStringArrayHexadecimalIndex",value:function(e,t){if(this.stringLiteralHexadecimalIndexCache.has(e))return{fromCache:!0,index:this.stringLiteralHexadecimalIndexCache.get(e)};var r=v.NumberUtils.toHex(t),n="".concat(y.Utils.hexadecimalPrefix).concat(r);return this.stringLiteralHexadecimalIndexCache.set(e,n),{fromCache:!1,index:n}}},{key:"getEncodedValue",value:function(e){var t,r=null;switch(this.options.stringArrayEncoding){case p.StringArrayEncoding.Rc4:r=this.randomGenerator.getRandomGenerator().pickone(this.rc4Keys),t=this.cryptUtils.btoa(this.cryptUtils.rc4(e,r));break;case p.StringArrayEncoding.Base64:t=this.cryptUtils.btoa(e);break;default:t=e}return{encodedValue:t,key:r}}},{key:"replaceWithLiteralNode",value:function(e){return N.NodeFactory.literalNode(this.escapeSequenceEncoder.encode(e,this.options.unicodeEscapeSequence))}},{key:"replaceWithReservedLiteralNode",value:function(e){return N.NodeFactory.literalNode(this.escapeSequenceEncoder.encode(e,!1))}},{key:"replaceWithStringArrayCallNode",value:function(e){var t=this.getEncodedValue(e),r=t.encodedValue,n=t.key,o=this.escapeSequenceEncoder.encode(r,this.options.unicodeEscapeSequence),a=this.stringArrayStorage.getLength(),i=this.stringArrayStorage.getStorageId().split("|")[1],s=this.getStringArrayHexadecimalIndex(o,a),c=s.fromCache,u=s.index;c||this.stringArrayStorage.set(a,o);var l=[d.getHexadecimalLiteralNode(u)];n&&l.push(d.getRc4KeyLiteralNode(this.escapeSequenceEncoder.encode(n,this.options.unicodeEscapeSequence)));var f=N.NodeFactory.identifierNode(i);return g.NodeMetadata.set(f,{renamedIdentifier:!0}),N.NodeFactory.callExpressionNode(f,l)}},{key:"isReservedString",value:function(e){return!!this.options.reservedStrings.length&&this.options.reservedStrings.some(function(t){return null!==new RegExp(t,"g").exec(e)})}}],[{key:"getHexadecimalLiteralNode",value:function(e){var t=N.NodeFactory.literalNode(e);return g.NodeMetadata.set(t,{replacedLiteral:!0}),t}},{key:"getRc4KeyLiteralNode",value:function(e){var t=N.NodeFactory.literalNode(e);return g.NodeMetadata.set(t,{replacedLiteral:!0}),t}}]),t}(m.AbstractObfuscatingReplacer);h.minimumLengthForStringArray=3,h.rc4KeyLength=4,h.rc4KeysCount=50,h=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.TStringArrayStorage)),u.__param(1,l.inject(f.ServiceIdentifiers.IEscapeSequenceEncoder)),u.__param(2,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(3,l.inject(f.ServiceIdentifiers.ICryptUtils)),u.__param(4,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Object,Object,Object,Object,Object])],h),t.StringLiteralObfuscatingReplacer=h},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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=d.__importStar(r(16)),p=r(22),m=r(19),g=r(12),N=r(13),v=r(9),y=r(27),h=r(151),_=r(17),b=function(e){function t(e,r,n){var a;return(0,o.default)(this,t),(a=(0,i.default)(this,(0,s.default)(t).call(this,r,n))).replaceableIdentifiers=new Map,a.identifierObfuscatingReplacer=e(p.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer),a}return(0,c.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case g.TransformationStage.Obfuscating:return{enter:function(e,r){if(r&&v.NodeGuards.isVariableDeclarationNode(e)&&!v.NodeGuards.isExportNamedDeclarationNode(r))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){var r="var"===e.kind?y.NodeLexicalScopeUtils.getLexicalScope(e):h.NodeBlockLexicalScopeUtils.getLexicalScope(e);if(!r)return e;var n=r.type===m.NodeType.Program;if(!this.options.renameGlobals&&n)return e;var o="var"===e.kind?r:t;return this.storeVariableNames(e,r,n),this.replaceableIdentifiers.has(o)?this.replaceScopeCachedIdentifiers(e,r,o):this.replaceScopeIdentifiers(o,r),e}},{key:"storeVariableNames",value:function(e,t,r){var n=this;this.traverseDeclarationIdentifiers(e,function(e){r?n.identifierObfuscatingReplacer.storeGlobalName(e.name,t):n.identifierObfuscatingReplacer.storeLocalName(e.name,t)})}},{key:"replaceScopeCachedIdentifiers",value:function(e,t,r){var n=this,o=this.replaceableIdentifiers.get(r),a=[];this.traverseDeclarationIdentifiers(e,function(e){a.push(e.name)}),a.forEach(function(e){var r=o.get(e);if(r)for(var a=r.length,i=0;i1&&void 0!==arguments[1]?arguments[1]:1/0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;if(n.length>=r)return n;var a=t.parentNode;if(!a)throw new ReferenceError("`parentNode` property of given node is `undefined`");return i.NodeGuards.isNodeWithBlockLexicalScope(t)&&n.push(t),t!==a?e.getLexicalScopesRecursive(a,r,n,++o):n}}]),e}();t.NodeBlockLexicalScopeUtils=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(2),o=r(5),a=r(153),i=r(156);t.optionsModule=new n.ContainerModule(function(e){e(o.ServiceIdentifiers.IOptions).to(a.Options).inSingletonScope(),e(o.ServiceIdentifiers.IOptionsNormalizer).to(i.OptionsNormalizer).inSingletonScope()})},function(e,t,r){"use strict";var n=r(0)(r(1));Object.defineProperty(t,"__esModule",{value:!0});var o,a=r(4),i=r(2),s=r(5),c=r(154),d=r(35),u=r(23),l=r(36),f=r(37),p=r(46),m=r(155),g=o=function e(t,r){(0,n.default)(this,e),Object.assign(this,p.DEFAULT_PRESET,t);var a=c.validateSync(this,o.validatorOptions);if(a.length)throw new ReferenceError("Validation failed. errors:\n".concat(m.ValidationErrorsFormatter.format(a)));Object.assign(this,r.normalize(this))};g.validatorOptions={validationError:{target:!1}},a.__decorate([c.IsBoolean(),a.__metadata("design:type",Boolean)],g.prototype,"compact",void 0),a.__decorate([c.IsBoolean(),a.__metadata("design:type",Boolean)],g.prototype,"controlFlowFlattening",void 0),a.__decorate([c.IsNumber(),c.Min(0),c.Max(1),a.__metadata("design:type",Number)],g.prototype,"controlFlowFlatteningThreshold",void 0),a.__decorate([c.IsBoolean(),a.__metadata("design:type",Boolean)],g.prototype,"deadCodeInjection",void 0),a.__decorate([c.IsNumber(),a.__metadata("design:type",Number)],g.prototype,"deadCodeInjectionThreshold",void 0),a.__decorate([c.IsBoolean(),a.__metadata("design:type",Boolean)],g.prototype,"debugProtection",void 0),a.__decorate([c.IsBoolean(),a.__metadata("design:type",Boolean)],g.prototype,"debugProtectionInterval",void 0),a.__decorate([c.IsBoolean(),a.__metadata("design:type",Boolean)],g.prototype,"disableConsoleOutput",void 0),a.__decorate([c.IsArray(),c.ArrayUnique(),c.IsString({each:!0}),a.__metadata("design:type",Array)],g.prototype,"domainLock",void 0),a.__decorate([c.IsIn([d.IdentifierNamesGenerator.HexadecimalIdentifierNamesGenerator,d.IdentifierNamesGenerator.MangledIdentifierNamesGenerator]),a.__metadata("design:type",String)],g.prototype,"identifierNamesGenerator",void 0),a.__decorate([c.IsString(),a.__metadata("design:type",String)],g.prototype,"identifiersPrefix",void 0),a.__decorate([c.IsString(),a.__metadata("design:type",String)],g.prototype,"inputFileName",void 0),a.__decorate([c.IsBoolean(),a.__metadata("design:type",Boolean)],g.prototype,"log",void 0),a.__decorate([c.IsBoolean(),a.__metadata("design:type",Boolean)],g.prototype,"renameGlobals",void 0),a.__decorate([c.IsArray(),c.ArrayUnique(),c.IsString({each:!0}),a.__metadata("design:type",Array)],g.prototype,"reservedNames",void 0),a.__decorate([c.IsArray(),c.ArrayUnique(),c.IsString({each:!0}),a.__metadata("design:type",Array)],g.prototype,"reservedStrings",void 0),a.__decorate([c.IsBoolean(),a.__metadata("design:type",Boolean)],g.prototype,"rotateStringArray",void 0),a.__decorate([c.IsNumber(),a.__metadata("design:type",Number)],g.prototype,"seed",void 0),a.__decorate([c.IsBoolean(),a.__metadata("design:type",Boolean)],g.prototype,"selfDefending",void 0),a.__decorate([c.IsBoolean(),a.__metadata("design:type",Boolean)],g.prototype,"sourceMap",void 0),a.__decorate([c.IsString(),c.ValidateIf(function(e){return Boolean(e.sourceMapBaseUrl)}),c.IsUrl({require_protocol:!0,require_tld:!1,require_valid_protocol:!0}),a.__metadata("design:type",String)],g.prototype,"sourceMapBaseUrl",void 0),a.__decorate([c.IsString(),a.__metadata("design:type",String)],g.prototype,"sourceMapFileName",void 0),a.__decorate([c.IsIn([l.SourceMapMode.Inline,l.SourceMapMode.Separate]),a.__metadata("design:type",String)],g.prototype,"sourceMapMode",void 0),a.__decorate([c.IsBoolean(),a.__metadata("design:type",Boolean)],g.prototype,"stringArray",void 0),a.__decorate([c.IsIn([!0,!1,f.StringArrayEncoding.Base64,f.StringArrayEncoding.Rc4]),a.__metadata("design:type",Object)],g.prototype,"stringArrayEncoding",void 0),a.__decorate([c.IsNumber(),c.Min(0),c.Max(1),a.__metadata("design:type",Number)],g.prototype,"stringArrayThreshold",void 0),a.__decorate([c.IsIn([u.ObfuscationTarget.Browser,u.ObfuscationTarget.BrowserNoEval,u.ObfuscationTarget.Node]),a.__metadata("design:type",String)],g.prototype,"target",void 0),a.__decorate([c.IsBoolean(),a.__metadata("design:type",Boolean)],g.prototype,"transformObjectKeys",void 0),a.__decorate([c.IsBoolean(),a.__metadata("design:type",Boolean)],g.prototype,"unicodeEscapeSequence",void 0),g=o=a.__decorate([i.injectable(),a.__param(0,i.inject(s.ServiceIdentifiers.TInputOptions)),a.__param(1,i.inject(s.ServiceIdentifiers.IOptionsNormalizer)),a.__metadata("design:paramtypes",[Object,Object])],g),t.Options=g},function(e,t){e.exports=require("class-validator")},function(e,t,r){"use strict";var n=r(0),o=n(r(28)),a=n(r(1)),i=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(){(0,a.default)(this,e)}return(0,i.default)(e,null,[{key:"format",value:function(t){return t.reduce(function(t,r){return(0,o.default)(t).concat([e.formatWithNestedConstraints(r)])},[]).join("\n")}},{key:"formatWithNestedConstraints",value:function(e){var t=e.constraints,r="`".concat(e.property,"` errors:\n"),n=Object.keys(t).map(function(e){return" - ".concat(t[e],"\n")}).join();return"".concat(r).concat(n)}}]),e}();t.ValidationErrorsFormatter=s},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i,s=r(4),c=r(2),d=r(157),u=r(158),l=r(159),f=r(160),p=r(161),m=r(162),g=r(163),N=r(164),v=r(165),y=r(166),h=r(167),_=i=function(){function e(){(0,o.default)(this,e)}return(0,a.default)(e,[{key:"normalize",value:function(e){var t=Object.assign({},e),r=!0,n=!1,o=void 0;try{for(var a,s=i.normalizerRules[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){t=(0,a.value)(t)}}catch(e){n=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(n)throw o}}return t}}]),e}();_.normalizerRules=[d.ControlFlowFlatteningThresholdRule,u.DeadCodeInjectionRule,l.DeadCodeInjectionThresholdRule,f.DomainLockRule,p.InputFileNameRule,m.SelfDefendingRule,g.SourceMapBaseUrlRule,N.SourceMapFileNameRule,v.StringArrayRule,y.StringArrayEncodingRule,h.StringArrayThresholdRule],_=i=s.__decorate([c.injectable()],_),t.OptionsNormalizer=_},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ControlFlowFlatteningThresholdRule=function(e){return 0===e.controlFlowFlatteningThreshold&&(e=Object.assign({},e,{controlFlowFlattening:!1,controlFlowFlatteningThreshold:0})),e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(46);t.DeadCodeInjectionRule=function(e){return e.deadCodeInjection&&((e=Object.assign({},e,{deadCodeInjection:!0,stringArray:!0})).stringArrayThreshold||(e=Object.assign({},e,{stringArray:!0,stringArrayThreshold:n.DEFAULT_PRESET.stringArrayThreshold}))),e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DeadCodeInjectionThresholdRule=function(e){return 0===e.deadCodeInjectionThreshold&&(e=Object.assign({},e,{deadCodeInjection:!1,deadCodeInjectionThreshold:0})),e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(34);t.DomainLockRule=function(e){if(e.domainLock.length){var t=[],r=!0,o=!1,a=void 0;try{for(var i,s=e.domainLock[Symbol.iterator]();!(r=(i=s.next()).done);r=!0){var c=i.value;t.push(n.Utils.extractDomainFrom(c))}}catch(e){o=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw a}}e=Object.assign({},e,{domainLock:t})}return e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InputFileNameRule=function(e){var t=e.inputFileName;return t&&(t=t.replace(/^\/+/,"").split(".").slice(0,-1).join(".")||t,e=Object.assign({},e,{inputFileName:"".concat(t,".js")})),e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SelfDefendingRule=function(e){return e.selfDefending&&(e=Object.assign({},e,{compact:!0,selfDefending:!0})),e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SourceMapBaseUrlRule=function(e){var t=e.sourceMapBaseUrl;return e.sourceMapFileName?(t&&!t.endsWith("/")&&(e=Object.assign({},e,{sourceMapBaseUrl:"".concat(t,"/")})),e):e=Object.assign({},e,{sourceMapBaseUrl:""})}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SourceMapFileNameRule=function(e){var t=e.sourceMapFileName;return t&&(t=t.replace(/^\/+/,"").split(".")[0],e=Object.assign({},e,{sourceMapFileName:"".concat(t,".js.map")})),e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayRule=function(e){return e.stringArray||(e=Object.assign({},e,{rotateStringArray:!1,stringArray:!1,stringArrayEncoding:!1,stringArrayThreshold:0})),e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(37);t.StringArrayEncodingRule=function(e){return!0===e.stringArrayEncoding&&(e=Object.assign({},e,{stringArrayEncoding:n.StringArrayEncoding.Base64})),e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayThresholdRule=function(e){return 0===e.stringArrayThreshold&&(e=Object.assign({},e,{rotateStringArray:!1,stringArray:!1,stringArrayEncoding:!1,stringArrayThreshold:0})),e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(20),o=r(2),a=r(5),i=r(29),s=r(58),c=r(169),d=r(170),u=r(171),l=r(172),f=r(173),p=r(175),m=r(176),g=r(177);t.preparingTransformersModule=new o.ContainerModule(function(e){e(a.ServiceIdentifiers.INodeTransformer).to(d.CommentsTransformer).whenTargetNamed(i.NodeTransformer.CommentsTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(l.CustomNodesTransformer).whenTargetNamed(i.NodeTransformer.CustomNodesTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(f.EvalCallExpressionTransformer).whenTargetNamed(i.NodeTransformer.EvalCallExpressionTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(p.MetadataTransformer).whenTargetNamed(i.NodeTransformer.MetadataTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(m.ObfuscatingGuardsTransformer).whenTargetNamed(i.NodeTransformer.ObfuscatingGuardsTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(g.ParentificationTransformer).whenTargetNamed(i.NodeTransformer.ParentificationTransformer),e(a.ServiceIdentifiers.INodeGuard).to(c.BlackListObfuscatingGuard).inSingletonScope().whenTargetNamed(s.ObfuscatingGuard.BlackListNodeGuard),e(a.ServiceIdentifiers.INodeGuard).to(u.ConditionalCommentObfuscatingGuard).inSingletonScope().whenTargetNamed(s.ObfuscatingGuard.ConditionalCommentNodeGuard),e(a.ServiceIdentifiers.Factory__INodeGuard).toFactory(n.InversifyContainerFacade.getCacheFactory(a.ServiceIdentifiers.INodeGuard))})},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i,s=r(4),c=r(2),d=r(9),u=i=function(){function e(){(0,o.default)(this,e),this.blackListGuardsLength=i.blackListGuards.length}return(0,a.default)(e,[{key:"check",value:function(e){for(var t=0;t=0?t:null}},{key:"getLength",value:function(){return this.storageLength}},{key:"getStorage",value:function(){return this.storage}},{key:"getStorageId",value:function(){return this.storageId}},{key:"mergeWith",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.storage=(0,o.default)(this.storage).concat((0,o.default)(e.getStorage())),t&&(this.storageId=e.getStorageId())}},{key:"set",value:function(e,t){e===this.storageLength?this.storage.push(t):this.storage.splice(e,0,t),this.storageLength++}}]),e}();s.__decorate([u.initializable(),s.__metadata("design:type",Array)],l.prototype,"storage",void 0),s.__decorate([u.initializable(),s.__metadata("design:type",String)],l.prototype,"storageId",void 0),s.__decorate([c.postConstruct(),s.__metadata("design:type",Function),s.__metadata("design:paramtypes",[]),s.__metadata("design:returntype",void 0)],l.prototype,"initialize",null),l=s.__decorate([c.injectable(),s.__param(0,c.inject(d.ServiceIdentifiers.IRandomGenerator)),s.__param(1,c.inject(d.ServiceIdentifiers.IOptions)),s.__metadata("design:paramtypes",[Object,Object])],l),t.ArrayStorage=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(2),o=r(5),a=r(184),i=r(185),s=r(188),c=r(60);t.utilsModule=new n.ContainerModule(function(e){e(o.ServiceIdentifiers.IArrayUtils).to(a.ArrayUtils).inSingletonScope(),e(o.ServiceIdentifiers.IRandomGenerator).to(c.RandomGenerator).inSingletonScope(),e(o.ServiceIdentifiers.ICryptUtils).to(i.CryptUtils).inSingletonScope(),e(o.ServiceIdentifiers.IEscapeSequenceEncoder).to(s.EscapeSequenceEncoder).inSingletonScope()})},function(e,t,r){"use strict";var n=r(0),o=n(r(28)),a=n(r(1)),i=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var s=r(4),c=r(2),d=r(5),u=function(){function e(t){(0,a.default)(this,e),this.randomGenerator=t}return(0,i.default)(e,[{key:"createWithRange",value:function(e){for(var t=[],r=0;r>8-o%1*8)){if((n=e.charCodeAt(o+=.75))>255)throw new Error("'btoa' failed: The string to be encoded contains characters outside of the Latin1 range.");r=r<<8|n}return t}},{key:"hideString",value:function(e,t){var r=this,n=this.randomGenerator.getRandomGenerator().string({length:t,pool:d.RandomGenerator.randomGeneratorPool}).replace(new RegExp("[".concat(e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"),"]"),"g"),""),o=n.split("");return this.randomGenerator.getRandomGenerator().shuffle(o),[function(e,t){for(var n=-1,o=-1,a="";n"),c="...".concat(o.substring(a,i).replace(/^\s+/,""),"...");throw new Error("Line ".concat(n.line,": ").concat(r,"\n").concat(s," ").concat(c))}}]),e}();d.colorError=c.default.red,d.nearestSymbolsCount=15,d.sourceTypes=["script","module"],t.EspreeFacade=d},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(6)),i=n(r(7)),s=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var c=r(4),d=r(2),u=r(193);d.decorate(d.injectable(),u.EventEmitter);var l=function(e){function t(){return(0,o.default)(this,t),(0,a.default)(this,(0,i.default)(t).apply(this,arguments))}return(0,s.default)(t,e),t}(u.EventEmitter);l=c.__decorate([d.injectable()],l),t.ObfuscationEventEmitter=l},function(e,t){e.exports=require("events")},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i=r(4),s=r(2),c=r(5),d=r(10),u=r(36),l=function(){function e(t,r){(0,o.default)(this,e),this.cryptUtils=t,this.options=r}return(0,a.default)(e,[{key:"initialize",value:function(e,t){this.obfuscatedCode=e,this.sourceMap=t}},{key:"getObfuscatedCode",value:function(){return this.correctObfuscatedCode()}},{key:"getSourceMap",value:function(){return this.sourceMap}},{key:"toString",value:function(){return this.obfuscatedCode}},{key:"correctObfuscatedCode",value:function(){if(!this.sourceMap)return this.obfuscatedCode;var e=this.options.sourceMapBaseUrl+this.options.sourceMapFileName,t="//# sourceMappingURL=";switch(this.options.sourceMapMode){case u.SourceMapMode.Inline:t+="data:application/json;base64,".concat(this.cryptUtils.btoa(this.sourceMap));break;case u.SourceMapMode.Separate:default:if(!e)return this.obfuscatedCode;t+=e}return"".concat(this.obfuscatedCode,"\n").concat(t)}}]),e}();i.__decorate([d.initializable(),i.__metadata("design:type",String)],l.prototype,"obfuscatedCode",void 0),i.__decorate([d.initializable(),i.__metadata("design:type",String)],l.prototype,"sourceMap",void 0),l=i.__decorate([s.injectable(),i.__param(0,s.inject(c.ServiceIdentifiers.ICryptUtils)),i.__param(1,s.inject(c.ServiceIdentifiers.IOptions)),i.__metadata("design:paramtypes",[Object,Object])],l),t.ObfuscatedCode=l},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(t,r){(0,o.default)(this,e),this.sourceCode=t,this.sourceMap=r}return(0,a.default)(e,[{key:"getSourceCode",value:function(){return this.sourceCode}},{key:"getSourceMap",value:function(){return this.sourceMap}},{key:"toString",value:function(){return this.sourceCode}}]),e}();t.SourceCode=i},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i=r(4),s=r(2),c=r(5),d=i.__importStar(r(16)),u=r(197),l=r(9),f=r(17),p=function(){function e(t){(0,o.default)(this,e),this.nodeTransformerFactory=t}return(0,a.default)(e,[{key:"transform",value:function(e,t,r){if(!t.length)return e;for(var n,o=[],a=[],i=t.length,s=0;s [options]").version("0.18.3","-v, --version").option("-o, --output ","Output path for obfuscated code").option("--compact ","Disable one line output code compacting",f.BooleanSanitizer).option("--config ","Name of js / json config file").option("--control-flow-flattening ","Enables control flow flattening",f.BooleanSanitizer).option("--control-flow-flattening-threshold ","The probability that the control flow flattening transformation will be applied to the node",parseFloat).option("--dead-code-injection ","Enables dead code injection",f.BooleanSanitizer).option("--dead-code-injection-threshold ","The probability that the dead code injection transformation will be applied to the node",parseFloat).option("--debug-protection ","Disable browser Debug panel (can cause DevTools enabled browser freeze)",f.BooleanSanitizer).option("--debug-protection-interval ","Disable browser Debug panel even after page was loaded (can cause DevTools enabled browser freeze)",f.BooleanSanitizer).option("--disable-console-output ","Allow console.log, console.info, console.error and console.warn messages output into browser console",f.BooleanSanitizer).option("--domain-lock (comma separated, without whitespaces)","Blocks the execution of the code in domains that do not match the passed RegExp patterns (comma separated)",l.ArraySanitizer).option("--exclude (comma separated, without whitespaces)","A filename or glob which indicates files to exclude from obfuscation",l.ArraySanitizer).option("--identifier-names-generator ","Sets identifier names generator. Values: hexadecimal, mangled. Default: hexadecimal",p.IdentifierNamesGeneratorSanitizer).option("--identifiers-prefix ","Sets prefix for all global identifiers.").option("--log ","Enables logging of the information to the console",f.BooleanSanitizer).option("--reserved-names (comma separated, without whitespaces)","Disables obfuscation and generation of identifiers, which being matched by passed RegExp patterns (comma separated)",l.ArraySanitizer).option("--reserved-strings (comma separated, without whitespaces)","Disables transformation of string literals, which being matched by passed RegExp patterns (comma separated)",l.ArraySanitizer).option("--rename-globals ","Allows to enable obfuscation of global variable and function names with declaration.",f.BooleanSanitizer).option("--rotate-string-array ","Disable rotation of unicode array values during obfuscation",f.BooleanSanitizer).option("--seed ","Sets seed for random generator. This is useful for creating repeatable results.",parseFloat).option("--self-defending ","Disables self-defending for obfuscated code",f.BooleanSanitizer).option("--source-map ","Enables source map generation",f.BooleanSanitizer).option("--source-map-base-url ","Sets base url to the source map import url when `--source-map-mode=separate`").option("--source-map-file-name ","Sets file name for output source map when `--source-map-mode=separate`").option("--source-map-mode ","Specify source map output mode. Values: inline, separate. Default: separate",g.SourceMapModeSanitizer).option("--string-array ","Disables gathering of all literal strings into an array and replacing every literal string with an array call",f.BooleanSanitizer).option("--string-array-encoding ","Encodes all strings in strings array using base64 or rc4 (this option can slow down your code speed. Values: true, false, base64, rc4. Default: false",N.StringArrayEncodingSanitizer).option("--string-array-threshold ","The probability that the literal string will be inserted into stringArray (Default: 0.8, Min: 0, Max: 1)",parseFloat).option("--target ","Allows to set target environment for obfuscated code. Values: browser, browser-no-eval, node. Default: browser",m.ObfuscationTargetSanitizer).option("--transform-object-keys ","Enables transformation of object keys",f.BooleanSanitizer).option("--unicode-escape-sequence ","Allows to enable/disable string conversion to unicode escape sequence",f.BooleanSanitizer).parse(this.rawArguments)}},{key:"configureHelp",value:function(){this.commands.on("--help",function(){console.log(" Examples:\n"),console.log(" %> javascript-obfuscator input_file_name.js --compact true --self-defending false"),console.log(" %> javascript-obfuscator input_file_name.js --output output_file_name.js --compact true --self-defending false"),console.log(" %> javascript-obfuscator input_directory_name --compact true --self-defending false"),console.log("")})}},{key:"processSourceCodeData",value:function(e){var t=this,r=this.inputCLIOptions.output?c.normalize(this.inputCLIOptions.output):"";if(Array.isArray(e))e.forEach(function(e,n){var o=e.filePath,a=e.content,i=r?c.join(r,o):v.CLIUtils.getOutputCodePath(o);t.processSourceCode(a,i,n)});else{var n=r||v.CLIUtils.getOutputCodePath(this.inputPath);this.processSourceCode(e,n,null)}}},{key:"processSourceCode",value:function(t,r,n){var o=this.buildOptions();if(null!==n){var a=this.inputCLIOptions.identifiersPrefix||e.baseIdentifiersPrefix,i="".concat(a).concat(n);o=Object.assign({},o,{identifiersPrefix:i})}o.sourceMap?e.processSourceCodeWithSourceMap(t,r,o):e.processSourceCodeWithoutSourceMap(t,r,o)}}],[{key:"filterOptions",value:function(e){var t={};return Object.keys(e).forEach(function(r){void 0!==e[r]&&(t[r]=e[r])}),t}},{key:"processSourceCodeWithoutSourceMap",value:function(e,t,r){var n=y.JavaScriptObfuscator.obfuscate(e,r).getObfuscatedCode();v.CLIUtils.writeFile(t,n)}},{key:"processSourceCodeWithSourceMap",value:function(e,t,r){var n=v.CLIUtils.getOutputSourceMapPath(t,r.sourceMapFileName||"");r=Object.assign({},r,{sourceMapFileName:c.basename(n)});var o=y.JavaScriptObfuscator.obfuscate(e,r);v.CLIUtils.writeFile(t,o.getObfuscatedCode()),"separate"===r.sourceMapMode&&o.getSourceMap()&&v.CLIUtils.writeFile(n,o.getSourceMap())}}]),e}();_.encoding="utf8",_.obfuscatedFilePrefix="-obfuscated",_.baseIdentifiersPrefix="a",i.__decorate([d.initializable(),i.__metadata("design:type",Object)],_.prototype,"commands",void 0),i.__decorate([d.initializable(),i.__metadata("design:type",Object)],_.prototype,"inputCLIOptions",void 0),i.__decorate([d.initializable(),i.__metadata("design:type",String)],_.prototype,"inputPath",void 0),t.JavaScriptObfuscatorCLI=_},function(e,t){e.exports=require("path")},function(e,t){e.exports=require("fs")},,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(203);e.exports=n.JavaScriptObfuscatorCLI},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0}),r(62);var i=r(198),s=function(){function e(){(0,o.default)(this,e)}return(0,a.default)(e,null,[{key:"obfuscate",value:function(e){var t=new i.JavaScriptObfuscatorCLI(e);t.initialize(),t.run()}}]),e}();t.JavaScriptObfuscatorCLI=s},function(e,t){e.exports=require("commander")},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ArraySanitizer=function(e){if(/,$/.test(e))throw new SyntaxError("Multiple values should be wrapped inside quotes: --option-name 'value1','value2'");return e.split(",").map(function(e){return e.trim()})}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BooleanSanitizer=function(e){return"true"===e||"1"===e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(35);t.IdentifierNamesGeneratorSanitizer=function(e){if(!Object.keys(n.IdentifierNamesGenerator).some(function(t){return n.IdentifierNamesGenerator[t]===e}))throw new ReferenceError("Invalid value of `--identifier-names-generator` option");return e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(23);t.ObfuscationTargetSanitizer=function(e){if(!Object.keys(n.ObfuscationTarget).some(function(t){return n.ObfuscationTarget[t]===e}))throw new ReferenceError("Invalid value of `--target` option");return e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(36);t.SourceMapModeSanitizer=function(e){if(!Object.keys(n.SourceMapMode).some(function(t){return n.SourceMapMode[t]===e}))throw new ReferenceError("Invalid value of `--source-map-mode` option");return e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(37);t.StringArrayEncodingSanitizer=function(e){switch(e){case"true":case"1":case n.StringArrayEncoding.Base64:return!0;case n.StringArrayEncoding.Rc4:return n.StringArrayEncoding.Rc4;default:return!1}}},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i=r(4),s=i.__importStar(r(200)),c=i.__importStar(r(212)),d=i.__importStar(r(199)),u=r(198),l=function(){function e(){(0,o.default)(this,e)}return(0,a.default)(e,null,[{key:"getOutputCodePath",value:function(e){return d.normalize(e).split(".").map(function(e,t){return 0===t?"".concat(e).concat(u.JavaScriptObfuscatorCLI.obfuscatedFilePrefix):e}).join(".")}},{key:"getOutputSourceMapPath",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return t&&(e="".concat(e.substring(0,e.lastIndexOf("/")),"/").concat(t)),/\.js\.map$/.test(e)?/\.js$/.test(e)&&(e+=".map"):e="".concat(e.split(".")[0],".js.map"),e}},{key:"getUserConfig",value:function(e){var t;try{t=r(213)(e)}catch(r){try{t=require(e)}catch(e){throw new ReferenceError("Given config path must be a valid `.js` or `.json` file path")}}return t}},{key:"writeFile",value:function(e,t){c.sync(d.dirname(e)),s.writeFileSync(e,t,{encoding:u.JavaScriptObfuscatorCLI.encoding})}}]),e}();t.CLIUtils=l},function(e,t){e.exports=require("mkdirp")},function(e,t){function r(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}r.keys=function(){return[]},r.resolve=r,e.exports=r,r.id=213},function(e,t,r){"use strict";var n=r(0),o=n(r(28)),a=n(r(1)),i=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var s=r(4),c=s.__importStar(r(200)),d=s.__importStar(r(199)),u=s.__importDefault(r(215)),l=r(64),f=r(198),p=r(63),m=function(){function e(t){(0,a.default)(this,e),this.options=t}return(0,i.default)(e,[{key:"readSourceCode",value:function(t){if(e.isFilePath(t)&&this.isValidFile(t))return this.readFile(t);if(e.isDirectoryPath(t)&&this.isValidDirectory(t))return this.readDirectoryRecursive(t);var r=e.availableInputExtensions.map(function(e){return"`".concat(e,"`")}).join(", ");throw new ReferenceError("Given input path must be a valid ".concat(r," file or directory path"))}},{key:"readDirectoryRecursive",value:function(t){var r=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return c.readdirSync(t,f.JavaScriptObfuscatorCLI.encoding).forEach(function(a){var i="".concat(t,"/").concat(a);if(e.isDirectoryPath(i)&&r.isValidDirectory(i))n.push.apply(n,(0,o.default)(r.readDirectoryRecursive(i)));else if(e.isFilePath(i)&&r.isValidFile(i)){var s=r.readFile(i);n.push({filePath:i,content:s})}}),n}},{key:"readFile",value:function(t){return e.logFilePath(t),c.readFileSync(t,f.JavaScriptObfuscatorCLI.encoding)}},{key:"isValidDirectory",value:function(t){return!e.isExcludedPath(t,this.options.exclude)}},{key:"isValidFile",value:function(t){return e.availableInputExtensions.includes(d.extname(t))&&!t.includes(f.JavaScriptObfuscatorCLI.obfuscatedFilePrefix)&&!e.isExcludedPath(t,this.options.exclude)}}],[{key:"isExcludedPath",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(!t.length)return!1;var r=d.basename(e),n=!!u.default([e],t).length;return t.some(function(t){return e.includes(t)||r.includes(t)})||n}},{key:"isDirectoryPath",value:function(e){try{return c.statSync(e).isDirectory()}catch(e){return!1}}},{key:"isFilePath",value:function(e){try{return c.statSync(e).isFile()}catch(e){return!1}}},{key:"logFilePath",value:function(e){var t=d.normalize(e);p.Logger.log(p.Logger.colorInfo,l.LoggingPrefix.CLI,"Obfuscating file: ".concat(t,"..."))}}]),e}();m.availableInputExtensions=[".js"],t.SourceCodeReader=m},function(e,t){e.exports=require("multimatch")}]); +require("source-map-support").install(),module.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.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 o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));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",e.Factory__IControlFlowCustomNode="Factory",e.Factory__IControlFlowReplacer="Factory",e.Factory__ICustomNode="Factory",e.Factory__ICustomNodeGroup="Factory",e.Factory__IDeadCodeInjectionCustomNode="Factory",e.Factory__IIdentifierNamesGenerator="Factory",e.Factory__IIdentifierObfuscatingReplacer="Factory",e.Factory__INodeGuard="Factory",e.Factory__INodeTransformer="Factory",e.Factory__IObfuscatedCode="Factory",e.Factory__IObfuscatingReplacer="Factory",e.Factory__IPropertiesExtractor="Factory",e.Factory__TControlFlowStorage="Factory",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",e.Newable__TControlFlowStorage="Newable",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),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i=r(19),s=function(){function e(){(0,o.default)(this,e)}return(0,a.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,o=e.isContinueStatementNode(r)&&r.label===t,a=e.isBreakStatementNode(r)&&r.label===t;return n||o||a}},{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:"isReplaceableIdentifierNode",value:function(t,r){if(!e.isIdentifierNode(t))return!1;var n=e.isPropertyNode(r)&&!r.computed&&r.key===t,o=e.isMemberExpressionNode(r)&&!r.computed&&r.property===t,a=e.isMethodDefinitionNode(r)&&!r.computed,i=e.isLabelIdentifierNode(t,r);return!(n||o||a||i)}},{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}();s.nodesWithLexicalStatements=[i.NodeType.ArrowFunctionExpression,i.NodeType.FunctionDeclaration,i.NodeType.FunctionExpression,i.NodeType.MethodDefinition],t.NodeGuards=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={configurable:!0,enumerable:!0},o="_initialized",a="_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(o,!1,r),c(a,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(a,e),d=Reflect.getMetadata(i,e),u=c.includes(r)||s.has(r)||d.has(r);if(!u){var l=e[r];if("function"==typeof l){var f=Object.getOwnPropertyDescriptor(e,r)||n,p=f.value;Object.defineProperty(e,r,Object.assign({},f,{value:function(){if(!Reflect.getMetadata(o,this))throw new Error("Class should be initialized with `".concat(t,"()` method"));return p.apply(this,arguments)}})),d.add(r)}}})}(r,e),function(e,t,r){var a=Object.getOwnPropertyDescriptor(e,t)||n,i=a.value;Object.defineProperty(e,t,Object.assign({},a,{value:function(){Reflect.defineMetadata(o,!0,this);var e=i.apply(this,arguments);return this[r],e}}))}(r,e,d),function(e,t){Reflect.getMetadata(a,e).add(t);var r="_".concat(t.toString()),o=Object.getOwnPropertyDescriptor(e,r)||n;return Object.defineProperty(e,t,Object.assign({},o,{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}})),o}(r,d)}}},function(e,t,r){"use strict";var n=r(0),o=n(r(50)),a=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,a.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 a,i=t[n];a=null===i||i instanceof RegExp?i:Array.isArray(i)?i.map(e.cloneRecursive):"object"===(0,o.default)(i)?e.cloneRecursive(i):i,r[n]=a}}),r}}]),e}();t.NodeUtils=p},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){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 o=r(4),a=r(2),i=r(5),s=function e(t,r){(0,n.default)(this,e),this.randomGenerator=t,this.options=r};s=o.__decorate([a.injectable(),o.__param(0,a.inject(i.ServiceIdentifiers.IRandomGenerator)),o.__param(1,a.inject(i.ServiceIdentifiers.IOptions)),o.__metadata("design:paramtypes",[Object,Object])],s),t.AbstractNodeTransformer=s},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i=r(4).__importStar(r(44)),s=r(19),c=function(){function e(){(0,o.default)(this,e)}return(0,a.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({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=r(0),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i,s=r(4),c=r(2),d=r(5),u=r(94),l=r(95),f=i=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,a.default)(e,[{key:"getNode",value:function(){return this.cachedNode||(this.cachedNode=this.getNodeStructure()),this.cachedNode}},{key:"getGlobalVariableTemplate",value:function(){return this.randomGenerator.getRandomGenerator().pickone(i.globalVariableTemplateFunctions)}}]),e}();f.globalVariableTemplateFunctions=[u.GlobalVariableTemplate1(),l.GlobalVariableTemplate2()],f=i=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),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){(0,o.default)(this,e)}return(0,a.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";var n=r(0),o=n(r(65)),a=n(r(1)),i=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var s=r(2),c=r(5),d=r(66),u=r(71),l=r(79),f=r(87),p=r(133),m=r(134),g=r(137),N=r(138),v=r(152),y=r(168),h=r(178),_=r(183),b=r(189),S=r(63),I=r(192),C=r(194),F=r(195),O=r(196),j=function(){function e(){(0,a.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 F.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(O.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(h.storagesModule),this.container.load(_.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 o=t.container.getNamed(e,n);return r.set(n,o),o}}}},{key:"getConstructorFactory",value:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n1&&void 0!==arguments[1]?arguments[1]:1/0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;if(n.length>=r)return n;var a=t.parentNode;if(!a)throw new ReferenceError("`parentNode` property of given node is `undefined`");return(i.NodeGuards.isProgramNode(t)||i.NodeGuards.isNodeWithLexicalScopeStatements(t,a)&&o>0)&&n.push(t),t!==a?e.getParentNodesWithStatementsRecursive(a,r,n,++o):n}},{key:"getSiblingStatementByOffset",value:function(t,r){var n=e.getScopeOfNode(t),o=i.NodeGuards.isSwitchCaseNode(n)?n.consequent:n.body;return o[o.indexOf(t)+r]||null}}]),e}();t.NodeStatementUtils=s},function(e,t,r){"use strict";var n=r(0),o=n(r(28)),a=n(r(1)),i=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var s=r(9),c=function(){function e(){(0,a.default)(this,e)}return(0,i.default)(e,null,[{key:"append",value:function(t,r){r=e.parentizeScopeStatementsBeforeAppend(t,r),e.setScopeStatements(t,(0,o.default)(e.getScopeStatements(t)).concat((0,o.default)(r)))}},{key:"appendToOptimalBlockScope",value:function(t,r,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=t.length?e.getOptimalBlockScope(t,o):r;e.prepend(a,n)}},{key:"getOptimalBlockScope",value:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,o=t[r];if(n<=0)throw new Error("Invalid `deep` argument value. Value should be bigger then 0.");return n>1&&o.stackTrace.length?e.getOptimalBlockScope(o.stackTrace,0,--n):o.callee}},{key:"insertAfter",value:function(t,r,n){var o=e.getScopeStatements(t).indexOf(n);e.insertAtIndex(t,r,o+1)}},{key:"insertAtIndex",value:function(t,r,n){r=e.parentizeScopeStatementsBeforeAppend(t,r),e.setScopeStatements(t,(0,o.default)(e.getScopeStatements(t).slice(0,n)).concat((0,o.default)(r),(0,o.default)(e.getScopeStatements(t).slice(n))))}},{key:"prepend",value:function(t,r){r=e.parentizeScopeStatementsBeforeAppend(t,r),e.setScopeStatements(t,(0,o.default)(r).concat((0,o.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),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i=r(9),s=function(){function e(){(0,o.default)(this,e)}return(0,a.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]:[],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;if(n.length>=r)return n;var a=t.parentNode;if(!a)throw new ReferenceError("`parentNode` property of given node is `undefined`");return i.NodeGuards.isNodeWithLexicalScope(t)&&n.push(t),t!==a?e.getLexicalScopesRecursive(a,r,n,++o):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"}(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),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0}),r(62);var i=r(5),s=r(20),c=function(){function e(){(0,o.default)(this,e)}return(0,a.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).obfuscate(e);return r.unload(),n}}]),e}();c.version="0.18.3",t.JavaScriptObfuscator=c},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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,o.default)(this,e),this.identifierNamesGenerator=t(n),this.randomGenerator=r,this.options=n}return(0,a.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),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){(0,o.default)(this,e)}return(0,a.default)(e,null,[{key:"extractDomainFrom",value:function(e){return(e.indexOf("://")>-1||0===e.indexOf("//")?e.split("/")[2]:e.split("/")[0]).split(":")[0]}}]),e}();i.hexadecimalPrefix="0x",t.Utils=i},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),o=r(23),a=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:a.SourceMapMode.Separate,stringArray:!1,stringArrayEncoding:!1,stringArrayThreshold:0,target:o.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),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){(0,o.default)(this,e)}return(0,a.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 o=r(4),a=r(2),i=r(5),s=function e(t){(0,n.default)(this,e),this.options=t};s=o.__decorate([a.injectable(),o.__param(0,a.inject(i.ServiceIdentifiers.IOptions)),o.__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 o=r(4),a=r(2),i=function e(){(0,n.default)(this,e)};i=o.__decorate([a.injectable()],i),t.AbstractCalleeDataExtractor=i},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i,s=r(4),c=r(2),d=r(5),u=i=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,a.default)(e,[{key:"insertCustomNodeToControlFlowStorage",value:function(e,t,r,n){var o=this,a=t.getStorageId(),s=i.getStorageKeysByIdForCurrentStorage(this.replacerDataByControlFlowStorageId,a),c=s.get(r);if(this.randomGenerator.getMathRandom()1&&void 0!==arguments[1]&&arguments[1];this.storage=new Map((0,o.default)(this.storage).concat((0,o.default)(e.getStorage()))),t&&(this.storageId=e.getStorageId())}},{key:"set",value:function(e,t){this.storage.set(e,t)}}]),e}();c.__decorate([l.initializable(),c.__metadata("design:type",String)],f.prototype,"storageId",void 0),c.__decorate([l.initializable(),c.__metadata("design:type",Map)],f.prototype,"storage",void 0),c.__decorate([d.postConstruct(),c.__metadata("design:type",Function),c.__metadata("design:paramtypes",[]),c.__metadata("design:returntype",void 0)],f.prototype,"initialize",null),f=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])],f),t.MapStorage=f},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i,s=r(4),c=r(2),d=r(5),u=s.__importDefault(r(186)),l=r(187),f=r(10),p=i=function(){function e(t,r){(0,o.default)(this,e),this.sourceCode=t,this.options=r}return(0,a.default)(e,[{key:"initialize",value:function(){var e,t,r,n=this;this.seed=0!==this.options.seed?this.options.seed:(e=0,t=999999999,Math.floor(Math.random()*(t-e+1)+e)),this.randomGenerator=new l.Chance((r=u.default(n.sourceCode.getSourceCode()),n.seed+Number(r.replace(/\D/g,""))))}},{key:"getMathRandom",value:function(){return this.getRandomInteger(0,99999)/1e5}},{key:"getRandomGenerator",value:function(){return this.randomGenerator}},{key:"getRandomInteger",value:function(e,t){return this.getRandomGenerator().integer({min:e,max:t})}},{key:"getRandomString",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.randomGeneratorPool;return this.getRandomGenerator().string({length:e,pool:t})}},{key:"getSeed",value:function(){return this.seed}}]),e}();p.randomGeneratorPool="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",s.__decorate([f.initializable(),s.__metadata("design:type",Object)],p.prototype,"randomGenerator",void 0),s.__decorate([f.initializable(),s.__metadata("design:type",Number)],p.prototype,"seed",void 0),s.__decorate([c.postConstruct(),s.__metadata("design:type",Function),s.__metadata("design:paramtypes",[]),s.__metadata("design:returntype",void 0)],p.prototype,"initialize",null),p=i=s.__decorate([c.injectable(),s.__param(0,c.inject(d.ServiceIdentifiers.ISourceCode)),s.__param(1,c.inject(d.ServiceIdentifiers.IOptions)),s.__metadata("design:paramtypes",[Object,Object])],p),t.RandomGenerator=p},function(e,t){e.exports=require("chalk")},function(e,t){e.exports=require("reflect-metadata")},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i,s=r(4),c=r(2),d=r(5),u=s.__importDefault(r(61)),l=r(64),f=i=function(){function e(t){(0,o.default)(this,e),this.options=t}return(0,a.default)(e,[{key:"info",value:function(e,t){this.options.log&&i.log(i.colorInfo,l.LoggingPrefix.Base,e,t)}},{key:"success",value:function(e,t){this.options.log&&i.log(i.colorSuccess,l.LoggingPrefix.Base,e,t)}},{key:"warn",value:function(e,t){this.options.log&&i.log(i.colorWarn,l.LoggingPrefix.Base,e,t)}}],[{key:"log",value:function(e,t,r,n){var o=e("\n".concat(t," ").concat(r));console.log(o,n||"")}}]),e}();f.colorInfo=u.default.cyan,f.colorSuccess=u.default.green,f.colorWarn=u.default.yellow,f=i=s.__decorate([c.injectable(),s.__param(0,c.inject(d.ServiceIdentifiers.IOptions)),s.__metadata("design:paramtypes",[Object])],f),t.Logger=f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.Base="[javascript-obfuscator]",e.CLI="[javascript-obfuscator-cli]"}(t.LoggingPrefix||(t.LoggingPrefix={}))},function(e,t){e.exports=require("@babel/runtime/helpers/construct")},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(20),o=r(2),a=r(5),i=r(47),s=r(67),c=r(68),d=r(69),u=r(70);t.analyzersModule=new o.ContainerModule(function(e){e(a.ServiceIdentifiers.IStackTraceAnalyzer).to(u.StackTraceAnalyzer).inSingletonScope(),e(a.ServiceIdentifiers.ICalleeDataExtractor).to(s.FunctionDeclarationCalleeDataExtractor).whenTargetNamed(i.CalleeDataExtractor.FunctionDeclarationCalleeDataExtractor),e(a.ServiceIdentifiers.ICalleeDataExtractor).to(c.FunctionExpressionCalleeDataExtractor).whenTargetNamed(i.CalleeDataExtractor.FunctionExpressionCalleeDataExtractor),e(a.ServiceIdentifiers.ICalleeDataExtractor).to(d.ObjectExpressionCalleeDataExtractor).whenTargetNamed(i.CalleeDataExtractor.ObjectExpressionCalleeDataExtractor),e(a.ServiceIdentifiers.Factory__ICalleeDataExtractor).toFactory(n.InversifyContainerFacade.getCacheFactory(a.ServiceIdentifiers.ICalleeDataExtractor))})},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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=d.__importStar(r(16)),f=r(42),p=r(9),m=r(24),g=function(e){function t(){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).apply(this,arguments))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"extract",value:function(e,t){if(!p.NodeGuards.isIdentifierNode(t))return null;var r=this.getCalleeBlockStatement(m.NodeStatementUtils.getParentNodeWithStatements(e[0]),t.name);return r?{callee:r,name:t.name}:null}},{key:"getCalleeBlockStatement",value:function(e,t){var r=null;return l.traverse(e,{enter:function(e){if(p.NodeGuards.isFunctionDeclarationNode(e)&&e.id.name===t)return r=e.body,l.VisitorOption.Break}}),r}}]),t}(f.AbstractCalleeDataExtractor);g=d.__decorate([u.injectable()],g),t.FunctionDeclarationCalleeDataExtractor=g},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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=d.__importStar(r(16)),f=r(42),p=r(9),m=r(24),g=function(e){function t(){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).apply(this,arguments))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"extract",value:function(e,t){var r=null;return p.NodeGuards.isIdentifierNode(t)&&(r=this.getCalleeBlockStatement(m.NodeStatementUtils.getParentNodeWithStatements(e[0]),t.name)),p.NodeGuards.isFunctionExpressionNode(t)&&(r=t.body),r?{callee:r,name:t.name||null}:null}},{key:"getCalleeBlockStatement",value:function(e,t){var r=null;return l.traverse(e,{enter:function(e,n){if(p.NodeGuards.isFunctionExpressionNode(e)&&n&&p.NodeGuards.isVariableDeclaratorNode(n)&&p.NodeGuards.isIdentifierNode(n.id)&&n.id.name===t)return r=e.body,l.VisitorOption.Break}}),r}}]),t}(f.AbstractCalleeDataExtractor);g=d.__decorate([u.injectable()],g),t.FunctionExpressionCalleeDataExtractor=g},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=u.__importStar(r(16)),p=r(42),m=r(9),g=r(24),N=d=function(e){function t(){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).apply(this,arguments))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"extract",value:function(e,t){if(!m.NodeGuards.isMemberExpressionNode(t))return null;var r=this.createObjectMembersCallsChain([],t);if(!r.length)return null;var n=r[r.length-1],o=this.getCalleeBlockStatement(g.NodeStatementUtils.getParentNodeWithStatements(e[0]),r);return o?{callee:o,name:n}:null}},{key:"createObjectMembersCallsChain",value:function(e,t){if(m.NodeGuards.isIdentifierNode(t.property)&&!1===t.computed)e.unshift(t.property.name);else{if(!m.NodeGuards.isLiteralNode(t.property)||"string"!=typeof t.property.value&&"number"!=typeof t.property.value)return e;e.unshift(t.property.value)}return m.NodeGuards.isMemberExpressionNode(t.object)?this.createObjectMembersCallsChain(e,t.object):(m.NodeGuards.isIdentifierNode(t.object)&&e.unshift(t.object.name),e)}},{key:"getCalleeBlockStatement",value:function(e,t){var r=this,n=t.shift();if(!n)return null;var o=null;return f.traverse(e,{enter:function(e){if(m.NodeGuards.isVariableDeclaratorNode(e)&&m.NodeGuards.isIdentifierNode(e.id)&&e.init&&m.NodeGuards.isObjectExpressionNode(e.init)&&e.id.name===n)return o=r.findCalleeBlockStatement(e.init.properties,t),f.VisitorOption.Break}}),o}},{key:"findCalleeBlockStatement",value:function(e,t){var r=t.shift();if(!r)return null;var n=!0,o=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(n=(i=s.next()).done);n=!0){var c=i.value;if(d.isValidTargetPropertyNode(c,r)){if(m.NodeGuards.isObjectExpressionNode(c.value))return this.findCalleeBlockStatement(c.value.properties,t);if(m.NodeGuards.isFunctionExpressionNode(c.value))return c.value.body}}}catch(e){o=!0,a=e}finally{try{n||null==s.return||s.return()}finally{if(o)throw a}}return null}}],[{key:"isValidTargetPropertyNode",value:function(e,t){if(!e.key)return!1;var r=m.NodeGuards.isIdentifierNode(e.key)&&e.key.name===t,n=m.NodeGuards.isLiteralNode(e.key)&&Boolean(e.key.value)&&e.key.value===t;return r||n}}]),t}(p.AbstractCalleeDataExtractor);N=d=u.__decorate([l.injectable()],N),t.ObjectExpressionCalleeDataExtractor=N},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i,s=r(4),c=r(2),d=r(5),u=s.__importStar(r(16)),l=r(47),f=r(9),p=r(24),m=i=function(){function e(t){(0,o.default)(this,e),this.calleeDataExtractorFactory=t}return(0,a.default)(e,[{key:"analyze",value:function(e){return this.analyzeRecursive(e.body)}},{key:"analyzeRecursive",value:function(e){for(var t=this,r=i.getLimitIndex(e.length),n=[],o=e.length,a=function(o){if(o>r)return"break";var a=e[o];u.traverse(a,{enter:function(r){if(f.NodeGuards.isCallExpressionNode(r))return a.parentNode!==p.NodeStatementUtils.getParentNodeWithStatements(r)?u.VisitorOption.Skip:void t.analyzeCallExpressionNode(n,e,r)}})},s=0;sr&&(n=Math.round(r+t*i.limitThreshold))>t&&(n=t),n}}]),e}();m.calleeDataExtractorsList=[l.CalleeDataExtractor.FunctionDeclarationCalleeDataExtractor,l.CalleeDataExtractor.FunctionExpressionCalleeDataExtractor,l.CalleeDataExtractor.ObjectExpressionCalleeDataExtractor],m.limitThresholdActivationLength=25,m.limitThreshold=.002,m=i=s.__decorate([c.injectable(),s.__param(0,c.inject(d.ServiceIdentifiers.Factory__ICalleeDataExtractor)),s.__metadata("design:paramtypes",[Function])],m),t.StackTraceAnalyzer=m},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(20),o=r(2),a=r(5),i=r(48),s=r(29),c=r(72),d=r(73),u=r(74),l=r(75),f=r(76),p=r(77),m=r(78);t.controlFlowTransformersModule=new o.ContainerModule(function(e){e(a.ServiceIdentifiers.INodeTransformer).to(d.BlockStatementControlFlowTransformer).whenTargetNamed(s.NodeTransformer.BlockStatementControlFlowTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(l.DeadCodeInjectionTransformer).whenTargetNamed(s.NodeTransformer.DeadCodeInjectionTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(f.FunctionControlFlowTransformer).whenTargetNamed(s.NodeTransformer.FunctionControlFlowTransformer),e(a.ServiceIdentifiers.IControlFlowReplacer).to(c.BinaryExpressionControlFlowReplacer).whenTargetNamed(i.ControlFlowReplacer.BinaryExpressionControlFlowReplacer),e(a.ServiceIdentifiers.IControlFlowReplacer).to(u.CallExpressionControlFlowReplacer).whenTargetNamed(i.ControlFlowReplacer.CallExpressionControlFlowReplacer),e(a.ServiceIdentifiers.IControlFlowReplacer).to(p.LogicalExpressionControlFlowReplacer).whenTargetNamed(i.ControlFlowReplacer.LogicalExpressionControlFlowReplacer),e(a.ServiceIdentifiers.IControlFlowReplacer).to(m.StringLiteralControlFlowReplacer).whenTargetNamed(i.ControlFlowReplacer.StringLiteralControlFlowReplacer),e(a.ServiceIdentifiers.Factory__IControlFlowReplacer).toFactory(n.InversifyContainerFacade.getCacheFactory(a.ServiceIdentifiers.IControlFlowReplacer))})},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=r(5),p=r(21),m=r(49),g=d=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r,n))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"replace",value:function(e,t,r){var n=e.operator,o=this.controlFlowCustomNodeFactory(p.ControlFlowCustomNode.BinaryExpressionFunctionNode);o.initialize(n);var a=this.insertCustomNodeToControlFlowStorage(o,r,n,d.usingExistingIdentifierChance);return this.getControlFlowStorageCallNode(r.getStorageId(),a,e.left,e.right)}}]),t}(m.ExpressionWithOperatorControlFlowReplacer);g.usingExistingIdentifierChance=.5,g=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IControlFlowCustomNode)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],g),t.BinaryExpressionControlFlowReplacer=g},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=r(5),p=u.__importStar(r(16)),m=r(21),g=r(12),N=r(13),v=r(9),y=r(11),h=d=function(e){function t(e,r,n,a){var c;return(0,o.default)(this,t),(c=(0,i.default)(this,(0,s.default)(t).call(this,n,a))).controlFlowCustomNodeFactory=e,c.arrayUtils=r,c}return(0,c.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case g.TransformationStage.ControlFlowFlattening:return{leave:function(e,r){if(r&&v.NodeGuards.isBlockStatementNode(e))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){if(this.randomGenerator.getMathRandom()>this.options.controlFlowFlatteningThreshold||!d.canTransformBlockStatementNode(e))return e;var r=e.body,n=this.arrayUtils.createWithRange(r.length),o=this.arrayUtils.shuffle(n),a=n.map(function(e){return o.indexOf(e)}),i=this.controlFlowCustomNodeFactory(m.ControlFlowCustomNode.BlockStatementControlFlowFlatteningNode);i.initialize(r,o,a);var s=i.getNode()[0];return y.NodeUtils.parentizeNode(s,t),s}}],[{key:"isProhibitedStatementNode",value:function(e){var t=v.NodeGuards.isBreakStatementNode(e)||v.NodeGuards.isContinueStatementNode(e),r=v.NodeGuards.isVariableDeclarationNode(e)&&("const"===e.kind||"let"===e.kind),n=v.NodeGuards.isClassDeclarationNode(e);return v.NodeGuards.isFunctionDeclarationNode(e)||t||r||n}},{key:"canTransformBlockStatementNode",value:function(e){var t=!0;return p.traverse(e,{enter:function(e){if(v.NodeGuards.isWhileStatementNode(e))return p.VisitorOption.Skip;d.isProhibitedStatementNode(e)&&(t=!1)}}),e.body.length<=4&&(t=!1),t}}]),t}(N.AbstractNodeTransformer);h=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IControlFlowCustomNode)),u.__param(1,l.inject(f.ServiceIdentifiers.IArrayUtils)),u.__param(2,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(3,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object,Object])],h),t.BlockStatementControlFlowTransformer=h},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=r(5),p=r(21),m=r(43),g=r(9),N=d=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r,n))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"replace",value:function(e,t,r){var n=e.callee;if(!g.NodeGuards.isIdentifierNode(n))return e;var o=String(e.arguments.length),a=this.controlFlowCustomNodeFactory(p.ControlFlowCustomNode.CallExpressionFunctionNode),i=e.arguments;a.initialize(i);var s=this.insertCustomNodeToControlFlowStorage(a,r,o,d.usingExistingIdentifierChance);return this.getControlFlowStorageCallNode(r.getStorageId(),s,n,i)}},{key:"getControlFlowStorageCallNode",value:function(e,t,r,n){var o=this.controlFlowCustomNodeFactory(p.ControlFlowCustomNode.CallExpressionControlFlowStorageCallNode);o.initialize(e,t,r,n);var a=o.getNode()[0];if(!a||!g.NodeGuards.isExpressionStatementNode(a))throw new Error("`controlFlowStorageCallCustomNode.getNode()[0]` should returns array with `ExpressionStatement` node");return a.expression}}]),t}(m.AbstractControlFlowReplacer);N.usingExistingIdentifierChance=.5,N=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IControlFlowCustomNode)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],N),t.CallExpressionControlFlowReplacer=N},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=r(5),p=u.__importStar(r(16)),m=r(52),g=r(29),N=r(19),v=r(12),y=r(13),h=r(14),_=r(9),b=r(24),S=r(11),I=d=function(e){function t(e,r,n,a){var c;return(0,o.default)(this,t),(c=(0,i.default)(this,(0,s.default)(t).call(this,n,a))).deadCodeInjectionRootAstHostNodeSet=new Set,c.collectedBlockStatements=[],c.collectedBlockStatementsTotalLength=0,c.deadCodeInjectionCustomNodeFactory=e,c.transformersRunner=r,c}return(0,c.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case v.TransformationStage.DeadCodeInjection:return{enter:function(e,r){if(r&&_.NodeGuards.isProgramNode(e))return t.analyzeNode(e,r),e},leave:function(e,r){if(r&&_.NodeGuards.isBlockStatementNode(e))return t.transformNode(e,r)}};case v.TransformationStage.Finalizing:return this.deadCodeInjectionRootAstHostNodeSet.size?{enter:function(e,r){if(r&&t.isDeadCodeInjectionRootAstHostNode(e))return t.restoreNode(e,r)}}:null;default:return null}}},{key:"analyzeNode",value:function(e,t){var r=this;p.traverse(e,{enter:function(e){if(_.NodeGuards.isBlockStatementNode(e)){var t=S.NodeUtils.clone(e);if(d.isValidCollectedBlockStatementNode(t)){var n=r.makeClonedBlockStatementNodeUnique(t);r.collectedBlockStatements.push(n)}}}}),this.collectedBlockStatementsTotalLength=this.collectedBlockStatements.length}},{key:"transformNode",value:function(e,t){if(!this.collectedBlockStatements.length||this.collectedBlockStatementsTotalLengththis.options.deadCodeInjectionThreshold||!d.isValidWrappedBlockStatementNode(e))return e;var r=this.collectedBlockStatements.length-1,n=this.randomGenerator.getRandomInteger(0,r),o=this.collectedBlockStatements.splice(n,1)[0];return o===e?e:this.replaceBlockStatementNode(e,o,t)}},{key:"restoreNode",value:function(e,t){var r=e.body[0];if(!_.NodeGuards.isFunctionDeclarationNode(r))throw new Error("Wrong dead code injection root AST host node. Host node should contain `FunctionDeclaration` node");return r.body}},{key:"isDeadCodeInjectionRootAstHostNode",value:function(e){return _.NodeGuards.isBlockStatementNode(e)&&this.deadCodeInjectionRootAstHostNodeSet.has(e)}},{key:"makeClonedBlockStatementNodeUnique",value:function(e){var t=h.NodeFactory.functionExpressionNode([],e);return S.NodeUtils.parentizeNode(t,t),S.NodeUtils.parentizeNode(e,t),this.transformersRunner.transform(t,d.transformersToRenameBlockScopeIdentifiers,v.TransformationStage.Obfuscating).body}},{key:"replaceBlockStatementNode",value:function(e,t,r){var n=h.NodeFactory.blockStatementNode([h.NodeFactory.functionDeclarationNode(d.deadCodeInjectionRootAstHostNodeName,[],t)]);this.deadCodeInjectionRootAstHostNodeSet.add(n);var o=this.deadCodeInjectionCustomNodeFactory(m.DeadCodeInjectionCustomNode.BlockStatementDeadCodeInjectionNode);o.initialize(e,n);var a=o.getNode()[0];return S.NodeUtils.parentizeNode(a,r),a}}],[{key:"isProhibitedNodeInsideCollectedBlockStatement",value:function(e){return _.NodeGuards.isBreakStatementNode(e)||_.NodeGuards.isContinueStatementNode(e)||_.NodeGuards.isAwaitExpressionNode(e)||_.NodeGuards.isSuperNode(e)}},{key:"isScopeHoistingFunctionDeclaration",value:function(e){if(!_.NodeGuards.isFunctionDeclarationNode(e))return!1;var t=b.NodeStatementUtils.getScopeOfNode(e),r=_.NodeGuards.isSwitchCaseNode(t)?t.consequent:t.body,n=r.indexOf(e);if(0===n)return!1;var o=r.slice(0,n),a=h.NodeFactory.blockStatementNode(o),i=e.id.name,s=!1;return p.traverse(a,{enter:function(e){if(_.NodeGuards.isIdentifierNode(e)&&e.name===i)return s=!0,p.VisitorOption.Break}}),s}},{key:"isValidCollectedBlockStatementNode",value:function(e){if(!e.body.length)return!1;var t=0,r=!0;return p.traverse(e,{enter:function(e){if(_.NodeGuards.isBlockStatementNode(e)&&t++,t>d.maxNestedBlockStatementsCount||d.isProhibitedNodeInsideCollectedBlockStatement(e)||d.isScopeHoistingFunctionDeclaration(e))return r=!1,p.VisitorOption.Break}}),r}},{key:"isValidWrappedBlockStatementNode",value:function(e){if(!e.body.length)return!1;var t=!0;return p.traverse(e,{enter:function(e){if(d.isScopeHoistingFunctionDeclaration(e))return t=!1,p.VisitorOption.Break}}),!!t&&b.NodeStatementUtils.getParentNodeWithStatements(e).type!==N.NodeType.Program}}]),t}(y.AbstractNodeTransformer);I.deadCodeInjectionRootAstHostNodeName="deadCodeInjectionRootAstHostNode",I.maxNestedBlockStatementsCount=4,I.minCollectedBlockStatementsCount=5,I.transformersToRenameBlockScopeIdentifiers=[g.NodeTransformer.CatchClauseTransformer,g.NodeTransformer.ClassDeclarationTransformer,g.NodeTransformer.FunctionDeclarationTransformer,g.NodeTransformer.FunctionTransformer,g.NodeTransformer.LabeledStatementTransformer,g.NodeTransformer.VariableDeclarationTransformer],I=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IDeadCodeInjectionCustomNode)),u.__param(1,l.inject(f.ServiceIdentifiers.ITransformersRunner)),u.__param(2,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(3,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object,Object])],I),t.DeadCodeInjectionTransformer=I},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=r(5),p=u.__importStar(r(16)),m=r(21),g=r(48),N=r(19),v=r(12),y=r(13),h=r(25),_=r(9),b=r(17),S=r(24),I=d=function(e){function t(e,r,n,a,c){var d;return(0,o.default)(this,t),(d=(0,i.default)(this,(0,s.default)(t).call(this,a,c))).controlFlowData=new Map,d.visitedFunctionNodes=new Set,d.hostNodesWithControlFlowNode=new Set,d.controlFlowStorageFactory=e,d.controlFlowReplacerFactory=r,d.controlFlowCustomNodeFactory=n,d}return(0,c.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case v.TransformationStage.ControlFlowFlattening:return{leave:function(e,r){if(r&&(_.NodeGuards.isFunctionDeclarationNode(e)||_.NodeGuards.isFunctionExpressionNode(e)||_.NodeGuards.isArrowFunctionExpressionNode(e)))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){if(this.visitedFunctionNodes.add(e),!_.NodeGuards.isBlockStatementNode(e.body))return e;var r=this.getHostNode(e.body),n=this.getControlFlowStorage(r);if(this.controlFlowData.set(r,n),this.transformFunctionBody(e.body,n),!n.getLength())return e;var o=this.controlFlowCustomNodeFactory(m.ControlFlowCustomNode.ControlFlowStorageNode);return o.initialize(n),h.NodeAppender.prepend(r,o.getNode()),this.hostNodesWithControlFlowNode.add(r),e}},{key:"getControlFlowStorage",value:function(e){var t=this.controlFlowStorageFactory();if(this.controlFlowData.has(e)){this.hostNodesWithControlFlowNode.has(e)&&(_.NodeGuards.isSwitchCaseNode(e)?e.consequent.shift():e.body.shift());var r=this.controlFlowData.get(e);t.mergeWith(r,!0)}return t}},{key:"getHostNode",value:function(e){var t=S.NodeStatementUtils.getParentNodesWithStatements(e);return 1===t.length?e:(t.pop(),t.length>d.hostNodeSearchMinDepth&&t.splice(0,d.hostNodeSearchMinDepth),t.length>d.hostNodeSearchMaxDepth&&(t.length=d.hostNodeSearchMaxDepth),this.randomGenerator.getRandomGenerator().pickone(t))}},{key:"isVisitedFunctionNode",value:function(e){return(_.NodeGuards.isFunctionDeclarationNode(e)||_.NodeGuards.isFunctionExpressionNode(e)||_.NodeGuards.isArrowFunctionExpressionNode(e))&&this.visitedFunctionNodes.has(e)}},{key:"transformFunctionBody",value:function(e,t){var r=this;p.replace(e,{enter:function(e,n){if(b.NodeMetadata.isIgnoredNode(e))return p.VisitorOption.Skip;if(r.isVisitedFunctionNode(e)||!n)return p.VisitorOption.Skip;if(!d.controlFlowReplacersMap.has(e.type))return e;if(r.randomGenerator.getMathRandom()>r.options.controlFlowFlatteningThreshold)return e;var o=d.controlFlowReplacersMap.get(e.type);return void 0===o?e:Object.assign({},r.controlFlowReplacerFactory(o).replace(e,n,t),{parentNode:n})}})}}]),t}(y.AbstractNodeTransformer);I.controlFlowReplacersMap=new Map([[N.NodeType.BinaryExpression,g.ControlFlowReplacer.BinaryExpressionControlFlowReplacer],[N.NodeType.CallExpression,g.ControlFlowReplacer.CallExpressionControlFlowReplacer],[N.NodeType.LogicalExpression,g.ControlFlowReplacer.LogicalExpressionControlFlowReplacer],[N.NodeType.Literal,g.ControlFlowReplacer.StringLiteralControlFlowReplacer]]),I.hostNodeSearchMinDepth=0,I.hostNodeSearchMaxDepth=2,I=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__TControlFlowStorage)),u.__param(1,l.inject(f.ServiceIdentifiers.Factory__IControlFlowReplacer)),u.__param(2,l.inject(f.ServiceIdentifiers.Factory__IControlFlowCustomNode)),u.__param(3,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(4,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Function,Function,Object,Object])],I),t.FunctionControlFlowTransformer=I},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=r(5),p=r(21),m=r(49),g=r(9),N=r(11),v=d=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r,n))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"replace",value:function(e,t,r){if(this.checkForProhibitedExpressions(e.left,e.right))return e;var n=e.operator,o=this.controlFlowCustomNodeFactory(p.ControlFlowCustomNode.LogicalExpressionFunctionNode);o.initialize(n);var a=this.insertCustomNodeToControlFlowStorage(o,r,n,d.usingExistingIdentifierChance);return this.getControlFlowStorageCallNode(r.getStorageId(),a,e.left,e.right)}},{key:"checkForProhibitedExpressions",value:function(e,t){return[e,t].some(function(e){var t;return t=g.NodeGuards.isUnaryExpressionNode(e)?N.NodeUtils.getUnaryExpressionArgumentNode(e):e,!(g.NodeGuards.isLiteralNode(t)||g.NodeGuards.isIdentifierNode(t)||g.NodeGuards.isObjectExpressionNode(t)||g.NodeGuards.isExpressionStatementNode(t))})}}]),t}(m.ExpressionWithOperatorControlFlowReplacer);v.usingExistingIdentifierChance=.5,v=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IControlFlowCustomNode)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],v),t.LogicalExpressionControlFlowReplacer=v},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=r(5),p=r(21),m=r(43),g=r(9),N=d=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r,n))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"replace",value:function(e,t,r){if(g.NodeGuards.isPropertyNode(t)&&t.key===e)return e;if("string"!=typeof e.value||e.value.length<3)return e;var n=String(e.value),o=this.controlFlowCustomNodeFactory(p.ControlFlowCustomNode.StringLiteralNode);o.initialize(e.value);var a=this.insertCustomNodeToControlFlowStorage(o,r,n,d.usingExistingIdentifierChance);return this.getControlFlowStorageCallNode(r.getStorageId(),a)}},{key:"getControlFlowStorageCallNode",value:function(e,t){var r=this.controlFlowCustomNodeFactory(p.ControlFlowCustomNode.StringLiteralControlFlowStorageCallNode);r.initialize(e,t);var n=r.getNode()[0];if(!n||!g.NodeGuards.isExpressionStatementNode(n))throw new Error("`controlFlowStorageCallCustomNode.getNode()[0]` should returns array with `ExpressionStatement` node");return n.expression}}]),t}(m.AbstractControlFlowReplacer);N.usingExistingIdentifierChance=1,N=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IControlFlowCustomNode)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],N),t.StringLiteralControlFlowReplacer=N},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(2),o=r(20),a=r(5),i=r(29),s=r(53),c=r(80),d=r(81),u=r(82),l=r(83),f=r(84),p=r(85),m=r(86);t.convertingTransformersModule=new n.ContainerModule(function(e){e(a.ServiceIdentifiers.INodeTransformer).to(d.MemberExpressionTransformer).whenTargetNamed(i.NodeTransformer.MemberExpressionTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(u.MethodDefinitionTransformer).whenTargetNamed(i.NodeTransformer.MethodDefinitionTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(l.ObjectExpressionKeysTransformer).whenTargetNamed(i.NodeTransformer.ObjectExpressionKeysTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(f.ObjectExpressionTransformer).whenTargetNamed(i.NodeTransformer.ObjectExpressionTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(p.TemplateLiteralTransformer).whenTargetNamed(i.NodeTransformer.TemplateLiteralTransformer),e(a.ServiceIdentifiers.IPropertiesExtractor).to(c.AssignmentExpressionPropertiesExtractor).whenTargetNamed(s.PropertiesExtractor.AssignmentExpressionPropertiesExtractor),e(a.ServiceIdentifiers.IPropertiesExtractor).to(m.VariableDeclaratorPropertiesExtractor).whenTargetNamed(s.PropertiesExtractor.VariableDeclaratorPropertiesExtractor),e(a.ServiceIdentifiers.Factory__IPropertiesExtractor).toFactory(o.InversifyContainerFacade.getCacheFactory(a.ServiceIdentifiers.IPropertiesExtractor))})},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(54),p=function(e){function t(e,r){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"extract",value:function(e,t){var r=t.parentNode,n=t.left;return f.AbstractPropertiesExtractor.isProhibitedPattern(n)?e:r&&f.AbstractPropertiesExtractor.isProhibitedHostParent(r)?e:this.transformObjectExpressionNode(e,n)}}]),t}(f.AbstractPropertiesExtractor);p=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Object,Object])],p),t.AssignmentExpressionPropertiesExtractor=p},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(12),p=r(13),m=r(14),g=r(9),N=function(e){function t(e,r){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case f.TransformationStage.Converting:return{enter:function(e,r){if(r&&g.NodeGuards.isMemberExpressionNode(e))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){if(g.NodeGuards.isIdentifierNode(e.property)){if(e.computed)return e;e.computed=!0,e.property=m.NodeFactory.literalNode(e.property.name)}return e}}]),t}(p.AbstractNodeTransformer);N=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Object,Object])],N),t.MemberExpressionTransformer=N},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=r(5),p=r(12),m=r(13),g=r(14),N=r(9),v=d=function(e){function t(e,r){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case p.TransformationStage.Converting:return{enter:function(e,r){if(r&&N.NodeGuards.isMethodDefinitionNode(e))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){return N.NodeGuards.isIdentifierNode(e.key)&&!d.ignoredNames.includes(e.key.name)&&!1===e.computed&&(e.computed=!0,e.key=g.NodeFactory.literalNode(e.key.name)),e}}]),t}(m.AbstractNodeTransformer);v.ignoredNames=["constructor"],v=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(1,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Object,Object])],v),t.MethodDefinitionTransformer=v},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=r(5),p=r(19),m=r(53),g=r(12),N=r(13),v=r(9),y=d=function(e){function t(e,r,n){var a;return(0,o.default)(this,t),(a=(0,i.default)(this,(0,s.default)(t).call(this,r,n))).propertiesExtractorFactory=e,a}return(0,c.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;return e!==g.TransformationStage.Converting?null:{enter:function(e,r){if(t.options.transformObjectKeys&&r&&v.NodeGuards.isObjectExpressionNode(e))return t.transformNode(e,r)}}}},{key:"transformNode",value:function(e,t){if(!e.properties.length)return e;var r=d.propertiesExtractorsMap.get(t.type);return r?this.propertiesExtractorFactory(r).extract(e,t):e}}]),t}(N.AbstractNodeTransformer);y.propertiesExtractorsMap=new Map([[p.NodeType.AssignmentExpression,m.PropertiesExtractor.AssignmentExpressionPropertiesExtractor],[p.NodeType.VariableDeclarator,m.PropertiesExtractor.VariableDeclaratorPropertiesExtractor]]),y=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IPropertiesExtractor)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],y),t.ObjectExpressionKeysTransformer=y},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(12),p=r(13),m=r(14),g=r(9),N=function(e){function t(e,r,n){var a;return(0,o.default)(this,t),(a=(0,i.default)(this,(0,s.default)(t).call(this,r,n))).escapeSequenceEncoder=e,a}return(0,c.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case f.TransformationStage.Converting:return{enter:function(e,r){if(r&&g.NodeGuards.isObjectExpressionNode(e))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){var r=this;return e.properties.forEach(function(e){e.key&&(e.computed?r.transformComputedProperty(e):r.transformBaseProperty(e))}),e}},{key:"transformComputedProperty",value:function(e){g.NodeGuards.isLiteralNode(e.key)&&"string"==typeof e.key.value&&(e.key=m.NodeFactory.literalNode(this.getPropertyKeyValue(e.key.value)))}},{key:"transformBaseProperty",value:function(e){e.shorthand&&(e.shorthand=!1),g.NodeGuards.isIdentifierNode(e.key)&&(e.key=m.NodeFactory.literalNode(this.getPropertyKeyValue(e.key.name)))}},{key:"getPropertyKeyValue",value:function(e){return this.options.unicodeEscapeSequence?this.escapeSequenceEncoder.encode(e,!0):e}}]),t}(p.AbstractNodeTransformer);N=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.IEscapeSequenceEncoder)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Object,Object,Object])],N),t.ObjectExpressionTransformer=N},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=r(5),p=r(12),m=r(13),g=r(14),N=r(9),v=r(11),y=d=function(e){function t(e,r){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case p.TransformationStage.Converting:return{leave:function(e,r){if(r&&d.isValidTemplateLiteralNode(e,r))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){var r,n=e.expressions,o=[];if(e.quasis.forEach(function(e){o.push(g.NodeFactory.literalNode(e.value.cooked));var t=n.shift();t&&o.push(t)}),o=o.filter(function(e){return!(N.NodeGuards.isLiteralNode(e)&&""===e.value)}),d.isLiteralNodeWithStringValue(o[0])||d.isLiteralNodeWithStringValue(o[1])||o.unshift(g.NodeFactory.literalNode("")),o.length>1){var a=g.NodeFactory.binaryExpressionNode("+",o.shift(),o.shift());o.forEach(function(e){a=g.NodeFactory.binaryExpressionNode("+",a,e)}),r=a}else r=o[0];return v.NodeUtils.parentizeAst(r),r}}],[{key:"isLiteralNodeWithStringValue",value:function(e){return e&&N.NodeGuards.isLiteralNode(e)&&"string"==typeof e.value}},{key:"isValidTemplateLiteralNode",value:function(e,t){return N.NodeGuards.isTemplateLiteralNode(e)&&!N.NodeGuards.isTaggedTemplateExpressionNode(t)}}]),t}(m.AbstractNodeTransformer);y=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(1,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Object,Object])],y),t.TemplateLiteralTransformer=y},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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=d.__importStar(r(16)),p=r(54),m=r(9),g=function(e){function t(e,r){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"extract",value:function(e,t){return!m.NodeGuards.isIdentifierNode(t.id)||this.isProhibitedObjectExpressionNode(e,t.id)?e:this.transformObjectExpressionNode(e,t.id)}},{key:"getHostVariableDeclaratorNode",value:function(e){var t=e.parentNode;if(!t||!m.NodeGuards.isVariableDeclaratorNode(t))throw new Error("Cannot get `VariableDeclarator` node for `ObjectExpression` node");return t}},{key:"getHostVariableDeclarationNode",value:function(e){var t=e.parentNode;if(!t||!m.NodeGuards.isVariableDeclarationNode(t))throw new Error("Cannot get `VariableDeclaration` node for `VariableDeclarator` node");return t}},{key:"isProhibitedObjectExpressionNode",value:function(e,t){var r=this.getHostVariableDeclaratorNode(e),n=this.getHostVariableDeclarationNode(r).declarations,o=n.indexOf(r);if(o===n.length-1)return!1;var a=!1;return n.slice(o).forEach(function(e){f.traverse(e,{enter:function(e){return m.NodeGuards.isMemberExpressionNode(e)&&m.NodeGuards.isIdentifierNode(e.object)&&e.object.name===t.name?(a=!0,f.VisitorOption.Break):e}})}),a}}]),t}(p.AbstractPropertiesExtractor);g=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Object,Object])],g),t.VariableDeclaratorPropertiesExtractor=g},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(20),o=r(2),a=r(5),i=r(21),s=r(31),c=r(55),d=r(52),u=r(88),l=r(89),f=r(90),p=r(91),m=r(92),g=r(93),N=r(96),v=r(97),y=r(98),h=r(99),_=r(100),b=r(101),S=r(103),I=r(105),C=r(107),F=r(111),O=r(113),j=r(114),k=r(115),T=r(117),x=r(119),E=r(126),w=r(128),G=r(131),R=r(132);t.customNodesModule=new o.ContainerModule(function(e){e(a.ServiceIdentifiers.ICustomNode).to(b.ConsoleOutputDisableExpressionNode).whenTargetNamed(s.CustomNode.ConsoleOutputDisableExpressionNode),e(a.ServiceIdentifiers.ICustomNode).to(S.DebugProtectionFunctionCallNode).whenTargetNamed(s.CustomNode.DebugProtectionFunctionCallNode),e(a.ServiceIdentifiers.ICustomNode).to(I.DebugProtectionFunctionIntervalNode).whenTargetNamed(s.CustomNode.DebugProtectionFunctionIntervalNode),e(a.ServiceIdentifiers.ICustomNode).to(C.DebugProtectionFunctionNode).whenTargetNamed(s.CustomNode.DebugProtectionFunctionNode),e(a.ServiceIdentifiers.ICustomNode).to(F.DomainLockNode).whenTargetNamed(s.CustomNode.DomainLockNode),e(a.ServiceIdentifiers.ICustomNode).to(k.NodeCallsControllerFunctionNode).whenTargetNamed(s.CustomNode.NodeCallsControllerFunctionNode),e(a.ServiceIdentifiers.ICustomNode).to(T.SelfDefendingUnicodeNode).whenTargetNamed(s.CustomNode.SelfDefendingUnicodeNode),e(a.ServiceIdentifiers.ICustomNode).to(x.StringArrayCallsWrapper).whenTargetNamed(s.CustomNode.StringArrayCallsWrapper),e(a.ServiceIdentifiers.ICustomNode).to(E.StringArrayNode).whenTargetNamed(s.CustomNode.StringArrayNode),e(a.ServiceIdentifiers.ICustomNode).to(w.StringArrayRotateFunctionNode).whenTargetNamed(s.CustomNode.StringArrayRotateFunctionNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(g.BinaryExpressionFunctionNode).whenTargetNamed(i.ControlFlowCustomNode.BinaryExpressionFunctionNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(N.BlockStatementControlFlowFlatteningNode).whenTargetNamed(i.ControlFlowCustomNode.BlockStatementControlFlowFlatteningNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(y.CallExpressionControlFlowStorageCallNode).whenTargetNamed(i.ControlFlowCustomNode.CallExpressionControlFlowStorageCallNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(h.CallExpressionFunctionNode).whenTargetNamed(i.ControlFlowCustomNode.CallExpressionFunctionNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(_.ControlFlowStorageNode).whenTargetNamed(i.ControlFlowCustomNode.ControlFlowStorageNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(O.ExpressionWithOperatorControlFlowStorageCallNode).whenTargetNamed(i.ControlFlowCustomNode.ExpressionWithOperatorControlFlowStorageCallNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(j.LogicalExpressionFunctionNode).whenTargetNamed(i.ControlFlowCustomNode.LogicalExpressionFunctionNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(R.StringLiteralNode).whenTargetNamed(i.ControlFlowCustomNode.StringLiteralNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(G.StringLiteralControlFlowStorageCallNode).whenTargetNamed(i.ControlFlowCustomNode.StringLiteralControlFlowStorageCallNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(v.BlockStatementDeadCodeInjectionNode).whenTargetNamed(d.DeadCodeInjectionCustomNode.BlockStatementDeadCodeInjectionNode),e(a.ServiceIdentifiers.ICustomNodeGroup).to(u.ConsoleOutputCustomNodeGroup).whenTargetNamed(c.CustomNodeGroup.ConsoleOutputCustomNodeGroup),e(a.ServiceIdentifiers.ICustomNodeGroup).to(l.DebugProtectionCustomNodeGroup).whenTargetNamed(c.CustomNodeGroup.DebugProtectionCustomNodeGroup),e(a.ServiceIdentifiers.ICustomNodeGroup).to(f.DomainLockCustomNodeGroup).whenTargetNamed(c.CustomNodeGroup.DomainLockCustomNodeGroup),e(a.ServiceIdentifiers.ICustomNodeGroup).to(p.SelfDefendingCustomNodeGroup).whenTargetNamed(c.CustomNodeGroup.SelfDefendingCustomNodeGroup),e(a.ServiceIdentifiers.ICustomNodeGroup).to(m.StringArrayCustomNodeGroup).whenTargetNamed(c.CustomNodeGroup.StringArrayCustomNodeGroup),e(a.ServiceIdentifiers.Factory__ICustomNode).toFactory(n.InversifyContainerFacade.getFactory(a.ServiceIdentifiers.ICustomNode)),e(a.ServiceIdentifiers.Factory__IControlFlowCustomNode).toFactory(n.InversifyContainerFacade.getConstructorFactory(a.ServiceIdentifiers.Newable__ICustomNode,a.ServiceIdentifiers.Factory__IIdentifierNamesGenerator,a.ServiceIdentifiers.IRandomGenerator,a.ServiceIdentifiers.IOptions)),e(a.ServiceIdentifiers.Factory__IDeadCodeInjectionCustomNode).toFactory(n.InversifyContainerFacade.getConstructorFactory(a.ServiceIdentifiers.Newable__ICustomNode,a.ServiceIdentifiers.Factory__IIdentifierNamesGenerator,a.ServiceIdentifiers.IRandomGenerator,a.ServiceIdentifiers.IOptions)),e(a.ServiceIdentifiers.Factory__ICustomNodeGroup).toFactory(n.InversifyContainerFacade.getFactory(a.ServiceIdentifiers.ICustomNodeGroup))})},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(10),p=r(31),m=r(26),g=r(33),N=r(25),v=function(e){function t(e,r,n,a){var c;return(0,o.default)(this,t),(c=(0,i.default)(this,(0,s.default)(t).call(this,r,n,a))).appendEvent=m.ObfuscationEvent.BeforeObfuscation,c.customNodeFactory=e,c}return(0,c.default)(t,e),(0,a.default)(t,[{key:"appendCustomNodes",value:function(e,t){var r=this.getRandomStackTraceIndex(t.length);this.appendCustomNodeIfExist(p.CustomNode.ConsoleOutputDisableExpressionNode,function(n){N.NodeAppender.appendToOptimalBlockScope(t,e,n.getNode(),r)}),this.appendCustomNodeIfExist(p.CustomNode.NodeCallsControllerFunctionNode,function(n){var o=t.length?N.NodeAppender.getOptimalBlockScope(t,r,1):e;N.NodeAppender.prepend(o,n.getNode())})}},{key:"initialize",value:function(){if(this.customNodes=new Map,this.options.disableConsoleOutput){var e=this.identifierNamesGenerator.generate(),t=this.customNodeFactory(p.CustomNode.ConsoleOutputDisableExpressionNode),r=this.customNodeFactory(p.CustomNode.NodeCallsControllerFunctionNode);t.initialize(e),r.initialize(this.appendEvent,e),this.customNodes.set(p.CustomNode.ConsoleOutputDisableExpressionNode,t),this.customNodes.set(p.CustomNode.NodeCallsControllerFunctionNode,r)}}}]),t}(g.AbstractCustomNodeGroup);d.__decorate([f.initializable(),d.__metadata("design:type",Map)],v.prototype,"customNodes",void 0),v=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__ICustomNode)),d.__param(1,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(3,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Function,Object,Object])],v),t.ConsoleOutputCustomNodeGroup=v},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(10),p=r(31),m=r(26),g=r(33),N=r(25),v=r(9),y=function(e){function t(e,r,n,a){var c;return(0,o.default)(this,t),(c=(0,i.default)(this,(0,s.default)(t).call(this,r,n,a))).appendEvent=m.ObfuscationEvent.BeforeObfuscation,c.customNodeFactory=e,c}return(0,c.default)(t,e),(0,a.default)(t,[{key:"appendCustomNodes",value:function(e,t){var r=this,n=this.getRandomStackTraceIndex(t.length);this.appendCustomNodeIfExist(p.CustomNode.DebugProtectionFunctionCallNode,function(r){N.NodeAppender.appendToOptimalBlockScope(t,e,r.getNode(),n)}),this.appendCustomNodeIfExist(p.CustomNode.DebugProtectionFunctionNode,function(t){N.NodeAppender.append(e,t.getNode())}),this.appendCustomNodeIfExist(p.CustomNode.DebugProtectionFunctionIntervalNode,function(t){var n=v.NodeGuards.isSwitchCaseNode(e)?e.consequent.length:e.body.length,o=r.randomGenerator.getRandomInteger(0,n);N.NodeAppender.insertAtIndex(e,t.getNode(),o)}),this.appendCustomNodeIfExist(p.CustomNode.NodeCallsControllerFunctionNode,function(r){var o=t.length?N.NodeAppender.getOptimalBlockScope(t,n,1):e;N.NodeAppender.prepend(o,r.getNode())})}},{key:"initialize",value:function(){if(this.customNodes=new Map,this.options.debugProtection){var e=this.identifierNamesGenerator.generate(),t=this.identifierNamesGenerator.generate(),r=this.customNodeFactory(p.CustomNode.DebugProtectionFunctionNode),n=this.customNodeFactory(p.CustomNode.DebugProtectionFunctionCallNode),o=this.customNodeFactory(p.CustomNode.DebugProtectionFunctionIntervalNode),a=this.customNodeFactory(p.CustomNode.NodeCallsControllerFunctionNode);r.initialize(e),n.initialize(e,t),o.initialize(e),a.initialize(this.appendEvent,t),this.customNodes.set(p.CustomNode.DebugProtectionFunctionNode,r),this.customNodes.set(p.CustomNode.DebugProtectionFunctionCallNode,n),this.options.debugProtectionInterval&&this.customNodes.set(p.CustomNode.DebugProtectionFunctionIntervalNode,o),this.customNodes.set(p.CustomNode.NodeCallsControllerFunctionNode,a)}}}]),t}(g.AbstractCustomNodeGroup);d.__decorate([f.initializable(),d.__metadata("design:type",Map)],y.prototype,"customNodes",void 0),y=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__ICustomNode)),d.__param(1,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(3,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Function,Object,Object])],y),t.DebugProtectionCustomNodeGroup=y},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(10),p=r(31),m=r(26),g=r(33),N=r(25),v=function(e){function t(e,r,n,a){var c;return(0,o.default)(this,t),(c=(0,i.default)(this,(0,s.default)(t).call(this,r,n,a))).appendEvent=m.ObfuscationEvent.BeforeObfuscation,c.customNodeFactory=e,c}return(0,c.default)(t,e),(0,a.default)(t,[{key:"appendCustomNodes",value:function(e,t){var r=this.getRandomStackTraceIndex(t.length);this.appendCustomNodeIfExist(p.CustomNode.DomainLockNode,function(n){N.NodeAppender.appendToOptimalBlockScope(t,e,n.getNode(),r)}),this.appendCustomNodeIfExist(p.CustomNode.NodeCallsControllerFunctionNode,function(n){var o=t.length?N.NodeAppender.getOptimalBlockScope(t,r,1):e;N.NodeAppender.prepend(o,n.getNode())})}},{key:"initialize",value:function(){if(this.customNodes=new Map,this.options.domainLock.length){var e=this.identifierNamesGenerator.generate(),t=this.customNodeFactory(p.CustomNode.DomainLockNode),r=this.customNodeFactory(p.CustomNode.NodeCallsControllerFunctionNode);t.initialize(e),r.initialize(this.appendEvent,e),this.customNodes.set(p.CustomNode.DomainLockNode,t),this.customNodes.set(p.CustomNode.NodeCallsControllerFunctionNode,r)}}}]),t}(g.AbstractCustomNodeGroup);d.__decorate([f.initializable(),d.__metadata("design:type",Map)],v.prototype,"customNodes",void 0),v=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__ICustomNode)),d.__param(1,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(3,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Function,Object,Object])],v),t.DomainLockCustomNodeGroup=v},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(10),p=r(31),m=r(26),g=r(33),N=r(25),v=function(e){function t(e,r,n,a){var c;return(0,o.default)(this,t),(c=(0,i.default)(this,(0,s.default)(t).call(this,r,n,a))).appendEvent=m.ObfuscationEvent.AfterObfuscation,c.customNodeFactory=e,c}return(0,c.default)(t,e),(0,a.default)(t,[{key:"appendCustomNodes",value:function(e,t){var r=this.getRandomStackTraceIndex(t.length);this.appendCustomNodeIfExist(p.CustomNode.SelfDefendingUnicodeNode,function(n){N.NodeAppender.appendToOptimalBlockScope(t,e,n.getNode(),r)}),this.appendCustomNodeIfExist(p.CustomNode.NodeCallsControllerFunctionNode,function(n){var o=t.length?N.NodeAppender.getOptimalBlockScope(t,r,1):e;N.NodeAppender.prepend(o,n.getNode())})}},{key:"initialize",value:function(){if(this.customNodes=new Map,this.options.selfDefending){var e=this.identifierNamesGenerator.generate(),t=this.customNodeFactory(p.CustomNode.SelfDefendingUnicodeNode),r=this.customNodeFactory(p.CustomNode.NodeCallsControllerFunctionNode);t.initialize(e),r.initialize(this.appendEvent,e),this.customNodes.set(p.CustomNode.SelfDefendingUnicodeNode,t),this.customNodes.set(p.CustomNode.NodeCallsControllerFunctionNode,r)}}}]),t}(g.AbstractCustomNodeGroup);d.__decorate([f.initializable(),d.__metadata("design:type",Map)],v.prototype,"customNodes",void 0),v=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__ICustomNode)),d.__param(1,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(3,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Function,Object,Object])],v),t.SelfDefendingCustomNodeGroup=v},function(e,t,r){"use strict";var n=r(0),o=n(r(30)),a=n(r(1)),i=n(r(3)),s=n(r(6)),c=n(r(7)),d=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var u=r(4),l=r(2),f=r(5),p=r(10),m=r(31),g=r(26),N=r(33),v=r(25),y=function(e){function t(e,r,n,o,i){var d;return(0,a.default)(this,t),(d=(0,s.default)(this,(0,c.default)(t).call(this,n,o,i))).appendEvent=g.ObfuscationEvent.AfterObfuscation,d.customNodeFactory=e,d.stringArrayStorage=r,d}return(0,d.default)(t,e),(0,i.default)(t,[{key:"appendCustomNodes",value:function(e,t){this.stringArrayStorage.getLength()&&(this.appendCustomNodeIfExist(m.CustomNode.StringArrayNode,function(t){v.NodeAppender.prepend(e,t.getNode())}),this.appendCustomNodeIfExist(m.CustomNode.StringArrayCallsWrapper,function(t){v.NodeAppender.insertAtIndex(e,t.getNode(),1)}),this.appendCustomNodeIfExist(m.CustomNode.StringArrayRotateFunctionNode,function(t){v.NodeAppender.insertAtIndex(e,t.getNode(),1)}))}},{key:"initialize",value:function(){if(this.customNodes=new Map,this.options.stringArray){var e,t=this.customNodeFactory(m.CustomNode.StringArrayNode),r=this.customNodeFactory(m.CustomNode.StringArrayCallsWrapper),n=this.customNodeFactory(m.CustomNode.StringArrayRotateFunctionNode),a=this.stringArrayStorage.getStorageId().split("|"),i=(0,o.default)(a,2),s=i[0],c=i[1];e=this.options.rotateStringArray?this.randomGenerator.getRandomInteger(100,500):0,t.initialize(this.stringArrayStorage,s,e),r.initialize(s,c),n.initialize(s,e),this.customNodes.set(m.CustomNode.StringArrayNode,t),this.customNodes.set(m.CustomNode.StringArrayCallsWrapper,r),this.options.rotateStringArray&&this.customNodes.set(m.CustomNode.StringArrayRotateFunctionNode,n)}}}]),t}(N.AbstractCustomNodeGroup);u.__decorate([p.initializable(),u.__metadata("design:type",Map)],y.prototype,"customNodes",void 0),y=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__ICustomNode)),u.__param(1,l.inject(f.ServiceIdentifiers.TStringArrayStorage)),u.__param(2,l.inject(f.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),u.__param(3,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(4,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Function,Object,Object])],y),t.StringArrayCustomNodeGroup=y},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(10),p=r(15),m=r(14),g=r(11),N=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r,n))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"initialize",value:function(e){this.operator=e}},{key:"getNodeStructure",value:function(){var e=m.NodeFactory.expressionStatementNode(m.NodeFactory.functionExpressionNode([m.NodeFactory.identifierNode("x"),m.NodeFactory.identifierNode("y")],m.NodeFactory.blockStatementNode([m.NodeFactory.returnStatementNode(m.NodeFactory.binaryExpressionNode(this.operator,m.NodeFactory.identifierNode("x"),m.NodeFactory.identifierNode("y")))])));return g.NodeUtils.parentizeAst(e),[e]}}]),t}(p.AbstractCustomNode);d.__decorate([f.initializable(),d.__metadata("design:type",String)],N.prototype,"operator",void 0),N=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object])],N),t.BinaryExpressionFunctionNode=N},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalVariableTemplate1=function(){return"\n var that;\n \n try {\n var getGlobal = Function('return (function() ' + '{}.constructor(\"return this\")( )' + ');');\n \n that = getGlobal();\n } catch (e) {\n that = window;\n }\n "}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalVariableTemplate2=function(){return"\n var getGlobal = function () {\n var globalObject;\n \n try {\n globalObject = Function('return (function() ' + '{}.constructor(\"return this\")( )' + ');')();\n } catch (e) {\n globalObject = window;\n }\n \n return globalObject;\n };\n var that = getGlobal();\n "}},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(10),p=r(15),m=r(14),g=r(9),N=r(11),v=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r,n))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"initialize",value:function(e,t,r){this.blockStatementBody=e,this.shuffledKeys=t,this.originalKeysIndexesInShuffledArray=r}},{key:"getNodeStructure",value:function(){var e=this,t=this.randomGenerator.getRandomString(6),r=this.randomGenerator.getRandomString(6),n=m.NodeFactory.blockStatementNode([m.NodeFactory.variableDeclarationNode([m.NodeFactory.variableDeclaratorNode(m.NodeFactory.identifierNode(t),m.NodeFactory.callExpressionNode(m.NodeFactory.memberExpressionNode(m.NodeFactory.literalNode(this.originalKeysIndexesInShuffledArray.join("|")),m.NodeFactory.identifierNode("split")),[m.NodeFactory.literalNode("|")])),m.NodeFactory.variableDeclaratorNode(m.NodeFactory.identifierNode(r),m.NodeFactory.literalNode(0))]),m.NodeFactory.whileStatementNode(m.NodeFactory.literalNode(!0),m.NodeFactory.blockStatementNode([m.NodeFactory.switchStatementNode(m.NodeFactory.memberExpressionNode(m.NodeFactory.identifierNode(t),m.NodeFactory.updateExpressionNode("++",m.NodeFactory.identifierNode(r)),!0),this.shuffledKeys.map(function(t,r){var n=e.blockStatementBody[t],o=[n];return g.NodeGuards.isReturnStatementNode(n)||o.push(m.NodeFactory.continueStatement()),m.NodeFactory.switchCaseNode(m.NodeFactory.literalNode(String(r)),o)})),m.NodeFactory.breakStatement()]))]);return N.NodeUtils.parentizeAst(n),[n]}}]),t}(p.AbstractCustomNode);d.__decorate([f.initializable(),d.__metadata("design:type",Array)],v.prototype,"blockStatementBody",void 0),d.__decorate([f.initializable(),d.__metadata("design:type",Array)],v.prototype,"originalKeysIndexesInShuffledArray",void 0),d.__decorate([f.initializable(),d.__metadata("design:type",Array)],v.prototype,"shuffledKeys",void 0),v=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object])],v),t.BlockStatementControlFlowFlatteningNode=v},function(e,t,r){"use strict";var n=r(0),o=n(r(30)),a=n(r(1)),i=n(r(3)),s=n(r(6)),c=n(r(7)),d=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var u=r(4),l=r(2),f=r(5),p=r(10),m=r(15),g=r(14),N=r(11),v=function(e){function t(e,r,n){return(0,a.default)(this,t),(0,s.default)(this,(0,c.default)(t).call(this,e,r,n))}return(0,d.default)(t,e),(0,i.default)(t,[{key:"initialize",value:function(e,t){this.blockStatementNode=e,this.deadCodeInjectionRootAstHostNode=t}},{key:"getNodeStructure",value:function(){var e=this.randomGenerator.getMathRandom()>.5,t=this.randomGenerator.getMathRandom()>.5,r=e?"===":"!==",n=this.randomGenerator.getRandomString(5),a=t?n:this.randomGenerator.getRandomString(5),i=e===t?[this.blockStatementNode,this.deadCodeInjectionRootAstHostNode]:[this.deadCodeInjectionRootAstHostNode,this.blockStatementNode],s=(0,o.default)(i,2),c=s[0],d=s[1],u=g.NodeFactory.blockStatementNode([g.NodeFactory.ifStatementNode(g.NodeFactory.binaryExpressionNode(r,g.NodeFactory.literalNode(n),g.NodeFactory.literalNode(a)),c,d)]);return N.NodeUtils.parentizeAst(u),[u]}}]),t}(m.AbstractCustomNode);u.__decorate([p.initializable(),u.__metadata("design:type",Object)],v.prototype,"blockStatementNode",void 0),u.__decorate([p.initializable(),u.__metadata("design:type",Object)],v.prototype,"deadCodeInjectionRootAstHostNode",void 0),v=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],v),t.BlockStatementDeadCodeInjectionNode=v},function(e,t,r){"use strict";var n=r(0),o=n(r(28)),a=n(r(1)),i=n(r(3)),s=n(r(6)),c=n(r(7)),d=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var u=r(4),l=r(2),f=r(5),p=r(10),m=r(15),g=r(14),N=r(11),v=function(e){function t(e,r,n){return(0,a.default)(this,t),(0,s.default)(this,(0,c.default)(t).call(this,e,r,n))}return(0,d.default)(t,e),(0,i.default)(t,[{key:"initialize",value:function(e,t,r,n){this.controlFlowStorageName=e,this.controlFlowStorageKey=t,this.callee=r,this.expressionArguments=n}},{key:"getNodeStructure",value:function(){var e=g.NodeFactory.expressionStatementNode(g.NodeFactory.callExpressionNode(g.NodeFactory.memberExpressionNode(g.NodeFactory.identifierNode(this.controlFlowStorageName),g.NodeFactory.identifierNode(this.controlFlowStorageKey)),[this.callee].concat((0,o.default)(this.expressionArguments))));return N.NodeUtils.parentizeAst(e),[e]}}]),t}(m.AbstractCustomNode);u.__decorate([p.initializable(),u.__metadata("design:type",Object)],v.prototype,"callee",void 0),u.__decorate([p.initializable(),u.__metadata("design:type",String)],v.prototype,"controlFlowStorageKey",void 0),u.__decorate([p.initializable(),u.__metadata("design:type",String)],v.prototype,"controlFlowStorageName",void 0),u.__decorate([p.initializable(),u.__metadata("design:type",Array)],v.prototype,"expressionArguments",void 0),v=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],v),t.CallExpressionControlFlowStorageCallNode=v},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(10),p=r(15),m=r(14),g=r(11),N=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r,n))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"initialize",value:function(e){this.expressionArguments=e}},{key:"getNodeStructure",value:function(){for(var e=m.NodeFactory.identifierNode("callee"),t=[],r=this.expressionArguments.length,n=0;n 0;\n \n switch (isPositive) {\n case true:\n return this.item + \'_\' + this.value + \'_\' + i;\n default:\n this.item + \'_\' + this.value;\n }\n }\n }()\n };\n };\n \n var regExp = new RegExp("[{diff}]", "g");\n var domains = "{domains}".replace(regExp, "").split(";");\n var document;\n var domain;\n var location;\n var hostname;\n\n for (var d in that) {\n if (d.length == 8 && d.charCodeAt(7) == 116 && d.charCodeAt(5) == 101 && d.charCodeAt(3) == 117 && d.charCodeAt(0) == 100) {\n document = d;\n \n break;\n }\n }\n\n for (var d1 in that[document]) {\n if (d1.length == 6 && d1.charCodeAt(5) == 110 && d1.charCodeAt(0) == 100) {\n domain = d1;\n \n break;\n }\n }\n\n if (!("~" > domain)) {\n for (var d2 in that[document]) {\n if (d2.length == 8 && d2.charCodeAt(7) == 110 && d2.charCodeAt(0) == 108) {\n location = d2;\n \n break;\n }\n }\n\n for (var d3 in that[document][location]) {\n if (d3.length == 8 && d3.charCodeAt(7) == 101 && d3.charCodeAt(0) == 104) {\n hostname = d3;\n \n break;\n }\n }\n }\n \n if (!document || !that[document]) {\n return;\n }\n \n var documentDomain = that[document][domain];\n var documentLocationHostName = !!that[document][location] && that[document][location][hostname];\n var currentDomain = documentDomain || documentLocationHostName;\n \n if (!currentDomain) {\n return;\n }\n \n var ok = false;\n \n for (var i = 0; i < domains.length; i++) {\n var domain = domains[i];\n var position = currentDomain.length - domain.length;\n var lastIndex = currentDomain.indexOf(domain, position);\n var endsWith = lastIndex !== -1 && lastIndex === position;\n \n if (endsWith) {\n if (currentDomain.length == domain.length || domain.indexOf(".") === 0) {\n ok = true;\n }\n }\n }\n \n if (!ok) {\n data;\n } else {\n return;\n }\n \n func();\n });\n\n {domainLockFunctionName}();\n '}},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(10),p=r(15),m=r(14),g=r(11),N=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r,n))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"initialize",value:function(e,t,r,n){this.controlFlowStorageName=e,this.controlFlowStorageKey=t,this.leftValue=r,this.rightValue=n}},{key:"getNodeStructure",value:function(){var e=m.NodeFactory.expressionStatementNode(m.NodeFactory.callExpressionNode(m.NodeFactory.memberExpressionNode(m.NodeFactory.identifierNode(this.controlFlowStorageName),m.NodeFactory.identifierNode(this.controlFlowStorageKey)),[this.leftValue,this.rightValue]));return g.NodeUtils.parentizeAst(e),[e]}}]),t}(p.AbstractCustomNode);d.__decorate([f.initializable(),d.__metadata("design:type",String)],N.prototype,"controlFlowStorageKey",void 0),d.__decorate([f.initializable(),d.__metadata("design:type",String)],N.prototype,"controlFlowStorageName",void 0),d.__decorate([f.initializable(),d.__metadata("design:type",Object)],N.prototype,"leftValue",void 0),d.__decorate([f.initializable(),d.__metadata("design:type",Object)],N.prototype,"rightValue",void 0),N=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object])],N),t.ExpressionWithOperatorControlFlowStorageCallNode=N},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(10),p=r(15),m=r(14),g=r(11),N=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r,n))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"initialize",value:function(e){this.operator=e}},{key:"getNodeStructure",value:function(){var e=m.NodeFactory.expressionStatementNode(m.NodeFactory.functionExpressionNode([m.NodeFactory.identifierNode("x"),m.NodeFactory.identifierNode("y")],m.NodeFactory.blockStatementNode([m.NodeFactory.returnStatementNode(m.NodeFactory.logicalExpressionNode(this.operator,m.NodeFactory.identifierNode("x"),m.NodeFactory.identifierNode("y")))])));return g.NodeUtils.parentizeAst(e),[e]}}]),t}(p.AbstractCustomNode);d.__decorate([f.initializable(),d.__metadata("design:type",String)],N.prototype,"operator",void 0),N=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object])],N),t.LogicalExpressionFunctionNode=N},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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=d.__importDefault(r(18)),p=r(26),m=r(10),g=r(116),N=r(38),v=r(15),y=r(32),h=r(11),_=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r,n))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"initialize",value:function(e,t){this.appendEvent=e,this.callsControllerFunctionName=t}},{key:"getNodeStructure",value:function(){return h.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){return this.appendEvent===p.ObfuscationEvent.AfterObfuscation?y.JavaScriptObfuscator.obfuscate(f.default(g.SingleNodeCallControllerTemplate(),{singleNodeCallControllerFunctionName:this.callsControllerFunctionName}),Object.assign({},N.NO_ADDITIONAL_NODES_PRESET,{identifierNamesGenerator:this.options.identifierNamesGenerator,seed:this.options.seed})).getObfuscatedCode():f.default(g.SingleNodeCallControllerTemplate(),{singleNodeCallControllerFunctionName:this.callsControllerFunctionName})}}]),t}(v.AbstractCustomNode);d.__decorate([m.initializable(),d.__metadata("design:type",String)],_.prototype,"callsControllerFunctionName",void 0),d.__decorate([m.initializable(),d.__metadata("design:type",String)],_.prototype,"appendEvent",void 0),_=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object])],_),t.NodeCallsControllerFunctionNode=_},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SingleNodeCallControllerTemplate=function(){return"\n var {singleNodeCallControllerFunctionName} = (function(){\n var firstCall = true;\n \n return function (context, fn){\n var rfn = firstCall ? function(){\n if(fn){\n var res = fn.apply(context, arguments);\n fn = null;\n return res;\n }\n } : function(){}\n \n firstCall = false;\n \n return rfn;\n }\n })();\n "}},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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=d.__importDefault(r(18)),p=r(10),m=r(38),g=r(118),N=r(15),v=r(32),y=r(11),h=function(e){function t(e,r,n,a){var c;return(0,o.default)(this,t),(c=(0,i.default)(this,(0,s.default)(t).call(this,e,r,a))).escapeSequenceEncoder=n,c}return(0,c.default)(t,e),(0,a.default)(t,[{key:"initialize",value:function(e){this.callsControllerFunctionName=e}},{key:"getNodeStructure",value:function(){return y.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){return v.JavaScriptObfuscator.obfuscate(f.default(g.SelfDefendingTemplate(this.escapeSequenceEncoder),{selfDefendingFunctionName:this.identifierNamesGenerator.generate(),singleNodeCallControllerFunctionName:this.callsControllerFunctionName}),Object.assign({},m.NO_ADDITIONAL_NODES_PRESET,{identifierNamesGenerator:this.options.identifierNamesGenerator,seed:this.options.seed,unicodeEscapeSequence:!0})).getObfuscatedCode()}}]),t}(N.AbstractCustomNode);d.__decorate([p.initializable(),d.__metadata("design:type",String)],h.prototype,"callsControllerFunctionName",void 0),h=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IEscapeSequenceEncoder)),d.__param(3,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object,Object])],h),t.SelfDefendingUnicodeNode=h},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SelfDefendingTemplate=function(e){return"\n var {selfDefendingFunctionName} = {singleNodeCallControllerFunctionName}(this, function () {\n var func1 = function(){return 'dev';},\n func2 = function () {\n return 'window';\n };\n \n var test1 = function () {\n var regExp = new RegExp('".concat(e.encode("\\w+ *\\(\\) *{\\w+ *['|\"].+['|\"];? *}",!0),"');\n \n return !regExp.test(func1.toString());\n };\n \n var test2 = function () {\n var regExp = new RegExp('").concat(e.encode("(\\\\[x|u](\\w){2,4})+",!0),"');\n \n return regExp.test(func2.toString());\n };\n \n var recursiveFunc1 = function (string) {\n var i = ~-1 >> 1 + 255 % 0;\n \n if (string.indexOf('i' === i)) {\n recursiveFunc2(string)\n }\n };\n \n var recursiveFunc2 = function (string) {\n var i = ~-4 >> 1 + 255 % 0;\n \n if (string.indexOf((true+\"\")[3]) !== i) {\n recursiveFunc1(string)\n }\n };\n \n if (!test1()) {\n if (!test2()) {\n recursiveFunc1('indеxOf');\n } else {\n recursiveFunc1('indexOf');\n }\n } else {\n recursiveFunc1('indеxOf');\n }\n })\n \n {selfDefendingFunctionName}();\n ")}},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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=d.__importDefault(r(18)),p=r(23),m=r(37),g=r(10),N=r(38),v=r(120),y=r(45),h=r(121),_=r(122),b=r(123),S=r(124),I=r(125),C=r(15),F=r(32),O=r(11),j=function(e){function t(e,r,n,a){var c;return(0,o.default)(this,t),(c=(0,i.default)(this,(0,s.default)(t).call(this,e,r,a))).escapeSequenceEncoder=n,c}return(0,c.default)(t,e),(0,a.default)(t,[{key:"initialize",value:function(e,t){this.stringArrayName=e,this.stringArrayCallsWrapperName=t}},{key:"getNodeStructure",value:function(){return O.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){var e=this.getDecodeStringArrayTemplate();return F.JavaScriptObfuscator.obfuscate(f.default(S.StringArrayCallsWrapperTemplate(),{decodeNodeTemplate:e,stringArrayCallsWrapperName:this.stringArrayCallsWrapperName,stringArrayName:this.stringArrayName}),Object.assign({},N.NO_ADDITIONAL_NODES_PRESET,{identifierNamesGenerator:this.options.identifierNamesGenerator,seed:this.options.seed})).getObfuscatedCode()}},{key:"getDecodeStringArrayTemplate",value:function(){var e=this.options.target!==p.ObfuscationTarget.BrowserNoEval?this.getGlobalVariableTemplate():y.GlobalVariableNoEvalTemplate(),t=f.default(v.AtobTemplate(),{globalVariableTemplate:e}),r="",n="";switch(this.options.selfDefending&&(n=f.default(_.SelfDefendingTemplate(this.randomGenerator,this.escapeSequenceEncoder),{stringArrayCallsWrapperName:this.stringArrayCallsWrapperName,stringArrayName:this.stringArrayName})),this.options.stringArrayEncoding){case m.StringArrayEncoding.Rc4:r=f.default(I.StringArrayRc4DecodeNodeTemplate(this.randomGenerator),{atobPolyfill:t,rc4Polyfill:h.Rc4Template(),selfDefendingCode:n,stringArrayCallsWrapperName:this.stringArrayCallsWrapperName});break;case m.StringArrayEncoding.Base64:r=f.default(b.StringArrayBase64DecodeNodeTemplate(this.randomGenerator),{atobPolyfill:t,selfDefendingCode:n,stringArrayCallsWrapperName:this.stringArrayCallsWrapperName})}return r}}]),t}(C.AbstractCustomNode);d.__decorate([g.initializable(),d.__metadata("design:type",String)],j.prototype,"stringArrayName",void 0),d.__decorate([g.initializable(),d.__metadata("design:type",String)],j.prototype,"stringArrayCallsWrapperName",void 0),j=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IEscapeSequenceEncoder)),d.__param(3,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object,Object])],j),t.StringArrayCallsWrapper=j},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AtobTemplate=function(){return"\n (function () {\n {globalVariableTemplate}\n \n var chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';\n\n that.atob || (\n that.atob = function(input) {\n var str = String(input).replace(/=+$/, '');\n for (\n var bc = 0, bs, buffer, idx = 0, output = '';\n buffer = str.charAt(idx++);\n ~buffer && (bs = bc % 4 ? bs * 64 + buffer : buffer,\n bc++ % 4) ? output += String.fromCharCode(255 & bs >> (-2 * bc & 6)) : 0\n ) {\n buffer = chars.indexOf(buffer);\n }\n return output;\n });\n })();\n "}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Rc4Template=function(){return"\n var rc4 = function (str, key) {\n var s = [], j = 0, x, res = '', newStr = '';\n \n str = atob(str);\n \n for (var k = 0, length = str.length; k < length; k++) {\n newStr += '%' + ('00' + str.charCodeAt(k).toString(16)).slice(-2);\n }\n \n str = decodeURIComponent(newStr);\n \t \n\t for (var 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 (var 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 res += String.fromCharCode(str.charCodeAt(y) ^ s[(s[i] + s[j]) % 256]);\n }\n \n return res;\n }\n "}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SelfDefendingTemplate=function(e,t){var r=e.getRandomString(6),n=e.getRandomString(6),o=e.getRandomString(6),a=e.getRandomString(6),i=e.getRandomString(6),s=e.getRandomString(6),c=e.getRandomString(6),d=e.getRandomString(6),u=e.getRandomString(6);return"\n var StatesClass = function (".concat(r,") {\n this.").concat(r," = ").concat(r,";\n this.").concat(n," = [1, 0, 0];\n this.").concat(o," = function(){return 'newState';};\n this.").concat(a," = '").concat(t.encode("\\w+ *\\(\\) *{\\w+ *",!0),"';\n this.").concat(i," = '").concat(t.encode("['|\"].+['|\"];? *}",!0),"';\n };\n \n StatesClass.prototype.").concat(s," = function () {\n var regExp = new RegExp(this.").concat(a," + this.").concat(i,");\n var expression = regExp.test(this.").concat(o,".toString())\n ? --this.").concat(n,"[1]\n : --this.").concat(n,"[0];\n \n return this.").concat(c,"(expression);\n };\n \n StatesClass.prototype.").concat(c," = function (").concat(u,") {\n if (!Boolean(~").concat(u,")) {\n return ").concat(u,";\n }\n \n return this.").concat(d,"(this.").concat(r,");\n };\n\n StatesClass.prototype.").concat(d," = function (").concat(r,") {\n for (var i = 0, len = this.").concat(n,".length; i < len; i++) {\n this.").concat(n,".push(Math.round(Math.random()));\n len = this.").concat(n,".length;\n }\n \n return ").concat(r,"(this.").concat(n,"[0]);\n };\n\n new StatesClass({stringArrayCallsWrapperName}).").concat(s,"();\n ")}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayBase64DecodeNodeTemplate=function(e){var t=e.getRandomString(6),r=e.getRandomString(6),n=e.getRandomString(6);return"\n if ({stringArrayCallsWrapperName}.".concat(t," === undefined) {\n {atobPolyfill}\n \n {stringArrayCallsWrapperName}.").concat(r," = function (str) {\n var string = atob(str);\n var newStringChars = [];\n \n for (var i = 0, length = string.length; i < length; i++) {\n newStringChars += '%' + ('00' + string.charCodeAt(i).toString(16)).slice(-2);\n }\n \n return decodeURIComponent(newStringChars);\n };\n \n {stringArrayCallsWrapperName}.").concat(n," = {};\n \n {stringArrayCallsWrapperName}.").concat(t," = true;\n }\n \n var cachedValue = {stringArrayCallsWrapperName}.").concat(n,"[index];\n \n if (cachedValue === undefined) {\n {selfDefendingCode}\n \n value = {stringArrayCallsWrapperName}.").concat(r,"(value);\n {stringArrayCallsWrapperName}.").concat(n,"[index] = value;\n } else {\n value = cachedValue;\n }\n ")}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayCallsWrapperTemplate=function(){return"\n var {stringArrayCallsWrapperName} = function (index, key) {\n index = index - 0;\n \n var value = {stringArrayName}[index];\n \n {decodeNodeTemplate}\n \n return value;\n };\n "}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayRc4DecodeNodeTemplate=function(e){var t=e.getRandomString(6),r=e.getRandomString(6),n=e.getRandomString(6),o=e.getRandomString(6);return"\n if ({stringArrayCallsWrapperName}.".concat(t," === undefined) {\n {atobPolyfill}\n \n {rc4Polyfill}\n {stringArrayCallsWrapperName}.").concat(r," = rc4;\n \n {stringArrayCallsWrapperName}.").concat(n," = {};\n \n {stringArrayCallsWrapperName}.").concat(t," = true;\n }\n \n var cachedValue = {stringArrayCallsWrapperName}.").concat(n,"[index];\n\n if (cachedValue === undefined) {\n if ({stringArrayCallsWrapperName}.").concat(o," === undefined) {\n {selfDefendingCode}\n \n {stringArrayCallsWrapperName}.").concat(o," = true;\n }\n \n value = {stringArrayCallsWrapperName}.").concat(r,"(value, key);\n {stringArrayCallsWrapperName}.").concat(n,"[index] = value;\n } else {\n value = cachedValue;\n }\n ")}},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(39)),d=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var u=r(4),l=r(2),f=r(5),p=u.__importDefault(r(18)),m=r(10),g=r(127),N=r(15),v=r(11),y=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r,n))}return(0,d.default)(t,e),(0,a.default)(t,[{key:"initialize",value:function(e,t,r){this.stringArrayStorage=e,this.stringArrayName=t,this.stringArrayRotateValue=r}},{key:"getNode",value:function(){return this.stringArrayStorage.rotateArray(this.stringArrayRotateValue),(0,c.default)((0,s.default)(t.prototype),"getNode",this).call(this)}},{key:"getNodeStructure",value:function(){return v.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){return p.default(g.StringArrayTemplate(),{stringArrayName:this.stringArrayName,stringArray:this.stringArrayStorage.toString()})}}]),t}(N.AbstractCustomNode);u.__decorate([m.initializable(),u.__metadata("design:type",Object)],y.prototype,"stringArrayStorage",void 0),u.__decorate([m.initializable(),u.__metadata("design:type",String)],y.prototype,"stringArrayName",void 0),u.__decorate([m.initializable(),u.__metadata("design:type",Number)],y.prototype,"stringArrayRotateValue",void 0),y=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],y),t.StringArrayNode=y},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayTemplate=function(){return"\n var {stringArrayName} = [{stringArray}];\n "}},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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=d.__importDefault(r(18)),p=r(10),m=r(38),g=r(129),N=r(130),v=r(15),y=r(32),h=r(11),_=r(40),b=function(e){function t(e,r,n,a){var c;return(0,o.default)(this,t),(c=(0,i.default)(this,(0,s.default)(t).call(this,e,r,a))).escapeSequenceEncoder=n,c}return(0,c.default)(t,e),(0,a.default)(t,[{key:"initialize",value:function(e,t){this.stringArrayName=e,this.stringArrayRotateValue=t}},{key:"getNodeStructure",value:function(){return h.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){var e=this.identifierNamesGenerator.generate(),t=this.identifierNamesGenerator.generate(),r="";return r=this.options.selfDefending?f.default(g.SelfDefendingTemplate(this.escapeSequenceEncoder),{timesName:e,whileFunctionName:t}):"".concat(t,"(++").concat(e,")"),y.JavaScriptObfuscator.obfuscate(f.default(N.StringArrayRotateFunctionTemplate(),{code:r,timesName:e,stringArrayName:this.stringArrayName,stringArrayRotateValue:_.NumberUtils.toHex(this.stringArrayRotateValue),whileFunctionName:t}),Object.assign({},m.NO_ADDITIONAL_NODES_PRESET,{identifierNamesGenerator:this.options.identifierNamesGenerator,seed:this.options.seed})).getObfuscatedCode()}}]),t}(v.AbstractCustomNode);d.__decorate([p.initializable(),d.__metadata("design:type",String)],b.prototype,"stringArrayName",void 0),d.__decorate([p.initializable(),d.__metadata("design:type",Number)],b.prototype,"stringArrayRotateValue",void 0),b=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IEscapeSequenceEncoder)),d.__param(3,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object,Object])],b),t.StringArrayRotateFunctionNode=b},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SelfDefendingTemplate=function(e){return"\n var selfDefendingFunc = function () {\n var object = {\n data: {\n key: 'cookie',\n value: 'timeout'\n },\n setCookie: function (options, name, value, document) {\n document = document || {};\n \n var updatedCookie = name + \"=\" + value;\n\n var i = 0;\n \n for (var i = 0, len = options.length; i < len; i++) {\n var propName = options[i];\n \n updatedCookie += \"; \" + propName;\n \n var propValue = options[propName];\n \n options.push(propValue);\n len = options.length;\n \n if (propValue !== true) {\n updatedCookie += \"=\" + propValue;\n }\n }\n\n document['cookie'] = updatedCookie;\n },\n removeCookie: function(){return 'dev';},\n getCookie: function (document, name) {\n document = document || function (value) { return value };\n var matches = document(new RegExp(\n \"(?:^|; )\" + name.replace(/([.$?*|{}()[]\\/+^])/g, '\\$1') + \"=([^;]*)\"\n ));\n \n var func = function (param1, param2) {\n param1(++param2);\n };\n \n func({whileFunctionName}, {timesName});\n \n return matches ? decodeURIComponent(matches[1]) : undefined;\n }\n };\n \n var test1 = function () {\n var regExp = new RegExp('".concat(e.encode("\\w+ *\\(\\) *{\\w+ *['|\"].+['|\"];? *}",!0),"');\n \n return regExp.test(object.removeCookie.toString());\n };\n \n object['updateCookie'] = test1;\n \n var cookie = '';\n var result = object['updateCookie']();\n \n if (!result) {\n object['setCookie'](['*'], 'counter', 1);\n } else if (result) {\n cookie = object['getCookie'](null, 'counter');\n } else {\n object['removeCookie']();\n }\n };\n \n selfDefendingFunc();\n ")}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayRotateFunctionTemplate=function(){return"\n (function (array, {timesName}) {\n var {whileFunctionName} = function (times) {\n while (--times) {\n array['push'](array['shift']());\n }\n };\n \n {code}\n })({stringArrayName}, 0x{stringArrayRotateValue});\n "}},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(10),p=r(15),m=r(14),g=r(11),N=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r,n))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"initialize",value:function(e,t){this.controlFlowStorageName=e,this.controlFlowStorageKey=t}},{key:"getNodeStructure",value:function(){var e=m.NodeFactory.expressionStatementNode(m.NodeFactory.memberExpressionNode(m.NodeFactory.identifierNode(this.controlFlowStorageName),m.NodeFactory.identifierNode(this.controlFlowStorageKey)));return g.NodeUtils.parentizeAst(e),[e]}}]),t}(p.AbstractCustomNode);d.__decorate([f.initializable(),d.__metadata("design:type",String)],N.prototype,"controlFlowStorageKey",void 0),d.__decorate([f.initializable(),d.__metadata("design:type",String)],N.prototype,"controlFlowStorageName",void 0),N=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object])],N),t.StringLiteralControlFlowStorageCallNode=N},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(10),p=r(15),m=r(14),g=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r,n))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"initialize",value:function(e){this.literalValue=e}},{key:"getNodeStructure",value:function(){return[m.NodeFactory.expressionStatementNode(m.NodeFactory.literalNode(this.literalValue))]}}]),t}(p.AbstractCustomNode);d.__decorate([f.initializable(),d.__metadata("design:type",String)],g.prototype,"literalValue",void 0),g=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),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.StringLiteralNode=g},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(2);t.finalizingTransformersModule=new n.ContainerModule(function(e){})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(2),o=r(5),a=r(35),i=r(135),s=r(136);t.generatorsModule=new n.ContainerModule(function(e){e(o.ServiceIdentifiers.IIdentifierNamesGenerator).to(i.HexadecimalIdentifierNamesGenerator).inSingletonScope().whenTargetNamed(a.IdentifierNamesGenerator.HexadecimalIdentifierNamesGenerator),e(o.ServiceIdentifiers.IIdentifierNamesGenerator).to(s.MangledIdentifierNamesGenerator).inSingletonScope().whenTargetNamed(a.IdentifierNamesGenerator.MangledIdentifierNamesGenerator),e(o.ServiceIdentifiers.Factory__IIdentifierNamesGenerator).toFactory(function(e){var t=null;return function(r){if(t)return t;var n;switch(r.identifierNamesGenerator){case a.IdentifierNamesGenerator.MangledIdentifierNamesGenerator:n=e.container.getNamed(o.ServiceIdentifiers.IIdentifierNamesGenerator,a.IdentifierNamesGenerator.MangledIdentifierNamesGenerator);break;case a.IdentifierNamesGenerator.HexadecimalIdentifierNamesGenerator:default:n=e.container.getNamed(o.ServiceIdentifiers.IIdentifierNamesGenerator,a.IdentifierNamesGenerator.HexadecimalIdentifierNamesGenerator)}return t=n,n}})})},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=r(5),p=r(56),m=r(40),g=r(34),N=d=function(e){function t(e,r){var n;return(0,o.default)(this,t),(n=(0,i.default)(this,(0,s.default)(t).call(this,e,r))).randomVariableNameSet=new Set,n}return(0,c.default)(t,e),(0,a.default)(t,[{key:"generate",value:function(e){var t=this.randomGenerator.getRandomInteger(1e4,99999999),r=m.NumberUtils.toHex(t),n=g.Utils.hexadecimalPrefix.length+1,o=e?e-n:d.baseIdentifierNameLength,a=r.substr(0,o),i="_".concat(g.Utils.hexadecimalPrefix).concat(a);return this.randomVariableNameSet.has(i)?this.generate(e):(this.randomVariableNameSet.add(i),i)}},{key:"generateWithPrefix",value:function(e){var t=this.generate(e);return"".concat(this.options.identifiersPrefix).concat(t).replace("__","_")}}]),t}(p.AbstractIdentifierNamesGenerator);N.baseIdentifierNameLength=6,N=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(1,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Object,Object])],N),t.HexadecimalIdentifierNamesGenerator=N},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(39)),d=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var u,l=r(4),f=r(2),p=r(5),m=r(56),g=u=function(e){function t(e,r){var n;return(0,o.default)(this,t),(n=(0,i.default)(this,(0,s.default)(t).call(this,e,r))).previousMangledName=u.initMangledNameCharacter,n}return(0,d.default)(t,e),(0,a.default)(t,[{key:"generate",value:function(e){var t=this.generateNewMangledName(this.previousMangledName);return this.previousMangledName=t,t}},{key:"generateWithPrefix",value:function(e){var t=this.options.identifiersPrefix?"".concat(this.options.identifiersPrefix,"_"):"",r=this.generate(e);return"".concat(t).concat(r)}},{key:"isValidIdentifierName",value:function(e){return(0,c.default)((0,s.default)(t.prototype),"isValidIdentifierName",this).call(this,e)&&!u.reservedNames.includes(e)}},{key:"generateNewMangledName",value:function(e){var t=function(e){var t=u.nameSequence,r=e.length,n=function(e){return"0".repeat(e)},o=r-1;do{var a=e.charAt(o),i=t.indexOf(a);if(i!==t.length-1)return e.substring(0,o)+t[i+1]+n(r-(o+1));--o}while(o>=0);return"a".concat(n(r))},r=t(e);return this.isValidIdentifierName(r)||(r=this.generateNewMangledName(r)),r}}]),t}(m.AbstractIdentifierNamesGenerator);g.initMangledNameCharacter="9",g.nameSequence="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""),g.reservedNames=["byte","case","char","do","else","enum","eval","for","goto","if","in","int","let","long","new","null","this","true","try","var","void","with"],g=u=l.__decorate([f.injectable(),l.__param(0,f.inject(p.ServiceIdentifiers.IRandomGenerator)),l.__param(1,f.inject(p.ServiceIdentifiers.IOptions)),l.__metadata("design:paramtypes",[Object,Object])],g),t.MangledIdentifierNamesGenerator=g},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(20),o=r(2),a=r(5);t.nodeTransformersModule=new o.ContainerModule(function(e){e(a.ServiceIdentifiers.Factory__INodeTransformer).toFactory(n.InversifyContainerFacade.getCacheFactory(a.ServiceIdentifiers.INodeTransformer))})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(20),o=r(2),a=r(5),i=r(22),s=r(57),c=r(29),d=r(139),u=r(140),l=r(141),f=r(142),p=r(143),m=r(144),g=r(145),N=r(146),v=r(147),y=r(148),h=r(149),_=r(150);t.obfuscatingTransformersModule=new o.ContainerModule(function(e){e(a.ServiceIdentifiers.INodeTransformer).to(l.CatchClauseTransformer).whenTargetNamed(c.NodeTransformer.CatchClauseTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(f.ClassDeclarationTransformer).whenTargetNamed(c.NodeTransformer.ClassDeclarationTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(p.FunctionDeclarationTransformer).whenTargetNamed(c.NodeTransformer.FunctionDeclarationTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(m.FunctionTransformer).whenTargetNamed(c.NodeTransformer.FunctionTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(g.ImportDeclarationTransformer).whenTargetNamed(c.NodeTransformer.ImportDeclarationTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(N.LabeledStatementTransformer).whenTargetNamed(c.NodeTransformer.LabeledStatementTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(v.LiteralTransformer).whenTargetNamed(c.NodeTransformer.LiteralTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(_.VariableDeclarationTransformer).whenTargetNamed(c.NodeTransformer.VariableDeclarationTransformer),e(a.ServiceIdentifiers.IObfuscatingReplacer).to(u.BooleanLiteralObfuscatingReplacer).whenTargetNamed(s.LiteralObfuscatingReplacer.BooleanLiteralObfuscatingReplacer),e(a.ServiceIdentifiers.IObfuscatingReplacer).to(y.NumberLiteralObfuscatingReplacer).whenTargetNamed(s.LiteralObfuscatingReplacer.NumberLiteralObfuscatingReplacer),e(a.ServiceIdentifiers.IObfuscatingReplacer).to(h.StringLiteralObfuscatingReplacer).whenTargetNamed(s.LiteralObfuscatingReplacer.StringLiteralObfuscatingReplacer),e(a.ServiceIdentifiers.IIdentifierObfuscatingReplacer).to(d.BaseIdentifierObfuscatingReplacer).whenTargetNamed(i.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer),e(a.ServiceIdentifiers.Factory__IObfuscatingReplacer).toFactory(n.InversifyContainerFacade.getCacheFactory(a.ServiceIdentifiers.IObfuscatingReplacer)),e(a.ServiceIdentifiers.Factory__IIdentifierObfuscatingReplacer).toFactory(n.InversifyContainerFacade.getCacheFactory(a.ServiceIdentifiers.IIdentifierObfuscatingReplacer))})},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(41),p=r(14),m=function(e){function t(e,r){var n;return(0,o.default)(this,t),(n=(0,i.default)(this,(0,s.default)(t).call(this,r))).blockScopesMap=new Map,n.identifierNamesGenerator=e(r),n}return(0,c.default)(t,e),(0,a.default)(t,[{key:"replace",value:function(e,t){if(this.blockScopesMap.has(t)){var r=this.blockScopesMap.get(t);r.has(e)&&(e=r.get(e))}return p.NodeFactory.identifierNode(e)}},{key:"storeGlobalName",value:function(e,t){if(!this.isReservedName(e)){var r=this.identifierNamesGenerator.generateWithPrefix();this.blockScopesMap.has(t)||this.blockScopesMap.set(t,new Map),this.blockScopesMap.get(t).set(e,r)}}},{key:"storeLocalName",value:function(e,t){if(!this.isReservedName(e)){var r=this.identifierNamesGenerator.generate();this.blockScopesMap.has(t)||this.blockScopesMap.set(t,new Map),this.blockScopesMap.get(t).set(e,r)}}},{key:"isReservedName",value:function(e){return!!this.options.reservedStrings.length&&this.options.reservedNames.some(function(t){return null!==new RegExp(t,"g").exec(e)})}}]),t}(f.AbstractObfuscatingReplacer);m=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object])],m),t.BaseIdentifierObfuscatingReplacer=m},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=r(5),p=r(41),m=r(14),g=d=function(e){function t(e){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"replace",value:function(e){return e?d.getTrueUnaryExpressionNode():d.getFalseUnaryExpressionNode()}}],[{key:"getTrueUnaryExpressionNode",value:function(){return m.NodeFactory.unaryExpressionNode("!",d.getFalseUnaryExpressionNode())}},{key:"getFalseUnaryExpressionNode",value:function(){return m.NodeFactory.unaryExpressionNode("!",m.NodeFactory.arrayExpressionNode())}}]),t}(p.AbstractObfuscatingReplacer);g=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Object])],g),t.BooleanLiteralObfuscatingReplacer=g},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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=d.__importStar(r(16)),p=r(22),m=r(12),g=r(13),N=r(9),v=r(27),y=r(17),h=function(e){function t(e,r,n){var a;return(0,o.default)(this,t),(a=(0,i.default)(this,(0,s.default)(t).call(this,r,n))).identifierObfuscatingReplacer=e(p.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer),a}return(0,c.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case m.TransformationStage.Obfuscating:return{enter:function(e,r){if(r&&N.NodeGuards.isCatchClauseNode(e))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){var r=v.NodeLexicalScopeUtils.getLexicalScope(e);return r?(this.storeCatchClauseParam(e,r),this.replaceCatchClauseParam(e,r),e):e}},{key:"storeCatchClauseParam",value:function(e,t){N.NodeGuards.isIdentifierNode(e.param)&&this.identifierObfuscatingReplacer.storeLocalName(e.param.name,t)}},{key:"replaceCatchClauseParam",value:function(e,t){var r=this;f.replace(e,{enter:function(e,n){if(n&&N.NodeGuards.isReplaceableIdentifierNode(e,n)){var o=r.identifierObfuscatingReplacer.replace(e.name,t).name;e.name!==o&&(e.name=o,y.NodeMetadata.set(e,{renamedIdentifier:!0}))}}})}}]),t}(g.AbstractNodeTransformer);h=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierObfuscatingReplacer)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object])],h),t.CatchClauseTransformer=h},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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=d.__importStar(r(16)),p=r(22),m=r(19),g=r(12),N=r(13),v=r(9),y=r(27),h=r(17),_=function(e){function t(e,r,n){var a;return(0,o.default)(this,t),(a=(0,i.default)(this,(0,s.default)(t).call(this,r,n))).replaceableIdentifiers=new Map,a.identifierObfuscatingReplacer=e(p.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer),a}return(0,c.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case g.TransformationStage.Obfuscating:return{enter:function(e,r){if(r&&v.NodeGuards.isClassDeclarationNode(e)&&!v.NodeGuards.isExportNamedDeclarationNode(r))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){var r=y.NodeLexicalScopeUtils.getLexicalScope(e);if(!r)return e;var n=r.type===m.NodeType.Program;return!this.options.renameGlobals&&n?e:(this.storeClassName(e,r,n),this.replaceableIdentifiers.has(r)?this.replaceScopeCachedIdentifiers(e,r):this.replaceScopeIdentifiers(r),e)}},{key:"storeClassName",value:function(e,t,r){r?this.identifierObfuscatingReplacer.storeGlobalName(e.id.name,t):this.identifierObfuscatingReplacer.storeLocalName(e.id.name,t)}},{key:"replaceScopeCachedIdentifiers",value:function(e,t){var r=this.replaceableIdentifiers.get(t).get(e.id.name);if(r)for(var n=r.length,o=0;o2&&void 0!==arguments[2]?arguments[2]:new Set,o={enter:function(o,a){if(v.NodeGuards.isFunctionNode(o)&&o!==e)return r.replaceFunctionParams(o,t,new Set(n)),p.VisitorOption.Skip;if(d.isProhibitedIdentifierOfShorthandPropertyNode(o))n.add(o.key.name);else if(a&&v.NodeGuards.isReplaceableIdentifierNode(o,a)&&!h.NodeMetadata.isRenamedIdentifier(o)&&!n.has(o.name)){if(r.isGlobalFunctionDeclarationIdentifier(o,a))return;var i=r.identifierObfuscatingReplacer.replace(o.name,t).name;o.name!==i&&(o.name=i,h.NodeMetadata.set(o,{renamedIdentifier:!0}))}}};p.replace(e,o)}}],[{key:"isProhibitedIdentifierOfPropertyNode",value:function(e,t){return v.NodeGuards.isIdentifierNode(e)&&!!t&&v.NodeGuards.isPropertyNode(t)&&t.key===e}},{key:"isProhibitedIdentifierOfShorthandPropertyNode",value:function(e){return v.NodeGuards.isPropertyNode(e)&&e.shorthand&&v.NodeGuards.isIdentifierNode(e.key)}}]),t}(N.AbstractNodeTransformer);b=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IIdentifierObfuscatingReplacer)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],b),t.FunctionTransformer=b},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=r(5),p=u.__importStar(r(16)),m=r(22),g=r(12),N=r(13),v=r(9),y=r(27),h=r(17),_=d=function(e){function t(e,r,n){var a;return(0,o.default)(this,t),(a=(0,i.default)(this,(0,s.default)(t).call(this,r,n))).replaceableIdentifiers=new Map,a.identifierObfuscatingReplacer=e(m.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer),a}return(0,c.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case g.TransformationStage.Obfuscating:return{enter:function(e,r){if(r&&v.NodeGuards.isImportDeclarationNode(e))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){var r=y.NodeLexicalScopeUtils.getLexicalScope(e);return r?(this.storeImportSpecifierNames(e,r),this.replaceableIdentifiers.has(r)?this.replaceScopeCachedIdentifiers(r):this.replaceScopeIdentifiers(r),e):e}},{key:"storeImportSpecifierNames",value:function(e,t){var r=this;e.specifiers.forEach(function(e){d.isProhibitedImportSpecifierNode(e)||r.identifierObfuscatingReplacer.storeGlobalName(e.local.name,t)})}},{key:"replaceScopeCachedIdentifiers",value:function(e){var t=this;this.replaceableIdentifiers.get(e).forEach(function(r){var n=t.identifierObfuscatingReplacer.replace(r.name,e);r.name=n.name,h.NodeMetadata.set(r,{renamedIdentifier:!0})})}},{key:"replaceScopeIdentifiers",value:function(e){var t=this,r=[];p.replace(e,{enter:function(n,o){if(o&&v.NodeGuards.isReplaceableIdentifierNode(n,o)&&!h.NodeMetadata.isRenamedIdentifier(n)){var a=t.identifierObfuscatingReplacer.replace(n.name,e).name;n.name!==a?(n.name=a,h.NodeMetadata.set(n,{renamedIdentifier:!0})):r.push(n)}}}),this.replaceableIdentifiers.set(e,r)}}],[{key:"isProhibitedImportSpecifierNode",value:function(e){return v.NodeGuards.isImportSpecifierNode(e)&&e.imported.name===e.local.name}}]),t}(N.AbstractNodeTransformer);_=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IIdentifierObfuscatingReplacer)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],_),t.ImportDeclarationTransformer=_},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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=d.__importStar(r(16)),p=r(22),m=r(12),g=r(13),N=r(9),v=r(27),y=function(e){function t(e,r,n){var a;return(0,o.default)(this,t),(a=(0,i.default)(this,(0,s.default)(t).call(this,r,n))).identifierObfuscatingReplacer=e(p.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer),a}return(0,c.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case m.TransformationStage.Obfuscating:return{enter:function(e,r){if(r&&N.NodeGuards.isLabeledStatementNode(e))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){var r=v.NodeLexicalScopeUtils.getLexicalScope(e);return r?(this.storeLabeledStatementName(e,r),this.replaceLabeledStatementName(e,r),e):e}},{key:"storeLabeledStatementName",value:function(e,t){this.identifierObfuscatingReplacer.storeLocalName(e.label.name,t)}},{key:"replaceLabeledStatementName",value:function(e,t){var r=this;f.replace(e,{enter:function(e,n){if(n&&N.NodeGuards.isLabelIdentifierNode(e,n)){var o=r.identifierObfuscatingReplacer.replace(e.name,t);e.name=o.name}}})}}]),t}(g.AbstractNodeTransformer);y=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierObfuscatingReplacer)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object])],y),t.LabeledStatementTransformer=y},function(e,t,r){"use strict";var n=r(0),o=n(r(50)),a=n(r(1)),i=n(r(3)),s=n(r(6)),c=n(r(7)),d=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var u=r(4),l=r(2),f=r(5),p=r(57),m=r(12),g=r(13),N=r(9),v=r(17),y=r(11),h=function(e){function t(e,r,n){var o;return(0,a.default)(this,t),(o=(0,s.default)(this,(0,c.default)(t).call(this,r,n))).literalObfuscatingReplacerFactory=e,o}return(0,d.default)(t,e),(0,i.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case m.TransformationStage.Obfuscating:return{enter:function(e,r){if(r&&N.NodeGuards.isLiteralNode(e)&&!v.NodeMetadata.isReplacedLiteral(e))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){if(this.isProhibitedNode(e,t))return e;var r;switch((0,o.default)(e.value)){case"boolean":r=this.literalObfuscatingReplacerFactory(p.LiteralObfuscatingReplacer.BooleanLiteralObfuscatingReplacer).replace(e.value);break;case"number":r=this.literalObfuscatingReplacerFactory(p.LiteralObfuscatingReplacer.NumberLiteralObfuscatingReplacer).replace(e.value);break;case"string":r=this.literalObfuscatingReplacerFactory(p.LiteralObfuscatingReplacer.StringLiteralObfuscatingReplacer).replace(e.value);break;default:r=e}return y.NodeUtils.parentizeNode(r,t),r}},{key:"isProhibitedNode",value:function(e,t){return!(!N.NodeGuards.isPropertyNode(t)||t.key!==e)||!!N.NodeGuards.isImportDeclarationNode(t)}}]),t}(g.AbstractNodeTransformer);h=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IObfuscatingReplacer)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],h),t.LiteralTransformer=h},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(41),p=r(14),m=r(40),g=r(34),N=function(e){function t(e){var r;return(0,o.default)(this,t),(r=(0,i.default)(this,(0,s.default)(t).call(this,e))).numberLiteralCache=new Map,r}return(0,c.default)(t,e),(0,a.default)(t,[{key:"replace",value:function(e){var t;return this.numberLiteralCache.has(e)?t=this.numberLiteralCache.get(e):(t=m.NumberUtils.isCeil(e)?"".concat(g.Utils.hexadecimalPrefix).concat(m.NumberUtils.toHex(e)):String(e),this.numberLiteralCache.set(e,t)),p.NodeFactory.literalNode(e,t)}}]),t}(f.AbstractObfuscatingReplacer);N=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Object])],N),t.NumberLiteralObfuscatingReplacer=N},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=r(5),p=r(37),m=r(41),g=r(17),N=r(14),v=r(40),y=r(34),h=d=function(e){function t(e,r,n,a,c){var u;return(0,o.default)(this,t),(u=(0,i.default)(this,(0,s.default)(t).call(this,c))).nodesCache=new Map,u.stringLiteralHexadecimalIndexCache=new Map,u.stringArrayStorage=e,u.escapeSequenceEncoder=r,u.randomGenerator=n,u.cryptUtils=a,u.rc4Keys=u.randomGenerator.getRandomGenerator().n(function(){return u.randomGenerator.getRandomGenerator().string({length:d.rc4KeyLength})},d.rc4KeysCount),u}return(0,c.default)(t,e),(0,a.default)(t,[{key:"replace",value:function(e){if(this.isReservedString(e))return this.replaceWithReservedLiteralNode(e);var t=this.canUseStringArray(e),r="".concat(e,"-").concat(String(t));if(this.nodesCache.has(r)&&this.options.stringArrayEncoding!==p.StringArrayEncoding.Rc4)return this.nodesCache.get(r);var n=t?this.replaceWithStringArrayCallNode(e):this.replaceWithLiteralNode(e);return this.nodesCache.set(r,n),n}},{key:"canUseStringArray",value:function(e){return this.options.stringArray&&e.length>=d.minimumLengthForStringArray&&this.randomGenerator.getMathRandom()<=this.options.stringArrayThreshold}},{key:"getStringArrayHexadecimalIndex",value:function(e,t){if(this.stringLiteralHexadecimalIndexCache.has(e))return{fromCache:!0,index:this.stringLiteralHexadecimalIndexCache.get(e)};var r=v.NumberUtils.toHex(t),n="".concat(y.Utils.hexadecimalPrefix).concat(r);return this.stringLiteralHexadecimalIndexCache.set(e,n),{fromCache:!1,index:n}}},{key:"getEncodedValue",value:function(e){var t,r=null;switch(this.options.stringArrayEncoding){case p.StringArrayEncoding.Rc4:r=this.randomGenerator.getRandomGenerator().pickone(this.rc4Keys),t=this.cryptUtils.btoa(this.cryptUtils.rc4(e,r));break;case p.StringArrayEncoding.Base64:t=this.cryptUtils.btoa(e);break;default:t=e}return{encodedValue:t,key:r}}},{key:"replaceWithLiteralNode",value:function(e){return N.NodeFactory.literalNode(this.escapeSequenceEncoder.encode(e,this.options.unicodeEscapeSequence))}},{key:"replaceWithReservedLiteralNode",value:function(e){return N.NodeFactory.literalNode(this.escapeSequenceEncoder.encode(e,!1))}},{key:"replaceWithStringArrayCallNode",value:function(e){var t=this.getEncodedValue(e),r=t.encodedValue,n=t.key,o=this.escapeSequenceEncoder.encode(r,this.options.unicodeEscapeSequence),a=this.stringArrayStorage.getLength(),i=this.stringArrayStorage.getStorageId().split("|")[1],s=this.getStringArrayHexadecimalIndex(o,a),c=s.fromCache,u=s.index;c||this.stringArrayStorage.set(a,o);var l=[d.getHexadecimalLiteralNode(u)];n&&l.push(d.getRc4KeyLiteralNode(this.escapeSequenceEncoder.encode(n,this.options.unicodeEscapeSequence)));var f=N.NodeFactory.identifierNode(i);return g.NodeMetadata.set(f,{renamedIdentifier:!0}),N.NodeFactory.callExpressionNode(f,l)}},{key:"isReservedString",value:function(e){return!!this.options.reservedStrings.length&&this.options.reservedStrings.some(function(t){return null!==new RegExp(t,"g").exec(e)})}}],[{key:"getHexadecimalLiteralNode",value:function(e){var t=N.NodeFactory.literalNode(e);return g.NodeMetadata.set(t,{replacedLiteral:!0}),t}},{key:"getRc4KeyLiteralNode",value:function(e){var t=N.NodeFactory.literalNode(e);return g.NodeMetadata.set(t,{replacedLiteral:!0}),t}}]),t}(m.AbstractObfuscatingReplacer);h.minimumLengthForStringArray=3,h.rc4KeyLength=4,h.rc4KeysCount=50,h=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.TStringArrayStorage)),u.__param(1,l.inject(f.ServiceIdentifiers.IEscapeSequenceEncoder)),u.__param(2,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(3,l.inject(f.ServiceIdentifiers.ICryptUtils)),u.__param(4,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Object,Object,Object,Object,Object])],h),t.StringLiteralObfuscatingReplacer=h},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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=d.__importStar(r(16)),p=r(22),m=r(19),g=r(12),N=r(13),v=r(9),y=r(27),h=r(151),_=r(17),b=function(e){function t(e,r,n){var a;return(0,o.default)(this,t),(a=(0,i.default)(this,(0,s.default)(t).call(this,r,n))).replaceableIdentifiers=new Map,a.identifierObfuscatingReplacer=e(p.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer),a}return(0,c.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case g.TransformationStage.Obfuscating:return{enter:function(e,r){if(r&&v.NodeGuards.isVariableDeclarationNode(e)&&!v.NodeGuards.isExportNamedDeclarationNode(r))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){var r="var"===e.kind?y.NodeLexicalScopeUtils.getLexicalScope(e):h.NodeBlockLexicalScopeUtils.getLexicalScope(e);if(!r)return e;var n=r.type===m.NodeType.Program;if(!this.options.renameGlobals&&n)return e;var o="var"===e.kind?r:t;return this.storeVariableNames(e,r,n),this.replaceableIdentifiers.has(o)?this.replaceScopeCachedIdentifiers(e,r,o):this.replaceScopeIdentifiers(o,r),e}},{key:"storeVariableNames",value:function(e,t,r){var n=this;this.traverseDeclarationIdentifiers(e,function(e){r?n.identifierObfuscatingReplacer.storeGlobalName(e.name,t):n.identifierObfuscatingReplacer.storeLocalName(e.name,t)})}},{key:"replaceScopeCachedIdentifiers",value:function(e,t,r){var n=this,o=this.replaceableIdentifiers.get(r),a=[];this.traverseDeclarationIdentifiers(e,function(e){a.push(e.name)}),a.forEach(function(e){var r=o.get(e);if(r)for(var a=r.length,i=0;i1&&void 0!==arguments[1]?arguments[1]:1/0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;if(n.length>=r)return n;var a=t.parentNode;if(!a)throw new ReferenceError("`parentNode` property of given node is `undefined`");return i.NodeGuards.isNodeWithBlockLexicalScope(t)&&n.push(t),t!==a?e.getLexicalScopesRecursive(a,r,n,++o):n}}]),e}();t.NodeBlockLexicalScopeUtils=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(2),o=r(5),a=r(153),i=r(156);t.optionsModule=new n.ContainerModule(function(e){e(o.ServiceIdentifiers.IOptions).to(a.Options).inSingletonScope(),e(o.ServiceIdentifiers.IOptionsNormalizer).to(i.OptionsNormalizer).inSingletonScope()})},function(e,t,r){"use strict";var n=r(0)(r(1));Object.defineProperty(t,"__esModule",{value:!0});var o,a=r(4),i=r(2),s=r(5),c=r(154),d=r(35),u=r(23),l=r(36),f=r(37),p=r(46),m=r(155),g=o=function e(t,r){(0,n.default)(this,e),Object.assign(this,p.DEFAULT_PRESET,t);var a=c.validateSync(this,o.validatorOptions);if(a.length)throw new ReferenceError("Validation failed. errors:\n".concat(m.ValidationErrorsFormatter.format(a)));Object.assign(this,r.normalize(this))};g.validatorOptions={validationError:{target:!1}},a.__decorate([c.IsBoolean(),a.__metadata("design:type",Boolean)],g.prototype,"compact",void 0),a.__decorate([c.IsBoolean(),a.__metadata("design:type",Boolean)],g.prototype,"controlFlowFlattening",void 0),a.__decorate([c.IsNumber(),c.Min(0),c.Max(1),a.__metadata("design:type",Number)],g.prototype,"controlFlowFlatteningThreshold",void 0),a.__decorate([c.IsBoolean(),a.__metadata("design:type",Boolean)],g.prototype,"deadCodeInjection",void 0),a.__decorate([c.IsNumber(),a.__metadata("design:type",Number)],g.prototype,"deadCodeInjectionThreshold",void 0),a.__decorate([c.IsBoolean(),a.__metadata("design:type",Boolean)],g.prototype,"debugProtection",void 0),a.__decorate([c.IsBoolean(),a.__metadata("design:type",Boolean)],g.prototype,"debugProtectionInterval",void 0),a.__decorate([c.IsBoolean(),a.__metadata("design:type",Boolean)],g.prototype,"disableConsoleOutput",void 0),a.__decorate([c.IsArray(),c.ArrayUnique(),c.IsString({each:!0}),a.__metadata("design:type",Array)],g.prototype,"domainLock",void 0),a.__decorate([c.IsIn([d.IdentifierNamesGenerator.HexadecimalIdentifierNamesGenerator,d.IdentifierNamesGenerator.MangledIdentifierNamesGenerator]),a.__metadata("design:type",String)],g.prototype,"identifierNamesGenerator",void 0),a.__decorate([c.IsString(),a.__metadata("design:type",String)],g.prototype,"identifiersPrefix",void 0),a.__decorate([c.IsString(),a.__metadata("design:type",String)],g.prototype,"inputFileName",void 0),a.__decorate([c.IsBoolean(),a.__metadata("design:type",Boolean)],g.prototype,"log",void 0),a.__decorate([c.IsBoolean(),a.__metadata("design:type",Boolean)],g.prototype,"renameGlobals",void 0),a.__decorate([c.IsArray(),c.ArrayUnique(),c.IsString({each:!0}),a.__metadata("design:type",Array)],g.prototype,"reservedNames",void 0),a.__decorate([c.IsArray(),c.ArrayUnique(),c.IsString({each:!0}),a.__metadata("design:type",Array)],g.prototype,"reservedStrings",void 0),a.__decorate([c.IsBoolean(),a.__metadata("design:type",Boolean)],g.prototype,"rotateStringArray",void 0),a.__decorate([c.IsNumber(),a.__metadata("design:type",Number)],g.prototype,"seed",void 0),a.__decorate([c.IsBoolean(),a.__metadata("design:type",Boolean)],g.prototype,"selfDefending",void 0),a.__decorate([c.IsBoolean(),a.__metadata("design:type",Boolean)],g.prototype,"sourceMap",void 0),a.__decorate([c.IsString(),c.ValidateIf(function(e){return Boolean(e.sourceMapBaseUrl)}),c.IsUrl({require_protocol:!0,require_tld:!1,require_valid_protocol:!0}),a.__metadata("design:type",String)],g.prototype,"sourceMapBaseUrl",void 0),a.__decorate([c.IsString(),a.__metadata("design:type",String)],g.prototype,"sourceMapFileName",void 0),a.__decorate([c.IsIn([l.SourceMapMode.Inline,l.SourceMapMode.Separate]),a.__metadata("design:type",String)],g.prototype,"sourceMapMode",void 0),a.__decorate([c.IsBoolean(),a.__metadata("design:type",Boolean)],g.prototype,"stringArray",void 0),a.__decorate([c.IsIn([!0,!1,f.StringArrayEncoding.Base64,f.StringArrayEncoding.Rc4]),a.__metadata("design:type",Object)],g.prototype,"stringArrayEncoding",void 0),a.__decorate([c.IsNumber(),c.Min(0),c.Max(1),a.__metadata("design:type",Number)],g.prototype,"stringArrayThreshold",void 0),a.__decorate([c.IsIn([u.ObfuscationTarget.Browser,u.ObfuscationTarget.BrowserNoEval,u.ObfuscationTarget.Node]),a.__metadata("design:type",String)],g.prototype,"target",void 0),a.__decorate([c.IsBoolean(),a.__metadata("design:type",Boolean)],g.prototype,"transformObjectKeys",void 0),a.__decorate([c.IsBoolean(),a.__metadata("design:type",Boolean)],g.prototype,"unicodeEscapeSequence",void 0),g=o=a.__decorate([i.injectable(),a.__param(0,i.inject(s.ServiceIdentifiers.TInputOptions)),a.__param(1,i.inject(s.ServiceIdentifiers.IOptionsNormalizer)),a.__metadata("design:paramtypes",[Object,Object])],g),t.Options=g},function(e,t){e.exports=require("class-validator")},function(e,t,r){"use strict";var n=r(0),o=n(r(28)),a=n(r(1)),i=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(){(0,a.default)(this,e)}return(0,i.default)(e,null,[{key:"format",value:function(t){return t.reduce(function(t,r){return(0,o.default)(t).concat([e.formatWithNestedConstraints(r)])},[]).join("\n")}},{key:"formatWithNestedConstraints",value:function(e){var t=e.constraints,r="`".concat(e.property,"` errors:\n"),n=Object.keys(t).map(function(e){return" - ".concat(t[e],"\n")}).join();return"".concat(r).concat(n)}}]),e}();t.ValidationErrorsFormatter=s},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i,s=r(4),c=r(2),d=r(157),u=r(158),l=r(159),f=r(160),p=r(161),m=r(162),g=r(163),N=r(164),v=r(165),y=r(166),h=r(167),_=i=function(){function e(){(0,o.default)(this,e)}return(0,a.default)(e,[{key:"normalize",value:function(e){var t=Object.assign({},e),r=!0,n=!1,o=void 0;try{for(var a,s=i.normalizerRules[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){t=(0,a.value)(t)}}catch(e){n=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(n)throw o}}return t}}]),e}();_.normalizerRules=[d.ControlFlowFlatteningThresholdRule,u.DeadCodeInjectionRule,l.DeadCodeInjectionThresholdRule,f.DomainLockRule,p.InputFileNameRule,m.SelfDefendingRule,g.SourceMapBaseUrlRule,N.SourceMapFileNameRule,v.StringArrayRule,y.StringArrayEncodingRule,h.StringArrayThresholdRule],_=i=s.__decorate([c.injectable()],_),t.OptionsNormalizer=_},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ControlFlowFlatteningThresholdRule=function(e){return 0===e.controlFlowFlatteningThreshold&&(e=Object.assign({},e,{controlFlowFlattening:!1,controlFlowFlatteningThreshold:0})),e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(46);t.DeadCodeInjectionRule=function(e){return e.deadCodeInjection&&((e=Object.assign({},e,{deadCodeInjection:!0,stringArray:!0})).stringArrayThreshold||(e=Object.assign({},e,{stringArray:!0,stringArrayThreshold:n.DEFAULT_PRESET.stringArrayThreshold}))),e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DeadCodeInjectionThresholdRule=function(e){return 0===e.deadCodeInjectionThreshold&&(e=Object.assign({},e,{deadCodeInjection:!1,deadCodeInjectionThreshold:0})),e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(34);t.DomainLockRule=function(e){if(e.domainLock.length){var t=[],r=!0,o=!1,a=void 0;try{for(var i,s=e.domainLock[Symbol.iterator]();!(r=(i=s.next()).done);r=!0){var c=i.value;t.push(n.Utils.extractDomainFrom(c))}}catch(e){o=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw a}}e=Object.assign({},e,{domainLock:t})}return e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InputFileNameRule=function(e){var t=e.inputFileName;return t&&(t=t.replace(/^\/+/,"").split(".").slice(0,-1).join(".")||t,e=Object.assign({},e,{inputFileName:"".concat(t,".js")})),e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SelfDefendingRule=function(e){return e.selfDefending&&(e=Object.assign({},e,{compact:!0,selfDefending:!0})),e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SourceMapBaseUrlRule=function(e){var t=e.sourceMapBaseUrl;return e.sourceMapFileName?(t&&!t.endsWith("/")&&(e=Object.assign({},e,{sourceMapBaseUrl:"".concat(t,"/")})),e):e=Object.assign({},e,{sourceMapBaseUrl:""})}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SourceMapFileNameRule=function(e){var t=e.sourceMapFileName;return t&&(t=t.replace(/^\/+/,"").split(".")[0],e=Object.assign({},e,{sourceMapFileName:"".concat(t,".js.map")})),e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayRule=function(e){return e.stringArray||(e=Object.assign({},e,{rotateStringArray:!1,stringArray:!1,stringArrayEncoding:!1,stringArrayThreshold:0})),e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(37);t.StringArrayEncodingRule=function(e){return!0===e.stringArrayEncoding&&(e=Object.assign({},e,{stringArrayEncoding:n.StringArrayEncoding.Base64})),e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayThresholdRule=function(e){return 0===e.stringArrayThreshold&&(e=Object.assign({},e,{rotateStringArray:!1,stringArray:!1,stringArrayEncoding:!1,stringArrayThreshold:0})),e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(20),o=r(2),a=r(5),i=r(29),s=r(58),c=r(169),d=r(170),u=r(171),l=r(172),f=r(173),p=r(175),m=r(176),g=r(177);t.preparingTransformersModule=new o.ContainerModule(function(e){e(a.ServiceIdentifiers.INodeTransformer).to(d.CommentsTransformer).whenTargetNamed(i.NodeTransformer.CommentsTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(l.CustomNodesTransformer).whenTargetNamed(i.NodeTransformer.CustomNodesTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(f.EvalCallExpressionTransformer).whenTargetNamed(i.NodeTransformer.EvalCallExpressionTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(p.MetadataTransformer).whenTargetNamed(i.NodeTransformer.MetadataTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(m.ObfuscatingGuardsTransformer).whenTargetNamed(i.NodeTransformer.ObfuscatingGuardsTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(g.ParentificationTransformer).whenTargetNamed(i.NodeTransformer.ParentificationTransformer),e(a.ServiceIdentifiers.INodeGuard).to(c.BlackListObfuscatingGuard).inSingletonScope().whenTargetNamed(s.ObfuscatingGuard.BlackListNodeGuard),e(a.ServiceIdentifiers.INodeGuard).to(u.ConditionalCommentObfuscatingGuard).inSingletonScope().whenTargetNamed(s.ObfuscatingGuard.ConditionalCommentNodeGuard),e(a.ServiceIdentifiers.Factory__INodeGuard).toFactory(n.InversifyContainerFacade.getCacheFactory(a.ServiceIdentifiers.INodeGuard))})},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i,s=r(4),c=r(2),d=r(9),u=i=function(){function e(){(0,o.default)(this,e),this.blackListGuardsLength=i.blackListGuards.length}return(0,a.default)(e,[{key:"check",value:function(e){for(var t=0;t=0?t:null}},{key:"getLength",value:function(){return this.storageLength}},{key:"getStorage",value:function(){return this.storage}},{key:"getStorageId",value:function(){return this.storageId}},{key:"mergeWith",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.storage=(0,o.default)(this.storage).concat((0,o.default)(e.getStorage())),t&&(this.storageId=e.getStorageId())}},{key:"set",value:function(e,t){e===this.storageLength?this.storage.push(t):this.storage.splice(e,0,t),this.storageLength++}}]),e}();s.__decorate([u.initializable(),s.__metadata("design:type",Array)],l.prototype,"storage",void 0),s.__decorate([u.initializable(),s.__metadata("design:type",String)],l.prototype,"storageId",void 0),s.__decorate([c.postConstruct(),s.__metadata("design:type",Function),s.__metadata("design:paramtypes",[]),s.__metadata("design:returntype",void 0)],l.prototype,"initialize",null),l=s.__decorate([c.injectable(),s.__param(0,c.inject(d.ServiceIdentifiers.IRandomGenerator)),s.__param(1,c.inject(d.ServiceIdentifiers.IOptions)),s.__metadata("design:paramtypes",[Object,Object])],l),t.ArrayStorage=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(2),o=r(5),a=r(184),i=r(185),s=r(188),c=r(60);t.utilsModule=new n.ContainerModule(function(e){e(o.ServiceIdentifiers.IArrayUtils).to(a.ArrayUtils).inSingletonScope(),e(o.ServiceIdentifiers.IRandomGenerator).to(c.RandomGenerator).inSingletonScope(),e(o.ServiceIdentifiers.ICryptUtils).to(i.CryptUtils).inSingletonScope(),e(o.ServiceIdentifiers.IEscapeSequenceEncoder).to(s.EscapeSequenceEncoder).inSingletonScope()})},function(e,t,r){"use strict";var n=r(0),o=n(r(28)),a=n(r(1)),i=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var s=r(4),c=r(2),d=r(5),u=function(){function e(t){(0,a.default)(this,e),this.randomGenerator=t}return(0,i.default)(e,[{key:"createWithRange",value:function(e){for(var t=[],r=0;r>8-o%1*8)){if((n=e.charCodeAt(o+=.75))>255)throw new Error("'btoa' failed: The string to be encoded contains characters outside of the Latin1 range.");r=r<<8|n}return t}},{key:"hideString",value:function(e,t){var r=this,n=this.randomGenerator.getRandomGenerator().string({length:t,pool:d.RandomGenerator.randomGeneratorPool}).replace(new RegExp("[".concat(e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"),"]"),"g"),""),o=n.split("");return this.randomGenerator.getRandomGenerator().shuffle(o),[function(e,t){for(var n=-1,o=-1,a="";n"),c="...".concat(o.substring(a,i).replace(/^\s+/,""),"...");throw new Error("Line ".concat(n.line,": ").concat(r,"\n").concat(s," ").concat(c))}}]),e}();d.colorError=c.default.red,d.nearestSymbolsCount=15,d.sourceTypes=["script","module"],t.EspreeFacade=d},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(6)),i=n(r(7)),s=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var c=r(4),d=r(2),u=r(193);d.decorate(d.injectable(),u.EventEmitter);var l=function(e){function t(){return(0,o.default)(this,t),(0,a.default)(this,(0,i.default)(t).apply(this,arguments))}return(0,s.default)(t,e),t}(u.EventEmitter);l=c.__decorate([d.injectable()],l),t.ObfuscationEventEmitter=l},function(e,t){e.exports=require("events")},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i=r(4),s=r(2),c=r(5),d=r(10),u=r(36),l=function(){function e(t,r){(0,o.default)(this,e),this.cryptUtils=t,this.options=r}return(0,a.default)(e,[{key:"initialize",value:function(e,t){this.obfuscatedCode=e,this.sourceMap=t}},{key:"getObfuscatedCode",value:function(){return this.correctObfuscatedCode()}},{key:"getSourceMap",value:function(){return this.sourceMap}},{key:"toString",value:function(){return this.obfuscatedCode}},{key:"correctObfuscatedCode",value:function(){if(!this.sourceMap)return this.obfuscatedCode;var e=this.options.sourceMapBaseUrl+this.options.sourceMapFileName,t="//# sourceMappingURL=";switch(this.options.sourceMapMode){case u.SourceMapMode.Inline:t+="data:application/json;base64,".concat(this.cryptUtils.btoa(this.sourceMap));break;case u.SourceMapMode.Separate:default:if(!e)return this.obfuscatedCode;t+=e}return"".concat(this.obfuscatedCode,"\n").concat(t)}}]),e}();i.__decorate([d.initializable(),i.__metadata("design:type",String)],l.prototype,"obfuscatedCode",void 0),i.__decorate([d.initializable(),i.__metadata("design:type",String)],l.prototype,"sourceMap",void 0),l=i.__decorate([s.injectable(),i.__param(0,s.inject(c.ServiceIdentifiers.ICryptUtils)),i.__param(1,s.inject(c.ServiceIdentifiers.IOptions)),i.__metadata("design:paramtypes",[Object,Object])],l),t.ObfuscatedCode=l},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(t,r){(0,o.default)(this,e),this.sourceCode=t,this.sourceMap=r}return(0,a.default)(e,[{key:"getSourceCode",value:function(){return this.sourceCode}},{key:"getSourceMap",value:function(){return this.sourceMap}},{key:"toString",value:function(){return this.sourceCode}}]),e}();t.SourceCode=i},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i=r(4),s=r(2),c=r(5),d=i.__importStar(r(16)),u=r(197),l=r(9),f=r(17),p=function(){function e(t){(0,o.default)(this,e),this.nodeTransformerFactory=t}return(0,a.default)(e,[{key:"transform",value:function(e,t,r){if(!t.length)return e;for(var n,o=[],a=[],i=t.length,s=0;s [options]").version("0.18.3","-v, --version").option("-o, --output ","Output path for obfuscated code").option("--compact ","Disable one line output code compacting",f.BooleanSanitizer).option("--config ","Name of js / json config file").option("--control-flow-flattening ","Enables control flow flattening",f.BooleanSanitizer).option("--control-flow-flattening-threshold ","The probability that the control flow flattening transformation will be applied to the node",parseFloat).option("--dead-code-injection ","Enables dead code injection",f.BooleanSanitizer).option("--dead-code-injection-threshold ","The probability that the dead code injection transformation will be applied to the node",parseFloat).option("--debug-protection ","Disable browser Debug panel (can cause DevTools enabled browser freeze)",f.BooleanSanitizer).option("--debug-protection-interval ","Disable browser Debug panel even after page was loaded (can cause DevTools enabled browser freeze)",f.BooleanSanitizer).option("--disable-console-output ","Allow console.log, console.info, console.error and console.warn messages output into browser console",f.BooleanSanitizer).option("--domain-lock (comma separated, without whitespaces)","Blocks the execution of the code in domains that do not match the passed RegExp patterns (comma separated)",l.ArraySanitizer).option("--exclude (comma separated, without whitespaces)","A filename or glob which indicates files to exclude from obfuscation",l.ArraySanitizer).option("--identifier-names-generator ","Sets identifier names generator. Values: hexadecimal, mangled. Default: hexadecimal",p.IdentifierNamesGeneratorSanitizer).option("--identifiers-prefix ","Sets prefix for all global identifiers.").option("--log ","Enables logging of the information to the console",f.BooleanSanitizer).option("--reserved-names (comma separated, without whitespaces)","Disables obfuscation and generation of identifiers, which being matched by passed RegExp patterns (comma separated)",l.ArraySanitizer).option("--reserved-strings (comma separated, without whitespaces)","Disables transformation of string literals, which being matched by passed RegExp patterns (comma separated)",l.ArraySanitizer).option("--rename-globals ","Allows to enable obfuscation of global variable and function names with declaration.",f.BooleanSanitizer).option("--rotate-string-array ","Disable rotation of unicode array values during obfuscation",f.BooleanSanitizer).option("--seed ","Sets seed for random generator. This is useful for creating repeatable results.",parseFloat).option("--self-defending ","Disables self-defending for obfuscated code",f.BooleanSanitizer).option("--source-map ","Enables source map generation",f.BooleanSanitizer).option("--source-map-base-url ","Sets base url to the source map import url when `--source-map-mode=separate`").option("--source-map-file-name ","Sets file name for output source map when `--source-map-mode=separate`").option("--source-map-mode ","Specify source map output mode. Values: inline, separate. Default: separate",g.SourceMapModeSanitizer).option("--string-array ","Disables gathering of all literal strings into an array and replacing every literal string with an array call",f.BooleanSanitizer).option("--string-array-encoding ","Encodes all strings in strings array using base64 or rc4 (this option can slow down your code speed. Values: true, false, base64, rc4. Default: false",N.StringArrayEncodingSanitizer).option("--string-array-threshold ","The probability that the literal string will be inserted into stringArray (Default: 0.8, Min: 0, Max: 1)",parseFloat).option("--target ","Allows to set target environment for obfuscated code. Values: browser, browser-no-eval, node. Default: browser",m.ObfuscationTargetSanitizer).option("--transform-object-keys ","Enables transformation of object keys",f.BooleanSanitizer).option("--unicode-escape-sequence ","Allows to enable/disable string conversion to unicode escape sequence",f.BooleanSanitizer).parse(this.rawArguments)}},{key:"configureHelp",value:function(){this.commands.on("--help",function(){console.log(" Examples:\n"),console.log(" %> javascript-obfuscator input_file_name.js --compact true --self-defending false"),console.log(" %> javascript-obfuscator input_file_name.js --output output_file_name.js --compact true --self-defending false"),console.log(" %> javascript-obfuscator input_directory_name --compact true --self-defending false"),console.log("")})}},{key:"processSourceCodeData",value:function(e){var t=this,r=this.inputCLIOptions.output?c.normalize(this.inputCLIOptions.output):"";if(Array.isArray(e))e.forEach(function(e,n){var o=e.filePath,a=e.content,i=r?c.join(r,o):v.CLIUtils.getOutputCodePath(o);t.processSourceCode(a,i,n)});else{var n=r||v.CLIUtils.getOutputCodePath(this.inputPath);this.processSourceCode(e,n,null)}}},{key:"processSourceCode",value:function(t,r,n){var o=this.buildOptions();if(null!==n){var a=this.inputCLIOptions.identifiersPrefix||e.baseIdentifiersPrefix,i="".concat(a).concat(n);o=Object.assign({},o,{identifiersPrefix:i})}o.sourceMap?e.processSourceCodeWithSourceMap(t,r,o):e.processSourceCodeWithoutSourceMap(t,r,o)}}],[{key:"filterOptions",value:function(e){var t={};return Object.keys(e).forEach(function(r){void 0!==e[r]&&(t[r]=e[r])}),t}},{key:"processSourceCodeWithoutSourceMap",value:function(e,t,r){var n=y.JavaScriptObfuscator.obfuscate(e,r).getObfuscatedCode();v.CLIUtils.writeFile(t,n)}},{key:"processSourceCodeWithSourceMap",value:function(e,t,r){var n=v.CLIUtils.getOutputSourceMapPath(t,r.sourceMapFileName||"");r=Object.assign({},r,{sourceMapFileName:c.basename(n)});var o=y.JavaScriptObfuscator.obfuscate(e,r);v.CLIUtils.writeFile(t,o.getObfuscatedCode()),"separate"===r.sourceMapMode&&o.getSourceMap()&&v.CLIUtils.writeFile(n,o.getSourceMap())}}]),e}();_.encoding="utf8",_.obfuscatedFilePrefix="-obfuscated",_.baseIdentifiersPrefix="a",i.__decorate([d.initializable(),i.__metadata("design:type",Object)],_.prototype,"commands",void 0),i.__decorate([d.initializable(),i.__metadata("design:type",Object)],_.prototype,"inputCLIOptions",void 0),i.__decorate([d.initializable(),i.__metadata("design:type",String)],_.prototype,"inputPath",void 0),t.JavaScriptObfuscatorCLI=_},function(e,t){e.exports=require("path")},function(e,t){e.exports=require("fs")},,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(203);e.exports=n.JavaScriptObfuscatorCLI},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0}),r(62);var i=r(198),s=function(){function e(){(0,o.default)(this,e)}return(0,a.default)(e,null,[{key:"obfuscate",value:function(e){var t=new i.JavaScriptObfuscatorCLI(e);t.initialize(),t.run()}}]),e}();t.JavaScriptObfuscatorCLI=s},function(e,t){e.exports=require("commander")},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ArraySanitizer=function(e){if(/,$/.test(e))throw new SyntaxError("Multiple values should be wrapped inside quotes: --option-name 'value1','value2'");return e.split(",").map(function(e){return e.trim()})}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BooleanSanitizer=function(e){return"true"===e||"1"===e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(35);t.IdentifierNamesGeneratorSanitizer=function(e){if(!Object.keys(n.IdentifierNamesGenerator).some(function(t){return n.IdentifierNamesGenerator[t]===e}))throw new ReferenceError("Invalid value of `--identifier-names-generator` option");return e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(23);t.ObfuscationTargetSanitizer=function(e){if(!Object.keys(n.ObfuscationTarget).some(function(t){return n.ObfuscationTarget[t]===e}))throw new ReferenceError("Invalid value of `--target` option");return e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(36);t.SourceMapModeSanitizer=function(e){if(!Object.keys(n.SourceMapMode).some(function(t){return n.SourceMapMode[t]===e}))throw new ReferenceError("Invalid value of `--source-map-mode` option");return e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(37);t.StringArrayEncodingSanitizer=function(e){switch(e){case"true":case"1":case n.StringArrayEncoding.Base64:return!0;case n.StringArrayEncoding.Rc4:return n.StringArrayEncoding.Rc4;default:return!1}}},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i=r(4),s=i.__importStar(r(200)),c=i.__importStar(r(212)),d=i.__importStar(r(199)),u=r(198),l=function(){function e(){(0,o.default)(this,e)}return(0,a.default)(e,null,[{key:"getOutputCodePath",value:function(e){return d.normalize(e).split(".").map(function(e,t){return 0===t?"".concat(e).concat(u.JavaScriptObfuscatorCLI.obfuscatedFilePrefix):e}).join(".")}},{key:"getOutputSourceMapPath",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return t&&(e="".concat(e.substring(0,e.lastIndexOf("/")),"/").concat(t)),/\.js\.map$/.test(e)?/\.js$/.test(e)&&(e+=".map"):e="".concat(e.split(".")[0],".js.map"),e}},{key:"getUserConfig",value:function(e){var t;try{t=r(213)(e)}catch(r){try{t=require(e)}catch(e){throw new ReferenceError("Given config path must be a valid `.js` or `.json` file path")}}return t}},{key:"writeFile",value:function(e,t){c.sync(d.dirname(e)),s.writeFileSync(e,t,{encoding:u.JavaScriptObfuscatorCLI.encoding})}}]),e}();t.CLIUtils=l},function(e,t){e.exports=require("mkdirp")},function(e,t){function r(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}r.keys=function(){return[]},r.resolve=r,e.exports=r,r.id=213},function(e,t,r){"use strict";var n=r(0),o=n(r(28)),a=n(r(1)),i=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var s=r(4),c=s.__importStar(r(200)),d=s.__importStar(r(199)),u=s.__importDefault(r(215)),l=r(64),f=r(198),p=r(63),m=function(){function e(t){(0,a.default)(this,e),this.options=t}return(0,i.default)(e,[{key:"readSourceCode",value:function(t){if(e.isFilePath(t)&&this.isValidFile(t))return this.readFile(t);if(e.isDirectoryPath(t)&&this.isValidDirectory(t))return this.readDirectoryRecursive(t);var r=e.availableInputExtensions.map(function(e){return"`".concat(e,"`")}).join(", ");throw new ReferenceError("Given input path must be a valid ".concat(r," file or directory path"))}},{key:"readDirectoryRecursive",value:function(t){var r=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return c.readdirSync(t,f.JavaScriptObfuscatorCLI.encoding).forEach(function(a){var i="".concat(t,"/").concat(a);if(e.isDirectoryPath(i)&&r.isValidDirectory(i))n.push.apply(n,(0,o.default)(r.readDirectoryRecursive(i)));else if(e.isFilePath(i)&&r.isValidFile(i)){var s=r.readFile(i);n.push({filePath:i,content:s})}}),n}},{key:"readFile",value:function(t){return e.logFilePath(t),c.readFileSync(t,f.JavaScriptObfuscatorCLI.encoding)}},{key:"isValidDirectory",value:function(t){return!e.isExcludedPath(t,this.options.exclude)}},{key:"isValidFile",value:function(t){return e.availableInputExtensions.includes(d.extname(t))&&!t.includes(f.JavaScriptObfuscatorCLI.obfuscatedFilePrefix)&&!e.isExcludedPath(t,this.options.exclude)}}],[{key:"isExcludedPath",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(!t.length)return!1;var r=d.basename(e),n=!!u.default([e],t).length;return t.some(function(t){return e.includes(t)||r.includes(t)})||n}},{key:"isDirectoryPath",value:function(e){try{return c.statSync(e).isDirectory()}catch(e){return!1}}},{key:"isFilePath",value:function(e){try{return c.statSync(e).isFile()}catch(e){return!1}}},{key:"logFilePath",value:function(e){var t=d.normalize(e);p.Logger.log(p.Logger.colorInfo,l.LoggingPrefix.CLI,"Obfuscating file: ".concat(t,"..."))}}]),e}();m.availableInputExtensions=[".js"],t.SourceCodeReader=m},function(e,t){e.exports=require("multimatch")}]); //# sourceMappingURL=index.cli.js.map \ No newline at end of file diff --git a/dist/index.js b/dist/index.js index cd5c1e2fd..dc3bbadd4 100644 --- a/dist/index.js +++ b/dist/index.js @@ -21,5 +21,5 @@ 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 o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.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 o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));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=201)}([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",e.Factory__IControlFlowCustomNode="Factory",e.Factory__IControlFlowReplacer="Factory",e.Factory__ICustomNode="Factory",e.Factory__ICustomNodeGroup="Factory",e.Factory__IDeadCodeInjectionCustomNode="Factory",e.Factory__IIdentifierNamesGenerator="Factory",e.Factory__IIdentifierObfuscatingReplacer="Factory",e.Factory__INodeGuard="Factory",e.Factory__INodeTransformer="Factory",e.Factory__IObfuscatedCode="Factory",e.Factory__IObfuscatingReplacer="Factory",e.Factory__IPropertiesExtractor="Factory",e.Factory__TControlFlowStorage="Factory",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",e.Newable__TControlFlowStorage="Newable",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),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i=r(19),s=function(){function e(){(0,o.default)(this,e)}return(0,a.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,o=e.isContinueStatementNode(r)&&r.label===t,a=e.isBreakStatementNode(r)&&r.label===t;return n||o||a}},{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:"isReplaceableIdentifierNode",value:function(t,r){if(!e.isIdentifierNode(t))return!1;var n=e.isPropertyNode(r)&&!r.computed&&r.key===t,o=e.isMemberExpressionNode(r)&&!r.computed&&r.property===t,a=e.isMethodDefinitionNode(r)&&!r.computed,i=e.isLabelIdentifierNode(t,r);return!(n||o||a||i)}},{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}();s.nodesWithLexicalStatements=[i.NodeType.ArrowFunctionExpression,i.NodeType.FunctionDeclaration,i.NodeType.FunctionExpression,i.NodeType.MethodDefinition],t.NodeGuards=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={configurable:!0,enumerable:!0},o="_initialized",a="_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(o,!1,r),c(a,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(a,e),d=Reflect.getMetadata(i,e),u=c.includes(r)||s.has(r)||d.has(r);if(!u){var l=e[r];if("function"==typeof l){var f=Object.getOwnPropertyDescriptor(e,r)||n,p=f.value;Object.defineProperty(e,r,Object.assign({},f,{value:function(){if(!Reflect.getMetadata(o,this))throw new Error("Class should be initialized with `".concat(t,"()` method"));return p.apply(this,arguments)}})),d.add(r)}}})}(r,e),function(e,t,r){var a=Object.getOwnPropertyDescriptor(e,t)||n,i=a.value;Object.defineProperty(e,t,Object.assign({},a,{value:function(){Reflect.defineMetadata(o,!0,this);var e=i.apply(this,arguments);return this[r],e}}))}(r,e,d),function(e,t){Reflect.getMetadata(a,e).add(t);var r="_".concat(t.toString()),o=Object.getOwnPropertyDescriptor(e,r)||n;return Object.defineProperty(e,t,Object.assign({},o,{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}})),o}(r,d)}}},function(e,t,r){"use strict";var n=r(0),o=n(r(50)),a=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,a.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 a,i=t[n];a=null===i||i instanceof RegExp?i:Array.isArray(i)?i.map(e.cloneRecursive):"object"===(0,o.default)(i)?e.cloneRecursive(i):i,r[n]=a}}),r}}]),e}();t.NodeUtils=p},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){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 o=r(4),a=r(2),i=r(5),s=function e(t,r){(0,n.default)(this,e),this.randomGenerator=t,this.options=r};s=o.__decorate([a.injectable(),o.__param(0,a.inject(i.ServiceIdentifiers.IRandomGenerator)),o.__param(1,a.inject(i.ServiceIdentifiers.IOptions)),o.__metadata("design:paramtypes",[Object,Object])],s),t.AbstractNodeTransformer=s},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i=r(4).__importStar(r(44)),s=r(19),c=function(){function e(){(0,o.default)(this,e)}return(0,a.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({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=r(0),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i,s=r(4),c=r(2),d=r(5),u=r(94),l=r(95),f=i=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,a.default)(e,[{key:"getNode",value:function(){return this.cachedNode||(this.cachedNode=this.getNodeStructure()),this.cachedNode}},{key:"getGlobalVariableTemplate",value:function(){return this.randomGenerator.getRandomGenerator().pickone(i.globalVariableTemplateFunctions)}}]),e}();f.globalVariableTemplateFunctions=[u.GlobalVariableTemplate1(),l.GlobalVariableTemplate2()],f=i=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),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){(0,o.default)(this,e)}return(0,a.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";var n=r(0),o=n(r(65)),a=n(r(1)),i=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var s=r(2),c=r(5),d=r(66),u=r(71),l=r(79),f=r(87),p=r(133),m=r(134),g=r(137),N=r(138),v=r(152),y=r(168),_=r(178),h=r(183),b=r(189),S=r(63),I=r(192),C=r(194),F=r(195),O=r(196),j=function(){function e(){(0,a.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 F.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(O.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 o=t.container.getNamed(e,n);return r.set(n,o),o}}}},{key:"getConstructorFactory",value:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n1&&void 0!==arguments[1]?arguments[1]:1/0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;if(n.length>=r)return n;var a=t.parentNode;if(!a)throw new ReferenceError("`parentNode` property of given node is `undefined`");return(i.NodeGuards.isProgramNode(t)||i.NodeGuards.isNodeWithLexicalScopeStatements(t,a)&&o>0)&&n.push(t),t!==a?e.getParentNodesWithStatementsRecursive(a,r,n,++o):n}},{key:"getSiblingStatementByOffset",value:function(t,r){var n=e.getScopeOfNode(t),o=i.NodeGuards.isSwitchCaseNode(n)?n.consequent:n.body;return o[o.indexOf(t)+r]||null}}]),e}();t.NodeStatementUtils=s},function(e,t,r){"use strict";var n=r(0),o=n(r(28)),a=n(r(1)),i=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var s=r(9),c=function(){function e(){(0,a.default)(this,e)}return(0,i.default)(e,null,[{key:"append",value:function(t,r){r=e.parentizeScopeStatementsBeforeAppend(t,r),e.setScopeStatements(t,(0,o.default)(e.getScopeStatements(t)).concat((0,o.default)(r)))}},{key:"appendToOptimalBlockScope",value:function(t,r,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=t.length?e.getOptimalBlockScope(t,o):r;e.prepend(a,n)}},{key:"getOptimalBlockScope",value:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,o=t[r];if(n<=0)throw new Error("Invalid `deep` argument value. Value should be bigger then 0.");return n>1&&o.stackTrace.length?e.getOptimalBlockScope(o.stackTrace,0,--n):o.callee}},{key:"insertAfter",value:function(t,r,n){var o=e.getScopeStatements(t).indexOf(n);e.insertAtIndex(t,r,o+1)}},{key:"insertAtIndex",value:function(t,r,n){r=e.parentizeScopeStatementsBeforeAppend(t,r),e.setScopeStatements(t,(0,o.default)(e.getScopeStatements(t).slice(0,n)).concat((0,o.default)(r),(0,o.default)(e.getScopeStatements(t).slice(n))))}},{key:"prepend",value:function(t,r){r=e.parentizeScopeStatementsBeforeAppend(t,r),e.setScopeStatements(t,(0,o.default)(r).concat((0,o.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),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i=r(9),s=function(){function e(){(0,o.default)(this,e)}return(0,a.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]:[],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;if(n.length>=r)return n;var a=t.parentNode;if(!a)throw new ReferenceError("`parentNode` property of given node is `undefined`");return i.NodeGuards.isNodeWithLexicalScope(t)&&n.push(t),t!==a?e.getLexicalScopesRecursive(a,r,n,++o):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"}(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),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0}),r(62);var i=r(5),s=r(20),c=function(){function e(){(0,o.default)(this,e)}return(0,a.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).obfuscate(e);return r.unload(),n}}]),e}();c.version="0.18.3",t.JavaScriptObfuscator=c},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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,o.default)(this,e),this.identifierNamesGenerator=t(n),this.randomGenerator=r,this.options=n}return(0,a.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),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){(0,o.default)(this,e)}return(0,a.default)(e,null,[{key:"extractDomainFrom",value:function(e){return(e.indexOf("://")>-1||0===e.indexOf("//")?e.split("/")[2]:e.split("/")[0]).split(":")[0]}}]),e}();i.hexadecimalPrefix="0x",t.Utils=i},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),o=r(23),a=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:a.SourceMapMode.Separate,stringArray:!1,stringArrayEncoding:!1,stringArrayThreshold:0,target:o.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),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){(0,o.default)(this,e)}return(0,a.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 o=r(4),a=r(2),i=r(5),s=function e(t){(0,n.default)(this,e),this.options=t};s=o.__decorate([a.injectable(),o.__param(0,a.inject(i.ServiceIdentifiers.IOptions)),o.__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 o=r(4),a=r(2),i=function e(){(0,n.default)(this,e)};i=o.__decorate([a.injectable()],i),t.AbstractCalleeDataExtractor=i},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i,s=r(4),c=r(2),d=r(5),u=i=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,a.default)(e,[{key:"insertCustomNodeToControlFlowStorage",value:function(e,t,r,n){var o=this,a=t.getStorageId(),s=i.getStorageKeysByIdForCurrentStorage(this.replacerDataByControlFlowStorageId,a),c=s.get(r);if(this.randomGenerator.getMathRandom()1&&void 0!==arguments[1]&&arguments[1];this.storage=new Map((0,o.default)(this.storage).concat((0,o.default)(e.getStorage()))),t&&(this.storageId=e.getStorageId())}},{key:"set",value:function(e,t){this.storage.set(e,t)}}]),e}();c.__decorate([l.initializable(),c.__metadata("design:type",String)],f.prototype,"storageId",void 0),c.__decorate([l.initializable(),c.__metadata("design:type",Map)],f.prototype,"storage",void 0),c.__decorate([d.postConstruct(),c.__metadata("design:type",Function),c.__metadata("design:paramtypes",[]),c.__metadata("design:returntype",void 0)],f.prototype,"initialize",null),f=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])],f),t.MapStorage=f},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i,s=r(4),c=r(2),d=r(5),u=s.__importDefault(r(186)),l=r(187),f=r(10),p=i=function(){function e(t,r){(0,o.default)(this,e),this.sourceCode=t,this.options=r}return(0,a.default)(e,[{key:"initialize",value:function(){var e,t,r,n=this;this.seed=0!==this.options.seed?this.options.seed:(e=0,t=999999999,Math.floor(Math.random()*(t-e+1)+e)),this.randomGenerator=new l.Chance((r=u.default(n.sourceCode.getSourceCode()),n.seed+Number(r.replace(/\D/g,""))))}},{key:"getMathRandom",value:function(){return this.getRandomInteger(0,99999)/1e5}},{key:"getRandomGenerator",value:function(){return this.randomGenerator}},{key:"getRandomInteger",value:function(e,t){return this.getRandomGenerator().integer({min:e,max:t})}},{key:"getRandomString",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.randomGeneratorPool;return this.getRandomGenerator().string({length:e,pool:t})}},{key:"getSeed",value:function(){return this.seed}}]),e}();p.randomGeneratorPool="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",s.__decorate([f.initializable(),s.__metadata("design:type",Object)],p.prototype,"randomGenerator",void 0),s.__decorate([f.initializable(),s.__metadata("design:type",Number)],p.prototype,"seed",void 0),s.__decorate([c.postConstruct(),s.__metadata("design:type",Function),s.__metadata("design:paramtypes",[]),s.__metadata("design:returntype",void 0)],p.prototype,"initialize",null),p=i=s.__decorate([c.injectable(),s.__param(0,c.inject(d.ServiceIdentifiers.ISourceCode)),s.__param(1,c.inject(d.ServiceIdentifiers.IOptions)),s.__metadata("design:paramtypes",[Object,Object])],p),t.RandomGenerator=p},function(e,t){e.exports=require("chalk")},function(e,t){e.exports=require("reflect-metadata")},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i,s=r(4),c=r(2),d=r(5),u=s.__importDefault(r(61)),l=r(64),f=i=function(){function e(t){(0,o.default)(this,e),this.options=t}return(0,a.default)(e,[{key:"info",value:function(e,t){this.options.log&&i.log(i.colorInfo,l.LoggingPrefix.Base,e,t)}},{key:"success",value:function(e,t){this.options.log&&i.log(i.colorSuccess,l.LoggingPrefix.Base,e,t)}},{key:"warn",value:function(e,t){this.options.log&&i.log(i.colorWarn,l.LoggingPrefix.Base,e,t)}}],[{key:"log",value:function(e,t,r,n){var o=e("\n".concat(t," ").concat(r));console.log(o,n||"")}}]),e}();f.colorInfo=u.default.cyan,f.colorSuccess=u.default.green,f.colorWarn=u.default.yellow,f=i=s.__decorate([c.injectable(),s.__param(0,c.inject(d.ServiceIdentifiers.IOptions)),s.__metadata("design:paramtypes",[Object])],f),t.Logger=f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.Base="[javascript-obfuscator]",e.CLI="[javascript-obfuscator-cli]"}(t.LoggingPrefix||(t.LoggingPrefix={}))},function(e,t){e.exports=require("@babel/runtime/helpers/construct")},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(20),o=r(2),a=r(5),i=r(47),s=r(67),c=r(68),d=r(69),u=r(70);t.analyzersModule=new o.ContainerModule(function(e){e(a.ServiceIdentifiers.IStackTraceAnalyzer).to(u.StackTraceAnalyzer).inSingletonScope(),e(a.ServiceIdentifiers.ICalleeDataExtractor).to(s.FunctionDeclarationCalleeDataExtractor).whenTargetNamed(i.CalleeDataExtractor.FunctionDeclarationCalleeDataExtractor),e(a.ServiceIdentifiers.ICalleeDataExtractor).to(c.FunctionExpressionCalleeDataExtractor).whenTargetNamed(i.CalleeDataExtractor.FunctionExpressionCalleeDataExtractor),e(a.ServiceIdentifiers.ICalleeDataExtractor).to(d.ObjectExpressionCalleeDataExtractor).whenTargetNamed(i.CalleeDataExtractor.ObjectExpressionCalleeDataExtractor),e(a.ServiceIdentifiers.Factory__ICalleeDataExtractor).toFactory(n.InversifyContainerFacade.getCacheFactory(a.ServiceIdentifiers.ICalleeDataExtractor))})},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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=d.__importStar(r(16)),f=r(42),p=r(9),m=r(24),g=function(e){function t(){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).apply(this,arguments))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"extract",value:function(e,t){if(!p.NodeGuards.isIdentifierNode(t))return null;var r=this.getCalleeBlockStatement(m.NodeStatementUtils.getParentNodeWithStatements(e[0]),t.name);return r?{callee:r,name:t.name}:null}},{key:"getCalleeBlockStatement",value:function(e,t){var r=null;return l.traverse(e,{enter:function(e){if(p.NodeGuards.isFunctionDeclarationNode(e)&&e.id.name===t)return r=e.body,l.VisitorOption.Break}}),r}}]),t}(f.AbstractCalleeDataExtractor);g=d.__decorate([u.injectable()],g),t.FunctionDeclarationCalleeDataExtractor=g},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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=d.__importStar(r(16)),f=r(42),p=r(9),m=r(24),g=function(e){function t(){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).apply(this,arguments))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"extract",value:function(e,t){var r=null;return p.NodeGuards.isIdentifierNode(t)&&(r=this.getCalleeBlockStatement(m.NodeStatementUtils.getParentNodeWithStatements(e[0]),t.name)),p.NodeGuards.isFunctionExpressionNode(t)&&(r=t.body),r?{callee:r,name:t.name||null}:null}},{key:"getCalleeBlockStatement",value:function(e,t){var r=null;return l.traverse(e,{enter:function(e,n){if(p.NodeGuards.isFunctionExpressionNode(e)&&n&&p.NodeGuards.isVariableDeclaratorNode(n)&&p.NodeGuards.isIdentifierNode(n.id)&&n.id.name===t)return r=e.body,l.VisitorOption.Break}}),r}}]),t}(f.AbstractCalleeDataExtractor);g=d.__decorate([u.injectable()],g),t.FunctionExpressionCalleeDataExtractor=g},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=u.__importStar(r(16)),p=r(42),m=r(9),g=r(24),N=d=function(e){function t(){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).apply(this,arguments))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"extract",value:function(e,t){if(!m.NodeGuards.isMemberExpressionNode(t))return null;var r=this.createObjectMembersCallsChain([],t);if(!r.length)return null;var n=r[r.length-1],o=this.getCalleeBlockStatement(g.NodeStatementUtils.getParentNodeWithStatements(e[0]),r);return o?{callee:o,name:n}:null}},{key:"createObjectMembersCallsChain",value:function(e,t){if(m.NodeGuards.isIdentifierNode(t.property)&&!1===t.computed)e.unshift(t.property.name);else{if(!m.NodeGuards.isLiteralNode(t.property)||"string"!=typeof t.property.value&&"number"!=typeof t.property.value)return e;e.unshift(t.property.value)}return m.NodeGuards.isMemberExpressionNode(t.object)?this.createObjectMembersCallsChain(e,t.object):(m.NodeGuards.isIdentifierNode(t.object)&&e.unshift(t.object.name),e)}},{key:"getCalleeBlockStatement",value:function(e,t){var r=this,n=t.shift();if(!n)return null;var o=null;return f.traverse(e,{enter:function(e){if(m.NodeGuards.isVariableDeclaratorNode(e)&&m.NodeGuards.isIdentifierNode(e.id)&&e.init&&m.NodeGuards.isObjectExpressionNode(e.init)&&e.id.name===n)return o=r.findCalleeBlockStatement(e.init.properties,t),f.VisitorOption.Break}}),o}},{key:"findCalleeBlockStatement",value:function(e,t){var r=t.shift();if(!r)return null;var n=!0,o=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(n=(i=s.next()).done);n=!0){var c=i.value;if(d.isValidTargetPropertyNode(c,r)){if(m.NodeGuards.isObjectExpressionNode(c.value))return this.findCalleeBlockStatement(c.value.properties,t);if(m.NodeGuards.isFunctionExpressionNode(c.value))return c.value.body}}}catch(e){o=!0,a=e}finally{try{n||null==s.return||s.return()}finally{if(o)throw a}}return null}}],[{key:"isValidTargetPropertyNode",value:function(e,t){if(!e.key)return!1;var r=m.NodeGuards.isIdentifierNode(e.key)&&e.key.name===t,n=m.NodeGuards.isLiteralNode(e.key)&&Boolean(e.key.value)&&e.key.value===t;return r||n}}]),t}(p.AbstractCalleeDataExtractor);N=d=u.__decorate([l.injectable()],N),t.ObjectExpressionCalleeDataExtractor=N},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i,s=r(4),c=r(2),d=r(5),u=s.__importStar(r(16)),l=r(47),f=r(9),p=r(24),m=i=function(){function e(t){(0,o.default)(this,e),this.calleeDataExtractorFactory=t}return(0,a.default)(e,[{key:"analyze",value:function(e){return this.analyzeRecursive(e.body)}},{key:"analyzeRecursive",value:function(e){for(var t=this,r=i.getLimitIndex(e.length),n=[],o=e.length,a=function(o){if(o>r)return"break";var a=e[o];u.traverse(a,{enter:function(r){if(f.NodeGuards.isCallExpressionNode(r))return a.parentNode!==p.NodeStatementUtils.getParentNodeWithStatements(r)?u.VisitorOption.Skip:void t.analyzeCallExpressionNode(n,e,r)}})},s=0;sr&&(n=Math.round(r+t*i.limitThreshold))>t&&(n=t),n}}]),e}();m.calleeDataExtractorsList=[l.CalleeDataExtractor.FunctionDeclarationCalleeDataExtractor,l.CalleeDataExtractor.FunctionExpressionCalleeDataExtractor,l.CalleeDataExtractor.ObjectExpressionCalleeDataExtractor],m.limitThresholdActivationLength=25,m.limitThreshold=.002,m=i=s.__decorate([c.injectable(),s.__param(0,c.inject(d.ServiceIdentifiers.Factory__ICalleeDataExtractor)),s.__metadata("design:paramtypes",[Function])],m),t.StackTraceAnalyzer=m},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(20),o=r(2),a=r(5),i=r(48),s=r(29),c=r(72),d=r(73),u=r(74),l=r(75),f=r(76),p=r(77),m=r(78);t.controlFlowTransformersModule=new o.ContainerModule(function(e){e(a.ServiceIdentifiers.INodeTransformer).to(d.BlockStatementControlFlowTransformer).whenTargetNamed(s.NodeTransformer.BlockStatementControlFlowTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(l.DeadCodeInjectionTransformer).whenTargetNamed(s.NodeTransformer.DeadCodeInjectionTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(f.FunctionControlFlowTransformer).whenTargetNamed(s.NodeTransformer.FunctionControlFlowTransformer),e(a.ServiceIdentifiers.IControlFlowReplacer).to(c.BinaryExpressionControlFlowReplacer).whenTargetNamed(i.ControlFlowReplacer.BinaryExpressionControlFlowReplacer),e(a.ServiceIdentifiers.IControlFlowReplacer).to(u.CallExpressionControlFlowReplacer).whenTargetNamed(i.ControlFlowReplacer.CallExpressionControlFlowReplacer),e(a.ServiceIdentifiers.IControlFlowReplacer).to(p.LogicalExpressionControlFlowReplacer).whenTargetNamed(i.ControlFlowReplacer.LogicalExpressionControlFlowReplacer),e(a.ServiceIdentifiers.IControlFlowReplacer).to(m.StringLiteralControlFlowReplacer).whenTargetNamed(i.ControlFlowReplacer.StringLiteralControlFlowReplacer),e(a.ServiceIdentifiers.Factory__IControlFlowReplacer).toFactory(n.InversifyContainerFacade.getCacheFactory(a.ServiceIdentifiers.IControlFlowReplacer))})},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=r(5),p=r(21),m=r(49),g=d=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r,n))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"replace",value:function(e,t,r){var n=e.operator,o=this.controlFlowCustomNodeFactory(p.ControlFlowCustomNode.BinaryExpressionFunctionNode);o.initialize(n);var a=this.insertCustomNodeToControlFlowStorage(o,r,n,d.usingExistingIdentifierChance);return this.getControlFlowStorageCallNode(r.getStorageId(),a,e.left,e.right)}}]),t}(m.ExpressionWithOperatorControlFlowReplacer);g.usingExistingIdentifierChance=.5,g=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IControlFlowCustomNode)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],g),t.BinaryExpressionControlFlowReplacer=g},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=r(5),p=u.__importStar(r(16)),m=r(21),g=r(12),N=r(13),v=r(9),y=r(11),_=d=function(e){function t(e,r,n,a){var c;return(0,o.default)(this,t),(c=(0,i.default)(this,(0,s.default)(t).call(this,n,a))).controlFlowCustomNodeFactory=e,c.arrayUtils=r,c}return(0,c.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case g.TransformationStage.ControlFlowFlattening:return{leave:function(e,r){if(r&&v.NodeGuards.isBlockStatementNode(e))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){if(this.randomGenerator.getMathRandom()>this.options.controlFlowFlatteningThreshold||!d.canTransformBlockStatementNode(e))return e;var r=e.body,n=this.arrayUtils.createWithRange(r.length),o=this.arrayUtils.shuffle(n),a=n.map(function(e){return o.indexOf(e)}),i=this.controlFlowCustomNodeFactory(m.ControlFlowCustomNode.BlockStatementControlFlowFlatteningNode);i.initialize(r,o,a);var s=i.getNode()[0];return y.NodeUtils.parentizeNode(s,t),s}}],[{key:"isProhibitedStatementNode",value:function(e){var t=v.NodeGuards.isBreakStatementNode(e)||v.NodeGuards.isContinueStatementNode(e),r=v.NodeGuards.isVariableDeclarationNode(e)&&("const"===e.kind||"let"===e.kind),n=v.NodeGuards.isClassDeclarationNode(e);return v.NodeGuards.isFunctionDeclarationNode(e)||t||r||n}},{key:"canTransformBlockStatementNode",value:function(e){var t=!0;return p.traverse(e,{enter:function(e){if(v.NodeGuards.isWhileStatementNode(e))return p.VisitorOption.Skip;d.isProhibitedStatementNode(e)&&(t=!1)}}),e.body.length<=4&&(t=!1),t}}]),t}(N.AbstractNodeTransformer);_=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IControlFlowCustomNode)),u.__param(1,l.inject(f.ServiceIdentifiers.IArrayUtils)),u.__param(2,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(3,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object,Object])],_),t.BlockStatementControlFlowTransformer=_},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=r(5),p=r(21),m=r(43),g=r(9),N=d=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r,n))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"replace",value:function(e,t,r){var n=e.callee;if(!g.NodeGuards.isIdentifierNode(n))return e;var o=String(e.arguments.length),a=this.controlFlowCustomNodeFactory(p.ControlFlowCustomNode.CallExpressionFunctionNode),i=e.arguments;a.initialize(i);var s=this.insertCustomNodeToControlFlowStorage(a,r,o,d.usingExistingIdentifierChance);return this.getControlFlowStorageCallNode(r.getStorageId(),s,n,i)}},{key:"getControlFlowStorageCallNode",value:function(e,t,r,n){var o=this.controlFlowCustomNodeFactory(p.ControlFlowCustomNode.CallExpressionControlFlowStorageCallNode);o.initialize(e,t,r,n);var a=o.getNode()[0];if(!a||!g.NodeGuards.isExpressionStatementNode(a))throw new Error("`controlFlowStorageCallCustomNode.getNode()[0]` should returns array with `ExpressionStatement` node");return a.expression}}]),t}(m.AbstractControlFlowReplacer);N.usingExistingIdentifierChance=.5,N=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IControlFlowCustomNode)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],N),t.CallExpressionControlFlowReplacer=N},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=r(5),p=u.__importStar(r(16)),m=r(52),g=r(29),N=r(19),v=r(12),y=r(13),_=r(14),h=r(9),b=r(24),S=r(11),I=d=function(e){function t(e,r,n,a){var c;return(0,o.default)(this,t),(c=(0,i.default)(this,(0,s.default)(t).call(this,n,a))).deadCodeInjectionRootAstHostNodeSet=new Set,c.collectedBlockStatements=[],c.collectedBlockStatementsTotalLength=0,c.deadCodeInjectionCustomNodeFactory=e,c.transformersRunner=r,c}return(0,c.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case v.TransformationStage.DeadCodeInjection:return{enter:function(e,r){if(r&&h.NodeGuards.isProgramNode(e))return t.analyzeNode(e,r),e},leave:function(e,r){if(r&&h.NodeGuards.isBlockStatementNode(e))return t.transformNode(e,r)}};case v.TransformationStage.Finalizing:return this.deadCodeInjectionRootAstHostNodeSet.size?{enter:function(e,r){if(r&&t.isDeadCodeInjectionRootAstHostNode(e))return t.restoreNode(e,r)}}:null;default:return null}}},{key:"analyzeNode",value:function(e,t){var r=this;p.traverse(e,{enter:function(e){if(h.NodeGuards.isBlockStatementNode(e)){var t=S.NodeUtils.clone(e);if(d.isValidCollectedBlockStatementNode(t)){var n=r.makeClonedBlockStatementNodeUnique(t);r.collectedBlockStatements.push(n)}}}}),this.collectedBlockStatementsTotalLength=this.collectedBlockStatements.length}},{key:"transformNode",value:function(e,t){if(!this.collectedBlockStatements.length||this.collectedBlockStatementsTotalLengththis.options.deadCodeInjectionThreshold||!d.isValidWrappedBlockStatementNode(e))return e;var r=this.collectedBlockStatements.length-1,n=this.randomGenerator.getRandomInteger(0,r),o=this.collectedBlockStatements.splice(n,1)[0];return o===e?e:this.replaceBlockStatementNode(e,o,t)}},{key:"restoreNode",value:function(e,t){var r=e.body[0];if(!h.NodeGuards.isFunctionDeclarationNode(r))throw new Error("Wrong dead code injection root AST host node. Host node should contain `FunctionDeclaration` node");return r.body}},{key:"isDeadCodeInjectionRootAstHostNode",value:function(e){return h.NodeGuards.isBlockStatementNode(e)&&this.deadCodeInjectionRootAstHostNodeSet.has(e)}},{key:"makeClonedBlockStatementNodeUnique",value:function(e){var t=_.NodeFactory.functionExpressionNode([],e);return S.NodeUtils.parentizeNode(t,t),S.NodeUtils.parentizeNode(e,t),this.transformersRunner.transform(t,d.transformersToRenameBlockScopeIdentifiers,v.TransformationStage.Obfuscating).body}},{key:"replaceBlockStatementNode",value:function(e,t,r){var n=_.NodeFactory.blockStatementNode([_.NodeFactory.functionDeclarationNode(d.deadCodeInjectionRootAstHostNodeName,[],t)]);this.deadCodeInjectionRootAstHostNodeSet.add(n);var o=this.deadCodeInjectionCustomNodeFactory(m.DeadCodeInjectionCustomNode.BlockStatementDeadCodeInjectionNode);o.initialize(e,n);var a=o.getNode()[0];return S.NodeUtils.parentizeNode(a,r),a}}],[{key:"isProhibitedNodeInsideCollectedBlockStatement",value:function(e){return h.NodeGuards.isBreakStatementNode(e)||h.NodeGuards.isContinueStatementNode(e)||h.NodeGuards.isAwaitExpressionNode(e)||h.NodeGuards.isSuperNode(e)}},{key:"isScopeHoistingFunctionDeclaration",value:function(e){if(!h.NodeGuards.isFunctionDeclarationNode(e))return!1;var t=b.NodeStatementUtils.getScopeOfNode(e),r=h.NodeGuards.isSwitchCaseNode(t)?t.consequent:t.body,n=r.indexOf(e);if(0===n)return!1;var o=r.slice(0,n),a=_.NodeFactory.blockStatementNode(o),i=e.id.name,s=!1;return p.traverse(a,{enter:function(e){if(h.NodeGuards.isIdentifierNode(e)&&e.name===i)return s=!0,p.VisitorOption.Break}}),s}},{key:"isValidCollectedBlockStatementNode",value:function(e){if(!e.body.length)return!1;var t=0,r=!0;return p.traverse(e,{enter:function(e){if(h.NodeGuards.isBlockStatementNode(e)&&t++,t>d.maxNestedBlockStatementsCount||d.isProhibitedNodeInsideCollectedBlockStatement(e)||d.isScopeHoistingFunctionDeclaration(e))return r=!1,p.VisitorOption.Break}}),r}},{key:"isValidWrappedBlockStatementNode",value:function(e){if(!e.body.length)return!1;var t=!0;return p.traverse(e,{enter:function(e){if(d.isScopeHoistingFunctionDeclaration(e))return t=!1,p.VisitorOption.Break}}),!!t&&b.NodeStatementUtils.getParentNodeWithStatements(e).type!==N.NodeType.Program}}]),t}(y.AbstractNodeTransformer);I.deadCodeInjectionRootAstHostNodeName="deadCodeInjectionRootAstHostNode",I.maxNestedBlockStatementsCount=4,I.minCollectedBlockStatementsCount=5,I.transformersToRenameBlockScopeIdentifiers=[g.NodeTransformer.CatchClauseTransformer,g.NodeTransformer.ClassDeclarationTransformer,g.NodeTransformer.FunctionDeclarationTransformer,g.NodeTransformer.FunctionTransformer,g.NodeTransformer.LabeledStatementTransformer,g.NodeTransformer.VariableDeclarationTransformer],I=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IDeadCodeInjectionCustomNode)),u.__param(1,l.inject(f.ServiceIdentifiers.ITransformersRunner)),u.__param(2,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(3,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object,Object])],I),t.DeadCodeInjectionTransformer=I},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=r(5),p=u.__importStar(r(16)),m=r(21),g=r(48),N=r(19),v=r(12),y=r(13),_=r(25),h=r(9),b=r(17),S=r(24),I=d=function(e){function t(e,r,n,a,c){var d;return(0,o.default)(this,t),(d=(0,i.default)(this,(0,s.default)(t).call(this,a,c))).controlFlowData=new Map,d.visitedFunctionNodes=new Set,d.hostNodesWithControlFlowNode=new Set,d.controlFlowStorageFactory=e,d.controlFlowReplacerFactory=r,d.controlFlowCustomNodeFactory=n,d}return(0,c.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case v.TransformationStage.ControlFlowFlattening:return{leave:function(e,r){if(r&&(h.NodeGuards.isFunctionDeclarationNode(e)||h.NodeGuards.isFunctionExpressionNode(e)||h.NodeGuards.isArrowFunctionExpressionNode(e)))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){if(this.visitedFunctionNodes.add(e),!h.NodeGuards.isBlockStatementNode(e.body))return e;var r=this.getHostNode(e.body),n=this.getControlFlowStorage(r);if(this.controlFlowData.set(r,n),this.transformFunctionBody(e.body,n),!n.getLength())return e;var o=this.controlFlowCustomNodeFactory(m.ControlFlowCustomNode.ControlFlowStorageNode);return o.initialize(n),_.NodeAppender.prepend(r,o.getNode()),this.hostNodesWithControlFlowNode.add(r),e}},{key:"getControlFlowStorage",value:function(e){var t=this.controlFlowStorageFactory();if(this.controlFlowData.has(e)){this.hostNodesWithControlFlowNode.has(e)&&(h.NodeGuards.isSwitchCaseNode(e)?e.consequent.shift():e.body.shift());var r=this.controlFlowData.get(e);t.mergeWith(r,!0)}return t}},{key:"getHostNode",value:function(e){var t=S.NodeStatementUtils.getParentNodesWithStatements(e);return 1===t.length?e:(t.pop(),t.length>d.hostNodeSearchMinDepth&&t.splice(0,d.hostNodeSearchMinDepth),t.length>d.hostNodeSearchMaxDepth&&(t.length=d.hostNodeSearchMaxDepth),this.randomGenerator.getRandomGenerator().pickone(t))}},{key:"isVisitedFunctionNode",value:function(e){return(h.NodeGuards.isFunctionDeclarationNode(e)||h.NodeGuards.isFunctionExpressionNode(e)||h.NodeGuards.isArrowFunctionExpressionNode(e))&&this.visitedFunctionNodes.has(e)}},{key:"transformFunctionBody",value:function(e,t){var r=this;p.replace(e,{enter:function(e,n){if(b.NodeMetadata.isIgnoredNode(e))return p.VisitorOption.Skip;if(r.isVisitedFunctionNode(e)||!n)return p.VisitorOption.Skip;if(!d.controlFlowReplacersMap.has(e.type))return e;if(r.randomGenerator.getMathRandom()>r.options.controlFlowFlatteningThreshold)return e;var o=d.controlFlowReplacersMap.get(e.type);return void 0===o?e:Object.assign({},r.controlFlowReplacerFactory(o).replace(e,n,t),{parentNode:n})}})}}]),t}(y.AbstractNodeTransformer);I.controlFlowReplacersMap=new Map([[N.NodeType.BinaryExpression,g.ControlFlowReplacer.BinaryExpressionControlFlowReplacer],[N.NodeType.CallExpression,g.ControlFlowReplacer.CallExpressionControlFlowReplacer],[N.NodeType.LogicalExpression,g.ControlFlowReplacer.LogicalExpressionControlFlowReplacer],[N.NodeType.Literal,g.ControlFlowReplacer.StringLiteralControlFlowReplacer]]),I.hostNodeSearchMinDepth=0,I.hostNodeSearchMaxDepth=2,I=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__TControlFlowStorage)),u.__param(1,l.inject(f.ServiceIdentifiers.Factory__IControlFlowReplacer)),u.__param(2,l.inject(f.ServiceIdentifiers.Factory__IControlFlowCustomNode)),u.__param(3,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(4,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Function,Function,Object,Object])],I),t.FunctionControlFlowTransformer=I},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=r(5),p=r(21),m=r(49),g=r(9),N=r(11),v=d=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r,n))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"replace",value:function(e,t,r){if(this.checkForProhibitedExpressions(e.left,e.right))return e;var n=e.operator,o=this.controlFlowCustomNodeFactory(p.ControlFlowCustomNode.LogicalExpressionFunctionNode);o.initialize(n);var a=this.insertCustomNodeToControlFlowStorage(o,r,n,d.usingExistingIdentifierChance);return this.getControlFlowStorageCallNode(r.getStorageId(),a,e.left,e.right)}},{key:"checkForProhibitedExpressions",value:function(e,t){return[e,t].some(function(e){var t;return t=g.NodeGuards.isUnaryExpressionNode(e)?N.NodeUtils.getUnaryExpressionArgumentNode(e):e,!(g.NodeGuards.isLiteralNode(t)||g.NodeGuards.isIdentifierNode(t)||g.NodeGuards.isObjectExpressionNode(t)||g.NodeGuards.isExpressionStatementNode(t))})}}]),t}(m.ExpressionWithOperatorControlFlowReplacer);v.usingExistingIdentifierChance=.5,v=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IControlFlowCustomNode)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],v),t.LogicalExpressionControlFlowReplacer=v},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=r(5),p=r(21),m=r(43),g=r(9),N=d=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r,n))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"replace",value:function(e,t,r){if(g.NodeGuards.isPropertyNode(t)&&t.key===e)return e;if("string"!=typeof e.value||e.value.length<3)return e;var n=String(e.value),o=this.controlFlowCustomNodeFactory(p.ControlFlowCustomNode.StringLiteralNode);o.initialize(e.value);var a=this.insertCustomNodeToControlFlowStorage(o,r,n,d.usingExistingIdentifierChance);return this.getControlFlowStorageCallNode(r.getStorageId(),a)}},{key:"getControlFlowStorageCallNode",value:function(e,t){var r=this.controlFlowCustomNodeFactory(p.ControlFlowCustomNode.StringLiteralControlFlowStorageCallNode);r.initialize(e,t);var n=r.getNode()[0];if(!n||!g.NodeGuards.isExpressionStatementNode(n))throw new Error("`controlFlowStorageCallCustomNode.getNode()[0]` should returns array with `ExpressionStatement` node");return n.expression}}]),t}(m.AbstractControlFlowReplacer);N.usingExistingIdentifierChance=1,N=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IControlFlowCustomNode)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],N),t.StringLiteralControlFlowReplacer=N},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(2),o=r(20),a=r(5),i=r(29),s=r(53),c=r(80),d=r(81),u=r(82),l=r(83),f=r(84),p=r(85),m=r(86);t.convertingTransformersModule=new n.ContainerModule(function(e){e(a.ServiceIdentifiers.INodeTransformer).to(d.MemberExpressionTransformer).whenTargetNamed(i.NodeTransformer.MemberExpressionTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(u.MethodDefinitionTransformer).whenTargetNamed(i.NodeTransformer.MethodDefinitionTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(l.ObjectExpressionKeysTransformer).whenTargetNamed(i.NodeTransformer.ObjectExpressionKeysTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(f.ObjectExpressionTransformer).whenTargetNamed(i.NodeTransformer.ObjectExpressionTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(p.TemplateLiteralTransformer).whenTargetNamed(i.NodeTransformer.TemplateLiteralTransformer),e(a.ServiceIdentifiers.IPropertiesExtractor).to(c.AssignmentExpressionPropertiesExtractor).whenTargetNamed(s.PropertiesExtractor.AssignmentExpressionPropertiesExtractor),e(a.ServiceIdentifiers.IPropertiesExtractor).to(m.VariableDeclaratorPropertiesExtractor).whenTargetNamed(s.PropertiesExtractor.VariableDeclaratorPropertiesExtractor),e(a.ServiceIdentifiers.Factory__IPropertiesExtractor).toFactory(o.InversifyContainerFacade.getCacheFactory(a.ServiceIdentifiers.IPropertiesExtractor))})},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(54),p=function(e){function t(e,r){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"extract",value:function(e,t){var r=t.parentNode,n=t.left;return f.AbstractPropertiesExtractor.isProhibitedPattern(n)?e:r&&f.AbstractPropertiesExtractor.isProhibitedHostParent(r)?e:this.transformObjectExpressionNode(e,n)}}]),t}(f.AbstractPropertiesExtractor);p=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Object,Object])],p),t.AssignmentExpressionPropertiesExtractor=p},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(12),p=r(13),m=r(14),g=r(9),N=function(e){function t(e,r){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case f.TransformationStage.Converting:return{enter:function(e,r){if(r&&g.NodeGuards.isMemberExpressionNode(e))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){if(g.NodeGuards.isIdentifierNode(e.property)){if(e.computed)return e;e.computed=!0,e.property=m.NodeFactory.literalNode(e.property.name)}return e}}]),t}(p.AbstractNodeTransformer);N=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Object,Object])],N),t.MemberExpressionTransformer=N},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=r(5),p=r(12),m=r(13),g=r(14),N=r(9),v=d=function(e){function t(e,r){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case p.TransformationStage.Converting:return{enter:function(e,r){if(r&&N.NodeGuards.isMethodDefinitionNode(e))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){return N.NodeGuards.isIdentifierNode(e.key)&&!d.ignoredNames.includes(e.key.name)&&!1===e.computed&&(e.computed=!0,e.key=g.NodeFactory.literalNode(e.key.name)),e}}]),t}(m.AbstractNodeTransformer);v.ignoredNames=["constructor"],v=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(1,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Object,Object])],v),t.MethodDefinitionTransformer=v},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=r(5),p=r(19),m=r(53),g=r(12),N=r(13),v=r(9),y=d=function(e){function t(e,r,n){var a;return(0,o.default)(this,t),(a=(0,i.default)(this,(0,s.default)(t).call(this,r,n))).propertiesExtractorFactory=e,a}return(0,c.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;return e!==g.TransformationStage.Converting?null:{enter:function(e,r){if(t.options.transformObjectKeys&&r&&v.NodeGuards.isObjectExpressionNode(e))return t.transformNode(e,r)}}}},{key:"transformNode",value:function(e,t){if(!e.properties.length)return e;var r=d.propertiesExtractorsMap.get(t.type);return r?this.propertiesExtractorFactory(r).extract(e,t):e}}]),t}(N.AbstractNodeTransformer);y.propertiesExtractorsMap=new Map([[p.NodeType.AssignmentExpression,m.PropertiesExtractor.AssignmentExpressionPropertiesExtractor],[p.NodeType.VariableDeclarator,m.PropertiesExtractor.VariableDeclaratorPropertiesExtractor]]),y=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IPropertiesExtractor)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],y),t.ObjectExpressionKeysTransformer=y},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(12),p=r(13),m=r(14),g=r(9),N=function(e){function t(e,r,n){var a;return(0,o.default)(this,t),(a=(0,i.default)(this,(0,s.default)(t).call(this,r,n))).escapeSequenceEncoder=e,a}return(0,c.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case f.TransformationStage.Converting:return{enter:function(e,r){if(r&&g.NodeGuards.isObjectExpressionNode(e))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){var r=this;return e.properties.forEach(function(e){e.key&&(e.computed?r.transformComputedProperty(e):r.transformBaseProperty(e))}),e}},{key:"transformComputedProperty",value:function(e){g.NodeGuards.isLiteralNode(e.key)&&"string"==typeof e.key.value&&(e.key=m.NodeFactory.literalNode(this.getPropertyKeyValue(e.key.value)))}},{key:"transformBaseProperty",value:function(e){e.shorthand&&(e.shorthand=!1),g.NodeGuards.isIdentifierNode(e.key)&&(e.key=m.NodeFactory.literalNode(this.getPropertyKeyValue(e.key.name)))}},{key:"getPropertyKeyValue",value:function(e){return this.options.unicodeEscapeSequence?this.escapeSequenceEncoder.encode(e,!0):e}}]),t}(p.AbstractNodeTransformer);N=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.IEscapeSequenceEncoder)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Object,Object,Object])],N),t.ObjectExpressionTransformer=N},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=r(5),p=r(12),m=r(13),g=r(14),N=r(9),v=r(11),y=d=function(e){function t(e,r){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case p.TransformationStage.Converting:return{leave:function(e,r){if(r&&d.isValidTemplateLiteralNode(e,r))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){var r,n=e.expressions,o=[];if(e.quasis.forEach(function(e){o.push(g.NodeFactory.literalNode(e.value.cooked));var t=n.shift();t&&o.push(t)}),o=o.filter(function(e){return!(N.NodeGuards.isLiteralNode(e)&&""===e.value)}),d.isLiteralNodeWithStringValue(o[0])||d.isLiteralNodeWithStringValue(o[1])||o.unshift(g.NodeFactory.literalNode("")),o.length>1){var a=g.NodeFactory.binaryExpressionNode("+",o.shift(),o.shift());o.forEach(function(e){a=g.NodeFactory.binaryExpressionNode("+",a,e)}),r=a}else r=o[0];return v.NodeUtils.parentizeAst(r),r}}],[{key:"isLiteralNodeWithStringValue",value:function(e){return e&&N.NodeGuards.isLiteralNode(e)&&"string"==typeof e.value}},{key:"isValidTemplateLiteralNode",value:function(e,t){return N.NodeGuards.isTemplateLiteralNode(e)&&!N.NodeGuards.isTaggedTemplateExpressionNode(t)}}]),t}(m.AbstractNodeTransformer);y=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(1,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Object,Object])],y),t.TemplateLiteralTransformer=y},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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=d.__importStar(r(16)),p=r(54),m=r(9),g=function(e){function t(e,r){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"extract",value:function(e,t){return!m.NodeGuards.isIdentifierNode(t.id)||this.isProhibitedObjectExpressionNode(e,t.id)?e:this.transformObjectExpressionNode(e,t.id)}},{key:"getHostVariableDeclaratorNode",value:function(e){var t=e.parentNode;if(!t||!m.NodeGuards.isVariableDeclaratorNode(t))throw new Error("Cannot get `VariableDeclarator` node for `ObjectExpression` node");return t}},{key:"getHostVariableDeclarationNode",value:function(e){var t=e.parentNode;if(!t||!m.NodeGuards.isVariableDeclarationNode(t))throw new Error("Cannot get `VariableDeclaration` node for `VariableDeclarator` node");return t}},{key:"isProhibitedObjectExpressionNode",value:function(e,t){var r=this.getHostVariableDeclaratorNode(e),n=this.getHostVariableDeclarationNode(r).declarations,o=n.indexOf(r);if(o===n.length-1)return!1;var a=!1;return n.slice(o).forEach(function(e){f.traverse(e,{enter:function(e){return m.NodeGuards.isMemberExpressionNode(e)&&m.NodeGuards.isIdentifierNode(e.object)&&e.object.name===t.name?(a=!0,f.VisitorOption.Break):e}})}),a}}]),t}(p.AbstractPropertiesExtractor);g=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Object,Object])],g),t.VariableDeclaratorPropertiesExtractor=g},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(20),o=r(2),a=r(5),i=r(21),s=r(31),c=r(55),d=r(52),u=r(88),l=r(89),f=r(90),p=r(91),m=r(92),g=r(93),N=r(96),v=r(97),y=r(98),_=r(99),h=r(100),b=r(101),S=r(103),I=r(105),C=r(107),F=r(111),O=r(113),j=r(114),T=r(115),k=r(117),x=r(119),E=r(126),w=r(128),G=r(131),R=r(132);t.customNodesModule=new o.ContainerModule(function(e){e(a.ServiceIdentifiers.ICustomNode).to(b.ConsoleOutputDisableExpressionNode).whenTargetNamed(s.CustomNode.ConsoleOutputDisableExpressionNode),e(a.ServiceIdentifiers.ICustomNode).to(S.DebugProtectionFunctionCallNode).whenTargetNamed(s.CustomNode.DebugProtectionFunctionCallNode),e(a.ServiceIdentifiers.ICustomNode).to(I.DebugProtectionFunctionIntervalNode).whenTargetNamed(s.CustomNode.DebugProtectionFunctionIntervalNode),e(a.ServiceIdentifiers.ICustomNode).to(C.DebugProtectionFunctionNode).whenTargetNamed(s.CustomNode.DebugProtectionFunctionNode),e(a.ServiceIdentifiers.ICustomNode).to(F.DomainLockNode).whenTargetNamed(s.CustomNode.DomainLockNode),e(a.ServiceIdentifiers.ICustomNode).to(T.NodeCallsControllerFunctionNode).whenTargetNamed(s.CustomNode.NodeCallsControllerFunctionNode),e(a.ServiceIdentifiers.ICustomNode).to(k.SelfDefendingUnicodeNode).whenTargetNamed(s.CustomNode.SelfDefendingUnicodeNode),e(a.ServiceIdentifiers.ICustomNode).to(x.StringArrayCallsWrapper).whenTargetNamed(s.CustomNode.StringArrayCallsWrapper),e(a.ServiceIdentifiers.ICustomNode).to(E.StringArrayNode).whenTargetNamed(s.CustomNode.StringArrayNode),e(a.ServiceIdentifiers.ICustomNode).to(w.StringArrayRotateFunctionNode).whenTargetNamed(s.CustomNode.StringArrayRotateFunctionNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(g.BinaryExpressionFunctionNode).whenTargetNamed(i.ControlFlowCustomNode.BinaryExpressionFunctionNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(N.BlockStatementControlFlowFlatteningNode).whenTargetNamed(i.ControlFlowCustomNode.BlockStatementControlFlowFlatteningNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(y.CallExpressionControlFlowStorageCallNode).whenTargetNamed(i.ControlFlowCustomNode.CallExpressionControlFlowStorageCallNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(_.CallExpressionFunctionNode).whenTargetNamed(i.ControlFlowCustomNode.CallExpressionFunctionNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(h.ControlFlowStorageNode).whenTargetNamed(i.ControlFlowCustomNode.ControlFlowStorageNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(O.ExpressionWithOperatorControlFlowStorageCallNode).whenTargetNamed(i.ControlFlowCustomNode.ExpressionWithOperatorControlFlowStorageCallNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(j.LogicalExpressionFunctionNode).whenTargetNamed(i.ControlFlowCustomNode.LogicalExpressionFunctionNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(R.StringLiteralNode).whenTargetNamed(i.ControlFlowCustomNode.StringLiteralNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(G.StringLiteralControlFlowStorageCallNode).whenTargetNamed(i.ControlFlowCustomNode.StringLiteralControlFlowStorageCallNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(v.BlockStatementDeadCodeInjectionNode).whenTargetNamed(d.DeadCodeInjectionCustomNode.BlockStatementDeadCodeInjectionNode),e(a.ServiceIdentifiers.ICustomNodeGroup).to(u.ConsoleOutputCustomNodeGroup).whenTargetNamed(c.CustomNodeGroup.ConsoleOutputCustomNodeGroup),e(a.ServiceIdentifiers.ICustomNodeGroup).to(l.DebugProtectionCustomNodeGroup).whenTargetNamed(c.CustomNodeGroup.DebugProtectionCustomNodeGroup),e(a.ServiceIdentifiers.ICustomNodeGroup).to(f.DomainLockCustomNodeGroup).whenTargetNamed(c.CustomNodeGroup.DomainLockCustomNodeGroup),e(a.ServiceIdentifiers.ICustomNodeGroup).to(p.SelfDefendingCustomNodeGroup).whenTargetNamed(c.CustomNodeGroup.SelfDefendingCustomNodeGroup),e(a.ServiceIdentifiers.ICustomNodeGroup).to(m.StringArrayCustomNodeGroup).whenTargetNamed(c.CustomNodeGroup.StringArrayCustomNodeGroup),e(a.ServiceIdentifiers.Factory__ICustomNode).toFactory(n.InversifyContainerFacade.getFactory(a.ServiceIdentifiers.ICustomNode)),e(a.ServiceIdentifiers.Factory__IControlFlowCustomNode).toFactory(n.InversifyContainerFacade.getConstructorFactory(a.ServiceIdentifiers.Newable__ICustomNode,a.ServiceIdentifiers.Factory__IIdentifierNamesGenerator,a.ServiceIdentifiers.IRandomGenerator,a.ServiceIdentifiers.IOptions)),e(a.ServiceIdentifiers.Factory__IDeadCodeInjectionCustomNode).toFactory(n.InversifyContainerFacade.getConstructorFactory(a.ServiceIdentifiers.Newable__ICustomNode,a.ServiceIdentifiers.Factory__IIdentifierNamesGenerator,a.ServiceIdentifiers.IRandomGenerator,a.ServiceIdentifiers.IOptions)),e(a.ServiceIdentifiers.Factory__ICustomNodeGroup).toFactory(n.InversifyContainerFacade.getFactory(a.ServiceIdentifiers.ICustomNodeGroup))})},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(10),p=r(31),m=r(26),g=r(33),N=r(25),v=function(e){function t(e,r,n,a){var c;return(0,o.default)(this,t),(c=(0,i.default)(this,(0,s.default)(t).call(this,r,n,a))).appendEvent=m.ObfuscationEvent.BeforeObfuscation,c.customNodeFactory=e,c}return(0,c.default)(t,e),(0,a.default)(t,[{key:"appendCustomNodes",value:function(e,t){var r=this.getRandomStackTraceIndex(t.length);this.appendCustomNodeIfExist(p.CustomNode.ConsoleOutputDisableExpressionNode,function(n){N.NodeAppender.appendToOptimalBlockScope(t,e,n.getNode(),r)}),this.appendCustomNodeIfExist(p.CustomNode.NodeCallsControllerFunctionNode,function(n){var o=t.length?N.NodeAppender.getOptimalBlockScope(t,r,1):e;N.NodeAppender.prepend(o,n.getNode())})}},{key:"initialize",value:function(){if(this.customNodes=new Map,this.options.disableConsoleOutput){var e=this.identifierNamesGenerator.generate(),t=this.customNodeFactory(p.CustomNode.ConsoleOutputDisableExpressionNode),r=this.customNodeFactory(p.CustomNode.NodeCallsControllerFunctionNode);t.initialize(e),r.initialize(this.appendEvent,e),this.customNodes.set(p.CustomNode.ConsoleOutputDisableExpressionNode,t),this.customNodes.set(p.CustomNode.NodeCallsControllerFunctionNode,r)}}}]),t}(g.AbstractCustomNodeGroup);d.__decorate([f.initializable(),d.__metadata("design:type",Map)],v.prototype,"customNodes",void 0),v=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__ICustomNode)),d.__param(1,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(3,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Function,Object,Object])],v),t.ConsoleOutputCustomNodeGroup=v},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(10),p=r(31),m=r(26),g=r(33),N=r(25),v=r(9),y=function(e){function t(e,r,n,a){var c;return(0,o.default)(this,t),(c=(0,i.default)(this,(0,s.default)(t).call(this,r,n,a))).appendEvent=m.ObfuscationEvent.BeforeObfuscation,c.customNodeFactory=e,c}return(0,c.default)(t,e),(0,a.default)(t,[{key:"appendCustomNodes",value:function(e,t){var r=this,n=this.getRandomStackTraceIndex(t.length);this.appendCustomNodeIfExist(p.CustomNode.DebugProtectionFunctionCallNode,function(r){N.NodeAppender.appendToOptimalBlockScope(t,e,r.getNode(),n)}),this.appendCustomNodeIfExist(p.CustomNode.DebugProtectionFunctionNode,function(t){N.NodeAppender.append(e,t.getNode())}),this.appendCustomNodeIfExist(p.CustomNode.DebugProtectionFunctionIntervalNode,function(t){var n=v.NodeGuards.isSwitchCaseNode(e)?e.consequent.length:e.body.length,o=r.randomGenerator.getRandomInteger(0,n);N.NodeAppender.insertAtIndex(e,t.getNode(),o)}),this.appendCustomNodeIfExist(p.CustomNode.NodeCallsControllerFunctionNode,function(r){var o=t.length?N.NodeAppender.getOptimalBlockScope(t,n,1):e;N.NodeAppender.prepend(o,r.getNode())})}},{key:"initialize",value:function(){if(this.customNodes=new Map,this.options.debugProtection){var e=this.identifierNamesGenerator.generate(),t=this.identifierNamesGenerator.generate(),r=this.customNodeFactory(p.CustomNode.DebugProtectionFunctionNode),n=this.customNodeFactory(p.CustomNode.DebugProtectionFunctionCallNode),o=this.customNodeFactory(p.CustomNode.DebugProtectionFunctionIntervalNode),a=this.customNodeFactory(p.CustomNode.NodeCallsControllerFunctionNode);r.initialize(e),n.initialize(e,t),o.initialize(e),a.initialize(this.appendEvent,t),this.customNodes.set(p.CustomNode.DebugProtectionFunctionNode,r),this.customNodes.set(p.CustomNode.DebugProtectionFunctionCallNode,n),this.options.debugProtectionInterval&&this.customNodes.set(p.CustomNode.DebugProtectionFunctionIntervalNode,o),this.customNodes.set(p.CustomNode.NodeCallsControllerFunctionNode,a)}}}]),t}(g.AbstractCustomNodeGroup);d.__decorate([f.initializable(),d.__metadata("design:type",Map)],y.prototype,"customNodes",void 0),y=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__ICustomNode)),d.__param(1,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(3,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Function,Object,Object])],y),t.DebugProtectionCustomNodeGroup=y},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(10),p=r(31),m=r(26),g=r(33),N=r(25),v=function(e){function t(e,r,n,a){var c;return(0,o.default)(this,t),(c=(0,i.default)(this,(0,s.default)(t).call(this,r,n,a))).appendEvent=m.ObfuscationEvent.BeforeObfuscation,c.customNodeFactory=e,c}return(0,c.default)(t,e),(0,a.default)(t,[{key:"appendCustomNodes",value:function(e,t){var r=this.getRandomStackTraceIndex(t.length);this.appendCustomNodeIfExist(p.CustomNode.DomainLockNode,function(n){N.NodeAppender.appendToOptimalBlockScope(t,e,n.getNode(),r)}),this.appendCustomNodeIfExist(p.CustomNode.NodeCallsControllerFunctionNode,function(n){var o=t.length?N.NodeAppender.getOptimalBlockScope(t,r,1):e;N.NodeAppender.prepend(o,n.getNode())})}},{key:"initialize",value:function(){if(this.customNodes=new Map,this.options.domainLock.length){var e=this.identifierNamesGenerator.generate(),t=this.customNodeFactory(p.CustomNode.DomainLockNode),r=this.customNodeFactory(p.CustomNode.NodeCallsControllerFunctionNode);t.initialize(e),r.initialize(this.appendEvent,e),this.customNodes.set(p.CustomNode.DomainLockNode,t),this.customNodes.set(p.CustomNode.NodeCallsControllerFunctionNode,r)}}}]),t}(g.AbstractCustomNodeGroup);d.__decorate([f.initializable(),d.__metadata("design:type",Map)],v.prototype,"customNodes",void 0),v=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__ICustomNode)),d.__param(1,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(3,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Function,Object,Object])],v),t.DomainLockCustomNodeGroup=v},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(10),p=r(31),m=r(26),g=r(33),N=r(25),v=function(e){function t(e,r,n,a){var c;return(0,o.default)(this,t),(c=(0,i.default)(this,(0,s.default)(t).call(this,r,n,a))).appendEvent=m.ObfuscationEvent.AfterObfuscation,c.customNodeFactory=e,c}return(0,c.default)(t,e),(0,a.default)(t,[{key:"appendCustomNodes",value:function(e,t){var r=this.getRandomStackTraceIndex(t.length);this.appendCustomNodeIfExist(p.CustomNode.SelfDefendingUnicodeNode,function(n){N.NodeAppender.appendToOptimalBlockScope(t,e,n.getNode(),r)}),this.appendCustomNodeIfExist(p.CustomNode.NodeCallsControllerFunctionNode,function(n){var o=t.length?N.NodeAppender.getOptimalBlockScope(t,r,1):e;N.NodeAppender.prepend(o,n.getNode())})}},{key:"initialize",value:function(){if(this.customNodes=new Map,this.options.selfDefending){var e=this.identifierNamesGenerator.generate(),t=this.customNodeFactory(p.CustomNode.SelfDefendingUnicodeNode),r=this.customNodeFactory(p.CustomNode.NodeCallsControllerFunctionNode);t.initialize(e),r.initialize(this.appendEvent,e),this.customNodes.set(p.CustomNode.SelfDefendingUnicodeNode,t),this.customNodes.set(p.CustomNode.NodeCallsControllerFunctionNode,r)}}}]),t}(g.AbstractCustomNodeGroup);d.__decorate([f.initializable(),d.__metadata("design:type",Map)],v.prototype,"customNodes",void 0),v=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__ICustomNode)),d.__param(1,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(3,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Function,Object,Object])],v),t.SelfDefendingCustomNodeGroup=v},function(e,t,r){"use strict";var n=r(0),o=n(r(30)),a=n(r(1)),i=n(r(3)),s=n(r(6)),c=n(r(7)),d=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var u=r(4),l=r(2),f=r(5),p=r(10),m=r(31),g=r(26),N=r(33),v=r(25),y=function(e){function t(e,r,n,o,i){var d;return(0,a.default)(this,t),(d=(0,s.default)(this,(0,c.default)(t).call(this,n,o,i))).appendEvent=g.ObfuscationEvent.AfterObfuscation,d.customNodeFactory=e,d.stringArrayStorage=r,d}return(0,d.default)(t,e),(0,i.default)(t,[{key:"appendCustomNodes",value:function(e,t){this.stringArrayStorage.getLength()&&(this.appendCustomNodeIfExist(m.CustomNode.StringArrayNode,function(t){v.NodeAppender.prepend(e,t.getNode())}),this.appendCustomNodeIfExist(m.CustomNode.StringArrayCallsWrapper,function(t){v.NodeAppender.insertAtIndex(e,t.getNode(),1)}),this.appendCustomNodeIfExist(m.CustomNode.StringArrayRotateFunctionNode,function(t){v.NodeAppender.insertAtIndex(e,t.getNode(),1)}))}},{key:"initialize",value:function(){if(this.customNodes=new Map,this.options.stringArray){var e,t=this.customNodeFactory(m.CustomNode.StringArrayNode),r=this.customNodeFactory(m.CustomNode.StringArrayCallsWrapper),n=this.customNodeFactory(m.CustomNode.StringArrayRotateFunctionNode),a=this.stringArrayStorage.getStorageId().split("|"),i=(0,o.default)(a,2),s=i[0],c=i[1];e=this.options.rotateStringArray?this.randomGenerator.getRandomInteger(100,500):0,t.initialize(this.stringArrayStorage,s,e),r.initialize(s,c),n.initialize(s,e),this.customNodes.set(m.CustomNode.StringArrayNode,t),this.customNodes.set(m.CustomNode.StringArrayCallsWrapper,r),this.options.rotateStringArray&&this.customNodes.set(m.CustomNode.StringArrayRotateFunctionNode,n)}}}]),t}(N.AbstractCustomNodeGroup);u.__decorate([p.initializable(),u.__metadata("design:type",Map)],y.prototype,"customNodes",void 0),y=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__ICustomNode)),u.__param(1,l.inject(f.ServiceIdentifiers.TStringArrayStorage)),u.__param(2,l.inject(f.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),u.__param(3,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(4,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Function,Object,Object])],y),t.StringArrayCustomNodeGroup=y},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(10),p=r(15),m=r(14),g=r(11),N=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r,n))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"initialize",value:function(e){this.operator=e}},{key:"getNodeStructure",value:function(){var e=m.NodeFactory.expressionStatementNode(m.NodeFactory.functionExpressionNode([m.NodeFactory.identifierNode("x"),m.NodeFactory.identifierNode("y")],m.NodeFactory.blockStatementNode([m.NodeFactory.returnStatementNode(m.NodeFactory.binaryExpressionNode(this.operator,m.NodeFactory.identifierNode("x"),m.NodeFactory.identifierNode("y")))])));return g.NodeUtils.parentizeAst(e),[e]}}]),t}(p.AbstractCustomNode);d.__decorate([f.initializable(),d.__metadata("design:type",String)],N.prototype,"operator",void 0),N=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object])],N),t.BinaryExpressionFunctionNode=N},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalVariableTemplate1=function(){return"\n var that;\n \n try {\n var getGlobal = Function('return (function() ' + '{}.constructor(\"return this\")( )' + ');');\n \n that = getGlobal();\n } catch (e) {\n that = window;\n }\n "}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalVariableTemplate2=function(){return"\n var getGlobal = function () {\n var globalObject;\n \n try {\n globalObject = Function('return (function() ' + '{}.constructor(\"return this\")( )' + ');')();\n } catch (e) {\n globalObject = window;\n }\n \n return globalObject;\n };\n var that = getGlobal();\n "}},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(10),p=r(15),m=r(14),g=r(9),N=r(11),v=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r,n))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"initialize",value:function(e,t,r){this.blockStatementBody=e,this.shuffledKeys=t,this.originalKeysIndexesInShuffledArray=r}},{key:"getNodeStructure",value:function(){var e=this,t=this.randomGenerator.getRandomString(6),r=this.randomGenerator.getRandomString(6),n=m.NodeFactory.blockStatementNode([m.NodeFactory.variableDeclarationNode([m.NodeFactory.variableDeclaratorNode(m.NodeFactory.identifierNode(t),m.NodeFactory.callExpressionNode(m.NodeFactory.memberExpressionNode(m.NodeFactory.literalNode(this.originalKeysIndexesInShuffledArray.join("|")),m.NodeFactory.identifierNode("split")),[m.NodeFactory.literalNode("|")])),m.NodeFactory.variableDeclaratorNode(m.NodeFactory.identifierNode(r),m.NodeFactory.literalNode(0))]),m.NodeFactory.whileStatementNode(m.NodeFactory.literalNode(!0),m.NodeFactory.blockStatementNode([m.NodeFactory.switchStatementNode(m.NodeFactory.memberExpressionNode(m.NodeFactory.identifierNode(t),m.NodeFactory.updateExpressionNode("++",m.NodeFactory.identifierNode(r)),!0),this.shuffledKeys.map(function(t,r){var n=e.blockStatementBody[t],o=[n];return g.NodeGuards.isReturnStatementNode(n)||o.push(m.NodeFactory.continueStatement()),m.NodeFactory.switchCaseNode(m.NodeFactory.literalNode(String(r)),o)})),m.NodeFactory.breakStatement()]))]);return N.NodeUtils.parentizeAst(n),[n]}}]),t}(p.AbstractCustomNode);d.__decorate([f.initializable(),d.__metadata("design:type",Array)],v.prototype,"blockStatementBody",void 0),d.__decorate([f.initializable(),d.__metadata("design:type",Array)],v.prototype,"originalKeysIndexesInShuffledArray",void 0),d.__decorate([f.initializable(),d.__metadata("design:type",Array)],v.prototype,"shuffledKeys",void 0),v=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object])],v),t.BlockStatementControlFlowFlatteningNode=v},function(e,t,r){"use strict";var n=r(0),o=n(r(30)),a=n(r(1)),i=n(r(3)),s=n(r(6)),c=n(r(7)),d=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var u=r(4),l=r(2),f=r(5),p=r(10),m=r(15),g=r(14),N=r(11),v=function(e){function t(e,r,n){return(0,a.default)(this,t),(0,s.default)(this,(0,c.default)(t).call(this,e,r,n))}return(0,d.default)(t,e),(0,i.default)(t,[{key:"initialize",value:function(e,t){this.blockStatementNode=e,this.deadCodeInjectionRootAstHostNode=t}},{key:"getNodeStructure",value:function(){var e=this.randomGenerator.getMathRandom()>.5,t=this.randomGenerator.getMathRandom()>.5,r=e?"===":"!==",n=this.randomGenerator.getRandomString(5),a=t?n:this.randomGenerator.getRandomString(5),i=e===t?[this.blockStatementNode,this.deadCodeInjectionRootAstHostNode]:[this.deadCodeInjectionRootAstHostNode,this.blockStatementNode],s=(0,o.default)(i,2),c=s[0],d=s[1],u=g.NodeFactory.blockStatementNode([g.NodeFactory.ifStatementNode(g.NodeFactory.binaryExpressionNode(r,g.NodeFactory.literalNode(n),g.NodeFactory.literalNode(a)),c,d)]);return N.NodeUtils.parentizeAst(u),[u]}}]),t}(m.AbstractCustomNode);u.__decorate([p.initializable(),u.__metadata("design:type",Object)],v.prototype,"blockStatementNode",void 0),u.__decorate([p.initializable(),u.__metadata("design:type",Object)],v.prototype,"deadCodeInjectionRootAstHostNode",void 0),v=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],v),t.BlockStatementDeadCodeInjectionNode=v},function(e,t,r){"use strict";var n=r(0),o=n(r(28)),a=n(r(1)),i=n(r(3)),s=n(r(6)),c=n(r(7)),d=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var u=r(4),l=r(2),f=r(5),p=r(10),m=r(15),g=r(14),N=r(11),v=function(e){function t(e,r,n){return(0,a.default)(this,t),(0,s.default)(this,(0,c.default)(t).call(this,e,r,n))}return(0,d.default)(t,e),(0,i.default)(t,[{key:"initialize",value:function(e,t,r,n){this.controlFlowStorageName=e,this.controlFlowStorageKey=t,this.callee=r,this.expressionArguments=n}},{key:"getNodeStructure",value:function(){var e=g.NodeFactory.expressionStatementNode(g.NodeFactory.callExpressionNode(g.NodeFactory.memberExpressionNode(g.NodeFactory.identifierNode(this.controlFlowStorageName),g.NodeFactory.identifierNode(this.controlFlowStorageKey)),[this.callee].concat((0,o.default)(this.expressionArguments))));return N.NodeUtils.parentizeAst(e),[e]}}]),t}(m.AbstractCustomNode);u.__decorate([p.initializable(),u.__metadata("design:type",Object)],v.prototype,"callee",void 0),u.__decorate([p.initializable(),u.__metadata("design:type",String)],v.prototype,"controlFlowStorageKey",void 0),u.__decorate([p.initializable(),u.__metadata("design:type",String)],v.prototype,"controlFlowStorageName",void 0),u.__decorate([p.initializable(),u.__metadata("design:type",Array)],v.prototype,"expressionArguments",void 0),v=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],v),t.CallExpressionControlFlowStorageCallNode=v},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(10),p=r(15),m=r(14),g=r(11),N=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r,n))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"initialize",value:function(e){this.expressionArguments=e}},{key:"getNodeStructure",value:function(){for(var e=m.NodeFactory.identifierNode("callee"),t=[],r=this.expressionArguments.length,n=0;n 0;\n \n switch (isPositive) {\n case true:\n return this.item + \'_\' + this.value + \'_\' + i;\n default:\n this.item + \'_\' + this.value;\n }\n }\n }()\n };\n };\n \n var regExp = new RegExp("[{diff}]", "g");\n var domains = "{domains}".replace(regExp, "").split(";");\n var document;\n var domain;\n var location;\n var hostname;\n\n for (var d in that) {\n if (d.length == 8 && d.charCodeAt(7) == 116 && d.charCodeAt(5) == 101 && d.charCodeAt(3) == 117 && d.charCodeAt(0) == 100) {\n document = d;\n \n break;\n }\n }\n\n for (var d1 in that[document]) {\n if (d1.length == 6 && d1.charCodeAt(5) == 110 && d1.charCodeAt(0) == 100) {\n domain = d1;\n \n break;\n }\n }\n\n if (!("~" > domain)) {\n for (var d2 in that[document]) {\n if (d2.length == 8 && d2.charCodeAt(7) == 110 && d2.charCodeAt(0) == 108) {\n location = d2;\n \n break;\n }\n }\n\n for (var d3 in that[document][location]) {\n if (d3.length == 8 && d3.charCodeAt(7) == 101 && d3.charCodeAt(0) == 104) {\n hostname = d3;\n \n break;\n }\n }\n }\n \n if (!document || !that[document]) {\n return;\n }\n \n var documentDomain = that[document][domain];\n var documentLocationHostName = !!that[document][location] && that[document][location][hostname];\n var currentDomain = documentDomain || documentLocationHostName;\n \n if (!currentDomain) {\n return;\n }\n \n var ok = false;\n \n for (var i = 0; i < domains.length; i++) {\n var domain = domains[i];\n var position = currentDomain.length - domain.length;\n var lastIndex = currentDomain.indexOf(domain, position);\n var endsWith = lastIndex !== -1 && lastIndex === position;\n \n if (endsWith) {\n if (currentDomain.length == domain.length || domain.indexOf(".") === 0) {\n ok = true;\n }\n }\n }\n \n if (!ok) {\n data;\n } else {\n return;\n }\n \n func();\n });\n\n {domainLockFunctionName}();\n '}},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(10),p=r(15),m=r(14),g=r(11),N=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r,n))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"initialize",value:function(e,t,r,n){this.controlFlowStorageName=e,this.controlFlowStorageKey=t,this.leftValue=r,this.rightValue=n}},{key:"getNodeStructure",value:function(){var e=m.NodeFactory.expressionStatementNode(m.NodeFactory.callExpressionNode(m.NodeFactory.memberExpressionNode(m.NodeFactory.identifierNode(this.controlFlowStorageName),m.NodeFactory.identifierNode(this.controlFlowStorageKey)),[this.leftValue,this.rightValue]));return g.NodeUtils.parentizeAst(e),[e]}}]),t}(p.AbstractCustomNode);d.__decorate([f.initializable(),d.__metadata("design:type",String)],N.prototype,"controlFlowStorageKey",void 0),d.__decorate([f.initializable(),d.__metadata("design:type",String)],N.prototype,"controlFlowStorageName",void 0),d.__decorate([f.initializable(),d.__metadata("design:type",Object)],N.prototype,"leftValue",void 0),d.__decorate([f.initializable(),d.__metadata("design:type",Object)],N.prototype,"rightValue",void 0),N=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object])],N),t.ExpressionWithOperatorControlFlowStorageCallNode=N},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(10),p=r(15),m=r(14),g=r(11),N=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r,n))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"initialize",value:function(e){this.operator=e}},{key:"getNodeStructure",value:function(){var e=m.NodeFactory.expressionStatementNode(m.NodeFactory.functionExpressionNode([m.NodeFactory.identifierNode("x"),m.NodeFactory.identifierNode("y")],m.NodeFactory.blockStatementNode([m.NodeFactory.returnStatementNode(m.NodeFactory.logicalExpressionNode(this.operator,m.NodeFactory.identifierNode("x"),m.NodeFactory.identifierNode("y")))])));return g.NodeUtils.parentizeAst(e),[e]}}]),t}(p.AbstractCustomNode);d.__decorate([f.initializable(),d.__metadata("design:type",String)],N.prototype,"operator",void 0),N=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object])],N),t.LogicalExpressionFunctionNode=N},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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=d.__importDefault(r(18)),p=r(26),m=r(10),g=r(116),N=r(38),v=r(15),y=r(32),_=r(11),h=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r,n))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"initialize",value:function(e,t){this.appendEvent=e,this.callsControllerFunctionName=t}},{key:"getNodeStructure",value:function(){return _.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){return this.appendEvent===p.ObfuscationEvent.AfterObfuscation?y.JavaScriptObfuscator.obfuscate(f.default(g.SingleNodeCallControllerTemplate(),{singleNodeCallControllerFunctionName:this.callsControllerFunctionName}),Object.assign({},N.NO_ADDITIONAL_NODES_PRESET,{identifierNamesGenerator:this.options.identifierNamesGenerator,seed:this.options.seed})).getObfuscatedCode():f.default(g.SingleNodeCallControllerTemplate(),{singleNodeCallControllerFunctionName:this.callsControllerFunctionName})}}]),t}(v.AbstractCustomNode);d.__decorate([m.initializable(),d.__metadata("design:type",String)],h.prototype,"callsControllerFunctionName",void 0),d.__decorate([m.initializable(),d.__metadata("design:type",String)],h.prototype,"appendEvent",void 0),h=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object])],h),t.NodeCallsControllerFunctionNode=h},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SingleNodeCallControllerTemplate=function(){return"\n var {singleNodeCallControllerFunctionName} = (function(){\n var firstCall = true;\n \n return function (context, fn){\n var rfn = firstCall ? function(){\n if(fn){\n var res = fn.apply(context, arguments);\n fn = null;\n return res;\n }\n } : function(){}\n \n firstCall = false;\n \n return rfn;\n }\n })();\n "}},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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=d.__importDefault(r(18)),p=r(10),m=r(38),g=r(118),N=r(15),v=r(32),y=r(11),_=function(e){function t(e,r,n,a){var c;return(0,o.default)(this,t),(c=(0,i.default)(this,(0,s.default)(t).call(this,e,r,a))).escapeSequenceEncoder=n,c}return(0,c.default)(t,e),(0,a.default)(t,[{key:"initialize",value:function(e){this.callsControllerFunctionName=e}},{key:"getNodeStructure",value:function(){return y.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){return v.JavaScriptObfuscator.obfuscate(f.default(g.SelfDefendingTemplate(this.escapeSequenceEncoder),{selfDefendingFunctionName:this.identifierNamesGenerator.generate(),singleNodeCallControllerFunctionName:this.callsControllerFunctionName}),Object.assign({},m.NO_ADDITIONAL_NODES_PRESET,{identifierNamesGenerator:this.options.identifierNamesGenerator,seed:this.options.seed,unicodeEscapeSequence:!0})).getObfuscatedCode()}}]),t}(N.AbstractCustomNode);d.__decorate([p.initializable(),d.__metadata("design:type",String)],_.prototype,"callsControllerFunctionName",void 0),_=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IEscapeSequenceEncoder)),d.__param(3,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object,Object])],_),t.SelfDefendingUnicodeNode=_},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SelfDefendingTemplate=function(e){return"\n var {selfDefendingFunctionName} = {singleNodeCallControllerFunctionName}(this, function () {\n var func1 = function(){return 'dev';},\n func2 = function () {\n return 'window';\n };\n \n var test1 = function () {\n var regExp = new RegExp('".concat(e.encode("\\w+ *\\(\\) *{\\w+ *['|\"].+['|\"];? *}",!0),"');\n \n return !regExp.test(func1.toString());\n };\n \n var test2 = function () {\n var regExp = new RegExp('").concat(e.encode("(\\\\[x|u](\\w){2,4})+",!0),"');\n \n return regExp.test(func2.toString());\n };\n \n var recursiveFunc1 = function (string) {\n var i = ~-1 >> 1 + 255 % 0;\n \n if (string.indexOf('i' === i)) {\n recursiveFunc2(string)\n }\n };\n \n var recursiveFunc2 = function (string) {\n var i = ~-4 >> 1 + 255 % 0;\n \n if (string.indexOf((true+\"\")[3]) !== i) {\n recursiveFunc1(string)\n }\n };\n \n if (!test1()) {\n if (!test2()) {\n recursiveFunc1('indеxOf');\n } else {\n recursiveFunc1('indexOf');\n }\n } else {\n recursiveFunc1('indеxOf');\n }\n })\n \n {selfDefendingFunctionName}();\n ")}},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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=d.__importDefault(r(18)),p=r(23),m=r(37),g=r(10),N=r(38),v=r(120),y=r(45),_=r(121),h=r(122),b=r(123),S=r(124),I=r(125),C=r(15),F=r(32),O=r(11),j=function(e){function t(e,r,n,a){var c;return(0,o.default)(this,t),(c=(0,i.default)(this,(0,s.default)(t).call(this,e,r,a))).escapeSequenceEncoder=n,c}return(0,c.default)(t,e),(0,a.default)(t,[{key:"initialize",value:function(e,t){this.stringArrayName=e,this.stringArrayCallsWrapperName=t}},{key:"getNodeStructure",value:function(){return O.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){var e=this.getDecodeStringArrayTemplate();return F.JavaScriptObfuscator.obfuscate(f.default(S.StringArrayCallsWrapperTemplate(),{decodeNodeTemplate:e,stringArrayCallsWrapperName:this.stringArrayCallsWrapperName,stringArrayName:this.stringArrayName}),Object.assign({},N.NO_ADDITIONAL_NODES_PRESET,{identifierNamesGenerator:this.options.identifierNamesGenerator,seed:this.options.seed})).getObfuscatedCode()}},{key:"getDecodeStringArrayTemplate",value:function(){var e=this.options.target!==p.ObfuscationTarget.BrowserNoEval?this.getGlobalVariableTemplate():y.GlobalVariableNoEvalTemplate(),t=f.default(v.AtobTemplate(),{globalVariableTemplate:e}),r="",n="";switch(this.options.selfDefending&&(n=f.default(h.SelfDefendingTemplate(this.randomGenerator,this.escapeSequenceEncoder),{stringArrayCallsWrapperName:this.stringArrayCallsWrapperName,stringArrayName:this.stringArrayName})),this.options.stringArrayEncoding){case m.StringArrayEncoding.Rc4:r=f.default(I.StringArrayRc4DecodeNodeTemplate(this.randomGenerator),{atobPolyfill:t,rc4Polyfill:_.Rc4Template(),selfDefendingCode:n,stringArrayCallsWrapperName:this.stringArrayCallsWrapperName});break;case m.StringArrayEncoding.Base64:r=f.default(b.StringArrayBase64DecodeNodeTemplate(this.randomGenerator),{atobPolyfill:t,selfDefendingCode:n,stringArrayCallsWrapperName:this.stringArrayCallsWrapperName})}return r}}]),t}(C.AbstractCustomNode);d.__decorate([g.initializable(),d.__metadata("design:type",String)],j.prototype,"stringArrayName",void 0),d.__decorate([g.initializable(),d.__metadata("design:type",String)],j.prototype,"stringArrayCallsWrapperName",void 0),j=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IEscapeSequenceEncoder)),d.__param(3,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object,Object])],j),t.StringArrayCallsWrapper=j},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AtobTemplate=function(){return"\n (function () {\n {globalVariableTemplate}\n \n var chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';\n\n that.atob || (\n that.atob = function(input) {\n var str = String(input).replace(/=+$/, '');\n for (\n var bc = 0, bs, buffer, idx = 0, output = '';\n buffer = str.charAt(idx++);\n ~buffer && (bs = bc % 4 ? bs * 64 + buffer : buffer,\n bc++ % 4) ? output += String.fromCharCode(255 & bs >> (-2 * bc & 6)) : 0\n ) {\n buffer = chars.indexOf(buffer);\n }\n return output;\n });\n })();\n "}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Rc4Template=function(){return"\n var rc4 = function (str, key) {\n var s = [], j = 0, x, res = '', newStr = '';\n \n str = atob(str);\n \n for (var k = 0, length = str.length; k < length; k++) {\n newStr += '%' + ('00' + str.charCodeAt(k).toString(16)).slice(-2);\n }\n \n str = decodeURIComponent(newStr);\n \t \n\t for (var 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 (var 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 res += String.fromCharCode(str.charCodeAt(y) ^ s[(s[i] + s[j]) % 256]);\n }\n \n return res;\n }\n "}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SelfDefendingTemplate=function(e,t){var r=e.getRandomString(6),n=e.getRandomString(6),o=e.getRandomString(6),a=e.getRandomString(6),i=e.getRandomString(6),s=e.getRandomString(6),c=e.getRandomString(6),d=e.getRandomString(6),u=e.getRandomString(6);return"\n var StatesClass = function (".concat(r,") {\n this.").concat(r," = ").concat(r,";\n this.").concat(n," = [1, 0, 0];\n this.").concat(o," = function(){return 'newState';};\n this.").concat(a," = '").concat(t.encode("\\w+ *\\(\\) *{\\w+ *",!0),"';\n this.").concat(i," = '").concat(t.encode("['|\"].+['|\"];? *}",!0),"';\n };\n \n StatesClass.prototype.").concat(s," = function () {\n var regExp = new RegExp(this.").concat(a," + this.").concat(i,");\n var expression = regExp.test(this.").concat(o,".toString())\n ? --this.").concat(n,"[1]\n : --this.").concat(n,"[0];\n \n return this.").concat(c,"(expression);\n };\n \n StatesClass.prototype.").concat(c," = function (").concat(u,") {\n if (!Boolean(~").concat(u,")) {\n return ").concat(u,";\n }\n \n return this.").concat(d,"(this.").concat(r,");\n };\n\n StatesClass.prototype.").concat(d," = function (").concat(r,") {\n for (var i = 0, len = this.").concat(n,".length; i < len; i++) {\n this.").concat(n,".push(Math.round(Math.random()));\n len = this.").concat(n,".length;\n }\n \n return ").concat(r,"(this.").concat(n,"[0]);\n };\n\n new StatesClass({stringArrayCallsWrapperName}).").concat(s,"();\n ")}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayBase64DecodeNodeTemplate=function(e){var t=e.getRandomString(6),r=e.getRandomString(6),n=e.getRandomString(6);return"\n if ({stringArrayCallsWrapperName}.".concat(t," === undefined) {\n {atobPolyfill}\n \n {stringArrayCallsWrapperName}.").concat(r," = function (str) {\n var string = atob(str);\n var newStringChars = [];\n \n for (var i = 0, length = string.length; i < length; i++) {\n newStringChars += '%' + ('00' + string.charCodeAt(i).toString(16)).slice(-2);\n }\n \n return decodeURIComponent(newStringChars);\n };\n \n {stringArrayCallsWrapperName}.").concat(n," = {};\n \n {stringArrayCallsWrapperName}.").concat(t," = true;\n }\n \n var cachedValue = {stringArrayCallsWrapperName}.").concat(n,"[index];\n \n if (cachedValue === undefined) {\n {selfDefendingCode}\n \n value = {stringArrayCallsWrapperName}.").concat(r,"(value);\n {stringArrayCallsWrapperName}.").concat(n,"[index] = value;\n } else {\n value = cachedValue;\n }\n ")}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayCallsWrapperTemplate=function(){return"\n var {stringArrayCallsWrapperName} = function (index, key) {\n index = index - 0;\n \n var value = {stringArrayName}[index];\n \n {decodeNodeTemplate}\n \n return value;\n };\n "}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayRc4DecodeNodeTemplate=function(e){var t=e.getRandomString(6),r=e.getRandomString(6),n=e.getRandomString(6),o=e.getRandomString(6);return"\n if ({stringArrayCallsWrapperName}.".concat(t," === undefined) {\n {atobPolyfill}\n \n {rc4Polyfill}\n {stringArrayCallsWrapperName}.").concat(r," = rc4;\n \n {stringArrayCallsWrapperName}.").concat(n," = {};\n \n {stringArrayCallsWrapperName}.").concat(t," = true;\n }\n \n var cachedValue = {stringArrayCallsWrapperName}.").concat(n,"[index];\n\n if (cachedValue === undefined) {\n if ({stringArrayCallsWrapperName}.").concat(o," === undefined) {\n {selfDefendingCode}\n \n {stringArrayCallsWrapperName}.").concat(o," = true;\n }\n \n value = {stringArrayCallsWrapperName}.").concat(r,"(value, key);\n {stringArrayCallsWrapperName}.").concat(n,"[index] = value;\n } else {\n value = cachedValue;\n }\n ")}},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(39)),d=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var u=r(4),l=r(2),f=r(5),p=u.__importDefault(r(18)),m=r(10),g=r(127),N=r(15),v=r(11),y=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r,n))}return(0,d.default)(t,e),(0,a.default)(t,[{key:"initialize",value:function(e,t,r){this.stringArrayStorage=e,this.stringArrayName=t,this.stringArrayRotateValue=r}},{key:"getNode",value:function(){return this.stringArrayStorage.rotateArray(this.stringArrayRotateValue),(0,c.default)((0,s.default)(t.prototype),"getNode",this).call(this)}},{key:"getNodeStructure",value:function(){return v.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){return p.default(g.StringArrayTemplate(),{stringArrayName:this.stringArrayName,stringArray:this.stringArrayStorage.toString()})}}]),t}(N.AbstractCustomNode);u.__decorate([m.initializable(),u.__metadata("design:type",Object)],y.prototype,"stringArrayStorage",void 0),u.__decorate([m.initializable(),u.__metadata("design:type",String)],y.prototype,"stringArrayName",void 0),u.__decorate([m.initializable(),u.__metadata("design:type",Number)],y.prototype,"stringArrayRotateValue",void 0),y=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],y),t.StringArrayNode=y},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayTemplate=function(){return"\n var {stringArrayName} = [{stringArray}];\n "}},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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=d.__importDefault(r(18)),p=r(10),m=r(38),g=r(129),N=r(130),v=r(15),y=r(32),_=r(11),h=r(40),b=function(e){function t(e,r,n,a){var c;return(0,o.default)(this,t),(c=(0,i.default)(this,(0,s.default)(t).call(this,e,r,a))).escapeSequenceEncoder=n,c}return(0,c.default)(t,e),(0,a.default)(t,[{key:"initialize",value:function(e,t){this.stringArrayName=e,this.stringArrayRotateValue=t}},{key:"getNodeStructure",value:function(){return _.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){var e=this.identifierNamesGenerator.generate(),t=this.identifierNamesGenerator.generate(),r="";return r=this.options.selfDefending?f.default(g.SelfDefendingTemplate(this.escapeSequenceEncoder),{timesName:e,whileFunctionName:t}):"".concat(t,"(++").concat(e,")"),y.JavaScriptObfuscator.obfuscate(f.default(N.StringArrayRotateFunctionTemplate(),{code:r,timesName:e,stringArrayName:this.stringArrayName,stringArrayRotateValue:h.NumberUtils.toHex(this.stringArrayRotateValue),whileFunctionName:t}),Object.assign({},m.NO_ADDITIONAL_NODES_PRESET,{identifierNamesGenerator:this.options.identifierNamesGenerator,seed:this.options.seed})).getObfuscatedCode()}}]),t}(v.AbstractCustomNode);d.__decorate([p.initializable(),d.__metadata("design:type",String)],b.prototype,"stringArrayName",void 0),d.__decorate([p.initializable(),d.__metadata("design:type",Number)],b.prototype,"stringArrayRotateValue",void 0),b=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IEscapeSequenceEncoder)),d.__param(3,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object,Object])],b),t.StringArrayRotateFunctionNode=b},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SelfDefendingTemplate=function(e){return"\n var selfDefendingFunc = function () {\n var object = {\n data: {\n key: 'cookie',\n value: 'timeout'\n },\n setCookie: function (options, name, value, document) {\n document = document || {};\n \n var updatedCookie = name + \"=\" + value;\n\n var i = 0;\n \n for (var i = 0, len = options.length; i < len; i++) {\n var propName = options[i];\n \n updatedCookie += \"; \" + propName;\n \n var propValue = options[propName];\n \n options.push(propValue);\n len = options.length;\n \n if (propValue !== true) {\n updatedCookie += \"=\" + propValue;\n }\n }\n\n document['cookie'] = updatedCookie;\n },\n removeCookie: function(){return 'dev';},\n getCookie: function (document, name) {\n document = document || function (value) { return value };\n var matches = document(new RegExp(\n \"(?:^|; )\" + name.replace(/([.$?*|{}()[]\\/+^])/g, '\\$1') + \"=([^;]*)\"\n ));\n \n var func = function (param1, param2) {\n param1(++param2);\n };\n \n func({whileFunctionName}, {timesName});\n \n return matches ? decodeURIComponent(matches[1]) : undefined;\n }\n };\n \n var test1 = function () {\n var regExp = new RegExp('".concat(e.encode("\\w+ *\\(\\) *{\\w+ *['|\"].+['|\"];? *}",!0),"');\n \n return regExp.test(object.removeCookie.toString());\n };\n \n object['updateCookie'] = test1;\n \n var cookie = '';\n var result = object['updateCookie']();\n \n if (!result) {\n object['setCookie'](['*'], 'counter', 1);\n } else if (result) {\n cookie = object['getCookie'](null, 'counter');\n } else {\n object['removeCookie']();\n }\n };\n \n selfDefendingFunc();\n ")}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayRotateFunctionTemplate=function(){return"\n (function (array, {timesName}) {\n var {whileFunctionName} = function (times) {\n while (--times) {\n array['push'](array['shift']());\n }\n };\n \n {code}\n })({stringArrayName}, 0x{stringArrayRotateValue});\n "}},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(10),p=r(15),m=r(14),g=r(11),N=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r,n))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"initialize",value:function(e,t){this.controlFlowStorageName=e,this.controlFlowStorageKey=t}},{key:"getNodeStructure",value:function(){var e=m.NodeFactory.expressionStatementNode(m.NodeFactory.memberExpressionNode(m.NodeFactory.identifierNode(this.controlFlowStorageName),m.NodeFactory.identifierNode(this.controlFlowStorageKey)));return g.NodeUtils.parentizeAst(e),[e]}}]),t}(p.AbstractCustomNode);d.__decorate([f.initializable(),d.__metadata("design:type",String)],N.prototype,"controlFlowStorageKey",void 0),d.__decorate([f.initializable(),d.__metadata("design:type",String)],N.prototype,"controlFlowStorageName",void 0),N=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object])],N),t.StringLiteralControlFlowStorageCallNode=N},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(10),p=r(15),m=r(14),g=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r,n))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"initialize",value:function(e){this.literalValue=e}},{key:"getNodeStructure",value:function(){return[m.NodeFactory.expressionStatementNode(m.NodeFactory.literalNode(this.literalValue))]}}]),t}(p.AbstractCustomNode);d.__decorate([f.initializable(),d.__metadata("design:type",String)],g.prototype,"literalValue",void 0),g=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),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.StringLiteralNode=g},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(2);t.finalizingTransformersModule=new n.ContainerModule(function(e){})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(2),o=r(5),a=r(35),i=r(135),s=r(136);t.generatorsModule=new n.ContainerModule(function(e){e(o.ServiceIdentifiers.IIdentifierNamesGenerator).to(i.HexadecimalIdentifierNamesGenerator).inSingletonScope().whenTargetNamed(a.IdentifierNamesGenerator.HexadecimalIdentifierNamesGenerator),e(o.ServiceIdentifiers.IIdentifierNamesGenerator).to(s.MangledIdentifierNamesGenerator).inSingletonScope().whenTargetNamed(a.IdentifierNamesGenerator.MangledIdentifierNamesGenerator),e(o.ServiceIdentifiers.Factory__IIdentifierNamesGenerator).toFactory(function(e){var t=null;return function(r){if(t)return t;var n;switch(r.identifierNamesGenerator){case a.IdentifierNamesGenerator.MangledIdentifierNamesGenerator:n=e.container.getNamed(o.ServiceIdentifiers.IIdentifierNamesGenerator,a.IdentifierNamesGenerator.MangledIdentifierNamesGenerator);break;case a.IdentifierNamesGenerator.HexadecimalIdentifierNamesGenerator:default:n=e.container.getNamed(o.ServiceIdentifiers.IIdentifierNamesGenerator,a.IdentifierNamesGenerator.HexadecimalIdentifierNamesGenerator)}return t=n,n}})})},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=r(5),p=r(56),m=r(40),g=r(34),N=d=function(e){function t(e,r){var n;return(0,o.default)(this,t),(n=(0,i.default)(this,(0,s.default)(t).call(this,e,r))).randomVariableNameSet=new Set,n}return(0,c.default)(t,e),(0,a.default)(t,[{key:"generate",value:function(e){var t=this.randomGenerator.getRandomInteger(1e4,99999999),r=m.NumberUtils.toHex(t),n=g.Utils.hexadecimalPrefix.length+1,o=e?e-n:d.baseIdentifierNameLength,a=r.substr(0,o),i="_".concat(g.Utils.hexadecimalPrefix).concat(a);return this.randomVariableNameSet.has(i)?this.generate(e):(this.randomVariableNameSet.add(i),i)}},{key:"generateWithPrefix",value:function(e){var t=this.generate(e);return"".concat(this.options.identifiersPrefix).concat(t).replace("__","_")}}]),t}(p.AbstractIdentifierNamesGenerator);N.baseIdentifierNameLength=6,N=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(1,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Object,Object])],N),t.HexadecimalIdentifierNamesGenerator=N},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(39)),d=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var u,l=r(4),f=r(2),p=r(5),m=r(56),g=u=function(e){function t(e,r){var n;return(0,o.default)(this,t),(n=(0,i.default)(this,(0,s.default)(t).call(this,e,r))).previousMangledName=u.initMangledNameCharacter,n}return(0,d.default)(t,e),(0,a.default)(t,[{key:"generate",value:function(e){var t=this.generateNewMangledName(this.previousMangledName);return this.previousMangledName=t,t}},{key:"generateWithPrefix",value:function(e){var t=this.options.identifiersPrefix?"".concat(this.options.identifiersPrefix,"_"):"",r=this.generate(e);return"".concat(t).concat(r)}},{key:"isValidIdentifierName",value:function(e){return(0,c.default)((0,s.default)(t.prototype),"isValidIdentifierName",this).call(this,e)&&!u.reservedNames.includes(e)}},{key:"generateNewMangledName",value:function(e){var t=function(e){var t=u.nameSequence,r=e.length,n=function(e){return"0".repeat(e)},o=r-1;do{var a=e.charAt(o),i=t.indexOf(a);if(i!==t.length-1)return e.substring(0,o)+t[i+1]+n(r-(o+1));--o}while(o>=0);return"a".concat(n(r))},r=t(e);return this.isValidIdentifierName(r)||(r=this.generateNewMangledName(r)),r}}]),t}(m.AbstractIdentifierNamesGenerator);g.initMangledNameCharacter="9",g.nameSequence="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""),g.reservedNames=["byte","case","char","do","else","enum","eval","for","goto","if","in","int","let","long","new","null","this","true","try","var","void","with"],g=u=l.__decorate([f.injectable(),l.__param(0,f.inject(p.ServiceIdentifiers.IRandomGenerator)),l.__param(1,f.inject(p.ServiceIdentifiers.IOptions)),l.__metadata("design:paramtypes",[Object,Object])],g),t.MangledIdentifierNamesGenerator=g},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(20),o=r(2),a=r(5);t.nodeTransformersModule=new o.ContainerModule(function(e){e(a.ServiceIdentifiers.Factory__INodeTransformer).toFactory(n.InversifyContainerFacade.getCacheFactory(a.ServiceIdentifiers.INodeTransformer))})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(20),o=r(2),a=r(5),i=r(22),s=r(57),c=r(29),d=r(139),u=r(140),l=r(141),f=r(142),p=r(143),m=r(144),g=r(145),N=r(146),v=r(147),y=r(148),_=r(149),h=r(150);t.obfuscatingTransformersModule=new o.ContainerModule(function(e){e(a.ServiceIdentifiers.INodeTransformer).to(l.CatchClauseTransformer).whenTargetNamed(c.NodeTransformer.CatchClauseTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(f.ClassDeclarationTransformer).whenTargetNamed(c.NodeTransformer.ClassDeclarationTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(p.FunctionDeclarationTransformer).whenTargetNamed(c.NodeTransformer.FunctionDeclarationTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(m.FunctionTransformer).whenTargetNamed(c.NodeTransformer.FunctionTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(g.ImportDeclarationTransformer).whenTargetNamed(c.NodeTransformer.ImportDeclarationTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(N.LabeledStatementTransformer).whenTargetNamed(c.NodeTransformer.LabeledStatementTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(v.LiteralTransformer).whenTargetNamed(c.NodeTransformer.LiteralTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(h.VariableDeclarationTransformer).whenTargetNamed(c.NodeTransformer.VariableDeclarationTransformer),e(a.ServiceIdentifiers.IObfuscatingReplacer).to(u.BooleanLiteralObfuscatingReplacer).whenTargetNamed(s.LiteralObfuscatingReplacer.BooleanLiteralObfuscatingReplacer),e(a.ServiceIdentifiers.IObfuscatingReplacer).to(y.NumberLiteralObfuscatingReplacer).whenTargetNamed(s.LiteralObfuscatingReplacer.NumberLiteralObfuscatingReplacer),e(a.ServiceIdentifiers.IObfuscatingReplacer).to(_.StringLiteralObfuscatingReplacer).whenTargetNamed(s.LiteralObfuscatingReplacer.StringLiteralObfuscatingReplacer),e(a.ServiceIdentifiers.IIdentifierObfuscatingReplacer).to(d.BaseIdentifierObfuscatingReplacer).whenTargetNamed(i.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer),e(a.ServiceIdentifiers.Factory__IObfuscatingReplacer).toFactory(n.InversifyContainerFacade.getCacheFactory(a.ServiceIdentifiers.IObfuscatingReplacer)),e(a.ServiceIdentifiers.Factory__IIdentifierObfuscatingReplacer).toFactory(n.InversifyContainerFacade.getCacheFactory(a.ServiceIdentifiers.IIdentifierObfuscatingReplacer))})},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(41),p=r(14),m=function(e){function t(e,r){var n;return(0,o.default)(this,t),(n=(0,i.default)(this,(0,s.default)(t).call(this,r))).blockScopesMap=new Map,n.identifierNamesGenerator=e(r),n}return(0,c.default)(t,e),(0,a.default)(t,[{key:"replace",value:function(e,t){if(this.blockScopesMap.has(t)){var r=this.blockScopesMap.get(t);r.has(e)&&(e=r.get(e))}return p.NodeFactory.identifierNode(e)}},{key:"storeGlobalName",value:function(e,t){if(!this.isReservedName(e)){var r=this.identifierNamesGenerator.generateWithPrefix();this.blockScopesMap.has(t)||this.blockScopesMap.set(t,new Map),this.blockScopesMap.get(t).set(e,r)}}},{key:"storeLocalName",value:function(e,t){if(!this.isReservedName(e)){var r=this.identifierNamesGenerator.generate();this.blockScopesMap.has(t)||this.blockScopesMap.set(t,new Map),this.blockScopesMap.get(t).set(e,r)}}},{key:"isReservedName",value:function(e){return!!this.options.reservedStrings.length&&this.options.reservedNames.some(function(t){return null!==new RegExp(t,"g").exec(e)})}}]),t}(f.AbstractObfuscatingReplacer);m=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object])],m),t.BaseIdentifierObfuscatingReplacer=m},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=r(5),p=r(41),m=r(14),g=d=function(e){function t(e){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"replace",value:function(e){return e?d.getTrueUnaryExpressionNode():d.getFalseUnaryExpressionNode()}}],[{key:"getTrueUnaryExpressionNode",value:function(){return m.NodeFactory.unaryExpressionNode("!",d.getFalseUnaryExpressionNode())}},{key:"getFalseUnaryExpressionNode",value:function(){return m.NodeFactory.unaryExpressionNode("!",m.NodeFactory.arrayExpressionNode())}}]),t}(p.AbstractObfuscatingReplacer);g=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Object])],g),t.BooleanLiteralObfuscatingReplacer=g},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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=d.__importStar(r(16)),p=r(22),m=r(12),g=r(13),N=r(9),v=r(27),y=r(17),_=function(e){function t(e,r,n){var a;return(0,o.default)(this,t),(a=(0,i.default)(this,(0,s.default)(t).call(this,r,n))).identifierObfuscatingReplacer=e(p.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer),a}return(0,c.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case m.TransformationStage.Obfuscating:return{enter:function(e,r){if(r&&N.NodeGuards.isCatchClauseNode(e))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){var r=v.NodeLexicalScopeUtils.getLexicalScope(e);return r?(this.storeCatchClauseParam(e,r),this.replaceCatchClauseParam(e,r),e):e}},{key:"storeCatchClauseParam",value:function(e,t){N.NodeGuards.isIdentifierNode(e.param)&&this.identifierObfuscatingReplacer.storeLocalName(e.param.name,t)}},{key:"replaceCatchClauseParam",value:function(e,t){var r=this;f.replace(e,{enter:function(e,n){if(n&&N.NodeGuards.isReplaceableIdentifierNode(e,n)){var o=r.identifierObfuscatingReplacer.replace(e.name,t).name;e.name!==o&&(e.name=o,y.NodeMetadata.set(e,{renamedIdentifier:!0}))}}})}}]),t}(g.AbstractNodeTransformer);_=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierObfuscatingReplacer)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object])],_),t.CatchClauseTransformer=_},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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=d.__importStar(r(16)),p=r(22),m=r(19),g=r(12),N=r(13),v=r(9),y=r(27),_=r(17),h=function(e){function t(e,r,n){var a;return(0,o.default)(this,t),(a=(0,i.default)(this,(0,s.default)(t).call(this,r,n))).replaceableIdentifiers=new Map,a.identifierObfuscatingReplacer=e(p.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer),a}return(0,c.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case g.TransformationStage.Obfuscating:return{enter:function(e,r){if(r&&v.NodeGuards.isClassDeclarationNode(e)&&!v.NodeGuards.isExportNamedDeclarationNode(r))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){var r=y.NodeLexicalScopeUtils.getLexicalScope(e);if(!r)return e;var n=r.type===m.NodeType.Program;return!this.options.renameGlobals&&n?e:(this.storeClassName(e,r,n),this.replaceableIdentifiers.has(r)?this.replaceScopeCachedIdentifiers(e,r):this.replaceScopeIdentifiers(r),e)}},{key:"storeClassName",value:function(e,t,r){r?this.identifierObfuscatingReplacer.storeGlobalName(e.id.name,t):this.identifierObfuscatingReplacer.storeLocalName(e.id.name,t)}},{key:"replaceScopeCachedIdentifiers",value:function(e,t){var r=this.replaceableIdentifiers.get(t).get(e.id.name);if(r)for(var n=r.length,o=0;o2&&void 0!==arguments[2]?arguments[2]:new Set,o={enter:function(o,a){if(v.NodeGuards.isFunctionNode(o)&&o!==e)return r.replaceFunctionParams(o,t,new Set(n)),p.VisitorOption.Skip;if(d.isProhibitedIdentifierOfShorthandPropertyNode(o))n.add(o.key.name);else if(a&&v.NodeGuards.isReplaceableIdentifierNode(o,a)&&!_.NodeMetadata.isRenamedIdentifier(o)&&!n.has(o.name)){if(r.isGlobalFunctionDeclarationIdentifier(o,a))return;var i=r.identifierObfuscatingReplacer.replace(o.name,t).name;o.name!==i&&(o.name=i,_.NodeMetadata.set(o,{renamedIdentifier:!0}))}}};p.replace(e,o)}}],[{key:"isProhibitedIdentifierOfPropertyNode",value:function(e,t){return v.NodeGuards.isIdentifierNode(e)&&!!t&&v.NodeGuards.isPropertyNode(t)&&t.key===e}},{key:"isProhibitedIdentifierOfShorthandPropertyNode",value:function(e){return v.NodeGuards.isPropertyNode(e)&&e.shorthand&&v.NodeGuards.isIdentifierNode(e.key)}}]),t}(N.AbstractNodeTransformer);b=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IIdentifierObfuscatingReplacer)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],b),t.FunctionTransformer=b},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=r(5),p=u.__importStar(r(16)),m=r(22),g=r(12),N=r(13),v=r(9),y=r(27),_=r(17),h=d=function(e){function t(e,r,n){var a;return(0,o.default)(this,t),(a=(0,i.default)(this,(0,s.default)(t).call(this,r,n))).replaceableIdentifiers=new Map,a.identifierObfuscatingReplacer=e(m.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer),a}return(0,c.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case g.TransformationStage.Obfuscating:return{enter:function(e,r){if(r&&v.NodeGuards.isImportDeclarationNode(e))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){var r=y.NodeLexicalScopeUtils.getLexicalScope(e);return r?(this.storeImportSpecifierNames(e,r),this.replaceableIdentifiers.has(r)?this.replaceScopeCachedIdentifiers(r):this.replaceScopeIdentifiers(r),e):e}},{key:"storeImportSpecifierNames",value:function(e,t){var r=this;e.specifiers.forEach(function(e){d.isProhibitedImportSpecifierNode(e)||r.identifierObfuscatingReplacer.storeGlobalName(e.local.name,t)})}},{key:"replaceScopeCachedIdentifiers",value:function(e){var t=this;this.replaceableIdentifiers.get(e).forEach(function(r){var n=t.identifierObfuscatingReplacer.replace(r.name,e);r.name=n.name,_.NodeMetadata.set(r,{renamedIdentifier:!0})})}},{key:"replaceScopeIdentifiers",value:function(e){var t=this,r=[];p.replace(e,{enter:function(n,o){if(o&&v.NodeGuards.isReplaceableIdentifierNode(n,o)&&!_.NodeMetadata.isRenamedIdentifier(n)){var a=t.identifierObfuscatingReplacer.replace(n.name,e).name;n.name!==a?(n.name=a,_.NodeMetadata.set(n,{renamedIdentifier:!0})):r.push(n)}}}),this.replaceableIdentifiers.set(e,r)}}],[{key:"isProhibitedImportSpecifierNode",value:function(e){return v.NodeGuards.isImportSpecifierNode(e)&&e.imported.name===e.local.name}}]),t}(N.AbstractNodeTransformer);h=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IIdentifierObfuscatingReplacer)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],h),t.ImportDeclarationTransformer=h},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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=d.__importStar(r(16)),p=r(22),m=r(12),g=r(13),N=r(9),v=r(27),y=function(e){function t(e,r,n){var a;return(0,o.default)(this,t),(a=(0,i.default)(this,(0,s.default)(t).call(this,r,n))).identifierObfuscatingReplacer=e(p.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer),a}return(0,c.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case m.TransformationStage.Obfuscating:return{enter:function(e,r){if(r&&N.NodeGuards.isLabeledStatementNode(e))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){var r=v.NodeLexicalScopeUtils.getLexicalScope(e);return r?(this.storeLabeledStatementName(e,r),this.replaceLabeledStatementName(e,r),e):e}},{key:"storeLabeledStatementName",value:function(e,t){this.identifierObfuscatingReplacer.storeLocalName(e.label.name,t)}},{key:"replaceLabeledStatementName",value:function(e,t){var r=this;f.replace(e,{enter:function(e,n){if(n&&N.NodeGuards.isLabelIdentifierNode(e,n)){var o=r.identifierObfuscatingReplacer.replace(e.name,t);e.name=o.name}}})}}]),t}(g.AbstractNodeTransformer);y=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierObfuscatingReplacer)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object])],y),t.LabeledStatementTransformer=y},function(e,t,r){"use strict";var n=r(0),o=n(r(50)),a=n(r(1)),i=n(r(3)),s=n(r(6)),c=n(r(7)),d=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var u=r(4),l=r(2),f=r(5),p=r(57),m=r(12),g=r(13),N=r(9),v=r(17),y=r(11),_=function(e){function t(e,r,n){var o;return(0,a.default)(this,t),(o=(0,s.default)(this,(0,c.default)(t).call(this,r,n))).literalObfuscatingReplacerFactory=e,o}return(0,d.default)(t,e),(0,i.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case m.TransformationStage.Obfuscating:return{enter:function(e,r){if(r&&N.NodeGuards.isLiteralNode(e)&&!v.NodeMetadata.isReplacedLiteral(e))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){if(this.isProhibitedNode(e,t))return e;var r;switch((0,o.default)(e.value)){case"boolean":r=this.literalObfuscatingReplacerFactory(p.LiteralObfuscatingReplacer.BooleanLiteralObfuscatingReplacer).replace(e.value);break;case"number":r=this.literalObfuscatingReplacerFactory(p.LiteralObfuscatingReplacer.NumberLiteralObfuscatingReplacer).replace(e.value);break;case"string":r=this.literalObfuscatingReplacerFactory(p.LiteralObfuscatingReplacer.StringLiteralObfuscatingReplacer).replace(e.value);break;default:r=e}return y.NodeUtils.parentizeNode(r,t),r}},{key:"isProhibitedNode",value:function(e,t){return!(!N.NodeGuards.isPropertyNode(t)||t.key!==e)||!!N.NodeGuards.isImportDeclarationNode(t)}}]),t}(g.AbstractNodeTransformer);_=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IObfuscatingReplacer)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],_),t.LiteralTransformer=_},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(41),p=r(14),m=r(40),g=r(34),N=function(e){function t(e){var r;return(0,o.default)(this,t),(r=(0,i.default)(this,(0,s.default)(t).call(this,e))).numberLiteralCache=new Map,r}return(0,c.default)(t,e),(0,a.default)(t,[{key:"replace",value:function(e){var t;return this.numberLiteralCache.has(e)?t=this.numberLiteralCache.get(e):(t=m.NumberUtils.isCeil(e)?"".concat(g.Utils.hexadecimalPrefix).concat(m.NumberUtils.toHex(e)):String(e),this.numberLiteralCache.set(e,t)),p.NodeFactory.literalNode(e,t)}}]),t}(f.AbstractObfuscatingReplacer);N=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Object])],N),t.NumberLiteralObfuscatingReplacer=N},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=r(5),p=r(37),m=r(41),g=r(17),N=r(14),v=r(40),y=r(34),_=d=function(e){function t(e,r,n,a,c){var u;return(0,o.default)(this,t),(u=(0,i.default)(this,(0,s.default)(t).call(this,c))).nodesCache=new Map,u.stringLiteralHexadecimalIndexCache=new Map,u.stringArrayStorage=e,u.escapeSequenceEncoder=r,u.randomGenerator=n,u.cryptUtils=a,u.rc4Keys=u.randomGenerator.getRandomGenerator().n(function(){return u.randomGenerator.getRandomGenerator().string({length:d.rc4KeyLength})},d.rc4KeysCount),u}return(0,c.default)(t,e),(0,a.default)(t,[{key:"replace",value:function(e){if(this.isReservedString(e))return this.replaceWithReservedLiteralNode(e);var t=this.canUseStringArray(e),r="".concat(e,"-").concat(String(t));if(this.nodesCache.has(r)&&this.options.stringArrayEncoding!==p.StringArrayEncoding.Rc4)return this.nodesCache.get(r);var n=t?this.replaceWithStringArrayCallNode(e):this.replaceWithLiteralNode(e);return this.nodesCache.set(r,n),n}},{key:"canUseStringArray",value:function(e){return this.options.stringArray&&e.length>=d.minimumLengthForStringArray&&this.randomGenerator.getMathRandom()<=this.options.stringArrayThreshold}},{key:"getStringArrayHexadecimalIndex",value:function(e,t){if(this.stringLiteralHexadecimalIndexCache.has(e))return{fromCache:!0,index:this.stringLiteralHexadecimalIndexCache.get(e)};var r=v.NumberUtils.toHex(t),n="".concat(y.Utils.hexadecimalPrefix).concat(r);return this.stringLiteralHexadecimalIndexCache.set(e,n),{fromCache:!1,index:n}}},{key:"getEncodedValue",value:function(e){var t,r=null;switch(this.options.stringArrayEncoding){case p.StringArrayEncoding.Rc4:r=this.randomGenerator.getRandomGenerator().pickone(this.rc4Keys),t=this.cryptUtils.btoa(this.cryptUtils.rc4(e,r));break;case p.StringArrayEncoding.Base64:t=this.cryptUtils.btoa(e);break;default:t=e}return{encodedValue:t,key:r}}},{key:"replaceWithLiteralNode",value:function(e){return N.NodeFactory.literalNode(this.escapeSequenceEncoder.encode(e,this.options.unicodeEscapeSequence))}},{key:"replaceWithReservedLiteralNode",value:function(e){return N.NodeFactory.literalNode(this.escapeSequenceEncoder.encode(e,!1))}},{key:"replaceWithStringArrayCallNode",value:function(e){var t=this.getEncodedValue(e),r=t.encodedValue,n=t.key,o=this.escapeSequenceEncoder.encode(r,this.options.unicodeEscapeSequence),a=this.stringArrayStorage.getLength(),i=this.stringArrayStorage.getStorageId().split("|")[1],s=this.getStringArrayHexadecimalIndex(o,a),c=s.fromCache,u=s.index;c||this.stringArrayStorage.set(a,o);var l=[d.getHexadecimalLiteralNode(u)];n&&l.push(d.getRc4KeyLiteralNode(this.escapeSequenceEncoder.encode(n,this.options.unicodeEscapeSequence)));var f=N.NodeFactory.identifierNode(i);return g.NodeMetadata.set(f,{renamedIdentifier:!0}),N.NodeFactory.callExpressionNode(f,l)}},{key:"isReservedString",value:function(e){return!!this.options.reservedStrings.length&&this.options.reservedStrings.some(function(t){return null!==new RegExp(t,"g").exec(e)})}}],[{key:"getHexadecimalLiteralNode",value:function(e){var t=N.NodeFactory.literalNode(e);return g.NodeMetadata.set(t,{replacedLiteral:!0}),t}},{key:"getRc4KeyLiteralNode",value:function(e){var t=N.NodeFactory.literalNode(e);return g.NodeMetadata.set(t,{replacedLiteral:!0}),t}}]),t}(m.AbstractObfuscatingReplacer);_.minimumLengthForStringArray=3,_.rc4KeyLength=4,_.rc4KeysCount=50,_=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.TStringArrayStorage)),u.__param(1,l.inject(f.ServiceIdentifiers.IEscapeSequenceEncoder)),u.__param(2,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(3,l.inject(f.ServiceIdentifiers.ICryptUtils)),u.__param(4,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Object,Object,Object,Object,Object])],_),t.StringLiteralObfuscatingReplacer=_},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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=d.__importStar(r(16)),p=r(22),m=r(19),g=r(12),N=r(13),v=r(9),y=r(27),_=r(151),h=r(17),b=function(e){function t(e,r,n){var a;return(0,o.default)(this,t),(a=(0,i.default)(this,(0,s.default)(t).call(this,r,n))).replaceableIdentifiers=new Map,a.identifierObfuscatingReplacer=e(p.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer),a}return(0,c.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case g.TransformationStage.Obfuscating:return{enter:function(e,r){if(r&&v.NodeGuards.isVariableDeclarationNode(e)&&!v.NodeGuards.isExportNamedDeclarationNode(r))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){var r="var"===e.kind?y.NodeLexicalScopeUtils.getLexicalScope(e):_.NodeBlockLexicalScopeUtils.getLexicalScope(e);if(!r)return e;var n=r.type===m.NodeType.Program;if(!this.options.renameGlobals&&n)return e;var o="var"===e.kind?r:t;return this.storeVariableNames(e,r,n),this.replaceableIdentifiers.has(o)?this.replaceScopeCachedIdentifiers(e,r,o):this.replaceScopeIdentifiers(o,r),e}},{key:"storeVariableNames",value:function(e,t,r){var n=this;this.traverseDeclarationIdentifiers(e,function(e){r?n.identifierObfuscatingReplacer.storeGlobalName(e.name,t):n.identifierObfuscatingReplacer.storeLocalName(e.name,t)})}},{key:"replaceScopeCachedIdentifiers",value:function(e,t,r){var n=this,o=this.replaceableIdentifiers.get(r),a=[];this.traverseDeclarationIdentifiers(e,function(e){a.push(e.name)}),a.forEach(function(e){var r=o.get(e);if(r)for(var a=r.length,i=0;i1&&void 0!==arguments[1]?arguments[1]:1/0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;if(n.length>=r)return n;var a=t.parentNode;if(!a)throw new ReferenceError("`parentNode` property of given node is `undefined`");return i.NodeGuards.isNodeWithBlockLexicalScope(t)&&n.push(t),t!==a?e.getLexicalScopesRecursive(a,r,n,++o):n}}]),e}();t.NodeBlockLexicalScopeUtils=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(2),o=r(5),a=r(153),i=r(156);t.optionsModule=new n.ContainerModule(function(e){e(o.ServiceIdentifiers.IOptions).to(a.Options).inSingletonScope(),e(o.ServiceIdentifiers.IOptionsNormalizer).to(i.OptionsNormalizer).inSingletonScope()})},function(e,t,r){"use strict";var n=r(0)(r(1));Object.defineProperty(t,"__esModule",{value:!0});var o,a=r(4),i=r(2),s=r(5),c=r(154),d=r(35),u=r(23),l=r(36),f=r(37),p=r(46),m=r(155),g=o=function e(t,r){(0,n.default)(this,e),Object.assign(this,p.DEFAULT_PRESET,t);var a=c.validateSync(this,o.validatorOptions);if(a.length)throw new ReferenceError("Validation failed. errors:\n".concat(m.ValidationErrorsFormatter.format(a)));Object.assign(this,r.normalize(this))};g.validatorOptions={validationError:{target:!1}},a.__decorate([c.IsBoolean(),a.__metadata("design:type",Boolean)],g.prototype,"compact",void 0),a.__decorate([c.IsBoolean(),a.__metadata("design:type",Boolean)],g.prototype,"controlFlowFlattening",void 0),a.__decorate([c.IsNumber(),c.Min(0),c.Max(1),a.__metadata("design:type",Number)],g.prototype,"controlFlowFlatteningThreshold",void 0),a.__decorate([c.IsBoolean(),a.__metadata("design:type",Boolean)],g.prototype,"deadCodeInjection",void 0),a.__decorate([c.IsNumber(),a.__metadata("design:type",Number)],g.prototype,"deadCodeInjectionThreshold",void 0),a.__decorate([c.IsBoolean(),a.__metadata("design:type",Boolean)],g.prototype,"debugProtection",void 0),a.__decorate([c.IsBoolean(),a.__metadata("design:type",Boolean)],g.prototype,"debugProtectionInterval",void 0),a.__decorate([c.IsBoolean(),a.__metadata("design:type",Boolean)],g.prototype,"disableConsoleOutput",void 0),a.__decorate([c.IsArray(),c.ArrayUnique(),c.IsString({each:!0}),a.__metadata("design:type",Array)],g.prototype,"domainLock",void 0),a.__decorate([c.IsIn([d.IdentifierNamesGenerator.HexadecimalIdentifierNamesGenerator,d.IdentifierNamesGenerator.MangledIdentifierNamesGenerator]),a.__metadata("design:type",String)],g.prototype,"identifierNamesGenerator",void 0),a.__decorate([c.IsString(),a.__metadata("design:type",String)],g.prototype,"identifiersPrefix",void 0),a.__decorate([c.IsString(),a.__metadata("design:type",String)],g.prototype,"inputFileName",void 0),a.__decorate([c.IsBoolean(),a.__metadata("design:type",Boolean)],g.prototype,"log",void 0),a.__decorate([c.IsBoolean(),a.__metadata("design:type",Boolean)],g.prototype,"renameGlobals",void 0),a.__decorate([c.IsArray(),c.ArrayUnique(),c.IsString({each:!0}),a.__metadata("design:type",Array)],g.prototype,"reservedNames",void 0),a.__decorate([c.IsArray(),c.ArrayUnique(),c.IsString({each:!0}),a.__metadata("design:type",Array)],g.prototype,"reservedStrings",void 0),a.__decorate([c.IsBoolean(),a.__metadata("design:type",Boolean)],g.prototype,"rotateStringArray",void 0),a.__decorate([c.IsNumber(),a.__metadata("design:type",Number)],g.prototype,"seed",void 0),a.__decorate([c.IsBoolean(),a.__metadata("design:type",Boolean)],g.prototype,"selfDefending",void 0),a.__decorate([c.IsBoolean(),a.__metadata("design:type",Boolean)],g.prototype,"sourceMap",void 0),a.__decorate([c.IsString(),c.ValidateIf(function(e){return Boolean(e.sourceMapBaseUrl)}),c.IsUrl({require_protocol:!0,require_tld:!1,require_valid_protocol:!0}),a.__metadata("design:type",String)],g.prototype,"sourceMapBaseUrl",void 0),a.__decorate([c.IsString(),a.__metadata("design:type",String)],g.prototype,"sourceMapFileName",void 0),a.__decorate([c.IsIn([l.SourceMapMode.Inline,l.SourceMapMode.Separate]),a.__metadata("design:type",String)],g.prototype,"sourceMapMode",void 0),a.__decorate([c.IsBoolean(),a.__metadata("design:type",Boolean)],g.prototype,"stringArray",void 0),a.__decorate([c.IsIn([!0,!1,f.StringArrayEncoding.Base64,f.StringArrayEncoding.Rc4]),a.__metadata("design:type",Object)],g.prototype,"stringArrayEncoding",void 0),a.__decorate([c.IsNumber(),c.Min(0),c.Max(1),a.__metadata("design:type",Number)],g.prototype,"stringArrayThreshold",void 0),a.__decorate([c.IsIn([u.ObfuscationTarget.Browser,u.ObfuscationTarget.BrowserNoEval,u.ObfuscationTarget.Node]),a.__metadata("design:type",String)],g.prototype,"target",void 0),a.__decorate([c.IsBoolean(),a.__metadata("design:type",Boolean)],g.prototype,"transformObjectKeys",void 0),a.__decorate([c.IsBoolean(),a.__metadata("design:type",Boolean)],g.prototype,"unicodeEscapeSequence",void 0),g=o=a.__decorate([i.injectable(),a.__param(0,i.inject(s.ServiceIdentifiers.TInputOptions)),a.__param(1,i.inject(s.ServiceIdentifiers.IOptionsNormalizer)),a.__metadata("design:paramtypes",[Object,Object])],g),t.Options=g},function(e,t){e.exports=require("class-validator")},function(e,t,r){"use strict";var n=r(0),o=n(r(28)),a=n(r(1)),i=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(){(0,a.default)(this,e)}return(0,i.default)(e,null,[{key:"format",value:function(t){return t.reduce(function(t,r){return(0,o.default)(t).concat([e.formatWithNestedConstraints(r)])},[]).join("\n")}},{key:"formatWithNestedConstraints",value:function(e){var t=e.constraints,r="`".concat(e.property,"` errors:\n"),n=Object.keys(t).map(function(e){return" - ".concat(t[e],"\n")}).join();return"".concat(r).concat(n)}}]),e}();t.ValidationErrorsFormatter=s},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i,s=r(4),c=r(2),d=r(157),u=r(158),l=r(159),f=r(160),p=r(161),m=r(162),g=r(163),N=r(164),v=r(165),y=r(166),_=r(167),h=i=function(){function e(){(0,o.default)(this,e)}return(0,a.default)(e,[{key:"normalize",value:function(e){var t=Object.assign({},e),r=!0,n=!1,o=void 0;try{for(var a,s=i.normalizerRules[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){t=(0,a.value)(t)}}catch(e){n=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(n)throw o}}return t}}]),e}();h.normalizerRules=[d.ControlFlowFlatteningThresholdRule,u.DeadCodeInjectionRule,l.DeadCodeInjectionThresholdRule,f.DomainLockRule,p.InputFileNameRule,m.SelfDefendingRule,g.SourceMapBaseUrlRule,N.SourceMapFileNameRule,v.StringArrayRule,y.StringArrayEncodingRule,_.StringArrayThresholdRule],h=i=s.__decorate([c.injectable()],h),t.OptionsNormalizer=h},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ControlFlowFlatteningThresholdRule=function(e){return 0===e.controlFlowFlatteningThreshold&&(e=Object.assign({},e,{controlFlowFlattening:!1,controlFlowFlatteningThreshold:0})),e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(46);t.DeadCodeInjectionRule=function(e){return e.deadCodeInjection&&((e=Object.assign({},e,{deadCodeInjection:!0,stringArray:!0})).stringArrayThreshold||(e=Object.assign({},e,{stringArray:!0,stringArrayThreshold:n.DEFAULT_PRESET.stringArrayThreshold}))),e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DeadCodeInjectionThresholdRule=function(e){return 0===e.deadCodeInjectionThreshold&&(e=Object.assign({},e,{deadCodeInjection:!1,deadCodeInjectionThreshold:0})),e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(34);t.DomainLockRule=function(e){if(e.domainLock.length){var t=[],r=!0,o=!1,a=void 0;try{for(var i,s=e.domainLock[Symbol.iterator]();!(r=(i=s.next()).done);r=!0){var c=i.value;t.push(n.Utils.extractDomainFrom(c))}}catch(e){o=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw a}}e=Object.assign({},e,{domainLock:t})}return e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InputFileNameRule=function(e){var t=e.inputFileName;return t&&(t=t.replace(/^\/+/,"").split(".").slice(0,-1).join(".")||t,e=Object.assign({},e,{inputFileName:"".concat(t,".js")})),e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SelfDefendingRule=function(e){return e.selfDefending&&(e=Object.assign({},e,{compact:!0,selfDefending:!0})),e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SourceMapBaseUrlRule=function(e){var t=e.sourceMapBaseUrl;return e.sourceMapFileName?(t&&!t.endsWith("/")&&(e=Object.assign({},e,{sourceMapBaseUrl:"".concat(t,"/")})),e):e=Object.assign({},e,{sourceMapBaseUrl:""})}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SourceMapFileNameRule=function(e){var t=e.sourceMapFileName;return t&&(t=t.replace(/^\/+/,"").split(".")[0],e=Object.assign({},e,{sourceMapFileName:"".concat(t,".js.map")})),e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayRule=function(e){return e.stringArray||(e=Object.assign({},e,{rotateStringArray:!1,stringArray:!1,stringArrayEncoding:!1,stringArrayThreshold:0})),e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(37);t.StringArrayEncodingRule=function(e){return!0===e.stringArrayEncoding&&(e=Object.assign({},e,{stringArrayEncoding:n.StringArrayEncoding.Base64})),e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayThresholdRule=function(e){return 0===e.stringArrayThreshold&&(e=Object.assign({},e,{rotateStringArray:!1,stringArray:!1,stringArrayEncoding:!1,stringArrayThreshold:0})),e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(20),o=r(2),a=r(5),i=r(29),s=r(58),c=r(169),d=r(170),u=r(171),l=r(172),f=r(173),p=r(175),m=r(176),g=r(177);t.preparingTransformersModule=new o.ContainerModule(function(e){e(a.ServiceIdentifiers.INodeTransformer).to(d.CommentsTransformer).whenTargetNamed(i.NodeTransformer.CommentsTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(l.CustomNodesTransformer).whenTargetNamed(i.NodeTransformer.CustomNodesTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(f.EvalCallExpressionTransformer).whenTargetNamed(i.NodeTransformer.EvalCallExpressionTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(p.MetadataTransformer).whenTargetNamed(i.NodeTransformer.MetadataTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(m.ObfuscatingGuardsTransformer).whenTargetNamed(i.NodeTransformer.ObfuscatingGuardsTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(g.ParentificationTransformer).whenTargetNamed(i.NodeTransformer.ParentificationTransformer),e(a.ServiceIdentifiers.INodeGuard).to(c.BlackListObfuscatingGuard).inSingletonScope().whenTargetNamed(s.ObfuscatingGuard.BlackListNodeGuard),e(a.ServiceIdentifiers.INodeGuard).to(u.ConditionalCommentObfuscatingGuard).inSingletonScope().whenTargetNamed(s.ObfuscatingGuard.ConditionalCommentNodeGuard),e(a.ServiceIdentifiers.Factory__INodeGuard).toFactory(n.InversifyContainerFacade.getCacheFactory(a.ServiceIdentifiers.INodeGuard))})},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i,s=r(4),c=r(2),d=r(9),u=i=function(){function e(){(0,o.default)(this,e),this.blackListGuardsLength=i.blackListGuards.length}return(0,a.default)(e,[{key:"check",value:function(e){for(var t=0;t=0?t:null}},{key:"getLength",value:function(){return this.storageLength}},{key:"getStorage",value:function(){return this.storage}},{key:"getStorageId",value:function(){return this.storageId}},{key:"mergeWith",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.storage=(0,o.default)(this.storage).concat((0,o.default)(e.getStorage())),t&&(this.storageId=e.getStorageId())}},{key:"set",value:function(e,t){e===this.storageLength?this.storage.push(t):this.storage.splice(e,0,t),this.storageLength++}}]),e}();s.__decorate([u.initializable(),s.__metadata("design:type",Array)],l.prototype,"storage",void 0),s.__decorate([u.initializable(),s.__metadata("design:type",String)],l.prototype,"storageId",void 0),s.__decorate([c.postConstruct(),s.__metadata("design:type",Function),s.__metadata("design:paramtypes",[]),s.__metadata("design:returntype",void 0)],l.prototype,"initialize",null),l=s.__decorate([c.injectable(),s.__param(0,c.inject(d.ServiceIdentifiers.IRandomGenerator)),s.__param(1,c.inject(d.ServiceIdentifiers.IOptions)),s.__metadata("design:paramtypes",[Object,Object])],l),t.ArrayStorage=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(2),o=r(5),a=r(184),i=r(185),s=r(188),c=r(60);t.utilsModule=new n.ContainerModule(function(e){e(o.ServiceIdentifiers.IArrayUtils).to(a.ArrayUtils).inSingletonScope(),e(o.ServiceIdentifiers.IRandomGenerator).to(c.RandomGenerator).inSingletonScope(),e(o.ServiceIdentifiers.ICryptUtils).to(i.CryptUtils).inSingletonScope(),e(o.ServiceIdentifiers.IEscapeSequenceEncoder).to(s.EscapeSequenceEncoder).inSingletonScope()})},function(e,t,r){"use strict";var n=r(0),o=n(r(28)),a=n(r(1)),i=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var s=r(4),c=r(2),d=r(5),u=function(){function e(t){(0,a.default)(this,e),this.randomGenerator=t}return(0,i.default)(e,[{key:"createWithRange",value:function(e){for(var t=[],r=0;r>8-o%1*8)){if((n=e.charCodeAt(o+=.75))>255)throw new Error("'btoa' failed: The string to be encoded contains characters outside of the Latin1 range.");r=r<<8|n}return t}},{key:"hideString",value:function(e,t){var r=this,n=this.randomGenerator.getRandomGenerator().string({length:t,pool:d.RandomGenerator.randomGeneratorPool}).replace(new RegExp("[".concat(e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"),"]"),"g"),""),o=n.split("");return this.randomGenerator.getRandomGenerator().shuffle(o),[function(e,t){for(var n=-1,o=-1,a="";n"),c="...".concat(o.substring(a,i).replace(/^\s+/,""),"...");throw new Error("Line ".concat(n.line,": ").concat(r,"\n").concat(s," ").concat(c))}}]),e}();d.colorError=c.default.red,d.nearestSymbolsCount=15,d.sourceTypes=["script","module"],t.EspreeFacade=d},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(6)),i=n(r(7)),s=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var c=r(4),d=r(2),u=r(193);d.decorate(d.injectable(),u.EventEmitter);var l=function(e){function t(){return(0,o.default)(this,t),(0,a.default)(this,(0,i.default)(t).apply(this,arguments))}return(0,s.default)(t,e),t}(u.EventEmitter);l=c.__decorate([d.injectable()],l),t.ObfuscationEventEmitter=l},function(e,t){e.exports=require("events")},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i=r(4),s=r(2),c=r(5),d=r(10),u=r(36),l=function(){function e(t,r){(0,o.default)(this,e),this.cryptUtils=t,this.options=r}return(0,a.default)(e,[{key:"initialize",value:function(e,t){this.obfuscatedCode=e,this.sourceMap=t}},{key:"getObfuscatedCode",value:function(){return this.correctObfuscatedCode()}},{key:"getSourceMap",value:function(){return this.sourceMap}},{key:"toString",value:function(){return this.obfuscatedCode}},{key:"correctObfuscatedCode",value:function(){if(!this.sourceMap)return this.obfuscatedCode;var e=this.options.sourceMapBaseUrl+this.options.sourceMapFileName,t="//# sourceMappingURL=";switch(this.options.sourceMapMode){case u.SourceMapMode.Inline:t+="data:application/json;base64,".concat(this.cryptUtils.btoa(this.sourceMap));break;case u.SourceMapMode.Separate:default:if(!e)return this.obfuscatedCode;t+=e}return"".concat(this.obfuscatedCode,"\n").concat(t)}}]),e}();i.__decorate([d.initializable(),i.__metadata("design:type",String)],l.prototype,"obfuscatedCode",void 0),i.__decorate([d.initializable(),i.__metadata("design:type",String)],l.prototype,"sourceMap",void 0),l=i.__decorate([s.injectable(),i.__param(0,s.inject(c.ServiceIdentifiers.ICryptUtils)),i.__param(1,s.inject(c.ServiceIdentifiers.IOptions)),i.__metadata("design:paramtypes",[Object,Object])],l),t.ObfuscatedCode=l},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(t,r){(0,o.default)(this,e),this.sourceCode=t,this.sourceMap=r}return(0,a.default)(e,[{key:"getSourceCode",value:function(){return this.sourceCode}},{key:"getSourceMap",value:function(){return this.sourceMap}},{key:"toString",value:function(){return this.sourceCode}}]),e}();t.SourceCode=i},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i=r(4),s=r(2),c=r(5),d=i.__importStar(r(16)),u=r(197),l=r(9),f=r(17),p=function(){function e(t){(0,o.default)(this,e),this.nodeTransformerFactory=t}return(0,a.default)(e,[{key:"transform",value:function(e,t,r){if(!t.length)return e;for(var n,o=[],a=[],i=t.length,s=0;s0&&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(o,!1,r),c(a,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(a,e),d=Reflect.getMetadata(i,e),u=c.includes(r)||s.has(r)||d.has(r);if(!u){var l=e[r];if("function"==typeof l){var f=Object.getOwnPropertyDescriptor(e,r)||n,p=f.value;Object.defineProperty(e,r,Object.assign({},f,{value:function(){if(!Reflect.getMetadata(o,this))throw new Error("Class should be initialized with `".concat(t,"()` method"));return p.apply(this,arguments)}})),d.add(r)}}})}(r,e),function(e,t,r){var a=Object.getOwnPropertyDescriptor(e,t)||n,i=a.value;Object.defineProperty(e,t,Object.assign({},a,{value:function(){Reflect.defineMetadata(o,!0,this);var e=i.apply(this,arguments);return this[r],e}}))}(r,e,d),function(e,t){Reflect.getMetadata(a,e).add(t);var r="_".concat(t.toString()),o=Object.getOwnPropertyDescriptor(e,r)||n;return Object.defineProperty(e,t,Object.assign({},o,{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}})),o}(r,d)}}},function(e,t,r){"use strict";var n=r(0),o=n(r(50)),a=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,a.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 a,i=t[n];a=null===i||i instanceof RegExp?i:Array.isArray(i)?i.map(e.cloneRecursive):"object"===(0,o.default)(i)?e.cloneRecursive(i):i,r[n]=a}}),r}}]),e}();t.NodeUtils=p},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){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 o=r(4),a=r(2),i=r(5),s=function e(t,r){(0,n.default)(this,e),this.randomGenerator=t,this.options=r};s=o.__decorate([a.injectable(),o.__param(0,a.inject(i.ServiceIdentifiers.IRandomGenerator)),o.__param(1,a.inject(i.ServiceIdentifiers.IOptions)),o.__metadata("design:paramtypes",[Object,Object])],s),t.AbstractNodeTransformer=s},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i=r(4).__importStar(r(44)),s=r(19),c=function(){function e(){(0,o.default)(this,e)}return(0,a.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({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=r(0),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i,s=r(4),c=r(2),d=r(5),u=r(94),l=r(95),f=i=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,a.default)(e,[{key:"getNode",value:function(){return this.cachedNode||(this.cachedNode=this.getNodeStructure()),this.cachedNode}},{key:"getGlobalVariableTemplate",value:function(){return this.randomGenerator.getRandomGenerator().pickone(i.globalVariableTemplateFunctions)}}]),e}();f.globalVariableTemplateFunctions=[u.GlobalVariableTemplate1(),l.GlobalVariableTemplate2()],f=i=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),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){(0,o.default)(this,e)}return(0,a.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";var n=r(0),o=n(r(65)),a=n(r(1)),i=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var s=r(2),c=r(5),d=r(66),u=r(71),l=r(79),f=r(87),p=r(133),m=r(134),g=r(137),N=r(138),v=r(152),y=r(168),_=r(178),h=r(183),b=r(189),S=r(63),I=r(192),C=r(194),F=r(195),O=r(196),j=function(){function e(){(0,a.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 F.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(O.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 o=t.container.getNamed(e,n);return r.set(n,o),o}}}},{key:"getConstructorFactory",value:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n1&&void 0!==arguments[1]?arguments[1]:1/0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;if(n.length>=r)return n;var a=t.parentNode;if(!a)throw new ReferenceError("`parentNode` property of given node is `undefined`");return(i.NodeGuards.isProgramNode(t)||i.NodeGuards.isNodeWithLexicalScopeStatements(t,a)&&o>0)&&n.push(t),t!==a?e.getParentNodesWithStatementsRecursive(a,r,n,++o):n}},{key:"getSiblingStatementByOffset",value:function(t,r){var n=e.getScopeOfNode(t),o=i.NodeGuards.isSwitchCaseNode(n)?n.consequent:n.body;return o[o.indexOf(t)+r]||null}}]),e}();t.NodeStatementUtils=s},function(e,t,r){"use strict";var n=r(0),o=n(r(28)),a=n(r(1)),i=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var s=r(9),c=function(){function e(){(0,a.default)(this,e)}return(0,i.default)(e,null,[{key:"append",value:function(t,r){r=e.parentizeScopeStatementsBeforeAppend(t,r),e.setScopeStatements(t,(0,o.default)(e.getScopeStatements(t)).concat((0,o.default)(r)))}},{key:"appendToOptimalBlockScope",value:function(t,r,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=t.length?e.getOptimalBlockScope(t,o):r;e.prepend(a,n)}},{key:"getOptimalBlockScope",value:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,o=t[r];if(n<=0)throw new Error("Invalid `deep` argument value. Value should be bigger then 0.");return n>1&&o.stackTrace.length?e.getOptimalBlockScope(o.stackTrace,0,--n):o.callee}},{key:"insertAfter",value:function(t,r,n){var o=e.getScopeStatements(t).indexOf(n);e.insertAtIndex(t,r,o+1)}},{key:"insertAtIndex",value:function(t,r,n){r=e.parentizeScopeStatementsBeforeAppend(t,r),e.setScopeStatements(t,(0,o.default)(e.getScopeStatements(t).slice(0,n)).concat((0,o.default)(r),(0,o.default)(e.getScopeStatements(t).slice(n))))}},{key:"prepend",value:function(t,r){r=e.parentizeScopeStatementsBeforeAppend(t,r),e.setScopeStatements(t,(0,o.default)(r).concat((0,o.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),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i=r(9),s=function(){function e(){(0,o.default)(this,e)}return(0,a.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]:[],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;if(n.length>=r)return n;var a=t.parentNode;if(!a)throw new ReferenceError("`parentNode` property of given node is `undefined`");return i.NodeGuards.isNodeWithLexicalScope(t)&&n.push(t),t!==a?e.getLexicalScopesRecursive(a,r,n,++o):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"}(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),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0}),r(62);var i=r(5),s=r(20),c=function(){function e(){(0,o.default)(this,e)}return(0,a.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).obfuscate(e);return r.unload(),n}}]),e}();c.version="0.18.3",t.JavaScriptObfuscator=c},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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,o.default)(this,e),this.identifierNamesGenerator=t(n),this.randomGenerator=r,this.options=n}return(0,a.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),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){(0,o.default)(this,e)}return(0,a.default)(e,null,[{key:"extractDomainFrom",value:function(e){return(e.indexOf("://")>-1||0===e.indexOf("//")?e.split("/")[2]:e.split("/")[0]).split(":")[0]}}]),e}();i.hexadecimalPrefix="0x",t.Utils=i},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),o=r(23),a=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:a.SourceMapMode.Separate,stringArray:!1,stringArrayEncoding:!1,stringArrayThreshold:0,target:o.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),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){(0,o.default)(this,e)}return(0,a.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 o=r(4),a=r(2),i=r(5),s=function e(t){(0,n.default)(this,e),this.options=t};s=o.__decorate([a.injectable(),o.__param(0,a.inject(i.ServiceIdentifiers.IOptions)),o.__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 o=r(4),a=r(2),i=function e(){(0,n.default)(this,e)};i=o.__decorate([a.injectable()],i),t.AbstractCalleeDataExtractor=i},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i,s=r(4),c=r(2),d=r(5),u=i=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,a.default)(e,[{key:"insertCustomNodeToControlFlowStorage",value:function(e,t,r,n){var o=this,a=t.getStorageId(),s=i.getStorageKeysByIdForCurrentStorage(this.replacerDataByControlFlowStorageId,a),c=s.get(r);if(this.randomGenerator.getMathRandom()1&&void 0!==arguments[1]&&arguments[1];this.storage=new Map((0,o.default)(this.storage).concat((0,o.default)(e.getStorage()))),t&&(this.storageId=e.getStorageId())}},{key:"set",value:function(e,t){this.storage.set(e,t)}}]),e}();c.__decorate([l.initializable(),c.__metadata("design:type",String)],f.prototype,"storageId",void 0),c.__decorate([l.initializable(),c.__metadata("design:type",Map)],f.prototype,"storage",void 0),c.__decorate([d.postConstruct(),c.__metadata("design:type",Function),c.__metadata("design:paramtypes",[]),c.__metadata("design:returntype",void 0)],f.prototype,"initialize",null),f=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])],f),t.MapStorage=f},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i,s=r(4),c=r(2),d=r(5),u=s.__importDefault(r(186)),l=r(187),f=r(10),p=i=function(){function e(t,r){(0,o.default)(this,e),this.sourceCode=t,this.options=r}return(0,a.default)(e,[{key:"initialize",value:function(){var e,t,r,n=this;this.seed=0!==this.options.seed?this.options.seed:(e=0,t=999999999,Math.floor(Math.random()*(t-e+1)+e)),this.randomGenerator=new l.Chance((r=u.default(n.sourceCode.getSourceCode()),n.seed+Number(r.replace(/\D/g,""))))}},{key:"getMathRandom",value:function(){return this.getRandomInteger(0,99999)/1e5}},{key:"getRandomGenerator",value:function(){return this.randomGenerator}},{key:"getRandomInteger",value:function(e,t){return this.getRandomGenerator().integer({min:e,max:t})}},{key:"getRandomString",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.randomGeneratorPool;return this.getRandomGenerator().string({length:e,pool:t})}},{key:"getSeed",value:function(){return this.seed}}]),e}();p.randomGeneratorPool="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",s.__decorate([f.initializable(),s.__metadata("design:type",Object)],p.prototype,"randomGenerator",void 0),s.__decorate([f.initializable(),s.__metadata("design:type",Number)],p.prototype,"seed",void 0),s.__decorate([c.postConstruct(),s.__metadata("design:type",Function),s.__metadata("design:paramtypes",[]),s.__metadata("design:returntype",void 0)],p.prototype,"initialize",null),p=i=s.__decorate([c.injectable(),s.__param(0,c.inject(d.ServiceIdentifiers.ISourceCode)),s.__param(1,c.inject(d.ServiceIdentifiers.IOptions)),s.__metadata("design:paramtypes",[Object,Object])],p),t.RandomGenerator=p},function(e,t){e.exports=require("chalk")},function(e,t){e.exports=require("reflect-metadata")},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i,s=r(4),c=r(2),d=r(5),u=s.__importDefault(r(61)),l=r(64),f=i=function(){function e(t){(0,o.default)(this,e),this.options=t}return(0,a.default)(e,[{key:"info",value:function(e,t){this.options.log&&i.log(i.colorInfo,l.LoggingPrefix.Base,e,t)}},{key:"success",value:function(e,t){this.options.log&&i.log(i.colorSuccess,l.LoggingPrefix.Base,e,t)}},{key:"warn",value:function(e,t){this.options.log&&i.log(i.colorWarn,l.LoggingPrefix.Base,e,t)}}],[{key:"log",value:function(e,t,r,n){var o=e("\n".concat(t," ").concat(r));console.log(o,n||"")}}]),e}();f.colorInfo=u.default.cyan,f.colorSuccess=u.default.green,f.colorWarn=u.default.yellow,f=i=s.__decorate([c.injectable(),s.__param(0,c.inject(d.ServiceIdentifiers.IOptions)),s.__metadata("design:paramtypes",[Object])],f),t.Logger=f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.Base="[javascript-obfuscator]",e.CLI="[javascript-obfuscator-cli]"}(t.LoggingPrefix||(t.LoggingPrefix={}))},function(e,t){e.exports=require("@babel/runtime/helpers/construct")},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(20),o=r(2),a=r(5),i=r(47),s=r(67),c=r(68),d=r(69),u=r(70);t.analyzersModule=new o.ContainerModule(function(e){e(a.ServiceIdentifiers.IStackTraceAnalyzer).to(u.StackTraceAnalyzer).inSingletonScope(),e(a.ServiceIdentifiers.ICalleeDataExtractor).to(s.FunctionDeclarationCalleeDataExtractor).whenTargetNamed(i.CalleeDataExtractor.FunctionDeclarationCalleeDataExtractor),e(a.ServiceIdentifiers.ICalleeDataExtractor).to(c.FunctionExpressionCalleeDataExtractor).whenTargetNamed(i.CalleeDataExtractor.FunctionExpressionCalleeDataExtractor),e(a.ServiceIdentifiers.ICalleeDataExtractor).to(d.ObjectExpressionCalleeDataExtractor).whenTargetNamed(i.CalleeDataExtractor.ObjectExpressionCalleeDataExtractor),e(a.ServiceIdentifiers.Factory__ICalleeDataExtractor).toFactory(n.InversifyContainerFacade.getCacheFactory(a.ServiceIdentifiers.ICalleeDataExtractor))})},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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=d.__importStar(r(16)),f=r(42),p=r(9),m=r(24),g=function(e){function t(){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).apply(this,arguments))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"extract",value:function(e,t){if(!p.NodeGuards.isIdentifierNode(t))return null;var r=this.getCalleeBlockStatement(m.NodeStatementUtils.getParentNodeWithStatements(e[0]),t.name);return r?{callee:r,name:t.name}:null}},{key:"getCalleeBlockStatement",value:function(e,t){var r=null;return l.traverse(e,{enter:function(e){if(p.NodeGuards.isFunctionDeclarationNode(e)&&e.id.name===t)return r=e.body,l.VisitorOption.Break}}),r}}]),t}(f.AbstractCalleeDataExtractor);g=d.__decorate([u.injectable()],g),t.FunctionDeclarationCalleeDataExtractor=g},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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=d.__importStar(r(16)),f=r(42),p=r(9),m=r(24),g=function(e){function t(){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).apply(this,arguments))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"extract",value:function(e,t){var r=null;return p.NodeGuards.isIdentifierNode(t)&&(r=this.getCalleeBlockStatement(m.NodeStatementUtils.getParentNodeWithStatements(e[0]),t.name)),p.NodeGuards.isFunctionExpressionNode(t)&&(r=t.body),r?{callee:r,name:t.name||null}:null}},{key:"getCalleeBlockStatement",value:function(e,t){var r=null;return l.traverse(e,{enter:function(e,n){if(p.NodeGuards.isFunctionExpressionNode(e)&&n&&p.NodeGuards.isVariableDeclaratorNode(n)&&p.NodeGuards.isIdentifierNode(n.id)&&n.id.name===t)return r=e.body,l.VisitorOption.Break}}),r}}]),t}(f.AbstractCalleeDataExtractor);g=d.__decorate([u.injectable()],g),t.FunctionExpressionCalleeDataExtractor=g},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=u.__importStar(r(16)),p=r(42),m=r(9),g=r(24),N=d=function(e){function t(){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).apply(this,arguments))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"extract",value:function(e,t){if(!m.NodeGuards.isMemberExpressionNode(t))return null;var r=this.createObjectMembersCallsChain([],t);if(!r.length)return null;var n=r[r.length-1],o=this.getCalleeBlockStatement(g.NodeStatementUtils.getParentNodeWithStatements(e[0]),r);return o?{callee:o,name:n}:null}},{key:"createObjectMembersCallsChain",value:function(e,t){if(m.NodeGuards.isIdentifierNode(t.property)&&!1===t.computed)e.unshift(t.property.name);else{if(!m.NodeGuards.isLiteralNode(t.property)||"string"!=typeof t.property.value&&"number"!=typeof t.property.value)return e;e.unshift(t.property.value)}return m.NodeGuards.isMemberExpressionNode(t.object)?this.createObjectMembersCallsChain(e,t.object):(m.NodeGuards.isIdentifierNode(t.object)&&e.unshift(t.object.name),e)}},{key:"getCalleeBlockStatement",value:function(e,t){var r=this,n=t.shift();if(!n)return null;var o=null;return f.traverse(e,{enter:function(e){if(m.NodeGuards.isVariableDeclaratorNode(e)&&m.NodeGuards.isIdentifierNode(e.id)&&e.init&&m.NodeGuards.isObjectExpressionNode(e.init)&&e.id.name===n)return o=r.findCalleeBlockStatement(e.init.properties,t),f.VisitorOption.Break}}),o}},{key:"findCalleeBlockStatement",value:function(e,t){var r=t.shift();if(!r)return null;var n=!0,o=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(n=(i=s.next()).done);n=!0){var c=i.value;if(d.isValidTargetPropertyNode(c,r)){if(m.NodeGuards.isObjectExpressionNode(c.value))return this.findCalleeBlockStatement(c.value.properties,t);if(m.NodeGuards.isFunctionExpressionNode(c.value))return c.value.body}}}catch(e){o=!0,a=e}finally{try{n||null==s.return||s.return()}finally{if(o)throw a}}return null}}],[{key:"isValidTargetPropertyNode",value:function(e,t){if(!e.key)return!1;var r=m.NodeGuards.isIdentifierNode(e.key)&&e.key.name===t,n=m.NodeGuards.isLiteralNode(e.key)&&Boolean(e.key.value)&&e.key.value===t;return r||n}}]),t}(p.AbstractCalleeDataExtractor);N=d=u.__decorate([l.injectable()],N),t.ObjectExpressionCalleeDataExtractor=N},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i,s=r(4),c=r(2),d=r(5),u=s.__importStar(r(16)),l=r(47),f=r(9),p=r(24),m=i=function(){function e(t){(0,o.default)(this,e),this.calleeDataExtractorFactory=t}return(0,a.default)(e,[{key:"analyze",value:function(e){return this.analyzeRecursive(e.body)}},{key:"analyzeRecursive",value:function(e){for(var t=this,r=i.getLimitIndex(e.length),n=[],o=e.length,a=function(o){if(o>r)return"break";var a=e[o];u.traverse(a,{enter:function(r){if(f.NodeGuards.isCallExpressionNode(r))return a.parentNode!==p.NodeStatementUtils.getParentNodeWithStatements(r)?u.VisitorOption.Skip:void t.analyzeCallExpressionNode(n,e,r)}})},s=0;sr&&(n=Math.round(r+t*i.limitThreshold))>t&&(n=t),n}}]),e}();m.calleeDataExtractorsList=[l.CalleeDataExtractor.FunctionDeclarationCalleeDataExtractor,l.CalleeDataExtractor.FunctionExpressionCalleeDataExtractor,l.CalleeDataExtractor.ObjectExpressionCalleeDataExtractor],m.limitThresholdActivationLength=25,m.limitThreshold=.002,m=i=s.__decorate([c.injectable(),s.__param(0,c.inject(d.ServiceIdentifiers.Factory__ICalleeDataExtractor)),s.__metadata("design:paramtypes",[Function])],m),t.StackTraceAnalyzer=m},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(20),o=r(2),a=r(5),i=r(48),s=r(29),c=r(72),d=r(73),u=r(74),l=r(75),f=r(76),p=r(77),m=r(78);t.controlFlowTransformersModule=new o.ContainerModule(function(e){e(a.ServiceIdentifiers.INodeTransformer).to(d.BlockStatementControlFlowTransformer).whenTargetNamed(s.NodeTransformer.BlockStatementControlFlowTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(l.DeadCodeInjectionTransformer).whenTargetNamed(s.NodeTransformer.DeadCodeInjectionTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(f.FunctionControlFlowTransformer).whenTargetNamed(s.NodeTransformer.FunctionControlFlowTransformer),e(a.ServiceIdentifiers.IControlFlowReplacer).to(c.BinaryExpressionControlFlowReplacer).whenTargetNamed(i.ControlFlowReplacer.BinaryExpressionControlFlowReplacer),e(a.ServiceIdentifiers.IControlFlowReplacer).to(u.CallExpressionControlFlowReplacer).whenTargetNamed(i.ControlFlowReplacer.CallExpressionControlFlowReplacer),e(a.ServiceIdentifiers.IControlFlowReplacer).to(p.LogicalExpressionControlFlowReplacer).whenTargetNamed(i.ControlFlowReplacer.LogicalExpressionControlFlowReplacer),e(a.ServiceIdentifiers.IControlFlowReplacer).to(m.StringLiteralControlFlowReplacer).whenTargetNamed(i.ControlFlowReplacer.StringLiteralControlFlowReplacer),e(a.ServiceIdentifiers.Factory__IControlFlowReplacer).toFactory(n.InversifyContainerFacade.getCacheFactory(a.ServiceIdentifiers.IControlFlowReplacer))})},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=r(5),p=r(21),m=r(49),g=d=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r,n))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"replace",value:function(e,t,r){var n=e.operator,o=this.controlFlowCustomNodeFactory(p.ControlFlowCustomNode.BinaryExpressionFunctionNode);o.initialize(n);var a=this.insertCustomNodeToControlFlowStorage(o,r,n,d.usingExistingIdentifierChance);return this.getControlFlowStorageCallNode(r.getStorageId(),a,e.left,e.right)}}]),t}(m.ExpressionWithOperatorControlFlowReplacer);g.usingExistingIdentifierChance=.5,g=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IControlFlowCustomNode)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],g),t.BinaryExpressionControlFlowReplacer=g},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=r(5),p=u.__importStar(r(16)),m=r(21),g=r(12),N=r(13),v=r(9),y=r(11),_=d=function(e){function t(e,r,n,a){var c;return(0,o.default)(this,t),(c=(0,i.default)(this,(0,s.default)(t).call(this,n,a))).controlFlowCustomNodeFactory=e,c.arrayUtils=r,c}return(0,c.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case g.TransformationStage.ControlFlowFlattening:return{leave:function(e,r){if(r&&v.NodeGuards.isBlockStatementNode(e))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){if(this.randomGenerator.getMathRandom()>this.options.controlFlowFlatteningThreshold||!d.canTransformBlockStatementNode(e))return e;var r=e.body,n=this.arrayUtils.createWithRange(r.length),o=this.arrayUtils.shuffle(n),a=n.map(function(e){return o.indexOf(e)}),i=this.controlFlowCustomNodeFactory(m.ControlFlowCustomNode.BlockStatementControlFlowFlatteningNode);i.initialize(r,o,a);var s=i.getNode()[0];return y.NodeUtils.parentizeNode(s,t),s}}],[{key:"isProhibitedStatementNode",value:function(e){var t=v.NodeGuards.isBreakStatementNode(e)||v.NodeGuards.isContinueStatementNode(e),r=v.NodeGuards.isVariableDeclarationNode(e)&&("const"===e.kind||"let"===e.kind),n=v.NodeGuards.isClassDeclarationNode(e);return v.NodeGuards.isFunctionDeclarationNode(e)||t||r||n}},{key:"canTransformBlockStatementNode",value:function(e){var t=!0;return p.traverse(e,{enter:function(e){if(v.NodeGuards.isWhileStatementNode(e))return p.VisitorOption.Skip;d.isProhibitedStatementNode(e)&&(t=!1)}}),e.body.length<=4&&(t=!1),t}}]),t}(N.AbstractNodeTransformer);_=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IControlFlowCustomNode)),u.__param(1,l.inject(f.ServiceIdentifiers.IArrayUtils)),u.__param(2,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(3,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object,Object])],_),t.BlockStatementControlFlowTransformer=_},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=r(5),p=r(21),m=r(43),g=r(9),N=d=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r,n))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"replace",value:function(e,t,r){var n=e.callee;if(!g.NodeGuards.isIdentifierNode(n))return e;var o=String(e.arguments.length),a=this.controlFlowCustomNodeFactory(p.ControlFlowCustomNode.CallExpressionFunctionNode),i=e.arguments;a.initialize(i);var s=this.insertCustomNodeToControlFlowStorage(a,r,o,d.usingExistingIdentifierChance);return this.getControlFlowStorageCallNode(r.getStorageId(),s,n,i)}},{key:"getControlFlowStorageCallNode",value:function(e,t,r,n){var o=this.controlFlowCustomNodeFactory(p.ControlFlowCustomNode.CallExpressionControlFlowStorageCallNode);o.initialize(e,t,r,n);var a=o.getNode()[0];if(!a||!g.NodeGuards.isExpressionStatementNode(a))throw new Error("`controlFlowStorageCallCustomNode.getNode()[0]` should returns array with `ExpressionStatement` node");return a.expression}}]),t}(m.AbstractControlFlowReplacer);N.usingExistingIdentifierChance=.5,N=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IControlFlowCustomNode)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],N),t.CallExpressionControlFlowReplacer=N},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=r(5),p=u.__importStar(r(16)),m=r(52),g=r(29),N=r(19),v=r(12),y=r(13),_=r(14),h=r(9),b=r(24),S=r(11),I=d=function(e){function t(e,r,n,a){var c;return(0,o.default)(this,t),(c=(0,i.default)(this,(0,s.default)(t).call(this,n,a))).deadCodeInjectionRootAstHostNodeSet=new Set,c.collectedBlockStatements=[],c.collectedBlockStatementsTotalLength=0,c.deadCodeInjectionCustomNodeFactory=e,c.transformersRunner=r,c}return(0,c.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case v.TransformationStage.DeadCodeInjection:return{enter:function(e,r){if(r&&h.NodeGuards.isProgramNode(e))return t.analyzeNode(e,r),e},leave:function(e,r){if(r&&h.NodeGuards.isBlockStatementNode(e))return t.transformNode(e,r)}};case v.TransformationStage.Finalizing:return this.deadCodeInjectionRootAstHostNodeSet.size?{enter:function(e,r){if(r&&t.isDeadCodeInjectionRootAstHostNode(e))return t.restoreNode(e,r)}}:null;default:return null}}},{key:"analyzeNode",value:function(e,t){var r=this;p.traverse(e,{enter:function(e){if(h.NodeGuards.isBlockStatementNode(e)){var t=S.NodeUtils.clone(e);if(d.isValidCollectedBlockStatementNode(t)){var n=r.makeClonedBlockStatementNodeUnique(t);r.collectedBlockStatements.push(n)}}}}),this.collectedBlockStatementsTotalLength=this.collectedBlockStatements.length}},{key:"transformNode",value:function(e,t){if(!this.collectedBlockStatements.length||this.collectedBlockStatementsTotalLengththis.options.deadCodeInjectionThreshold||!d.isValidWrappedBlockStatementNode(e))return e;var r=this.collectedBlockStatements.length-1,n=this.randomGenerator.getRandomInteger(0,r),o=this.collectedBlockStatements.splice(n,1)[0];return o===e?e:this.replaceBlockStatementNode(e,o,t)}},{key:"restoreNode",value:function(e,t){var r=e.body[0];if(!h.NodeGuards.isFunctionDeclarationNode(r))throw new Error("Wrong dead code injection root AST host node. Host node should contain `FunctionDeclaration` node");return r.body}},{key:"isDeadCodeInjectionRootAstHostNode",value:function(e){return h.NodeGuards.isBlockStatementNode(e)&&this.deadCodeInjectionRootAstHostNodeSet.has(e)}},{key:"makeClonedBlockStatementNodeUnique",value:function(e){var t=_.NodeFactory.functionExpressionNode([],e);return S.NodeUtils.parentizeNode(t,t),S.NodeUtils.parentizeNode(e,t),this.transformersRunner.transform(t,d.transformersToRenameBlockScopeIdentifiers,v.TransformationStage.Obfuscating).body}},{key:"replaceBlockStatementNode",value:function(e,t,r){var n=_.NodeFactory.blockStatementNode([_.NodeFactory.functionDeclarationNode(d.deadCodeInjectionRootAstHostNodeName,[],t)]);this.deadCodeInjectionRootAstHostNodeSet.add(n);var o=this.deadCodeInjectionCustomNodeFactory(m.DeadCodeInjectionCustomNode.BlockStatementDeadCodeInjectionNode);o.initialize(e,n);var a=o.getNode()[0];return S.NodeUtils.parentizeNode(a,r),a}}],[{key:"isProhibitedNodeInsideCollectedBlockStatement",value:function(e){return h.NodeGuards.isBreakStatementNode(e)||h.NodeGuards.isContinueStatementNode(e)||h.NodeGuards.isAwaitExpressionNode(e)||h.NodeGuards.isSuperNode(e)}},{key:"isScopeHoistingFunctionDeclaration",value:function(e){if(!h.NodeGuards.isFunctionDeclarationNode(e))return!1;var t=b.NodeStatementUtils.getScopeOfNode(e),r=h.NodeGuards.isSwitchCaseNode(t)?t.consequent:t.body,n=r.indexOf(e);if(0===n)return!1;var o=r.slice(0,n),a=_.NodeFactory.blockStatementNode(o),i=e.id.name,s=!1;return p.traverse(a,{enter:function(e){if(h.NodeGuards.isIdentifierNode(e)&&e.name===i)return s=!0,p.VisitorOption.Break}}),s}},{key:"isValidCollectedBlockStatementNode",value:function(e){if(!e.body.length)return!1;var t=0,r=!0;return p.traverse(e,{enter:function(e){if(h.NodeGuards.isBlockStatementNode(e)&&t++,t>d.maxNestedBlockStatementsCount||d.isProhibitedNodeInsideCollectedBlockStatement(e)||d.isScopeHoistingFunctionDeclaration(e))return r=!1,p.VisitorOption.Break}}),r}},{key:"isValidWrappedBlockStatementNode",value:function(e){if(!e.body.length)return!1;var t=!0;return p.traverse(e,{enter:function(e){if(d.isScopeHoistingFunctionDeclaration(e))return t=!1,p.VisitorOption.Break}}),!!t&&b.NodeStatementUtils.getParentNodeWithStatements(e).type!==N.NodeType.Program}}]),t}(y.AbstractNodeTransformer);I.deadCodeInjectionRootAstHostNodeName="deadCodeInjectionRootAstHostNode",I.maxNestedBlockStatementsCount=4,I.minCollectedBlockStatementsCount=5,I.transformersToRenameBlockScopeIdentifiers=[g.NodeTransformer.CatchClauseTransformer,g.NodeTransformer.ClassDeclarationTransformer,g.NodeTransformer.FunctionDeclarationTransformer,g.NodeTransformer.FunctionTransformer,g.NodeTransformer.LabeledStatementTransformer,g.NodeTransformer.VariableDeclarationTransformer],I=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IDeadCodeInjectionCustomNode)),u.__param(1,l.inject(f.ServiceIdentifiers.ITransformersRunner)),u.__param(2,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(3,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object,Object])],I),t.DeadCodeInjectionTransformer=I},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=r(5),p=u.__importStar(r(16)),m=r(21),g=r(48),N=r(19),v=r(12),y=r(13),_=r(25),h=r(9),b=r(17),S=r(24),I=d=function(e){function t(e,r,n,a,c){var d;return(0,o.default)(this,t),(d=(0,i.default)(this,(0,s.default)(t).call(this,a,c))).controlFlowData=new Map,d.visitedFunctionNodes=new Set,d.hostNodesWithControlFlowNode=new Set,d.controlFlowStorageFactory=e,d.controlFlowReplacerFactory=r,d.controlFlowCustomNodeFactory=n,d}return(0,c.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case v.TransformationStage.ControlFlowFlattening:return{leave:function(e,r){if(r&&(h.NodeGuards.isFunctionDeclarationNode(e)||h.NodeGuards.isFunctionExpressionNode(e)||h.NodeGuards.isArrowFunctionExpressionNode(e)))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){if(this.visitedFunctionNodes.add(e),!h.NodeGuards.isBlockStatementNode(e.body))return e;var r=this.getHostNode(e.body),n=this.getControlFlowStorage(r);if(this.controlFlowData.set(r,n),this.transformFunctionBody(e.body,n),!n.getLength())return e;var o=this.controlFlowCustomNodeFactory(m.ControlFlowCustomNode.ControlFlowStorageNode);return o.initialize(n),_.NodeAppender.prepend(r,o.getNode()),this.hostNodesWithControlFlowNode.add(r),e}},{key:"getControlFlowStorage",value:function(e){var t=this.controlFlowStorageFactory();if(this.controlFlowData.has(e)){this.hostNodesWithControlFlowNode.has(e)&&(h.NodeGuards.isSwitchCaseNode(e)?e.consequent.shift():e.body.shift());var r=this.controlFlowData.get(e);t.mergeWith(r,!0)}return t}},{key:"getHostNode",value:function(e){var t=S.NodeStatementUtils.getParentNodesWithStatements(e);return 1===t.length?e:(t.pop(),t.length>d.hostNodeSearchMinDepth&&t.splice(0,d.hostNodeSearchMinDepth),t.length>d.hostNodeSearchMaxDepth&&(t.length=d.hostNodeSearchMaxDepth),this.randomGenerator.getRandomGenerator().pickone(t))}},{key:"isVisitedFunctionNode",value:function(e){return(h.NodeGuards.isFunctionDeclarationNode(e)||h.NodeGuards.isFunctionExpressionNode(e)||h.NodeGuards.isArrowFunctionExpressionNode(e))&&this.visitedFunctionNodes.has(e)}},{key:"transformFunctionBody",value:function(e,t){var r=this;p.replace(e,{enter:function(e,n){if(b.NodeMetadata.isIgnoredNode(e))return p.VisitorOption.Skip;if(r.isVisitedFunctionNode(e)||!n)return p.VisitorOption.Skip;if(!d.controlFlowReplacersMap.has(e.type))return e;if(r.randomGenerator.getMathRandom()>r.options.controlFlowFlatteningThreshold)return e;var o=d.controlFlowReplacersMap.get(e.type);return void 0===o?e:Object.assign({},r.controlFlowReplacerFactory(o).replace(e,n,t),{parentNode:n})}})}}]),t}(y.AbstractNodeTransformer);I.controlFlowReplacersMap=new Map([[N.NodeType.BinaryExpression,g.ControlFlowReplacer.BinaryExpressionControlFlowReplacer],[N.NodeType.CallExpression,g.ControlFlowReplacer.CallExpressionControlFlowReplacer],[N.NodeType.LogicalExpression,g.ControlFlowReplacer.LogicalExpressionControlFlowReplacer],[N.NodeType.Literal,g.ControlFlowReplacer.StringLiteralControlFlowReplacer]]),I.hostNodeSearchMinDepth=0,I.hostNodeSearchMaxDepth=2,I=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__TControlFlowStorage)),u.__param(1,l.inject(f.ServiceIdentifiers.Factory__IControlFlowReplacer)),u.__param(2,l.inject(f.ServiceIdentifiers.Factory__IControlFlowCustomNode)),u.__param(3,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(4,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Function,Function,Object,Object])],I),t.FunctionControlFlowTransformer=I},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=r(5),p=r(21),m=r(49),g=r(9),N=r(11),v=d=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r,n))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"replace",value:function(e,t,r){if(this.checkForProhibitedExpressions(e.left,e.right))return e;var n=e.operator,o=this.controlFlowCustomNodeFactory(p.ControlFlowCustomNode.LogicalExpressionFunctionNode);o.initialize(n);var a=this.insertCustomNodeToControlFlowStorage(o,r,n,d.usingExistingIdentifierChance);return this.getControlFlowStorageCallNode(r.getStorageId(),a,e.left,e.right)}},{key:"checkForProhibitedExpressions",value:function(e,t){return[e,t].some(function(e){var t;return t=g.NodeGuards.isUnaryExpressionNode(e)?N.NodeUtils.getUnaryExpressionArgumentNode(e):e,!(g.NodeGuards.isLiteralNode(t)||g.NodeGuards.isIdentifierNode(t)||g.NodeGuards.isObjectExpressionNode(t)||g.NodeGuards.isExpressionStatementNode(t))})}}]),t}(m.ExpressionWithOperatorControlFlowReplacer);v.usingExistingIdentifierChance=.5,v=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IControlFlowCustomNode)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],v),t.LogicalExpressionControlFlowReplacer=v},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=r(5),p=r(21),m=r(43),g=r(9),N=d=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r,n))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"replace",value:function(e,t,r){if(g.NodeGuards.isPropertyNode(t)&&t.key===e)return e;if("string"!=typeof e.value||e.value.length<3)return e;var n=String(e.value),o=this.controlFlowCustomNodeFactory(p.ControlFlowCustomNode.StringLiteralNode);o.initialize(e.value);var a=this.insertCustomNodeToControlFlowStorage(o,r,n,d.usingExistingIdentifierChance);return this.getControlFlowStorageCallNode(r.getStorageId(),a)}},{key:"getControlFlowStorageCallNode",value:function(e,t){var r=this.controlFlowCustomNodeFactory(p.ControlFlowCustomNode.StringLiteralControlFlowStorageCallNode);r.initialize(e,t);var n=r.getNode()[0];if(!n||!g.NodeGuards.isExpressionStatementNode(n))throw new Error("`controlFlowStorageCallCustomNode.getNode()[0]` should returns array with `ExpressionStatement` node");return n.expression}}]),t}(m.AbstractControlFlowReplacer);N.usingExistingIdentifierChance=1,N=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IControlFlowCustomNode)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],N),t.StringLiteralControlFlowReplacer=N},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(2),o=r(20),a=r(5),i=r(29),s=r(53),c=r(80),d=r(81),u=r(82),l=r(83),f=r(84),p=r(85),m=r(86);t.convertingTransformersModule=new n.ContainerModule(function(e){e(a.ServiceIdentifiers.INodeTransformer).to(d.MemberExpressionTransformer).whenTargetNamed(i.NodeTransformer.MemberExpressionTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(u.MethodDefinitionTransformer).whenTargetNamed(i.NodeTransformer.MethodDefinitionTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(l.ObjectExpressionKeysTransformer).whenTargetNamed(i.NodeTransformer.ObjectExpressionKeysTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(f.ObjectExpressionTransformer).whenTargetNamed(i.NodeTransformer.ObjectExpressionTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(p.TemplateLiteralTransformer).whenTargetNamed(i.NodeTransformer.TemplateLiteralTransformer),e(a.ServiceIdentifiers.IPropertiesExtractor).to(c.AssignmentExpressionPropertiesExtractor).whenTargetNamed(s.PropertiesExtractor.AssignmentExpressionPropertiesExtractor),e(a.ServiceIdentifiers.IPropertiesExtractor).to(m.VariableDeclaratorPropertiesExtractor).whenTargetNamed(s.PropertiesExtractor.VariableDeclaratorPropertiesExtractor),e(a.ServiceIdentifiers.Factory__IPropertiesExtractor).toFactory(o.InversifyContainerFacade.getCacheFactory(a.ServiceIdentifiers.IPropertiesExtractor))})},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(54),p=function(e){function t(e,r){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"extract",value:function(e,t){var r=t.parentNode,n=t.left;return f.AbstractPropertiesExtractor.isProhibitedPattern(n)?e:r&&f.AbstractPropertiesExtractor.isProhibitedHostParent(r)?e:this.transformObjectExpressionNode(e,n)}}]),t}(f.AbstractPropertiesExtractor);p=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Object,Object])],p),t.AssignmentExpressionPropertiesExtractor=p},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(12),p=r(13),m=r(14),g=r(9),N=function(e){function t(e,r){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case f.TransformationStage.Converting:return{enter:function(e,r){if(r&&g.NodeGuards.isMemberExpressionNode(e))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){if(g.NodeGuards.isIdentifierNode(e.property)){if(e.computed)return e;e.computed=!0,e.property=m.NodeFactory.literalNode(e.property.name)}return e}}]),t}(p.AbstractNodeTransformer);N=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Object,Object])],N),t.MemberExpressionTransformer=N},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=r(5),p=r(12),m=r(13),g=r(14),N=r(9),v=d=function(e){function t(e,r){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case p.TransformationStage.Converting:return{enter:function(e,r){if(r&&N.NodeGuards.isMethodDefinitionNode(e))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){return N.NodeGuards.isIdentifierNode(e.key)&&!d.ignoredNames.includes(e.key.name)&&!1===e.computed&&(e.computed=!0,e.key=g.NodeFactory.literalNode(e.key.name)),e}}]),t}(m.AbstractNodeTransformer);v.ignoredNames=["constructor"],v=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(1,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Object,Object])],v),t.MethodDefinitionTransformer=v},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=r(5),p=r(19),m=r(53),g=r(12),N=r(13),v=r(9),y=d=function(e){function t(e,r,n){var a;return(0,o.default)(this,t),(a=(0,i.default)(this,(0,s.default)(t).call(this,r,n))).propertiesExtractorFactory=e,a}return(0,c.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;return e!==g.TransformationStage.Converting?null:{enter:function(e,r){if(t.options.transformObjectKeys&&r&&v.NodeGuards.isObjectExpressionNode(e))return t.transformNode(e,r)}}}},{key:"transformNode",value:function(e,t){if(!e.properties.length)return e;var r=d.propertiesExtractorsMap.get(t.type);return r?this.propertiesExtractorFactory(r).extract(e,t):e}}]),t}(N.AbstractNodeTransformer);y.propertiesExtractorsMap=new Map([[p.NodeType.AssignmentExpression,m.PropertiesExtractor.AssignmentExpressionPropertiesExtractor],[p.NodeType.VariableDeclarator,m.PropertiesExtractor.VariableDeclaratorPropertiesExtractor]]),y=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IPropertiesExtractor)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],y),t.ObjectExpressionKeysTransformer=y},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(12),p=r(13),m=r(14),g=r(9),N=function(e){function t(e,r,n){var a;return(0,o.default)(this,t),(a=(0,i.default)(this,(0,s.default)(t).call(this,r,n))).escapeSequenceEncoder=e,a}return(0,c.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case f.TransformationStage.Converting:return{enter:function(e,r){if(r&&g.NodeGuards.isObjectExpressionNode(e))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){var r=this;return e.properties.forEach(function(e){e.key&&(e.computed?r.transformComputedProperty(e):r.transformBaseProperty(e))}),e}},{key:"transformComputedProperty",value:function(e){g.NodeGuards.isLiteralNode(e.key)&&"string"==typeof e.key.value&&(e.key=m.NodeFactory.literalNode(this.getPropertyKeyValue(e.key.value)))}},{key:"transformBaseProperty",value:function(e){e.shorthand&&(e.shorthand=!1),g.NodeGuards.isIdentifierNode(e.key)&&(e.key=m.NodeFactory.literalNode(this.getPropertyKeyValue(e.key.name)))}},{key:"getPropertyKeyValue",value:function(e){return this.options.unicodeEscapeSequence?this.escapeSequenceEncoder.encode(e,!0):e}}]),t}(p.AbstractNodeTransformer);N=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.IEscapeSequenceEncoder)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Object,Object,Object])],N),t.ObjectExpressionTransformer=N},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=r(5),p=r(12),m=r(13),g=r(14),N=r(9),v=r(11),y=d=function(e){function t(e,r){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case p.TransformationStage.Converting:return{leave:function(e,r){if(r&&d.isValidTemplateLiteralNode(e,r))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){var r,n=e.expressions,o=[];if(e.quasis.forEach(function(e){o.push(g.NodeFactory.literalNode(e.value.cooked));var t=n.shift();t&&o.push(t)}),o=o.filter(function(e){return!(N.NodeGuards.isLiteralNode(e)&&""===e.value)}),d.isLiteralNodeWithStringValue(o[0])||d.isLiteralNodeWithStringValue(o[1])||o.unshift(g.NodeFactory.literalNode("")),o.length>1){var a=g.NodeFactory.binaryExpressionNode("+",o.shift(),o.shift());o.forEach(function(e){a=g.NodeFactory.binaryExpressionNode("+",a,e)}),r=a}else r=o[0];return v.NodeUtils.parentizeAst(r),r}}],[{key:"isLiteralNodeWithStringValue",value:function(e){return e&&N.NodeGuards.isLiteralNode(e)&&"string"==typeof e.value}},{key:"isValidTemplateLiteralNode",value:function(e,t){return N.NodeGuards.isTemplateLiteralNode(e)&&!N.NodeGuards.isTaggedTemplateExpressionNode(t)}}]),t}(m.AbstractNodeTransformer);y=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(1,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Object,Object])],y),t.TemplateLiteralTransformer=y},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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=d.__importStar(r(16)),p=r(54),m=r(9),g=function(e){function t(e,r){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"extract",value:function(e,t){return!m.NodeGuards.isIdentifierNode(t.id)||this.isProhibitedObjectExpressionNode(e,t.id)?e:this.transformObjectExpressionNode(e,t.id)}},{key:"getHostVariableDeclaratorNode",value:function(e){var t=e.parentNode;if(!t||!m.NodeGuards.isVariableDeclaratorNode(t))throw new Error("Cannot get `VariableDeclarator` node for `ObjectExpression` node");return t}},{key:"getHostVariableDeclarationNode",value:function(e){var t=e.parentNode;if(!t||!m.NodeGuards.isVariableDeclarationNode(t))throw new Error("Cannot get `VariableDeclaration` node for `VariableDeclarator` node");return t}},{key:"isProhibitedObjectExpressionNode",value:function(e,t){var r=this.getHostVariableDeclaratorNode(e),n=this.getHostVariableDeclarationNode(r).declarations,o=n.indexOf(r);if(o===n.length-1)return!1;var a=!1;return n.slice(o).forEach(function(e){f.traverse(e,{enter:function(e){return m.NodeGuards.isMemberExpressionNode(e)&&m.NodeGuards.isIdentifierNode(e.object)&&e.object.name===t.name?(a=!0,f.VisitorOption.Break):e}})}),a}}]),t}(p.AbstractPropertiesExtractor);g=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Object,Object])],g),t.VariableDeclaratorPropertiesExtractor=g},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(20),o=r(2),a=r(5),i=r(21),s=r(31),c=r(55),d=r(52),u=r(88),l=r(89),f=r(90),p=r(91),m=r(92),g=r(93),N=r(96),v=r(97),y=r(98),_=r(99),h=r(100),b=r(101),S=r(103),I=r(105),C=r(107),F=r(111),O=r(113),j=r(114),T=r(115),k=r(117),x=r(119),E=r(126),w=r(128),G=r(131),R=r(132);t.customNodesModule=new o.ContainerModule(function(e){e(a.ServiceIdentifiers.ICustomNode).to(b.ConsoleOutputDisableExpressionNode).whenTargetNamed(s.CustomNode.ConsoleOutputDisableExpressionNode),e(a.ServiceIdentifiers.ICustomNode).to(S.DebugProtectionFunctionCallNode).whenTargetNamed(s.CustomNode.DebugProtectionFunctionCallNode),e(a.ServiceIdentifiers.ICustomNode).to(I.DebugProtectionFunctionIntervalNode).whenTargetNamed(s.CustomNode.DebugProtectionFunctionIntervalNode),e(a.ServiceIdentifiers.ICustomNode).to(C.DebugProtectionFunctionNode).whenTargetNamed(s.CustomNode.DebugProtectionFunctionNode),e(a.ServiceIdentifiers.ICustomNode).to(F.DomainLockNode).whenTargetNamed(s.CustomNode.DomainLockNode),e(a.ServiceIdentifiers.ICustomNode).to(T.NodeCallsControllerFunctionNode).whenTargetNamed(s.CustomNode.NodeCallsControllerFunctionNode),e(a.ServiceIdentifiers.ICustomNode).to(k.SelfDefendingUnicodeNode).whenTargetNamed(s.CustomNode.SelfDefendingUnicodeNode),e(a.ServiceIdentifiers.ICustomNode).to(x.StringArrayCallsWrapper).whenTargetNamed(s.CustomNode.StringArrayCallsWrapper),e(a.ServiceIdentifiers.ICustomNode).to(E.StringArrayNode).whenTargetNamed(s.CustomNode.StringArrayNode),e(a.ServiceIdentifiers.ICustomNode).to(w.StringArrayRotateFunctionNode).whenTargetNamed(s.CustomNode.StringArrayRotateFunctionNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(g.BinaryExpressionFunctionNode).whenTargetNamed(i.ControlFlowCustomNode.BinaryExpressionFunctionNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(N.BlockStatementControlFlowFlatteningNode).whenTargetNamed(i.ControlFlowCustomNode.BlockStatementControlFlowFlatteningNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(y.CallExpressionControlFlowStorageCallNode).whenTargetNamed(i.ControlFlowCustomNode.CallExpressionControlFlowStorageCallNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(_.CallExpressionFunctionNode).whenTargetNamed(i.ControlFlowCustomNode.CallExpressionFunctionNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(h.ControlFlowStorageNode).whenTargetNamed(i.ControlFlowCustomNode.ControlFlowStorageNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(O.ExpressionWithOperatorControlFlowStorageCallNode).whenTargetNamed(i.ControlFlowCustomNode.ExpressionWithOperatorControlFlowStorageCallNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(j.LogicalExpressionFunctionNode).whenTargetNamed(i.ControlFlowCustomNode.LogicalExpressionFunctionNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(R.StringLiteralNode).whenTargetNamed(i.ControlFlowCustomNode.StringLiteralNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(G.StringLiteralControlFlowStorageCallNode).whenTargetNamed(i.ControlFlowCustomNode.StringLiteralControlFlowStorageCallNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(v.BlockStatementDeadCodeInjectionNode).whenTargetNamed(d.DeadCodeInjectionCustomNode.BlockStatementDeadCodeInjectionNode),e(a.ServiceIdentifiers.ICustomNodeGroup).to(u.ConsoleOutputCustomNodeGroup).whenTargetNamed(c.CustomNodeGroup.ConsoleOutputCustomNodeGroup),e(a.ServiceIdentifiers.ICustomNodeGroup).to(l.DebugProtectionCustomNodeGroup).whenTargetNamed(c.CustomNodeGroup.DebugProtectionCustomNodeGroup),e(a.ServiceIdentifiers.ICustomNodeGroup).to(f.DomainLockCustomNodeGroup).whenTargetNamed(c.CustomNodeGroup.DomainLockCustomNodeGroup),e(a.ServiceIdentifiers.ICustomNodeGroup).to(p.SelfDefendingCustomNodeGroup).whenTargetNamed(c.CustomNodeGroup.SelfDefendingCustomNodeGroup),e(a.ServiceIdentifiers.ICustomNodeGroup).to(m.StringArrayCustomNodeGroup).whenTargetNamed(c.CustomNodeGroup.StringArrayCustomNodeGroup),e(a.ServiceIdentifiers.Factory__ICustomNode).toFactory(n.InversifyContainerFacade.getFactory(a.ServiceIdentifiers.ICustomNode)),e(a.ServiceIdentifiers.Factory__IControlFlowCustomNode).toFactory(n.InversifyContainerFacade.getConstructorFactory(a.ServiceIdentifiers.Newable__ICustomNode,a.ServiceIdentifiers.Factory__IIdentifierNamesGenerator,a.ServiceIdentifiers.IRandomGenerator,a.ServiceIdentifiers.IOptions)),e(a.ServiceIdentifiers.Factory__IDeadCodeInjectionCustomNode).toFactory(n.InversifyContainerFacade.getConstructorFactory(a.ServiceIdentifiers.Newable__ICustomNode,a.ServiceIdentifiers.Factory__IIdentifierNamesGenerator,a.ServiceIdentifiers.IRandomGenerator,a.ServiceIdentifiers.IOptions)),e(a.ServiceIdentifiers.Factory__ICustomNodeGroup).toFactory(n.InversifyContainerFacade.getFactory(a.ServiceIdentifiers.ICustomNodeGroup))})},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(10),p=r(31),m=r(26),g=r(33),N=r(25),v=function(e){function t(e,r,n,a){var c;return(0,o.default)(this,t),(c=(0,i.default)(this,(0,s.default)(t).call(this,r,n,a))).appendEvent=m.ObfuscationEvent.BeforeObfuscation,c.customNodeFactory=e,c}return(0,c.default)(t,e),(0,a.default)(t,[{key:"appendCustomNodes",value:function(e,t){var r=this.getRandomStackTraceIndex(t.length);this.appendCustomNodeIfExist(p.CustomNode.ConsoleOutputDisableExpressionNode,function(n){N.NodeAppender.appendToOptimalBlockScope(t,e,n.getNode(),r)}),this.appendCustomNodeIfExist(p.CustomNode.NodeCallsControllerFunctionNode,function(n){var o=t.length?N.NodeAppender.getOptimalBlockScope(t,r,1):e;N.NodeAppender.prepend(o,n.getNode())})}},{key:"initialize",value:function(){if(this.customNodes=new Map,this.options.disableConsoleOutput){var e=this.identifierNamesGenerator.generate(),t=this.customNodeFactory(p.CustomNode.ConsoleOutputDisableExpressionNode),r=this.customNodeFactory(p.CustomNode.NodeCallsControllerFunctionNode);t.initialize(e),r.initialize(this.appendEvent,e),this.customNodes.set(p.CustomNode.ConsoleOutputDisableExpressionNode,t),this.customNodes.set(p.CustomNode.NodeCallsControllerFunctionNode,r)}}}]),t}(g.AbstractCustomNodeGroup);d.__decorate([f.initializable(),d.__metadata("design:type",Map)],v.prototype,"customNodes",void 0),v=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__ICustomNode)),d.__param(1,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(3,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Function,Object,Object])],v),t.ConsoleOutputCustomNodeGroup=v},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(10),p=r(31),m=r(26),g=r(33),N=r(25),v=r(9),y=function(e){function t(e,r,n,a){var c;return(0,o.default)(this,t),(c=(0,i.default)(this,(0,s.default)(t).call(this,r,n,a))).appendEvent=m.ObfuscationEvent.BeforeObfuscation,c.customNodeFactory=e,c}return(0,c.default)(t,e),(0,a.default)(t,[{key:"appendCustomNodes",value:function(e,t){var r=this,n=this.getRandomStackTraceIndex(t.length);this.appendCustomNodeIfExist(p.CustomNode.DebugProtectionFunctionCallNode,function(r){N.NodeAppender.appendToOptimalBlockScope(t,e,r.getNode(),n)}),this.appendCustomNodeIfExist(p.CustomNode.DebugProtectionFunctionNode,function(t){N.NodeAppender.append(e,t.getNode())}),this.appendCustomNodeIfExist(p.CustomNode.DebugProtectionFunctionIntervalNode,function(t){var n=v.NodeGuards.isSwitchCaseNode(e)?e.consequent.length:e.body.length,o=r.randomGenerator.getRandomInteger(0,n);N.NodeAppender.insertAtIndex(e,t.getNode(),o)}),this.appendCustomNodeIfExist(p.CustomNode.NodeCallsControllerFunctionNode,function(r){var o=t.length?N.NodeAppender.getOptimalBlockScope(t,n,1):e;N.NodeAppender.prepend(o,r.getNode())})}},{key:"initialize",value:function(){if(this.customNodes=new Map,this.options.debugProtection){var e=this.identifierNamesGenerator.generate(),t=this.identifierNamesGenerator.generate(),r=this.customNodeFactory(p.CustomNode.DebugProtectionFunctionNode),n=this.customNodeFactory(p.CustomNode.DebugProtectionFunctionCallNode),o=this.customNodeFactory(p.CustomNode.DebugProtectionFunctionIntervalNode),a=this.customNodeFactory(p.CustomNode.NodeCallsControllerFunctionNode);r.initialize(e),n.initialize(e,t),o.initialize(e),a.initialize(this.appendEvent,t),this.customNodes.set(p.CustomNode.DebugProtectionFunctionNode,r),this.customNodes.set(p.CustomNode.DebugProtectionFunctionCallNode,n),this.options.debugProtectionInterval&&this.customNodes.set(p.CustomNode.DebugProtectionFunctionIntervalNode,o),this.customNodes.set(p.CustomNode.NodeCallsControllerFunctionNode,a)}}}]),t}(g.AbstractCustomNodeGroup);d.__decorate([f.initializable(),d.__metadata("design:type",Map)],y.prototype,"customNodes",void 0),y=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__ICustomNode)),d.__param(1,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(3,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Function,Object,Object])],y),t.DebugProtectionCustomNodeGroup=y},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(10),p=r(31),m=r(26),g=r(33),N=r(25),v=function(e){function t(e,r,n,a){var c;return(0,o.default)(this,t),(c=(0,i.default)(this,(0,s.default)(t).call(this,r,n,a))).appendEvent=m.ObfuscationEvent.BeforeObfuscation,c.customNodeFactory=e,c}return(0,c.default)(t,e),(0,a.default)(t,[{key:"appendCustomNodes",value:function(e,t){var r=this.getRandomStackTraceIndex(t.length);this.appendCustomNodeIfExist(p.CustomNode.DomainLockNode,function(n){N.NodeAppender.appendToOptimalBlockScope(t,e,n.getNode(),r)}),this.appendCustomNodeIfExist(p.CustomNode.NodeCallsControllerFunctionNode,function(n){var o=t.length?N.NodeAppender.getOptimalBlockScope(t,r,1):e;N.NodeAppender.prepend(o,n.getNode())})}},{key:"initialize",value:function(){if(this.customNodes=new Map,this.options.domainLock.length){var e=this.identifierNamesGenerator.generate(),t=this.customNodeFactory(p.CustomNode.DomainLockNode),r=this.customNodeFactory(p.CustomNode.NodeCallsControllerFunctionNode);t.initialize(e),r.initialize(this.appendEvent,e),this.customNodes.set(p.CustomNode.DomainLockNode,t),this.customNodes.set(p.CustomNode.NodeCallsControllerFunctionNode,r)}}}]),t}(g.AbstractCustomNodeGroup);d.__decorate([f.initializable(),d.__metadata("design:type",Map)],v.prototype,"customNodes",void 0),v=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__ICustomNode)),d.__param(1,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(3,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Function,Object,Object])],v),t.DomainLockCustomNodeGroup=v},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(10),p=r(31),m=r(26),g=r(33),N=r(25),v=function(e){function t(e,r,n,a){var c;return(0,o.default)(this,t),(c=(0,i.default)(this,(0,s.default)(t).call(this,r,n,a))).appendEvent=m.ObfuscationEvent.AfterObfuscation,c.customNodeFactory=e,c}return(0,c.default)(t,e),(0,a.default)(t,[{key:"appendCustomNodes",value:function(e,t){var r=this.getRandomStackTraceIndex(t.length);this.appendCustomNodeIfExist(p.CustomNode.SelfDefendingUnicodeNode,function(n){N.NodeAppender.appendToOptimalBlockScope(t,e,n.getNode(),r)}),this.appendCustomNodeIfExist(p.CustomNode.NodeCallsControllerFunctionNode,function(n){var o=t.length?N.NodeAppender.getOptimalBlockScope(t,r,1):e;N.NodeAppender.prepend(o,n.getNode())})}},{key:"initialize",value:function(){if(this.customNodes=new Map,this.options.selfDefending){var e=this.identifierNamesGenerator.generate(),t=this.customNodeFactory(p.CustomNode.SelfDefendingUnicodeNode),r=this.customNodeFactory(p.CustomNode.NodeCallsControllerFunctionNode);t.initialize(e),r.initialize(this.appendEvent,e),this.customNodes.set(p.CustomNode.SelfDefendingUnicodeNode,t),this.customNodes.set(p.CustomNode.NodeCallsControllerFunctionNode,r)}}}]),t}(g.AbstractCustomNodeGroup);d.__decorate([f.initializable(),d.__metadata("design:type",Map)],v.prototype,"customNodes",void 0),v=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__ICustomNode)),d.__param(1,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(3,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Function,Object,Object])],v),t.SelfDefendingCustomNodeGroup=v},function(e,t,r){"use strict";var n=r(0),o=n(r(30)),a=n(r(1)),i=n(r(3)),s=n(r(6)),c=n(r(7)),d=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var u=r(4),l=r(2),f=r(5),p=r(10),m=r(31),g=r(26),N=r(33),v=r(25),y=function(e){function t(e,r,n,o,i){var d;return(0,a.default)(this,t),(d=(0,s.default)(this,(0,c.default)(t).call(this,n,o,i))).appendEvent=g.ObfuscationEvent.AfterObfuscation,d.customNodeFactory=e,d.stringArrayStorage=r,d}return(0,d.default)(t,e),(0,i.default)(t,[{key:"appendCustomNodes",value:function(e,t){this.stringArrayStorage.getLength()&&(this.appendCustomNodeIfExist(m.CustomNode.StringArrayNode,function(t){v.NodeAppender.prepend(e,t.getNode())}),this.appendCustomNodeIfExist(m.CustomNode.StringArrayCallsWrapper,function(t){v.NodeAppender.insertAtIndex(e,t.getNode(),1)}),this.appendCustomNodeIfExist(m.CustomNode.StringArrayRotateFunctionNode,function(t){v.NodeAppender.insertAtIndex(e,t.getNode(),1)}))}},{key:"initialize",value:function(){if(this.customNodes=new Map,this.options.stringArray){var e,t=this.customNodeFactory(m.CustomNode.StringArrayNode),r=this.customNodeFactory(m.CustomNode.StringArrayCallsWrapper),n=this.customNodeFactory(m.CustomNode.StringArrayRotateFunctionNode),a=this.stringArrayStorage.getStorageId().split("|"),i=(0,o.default)(a,2),s=i[0],c=i[1];e=this.options.rotateStringArray?this.randomGenerator.getRandomInteger(100,500):0,t.initialize(this.stringArrayStorage,s,e),r.initialize(s,c),n.initialize(s,e),this.customNodes.set(m.CustomNode.StringArrayNode,t),this.customNodes.set(m.CustomNode.StringArrayCallsWrapper,r),this.options.rotateStringArray&&this.customNodes.set(m.CustomNode.StringArrayRotateFunctionNode,n)}}}]),t}(N.AbstractCustomNodeGroup);u.__decorate([p.initializable(),u.__metadata("design:type",Map)],y.prototype,"customNodes",void 0),y=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__ICustomNode)),u.__param(1,l.inject(f.ServiceIdentifiers.TStringArrayStorage)),u.__param(2,l.inject(f.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),u.__param(3,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(4,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Function,Object,Object])],y),t.StringArrayCustomNodeGroup=y},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(10),p=r(15),m=r(14),g=r(11),N=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r,n))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"initialize",value:function(e){this.operator=e}},{key:"getNodeStructure",value:function(){var e=m.NodeFactory.expressionStatementNode(m.NodeFactory.functionExpressionNode([m.NodeFactory.identifierNode("x"),m.NodeFactory.identifierNode("y")],m.NodeFactory.blockStatementNode([m.NodeFactory.returnStatementNode(m.NodeFactory.binaryExpressionNode(this.operator,m.NodeFactory.identifierNode("x"),m.NodeFactory.identifierNode("y")))])));return g.NodeUtils.parentizeAst(e),[e]}}]),t}(p.AbstractCustomNode);d.__decorate([f.initializable(),d.__metadata("design:type",String)],N.prototype,"operator",void 0),N=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object])],N),t.BinaryExpressionFunctionNode=N},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalVariableTemplate1=function(){return"\n var that;\n \n try {\n var getGlobal = Function('return (function() ' + '{}.constructor(\"return this\")( )' + ');');\n \n that = getGlobal();\n } catch (e) {\n that = window;\n }\n "}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalVariableTemplate2=function(){return"\n var getGlobal = function () {\n var globalObject;\n \n try {\n globalObject = Function('return (function() ' + '{}.constructor(\"return this\")( )' + ');')();\n } catch (e) {\n globalObject = window;\n }\n \n return globalObject;\n };\n var that = getGlobal();\n "}},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(10),p=r(15),m=r(14),g=r(9),N=r(11),v=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r,n))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"initialize",value:function(e,t,r){this.blockStatementBody=e,this.shuffledKeys=t,this.originalKeysIndexesInShuffledArray=r}},{key:"getNodeStructure",value:function(){var e=this,t=this.randomGenerator.getRandomString(6),r=this.randomGenerator.getRandomString(6),n=m.NodeFactory.blockStatementNode([m.NodeFactory.variableDeclarationNode([m.NodeFactory.variableDeclaratorNode(m.NodeFactory.identifierNode(t),m.NodeFactory.callExpressionNode(m.NodeFactory.memberExpressionNode(m.NodeFactory.literalNode(this.originalKeysIndexesInShuffledArray.join("|")),m.NodeFactory.identifierNode("split")),[m.NodeFactory.literalNode("|")])),m.NodeFactory.variableDeclaratorNode(m.NodeFactory.identifierNode(r),m.NodeFactory.literalNode(0))]),m.NodeFactory.whileStatementNode(m.NodeFactory.literalNode(!0),m.NodeFactory.blockStatementNode([m.NodeFactory.switchStatementNode(m.NodeFactory.memberExpressionNode(m.NodeFactory.identifierNode(t),m.NodeFactory.updateExpressionNode("++",m.NodeFactory.identifierNode(r)),!0),this.shuffledKeys.map(function(t,r){var n=e.blockStatementBody[t],o=[n];return g.NodeGuards.isReturnStatementNode(n)||o.push(m.NodeFactory.continueStatement()),m.NodeFactory.switchCaseNode(m.NodeFactory.literalNode(String(r)),o)})),m.NodeFactory.breakStatement()]))]);return N.NodeUtils.parentizeAst(n),[n]}}]),t}(p.AbstractCustomNode);d.__decorate([f.initializable(),d.__metadata("design:type",Array)],v.prototype,"blockStatementBody",void 0),d.__decorate([f.initializable(),d.__metadata("design:type",Array)],v.prototype,"originalKeysIndexesInShuffledArray",void 0),d.__decorate([f.initializable(),d.__metadata("design:type",Array)],v.prototype,"shuffledKeys",void 0),v=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object])],v),t.BlockStatementControlFlowFlatteningNode=v},function(e,t,r){"use strict";var n=r(0),o=n(r(30)),a=n(r(1)),i=n(r(3)),s=n(r(6)),c=n(r(7)),d=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var u=r(4),l=r(2),f=r(5),p=r(10),m=r(15),g=r(14),N=r(11),v=function(e){function t(e,r,n){return(0,a.default)(this,t),(0,s.default)(this,(0,c.default)(t).call(this,e,r,n))}return(0,d.default)(t,e),(0,i.default)(t,[{key:"initialize",value:function(e,t){this.blockStatementNode=e,this.deadCodeInjectionRootAstHostNode=t}},{key:"getNodeStructure",value:function(){var e=this.randomGenerator.getMathRandom()>.5,t=this.randomGenerator.getMathRandom()>.5,r=e?"===":"!==",n=this.randomGenerator.getRandomString(5),a=t?n:this.randomGenerator.getRandomString(5),i=e===t?[this.blockStatementNode,this.deadCodeInjectionRootAstHostNode]:[this.deadCodeInjectionRootAstHostNode,this.blockStatementNode],s=(0,o.default)(i,2),c=s[0],d=s[1],u=g.NodeFactory.blockStatementNode([g.NodeFactory.ifStatementNode(g.NodeFactory.binaryExpressionNode(r,g.NodeFactory.literalNode(n),g.NodeFactory.literalNode(a)),c,d)]);return N.NodeUtils.parentizeAst(u),[u]}}]),t}(m.AbstractCustomNode);u.__decorate([p.initializable(),u.__metadata("design:type",Object)],v.prototype,"blockStatementNode",void 0),u.__decorate([p.initializable(),u.__metadata("design:type",Object)],v.prototype,"deadCodeInjectionRootAstHostNode",void 0),v=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],v),t.BlockStatementDeadCodeInjectionNode=v},function(e,t,r){"use strict";var n=r(0),o=n(r(28)),a=n(r(1)),i=n(r(3)),s=n(r(6)),c=n(r(7)),d=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var u=r(4),l=r(2),f=r(5),p=r(10),m=r(15),g=r(14),N=r(11),v=function(e){function t(e,r,n){return(0,a.default)(this,t),(0,s.default)(this,(0,c.default)(t).call(this,e,r,n))}return(0,d.default)(t,e),(0,i.default)(t,[{key:"initialize",value:function(e,t,r,n){this.controlFlowStorageName=e,this.controlFlowStorageKey=t,this.callee=r,this.expressionArguments=n}},{key:"getNodeStructure",value:function(){var e=g.NodeFactory.expressionStatementNode(g.NodeFactory.callExpressionNode(g.NodeFactory.memberExpressionNode(g.NodeFactory.identifierNode(this.controlFlowStorageName),g.NodeFactory.identifierNode(this.controlFlowStorageKey)),[this.callee].concat((0,o.default)(this.expressionArguments))));return N.NodeUtils.parentizeAst(e),[e]}}]),t}(m.AbstractCustomNode);u.__decorate([p.initializable(),u.__metadata("design:type",Object)],v.prototype,"callee",void 0),u.__decorate([p.initializable(),u.__metadata("design:type",String)],v.prototype,"controlFlowStorageKey",void 0),u.__decorate([p.initializable(),u.__metadata("design:type",String)],v.prototype,"controlFlowStorageName",void 0),u.__decorate([p.initializable(),u.__metadata("design:type",Array)],v.prototype,"expressionArguments",void 0),v=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],v),t.CallExpressionControlFlowStorageCallNode=v},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(10),p=r(15),m=r(14),g=r(11),N=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r,n))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"initialize",value:function(e){this.expressionArguments=e}},{key:"getNodeStructure",value:function(){for(var e=m.NodeFactory.identifierNode("callee"),t=[],r=this.expressionArguments.length,n=0;n 0;\n \n switch (isPositive) {\n case true:\n return this.item + \'_\' + this.value + \'_\' + i;\n default:\n this.item + \'_\' + this.value;\n }\n }\n }()\n };\n };\n \n var regExp = new RegExp("[{diff}]", "g");\n var domains = "{domains}".replace(regExp, "").split(";");\n var document;\n var domain;\n var location;\n var hostname;\n\n for (var d in that) {\n if (d.length == 8 && d.charCodeAt(7) == 116 && d.charCodeAt(5) == 101 && d.charCodeAt(3) == 117 && d.charCodeAt(0) == 100) {\n document = d;\n \n break;\n }\n }\n\n for (var d1 in that[document]) {\n if (d1.length == 6 && d1.charCodeAt(5) == 110 && d1.charCodeAt(0) == 100) {\n domain = d1;\n \n break;\n }\n }\n\n if (!("~" > domain)) {\n for (var d2 in that[document]) {\n if (d2.length == 8 && d2.charCodeAt(7) == 110 && d2.charCodeAt(0) == 108) {\n location = d2;\n \n break;\n }\n }\n\n for (var d3 in that[document][location]) {\n if (d3.length == 8 && d3.charCodeAt(7) == 101 && d3.charCodeAt(0) == 104) {\n hostname = d3;\n \n break;\n }\n }\n }\n \n if (!document || !that[document]) {\n return;\n }\n \n var documentDomain = that[document][domain];\n var documentLocationHostName = !!that[document][location] && that[document][location][hostname];\n var currentDomain = documentDomain || documentLocationHostName;\n \n if (!currentDomain) {\n return;\n }\n \n var ok = false;\n \n for (var i = 0; i < domains.length; i++) {\n var domain = domains[i];\n var position = currentDomain.length - domain.length;\n var lastIndex = currentDomain.indexOf(domain, position);\n var endsWith = lastIndex !== -1 && lastIndex === position;\n \n if (endsWith) {\n if (currentDomain.length == domain.length || domain.indexOf(".") === 0) {\n ok = true;\n }\n }\n }\n \n if (!ok) {\n data;\n } else {\n return;\n }\n \n func();\n });\n\n {domainLockFunctionName}();\n '}},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(10),p=r(15),m=r(14),g=r(11),N=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r,n))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"initialize",value:function(e,t,r,n){this.controlFlowStorageName=e,this.controlFlowStorageKey=t,this.leftValue=r,this.rightValue=n}},{key:"getNodeStructure",value:function(){var e=m.NodeFactory.expressionStatementNode(m.NodeFactory.callExpressionNode(m.NodeFactory.memberExpressionNode(m.NodeFactory.identifierNode(this.controlFlowStorageName),m.NodeFactory.identifierNode(this.controlFlowStorageKey)),[this.leftValue,this.rightValue]));return g.NodeUtils.parentizeAst(e),[e]}}]),t}(p.AbstractCustomNode);d.__decorate([f.initializable(),d.__metadata("design:type",String)],N.prototype,"controlFlowStorageKey",void 0),d.__decorate([f.initializable(),d.__metadata("design:type",String)],N.prototype,"controlFlowStorageName",void 0),d.__decorate([f.initializable(),d.__metadata("design:type",Object)],N.prototype,"leftValue",void 0),d.__decorate([f.initializable(),d.__metadata("design:type",Object)],N.prototype,"rightValue",void 0),N=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object])],N),t.ExpressionWithOperatorControlFlowStorageCallNode=N},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(10),p=r(15),m=r(14),g=r(11),N=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r,n))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"initialize",value:function(e){this.operator=e}},{key:"getNodeStructure",value:function(){var e=m.NodeFactory.expressionStatementNode(m.NodeFactory.functionExpressionNode([m.NodeFactory.identifierNode("x"),m.NodeFactory.identifierNode("y")],m.NodeFactory.blockStatementNode([m.NodeFactory.returnStatementNode(m.NodeFactory.logicalExpressionNode(this.operator,m.NodeFactory.identifierNode("x"),m.NodeFactory.identifierNode("y")))])));return g.NodeUtils.parentizeAst(e),[e]}}]),t}(p.AbstractCustomNode);d.__decorate([f.initializable(),d.__metadata("design:type",String)],N.prototype,"operator",void 0),N=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object])],N),t.LogicalExpressionFunctionNode=N},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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=d.__importDefault(r(18)),p=r(26),m=r(10),g=r(116),N=r(38),v=r(15),y=r(32),_=r(11),h=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r,n))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"initialize",value:function(e,t){this.appendEvent=e,this.callsControllerFunctionName=t}},{key:"getNodeStructure",value:function(){return _.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){return this.appendEvent===p.ObfuscationEvent.AfterObfuscation?y.JavaScriptObfuscator.obfuscate(f.default(g.SingleNodeCallControllerTemplate(),{singleNodeCallControllerFunctionName:this.callsControllerFunctionName}),Object.assign({},N.NO_ADDITIONAL_NODES_PRESET,{identifierNamesGenerator:this.options.identifierNamesGenerator,seed:this.options.seed})).getObfuscatedCode():f.default(g.SingleNodeCallControllerTemplate(),{singleNodeCallControllerFunctionName:this.callsControllerFunctionName})}}]),t}(v.AbstractCustomNode);d.__decorate([m.initializable(),d.__metadata("design:type",String)],h.prototype,"callsControllerFunctionName",void 0),d.__decorate([m.initializable(),d.__metadata("design:type",String)],h.prototype,"appendEvent",void 0),h=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object])],h),t.NodeCallsControllerFunctionNode=h},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SingleNodeCallControllerTemplate=function(){return"\n var {singleNodeCallControllerFunctionName} = (function(){\n var firstCall = true;\n \n return function (context, fn){\n var rfn = firstCall ? function(){\n if(fn){\n var res = fn.apply(context, arguments);\n fn = null;\n return res;\n }\n } : function(){}\n \n firstCall = false;\n \n return rfn;\n }\n })();\n "}},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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=d.__importDefault(r(18)),p=r(10),m=r(38),g=r(118),N=r(15),v=r(32),y=r(11),_=function(e){function t(e,r,n,a){var c;return(0,o.default)(this,t),(c=(0,i.default)(this,(0,s.default)(t).call(this,e,r,a))).escapeSequenceEncoder=n,c}return(0,c.default)(t,e),(0,a.default)(t,[{key:"initialize",value:function(e){this.callsControllerFunctionName=e}},{key:"getNodeStructure",value:function(){return y.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){return v.JavaScriptObfuscator.obfuscate(f.default(g.SelfDefendingTemplate(this.escapeSequenceEncoder),{selfDefendingFunctionName:this.identifierNamesGenerator.generate(),singleNodeCallControllerFunctionName:this.callsControllerFunctionName}),Object.assign({},m.NO_ADDITIONAL_NODES_PRESET,{identifierNamesGenerator:this.options.identifierNamesGenerator,seed:this.options.seed,unicodeEscapeSequence:!0})).getObfuscatedCode()}}]),t}(N.AbstractCustomNode);d.__decorate([p.initializable(),d.__metadata("design:type",String)],_.prototype,"callsControllerFunctionName",void 0),_=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IEscapeSequenceEncoder)),d.__param(3,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object,Object])],_),t.SelfDefendingUnicodeNode=_},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SelfDefendingTemplate=function(e){return"\n var {selfDefendingFunctionName} = {singleNodeCallControllerFunctionName}(this, function () {\n var func1 = function(){return 'dev';},\n func2 = function () {\n return 'window';\n };\n \n var test1 = function () {\n var regExp = new RegExp('".concat(e.encode("\\w+ *\\(\\) *{\\w+ *['|\"].+['|\"];? *}",!0),"');\n \n return !regExp.test(func1.toString());\n };\n \n var test2 = function () {\n var regExp = new RegExp('").concat(e.encode("(\\\\[x|u](\\w){2,4})+",!0),"');\n \n return regExp.test(func2.toString());\n };\n \n var recursiveFunc1 = function (string) {\n var i = ~-1 >> 1 + 255 % 0;\n \n if (string.indexOf('i' === i)) {\n recursiveFunc2(string)\n }\n };\n \n var recursiveFunc2 = function (string) {\n var i = ~-4 >> 1 + 255 % 0;\n \n if (string.indexOf((true+\"\")[3]) !== i) {\n recursiveFunc1(string)\n }\n };\n \n if (!test1()) {\n if (!test2()) {\n recursiveFunc1('indеxOf');\n } else {\n recursiveFunc1('indexOf');\n }\n } else {\n recursiveFunc1('indеxOf');\n }\n })\n \n {selfDefendingFunctionName}();\n ")}},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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=d.__importDefault(r(18)),p=r(23),m=r(37),g=r(10),N=r(38),v=r(120),y=r(45),_=r(121),h=r(122),b=r(123),S=r(124),I=r(125),C=r(15),F=r(32),O=r(11),j=function(e){function t(e,r,n,a){var c;return(0,o.default)(this,t),(c=(0,i.default)(this,(0,s.default)(t).call(this,e,r,a))).escapeSequenceEncoder=n,c}return(0,c.default)(t,e),(0,a.default)(t,[{key:"initialize",value:function(e,t){this.stringArrayName=e,this.stringArrayCallsWrapperName=t}},{key:"getNodeStructure",value:function(){return O.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){var e=this.getDecodeStringArrayTemplate();return F.JavaScriptObfuscator.obfuscate(f.default(S.StringArrayCallsWrapperTemplate(),{decodeNodeTemplate:e,stringArrayCallsWrapperName:this.stringArrayCallsWrapperName,stringArrayName:this.stringArrayName}),Object.assign({},N.NO_ADDITIONAL_NODES_PRESET,{identifierNamesGenerator:this.options.identifierNamesGenerator,seed:this.options.seed})).getObfuscatedCode()}},{key:"getDecodeStringArrayTemplate",value:function(){var e=this.options.target!==p.ObfuscationTarget.BrowserNoEval?this.getGlobalVariableTemplate():y.GlobalVariableNoEvalTemplate(),t=f.default(v.AtobTemplate(),{globalVariableTemplate:e}),r="",n="";switch(this.options.selfDefending&&(n=f.default(h.SelfDefendingTemplate(this.randomGenerator,this.escapeSequenceEncoder),{stringArrayCallsWrapperName:this.stringArrayCallsWrapperName,stringArrayName:this.stringArrayName})),this.options.stringArrayEncoding){case m.StringArrayEncoding.Rc4:r=f.default(I.StringArrayRc4DecodeNodeTemplate(this.randomGenerator),{atobPolyfill:t,rc4Polyfill:_.Rc4Template(),selfDefendingCode:n,stringArrayCallsWrapperName:this.stringArrayCallsWrapperName});break;case m.StringArrayEncoding.Base64:r=f.default(b.StringArrayBase64DecodeNodeTemplate(this.randomGenerator),{atobPolyfill:t,selfDefendingCode:n,stringArrayCallsWrapperName:this.stringArrayCallsWrapperName})}return r}}]),t}(C.AbstractCustomNode);d.__decorate([g.initializable(),d.__metadata("design:type",String)],j.prototype,"stringArrayName",void 0),d.__decorate([g.initializable(),d.__metadata("design:type",String)],j.prototype,"stringArrayCallsWrapperName",void 0),j=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IEscapeSequenceEncoder)),d.__param(3,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object,Object])],j),t.StringArrayCallsWrapper=j},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AtobTemplate=function(){return"\n (function () {\n {globalVariableTemplate}\n \n var chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';\n\n that.atob || (\n that.atob = function(input) {\n var str = String(input).replace(/=+$/, '');\n for (\n var bc = 0, bs, buffer, idx = 0, output = '';\n buffer = str.charAt(idx++);\n ~buffer && (bs = bc % 4 ? bs * 64 + buffer : buffer,\n bc++ % 4) ? output += String.fromCharCode(255 & bs >> (-2 * bc & 6)) : 0\n ) {\n buffer = chars.indexOf(buffer);\n }\n return output;\n });\n })();\n "}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Rc4Template=function(){return"\n var rc4 = function (str, key) {\n var s = [], j = 0, x, res = '', newStr = '';\n \n str = atob(str);\n \n for (var k = 0, length = str.length; k < length; k++) {\n newStr += '%' + ('00' + str.charCodeAt(k).toString(16)).slice(-2);\n }\n \n str = decodeURIComponent(newStr);\n \t \n\t for (var 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 (var 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 res += String.fromCharCode(str.charCodeAt(y) ^ s[(s[i] + s[j]) % 256]);\n }\n \n return res;\n }\n "}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SelfDefendingTemplate=function(e,t){var r=e.getRandomString(6),n=e.getRandomString(6),o=e.getRandomString(6),a=e.getRandomString(6),i=e.getRandomString(6),s=e.getRandomString(6),c=e.getRandomString(6),d=e.getRandomString(6),u=e.getRandomString(6);return"\n var StatesClass = function (".concat(r,") {\n this.").concat(r," = ").concat(r,";\n this.").concat(n," = [1, 0, 0];\n this.").concat(o," = function(){return 'newState';};\n this.").concat(a," = '").concat(t.encode("\\w+ *\\(\\) *{\\w+ *",!0),"';\n this.").concat(i," = '").concat(t.encode("['|\"].+['|\"];? *}",!0),"';\n };\n \n StatesClass.prototype.").concat(s," = function () {\n var regExp = new RegExp(this.").concat(a," + this.").concat(i,");\n var expression = regExp.test(this.").concat(o,".toString())\n ? --this.").concat(n,"[1]\n : --this.").concat(n,"[0];\n \n return this.").concat(c,"(expression);\n };\n \n StatesClass.prototype.").concat(c," = function (").concat(u,") {\n if (!Boolean(~").concat(u,")) {\n return ").concat(u,";\n }\n \n return this.").concat(d,"(this.").concat(r,");\n };\n\n StatesClass.prototype.").concat(d," = function (").concat(r,") {\n for (var i = 0, len = this.").concat(n,".length; i < len; i++) {\n this.").concat(n,".push(Math.round(Math.random()));\n len = this.").concat(n,".length;\n }\n \n return ").concat(r,"(this.").concat(n,"[0]);\n };\n\n new StatesClass({stringArrayCallsWrapperName}).").concat(s,"();\n ")}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayBase64DecodeNodeTemplate=function(e){var t=e.getRandomString(6),r=e.getRandomString(6),n=e.getRandomString(6);return"\n if ({stringArrayCallsWrapperName}.".concat(t," === undefined) {\n {atobPolyfill}\n \n {stringArrayCallsWrapperName}.").concat(r," = function (str) {\n var string = atob(str);\n var newStringChars = [];\n \n for (var i = 0, length = string.length; i < length; i++) {\n newStringChars += '%' + ('00' + string.charCodeAt(i).toString(16)).slice(-2);\n }\n \n return decodeURIComponent(newStringChars);\n };\n \n {stringArrayCallsWrapperName}.").concat(n," = {};\n \n {stringArrayCallsWrapperName}.").concat(t," = true;\n }\n \n var cachedValue = {stringArrayCallsWrapperName}.").concat(n,"[index];\n \n if (cachedValue === undefined) {\n {selfDefendingCode}\n \n value = {stringArrayCallsWrapperName}.").concat(r,"(value);\n {stringArrayCallsWrapperName}.").concat(n,"[index] = value;\n } else {\n value = cachedValue;\n }\n ")}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayCallsWrapperTemplate=function(){return"\n var {stringArrayCallsWrapperName} = function (index, key) {\n index = index - 0;\n \n var value = {stringArrayName}[index];\n \n {decodeNodeTemplate}\n \n return value;\n };\n "}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayRc4DecodeNodeTemplate=function(e){var t=e.getRandomString(6),r=e.getRandomString(6),n=e.getRandomString(6),o=e.getRandomString(6);return"\n if ({stringArrayCallsWrapperName}.".concat(t," === undefined) {\n {atobPolyfill}\n \n {rc4Polyfill}\n {stringArrayCallsWrapperName}.").concat(r," = rc4;\n \n {stringArrayCallsWrapperName}.").concat(n," = {};\n \n {stringArrayCallsWrapperName}.").concat(t," = true;\n }\n \n var cachedValue = {stringArrayCallsWrapperName}.").concat(n,"[index];\n\n if (cachedValue === undefined) {\n if ({stringArrayCallsWrapperName}.").concat(o," === undefined) {\n {selfDefendingCode}\n \n {stringArrayCallsWrapperName}.").concat(o," = true;\n }\n \n value = {stringArrayCallsWrapperName}.").concat(r,"(value, key);\n {stringArrayCallsWrapperName}.").concat(n,"[index] = value;\n } else {\n value = cachedValue;\n }\n ")}},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(39)),d=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var u=r(4),l=r(2),f=r(5),p=u.__importDefault(r(18)),m=r(10),g=r(127),N=r(15),v=r(11),y=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r,n))}return(0,d.default)(t,e),(0,a.default)(t,[{key:"initialize",value:function(e,t,r){this.stringArrayStorage=e,this.stringArrayName=t,this.stringArrayRotateValue=r}},{key:"getNode",value:function(){return this.stringArrayStorage.rotateArray(this.stringArrayRotateValue),(0,c.default)((0,s.default)(t.prototype),"getNode",this).call(this)}},{key:"getNodeStructure",value:function(){return v.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){return p.default(g.StringArrayTemplate(),{stringArrayName:this.stringArrayName,stringArray:this.stringArrayStorage.toString()})}}]),t}(N.AbstractCustomNode);u.__decorate([m.initializable(),u.__metadata("design:type",Object)],y.prototype,"stringArrayStorage",void 0),u.__decorate([m.initializable(),u.__metadata("design:type",String)],y.prototype,"stringArrayName",void 0),u.__decorate([m.initializable(),u.__metadata("design:type",Number)],y.prototype,"stringArrayRotateValue",void 0),y=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],y),t.StringArrayNode=y},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayTemplate=function(){return"\n var {stringArrayName} = [{stringArray}];\n "}},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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=d.__importDefault(r(18)),p=r(10),m=r(38),g=r(129),N=r(130),v=r(15),y=r(32),_=r(11),h=r(40),b=function(e){function t(e,r,n,a){var c;return(0,o.default)(this,t),(c=(0,i.default)(this,(0,s.default)(t).call(this,e,r,a))).escapeSequenceEncoder=n,c}return(0,c.default)(t,e),(0,a.default)(t,[{key:"initialize",value:function(e,t){this.stringArrayName=e,this.stringArrayRotateValue=t}},{key:"getNodeStructure",value:function(){return _.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){var e=this.identifierNamesGenerator.generate(),t=this.identifierNamesGenerator.generate(),r="";return r=this.options.selfDefending?f.default(g.SelfDefendingTemplate(this.escapeSequenceEncoder),{timesName:e,whileFunctionName:t}):"".concat(t,"(++").concat(e,")"),y.JavaScriptObfuscator.obfuscate(f.default(N.StringArrayRotateFunctionTemplate(),{code:r,timesName:e,stringArrayName:this.stringArrayName,stringArrayRotateValue:h.NumberUtils.toHex(this.stringArrayRotateValue),whileFunctionName:t}),Object.assign({},m.NO_ADDITIONAL_NODES_PRESET,{identifierNamesGenerator:this.options.identifierNamesGenerator,seed:this.options.seed})).getObfuscatedCode()}}]),t}(v.AbstractCustomNode);d.__decorate([p.initializable(),d.__metadata("design:type",String)],b.prototype,"stringArrayName",void 0),d.__decorate([p.initializable(),d.__metadata("design:type",Number)],b.prototype,"stringArrayRotateValue",void 0),b=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IEscapeSequenceEncoder)),d.__param(3,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object,Object])],b),t.StringArrayRotateFunctionNode=b},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SelfDefendingTemplate=function(e){return"\n var selfDefendingFunc = function () {\n var object = {\n data: {\n key: 'cookie',\n value: 'timeout'\n },\n setCookie: function (options, name, value, document) {\n document = document || {};\n \n var updatedCookie = name + \"=\" + value;\n\n var i = 0;\n \n for (var i = 0, len = options.length; i < len; i++) {\n var propName = options[i];\n \n updatedCookie += \"; \" + propName;\n \n var propValue = options[propName];\n \n options.push(propValue);\n len = options.length;\n \n if (propValue !== true) {\n updatedCookie += \"=\" + propValue;\n }\n }\n\n document['cookie'] = updatedCookie;\n },\n removeCookie: function(){return 'dev';},\n getCookie: function (document, name) {\n document = document || function (value) { return value };\n var matches = document(new RegExp(\n \"(?:^|; )\" + name.replace(/([.$?*|{}()[]\\/+^])/g, '\\$1') + \"=([^;]*)\"\n ));\n \n var func = function (param1, param2) {\n param1(++param2);\n };\n \n func({whileFunctionName}, {timesName});\n \n return matches ? decodeURIComponent(matches[1]) : undefined;\n }\n };\n \n var test1 = function () {\n var regExp = new RegExp('".concat(e.encode("\\w+ *\\(\\) *{\\w+ *['|\"].+['|\"];? *}",!0),"');\n \n return regExp.test(object.removeCookie.toString());\n };\n \n object['updateCookie'] = test1;\n \n var cookie = '';\n var result = object['updateCookie']();\n \n if (!result) {\n object['setCookie'](['*'], 'counter', 1);\n } else if (result) {\n cookie = object['getCookie'](null, 'counter');\n } else {\n object['removeCookie']();\n }\n };\n \n selfDefendingFunc();\n ")}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayRotateFunctionTemplate=function(){return"\n (function (array, {timesName}) {\n var {whileFunctionName} = function (times) {\n while (--times) {\n array['push'](array['shift']());\n }\n };\n \n {code}\n })({stringArrayName}, 0x{stringArrayRotateValue});\n "}},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(10),p=r(15),m=r(14),g=r(11),N=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r,n))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"initialize",value:function(e,t){this.controlFlowStorageName=e,this.controlFlowStorageKey=t}},{key:"getNodeStructure",value:function(){var e=m.NodeFactory.expressionStatementNode(m.NodeFactory.memberExpressionNode(m.NodeFactory.identifierNode(this.controlFlowStorageName),m.NodeFactory.identifierNode(this.controlFlowStorageKey)));return g.NodeUtils.parentizeAst(e),[e]}}]),t}(p.AbstractCustomNode);d.__decorate([f.initializable(),d.__metadata("design:type",String)],N.prototype,"controlFlowStorageKey",void 0),d.__decorate([f.initializable(),d.__metadata("design:type",String)],N.prototype,"controlFlowStorageName",void 0),N=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object])],N),t.StringLiteralControlFlowStorageCallNode=N},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(10),p=r(15),m=r(14),g=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r,n))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"initialize",value:function(e){this.literalValue=e}},{key:"getNodeStructure",value:function(){return[m.NodeFactory.expressionStatementNode(m.NodeFactory.literalNode(this.literalValue))]}}]),t}(p.AbstractCustomNode);d.__decorate([f.initializable(),d.__metadata("design:type",String)],g.prototype,"literalValue",void 0),g=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),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.StringLiteralNode=g},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(2);t.finalizingTransformersModule=new n.ContainerModule(function(e){})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(2),o=r(5),a=r(35),i=r(135),s=r(136);t.generatorsModule=new n.ContainerModule(function(e){e(o.ServiceIdentifiers.IIdentifierNamesGenerator).to(i.HexadecimalIdentifierNamesGenerator).inSingletonScope().whenTargetNamed(a.IdentifierNamesGenerator.HexadecimalIdentifierNamesGenerator),e(o.ServiceIdentifiers.IIdentifierNamesGenerator).to(s.MangledIdentifierNamesGenerator).inSingletonScope().whenTargetNamed(a.IdentifierNamesGenerator.MangledIdentifierNamesGenerator),e(o.ServiceIdentifiers.Factory__IIdentifierNamesGenerator).toFactory(function(e){var t=null;return function(r){if(t)return t;var n;switch(r.identifierNamesGenerator){case a.IdentifierNamesGenerator.MangledIdentifierNamesGenerator:n=e.container.getNamed(o.ServiceIdentifiers.IIdentifierNamesGenerator,a.IdentifierNamesGenerator.MangledIdentifierNamesGenerator);break;case a.IdentifierNamesGenerator.HexadecimalIdentifierNamesGenerator:default:n=e.container.getNamed(o.ServiceIdentifiers.IIdentifierNamesGenerator,a.IdentifierNamesGenerator.HexadecimalIdentifierNamesGenerator)}return t=n,n}})})},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=r(5),p=r(56),m=r(40),g=r(34),N=d=function(e){function t(e,r){var n;return(0,o.default)(this,t),(n=(0,i.default)(this,(0,s.default)(t).call(this,e,r))).randomVariableNameSet=new Set,n}return(0,c.default)(t,e),(0,a.default)(t,[{key:"generate",value:function(e){var t=this.randomGenerator.getRandomInteger(1e4,99999999),r=m.NumberUtils.toHex(t),n=g.Utils.hexadecimalPrefix.length+1,o=e?e-n:d.baseIdentifierNameLength,a=r.substr(0,o),i="_".concat(g.Utils.hexadecimalPrefix).concat(a);return this.randomVariableNameSet.has(i)?this.generate(e):(this.randomVariableNameSet.add(i),i)}},{key:"generateWithPrefix",value:function(e){var t=this.generate(e);return"".concat(this.options.identifiersPrefix).concat(t).replace("__","_")}}]),t}(p.AbstractIdentifierNamesGenerator);N.baseIdentifierNameLength=6,N=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(1,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Object,Object])],N),t.HexadecimalIdentifierNamesGenerator=N},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(39)),d=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var u,l=r(4),f=r(2),p=r(5),m=r(56),g=u=function(e){function t(e,r){var n;return(0,o.default)(this,t),(n=(0,i.default)(this,(0,s.default)(t).call(this,e,r))).previousMangledName=u.initMangledNameCharacter,n}return(0,d.default)(t,e),(0,a.default)(t,[{key:"generate",value:function(e){var t=this.generateNewMangledName(this.previousMangledName);return this.previousMangledName=t,t}},{key:"generateWithPrefix",value:function(e){var t=this.options.identifiersPrefix?"".concat(this.options.identifiersPrefix,"_"):"",r=this.generate(e);return"".concat(t).concat(r)}},{key:"isValidIdentifierName",value:function(e){return(0,c.default)((0,s.default)(t.prototype),"isValidIdentifierName",this).call(this,e)&&!u.reservedNames.includes(e)}},{key:"generateNewMangledName",value:function(e){var t=function(e){var t=u.nameSequence,r=e.length,n=function(e){return"0".repeat(e)},o=r-1;do{var a=e.charAt(o),i=t.indexOf(a);if(i!==t.length-1)return e.substring(0,o)+t[i+1]+n(r-(o+1));--o}while(o>=0);return"a".concat(n(r))},r=t(e);return this.isValidIdentifierName(r)||(r=this.generateNewMangledName(r)),r}}]),t}(m.AbstractIdentifierNamesGenerator);g.initMangledNameCharacter="9",g.nameSequence="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""),g.reservedNames=["byte","case","char","do","else","enum","eval","for","goto","if","in","int","let","long","new","null","this","true","try","var","void","with"],g=u=l.__decorate([f.injectable(),l.__param(0,f.inject(p.ServiceIdentifiers.IRandomGenerator)),l.__param(1,f.inject(p.ServiceIdentifiers.IOptions)),l.__metadata("design:paramtypes",[Object,Object])],g),t.MangledIdentifierNamesGenerator=g},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(20),o=r(2),a=r(5);t.nodeTransformersModule=new o.ContainerModule(function(e){e(a.ServiceIdentifiers.Factory__INodeTransformer).toFactory(n.InversifyContainerFacade.getCacheFactory(a.ServiceIdentifiers.INodeTransformer))})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(20),o=r(2),a=r(5),i=r(22),s=r(57),c=r(29),d=r(139),u=r(140),l=r(141),f=r(142),p=r(143),m=r(144),g=r(145),N=r(146),v=r(147),y=r(148),_=r(149),h=r(150);t.obfuscatingTransformersModule=new o.ContainerModule(function(e){e(a.ServiceIdentifiers.INodeTransformer).to(l.CatchClauseTransformer).whenTargetNamed(c.NodeTransformer.CatchClauseTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(f.ClassDeclarationTransformer).whenTargetNamed(c.NodeTransformer.ClassDeclarationTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(p.FunctionDeclarationTransformer).whenTargetNamed(c.NodeTransformer.FunctionDeclarationTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(m.FunctionTransformer).whenTargetNamed(c.NodeTransformer.FunctionTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(g.ImportDeclarationTransformer).whenTargetNamed(c.NodeTransformer.ImportDeclarationTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(N.LabeledStatementTransformer).whenTargetNamed(c.NodeTransformer.LabeledStatementTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(v.LiteralTransformer).whenTargetNamed(c.NodeTransformer.LiteralTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(h.VariableDeclarationTransformer).whenTargetNamed(c.NodeTransformer.VariableDeclarationTransformer),e(a.ServiceIdentifiers.IObfuscatingReplacer).to(u.BooleanLiteralObfuscatingReplacer).whenTargetNamed(s.LiteralObfuscatingReplacer.BooleanLiteralObfuscatingReplacer),e(a.ServiceIdentifiers.IObfuscatingReplacer).to(y.NumberLiteralObfuscatingReplacer).whenTargetNamed(s.LiteralObfuscatingReplacer.NumberLiteralObfuscatingReplacer),e(a.ServiceIdentifiers.IObfuscatingReplacer).to(_.StringLiteralObfuscatingReplacer).whenTargetNamed(s.LiteralObfuscatingReplacer.StringLiteralObfuscatingReplacer),e(a.ServiceIdentifiers.IIdentifierObfuscatingReplacer).to(d.BaseIdentifierObfuscatingReplacer).whenTargetNamed(i.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer),e(a.ServiceIdentifiers.Factory__IObfuscatingReplacer).toFactory(n.InversifyContainerFacade.getCacheFactory(a.ServiceIdentifiers.IObfuscatingReplacer)),e(a.ServiceIdentifiers.Factory__IIdentifierObfuscatingReplacer).toFactory(n.InversifyContainerFacade.getCacheFactory(a.ServiceIdentifiers.IIdentifierObfuscatingReplacer))})},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(41),p=r(14),m=function(e){function t(e,r){var n;return(0,o.default)(this,t),(n=(0,i.default)(this,(0,s.default)(t).call(this,r))).blockScopesMap=new Map,n.identifierNamesGenerator=e(r),n}return(0,c.default)(t,e),(0,a.default)(t,[{key:"replace",value:function(e,t){if(this.blockScopesMap.has(t)){var r=this.blockScopesMap.get(t);r.has(e)&&(e=r.get(e))}return p.NodeFactory.identifierNode(e)}},{key:"storeGlobalName",value:function(e,t){if(!this.isReservedName(e)){var r=this.identifierNamesGenerator.generateWithPrefix();this.blockScopesMap.has(t)||this.blockScopesMap.set(t,new Map),this.blockScopesMap.get(t).set(e,r)}}},{key:"storeLocalName",value:function(e,t){if(!this.isReservedName(e)){var r=this.identifierNamesGenerator.generate();this.blockScopesMap.has(t)||this.blockScopesMap.set(t,new Map),this.blockScopesMap.get(t).set(e,r)}}},{key:"isReservedName",value:function(e){return!!this.options.reservedStrings.length&&this.options.reservedNames.some(function(t){return null!==new RegExp(t,"g").exec(e)})}}]),t}(f.AbstractObfuscatingReplacer);m=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object])],m),t.BaseIdentifierObfuscatingReplacer=m},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=r(5),p=r(41),m=r(14),g=d=function(e){function t(e){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"replace",value:function(e){return e?d.getTrueUnaryExpressionNode():d.getFalseUnaryExpressionNode()}}],[{key:"getTrueUnaryExpressionNode",value:function(){return m.NodeFactory.unaryExpressionNode("!",d.getFalseUnaryExpressionNode())}},{key:"getFalseUnaryExpressionNode",value:function(){return m.NodeFactory.unaryExpressionNode("!",m.NodeFactory.arrayExpressionNode())}}]),t}(p.AbstractObfuscatingReplacer);g=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Object])],g),t.BooleanLiteralObfuscatingReplacer=g},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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=d.__importStar(r(16)),p=r(22),m=r(12),g=r(13),N=r(9),v=r(27),y=r(17),_=function(e){function t(e,r,n){var a;return(0,o.default)(this,t),(a=(0,i.default)(this,(0,s.default)(t).call(this,r,n))).identifierObfuscatingReplacer=e(p.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer),a}return(0,c.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case m.TransformationStage.Obfuscating:return{enter:function(e,r){if(r&&N.NodeGuards.isCatchClauseNode(e))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){var r=v.NodeLexicalScopeUtils.getLexicalScope(e);return r?(this.storeCatchClauseParam(e,r),this.replaceCatchClauseParam(e,r),e):e}},{key:"storeCatchClauseParam",value:function(e,t){N.NodeGuards.isIdentifierNode(e.param)&&this.identifierObfuscatingReplacer.storeLocalName(e.param.name,t)}},{key:"replaceCatchClauseParam",value:function(e,t){var r=this;f.replace(e,{enter:function(e,n){if(n&&N.NodeGuards.isReplaceableIdentifierNode(e,n)){var o=r.identifierObfuscatingReplacer.replace(e.name,t).name;e.name!==o&&(e.name=o,y.NodeMetadata.set(e,{renamedIdentifier:!0}))}}})}}]),t}(g.AbstractNodeTransformer);_=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierObfuscatingReplacer)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object])],_),t.CatchClauseTransformer=_},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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=d.__importStar(r(16)),p=r(22),m=r(19),g=r(12),N=r(13),v=r(9),y=r(27),_=r(17),h=function(e){function t(e,r,n){var a;return(0,o.default)(this,t),(a=(0,i.default)(this,(0,s.default)(t).call(this,r,n))).replaceableIdentifiers=new Map,a.identifierObfuscatingReplacer=e(p.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer),a}return(0,c.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case g.TransformationStage.Obfuscating:return{enter:function(e,r){if(r&&v.NodeGuards.isClassDeclarationNode(e)&&!v.NodeGuards.isExportNamedDeclarationNode(r))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){var r=y.NodeLexicalScopeUtils.getLexicalScope(e);if(!r)return e;var n=r.type===m.NodeType.Program;return!this.options.renameGlobals&&n?e:(this.storeClassName(e,r,n),this.replaceableIdentifiers.has(r)?this.replaceScopeCachedIdentifiers(e,r):this.replaceScopeIdentifiers(r),e)}},{key:"storeClassName",value:function(e,t,r){r?this.identifierObfuscatingReplacer.storeGlobalName(e.id.name,t):this.identifierObfuscatingReplacer.storeLocalName(e.id.name,t)}},{key:"replaceScopeCachedIdentifiers",value:function(e,t){var r=this.replaceableIdentifiers.get(t).get(e.id.name);if(r)for(var n=r.length,o=0;o2&&void 0!==arguments[2]?arguments[2]:new Set,o={enter:function(o,a){if(v.NodeGuards.isFunctionNode(o)&&o!==e)return r.replaceFunctionParams(o,t,new Set(n)),p.VisitorOption.Skip;if(d.isProhibitedIdentifierOfShorthandPropertyNode(o))n.add(o.key.name);else if(a&&v.NodeGuards.isReplaceableIdentifierNode(o,a)&&!_.NodeMetadata.isRenamedIdentifier(o)&&!n.has(o.name)){if(r.isGlobalFunctionDeclarationIdentifier(o,a))return;var i=r.identifierObfuscatingReplacer.replace(o.name,t).name;o.name!==i&&(o.name=i,_.NodeMetadata.set(o,{renamedIdentifier:!0}))}}};p.replace(e,o)}}],[{key:"isProhibitedIdentifierOfPropertyNode",value:function(e,t){return v.NodeGuards.isIdentifierNode(e)&&!!t&&v.NodeGuards.isPropertyNode(t)&&t.key===e}},{key:"isProhibitedIdentifierOfShorthandPropertyNode",value:function(e){return v.NodeGuards.isPropertyNode(e)&&e.shorthand&&v.NodeGuards.isIdentifierNode(e.key)}}]),t}(N.AbstractNodeTransformer);b=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IIdentifierObfuscatingReplacer)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],b),t.FunctionTransformer=b},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=r(5),p=u.__importStar(r(16)),m=r(22),g=r(12),N=r(13),v=r(9),y=r(27),_=r(17),h=d=function(e){function t(e,r,n){var a;return(0,o.default)(this,t),(a=(0,i.default)(this,(0,s.default)(t).call(this,r,n))).replaceableIdentifiers=new Map,a.identifierObfuscatingReplacer=e(m.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer),a}return(0,c.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case g.TransformationStage.Obfuscating:return{enter:function(e,r){if(r&&v.NodeGuards.isImportDeclarationNode(e))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){var r=y.NodeLexicalScopeUtils.getLexicalScope(e);return r?(this.storeImportSpecifierNames(e,r),this.replaceableIdentifiers.has(r)?this.replaceScopeCachedIdentifiers(r):this.replaceScopeIdentifiers(r),e):e}},{key:"storeImportSpecifierNames",value:function(e,t){var r=this;e.specifiers.forEach(function(e){d.isProhibitedImportSpecifierNode(e)||r.identifierObfuscatingReplacer.storeGlobalName(e.local.name,t)})}},{key:"replaceScopeCachedIdentifiers",value:function(e){var t=this;this.replaceableIdentifiers.get(e).forEach(function(r){var n=t.identifierObfuscatingReplacer.replace(r.name,e);r.name=n.name,_.NodeMetadata.set(r,{renamedIdentifier:!0})})}},{key:"replaceScopeIdentifiers",value:function(e){var t=this,r=[];p.replace(e,{enter:function(n,o){if(o&&v.NodeGuards.isReplaceableIdentifierNode(n,o)&&!_.NodeMetadata.isRenamedIdentifier(n)){var a=t.identifierObfuscatingReplacer.replace(n.name,e).name;n.name!==a?(n.name=a,_.NodeMetadata.set(n,{renamedIdentifier:!0})):r.push(n)}}}),this.replaceableIdentifiers.set(e,r)}}],[{key:"isProhibitedImportSpecifierNode",value:function(e){return v.NodeGuards.isImportSpecifierNode(e)&&e.imported.name===e.local.name}}]),t}(N.AbstractNodeTransformer);h=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IIdentifierObfuscatingReplacer)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],h),t.ImportDeclarationTransformer=h},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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=d.__importStar(r(16)),p=r(22),m=r(12),g=r(13),N=r(9),v=r(27),y=function(e){function t(e,r,n){var a;return(0,o.default)(this,t),(a=(0,i.default)(this,(0,s.default)(t).call(this,r,n))).identifierObfuscatingReplacer=e(p.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer),a}return(0,c.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case m.TransformationStage.Obfuscating:return{enter:function(e,r){if(r&&N.NodeGuards.isLabeledStatementNode(e))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){var r=v.NodeLexicalScopeUtils.getLexicalScope(e);return r?(this.storeLabeledStatementName(e,r),this.replaceLabeledStatementName(e,r),e):e}},{key:"storeLabeledStatementName",value:function(e,t){this.identifierObfuscatingReplacer.storeLocalName(e.label.name,t)}},{key:"replaceLabeledStatementName",value:function(e,t){var r=this;f.replace(e,{enter:function(e,n){if(n&&N.NodeGuards.isLabelIdentifierNode(e,n)){var o=r.identifierObfuscatingReplacer.replace(e.name,t);e.name=o.name}}})}}]),t}(g.AbstractNodeTransformer);y=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierObfuscatingReplacer)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object])],y),t.LabeledStatementTransformer=y},function(e,t,r){"use strict";var n=r(0),o=n(r(50)),a=n(r(1)),i=n(r(3)),s=n(r(6)),c=n(r(7)),d=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var u=r(4),l=r(2),f=r(5),p=r(57),m=r(12),g=r(13),N=r(9),v=r(17),y=r(11),_=function(e){function t(e,r,n){var o;return(0,a.default)(this,t),(o=(0,s.default)(this,(0,c.default)(t).call(this,r,n))).literalObfuscatingReplacerFactory=e,o}return(0,d.default)(t,e),(0,i.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case m.TransformationStage.Obfuscating:return{enter:function(e,r){if(r&&N.NodeGuards.isLiteralNode(e)&&!v.NodeMetadata.isReplacedLiteral(e))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){if(this.isProhibitedNode(e,t))return e;var r;switch((0,o.default)(e.value)){case"boolean":r=this.literalObfuscatingReplacerFactory(p.LiteralObfuscatingReplacer.BooleanLiteralObfuscatingReplacer).replace(e.value);break;case"number":r=this.literalObfuscatingReplacerFactory(p.LiteralObfuscatingReplacer.NumberLiteralObfuscatingReplacer).replace(e.value);break;case"string":r=this.literalObfuscatingReplacerFactory(p.LiteralObfuscatingReplacer.StringLiteralObfuscatingReplacer).replace(e.value);break;default:r=e}return y.NodeUtils.parentizeNode(r,t),r}},{key:"isProhibitedNode",value:function(e,t){return!(!N.NodeGuards.isPropertyNode(t)||t.key!==e)||!!N.NodeGuards.isImportDeclarationNode(t)}}]),t}(g.AbstractNodeTransformer);_=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IObfuscatingReplacer)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],_),t.LiteralTransformer=_},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(41),p=r(14),m=r(40),g=r(34),N=function(e){function t(e){var r;return(0,o.default)(this,t),(r=(0,i.default)(this,(0,s.default)(t).call(this,e))).numberLiteralCache=new Map,r}return(0,c.default)(t,e),(0,a.default)(t,[{key:"replace",value:function(e){var t;return this.numberLiteralCache.has(e)?t=this.numberLiteralCache.get(e):(t=m.NumberUtils.isCeil(e)?"".concat(g.Utils.hexadecimalPrefix).concat(m.NumberUtils.toHex(e)):String(e),this.numberLiteralCache.set(e,t)),p.NodeFactory.literalNode(e,t)}}]),t}(f.AbstractObfuscatingReplacer);N=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Object])],N),t.NumberLiteralObfuscatingReplacer=N},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=r(5),p=r(37),m=r(41),g=r(17),N=r(14),v=r(40),y=r(34),_=d=function(e){function t(e,r,n,a,c){var u;return(0,o.default)(this,t),(u=(0,i.default)(this,(0,s.default)(t).call(this,c))).nodesCache=new Map,u.stringLiteralHexadecimalIndexCache=new Map,u.stringArrayStorage=e,u.escapeSequenceEncoder=r,u.randomGenerator=n,u.cryptUtils=a,u.rc4Keys=u.randomGenerator.getRandomGenerator().n(function(){return u.randomGenerator.getRandomGenerator().string({length:d.rc4KeyLength})},d.rc4KeysCount),u}return(0,c.default)(t,e),(0,a.default)(t,[{key:"replace",value:function(e){if(this.isReservedString(e))return this.replaceWithReservedLiteralNode(e);var t=this.canUseStringArray(e),r="".concat(e,"-").concat(String(t));if(this.nodesCache.has(r)&&this.options.stringArrayEncoding!==p.StringArrayEncoding.Rc4)return this.nodesCache.get(r);var n=t?this.replaceWithStringArrayCallNode(e):this.replaceWithLiteralNode(e);return this.nodesCache.set(r,n),n}},{key:"canUseStringArray",value:function(e){return this.options.stringArray&&e.length>=d.minimumLengthForStringArray&&this.randomGenerator.getMathRandom()<=this.options.stringArrayThreshold}},{key:"getStringArrayHexadecimalIndex",value:function(e,t){if(this.stringLiteralHexadecimalIndexCache.has(e))return{fromCache:!0,index:this.stringLiteralHexadecimalIndexCache.get(e)};var r=v.NumberUtils.toHex(t),n="".concat(y.Utils.hexadecimalPrefix).concat(r);return this.stringLiteralHexadecimalIndexCache.set(e,n),{fromCache:!1,index:n}}},{key:"getEncodedValue",value:function(e){var t,r=null;switch(this.options.stringArrayEncoding){case p.StringArrayEncoding.Rc4:r=this.randomGenerator.getRandomGenerator().pickone(this.rc4Keys),t=this.cryptUtils.btoa(this.cryptUtils.rc4(e,r));break;case p.StringArrayEncoding.Base64:t=this.cryptUtils.btoa(e);break;default:t=e}return{encodedValue:t,key:r}}},{key:"replaceWithLiteralNode",value:function(e){return N.NodeFactory.literalNode(this.escapeSequenceEncoder.encode(e,this.options.unicodeEscapeSequence))}},{key:"replaceWithReservedLiteralNode",value:function(e){return N.NodeFactory.literalNode(this.escapeSequenceEncoder.encode(e,!1))}},{key:"replaceWithStringArrayCallNode",value:function(e){var t=this.getEncodedValue(e),r=t.encodedValue,n=t.key,o=this.escapeSequenceEncoder.encode(r,this.options.unicodeEscapeSequence),a=this.stringArrayStorage.getLength(),i=this.stringArrayStorage.getStorageId().split("|")[1],s=this.getStringArrayHexadecimalIndex(o,a),c=s.fromCache,u=s.index;c||this.stringArrayStorage.set(a,o);var l=[d.getHexadecimalLiteralNode(u)];n&&l.push(d.getRc4KeyLiteralNode(this.escapeSequenceEncoder.encode(n,this.options.unicodeEscapeSequence)));var f=N.NodeFactory.identifierNode(i);return g.NodeMetadata.set(f,{renamedIdentifier:!0}),N.NodeFactory.callExpressionNode(f,l)}},{key:"isReservedString",value:function(e){return!!this.options.reservedStrings.length&&this.options.reservedStrings.some(function(t){return null!==new RegExp(t,"g").exec(e)})}}],[{key:"getHexadecimalLiteralNode",value:function(e){var t=N.NodeFactory.literalNode(e);return g.NodeMetadata.set(t,{replacedLiteral:!0}),t}},{key:"getRc4KeyLiteralNode",value:function(e){var t=N.NodeFactory.literalNode(e);return g.NodeMetadata.set(t,{replacedLiteral:!0}),t}}]),t}(m.AbstractObfuscatingReplacer);_.minimumLengthForStringArray=3,_.rc4KeyLength=4,_.rc4KeysCount=50,_=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.TStringArrayStorage)),u.__param(1,l.inject(f.ServiceIdentifiers.IEscapeSequenceEncoder)),u.__param(2,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(3,l.inject(f.ServiceIdentifiers.ICryptUtils)),u.__param(4,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Object,Object,Object,Object,Object])],_),t.StringLiteralObfuscatingReplacer=_},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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=d.__importStar(r(16)),p=r(22),m=r(19),g=r(12),N=r(13),v=r(9),y=r(27),_=r(151),h=r(17),b=function(e){function t(e,r,n){var a;return(0,o.default)(this,t),(a=(0,i.default)(this,(0,s.default)(t).call(this,r,n))).replaceableIdentifiers=new Map,a.identifierObfuscatingReplacer=e(p.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer),a}return(0,c.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case g.TransformationStage.Obfuscating:return{enter:function(e,r){if(r&&v.NodeGuards.isVariableDeclarationNode(e)&&!v.NodeGuards.isExportNamedDeclarationNode(r))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){var r="var"===e.kind?y.NodeLexicalScopeUtils.getLexicalScope(e):_.NodeBlockLexicalScopeUtils.getLexicalScope(e);if(!r)return e;var n=r.type===m.NodeType.Program;if(!this.options.renameGlobals&&n)return e;var o="var"===e.kind?r:t;return this.storeVariableNames(e,r,n),this.replaceableIdentifiers.has(o)?this.replaceScopeCachedIdentifiers(e,r,o):this.replaceScopeIdentifiers(o,r),e}},{key:"storeVariableNames",value:function(e,t,r){var n=this;this.traverseDeclarationIdentifiers(e,function(e){r?n.identifierObfuscatingReplacer.storeGlobalName(e.name,t):n.identifierObfuscatingReplacer.storeLocalName(e.name,t)})}},{key:"replaceScopeCachedIdentifiers",value:function(e,t,r){var n=this,o=this.replaceableIdentifiers.get(r),a=[];this.traverseDeclarationIdentifiers(e,function(e){a.push(e.name)}),a.forEach(function(e){var r=o.get(e);if(r)for(var a=r.length,i=0;i1&&void 0!==arguments[1]?arguments[1]:1/0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;if(n.length>=r)return n;var a=t.parentNode;if(!a)throw new ReferenceError("`parentNode` property of given node is `undefined`");return i.NodeGuards.isNodeWithBlockLexicalScope(t)&&n.push(t),t!==a?e.getLexicalScopesRecursive(a,r,n,++o):n}}]),e}();t.NodeBlockLexicalScopeUtils=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(2),o=r(5),a=r(153),i=r(156);t.optionsModule=new n.ContainerModule(function(e){e(o.ServiceIdentifiers.IOptions).to(a.Options).inSingletonScope(),e(o.ServiceIdentifiers.IOptionsNormalizer).to(i.OptionsNormalizer).inSingletonScope()})},function(e,t,r){"use strict";var n=r(0)(r(1));Object.defineProperty(t,"__esModule",{value:!0});var o,a=r(4),i=r(2),s=r(5),c=r(154),d=r(35),u=r(23),l=r(36),f=r(37),p=r(46),m=r(155),g=o=function e(t,r){(0,n.default)(this,e),Object.assign(this,p.DEFAULT_PRESET,t);var a=c.validateSync(this,o.validatorOptions);if(a.length)throw new ReferenceError("Validation failed. errors:\n".concat(m.ValidationErrorsFormatter.format(a)));Object.assign(this,r.normalize(this))};g.validatorOptions={validationError:{target:!1}},a.__decorate([c.IsBoolean(),a.__metadata("design:type",Boolean)],g.prototype,"compact",void 0),a.__decorate([c.IsBoolean(),a.__metadata("design:type",Boolean)],g.prototype,"controlFlowFlattening",void 0),a.__decorate([c.IsNumber(),c.Min(0),c.Max(1),a.__metadata("design:type",Number)],g.prototype,"controlFlowFlatteningThreshold",void 0),a.__decorate([c.IsBoolean(),a.__metadata("design:type",Boolean)],g.prototype,"deadCodeInjection",void 0),a.__decorate([c.IsNumber(),a.__metadata("design:type",Number)],g.prototype,"deadCodeInjectionThreshold",void 0),a.__decorate([c.IsBoolean(),a.__metadata("design:type",Boolean)],g.prototype,"debugProtection",void 0),a.__decorate([c.IsBoolean(),a.__metadata("design:type",Boolean)],g.prototype,"debugProtectionInterval",void 0),a.__decorate([c.IsBoolean(),a.__metadata("design:type",Boolean)],g.prototype,"disableConsoleOutput",void 0),a.__decorate([c.IsArray(),c.ArrayUnique(),c.IsString({each:!0}),a.__metadata("design:type",Array)],g.prototype,"domainLock",void 0),a.__decorate([c.IsIn([d.IdentifierNamesGenerator.HexadecimalIdentifierNamesGenerator,d.IdentifierNamesGenerator.MangledIdentifierNamesGenerator]),a.__metadata("design:type",String)],g.prototype,"identifierNamesGenerator",void 0),a.__decorate([c.IsString(),a.__metadata("design:type",String)],g.prototype,"identifiersPrefix",void 0),a.__decorate([c.IsString(),a.__metadata("design:type",String)],g.prototype,"inputFileName",void 0),a.__decorate([c.IsBoolean(),a.__metadata("design:type",Boolean)],g.prototype,"log",void 0),a.__decorate([c.IsBoolean(),a.__metadata("design:type",Boolean)],g.prototype,"renameGlobals",void 0),a.__decorate([c.IsArray(),c.ArrayUnique(),c.IsString({each:!0}),a.__metadata("design:type",Array)],g.prototype,"reservedNames",void 0),a.__decorate([c.IsArray(),c.ArrayUnique(),c.IsString({each:!0}),a.__metadata("design:type",Array)],g.prototype,"reservedStrings",void 0),a.__decorate([c.IsBoolean(),a.__metadata("design:type",Boolean)],g.prototype,"rotateStringArray",void 0),a.__decorate([c.IsNumber(),a.__metadata("design:type",Number)],g.prototype,"seed",void 0),a.__decorate([c.IsBoolean(),a.__metadata("design:type",Boolean)],g.prototype,"selfDefending",void 0),a.__decorate([c.IsBoolean(),a.__metadata("design:type",Boolean)],g.prototype,"sourceMap",void 0),a.__decorate([c.IsString(),c.ValidateIf(function(e){return Boolean(e.sourceMapBaseUrl)}),c.IsUrl({require_protocol:!0,require_tld:!1,require_valid_protocol:!0}),a.__metadata("design:type",String)],g.prototype,"sourceMapBaseUrl",void 0),a.__decorate([c.IsString(),a.__metadata("design:type",String)],g.prototype,"sourceMapFileName",void 0),a.__decorate([c.IsIn([l.SourceMapMode.Inline,l.SourceMapMode.Separate]),a.__metadata("design:type",String)],g.prototype,"sourceMapMode",void 0),a.__decorate([c.IsBoolean(),a.__metadata("design:type",Boolean)],g.prototype,"stringArray",void 0),a.__decorate([c.IsIn([!0,!1,f.StringArrayEncoding.Base64,f.StringArrayEncoding.Rc4]),a.__metadata("design:type",Object)],g.prototype,"stringArrayEncoding",void 0),a.__decorate([c.IsNumber(),c.Min(0),c.Max(1),a.__metadata("design:type",Number)],g.prototype,"stringArrayThreshold",void 0),a.__decorate([c.IsIn([u.ObfuscationTarget.Browser,u.ObfuscationTarget.BrowserNoEval,u.ObfuscationTarget.Node]),a.__metadata("design:type",String)],g.prototype,"target",void 0),a.__decorate([c.IsBoolean(),a.__metadata("design:type",Boolean)],g.prototype,"transformObjectKeys",void 0),a.__decorate([c.IsBoolean(),a.__metadata("design:type",Boolean)],g.prototype,"unicodeEscapeSequence",void 0),g=o=a.__decorate([i.injectable(),a.__param(0,i.inject(s.ServiceIdentifiers.TInputOptions)),a.__param(1,i.inject(s.ServiceIdentifiers.IOptionsNormalizer)),a.__metadata("design:paramtypes",[Object,Object])],g),t.Options=g},function(e,t){e.exports=require("class-validator")},function(e,t,r){"use strict";var n=r(0),o=n(r(28)),a=n(r(1)),i=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(){(0,a.default)(this,e)}return(0,i.default)(e,null,[{key:"format",value:function(t){return t.reduce(function(t,r){return(0,o.default)(t).concat([e.formatWithNestedConstraints(r)])},[]).join("\n")}},{key:"formatWithNestedConstraints",value:function(e){var t=e.constraints,r="`".concat(e.property,"` errors:\n"),n=Object.keys(t).map(function(e){return" - ".concat(t[e],"\n")}).join();return"".concat(r).concat(n)}}]),e}();t.ValidationErrorsFormatter=s},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i,s=r(4),c=r(2),d=r(157),u=r(158),l=r(159),f=r(160),p=r(161),m=r(162),g=r(163),N=r(164),v=r(165),y=r(166),_=r(167),h=i=function(){function e(){(0,o.default)(this,e)}return(0,a.default)(e,[{key:"normalize",value:function(e){var t=Object.assign({},e),r=!0,n=!1,o=void 0;try{for(var a,s=i.normalizerRules[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){t=(0,a.value)(t)}}catch(e){n=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(n)throw o}}return t}}]),e}();h.normalizerRules=[d.ControlFlowFlatteningThresholdRule,u.DeadCodeInjectionRule,l.DeadCodeInjectionThresholdRule,f.DomainLockRule,p.InputFileNameRule,m.SelfDefendingRule,g.SourceMapBaseUrlRule,N.SourceMapFileNameRule,v.StringArrayRule,y.StringArrayEncodingRule,_.StringArrayThresholdRule],h=i=s.__decorate([c.injectable()],h),t.OptionsNormalizer=h},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ControlFlowFlatteningThresholdRule=function(e){return 0===e.controlFlowFlatteningThreshold&&(e=Object.assign({},e,{controlFlowFlattening:!1,controlFlowFlatteningThreshold:0})),e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(46);t.DeadCodeInjectionRule=function(e){return e.deadCodeInjection&&((e=Object.assign({},e,{deadCodeInjection:!0,stringArray:!0})).stringArrayThreshold||(e=Object.assign({},e,{stringArray:!0,stringArrayThreshold:n.DEFAULT_PRESET.stringArrayThreshold}))),e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DeadCodeInjectionThresholdRule=function(e){return 0===e.deadCodeInjectionThreshold&&(e=Object.assign({},e,{deadCodeInjection:!1,deadCodeInjectionThreshold:0})),e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(34);t.DomainLockRule=function(e){if(e.domainLock.length){var t=[],r=!0,o=!1,a=void 0;try{for(var i,s=e.domainLock[Symbol.iterator]();!(r=(i=s.next()).done);r=!0){var c=i.value;t.push(n.Utils.extractDomainFrom(c))}}catch(e){o=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw a}}e=Object.assign({},e,{domainLock:t})}return e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InputFileNameRule=function(e){var t=e.inputFileName;return t&&(t=t.replace(/^\/+/,"").split(".").slice(0,-1).join(".")||t,e=Object.assign({},e,{inputFileName:"".concat(t,".js")})),e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SelfDefendingRule=function(e){return e.selfDefending&&(e=Object.assign({},e,{compact:!0,selfDefending:!0})),e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SourceMapBaseUrlRule=function(e){var t=e.sourceMapBaseUrl;return e.sourceMapFileName?(t&&!t.endsWith("/")&&(e=Object.assign({},e,{sourceMapBaseUrl:"".concat(t,"/")})),e):e=Object.assign({},e,{sourceMapBaseUrl:""})}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SourceMapFileNameRule=function(e){var t=e.sourceMapFileName;return t&&(t=t.replace(/^\/+/,"").split(".")[0],e=Object.assign({},e,{sourceMapFileName:"".concat(t,".js.map")})),e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayRule=function(e){return e.stringArray||(e=Object.assign({},e,{rotateStringArray:!1,stringArray:!1,stringArrayEncoding:!1,stringArrayThreshold:0})),e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(37);t.StringArrayEncodingRule=function(e){return!0===e.stringArrayEncoding&&(e=Object.assign({},e,{stringArrayEncoding:n.StringArrayEncoding.Base64})),e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayThresholdRule=function(e){return 0===e.stringArrayThreshold&&(e=Object.assign({},e,{rotateStringArray:!1,stringArray:!1,stringArrayEncoding:!1,stringArrayThreshold:0})),e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(20),o=r(2),a=r(5),i=r(29),s=r(58),c=r(169),d=r(170),u=r(171),l=r(172),f=r(173),p=r(175),m=r(176),g=r(177);t.preparingTransformersModule=new o.ContainerModule(function(e){e(a.ServiceIdentifiers.INodeTransformer).to(d.CommentsTransformer).whenTargetNamed(i.NodeTransformer.CommentsTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(l.CustomNodesTransformer).whenTargetNamed(i.NodeTransformer.CustomNodesTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(f.EvalCallExpressionTransformer).whenTargetNamed(i.NodeTransformer.EvalCallExpressionTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(p.MetadataTransformer).whenTargetNamed(i.NodeTransformer.MetadataTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(m.ObfuscatingGuardsTransformer).whenTargetNamed(i.NodeTransformer.ObfuscatingGuardsTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(g.ParentificationTransformer).whenTargetNamed(i.NodeTransformer.ParentificationTransformer),e(a.ServiceIdentifiers.INodeGuard).to(c.BlackListObfuscatingGuard).inSingletonScope().whenTargetNamed(s.ObfuscatingGuard.BlackListNodeGuard),e(a.ServiceIdentifiers.INodeGuard).to(u.ConditionalCommentObfuscatingGuard).inSingletonScope().whenTargetNamed(s.ObfuscatingGuard.ConditionalCommentNodeGuard),e(a.ServiceIdentifiers.Factory__INodeGuard).toFactory(n.InversifyContainerFacade.getCacheFactory(a.ServiceIdentifiers.INodeGuard))})},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i,s=r(4),c=r(2),d=r(9),u=i=function(){function e(){(0,o.default)(this,e),this.blackListGuardsLength=i.blackListGuards.length}return(0,a.default)(e,[{key:"check",value:function(e){for(var t=0;t=0?t:null}},{key:"getLength",value:function(){return this.storageLength}},{key:"getStorage",value:function(){return this.storage}},{key:"getStorageId",value:function(){return this.storageId}},{key:"mergeWith",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.storage=(0,o.default)(this.storage).concat((0,o.default)(e.getStorage())),t&&(this.storageId=e.getStorageId())}},{key:"set",value:function(e,t){e===this.storageLength?this.storage.push(t):this.storage.splice(e,0,t),this.storageLength++}}]),e}();s.__decorate([u.initializable(),s.__metadata("design:type",Array)],l.prototype,"storage",void 0),s.__decorate([u.initializable(),s.__metadata("design:type",String)],l.prototype,"storageId",void 0),s.__decorate([c.postConstruct(),s.__metadata("design:type",Function),s.__metadata("design:paramtypes",[]),s.__metadata("design:returntype",void 0)],l.prototype,"initialize",null),l=s.__decorate([c.injectable(),s.__param(0,c.inject(d.ServiceIdentifiers.IRandomGenerator)),s.__param(1,c.inject(d.ServiceIdentifiers.IOptions)),s.__metadata("design:paramtypes",[Object,Object])],l),t.ArrayStorage=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(2),o=r(5),a=r(184),i=r(185),s=r(188),c=r(60);t.utilsModule=new n.ContainerModule(function(e){e(o.ServiceIdentifiers.IArrayUtils).to(a.ArrayUtils).inSingletonScope(),e(o.ServiceIdentifiers.IRandomGenerator).to(c.RandomGenerator).inSingletonScope(),e(o.ServiceIdentifiers.ICryptUtils).to(i.CryptUtils).inSingletonScope(),e(o.ServiceIdentifiers.IEscapeSequenceEncoder).to(s.EscapeSequenceEncoder).inSingletonScope()})},function(e,t,r){"use strict";var n=r(0),o=n(r(28)),a=n(r(1)),i=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var s=r(4),c=r(2),d=r(5),u=function(){function e(t){(0,a.default)(this,e),this.randomGenerator=t}return(0,i.default)(e,[{key:"createWithRange",value:function(e){for(var t=[],r=0;r>8-o%1*8)){if((n=e.charCodeAt(o+=.75))>255)throw new Error("'btoa' failed: The string to be encoded contains characters outside of the Latin1 range.");r=r<<8|n}return t}},{key:"hideString",value:function(e,t){var r=this,n=this.randomGenerator.getRandomGenerator().string({length:t,pool:d.RandomGenerator.randomGeneratorPool}).replace(new RegExp("[".concat(e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"),"]"),"g"),""),o=n.split("");return this.randomGenerator.getRandomGenerator().shuffle(o),[function(e,t){for(var n=-1,o=-1,a="";n"),c="...".concat(o.substring(a,i).replace(/^\s+/,""),"...");throw new Error("Line ".concat(n.line,": ").concat(r,"\n").concat(s," ").concat(c))}}]),e}();d.colorError=c.default.red,d.nearestSymbolsCount=15,d.sourceTypes=["script","module"],t.EspreeFacade=d},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(6)),i=n(r(7)),s=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var c=r(4),d=r(2),u=r(193);d.decorate(d.injectable(),u.EventEmitter);var l=function(e){function t(){return(0,o.default)(this,t),(0,a.default)(this,(0,i.default)(t).apply(this,arguments))}return(0,s.default)(t,e),t}(u.EventEmitter);l=c.__decorate([d.injectable()],l),t.ObfuscationEventEmitter=l},function(e,t){e.exports=require("events")},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i=r(4),s=r(2),c=r(5),d=r(10),u=r(36),l=function(){function e(t,r){(0,o.default)(this,e),this.cryptUtils=t,this.options=r}return(0,a.default)(e,[{key:"initialize",value:function(e,t){this.obfuscatedCode=e,this.sourceMap=t}},{key:"getObfuscatedCode",value:function(){return this.correctObfuscatedCode()}},{key:"getSourceMap",value:function(){return this.sourceMap}},{key:"toString",value:function(){return this.obfuscatedCode}},{key:"correctObfuscatedCode",value:function(){if(!this.sourceMap)return this.obfuscatedCode;var e=this.options.sourceMapBaseUrl+this.options.sourceMapFileName,t="//# sourceMappingURL=";switch(this.options.sourceMapMode){case u.SourceMapMode.Inline:t+="data:application/json;base64,".concat(this.cryptUtils.btoa(this.sourceMap));break;case u.SourceMapMode.Separate:default:if(!e)return this.obfuscatedCode;t+=e}return"".concat(this.obfuscatedCode,"\n").concat(t)}}]),e}();i.__decorate([d.initializable(),i.__metadata("design:type",String)],l.prototype,"obfuscatedCode",void 0),i.__decorate([d.initializable(),i.__metadata("design:type",String)],l.prototype,"sourceMap",void 0),l=i.__decorate([s.injectable(),i.__param(0,s.inject(c.ServiceIdentifiers.ICryptUtils)),i.__param(1,s.inject(c.ServiceIdentifiers.IOptions)),i.__metadata("design:paramtypes",[Object,Object])],l),t.ObfuscatedCode=l},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(t,r){(0,o.default)(this,e),this.sourceCode=t,this.sourceMap=r}return(0,a.default)(e,[{key:"getSourceCode",value:function(){return this.sourceCode}},{key:"getSourceMap",value:function(){return this.sourceMap}},{key:"toString",value:function(){return this.sourceCode}}]),e}();t.SourceCode=i},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i=r(4),s=r(2),c=r(5),d=i.__importStar(r(16)),u=r(197),l=r(9),f=r(17),p=function(){function e(t){(0,o.default)(this,e),this.nodeTransformerFactory=t}return(0,a.default)(e,[{key:"transform",value:function(e,t,r){if(!t.length)return e;for(var n,o=[],a=[],i=t.length,s=0;s { + + describe('Fixture code should not break on obfuscating', () => { + let doObfuscate: Function; + + before(() => { + const code: string = readFileAsString(__dirname + '/fixtures/issue437.js'); + doObfuscate = () => JavaScriptObfuscator.obfuscate( + code, + { + ...NO_ADDITIONAL_NODES_PRESET, + transformObjectKeys: true + } + ).getObfuscatedCode(); + }); + + it('does not break on obfuscating', () => { + assert.doesNotThrow(doObfuscate); + }); + }); +}); From e8633bdefe3a6775ef4e5f9f0995f1332a3574b2 Mon Sep 17 00:00:00 2001 From: sanex3339 Date: Thu, 21 Nov 2019 23:51:56 +0300 Subject: [PATCH 06/13] 0.18.4 version --- CHANGELOG.md | 4 ++++ README.md | 2 +- dist/index.browser.js | 4 ++-- dist/index.cli.js | 2 +- dist/index.js | 2 +- package.json | 2 +- 6 files changed, 10 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7312b84fc..8c9657f0d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ Change Log === +v0.18.4 +--- +* Fixed https://github.com/javascript-obfuscator/javascript-obfuscator/issues/437 + v0.18.3 --- * Fixed https://github.com/javascript-obfuscator/javascript-obfuscator/issues/424 diff --git a/README.md b/README.md index 3df322d8e..347a2a559 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ Example of obfuscated code: [gist.github.com](https://gist.github.com/sanex3339/ [![Join the chat at Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/javascript-obfuscator/General-chat) [![npm version](https://badge.fury.io/js/javascript-obfuscator.svg)](https://badge.fury.io/js/javascript-obfuscator) [![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fjavascript-obfuscator%2Fjavascript-obfuscator.svg?type=shield)](https://app.fossa.io/projects/git%2Bgithub.com%2Fjavascript-obfuscator%2Fjavascript-obfuscator?ref=badge_shield) -[![Build Status](https://travis-ci.org/javascript-obfuscator/javascript-obfuscator.svg?branch=master)](https://travis-ci.org/javascript-obfuscator/javascript-obfuscator) +[![Build Status](https://travis-ci.com/javascript-obfuscator/javascript-obfuscator.svg?branch=master)](https://travis-ci.com/javascript-obfuscator/javascript-obfuscator) [![Coverage Status](https://coveralls.io/repos/github/javascript-obfuscator/javascript-obfuscator/badge.svg?branch=master)](https://coveralls.io/github/javascript-obfuscator/javascript-obfuscator?branch=master) [![Backers on Open Collective](https://opencollective.com/javascript-obfuscator/backers/badge.svg)](#backers) [![Sponsors on Open Collective](https://opencollective.com/javascript-obfuscator/sponsors/badge.svg)](#sponsors) diff --git a/dist/index.browser.js b/dist/index.browser.js index df3bd25d8..596d50d9d 100644 --- a/dist/index.browser.js +++ b/dist/index.browser.js @@ -21,7 +21,7 @@ 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. */ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.JavaScriptObfuscator=t():e.JavaScriptObfuscator=t()}(window,function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=109)}([function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}}},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(17);t.METADATA_KEY=r;var i=n(112);t.Container=i.Container;var o=n(23);t.BindingScopeEnum=o.BindingScopeEnum,t.BindingTypeEnum=o.BindingTypeEnum,t.TargetTypeEnum=o.TargetTypeEnum;var a=n(128);t.AsyncContainerModule=a.AsyncContainerModule,t.ContainerModule=a.ContainerModule;var s=n(129);t.injectable=s.injectable;var u=n(130);t.tagged=u.tagged;var d=n(131);t.named=d.named;var l=n(74);t.inject=l.inject,t.LazyServiceIdentifer=l.LazyServiceIdentifer;var c=n(132);t.optional=c.optional;var p=n(133);t.unmanaged=p.unmanaged;var f=n(134);t.multiInject=f.multiInject;var h=n(135);t.targetName=h.targetName;var g=n(136);t.postConstruct=g.postConstruct;var m=n(72);t.MetadataReader=m.MetadataReader;var y=n(29);t.guid=y.guid;var b=n(26);t.decorate=b.decorate;var v=n(77);t.traverseAncerstors=v.traverseAncerstors,t.taggedConstraint=v.taggedConstraint,t.namedConstraint=v.namedConstraint,t.typeConstraint=v.typeConstraint;var C=n(43);t.getServiceIdentifierAsString=C.getServiceIdentifierAsString;var S=n(137);t.multiBindToService=S.multiBindToService},function(e,t){function n(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:"initialize",t=Object.keys(this)[0];return function(n,d){var l=n[e];if(!l||"function"!=typeof l)throw new Error("`".concat(e,"` method with initialization logic not ")+"found. `@".concat(t,"` decorator requires `").concat(e,"` method"));return u(i,!1,n),u(o,new Set,n),u(a,new Set,n),function(e,t){var n=Object.getOwnPropertyNames(e),u=[t,s];n.forEach(function(n){var s=Reflect.getMetadata(o,e),d=Reflect.getMetadata(a,e),l=u.includes(n)||s.has(n)||d.has(n);if(!l){var c=e[n];if("function"==typeof c){var p=Object.getOwnPropertyDescriptor(e,n)||r,f=p.value;Object.defineProperty(e,n,Object.assign({},p,{value:function(){if(!Reflect.getMetadata(i,this))throw new Error("Class should be initialized with `".concat(t,"()` method"));return f.apply(this,arguments)}})),d.add(n)}}})}(n,e),function(e,t,n){var o=Object.getOwnPropertyDescriptor(e,t)||r,a=o.value;Object.defineProperty(e,t,Object.assign({},o,{value:function(){Reflect.defineMetadata(i,!0,this);var e=a.apply(this,arguments);return this[n],e}}))}(n,e,d),function(e,t){Reflect.getMetadata(o,e).add(t);var n="_".concat(t.toString()),i=Object.getOwnPropertyDescriptor(e,n)||r;return Object.defineProperty(e,t,Object.assign({},i,{get:function(){if(void 0===this[n])throw new Error("Property `".concat(t.toString(),"` is not initialized! Initialize it first!"));return this[n]},set:function(e){this[n]=e}})),i}(n,d)}}},function(e,t,n){"use strict";var r=n(0),i=r(n(5)),o=r(n(1)),a=r(n(3)),s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var u=s(n(61)),d=s(n(82)),l=s(n(18)),c=n(10),p=n(20),f=function(){function e(){(0,o.default)(this,e)}return(0,a.default)(e,null,[{key:"addXVerbatimPropertyTo",value:function(e){return e["x-verbatim-property"]={content:e.raw,precedence:u.Precedence.Primary},e}},{key:"clone",value:function(t){return e.parentizeAst(e.cloneRecursive(t))}},{key:"convertCodeToStructure",value:function(t){var n=d.parse(t,{sourceType:"script"});return l.replace(n,{enter:function(t,n){return e.parentizeNode(t,n),c.NodeGuards.isLiteralNode(t)&&e.addXVerbatimPropertyTo(t),p.NodeMetadata.set(t,{ignoredNode:!1}),t}}),n.body}},{key:"convertStructureToCode",value:function(e){return e.reduce(function(e,t){return e+u.generate(t,{sourceMapWithCode:!0}).code},"")}},{key:"getUnaryExpressionArgumentNode",value:function(t){return c.NodeGuards.isUnaryExpressionNode(t.argument)?e.getUnaryExpressionArgumentNode(t.argument):t.argument}},{key:"parentizeAst",value:function(t){return l.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 n={};return Object.keys(t).forEach(function(r){if("parentNode"!==r){var o,a=t[r];o=null===a||a instanceof RegExp?a:Array.isArray(a)?a.map(e.cloneRecursive):"object"===(0,i.default)(a)?e.cloneRecursive(a):a,n[r]=o}}),n}}]),e}();t.NodeUtils=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){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,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(5)),a=function(e,t,n,r){var i,a=arguments.length,s=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,o.default)(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var u=e.length-1;u>=0;u--)(i=e[u])&&(s=(a<3?i(s):a>3?i(t,n,s):i(t,n))||s);return a>3&&s&&Object.defineProperty(t,n,s),s},s=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,o.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},u=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var d=n(2),l=n(4),c=function e(t,n){(0,i.default)(this,e),this.randomGenerator=t,this.options=n};c=a([d.injectable(),u(0,d.inject(l.ServiceIdentifiers.IRandomGenerator)),u(1,d.inject(l.ServiceIdentifiers.IOptions)),s("design:paramtypes",[Object,Object])],c),t.AbstractNodeTransformer=c},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(3)),a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var s=a(n(61)),u=n(24),d=function(){function e(){(0,i.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:u.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:u.NodeType.ArrayExpression,elements:e,metadata:{ignoredNode:!1}}}},{key:"assignmentExpressionNode",value:function(e,t,n){return{type:u.NodeType.AssignmentExpression,operator:e,left:t,right:n,metadata:{ignoredNode:!1}}}},{key:"binaryExpressionNode",value:function(e,t,n){return{type:u.NodeType.BinaryExpression,operator:e,left:t,right:n,metadata:{ignoredNode:!1}}}},{key:"blockStatementNode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return{type:u.NodeType.BlockStatement,body:e,metadata:{ignoredNode:!1}}}},{key:"breakStatement",value:function(e){return{type:u.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:u.NodeType.CallExpression,callee:e,arguments:t,metadata:{ignoredNode:!1}}}},{key:"continueStatement",value:function(e){return{type:u.NodeType.ContinueStatement,label:e,metadata:{ignoredNode:!1}}}},{key:"expressionStatementNode",value:function(e){return{type:u.NodeType.ExpressionStatement,expression:e,metadata:{ignoredNode:!1}}}},{key:"functionDeclarationNode",value:function(t,n,r){return{type:u.NodeType.FunctionDeclaration,id:e.identifierNode(t),params:n,body:r,generator:!1,metadata:{ignoredNode:!1}}}},{key:"functionExpressionNode",value:function(e,t){return{type:u.NodeType.FunctionExpression,params:e,body:t,generator:!1,metadata:{ignoredNode:!1}}}},{key:"ifStatementNode",value:function(e,t,n){return Object.assign({type:u.NodeType.IfStatement,test:e,consequent:t},n&&{alternate:n},{metadata:{ignoredNode:!1}})}},{key:"identifierNode",value:function(e){return{type:u.NodeType.Identifier,name:e,metadata:{ignoredNode:!1}}}},{key:"literalNode",value:function(e,t){return t=void 0!==t?t:"'".concat(e,"'"),{type:u.NodeType.Literal,value:e,raw:t,"x-verbatim-property":{content:t,precedence:s.Precedence.Primary},metadata:{ignoredNode:!1}}}},{key:"logicalExpressionNode",value:function(e,t,n){return{type:u.NodeType.LogicalExpression,operator:e,left:t,right:n,metadata:{ignoredNode:!1}}}},{key:"memberExpressionNode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{type:u.NodeType.MemberExpression,computed:n,object:e,property:t,metadata:{ignoredNode:!1}}}},{key:"methodDefinitionNode",value:function(e,t,n,r){return{type:u.NodeType.MethodDefinition,key:e,value:t,kind:n,computed:r,static:!1,metadata:{ignoredNode:!1}}}},{key:"objectExpressionNode",value:function(e){return{type:u.NodeType.ObjectExpression,properties:e,metadata:{ignoredNode:!1}}}},{key:"propertyNode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{type:u.NodeType.Property,key:e,value:t,kind:"init",method:!1,shorthand:!1,computed:n,metadata:{ignoredNode:!1}}}},{key:"returnStatementNode",value:function(e){return{type:u.NodeType.ReturnStatement,argument:e,metadata:{ignoredNode:!1}}}},{key:"switchStatementNode",value:function(e,t){return{type:u.NodeType.SwitchStatement,discriminant:e,cases:t,metadata:{ignoredNode:!1}}}},{key:"switchCaseNode",value:function(e,t){return{type:u.NodeType.SwitchCase,test:e,consequent:t,metadata:{ignoredNode:!1}}}},{key:"unaryExpressionNode",value:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return{type:u.NodeType.UnaryExpression,operator:e,argument:t,prefix:n,metadata:{ignoredNode:!1}}}},{key:"updateExpressionNode",value:function(e,t){return{type:u.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:u.NodeType.VariableDeclaration,declarations:e,kind:t,metadata:{ignoredNode:!1}}}},{key:"variableDeclaratorNode",value:function(e,t){return{type:u.NodeType.VariableDeclarator,id:e,init:t,metadata:{ignoredNode:!1}}}},{key:"whileStatementNode",value:function(e,t){return{type:u.NodeType.WhileStatement,test:e,body:t,metadata:{ignoredNode:!1}}}}]),e}();t.NodeFactory=d},function(e,t,n){"use strict";var r,i=n(0),o=i(n(1)),a=i(n(3)),s=i(n(5)),u=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,s.default)(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var u=e.length-1;u>=0;u--)(i=e[u])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},d=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,s.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},l=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var c=n(2),p=n(4),f=n(190),h=n(191),g=r=function(){function e(t,n,r){(0,o.default)(this,e),this.cachedNode=null,this.identifierNamesGenerator=t(r),this.randomGenerator=n,this.options=r}return(0,a.default)(e,[{key:"getNode",value:function(){return this.cachedNode||(this.cachedNode=this.getNodeStructure()),this.cachedNode}},{key:"getGlobalVariableTemplate",value:function(){return this.randomGenerator.getRandomGenerator().pickone(r.globalVariableTemplateFunctions)}}]),e}();g.globalVariableTemplateFunctions=[f.GlobalVariableTemplate1(),h.GlobalVariableTemplate2()],g=r=u([c.injectable(),l(0,c.inject(p.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),l(1,c.inject(p.ServiceIdentifiers.IRandomGenerator)),l(2,c.inject(p.ServiceIdentifiers.IOptions)),d("design:paramtypes",[Function,Object,Object])],g),t.AbstractCustomNode=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NAMED_TAG="named",t.NAME_TAG="name",t.UNMANAGED_TAG="unmanaged",t.OPTIONAL_TAG="optional",t.INJECT_TAG="inject",t.MULTI_INJECT_TAG="multi_inject",t.TAGGED="inversify:tagged",t.TAGGED_PROP="inversify:tagged_props",t.PARAM_TYPES="inversify:paramtypes",t.DESIGN_PARAM_TYPES="design:paramtypes",t.POST_CONSTRUCT="post_construct"},function(e,t,n){!function e(t){"use strict";var r,i,o,a,s,u,d,l,c;function p(e){var t,n,r={};for(t in e)e.hasOwnProperty(t)&&(n=e[t],r[t]="object"==typeof n&&null!==n?p(n):n);return r}function f(e,t){this.parent=e,this.key=t}function h(e,t,n,r){this.node=e,this.path=t,this.wrap=n,this.ref=r}function g(){}function m(e){return null!=e&&("object"==typeof e&&"string"==typeof e.type)}function y(e,t){return(e===r.ObjectExpression||e===r.ObjectPattern)&&"properties"===t}function b(e,t){return(new g).traverse(e,t)}function v(e,t){var n;return n=function(e,t){var n,r,i,o;for(r=e.length,i=0;r;)t(e[o=i+(n=r>>>1)])?r=n:(i=o+1,r-=n+1);return i}(t,function(t){return t.range[0]>e.range[0]}),e.extendedRange=[e.range[0],e.range[1]],n!==t.length&&(e.extendedRange[1]=t[n].range[0]),(n-=1)>=0&&(e.extendedRange[0]=t[n].range[1]),e}return(i=Array.isArray)||(i=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),s=Object.create||function(){function e(){}return function(t){return e.prototype=t,new e}}(),u=Object.keys||function(e){var t,n=[];for(t in e)n.push(t);return n},r={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ComprehensionBlock:"ComprehensionBlock",ComprehensionExpression:"ComprehensionExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DebuggerStatement:"DebuggerStatement",DirectiveStatement:"DirectiveStatement",DoWhileStatement:"DoWhileStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForInStatement:"ForInStatement",ForOfStatement:"ForOfStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",GeneratorExpression:"GeneratorExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",ModuleSpecifier:"ModuleSpecifier",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",Program:"Program",Property:"Property",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchStatement:"SwitchStatement",SwitchCase:"SwitchCase",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"},a={AssignmentExpression:["left","right"],AssignmentPattern:["left","right"],ArrayExpression:["elements"],ArrayPattern:["elements"],ArrowFunctionExpression:["params","body"],AwaitExpression:["argument"],BlockStatement:["body"],BinaryExpression:["left","right"],BreakStatement:["label"],CallExpression:["callee","arguments"],CatchClause:["param","body"],ClassBody:["body"],ClassDeclaration:["id","superClass","body"],ClassExpression:["id","superClass","body"],ComprehensionBlock:["left","right"],ComprehensionExpression:["blocks","filter","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DirectiveStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExportAllDeclaration:["source"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source"],ExportSpecifier:["exported","local"],ExpressionStatement:["expression"],ForStatement:["init","test","update","body"],ForInStatement:["left","right","body"],ForOfStatement:["left","right","body"],FunctionDeclaration:["id","params","body"],FunctionExpression:["id","params","body"],GeneratorExpression:["blocks","filter","body"],Identifier:[],IfStatement:["test","consequent","alternate"],ImportDeclaration:["specifiers","source"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],Literal:[],LabeledStatement:["label","body"],LogicalExpression:["left","right"],MemberExpression:["object","property"],MetaProperty:["meta","property"],MethodDefinition:["key","value"],ModuleSpecifier:[],NewExpression:["callee","arguments"],ObjectExpression:["properties"],ObjectPattern:["properties"],Program:["body"],Property:["key","value"],RestElement:["argument"],ReturnStatement:["argument"],SequenceExpression:["expressions"],SpreadElement:["argument"],Super:[],SwitchStatement:["discriminant","cases"],SwitchCase:["test","consequent"],TaggedTemplateExpression:["tag","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],YieldExpression:["argument"]},o={Break:d={},Skip:l={},Remove:c={}},f.prototype.replace=function(e){this.parent[this.key]=e},f.prototype.remove=function(){return i(this.parent)?(this.parent.splice(this.key,1),!0):(this.replace(null),!1)},g.prototype.path=function(){var e,t,n,r,o;function a(e,t){if(i(t))for(n=0,r=t.length;n=0;)if(b=a[c=g[p]])if(i(b)){for(f=b.length;(f-=1)>=0;)if(b[f]){if(y(s,g[p]))o=new h(b[f],[c,f],"Property",null);else{if(!m(b[f]))continue;o=new h(b[f],[c,f],null,null)}n.push(o)}}else m(b)&&n.push(new h(b,c,null,null))}}else if(o=r.pop(),u=this.__execute(t.leave,o),this.__state===d||u===d)return},g.prototype.replace=function(e,t){var n,r,o,a,s,u,p,g,b,v,C,S,N;function A(e){var t,r,i,o;if(e.ref.remove())for(r=e.ref.key,o=e.ref.parent,t=n.length;t--;)if((i=n[t]).ref&&i.ref.parent===o){if(i.ref.key=0;)if(v=o[N=b[p]])if(i(v)){for(g=v.length;(g-=1)>=0;)if(v[g]){if(y(a,b[p]))u=new h(v[g],[N,g],"Property",new f(v,g));else{if(!m(v[g]))continue;u=new h(v[g],[N,g],null,new f(v,g))}n.push(u)}}else m(v)&&n.push(new h(v,N,null,new f(o,N)))}}else if(u=r.pop(),void 0!==(s=this.__execute(t.leave,u))&&s!==d&&s!==l&&s!==c&&u.ref.replace(s),this.__state!==c&&s!==c||A(u),this.__state===d||s===d)return S.root;return S.root},t.version=n(141).version,t.Syntax=r,t.traverse=b,t.replace=function(e,t){return(new g).replace(e,t)},t.attachComments=function(e,t,n){var r,i,a,s,u=[];if(!e.range)throw new Error("attachComments needs range information");if(!n.length){if(t.length){for(a=0,i=t.length;ae.range[0]);)t.extendedRange[1]===e.range[0]?(e.leadingComments||(e.leadingComments=[]),e.leadingComments.push(t),u.splice(s,1)):s+=1;return s===u.length?o.Break:u[s].extendedRange[0]>e.range[1]?o.Skip:void 0}}),s=0,b(e,{leave:function(e){for(var t;se.range[1]?o.Skip:void 0}}),e},t.VisitorKeys=a,t.VisitorOption=o,t.Controller=g,t.cloneEnvironment=function(){return e({})},t}(t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DUPLICATED_INJECTABLE_DECORATOR="Cannot apply @injectable decorator multiple times.",t.DUPLICATED_METADATA="Metadata key was used more than once in a parameter:",t.NULL_ARGUMENT="NULL argument",t.KEY_NOT_FOUND="Key Not Found",t.AMBIGUOUS_MATCH="Ambiguous match found for serviceIdentifier:",t.CANNOT_UNBIND="Could not unbind serviceIdentifier:",t.NOT_REGISTERED="No matching bindings found for serviceIdentifier:",t.MISSING_INJECTABLE_ANNOTATION="Missing required @injectable annotation in:",t.MISSING_INJECT_ANNOTATION="Missing required @inject or @multiInject annotation in:",t.UNDEFINED_INJECT_ANNOTATION=function(e){return"@inject called with undefined this could mean that the class "+e+" has a circular dependency problem. You can use a LazyServiceIdentifer to overcome this limitation."},t.CIRCULAR_DEPENDENCY="Circular dependency found:",t.NOT_IMPLEMENTED="Sorry, this feature is not fully implemented yet.",t.INVALID_BINDING_TYPE="Invalid binding type:",t.NO_MORE_SNAPSHOTS_AVAILABLE="No snapshot available to restore.",t.INVALID_MIDDLEWARE_RETURN="Invalid return type in middleware. Middleware must return!",t.INVALID_FUNCTION_BINDING="Value provided to function binding must be a function!",t.INVALID_TO_SELF_VALUE="The toSelf function can only be applied when a constructor is used as service identifier",t.INVALID_DECORATOR_OPERATION="The @inject @multiInject @tagged and @named decorators must be applied to the parameters of a class constructor or a class property.",t.ARGUMENTS_LENGTH_MISMATCH=function(){for(var e=[],t=0;t= than the number of constructor arguments of its base class."},t.CONTAINER_OPTIONS_MUST_BE_AN_OBJECT="Invalid Container constructor argument. Container options must be an object.",t.CONTAINER_OPTIONS_INVALID_DEFAULT_SCOPE="Invalid Container option. Default scope must be a string ('singleton' or 'transient').",t.CONTAINER_OPTIONS_INVALID_AUTO_BIND_INJECTABLE="Invalid Container option. Auto bind injectable must be a boolean",t.CONTAINER_OPTIONS_INVALID_SKIP_BASE_CHECK="Invalid Container option. Skip base check must be a boolean",t.MULTIPLE_POST_CONSTRUCT_METHODS="Cannot apply @postConstruct decorator multiple times in the same class",t.POST_CONSTRUCT_ERROR=function(){for(var e=[],t=0;t1?t-1:0),r=1;r1&&void 0!==arguments[1]?arguments[1]:1/0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;if(r.length>=n)return r;var o=t.parentNode;if(!o)throw new ReferenceError("`parentNode` property of given node is `undefined`");return(a.NodeGuards.isProgramNode(t)||a.NodeGuards.isNodeWithLexicalScopeStatements(t,o)&&i>0)&&r.push(t),t!==o?e.getParentNodesWithStatementsRecursive(o,n,r,++i):r}},{key:"getSiblingStatementByOffset",value:function(t,n){var r=e.getScopeOfNode(t),i=a.NodeGuards.isSwitchCaseNode(r)?r.consequent:r.body;return i[i.indexOf(t)+n]||null}}]),e}();t.NodeStatementUtils=s},function(e,t,n){"use strict";var r=n(0),i=r(n(36)),o=r(n(1)),a=r(n(3));Object.defineProperty(t,"__esModule",{value:!0});var s=n(10),u=function(){function e(){(0,o.default)(this,e)}return(0,a.default)(e,null,[{key:"append",value:function(t,n){n=e.parentizeScopeStatementsBeforeAppend(t,n),e.setScopeStatements(t,(0,i.default)(e.getScopeStatements(t)).concat((0,i.default)(n)))}},{key:"appendToOptimalBlockScope",value:function(t,n,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=t.length?e.getOptimalBlockScope(t,i):n;e.prepend(o,r)}},{key:"getOptimalBlockScope",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,i=t[n];if(r<=0)throw new Error("Invalid `deep` argument value. Value should be bigger then 0.");return r>1&&i.stackTrace.length?e.getOptimalBlockScope(i.stackTrace,0,--r):i.callee}},{key:"insertAfter",value:function(t,n,r){var i=e.getScopeStatements(t).indexOf(r);e.insertAtIndex(t,n,i+1)}},{key:"insertAtIndex",value:function(t,n,r){n=e.parentizeScopeStatementsBeforeAppend(t,n),e.setScopeStatements(t,(0,i.default)(e.getScopeStatements(t).slice(0,r)).concat((0,i.default)(n),(0,i.default)(e.getScopeStatements(t).slice(r))))}},{key:"prepend",value:function(t,n){n=e.parentizeScopeStatementsBeforeAppend(t,n),e.setScopeStatements(t,(0,i.default)(n).concat((0,i.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=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.AfterObfuscation="afterObfuscation",e.BeforeObfuscation="beforeObfuscation"}(t.ObfuscationEvent||(t.ObfuscationEvent={}))},function(e,t,n){"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,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(3));Object.defineProperty(t,"__esModule",{value:!0});var a=n(10),s=function(){function e(){(0,i.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 n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1/0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;if(r.length>=n)return r;var o=t.parentNode;if(!o)throw new ReferenceError("`parentNode` property of given node is `undefined`");return a.NodeGuards.isNodeWithLexicalScope(t)&&r.push(t),t!==o?e.getLexicalScopesRecursive(o,n,r,++i):r}}]),e}();t.NodeLexicalScopeUtils=s},function(e,t,n){"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"}(t.NodeTransformer||(t.NodeTransformer={}))},function(e,t,n){var r=n(167),i=n(168),o=n(169);e.exports=function(e){return r(e)||i(e)||o()}},function(e,t,n){var r=n(174),i=n(175),o=n(176);e.exports=function(e,t){return r(e)||i(e,t)||o()}},function(e,t,n){"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,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){}return e.isValid=function(e){var t=this;return"isValid"!==e&&"getMessage"!==e&&-1!==Object.keys(this).map(function(e){return t[e]}).indexOf(e)},e.getMessage=function(e,t){var n=this,r=t?"each value in ":"";switch(e){case this.NESTED_VALIDATION:return r+"nested property $property must be either object or array";case this.IS_DEFINED:return r+"$property should not be null or undefined";case this.EQUALS:return r+"$property must be equal to $constraint1";case this.NOT_EQUALS:return r+"$property should not be equal to $constraint1";case this.IS_EMPTY:return r+"$property must be empty";case this.IS_NOT_EMPTY:return r+"$property should not be empty";case this.IS_IN:return r+"$property must be one of the following values: $constraint1";case this.IS_NOT_IN:return r+"$property should not be one of the following values: $constraint1";case this.IS_BOOLEAN:return r+"$property must be a boolean value";case this.IS_DATE:return r+"$property must be a Date instance";case this.IS_NUMBER:return r+"$property must be a number";case this.IS_INT:return r+"$property must be an integer number";case this.IS_STRING:return r+"$property must be a string";case this.IS_DATE_STRING:return r+"$property must be a ISOString";case this.IS_ARRAY:return r+"$property must be an array";case this.IS_ENUM:return r+"$property must be a valid enum value";case this.IS_DIVISIBLE_BY:return r+"$property must be divisible by $constraint1";case this.IS_POSITIVE:return r+"$property must be a positive number";case this.IS_NEGATIVE:return r+"$property must be a negative number";case this.MIN:return r+"$property must not be less than $constraint1";case this.MAX:return r+"$property must not be greater than $constraint1";case this.MIN_DATE:return"minimal allowed date for "+r+"$property is $constraint1";case this.MAX_DATE:return"maximal allowed date for "+r+"$property is $constraint1";case this.IS_BOOLEAN_STRING:return r+"$property must be a boolean string";case this.IS_NUMBER_STRING:return r+"$property must be a number string";case this.CONTAINS:return r+"$property must contain a $constraint1 string";case this.NOT_CONTAINS:return r+"$property should not contain a $constraint1 string";case this.IS_ALPHA:return r+"$property must contain only letters (a-zA-Z)";case this.IS_ALPHANUMERIC:return r+"$property must contain only letters and numbers";case this.IS_ASCII:return r+"$property must contain only ASCII characters";case this.IS_BASE64:return r+"$property must be base64 encoded";case this.IS_BYTE_LENGTH:return r+"$property's byte length must fall into ($constraint1, $constraint2) range";case this.IS_CREDIT_CARD:return r+"$property must be a credit card";case this.IS_CURRENCY:return r+"$property must be a currency";case this.IS_EMAIL:return r+"$property must be an email";case this.IS_FQDN:return r+"$property must be a valid domain name";case this.IS_FULL_WIDTH:return r+"$property must contain a full-width characters";case this.IS_HALF_WIDTH:return r+"$property must contain a half-width characters";case this.IS_VARIABLE_WIDTH:return r+"$property must contain a full-width and half-width characters";case this.IS_HEX_COLOR:return r+"$property must be a hexadecimal color";case this.IS_HEXADECIMAL:return r+"$property must be a hexadecimal number";case this.IS_IP:return r+"$property must be an ip address";case this.IS_ISBN:return r+"$property must be an ISBN";case this.IS_ISIN:return r+"$property must be an ISIN (stock/security identifier)";case this.IS_ISO8601:return r+"$property must be a valid ISO 8601 date string";case this.IS_JSON:return r+"$property must be a json string";case this.IS_LOWERCASE:return r+"$property must be a lowercase string";case this.IS_MOBILE_PHONE:return r+"$property must be a phone number";case this.IS_PHONE_NUMBER:return r+"$property must be a valid phone number";case this.IS_MONGO_ID:return r+"$property must be a mongodb id";case this.IS_MULTIBYTE:return r+"$property must contain one or more multibyte chars";case this.IS_SURROGATE_PAIR:return r+"$property must contain any surrogate pairs chars";case this.IS_URL:return r+"$property must be an URL address";case this.IS_UUID:return r+"$property must be an UUID";case this.IS_UPPERCASE:return r+"$property must be uppercase";case this.LENGTH:return function(e){var t=null!==e.constraints[0]&&void 0!==e.constraints[0],n=null!==e.constraints[1]&&void 0!==e.constraints[1];return t&&(!e.value||e.value.lengthe.constraints[1]?r+"$property must be shorter than or equal to $constraint2 characters":r+"$property must be longer than or equal to $constraint1 and shorter than or equal to $constraint2 characters"};case this.MIN_LENGTH:return r+"$property must be longer than or equal to $constraint1 characters";case this.MAX_LENGTH:return r+"$property must be shorter than or equal to $constraint1 characters";case this.MATCHES:return r+"$property must match $constraint1 regular expression";case this.ARRAY_CONTAINS:return r+"$property must contain $constraint1 values";case this.ARRAY_NOT_CONTAINS:return r+"$property should not contain $constraint1 values";case this.ARRAY_NOT_EMPTY:return r+"$property should not be empty";case this.ARRAY_MIN_SIZE:return r+"$property must contain at least $constraint1 elements";case this.ARRAY_MAX_SIZE:return r+"$property must contain not more than $constraint1 elements";case this.ARRAY_UNIQUE:return r+"All $property's elements must be unique";case this.IS_INSTANCE:return function(e){return e.constraints[0]?r+"$property must be an instance of "+e.constraints[0].name:r+(n.IS_INSTANCE+" decorator expects and object as value, but got falsy value.")}}return""},e.CUSTOM_VALIDATION="customValidation",e.NESTED_VALIDATION="nestedValidation",e.CONDITIONAL_VALIDATION="conditionalValidation",e.WHITELIST="whitelistValidation",e.IS_DEFINED="isDefined",e.EQUALS="equals",e.NOT_EQUALS="notEquals",e.IS_EMPTY="isEmpty",e.IS_NOT_EMPTY="isNotEmpty",e.IS_IN="isIn",e.IS_NOT_IN="isNotIn",e.IS_BOOLEAN="isBoolean",e.IS_DATE="isDate",e.IS_NUMBER="isNumber",e.IS_STRING="isString",e.IS_DATE_STRING="isDateString",e.IS_ARRAY="isArray",e.IS_INT="isInt",e.IS_ENUM="isEnum",e.IS_DIVISIBLE_BY="isDivisibleBy",e.IS_POSITIVE="isPositive",e.IS_NEGATIVE="isNegative",e.MIN="min",e.MAX="max",e.MIN_DATE="minDate",e.MAX_DATE="maxDate",e.IS_BOOLEAN_STRING="isBooleanString",e.IS_NUMBER_STRING="isNumberString",e.CONTAINS="contains",e.NOT_CONTAINS="notContains",e.IS_ALPHA="isAlpha",e.IS_ALPHANUMERIC="isAlphanumeric",e.IS_ASCII="isAscii",e.IS_BASE64="isBase64",e.IS_BYTE_LENGTH="isByteLength",e.IS_CREDIT_CARD="isCreditCard",e.IS_CURRENCY="isCurrency",e.IS_EMAIL="isEmail",e.IS_FQDN="isFqdn",e.IS_FULL_WIDTH="isFullWidth",e.IS_HALF_WIDTH="isHalfWidth",e.IS_VARIABLE_WIDTH="isVariableWidth",e.IS_HEX_COLOR="isHexColor",e.IS_HEXADECIMAL="isHexadecimal",e.IS_IP="isIp",e.IS_ISBN="isIsbn",e.IS_ISIN="isIsin",e.IS_ISO8601="isIso8601",e.IS_JSON="isJson",e.IS_LOWERCASE="isLowercase",e.IS_MOBILE_PHONE="isMobilePhone",e.IS_PHONE_NUMBER="isPhoneNumber",e.IS_MONGO_ID="isMongoId",e.IS_MULTIBYTE="isMultibyte",e.IS_SURROGATE_PAIR="isSurrogatePair",e.IS_URL="isUrl",e.IS_UUID="isUuid",e.LENGTH="length",e.IS_UPPERCASE="isUppercase",e.MIN_LENGTH="minLength",e.MAX_LENGTH="maxLength",e.MATCHES="matches",e.IS_MILITARY_TIME="isMilitaryTime",e.ARRAY_CONTAINS="arrayContains",e.ARRAY_NOT_CONTAINS="arrayNotContains",e.ARRAY_NOT_EMPTY="arrayNotEmpty",e.ARRAY_MIN_SIZE="arrayMinSize",e.ARRAY_MAX_SIZE="arrayMaxSize",e.ARRAY_UNIQUE="arrayUnique",e.IS_INSTANCE="isInstance",e}();t.ValidationTypes=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i,o=new(function(){function e(){this.instances=[]}return e.prototype.get=function(e){var t=this.instances.find(function(t){return t.type===e});return t||(t={type:e,object:new e},this.instances.push(t)),t.object},e}());t.useContainer=function(e,t){r=e,i=t},t.getFromContainer=function(e){if(r)try{var t=r.get(e);if(t)return t;if(!i||!i.fallback)return t}catch(e){if(!i||!i.fallbackOnErrors)throw e}return o.get(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];for(var n in t)void 0===e[n]&&(e[n]=t[n]);return e},e.exports=t.default},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(3));Object.defineProperty(t,"__esModule",{value:!0}),n(110);var a=n(4),s=n(25),u=function(){function e(){(0,i.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]:{},n=new s.InversifyContainerFacade;n.load(e,"",t);var r=n.get(a.ServiceIdentifiers.IJavaScriptObfuscator).obfuscate(e);return n.unload(),r}}]),e}();u.version="0.18.3",t.JavaScriptObfuscator=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(19);function i(e){return"function"==typeof e?e.name:"symbol"==typeof e?e.toString():e}function o(e){if(e.name)return e.name;var t=e.toString(),n=t.match(/^function\s*([^\s(]+)/);return n?n[1]:"Anonymous function: "+t}t.getServiceIdentifierAsString=i,t.listRegisteredBindingsForServiceIdentifier=function(e,t,n){var r="",i=n(e,t);return 0!==i.length&&(r="\nRegistered bindings:",i.forEach(function(e){var t="Object";null!==e.implementationType&&(t=o(e.implementationType)),r=r+"\n "+t,e.constraint.metaData&&(r=r+" - "+e.constraint.metaData)})),r},t.circularDependencyToException=function e(t){t.childRequests.forEach(function(t){if(function e(t,n){return null!==t.parentRequest&&(t.parentRequest.serviceIdentifier===n||e(t.parentRequest,n))}(t,t.serviceIdentifier)){var n=function e(t,n){void 0===n&&(n=[]);var r=i(t.serviceIdentifier);return n.push(r),null!==t.parentRequest?e(t.parentRequest,n):n}(t).reverse().join(" --\x3e ");throw new Error(r.CIRCULAR_DEPENDENCY+" "+n)}e(t)})},t.listMetadataForTarget=function(e,t){if(t.isTagged()||t.isNamed()){var n="",r=t.getNamedTag(),i=t.getCustomTags();return null!==r&&(n+=r.toString()+"\n"),null!==i&&i.forEach(function(e){n+=e.toString()+"\n"})," "+e+"\n "+e+" - "+n}return" "+e},t.getFunctionName=o},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(3)),a=r(n(5)),s=function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,a.default)(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var u=e.length-1;u>=0;u--)(i=e[u])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},u=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,a.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},d=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var l=n(2),c=n(4),p=function(){function e(t,n,r){(0,i.default)(this,e),this.identifierNamesGenerator=t(r),this.randomGenerator=n,this.options=r}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 n=this.customNodes.get(e);n&&t(n)}},{key:"getRandomStackTraceIndex",value:function(e){return this.randomGenerator.getRandomInteger(0,Math.max(0,Math.round(e-1)))}}]),e}();p=s([l.injectable(),d(0,l.inject(c.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d(1,l.inject(c.ServiceIdentifiers.IRandomGenerator)),d(2,l.inject(c.ServiceIdentifiers.IOptions)),u("design:paramtypes",[Function,Object,Object])],p),t.AbstractCustomNodeGroup=p},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(3));Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(){(0,i.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}();a.hexadecimalPrefix="0x",t.Utils=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(252),i=function(){function e(){this.validationMetadatas=[],this.constraintMetadatas=[]}return Object.defineProperty(e.prototype,"hasValidationMetaData",{get:function(){return!!this.validationMetadatas.length},enumerable:!0,configurable:!0}),e.prototype.addValidationSchema=function(e){var t=this;(new r.ValidationSchemaToMetadataTransformer).transform(e).forEach(function(e){return t.addValidationMetadata(e)})},e.prototype.addValidationMetadata=function(e){this.validationMetadatas.push(e)},e.prototype.addConstraintMetadata=function(e){this.constraintMetadatas.push(e)},e.prototype.groupByPropertyName=function(e){var t={};return e.forEach(function(e){t[e.propertyName]||(t[e.propertyName]=[]),t[e.propertyName].push(e)}),t},e.prototype.getTargetValidationMetadatas=function(e,t,n){var r=this.validationMetadatas.filter(function(r){return(r.target===e||r.target===t)&&(!!r.always||(!(n&&n.length>0)||r.groups&&!!r.groups.find(function(e){return-1!==n.indexOf(e)})))}),i=this.validationMetadatas.filter(function(t){return"string"!=typeof t.target&&(t.target!==e&&((!(t.target instanceof Function)||e.prototype instanceof t.target)&&(!!t.always||(!(n&&n.length>0)||t.groups&&!!t.groups.find(function(e){return-1!==n.indexOf(e)})))))}).filter(function(e){return!r.find(function(t){return t.propertyName===e.propertyName&&t.type===e.type})});return r.concat(i)},e.prototype.getTargetValidatorConstraints=function(e){return this.constraintMetadatas.filter(function(t){return t.target===e})},e}();t.MetadataStorage=i},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(49),i=n(33),o=n(50);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:r.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:i.ObfuscationTarget.Browser,transformObjectKeys:!1,unicodeEscapeSequence:!1})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.HexadecimalIdentifierNamesGenerator="hexadecimal",e.MangledIdentifierNamesGenerator="mangled"}(t.IdentifierNamesGenerator||(t.IdentifierNamesGenerator={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.Inline="inline",e.Separate="separate"}(t.SourceMapMode||(t.SourceMapMode={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.Base64="base64",e.Rc4="rc4"}(t.StringArrayEncoding||(t.StringArrayEncoding={}))},function(e,t,n){n(6);var r=n(223);function i(t,n,o){return"undefined"!=typeof Reflect&&Reflect.get?e.exports=i=Reflect.get:e.exports=i=function(e,t,n){var i=r(e,t);if(i){var o=Object.getOwnPropertyDescriptor(i,t);return o.get?o.get.call(n):o.value}},i(t,n,o||t)}e.exports=i},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(3));Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(){(0,i.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=a},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(5)),a=function(e,t,n,r){var i,a=arguments.length,s=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,o.default)(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var u=e.length-1;u>=0;u--)(i=e[u])&&(s=(a<3?i(s):a>3?i(t,n,s):i(t,n))||s);return a>3&&s&&Object.defineProperty(t,n,s),s},s=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,o.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},u=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var d=n(2),l=n(4),c=function e(t){(0,i.default)(this,e),this.options=t};c=a([d.injectable(),u(0,d.inject(l.ServiceIdentifiers.IOptions)),s("design:paramtypes",[Object])],c),t.AbstractObfuscatingReplacer=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});for(var r,i=t.alpha={"en-US":/^[A-Z]+$/i,"bg-BG":/^[А-Я]+$/i,"cs-CZ":/^[A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ]+$/i,"da-DK":/^[A-ZÆØÅ]+$/i,"de-DE":/^[A-ZÄÖÜß]+$/i,"el-GR":/^[Α-ω]+$/i,"es-ES":/^[A-ZÁÉÍÑÓÚÜ]+$/i,"fr-FR":/^[A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ]+$/i,"it-IT":/^[A-ZÀÉÈÌÎÓÒÙ]+$/i,"nb-NO":/^[A-ZÆØÅ]+$/i,"nl-NL":/^[A-ZÁÉËÏÓÖÜÚ]+$/i,"nn-NO":/^[A-ZÆØÅ]+$/i,"hu-HU":/^[A-ZÁÉÍÓÖŐÚÜŰ]+$/i,"pl-PL":/^[A-ZĄĆĘŚŁŃÓŻŹ]+$/i,"pt-PT":/^[A-ZÃÁÀÂÇÉÊÍÕÓÔÚÜ]+$/i,"ru-RU":/^[А-ЯЁ]+$/i,"sk-SK":/^[A-ZÁČĎÉÍŇÓŠŤÚÝŽĹŔĽÄÔ]+$/i,"sr-RS@latin":/^[A-ZČĆŽŠĐ]+$/i,"sr-RS":/^[А-ЯЂЈЉЊЋЏ]+$/i,"sv-SE":/^[A-ZÅÄÖ]+$/i,"tr-TR":/^[A-ZÇĞİıÖŞÜ]+$/i,"uk-UA":/^[А-ЩЬЮЯЄIЇҐі]+$/i,ar:/^[ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]+$/},o=t.alphanumeric={"en-US":/^[0-9A-Z]+$/i,"bg-BG":/^[0-9А-Я]+$/i,"cs-CZ":/^[0-9A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ]+$/i,"da-DK":/^[0-9A-ZÆØÅ]+$/i,"de-DE":/^[0-9A-ZÄÖÜß]+$/i,"el-GR":/^[0-9Α-ω]+$/i,"es-ES":/^[0-9A-ZÁÉÍÑÓÚÜ]+$/i,"fr-FR":/^[0-9A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ]+$/i,"it-IT":/^[0-9A-ZÀÉÈÌÎÓÒÙ]+$/i,"hu-HU":/^[0-9A-ZÁÉÍÓÖŐÚÜŰ]+$/i,"nb-NO":/^[0-9A-ZÆØÅ]+$/i,"nl-NL":/^[0-9A-ZÁÉËÏÓÖÜÚ]+$/i,"nn-NO":/^[0-9A-ZÆØÅ]+$/i,"pl-PL":/^[0-9A-ZĄĆĘŚŁŃÓŻŹ]+$/i,"pt-PT":/^[0-9A-ZÃÁÀÂÇÉÊÍÕÓÔÚÜ]+$/i,"ru-RU":/^[0-9А-ЯЁ]+$/i,"sk-SK":/^[0-9A-ZÁČĎÉÍŇÓŠŤÚÝŽĹŔĽÄÔ]+$/i,"sr-RS@latin":/^[0-9A-ZČĆŽŠĐ]+$/i,"sr-RS":/^[0-9А-ЯЂЈЉЊЋЏ]+$/i,"sv-SE":/^[0-9A-ZÅÄÖ]+$/i,"tr-TR":/^[0-9A-ZÇĞİıÖŞÜ]+$/i,"uk-UA":/^[0-9А-ЩЬЮЯЄIЇҐі]+$/i,ar:/^[٠١٢٣٤٥٦٧٨٩0-9ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]+$/},a=t.decimal={"en-US":".",ar:"٫"},s=t.englishLocales=["AU","GB","HK","IN","NZ","ZA","ZM"],u=0;u=0;u--)(i=e[u])&&(s=(a<3?i(s):a>3?i(t,n,s):i(t,n))||s);return a>3&&s&&Object.defineProperty(t,n,s),s};Object.defineProperty(t,"__esModule",{value:!0});var s=function e(){(0,i.default)(this,e)};s=a([n(2).injectable()],s),t.AbstractCalleeDataExtractor=s},function(e,t,n){"use strict";var r,i=n(0),o=i(n(1)),a=i(n(3)),s=i(n(5)),u=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,s.default)(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var u=e.length-1;u>=0;u--)(i=e[u])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},d=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,s.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},l=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var c=n(2),p=n(4),f=r=function(){function e(t,n,r){(0,o.default)(this,e),this.replacerDataByControlFlowStorageId=new Map,this.controlFlowCustomNodeFactory=t,this.randomGenerator=n,this.options=r}return(0,a.default)(e,[{key:"insertCustomNodeToControlFlowStorage",value:function(e,t,n,i){var o=this,a=t.getStorageId(),s=r.getStorageKeysByIdForCurrentStorage(this.replacerDataByControlFlowStorageId,a),u=s.get(n);if(this.randomGenerator.getMathRandom()":i.Relational,"<=":i.Relational,">=":i.Relational,in:i.Relational,instanceof:i.Relational,"<<":i.BitwiseSHIFT,">>":i.BitwiseSHIFT,">>>":i.BitwiseSHIFT,"+":i.Additive,"-":i.Additive,"*":i.Multiplicative,"%":i.Multiplicative,"/":i.Multiplicative,"**":i.Exponentiation};var P=7,R=1;function x(e,t){var n="";for(t|=0;t>0;t>>>=1,e+=e)1&t&&(n+=e);return n}function O(e){return/[\r\n]/g.test(e)}function $(e){var t=e.length;return t&&u.code.isLineTerminator(e.charCodeAt(t-1))}function w(e,t){var n;for(n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function B(e,t){var n,r;function i(e){return"object"==typeof e&&e instanceof Object&&!(e instanceof RegExp)}for(n in t)t.hasOwnProperty(n)&&(i(r=t[n])?i(e[n])?B(e[n],r):e[n]=B({},r):e[n]=r);return e}function k(e,t){return 8232==(-2&e)?(t?"u":"\\u")+(8232===e?"2028":"2029"):10===e||13===e?(t?"":"\\")+(10===e?"n":"r"):String.fromCharCode(e)}function L(e,t){var n;return 8===e?"\\b":12===e?"\\f":9===e?"\\t":(n=e.toString(16).toUpperCase(),p||e>255?"\\u"+"0000".slice(n.length)+n:0!==e||u.code.isDecimalDigit(t)?11===e?"\\x0B":"\\x"+"00".slice(n.length)+n:"\\0")}function j(e){if(92===e)return"\\\\";if(10===e)return"\\n";if(13===e)return"\\r";if(8232===e)return"\\u2028";if(8233===e)return"\\u2029";throw new Error("Incorrectly classified character")}function G(e,t){if(!E)return d(e)?function e(t){var n,r,i,o="";for(n=0,r=t.length;na&&(s=a)}for(void 0!==t?(d=l,"*"===n[1][s]&&(t+=" "),l=t):(1&s&&--s,d=l),r=1,i=n.length;r0){if(a=t,T){for(t=[],f=(o=e.leadingComments[0]).extendedRange,h=o.range,(y=((m=I.substring(f[0],h[0])).match(/\n/g)||[]).length)>0?(t.push(x("\n",y)),t.push(H(z(o)))):(t.push(m),t.push(z(o))),g=h,n=1,i=e.leadingComments.length;n0?(t.push(x("\n",y)),t.push(H(z(o)))):(t.push(m),t.push(z(o)));else for(s=!$(G(t).toString()),d=x(" ",function(e){var t;for(t=e.length-1;t>=0&&!u.code.isLineTerminator(e.charCodeAt(t));--t);return e.length-1-t}(G([l,t,c]).toString())),n=0,i=e.trailingComments.length;n")),e.expression?(t.push(b),"{"===(n=this.generateExpression(e.body,i.Assignment,P)).toString().charAt(0)&&(n=["(",n,")"]),t.push(n)):t.push(this.maybeBlock(e.body,9)),t},Z.prototype.generateIterationForStatement=function(e,t,n){var o=["for"+b+(t.await?"await"+b:"")+"("],a=this;return W(function(){t.left.type===r.VariableDeclaration?W(function(){o.push(t.left.kind+V()),o.push(a.generateStatement(t.left.declarations[0],0))}):o.push(a.generateExpression(t.left,i.Call,P)),o=[U(o=U(o,e),a.generateExpression(t.right,i.Sequence+("of"===e?1:0),P)),")"]}),o.push(this.maybeBlock(t.body,n)),o},Z.prototype.generatePropertyKey=function(e,t){var n=[];return t&&n.push("["),n.push(this.generateExpression(e,i.Sequence,P)),t&&n.push("]"),n},Z.prototype.generateAssignment=function(e,t,n,r,o){return i.Assignment2&&("\n"===(r=I.substring(n[0]+1,n[1]-1))[0]&&(i=["{"]),i.push(r)),d=R,8&t&&(d|=16),a=0,s=e.body.length;a0&&(e.body[a-1].trailingComments||e.body[a].leadingComments||J(e.body[a-1].range[1],e.body[a].range[0],i))),a===s-1&&(d|=32),u=e.body[a].leadingComments&&T?o.generateStatement(e.body[a],d):H(o.generateStatement(e.body[a],d)),i.push(u),$(G(u).toString())||T&&a1?W(u):u(),n.push(this.semicolon(t)),n},ThrowStatement:function(e,t){return[U("throw",this.generateExpression(e.argument,i.Sequence,P)),this.semicolon(t)]},TryStatement:function(e,t){var n,r,i,o;if(n=["try",this.maybeBlock(e.block,R)],n=this.maybeBlockSuffix(e.block,n),e.handlers)for(r=0,i=e.handlers.length;r0?"\n":""],a=17,i=0;i0&&(e.body[i-1].trailingComments||e.body[i].leadingComments||J(e.body[i-1].range[1],e.body[i].range[0],n))),r=H(this.generateStatement(e.body[i],a)),n.push(r),i+10){for(r.push("("),a=0,s=o;a=2&&48===a.charCodeAt(0))&&o.push("."),o.push("."),o.push(X(e.property))),Y(o,i.Member,t)},MetaProperty:function(e,t,n){return Y([e.meta&&"string"==typeof e.meta.type&&e.meta.type===r.Identifier?e.meta.name:e.meta,".",e.property&&"string"==typeof e.property.type&&e.property.type===r.Identifier?e.property.name:e.property],i.Member,t)},UnaryExpression:function(e,t,n){var r,o,a,s,d;return o=this.generateExpression(e.argument,i.Unary,P),""===b?r=U(e.operator,o):(r=[e.operator],e.operator.length>2?r=U(r,o):(d=(s=G(r).toString()).charCodeAt(s.length-1),a=o.toString().charCodeAt(0),(43===d||45===d)&&d===a||u.code.isIdentifierPartES5(d)&&u.code.isIdentifierPartES5(a)?(r.push(V()),r.push(o)):r.push(o))),Y(r,i.Unary,t)},YieldExpression:function(e,t,n){var r;return r=e.delegate?"yield*":"yield",e.argument&&(r=U(r,this.generateExpression(e.argument,i.Yield,P))),Y(r,i.Yield,t)},AwaitExpression:function(e,t,n){return Y(U(e.all?"await*":"await",this.generateExpression(e.argument,i.Await,P)),i.Await,t)},UpdateExpression:function(e,t,n){return e.prefix?Y([e.operator,this.generateExpression(e.argument,i.Unary,P)],i.Unary,t):Y([this.generateExpression(e.argument,i.Postfix,P),e.operator],i.Postfix,t)},FunctionExpression:function(e,t,n){var r=[Q(e,!0),"function"];return e.id?(r.push(ee(e)||V()),r.push(X(e.id))):r.push(ee(e)||b),r.push(this.generateFunctionBody(e)),r},ArrayPattern:function(e,t,n){return this.ArrayExpression(e,t,n,!0)},ArrayExpression:function(e,t,n,r){var o,a,s=this;return e.elements.length?(a=!r&&e.elements.length>1,o=["[",a?y:""],W(function(t){var n,r;for(n=0,r=e.elements.length;n1,W(function(){a=s.generateExpression(e.properties[0],i.Sequence,P)}),r||O(G(a).toString())?(W(function(t){var n,u;if(o=["{",y,t,a],r)for(o.push(","+y),n=1,u=e.properties.length;n126))){a+=L(r,e.charCodeAt(t+1));continue}}a+=String.fromCharCode(r)}if(o=(i=!("double"===g||"auto"===g&&d0&&(i=+r.slice(o+1),r=r.slice(0,o)),n>=0&&(i-=r.length-n-1,r=+(r.slice(0,n)+r.slice(n+1))+""),o=0;48===r.charCodeAt(r.length+o-1);)--o;return 0!==o&&(i-=o,r=r.slice(0,o)),0!==i&&(r+="e"+i),(r.length1e12&&Math.floor(e)===e&&(r="0x"+e.toString(16)).length0||A.moz.comprehensionExpressionStartsWithAssignment?o=U(o,u):o.push(u)}),e.filter&&(o=U(o,"if"+b),u=this.generateExpression(e.filter,i.Sequence,P),o=U(o,["(",u,")"])),A.moz.comprehensionExpressionStartsWithAssignment||(u=this.generateExpression(e.body,i.Assignment,P),o=U(o,u)),o.push(e.type===r.GeneratorExpression?")":"]"),o},ComprehensionBlock:function(e,t,n){var o;return o=U(o=U(o=e.left.type===r.VariableDeclaration?[e.left.kind,V(),this.generateStatement(e.left.declarations[0],0)]:this.generateExpression(e.left,i.Call,P),e.of?"of":"in"),this.generateExpression(e.right,i.Sequence,P)),["for"+b+"(",o,")"]},SpreadElement:function(e,t,n){return["...",this.generateExpression(e.argument,i.Assignment,P)]},RestElement:function(e,t,n){return["...",this.generatePattern(e.argument,i.Assignment,P)]},SpreadProperty:function(e,t,n){return["...",this.generateExpression(e.argument,i.Assignment,P)]},RestProperty:function(e,t,n){return["...",this.generatePattern(e.argument,i.Assignment,P)]},TaggedTemplateExpression:function(e,t,n){var r=3;return 2&n||(r=1),Y([this.generateExpression(e.tag,i.Call,r),this.generateExpression(e.quasi,i.Primary,4)],i.TaggedTemplate,t)},TemplateElement:function(e,t,n){return e.value.raw},TemplateLiteral:function(e,t,n){var r,o,a;for(r=["`"],o=0,a=e.quasis.length;o=0||e.indexOf("'")>=0)return t;return"double"===g?'"'+e+'"':"'"+e+"'"}(e.value.value,e.value.raw):this.generateExpression(e.value,i.Sequence,{allowIn:!0,allowCall:!0}),o.push(a)),o},JSXClosingElement:function(e,t,n){return[""]},JSXFragment:function(e,t,n){return this.JSXElement(e,t,n)},JSXOpeningFragment:function(e,t,n){return this.JSXOpeningElement(e,t,n)},JSXClosingFragment:function(e,t,n){return this.JSXClosingElement(e,t,n)},JSXElement:function(e,t,n){var o=[],a=this;256&n||(l+=c);var s=this.generateExpression(e.openingElement,i.JSXElement,{allowIn:!0,allowCall:!0});o.push(s);var u,d,p=[];return W(function(t){for(u=0,d=e.children.length;u3&&e.attributes[d].value&&e.attributes[d].value.type!==r.Literal&&(u[u.length-1].multiline=!0);return W(function(e){for(var t=0,n=u.length;t0&&t%3==0||u[t].multiline?o.push(y+e):o.push(" "),o.push(a.generateExpression(u[t].expr,i.Sequence,3))}),o.push(e.selfClosing?"/>":">"),o},JSXSpreadAttribute:function(e,t,n){return["{...",this.generateExpression(e.argument,i.Sequence,{allowIn:!0,allowCall:!0}),"}"]},JSXText:function(e,t,n){return e.raw}},w(Z.prototype,Z.Expression),Z.prototype.generateExpression=function(e,t,n){var o,a;return a=e.type||r.Property,A.verbatim&&e.hasOwnProperty(A.verbatim)?function(e,t){var n;return G("string"==typeof(n=e[A.verbatim])?Y(q(n),i.Sequence,t):Y(q(n.content),null!=n.precedence?n.precedence:i.Sequence,t),e)}(e,t):(o=this[a](e,t,n),A.comment&&(o=K(e,o)),G(o,e))},Z.prototype.generateStatement=function(e,t){var n,i;return n=this[e.type](e,t),A.comment&&(n=K(e,n)),i=G(n).toString(),e.type!==r.Program||S||""!==y||"\n"!==i.charAt(i.length-1)||(n=E?G(n).replaceRight(/\s+$/,""):i.replace(/\s+$/,"")),G(n,e)},D={indent:{style:"",base:0},renumber:!0,hexadecimal:!0,quotes:"auto",escapeless:!0,compact:!0,parentheses:!1,semicolons:!1},F={indent:{style:" ",base:0,adjustMultilineComment:!1},newline:"\n",space:" ",json:!1,renumber:!1,hexadecimal:!1,quotes:"single",escapeless:!1,compact:!1,parentheses:!0,semicolons:!0,safeConcatenation:!1,preserveBlankLines:!1},t.version=n(156).version,t.generate=function(r,i){var o,s,u={indent:null,base:null,parse:null,comment:!1,format:{indent:{style:" ",base:0,adjustMultilineComment:!1},newline:"\n",space:" ",json:!1,renumber:!1,hexadecimal:!1,quotes:"single",escapeless:!1,compact:!1,parentheses:!0,semicolons:!0,safeConcatenation:!1,preserveBlankLines:!1},moz:{comprehensionExpressionStartsWithAssignment:!1,starlessGenerator:!1},sourceMap:null,sourceMapRoot:null,sourceMapWithCode:!1,directive:!1,raw:!0,verbatim:null,sourceCode:null};return null!=i?("string"==typeof i.indent&&(u.format.indent.style=i.indent),"number"==typeof i.base&&(u.format.indent.base=i.base),i=B(u,i),c=i.format.indent.style,l="string"==typeof i.base?i.base:x(c,i.format.indent.base)):(c=(i=u).format.indent.style,l=x(c,i.format.indent.base)),p=i.format.json,f=i.format.renumber,h=!p&&i.format.hexadecimal,g=p?"double":i.format.quotes,m=i.format.escapeless,y=i.format.newline,b=i.format.space,i.format.compact&&(y=b=c=l=""),v=i.format.parentheses,C=i.format.semicolons,S=i.format.safeConcatenation,N=i.directive,_=p?null:i.parse,E=i.sourceMap,I=i.sourceCode,T=i.format.preserveBlankLines&&null!==I,A=i,E&&(a=t.browser?e.sourceMap.SourceNode:n(152).SourceNode),o=ne(r),E?(s=o.toStringWithSourceMap({file:i.file,sourceRoot:i.sourceMapRoot}),i.sourceContent&&s.map.setSourceContent(i.sourceMap,i.sourceContent),i.sourceMapWithCode?s:s.map.toString()):(s={code:o.toString(),map:null},i.sourceMapWithCode?s:s.code)},t.attachComments=s.attachComments,t.Precedence=B({},i),t.browser=!1,t.FORMAT_MINIFY=D,t.FORMAT_DEFAULTS=F}()}).call(this,n(56))},function(e,t){e.exports=function(){throw new Error("define cannot be used indirect")}},function(e,t){function n(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id=63},function(e,t,n){"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,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){return function(e){this.groups=[],this.always=!1,this.each=!1,this.context=void 0,this.type=e.type,this.target=e.target,this.propertyName=e.propertyName,this.constraints=e.constraints,this.constraintCls=e.constraintCls,this.validationTypeOptions=e.validationTypeOptions,e.validationOptions&&(this.message=e.validationOptions.message,this.groups=e.validationOptions.groups,this.always=e.validationOptions.always,this.each=e.validationOptions.each,this.context=e.validationOptions.context)}}();t.ValidationMetadata=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),e=Date.parse(e),isNaN(e)?null:new Date(e)};var r,i=n(9),o=(r=i)&&r.__esModule?r:{default:r};e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.default=function(e){"object"===(void 0===e?"undefined":r(e))&&null!==e?e="function"==typeof e.toString?e.toString():"[object Object]":(null===e||void 0===e||isNaN(e)&&!e.length)&&(e="");return String(e)},e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,r.default)(e),(t=(0,i.default)(t,a)).allow_trailing_dot&&"."===e[e.length-1]&&(e=e.substring(0,e.length-1));for(var n=e.split("."),o=0;o63)return!1;if(t.require_tld){var s=n.pop();if(!n.length||!/^([a-z\u00a1-\uffff]{2,}|xn[a-z0-9-]{2,})$/i.test(s))return!1;if(/[\s\u2002-\u200B\u202F\u205F\u3000\uFEFF\uDB40\uDC20]/.test(s))return!1}for(var u,d=0;d1&&void 0!==arguments[1]?arguments[1]:"";(0,o.default)(t);n=String(n);if(!n)return e(t,4)||e(t,6);if("4"===n){if(!a.test(t))return!1;var r=t.split(".").sort(function(e,t){return e-t});return r[3]<=255}if("6"===n){var i=t.split(":"),u=!1,d=e(i[i.length-1],4),l=d?7:8;if(i.length>l)return!1;if("::"===t)return!0;"::"===t.substr(0,2)?(i.shift(),i.shift(),u=!0):"::"===t.substr(t.length-2)&&(i.pop(),i.pop(),u=!0);for(var c=0;c0&&c=1:i.length===l}return!1};var r,i=n(9),o=(r=i)&&r.__esModule?r:{default:r};var a=/^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})$/,s=/^[0-9A-F]{1,4}$/i;e.exports=t.default},function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var u,d=[],l=!1,c=-1;function p(){l&&u&&(l=!1,u.length?d=u.concat(d):c=-1,d.length&&f())}function f(){if(!l){var e=s(p);l=!0;for(var t=d.length;t;){for(u=d,d=[];++c1)for(var n=1;n=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},c=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},p=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var f=n(2),h=n(4),g=n(27),m=n(60),y=n(10),b=function(e){function t(e,n,r){return(0,i.default)(this,t),(0,a.default)(this,(0,s.default)(t).call(this,e,n,r))}return(0,u.default)(t,e),(0,o.default)(t,[{key:"getControlFlowStorageCallNode",value:function(e,t,n,r){var i=this.controlFlowCustomNodeFactory(g.ControlFlowCustomNode.ExpressionWithOperatorControlFlowStorageCallNode);i.initialize(e,t,n,r);var o=i.getNode()[0];if(!o||!y.NodeGuards.isExpressionStatementNode(o))throw new Error("`controlFlowStorageCallCustomNode.getNode()[0]` should returns array with `ExpressionStatement` node");return o.expression}}]),t}(m.AbstractControlFlowReplacer);b=l([f.injectable(),p(0,f.inject(h.ServiceIdentifiers.Factory__IControlFlowCustomNode)),p(1,f.inject(h.ServiceIdentifiers.IRandomGenerator)),p(2,f.inject(h.ServiceIdentifiers.IOptions)),c("design:paramtypes",[Function,Object,Object])],b),t.ExpressionWithOperatorControlFlowReplacer=b},function(e,t){!function(){"use strict";var t,n,r,i,o,a;function s(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(Math.floor((e-65536)/1024)+55296)+String.fromCharCode((e-65536)%1024+56320)}for(n={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B2\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA7AD\uA7B0\uA7B1\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB5F\uAB64\uAB65\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,NonAsciiIdentifierPart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B2\u08E4-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58\u0C59\u0C60-\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D60-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFC-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA69D\uA69F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA7AD\uA7B0\uA7B1\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB5F\uAB64\uAB65\uABC0-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2D\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/},t={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B2\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA7AD\uA7B0\uA7B1\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB5F\uAB64\uAB65\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDE00-\uDE11\uDE13-\uDE2B\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF5D-\uDF61]|\uD805[\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDE00-\uDE2F\uDE44\uDE80-\uDEAA]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF98]|\uD809[\uDC00-\uDC6E]|[\uD80C\uD840-\uD868\uD86A-\uD86C][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B2\u08E4-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58\u0C59\u0C60-\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D60-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFC-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA69D\uA69F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA7AD\uA7B0\uA7B1\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB5F\uAB64\uAB65\uABC0-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2D\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDD0-\uDDDA\uDE00-\uDE11\uDE13-\uDE37\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF01-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF98]|\uD809[\uDC00-\uDC6E]|[\uD80C\uD840-\uD868\uD86A-\uD86C][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/},r=[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279],i=new Array(128),a=0;a<128;++a)i[a]=a>=97&&a<=122||a>=65&&a<=90||36===a||95===a;for(o=new Array(128),a=0;a<128;++a)o[a]=a>=97&&a<=122||a>=65&&a<=90||a>=48&&a<=57||36===a||95===a;e.exports={isDecimalDigit:function(e){return 48<=e&&e<=57},isHexDigit:function(e){return 48<=e&&e<=57||97<=e&&e<=102||65<=e&&e<=70},isOctalDigit:function(e){return e>=48&&e<=55},isWhiteSpace:function(e){return 32===e||9===e||11===e||12===e||160===e||e>=5760&&r.indexOf(e)>=0},isLineTerminator:function(e){return 10===e||13===e||8232===e||8233===e},isIdentifierStartES5:function(e){return e<128?i[e]:n.NonAsciiIdentifierStart.test(s(e))},isIdentifierPartES5:function(e){return e<128?o[e]:n.NonAsciiIdentifierPart.test(s(e))},isIdentifierStartES6:function(e){return e<128?i[e]:t.NonAsciiIdentifierStart.test(s(e))},isIdentifierPartES6:function(e){return e<128?o[e]:t.NonAsciiIdentifierPart.test(s(e))}}}()},function(e,t,n){"use strict";var r,i,o,a=n(83),s=n(157),u=n(158),d=n(159)(n(161)),l=5;function c(){i={tokens:null,range:!1,loc:!1,comment:!1,comments:[],tolerant:!1,errors:[],strict:!1,ecmaFeatures:{},ecmaVersion:l,isModule:!1}}var p=d.tokTypes,f=d.getLineInfo;function h(e){if("number"!=typeof e)return l;var t=e;switch(t>=2015&&(t-=2009),t){case 3:case 5:case 6:case 7:case 8:case 9:case 10:return t;default:throw new Error("Invalid ecmaVersion.")}}function g(e){if(function(e){switch(e.type){case"ImportDeclaration":case"ExportNamedDeclaration":case"ExportDefaultDeclaration":case"ExportAllDeclaration":return i.isModule;default:return!0}}(e)||this.unexpected(e.start),"TemplateElement"===e.type){var t="${"===this.input.slice(e.end,e.end+2);e.range&&(e.range[0]--,e.range[1]+=t?2:1),e.loc&&(e.loc.start.column--,e.loc.end.column+=t?2:1)}return i.attachComment&&s.processComment(e),e.type.indexOf("Function")>-1&&!e.generator&&(e.generator=!1),e}function m(e){return function(t,n,r,i){var o=e.call(this,t,n,r,i);return g.call(this,o)}}function y(e,t,n,r,i,o){var a={type:e?"Block":"Line",value:t};return"number"==typeof n&&(a.start=n,a.end=r,a.range=[n,r]),"object"==typeof i&&(a.loc={start:i,end:o}),a}p.jsxAttrValueToken={},d.plugins.espree=function(e){e.extend("finishNode",m),e.extend("finishNodeAt",m),e.extend("next",function(e){return function(){return function(e){var t=i.ecmaFeatures;switch(e.type){case p.jsxName:case p.jsxText:case p.jsxTagStart:case p.jsxTagEnd:return t.jsx;case p.regexp:return!(i.ecmaVersion<6&&e.value.flags&&e.value.flags.indexOf("y")>-1);default:return!0}}(this)||this.unexpected(),e.call(this)}}),e.extend("parseTopLevel",function(e){return function(t){return i.ecmaFeatures.impliedStrict&&this.options.ecmaVersion>=5&&(this.strict=!0),e.call(this,t)}}),e.raise=e.raiseRecoverable=function(e,t){var n=f(this.input,e),r=new SyntaxError(t);throw r.index=e,r.lineNumber=n.line,r.column=n.column+1,r},e.unexpected=function(e){var t="Unexpected token";if(null!==e&&void 0!==e){if(this.pos=e,this.options.locations)for(;this.posthis.start&&(t+=" "+this.input.slice(this.start,this.end)),this.raise(this.start,t)},e.extend("jsx_readString",function(e){return function(t){var n=e.call(this,t);return this.type===p.string&&(i.jsxAttrValueToken=!0),n}})},t.version=n(162).version,t.tokenize=function(e,t){var n,o,a,s=new u(p,e);n=String,"string"==typeof e||e instanceof String||(e=n(e)),r=null,t=Object.assign({},t);var f={ecmaVersion:l,plugins:{espree:!0}};c(),t.tokens=!0,i.tokens=[],i.range="boolean"==typeof t.range&&t.range,f.ranges=i.range,i.loc="boolean"==typeof t.loc&&t.loc,f.locations=i.loc,i.comment="boolean"==typeof t.comment&&t.comment,i.comment&&(f.onComment=function(){var e=y.apply(this,arguments);i.comments.push(e)}),i.tolerant="boolean"==typeof t.tolerant&&t.tolerant,f.ecmaVersion=i.ecmaVersion=h(t.ecmaVersion),t.ecmaFeatures&&"object"==typeof t.ecmaFeatures&&(i.ecmaFeatures=Object.assign({},t.ecmaFeatures),a=i.ecmaFeatures.impliedStrict,i.ecmaFeatures.impliedStrict="boolean"==typeof a&&a);try{for(var g=d.tokenizer(e,f);(r=g.getToken()).type!==p.eof;)s.onToken(r,i);o=i.tokens,i.comment&&(o.comments=i.comments),i.tolerant&&(o.errors=i.errors)}catch(e){throw e}return o},t.parse=function(e,t){var n,r,a,f=String,g={ecmaVersion:l,plugins:{espree:!0}};return o=null,"string"==typeof e||e instanceof String||(e=f(e)),c(),s.reset(),void 0!==t&&(i.range="boolean"==typeof t.range&&t.range,i.loc="boolean"==typeof t.loc&&t.loc,i.attachComment="boolean"==typeof t.attachComment&&t.attachComment,i.loc&&null!==t.source&&void 0!==t.source&&(i.source=f(t.source)),"boolean"==typeof t.tokens&&t.tokens&&(i.tokens=[],r=new u(p,e)),"boolean"==typeof t.comment&&t.comment&&(i.comment=!0,i.comments=[]),"boolean"==typeof t.tolerant&&t.tolerant&&(i.errors=[]),i.attachComment&&(i.range=!0,i.comments=[],s.reset()),g.ecmaVersion=i.ecmaVersion=h(t.ecmaVersion),"module"===t.sourceType&&(i.isModule=!0,g.ecmaVersion<6&&(g.ecmaVersion=6,i.ecmaVersion=6),g.sourceType="module"),t.ecmaFeatures&&"object"==typeof t.ecmaFeatures&&(i.ecmaFeatures=Object.assign({},t.ecmaFeatures),a=i.ecmaFeatures.impliedStrict,i.ecmaFeatures.impliedStrict="boolean"==typeof a&&a,t.ecmaFeatures.globalReturn&&(g.allowReturnOutsideFunction=!0)),g.onToken=function(e){i.tokens&&r.onToken(e,i),e.type!==p.eof&&(o=e)},(i.attachComment||i.comment)&&(g.onComment=function(){var e=y.apply(this,arguments);i.comments.push(e),i.attachComment&&s.addComment(e)}),i.range&&(g.ranges=!0),i.loc&&(g.locations=!0),i.ecmaFeatures.jsx&&(g.plugins={jsx:!0,espree:!0})),(n=d.parse(e,g)).sourceType=i.isModule?"module":"script",(i.comment||i.attachComment)&&(n.comments=i.comments),i.tokens&&(n.tokens=i.tokens),n.range&&(n.range[0]=n.body.length?n.body[0].range[0]:n.range[0],n.range[1]=o?o.range[1]:n.range[1]),n.loc&&(n.loc.start=n.body.length?n.body[0].loc.start:n.loc.start,n.loc.end=o?o.loc.end:n.loc.end),n},t.Syntax=function(){var e,t={};for(e in"function"==typeof Object.create&&(t=Object.create(null)),a)a.hasOwnProperty(e)&&(t[e]=a[e]);return"function"==typeof Object.freeze&&Object.freeze(t),t}(),t.VisitorKeys=function(){var e,t=n(163),r={};for(e in"function"==typeof Object.create&&(r=Object.create(null)),t)t.hasOwnProperty(e)&&(r[e]=t[e]);return"function"==typeof Object.freeze&&Object.freeze(r),r}()},function(e,t,n){"use strict";e.exports={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DoWhileStatement:"DoWhileStatement",DebuggerStatement:"DebuggerStatement",EmptyStatement:"EmptyStatement",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForInStatement:"ForInStatement",ForOfStatement:"ForOfStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",Identifier:"Identifier",IfStatement:"IfStatement",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",Program:"Program",Property:"Property",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchCase:"SwitchCase",SwitchStatement:"SwitchStatement",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression",JSXIdentifier:"JSXIdentifier",JSXNamespacedName:"JSXNamespacedName",JSXMemberExpression:"JSXMemberExpression",JSXEmptyExpression:"JSXEmptyExpression",JSXExpressionContainer:"JSXExpressionContainer",JSXElement:"JSXElement",JSXClosingElement:"JSXClosingElement",JSXOpeningElement:"JSXOpeningElement",JSXAttribute:"JSXAttribute",JSXSpreadAttribute:"JSXSpreadAttribute",JSXText:"JSXText",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportAllDeclaration:"ExportAllDeclaration",ExportSpecifier:"ExportSpecifier",ImportDeclaration:"ImportDeclaration",ImportSpecifier:"ImportSpecifier",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.BlockStatementDeadCodeInjectionNode="BlockStatementDeadCodeInjectionNode"}(t.DeadCodeInjectionCustomNode||(t.DeadCodeInjectionCustomNode={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.AssignmentExpressionPropertiesExtractor="AssignmentExpressionPropertiesExtractor",e.VariableDeclaratorPropertiesExtractor="VariableDeclaratorPropertiesExtractor"}(t.PropertiesExtractor||(t.PropertiesExtractor={}))},function(e,t,n){"use strict";var r,i=n(0),o=i(n(37)),a=i(n(1)),s=i(n(3)),u=i(n(5)),d=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,u.default)(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},l=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,u.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var p=n(2),f=n(4),h=n(31),g=n(15),m=n(10),y=n(30),b=r=function(){function e(t,n){(0,a.default)(this,e),this.cachedHostNodesWithStatementsMap=new Map,this.cachedHostStatementsMap=new Map,this.randomGenerator=t,this.options=n}return(0,s.default)(e,[{key:"extractPropertiesToExpressionStatements",value:function(e,t){for(var n=e.length,i=[],o=[],a=0;a=0;u--)(i=e[u])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},u=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,a.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},d=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var l=n(2),c=n(4),p=function(){function e(t,n){(0,i.default)(this,e),this.randomGenerator=t,this.options=n}return(0,o.default)(e,[{key:"isValidIdentifierName",value:function(e){return!this.options.reservedNames.length||!this.options.reservedNames.some(function(t){return null!==new RegExp(t,"g").exec(e)})}}]),e}();p=s([l.injectable(),d(0,l.inject(c.ServiceIdentifiers.IRandomGenerator)),d(1,l.inject(c.ServiceIdentifiers.IOptions)),u("design:paramtypes",[Object,Object])],p),t.AbstractIdentifierNamesGenerator=p},function(e,t,n){"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,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n(function(t){t(e.value)}).then(a,s)}u((r=r.apply(e,t||[])).next())})},i=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=0},e.prototype.isNumber=function(e,t){return void 0===t&&(t={}),e===1/0||e===-1/0?t.allowInfinity:Number.isNaN(e)?t.allowNaN:Number.isFinite(e)},e.prototype.isInt=function(e){return Number.isInteger(e)},e.prototype.isDivisibleBy=function(e,t){return"number"==typeof e&&"number"==typeof t&&this.validatorJs.isDivisibleBy(String(e),t)},e.prototype.isPositive=function(e){return"number"==typeof e&&e>0},e.prototype.isNegative=function(e){return"number"==typeof e&&e<0},e.prototype.min=function(e,t){return"number"==typeof e&&"number"==typeof t&&e>=t},e.prototype.max=function(e,t){return"number"==typeof e&&"number"==typeof t&&e<=t},e.prototype.minDate=function(e,t){return e&&e.getTime()>=t.getTime()},e.prototype.maxDate=function(e,t){return e&&e.getTime()<=t.getTime()},e.prototype.isBooleanString=function(e){return"string"==typeof e&&this.validatorJs.isBoolean(e)},e.prototype.isNumberString=function(e){return"string"==typeof e&&this.validatorJs.isNumeric(e)},e.prototype.contains=function(e,t){return"string"==typeof e&&this.validatorJs.contains(e,t)},e.prototype.notContains=function(e,t){return"string"==typeof e&&!this.validatorJs.contains(e,t)},e.prototype.isAlpha=function(e){return"string"==typeof e&&this.validatorJs.isAlpha(e)},e.prototype.isAlphanumeric=function(e){return"string"==typeof e&&this.validatorJs.isAlphanumeric(e)},e.prototype.isAscii=function(e){return"string"==typeof e&&this.validatorJs.isAscii(e)},e.prototype.isBase64=function(e){return"string"==typeof e&&this.validatorJs.isBase64(e)},e.prototype.isByteLength=function(e,t,n){return"string"==typeof e&&this.validatorJs.isByteLength(e,t,n)},e.prototype.isCreditCard=function(e){return"string"==typeof e&&this.validatorJs.isCreditCard(e)},e.prototype.isCurrency=function(e,t){return"string"==typeof e&&this.validatorJs.isCurrency(e,t)},e.prototype.isEmail=function(e,t){return"string"==typeof e&&this.validatorJs.isEmail(e,t)},e.prototype.isFQDN=function(e,t){return"string"==typeof e&&this.validatorJs.isFQDN(e,t)},e.prototype.isFullWidth=function(e){return"string"==typeof e&&this.validatorJs.isFullWidth(e)},e.prototype.isHalfWidth=function(e){return"string"==typeof e&&this.validatorJs.isHalfWidth(e)},e.prototype.isVariableWidth=function(e){return"string"==typeof e&&this.validatorJs.isVariableWidth(e)},e.prototype.isHexColor=function(e){return"string"==typeof e&&this.validatorJs.isHexColor(e)},e.prototype.isHexadecimal=function(e){return"string"==typeof e&&this.validatorJs.isHexadecimal(e)},e.prototype.isIP=function(e,t){return"string"==typeof e&&this.validatorJs.isIP(e,t)},e.prototype.isISBN=function(e,t){return"string"==typeof e&&this.validatorJs.isISBN(e,t)},e.prototype.isISIN=function(e){return"string"==typeof e&&this.validatorJs.isISIN(e)},e.prototype.isISO8601=function(e){return"string"==typeof e&&this.validatorJs.isISO8601(e)},e.prototype.isJSON=function(e){return"string"==typeof e&&this.validatorJs.isJSON(e)},e.prototype.isLowercase=function(e){return"string"==typeof e&&this.validatorJs.isLowercase(e)},e.prototype.isMobilePhone=function(e,t){return"string"==typeof e&&this.validatorJs.isMobilePhone(e,t)},e.prototype.isPhoneNumber=function(e,t){try{var n=this.libPhoneNumber.phoneUtil.parseAndKeepRawInput(e,t);return this.libPhoneNumber.phoneUtil.isValidNumber(n)}catch(e){return!1}},e.prototype.isMongoId=function(e){return"string"==typeof e&&this.validatorJs.isMongoId(e)},e.prototype.isMultibyte=function(e){return"string"==typeof e&&this.validatorJs.isMultibyte(e)},e.prototype.isSurrogatePair=function(e){return"string"==typeof e&&this.validatorJs.isSurrogatePair(e)},e.prototype.isURL=function(e,t){return"string"==typeof e&&this.validatorJs.isURL(e,t)},e.prototype.isUUID=function(e,t){return"string"==typeof e&&this.validatorJs.isUUID(e,t)},e.prototype.isUppercase=function(e){return"string"==typeof e&&this.validatorJs.isUppercase(e)},e.prototype.length=function(e,t,n){return"string"==typeof e&&this.validatorJs.isLength(e,t,n)},e.prototype.minLength=function(e,t){return"string"==typeof e&&this.length(e,t)},e.prototype.maxLength=function(e,t){return"string"==typeof e&&this.length(e,0,t)},e.prototype.matches=function(e,t,n){return"string"==typeof e&&this.validatorJs.matches(e,t,n)},e.prototype.isMilitaryTime=function(e){return this.matches(e,/^([01]\d|2[0-3]):?([0-5]\d)$/)},e.prototype.arrayContains=function(e,t){return e instanceof Array&&(!e||t.every(function(t){return-1!==e.indexOf(t)}))},e.prototype.arrayNotContains=function(e,t){return e instanceof Array&&(!e||t.every(function(t){return-1===e.indexOf(t)}))},e.prototype.arrayNotEmpty=function(e){return e instanceof Array&&(e instanceof Array&&e.length>0)},e.prototype.arrayMinSize=function(e,t){return e instanceof Array&&(e instanceof Array&&e.length>=t)},e.prototype.arrayMaxSize=function(e,t){return e instanceof Array&&(e instanceof Array&&e.length<=t)},e.prototype.arrayUnique=function(e){if(!(e instanceof Array))return!1;var t=e.filter(function(e,t,n){return n.indexOf(e)===t});return e.length===t.length},e.prototype.isInstance=function(e,t){return t&&"function"==typeof t&&e instanceof t},e}();t.Validator=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){}return e.prototype.toString=function(e,t,n){var r=this;void 0===e&&(e=!1),void 0===t&&(t=!1),void 0===n&&(n="");var i=e?"":"",o=e?"":"",a=function(e){return" - property "+i+n+e+o+" has failed the following constraints: "+i+Object.keys(r.constraints).join(", ")+o+" \n"};if(t){var s=Number.isInteger(+this.property)?"["+this.property+"]":(n?".":"")+this.property;return this.constraints?a(s):this.children.map(function(t){return t.toString(e,!0,""+n+s)}).join("")}return"An instance of "+i+(this.target?this.target.constructor.name:"an object")+o+" has failed the validation:\n"+(this.constraints?a(this.property):"")+this.children.map(function(t){return t.toString(e,!0,r.property)}).join("")},e}();t.ValidationError=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),parseFloat(e)};var r,i=n(9),o=(r=i)&&r.__esModule?r:{default:r};e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.default=function(e,t){(0,a.default)(e);var n=void 0,i=void 0;"object"===(void 0===t?"undefined":r(t))?(n=t.min||0,i=t.max):(n=arguments[1],i=arguments[2]);var o=encodeURI(e).split(/%..|./).length-1;return o>=n&&(void 0===i||o<=i)};var i,o=n(9),a=(i=o)&&i.__esModule?i:{default:i};e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,o.default)(e);var n=(t=t||{}).hasOwnProperty("allow_leading_zeroes")&&!t.allow_leading_zeroes?a:s,r=!t.hasOwnProperty("min")||e>=t.min,i=!t.hasOwnProperty("max")||e<=t.max,u=!t.hasOwnProperty("lt")||et.gt;return n.test(e)&&r&&i&&u&&d};var r,i=n(9),o=(r=i)&&r.__esModule?r:{default:r};var a=/^(?:[-+]?(?:0|[1-9][0-9]*))$/,s=/^[-+]?[0-9]+$/;e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fullWidth=void 0,t.default=function(e){return(0,o.default)(e),a.test(e)};var r,i=n(9),o=(r=i)&&r.__esModule?r:{default:r};var a=t.fullWidth=/[^\u0020-\u007E\uFF61-\uFF9F\uFFA0-\uFFDC\uFFE8-\uFFEE0-9a-zA-Z]/},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.halfWidth=void 0,t.default=function(e){return(0,o.default)(e),a.test(e)};var r,i=n(9),o=(r=i)&&r.__esModule?r:{default:r};var a=t.halfWidth=/[\u0020-\u007E\uFF61-\uFF9F\uFFA0-\uFFDC\uFFE8-\uFFEE0-9a-zA-Z]/},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),a.test(e)};var r,i=n(9),o=(r=i)&&r.__esModule?r:{default:r};var a=/^[0-9A-F]+$/i;e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,o.default)(e);var n=t?new RegExp("^["+t+"]+","g"):/^\s+/g;return e.replace(n,"")};var r,i=n(9),o=(r=i)&&r.__esModule?r:{default:r};e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,o.default)(e);for(var n=t?new RegExp("["+t+"]"):/\s/,r=e.length-1;r>=0&&n.test(e[r]);r--);return r=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},l=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,u.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var p=n(2),f=n(4),h=n(11),g=function(){function e(t,n){(0,a.default)(this,e),this.randomGenerator=t,this.options=n}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,n=!1,r=void 0;try{for(var i,a=this.storage[Symbol.iterator]();!(t=(i=a.next()).done);t=!0){var s=(0,o.default)(i.value,2),u=s[0];if(e===s[1])return u}}catch(e){n=!0,r=e}finally{try{t||null==a.return||a.return()}finally{if(n)throw r}}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:"mergeWith",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.storage=new Map((0,i.default)(this.storage).concat((0,i.default)(e.getStorage()))),t&&(this.storageId=e.getStorageId())}},{key:"set",value:function(e,t){this.storage.set(e,t)}}]),e}();d([h.initializable(),l("design:type",String)],g.prototype,"storageId",void 0),d([h.initializable(),l("design:type",Map)],g.prototype,"storage",void 0),d([p.postConstruct(),l("design:type",Function),l("design:paramtypes",[]),l("design:returntype",void 0)],g.prototype,"initialize",null),g=d([p.injectable(),c(0,p.inject(f.ServiceIdentifiers.IRandomGenerator)),c(1,p.inject(f.ServiceIdentifiers.IOptions)),l("design:paramtypes",[Object,Object])],g),t.MapStorage=g},function(e,t,n){"use strict";var r,i=n(0),o=i(n(1)),a=i(n(3)),s=i(n(5)),u=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,s.default)(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var u=e.length-1;u>=0;u--)(i=e[u])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},d=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,s.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},l=function(e,t){return function(n,r){t(n,r,e)}},c=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var p=n(2),f=n(4),h=c(n(347)),g=n(350),m=n(11),y=r=function(){function e(t,n){(0,o.default)(this,e),this.sourceCode=t,this.options=n}return(0,a.default)(e,[{key:"initialize",value:function(){var e,t,n,r=this;this.seed=0!==this.options.seed?this.options.seed:(e=0,t=999999999,Math.floor(Math.random()*(t-e+1)+e)),this.randomGenerator=new g.Chance((n=h.default(r.sourceCode.getSourceCode()),r.seed+Number(n.replace(/\D/g,""))))}},{key:"getMathRandom",value:function(){return this.getRandomInteger(0,99999)/1e5}},{key:"getRandomGenerator",value:function(){return this.randomGenerator}},{key:"getRandomInteger",value:function(e,t){return this.getRandomGenerator().integer({min:e,max:t})}},{key:"getRandomString",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.randomGeneratorPool;return this.getRandomGenerator().string({length:e,pool:t})}},{key:"getSeed",value:function(){return this.seed}}]),e}();y.randomGeneratorPool="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",u([m.initializable(),d("design:type",Object)],y.prototype,"randomGenerator",void 0),u([m.initializable(),d("design:type",Number)],y.prototype,"seed",void 0),u([p.postConstruct(),d("design:type",Function),d("design:paramtypes",[]),d("design:returntype",void 0)],y.prototype,"initialize",null),y=r=u([p.injectable(),l(0,p.inject(f.ServiceIdentifiers.ISourceCode)),l(1,p.inject(f.ServiceIdentifiers.IOptions)),d("design:paramtypes",[Object,Object])],y),t.RandomGenerator=y},function(e,t){var n={utf8:{stringToBytes:function(e){return n.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(n.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],n=0;n0}function p(e){if(!this||!(this instanceof p)||this.template){const t={};return c(t,e),t.template=function(){const e=[].slice.call(arguments);return function(e,t){if(!Array.isArray(t))return[].slice.call(arguments,1).join(" ");const n=[].slice.call(arguments,2),r=[t.raw[0]];for(let e=1;e{},l);function h(e,t,n){const r=function(){return function(){const e=arguments,t=e.length;let n=String(arguments[0]);if(0===t)return"";if(t>1)for(let r=1;ro.level,set(e){o.level=e}}),Object.defineProperty(r,"enabled",{enumerable:!0,get:()=>o.enabled,set(e){o.enabled=e}}),r.hasGrey=this.hasGrey||"gray"===n||"grey"===n,r.__proto__=f,r}Object.defineProperties(p.prototype,l),e.exports=p(),e.exports.supportsColor=o,e.exports.default=e.exports}).call(this,n(70))},function(e,t,n){var r=n(362),i={};for(var o in r)r.hasOwnProperty(o)&&(i[r[o]]=o);var a=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var s in a)if(a.hasOwnProperty(s)){if(!("channels"in a[s]))throw new Error("missing channels property: "+s);if(!("labels"in a[s]))throw new Error("missing channel labels property: "+s);if(a[s].labels.length!==a[s].channels)throw new Error("channel and label counts mismatch: "+s);var u=a[s].channels,d=a[s].labels;delete a[s].channels,delete a[s].labels,Object.defineProperty(a[s],"channels",{value:u}),Object.defineProperty(a[s],"labels",{value:d})}a.rgb.hsl=function(e){var t,n,r=e[0]/255,i=e[1]/255,o=e[2]/255,a=Math.min(r,i,o),s=Math.max(r,i,o),u=s-a;return s===a?t=0:r===s?t=(i-o)/u:i===s?t=2+(o-r)/u:o===s&&(t=4+(r-i)/u),(t=Math.min(60*t,360))<0&&(t+=360),n=(a+s)/2,[t,100*(s===a?0:n<=.5?u/(s+a):u/(2-s-a)),100*n]},a.rgb.hsv=function(e){var t,n,r=e[0],i=e[1],o=e[2],a=Math.min(r,i,o),s=Math.max(r,i,o),u=s-a;return n=0===s?0:u/s*1e3/10,s===a?t=0:r===s?t=(i-o)/u:i===s?t=2+(o-r)/u:o===s&&(t=4+(r-i)/u),(t=Math.min(60*t,360))<0&&(t+=360),[t,n,s/255*1e3/10]},a.rgb.hwb=function(e){var t=e[0],n=e[1],r=e[2];return[a.rgb.hsl(e)[0],100*(1/255*Math.min(t,Math.min(n,r))),100*(r=1-1/255*Math.max(t,Math.max(n,r)))]},a.rgb.cmyk=function(e){var t,n=e[0]/255,r=e[1]/255,i=e[2]/255;return[100*((1-n-(t=Math.min(1-n,1-r,1-i)))/(1-t)||0),100*((1-r-t)/(1-t)||0),100*((1-i-t)/(1-t)||0),100*t]},a.rgb.keyword=function(e){var t=i[e];if(t)return t;var n,o,a,s=1/0;for(var u in r)if(r.hasOwnProperty(u)){var d=r[u],l=(o=e,a=d,Math.pow(o[0]-a[0],2)+Math.pow(o[1]-a[1],2)+Math.pow(o[2]-a[2],2));l.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)),100*(.2126*t+.7152*n+.0722*r),100*(.0193*t+.1192*n+.9505*r)]},a.rgb.lab=function(e){var t=a.rgb.xyz(e),n=t[0],r=t[1],i=t[2];return r/=100,i/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(n-r),200*(r-(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116))]},a.hsl.rgb=function(e){var t,n,r,i,o,a=e[0]/360,s=e[1]/100,u=e[2]/100;if(0===s)return[o=255*u,o,o];t=2*u-(n=u<.5?u*(1+s):u+s-u*s),i=[0,0,0];for(var d=0;d<3;d++)(r=a+1/3*-(d-1))<0&&r++,r>1&&r--,o=6*r<1?t+6*(n-t)*r:2*r<1?n:3*r<2?t+(n-t)*(2/3-r)*6:t,i[d]=255*o;return i},a.hsl.hsv=function(e){var t=e[0],n=e[1]/100,r=e[2]/100,i=n,o=Math.max(r,.01);return n*=(r*=2)<=1?r:2-r,i*=o<=1?o:2-o,[t,100*(0===r?2*i/(o+i):2*n/(r+n)),100*((r+n)/2)]},a.hsv.rgb=function(e){var t=e[0]/60,n=e[1]/100,r=e[2]/100,i=Math.floor(t)%6,o=t-Math.floor(t),a=255*r*(1-n),s=255*r*(1-n*o),u=255*r*(1-n*(1-o));switch(r*=255,i){case 0:return[r,u,a];case 1:return[s,r,a];case 2:return[a,r,u];case 3:return[a,s,r];case 4:return[u,a,r];case 5:return[r,a,s]}},a.hsv.hsl=function(e){var t,n,r,i=e[0],o=e[1]/100,a=e[2]/100,s=Math.max(a,.01);return r=(2-o)*a,n=o*s,[i,100*(n=(n/=(t=(2-o)*s)<=1?t:2-t)||0),100*(r/=2)]},a.hwb.rgb=function(e){var t,n,r,i,o,a,s,u=e[0]/360,d=e[1]/100,l=e[2]/100,c=d+l;switch(c>1&&(d/=c,l/=c),n=1-l,r=6*u-(t=Math.floor(6*u)),0!=(1&t)&&(r=1-r),i=d+r*(n-d),t){default:case 6:case 0:o=n,a=i,s=d;break;case 1:o=i,a=n,s=d;break;case 2:o=d,a=n,s=i;break;case 3:o=d,a=i,s=n;break;case 4:o=i,a=d,s=n;break;case 5:o=n,a=d,s=i}return[255*o,255*a,255*s]},a.cmyk.rgb=function(e){var t=e[0]/100,n=e[1]/100,r=e[2]/100,i=e[3]/100;return[255*(1-Math.min(1,t*(1-i)+i)),255*(1-Math.min(1,n*(1-i)+i)),255*(1-Math.min(1,r*(1-i)+i))]},a.xyz.rgb=function(e){var t,n,r,i=e[0]/100,o=e[1]/100,a=e[2]/100;return n=-.9689*i+1.8758*o+.0415*a,r=.0557*i+-.204*o+1.057*a,t=(t=3.2406*i+-1.5372*o+-.4986*a)>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,[255*(t=Math.min(Math.max(0,t),1)),255*(n=Math.min(Math.max(0,n),1)),255*(r=Math.min(Math.max(0,r),1))]},a.xyz.lab=function(e){var t=e[0],n=e[1],r=e[2];return n/=100,r/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(t-n),200*(n-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]},a.lab.xyz=function(e){var t,n,r,i=e[0],o=e[1],a=e[2];t=o/500+(n=(i+16)/116),r=n-a/200;var s=Math.pow(n,3),u=Math.pow(t,3),d=Math.pow(r,3);return n=s>.008856?s:(n-16/116)/7.787,t=u>.008856?u:(t-16/116)/7.787,r=d>.008856?d:(r-16/116)/7.787,[t*=95.047,n*=100,r*=108.883]},a.lab.lch=function(e){var t,n=e[0],r=e[1],i=e[2];return(t=360*Math.atan2(i,r)/2/Math.PI)<0&&(t+=360),[n,Math.sqrt(r*r+i*i),t]},a.lch.lab=function(e){var t,n=e[0],r=e[1];return t=e[2]/360*2*Math.PI,[n,r*Math.cos(t),r*Math.sin(t)]},a.rgb.ansi16=function(e){var t=e[0],n=e[1],r=e[2],i=1 in arguments?arguments[1]:a.rgb.hsv(e)[2];if(0===(i=Math.round(i/50)))return 30;var o=30+(Math.round(r/255)<<2|Math.round(n/255)<<1|Math.round(t/255));return 2===i&&(o+=60),o},a.hsv.ansi16=function(e){return a.rgb.ansi16(a.hsv.rgb(e),e[2])},a.rgb.ansi256=function(e){var t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},a.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},a.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var n;return e-=16,[Math.floor(e/36)/5*255,Math.floor((n=e%36)/6)/5*255,n%6/5*255]},a.rgb.hex=function(e){var t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},a.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var n=t[0];3===t[0].length&&(n=n.split("").map(function(e){return e+e}).join(""));var r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},a.rgb.hcg=function(e){var t,n,r=e[0]/255,i=e[1]/255,o=e[2]/255,a=Math.max(Math.max(r,i),o),s=Math.min(Math.min(r,i),o),u=a-s;return t=u<1?s/(1-u):0,n=u<=0?0:a===r?(i-o)/u%6:a===i?2+(o-r)/u:4+(r-i)/u+4,n/=6,[360*(n%=1),100*u,100*t]},a.hsl.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=1,i=0;return(r=n<.5?2*t*n:2*t*(1-n))<1&&(i=(n-.5*r)/(1-r)),[e[0],100*r,100*i]},a.hsv.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=t*n,i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],100*r,100*i]},a.hcg.rgb=function(e){var t=e[0]/360,n=e[1]/100,r=e[2]/100;if(0===n)return[255*r,255*r,255*r];var i,o=[0,0,0],a=t%1*6,s=a%1,u=1-s;switch(Math.floor(a)){case 0:o[0]=1,o[1]=s,o[2]=0;break;case 1:o[0]=u,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=s;break;case 3:o[0]=0,o[1]=u,o[2]=1;break;case 4:o[0]=s,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=u}return i=(1-n)*r,[255*(n*o[0]+i),255*(n*o[1]+i),255*(n*o[2]+i)]},a.hcg.hsv=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t),r=0;return n>0&&(r=t/n),[e[0],100*r,100*n]},a.hcg.hsl=function(e){var t=e[1]/100,n=e[2]/100*(1-t)+.5*t,r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],100*r,100*n]},a.hcg.hwb=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},a.hwb.hcg=function(e){var t=e[1]/100,n=1-e[2]/100,r=n-t,i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],100*r,100*i]},a.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},a.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},a.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},a.gray.hsl=a.gray.hsv=function(e){return[0,0,e[0]]},a.gray.hwb=function(e){return[0,100,e[0]]},a.gray.cmyk=function(e){return[0,0,0,e[0]]},a.gray.lab=function(e){return[e[0],0,0]},a.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},a.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(42);e.exports=r.JavaScriptObfuscator},function(e,t,n){(function(e,t){ +!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.JavaScriptObfuscator=t():e.JavaScriptObfuscator=t()}(window,function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=109)}([function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}}},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(17);t.METADATA_KEY=r;var i=n(112);t.Container=i.Container;var o=n(23);t.BindingScopeEnum=o.BindingScopeEnum,t.BindingTypeEnum=o.BindingTypeEnum,t.TargetTypeEnum=o.TargetTypeEnum;var a=n(128);t.AsyncContainerModule=a.AsyncContainerModule,t.ContainerModule=a.ContainerModule;var s=n(129);t.injectable=s.injectable;var u=n(130);t.tagged=u.tagged;var d=n(131);t.named=d.named;var l=n(74);t.inject=l.inject,t.LazyServiceIdentifer=l.LazyServiceIdentifer;var c=n(132);t.optional=c.optional;var p=n(133);t.unmanaged=p.unmanaged;var f=n(134);t.multiInject=f.multiInject;var h=n(135);t.targetName=h.targetName;var g=n(136);t.postConstruct=g.postConstruct;var m=n(72);t.MetadataReader=m.MetadataReader;var y=n(29);t.guid=y.guid;var b=n(26);t.decorate=b.decorate;var v=n(77);t.traverseAncerstors=v.traverseAncerstors,t.taggedConstraint=v.taggedConstraint,t.namedConstraint=v.namedConstraint,t.typeConstraint=v.typeConstraint;var C=n(43);t.getServiceIdentifierAsString=C.getServiceIdentifierAsString;var S=n(137);t.multiBindToService=S.multiBindToService},function(e,t){function n(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:"initialize",t=Object.keys(this)[0];return function(n,d){var l=n[e];if(!l||"function"!=typeof l)throw new Error("`".concat(e,"` method with initialization logic not ")+"found. `@".concat(t,"` decorator requires `").concat(e,"` method"));return u(i,!1,n),u(o,new Set,n),u(a,new Set,n),function(e,t){var n=Object.getOwnPropertyNames(e),u=[t,s];n.forEach(function(n){var s=Reflect.getMetadata(o,e),d=Reflect.getMetadata(a,e),l=u.includes(n)||s.has(n)||d.has(n);if(!l){var c=e[n];if("function"==typeof c){var p=Object.getOwnPropertyDescriptor(e,n)||r,f=p.value;Object.defineProperty(e,n,Object.assign({},p,{value:function(){if(!Reflect.getMetadata(i,this))throw new Error("Class should be initialized with `".concat(t,"()` method"));return f.apply(this,arguments)}})),d.add(n)}}})}(n,e),function(e,t,n){var o=Object.getOwnPropertyDescriptor(e,t)||r,a=o.value;Object.defineProperty(e,t,Object.assign({},o,{value:function(){Reflect.defineMetadata(i,!0,this);var e=a.apply(this,arguments);return this[n],e}}))}(n,e,d),function(e,t){Reflect.getMetadata(o,e).add(t);var n="_".concat(t.toString()),i=Object.getOwnPropertyDescriptor(e,n)||r;return Object.defineProperty(e,t,Object.assign({},i,{get:function(){if(void 0===this[n])throw new Error("Property `".concat(t.toString(),"` is not initialized! Initialize it first!"));return this[n]},set:function(e){this[n]=e}})),i}(n,d)}}},function(e,t,n){"use strict";var r=n(0),i=r(n(5)),o=r(n(1)),a=r(n(3)),s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var u=s(n(61)),d=s(n(82)),l=s(n(18)),c=n(10),p=n(20),f=function(){function e(){(0,o.default)(this,e)}return(0,a.default)(e,null,[{key:"addXVerbatimPropertyTo",value:function(e){return e["x-verbatim-property"]={content:e.raw,precedence:u.Precedence.Primary},e}},{key:"clone",value:function(t){return e.parentizeAst(e.cloneRecursive(t))}},{key:"convertCodeToStructure",value:function(t){var n=d.parse(t,{sourceType:"script"});return l.replace(n,{enter:function(t,n){return e.parentizeNode(t,n),c.NodeGuards.isLiteralNode(t)&&e.addXVerbatimPropertyTo(t),p.NodeMetadata.set(t,{ignoredNode:!1}),t}}),n.body}},{key:"convertStructureToCode",value:function(e){return e.reduce(function(e,t){return e+u.generate(t,{sourceMapWithCode:!0}).code},"")}},{key:"getUnaryExpressionArgumentNode",value:function(t){return c.NodeGuards.isUnaryExpressionNode(t.argument)?e.getUnaryExpressionArgumentNode(t.argument):t.argument}},{key:"parentizeAst",value:function(t){return l.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 n={};return Object.keys(t).forEach(function(r){if("parentNode"!==r){var o,a=t[r];o=null===a||a instanceof RegExp?a:Array.isArray(a)?a.map(e.cloneRecursive):"object"===(0,i.default)(a)?e.cloneRecursive(a):a,n[r]=o}}),n}}]),e}();t.NodeUtils=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){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,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(5)),a=function(e,t,n,r){var i,a=arguments.length,s=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,o.default)(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var u=e.length-1;u>=0;u--)(i=e[u])&&(s=(a<3?i(s):a>3?i(t,n,s):i(t,n))||s);return a>3&&s&&Object.defineProperty(t,n,s),s},s=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,o.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},u=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var d=n(2),l=n(4),c=function e(t,n){(0,i.default)(this,e),this.randomGenerator=t,this.options=n};c=a([d.injectable(),u(0,d.inject(l.ServiceIdentifiers.IRandomGenerator)),u(1,d.inject(l.ServiceIdentifiers.IOptions)),s("design:paramtypes",[Object,Object])],c),t.AbstractNodeTransformer=c},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(3)),a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var s=a(n(61)),u=n(24),d=function(){function e(){(0,i.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:u.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:u.NodeType.ArrayExpression,elements:e,metadata:{ignoredNode:!1}}}},{key:"assignmentExpressionNode",value:function(e,t,n){return{type:u.NodeType.AssignmentExpression,operator:e,left:t,right:n,metadata:{ignoredNode:!1}}}},{key:"binaryExpressionNode",value:function(e,t,n){return{type:u.NodeType.BinaryExpression,operator:e,left:t,right:n,metadata:{ignoredNode:!1}}}},{key:"blockStatementNode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return{type:u.NodeType.BlockStatement,body:e,metadata:{ignoredNode:!1}}}},{key:"breakStatement",value:function(e){return{type:u.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:u.NodeType.CallExpression,callee:e,arguments:t,metadata:{ignoredNode:!1}}}},{key:"continueStatement",value:function(e){return{type:u.NodeType.ContinueStatement,label:e,metadata:{ignoredNode:!1}}}},{key:"expressionStatementNode",value:function(e){return{type:u.NodeType.ExpressionStatement,expression:e,metadata:{ignoredNode:!1}}}},{key:"functionDeclarationNode",value:function(t,n,r){return{type:u.NodeType.FunctionDeclaration,id:e.identifierNode(t),params:n,body:r,generator:!1,metadata:{ignoredNode:!1}}}},{key:"functionExpressionNode",value:function(e,t){return{type:u.NodeType.FunctionExpression,params:e,body:t,generator:!1,metadata:{ignoredNode:!1}}}},{key:"ifStatementNode",value:function(e,t,n){return Object.assign({type:u.NodeType.IfStatement,test:e,consequent:t},n&&{alternate:n},{metadata:{ignoredNode:!1}})}},{key:"identifierNode",value:function(e){return{type:u.NodeType.Identifier,name:e,metadata:{ignoredNode:!1}}}},{key:"literalNode",value:function(e,t){return t=void 0!==t?t:"'".concat(e,"'"),{type:u.NodeType.Literal,value:e,raw:t,"x-verbatim-property":{content:t,precedence:s.Precedence.Primary},metadata:{ignoredNode:!1}}}},{key:"logicalExpressionNode",value:function(e,t,n){return{type:u.NodeType.LogicalExpression,operator:e,left:t,right:n,metadata:{ignoredNode:!1}}}},{key:"memberExpressionNode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{type:u.NodeType.MemberExpression,computed:n,object:e,property:t,metadata:{ignoredNode:!1}}}},{key:"methodDefinitionNode",value:function(e,t,n,r){return{type:u.NodeType.MethodDefinition,key:e,value:t,kind:n,computed:r,static:!1,metadata:{ignoredNode:!1}}}},{key:"objectExpressionNode",value:function(e){return{type:u.NodeType.ObjectExpression,properties:e,metadata:{ignoredNode:!1}}}},{key:"propertyNode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{type:u.NodeType.Property,key:e,value:t,kind:"init",method:!1,shorthand:!1,computed:n,metadata:{ignoredNode:!1}}}},{key:"returnStatementNode",value:function(e){return{type:u.NodeType.ReturnStatement,argument:e,metadata:{ignoredNode:!1}}}},{key:"switchStatementNode",value:function(e,t){return{type:u.NodeType.SwitchStatement,discriminant:e,cases:t,metadata:{ignoredNode:!1}}}},{key:"switchCaseNode",value:function(e,t){return{type:u.NodeType.SwitchCase,test:e,consequent:t,metadata:{ignoredNode:!1}}}},{key:"unaryExpressionNode",value:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return{type:u.NodeType.UnaryExpression,operator:e,argument:t,prefix:n,metadata:{ignoredNode:!1}}}},{key:"updateExpressionNode",value:function(e,t){return{type:u.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:u.NodeType.VariableDeclaration,declarations:e,kind:t,metadata:{ignoredNode:!1}}}},{key:"variableDeclaratorNode",value:function(e,t){return{type:u.NodeType.VariableDeclarator,id:e,init:t,metadata:{ignoredNode:!1}}}},{key:"whileStatementNode",value:function(e,t){return{type:u.NodeType.WhileStatement,test:e,body:t,metadata:{ignoredNode:!1}}}}]),e}();t.NodeFactory=d},function(e,t,n){"use strict";var r,i=n(0),o=i(n(1)),a=i(n(3)),s=i(n(5)),u=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,s.default)(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var u=e.length-1;u>=0;u--)(i=e[u])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},d=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,s.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},l=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var c=n(2),p=n(4),f=n(190),h=n(191),g=r=function(){function e(t,n,r){(0,o.default)(this,e),this.cachedNode=null,this.identifierNamesGenerator=t(r),this.randomGenerator=n,this.options=r}return(0,a.default)(e,[{key:"getNode",value:function(){return this.cachedNode||(this.cachedNode=this.getNodeStructure()),this.cachedNode}},{key:"getGlobalVariableTemplate",value:function(){return this.randomGenerator.getRandomGenerator().pickone(r.globalVariableTemplateFunctions)}}]),e}();g.globalVariableTemplateFunctions=[f.GlobalVariableTemplate1(),h.GlobalVariableTemplate2()],g=r=u([c.injectable(),l(0,c.inject(p.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),l(1,c.inject(p.ServiceIdentifiers.IRandomGenerator)),l(2,c.inject(p.ServiceIdentifiers.IOptions)),d("design:paramtypes",[Function,Object,Object])],g),t.AbstractCustomNode=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NAMED_TAG="named",t.NAME_TAG="name",t.UNMANAGED_TAG="unmanaged",t.OPTIONAL_TAG="optional",t.INJECT_TAG="inject",t.MULTI_INJECT_TAG="multi_inject",t.TAGGED="inversify:tagged",t.TAGGED_PROP="inversify:tagged_props",t.PARAM_TYPES="inversify:paramtypes",t.DESIGN_PARAM_TYPES="design:paramtypes",t.POST_CONSTRUCT="post_construct"},function(e,t,n){!function e(t){"use strict";var r,i,o,a,s,u,d,l,c;function p(e){var t,n,r={};for(t in e)e.hasOwnProperty(t)&&(n=e[t],r[t]="object"==typeof n&&null!==n?p(n):n);return r}function f(e,t){this.parent=e,this.key=t}function h(e,t,n,r){this.node=e,this.path=t,this.wrap=n,this.ref=r}function g(){}function m(e){return null!=e&&("object"==typeof e&&"string"==typeof e.type)}function y(e,t){return(e===r.ObjectExpression||e===r.ObjectPattern)&&"properties"===t}function b(e,t){return(new g).traverse(e,t)}function v(e,t){var n;return n=function(e,t){var n,r,i,o;for(r=e.length,i=0;r;)t(e[o=i+(n=r>>>1)])?r=n:(i=o+1,r-=n+1);return i}(t,function(t){return t.range[0]>e.range[0]}),e.extendedRange=[e.range[0],e.range[1]],n!==t.length&&(e.extendedRange[1]=t[n].range[0]),(n-=1)>=0&&(e.extendedRange[0]=t[n].range[1]),e}return(i=Array.isArray)||(i=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),s=Object.create||function(){function e(){}return function(t){return e.prototype=t,new e}}(),u=Object.keys||function(e){var t,n=[];for(t in e)n.push(t);return n},r={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ComprehensionBlock:"ComprehensionBlock",ComprehensionExpression:"ComprehensionExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DebuggerStatement:"DebuggerStatement",DirectiveStatement:"DirectiveStatement",DoWhileStatement:"DoWhileStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForInStatement:"ForInStatement",ForOfStatement:"ForOfStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",GeneratorExpression:"GeneratorExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",ModuleSpecifier:"ModuleSpecifier",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",Program:"Program",Property:"Property",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchStatement:"SwitchStatement",SwitchCase:"SwitchCase",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"},a={AssignmentExpression:["left","right"],AssignmentPattern:["left","right"],ArrayExpression:["elements"],ArrayPattern:["elements"],ArrowFunctionExpression:["params","body"],AwaitExpression:["argument"],BlockStatement:["body"],BinaryExpression:["left","right"],BreakStatement:["label"],CallExpression:["callee","arguments"],CatchClause:["param","body"],ClassBody:["body"],ClassDeclaration:["id","superClass","body"],ClassExpression:["id","superClass","body"],ComprehensionBlock:["left","right"],ComprehensionExpression:["blocks","filter","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DirectiveStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExportAllDeclaration:["source"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source"],ExportSpecifier:["exported","local"],ExpressionStatement:["expression"],ForStatement:["init","test","update","body"],ForInStatement:["left","right","body"],ForOfStatement:["left","right","body"],FunctionDeclaration:["id","params","body"],FunctionExpression:["id","params","body"],GeneratorExpression:["blocks","filter","body"],Identifier:[],IfStatement:["test","consequent","alternate"],ImportDeclaration:["specifiers","source"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],Literal:[],LabeledStatement:["label","body"],LogicalExpression:["left","right"],MemberExpression:["object","property"],MetaProperty:["meta","property"],MethodDefinition:["key","value"],ModuleSpecifier:[],NewExpression:["callee","arguments"],ObjectExpression:["properties"],ObjectPattern:["properties"],Program:["body"],Property:["key","value"],RestElement:["argument"],ReturnStatement:["argument"],SequenceExpression:["expressions"],SpreadElement:["argument"],Super:[],SwitchStatement:["discriminant","cases"],SwitchCase:["test","consequent"],TaggedTemplateExpression:["tag","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],YieldExpression:["argument"]},o={Break:d={},Skip:l={},Remove:c={}},f.prototype.replace=function(e){this.parent[this.key]=e},f.prototype.remove=function(){return i(this.parent)?(this.parent.splice(this.key,1),!0):(this.replace(null),!1)},g.prototype.path=function(){var e,t,n,r,o;function a(e,t){if(i(t))for(n=0,r=t.length;n=0;)if(b=a[c=g[p]])if(i(b)){for(f=b.length;(f-=1)>=0;)if(b[f]){if(y(s,g[p]))o=new h(b[f],[c,f],"Property",null);else{if(!m(b[f]))continue;o=new h(b[f],[c,f],null,null)}n.push(o)}}else m(b)&&n.push(new h(b,c,null,null))}}else if(o=r.pop(),u=this.__execute(t.leave,o),this.__state===d||u===d)return},g.prototype.replace=function(e,t){var n,r,o,a,s,u,p,g,b,v,C,S,N;function A(e){var t,r,i,o;if(e.ref.remove())for(r=e.ref.key,o=e.ref.parent,t=n.length;t--;)if((i=n[t]).ref&&i.ref.parent===o){if(i.ref.key=0;)if(v=o[N=b[p]])if(i(v)){for(g=v.length;(g-=1)>=0;)if(v[g]){if(y(a,b[p]))u=new h(v[g],[N,g],"Property",new f(v,g));else{if(!m(v[g]))continue;u=new h(v[g],[N,g],null,new f(v,g))}n.push(u)}}else m(v)&&n.push(new h(v,N,null,new f(o,N)))}}else if(u=r.pop(),void 0!==(s=this.__execute(t.leave,u))&&s!==d&&s!==l&&s!==c&&u.ref.replace(s),this.__state!==c&&s!==c||A(u),this.__state===d||s===d)return S.root;return S.root},t.version=n(141).version,t.Syntax=r,t.traverse=b,t.replace=function(e,t){return(new g).replace(e,t)},t.attachComments=function(e,t,n){var r,i,a,s,u=[];if(!e.range)throw new Error("attachComments needs range information");if(!n.length){if(t.length){for(a=0,i=t.length;ae.range[0]);)t.extendedRange[1]===e.range[0]?(e.leadingComments||(e.leadingComments=[]),e.leadingComments.push(t),u.splice(s,1)):s+=1;return s===u.length?o.Break:u[s].extendedRange[0]>e.range[1]?o.Skip:void 0}}),s=0,b(e,{leave:function(e){for(var t;se.range[1]?o.Skip:void 0}}),e},t.VisitorKeys=a,t.VisitorOption=o,t.Controller=g,t.cloneEnvironment=function(){return e({})},t}(t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DUPLICATED_INJECTABLE_DECORATOR="Cannot apply @injectable decorator multiple times.",t.DUPLICATED_METADATA="Metadata key was used more than once in a parameter:",t.NULL_ARGUMENT="NULL argument",t.KEY_NOT_FOUND="Key Not Found",t.AMBIGUOUS_MATCH="Ambiguous match found for serviceIdentifier:",t.CANNOT_UNBIND="Could not unbind serviceIdentifier:",t.NOT_REGISTERED="No matching bindings found for serviceIdentifier:",t.MISSING_INJECTABLE_ANNOTATION="Missing required @injectable annotation in:",t.MISSING_INJECT_ANNOTATION="Missing required @inject or @multiInject annotation in:",t.UNDEFINED_INJECT_ANNOTATION=function(e){return"@inject called with undefined this could mean that the class "+e+" has a circular dependency problem. You can use a LazyServiceIdentifer to overcome this limitation."},t.CIRCULAR_DEPENDENCY="Circular dependency found:",t.NOT_IMPLEMENTED="Sorry, this feature is not fully implemented yet.",t.INVALID_BINDING_TYPE="Invalid binding type:",t.NO_MORE_SNAPSHOTS_AVAILABLE="No snapshot available to restore.",t.INVALID_MIDDLEWARE_RETURN="Invalid return type in middleware. Middleware must return!",t.INVALID_FUNCTION_BINDING="Value provided to function binding must be a function!",t.INVALID_TO_SELF_VALUE="The toSelf function can only be applied when a constructor is used as service identifier",t.INVALID_DECORATOR_OPERATION="The @inject @multiInject @tagged and @named decorators must be applied to the parameters of a class constructor or a class property.",t.ARGUMENTS_LENGTH_MISMATCH=function(){for(var e=[],t=0;t= than the number of constructor arguments of its base class."},t.CONTAINER_OPTIONS_MUST_BE_AN_OBJECT="Invalid Container constructor argument. Container options must be an object.",t.CONTAINER_OPTIONS_INVALID_DEFAULT_SCOPE="Invalid Container option. Default scope must be a string ('singleton' or 'transient').",t.CONTAINER_OPTIONS_INVALID_AUTO_BIND_INJECTABLE="Invalid Container option. Auto bind injectable must be a boolean",t.CONTAINER_OPTIONS_INVALID_SKIP_BASE_CHECK="Invalid Container option. Skip base check must be a boolean",t.MULTIPLE_POST_CONSTRUCT_METHODS="Cannot apply @postConstruct decorator multiple times in the same class",t.POST_CONSTRUCT_ERROR=function(){for(var e=[],t=0;t1?t-1:0),r=1;r1&&void 0!==arguments[1]?arguments[1]:1/0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;if(r.length>=n)return r;var o=t.parentNode;if(!o)throw new ReferenceError("`parentNode` property of given node is `undefined`");return(a.NodeGuards.isProgramNode(t)||a.NodeGuards.isNodeWithLexicalScopeStatements(t,o)&&i>0)&&r.push(t),t!==o?e.getParentNodesWithStatementsRecursive(o,n,r,++i):r}},{key:"getSiblingStatementByOffset",value:function(t,n){var r=e.getScopeOfNode(t),i=a.NodeGuards.isSwitchCaseNode(r)?r.consequent:r.body;return i[i.indexOf(t)+n]||null}}]),e}();t.NodeStatementUtils=s},function(e,t,n){"use strict";var r=n(0),i=r(n(36)),o=r(n(1)),a=r(n(3));Object.defineProperty(t,"__esModule",{value:!0});var s=n(10),u=function(){function e(){(0,o.default)(this,e)}return(0,a.default)(e,null,[{key:"append",value:function(t,n){n=e.parentizeScopeStatementsBeforeAppend(t,n),e.setScopeStatements(t,(0,i.default)(e.getScopeStatements(t)).concat((0,i.default)(n)))}},{key:"appendToOptimalBlockScope",value:function(t,n,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=t.length?e.getOptimalBlockScope(t,i):n;e.prepend(o,r)}},{key:"getOptimalBlockScope",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,i=t[n];if(r<=0)throw new Error("Invalid `deep` argument value. Value should be bigger then 0.");return r>1&&i.stackTrace.length?e.getOptimalBlockScope(i.stackTrace,0,--r):i.callee}},{key:"insertAfter",value:function(t,n,r){var i=e.getScopeStatements(t).indexOf(r);e.insertAtIndex(t,n,i+1)}},{key:"insertAtIndex",value:function(t,n,r){n=e.parentizeScopeStatementsBeforeAppend(t,n),e.setScopeStatements(t,(0,i.default)(e.getScopeStatements(t).slice(0,r)).concat((0,i.default)(n),(0,i.default)(e.getScopeStatements(t).slice(r))))}},{key:"prepend",value:function(t,n){n=e.parentizeScopeStatementsBeforeAppend(t,n),e.setScopeStatements(t,(0,i.default)(n).concat((0,i.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=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.AfterObfuscation="afterObfuscation",e.BeforeObfuscation="beforeObfuscation"}(t.ObfuscationEvent||(t.ObfuscationEvent={}))},function(e,t,n){"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,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(3));Object.defineProperty(t,"__esModule",{value:!0});var a=n(10),s=function(){function e(){(0,i.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 n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1/0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;if(r.length>=n)return r;var o=t.parentNode;if(!o)throw new ReferenceError("`parentNode` property of given node is `undefined`");return a.NodeGuards.isNodeWithLexicalScope(t)&&r.push(t),t!==o?e.getLexicalScopesRecursive(o,n,r,++i):r}}]),e}();t.NodeLexicalScopeUtils=s},function(e,t,n){"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"}(t.NodeTransformer||(t.NodeTransformer={}))},function(e,t,n){var r=n(167),i=n(168),o=n(169);e.exports=function(e){return r(e)||i(e)||o()}},function(e,t,n){var r=n(174),i=n(175),o=n(176);e.exports=function(e,t){return r(e)||i(e,t)||o()}},function(e,t,n){"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,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){}return e.isValid=function(e){var t=this;return"isValid"!==e&&"getMessage"!==e&&-1!==Object.keys(this).map(function(e){return t[e]}).indexOf(e)},e.getMessage=function(e,t){var n=this,r=t?"each value in ":"";switch(e){case this.NESTED_VALIDATION:return r+"nested property $property must be either object or array";case this.IS_DEFINED:return r+"$property should not be null or undefined";case this.EQUALS:return r+"$property must be equal to $constraint1";case this.NOT_EQUALS:return r+"$property should not be equal to $constraint1";case this.IS_EMPTY:return r+"$property must be empty";case this.IS_NOT_EMPTY:return r+"$property should not be empty";case this.IS_IN:return r+"$property must be one of the following values: $constraint1";case this.IS_NOT_IN:return r+"$property should not be one of the following values: $constraint1";case this.IS_BOOLEAN:return r+"$property must be a boolean value";case this.IS_DATE:return r+"$property must be a Date instance";case this.IS_NUMBER:return r+"$property must be a number";case this.IS_INT:return r+"$property must be an integer number";case this.IS_STRING:return r+"$property must be a string";case this.IS_DATE_STRING:return r+"$property must be a ISOString";case this.IS_ARRAY:return r+"$property must be an array";case this.IS_ENUM:return r+"$property must be a valid enum value";case this.IS_DIVISIBLE_BY:return r+"$property must be divisible by $constraint1";case this.IS_POSITIVE:return r+"$property must be a positive number";case this.IS_NEGATIVE:return r+"$property must be a negative number";case this.MIN:return r+"$property must not be less than $constraint1";case this.MAX:return r+"$property must not be greater than $constraint1";case this.MIN_DATE:return"minimal allowed date for "+r+"$property is $constraint1";case this.MAX_DATE:return"maximal allowed date for "+r+"$property is $constraint1";case this.IS_BOOLEAN_STRING:return r+"$property must be a boolean string";case this.IS_NUMBER_STRING:return r+"$property must be a number string";case this.CONTAINS:return r+"$property must contain a $constraint1 string";case this.NOT_CONTAINS:return r+"$property should not contain a $constraint1 string";case this.IS_ALPHA:return r+"$property must contain only letters (a-zA-Z)";case this.IS_ALPHANUMERIC:return r+"$property must contain only letters and numbers";case this.IS_ASCII:return r+"$property must contain only ASCII characters";case this.IS_BASE64:return r+"$property must be base64 encoded";case this.IS_BYTE_LENGTH:return r+"$property's byte length must fall into ($constraint1, $constraint2) range";case this.IS_CREDIT_CARD:return r+"$property must be a credit card";case this.IS_CURRENCY:return r+"$property must be a currency";case this.IS_EMAIL:return r+"$property must be an email";case this.IS_FQDN:return r+"$property must be a valid domain name";case this.IS_FULL_WIDTH:return r+"$property must contain a full-width characters";case this.IS_HALF_WIDTH:return r+"$property must contain a half-width characters";case this.IS_VARIABLE_WIDTH:return r+"$property must contain a full-width and half-width characters";case this.IS_HEX_COLOR:return r+"$property must be a hexadecimal color";case this.IS_HEXADECIMAL:return r+"$property must be a hexadecimal number";case this.IS_IP:return r+"$property must be an ip address";case this.IS_ISBN:return r+"$property must be an ISBN";case this.IS_ISIN:return r+"$property must be an ISIN (stock/security identifier)";case this.IS_ISO8601:return r+"$property must be a valid ISO 8601 date string";case this.IS_JSON:return r+"$property must be a json string";case this.IS_LOWERCASE:return r+"$property must be a lowercase string";case this.IS_MOBILE_PHONE:return r+"$property must be a phone number";case this.IS_PHONE_NUMBER:return r+"$property must be a valid phone number";case this.IS_MONGO_ID:return r+"$property must be a mongodb id";case this.IS_MULTIBYTE:return r+"$property must contain one or more multibyte chars";case this.IS_SURROGATE_PAIR:return r+"$property must contain any surrogate pairs chars";case this.IS_URL:return r+"$property must be an URL address";case this.IS_UUID:return r+"$property must be an UUID";case this.IS_UPPERCASE:return r+"$property must be uppercase";case this.LENGTH:return function(e){var t=null!==e.constraints[0]&&void 0!==e.constraints[0],n=null!==e.constraints[1]&&void 0!==e.constraints[1];return t&&(!e.value||e.value.lengthe.constraints[1]?r+"$property must be shorter than or equal to $constraint2 characters":r+"$property must be longer than or equal to $constraint1 and shorter than or equal to $constraint2 characters"};case this.MIN_LENGTH:return r+"$property must be longer than or equal to $constraint1 characters";case this.MAX_LENGTH:return r+"$property must be shorter than or equal to $constraint1 characters";case this.MATCHES:return r+"$property must match $constraint1 regular expression";case this.ARRAY_CONTAINS:return r+"$property must contain $constraint1 values";case this.ARRAY_NOT_CONTAINS:return r+"$property should not contain $constraint1 values";case this.ARRAY_NOT_EMPTY:return r+"$property should not be empty";case this.ARRAY_MIN_SIZE:return r+"$property must contain at least $constraint1 elements";case this.ARRAY_MAX_SIZE:return r+"$property must contain not more than $constraint1 elements";case this.ARRAY_UNIQUE:return r+"All $property's elements must be unique";case this.IS_INSTANCE:return function(e){return e.constraints[0]?r+"$property must be an instance of "+e.constraints[0].name:r+(n.IS_INSTANCE+" decorator expects and object as value, but got falsy value.")}}return""},e.CUSTOM_VALIDATION="customValidation",e.NESTED_VALIDATION="nestedValidation",e.CONDITIONAL_VALIDATION="conditionalValidation",e.WHITELIST="whitelistValidation",e.IS_DEFINED="isDefined",e.EQUALS="equals",e.NOT_EQUALS="notEquals",e.IS_EMPTY="isEmpty",e.IS_NOT_EMPTY="isNotEmpty",e.IS_IN="isIn",e.IS_NOT_IN="isNotIn",e.IS_BOOLEAN="isBoolean",e.IS_DATE="isDate",e.IS_NUMBER="isNumber",e.IS_STRING="isString",e.IS_DATE_STRING="isDateString",e.IS_ARRAY="isArray",e.IS_INT="isInt",e.IS_ENUM="isEnum",e.IS_DIVISIBLE_BY="isDivisibleBy",e.IS_POSITIVE="isPositive",e.IS_NEGATIVE="isNegative",e.MIN="min",e.MAX="max",e.MIN_DATE="minDate",e.MAX_DATE="maxDate",e.IS_BOOLEAN_STRING="isBooleanString",e.IS_NUMBER_STRING="isNumberString",e.CONTAINS="contains",e.NOT_CONTAINS="notContains",e.IS_ALPHA="isAlpha",e.IS_ALPHANUMERIC="isAlphanumeric",e.IS_ASCII="isAscii",e.IS_BASE64="isBase64",e.IS_BYTE_LENGTH="isByteLength",e.IS_CREDIT_CARD="isCreditCard",e.IS_CURRENCY="isCurrency",e.IS_EMAIL="isEmail",e.IS_FQDN="isFqdn",e.IS_FULL_WIDTH="isFullWidth",e.IS_HALF_WIDTH="isHalfWidth",e.IS_VARIABLE_WIDTH="isVariableWidth",e.IS_HEX_COLOR="isHexColor",e.IS_HEXADECIMAL="isHexadecimal",e.IS_IP="isIp",e.IS_ISBN="isIsbn",e.IS_ISIN="isIsin",e.IS_ISO8601="isIso8601",e.IS_JSON="isJson",e.IS_LOWERCASE="isLowercase",e.IS_MOBILE_PHONE="isMobilePhone",e.IS_PHONE_NUMBER="isPhoneNumber",e.IS_MONGO_ID="isMongoId",e.IS_MULTIBYTE="isMultibyte",e.IS_SURROGATE_PAIR="isSurrogatePair",e.IS_URL="isUrl",e.IS_UUID="isUuid",e.LENGTH="length",e.IS_UPPERCASE="isUppercase",e.MIN_LENGTH="minLength",e.MAX_LENGTH="maxLength",e.MATCHES="matches",e.IS_MILITARY_TIME="isMilitaryTime",e.ARRAY_CONTAINS="arrayContains",e.ARRAY_NOT_CONTAINS="arrayNotContains",e.ARRAY_NOT_EMPTY="arrayNotEmpty",e.ARRAY_MIN_SIZE="arrayMinSize",e.ARRAY_MAX_SIZE="arrayMaxSize",e.ARRAY_UNIQUE="arrayUnique",e.IS_INSTANCE="isInstance",e}();t.ValidationTypes=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i,o=new(function(){function e(){this.instances=[]}return e.prototype.get=function(e){var t=this.instances.find(function(t){return t.type===e});return t||(t={type:e,object:new e},this.instances.push(t)),t.object},e}());t.useContainer=function(e,t){r=e,i=t},t.getFromContainer=function(e){if(r)try{var t=r.get(e);if(t)return t;if(!i||!i.fallback)return t}catch(e){if(!i||!i.fallbackOnErrors)throw e}return o.get(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];for(var n in t)void 0===e[n]&&(e[n]=t[n]);return e},e.exports=t.default},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(3));Object.defineProperty(t,"__esModule",{value:!0}),n(110);var a=n(4),s=n(25),u=function(){function e(){(0,i.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]:{},n=new s.InversifyContainerFacade;n.load(e,"",t);var r=n.get(a.ServiceIdentifiers.IJavaScriptObfuscator).obfuscate(e);return n.unload(),r}}]),e}();u.version="0.18.4",t.JavaScriptObfuscator=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(19);function i(e){return"function"==typeof e?e.name:"symbol"==typeof e?e.toString():e}function o(e){if(e.name)return e.name;var t=e.toString(),n=t.match(/^function\s*([^\s(]+)/);return n?n[1]:"Anonymous function: "+t}t.getServiceIdentifierAsString=i,t.listRegisteredBindingsForServiceIdentifier=function(e,t,n){var r="",i=n(e,t);return 0!==i.length&&(r="\nRegistered bindings:",i.forEach(function(e){var t="Object";null!==e.implementationType&&(t=o(e.implementationType)),r=r+"\n "+t,e.constraint.metaData&&(r=r+" - "+e.constraint.metaData)})),r},t.circularDependencyToException=function e(t){t.childRequests.forEach(function(t){if(function e(t,n){return null!==t.parentRequest&&(t.parentRequest.serviceIdentifier===n||e(t.parentRequest,n))}(t,t.serviceIdentifier)){var n=function e(t,n){void 0===n&&(n=[]);var r=i(t.serviceIdentifier);return n.push(r),null!==t.parentRequest?e(t.parentRequest,n):n}(t).reverse().join(" --\x3e ");throw new Error(r.CIRCULAR_DEPENDENCY+" "+n)}e(t)})},t.listMetadataForTarget=function(e,t){if(t.isTagged()||t.isNamed()){var n="",r=t.getNamedTag(),i=t.getCustomTags();return null!==r&&(n+=r.toString()+"\n"),null!==i&&i.forEach(function(e){n+=e.toString()+"\n"})," "+e+"\n "+e+" - "+n}return" "+e},t.getFunctionName=o},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(3)),a=r(n(5)),s=function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,a.default)(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var u=e.length-1;u>=0;u--)(i=e[u])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},u=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,a.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},d=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var l=n(2),c=n(4),p=function(){function e(t,n,r){(0,i.default)(this,e),this.identifierNamesGenerator=t(r),this.randomGenerator=n,this.options=r}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 n=this.customNodes.get(e);n&&t(n)}},{key:"getRandomStackTraceIndex",value:function(e){return this.randomGenerator.getRandomInteger(0,Math.max(0,Math.round(e-1)))}}]),e}();p=s([l.injectable(),d(0,l.inject(c.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d(1,l.inject(c.ServiceIdentifiers.IRandomGenerator)),d(2,l.inject(c.ServiceIdentifiers.IOptions)),u("design:paramtypes",[Function,Object,Object])],p),t.AbstractCustomNodeGroup=p},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(3));Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(){(0,i.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}();a.hexadecimalPrefix="0x",t.Utils=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(252),i=function(){function e(){this.validationMetadatas=[],this.constraintMetadatas=[]}return Object.defineProperty(e.prototype,"hasValidationMetaData",{get:function(){return!!this.validationMetadatas.length},enumerable:!0,configurable:!0}),e.prototype.addValidationSchema=function(e){var t=this;(new r.ValidationSchemaToMetadataTransformer).transform(e).forEach(function(e){return t.addValidationMetadata(e)})},e.prototype.addValidationMetadata=function(e){this.validationMetadatas.push(e)},e.prototype.addConstraintMetadata=function(e){this.constraintMetadatas.push(e)},e.prototype.groupByPropertyName=function(e){var t={};return e.forEach(function(e){t[e.propertyName]||(t[e.propertyName]=[]),t[e.propertyName].push(e)}),t},e.prototype.getTargetValidationMetadatas=function(e,t,n){var r=this.validationMetadatas.filter(function(r){return(r.target===e||r.target===t)&&(!!r.always||(!(n&&n.length>0)||r.groups&&!!r.groups.find(function(e){return-1!==n.indexOf(e)})))}),i=this.validationMetadatas.filter(function(t){return"string"!=typeof t.target&&(t.target!==e&&((!(t.target instanceof Function)||e.prototype instanceof t.target)&&(!!t.always||(!(n&&n.length>0)||t.groups&&!!t.groups.find(function(e){return-1!==n.indexOf(e)})))))}).filter(function(e){return!r.find(function(t){return t.propertyName===e.propertyName&&t.type===e.type})});return r.concat(i)},e.prototype.getTargetValidatorConstraints=function(e){return this.constraintMetadatas.filter(function(t){return t.target===e})},e}();t.MetadataStorage=i},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(49),i=n(33),o=n(50);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:r.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:i.ObfuscationTarget.Browser,transformObjectKeys:!1,unicodeEscapeSequence:!1})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.HexadecimalIdentifierNamesGenerator="hexadecimal",e.MangledIdentifierNamesGenerator="mangled"}(t.IdentifierNamesGenerator||(t.IdentifierNamesGenerator={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.Inline="inline",e.Separate="separate"}(t.SourceMapMode||(t.SourceMapMode={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.Base64="base64",e.Rc4="rc4"}(t.StringArrayEncoding||(t.StringArrayEncoding={}))},function(e,t,n){n(6);var r=n(223);function i(t,n,o){return"undefined"!=typeof Reflect&&Reflect.get?e.exports=i=Reflect.get:e.exports=i=function(e,t,n){var i=r(e,t);if(i){var o=Object.getOwnPropertyDescriptor(i,t);return o.get?o.get.call(n):o.value}},i(t,n,o||t)}e.exports=i},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(3));Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(){(0,i.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=a},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(5)),a=function(e,t,n,r){var i,a=arguments.length,s=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,o.default)(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var u=e.length-1;u>=0;u--)(i=e[u])&&(s=(a<3?i(s):a>3?i(t,n,s):i(t,n))||s);return a>3&&s&&Object.defineProperty(t,n,s),s},s=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,o.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},u=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var d=n(2),l=n(4),c=function e(t){(0,i.default)(this,e),this.options=t};c=a([d.injectable(),u(0,d.inject(l.ServiceIdentifiers.IOptions)),s("design:paramtypes",[Object])],c),t.AbstractObfuscatingReplacer=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});for(var r,i=t.alpha={"en-US":/^[A-Z]+$/i,"bg-BG":/^[А-Я]+$/i,"cs-CZ":/^[A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ]+$/i,"da-DK":/^[A-ZÆØÅ]+$/i,"de-DE":/^[A-ZÄÖÜß]+$/i,"el-GR":/^[Α-ω]+$/i,"es-ES":/^[A-ZÁÉÍÑÓÚÜ]+$/i,"fr-FR":/^[A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ]+$/i,"it-IT":/^[A-ZÀÉÈÌÎÓÒÙ]+$/i,"nb-NO":/^[A-ZÆØÅ]+$/i,"nl-NL":/^[A-ZÁÉËÏÓÖÜÚ]+$/i,"nn-NO":/^[A-ZÆØÅ]+$/i,"hu-HU":/^[A-ZÁÉÍÓÖŐÚÜŰ]+$/i,"pl-PL":/^[A-ZĄĆĘŚŁŃÓŻŹ]+$/i,"pt-PT":/^[A-ZÃÁÀÂÇÉÊÍÕÓÔÚÜ]+$/i,"ru-RU":/^[А-ЯЁ]+$/i,"sk-SK":/^[A-ZÁČĎÉÍŇÓŠŤÚÝŽĹŔĽÄÔ]+$/i,"sr-RS@latin":/^[A-ZČĆŽŠĐ]+$/i,"sr-RS":/^[А-ЯЂЈЉЊЋЏ]+$/i,"sv-SE":/^[A-ZÅÄÖ]+$/i,"tr-TR":/^[A-ZÇĞİıÖŞÜ]+$/i,"uk-UA":/^[А-ЩЬЮЯЄIЇҐі]+$/i,ar:/^[ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]+$/},o=t.alphanumeric={"en-US":/^[0-9A-Z]+$/i,"bg-BG":/^[0-9А-Я]+$/i,"cs-CZ":/^[0-9A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ]+$/i,"da-DK":/^[0-9A-ZÆØÅ]+$/i,"de-DE":/^[0-9A-ZÄÖÜß]+$/i,"el-GR":/^[0-9Α-ω]+$/i,"es-ES":/^[0-9A-ZÁÉÍÑÓÚÜ]+$/i,"fr-FR":/^[0-9A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ]+$/i,"it-IT":/^[0-9A-ZÀÉÈÌÎÓÒÙ]+$/i,"hu-HU":/^[0-9A-ZÁÉÍÓÖŐÚÜŰ]+$/i,"nb-NO":/^[0-9A-ZÆØÅ]+$/i,"nl-NL":/^[0-9A-ZÁÉËÏÓÖÜÚ]+$/i,"nn-NO":/^[0-9A-ZÆØÅ]+$/i,"pl-PL":/^[0-9A-ZĄĆĘŚŁŃÓŻŹ]+$/i,"pt-PT":/^[0-9A-ZÃÁÀÂÇÉÊÍÕÓÔÚÜ]+$/i,"ru-RU":/^[0-9А-ЯЁ]+$/i,"sk-SK":/^[0-9A-ZÁČĎÉÍŇÓŠŤÚÝŽĹŔĽÄÔ]+$/i,"sr-RS@latin":/^[0-9A-ZČĆŽŠĐ]+$/i,"sr-RS":/^[0-9А-ЯЂЈЉЊЋЏ]+$/i,"sv-SE":/^[0-9A-ZÅÄÖ]+$/i,"tr-TR":/^[0-9A-ZÇĞİıÖŞÜ]+$/i,"uk-UA":/^[0-9А-ЩЬЮЯЄIЇҐі]+$/i,ar:/^[٠١٢٣٤٥٦٧٨٩0-9ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]+$/},a=t.decimal={"en-US":".",ar:"٫"},s=t.englishLocales=["AU","GB","HK","IN","NZ","ZA","ZM"],u=0;u=0;u--)(i=e[u])&&(s=(a<3?i(s):a>3?i(t,n,s):i(t,n))||s);return a>3&&s&&Object.defineProperty(t,n,s),s};Object.defineProperty(t,"__esModule",{value:!0});var s=function e(){(0,i.default)(this,e)};s=a([n(2).injectable()],s),t.AbstractCalleeDataExtractor=s},function(e,t,n){"use strict";var r,i=n(0),o=i(n(1)),a=i(n(3)),s=i(n(5)),u=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,s.default)(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var u=e.length-1;u>=0;u--)(i=e[u])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},d=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,s.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},l=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var c=n(2),p=n(4),f=r=function(){function e(t,n,r){(0,o.default)(this,e),this.replacerDataByControlFlowStorageId=new Map,this.controlFlowCustomNodeFactory=t,this.randomGenerator=n,this.options=r}return(0,a.default)(e,[{key:"insertCustomNodeToControlFlowStorage",value:function(e,t,n,i){var o=this,a=t.getStorageId(),s=r.getStorageKeysByIdForCurrentStorage(this.replacerDataByControlFlowStorageId,a),u=s.get(n);if(this.randomGenerator.getMathRandom()":i.Relational,"<=":i.Relational,">=":i.Relational,in:i.Relational,instanceof:i.Relational,"<<":i.BitwiseSHIFT,">>":i.BitwiseSHIFT,">>>":i.BitwiseSHIFT,"+":i.Additive,"-":i.Additive,"*":i.Multiplicative,"%":i.Multiplicative,"/":i.Multiplicative,"**":i.Exponentiation};var P=7,R=1;function x(e,t){var n="";for(t|=0;t>0;t>>>=1,e+=e)1&t&&(n+=e);return n}function O(e){return/[\r\n]/g.test(e)}function $(e){var t=e.length;return t&&u.code.isLineTerminator(e.charCodeAt(t-1))}function w(e,t){var n;for(n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function B(e,t){var n,r;function i(e){return"object"==typeof e&&e instanceof Object&&!(e instanceof RegExp)}for(n in t)t.hasOwnProperty(n)&&(i(r=t[n])?i(e[n])?B(e[n],r):e[n]=B({},r):e[n]=r);return e}function k(e,t){return 8232==(-2&e)?(t?"u":"\\u")+(8232===e?"2028":"2029"):10===e||13===e?(t?"":"\\")+(10===e?"n":"r"):String.fromCharCode(e)}function L(e,t){var n;return 8===e?"\\b":12===e?"\\f":9===e?"\\t":(n=e.toString(16).toUpperCase(),p||e>255?"\\u"+"0000".slice(n.length)+n:0!==e||u.code.isDecimalDigit(t)?11===e?"\\x0B":"\\x"+"00".slice(n.length)+n:"\\0")}function j(e){if(92===e)return"\\\\";if(10===e)return"\\n";if(13===e)return"\\r";if(8232===e)return"\\u2028";if(8233===e)return"\\u2029";throw new Error("Incorrectly classified character")}function G(e,t){if(!E)return d(e)?function e(t){var n,r,i,o="";for(n=0,r=t.length;na&&(s=a)}for(void 0!==t?(d=l,"*"===n[1][s]&&(t+=" "),l=t):(1&s&&--s,d=l),r=1,i=n.length;r0){if(a=t,T){for(t=[],f=(o=e.leadingComments[0]).extendedRange,h=o.range,(y=((m=I.substring(f[0],h[0])).match(/\n/g)||[]).length)>0?(t.push(x("\n",y)),t.push(H(z(o)))):(t.push(m),t.push(z(o))),g=h,n=1,i=e.leadingComments.length;n0?(t.push(x("\n",y)),t.push(H(z(o)))):(t.push(m),t.push(z(o)));else for(s=!$(G(t).toString()),d=x(" ",function(e){var t;for(t=e.length-1;t>=0&&!u.code.isLineTerminator(e.charCodeAt(t));--t);return e.length-1-t}(G([l,t,c]).toString())),n=0,i=e.trailingComments.length;n")),e.expression?(t.push(b),"{"===(n=this.generateExpression(e.body,i.Assignment,P)).toString().charAt(0)&&(n=["(",n,")"]),t.push(n)):t.push(this.maybeBlock(e.body,9)),t},Z.prototype.generateIterationForStatement=function(e,t,n){var o=["for"+b+(t.await?"await"+b:"")+"("],a=this;return W(function(){t.left.type===r.VariableDeclaration?W(function(){o.push(t.left.kind+V()),o.push(a.generateStatement(t.left.declarations[0],0))}):o.push(a.generateExpression(t.left,i.Call,P)),o=[U(o=U(o,e),a.generateExpression(t.right,i.Sequence+("of"===e?1:0),P)),")"]}),o.push(this.maybeBlock(t.body,n)),o},Z.prototype.generatePropertyKey=function(e,t){var n=[];return t&&n.push("["),n.push(this.generateExpression(e,i.Sequence,P)),t&&n.push("]"),n},Z.prototype.generateAssignment=function(e,t,n,r,o){return i.Assignment2&&("\n"===(r=I.substring(n[0]+1,n[1]-1))[0]&&(i=["{"]),i.push(r)),d=R,8&t&&(d|=16),a=0,s=e.body.length;a0&&(e.body[a-1].trailingComments||e.body[a].leadingComments||J(e.body[a-1].range[1],e.body[a].range[0],i))),a===s-1&&(d|=32),u=e.body[a].leadingComments&&T?o.generateStatement(e.body[a],d):H(o.generateStatement(e.body[a],d)),i.push(u),$(G(u).toString())||T&&a1?W(u):u(),n.push(this.semicolon(t)),n},ThrowStatement:function(e,t){return[U("throw",this.generateExpression(e.argument,i.Sequence,P)),this.semicolon(t)]},TryStatement:function(e,t){var n,r,i,o;if(n=["try",this.maybeBlock(e.block,R)],n=this.maybeBlockSuffix(e.block,n),e.handlers)for(r=0,i=e.handlers.length;r0?"\n":""],a=17,i=0;i0&&(e.body[i-1].trailingComments||e.body[i].leadingComments||J(e.body[i-1].range[1],e.body[i].range[0],n))),r=H(this.generateStatement(e.body[i],a)),n.push(r),i+10){for(r.push("("),a=0,s=o;a=2&&48===a.charCodeAt(0))&&o.push("."),o.push("."),o.push(X(e.property))),Y(o,i.Member,t)},MetaProperty:function(e,t,n){return Y([e.meta&&"string"==typeof e.meta.type&&e.meta.type===r.Identifier?e.meta.name:e.meta,".",e.property&&"string"==typeof e.property.type&&e.property.type===r.Identifier?e.property.name:e.property],i.Member,t)},UnaryExpression:function(e,t,n){var r,o,a,s,d;return o=this.generateExpression(e.argument,i.Unary,P),""===b?r=U(e.operator,o):(r=[e.operator],e.operator.length>2?r=U(r,o):(d=(s=G(r).toString()).charCodeAt(s.length-1),a=o.toString().charCodeAt(0),(43===d||45===d)&&d===a||u.code.isIdentifierPartES5(d)&&u.code.isIdentifierPartES5(a)?(r.push(V()),r.push(o)):r.push(o))),Y(r,i.Unary,t)},YieldExpression:function(e,t,n){var r;return r=e.delegate?"yield*":"yield",e.argument&&(r=U(r,this.generateExpression(e.argument,i.Yield,P))),Y(r,i.Yield,t)},AwaitExpression:function(e,t,n){return Y(U(e.all?"await*":"await",this.generateExpression(e.argument,i.Await,P)),i.Await,t)},UpdateExpression:function(e,t,n){return e.prefix?Y([e.operator,this.generateExpression(e.argument,i.Unary,P)],i.Unary,t):Y([this.generateExpression(e.argument,i.Postfix,P),e.operator],i.Postfix,t)},FunctionExpression:function(e,t,n){var r=[Q(e,!0),"function"];return e.id?(r.push(ee(e)||V()),r.push(X(e.id))):r.push(ee(e)||b),r.push(this.generateFunctionBody(e)),r},ArrayPattern:function(e,t,n){return this.ArrayExpression(e,t,n,!0)},ArrayExpression:function(e,t,n,r){var o,a,s=this;return e.elements.length?(a=!r&&e.elements.length>1,o=["[",a?y:""],W(function(t){var n,r;for(n=0,r=e.elements.length;n1,W(function(){a=s.generateExpression(e.properties[0],i.Sequence,P)}),r||O(G(a).toString())?(W(function(t){var n,u;if(o=["{",y,t,a],r)for(o.push(","+y),n=1,u=e.properties.length;n126))){a+=L(r,e.charCodeAt(t+1));continue}}a+=String.fromCharCode(r)}if(o=(i=!("double"===g||"auto"===g&&d0&&(i=+r.slice(o+1),r=r.slice(0,o)),n>=0&&(i-=r.length-n-1,r=+(r.slice(0,n)+r.slice(n+1))+""),o=0;48===r.charCodeAt(r.length+o-1);)--o;return 0!==o&&(i-=o,r=r.slice(0,o)),0!==i&&(r+="e"+i),(r.length1e12&&Math.floor(e)===e&&(r="0x"+e.toString(16)).length0||A.moz.comprehensionExpressionStartsWithAssignment?o=U(o,u):o.push(u)}),e.filter&&(o=U(o,"if"+b),u=this.generateExpression(e.filter,i.Sequence,P),o=U(o,["(",u,")"])),A.moz.comprehensionExpressionStartsWithAssignment||(u=this.generateExpression(e.body,i.Assignment,P),o=U(o,u)),o.push(e.type===r.GeneratorExpression?")":"]"),o},ComprehensionBlock:function(e,t,n){var o;return o=U(o=U(o=e.left.type===r.VariableDeclaration?[e.left.kind,V(),this.generateStatement(e.left.declarations[0],0)]:this.generateExpression(e.left,i.Call,P),e.of?"of":"in"),this.generateExpression(e.right,i.Sequence,P)),["for"+b+"(",o,")"]},SpreadElement:function(e,t,n){return["...",this.generateExpression(e.argument,i.Assignment,P)]},RestElement:function(e,t,n){return["...",this.generatePattern(e.argument,i.Assignment,P)]},SpreadProperty:function(e,t,n){return["...",this.generateExpression(e.argument,i.Assignment,P)]},RestProperty:function(e,t,n){return["...",this.generatePattern(e.argument,i.Assignment,P)]},TaggedTemplateExpression:function(e,t,n){var r=3;return 2&n||(r=1),Y([this.generateExpression(e.tag,i.Call,r),this.generateExpression(e.quasi,i.Primary,4)],i.TaggedTemplate,t)},TemplateElement:function(e,t,n){return e.value.raw},TemplateLiteral:function(e,t,n){var r,o,a;for(r=["`"],o=0,a=e.quasis.length;o=0||e.indexOf("'")>=0)return t;return"double"===g?'"'+e+'"':"'"+e+"'"}(e.value.value,e.value.raw):this.generateExpression(e.value,i.Sequence,{allowIn:!0,allowCall:!0}),o.push(a)),o},JSXClosingElement:function(e,t,n){return[""]},JSXFragment:function(e,t,n){return this.JSXElement(e,t,n)},JSXOpeningFragment:function(e,t,n){return this.JSXOpeningElement(e,t,n)},JSXClosingFragment:function(e,t,n){return this.JSXClosingElement(e,t,n)},JSXElement:function(e,t,n){var o=[],a=this;256&n||(l+=c);var s=this.generateExpression(e.openingElement,i.JSXElement,{allowIn:!0,allowCall:!0});o.push(s);var u,d,p=[];return W(function(t){for(u=0,d=e.children.length;u3&&e.attributes[d].value&&e.attributes[d].value.type!==r.Literal&&(u[u.length-1].multiline=!0);return W(function(e){for(var t=0,n=u.length;t0&&t%3==0||u[t].multiline?o.push(y+e):o.push(" "),o.push(a.generateExpression(u[t].expr,i.Sequence,3))}),o.push(e.selfClosing?"/>":">"),o},JSXSpreadAttribute:function(e,t,n){return["{...",this.generateExpression(e.argument,i.Sequence,{allowIn:!0,allowCall:!0}),"}"]},JSXText:function(e,t,n){return e.raw}},w(Z.prototype,Z.Expression),Z.prototype.generateExpression=function(e,t,n){var o,a;return a=e.type||r.Property,A.verbatim&&e.hasOwnProperty(A.verbatim)?function(e,t){var n;return G("string"==typeof(n=e[A.verbatim])?Y(q(n),i.Sequence,t):Y(q(n.content),null!=n.precedence?n.precedence:i.Sequence,t),e)}(e,t):(o=this[a](e,t,n),A.comment&&(o=K(e,o)),G(o,e))},Z.prototype.generateStatement=function(e,t){var n,i;return n=this[e.type](e,t),A.comment&&(n=K(e,n)),i=G(n).toString(),e.type!==r.Program||S||""!==y||"\n"!==i.charAt(i.length-1)||(n=E?G(n).replaceRight(/\s+$/,""):i.replace(/\s+$/,"")),G(n,e)},D={indent:{style:"",base:0},renumber:!0,hexadecimal:!0,quotes:"auto",escapeless:!0,compact:!0,parentheses:!1,semicolons:!1},F={indent:{style:" ",base:0,adjustMultilineComment:!1},newline:"\n",space:" ",json:!1,renumber:!1,hexadecimal:!1,quotes:"single",escapeless:!1,compact:!1,parentheses:!0,semicolons:!0,safeConcatenation:!1,preserveBlankLines:!1},t.version=n(156).version,t.generate=function(r,i){var o,s,u={indent:null,base:null,parse:null,comment:!1,format:{indent:{style:" ",base:0,adjustMultilineComment:!1},newline:"\n",space:" ",json:!1,renumber:!1,hexadecimal:!1,quotes:"single",escapeless:!1,compact:!1,parentheses:!0,semicolons:!0,safeConcatenation:!1,preserveBlankLines:!1},moz:{comprehensionExpressionStartsWithAssignment:!1,starlessGenerator:!1},sourceMap:null,sourceMapRoot:null,sourceMapWithCode:!1,directive:!1,raw:!0,verbatim:null,sourceCode:null};return null!=i?("string"==typeof i.indent&&(u.format.indent.style=i.indent),"number"==typeof i.base&&(u.format.indent.base=i.base),i=B(u,i),c=i.format.indent.style,l="string"==typeof i.base?i.base:x(c,i.format.indent.base)):(c=(i=u).format.indent.style,l=x(c,i.format.indent.base)),p=i.format.json,f=i.format.renumber,h=!p&&i.format.hexadecimal,g=p?"double":i.format.quotes,m=i.format.escapeless,y=i.format.newline,b=i.format.space,i.format.compact&&(y=b=c=l=""),v=i.format.parentheses,C=i.format.semicolons,S=i.format.safeConcatenation,N=i.directive,_=p?null:i.parse,E=i.sourceMap,I=i.sourceCode,T=i.format.preserveBlankLines&&null!==I,A=i,E&&(a=t.browser?e.sourceMap.SourceNode:n(152).SourceNode),o=ne(r),E?(s=o.toStringWithSourceMap({file:i.file,sourceRoot:i.sourceMapRoot}),i.sourceContent&&s.map.setSourceContent(i.sourceMap,i.sourceContent),i.sourceMapWithCode?s:s.map.toString()):(s={code:o.toString(),map:null},i.sourceMapWithCode?s:s.code)},t.attachComments=s.attachComments,t.Precedence=B({},i),t.browser=!1,t.FORMAT_MINIFY=D,t.FORMAT_DEFAULTS=F}()}).call(this,n(56))},function(e,t){e.exports=function(){throw new Error("define cannot be used indirect")}},function(e,t){function n(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id=63},function(e,t,n){"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,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){return function(e){this.groups=[],this.always=!1,this.each=!1,this.context=void 0,this.type=e.type,this.target=e.target,this.propertyName=e.propertyName,this.constraints=e.constraints,this.constraintCls=e.constraintCls,this.validationTypeOptions=e.validationTypeOptions,e.validationOptions&&(this.message=e.validationOptions.message,this.groups=e.validationOptions.groups,this.always=e.validationOptions.always,this.each=e.validationOptions.each,this.context=e.validationOptions.context)}}();t.ValidationMetadata=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),e=Date.parse(e),isNaN(e)?null:new Date(e)};var r,i=n(9),o=(r=i)&&r.__esModule?r:{default:r};e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.default=function(e){"object"===(void 0===e?"undefined":r(e))&&null!==e?e="function"==typeof e.toString?e.toString():"[object Object]":(null===e||void 0===e||isNaN(e)&&!e.length)&&(e="");return String(e)},e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,r.default)(e),(t=(0,i.default)(t,a)).allow_trailing_dot&&"."===e[e.length-1]&&(e=e.substring(0,e.length-1));for(var n=e.split("."),o=0;o63)return!1;if(t.require_tld){var s=n.pop();if(!n.length||!/^([a-z\u00a1-\uffff]{2,}|xn[a-z0-9-]{2,})$/i.test(s))return!1;if(/[\s\u2002-\u200B\u202F\u205F\u3000\uFEFF\uDB40\uDC20]/.test(s))return!1}for(var u,d=0;d1&&void 0!==arguments[1]?arguments[1]:"";(0,o.default)(t);n=String(n);if(!n)return e(t,4)||e(t,6);if("4"===n){if(!a.test(t))return!1;var r=t.split(".").sort(function(e,t){return e-t});return r[3]<=255}if("6"===n){var i=t.split(":"),u=!1,d=e(i[i.length-1],4),l=d?7:8;if(i.length>l)return!1;if("::"===t)return!0;"::"===t.substr(0,2)?(i.shift(),i.shift(),u=!0):"::"===t.substr(t.length-2)&&(i.pop(),i.pop(),u=!0);for(var c=0;c0&&c=1:i.length===l}return!1};var r,i=n(9),o=(r=i)&&r.__esModule?r:{default:r};var a=/^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})$/,s=/^[0-9A-F]{1,4}$/i;e.exports=t.default},function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var u,d=[],l=!1,c=-1;function p(){l&&u&&(l=!1,u.length?d=u.concat(d):c=-1,d.length&&f())}function f(){if(!l){var e=s(p);l=!0;for(var t=d.length;t;){for(u=d,d=[];++c1)for(var n=1;n=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},c=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},p=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var f=n(2),h=n(4),g=n(27),m=n(60),y=n(10),b=function(e){function t(e,n,r){return(0,i.default)(this,t),(0,a.default)(this,(0,s.default)(t).call(this,e,n,r))}return(0,u.default)(t,e),(0,o.default)(t,[{key:"getControlFlowStorageCallNode",value:function(e,t,n,r){var i=this.controlFlowCustomNodeFactory(g.ControlFlowCustomNode.ExpressionWithOperatorControlFlowStorageCallNode);i.initialize(e,t,n,r);var o=i.getNode()[0];if(!o||!y.NodeGuards.isExpressionStatementNode(o))throw new Error("`controlFlowStorageCallCustomNode.getNode()[0]` should returns array with `ExpressionStatement` node");return o.expression}}]),t}(m.AbstractControlFlowReplacer);b=l([f.injectable(),p(0,f.inject(h.ServiceIdentifiers.Factory__IControlFlowCustomNode)),p(1,f.inject(h.ServiceIdentifiers.IRandomGenerator)),p(2,f.inject(h.ServiceIdentifiers.IOptions)),c("design:paramtypes",[Function,Object,Object])],b),t.ExpressionWithOperatorControlFlowReplacer=b},function(e,t){!function(){"use strict";var t,n,r,i,o,a;function s(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(Math.floor((e-65536)/1024)+55296)+String.fromCharCode((e-65536)%1024+56320)}for(n={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B2\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA7AD\uA7B0\uA7B1\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB5F\uAB64\uAB65\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,NonAsciiIdentifierPart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B2\u08E4-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58\u0C59\u0C60-\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D60-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFC-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA69D\uA69F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA7AD\uA7B0\uA7B1\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB5F\uAB64\uAB65\uABC0-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2D\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/},t={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B2\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA7AD\uA7B0\uA7B1\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB5F\uAB64\uAB65\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDE00-\uDE11\uDE13-\uDE2B\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF5D-\uDF61]|\uD805[\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDE00-\uDE2F\uDE44\uDE80-\uDEAA]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF98]|\uD809[\uDC00-\uDC6E]|[\uD80C\uD840-\uD868\uD86A-\uD86C][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B2\u08E4-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58\u0C59\u0C60-\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D60-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFC-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA69D\uA69F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA7AD\uA7B0\uA7B1\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB5F\uAB64\uAB65\uABC0-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2D\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDD0-\uDDDA\uDE00-\uDE11\uDE13-\uDE37\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF01-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF98]|\uD809[\uDC00-\uDC6E]|[\uD80C\uD840-\uD868\uD86A-\uD86C][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/},r=[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279],i=new Array(128),a=0;a<128;++a)i[a]=a>=97&&a<=122||a>=65&&a<=90||36===a||95===a;for(o=new Array(128),a=0;a<128;++a)o[a]=a>=97&&a<=122||a>=65&&a<=90||a>=48&&a<=57||36===a||95===a;e.exports={isDecimalDigit:function(e){return 48<=e&&e<=57},isHexDigit:function(e){return 48<=e&&e<=57||97<=e&&e<=102||65<=e&&e<=70},isOctalDigit:function(e){return e>=48&&e<=55},isWhiteSpace:function(e){return 32===e||9===e||11===e||12===e||160===e||e>=5760&&r.indexOf(e)>=0},isLineTerminator:function(e){return 10===e||13===e||8232===e||8233===e},isIdentifierStartES5:function(e){return e<128?i[e]:n.NonAsciiIdentifierStart.test(s(e))},isIdentifierPartES5:function(e){return e<128?o[e]:n.NonAsciiIdentifierPart.test(s(e))},isIdentifierStartES6:function(e){return e<128?i[e]:t.NonAsciiIdentifierStart.test(s(e))},isIdentifierPartES6:function(e){return e<128?o[e]:t.NonAsciiIdentifierPart.test(s(e))}}}()},function(e,t,n){"use strict";var r,i,o,a=n(83),s=n(157),u=n(158),d=n(159)(n(161)),l=5;function c(){i={tokens:null,range:!1,loc:!1,comment:!1,comments:[],tolerant:!1,errors:[],strict:!1,ecmaFeatures:{},ecmaVersion:l,isModule:!1}}var p=d.tokTypes,f=d.getLineInfo;function h(e){if("number"!=typeof e)return l;var t=e;switch(t>=2015&&(t-=2009),t){case 3:case 5:case 6:case 7:case 8:case 9:case 10:return t;default:throw new Error("Invalid ecmaVersion.")}}function g(e){if(function(e){switch(e.type){case"ImportDeclaration":case"ExportNamedDeclaration":case"ExportDefaultDeclaration":case"ExportAllDeclaration":return i.isModule;default:return!0}}(e)||this.unexpected(e.start),"TemplateElement"===e.type){var t="${"===this.input.slice(e.end,e.end+2);e.range&&(e.range[0]--,e.range[1]+=t?2:1),e.loc&&(e.loc.start.column--,e.loc.end.column+=t?2:1)}return i.attachComment&&s.processComment(e),e.type.indexOf("Function")>-1&&!e.generator&&(e.generator=!1),e}function m(e){return function(t,n,r,i){var o=e.call(this,t,n,r,i);return g.call(this,o)}}function y(e,t,n,r,i,o){var a={type:e?"Block":"Line",value:t};return"number"==typeof n&&(a.start=n,a.end=r,a.range=[n,r]),"object"==typeof i&&(a.loc={start:i,end:o}),a}p.jsxAttrValueToken={},d.plugins.espree=function(e){e.extend("finishNode",m),e.extend("finishNodeAt",m),e.extend("next",function(e){return function(){return function(e){var t=i.ecmaFeatures;switch(e.type){case p.jsxName:case p.jsxText:case p.jsxTagStart:case p.jsxTagEnd:return t.jsx;case p.regexp:return!(i.ecmaVersion<6&&e.value.flags&&e.value.flags.indexOf("y")>-1);default:return!0}}(this)||this.unexpected(),e.call(this)}}),e.extend("parseTopLevel",function(e){return function(t){return i.ecmaFeatures.impliedStrict&&this.options.ecmaVersion>=5&&(this.strict=!0),e.call(this,t)}}),e.raise=e.raiseRecoverable=function(e,t){var n=f(this.input,e),r=new SyntaxError(t);throw r.index=e,r.lineNumber=n.line,r.column=n.column+1,r},e.unexpected=function(e){var t="Unexpected token";if(null!==e&&void 0!==e){if(this.pos=e,this.options.locations)for(;this.posthis.start&&(t+=" "+this.input.slice(this.start,this.end)),this.raise(this.start,t)},e.extend("jsx_readString",function(e){return function(t){var n=e.call(this,t);return this.type===p.string&&(i.jsxAttrValueToken=!0),n}})},t.version=n(162).version,t.tokenize=function(e,t){var n,o,a,s=new u(p,e);n=String,"string"==typeof e||e instanceof String||(e=n(e)),r=null,t=Object.assign({},t);var f={ecmaVersion:l,plugins:{espree:!0}};c(),t.tokens=!0,i.tokens=[],i.range="boolean"==typeof t.range&&t.range,f.ranges=i.range,i.loc="boolean"==typeof t.loc&&t.loc,f.locations=i.loc,i.comment="boolean"==typeof t.comment&&t.comment,i.comment&&(f.onComment=function(){var e=y.apply(this,arguments);i.comments.push(e)}),i.tolerant="boolean"==typeof t.tolerant&&t.tolerant,f.ecmaVersion=i.ecmaVersion=h(t.ecmaVersion),t.ecmaFeatures&&"object"==typeof t.ecmaFeatures&&(i.ecmaFeatures=Object.assign({},t.ecmaFeatures),a=i.ecmaFeatures.impliedStrict,i.ecmaFeatures.impliedStrict="boolean"==typeof a&&a);try{for(var g=d.tokenizer(e,f);(r=g.getToken()).type!==p.eof;)s.onToken(r,i);o=i.tokens,i.comment&&(o.comments=i.comments),i.tolerant&&(o.errors=i.errors)}catch(e){throw e}return o},t.parse=function(e,t){var n,r,a,f=String,g={ecmaVersion:l,plugins:{espree:!0}};return o=null,"string"==typeof e||e instanceof String||(e=f(e)),c(),s.reset(),void 0!==t&&(i.range="boolean"==typeof t.range&&t.range,i.loc="boolean"==typeof t.loc&&t.loc,i.attachComment="boolean"==typeof t.attachComment&&t.attachComment,i.loc&&null!==t.source&&void 0!==t.source&&(i.source=f(t.source)),"boolean"==typeof t.tokens&&t.tokens&&(i.tokens=[],r=new u(p,e)),"boolean"==typeof t.comment&&t.comment&&(i.comment=!0,i.comments=[]),"boolean"==typeof t.tolerant&&t.tolerant&&(i.errors=[]),i.attachComment&&(i.range=!0,i.comments=[],s.reset()),g.ecmaVersion=i.ecmaVersion=h(t.ecmaVersion),"module"===t.sourceType&&(i.isModule=!0,g.ecmaVersion<6&&(g.ecmaVersion=6,i.ecmaVersion=6),g.sourceType="module"),t.ecmaFeatures&&"object"==typeof t.ecmaFeatures&&(i.ecmaFeatures=Object.assign({},t.ecmaFeatures),a=i.ecmaFeatures.impliedStrict,i.ecmaFeatures.impliedStrict="boolean"==typeof a&&a,t.ecmaFeatures.globalReturn&&(g.allowReturnOutsideFunction=!0)),g.onToken=function(e){i.tokens&&r.onToken(e,i),e.type!==p.eof&&(o=e)},(i.attachComment||i.comment)&&(g.onComment=function(){var e=y.apply(this,arguments);i.comments.push(e),i.attachComment&&s.addComment(e)}),i.range&&(g.ranges=!0),i.loc&&(g.locations=!0),i.ecmaFeatures.jsx&&(g.plugins={jsx:!0,espree:!0})),(n=d.parse(e,g)).sourceType=i.isModule?"module":"script",(i.comment||i.attachComment)&&(n.comments=i.comments),i.tokens&&(n.tokens=i.tokens),n.range&&(n.range[0]=n.body.length?n.body[0].range[0]:n.range[0],n.range[1]=o?o.range[1]:n.range[1]),n.loc&&(n.loc.start=n.body.length?n.body[0].loc.start:n.loc.start,n.loc.end=o?o.loc.end:n.loc.end),n},t.Syntax=function(){var e,t={};for(e in"function"==typeof Object.create&&(t=Object.create(null)),a)a.hasOwnProperty(e)&&(t[e]=a[e]);return"function"==typeof Object.freeze&&Object.freeze(t),t}(),t.VisitorKeys=function(){var e,t=n(163),r={};for(e in"function"==typeof Object.create&&(r=Object.create(null)),t)t.hasOwnProperty(e)&&(r[e]=t[e]);return"function"==typeof Object.freeze&&Object.freeze(r),r}()},function(e,t,n){"use strict";e.exports={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DoWhileStatement:"DoWhileStatement",DebuggerStatement:"DebuggerStatement",EmptyStatement:"EmptyStatement",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForInStatement:"ForInStatement",ForOfStatement:"ForOfStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",Identifier:"Identifier",IfStatement:"IfStatement",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",Program:"Program",Property:"Property",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchCase:"SwitchCase",SwitchStatement:"SwitchStatement",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression",JSXIdentifier:"JSXIdentifier",JSXNamespacedName:"JSXNamespacedName",JSXMemberExpression:"JSXMemberExpression",JSXEmptyExpression:"JSXEmptyExpression",JSXExpressionContainer:"JSXExpressionContainer",JSXElement:"JSXElement",JSXClosingElement:"JSXClosingElement",JSXOpeningElement:"JSXOpeningElement",JSXAttribute:"JSXAttribute",JSXSpreadAttribute:"JSXSpreadAttribute",JSXText:"JSXText",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportAllDeclaration:"ExportAllDeclaration",ExportSpecifier:"ExportSpecifier",ImportDeclaration:"ImportDeclaration",ImportSpecifier:"ImportSpecifier",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.BlockStatementDeadCodeInjectionNode="BlockStatementDeadCodeInjectionNode"}(t.DeadCodeInjectionCustomNode||(t.DeadCodeInjectionCustomNode={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.AssignmentExpressionPropertiesExtractor="AssignmentExpressionPropertiesExtractor",e.VariableDeclaratorPropertiesExtractor="VariableDeclaratorPropertiesExtractor"}(t.PropertiesExtractor||(t.PropertiesExtractor={}))},function(e,t,n){"use strict";var r,i=n(0),o=i(n(37)),a=i(n(1)),s=i(n(3)),u=i(n(5)),d=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,u.default)(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},l=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,u.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var p=n(2),f=n(4),h=n(31),g=n(15),m=n(10),y=n(30),b=r=function(){function e(t,n){(0,a.default)(this,e),this.cachedHostNodesWithStatementsMap=new Map,this.cachedHostStatementsMap=new Map,this.randomGenerator=t,this.options=n}return(0,s.default)(e,[{key:"extractPropertiesToExpressionStatements",value:function(e,t){for(var n=e.length,i=[],o=[],a=0;a=0;u--)(i=e[u])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},u=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,a.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},d=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var l=n(2),c=n(4),p=function(){function e(t,n){(0,i.default)(this,e),this.randomGenerator=t,this.options=n}return(0,o.default)(e,[{key:"isValidIdentifierName",value:function(e){return!this.options.reservedNames.length||!this.options.reservedNames.some(function(t){return null!==new RegExp(t,"g").exec(e)})}}]),e}();p=s([l.injectable(),d(0,l.inject(c.ServiceIdentifiers.IRandomGenerator)),d(1,l.inject(c.ServiceIdentifiers.IOptions)),u("design:paramtypes",[Object,Object])],p),t.AbstractIdentifierNamesGenerator=p},function(e,t,n){"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,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n(function(t){t(e.value)}).then(a,s)}u((r=r.apply(e,t||[])).next())})},i=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=0},e.prototype.isNumber=function(e,t){return void 0===t&&(t={}),e===1/0||e===-1/0?t.allowInfinity:Number.isNaN(e)?t.allowNaN:Number.isFinite(e)},e.prototype.isInt=function(e){return Number.isInteger(e)},e.prototype.isDivisibleBy=function(e,t){return"number"==typeof e&&"number"==typeof t&&this.validatorJs.isDivisibleBy(String(e),t)},e.prototype.isPositive=function(e){return"number"==typeof e&&e>0},e.prototype.isNegative=function(e){return"number"==typeof e&&e<0},e.prototype.min=function(e,t){return"number"==typeof e&&"number"==typeof t&&e>=t},e.prototype.max=function(e,t){return"number"==typeof e&&"number"==typeof t&&e<=t},e.prototype.minDate=function(e,t){return e&&e.getTime()>=t.getTime()},e.prototype.maxDate=function(e,t){return e&&e.getTime()<=t.getTime()},e.prototype.isBooleanString=function(e){return"string"==typeof e&&this.validatorJs.isBoolean(e)},e.prototype.isNumberString=function(e){return"string"==typeof e&&this.validatorJs.isNumeric(e)},e.prototype.contains=function(e,t){return"string"==typeof e&&this.validatorJs.contains(e,t)},e.prototype.notContains=function(e,t){return"string"==typeof e&&!this.validatorJs.contains(e,t)},e.prototype.isAlpha=function(e){return"string"==typeof e&&this.validatorJs.isAlpha(e)},e.prototype.isAlphanumeric=function(e){return"string"==typeof e&&this.validatorJs.isAlphanumeric(e)},e.prototype.isAscii=function(e){return"string"==typeof e&&this.validatorJs.isAscii(e)},e.prototype.isBase64=function(e){return"string"==typeof e&&this.validatorJs.isBase64(e)},e.prototype.isByteLength=function(e,t,n){return"string"==typeof e&&this.validatorJs.isByteLength(e,t,n)},e.prototype.isCreditCard=function(e){return"string"==typeof e&&this.validatorJs.isCreditCard(e)},e.prototype.isCurrency=function(e,t){return"string"==typeof e&&this.validatorJs.isCurrency(e,t)},e.prototype.isEmail=function(e,t){return"string"==typeof e&&this.validatorJs.isEmail(e,t)},e.prototype.isFQDN=function(e,t){return"string"==typeof e&&this.validatorJs.isFQDN(e,t)},e.prototype.isFullWidth=function(e){return"string"==typeof e&&this.validatorJs.isFullWidth(e)},e.prototype.isHalfWidth=function(e){return"string"==typeof e&&this.validatorJs.isHalfWidth(e)},e.prototype.isVariableWidth=function(e){return"string"==typeof e&&this.validatorJs.isVariableWidth(e)},e.prototype.isHexColor=function(e){return"string"==typeof e&&this.validatorJs.isHexColor(e)},e.prototype.isHexadecimal=function(e){return"string"==typeof e&&this.validatorJs.isHexadecimal(e)},e.prototype.isIP=function(e,t){return"string"==typeof e&&this.validatorJs.isIP(e,t)},e.prototype.isISBN=function(e,t){return"string"==typeof e&&this.validatorJs.isISBN(e,t)},e.prototype.isISIN=function(e){return"string"==typeof e&&this.validatorJs.isISIN(e)},e.prototype.isISO8601=function(e){return"string"==typeof e&&this.validatorJs.isISO8601(e)},e.prototype.isJSON=function(e){return"string"==typeof e&&this.validatorJs.isJSON(e)},e.prototype.isLowercase=function(e){return"string"==typeof e&&this.validatorJs.isLowercase(e)},e.prototype.isMobilePhone=function(e,t){return"string"==typeof e&&this.validatorJs.isMobilePhone(e,t)},e.prototype.isPhoneNumber=function(e,t){try{var n=this.libPhoneNumber.phoneUtil.parseAndKeepRawInput(e,t);return this.libPhoneNumber.phoneUtil.isValidNumber(n)}catch(e){return!1}},e.prototype.isMongoId=function(e){return"string"==typeof e&&this.validatorJs.isMongoId(e)},e.prototype.isMultibyte=function(e){return"string"==typeof e&&this.validatorJs.isMultibyte(e)},e.prototype.isSurrogatePair=function(e){return"string"==typeof e&&this.validatorJs.isSurrogatePair(e)},e.prototype.isURL=function(e,t){return"string"==typeof e&&this.validatorJs.isURL(e,t)},e.prototype.isUUID=function(e,t){return"string"==typeof e&&this.validatorJs.isUUID(e,t)},e.prototype.isUppercase=function(e){return"string"==typeof e&&this.validatorJs.isUppercase(e)},e.prototype.length=function(e,t,n){return"string"==typeof e&&this.validatorJs.isLength(e,t,n)},e.prototype.minLength=function(e,t){return"string"==typeof e&&this.length(e,t)},e.prototype.maxLength=function(e,t){return"string"==typeof e&&this.length(e,0,t)},e.prototype.matches=function(e,t,n){return"string"==typeof e&&this.validatorJs.matches(e,t,n)},e.prototype.isMilitaryTime=function(e){return this.matches(e,/^([01]\d|2[0-3]):?([0-5]\d)$/)},e.prototype.arrayContains=function(e,t){return e instanceof Array&&(!e||t.every(function(t){return-1!==e.indexOf(t)}))},e.prototype.arrayNotContains=function(e,t){return e instanceof Array&&(!e||t.every(function(t){return-1===e.indexOf(t)}))},e.prototype.arrayNotEmpty=function(e){return e instanceof Array&&(e instanceof Array&&e.length>0)},e.prototype.arrayMinSize=function(e,t){return e instanceof Array&&(e instanceof Array&&e.length>=t)},e.prototype.arrayMaxSize=function(e,t){return e instanceof Array&&(e instanceof Array&&e.length<=t)},e.prototype.arrayUnique=function(e){if(!(e instanceof Array))return!1;var t=e.filter(function(e,t,n){return n.indexOf(e)===t});return e.length===t.length},e.prototype.isInstance=function(e,t){return t&&"function"==typeof t&&e instanceof t},e}();t.Validator=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){}return e.prototype.toString=function(e,t,n){var r=this;void 0===e&&(e=!1),void 0===t&&(t=!1),void 0===n&&(n="");var i=e?"":"",o=e?"":"",a=function(e){return" - property "+i+n+e+o+" has failed the following constraints: "+i+Object.keys(r.constraints).join(", ")+o+" \n"};if(t){var s=Number.isInteger(+this.property)?"["+this.property+"]":(n?".":"")+this.property;return this.constraints?a(s):this.children.map(function(t){return t.toString(e,!0,""+n+s)}).join("")}return"An instance of "+i+(this.target?this.target.constructor.name:"an object")+o+" has failed the validation:\n"+(this.constraints?a(this.property):"")+this.children.map(function(t){return t.toString(e,!0,r.property)}).join("")},e}();t.ValidationError=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),parseFloat(e)};var r,i=n(9),o=(r=i)&&r.__esModule?r:{default:r};e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.default=function(e,t){(0,a.default)(e);var n=void 0,i=void 0;"object"===(void 0===t?"undefined":r(t))?(n=t.min||0,i=t.max):(n=arguments[1],i=arguments[2]);var o=encodeURI(e).split(/%..|./).length-1;return o>=n&&(void 0===i||o<=i)};var i,o=n(9),a=(i=o)&&i.__esModule?i:{default:i};e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,o.default)(e);var n=(t=t||{}).hasOwnProperty("allow_leading_zeroes")&&!t.allow_leading_zeroes?a:s,r=!t.hasOwnProperty("min")||e>=t.min,i=!t.hasOwnProperty("max")||e<=t.max,u=!t.hasOwnProperty("lt")||et.gt;return n.test(e)&&r&&i&&u&&d};var r,i=n(9),o=(r=i)&&r.__esModule?r:{default:r};var a=/^(?:[-+]?(?:0|[1-9][0-9]*))$/,s=/^[-+]?[0-9]+$/;e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fullWidth=void 0,t.default=function(e){return(0,o.default)(e),a.test(e)};var r,i=n(9),o=(r=i)&&r.__esModule?r:{default:r};var a=t.fullWidth=/[^\u0020-\u007E\uFF61-\uFF9F\uFFA0-\uFFDC\uFFE8-\uFFEE0-9a-zA-Z]/},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.halfWidth=void 0,t.default=function(e){return(0,o.default)(e),a.test(e)};var r,i=n(9),o=(r=i)&&r.__esModule?r:{default:r};var a=t.halfWidth=/[\u0020-\u007E\uFF61-\uFF9F\uFFA0-\uFFDC\uFFE8-\uFFEE0-9a-zA-Z]/},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),a.test(e)};var r,i=n(9),o=(r=i)&&r.__esModule?r:{default:r};var a=/^[0-9A-F]+$/i;e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,o.default)(e);var n=t?new RegExp("^["+t+"]+","g"):/^\s+/g;return e.replace(n,"")};var r,i=n(9),o=(r=i)&&r.__esModule?r:{default:r};e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,o.default)(e);for(var n=t?new RegExp("["+t+"]"):/\s/,r=e.length-1;r>=0&&n.test(e[r]);r--);return r=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},l=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,u.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var p=n(2),f=n(4),h=n(11),g=function(){function e(t,n){(0,a.default)(this,e),this.randomGenerator=t,this.options=n}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,n=!1,r=void 0;try{for(var i,a=this.storage[Symbol.iterator]();!(t=(i=a.next()).done);t=!0){var s=(0,o.default)(i.value,2),u=s[0];if(e===s[1])return u}}catch(e){n=!0,r=e}finally{try{t||null==a.return||a.return()}finally{if(n)throw r}}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:"mergeWith",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.storage=new Map((0,i.default)(this.storage).concat((0,i.default)(e.getStorage()))),t&&(this.storageId=e.getStorageId())}},{key:"set",value:function(e,t){this.storage.set(e,t)}}]),e}();d([h.initializable(),l("design:type",String)],g.prototype,"storageId",void 0),d([h.initializable(),l("design:type",Map)],g.prototype,"storage",void 0),d([p.postConstruct(),l("design:type",Function),l("design:paramtypes",[]),l("design:returntype",void 0)],g.prototype,"initialize",null),g=d([p.injectable(),c(0,p.inject(f.ServiceIdentifiers.IRandomGenerator)),c(1,p.inject(f.ServiceIdentifiers.IOptions)),l("design:paramtypes",[Object,Object])],g),t.MapStorage=g},function(e,t,n){"use strict";var r,i=n(0),o=i(n(1)),a=i(n(3)),s=i(n(5)),u=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,s.default)(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var u=e.length-1;u>=0;u--)(i=e[u])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},d=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,s.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},l=function(e,t){return function(n,r){t(n,r,e)}},c=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var p=n(2),f=n(4),h=c(n(347)),g=n(350),m=n(11),y=r=function(){function e(t,n){(0,o.default)(this,e),this.sourceCode=t,this.options=n}return(0,a.default)(e,[{key:"initialize",value:function(){var e,t,n,r=this;this.seed=0!==this.options.seed?this.options.seed:(e=0,t=999999999,Math.floor(Math.random()*(t-e+1)+e)),this.randomGenerator=new g.Chance((n=h.default(r.sourceCode.getSourceCode()),r.seed+Number(n.replace(/\D/g,""))))}},{key:"getMathRandom",value:function(){return this.getRandomInteger(0,99999)/1e5}},{key:"getRandomGenerator",value:function(){return this.randomGenerator}},{key:"getRandomInteger",value:function(e,t){return this.getRandomGenerator().integer({min:e,max:t})}},{key:"getRandomString",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.randomGeneratorPool;return this.getRandomGenerator().string({length:e,pool:t})}},{key:"getSeed",value:function(){return this.seed}}]),e}();y.randomGeneratorPool="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",u([m.initializable(),d("design:type",Object)],y.prototype,"randomGenerator",void 0),u([m.initializable(),d("design:type",Number)],y.prototype,"seed",void 0),u([p.postConstruct(),d("design:type",Function),d("design:paramtypes",[]),d("design:returntype",void 0)],y.prototype,"initialize",null),y=r=u([p.injectable(),l(0,p.inject(f.ServiceIdentifiers.ISourceCode)),l(1,p.inject(f.ServiceIdentifiers.IOptions)),d("design:paramtypes",[Object,Object])],y),t.RandomGenerator=y},function(e,t){var n={utf8:{stringToBytes:function(e){return n.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(n.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],n=0;n0}function p(e){if(!this||!(this instanceof p)||this.template){const t={};return c(t,e),t.template=function(){const e=[].slice.call(arguments);return function(e,t){if(!Array.isArray(t))return[].slice.call(arguments,1).join(" ");const n=[].slice.call(arguments,2),r=[t.raw[0]];for(let e=1;e{},l);function h(e,t,n){const r=function(){return function(){const e=arguments,t=e.length;let n=String(arguments[0]);if(0===t)return"";if(t>1)for(let r=1;ro.level,set(e){o.level=e}}),Object.defineProperty(r,"enabled",{enumerable:!0,get:()=>o.enabled,set(e){o.enabled=e}}),r.hasGrey=this.hasGrey||"gray"===n||"grey"===n,r.__proto__=f,r}Object.defineProperties(p.prototype,l),e.exports=p(),e.exports.supportsColor=o,e.exports.default=e.exports}).call(this,n(70))},function(e,t,n){var r=n(362),i={};for(var o in r)r.hasOwnProperty(o)&&(i[r[o]]=o);var a=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var s in a)if(a.hasOwnProperty(s)){if(!("channels"in a[s]))throw new Error("missing channels property: "+s);if(!("labels"in a[s]))throw new Error("missing channel labels property: "+s);if(a[s].labels.length!==a[s].channels)throw new Error("channel and label counts mismatch: "+s);var u=a[s].channels,d=a[s].labels;delete a[s].channels,delete a[s].labels,Object.defineProperty(a[s],"channels",{value:u}),Object.defineProperty(a[s],"labels",{value:d})}a.rgb.hsl=function(e){var t,n,r=e[0]/255,i=e[1]/255,o=e[2]/255,a=Math.min(r,i,o),s=Math.max(r,i,o),u=s-a;return s===a?t=0:r===s?t=(i-o)/u:i===s?t=2+(o-r)/u:o===s&&(t=4+(r-i)/u),(t=Math.min(60*t,360))<0&&(t+=360),n=(a+s)/2,[t,100*(s===a?0:n<=.5?u/(s+a):u/(2-s-a)),100*n]},a.rgb.hsv=function(e){var t,n,r=e[0],i=e[1],o=e[2],a=Math.min(r,i,o),s=Math.max(r,i,o),u=s-a;return n=0===s?0:u/s*1e3/10,s===a?t=0:r===s?t=(i-o)/u:i===s?t=2+(o-r)/u:o===s&&(t=4+(r-i)/u),(t=Math.min(60*t,360))<0&&(t+=360),[t,n,s/255*1e3/10]},a.rgb.hwb=function(e){var t=e[0],n=e[1],r=e[2];return[a.rgb.hsl(e)[0],100*(1/255*Math.min(t,Math.min(n,r))),100*(r=1-1/255*Math.max(t,Math.max(n,r)))]},a.rgb.cmyk=function(e){var t,n=e[0]/255,r=e[1]/255,i=e[2]/255;return[100*((1-n-(t=Math.min(1-n,1-r,1-i)))/(1-t)||0),100*((1-r-t)/(1-t)||0),100*((1-i-t)/(1-t)||0),100*t]},a.rgb.keyword=function(e){var t=i[e];if(t)return t;var n,o,a,s=1/0;for(var u in r)if(r.hasOwnProperty(u)){var d=r[u],l=(o=e,a=d,Math.pow(o[0]-a[0],2)+Math.pow(o[1]-a[1],2)+Math.pow(o[2]-a[2],2));l.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)),100*(.2126*t+.7152*n+.0722*r),100*(.0193*t+.1192*n+.9505*r)]},a.rgb.lab=function(e){var t=a.rgb.xyz(e),n=t[0],r=t[1],i=t[2];return r/=100,i/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(n-r),200*(r-(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116))]},a.hsl.rgb=function(e){var t,n,r,i,o,a=e[0]/360,s=e[1]/100,u=e[2]/100;if(0===s)return[o=255*u,o,o];t=2*u-(n=u<.5?u*(1+s):u+s-u*s),i=[0,0,0];for(var d=0;d<3;d++)(r=a+1/3*-(d-1))<0&&r++,r>1&&r--,o=6*r<1?t+6*(n-t)*r:2*r<1?n:3*r<2?t+(n-t)*(2/3-r)*6:t,i[d]=255*o;return i},a.hsl.hsv=function(e){var t=e[0],n=e[1]/100,r=e[2]/100,i=n,o=Math.max(r,.01);return n*=(r*=2)<=1?r:2-r,i*=o<=1?o:2-o,[t,100*(0===r?2*i/(o+i):2*n/(r+n)),100*((r+n)/2)]},a.hsv.rgb=function(e){var t=e[0]/60,n=e[1]/100,r=e[2]/100,i=Math.floor(t)%6,o=t-Math.floor(t),a=255*r*(1-n),s=255*r*(1-n*o),u=255*r*(1-n*(1-o));switch(r*=255,i){case 0:return[r,u,a];case 1:return[s,r,a];case 2:return[a,r,u];case 3:return[a,s,r];case 4:return[u,a,r];case 5:return[r,a,s]}},a.hsv.hsl=function(e){var t,n,r,i=e[0],o=e[1]/100,a=e[2]/100,s=Math.max(a,.01);return r=(2-o)*a,n=o*s,[i,100*(n=(n/=(t=(2-o)*s)<=1?t:2-t)||0),100*(r/=2)]},a.hwb.rgb=function(e){var t,n,r,i,o,a,s,u=e[0]/360,d=e[1]/100,l=e[2]/100,c=d+l;switch(c>1&&(d/=c,l/=c),n=1-l,r=6*u-(t=Math.floor(6*u)),0!=(1&t)&&(r=1-r),i=d+r*(n-d),t){default:case 6:case 0:o=n,a=i,s=d;break;case 1:o=i,a=n,s=d;break;case 2:o=d,a=n,s=i;break;case 3:o=d,a=i,s=n;break;case 4:o=i,a=d,s=n;break;case 5:o=n,a=d,s=i}return[255*o,255*a,255*s]},a.cmyk.rgb=function(e){var t=e[0]/100,n=e[1]/100,r=e[2]/100,i=e[3]/100;return[255*(1-Math.min(1,t*(1-i)+i)),255*(1-Math.min(1,n*(1-i)+i)),255*(1-Math.min(1,r*(1-i)+i))]},a.xyz.rgb=function(e){var t,n,r,i=e[0]/100,o=e[1]/100,a=e[2]/100;return n=-.9689*i+1.8758*o+.0415*a,r=.0557*i+-.204*o+1.057*a,t=(t=3.2406*i+-1.5372*o+-.4986*a)>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,[255*(t=Math.min(Math.max(0,t),1)),255*(n=Math.min(Math.max(0,n),1)),255*(r=Math.min(Math.max(0,r),1))]},a.xyz.lab=function(e){var t=e[0],n=e[1],r=e[2];return n/=100,r/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(t-n),200*(n-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]},a.lab.xyz=function(e){var t,n,r,i=e[0],o=e[1],a=e[2];t=o/500+(n=(i+16)/116),r=n-a/200;var s=Math.pow(n,3),u=Math.pow(t,3),d=Math.pow(r,3);return n=s>.008856?s:(n-16/116)/7.787,t=u>.008856?u:(t-16/116)/7.787,r=d>.008856?d:(r-16/116)/7.787,[t*=95.047,n*=100,r*=108.883]},a.lab.lch=function(e){var t,n=e[0],r=e[1],i=e[2];return(t=360*Math.atan2(i,r)/2/Math.PI)<0&&(t+=360),[n,Math.sqrt(r*r+i*i),t]},a.lch.lab=function(e){var t,n=e[0],r=e[1];return t=e[2]/360*2*Math.PI,[n,r*Math.cos(t),r*Math.sin(t)]},a.rgb.ansi16=function(e){var t=e[0],n=e[1],r=e[2],i=1 in arguments?arguments[1]:a.rgb.hsv(e)[2];if(0===(i=Math.round(i/50)))return 30;var o=30+(Math.round(r/255)<<2|Math.round(n/255)<<1|Math.round(t/255));return 2===i&&(o+=60),o},a.hsv.ansi16=function(e){return a.rgb.ansi16(a.hsv.rgb(e),e[2])},a.rgb.ansi256=function(e){var t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},a.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},a.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var n;return e-=16,[Math.floor(e/36)/5*255,Math.floor((n=e%36)/6)/5*255,n%6/5*255]},a.rgb.hex=function(e){var t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},a.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var n=t[0];3===t[0].length&&(n=n.split("").map(function(e){return e+e}).join(""));var r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},a.rgb.hcg=function(e){var t,n,r=e[0]/255,i=e[1]/255,o=e[2]/255,a=Math.max(Math.max(r,i),o),s=Math.min(Math.min(r,i),o),u=a-s;return t=u<1?s/(1-u):0,n=u<=0?0:a===r?(i-o)/u%6:a===i?2+(o-r)/u:4+(r-i)/u+4,n/=6,[360*(n%=1),100*u,100*t]},a.hsl.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=1,i=0;return(r=n<.5?2*t*n:2*t*(1-n))<1&&(i=(n-.5*r)/(1-r)),[e[0],100*r,100*i]},a.hsv.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=t*n,i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],100*r,100*i]},a.hcg.rgb=function(e){var t=e[0]/360,n=e[1]/100,r=e[2]/100;if(0===n)return[255*r,255*r,255*r];var i,o=[0,0,0],a=t%1*6,s=a%1,u=1-s;switch(Math.floor(a)){case 0:o[0]=1,o[1]=s,o[2]=0;break;case 1:o[0]=u,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=s;break;case 3:o[0]=0,o[1]=u,o[2]=1;break;case 4:o[0]=s,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=u}return i=(1-n)*r,[255*(n*o[0]+i),255*(n*o[1]+i),255*(n*o[2]+i)]},a.hcg.hsv=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t),r=0;return n>0&&(r=t/n),[e[0],100*r,100*n]},a.hcg.hsl=function(e){var t=e[1]/100,n=e[2]/100*(1-t)+.5*t,r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],100*r,100*n]},a.hcg.hwb=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},a.hwb.hcg=function(e){var t=e[1]/100,n=1-e[2]/100,r=n-t,i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],100*r,100*i]},a.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},a.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},a.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},a.gray.hsl=a.gray.hsv=function(e){return[0,0,e[0]]},a.gray.hwb=function(e){return[0,100,e[0]]},a.gray.cmyk=function(e){return[0,0,0,e[0]]},a.gray.lab=function(e){return[e[0],0,0]},a.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},a.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(42);e.exports=r.JavaScriptObfuscator},function(e,t,n){(function(e,t){ /*! ***************************************************************************** Copyright (C) Microsoft. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use @@ -50,5 +50,5 @@ e.exports=function(e){return null!=e&&(n(e)||function(e){return"function"==typeo * @author Feross Aboukhadijeh * @license MIT */ -var r=n(352),i=n(353),o=n(354);function a(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function h(e,t){if(u.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return j(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return G(e).length;default:if(r)return j(e).length;t=(""+t).toLowerCase(),r=!0}}function g(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function m(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=u.from(t,r)),u.isBuffer(t))return 0===t.length?-1:y(e,t,n,r,i);if("number"==typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):y(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function y(e,t,n,r,i){var o,a=1,s=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,u/=2,n/=2}function d(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var l=-1;for(o=n;os&&(n=s-u),o=n;o>=0;o--){for(var c=!0,p=0;pi&&(r=i):r=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function _(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function E(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i239?4:d>223?3:d>191?2:1;if(i+c<=n)switch(c){case 1:d<128&&(l=d);break;case 2:128==(192&(o=e[i+1]))&&(u=(31&d)<<6|63&o)>127&&(l=u);break;case 3:o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&(u=(15&d)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(u=(15&d)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(l=u)}null===l?(l=65533,c=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),i+=c}return function(e){var t=e.length;if(t<=I)return String.fromCharCode.apply(String,e);var n="",r=0;for(;rthis.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return F(this,t,n);case"utf8":case"utf-8":return E(this,t,n);case"ascii":return T(this,t,n);case"latin1":case"binary":return D(this,t,n);case"base64":return _(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}.apply(this,arguments)},u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===u.compare(this,e)},u.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),""},u.prototype.compare=function(e,t,n,r,i){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;for(var o=i-r,a=n-t,s=Math.min(o,a),d=this.slice(r,i),l=e.slice(t,n),c=0;ci)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return b(this,e,t,n);case"utf8":case"utf-8":return v(this,e,t,n);case"ascii":return C(this,e,t,n);case"latin1":case"binary":return S(this,e,t,n);case"base64":return N(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var I=4096;function T(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;ir)&&(n=r);for(var i="",o=t;on)throw new RangeError("Trying to access beyond buffer length")}function R(e,t,n,r,i,o){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function x(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i>>8*(r?i:1-i)}function O(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i>>8*(r?i:3-i)&255}function $(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function w(e,t,n,r,o){return o||$(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function B(e,t,n,r,o){return o||$(e,0,n,8),i.write(e,t,n,r,52,8),n+8}u.prototype.slice=function(e,t){var n,r=this.length;if(e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t0&&(i*=256);)r+=this[e+--t]*i;return r},u.prototype.readUInt8=function(e,t){return t||P(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||P(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||P(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||P(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||P(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var r=this[e],i=1,o=0;++o=(i*=128)&&(r-=Math.pow(2,8*t)),r},u.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},u.prototype.readInt8=function(e,t){return t||P(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||P(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(e,t){t||P(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(e,t){return t||P(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||P(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||P(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||P(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||P(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||P(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||R(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o=0&&(o*=256);)this[t+i]=e/o&255;return t+n},u.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):x(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):x(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):O(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):O(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);R(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o>0)-s&255;return t+n},u.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);R(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},u.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):x(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):x(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):O(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):O(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,n){return w(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return w(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return B(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return B(this,e,t,!1,n)},u.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--i)e[i+t]=this[i+n];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function G(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(k,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function V(e,t,n,r){for(var i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}}).call(this,n(56))},function(e,t,n){"use strict";t.byteLength=function(e){var t=d(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){for(var t,n=d(e),r=n[0],a=n[1],s=new o(function(e,t,n){return 3*(t+n)/4-n}(0,r,a)),u=0,l=a>0?r-4:r,c=0;c>16&255,s[u++]=t>>8&255,s[u++]=255&t;2===a&&(t=i[e.charCodeAt(c)]<<2|i[e.charCodeAt(c+1)]>>4,s[u++]=255&t);1===a&&(t=i[e.charCodeAt(c)]<<10|i[e.charCodeAt(c+1)]<<4|i[e.charCodeAt(c+2)]>>2,s[u++]=t>>8&255,s[u++]=255&t);return s},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o=[],a=0,s=n-i;as?s:a+16383));1===i?(t=e[n-1],o.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],o.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return o.join("")};for(var r=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,u=a.length;s0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function l(e,t,n){for(var i,o,a=[],s=t;s>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return a.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,u=(1<>1,l=-7,c=n?i-1:0,p=n?-1:1,f=e[t+c];for(c+=p,o=f&(1<<-l)-1,f>>=-l,l+=s;l>0;o=256*o+e[t+c],c+=p,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=r;l>0;a=256*a+e[t+c],c+=p,l-=8);if(0===o)o=1-d;else{if(o===u)return a?NaN:1/0*(f?-1:1);a+=Math.pow(2,r),o-=d}return(f?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,u,d=8*o-i-1,l=(1<>1,p=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,f=r?0:o-1,h=r?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),(t+=a+c>=1?p/u:p*Math.pow(2,1-c))*u>=2&&(a++,u/=2),a+c>=l?(s=0,a=l):a+c>=1?(s=(t*u-1)*Math.pow(2,i),a+=c):(s=t*Math.pow(2,c-1)*Math.pow(2,i),a=0));i>=8;e[n+f]=255&s,f+=h,s/=256,i-=8);for(a=a<0;e[n+f]=255&a,f+=h,a/=256,d-=8);e[n+f-h]|=128*g}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(3)),a=r(n(5)),s=function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,a.default)(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var u=e.length-1;u>=0;u--)(i=e[u])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s};Object.defineProperty(t,"__esModule",{value:!0});var u=n(2),d=function(){function e(){(0,i.default)(this,e),this.stringsCache=new Map}return(0,o.default)(e,[{key:"encode",value:function(e,t){var n="".concat(e,"-").concat(String(t));if(this.stringsCache.has(n))return this.stringsCache.get(n);var r,i,o=new RegExp("[\\s\\S]","g"),a=new RegExp("['\"\\\\\\s]"),s=new RegExp("[\\x00-\\x7F]"),u=e.replace(o,function(e){return t||a.exec(e)?(s.exec(e)?(r="\\x",i="00"):(r="\\u",i="0000"),"".concat(r).concat((i+e.charCodeAt(0).toString(16)).slice(-i.length))):e});return this.stringsCache.set(n,u),u}}]),e}();d=s([u.injectable()],d),t.EscapeSequenceEncoder=d},function(e,t,n){"use strict";var r,i=n(0),o=i(n(1)),a=i(n(3)),s=i(n(5)),u=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,s.default)(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var u=e.length-1;u>=0;u--)(i=e[u])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},d=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,s.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},l=function(e,t){return function(n,r){t(n,r,e)}},c=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var p=n(2),f=n(4),h=c(n(61)),g=n(357),m=n(35),y=n(13),b=n(358),v=n(10),C=r=function(){function e(t,n,r,i,a){(0,o.default)(this,e),this.transformersRunner=t,this.randomGenerator=n,this.obfuscatedCodeFactory=r,this.logger=i,this.options=a}return(0,a.default)(e,[{key:"obfuscate",value:function(e){var t=Date.now();this.logger.info(g.LoggingMessage.Version,"0.18.3"),this.logger.info(g.LoggingMessage.ObfuscationStarted),this.logger.info(g.LoggingMessage.RandomGeneratorSeed,this.randomGenerator.getSeed());var n=this.parseCode(e),r=this.transformAstTree(n),i=this.generateCode(e,r),o=(Date.now()-t)/1e3;return this.logger.success(g.LoggingMessage.ObfuscationCompleted,o),this.getObfuscatedCode(i)}},{key:"parseCode",value:function(e){return b.EspreeFacade.parse(e,r.espreeParseOptions)}},{key:"transformAstTree",value:function(e){return!v.NodeGuards.isProgramNode(e)||e.body.length||e.leadingComments||e.trailingComments?(e=this.runTransformationStage(e,y.TransformationStage.Preparing),this.options.deadCodeInjection&&(e=this.runTransformationStage(e,y.TransformationStage.DeadCodeInjection)),this.options.controlFlowFlattening&&(e=this.runTransformationStage(e,y.TransformationStage.ControlFlowFlattening)),e=this.runTransformationStage(e,y.TransformationStage.Converting),e=this.runTransformationStage(e,y.TransformationStage.Obfuscating),e=this.runTransformationStage(e,y.TransformationStage.Finalizing)):(this.logger.warn(g.LoggingMessage.EmptySourceCode),e)}},{key:"generateCode",value:function(e,t){var n=Object.assign({},r.escodegenParams);this.options.sourceMap&&(n.sourceMap=this.options.inputFileName||"sourceMap",n.sourceContent=e);var i=h.generate(t,Object.assign({},n,{format:{compact:this.options.compact}}));return i.map=i.map?i.map.toString():"",i}},{key:"getObfuscatedCode",value:function(e){return this.obfuscatedCodeFactory(e.code,e.map)}},{key:"runTransformationStage",value:function(e,t){return this.logger.info(g.LoggingMessage.TransformationStage,t),this.transformersRunner.transform(e,r.transformersList,t)}}]),e}();C.espreeParseOptions={attachComment:!0,comment:!0,ecmaFeatures:{experimentalObjectRestSpread:!0},ecmaVersion:9,loc:!0,range:!0},C.escodegenParams={comment:!0,verbatim:"x-verbatim-property",sourceMapWithCode:!0},C.transformersList=[m.NodeTransformer.BlockStatementControlFlowTransformer,m.NodeTransformer.ClassDeclarationTransformer,m.NodeTransformer.CommentsTransformer,m.NodeTransformer.CustomNodesTransformer,m.NodeTransformer.DeadCodeInjectionTransformer,m.NodeTransformer.EvalCallExpressionTransformer,m.NodeTransformer.FunctionControlFlowTransformer,m.NodeTransformer.CatchClauseTransformer,m.NodeTransformer.FunctionDeclarationTransformer,m.NodeTransformer.FunctionTransformer,m.NodeTransformer.ImportDeclarationTransformer,m.NodeTransformer.LabeledStatementTransformer,m.NodeTransformer.LiteralTransformer,m.NodeTransformer.MemberExpressionTransformer,m.NodeTransformer.MetadataTransformer,m.NodeTransformer.MethodDefinitionTransformer,m.NodeTransformer.ObfuscatingGuardsTransformer,m.NodeTransformer.ObjectExpressionKeysTransformer,m.NodeTransformer.ObjectExpressionTransformer,m.NodeTransformer.ParentificationTransformer,m.NodeTransformer.TemplateLiteralTransformer,m.NodeTransformer.VariableDeclarationTransformer],C=r=u([p.injectable(),l(0,p.inject(f.ServiceIdentifiers.ITransformersRunner)),l(1,p.inject(f.ServiceIdentifiers.IRandomGenerator)),l(2,p.inject(f.ServiceIdentifiers.Factory__IObfuscatedCode)),l(3,p.inject(f.ServiceIdentifiers.ILogger)),l(4,p.inject(f.ServiceIdentifiers.IOptions)),d("design:paramtypes",[Object,Object,Function,Object,Object])],C),t.JavaScriptObfuscator=C},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.EmptySourceCode="Empty source code. Obfuscation canceled...",e.ObfuscationCompleted="Obfuscation completed. Total time: %s sec.",e.ObfuscationStarted="Obfuscation started...",e.RandomGeneratorSeed="Random generator seed: %s...",e.TransformationStage="Transformation stage: %s...",e.Version="Version: %s"}(t.LoggingMessage||(t.LoggingMessage={}))},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(3)),a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},s=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var u=a(n(82)),d=s(n(107)),l=function(){function e(){(0,i.default)(this,e)}return(0,o.default)(e,null,[{key:"parse",value:function(t,n){for(var r=e.sourceTypes.length,i=0;i"),u="...".concat(i.substring(o,a).replace(/^\s+/,""),"...");throw new Error("Line ".concat(r.line,": ").concat(n,"\n").concat(s," ").concat(u))}}]),e}();l.colorError=d.default.red,l.nearestSymbolsCount=15,l.sourceTypes=["script","module"],t.EspreeFacade=l},function(e,t,n){"use strict";var r=/[|\\{}()[\]^$+*?.]/g;e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(r,"\\$&")}},function(e,t,n){"use strict";(function(e){const t=n(361),r=(e,n)=>(function(){return`[${e.apply(t,arguments)+n}m`}),i=(e,n)=>(function(){const r=e.apply(t,arguments);return`[${38+n};5;${r}m`}),o=(e,n)=>(function(){const r=e.apply(t,arguments);return`[${38+n};2;${r[0]};${r[1]};${r[2]}m`});Object.defineProperty(e,"exports",{enumerable:!0,get:function(){const e=new Map,n={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};n.color.grey=n.color.gray;for(const t of Object.keys(n)){const r=n[t];for(const t of Object.keys(r)){const i=r[t];n[t]={open:`[${i[0]}m`,close:`[${i[1]}m`},r[t]=n[t],e.set(i[0],i[1])}Object.defineProperty(n,t,{value:r,enumerable:!1}),Object.defineProperty(n,"codes",{value:e,enumerable:!1})}const a=e=>e,s=(e,t,n)=>[e,t,n];n.color.close="",n.bgColor.close="",n.color.ansi={ansi:r(a,0)},n.color.ansi256={ansi256:i(a,0)},n.color.ansi16m={rgb:o(s,0)},n.bgColor.ansi={ansi:r(a,10)},n.bgColor.ansi256={ansi256:i(a,10)},n.bgColor.ansi16m={rgb:o(s,10)};for(let e of Object.keys(t)){if("object"!=typeof t[e])continue;const a=t[e];"ansi16"===e&&(e="ansi"),"ansi16"in a&&(n.color.ansi[e]=r(a.ansi16,0),n.bgColor.ansi[e]=r(a.ansi16,10)),"ansi256"in a&&(n.color.ansi256[e]=i(a.ansi256,0),n.bgColor.ansi256[e]=i(a.ansi256,10)),"rgb"in a&&(n.color.ansi16m[e]=o(a.rgb,0),n.bgColor.ansi16m[e]=o(a.rgb,10))}return n}})}).call(this,n(47)(e))},function(e,t,n){var r=n(108),i=n(363),o={};Object.keys(r).forEach(function(e){o[e]={},Object.defineProperty(o[e],"channels",{value:r[e].channels}),Object.defineProperty(o[e],"labels",{value:r[e].labels});var t=i(e);Object.keys(t).forEach(function(n){var r=t[n];o[e][n]=function(e){var t=function(t){if(void 0===t||null===t)return t;arguments.length>1&&(t=Array.prototype.slice.call(arguments));var n=e(t);if("object"==typeof n)for(var r=n.length,i=0;i1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(r)})}),e.exports=o},function(e,t,n){"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},function(e,t,n){var r=n(108);function i(e){var t=function(){for(var e={},t=Object.keys(r),n=t.length,i=0;it?u(t):n))}else n.push(Number(t));return n}function l(e,t){const n={};for(const e of t)for(const t of e.styles)n[t[0]]=e.inverse?null:t.slice(1);let r=e;for(const e of Object.keys(n))if(Array.isArray(n[e])){if(!(e in r))throw new Error(`Unknown Chalk style: ${e}`);r=n[e].length>0?r[e].apply(r,n[e]):r[e]}return r}e.exports=((e,t)=>{const n=[],o=[];let a=[];if(t.replace(r,(t,r,s,c,p,f)=>{if(r)a.push(u(r));else if(c){const t=a.join("");a=[],o.push(0===n.length?t:l(e,n)(t)),n.push({inverse:s,styles:function(e){i.lastIndex=0;const t=[];let n;for(;null!==(n=i.exec(e));){const e=n[1];if(n[2]){const r=d(e,n[2]);t.push([e].concat(r))}else t.push([e])}return t}(c)})}else if(p){if(0===n.length)throw new Error("Found extraneous } in Chalk template literal");o.push(l(e,n)(a.join(""))),a=[],n.pop()}else a.push(f)}),o.push(a.join("")),n.length>0){const e=`Chalk template literal is missing ${n.length} closing bracket${1===n.length?"":"s"} (\`}\`)`;throw new Error(e)}return o.join("")})},function(e,t,n){"use strict";var r,i=n(0),o=i(n(1)),a=i(n(3)),s=i(n(5)),u=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,s.default)(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var u=e.length-1;u>=0;u--)(i=e[u])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},d=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,s.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},l=function(e,t){return function(n,r){t(n,r,e)}},c=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var p=n(2),f=n(4),h=c(n(107)),g=n(367),m=r=function(){function e(t){(0,o.default)(this,e),this.options=t}return(0,a.default)(e,[{key:"info",value:function(e,t){this.options.log&&r.log(r.colorInfo,g.LoggingPrefix.Base,e,t)}},{key:"success",value:function(e,t){this.options.log&&r.log(r.colorSuccess,g.LoggingPrefix.Base,e,t)}},{key:"warn",value:function(e,t){this.options.log&&r.log(r.colorWarn,g.LoggingPrefix.Base,e,t)}}],[{key:"log",value:function(e,t,n,r){var i=e("\n".concat(t," ").concat(n));console.log(i,r||"")}}]),e}();m.colorInfo=h.default.cyan,m.colorSuccess=h.default.green,m.colorWarn=h.default.yellow,m=r=u([p.injectable(),l(0,p.inject(f.ServiceIdentifiers.IOptions)),d("design:paramtypes",[Object])],m),t.Logger=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.Base="[javascript-obfuscator]",e.CLI="[javascript-obfuscator-cli]"}(t.LoggingPrefix||(t.LoggingPrefix={}))},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(7)),a=r(n(6)),s=r(n(8)),u=r(n(5)),d=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,u.default)(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};Object.defineProperty(t,"__esModule",{value:!0});var l=n(2),c=n(369);l.decorate(l.injectable(),c.EventEmitter);var p=function(e){function t(){return(0,i.default)(this,t),(0,o.default)(this,(0,a.default)(t).apply(this,arguments))}return(0,s.default)(t,e),t}(c.EventEmitter);p=d([l.injectable()],p),t.ObfuscationEventEmitter=p},function(e,t){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function r(e){return"function"==typeof e}function i(e){return"object"==typeof e&&null!==e}function o(e){return void 0===e}e.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},n.prototype.emit=function(e){var t,n,a,s,u,d;if(this._events||(this._events={}),"error"===e&&(!this._events.error||i(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var l=new Error('Uncaught, unspecified "error" event. ('+t+")");throw l.context=t,l}if(o(n=this._events[e]))return!1;if(r(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:s=Array.prototype.slice.call(arguments,1),n.apply(this,s)}else if(i(n))for(s=Array.prototype.slice.call(arguments,1),a=(d=n.slice()).length,u=0;u0&&this._events[e].length>a&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace()),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(e,t){if(!r(t))throw TypeError("listener must be a function");var n=!1;function i(){this.removeListener(e,i),n||(n=!0,t.apply(this,arguments))}return i.listener=t,this.on(e,i),this},n.prototype.removeListener=function(e,t){var n,o,a,s;if(!r(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(a=(n=this._events[e]).length,o=-1,n===t||r(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(i(n)){for(s=a;s-- >0;)if(n[s]===t||n[s].listener&&n[s].listener===t){o=s;break}if(o<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(o,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},n.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(r(n=this._events[e]))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},n.prototype.listeners=function(e){return this._events&&this._events[e]?r(this._events[e])?[this._events[e]]:this._events[e].slice():[]},n.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(r(t))return 1;if(t)return t.length}return 0},n.listenerCount=function(e,t){return e.listenerCount(t)}},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(3)),a=r(n(5)),s=function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,a.default)(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var u=e.length-1;u>=0;u--)(i=e[u])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},u=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,a.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},d=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var l=n(2),c=n(4),p=n(11),f=n(50),h=function(){function e(t,n){(0,i.default)(this,e),this.cryptUtils=t,this.options=n}return(0,o.default)(e,[{key:"initialize",value:function(e,t){this.obfuscatedCode=e,this.sourceMap=t}},{key:"getObfuscatedCode",value:function(){return this.correctObfuscatedCode()}},{key:"getSourceMap",value:function(){return this.sourceMap}},{key:"toString",value:function(){return this.obfuscatedCode}},{key:"correctObfuscatedCode",value:function(){if(!this.sourceMap)return this.obfuscatedCode;var e=this.options.sourceMapBaseUrl+this.options.sourceMapFileName,t="//# sourceMappingURL=";switch(this.options.sourceMapMode){case f.SourceMapMode.Inline:t+="data:application/json;base64,".concat(this.cryptUtils.btoa(this.sourceMap));break;case f.SourceMapMode.Separate:default:if(!e)return this.obfuscatedCode;t+=e}return"".concat(this.obfuscatedCode,"\n").concat(t)}}]),e}();s([p.initializable(),u("design:type",String)],h.prototype,"obfuscatedCode",void 0),s([p.initializable(),u("design:type",String)],h.prototype,"sourceMap",void 0),h=s([l.injectable(),d(0,l.inject(c.ServiceIdentifiers.ICryptUtils)),d(1,l.inject(c.ServiceIdentifiers.IOptions)),u("design:paramtypes",[Object,Object])],h),t.ObfuscatedCode=h},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(3));Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(t,n){(0,i.default)(this,e),this.sourceCode=t,this.sourceMap=n}return(0,o.default)(e,[{key:"getSourceCode",value:function(){return this.sourceCode}},{key:"getSourceMap",value:function(){return this.sourceMap}},{key:"toString",value:function(){return this.sourceCode}}]),e}();t.SourceCode=a},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(3)),a=r(n(5)),s=function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,a.default)(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var u=e.length-1;u>=0;u--)(i=e[u])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},u=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,a.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},d=function(e,t){return function(n,r){t(n,r,e)}},l=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var c=n(2),p=n(4),f=l(n(18)),h=n(373),g=n(10),m=n(20),y=function(){function e(t){(0,i.default)(this,e),this.nodeTransformerFactory=t}return(0,o.default)(e,[{key:"transform",value:function(e,t,n){if(!t.length)return e;for(var r,i=[],o=[],a=t.length,s=0;s=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function h(e,t){if(u.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return j(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return G(e).length;default:if(r)return j(e).length;t=(""+t).toLowerCase(),r=!0}}function g(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function m(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=u.from(t,r)),u.isBuffer(t))return 0===t.length?-1:y(e,t,n,r,i);if("number"==typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):y(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function y(e,t,n,r,i){var o,a=1,s=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,u/=2,n/=2}function d(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var l=-1;for(o=n;os&&(n=s-u),o=n;o>=0;o--){for(var c=!0,p=0;pi&&(r=i):r=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function _(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function E(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i239?4:d>223?3:d>191?2:1;if(i+c<=n)switch(c){case 1:d<128&&(l=d);break;case 2:128==(192&(o=e[i+1]))&&(u=(31&d)<<6|63&o)>127&&(l=u);break;case 3:o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&(u=(15&d)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(u=(15&d)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(l=u)}null===l?(l=65533,c=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),i+=c}return function(e){var t=e.length;if(t<=I)return String.fromCharCode.apply(String,e);var n="",r=0;for(;rthis.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return F(this,t,n);case"utf8":case"utf-8":return E(this,t,n);case"ascii":return T(this,t,n);case"latin1":case"binary":return D(this,t,n);case"base64":return _(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}.apply(this,arguments)},u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===u.compare(this,e)},u.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),""},u.prototype.compare=function(e,t,n,r,i){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;for(var o=i-r,a=n-t,s=Math.min(o,a),d=this.slice(r,i),l=e.slice(t,n),c=0;ci)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return b(this,e,t,n);case"utf8":case"utf-8":return v(this,e,t,n);case"ascii":return C(this,e,t,n);case"latin1":case"binary":return S(this,e,t,n);case"base64":return N(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var I=4096;function T(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;ir)&&(n=r);for(var i="",o=t;on)throw new RangeError("Trying to access beyond buffer length")}function R(e,t,n,r,i,o){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function x(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i>>8*(r?i:1-i)}function O(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i>>8*(r?i:3-i)&255}function $(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function w(e,t,n,r,o){return o||$(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function B(e,t,n,r,o){return o||$(e,0,n,8),i.write(e,t,n,r,52,8),n+8}u.prototype.slice=function(e,t){var n,r=this.length;if(e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t0&&(i*=256);)r+=this[e+--t]*i;return r},u.prototype.readUInt8=function(e,t){return t||P(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||P(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||P(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||P(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||P(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var r=this[e],i=1,o=0;++o=(i*=128)&&(r-=Math.pow(2,8*t)),r},u.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},u.prototype.readInt8=function(e,t){return t||P(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||P(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(e,t){t||P(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(e,t){return t||P(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||P(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||P(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||P(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||P(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||P(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||R(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o=0&&(o*=256);)this[t+i]=e/o&255;return t+n},u.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):x(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):x(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):O(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):O(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);R(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o>0)-s&255;return t+n},u.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);R(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},u.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):x(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):x(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):O(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):O(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,n){return w(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return w(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return B(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return B(this,e,t,!1,n)},u.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--i)e[i+t]=this[i+n];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function G(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(k,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function V(e,t,n,r){for(var i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}}).call(this,n(56))},function(e,t,n){"use strict";t.byteLength=function(e){var t=d(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){for(var t,n=d(e),r=n[0],a=n[1],s=new o(function(e,t,n){return 3*(t+n)/4-n}(0,r,a)),u=0,l=a>0?r-4:r,c=0;c>16&255,s[u++]=t>>8&255,s[u++]=255&t;2===a&&(t=i[e.charCodeAt(c)]<<2|i[e.charCodeAt(c+1)]>>4,s[u++]=255&t);1===a&&(t=i[e.charCodeAt(c)]<<10|i[e.charCodeAt(c+1)]<<4|i[e.charCodeAt(c+2)]>>2,s[u++]=t>>8&255,s[u++]=255&t);return s},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o=[],a=0,s=n-i;as?s:a+16383));1===i?(t=e[n-1],o.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],o.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return o.join("")};for(var r=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,u=a.length;s0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function l(e,t,n){for(var i,o,a=[],s=t;s>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return a.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,u=(1<>1,l=-7,c=n?i-1:0,p=n?-1:1,f=e[t+c];for(c+=p,o=f&(1<<-l)-1,f>>=-l,l+=s;l>0;o=256*o+e[t+c],c+=p,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=r;l>0;a=256*a+e[t+c],c+=p,l-=8);if(0===o)o=1-d;else{if(o===u)return a?NaN:1/0*(f?-1:1);a+=Math.pow(2,r),o-=d}return(f?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,u,d=8*o-i-1,l=(1<>1,p=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,f=r?0:o-1,h=r?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),(t+=a+c>=1?p/u:p*Math.pow(2,1-c))*u>=2&&(a++,u/=2),a+c>=l?(s=0,a=l):a+c>=1?(s=(t*u-1)*Math.pow(2,i),a+=c):(s=t*Math.pow(2,c-1)*Math.pow(2,i),a=0));i>=8;e[n+f]=255&s,f+=h,s/=256,i-=8);for(a=a<0;e[n+f]=255&a,f+=h,a/=256,d-=8);e[n+f-h]|=128*g}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(3)),a=r(n(5)),s=function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,a.default)(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var u=e.length-1;u>=0;u--)(i=e[u])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s};Object.defineProperty(t,"__esModule",{value:!0});var u=n(2),d=function(){function e(){(0,i.default)(this,e),this.stringsCache=new Map}return(0,o.default)(e,[{key:"encode",value:function(e,t){var n="".concat(e,"-").concat(String(t));if(this.stringsCache.has(n))return this.stringsCache.get(n);var r,i,o=new RegExp("[\\s\\S]","g"),a=new RegExp("['\"\\\\\\s]"),s=new RegExp("[\\x00-\\x7F]"),u=e.replace(o,function(e){return t||a.exec(e)?(s.exec(e)?(r="\\x",i="00"):(r="\\u",i="0000"),"".concat(r).concat((i+e.charCodeAt(0).toString(16)).slice(-i.length))):e});return this.stringsCache.set(n,u),u}}]),e}();d=s([u.injectable()],d),t.EscapeSequenceEncoder=d},function(e,t,n){"use strict";var r,i=n(0),o=i(n(1)),a=i(n(3)),s=i(n(5)),u=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,s.default)(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var u=e.length-1;u>=0;u--)(i=e[u])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},d=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,s.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},l=function(e,t){return function(n,r){t(n,r,e)}},c=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var p=n(2),f=n(4),h=c(n(61)),g=n(357),m=n(35),y=n(13),b=n(358),v=n(10),C=r=function(){function e(t,n,r,i,a){(0,o.default)(this,e),this.transformersRunner=t,this.randomGenerator=n,this.obfuscatedCodeFactory=r,this.logger=i,this.options=a}return(0,a.default)(e,[{key:"obfuscate",value:function(e){var t=Date.now();this.logger.info(g.LoggingMessage.Version,"0.18.4"),this.logger.info(g.LoggingMessage.ObfuscationStarted),this.logger.info(g.LoggingMessage.RandomGeneratorSeed,this.randomGenerator.getSeed());var n=this.parseCode(e),r=this.transformAstTree(n),i=this.generateCode(e,r),o=(Date.now()-t)/1e3;return this.logger.success(g.LoggingMessage.ObfuscationCompleted,o),this.getObfuscatedCode(i)}},{key:"parseCode",value:function(e){return b.EspreeFacade.parse(e,r.espreeParseOptions)}},{key:"transformAstTree",value:function(e){return!v.NodeGuards.isProgramNode(e)||e.body.length||e.leadingComments||e.trailingComments?(e=this.runTransformationStage(e,y.TransformationStage.Preparing),this.options.deadCodeInjection&&(e=this.runTransformationStage(e,y.TransformationStage.DeadCodeInjection)),this.options.controlFlowFlattening&&(e=this.runTransformationStage(e,y.TransformationStage.ControlFlowFlattening)),e=this.runTransformationStage(e,y.TransformationStage.Converting),e=this.runTransformationStage(e,y.TransformationStage.Obfuscating),e=this.runTransformationStage(e,y.TransformationStage.Finalizing)):(this.logger.warn(g.LoggingMessage.EmptySourceCode),e)}},{key:"generateCode",value:function(e,t){var n=Object.assign({},r.escodegenParams);this.options.sourceMap&&(n.sourceMap=this.options.inputFileName||"sourceMap",n.sourceContent=e);var i=h.generate(t,Object.assign({},n,{format:{compact:this.options.compact}}));return i.map=i.map?i.map.toString():"",i}},{key:"getObfuscatedCode",value:function(e){return this.obfuscatedCodeFactory(e.code,e.map)}},{key:"runTransformationStage",value:function(e,t){return this.logger.info(g.LoggingMessage.TransformationStage,t),this.transformersRunner.transform(e,r.transformersList,t)}}]),e}();C.espreeParseOptions={attachComment:!0,comment:!0,ecmaFeatures:{experimentalObjectRestSpread:!0},ecmaVersion:9,loc:!0,range:!0},C.escodegenParams={comment:!0,verbatim:"x-verbatim-property",sourceMapWithCode:!0},C.transformersList=[m.NodeTransformer.BlockStatementControlFlowTransformer,m.NodeTransformer.ClassDeclarationTransformer,m.NodeTransformer.CommentsTransformer,m.NodeTransformer.CustomNodesTransformer,m.NodeTransformer.DeadCodeInjectionTransformer,m.NodeTransformer.EvalCallExpressionTransformer,m.NodeTransformer.FunctionControlFlowTransformer,m.NodeTransformer.CatchClauseTransformer,m.NodeTransformer.FunctionDeclarationTransformer,m.NodeTransformer.FunctionTransformer,m.NodeTransformer.ImportDeclarationTransformer,m.NodeTransformer.LabeledStatementTransformer,m.NodeTransformer.LiteralTransformer,m.NodeTransformer.MemberExpressionTransformer,m.NodeTransformer.MetadataTransformer,m.NodeTransformer.MethodDefinitionTransformer,m.NodeTransformer.ObfuscatingGuardsTransformer,m.NodeTransformer.ObjectExpressionKeysTransformer,m.NodeTransformer.ObjectExpressionTransformer,m.NodeTransformer.ParentificationTransformer,m.NodeTransformer.TemplateLiteralTransformer,m.NodeTransformer.VariableDeclarationTransformer],C=r=u([p.injectable(),l(0,p.inject(f.ServiceIdentifiers.ITransformersRunner)),l(1,p.inject(f.ServiceIdentifiers.IRandomGenerator)),l(2,p.inject(f.ServiceIdentifiers.Factory__IObfuscatedCode)),l(3,p.inject(f.ServiceIdentifiers.ILogger)),l(4,p.inject(f.ServiceIdentifiers.IOptions)),d("design:paramtypes",[Object,Object,Function,Object,Object])],C),t.JavaScriptObfuscator=C},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.EmptySourceCode="Empty source code. Obfuscation canceled...",e.ObfuscationCompleted="Obfuscation completed. Total time: %s sec.",e.ObfuscationStarted="Obfuscation started...",e.RandomGeneratorSeed="Random generator seed: %s...",e.TransformationStage="Transformation stage: %s...",e.Version="Version: %s"}(t.LoggingMessage||(t.LoggingMessage={}))},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(3)),a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},s=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var u=a(n(82)),d=s(n(107)),l=function(){function e(){(0,i.default)(this,e)}return(0,o.default)(e,null,[{key:"parse",value:function(t,n){for(var r=e.sourceTypes.length,i=0;i"),u="...".concat(i.substring(o,a).replace(/^\s+/,""),"...");throw new Error("Line ".concat(r.line,": ").concat(n,"\n").concat(s," ").concat(u))}}]),e}();l.colorError=d.default.red,l.nearestSymbolsCount=15,l.sourceTypes=["script","module"],t.EspreeFacade=l},function(e,t,n){"use strict";var r=/[|\\{}()[\]^$+*?.]/g;e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(r,"\\$&")}},function(e,t,n){"use strict";(function(e){const t=n(361),r=(e,n)=>(function(){return`[${e.apply(t,arguments)+n}m`}),i=(e,n)=>(function(){const r=e.apply(t,arguments);return`[${38+n};5;${r}m`}),o=(e,n)=>(function(){const r=e.apply(t,arguments);return`[${38+n};2;${r[0]};${r[1]};${r[2]}m`});Object.defineProperty(e,"exports",{enumerable:!0,get:function(){const e=new Map,n={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};n.color.grey=n.color.gray;for(const t of Object.keys(n)){const r=n[t];for(const t of Object.keys(r)){const i=r[t];n[t]={open:`[${i[0]}m`,close:`[${i[1]}m`},r[t]=n[t],e.set(i[0],i[1])}Object.defineProperty(n,t,{value:r,enumerable:!1}),Object.defineProperty(n,"codes",{value:e,enumerable:!1})}const a=e=>e,s=(e,t,n)=>[e,t,n];n.color.close="",n.bgColor.close="",n.color.ansi={ansi:r(a,0)},n.color.ansi256={ansi256:i(a,0)},n.color.ansi16m={rgb:o(s,0)},n.bgColor.ansi={ansi:r(a,10)},n.bgColor.ansi256={ansi256:i(a,10)},n.bgColor.ansi16m={rgb:o(s,10)};for(let e of Object.keys(t)){if("object"!=typeof t[e])continue;const a=t[e];"ansi16"===e&&(e="ansi"),"ansi16"in a&&(n.color.ansi[e]=r(a.ansi16,0),n.bgColor.ansi[e]=r(a.ansi16,10)),"ansi256"in a&&(n.color.ansi256[e]=i(a.ansi256,0),n.bgColor.ansi256[e]=i(a.ansi256,10)),"rgb"in a&&(n.color.ansi16m[e]=o(a.rgb,0),n.bgColor.ansi16m[e]=o(a.rgb,10))}return n}})}).call(this,n(47)(e))},function(e,t,n){var r=n(108),i=n(363),o={};Object.keys(r).forEach(function(e){o[e]={},Object.defineProperty(o[e],"channels",{value:r[e].channels}),Object.defineProperty(o[e],"labels",{value:r[e].labels});var t=i(e);Object.keys(t).forEach(function(n){var r=t[n];o[e][n]=function(e){var t=function(t){if(void 0===t||null===t)return t;arguments.length>1&&(t=Array.prototype.slice.call(arguments));var n=e(t);if("object"==typeof n)for(var r=n.length,i=0;i1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(r)})}),e.exports=o},function(e,t,n){"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},function(e,t,n){var r=n(108);function i(e){var t=function(){for(var e={},t=Object.keys(r),n=t.length,i=0;it?u(t):n))}else n.push(Number(t));return n}function l(e,t){const n={};for(const e of t)for(const t of e.styles)n[t[0]]=e.inverse?null:t.slice(1);let r=e;for(const e of Object.keys(n))if(Array.isArray(n[e])){if(!(e in r))throw new Error(`Unknown Chalk style: ${e}`);r=n[e].length>0?r[e].apply(r,n[e]):r[e]}return r}e.exports=((e,t)=>{const n=[],o=[];let a=[];if(t.replace(r,(t,r,s,c,p,f)=>{if(r)a.push(u(r));else if(c){const t=a.join("");a=[],o.push(0===n.length?t:l(e,n)(t)),n.push({inverse:s,styles:function(e){i.lastIndex=0;const t=[];let n;for(;null!==(n=i.exec(e));){const e=n[1];if(n[2]){const r=d(e,n[2]);t.push([e].concat(r))}else t.push([e])}return t}(c)})}else if(p){if(0===n.length)throw new Error("Found extraneous } in Chalk template literal");o.push(l(e,n)(a.join(""))),a=[],n.pop()}else a.push(f)}),o.push(a.join("")),n.length>0){const e=`Chalk template literal is missing ${n.length} closing bracket${1===n.length?"":"s"} (\`}\`)`;throw new Error(e)}return o.join("")})},function(e,t,n){"use strict";var r,i=n(0),o=i(n(1)),a=i(n(3)),s=i(n(5)),u=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,s.default)(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var u=e.length-1;u>=0;u--)(i=e[u])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},d=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,s.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},l=function(e,t){return function(n,r){t(n,r,e)}},c=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var p=n(2),f=n(4),h=c(n(107)),g=n(367),m=r=function(){function e(t){(0,o.default)(this,e),this.options=t}return(0,a.default)(e,[{key:"info",value:function(e,t){this.options.log&&r.log(r.colorInfo,g.LoggingPrefix.Base,e,t)}},{key:"success",value:function(e,t){this.options.log&&r.log(r.colorSuccess,g.LoggingPrefix.Base,e,t)}},{key:"warn",value:function(e,t){this.options.log&&r.log(r.colorWarn,g.LoggingPrefix.Base,e,t)}}],[{key:"log",value:function(e,t,n,r){var i=e("\n".concat(t," ").concat(n));console.log(i,r||"")}}]),e}();m.colorInfo=h.default.cyan,m.colorSuccess=h.default.green,m.colorWarn=h.default.yellow,m=r=u([p.injectable(),l(0,p.inject(f.ServiceIdentifiers.IOptions)),d("design:paramtypes",[Object])],m),t.Logger=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.Base="[javascript-obfuscator]",e.CLI="[javascript-obfuscator-cli]"}(t.LoggingPrefix||(t.LoggingPrefix={}))},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(7)),a=r(n(6)),s=r(n(8)),u=r(n(5)),d=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,u.default)(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};Object.defineProperty(t,"__esModule",{value:!0});var l=n(2),c=n(369);l.decorate(l.injectable(),c.EventEmitter);var p=function(e){function t(){return(0,i.default)(this,t),(0,o.default)(this,(0,a.default)(t).apply(this,arguments))}return(0,s.default)(t,e),t}(c.EventEmitter);p=d([l.injectable()],p),t.ObfuscationEventEmitter=p},function(e,t){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function r(e){return"function"==typeof e}function i(e){return"object"==typeof e&&null!==e}function o(e){return void 0===e}e.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},n.prototype.emit=function(e){var t,n,a,s,u,d;if(this._events||(this._events={}),"error"===e&&(!this._events.error||i(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var l=new Error('Uncaught, unspecified "error" event. ('+t+")");throw l.context=t,l}if(o(n=this._events[e]))return!1;if(r(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:s=Array.prototype.slice.call(arguments,1),n.apply(this,s)}else if(i(n))for(s=Array.prototype.slice.call(arguments,1),a=(d=n.slice()).length,u=0;u0&&this._events[e].length>a&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace()),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(e,t){if(!r(t))throw TypeError("listener must be a function");var n=!1;function i(){this.removeListener(e,i),n||(n=!0,t.apply(this,arguments))}return i.listener=t,this.on(e,i),this},n.prototype.removeListener=function(e,t){var n,o,a,s;if(!r(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(a=(n=this._events[e]).length,o=-1,n===t||r(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(i(n)){for(s=a;s-- >0;)if(n[s]===t||n[s].listener&&n[s].listener===t){o=s;break}if(o<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(o,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},n.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(r(n=this._events[e]))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},n.prototype.listeners=function(e){return this._events&&this._events[e]?r(this._events[e])?[this._events[e]]:this._events[e].slice():[]},n.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(r(t))return 1;if(t)return t.length}return 0},n.listenerCount=function(e,t){return e.listenerCount(t)}},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(3)),a=r(n(5)),s=function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,a.default)(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var u=e.length-1;u>=0;u--)(i=e[u])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},u=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,a.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},d=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var l=n(2),c=n(4),p=n(11),f=n(50),h=function(){function e(t,n){(0,i.default)(this,e),this.cryptUtils=t,this.options=n}return(0,o.default)(e,[{key:"initialize",value:function(e,t){this.obfuscatedCode=e,this.sourceMap=t}},{key:"getObfuscatedCode",value:function(){return this.correctObfuscatedCode()}},{key:"getSourceMap",value:function(){return this.sourceMap}},{key:"toString",value:function(){return this.obfuscatedCode}},{key:"correctObfuscatedCode",value:function(){if(!this.sourceMap)return this.obfuscatedCode;var e=this.options.sourceMapBaseUrl+this.options.sourceMapFileName,t="//# sourceMappingURL=";switch(this.options.sourceMapMode){case f.SourceMapMode.Inline:t+="data:application/json;base64,".concat(this.cryptUtils.btoa(this.sourceMap));break;case f.SourceMapMode.Separate:default:if(!e)return this.obfuscatedCode;t+=e}return"".concat(this.obfuscatedCode,"\n").concat(t)}}]),e}();s([p.initializable(),u("design:type",String)],h.prototype,"obfuscatedCode",void 0),s([p.initializable(),u("design:type",String)],h.prototype,"sourceMap",void 0),h=s([l.injectable(),d(0,l.inject(c.ServiceIdentifiers.ICryptUtils)),d(1,l.inject(c.ServiceIdentifiers.IOptions)),u("design:paramtypes",[Object,Object])],h),t.ObfuscatedCode=h},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(3));Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(t,n){(0,i.default)(this,e),this.sourceCode=t,this.sourceMap=n}return(0,o.default)(e,[{key:"getSourceCode",value:function(){return this.sourceCode}},{key:"getSourceMap",value:function(){return this.sourceMap}},{key:"toString",value:function(){return this.sourceCode}}]),e}();t.SourceCode=a},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(3)),a=r(n(5)),s=function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,a.default)(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var u=e.length-1;u>=0;u--)(i=e[u])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},u=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,a.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},d=function(e,t){return function(n,r){t(n,r,e)}},l=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var c=n(2),p=n(4),f=l(n(18)),h=n(373),g=n(10),m=n(20),y=function(){function e(t){(0,i.default)(this,e),this.nodeTransformerFactory=t}return(0,o.default)(e,[{key:"transform",value:function(e,t,n){if(!t.length)return e;for(var r,i=[],o=[],a=t.length,s=0;s0&&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(o,!1,r),c(a,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(a,e),d=Reflect.getMetadata(i,e),u=c.includes(r)||s.has(r)||d.has(r);if(!u){var l=e[r];if("function"==typeof l){var f=Object.getOwnPropertyDescriptor(e,r)||n,p=f.value;Object.defineProperty(e,r,Object.assign({},f,{value:function(){if(!Reflect.getMetadata(o,this))throw new Error("Class should be initialized with `".concat(t,"()` method"));return p.apply(this,arguments)}})),d.add(r)}}})}(r,e),function(e,t,r){var a=Object.getOwnPropertyDescriptor(e,t)||n,i=a.value;Object.defineProperty(e,t,Object.assign({},a,{value:function(){Reflect.defineMetadata(o,!0,this);var e=i.apply(this,arguments);return this[r],e}}))}(r,e,d),function(e,t){Reflect.getMetadata(a,e).add(t);var r="_".concat(t.toString()),o=Object.getOwnPropertyDescriptor(e,r)||n;return Object.defineProperty(e,t,Object.assign({},o,{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}})),o}(r,d)}}},function(e,t,r){"use strict";var n=r(0),o=n(r(50)),a=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,a.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 a,i=t[n];a=null===i||i instanceof RegExp?i:Array.isArray(i)?i.map(e.cloneRecursive):"object"===(0,o.default)(i)?e.cloneRecursive(i):i,r[n]=a}}),r}}]),e}();t.NodeUtils=p},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){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 o=r(4),a=r(2),i=r(5),s=function e(t,r){(0,n.default)(this,e),this.randomGenerator=t,this.options=r};s=o.__decorate([a.injectable(),o.__param(0,a.inject(i.ServiceIdentifiers.IRandomGenerator)),o.__param(1,a.inject(i.ServiceIdentifiers.IOptions)),o.__metadata("design:paramtypes",[Object,Object])],s),t.AbstractNodeTransformer=s},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i=r(4).__importStar(r(44)),s=r(19),c=function(){function e(){(0,o.default)(this,e)}return(0,a.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({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=r(0),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i,s=r(4),c=r(2),d=r(5),u=r(94),l=r(95),f=i=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,a.default)(e,[{key:"getNode",value:function(){return this.cachedNode||(this.cachedNode=this.getNodeStructure()),this.cachedNode}},{key:"getGlobalVariableTemplate",value:function(){return this.randomGenerator.getRandomGenerator().pickone(i.globalVariableTemplateFunctions)}}]),e}();f.globalVariableTemplateFunctions=[u.GlobalVariableTemplate1(),l.GlobalVariableTemplate2()],f=i=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),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){(0,o.default)(this,e)}return(0,a.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";var n=r(0),o=n(r(65)),a=n(r(1)),i=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var s=r(2),c=r(5),d=r(66),u=r(71),l=r(79),f=r(87),p=r(133),m=r(134),g=r(137),N=r(138),v=r(152),y=r(168),h=r(178),_=r(183),b=r(189),S=r(63),I=r(192),C=r(194),F=r(195),O=r(196),j=function(){function e(){(0,a.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 F.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(O.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(h.storagesModule),this.container.load(_.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 o=t.container.getNamed(e,n);return r.set(n,o),o}}}},{key:"getConstructorFactory",value:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n1&&void 0!==arguments[1]?arguments[1]:1/0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;if(n.length>=r)return n;var a=t.parentNode;if(!a)throw new ReferenceError("`parentNode` property of given node is `undefined`");return(i.NodeGuards.isProgramNode(t)||i.NodeGuards.isNodeWithLexicalScopeStatements(t,a)&&o>0)&&n.push(t),t!==a?e.getParentNodesWithStatementsRecursive(a,r,n,++o):n}},{key:"getSiblingStatementByOffset",value:function(t,r){var n=e.getScopeOfNode(t),o=i.NodeGuards.isSwitchCaseNode(n)?n.consequent:n.body;return o[o.indexOf(t)+r]||null}}]),e}();t.NodeStatementUtils=s},function(e,t,r){"use strict";var n=r(0),o=n(r(28)),a=n(r(1)),i=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var s=r(9),c=function(){function e(){(0,a.default)(this,e)}return(0,i.default)(e,null,[{key:"append",value:function(t,r){r=e.parentizeScopeStatementsBeforeAppend(t,r),e.setScopeStatements(t,(0,o.default)(e.getScopeStatements(t)).concat((0,o.default)(r)))}},{key:"appendToOptimalBlockScope",value:function(t,r,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=t.length?e.getOptimalBlockScope(t,o):r;e.prepend(a,n)}},{key:"getOptimalBlockScope",value:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,o=t[r];if(n<=0)throw new Error("Invalid `deep` argument value. Value should be bigger then 0.");return n>1&&o.stackTrace.length?e.getOptimalBlockScope(o.stackTrace,0,--n):o.callee}},{key:"insertAfter",value:function(t,r,n){var o=e.getScopeStatements(t).indexOf(n);e.insertAtIndex(t,r,o+1)}},{key:"insertAtIndex",value:function(t,r,n){r=e.parentizeScopeStatementsBeforeAppend(t,r),e.setScopeStatements(t,(0,o.default)(e.getScopeStatements(t).slice(0,n)).concat((0,o.default)(r),(0,o.default)(e.getScopeStatements(t).slice(n))))}},{key:"prepend",value:function(t,r){r=e.parentizeScopeStatementsBeforeAppend(t,r),e.setScopeStatements(t,(0,o.default)(r).concat((0,o.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),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i=r(9),s=function(){function e(){(0,o.default)(this,e)}return(0,a.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]:[],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;if(n.length>=r)return n;var a=t.parentNode;if(!a)throw new ReferenceError("`parentNode` property of given node is `undefined`");return i.NodeGuards.isNodeWithLexicalScope(t)&&n.push(t),t!==a?e.getLexicalScopesRecursive(a,r,n,++o):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"}(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),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0}),r(62);var i=r(5),s=r(20),c=function(){function e(){(0,o.default)(this,e)}return(0,a.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).obfuscate(e);return r.unload(),n}}]),e}();c.version="0.18.3",t.JavaScriptObfuscator=c},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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,o.default)(this,e),this.identifierNamesGenerator=t(n),this.randomGenerator=r,this.options=n}return(0,a.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),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){(0,o.default)(this,e)}return(0,a.default)(e,null,[{key:"extractDomainFrom",value:function(e){return(e.indexOf("://")>-1||0===e.indexOf("//")?e.split("/")[2]:e.split("/")[0]).split(":")[0]}}]),e}();i.hexadecimalPrefix="0x",t.Utils=i},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),o=r(23),a=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:a.SourceMapMode.Separate,stringArray:!1,stringArrayEncoding:!1,stringArrayThreshold:0,target:o.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),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){(0,o.default)(this,e)}return(0,a.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 o=r(4),a=r(2),i=r(5),s=function e(t){(0,n.default)(this,e),this.options=t};s=o.__decorate([a.injectable(),o.__param(0,a.inject(i.ServiceIdentifiers.IOptions)),o.__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 o=r(4),a=r(2),i=function e(){(0,n.default)(this,e)};i=o.__decorate([a.injectable()],i),t.AbstractCalleeDataExtractor=i},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i,s=r(4),c=r(2),d=r(5),u=i=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,a.default)(e,[{key:"insertCustomNodeToControlFlowStorage",value:function(e,t,r,n){var o=this,a=t.getStorageId(),s=i.getStorageKeysByIdForCurrentStorage(this.replacerDataByControlFlowStorageId,a),c=s.get(r);if(this.randomGenerator.getMathRandom()1&&void 0!==arguments[1]&&arguments[1];this.storage=new Map((0,o.default)(this.storage).concat((0,o.default)(e.getStorage()))),t&&(this.storageId=e.getStorageId())}},{key:"set",value:function(e,t){this.storage.set(e,t)}}]),e}();c.__decorate([l.initializable(),c.__metadata("design:type",String)],f.prototype,"storageId",void 0),c.__decorate([l.initializable(),c.__metadata("design:type",Map)],f.prototype,"storage",void 0),c.__decorate([d.postConstruct(),c.__metadata("design:type",Function),c.__metadata("design:paramtypes",[]),c.__metadata("design:returntype",void 0)],f.prototype,"initialize",null),f=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])],f),t.MapStorage=f},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i,s=r(4),c=r(2),d=r(5),u=s.__importDefault(r(186)),l=r(187),f=r(10),p=i=function(){function e(t,r){(0,o.default)(this,e),this.sourceCode=t,this.options=r}return(0,a.default)(e,[{key:"initialize",value:function(){var e,t,r,n=this;this.seed=0!==this.options.seed?this.options.seed:(e=0,t=999999999,Math.floor(Math.random()*(t-e+1)+e)),this.randomGenerator=new l.Chance((r=u.default(n.sourceCode.getSourceCode()),n.seed+Number(r.replace(/\D/g,""))))}},{key:"getMathRandom",value:function(){return this.getRandomInteger(0,99999)/1e5}},{key:"getRandomGenerator",value:function(){return this.randomGenerator}},{key:"getRandomInteger",value:function(e,t){return this.getRandomGenerator().integer({min:e,max:t})}},{key:"getRandomString",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.randomGeneratorPool;return this.getRandomGenerator().string({length:e,pool:t})}},{key:"getSeed",value:function(){return this.seed}}]),e}();p.randomGeneratorPool="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",s.__decorate([f.initializable(),s.__metadata("design:type",Object)],p.prototype,"randomGenerator",void 0),s.__decorate([f.initializable(),s.__metadata("design:type",Number)],p.prototype,"seed",void 0),s.__decorate([c.postConstruct(),s.__metadata("design:type",Function),s.__metadata("design:paramtypes",[]),s.__metadata("design:returntype",void 0)],p.prototype,"initialize",null),p=i=s.__decorate([c.injectable(),s.__param(0,c.inject(d.ServiceIdentifiers.ISourceCode)),s.__param(1,c.inject(d.ServiceIdentifiers.IOptions)),s.__metadata("design:paramtypes",[Object,Object])],p),t.RandomGenerator=p},function(e,t){e.exports=require("chalk")},function(e,t){e.exports=require("reflect-metadata")},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i,s=r(4),c=r(2),d=r(5),u=s.__importDefault(r(61)),l=r(64),f=i=function(){function e(t){(0,o.default)(this,e),this.options=t}return(0,a.default)(e,[{key:"info",value:function(e,t){this.options.log&&i.log(i.colorInfo,l.LoggingPrefix.Base,e,t)}},{key:"success",value:function(e,t){this.options.log&&i.log(i.colorSuccess,l.LoggingPrefix.Base,e,t)}},{key:"warn",value:function(e,t){this.options.log&&i.log(i.colorWarn,l.LoggingPrefix.Base,e,t)}}],[{key:"log",value:function(e,t,r,n){var o=e("\n".concat(t," ").concat(r));console.log(o,n||"")}}]),e}();f.colorInfo=u.default.cyan,f.colorSuccess=u.default.green,f.colorWarn=u.default.yellow,f=i=s.__decorate([c.injectable(),s.__param(0,c.inject(d.ServiceIdentifiers.IOptions)),s.__metadata("design:paramtypes",[Object])],f),t.Logger=f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.Base="[javascript-obfuscator]",e.CLI="[javascript-obfuscator-cli]"}(t.LoggingPrefix||(t.LoggingPrefix={}))},function(e,t){e.exports=require("@babel/runtime/helpers/construct")},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(20),o=r(2),a=r(5),i=r(47),s=r(67),c=r(68),d=r(69),u=r(70);t.analyzersModule=new o.ContainerModule(function(e){e(a.ServiceIdentifiers.IStackTraceAnalyzer).to(u.StackTraceAnalyzer).inSingletonScope(),e(a.ServiceIdentifiers.ICalleeDataExtractor).to(s.FunctionDeclarationCalleeDataExtractor).whenTargetNamed(i.CalleeDataExtractor.FunctionDeclarationCalleeDataExtractor),e(a.ServiceIdentifiers.ICalleeDataExtractor).to(c.FunctionExpressionCalleeDataExtractor).whenTargetNamed(i.CalleeDataExtractor.FunctionExpressionCalleeDataExtractor),e(a.ServiceIdentifiers.ICalleeDataExtractor).to(d.ObjectExpressionCalleeDataExtractor).whenTargetNamed(i.CalleeDataExtractor.ObjectExpressionCalleeDataExtractor),e(a.ServiceIdentifiers.Factory__ICalleeDataExtractor).toFactory(n.InversifyContainerFacade.getCacheFactory(a.ServiceIdentifiers.ICalleeDataExtractor))})},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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=d.__importStar(r(16)),f=r(42),p=r(9),m=r(24),g=function(e){function t(){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).apply(this,arguments))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"extract",value:function(e,t){if(!p.NodeGuards.isIdentifierNode(t))return null;var r=this.getCalleeBlockStatement(m.NodeStatementUtils.getParentNodeWithStatements(e[0]),t.name);return r?{callee:r,name:t.name}:null}},{key:"getCalleeBlockStatement",value:function(e,t){var r=null;return l.traverse(e,{enter:function(e){if(p.NodeGuards.isFunctionDeclarationNode(e)&&e.id.name===t)return r=e.body,l.VisitorOption.Break}}),r}}]),t}(f.AbstractCalleeDataExtractor);g=d.__decorate([u.injectable()],g),t.FunctionDeclarationCalleeDataExtractor=g},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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=d.__importStar(r(16)),f=r(42),p=r(9),m=r(24),g=function(e){function t(){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).apply(this,arguments))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"extract",value:function(e,t){var r=null;return p.NodeGuards.isIdentifierNode(t)&&(r=this.getCalleeBlockStatement(m.NodeStatementUtils.getParentNodeWithStatements(e[0]),t.name)),p.NodeGuards.isFunctionExpressionNode(t)&&(r=t.body),r?{callee:r,name:t.name||null}:null}},{key:"getCalleeBlockStatement",value:function(e,t){var r=null;return l.traverse(e,{enter:function(e,n){if(p.NodeGuards.isFunctionExpressionNode(e)&&n&&p.NodeGuards.isVariableDeclaratorNode(n)&&p.NodeGuards.isIdentifierNode(n.id)&&n.id.name===t)return r=e.body,l.VisitorOption.Break}}),r}}]),t}(f.AbstractCalleeDataExtractor);g=d.__decorate([u.injectable()],g),t.FunctionExpressionCalleeDataExtractor=g},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=u.__importStar(r(16)),p=r(42),m=r(9),g=r(24),N=d=function(e){function t(){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).apply(this,arguments))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"extract",value:function(e,t){if(!m.NodeGuards.isMemberExpressionNode(t))return null;var r=this.createObjectMembersCallsChain([],t);if(!r.length)return null;var n=r[r.length-1],o=this.getCalleeBlockStatement(g.NodeStatementUtils.getParentNodeWithStatements(e[0]),r);return o?{callee:o,name:n}:null}},{key:"createObjectMembersCallsChain",value:function(e,t){if(m.NodeGuards.isIdentifierNode(t.property)&&!1===t.computed)e.unshift(t.property.name);else{if(!m.NodeGuards.isLiteralNode(t.property)||"string"!=typeof t.property.value&&"number"!=typeof t.property.value)return e;e.unshift(t.property.value)}return m.NodeGuards.isMemberExpressionNode(t.object)?this.createObjectMembersCallsChain(e,t.object):(m.NodeGuards.isIdentifierNode(t.object)&&e.unshift(t.object.name),e)}},{key:"getCalleeBlockStatement",value:function(e,t){var r=this,n=t.shift();if(!n)return null;var o=null;return f.traverse(e,{enter:function(e){if(m.NodeGuards.isVariableDeclaratorNode(e)&&m.NodeGuards.isIdentifierNode(e.id)&&e.init&&m.NodeGuards.isObjectExpressionNode(e.init)&&e.id.name===n)return o=r.findCalleeBlockStatement(e.init.properties,t),f.VisitorOption.Break}}),o}},{key:"findCalleeBlockStatement",value:function(e,t){var r=t.shift();if(!r)return null;var n=!0,o=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(n=(i=s.next()).done);n=!0){var c=i.value;if(d.isValidTargetPropertyNode(c,r)){if(m.NodeGuards.isObjectExpressionNode(c.value))return this.findCalleeBlockStatement(c.value.properties,t);if(m.NodeGuards.isFunctionExpressionNode(c.value))return c.value.body}}}catch(e){o=!0,a=e}finally{try{n||null==s.return||s.return()}finally{if(o)throw a}}return null}}],[{key:"isValidTargetPropertyNode",value:function(e,t){if(!e.key)return!1;var r=m.NodeGuards.isIdentifierNode(e.key)&&e.key.name===t,n=m.NodeGuards.isLiteralNode(e.key)&&Boolean(e.key.value)&&e.key.value===t;return r||n}}]),t}(p.AbstractCalleeDataExtractor);N=d=u.__decorate([l.injectable()],N),t.ObjectExpressionCalleeDataExtractor=N},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i,s=r(4),c=r(2),d=r(5),u=s.__importStar(r(16)),l=r(47),f=r(9),p=r(24),m=i=function(){function e(t){(0,o.default)(this,e),this.calleeDataExtractorFactory=t}return(0,a.default)(e,[{key:"analyze",value:function(e){return this.analyzeRecursive(e.body)}},{key:"analyzeRecursive",value:function(e){for(var t=this,r=i.getLimitIndex(e.length),n=[],o=e.length,a=function(o){if(o>r)return"break";var a=e[o];u.traverse(a,{enter:function(r){if(f.NodeGuards.isCallExpressionNode(r))return a.parentNode!==p.NodeStatementUtils.getParentNodeWithStatements(r)?u.VisitorOption.Skip:void t.analyzeCallExpressionNode(n,e,r)}})},s=0;sr&&(n=Math.round(r+t*i.limitThreshold))>t&&(n=t),n}}]),e}();m.calleeDataExtractorsList=[l.CalleeDataExtractor.FunctionDeclarationCalleeDataExtractor,l.CalleeDataExtractor.FunctionExpressionCalleeDataExtractor,l.CalleeDataExtractor.ObjectExpressionCalleeDataExtractor],m.limitThresholdActivationLength=25,m.limitThreshold=.002,m=i=s.__decorate([c.injectable(),s.__param(0,c.inject(d.ServiceIdentifiers.Factory__ICalleeDataExtractor)),s.__metadata("design:paramtypes",[Function])],m),t.StackTraceAnalyzer=m},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(20),o=r(2),a=r(5),i=r(48),s=r(29),c=r(72),d=r(73),u=r(74),l=r(75),f=r(76),p=r(77),m=r(78);t.controlFlowTransformersModule=new o.ContainerModule(function(e){e(a.ServiceIdentifiers.INodeTransformer).to(d.BlockStatementControlFlowTransformer).whenTargetNamed(s.NodeTransformer.BlockStatementControlFlowTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(l.DeadCodeInjectionTransformer).whenTargetNamed(s.NodeTransformer.DeadCodeInjectionTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(f.FunctionControlFlowTransformer).whenTargetNamed(s.NodeTransformer.FunctionControlFlowTransformer),e(a.ServiceIdentifiers.IControlFlowReplacer).to(c.BinaryExpressionControlFlowReplacer).whenTargetNamed(i.ControlFlowReplacer.BinaryExpressionControlFlowReplacer),e(a.ServiceIdentifiers.IControlFlowReplacer).to(u.CallExpressionControlFlowReplacer).whenTargetNamed(i.ControlFlowReplacer.CallExpressionControlFlowReplacer),e(a.ServiceIdentifiers.IControlFlowReplacer).to(p.LogicalExpressionControlFlowReplacer).whenTargetNamed(i.ControlFlowReplacer.LogicalExpressionControlFlowReplacer),e(a.ServiceIdentifiers.IControlFlowReplacer).to(m.StringLiteralControlFlowReplacer).whenTargetNamed(i.ControlFlowReplacer.StringLiteralControlFlowReplacer),e(a.ServiceIdentifiers.Factory__IControlFlowReplacer).toFactory(n.InversifyContainerFacade.getCacheFactory(a.ServiceIdentifiers.IControlFlowReplacer))})},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=r(5),p=r(21),m=r(49),g=d=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r,n))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"replace",value:function(e,t,r){var n=e.operator,o=this.controlFlowCustomNodeFactory(p.ControlFlowCustomNode.BinaryExpressionFunctionNode);o.initialize(n);var a=this.insertCustomNodeToControlFlowStorage(o,r,n,d.usingExistingIdentifierChance);return this.getControlFlowStorageCallNode(r.getStorageId(),a,e.left,e.right)}}]),t}(m.ExpressionWithOperatorControlFlowReplacer);g.usingExistingIdentifierChance=.5,g=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IControlFlowCustomNode)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],g),t.BinaryExpressionControlFlowReplacer=g},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=r(5),p=u.__importStar(r(16)),m=r(21),g=r(12),N=r(13),v=r(9),y=r(11),h=d=function(e){function t(e,r,n,a){var c;return(0,o.default)(this,t),(c=(0,i.default)(this,(0,s.default)(t).call(this,n,a))).controlFlowCustomNodeFactory=e,c.arrayUtils=r,c}return(0,c.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case g.TransformationStage.ControlFlowFlattening:return{leave:function(e,r){if(r&&v.NodeGuards.isBlockStatementNode(e))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){if(this.randomGenerator.getMathRandom()>this.options.controlFlowFlatteningThreshold||!d.canTransformBlockStatementNode(e))return e;var r=e.body,n=this.arrayUtils.createWithRange(r.length),o=this.arrayUtils.shuffle(n),a=n.map(function(e){return o.indexOf(e)}),i=this.controlFlowCustomNodeFactory(m.ControlFlowCustomNode.BlockStatementControlFlowFlatteningNode);i.initialize(r,o,a);var s=i.getNode()[0];return y.NodeUtils.parentizeNode(s,t),s}}],[{key:"isProhibitedStatementNode",value:function(e){var t=v.NodeGuards.isBreakStatementNode(e)||v.NodeGuards.isContinueStatementNode(e),r=v.NodeGuards.isVariableDeclarationNode(e)&&("const"===e.kind||"let"===e.kind),n=v.NodeGuards.isClassDeclarationNode(e);return v.NodeGuards.isFunctionDeclarationNode(e)||t||r||n}},{key:"canTransformBlockStatementNode",value:function(e){var t=!0;return p.traverse(e,{enter:function(e){if(v.NodeGuards.isWhileStatementNode(e))return p.VisitorOption.Skip;d.isProhibitedStatementNode(e)&&(t=!1)}}),e.body.length<=4&&(t=!1),t}}]),t}(N.AbstractNodeTransformer);h=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IControlFlowCustomNode)),u.__param(1,l.inject(f.ServiceIdentifiers.IArrayUtils)),u.__param(2,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(3,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object,Object])],h),t.BlockStatementControlFlowTransformer=h},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=r(5),p=r(21),m=r(43),g=r(9),N=d=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r,n))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"replace",value:function(e,t,r){var n=e.callee;if(!g.NodeGuards.isIdentifierNode(n))return e;var o=String(e.arguments.length),a=this.controlFlowCustomNodeFactory(p.ControlFlowCustomNode.CallExpressionFunctionNode),i=e.arguments;a.initialize(i);var s=this.insertCustomNodeToControlFlowStorage(a,r,o,d.usingExistingIdentifierChance);return this.getControlFlowStorageCallNode(r.getStorageId(),s,n,i)}},{key:"getControlFlowStorageCallNode",value:function(e,t,r,n){var o=this.controlFlowCustomNodeFactory(p.ControlFlowCustomNode.CallExpressionControlFlowStorageCallNode);o.initialize(e,t,r,n);var a=o.getNode()[0];if(!a||!g.NodeGuards.isExpressionStatementNode(a))throw new Error("`controlFlowStorageCallCustomNode.getNode()[0]` should returns array with `ExpressionStatement` node");return a.expression}}]),t}(m.AbstractControlFlowReplacer);N.usingExistingIdentifierChance=.5,N=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IControlFlowCustomNode)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],N),t.CallExpressionControlFlowReplacer=N},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=r(5),p=u.__importStar(r(16)),m=r(52),g=r(29),N=r(19),v=r(12),y=r(13),h=r(14),_=r(9),b=r(24),S=r(11),I=d=function(e){function t(e,r,n,a){var c;return(0,o.default)(this,t),(c=(0,i.default)(this,(0,s.default)(t).call(this,n,a))).deadCodeInjectionRootAstHostNodeSet=new Set,c.collectedBlockStatements=[],c.collectedBlockStatementsTotalLength=0,c.deadCodeInjectionCustomNodeFactory=e,c.transformersRunner=r,c}return(0,c.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case v.TransformationStage.DeadCodeInjection:return{enter:function(e,r){if(r&&_.NodeGuards.isProgramNode(e))return t.analyzeNode(e,r),e},leave:function(e,r){if(r&&_.NodeGuards.isBlockStatementNode(e))return t.transformNode(e,r)}};case v.TransformationStage.Finalizing:return this.deadCodeInjectionRootAstHostNodeSet.size?{enter:function(e,r){if(r&&t.isDeadCodeInjectionRootAstHostNode(e))return t.restoreNode(e,r)}}:null;default:return null}}},{key:"analyzeNode",value:function(e,t){var r=this;p.traverse(e,{enter:function(e){if(_.NodeGuards.isBlockStatementNode(e)){var t=S.NodeUtils.clone(e);if(d.isValidCollectedBlockStatementNode(t)){var n=r.makeClonedBlockStatementNodeUnique(t);r.collectedBlockStatements.push(n)}}}}),this.collectedBlockStatementsTotalLength=this.collectedBlockStatements.length}},{key:"transformNode",value:function(e,t){if(!this.collectedBlockStatements.length||this.collectedBlockStatementsTotalLengththis.options.deadCodeInjectionThreshold||!d.isValidWrappedBlockStatementNode(e))return e;var r=this.collectedBlockStatements.length-1,n=this.randomGenerator.getRandomInteger(0,r),o=this.collectedBlockStatements.splice(n,1)[0];return o===e?e:this.replaceBlockStatementNode(e,o,t)}},{key:"restoreNode",value:function(e,t){var r=e.body[0];if(!_.NodeGuards.isFunctionDeclarationNode(r))throw new Error("Wrong dead code injection root AST host node. Host node should contain `FunctionDeclaration` node");return r.body}},{key:"isDeadCodeInjectionRootAstHostNode",value:function(e){return _.NodeGuards.isBlockStatementNode(e)&&this.deadCodeInjectionRootAstHostNodeSet.has(e)}},{key:"makeClonedBlockStatementNodeUnique",value:function(e){var t=h.NodeFactory.functionExpressionNode([],e);return S.NodeUtils.parentizeNode(t,t),S.NodeUtils.parentizeNode(e,t),this.transformersRunner.transform(t,d.transformersToRenameBlockScopeIdentifiers,v.TransformationStage.Obfuscating).body}},{key:"replaceBlockStatementNode",value:function(e,t,r){var n=h.NodeFactory.blockStatementNode([h.NodeFactory.functionDeclarationNode(d.deadCodeInjectionRootAstHostNodeName,[],t)]);this.deadCodeInjectionRootAstHostNodeSet.add(n);var o=this.deadCodeInjectionCustomNodeFactory(m.DeadCodeInjectionCustomNode.BlockStatementDeadCodeInjectionNode);o.initialize(e,n);var a=o.getNode()[0];return S.NodeUtils.parentizeNode(a,r),a}}],[{key:"isProhibitedNodeInsideCollectedBlockStatement",value:function(e){return _.NodeGuards.isBreakStatementNode(e)||_.NodeGuards.isContinueStatementNode(e)||_.NodeGuards.isAwaitExpressionNode(e)||_.NodeGuards.isSuperNode(e)}},{key:"isScopeHoistingFunctionDeclaration",value:function(e){if(!_.NodeGuards.isFunctionDeclarationNode(e))return!1;var t=b.NodeStatementUtils.getScopeOfNode(e),r=_.NodeGuards.isSwitchCaseNode(t)?t.consequent:t.body,n=r.indexOf(e);if(0===n)return!1;var o=r.slice(0,n),a=h.NodeFactory.blockStatementNode(o),i=e.id.name,s=!1;return p.traverse(a,{enter:function(e){if(_.NodeGuards.isIdentifierNode(e)&&e.name===i)return s=!0,p.VisitorOption.Break}}),s}},{key:"isValidCollectedBlockStatementNode",value:function(e){if(!e.body.length)return!1;var t=0,r=!0;return p.traverse(e,{enter:function(e){if(_.NodeGuards.isBlockStatementNode(e)&&t++,t>d.maxNestedBlockStatementsCount||d.isProhibitedNodeInsideCollectedBlockStatement(e)||d.isScopeHoistingFunctionDeclaration(e))return r=!1,p.VisitorOption.Break}}),r}},{key:"isValidWrappedBlockStatementNode",value:function(e){if(!e.body.length)return!1;var t=!0;return p.traverse(e,{enter:function(e){if(d.isScopeHoistingFunctionDeclaration(e))return t=!1,p.VisitorOption.Break}}),!!t&&b.NodeStatementUtils.getParentNodeWithStatements(e).type!==N.NodeType.Program}}]),t}(y.AbstractNodeTransformer);I.deadCodeInjectionRootAstHostNodeName="deadCodeInjectionRootAstHostNode",I.maxNestedBlockStatementsCount=4,I.minCollectedBlockStatementsCount=5,I.transformersToRenameBlockScopeIdentifiers=[g.NodeTransformer.CatchClauseTransformer,g.NodeTransformer.ClassDeclarationTransformer,g.NodeTransformer.FunctionDeclarationTransformer,g.NodeTransformer.FunctionTransformer,g.NodeTransformer.LabeledStatementTransformer,g.NodeTransformer.VariableDeclarationTransformer],I=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IDeadCodeInjectionCustomNode)),u.__param(1,l.inject(f.ServiceIdentifiers.ITransformersRunner)),u.__param(2,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(3,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object,Object])],I),t.DeadCodeInjectionTransformer=I},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=r(5),p=u.__importStar(r(16)),m=r(21),g=r(48),N=r(19),v=r(12),y=r(13),h=r(25),_=r(9),b=r(17),S=r(24),I=d=function(e){function t(e,r,n,a,c){var d;return(0,o.default)(this,t),(d=(0,i.default)(this,(0,s.default)(t).call(this,a,c))).controlFlowData=new Map,d.visitedFunctionNodes=new Set,d.hostNodesWithControlFlowNode=new Set,d.controlFlowStorageFactory=e,d.controlFlowReplacerFactory=r,d.controlFlowCustomNodeFactory=n,d}return(0,c.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case v.TransformationStage.ControlFlowFlattening:return{leave:function(e,r){if(r&&(_.NodeGuards.isFunctionDeclarationNode(e)||_.NodeGuards.isFunctionExpressionNode(e)||_.NodeGuards.isArrowFunctionExpressionNode(e)))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){if(this.visitedFunctionNodes.add(e),!_.NodeGuards.isBlockStatementNode(e.body))return e;var r=this.getHostNode(e.body),n=this.getControlFlowStorage(r);if(this.controlFlowData.set(r,n),this.transformFunctionBody(e.body,n),!n.getLength())return e;var o=this.controlFlowCustomNodeFactory(m.ControlFlowCustomNode.ControlFlowStorageNode);return o.initialize(n),h.NodeAppender.prepend(r,o.getNode()),this.hostNodesWithControlFlowNode.add(r),e}},{key:"getControlFlowStorage",value:function(e){var t=this.controlFlowStorageFactory();if(this.controlFlowData.has(e)){this.hostNodesWithControlFlowNode.has(e)&&(_.NodeGuards.isSwitchCaseNode(e)?e.consequent.shift():e.body.shift());var r=this.controlFlowData.get(e);t.mergeWith(r,!0)}return t}},{key:"getHostNode",value:function(e){var t=S.NodeStatementUtils.getParentNodesWithStatements(e);return 1===t.length?e:(t.pop(),t.length>d.hostNodeSearchMinDepth&&t.splice(0,d.hostNodeSearchMinDepth),t.length>d.hostNodeSearchMaxDepth&&(t.length=d.hostNodeSearchMaxDepth),this.randomGenerator.getRandomGenerator().pickone(t))}},{key:"isVisitedFunctionNode",value:function(e){return(_.NodeGuards.isFunctionDeclarationNode(e)||_.NodeGuards.isFunctionExpressionNode(e)||_.NodeGuards.isArrowFunctionExpressionNode(e))&&this.visitedFunctionNodes.has(e)}},{key:"transformFunctionBody",value:function(e,t){var r=this;p.replace(e,{enter:function(e,n){if(b.NodeMetadata.isIgnoredNode(e))return p.VisitorOption.Skip;if(r.isVisitedFunctionNode(e)||!n)return p.VisitorOption.Skip;if(!d.controlFlowReplacersMap.has(e.type))return e;if(r.randomGenerator.getMathRandom()>r.options.controlFlowFlatteningThreshold)return e;var o=d.controlFlowReplacersMap.get(e.type);return void 0===o?e:Object.assign({},r.controlFlowReplacerFactory(o).replace(e,n,t),{parentNode:n})}})}}]),t}(y.AbstractNodeTransformer);I.controlFlowReplacersMap=new Map([[N.NodeType.BinaryExpression,g.ControlFlowReplacer.BinaryExpressionControlFlowReplacer],[N.NodeType.CallExpression,g.ControlFlowReplacer.CallExpressionControlFlowReplacer],[N.NodeType.LogicalExpression,g.ControlFlowReplacer.LogicalExpressionControlFlowReplacer],[N.NodeType.Literal,g.ControlFlowReplacer.StringLiteralControlFlowReplacer]]),I.hostNodeSearchMinDepth=0,I.hostNodeSearchMaxDepth=2,I=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__TControlFlowStorage)),u.__param(1,l.inject(f.ServiceIdentifiers.Factory__IControlFlowReplacer)),u.__param(2,l.inject(f.ServiceIdentifiers.Factory__IControlFlowCustomNode)),u.__param(3,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(4,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Function,Function,Object,Object])],I),t.FunctionControlFlowTransformer=I},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=r(5),p=r(21),m=r(49),g=r(9),N=r(11),v=d=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r,n))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"replace",value:function(e,t,r){if(this.checkForProhibitedExpressions(e.left,e.right))return e;var n=e.operator,o=this.controlFlowCustomNodeFactory(p.ControlFlowCustomNode.LogicalExpressionFunctionNode);o.initialize(n);var a=this.insertCustomNodeToControlFlowStorage(o,r,n,d.usingExistingIdentifierChance);return this.getControlFlowStorageCallNode(r.getStorageId(),a,e.left,e.right)}},{key:"checkForProhibitedExpressions",value:function(e,t){return[e,t].some(function(e){var t;return t=g.NodeGuards.isUnaryExpressionNode(e)?N.NodeUtils.getUnaryExpressionArgumentNode(e):e,!(g.NodeGuards.isLiteralNode(t)||g.NodeGuards.isIdentifierNode(t)||g.NodeGuards.isObjectExpressionNode(t)||g.NodeGuards.isExpressionStatementNode(t))})}}]),t}(m.ExpressionWithOperatorControlFlowReplacer);v.usingExistingIdentifierChance=.5,v=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IControlFlowCustomNode)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],v),t.LogicalExpressionControlFlowReplacer=v},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=r(5),p=r(21),m=r(43),g=r(9),N=d=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r,n))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"replace",value:function(e,t,r){if(g.NodeGuards.isPropertyNode(t)&&t.key===e)return e;if("string"!=typeof e.value||e.value.length<3)return e;var n=String(e.value),o=this.controlFlowCustomNodeFactory(p.ControlFlowCustomNode.StringLiteralNode);o.initialize(e.value);var a=this.insertCustomNodeToControlFlowStorage(o,r,n,d.usingExistingIdentifierChance);return this.getControlFlowStorageCallNode(r.getStorageId(),a)}},{key:"getControlFlowStorageCallNode",value:function(e,t){var r=this.controlFlowCustomNodeFactory(p.ControlFlowCustomNode.StringLiteralControlFlowStorageCallNode);r.initialize(e,t);var n=r.getNode()[0];if(!n||!g.NodeGuards.isExpressionStatementNode(n))throw new Error("`controlFlowStorageCallCustomNode.getNode()[0]` should returns array with `ExpressionStatement` node");return n.expression}}]),t}(m.AbstractControlFlowReplacer);N.usingExistingIdentifierChance=1,N=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IControlFlowCustomNode)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],N),t.StringLiteralControlFlowReplacer=N},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(2),o=r(20),a=r(5),i=r(29),s=r(53),c=r(80),d=r(81),u=r(82),l=r(83),f=r(84),p=r(85),m=r(86);t.convertingTransformersModule=new n.ContainerModule(function(e){e(a.ServiceIdentifiers.INodeTransformer).to(d.MemberExpressionTransformer).whenTargetNamed(i.NodeTransformer.MemberExpressionTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(u.MethodDefinitionTransformer).whenTargetNamed(i.NodeTransformer.MethodDefinitionTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(l.ObjectExpressionKeysTransformer).whenTargetNamed(i.NodeTransformer.ObjectExpressionKeysTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(f.ObjectExpressionTransformer).whenTargetNamed(i.NodeTransformer.ObjectExpressionTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(p.TemplateLiteralTransformer).whenTargetNamed(i.NodeTransformer.TemplateLiteralTransformer),e(a.ServiceIdentifiers.IPropertiesExtractor).to(c.AssignmentExpressionPropertiesExtractor).whenTargetNamed(s.PropertiesExtractor.AssignmentExpressionPropertiesExtractor),e(a.ServiceIdentifiers.IPropertiesExtractor).to(m.VariableDeclaratorPropertiesExtractor).whenTargetNamed(s.PropertiesExtractor.VariableDeclaratorPropertiesExtractor),e(a.ServiceIdentifiers.Factory__IPropertiesExtractor).toFactory(o.InversifyContainerFacade.getCacheFactory(a.ServiceIdentifiers.IPropertiesExtractor))})},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(54),p=function(e){function t(e,r){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"extract",value:function(e,t){var r=t.parentNode,n=t.left;return f.AbstractPropertiesExtractor.isProhibitedPattern(n)?e:r&&f.AbstractPropertiesExtractor.isProhibitedHostParent(r)?e:this.transformObjectExpressionNode(e,n)}}]),t}(f.AbstractPropertiesExtractor);p=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Object,Object])],p),t.AssignmentExpressionPropertiesExtractor=p},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(12),p=r(13),m=r(14),g=r(9),N=function(e){function t(e,r){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case f.TransformationStage.Converting:return{enter:function(e,r){if(r&&g.NodeGuards.isMemberExpressionNode(e))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){if(g.NodeGuards.isIdentifierNode(e.property)){if(e.computed)return e;e.computed=!0,e.property=m.NodeFactory.literalNode(e.property.name)}return e}}]),t}(p.AbstractNodeTransformer);N=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Object,Object])],N),t.MemberExpressionTransformer=N},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=r(5),p=r(12),m=r(13),g=r(14),N=r(9),v=d=function(e){function t(e,r){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case p.TransformationStage.Converting:return{enter:function(e,r){if(r&&N.NodeGuards.isMethodDefinitionNode(e))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){return N.NodeGuards.isIdentifierNode(e.key)&&!d.ignoredNames.includes(e.key.name)&&!1===e.computed&&(e.computed=!0,e.key=g.NodeFactory.literalNode(e.key.name)),e}}]),t}(m.AbstractNodeTransformer);v.ignoredNames=["constructor"],v=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(1,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Object,Object])],v),t.MethodDefinitionTransformer=v},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=r(5),p=r(19),m=r(53),g=r(12),N=r(13),v=r(9),y=d=function(e){function t(e,r,n){var a;return(0,o.default)(this,t),(a=(0,i.default)(this,(0,s.default)(t).call(this,r,n))).propertiesExtractorFactory=e,a}return(0,c.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;return e!==g.TransformationStage.Converting?null:{enter:function(e,r){if(t.options.transformObjectKeys&&r&&v.NodeGuards.isObjectExpressionNode(e))return t.transformNode(e,r)}}}},{key:"transformNode",value:function(e,t){if(!e.properties.length)return e;var r=d.propertiesExtractorsMap.get(t.type);return r?this.propertiesExtractorFactory(r).extract(e,t):e}}]),t}(N.AbstractNodeTransformer);y.propertiesExtractorsMap=new Map([[p.NodeType.AssignmentExpression,m.PropertiesExtractor.AssignmentExpressionPropertiesExtractor],[p.NodeType.VariableDeclarator,m.PropertiesExtractor.VariableDeclaratorPropertiesExtractor]]),y=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IPropertiesExtractor)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],y),t.ObjectExpressionKeysTransformer=y},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(12),p=r(13),m=r(14),g=r(9),N=function(e){function t(e,r,n){var a;return(0,o.default)(this,t),(a=(0,i.default)(this,(0,s.default)(t).call(this,r,n))).escapeSequenceEncoder=e,a}return(0,c.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case f.TransformationStage.Converting:return{enter:function(e,r){if(r&&g.NodeGuards.isObjectExpressionNode(e))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){var r=this;return e.properties.forEach(function(e){e.key&&(e.computed?r.transformComputedProperty(e):r.transformBaseProperty(e))}),e}},{key:"transformComputedProperty",value:function(e){g.NodeGuards.isLiteralNode(e.key)&&"string"==typeof e.key.value&&(e.key=m.NodeFactory.literalNode(this.getPropertyKeyValue(e.key.value)))}},{key:"transformBaseProperty",value:function(e){e.shorthand&&(e.shorthand=!1),g.NodeGuards.isIdentifierNode(e.key)&&(e.key=m.NodeFactory.literalNode(this.getPropertyKeyValue(e.key.name)))}},{key:"getPropertyKeyValue",value:function(e){return this.options.unicodeEscapeSequence?this.escapeSequenceEncoder.encode(e,!0):e}}]),t}(p.AbstractNodeTransformer);N=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.IEscapeSequenceEncoder)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Object,Object,Object])],N),t.ObjectExpressionTransformer=N},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=r(5),p=r(12),m=r(13),g=r(14),N=r(9),v=r(11),y=d=function(e){function t(e,r){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case p.TransformationStage.Converting:return{leave:function(e,r){if(r&&d.isValidTemplateLiteralNode(e,r))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){var r,n=e.expressions,o=[];if(e.quasis.forEach(function(e){o.push(g.NodeFactory.literalNode(e.value.cooked));var t=n.shift();t&&o.push(t)}),o=o.filter(function(e){return!(N.NodeGuards.isLiteralNode(e)&&""===e.value)}),d.isLiteralNodeWithStringValue(o[0])||d.isLiteralNodeWithStringValue(o[1])||o.unshift(g.NodeFactory.literalNode("")),o.length>1){var a=g.NodeFactory.binaryExpressionNode("+",o.shift(),o.shift());o.forEach(function(e){a=g.NodeFactory.binaryExpressionNode("+",a,e)}),r=a}else r=o[0];return v.NodeUtils.parentizeAst(r),r}}],[{key:"isLiteralNodeWithStringValue",value:function(e){return e&&N.NodeGuards.isLiteralNode(e)&&"string"==typeof e.value}},{key:"isValidTemplateLiteralNode",value:function(e,t){return N.NodeGuards.isTemplateLiteralNode(e)&&!N.NodeGuards.isTaggedTemplateExpressionNode(t)}}]),t}(m.AbstractNodeTransformer);y=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(1,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Object,Object])],y),t.TemplateLiteralTransformer=y},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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=d.__importStar(r(16)),p=r(54),m=r(9),g=function(e){function t(e,r){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"extract",value:function(e,t){return!m.NodeGuards.isIdentifierNode(t.id)||this.isProhibitedObjectExpressionNode(e,t.id)?e:this.transformObjectExpressionNode(e,t.id)}},{key:"getHostVariableDeclaratorNode",value:function(e){var t=e.parentNode;if(!t||!m.NodeGuards.isVariableDeclaratorNode(t))throw new Error("Cannot get `VariableDeclarator` node for `ObjectExpression` node");return t}},{key:"getHostVariableDeclarationNode",value:function(e){var t=e.parentNode;if(!t||!m.NodeGuards.isVariableDeclarationNode(t))throw new Error("Cannot get `VariableDeclaration` node for `VariableDeclarator` node");return t}},{key:"isProhibitedObjectExpressionNode",value:function(e,t){var r=this.getHostVariableDeclaratorNode(e),n=this.getHostVariableDeclarationNode(r).declarations,o=n.indexOf(r);if(o===n.length-1)return!1;var a=!1;return n.slice(o).forEach(function(e){f.traverse(e,{enter:function(e){return m.NodeGuards.isMemberExpressionNode(e)&&m.NodeGuards.isIdentifierNode(e.object)&&e.object.name===t.name?(a=!0,f.VisitorOption.Break):e}})}),a}}]),t}(p.AbstractPropertiesExtractor);g=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Object,Object])],g),t.VariableDeclaratorPropertiesExtractor=g},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(20),o=r(2),a=r(5),i=r(21),s=r(31),c=r(55),d=r(52),u=r(88),l=r(89),f=r(90),p=r(91),m=r(92),g=r(93),N=r(96),v=r(97),y=r(98),h=r(99),_=r(100),b=r(101),S=r(103),I=r(105),C=r(107),F=r(111),O=r(113),j=r(114),k=r(115),T=r(117),x=r(119),E=r(126),w=r(128),G=r(131),R=r(132);t.customNodesModule=new o.ContainerModule(function(e){e(a.ServiceIdentifiers.ICustomNode).to(b.ConsoleOutputDisableExpressionNode).whenTargetNamed(s.CustomNode.ConsoleOutputDisableExpressionNode),e(a.ServiceIdentifiers.ICustomNode).to(S.DebugProtectionFunctionCallNode).whenTargetNamed(s.CustomNode.DebugProtectionFunctionCallNode),e(a.ServiceIdentifiers.ICustomNode).to(I.DebugProtectionFunctionIntervalNode).whenTargetNamed(s.CustomNode.DebugProtectionFunctionIntervalNode),e(a.ServiceIdentifiers.ICustomNode).to(C.DebugProtectionFunctionNode).whenTargetNamed(s.CustomNode.DebugProtectionFunctionNode),e(a.ServiceIdentifiers.ICustomNode).to(F.DomainLockNode).whenTargetNamed(s.CustomNode.DomainLockNode),e(a.ServiceIdentifiers.ICustomNode).to(k.NodeCallsControllerFunctionNode).whenTargetNamed(s.CustomNode.NodeCallsControllerFunctionNode),e(a.ServiceIdentifiers.ICustomNode).to(T.SelfDefendingUnicodeNode).whenTargetNamed(s.CustomNode.SelfDefendingUnicodeNode),e(a.ServiceIdentifiers.ICustomNode).to(x.StringArrayCallsWrapper).whenTargetNamed(s.CustomNode.StringArrayCallsWrapper),e(a.ServiceIdentifiers.ICustomNode).to(E.StringArrayNode).whenTargetNamed(s.CustomNode.StringArrayNode),e(a.ServiceIdentifiers.ICustomNode).to(w.StringArrayRotateFunctionNode).whenTargetNamed(s.CustomNode.StringArrayRotateFunctionNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(g.BinaryExpressionFunctionNode).whenTargetNamed(i.ControlFlowCustomNode.BinaryExpressionFunctionNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(N.BlockStatementControlFlowFlatteningNode).whenTargetNamed(i.ControlFlowCustomNode.BlockStatementControlFlowFlatteningNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(y.CallExpressionControlFlowStorageCallNode).whenTargetNamed(i.ControlFlowCustomNode.CallExpressionControlFlowStorageCallNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(h.CallExpressionFunctionNode).whenTargetNamed(i.ControlFlowCustomNode.CallExpressionFunctionNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(_.ControlFlowStorageNode).whenTargetNamed(i.ControlFlowCustomNode.ControlFlowStorageNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(O.ExpressionWithOperatorControlFlowStorageCallNode).whenTargetNamed(i.ControlFlowCustomNode.ExpressionWithOperatorControlFlowStorageCallNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(j.LogicalExpressionFunctionNode).whenTargetNamed(i.ControlFlowCustomNode.LogicalExpressionFunctionNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(R.StringLiteralNode).whenTargetNamed(i.ControlFlowCustomNode.StringLiteralNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(G.StringLiteralControlFlowStorageCallNode).whenTargetNamed(i.ControlFlowCustomNode.StringLiteralControlFlowStorageCallNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(v.BlockStatementDeadCodeInjectionNode).whenTargetNamed(d.DeadCodeInjectionCustomNode.BlockStatementDeadCodeInjectionNode),e(a.ServiceIdentifiers.ICustomNodeGroup).to(u.ConsoleOutputCustomNodeGroup).whenTargetNamed(c.CustomNodeGroup.ConsoleOutputCustomNodeGroup),e(a.ServiceIdentifiers.ICustomNodeGroup).to(l.DebugProtectionCustomNodeGroup).whenTargetNamed(c.CustomNodeGroup.DebugProtectionCustomNodeGroup),e(a.ServiceIdentifiers.ICustomNodeGroup).to(f.DomainLockCustomNodeGroup).whenTargetNamed(c.CustomNodeGroup.DomainLockCustomNodeGroup),e(a.ServiceIdentifiers.ICustomNodeGroup).to(p.SelfDefendingCustomNodeGroup).whenTargetNamed(c.CustomNodeGroup.SelfDefendingCustomNodeGroup),e(a.ServiceIdentifiers.ICustomNodeGroup).to(m.StringArrayCustomNodeGroup).whenTargetNamed(c.CustomNodeGroup.StringArrayCustomNodeGroup),e(a.ServiceIdentifiers.Factory__ICustomNode).toFactory(n.InversifyContainerFacade.getFactory(a.ServiceIdentifiers.ICustomNode)),e(a.ServiceIdentifiers.Factory__IControlFlowCustomNode).toFactory(n.InversifyContainerFacade.getConstructorFactory(a.ServiceIdentifiers.Newable__ICustomNode,a.ServiceIdentifiers.Factory__IIdentifierNamesGenerator,a.ServiceIdentifiers.IRandomGenerator,a.ServiceIdentifiers.IOptions)),e(a.ServiceIdentifiers.Factory__IDeadCodeInjectionCustomNode).toFactory(n.InversifyContainerFacade.getConstructorFactory(a.ServiceIdentifiers.Newable__ICustomNode,a.ServiceIdentifiers.Factory__IIdentifierNamesGenerator,a.ServiceIdentifiers.IRandomGenerator,a.ServiceIdentifiers.IOptions)),e(a.ServiceIdentifiers.Factory__ICustomNodeGroup).toFactory(n.InversifyContainerFacade.getFactory(a.ServiceIdentifiers.ICustomNodeGroup))})},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(10),p=r(31),m=r(26),g=r(33),N=r(25),v=function(e){function t(e,r,n,a){var c;return(0,o.default)(this,t),(c=(0,i.default)(this,(0,s.default)(t).call(this,r,n,a))).appendEvent=m.ObfuscationEvent.BeforeObfuscation,c.customNodeFactory=e,c}return(0,c.default)(t,e),(0,a.default)(t,[{key:"appendCustomNodes",value:function(e,t){var r=this.getRandomStackTraceIndex(t.length);this.appendCustomNodeIfExist(p.CustomNode.ConsoleOutputDisableExpressionNode,function(n){N.NodeAppender.appendToOptimalBlockScope(t,e,n.getNode(),r)}),this.appendCustomNodeIfExist(p.CustomNode.NodeCallsControllerFunctionNode,function(n){var o=t.length?N.NodeAppender.getOptimalBlockScope(t,r,1):e;N.NodeAppender.prepend(o,n.getNode())})}},{key:"initialize",value:function(){if(this.customNodes=new Map,this.options.disableConsoleOutput){var e=this.identifierNamesGenerator.generate(),t=this.customNodeFactory(p.CustomNode.ConsoleOutputDisableExpressionNode),r=this.customNodeFactory(p.CustomNode.NodeCallsControllerFunctionNode);t.initialize(e),r.initialize(this.appendEvent,e),this.customNodes.set(p.CustomNode.ConsoleOutputDisableExpressionNode,t),this.customNodes.set(p.CustomNode.NodeCallsControllerFunctionNode,r)}}}]),t}(g.AbstractCustomNodeGroup);d.__decorate([f.initializable(),d.__metadata("design:type",Map)],v.prototype,"customNodes",void 0),v=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__ICustomNode)),d.__param(1,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(3,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Function,Object,Object])],v),t.ConsoleOutputCustomNodeGroup=v},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(10),p=r(31),m=r(26),g=r(33),N=r(25),v=r(9),y=function(e){function t(e,r,n,a){var c;return(0,o.default)(this,t),(c=(0,i.default)(this,(0,s.default)(t).call(this,r,n,a))).appendEvent=m.ObfuscationEvent.BeforeObfuscation,c.customNodeFactory=e,c}return(0,c.default)(t,e),(0,a.default)(t,[{key:"appendCustomNodes",value:function(e,t){var r=this,n=this.getRandomStackTraceIndex(t.length);this.appendCustomNodeIfExist(p.CustomNode.DebugProtectionFunctionCallNode,function(r){N.NodeAppender.appendToOptimalBlockScope(t,e,r.getNode(),n)}),this.appendCustomNodeIfExist(p.CustomNode.DebugProtectionFunctionNode,function(t){N.NodeAppender.append(e,t.getNode())}),this.appendCustomNodeIfExist(p.CustomNode.DebugProtectionFunctionIntervalNode,function(t){var n=v.NodeGuards.isSwitchCaseNode(e)?e.consequent.length:e.body.length,o=r.randomGenerator.getRandomInteger(0,n);N.NodeAppender.insertAtIndex(e,t.getNode(),o)}),this.appendCustomNodeIfExist(p.CustomNode.NodeCallsControllerFunctionNode,function(r){var o=t.length?N.NodeAppender.getOptimalBlockScope(t,n,1):e;N.NodeAppender.prepend(o,r.getNode())})}},{key:"initialize",value:function(){if(this.customNodes=new Map,this.options.debugProtection){var e=this.identifierNamesGenerator.generate(),t=this.identifierNamesGenerator.generate(),r=this.customNodeFactory(p.CustomNode.DebugProtectionFunctionNode),n=this.customNodeFactory(p.CustomNode.DebugProtectionFunctionCallNode),o=this.customNodeFactory(p.CustomNode.DebugProtectionFunctionIntervalNode),a=this.customNodeFactory(p.CustomNode.NodeCallsControllerFunctionNode);r.initialize(e),n.initialize(e,t),o.initialize(e),a.initialize(this.appendEvent,t),this.customNodes.set(p.CustomNode.DebugProtectionFunctionNode,r),this.customNodes.set(p.CustomNode.DebugProtectionFunctionCallNode,n),this.options.debugProtectionInterval&&this.customNodes.set(p.CustomNode.DebugProtectionFunctionIntervalNode,o),this.customNodes.set(p.CustomNode.NodeCallsControllerFunctionNode,a)}}}]),t}(g.AbstractCustomNodeGroup);d.__decorate([f.initializable(),d.__metadata("design:type",Map)],y.prototype,"customNodes",void 0),y=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__ICustomNode)),d.__param(1,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(3,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Function,Object,Object])],y),t.DebugProtectionCustomNodeGroup=y},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(10),p=r(31),m=r(26),g=r(33),N=r(25),v=function(e){function t(e,r,n,a){var c;return(0,o.default)(this,t),(c=(0,i.default)(this,(0,s.default)(t).call(this,r,n,a))).appendEvent=m.ObfuscationEvent.BeforeObfuscation,c.customNodeFactory=e,c}return(0,c.default)(t,e),(0,a.default)(t,[{key:"appendCustomNodes",value:function(e,t){var r=this.getRandomStackTraceIndex(t.length);this.appendCustomNodeIfExist(p.CustomNode.DomainLockNode,function(n){N.NodeAppender.appendToOptimalBlockScope(t,e,n.getNode(),r)}),this.appendCustomNodeIfExist(p.CustomNode.NodeCallsControllerFunctionNode,function(n){var o=t.length?N.NodeAppender.getOptimalBlockScope(t,r,1):e;N.NodeAppender.prepend(o,n.getNode())})}},{key:"initialize",value:function(){if(this.customNodes=new Map,this.options.domainLock.length){var e=this.identifierNamesGenerator.generate(),t=this.customNodeFactory(p.CustomNode.DomainLockNode),r=this.customNodeFactory(p.CustomNode.NodeCallsControllerFunctionNode);t.initialize(e),r.initialize(this.appendEvent,e),this.customNodes.set(p.CustomNode.DomainLockNode,t),this.customNodes.set(p.CustomNode.NodeCallsControllerFunctionNode,r)}}}]),t}(g.AbstractCustomNodeGroup);d.__decorate([f.initializable(),d.__metadata("design:type",Map)],v.prototype,"customNodes",void 0),v=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__ICustomNode)),d.__param(1,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(3,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Function,Object,Object])],v),t.DomainLockCustomNodeGroup=v},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(10),p=r(31),m=r(26),g=r(33),N=r(25),v=function(e){function t(e,r,n,a){var c;return(0,o.default)(this,t),(c=(0,i.default)(this,(0,s.default)(t).call(this,r,n,a))).appendEvent=m.ObfuscationEvent.AfterObfuscation,c.customNodeFactory=e,c}return(0,c.default)(t,e),(0,a.default)(t,[{key:"appendCustomNodes",value:function(e,t){var r=this.getRandomStackTraceIndex(t.length);this.appendCustomNodeIfExist(p.CustomNode.SelfDefendingUnicodeNode,function(n){N.NodeAppender.appendToOptimalBlockScope(t,e,n.getNode(),r)}),this.appendCustomNodeIfExist(p.CustomNode.NodeCallsControllerFunctionNode,function(n){var o=t.length?N.NodeAppender.getOptimalBlockScope(t,r,1):e;N.NodeAppender.prepend(o,n.getNode())})}},{key:"initialize",value:function(){if(this.customNodes=new Map,this.options.selfDefending){var e=this.identifierNamesGenerator.generate(),t=this.customNodeFactory(p.CustomNode.SelfDefendingUnicodeNode),r=this.customNodeFactory(p.CustomNode.NodeCallsControllerFunctionNode);t.initialize(e),r.initialize(this.appendEvent,e),this.customNodes.set(p.CustomNode.SelfDefendingUnicodeNode,t),this.customNodes.set(p.CustomNode.NodeCallsControllerFunctionNode,r)}}}]),t}(g.AbstractCustomNodeGroup);d.__decorate([f.initializable(),d.__metadata("design:type",Map)],v.prototype,"customNodes",void 0),v=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__ICustomNode)),d.__param(1,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(3,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Function,Object,Object])],v),t.SelfDefendingCustomNodeGroup=v},function(e,t,r){"use strict";var n=r(0),o=n(r(30)),a=n(r(1)),i=n(r(3)),s=n(r(6)),c=n(r(7)),d=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var u=r(4),l=r(2),f=r(5),p=r(10),m=r(31),g=r(26),N=r(33),v=r(25),y=function(e){function t(e,r,n,o,i){var d;return(0,a.default)(this,t),(d=(0,s.default)(this,(0,c.default)(t).call(this,n,o,i))).appendEvent=g.ObfuscationEvent.AfterObfuscation,d.customNodeFactory=e,d.stringArrayStorage=r,d}return(0,d.default)(t,e),(0,i.default)(t,[{key:"appendCustomNodes",value:function(e,t){this.stringArrayStorage.getLength()&&(this.appendCustomNodeIfExist(m.CustomNode.StringArrayNode,function(t){v.NodeAppender.prepend(e,t.getNode())}),this.appendCustomNodeIfExist(m.CustomNode.StringArrayCallsWrapper,function(t){v.NodeAppender.insertAtIndex(e,t.getNode(),1)}),this.appendCustomNodeIfExist(m.CustomNode.StringArrayRotateFunctionNode,function(t){v.NodeAppender.insertAtIndex(e,t.getNode(),1)}))}},{key:"initialize",value:function(){if(this.customNodes=new Map,this.options.stringArray){var e,t=this.customNodeFactory(m.CustomNode.StringArrayNode),r=this.customNodeFactory(m.CustomNode.StringArrayCallsWrapper),n=this.customNodeFactory(m.CustomNode.StringArrayRotateFunctionNode),a=this.stringArrayStorage.getStorageId().split("|"),i=(0,o.default)(a,2),s=i[0],c=i[1];e=this.options.rotateStringArray?this.randomGenerator.getRandomInteger(100,500):0,t.initialize(this.stringArrayStorage,s,e),r.initialize(s,c),n.initialize(s,e),this.customNodes.set(m.CustomNode.StringArrayNode,t),this.customNodes.set(m.CustomNode.StringArrayCallsWrapper,r),this.options.rotateStringArray&&this.customNodes.set(m.CustomNode.StringArrayRotateFunctionNode,n)}}}]),t}(N.AbstractCustomNodeGroup);u.__decorate([p.initializable(),u.__metadata("design:type",Map)],y.prototype,"customNodes",void 0),y=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__ICustomNode)),u.__param(1,l.inject(f.ServiceIdentifiers.TStringArrayStorage)),u.__param(2,l.inject(f.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),u.__param(3,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(4,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Function,Object,Object])],y),t.StringArrayCustomNodeGroup=y},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(10),p=r(15),m=r(14),g=r(11),N=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r,n))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"initialize",value:function(e){this.operator=e}},{key:"getNodeStructure",value:function(){var e=m.NodeFactory.expressionStatementNode(m.NodeFactory.functionExpressionNode([m.NodeFactory.identifierNode("x"),m.NodeFactory.identifierNode("y")],m.NodeFactory.blockStatementNode([m.NodeFactory.returnStatementNode(m.NodeFactory.binaryExpressionNode(this.operator,m.NodeFactory.identifierNode("x"),m.NodeFactory.identifierNode("y")))])));return g.NodeUtils.parentizeAst(e),[e]}}]),t}(p.AbstractCustomNode);d.__decorate([f.initializable(),d.__metadata("design:type",String)],N.prototype,"operator",void 0),N=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object])],N),t.BinaryExpressionFunctionNode=N},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalVariableTemplate1=function(){return"\n var that;\n \n try {\n var getGlobal = Function('return (function() ' + '{}.constructor(\"return this\")( )' + ');');\n \n that = getGlobal();\n } catch (e) {\n that = window;\n }\n "}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalVariableTemplate2=function(){return"\n var getGlobal = function () {\n var globalObject;\n \n try {\n globalObject = Function('return (function() ' + '{}.constructor(\"return this\")( )' + ');')();\n } catch (e) {\n globalObject = window;\n }\n \n return globalObject;\n };\n var that = getGlobal();\n "}},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(10),p=r(15),m=r(14),g=r(9),N=r(11),v=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r,n))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"initialize",value:function(e,t,r){this.blockStatementBody=e,this.shuffledKeys=t,this.originalKeysIndexesInShuffledArray=r}},{key:"getNodeStructure",value:function(){var e=this,t=this.randomGenerator.getRandomString(6),r=this.randomGenerator.getRandomString(6),n=m.NodeFactory.blockStatementNode([m.NodeFactory.variableDeclarationNode([m.NodeFactory.variableDeclaratorNode(m.NodeFactory.identifierNode(t),m.NodeFactory.callExpressionNode(m.NodeFactory.memberExpressionNode(m.NodeFactory.literalNode(this.originalKeysIndexesInShuffledArray.join("|")),m.NodeFactory.identifierNode("split")),[m.NodeFactory.literalNode("|")])),m.NodeFactory.variableDeclaratorNode(m.NodeFactory.identifierNode(r),m.NodeFactory.literalNode(0))]),m.NodeFactory.whileStatementNode(m.NodeFactory.literalNode(!0),m.NodeFactory.blockStatementNode([m.NodeFactory.switchStatementNode(m.NodeFactory.memberExpressionNode(m.NodeFactory.identifierNode(t),m.NodeFactory.updateExpressionNode("++",m.NodeFactory.identifierNode(r)),!0),this.shuffledKeys.map(function(t,r){var n=e.blockStatementBody[t],o=[n];return g.NodeGuards.isReturnStatementNode(n)||o.push(m.NodeFactory.continueStatement()),m.NodeFactory.switchCaseNode(m.NodeFactory.literalNode(String(r)),o)})),m.NodeFactory.breakStatement()]))]);return N.NodeUtils.parentizeAst(n),[n]}}]),t}(p.AbstractCustomNode);d.__decorate([f.initializable(),d.__metadata("design:type",Array)],v.prototype,"blockStatementBody",void 0),d.__decorate([f.initializable(),d.__metadata("design:type",Array)],v.prototype,"originalKeysIndexesInShuffledArray",void 0),d.__decorate([f.initializable(),d.__metadata("design:type",Array)],v.prototype,"shuffledKeys",void 0),v=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object])],v),t.BlockStatementControlFlowFlatteningNode=v},function(e,t,r){"use strict";var n=r(0),o=n(r(30)),a=n(r(1)),i=n(r(3)),s=n(r(6)),c=n(r(7)),d=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var u=r(4),l=r(2),f=r(5),p=r(10),m=r(15),g=r(14),N=r(11),v=function(e){function t(e,r,n){return(0,a.default)(this,t),(0,s.default)(this,(0,c.default)(t).call(this,e,r,n))}return(0,d.default)(t,e),(0,i.default)(t,[{key:"initialize",value:function(e,t){this.blockStatementNode=e,this.deadCodeInjectionRootAstHostNode=t}},{key:"getNodeStructure",value:function(){var e=this.randomGenerator.getMathRandom()>.5,t=this.randomGenerator.getMathRandom()>.5,r=e?"===":"!==",n=this.randomGenerator.getRandomString(5),a=t?n:this.randomGenerator.getRandomString(5),i=e===t?[this.blockStatementNode,this.deadCodeInjectionRootAstHostNode]:[this.deadCodeInjectionRootAstHostNode,this.blockStatementNode],s=(0,o.default)(i,2),c=s[0],d=s[1],u=g.NodeFactory.blockStatementNode([g.NodeFactory.ifStatementNode(g.NodeFactory.binaryExpressionNode(r,g.NodeFactory.literalNode(n),g.NodeFactory.literalNode(a)),c,d)]);return N.NodeUtils.parentizeAst(u),[u]}}]),t}(m.AbstractCustomNode);u.__decorate([p.initializable(),u.__metadata("design:type",Object)],v.prototype,"blockStatementNode",void 0),u.__decorate([p.initializable(),u.__metadata("design:type",Object)],v.prototype,"deadCodeInjectionRootAstHostNode",void 0),v=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],v),t.BlockStatementDeadCodeInjectionNode=v},function(e,t,r){"use strict";var n=r(0),o=n(r(28)),a=n(r(1)),i=n(r(3)),s=n(r(6)),c=n(r(7)),d=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var u=r(4),l=r(2),f=r(5),p=r(10),m=r(15),g=r(14),N=r(11),v=function(e){function t(e,r,n){return(0,a.default)(this,t),(0,s.default)(this,(0,c.default)(t).call(this,e,r,n))}return(0,d.default)(t,e),(0,i.default)(t,[{key:"initialize",value:function(e,t,r,n){this.controlFlowStorageName=e,this.controlFlowStorageKey=t,this.callee=r,this.expressionArguments=n}},{key:"getNodeStructure",value:function(){var e=g.NodeFactory.expressionStatementNode(g.NodeFactory.callExpressionNode(g.NodeFactory.memberExpressionNode(g.NodeFactory.identifierNode(this.controlFlowStorageName),g.NodeFactory.identifierNode(this.controlFlowStorageKey)),[this.callee].concat((0,o.default)(this.expressionArguments))));return N.NodeUtils.parentizeAst(e),[e]}}]),t}(m.AbstractCustomNode);u.__decorate([p.initializable(),u.__metadata("design:type",Object)],v.prototype,"callee",void 0),u.__decorate([p.initializable(),u.__metadata("design:type",String)],v.prototype,"controlFlowStorageKey",void 0),u.__decorate([p.initializable(),u.__metadata("design:type",String)],v.prototype,"controlFlowStorageName",void 0),u.__decorate([p.initializable(),u.__metadata("design:type",Array)],v.prototype,"expressionArguments",void 0),v=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],v),t.CallExpressionControlFlowStorageCallNode=v},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(10),p=r(15),m=r(14),g=r(11),N=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r,n))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"initialize",value:function(e){this.expressionArguments=e}},{key:"getNodeStructure",value:function(){for(var e=m.NodeFactory.identifierNode("callee"),t=[],r=this.expressionArguments.length,n=0;n 0;\n \n switch (isPositive) {\n case true:\n return this.item + \'_\' + this.value + \'_\' + i;\n default:\n this.item + \'_\' + this.value;\n }\n }\n }()\n };\n };\n \n var regExp = new RegExp("[{diff}]", "g");\n var domains = "{domains}".replace(regExp, "").split(";");\n var document;\n var domain;\n var location;\n var hostname;\n\n for (var d in that) {\n if (d.length == 8 && d.charCodeAt(7) == 116 && d.charCodeAt(5) == 101 && d.charCodeAt(3) == 117 && d.charCodeAt(0) == 100) {\n document = d;\n \n break;\n }\n }\n\n for (var d1 in that[document]) {\n if (d1.length == 6 && d1.charCodeAt(5) == 110 && d1.charCodeAt(0) == 100) {\n domain = d1;\n \n break;\n }\n }\n\n if (!("~" > domain)) {\n for (var d2 in that[document]) {\n if (d2.length == 8 && d2.charCodeAt(7) == 110 && d2.charCodeAt(0) == 108) {\n location = d2;\n \n break;\n }\n }\n\n for (var d3 in that[document][location]) {\n if (d3.length == 8 && d3.charCodeAt(7) == 101 && d3.charCodeAt(0) == 104) {\n hostname = d3;\n \n break;\n }\n }\n }\n \n if (!document || !that[document]) {\n return;\n }\n \n var documentDomain = that[document][domain];\n var documentLocationHostName = !!that[document][location] && that[document][location][hostname];\n var currentDomain = documentDomain || documentLocationHostName;\n \n if (!currentDomain) {\n return;\n }\n \n var ok = false;\n \n for (var i = 0; i < domains.length; i++) {\n var domain = domains[i];\n var position = currentDomain.length - domain.length;\n var lastIndex = currentDomain.indexOf(domain, position);\n var endsWith = lastIndex !== -1 && lastIndex === position;\n \n if (endsWith) {\n if (currentDomain.length == domain.length || domain.indexOf(".") === 0) {\n ok = true;\n }\n }\n }\n \n if (!ok) {\n data;\n } else {\n return;\n }\n \n func();\n });\n\n {domainLockFunctionName}();\n '}},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(10),p=r(15),m=r(14),g=r(11),N=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r,n))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"initialize",value:function(e,t,r,n){this.controlFlowStorageName=e,this.controlFlowStorageKey=t,this.leftValue=r,this.rightValue=n}},{key:"getNodeStructure",value:function(){var e=m.NodeFactory.expressionStatementNode(m.NodeFactory.callExpressionNode(m.NodeFactory.memberExpressionNode(m.NodeFactory.identifierNode(this.controlFlowStorageName),m.NodeFactory.identifierNode(this.controlFlowStorageKey)),[this.leftValue,this.rightValue]));return g.NodeUtils.parentizeAst(e),[e]}}]),t}(p.AbstractCustomNode);d.__decorate([f.initializable(),d.__metadata("design:type",String)],N.prototype,"controlFlowStorageKey",void 0),d.__decorate([f.initializable(),d.__metadata("design:type",String)],N.prototype,"controlFlowStorageName",void 0),d.__decorate([f.initializable(),d.__metadata("design:type",Object)],N.prototype,"leftValue",void 0),d.__decorate([f.initializable(),d.__metadata("design:type",Object)],N.prototype,"rightValue",void 0),N=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object])],N),t.ExpressionWithOperatorControlFlowStorageCallNode=N},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(10),p=r(15),m=r(14),g=r(11),N=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r,n))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"initialize",value:function(e){this.operator=e}},{key:"getNodeStructure",value:function(){var e=m.NodeFactory.expressionStatementNode(m.NodeFactory.functionExpressionNode([m.NodeFactory.identifierNode("x"),m.NodeFactory.identifierNode("y")],m.NodeFactory.blockStatementNode([m.NodeFactory.returnStatementNode(m.NodeFactory.logicalExpressionNode(this.operator,m.NodeFactory.identifierNode("x"),m.NodeFactory.identifierNode("y")))])));return g.NodeUtils.parentizeAst(e),[e]}}]),t}(p.AbstractCustomNode);d.__decorate([f.initializable(),d.__metadata("design:type",String)],N.prototype,"operator",void 0),N=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object])],N),t.LogicalExpressionFunctionNode=N},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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=d.__importDefault(r(18)),p=r(26),m=r(10),g=r(116),N=r(38),v=r(15),y=r(32),h=r(11),_=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r,n))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"initialize",value:function(e,t){this.appendEvent=e,this.callsControllerFunctionName=t}},{key:"getNodeStructure",value:function(){return h.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){return this.appendEvent===p.ObfuscationEvent.AfterObfuscation?y.JavaScriptObfuscator.obfuscate(f.default(g.SingleNodeCallControllerTemplate(),{singleNodeCallControllerFunctionName:this.callsControllerFunctionName}),Object.assign({},N.NO_ADDITIONAL_NODES_PRESET,{identifierNamesGenerator:this.options.identifierNamesGenerator,seed:this.options.seed})).getObfuscatedCode():f.default(g.SingleNodeCallControllerTemplate(),{singleNodeCallControllerFunctionName:this.callsControllerFunctionName})}}]),t}(v.AbstractCustomNode);d.__decorate([m.initializable(),d.__metadata("design:type",String)],_.prototype,"callsControllerFunctionName",void 0),d.__decorate([m.initializable(),d.__metadata("design:type",String)],_.prototype,"appendEvent",void 0),_=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object])],_),t.NodeCallsControllerFunctionNode=_},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SingleNodeCallControllerTemplate=function(){return"\n var {singleNodeCallControllerFunctionName} = (function(){\n var firstCall = true;\n \n return function (context, fn){\n var rfn = firstCall ? function(){\n if(fn){\n var res = fn.apply(context, arguments);\n fn = null;\n return res;\n }\n } : function(){}\n \n firstCall = false;\n \n return rfn;\n }\n })();\n "}},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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=d.__importDefault(r(18)),p=r(10),m=r(38),g=r(118),N=r(15),v=r(32),y=r(11),h=function(e){function t(e,r,n,a){var c;return(0,o.default)(this,t),(c=(0,i.default)(this,(0,s.default)(t).call(this,e,r,a))).escapeSequenceEncoder=n,c}return(0,c.default)(t,e),(0,a.default)(t,[{key:"initialize",value:function(e){this.callsControllerFunctionName=e}},{key:"getNodeStructure",value:function(){return y.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){return v.JavaScriptObfuscator.obfuscate(f.default(g.SelfDefendingTemplate(this.escapeSequenceEncoder),{selfDefendingFunctionName:this.identifierNamesGenerator.generate(),singleNodeCallControllerFunctionName:this.callsControllerFunctionName}),Object.assign({},m.NO_ADDITIONAL_NODES_PRESET,{identifierNamesGenerator:this.options.identifierNamesGenerator,seed:this.options.seed,unicodeEscapeSequence:!0})).getObfuscatedCode()}}]),t}(N.AbstractCustomNode);d.__decorate([p.initializable(),d.__metadata("design:type",String)],h.prototype,"callsControllerFunctionName",void 0),h=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IEscapeSequenceEncoder)),d.__param(3,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object,Object])],h),t.SelfDefendingUnicodeNode=h},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SelfDefendingTemplate=function(e){return"\n var {selfDefendingFunctionName} = {singleNodeCallControllerFunctionName}(this, function () {\n var func1 = function(){return 'dev';},\n func2 = function () {\n return 'window';\n };\n \n var test1 = function () {\n var regExp = new RegExp('".concat(e.encode("\\w+ *\\(\\) *{\\w+ *['|\"].+['|\"];? *}",!0),"');\n \n return !regExp.test(func1.toString());\n };\n \n var test2 = function () {\n var regExp = new RegExp('").concat(e.encode("(\\\\[x|u](\\w){2,4})+",!0),"');\n \n return regExp.test(func2.toString());\n };\n \n var recursiveFunc1 = function (string) {\n var i = ~-1 >> 1 + 255 % 0;\n \n if (string.indexOf('i' === i)) {\n recursiveFunc2(string)\n }\n };\n \n var recursiveFunc2 = function (string) {\n var i = ~-4 >> 1 + 255 % 0;\n \n if (string.indexOf((true+\"\")[3]) !== i) {\n recursiveFunc1(string)\n }\n };\n \n if (!test1()) {\n if (!test2()) {\n recursiveFunc1('indеxOf');\n } else {\n recursiveFunc1('indexOf');\n }\n } else {\n recursiveFunc1('indеxOf');\n }\n })\n \n {selfDefendingFunctionName}();\n ")}},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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=d.__importDefault(r(18)),p=r(23),m=r(37),g=r(10),N=r(38),v=r(120),y=r(45),h=r(121),_=r(122),b=r(123),S=r(124),I=r(125),C=r(15),F=r(32),O=r(11),j=function(e){function t(e,r,n,a){var c;return(0,o.default)(this,t),(c=(0,i.default)(this,(0,s.default)(t).call(this,e,r,a))).escapeSequenceEncoder=n,c}return(0,c.default)(t,e),(0,a.default)(t,[{key:"initialize",value:function(e,t){this.stringArrayName=e,this.stringArrayCallsWrapperName=t}},{key:"getNodeStructure",value:function(){return O.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){var e=this.getDecodeStringArrayTemplate();return F.JavaScriptObfuscator.obfuscate(f.default(S.StringArrayCallsWrapperTemplate(),{decodeNodeTemplate:e,stringArrayCallsWrapperName:this.stringArrayCallsWrapperName,stringArrayName:this.stringArrayName}),Object.assign({},N.NO_ADDITIONAL_NODES_PRESET,{identifierNamesGenerator:this.options.identifierNamesGenerator,seed:this.options.seed})).getObfuscatedCode()}},{key:"getDecodeStringArrayTemplate",value:function(){var e=this.options.target!==p.ObfuscationTarget.BrowserNoEval?this.getGlobalVariableTemplate():y.GlobalVariableNoEvalTemplate(),t=f.default(v.AtobTemplate(),{globalVariableTemplate:e}),r="",n="";switch(this.options.selfDefending&&(n=f.default(_.SelfDefendingTemplate(this.randomGenerator,this.escapeSequenceEncoder),{stringArrayCallsWrapperName:this.stringArrayCallsWrapperName,stringArrayName:this.stringArrayName})),this.options.stringArrayEncoding){case m.StringArrayEncoding.Rc4:r=f.default(I.StringArrayRc4DecodeNodeTemplate(this.randomGenerator),{atobPolyfill:t,rc4Polyfill:h.Rc4Template(),selfDefendingCode:n,stringArrayCallsWrapperName:this.stringArrayCallsWrapperName});break;case m.StringArrayEncoding.Base64:r=f.default(b.StringArrayBase64DecodeNodeTemplate(this.randomGenerator),{atobPolyfill:t,selfDefendingCode:n,stringArrayCallsWrapperName:this.stringArrayCallsWrapperName})}return r}}]),t}(C.AbstractCustomNode);d.__decorate([g.initializable(),d.__metadata("design:type",String)],j.prototype,"stringArrayName",void 0),d.__decorate([g.initializable(),d.__metadata("design:type",String)],j.prototype,"stringArrayCallsWrapperName",void 0),j=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IEscapeSequenceEncoder)),d.__param(3,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object,Object])],j),t.StringArrayCallsWrapper=j},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AtobTemplate=function(){return"\n (function () {\n {globalVariableTemplate}\n \n var chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';\n\n that.atob || (\n that.atob = function(input) {\n var str = String(input).replace(/=+$/, '');\n for (\n var bc = 0, bs, buffer, idx = 0, output = '';\n buffer = str.charAt(idx++);\n ~buffer && (bs = bc % 4 ? bs * 64 + buffer : buffer,\n bc++ % 4) ? output += String.fromCharCode(255 & bs >> (-2 * bc & 6)) : 0\n ) {\n buffer = chars.indexOf(buffer);\n }\n return output;\n });\n })();\n "}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Rc4Template=function(){return"\n var rc4 = function (str, key) {\n var s = [], j = 0, x, res = '', newStr = '';\n \n str = atob(str);\n \n for (var k = 0, length = str.length; k < length; k++) {\n newStr += '%' + ('00' + str.charCodeAt(k).toString(16)).slice(-2);\n }\n \n str = decodeURIComponent(newStr);\n \t \n\t for (var 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 (var 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 res += String.fromCharCode(str.charCodeAt(y) ^ s[(s[i] + s[j]) % 256]);\n }\n \n return res;\n }\n "}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SelfDefendingTemplate=function(e,t){var r=e.getRandomString(6),n=e.getRandomString(6),o=e.getRandomString(6),a=e.getRandomString(6),i=e.getRandomString(6),s=e.getRandomString(6),c=e.getRandomString(6),d=e.getRandomString(6),u=e.getRandomString(6);return"\n var StatesClass = function (".concat(r,") {\n this.").concat(r," = ").concat(r,";\n this.").concat(n," = [1, 0, 0];\n this.").concat(o," = function(){return 'newState';};\n this.").concat(a," = '").concat(t.encode("\\w+ *\\(\\) *{\\w+ *",!0),"';\n this.").concat(i," = '").concat(t.encode("['|\"].+['|\"];? *}",!0),"';\n };\n \n StatesClass.prototype.").concat(s," = function () {\n var regExp = new RegExp(this.").concat(a," + this.").concat(i,");\n var expression = regExp.test(this.").concat(o,".toString())\n ? --this.").concat(n,"[1]\n : --this.").concat(n,"[0];\n \n return this.").concat(c,"(expression);\n };\n \n StatesClass.prototype.").concat(c," = function (").concat(u,") {\n if (!Boolean(~").concat(u,")) {\n return ").concat(u,";\n }\n \n return this.").concat(d,"(this.").concat(r,");\n };\n\n StatesClass.prototype.").concat(d," = function (").concat(r,") {\n for (var i = 0, len = this.").concat(n,".length; i < len; i++) {\n this.").concat(n,".push(Math.round(Math.random()));\n len = this.").concat(n,".length;\n }\n \n return ").concat(r,"(this.").concat(n,"[0]);\n };\n\n new StatesClass({stringArrayCallsWrapperName}).").concat(s,"();\n ")}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayBase64DecodeNodeTemplate=function(e){var t=e.getRandomString(6),r=e.getRandomString(6),n=e.getRandomString(6);return"\n if ({stringArrayCallsWrapperName}.".concat(t," === undefined) {\n {atobPolyfill}\n \n {stringArrayCallsWrapperName}.").concat(r," = function (str) {\n var string = atob(str);\n var newStringChars = [];\n \n for (var i = 0, length = string.length; i < length; i++) {\n newStringChars += '%' + ('00' + string.charCodeAt(i).toString(16)).slice(-2);\n }\n \n return decodeURIComponent(newStringChars);\n };\n \n {stringArrayCallsWrapperName}.").concat(n," = {};\n \n {stringArrayCallsWrapperName}.").concat(t," = true;\n }\n \n var cachedValue = {stringArrayCallsWrapperName}.").concat(n,"[index];\n \n if (cachedValue === undefined) {\n {selfDefendingCode}\n \n value = {stringArrayCallsWrapperName}.").concat(r,"(value);\n {stringArrayCallsWrapperName}.").concat(n,"[index] = value;\n } else {\n value = cachedValue;\n }\n ")}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayCallsWrapperTemplate=function(){return"\n var {stringArrayCallsWrapperName} = function (index, key) {\n index = index - 0;\n \n var value = {stringArrayName}[index];\n \n {decodeNodeTemplate}\n \n return value;\n };\n "}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayRc4DecodeNodeTemplate=function(e){var t=e.getRandomString(6),r=e.getRandomString(6),n=e.getRandomString(6),o=e.getRandomString(6);return"\n if ({stringArrayCallsWrapperName}.".concat(t," === undefined) {\n {atobPolyfill}\n \n {rc4Polyfill}\n {stringArrayCallsWrapperName}.").concat(r," = rc4;\n \n {stringArrayCallsWrapperName}.").concat(n," = {};\n \n {stringArrayCallsWrapperName}.").concat(t," = true;\n }\n \n var cachedValue = {stringArrayCallsWrapperName}.").concat(n,"[index];\n\n if (cachedValue === undefined) {\n if ({stringArrayCallsWrapperName}.").concat(o," === undefined) {\n {selfDefendingCode}\n \n {stringArrayCallsWrapperName}.").concat(o," = true;\n }\n \n value = {stringArrayCallsWrapperName}.").concat(r,"(value, key);\n {stringArrayCallsWrapperName}.").concat(n,"[index] = value;\n } else {\n value = cachedValue;\n }\n ")}},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(39)),d=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var u=r(4),l=r(2),f=r(5),p=u.__importDefault(r(18)),m=r(10),g=r(127),N=r(15),v=r(11),y=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r,n))}return(0,d.default)(t,e),(0,a.default)(t,[{key:"initialize",value:function(e,t,r){this.stringArrayStorage=e,this.stringArrayName=t,this.stringArrayRotateValue=r}},{key:"getNode",value:function(){return this.stringArrayStorage.rotateArray(this.stringArrayRotateValue),(0,c.default)((0,s.default)(t.prototype),"getNode",this).call(this)}},{key:"getNodeStructure",value:function(){return v.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){return p.default(g.StringArrayTemplate(),{stringArrayName:this.stringArrayName,stringArray:this.stringArrayStorage.toString()})}}]),t}(N.AbstractCustomNode);u.__decorate([m.initializable(),u.__metadata("design:type",Object)],y.prototype,"stringArrayStorage",void 0),u.__decorate([m.initializable(),u.__metadata("design:type",String)],y.prototype,"stringArrayName",void 0),u.__decorate([m.initializable(),u.__metadata("design:type",Number)],y.prototype,"stringArrayRotateValue",void 0),y=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],y),t.StringArrayNode=y},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayTemplate=function(){return"\n var {stringArrayName} = [{stringArray}];\n "}},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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=d.__importDefault(r(18)),p=r(10),m=r(38),g=r(129),N=r(130),v=r(15),y=r(32),h=r(11),_=r(40),b=function(e){function t(e,r,n,a){var c;return(0,o.default)(this,t),(c=(0,i.default)(this,(0,s.default)(t).call(this,e,r,a))).escapeSequenceEncoder=n,c}return(0,c.default)(t,e),(0,a.default)(t,[{key:"initialize",value:function(e,t){this.stringArrayName=e,this.stringArrayRotateValue=t}},{key:"getNodeStructure",value:function(){return h.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){var e=this.identifierNamesGenerator.generate(),t=this.identifierNamesGenerator.generate(),r="";return r=this.options.selfDefending?f.default(g.SelfDefendingTemplate(this.escapeSequenceEncoder),{timesName:e,whileFunctionName:t}):"".concat(t,"(++").concat(e,")"),y.JavaScriptObfuscator.obfuscate(f.default(N.StringArrayRotateFunctionTemplate(),{code:r,timesName:e,stringArrayName:this.stringArrayName,stringArrayRotateValue:_.NumberUtils.toHex(this.stringArrayRotateValue),whileFunctionName:t}),Object.assign({},m.NO_ADDITIONAL_NODES_PRESET,{identifierNamesGenerator:this.options.identifierNamesGenerator,seed:this.options.seed})).getObfuscatedCode()}}]),t}(v.AbstractCustomNode);d.__decorate([p.initializable(),d.__metadata("design:type",String)],b.prototype,"stringArrayName",void 0),d.__decorate([p.initializable(),d.__metadata("design:type",Number)],b.prototype,"stringArrayRotateValue",void 0),b=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IEscapeSequenceEncoder)),d.__param(3,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object,Object])],b),t.StringArrayRotateFunctionNode=b},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SelfDefendingTemplate=function(e){return"\n var selfDefendingFunc = function () {\n var object = {\n data: {\n key: 'cookie',\n value: 'timeout'\n },\n setCookie: function (options, name, value, document) {\n document = document || {};\n \n var updatedCookie = name + \"=\" + value;\n\n var i = 0;\n \n for (var i = 0, len = options.length; i < len; i++) {\n var propName = options[i];\n \n updatedCookie += \"; \" + propName;\n \n var propValue = options[propName];\n \n options.push(propValue);\n len = options.length;\n \n if (propValue !== true) {\n updatedCookie += \"=\" + propValue;\n }\n }\n\n document['cookie'] = updatedCookie;\n },\n removeCookie: function(){return 'dev';},\n getCookie: function (document, name) {\n document = document || function (value) { return value };\n var matches = document(new RegExp(\n \"(?:^|; )\" + name.replace(/([.$?*|{}()[]\\/+^])/g, '\\$1') + \"=([^;]*)\"\n ));\n \n var func = function (param1, param2) {\n param1(++param2);\n };\n \n func({whileFunctionName}, {timesName});\n \n return matches ? decodeURIComponent(matches[1]) : undefined;\n }\n };\n \n var test1 = function () {\n var regExp = new RegExp('".concat(e.encode("\\w+ *\\(\\) *{\\w+ *['|\"].+['|\"];? *}",!0),"');\n \n return regExp.test(object.removeCookie.toString());\n };\n \n object['updateCookie'] = test1;\n \n var cookie = '';\n var result = object['updateCookie']();\n \n if (!result) {\n object['setCookie'](['*'], 'counter', 1);\n } else if (result) {\n cookie = object['getCookie'](null, 'counter');\n } else {\n object['removeCookie']();\n }\n };\n \n selfDefendingFunc();\n ")}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayRotateFunctionTemplate=function(){return"\n (function (array, {timesName}) {\n var {whileFunctionName} = function (times) {\n while (--times) {\n array['push'](array['shift']());\n }\n };\n \n {code}\n })({stringArrayName}, 0x{stringArrayRotateValue});\n "}},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(10),p=r(15),m=r(14),g=r(11),N=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r,n))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"initialize",value:function(e,t){this.controlFlowStorageName=e,this.controlFlowStorageKey=t}},{key:"getNodeStructure",value:function(){var e=m.NodeFactory.expressionStatementNode(m.NodeFactory.memberExpressionNode(m.NodeFactory.identifierNode(this.controlFlowStorageName),m.NodeFactory.identifierNode(this.controlFlowStorageKey)));return g.NodeUtils.parentizeAst(e),[e]}}]),t}(p.AbstractCustomNode);d.__decorate([f.initializable(),d.__metadata("design:type",String)],N.prototype,"controlFlowStorageKey",void 0),d.__decorate([f.initializable(),d.__metadata("design:type",String)],N.prototype,"controlFlowStorageName",void 0),N=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object])],N),t.StringLiteralControlFlowStorageCallNode=N},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(10),p=r(15),m=r(14),g=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r,n))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"initialize",value:function(e){this.literalValue=e}},{key:"getNodeStructure",value:function(){return[m.NodeFactory.expressionStatementNode(m.NodeFactory.literalNode(this.literalValue))]}}]),t}(p.AbstractCustomNode);d.__decorate([f.initializable(),d.__metadata("design:type",String)],g.prototype,"literalValue",void 0),g=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),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.StringLiteralNode=g},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(2);t.finalizingTransformersModule=new n.ContainerModule(function(e){})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(2),o=r(5),a=r(35),i=r(135),s=r(136);t.generatorsModule=new n.ContainerModule(function(e){e(o.ServiceIdentifiers.IIdentifierNamesGenerator).to(i.HexadecimalIdentifierNamesGenerator).inSingletonScope().whenTargetNamed(a.IdentifierNamesGenerator.HexadecimalIdentifierNamesGenerator),e(o.ServiceIdentifiers.IIdentifierNamesGenerator).to(s.MangledIdentifierNamesGenerator).inSingletonScope().whenTargetNamed(a.IdentifierNamesGenerator.MangledIdentifierNamesGenerator),e(o.ServiceIdentifiers.Factory__IIdentifierNamesGenerator).toFactory(function(e){var t=null;return function(r){if(t)return t;var n;switch(r.identifierNamesGenerator){case a.IdentifierNamesGenerator.MangledIdentifierNamesGenerator:n=e.container.getNamed(o.ServiceIdentifiers.IIdentifierNamesGenerator,a.IdentifierNamesGenerator.MangledIdentifierNamesGenerator);break;case a.IdentifierNamesGenerator.HexadecimalIdentifierNamesGenerator:default:n=e.container.getNamed(o.ServiceIdentifiers.IIdentifierNamesGenerator,a.IdentifierNamesGenerator.HexadecimalIdentifierNamesGenerator)}return t=n,n}})})},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=r(5),p=r(56),m=r(40),g=r(34),N=d=function(e){function t(e,r){var n;return(0,o.default)(this,t),(n=(0,i.default)(this,(0,s.default)(t).call(this,e,r))).randomVariableNameSet=new Set,n}return(0,c.default)(t,e),(0,a.default)(t,[{key:"generate",value:function(e){var t=this.randomGenerator.getRandomInteger(1e4,99999999),r=m.NumberUtils.toHex(t),n=g.Utils.hexadecimalPrefix.length+1,o=e?e-n:d.baseIdentifierNameLength,a=r.substr(0,o),i="_".concat(g.Utils.hexadecimalPrefix).concat(a);return this.randomVariableNameSet.has(i)?this.generate(e):(this.randomVariableNameSet.add(i),i)}},{key:"generateWithPrefix",value:function(e){var t=this.generate(e);return"".concat(this.options.identifiersPrefix).concat(t).replace("__","_")}}]),t}(p.AbstractIdentifierNamesGenerator);N.baseIdentifierNameLength=6,N=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(1,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Object,Object])],N),t.HexadecimalIdentifierNamesGenerator=N},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(39)),d=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var u,l=r(4),f=r(2),p=r(5),m=r(56),g=u=function(e){function t(e,r){var n;return(0,o.default)(this,t),(n=(0,i.default)(this,(0,s.default)(t).call(this,e,r))).previousMangledName=u.initMangledNameCharacter,n}return(0,d.default)(t,e),(0,a.default)(t,[{key:"generate",value:function(e){var t=this.generateNewMangledName(this.previousMangledName);return this.previousMangledName=t,t}},{key:"generateWithPrefix",value:function(e){var t=this.options.identifiersPrefix?"".concat(this.options.identifiersPrefix,"_"):"",r=this.generate(e);return"".concat(t).concat(r)}},{key:"isValidIdentifierName",value:function(e){return(0,c.default)((0,s.default)(t.prototype),"isValidIdentifierName",this).call(this,e)&&!u.reservedNames.includes(e)}},{key:"generateNewMangledName",value:function(e){var t=function(e){var t=u.nameSequence,r=e.length,n=function(e){return"0".repeat(e)},o=r-1;do{var a=e.charAt(o),i=t.indexOf(a);if(i!==t.length-1)return e.substring(0,o)+t[i+1]+n(r-(o+1));--o}while(o>=0);return"a".concat(n(r))},r=t(e);return this.isValidIdentifierName(r)||(r=this.generateNewMangledName(r)),r}}]),t}(m.AbstractIdentifierNamesGenerator);g.initMangledNameCharacter="9",g.nameSequence="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""),g.reservedNames=["byte","case","char","do","else","enum","eval","for","goto","if","in","int","let","long","new","null","this","true","try","var","void","with"],g=u=l.__decorate([f.injectable(),l.__param(0,f.inject(p.ServiceIdentifiers.IRandomGenerator)),l.__param(1,f.inject(p.ServiceIdentifiers.IOptions)),l.__metadata("design:paramtypes",[Object,Object])],g),t.MangledIdentifierNamesGenerator=g},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(20),o=r(2),a=r(5);t.nodeTransformersModule=new o.ContainerModule(function(e){e(a.ServiceIdentifiers.Factory__INodeTransformer).toFactory(n.InversifyContainerFacade.getCacheFactory(a.ServiceIdentifiers.INodeTransformer))})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(20),o=r(2),a=r(5),i=r(22),s=r(57),c=r(29),d=r(139),u=r(140),l=r(141),f=r(142),p=r(143),m=r(144),g=r(145),N=r(146),v=r(147),y=r(148),h=r(149),_=r(150);t.obfuscatingTransformersModule=new o.ContainerModule(function(e){e(a.ServiceIdentifiers.INodeTransformer).to(l.CatchClauseTransformer).whenTargetNamed(c.NodeTransformer.CatchClauseTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(f.ClassDeclarationTransformer).whenTargetNamed(c.NodeTransformer.ClassDeclarationTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(p.FunctionDeclarationTransformer).whenTargetNamed(c.NodeTransformer.FunctionDeclarationTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(m.FunctionTransformer).whenTargetNamed(c.NodeTransformer.FunctionTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(g.ImportDeclarationTransformer).whenTargetNamed(c.NodeTransformer.ImportDeclarationTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(N.LabeledStatementTransformer).whenTargetNamed(c.NodeTransformer.LabeledStatementTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(v.LiteralTransformer).whenTargetNamed(c.NodeTransformer.LiteralTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(_.VariableDeclarationTransformer).whenTargetNamed(c.NodeTransformer.VariableDeclarationTransformer),e(a.ServiceIdentifiers.IObfuscatingReplacer).to(u.BooleanLiteralObfuscatingReplacer).whenTargetNamed(s.LiteralObfuscatingReplacer.BooleanLiteralObfuscatingReplacer),e(a.ServiceIdentifiers.IObfuscatingReplacer).to(y.NumberLiteralObfuscatingReplacer).whenTargetNamed(s.LiteralObfuscatingReplacer.NumberLiteralObfuscatingReplacer),e(a.ServiceIdentifiers.IObfuscatingReplacer).to(h.StringLiteralObfuscatingReplacer).whenTargetNamed(s.LiteralObfuscatingReplacer.StringLiteralObfuscatingReplacer),e(a.ServiceIdentifiers.IIdentifierObfuscatingReplacer).to(d.BaseIdentifierObfuscatingReplacer).whenTargetNamed(i.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer),e(a.ServiceIdentifiers.Factory__IObfuscatingReplacer).toFactory(n.InversifyContainerFacade.getCacheFactory(a.ServiceIdentifiers.IObfuscatingReplacer)),e(a.ServiceIdentifiers.Factory__IIdentifierObfuscatingReplacer).toFactory(n.InversifyContainerFacade.getCacheFactory(a.ServiceIdentifiers.IIdentifierObfuscatingReplacer))})},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(41),p=r(14),m=function(e){function t(e,r){var n;return(0,o.default)(this,t),(n=(0,i.default)(this,(0,s.default)(t).call(this,r))).blockScopesMap=new Map,n.identifierNamesGenerator=e(r),n}return(0,c.default)(t,e),(0,a.default)(t,[{key:"replace",value:function(e,t){if(this.blockScopesMap.has(t)){var r=this.blockScopesMap.get(t);r.has(e)&&(e=r.get(e))}return p.NodeFactory.identifierNode(e)}},{key:"storeGlobalName",value:function(e,t){if(!this.isReservedName(e)){var r=this.identifierNamesGenerator.generateWithPrefix();this.blockScopesMap.has(t)||this.blockScopesMap.set(t,new Map),this.blockScopesMap.get(t).set(e,r)}}},{key:"storeLocalName",value:function(e,t){if(!this.isReservedName(e)){var r=this.identifierNamesGenerator.generate();this.blockScopesMap.has(t)||this.blockScopesMap.set(t,new Map),this.blockScopesMap.get(t).set(e,r)}}},{key:"isReservedName",value:function(e){return!!this.options.reservedStrings.length&&this.options.reservedNames.some(function(t){return null!==new RegExp(t,"g").exec(e)})}}]),t}(f.AbstractObfuscatingReplacer);m=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object])],m),t.BaseIdentifierObfuscatingReplacer=m},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=r(5),p=r(41),m=r(14),g=d=function(e){function t(e){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"replace",value:function(e){return e?d.getTrueUnaryExpressionNode():d.getFalseUnaryExpressionNode()}}],[{key:"getTrueUnaryExpressionNode",value:function(){return m.NodeFactory.unaryExpressionNode("!",d.getFalseUnaryExpressionNode())}},{key:"getFalseUnaryExpressionNode",value:function(){return m.NodeFactory.unaryExpressionNode("!",m.NodeFactory.arrayExpressionNode())}}]),t}(p.AbstractObfuscatingReplacer);g=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Object])],g),t.BooleanLiteralObfuscatingReplacer=g},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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=d.__importStar(r(16)),p=r(22),m=r(12),g=r(13),N=r(9),v=r(27),y=r(17),h=function(e){function t(e,r,n){var a;return(0,o.default)(this,t),(a=(0,i.default)(this,(0,s.default)(t).call(this,r,n))).identifierObfuscatingReplacer=e(p.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer),a}return(0,c.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case m.TransformationStage.Obfuscating:return{enter:function(e,r){if(r&&N.NodeGuards.isCatchClauseNode(e))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){var r=v.NodeLexicalScopeUtils.getLexicalScope(e);return r?(this.storeCatchClauseParam(e,r),this.replaceCatchClauseParam(e,r),e):e}},{key:"storeCatchClauseParam",value:function(e,t){N.NodeGuards.isIdentifierNode(e.param)&&this.identifierObfuscatingReplacer.storeLocalName(e.param.name,t)}},{key:"replaceCatchClauseParam",value:function(e,t){var r=this;f.replace(e,{enter:function(e,n){if(n&&N.NodeGuards.isReplaceableIdentifierNode(e,n)){var o=r.identifierObfuscatingReplacer.replace(e.name,t).name;e.name!==o&&(e.name=o,y.NodeMetadata.set(e,{renamedIdentifier:!0}))}}})}}]),t}(g.AbstractNodeTransformer);h=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierObfuscatingReplacer)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object])],h),t.CatchClauseTransformer=h},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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=d.__importStar(r(16)),p=r(22),m=r(19),g=r(12),N=r(13),v=r(9),y=r(27),h=r(17),_=function(e){function t(e,r,n){var a;return(0,o.default)(this,t),(a=(0,i.default)(this,(0,s.default)(t).call(this,r,n))).replaceableIdentifiers=new Map,a.identifierObfuscatingReplacer=e(p.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer),a}return(0,c.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case g.TransformationStage.Obfuscating:return{enter:function(e,r){if(r&&v.NodeGuards.isClassDeclarationNode(e)&&!v.NodeGuards.isExportNamedDeclarationNode(r))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){var r=y.NodeLexicalScopeUtils.getLexicalScope(e);if(!r)return e;var n=r.type===m.NodeType.Program;return!this.options.renameGlobals&&n?e:(this.storeClassName(e,r,n),this.replaceableIdentifiers.has(r)?this.replaceScopeCachedIdentifiers(e,r):this.replaceScopeIdentifiers(r),e)}},{key:"storeClassName",value:function(e,t,r){r?this.identifierObfuscatingReplacer.storeGlobalName(e.id.name,t):this.identifierObfuscatingReplacer.storeLocalName(e.id.name,t)}},{key:"replaceScopeCachedIdentifiers",value:function(e,t){var r=this.replaceableIdentifiers.get(t).get(e.id.name);if(r)for(var n=r.length,o=0;o2&&void 0!==arguments[2]?arguments[2]:new Set,o={enter:function(o,a){if(v.NodeGuards.isFunctionNode(o)&&o!==e)return r.replaceFunctionParams(o,t,new Set(n)),p.VisitorOption.Skip;if(d.isProhibitedIdentifierOfShorthandPropertyNode(o))n.add(o.key.name);else if(a&&v.NodeGuards.isReplaceableIdentifierNode(o,a)&&!h.NodeMetadata.isRenamedIdentifier(o)&&!n.has(o.name)){if(r.isGlobalFunctionDeclarationIdentifier(o,a))return;var i=r.identifierObfuscatingReplacer.replace(o.name,t).name;o.name!==i&&(o.name=i,h.NodeMetadata.set(o,{renamedIdentifier:!0}))}}};p.replace(e,o)}}],[{key:"isProhibitedIdentifierOfPropertyNode",value:function(e,t){return v.NodeGuards.isIdentifierNode(e)&&!!t&&v.NodeGuards.isPropertyNode(t)&&t.key===e}},{key:"isProhibitedIdentifierOfShorthandPropertyNode",value:function(e){return v.NodeGuards.isPropertyNode(e)&&e.shorthand&&v.NodeGuards.isIdentifierNode(e.key)}}]),t}(N.AbstractNodeTransformer);b=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IIdentifierObfuscatingReplacer)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],b),t.FunctionTransformer=b},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=r(5),p=u.__importStar(r(16)),m=r(22),g=r(12),N=r(13),v=r(9),y=r(27),h=r(17),_=d=function(e){function t(e,r,n){var a;return(0,o.default)(this,t),(a=(0,i.default)(this,(0,s.default)(t).call(this,r,n))).replaceableIdentifiers=new Map,a.identifierObfuscatingReplacer=e(m.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer),a}return(0,c.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case g.TransformationStage.Obfuscating:return{enter:function(e,r){if(r&&v.NodeGuards.isImportDeclarationNode(e))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){var r=y.NodeLexicalScopeUtils.getLexicalScope(e);return r?(this.storeImportSpecifierNames(e,r),this.replaceableIdentifiers.has(r)?this.replaceScopeCachedIdentifiers(r):this.replaceScopeIdentifiers(r),e):e}},{key:"storeImportSpecifierNames",value:function(e,t){var r=this;e.specifiers.forEach(function(e){d.isProhibitedImportSpecifierNode(e)||r.identifierObfuscatingReplacer.storeGlobalName(e.local.name,t)})}},{key:"replaceScopeCachedIdentifiers",value:function(e){var t=this;this.replaceableIdentifiers.get(e).forEach(function(r){var n=t.identifierObfuscatingReplacer.replace(r.name,e);r.name=n.name,h.NodeMetadata.set(r,{renamedIdentifier:!0})})}},{key:"replaceScopeIdentifiers",value:function(e){var t=this,r=[];p.replace(e,{enter:function(n,o){if(o&&v.NodeGuards.isReplaceableIdentifierNode(n,o)&&!h.NodeMetadata.isRenamedIdentifier(n)){var a=t.identifierObfuscatingReplacer.replace(n.name,e).name;n.name!==a?(n.name=a,h.NodeMetadata.set(n,{renamedIdentifier:!0})):r.push(n)}}}),this.replaceableIdentifiers.set(e,r)}}],[{key:"isProhibitedImportSpecifierNode",value:function(e){return v.NodeGuards.isImportSpecifierNode(e)&&e.imported.name===e.local.name}}]),t}(N.AbstractNodeTransformer);_=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IIdentifierObfuscatingReplacer)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],_),t.ImportDeclarationTransformer=_},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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=d.__importStar(r(16)),p=r(22),m=r(12),g=r(13),N=r(9),v=r(27),y=function(e){function t(e,r,n){var a;return(0,o.default)(this,t),(a=(0,i.default)(this,(0,s.default)(t).call(this,r,n))).identifierObfuscatingReplacer=e(p.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer),a}return(0,c.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case m.TransformationStage.Obfuscating:return{enter:function(e,r){if(r&&N.NodeGuards.isLabeledStatementNode(e))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){var r=v.NodeLexicalScopeUtils.getLexicalScope(e);return r?(this.storeLabeledStatementName(e,r),this.replaceLabeledStatementName(e,r),e):e}},{key:"storeLabeledStatementName",value:function(e,t){this.identifierObfuscatingReplacer.storeLocalName(e.label.name,t)}},{key:"replaceLabeledStatementName",value:function(e,t){var r=this;f.replace(e,{enter:function(e,n){if(n&&N.NodeGuards.isLabelIdentifierNode(e,n)){var o=r.identifierObfuscatingReplacer.replace(e.name,t);e.name=o.name}}})}}]),t}(g.AbstractNodeTransformer);y=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierObfuscatingReplacer)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object])],y),t.LabeledStatementTransformer=y},function(e,t,r){"use strict";var n=r(0),o=n(r(50)),a=n(r(1)),i=n(r(3)),s=n(r(6)),c=n(r(7)),d=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var u=r(4),l=r(2),f=r(5),p=r(57),m=r(12),g=r(13),N=r(9),v=r(17),y=r(11),h=function(e){function t(e,r,n){var o;return(0,a.default)(this,t),(o=(0,s.default)(this,(0,c.default)(t).call(this,r,n))).literalObfuscatingReplacerFactory=e,o}return(0,d.default)(t,e),(0,i.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case m.TransformationStage.Obfuscating:return{enter:function(e,r){if(r&&N.NodeGuards.isLiteralNode(e)&&!v.NodeMetadata.isReplacedLiteral(e))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){if(this.isProhibitedNode(e,t))return e;var r;switch((0,o.default)(e.value)){case"boolean":r=this.literalObfuscatingReplacerFactory(p.LiteralObfuscatingReplacer.BooleanLiteralObfuscatingReplacer).replace(e.value);break;case"number":r=this.literalObfuscatingReplacerFactory(p.LiteralObfuscatingReplacer.NumberLiteralObfuscatingReplacer).replace(e.value);break;case"string":r=this.literalObfuscatingReplacerFactory(p.LiteralObfuscatingReplacer.StringLiteralObfuscatingReplacer).replace(e.value);break;default:r=e}return y.NodeUtils.parentizeNode(r,t),r}},{key:"isProhibitedNode",value:function(e,t){return!(!N.NodeGuards.isPropertyNode(t)||t.key!==e)||!!N.NodeGuards.isImportDeclarationNode(t)}}]),t}(g.AbstractNodeTransformer);h=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IObfuscatingReplacer)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],h),t.LiteralTransformer=h},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(41),p=r(14),m=r(40),g=r(34),N=function(e){function t(e){var r;return(0,o.default)(this,t),(r=(0,i.default)(this,(0,s.default)(t).call(this,e))).numberLiteralCache=new Map,r}return(0,c.default)(t,e),(0,a.default)(t,[{key:"replace",value:function(e){var t;return this.numberLiteralCache.has(e)?t=this.numberLiteralCache.get(e):(t=m.NumberUtils.isCeil(e)?"".concat(g.Utils.hexadecimalPrefix).concat(m.NumberUtils.toHex(e)):String(e),this.numberLiteralCache.set(e,t)),p.NodeFactory.literalNode(e,t)}}]),t}(f.AbstractObfuscatingReplacer);N=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Object])],N),t.NumberLiteralObfuscatingReplacer=N},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=r(5),p=r(37),m=r(41),g=r(17),N=r(14),v=r(40),y=r(34),h=d=function(e){function t(e,r,n,a,c){var u;return(0,o.default)(this,t),(u=(0,i.default)(this,(0,s.default)(t).call(this,c))).nodesCache=new Map,u.stringLiteralHexadecimalIndexCache=new Map,u.stringArrayStorage=e,u.escapeSequenceEncoder=r,u.randomGenerator=n,u.cryptUtils=a,u.rc4Keys=u.randomGenerator.getRandomGenerator().n(function(){return u.randomGenerator.getRandomGenerator().string({length:d.rc4KeyLength})},d.rc4KeysCount),u}return(0,c.default)(t,e),(0,a.default)(t,[{key:"replace",value:function(e){if(this.isReservedString(e))return this.replaceWithReservedLiteralNode(e);var t=this.canUseStringArray(e),r="".concat(e,"-").concat(String(t));if(this.nodesCache.has(r)&&this.options.stringArrayEncoding!==p.StringArrayEncoding.Rc4)return this.nodesCache.get(r);var n=t?this.replaceWithStringArrayCallNode(e):this.replaceWithLiteralNode(e);return this.nodesCache.set(r,n),n}},{key:"canUseStringArray",value:function(e){return this.options.stringArray&&e.length>=d.minimumLengthForStringArray&&this.randomGenerator.getMathRandom()<=this.options.stringArrayThreshold}},{key:"getStringArrayHexadecimalIndex",value:function(e,t){if(this.stringLiteralHexadecimalIndexCache.has(e))return{fromCache:!0,index:this.stringLiteralHexadecimalIndexCache.get(e)};var r=v.NumberUtils.toHex(t),n="".concat(y.Utils.hexadecimalPrefix).concat(r);return this.stringLiteralHexadecimalIndexCache.set(e,n),{fromCache:!1,index:n}}},{key:"getEncodedValue",value:function(e){var t,r=null;switch(this.options.stringArrayEncoding){case p.StringArrayEncoding.Rc4:r=this.randomGenerator.getRandomGenerator().pickone(this.rc4Keys),t=this.cryptUtils.btoa(this.cryptUtils.rc4(e,r));break;case p.StringArrayEncoding.Base64:t=this.cryptUtils.btoa(e);break;default:t=e}return{encodedValue:t,key:r}}},{key:"replaceWithLiteralNode",value:function(e){return N.NodeFactory.literalNode(this.escapeSequenceEncoder.encode(e,this.options.unicodeEscapeSequence))}},{key:"replaceWithReservedLiteralNode",value:function(e){return N.NodeFactory.literalNode(this.escapeSequenceEncoder.encode(e,!1))}},{key:"replaceWithStringArrayCallNode",value:function(e){var t=this.getEncodedValue(e),r=t.encodedValue,n=t.key,o=this.escapeSequenceEncoder.encode(r,this.options.unicodeEscapeSequence),a=this.stringArrayStorage.getLength(),i=this.stringArrayStorage.getStorageId().split("|")[1],s=this.getStringArrayHexadecimalIndex(o,a),c=s.fromCache,u=s.index;c||this.stringArrayStorage.set(a,o);var l=[d.getHexadecimalLiteralNode(u)];n&&l.push(d.getRc4KeyLiteralNode(this.escapeSequenceEncoder.encode(n,this.options.unicodeEscapeSequence)));var f=N.NodeFactory.identifierNode(i);return g.NodeMetadata.set(f,{renamedIdentifier:!0}),N.NodeFactory.callExpressionNode(f,l)}},{key:"isReservedString",value:function(e){return!!this.options.reservedStrings.length&&this.options.reservedStrings.some(function(t){return null!==new RegExp(t,"g").exec(e)})}}],[{key:"getHexadecimalLiteralNode",value:function(e){var t=N.NodeFactory.literalNode(e);return g.NodeMetadata.set(t,{replacedLiteral:!0}),t}},{key:"getRc4KeyLiteralNode",value:function(e){var t=N.NodeFactory.literalNode(e);return g.NodeMetadata.set(t,{replacedLiteral:!0}),t}}]),t}(m.AbstractObfuscatingReplacer);h.minimumLengthForStringArray=3,h.rc4KeyLength=4,h.rc4KeysCount=50,h=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.TStringArrayStorage)),u.__param(1,l.inject(f.ServiceIdentifiers.IEscapeSequenceEncoder)),u.__param(2,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(3,l.inject(f.ServiceIdentifiers.ICryptUtils)),u.__param(4,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Object,Object,Object,Object,Object])],h),t.StringLiteralObfuscatingReplacer=h},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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=d.__importStar(r(16)),p=r(22),m=r(19),g=r(12),N=r(13),v=r(9),y=r(27),h=r(151),_=r(17),b=function(e){function t(e,r,n){var a;return(0,o.default)(this,t),(a=(0,i.default)(this,(0,s.default)(t).call(this,r,n))).replaceableIdentifiers=new Map,a.identifierObfuscatingReplacer=e(p.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer),a}return(0,c.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case g.TransformationStage.Obfuscating:return{enter:function(e,r){if(r&&v.NodeGuards.isVariableDeclarationNode(e)&&!v.NodeGuards.isExportNamedDeclarationNode(r))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){var r="var"===e.kind?y.NodeLexicalScopeUtils.getLexicalScope(e):h.NodeBlockLexicalScopeUtils.getLexicalScope(e);if(!r)return e;var n=r.type===m.NodeType.Program;if(!this.options.renameGlobals&&n)return e;var o="var"===e.kind?r:t;return this.storeVariableNames(e,r,n),this.replaceableIdentifiers.has(o)?this.replaceScopeCachedIdentifiers(e,r,o):this.replaceScopeIdentifiers(o,r),e}},{key:"storeVariableNames",value:function(e,t,r){var n=this;this.traverseDeclarationIdentifiers(e,function(e){r?n.identifierObfuscatingReplacer.storeGlobalName(e.name,t):n.identifierObfuscatingReplacer.storeLocalName(e.name,t)})}},{key:"replaceScopeCachedIdentifiers",value:function(e,t,r){var n=this,o=this.replaceableIdentifiers.get(r),a=[];this.traverseDeclarationIdentifiers(e,function(e){a.push(e.name)}),a.forEach(function(e){var r=o.get(e);if(r)for(var a=r.length,i=0;i1&&void 0!==arguments[1]?arguments[1]:1/0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;if(n.length>=r)return n;var a=t.parentNode;if(!a)throw new ReferenceError("`parentNode` property of given node is `undefined`");return i.NodeGuards.isNodeWithBlockLexicalScope(t)&&n.push(t),t!==a?e.getLexicalScopesRecursive(a,r,n,++o):n}}]),e}();t.NodeBlockLexicalScopeUtils=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(2),o=r(5),a=r(153),i=r(156);t.optionsModule=new n.ContainerModule(function(e){e(o.ServiceIdentifiers.IOptions).to(a.Options).inSingletonScope(),e(o.ServiceIdentifiers.IOptionsNormalizer).to(i.OptionsNormalizer).inSingletonScope()})},function(e,t,r){"use strict";var n=r(0)(r(1));Object.defineProperty(t,"__esModule",{value:!0});var o,a=r(4),i=r(2),s=r(5),c=r(154),d=r(35),u=r(23),l=r(36),f=r(37),p=r(46),m=r(155),g=o=function e(t,r){(0,n.default)(this,e),Object.assign(this,p.DEFAULT_PRESET,t);var a=c.validateSync(this,o.validatorOptions);if(a.length)throw new ReferenceError("Validation failed. errors:\n".concat(m.ValidationErrorsFormatter.format(a)));Object.assign(this,r.normalize(this))};g.validatorOptions={validationError:{target:!1}},a.__decorate([c.IsBoolean(),a.__metadata("design:type",Boolean)],g.prototype,"compact",void 0),a.__decorate([c.IsBoolean(),a.__metadata("design:type",Boolean)],g.prototype,"controlFlowFlattening",void 0),a.__decorate([c.IsNumber(),c.Min(0),c.Max(1),a.__metadata("design:type",Number)],g.prototype,"controlFlowFlatteningThreshold",void 0),a.__decorate([c.IsBoolean(),a.__metadata("design:type",Boolean)],g.prototype,"deadCodeInjection",void 0),a.__decorate([c.IsNumber(),a.__metadata("design:type",Number)],g.prototype,"deadCodeInjectionThreshold",void 0),a.__decorate([c.IsBoolean(),a.__metadata("design:type",Boolean)],g.prototype,"debugProtection",void 0),a.__decorate([c.IsBoolean(),a.__metadata("design:type",Boolean)],g.prototype,"debugProtectionInterval",void 0),a.__decorate([c.IsBoolean(),a.__metadata("design:type",Boolean)],g.prototype,"disableConsoleOutput",void 0),a.__decorate([c.IsArray(),c.ArrayUnique(),c.IsString({each:!0}),a.__metadata("design:type",Array)],g.prototype,"domainLock",void 0),a.__decorate([c.IsIn([d.IdentifierNamesGenerator.HexadecimalIdentifierNamesGenerator,d.IdentifierNamesGenerator.MangledIdentifierNamesGenerator]),a.__metadata("design:type",String)],g.prototype,"identifierNamesGenerator",void 0),a.__decorate([c.IsString(),a.__metadata("design:type",String)],g.prototype,"identifiersPrefix",void 0),a.__decorate([c.IsString(),a.__metadata("design:type",String)],g.prototype,"inputFileName",void 0),a.__decorate([c.IsBoolean(),a.__metadata("design:type",Boolean)],g.prototype,"log",void 0),a.__decorate([c.IsBoolean(),a.__metadata("design:type",Boolean)],g.prototype,"renameGlobals",void 0),a.__decorate([c.IsArray(),c.ArrayUnique(),c.IsString({each:!0}),a.__metadata("design:type",Array)],g.prototype,"reservedNames",void 0),a.__decorate([c.IsArray(),c.ArrayUnique(),c.IsString({each:!0}),a.__metadata("design:type",Array)],g.prototype,"reservedStrings",void 0),a.__decorate([c.IsBoolean(),a.__metadata("design:type",Boolean)],g.prototype,"rotateStringArray",void 0),a.__decorate([c.IsNumber(),a.__metadata("design:type",Number)],g.prototype,"seed",void 0),a.__decorate([c.IsBoolean(),a.__metadata("design:type",Boolean)],g.prototype,"selfDefending",void 0),a.__decorate([c.IsBoolean(),a.__metadata("design:type",Boolean)],g.prototype,"sourceMap",void 0),a.__decorate([c.IsString(),c.ValidateIf(function(e){return Boolean(e.sourceMapBaseUrl)}),c.IsUrl({require_protocol:!0,require_tld:!1,require_valid_protocol:!0}),a.__metadata("design:type",String)],g.prototype,"sourceMapBaseUrl",void 0),a.__decorate([c.IsString(),a.__metadata("design:type",String)],g.prototype,"sourceMapFileName",void 0),a.__decorate([c.IsIn([l.SourceMapMode.Inline,l.SourceMapMode.Separate]),a.__metadata("design:type",String)],g.prototype,"sourceMapMode",void 0),a.__decorate([c.IsBoolean(),a.__metadata("design:type",Boolean)],g.prototype,"stringArray",void 0),a.__decorate([c.IsIn([!0,!1,f.StringArrayEncoding.Base64,f.StringArrayEncoding.Rc4]),a.__metadata("design:type",Object)],g.prototype,"stringArrayEncoding",void 0),a.__decorate([c.IsNumber(),c.Min(0),c.Max(1),a.__metadata("design:type",Number)],g.prototype,"stringArrayThreshold",void 0),a.__decorate([c.IsIn([u.ObfuscationTarget.Browser,u.ObfuscationTarget.BrowserNoEval,u.ObfuscationTarget.Node]),a.__metadata("design:type",String)],g.prototype,"target",void 0),a.__decorate([c.IsBoolean(),a.__metadata("design:type",Boolean)],g.prototype,"transformObjectKeys",void 0),a.__decorate([c.IsBoolean(),a.__metadata("design:type",Boolean)],g.prototype,"unicodeEscapeSequence",void 0),g=o=a.__decorate([i.injectable(),a.__param(0,i.inject(s.ServiceIdentifiers.TInputOptions)),a.__param(1,i.inject(s.ServiceIdentifiers.IOptionsNormalizer)),a.__metadata("design:paramtypes",[Object,Object])],g),t.Options=g},function(e,t){e.exports=require("class-validator")},function(e,t,r){"use strict";var n=r(0),o=n(r(28)),a=n(r(1)),i=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(){(0,a.default)(this,e)}return(0,i.default)(e,null,[{key:"format",value:function(t){return t.reduce(function(t,r){return(0,o.default)(t).concat([e.formatWithNestedConstraints(r)])},[]).join("\n")}},{key:"formatWithNestedConstraints",value:function(e){var t=e.constraints,r="`".concat(e.property,"` errors:\n"),n=Object.keys(t).map(function(e){return" - ".concat(t[e],"\n")}).join();return"".concat(r).concat(n)}}]),e}();t.ValidationErrorsFormatter=s},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i,s=r(4),c=r(2),d=r(157),u=r(158),l=r(159),f=r(160),p=r(161),m=r(162),g=r(163),N=r(164),v=r(165),y=r(166),h=r(167),_=i=function(){function e(){(0,o.default)(this,e)}return(0,a.default)(e,[{key:"normalize",value:function(e){var t=Object.assign({},e),r=!0,n=!1,o=void 0;try{for(var a,s=i.normalizerRules[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){t=(0,a.value)(t)}}catch(e){n=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(n)throw o}}return t}}]),e}();_.normalizerRules=[d.ControlFlowFlatteningThresholdRule,u.DeadCodeInjectionRule,l.DeadCodeInjectionThresholdRule,f.DomainLockRule,p.InputFileNameRule,m.SelfDefendingRule,g.SourceMapBaseUrlRule,N.SourceMapFileNameRule,v.StringArrayRule,y.StringArrayEncodingRule,h.StringArrayThresholdRule],_=i=s.__decorate([c.injectable()],_),t.OptionsNormalizer=_},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ControlFlowFlatteningThresholdRule=function(e){return 0===e.controlFlowFlatteningThreshold&&(e=Object.assign({},e,{controlFlowFlattening:!1,controlFlowFlatteningThreshold:0})),e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(46);t.DeadCodeInjectionRule=function(e){return e.deadCodeInjection&&((e=Object.assign({},e,{deadCodeInjection:!0,stringArray:!0})).stringArrayThreshold||(e=Object.assign({},e,{stringArray:!0,stringArrayThreshold:n.DEFAULT_PRESET.stringArrayThreshold}))),e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DeadCodeInjectionThresholdRule=function(e){return 0===e.deadCodeInjectionThreshold&&(e=Object.assign({},e,{deadCodeInjection:!1,deadCodeInjectionThreshold:0})),e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(34);t.DomainLockRule=function(e){if(e.domainLock.length){var t=[],r=!0,o=!1,a=void 0;try{for(var i,s=e.domainLock[Symbol.iterator]();!(r=(i=s.next()).done);r=!0){var c=i.value;t.push(n.Utils.extractDomainFrom(c))}}catch(e){o=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw a}}e=Object.assign({},e,{domainLock:t})}return e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InputFileNameRule=function(e){var t=e.inputFileName;return t&&(t=t.replace(/^\/+/,"").split(".").slice(0,-1).join(".")||t,e=Object.assign({},e,{inputFileName:"".concat(t,".js")})),e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SelfDefendingRule=function(e){return e.selfDefending&&(e=Object.assign({},e,{compact:!0,selfDefending:!0})),e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SourceMapBaseUrlRule=function(e){var t=e.sourceMapBaseUrl;return e.sourceMapFileName?(t&&!t.endsWith("/")&&(e=Object.assign({},e,{sourceMapBaseUrl:"".concat(t,"/")})),e):e=Object.assign({},e,{sourceMapBaseUrl:""})}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SourceMapFileNameRule=function(e){var t=e.sourceMapFileName;return t&&(t=t.replace(/^\/+/,"").split(".")[0],e=Object.assign({},e,{sourceMapFileName:"".concat(t,".js.map")})),e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayRule=function(e){return e.stringArray||(e=Object.assign({},e,{rotateStringArray:!1,stringArray:!1,stringArrayEncoding:!1,stringArrayThreshold:0})),e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(37);t.StringArrayEncodingRule=function(e){return!0===e.stringArrayEncoding&&(e=Object.assign({},e,{stringArrayEncoding:n.StringArrayEncoding.Base64})),e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayThresholdRule=function(e){return 0===e.stringArrayThreshold&&(e=Object.assign({},e,{rotateStringArray:!1,stringArray:!1,stringArrayEncoding:!1,stringArrayThreshold:0})),e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(20),o=r(2),a=r(5),i=r(29),s=r(58),c=r(169),d=r(170),u=r(171),l=r(172),f=r(173),p=r(175),m=r(176),g=r(177);t.preparingTransformersModule=new o.ContainerModule(function(e){e(a.ServiceIdentifiers.INodeTransformer).to(d.CommentsTransformer).whenTargetNamed(i.NodeTransformer.CommentsTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(l.CustomNodesTransformer).whenTargetNamed(i.NodeTransformer.CustomNodesTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(f.EvalCallExpressionTransformer).whenTargetNamed(i.NodeTransformer.EvalCallExpressionTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(p.MetadataTransformer).whenTargetNamed(i.NodeTransformer.MetadataTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(m.ObfuscatingGuardsTransformer).whenTargetNamed(i.NodeTransformer.ObfuscatingGuardsTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(g.ParentificationTransformer).whenTargetNamed(i.NodeTransformer.ParentificationTransformer),e(a.ServiceIdentifiers.INodeGuard).to(c.BlackListObfuscatingGuard).inSingletonScope().whenTargetNamed(s.ObfuscatingGuard.BlackListNodeGuard),e(a.ServiceIdentifiers.INodeGuard).to(u.ConditionalCommentObfuscatingGuard).inSingletonScope().whenTargetNamed(s.ObfuscatingGuard.ConditionalCommentNodeGuard),e(a.ServiceIdentifiers.Factory__INodeGuard).toFactory(n.InversifyContainerFacade.getCacheFactory(a.ServiceIdentifiers.INodeGuard))})},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i,s=r(4),c=r(2),d=r(9),u=i=function(){function e(){(0,o.default)(this,e),this.blackListGuardsLength=i.blackListGuards.length}return(0,a.default)(e,[{key:"check",value:function(e){for(var t=0;t=0?t:null}},{key:"getLength",value:function(){return this.storageLength}},{key:"getStorage",value:function(){return this.storage}},{key:"getStorageId",value:function(){return this.storageId}},{key:"mergeWith",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.storage=(0,o.default)(this.storage).concat((0,o.default)(e.getStorage())),t&&(this.storageId=e.getStorageId())}},{key:"set",value:function(e,t){e===this.storageLength?this.storage.push(t):this.storage.splice(e,0,t),this.storageLength++}}]),e}();s.__decorate([u.initializable(),s.__metadata("design:type",Array)],l.prototype,"storage",void 0),s.__decorate([u.initializable(),s.__metadata("design:type",String)],l.prototype,"storageId",void 0),s.__decorate([c.postConstruct(),s.__metadata("design:type",Function),s.__metadata("design:paramtypes",[]),s.__metadata("design:returntype",void 0)],l.prototype,"initialize",null),l=s.__decorate([c.injectable(),s.__param(0,c.inject(d.ServiceIdentifiers.IRandomGenerator)),s.__param(1,c.inject(d.ServiceIdentifiers.IOptions)),s.__metadata("design:paramtypes",[Object,Object])],l),t.ArrayStorage=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(2),o=r(5),a=r(184),i=r(185),s=r(188),c=r(60);t.utilsModule=new n.ContainerModule(function(e){e(o.ServiceIdentifiers.IArrayUtils).to(a.ArrayUtils).inSingletonScope(),e(o.ServiceIdentifiers.IRandomGenerator).to(c.RandomGenerator).inSingletonScope(),e(o.ServiceIdentifiers.ICryptUtils).to(i.CryptUtils).inSingletonScope(),e(o.ServiceIdentifiers.IEscapeSequenceEncoder).to(s.EscapeSequenceEncoder).inSingletonScope()})},function(e,t,r){"use strict";var n=r(0),o=n(r(28)),a=n(r(1)),i=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var s=r(4),c=r(2),d=r(5),u=function(){function e(t){(0,a.default)(this,e),this.randomGenerator=t}return(0,i.default)(e,[{key:"createWithRange",value:function(e){for(var t=[],r=0;r>8-o%1*8)){if((n=e.charCodeAt(o+=.75))>255)throw new Error("'btoa' failed: The string to be encoded contains characters outside of the Latin1 range.");r=r<<8|n}return t}},{key:"hideString",value:function(e,t){var r=this,n=this.randomGenerator.getRandomGenerator().string({length:t,pool:d.RandomGenerator.randomGeneratorPool}).replace(new RegExp("[".concat(e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"),"]"),"g"),""),o=n.split("");return this.randomGenerator.getRandomGenerator().shuffle(o),[function(e,t){for(var n=-1,o=-1,a="";n"),c="...".concat(o.substring(a,i).replace(/^\s+/,""),"...");throw new Error("Line ".concat(n.line,": ").concat(r,"\n").concat(s," ").concat(c))}}]),e}();d.colorError=c.default.red,d.nearestSymbolsCount=15,d.sourceTypes=["script","module"],t.EspreeFacade=d},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(6)),i=n(r(7)),s=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var c=r(4),d=r(2),u=r(193);d.decorate(d.injectable(),u.EventEmitter);var l=function(e){function t(){return(0,o.default)(this,t),(0,a.default)(this,(0,i.default)(t).apply(this,arguments))}return(0,s.default)(t,e),t}(u.EventEmitter);l=c.__decorate([d.injectable()],l),t.ObfuscationEventEmitter=l},function(e,t){e.exports=require("events")},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i=r(4),s=r(2),c=r(5),d=r(10),u=r(36),l=function(){function e(t,r){(0,o.default)(this,e),this.cryptUtils=t,this.options=r}return(0,a.default)(e,[{key:"initialize",value:function(e,t){this.obfuscatedCode=e,this.sourceMap=t}},{key:"getObfuscatedCode",value:function(){return this.correctObfuscatedCode()}},{key:"getSourceMap",value:function(){return this.sourceMap}},{key:"toString",value:function(){return this.obfuscatedCode}},{key:"correctObfuscatedCode",value:function(){if(!this.sourceMap)return this.obfuscatedCode;var e=this.options.sourceMapBaseUrl+this.options.sourceMapFileName,t="//# sourceMappingURL=";switch(this.options.sourceMapMode){case u.SourceMapMode.Inline:t+="data:application/json;base64,".concat(this.cryptUtils.btoa(this.sourceMap));break;case u.SourceMapMode.Separate:default:if(!e)return this.obfuscatedCode;t+=e}return"".concat(this.obfuscatedCode,"\n").concat(t)}}]),e}();i.__decorate([d.initializable(),i.__metadata("design:type",String)],l.prototype,"obfuscatedCode",void 0),i.__decorate([d.initializable(),i.__metadata("design:type",String)],l.prototype,"sourceMap",void 0),l=i.__decorate([s.injectable(),i.__param(0,s.inject(c.ServiceIdentifiers.ICryptUtils)),i.__param(1,s.inject(c.ServiceIdentifiers.IOptions)),i.__metadata("design:paramtypes",[Object,Object])],l),t.ObfuscatedCode=l},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(t,r){(0,o.default)(this,e),this.sourceCode=t,this.sourceMap=r}return(0,a.default)(e,[{key:"getSourceCode",value:function(){return this.sourceCode}},{key:"getSourceMap",value:function(){return this.sourceMap}},{key:"toString",value:function(){return this.sourceCode}}]),e}();t.SourceCode=i},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i=r(4),s=r(2),c=r(5),d=i.__importStar(r(16)),u=r(197),l=r(9),f=r(17),p=function(){function e(t){(0,o.default)(this,e),this.nodeTransformerFactory=t}return(0,a.default)(e,[{key:"transform",value:function(e,t,r){if(!t.length)return e;for(var n,o=[],a=[],i=t.length,s=0;s [options]").version("0.18.3","-v, --version").option("-o, --output ","Output path for obfuscated code").option("--compact ","Disable one line output code compacting",f.BooleanSanitizer).option("--config ","Name of js / json config file").option("--control-flow-flattening ","Enables control flow flattening",f.BooleanSanitizer).option("--control-flow-flattening-threshold ","The probability that the control flow flattening transformation will be applied to the node",parseFloat).option("--dead-code-injection ","Enables dead code injection",f.BooleanSanitizer).option("--dead-code-injection-threshold ","The probability that the dead code injection transformation will be applied to the node",parseFloat).option("--debug-protection ","Disable browser Debug panel (can cause DevTools enabled browser freeze)",f.BooleanSanitizer).option("--debug-protection-interval ","Disable browser Debug panel even after page was loaded (can cause DevTools enabled browser freeze)",f.BooleanSanitizer).option("--disable-console-output ","Allow console.log, console.info, console.error and console.warn messages output into browser console",f.BooleanSanitizer).option("--domain-lock (comma separated, without whitespaces)","Blocks the execution of the code in domains that do not match the passed RegExp patterns (comma separated)",l.ArraySanitizer).option("--exclude (comma separated, without whitespaces)","A filename or glob which indicates files to exclude from obfuscation",l.ArraySanitizer).option("--identifier-names-generator ","Sets identifier names generator. Values: hexadecimal, mangled. Default: hexadecimal",p.IdentifierNamesGeneratorSanitizer).option("--identifiers-prefix ","Sets prefix for all global identifiers.").option("--log ","Enables logging of the information to the console",f.BooleanSanitizer).option("--reserved-names (comma separated, without whitespaces)","Disables obfuscation and generation of identifiers, which being matched by passed RegExp patterns (comma separated)",l.ArraySanitizer).option("--reserved-strings (comma separated, without whitespaces)","Disables transformation of string literals, which being matched by passed RegExp patterns (comma separated)",l.ArraySanitizer).option("--rename-globals ","Allows to enable obfuscation of global variable and function names with declaration.",f.BooleanSanitizer).option("--rotate-string-array ","Disable rotation of unicode array values during obfuscation",f.BooleanSanitizer).option("--seed ","Sets seed for random generator. This is useful for creating repeatable results.",parseFloat).option("--self-defending ","Disables self-defending for obfuscated code",f.BooleanSanitizer).option("--source-map ","Enables source map generation",f.BooleanSanitizer).option("--source-map-base-url ","Sets base url to the source map import url when `--source-map-mode=separate`").option("--source-map-file-name ","Sets file name for output source map when `--source-map-mode=separate`").option("--source-map-mode ","Specify source map output mode. Values: inline, separate. Default: separate",g.SourceMapModeSanitizer).option("--string-array ","Disables gathering of all literal strings into an array and replacing every literal string with an array call",f.BooleanSanitizer).option("--string-array-encoding ","Encodes all strings in strings array using base64 or rc4 (this option can slow down your code speed. Values: true, false, base64, rc4. Default: false",N.StringArrayEncodingSanitizer).option("--string-array-threshold ","The probability that the literal string will be inserted into stringArray (Default: 0.8, Min: 0, Max: 1)",parseFloat).option("--target ","Allows to set target environment for obfuscated code. Values: browser, browser-no-eval, node. Default: browser",m.ObfuscationTargetSanitizer).option("--transform-object-keys ","Enables transformation of object keys",f.BooleanSanitizer).option("--unicode-escape-sequence ","Allows to enable/disable string conversion to unicode escape sequence",f.BooleanSanitizer).parse(this.rawArguments)}},{key:"configureHelp",value:function(){this.commands.on("--help",function(){console.log(" Examples:\n"),console.log(" %> javascript-obfuscator input_file_name.js --compact true --self-defending false"),console.log(" %> javascript-obfuscator input_file_name.js --output output_file_name.js --compact true --self-defending false"),console.log(" %> javascript-obfuscator input_directory_name --compact true --self-defending false"),console.log("")})}},{key:"processSourceCodeData",value:function(e){var t=this,r=this.inputCLIOptions.output?c.normalize(this.inputCLIOptions.output):"";if(Array.isArray(e))e.forEach(function(e,n){var o=e.filePath,a=e.content,i=r?c.join(r,o):v.CLIUtils.getOutputCodePath(o);t.processSourceCode(a,i,n)});else{var n=r||v.CLIUtils.getOutputCodePath(this.inputPath);this.processSourceCode(e,n,null)}}},{key:"processSourceCode",value:function(t,r,n){var o=this.buildOptions();if(null!==n){var a=this.inputCLIOptions.identifiersPrefix||e.baseIdentifiersPrefix,i="".concat(a).concat(n);o=Object.assign({},o,{identifiersPrefix:i})}o.sourceMap?e.processSourceCodeWithSourceMap(t,r,o):e.processSourceCodeWithoutSourceMap(t,r,o)}}],[{key:"filterOptions",value:function(e){var t={};return Object.keys(e).forEach(function(r){void 0!==e[r]&&(t[r]=e[r])}),t}},{key:"processSourceCodeWithoutSourceMap",value:function(e,t,r){var n=y.JavaScriptObfuscator.obfuscate(e,r).getObfuscatedCode();v.CLIUtils.writeFile(t,n)}},{key:"processSourceCodeWithSourceMap",value:function(e,t,r){var n=v.CLIUtils.getOutputSourceMapPath(t,r.sourceMapFileName||"");r=Object.assign({},r,{sourceMapFileName:c.basename(n)});var o=y.JavaScriptObfuscator.obfuscate(e,r);v.CLIUtils.writeFile(t,o.getObfuscatedCode()),"separate"===r.sourceMapMode&&o.getSourceMap()&&v.CLIUtils.writeFile(n,o.getSourceMap())}}]),e}();_.encoding="utf8",_.obfuscatedFilePrefix="-obfuscated",_.baseIdentifiersPrefix="a",i.__decorate([d.initializable(),i.__metadata("design:type",Object)],_.prototype,"commands",void 0),i.__decorate([d.initializable(),i.__metadata("design:type",Object)],_.prototype,"inputCLIOptions",void 0),i.__decorate([d.initializable(),i.__metadata("design:type",String)],_.prototype,"inputPath",void 0),t.JavaScriptObfuscatorCLI=_},function(e,t){e.exports=require("path")},function(e,t){e.exports=require("fs")},,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(203);e.exports=n.JavaScriptObfuscatorCLI},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0}),r(62);var i=r(198),s=function(){function e(){(0,o.default)(this,e)}return(0,a.default)(e,null,[{key:"obfuscate",value:function(e){var t=new i.JavaScriptObfuscatorCLI(e);t.initialize(),t.run()}}]),e}();t.JavaScriptObfuscatorCLI=s},function(e,t){e.exports=require("commander")},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ArraySanitizer=function(e){if(/,$/.test(e))throw new SyntaxError("Multiple values should be wrapped inside quotes: --option-name 'value1','value2'");return e.split(",").map(function(e){return e.trim()})}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BooleanSanitizer=function(e){return"true"===e||"1"===e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(35);t.IdentifierNamesGeneratorSanitizer=function(e){if(!Object.keys(n.IdentifierNamesGenerator).some(function(t){return n.IdentifierNamesGenerator[t]===e}))throw new ReferenceError("Invalid value of `--identifier-names-generator` option");return e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(23);t.ObfuscationTargetSanitizer=function(e){if(!Object.keys(n.ObfuscationTarget).some(function(t){return n.ObfuscationTarget[t]===e}))throw new ReferenceError("Invalid value of `--target` option");return e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(36);t.SourceMapModeSanitizer=function(e){if(!Object.keys(n.SourceMapMode).some(function(t){return n.SourceMapMode[t]===e}))throw new ReferenceError("Invalid value of `--source-map-mode` option");return e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(37);t.StringArrayEncodingSanitizer=function(e){switch(e){case"true":case"1":case n.StringArrayEncoding.Base64:return!0;case n.StringArrayEncoding.Rc4:return n.StringArrayEncoding.Rc4;default:return!1}}},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i=r(4),s=i.__importStar(r(200)),c=i.__importStar(r(212)),d=i.__importStar(r(199)),u=r(198),l=function(){function e(){(0,o.default)(this,e)}return(0,a.default)(e,null,[{key:"getOutputCodePath",value:function(e){return d.normalize(e).split(".").map(function(e,t){return 0===t?"".concat(e).concat(u.JavaScriptObfuscatorCLI.obfuscatedFilePrefix):e}).join(".")}},{key:"getOutputSourceMapPath",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return t&&(e="".concat(e.substring(0,e.lastIndexOf("/")),"/").concat(t)),/\.js\.map$/.test(e)?/\.js$/.test(e)&&(e+=".map"):e="".concat(e.split(".")[0],".js.map"),e}},{key:"getUserConfig",value:function(e){var t;try{t=r(213)(e)}catch(r){try{t=require(e)}catch(e){throw new ReferenceError("Given config path must be a valid `.js` or `.json` file path")}}return t}},{key:"writeFile",value:function(e,t){c.sync(d.dirname(e)),s.writeFileSync(e,t,{encoding:u.JavaScriptObfuscatorCLI.encoding})}}]),e}();t.CLIUtils=l},function(e,t){e.exports=require("mkdirp")},function(e,t){function r(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}r.keys=function(){return[]},r.resolve=r,e.exports=r,r.id=213},function(e,t,r){"use strict";var n=r(0),o=n(r(28)),a=n(r(1)),i=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var s=r(4),c=s.__importStar(r(200)),d=s.__importStar(r(199)),u=s.__importDefault(r(215)),l=r(64),f=r(198),p=r(63),m=function(){function e(t){(0,a.default)(this,e),this.options=t}return(0,i.default)(e,[{key:"readSourceCode",value:function(t){if(e.isFilePath(t)&&this.isValidFile(t))return this.readFile(t);if(e.isDirectoryPath(t)&&this.isValidDirectory(t))return this.readDirectoryRecursive(t);var r=e.availableInputExtensions.map(function(e){return"`".concat(e,"`")}).join(", ");throw new ReferenceError("Given input path must be a valid ".concat(r," file or directory path"))}},{key:"readDirectoryRecursive",value:function(t){var r=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return c.readdirSync(t,f.JavaScriptObfuscatorCLI.encoding).forEach(function(a){var i="".concat(t,"/").concat(a);if(e.isDirectoryPath(i)&&r.isValidDirectory(i))n.push.apply(n,(0,o.default)(r.readDirectoryRecursive(i)));else if(e.isFilePath(i)&&r.isValidFile(i)){var s=r.readFile(i);n.push({filePath:i,content:s})}}),n}},{key:"readFile",value:function(t){return e.logFilePath(t),c.readFileSync(t,f.JavaScriptObfuscatorCLI.encoding)}},{key:"isValidDirectory",value:function(t){return!e.isExcludedPath(t,this.options.exclude)}},{key:"isValidFile",value:function(t){return e.availableInputExtensions.includes(d.extname(t))&&!t.includes(f.JavaScriptObfuscatorCLI.obfuscatedFilePrefix)&&!e.isExcludedPath(t,this.options.exclude)}}],[{key:"isExcludedPath",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(!t.length)return!1;var r=d.basename(e),n=!!u.default([e],t).length;return t.some(function(t){return e.includes(t)||r.includes(t)})||n}},{key:"isDirectoryPath",value:function(e){try{return c.statSync(e).isDirectory()}catch(e){return!1}}},{key:"isFilePath",value:function(e){try{return c.statSync(e).isFile()}catch(e){return!1}}},{key:"logFilePath",value:function(e){var t=d.normalize(e);p.Logger.log(p.Logger.colorInfo,l.LoggingPrefix.CLI,"Obfuscating file: ".concat(t,"..."))}}]),e}();m.availableInputExtensions=[".js"],t.SourceCodeReader=m},function(e,t){e.exports=require("multimatch")}]); +require("source-map-support").install(),module.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.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 o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));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",e.Factory__IControlFlowCustomNode="Factory",e.Factory__IControlFlowReplacer="Factory",e.Factory__ICustomNode="Factory",e.Factory__ICustomNodeGroup="Factory",e.Factory__IDeadCodeInjectionCustomNode="Factory",e.Factory__IIdentifierNamesGenerator="Factory",e.Factory__IIdentifierObfuscatingReplacer="Factory",e.Factory__INodeGuard="Factory",e.Factory__INodeTransformer="Factory",e.Factory__IObfuscatedCode="Factory",e.Factory__IObfuscatingReplacer="Factory",e.Factory__IPropertiesExtractor="Factory",e.Factory__TControlFlowStorage="Factory",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",e.Newable__TControlFlowStorage="Newable",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),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i=r(19),s=function(){function e(){(0,o.default)(this,e)}return(0,a.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,o=e.isContinueStatementNode(r)&&r.label===t,a=e.isBreakStatementNode(r)&&r.label===t;return n||o||a}},{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:"isReplaceableIdentifierNode",value:function(t,r){if(!e.isIdentifierNode(t))return!1;var n=e.isPropertyNode(r)&&!r.computed&&r.key===t,o=e.isMemberExpressionNode(r)&&!r.computed&&r.property===t,a=e.isMethodDefinitionNode(r)&&!r.computed,i=e.isLabelIdentifierNode(t,r);return!(n||o||a||i)}},{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}();s.nodesWithLexicalStatements=[i.NodeType.ArrowFunctionExpression,i.NodeType.FunctionDeclaration,i.NodeType.FunctionExpression,i.NodeType.MethodDefinition],t.NodeGuards=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={configurable:!0,enumerable:!0},o="_initialized",a="_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(o,!1,r),c(a,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(a,e),d=Reflect.getMetadata(i,e),u=c.includes(r)||s.has(r)||d.has(r);if(!u){var l=e[r];if("function"==typeof l){var f=Object.getOwnPropertyDescriptor(e,r)||n,p=f.value;Object.defineProperty(e,r,Object.assign({},f,{value:function(){if(!Reflect.getMetadata(o,this))throw new Error("Class should be initialized with `".concat(t,"()` method"));return p.apply(this,arguments)}})),d.add(r)}}})}(r,e),function(e,t,r){var a=Object.getOwnPropertyDescriptor(e,t)||n,i=a.value;Object.defineProperty(e,t,Object.assign({},a,{value:function(){Reflect.defineMetadata(o,!0,this);var e=i.apply(this,arguments);return this[r],e}}))}(r,e,d),function(e,t){Reflect.getMetadata(a,e).add(t);var r="_".concat(t.toString()),o=Object.getOwnPropertyDescriptor(e,r)||n;return Object.defineProperty(e,t,Object.assign({},o,{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}})),o}(r,d)}}},function(e,t,r){"use strict";var n=r(0),o=n(r(50)),a=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,a.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 a,i=t[n];a=null===i||i instanceof RegExp?i:Array.isArray(i)?i.map(e.cloneRecursive):"object"===(0,o.default)(i)?e.cloneRecursive(i):i,r[n]=a}}),r}}]),e}();t.NodeUtils=p},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){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 o=r(4),a=r(2),i=r(5),s=function e(t,r){(0,n.default)(this,e),this.randomGenerator=t,this.options=r};s=o.__decorate([a.injectable(),o.__param(0,a.inject(i.ServiceIdentifiers.IRandomGenerator)),o.__param(1,a.inject(i.ServiceIdentifiers.IOptions)),o.__metadata("design:paramtypes",[Object,Object])],s),t.AbstractNodeTransformer=s},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i=r(4).__importStar(r(44)),s=r(19),c=function(){function e(){(0,o.default)(this,e)}return(0,a.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({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=r(0),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i,s=r(4),c=r(2),d=r(5),u=r(94),l=r(95),f=i=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,a.default)(e,[{key:"getNode",value:function(){return this.cachedNode||(this.cachedNode=this.getNodeStructure()),this.cachedNode}},{key:"getGlobalVariableTemplate",value:function(){return this.randomGenerator.getRandomGenerator().pickone(i.globalVariableTemplateFunctions)}}]),e}();f.globalVariableTemplateFunctions=[u.GlobalVariableTemplate1(),l.GlobalVariableTemplate2()],f=i=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),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){(0,o.default)(this,e)}return(0,a.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";var n=r(0),o=n(r(65)),a=n(r(1)),i=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var s=r(2),c=r(5),d=r(66),u=r(71),l=r(79),f=r(87),p=r(133),m=r(134),g=r(137),N=r(138),v=r(152),y=r(168),h=r(178),_=r(183),b=r(189),S=r(63),I=r(192),C=r(194),F=r(195),O=r(196),j=function(){function e(){(0,a.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 F.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(O.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(h.storagesModule),this.container.load(_.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 o=t.container.getNamed(e,n);return r.set(n,o),o}}}},{key:"getConstructorFactory",value:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n1&&void 0!==arguments[1]?arguments[1]:1/0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;if(n.length>=r)return n;var a=t.parentNode;if(!a)throw new ReferenceError("`parentNode` property of given node is `undefined`");return(i.NodeGuards.isProgramNode(t)||i.NodeGuards.isNodeWithLexicalScopeStatements(t,a)&&o>0)&&n.push(t),t!==a?e.getParentNodesWithStatementsRecursive(a,r,n,++o):n}},{key:"getSiblingStatementByOffset",value:function(t,r){var n=e.getScopeOfNode(t),o=i.NodeGuards.isSwitchCaseNode(n)?n.consequent:n.body;return o[o.indexOf(t)+r]||null}}]),e}();t.NodeStatementUtils=s},function(e,t,r){"use strict";var n=r(0),o=n(r(28)),a=n(r(1)),i=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var s=r(9),c=function(){function e(){(0,a.default)(this,e)}return(0,i.default)(e,null,[{key:"append",value:function(t,r){r=e.parentizeScopeStatementsBeforeAppend(t,r),e.setScopeStatements(t,(0,o.default)(e.getScopeStatements(t)).concat((0,o.default)(r)))}},{key:"appendToOptimalBlockScope",value:function(t,r,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=t.length?e.getOptimalBlockScope(t,o):r;e.prepend(a,n)}},{key:"getOptimalBlockScope",value:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,o=t[r];if(n<=0)throw new Error("Invalid `deep` argument value. Value should be bigger then 0.");return n>1&&o.stackTrace.length?e.getOptimalBlockScope(o.stackTrace,0,--n):o.callee}},{key:"insertAfter",value:function(t,r,n){var o=e.getScopeStatements(t).indexOf(n);e.insertAtIndex(t,r,o+1)}},{key:"insertAtIndex",value:function(t,r,n){r=e.parentizeScopeStatementsBeforeAppend(t,r),e.setScopeStatements(t,(0,o.default)(e.getScopeStatements(t).slice(0,n)).concat((0,o.default)(r),(0,o.default)(e.getScopeStatements(t).slice(n))))}},{key:"prepend",value:function(t,r){r=e.parentizeScopeStatementsBeforeAppend(t,r),e.setScopeStatements(t,(0,o.default)(r).concat((0,o.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),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i=r(9),s=function(){function e(){(0,o.default)(this,e)}return(0,a.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]:[],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;if(n.length>=r)return n;var a=t.parentNode;if(!a)throw new ReferenceError("`parentNode` property of given node is `undefined`");return i.NodeGuards.isNodeWithLexicalScope(t)&&n.push(t),t!==a?e.getLexicalScopesRecursive(a,r,n,++o):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"}(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),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0}),r(62);var i=r(5),s=r(20),c=function(){function e(){(0,o.default)(this,e)}return(0,a.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).obfuscate(e);return r.unload(),n}}]),e}();c.version="0.18.4",t.JavaScriptObfuscator=c},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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,o.default)(this,e),this.identifierNamesGenerator=t(n),this.randomGenerator=r,this.options=n}return(0,a.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),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){(0,o.default)(this,e)}return(0,a.default)(e,null,[{key:"extractDomainFrom",value:function(e){return(e.indexOf("://")>-1||0===e.indexOf("//")?e.split("/")[2]:e.split("/")[0]).split(":")[0]}}]),e}();i.hexadecimalPrefix="0x",t.Utils=i},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),o=r(23),a=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:a.SourceMapMode.Separate,stringArray:!1,stringArrayEncoding:!1,stringArrayThreshold:0,target:o.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),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){(0,o.default)(this,e)}return(0,a.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 o=r(4),a=r(2),i=r(5),s=function e(t){(0,n.default)(this,e),this.options=t};s=o.__decorate([a.injectable(),o.__param(0,a.inject(i.ServiceIdentifiers.IOptions)),o.__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 o=r(4),a=r(2),i=function e(){(0,n.default)(this,e)};i=o.__decorate([a.injectable()],i),t.AbstractCalleeDataExtractor=i},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i,s=r(4),c=r(2),d=r(5),u=i=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,a.default)(e,[{key:"insertCustomNodeToControlFlowStorage",value:function(e,t,r,n){var o=this,a=t.getStorageId(),s=i.getStorageKeysByIdForCurrentStorage(this.replacerDataByControlFlowStorageId,a),c=s.get(r);if(this.randomGenerator.getMathRandom()1&&void 0!==arguments[1]&&arguments[1];this.storage=new Map((0,o.default)(this.storage).concat((0,o.default)(e.getStorage()))),t&&(this.storageId=e.getStorageId())}},{key:"set",value:function(e,t){this.storage.set(e,t)}}]),e}();c.__decorate([l.initializable(),c.__metadata("design:type",String)],f.prototype,"storageId",void 0),c.__decorate([l.initializable(),c.__metadata("design:type",Map)],f.prototype,"storage",void 0),c.__decorate([d.postConstruct(),c.__metadata("design:type",Function),c.__metadata("design:paramtypes",[]),c.__metadata("design:returntype",void 0)],f.prototype,"initialize",null),f=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])],f),t.MapStorage=f},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i,s=r(4),c=r(2),d=r(5),u=s.__importDefault(r(186)),l=r(187),f=r(10),p=i=function(){function e(t,r){(0,o.default)(this,e),this.sourceCode=t,this.options=r}return(0,a.default)(e,[{key:"initialize",value:function(){var e,t,r,n=this;this.seed=0!==this.options.seed?this.options.seed:(e=0,t=999999999,Math.floor(Math.random()*(t-e+1)+e)),this.randomGenerator=new l.Chance((r=u.default(n.sourceCode.getSourceCode()),n.seed+Number(r.replace(/\D/g,""))))}},{key:"getMathRandom",value:function(){return this.getRandomInteger(0,99999)/1e5}},{key:"getRandomGenerator",value:function(){return this.randomGenerator}},{key:"getRandomInteger",value:function(e,t){return this.getRandomGenerator().integer({min:e,max:t})}},{key:"getRandomString",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.randomGeneratorPool;return this.getRandomGenerator().string({length:e,pool:t})}},{key:"getSeed",value:function(){return this.seed}}]),e}();p.randomGeneratorPool="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",s.__decorate([f.initializable(),s.__metadata("design:type",Object)],p.prototype,"randomGenerator",void 0),s.__decorate([f.initializable(),s.__metadata("design:type",Number)],p.prototype,"seed",void 0),s.__decorate([c.postConstruct(),s.__metadata("design:type",Function),s.__metadata("design:paramtypes",[]),s.__metadata("design:returntype",void 0)],p.prototype,"initialize",null),p=i=s.__decorate([c.injectable(),s.__param(0,c.inject(d.ServiceIdentifiers.ISourceCode)),s.__param(1,c.inject(d.ServiceIdentifiers.IOptions)),s.__metadata("design:paramtypes",[Object,Object])],p),t.RandomGenerator=p},function(e,t){e.exports=require("chalk")},function(e,t){e.exports=require("reflect-metadata")},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i,s=r(4),c=r(2),d=r(5),u=s.__importDefault(r(61)),l=r(64),f=i=function(){function e(t){(0,o.default)(this,e),this.options=t}return(0,a.default)(e,[{key:"info",value:function(e,t){this.options.log&&i.log(i.colorInfo,l.LoggingPrefix.Base,e,t)}},{key:"success",value:function(e,t){this.options.log&&i.log(i.colorSuccess,l.LoggingPrefix.Base,e,t)}},{key:"warn",value:function(e,t){this.options.log&&i.log(i.colorWarn,l.LoggingPrefix.Base,e,t)}}],[{key:"log",value:function(e,t,r,n){var o=e("\n".concat(t," ").concat(r));console.log(o,n||"")}}]),e}();f.colorInfo=u.default.cyan,f.colorSuccess=u.default.green,f.colorWarn=u.default.yellow,f=i=s.__decorate([c.injectable(),s.__param(0,c.inject(d.ServiceIdentifiers.IOptions)),s.__metadata("design:paramtypes",[Object])],f),t.Logger=f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.Base="[javascript-obfuscator]",e.CLI="[javascript-obfuscator-cli]"}(t.LoggingPrefix||(t.LoggingPrefix={}))},function(e,t){e.exports=require("@babel/runtime/helpers/construct")},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(20),o=r(2),a=r(5),i=r(47),s=r(67),c=r(68),d=r(69),u=r(70);t.analyzersModule=new o.ContainerModule(function(e){e(a.ServiceIdentifiers.IStackTraceAnalyzer).to(u.StackTraceAnalyzer).inSingletonScope(),e(a.ServiceIdentifiers.ICalleeDataExtractor).to(s.FunctionDeclarationCalleeDataExtractor).whenTargetNamed(i.CalleeDataExtractor.FunctionDeclarationCalleeDataExtractor),e(a.ServiceIdentifiers.ICalleeDataExtractor).to(c.FunctionExpressionCalleeDataExtractor).whenTargetNamed(i.CalleeDataExtractor.FunctionExpressionCalleeDataExtractor),e(a.ServiceIdentifiers.ICalleeDataExtractor).to(d.ObjectExpressionCalleeDataExtractor).whenTargetNamed(i.CalleeDataExtractor.ObjectExpressionCalleeDataExtractor),e(a.ServiceIdentifiers.Factory__ICalleeDataExtractor).toFactory(n.InversifyContainerFacade.getCacheFactory(a.ServiceIdentifiers.ICalleeDataExtractor))})},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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=d.__importStar(r(16)),f=r(42),p=r(9),m=r(24),g=function(e){function t(){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).apply(this,arguments))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"extract",value:function(e,t){if(!p.NodeGuards.isIdentifierNode(t))return null;var r=this.getCalleeBlockStatement(m.NodeStatementUtils.getParentNodeWithStatements(e[0]),t.name);return r?{callee:r,name:t.name}:null}},{key:"getCalleeBlockStatement",value:function(e,t){var r=null;return l.traverse(e,{enter:function(e){if(p.NodeGuards.isFunctionDeclarationNode(e)&&e.id.name===t)return r=e.body,l.VisitorOption.Break}}),r}}]),t}(f.AbstractCalleeDataExtractor);g=d.__decorate([u.injectable()],g),t.FunctionDeclarationCalleeDataExtractor=g},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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=d.__importStar(r(16)),f=r(42),p=r(9),m=r(24),g=function(e){function t(){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).apply(this,arguments))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"extract",value:function(e,t){var r=null;return p.NodeGuards.isIdentifierNode(t)&&(r=this.getCalleeBlockStatement(m.NodeStatementUtils.getParentNodeWithStatements(e[0]),t.name)),p.NodeGuards.isFunctionExpressionNode(t)&&(r=t.body),r?{callee:r,name:t.name||null}:null}},{key:"getCalleeBlockStatement",value:function(e,t){var r=null;return l.traverse(e,{enter:function(e,n){if(p.NodeGuards.isFunctionExpressionNode(e)&&n&&p.NodeGuards.isVariableDeclaratorNode(n)&&p.NodeGuards.isIdentifierNode(n.id)&&n.id.name===t)return r=e.body,l.VisitorOption.Break}}),r}}]),t}(f.AbstractCalleeDataExtractor);g=d.__decorate([u.injectable()],g),t.FunctionExpressionCalleeDataExtractor=g},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=u.__importStar(r(16)),p=r(42),m=r(9),g=r(24),N=d=function(e){function t(){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).apply(this,arguments))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"extract",value:function(e,t){if(!m.NodeGuards.isMemberExpressionNode(t))return null;var r=this.createObjectMembersCallsChain([],t);if(!r.length)return null;var n=r[r.length-1],o=this.getCalleeBlockStatement(g.NodeStatementUtils.getParentNodeWithStatements(e[0]),r);return o?{callee:o,name:n}:null}},{key:"createObjectMembersCallsChain",value:function(e,t){if(m.NodeGuards.isIdentifierNode(t.property)&&!1===t.computed)e.unshift(t.property.name);else{if(!m.NodeGuards.isLiteralNode(t.property)||"string"!=typeof t.property.value&&"number"!=typeof t.property.value)return e;e.unshift(t.property.value)}return m.NodeGuards.isMemberExpressionNode(t.object)?this.createObjectMembersCallsChain(e,t.object):(m.NodeGuards.isIdentifierNode(t.object)&&e.unshift(t.object.name),e)}},{key:"getCalleeBlockStatement",value:function(e,t){var r=this,n=t.shift();if(!n)return null;var o=null;return f.traverse(e,{enter:function(e){if(m.NodeGuards.isVariableDeclaratorNode(e)&&m.NodeGuards.isIdentifierNode(e.id)&&e.init&&m.NodeGuards.isObjectExpressionNode(e.init)&&e.id.name===n)return o=r.findCalleeBlockStatement(e.init.properties,t),f.VisitorOption.Break}}),o}},{key:"findCalleeBlockStatement",value:function(e,t){var r=t.shift();if(!r)return null;var n=!0,o=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(n=(i=s.next()).done);n=!0){var c=i.value;if(d.isValidTargetPropertyNode(c,r)){if(m.NodeGuards.isObjectExpressionNode(c.value))return this.findCalleeBlockStatement(c.value.properties,t);if(m.NodeGuards.isFunctionExpressionNode(c.value))return c.value.body}}}catch(e){o=!0,a=e}finally{try{n||null==s.return||s.return()}finally{if(o)throw a}}return null}}],[{key:"isValidTargetPropertyNode",value:function(e,t){if(!e.key)return!1;var r=m.NodeGuards.isIdentifierNode(e.key)&&e.key.name===t,n=m.NodeGuards.isLiteralNode(e.key)&&Boolean(e.key.value)&&e.key.value===t;return r||n}}]),t}(p.AbstractCalleeDataExtractor);N=d=u.__decorate([l.injectable()],N),t.ObjectExpressionCalleeDataExtractor=N},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i,s=r(4),c=r(2),d=r(5),u=s.__importStar(r(16)),l=r(47),f=r(9),p=r(24),m=i=function(){function e(t){(0,o.default)(this,e),this.calleeDataExtractorFactory=t}return(0,a.default)(e,[{key:"analyze",value:function(e){return this.analyzeRecursive(e.body)}},{key:"analyzeRecursive",value:function(e){for(var t=this,r=i.getLimitIndex(e.length),n=[],o=e.length,a=function(o){if(o>r)return"break";var a=e[o];u.traverse(a,{enter:function(r){if(f.NodeGuards.isCallExpressionNode(r))return a.parentNode!==p.NodeStatementUtils.getParentNodeWithStatements(r)?u.VisitorOption.Skip:void t.analyzeCallExpressionNode(n,e,r)}})},s=0;sr&&(n=Math.round(r+t*i.limitThreshold))>t&&(n=t),n}}]),e}();m.calleeDataExtractorsList=[l.CalleeDataExtractor.FunctionDeclarationCalleeDataExtractor,l.CalleeDataExtractor.FunctionExpressionCalleeDataExtractor,l.CalleeDataExtractor.ObjectExpressionCalleeDataExtractor],m.limitThresholdActivationLength=25,m.limitThreshold=.002,m=i=s.__decorate([c.injectable(),s.__param(0,c.inject(d.ServiceIdentifiers.Factory__ICalleeDataExtractor)),s.__metadata("design:paramtypes",[Function])],m),t.StackTraceAnalyzer=m},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(20),o=r(2),a=r(5),i=r(48),s=r(29),c=r(72),d=r(73),u=r(74),l=r(75),f=r(76),p=r(77),m=r(78);t.controlFlowTransformersModule=new o.ContainerModule(function(e){e(a.ServiceIdentifiers.INodeTransformer).to(d.BlockStatementControlFlowTransformer).whenTargetNamed(s.NodeTransformer.BlockStatementControlFlowTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(l.DeadCodeInjectionTransformer).whenTargetNamed(s.NodeTransformer.DeadCodeInjectionTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(f.FunctionControlFlowTransformer).whenTargetNamed(s.NodeTransformer.FunctionControlFlowTransformer),e(a.ServiceIdentifiers.IControlFlowReplacer).to(c.BinaryExpressionControlFlowReplacer).whenTargetNamed(i.ControlFlowReplacer.BinaryExpressionControlFlowReplacer),e(a.ServiceIdentifiers.IControlFlowReplacer).to(u.CallExpressionControlFlowReplacer).whenTargetNamed(i.ControlFlowReplacer.CallExpressionControlFlowReplacer),e(a.ServiceIdentifiers.IControlFlowReplacer).to(p.LogicalExpressionControlFlowReplacer).whenTargetNamed(i.ControlFlowReplacer.LogicalExpressionControlFlowReplacer),e(a.ServiceIdentifiers.IControlFlowReplacer).to(m.StringLiteralControlFlowReplacer).whenTargetNamed(i.ControlFlowReplacer.StringLiteralControlFlowReplacer),e(a.ServiceIdentifiers.Factory__IControlFlowReplacer).toFactory(n.InversifyContainerFacade.getCacheFactory(a.ServiceIdentifiers.IControlFlowReplacer))})},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=r(5),p=r(21),m=r(49),g=d=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r,n))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"replace",value:function(e,t,r){var n=e.operator,o=this.controlFlowCustomNodeFactory(p.ControlFlowCustomNode.BinaryExpressionFunctionNode);o.initialize(n);var a=this.insertCustomNodeToControlFlowStorage(o,r,n,d.usingExistingIdentifierChance);return this.getControlFlowStorageCallNode(r.getStorageId(),a,e.left,e.right)}}]),t}(m.ExpressionWithOperatorControlFlowReplacer);g.usingExistingIdentifierChance=.5,g=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IControlFlowCustomNode)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],g),t.BinaryExpressionControlFlowReplacer=g},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=r(5),p=u.__importStar(r(16)),m=r(21),g=r(12),N=r(13),v=r(9),y=r(11),h=d=function(e){function t(e,r,n,a){var c;return(0,o.default)(this,t),(c=(0,i.default)(this,(0,s.default)(t).call(this,n,a))).controlFlowCustomNodeFactory=e,c.arrayUtils=r,c}return(0,c.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case g.TransformationStage.ControlFlowFlattening:return{leave:function(e,r){if(r&&v.NodeGuards.isBlockStatementNode(e))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){if(this.randomGenerator.getMathRandom()>this.options.controlFlowFlatteningThreshold||!d.canTransformBlockStatementNode(e))return e;var r=e.body,n=this.arrayUtils.createWithRange(r.length),o=this.arrayUtils.shuffle(n),a=n.map(function(e){return o.indexOf(e)}),i=this.controlFlowCustomNodeFactory(m.ControlFlowCustomNode.BlockStatementControlFlowFlatteningNode);i.initialize(r,o,a);var s=i.getNode()[0];return y.NodeUtils.parentizeNode(s,t),s}}],[{key:"isProhibitedStatementNode",value:function(e){var t=v.NodeGuards.isBreakStatementNode(e)||v.NodeGuards.isContinueStatementNode(e),r=v.NodeGuards.isVariableDeclarationNode(e)&&("const"===e.kind||"let"===e.kind),n=v.NodeGuards.isClassDeclarationNode(e);return v.NodeGuards.isFunctionDeclarationNode(e)||t||r||n}},{key:"canTransformBlockStatementNode",value:function(e){var t=!0;return p.traverse(e,{enter:function(e){if(v.NodeGuards.isWhileStatementNode(e))return p.VisitorOption.Skip;d.isProhibitedStatementNode(e)&&(t=!1)}}),e.body.length<=4&&(t=!1),t}}]),t}(N.AbstractNodeTransformer);h=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IControlFlowCustomNode)),u.__param(1,l.inject(f.ServiceIdentifiers.IArrayUtils)),u.__param(2,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(3,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object,Object])],h),t.BlockStatementControlFlowTransformer=h},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=r(5),p=r(21),m=r(43),g=r(9),N=d=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r,n))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"replace",value:function(e,t,r){var n=e.callee;if(!g.NodeGuards.isIdentifierNode(n))return e;var o=String(e.arguments.length),a=this.controlFlowCustomNodeFactory(p.ControlFlowCustomNode.CallExpressionFunctionNode),i=e.arguments;a.initialize(i);var s=this.insertCustomNodeToControlFlowStorage(a,r,o,d.usingExistingIdentifierChance);return this.getControlFlowStorageCallNode(r.getStorageId(),s,n,i)}},{key:"getControlFlowStorageCallNode",value:function(e,t,r,n){var o=this.controlFlowCustomNodeFactory(p.ControlFlowCustomNode.CallExpressionControlFlowStorageCallNode);o.initialize(e,t,r,n);var a=o.getNode()[0];if(!a||!g.NodeGuards.isExpressionStatementNode(a))throw new Error("`controlFlowStorageCallCustomNode.getNode()[0]` should returns array with `ExpressionStatement` node");return a.expression}}]),t}(m.AbstractControlFlowReplacer);N.usingExistingIdentifierChance=.5,N=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IControlFlowCustomNode)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],N),t.CallExpressionControlFlowReplacer=N},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=r(5),p=u.__importStar(r(16)),m=r(52),g=r(29),N=r(19),v=r(12),y=r(13),h=r(14),_=r(9),b=r(24),S=r(11),I=d=function(e){function t(e,r,n,a){var c;return(0,o.default)(this,t),(c=(0,i.default)(this,(0,s.default)(t).call(this,n,a))).deadCodeInjectionRootAstHostNodeSet=new Set,c.collectedBlockStatements=[],c.collectedBlockStatementsTotalLength=0,c.deadCodeInjectionCustomNodeFactory=e,c.transformersRunner=r,c}return(0,c.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case v.TransformationStage.DeadCodeInjection:return{enter:function(e,r){if(r&&_.NodeGuards.isProgramNode(e))return t.analyzeNode(e,r),e},leave:function(e,r){if(r&&_.NodeGuards.isBlockStatementNode(e))return t.transformNode(e,r)}};case v.TransformationStage.Finalizing:return this.deadCodeInjectionRootAstHostNodeSet.size?{enter:function(e,r){if(r&&t.isDeadCodeInjectionRootAstHostNode(e))return t.restoreNode(e,r)}}:null;default:return null}}},{key:"analyzeNode",value:function(e,t){var r=this;p.traverse(e,{enter:function(e){if(_.NodeGuards.isBlockStatementNode(e)){var t=S.NodeUtils.clone(e);if(d.isValidCollectedBlockStatementNode(t)){var n=r.makeClonedBlockStatementNodeUnique(t);r.collectedBlockStatements.push(n)}}}}),this.collectedBlockStatementsTotalLength=this.collectedBlockStatements.length}},{key:"transformNode",value:function(e,t){if(!this.collectedBlockStatements.length||this.collectedBlockStatementsTotalLengththis.options.deadCodeInjectionThreshold||!d.isValidWrappedBlockStatementNode(e))return e;var r=this.collectedBlockStatements.length-1,n=this.randomGenerator.getRandomInteger(0,r),o=this.collectedBlockStatements.splice(n,1)[0];return o===e?e:this.replaceBlockStatementNode(e,o,t)}},{key:"restoreNode",value:function(e,t){var r=e.body[0];if(!_.NodeGuards.isFunctionDeclarationNode(r))throw new Error("Wrong dead code injection root AST host node. Host node should contain `FunctionDeclaration` node");return r.body}},{key:"isDeadCodeInjectionRootAstHostNode",value:function(e){return _.NodeGuards.isBlockStatementNode(e)&&this.deadCodeInjectionRootAstHostNodeSet.has(e)}},{key:"makeClonedBlockStatementNodeUnique",value:function(e){var t=h.NodeFactory.functionExpressionNode([],e);return S.NodeUtils.parentizeNode(t,t),S.NodeUtils.parentizeNode(e,t),this.transformersRunner.transform(t,d.transformersToRenameBlockScopeIdentifiers,v.TransformationStage.Obfuscating).body}},{key:"replaceBlockStatementNode",value:function(e,t,r){var n=h.NodeFactory.blockStatementNode([h.NodeFactory.functionDeclarationNode(d.deadCodeInjectionRootAstHostNodeName,[],t)]);this.deadCodeInjectionRootAstHostNodeSet.add(n);var o=this.deadCodeInjectionCustomNodeFactory(m.DeadCodeInjectionCustomNode.BlockStatementDeadCodeInjectionNode);o.initialize(e,n);var a=o.getNode()[0];return S.NodeUtils.parentizeNode(a,r),a}}],[{key:"isProhibitedNodeInsideCollectedBlockStatement",value:function(e){return _.NodeGuards.isBreakStatementNode(e)||_.NodeGuards.isContinueStatementNode(e)||_.NodeGuards.isAwaitExpressionNode(e)||_.NodeGuards.isSuperNode(e)}},{key:"isScopeHoistingFunctionDeclaration",value:function(e){if(!_.NodeGuards.isFunctionDeclarationNode(e))return!1;var t=b.NodeStatementUtils.getScopeOfNode(e),r=_.NodeGuards.isSwitchCaseNode(t)?t.consequent:t.body,n=r.indexOf(e);if(0===n)return!1;var o=r.slice(0,n),a=h.NodeFactory.blockStatementNode(o),i=e.id.name,s=!1;return p.traverse(a,{enter:function(e){if(_.NodeGuards.isIdentifierNode(e)&&e.name===i)return s=!0,p.VisitorOption.Break}}),s}},{key:"isValidCollectedBlockStatementNode",value:function(e){if(!e.body.length)return!1;var t=0,r=!0;return p.traverse(e,{enter:function(e){if(_.NodeGuards.isBlockStatementNode(e)&&t++,t>d.maxNestedBlockStatementsCount||d.isProhibitedNodeInsideCollectedBlockStatement(e)||d.isScopeHoistingFunctionDeclaration(e))return r=!1,p.VisitorOption.Break}}),r}},{key:"isValidWrappedBlockStatementNode",value:function(e){if(!e.body.length)return!1;var t=!0;return p.traverse(e,{enter:function(e){if(d.isScopeHoistingFunctionDeclaration(e))return t=!1,p.VisitorOption.Break}}),!!t&&b.NodeStatementUtils.getParentNodeWithStatements(e).type!==N.NodeType.Program}}]),t}(y.AbstractNodeTransformer);I.deadCodeInjectionRootAstHostNodeName="deadCodeInjectionRootAstHostNode",I.maxNestedBlockStatementsCount=4,I.minCollectedBlockStatementsCount=5,I.transformersToRenameBlockScopeIdentifiers=[g.NodeTransformer.CatchClauseTransformer,g.NodeTransformer.ClassDeclarationTransformer,g.NodeTransformer.FunctionDeclarationTransformer,g.NodeTransformer.FunctionTransformer,g.NodeTransformer.LabeledStatementTransformer,g.NodeTransformer.VariableDeclarationTransformer],I=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IDeadCodeInjectionCustomNode)),u.__param(1,l.inject(f.ServiceIdentifiers.ITransformersRunner)),u.__param(2,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(3,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object,Object])],I),t.DeadCodeInjectionTransformer=I},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=r(5),p=u.__importStar(r(16)),m=r(21),g=r(48),N=r(19),v=r(12),y=r(13),h=r(25),_=r(9),b=r(17),S=r(24),I=d=function(e){function t(e,r,n,a,c){var d;return(0,o.default)(this,t),(d=(0,i.default)(this,(0,s.default)(t).call(this,a,c))).controlFlowData=new Map,d.visitedFunctionNodes=new Set,d.hostNodesWithControlFlowNode=new Set,d.controlFlowStorageFactory=e,d.controlFlowReplacerFactory=r,d.controlFlowCustomNodeFactory=n,d}return(0,c.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case v.TransformationStage.ControlFlowFlattening:return{leave:function(e,r){if(r&&(_.NodeGuards.isFunctionDeclarationNode(e)||_.NodeGuards.isFunctionExpressionNode(e)||_.NodeGuards.isArrowFunctionExpressionNode(e)))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){if(this.visitedFunctionNodes.add(e),!_.NodeGuards.isBlockStatementNode(e.body))return e;var r=this.getHostNode(e.body),n=this.getControlFlowStorage(r);if(this.controlFlowData.set(r,n),this.transformFunctionBody(e.body,n),!n.getLength())return e;var o=this.controlFlowCustomNodeFactory(m.ControlFlowCustomNode.ControlFlowStorageNode);return o.initialize(n),h.NodeAppender.prepend(r,o.getNode()),this.hostNodesWithControlFlowNode.add(r),e}},{key:"getControlFlowStorage",value:function(e){var t=this.controlFlowStorageFactory();if(this.controlFlowData.has(e)){this.hostNodesWithControlFlowNode.has(e)&&(_.NodeGuards.isSwitchCaseNode(e)?e.consequent.shift():e.body.shift());var r=this.controlFlowData.get(e);t.mergeWith(r,!0)}return t}},{key:"getHostNode",value:function(e){var t=S.NodeStatementUtils.getParentNodesWithStatements(e);return 1===t.length?e:(t.pop(),t.length>d.hostNodeSearchMinDepth&&t.splice(0,d.hostNodeSearchMinDepth),t.length>d.hostNodeSearchMaxDepth&&(t.length=d.hostNodeSearchMaxDepth),this.randomGenerator.getRandomGenerator().pickone(t))}},{key:"isVisitedFunctionNode",value:function(e){return(_.NodeGuards.isFunctionDeclarationNode(e)||_.NodeGuards.isFunctionExpressionNode(e)||_.NodeGuards.isArrowFunctionExpressionNode(e))&&this.visitedFunctionNodes.has(e)}},{key:"transformFunctionBody",value:function(e,t){var r=this;p.replace(e,{enter:function(e,n){if(b.NodeMetadata.isIgnoredNode(e))return p.VisitorOption.Skip;if(r.isVisitedFunctionNode(e)||!n)return p.VisitorOption.Skip;if(!d.controlFlowReplacersMap.has(e.type))return e;if(r.randomGenerator.getMathRandom()>r.options.controlFlowFlatteningThreshold)return e;var o=d.controlFlowReplacersMap.get(e.type);return void 0===o?e:Object.assign({},r.controlFlowReplacerFactory(o).replace(e,n,t),{parentNode:n})}})}}]),t}(y.AbstractNodeTransformer);I.controlFlowReplacersMap=new Map([[N.NodeType.BinaryExpression,g.ControlFlowReplacer.BinaryExpressionControlFlowReplacer],[N.NodeType.CallExpression,g.ControlFlowReplacer.CallExpressionControlFlowReplacer],[N.NodeType.LogicalExpression,g.ControlFlowReplacer.LogicalExpressionControlFlowReplacer],[N.NodeType.Literal,g.ControlFlowReplacer.StringLiteralControlFlowReplacer]]),I.hostNodeSearchMinDepth=0,I.hostNodeSearchMaxDepth=2,I=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__TControlFlowStorage)),u.__param(1,l.inject(f.ServiceIdentifiers.Factory__IControlFlowReplacer)),u.__param(2,l.inject(f.ServiceIdentifiers.Factory__IControlFlowCustomNode)),u.__param(3,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(4,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Function,Function,Object,Object])],I),t.FunctionControlFlowTransformer=I},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=r(5),p=r(21),m=r(49),g=r(9),N=r(11),v=d=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r,n))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"replace",value:function(e,t,r){if(this.checkForProhibitedExpressions(e.left,e.right))return e;var n=e.operator,o=this.controlFlowCustomNodeFactory(p.ControlFlowCustomNode.LogicalExpressionFunctionNode);o.initialize(n);var a=this.insertCustomNodeToControlFlowStorage(o,r,n,d.usingExistingIdentifierChance);return this.getControlFlowStorageCallNode(r.getStorageId(),a,e.left,e.right)}},{key:"checkForProhibitedExpressions",value:function(e,t){return[e,t].some(function(e){var t;return t=g.NodeGuards.isUnaryExpressionNode(e)?N.NodeUtils.getUnaryExpressionArgumentNode(e):e,!(g.NodeGuards.isLiteralNode(t)||g.NodeGuards.isIdentifierNode(t)||g.NodeGuards.isObjectExpressionNode(t)||g.NodeGuards.isExpressionStatementNode(t))})}}]),t}(m.ExpressionWithOperatorControlFlowReplacer);v.usingExistingIdentifierChance=.5,v=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IControlFlowCustomNode)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],v),t.LogicalExpressionControlFlowReplacer=v},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=r(5),p=r(21),m=r(43),g=r(9),N=d=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r,n))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"replace",value:function(e,t,r){if(g.NodeGuards.isPropertyNode(t)&&t.key===e)return e;if("string"!=typeof e.value||e.value.length<3)return e;var n=String(e.value),o=this.controlFlowCustomNodeFactory(p.ControlFlowCustomNode.StringLiteralNode);o.initialize(e.value);var a=this.insertCustomNodeToControlFlowStorage(o,r,n,d.usingExistingIdentifierChance);return this.getControlFlowStorageCallNode(r.getStorageId(),a)}},{key:"getControlFlowStorageCallNode",value:function(e,t){var r=this.controlFlowCustomNodeFactory(p.ControlFlowCustomNode.StringLiteralControlFlowStorageCallNode);r.initialize(e,t);var n=r.getNode()[0];if(!n||!g.NodeGuards.isExpressionStatementNode(n))throw new Error("`controlFlowStorageCallCustomNode.getNode()[0]` should returns array with `ExpressionStatement` node");return n.expression}}]),t}(m.AbstractControlFlowReplacer);N.usingExistingIdentifierChance=1,N=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IControlFlowCustomNode)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],N),t.StringLiteralControlFlowReplacer=N},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(2),o=r(20),a=r(5),i=r(29),s=r(53),c=r(80),d=r(81),u=r(82),l=r(83),f=r(84),p=r(85),m=r(86);t.convertingTransformersModule=new n.ContainerModule(function(e){e(a.ServiceIdentifiers.INodeTransformer).to(d.MemberExpressionTransformer).whenTargetNamed(i.NodeTransformer.MemberExpressionTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(u.MethodDefinitionTransformer).whenTargetNamed(i.NodeTransformer.MethodDefinitionTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(l.ObjectExpressionKeysTransformer).whenTargetNamed(i.NodeTransformer.ObjectExpressionKeysTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(f.ObjectExpressionTransformer).whenTargetNamed(i.NodeTransformer.ObjectExpressionTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(p.TemplateLiteralTransformer).whenTargetNamed(i.NodeTransformer.TemplateLiteralTransformer),e(a.ServiceIdentifiers.IPropertiesExtractor).to(c.AssignmentExpressionPropertiesExtractor).whenTargetNamed(s.PropertiesExtractor.AssignmentExpressionPropertiesExtractor),e(a.ServiceIdentifiers.IPropertiesExtractor).to(m.VariableDeclaratorPropertiesExtractor).whenTargetNamed(s.PropertiesExtractor.VariableDeclaratorPropertiesExtractor),e(a.ServiceIdentifiers.Factory__IPropertiesExtractor).toFactory(o.InversifyContainerFacade.getCacheFactory(a.ServiceIdentifiers.IPropertiesExtractor))})},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(54),p=function(e){function t(e,r){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"extract",value:function(e,t){var r=t.parentNode,n=t.left;return f.AbstractPropertiesExtractor.isProhibitedPattern(n)?e:r&&f.AbstractPropertiesExtractor.isProhibitedHostParent(r)?e:this.transformObjectExpressionNode(e,n)}}]),t}(f.AbstractPropertiesExtractor);p=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Object,Object])],p),t.AssignmentExpressionPropertiesExtractor=p},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(12),p=r(13),m=r(14),g=r(9),N=function(e){function t(e,r){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case f.TransformationStage.Converting:return{enter:function(e,r){if(r&&g.NodeGuards.isMemberExpressionNode(e))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){if(g.NodeGuards.isIdentifierNode(e.property)){if(e.computed)return e;e.computed=!0,e.property=m.NodeFactory.literalNode(e.property.name)}return e}}]),t}(p.AbstractNodeTransformer);N=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Object,Object])],N),t.MemberExpressionTransformer=N},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=r(5),p=r(12),m=r(13),g=r(14),N=r(9),v=d=function(e){function t(e,r){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case p.TransformationStage.Converting:return{enter:function(e,r){if(r&&N.NodeGuards.isMethodDefinitionNode(e))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){return N.NodeGuards.isIdentifierNode(e.key)&&!d.ignoredNames.includes(e.key.name)&&!1===e.computed&&(e.computed=!0,e.key=g.NodeFactory.literalNode(e.key.name)),e}}]),t}(m.AbstractNodeTransformer);v.ignoredNames=["constructor"],v=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(1,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Object,Object])],v),t.MethodDefinitionTransformer=v},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=r(5),p=r(19),m=r(53),g=r(12),N=r(13),v=r(9),y=d=function(e){function t(e,r,n){var a;return(0,o.default)(this,t),(a=(0,i.default)(this,(0,s.default)(t).call(this,r,n))).propertiesExtractorFactory=e,a}return(0,c.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;return e!==g.TransformationStage.Converting?null:{enter:function(e,r){if(t.options.transformObjectKeys&&r&&v.NodeGuards.isObjectExpressionNode(e))return t.transformNode(e,r)}}}},{key:"transformNode",value:function(e,t){if(!e.properties.length)return e;var r=d.propertiesExtractorsMap.get(t.type);return r?this.propertiesExtractorFactory(r).extract(e,t):e}}]),t}(N.AbstractNodeTransformer);y.propertiesExtractorsMap=new Map([[p.NodeType.AssignmentExpression,m.PropertiesExtractor.AssignmentExpressionPropertiesExtractor],[p.NodeType.VariableDeclarator,m.PropertiesExtractor.VariableDeclaratorPropertiesExtractor]]),y=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IPropertiesExtractor)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],y),t.ObjectExpressionKeysTransformer=y},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(12),p=r(13),m=r(14),g=r(9),N=function(e){function t(e,r,n){var a;return(0,o.default)(this,t),(a=(0,i.default)(this,(0,s.default)(t).call(this,r,n))).escapeSequenceEncoder=e,a}return(0,c.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case f.TransformationStage.Converting:return{enter:function(e,r){if(r&&g.NodeGuards.isObjectExpressionNode(e))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){var r=this;return e.properties.forEach(function(e){e.key&&(e.computed?r.transformComputedProperty(e):r.transformBaseProperty(e))}),e}},{key:"transformComputedProperty",value:function(e){g.NodeGuards.isLiteralNode(e.key)&&"string"==typeof e.key.value&&(e.key=m.NodeFactory.literalNode(this.getPropertyKeyValue(e.key.value)))}},{key:"transformBaseProperty",value:function(e){e.shorthand&&(e.shorthand=!1),g.NodeGuards.isIdentifierNode(e.key)&&(e.key=m.NodeFactory.literalNode(this.getPropertyKeyValue(e.key.name)))}},{key:"getPropertyKeyValue",value:function(e){return this.options.unicodeEscapeSequence?this.escapeSequenceEncoder.encode(e,!0):e}}]),t}(p.AbstractNodeTransformer);N=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.IEscapeSequenceEncoder)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Object,Object,Object])],N),t.ObjectExpressionTransformer=N},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=r(5),p=r(12),m=r(13),g=r(14),N=r(9),v=r(11),y=d=function(e){function t(e,r){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case p.TransformationStage.Converting:return{leave:function(e,r){if(r&&d.isValidTemplateLiteralNode(e,r))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){var r,n=e.expressions,o=[];if(e.quasis.forEach(function(e){o.push(g.NodeFactory.literalNode(e.value.cooked));var t=n.shift();t&&o.push(t)}),o=o.filter(function(e){return!(N.NodeGuards.isLiteralNode(e)&&""===e.value)}),d.isLiteralNodeWithStringValue(o[0])||d.isLiteralNodeWithStringValue(o[1])||o.unshift(g.NodeFactory.literalNode("")),o.length>1){var a=g.NodeFactory.binaryExpressionNode("+",o.shift(),o.shift());o.forEach(function(e){a=g.NodeFactory.binaryExpressionNode("+",a,e)}),r=a}else r=o[0];return v.NodeUtils.parentizeAst(r),r}}],[{key:"isLiteralNodeWithStringValue",value:function(e){return e&&N.NodeGuards.isLiteralNode(e)&&"string"==typeof e.value}},{key:"isValidTemplateLiteralNode",value:function(e,t){return N.NodeGuards.isTemplateLiteralNode(e)&&!N.NodeGuards.isTaggedTemplateExpressionNode(t)}}]),t}(m.AbstractNodeTransformer);y=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(1,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Object,Object])],y),t.TemplateLiteralTransformer=y},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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=d.__importStar(r(16)),p=r(54),m=r(9),g=function(e){function t(e,r){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"extract",value:function(e,t){return!m.NodeGuards.isIdentifierNode(t.id)||this.isProhibitedObjectExpressionNode(e,t.id)?e:this.transformObjectExpressionNode(e,t.id)}},{key:"getHostVariableDeclaratorNode",value:function(e){var t=e.parentNode;if(!t||!m.NodeGuards.isVariableDeclaratorNode(t))throw new Error("Cannot get `VariableDeclarator` node for `ObjectExpression` node");return t}},{key:"getHostVariableDeclarationNode",value:function(e){var t=e.parentNode;if(!t||!m.NodeGuards.isVariableDeclarationNode(t))throw new Error("Cannot get `VariableDeclaration` node for `VariableDeclarator` node");return t}},{key:"isProhibitedObjectExpressionNode",value:function(e,t){var r=this.getHostVariableDeclaratorNode(e),n=this.getHostVariableDeclarationNode(r).declarations,o=n.indexOf(r);if(o===n.length-1)return!1;var a=!1;return n.slice(o).forEach(function(e){f.traverse(e,{enter:function(e){return m.NodeGuards.isMemberExpressionNode(e)&&m.NodeGuards.isIdentifierNode(e.object)&&e.object.name===t.name?(a=!0,f.VisitorOption.Break):e}})}),a}}]),t}(p.AbstractPropertiesExtractor);g=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Object,Object])],g),t.VariableDeclaratorPropertiesExtractor=g},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(20),o=r(2),a=r(5),i=r(21),s=r(31),c=r(55),d=r(52),u=r(88),l=r(89),f=r(90),p=r(91),m=r(92),g=r(93),N=r(96),v=r(97),y=r(98),h=r(99),_=r(100),b=r(101),S=r(103),I=r(105),C=r(107),F=r(111),O=r(113),j=r(114),k=r(115),T=r(117),x=r(119),E=r(126),w=r(128),G=r(131),R=r(132);t.customNodesModule=new o.ContainerModule(function(e){e(a.ServiceIdentifiers.ICustomNode).to(b.ConsoleOutputDisableExpressionNode).whenTargetNamed(s.CustomNode.ConsoleOutputDisableExpressionNode),e(a.ServiceIdentifiers.ICustomNode).to(S.DebugProtectionFunctionCallNode).whenTargetNamed(s.CustomNode.DebugProtectionFunctionCallNode),e(a.ServiceIdentifiers.ICustomNode).to(I.DebugProtectionFunctionIntervalNode).whenTargetNamed(s.CustomNode.DebugProtectionFunctionIntervalNode),e(a.ServiceIdentifiers.ICustomNode).to(C.DebugProtectionFunctionNode).whenTargetNamed(s.CustomNode.DebugProtectionFunctionNode),e(a.ServiceIdentifiers.ICustomNode).to(F.DomainLockNode).whenTargetNamed(s.CustomNode.DomainLockNode),e(a.ServiceIdentifiers.ICustomNode).to(k.NodeCallsControllerFunctionNode).whenTargetNamed(s.CustomNode.NodeCallsControllerFunctionNode),e(a.ServiceIdentifiers.ICustomNode).to(T.SelfDefendingUnicodeNode).whenTargetNamed(s.CustomNode.SelfDefendingUnicodeNode),e(a.ServiceIdentifiers.ICustomNode).to(x.StringArrayCallsWrapper).whenTargetNamed(s.CustomNode.StringArrayCallsWrapper),e(a.ServiceIdentifiers.ICustomNode).to(E.StringArrayNode).whenTargetNamed(s.CustomNode.StringArrayNode),e(a.ServiceIdentifiers.ICustomNode).to(w.StringArrayRotateFunctionNode).whenTargetNamed(s.CustomNode.StringArrayRotateFunctionNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(g.BinaryExpressionFunctionNode).whenTargetNamed(i.ControlFlowCustomNode.BinaryExpressionFunctionNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(N.BlockStatementControlFlowFlatteningNode).whenTargetNamed(i.ControlFlowCustomNode.BlockStatementControlFlowFlatteningNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(y.CallExpressionControlFlowStorageCallNode).whenTargetNamed(i.ControlFlowCustomNode.CallExpressionControlFlowStorageCallNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(h.CallExpressionFunctionNode).whenTargetNamed(i.ControlFlowCustomNode.CallExpressionFunctionNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(_.ControlFlowStorageNode).whenTargetNamed(i.ControlFlowCustomNode.ControlFlowStorageNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(O.ExpressionWithOperatorControlFlowStorageCallNode).whenTargetNamed(i.ControlFlowCustomNode.ExpressionWithOperatorControlFlowStorageCallNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(j.LogicalExpressionFunctionNode).whenTargetNamed(i.ControlFlowCustomNode.LogicalExpressionFunctionNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(R.StringLiteralNode).whenTargetNamed(i.ControlFlowCustomNode.StringLiteralNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(G.StringLiteralControlFlowStorageCallNode).whenTargetNamed(i.ControlFlowCustomNode.StringLiteralControlFlowStorageCallNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(v.BlockStatementDeadCodeInjectionNode).whenTargetNamed(d.DeadCodeInjectionCustomNode.BlockStatementDeadCodeInjectionNode),e(a.ServiceIdentifiers.ICustomNodeGroup).to(u.ConsoleOutputCustomNodeGroup).whenTargetNamed(c.CustomNodeGroup.ConsoleOutputCustomNodeGroup),e(a.ServiceIdentifiers.ICustomNodeGroup).to(l.DebugProtectionCustomNodeGroup).whenTargetNamed(c.CustomNodeGroup.DebugProtectionCustomNodeGroup),e(a.ServiceIdentifiers.ICustomNodeGroup).to(f.DomainLockCustomNodeGroup).whenTargetNamed(c.CustomNodeGroup.DomainLockCustomNodeGroup),e(a.ServiceIdentifiers.ICustomNodeGroup).to(p.SelfDefendingCustomNodeGroup).whenTargetNamed(c.CustomNodeGroup.SelfDefendingCustomNodeGroup),e(a.ServiceIdentifiers.ICustomNodeGroup).to(m.StringArrayCustomNodeGroup).whenTargetNamed(c.CustomNodeGroup.StringArrayCustomNodeGroup),e(a.ServiceIdentifiers.Factory__ICustomNode).toFactory(n.InversifyContainerFacade.getFactory(a.ServiceIdentifiers.ICustomNode)),e(a.ServiceIdentifiers.Factory__IControlFlowCustomNode).toFactory(n.InversifyContainerFacade.getConstructorFactory(a.ServiceIdentifiers.Newable__ICustomNode,a.ServiceIdentifiers.Factory__IIdentifierNamesGenerator,a.ServiceIdentifiers.IRandomGenerator,a.ServiceIdentifiers.IOptions)),e(a.ServiceIdentifiers.Factory__IDeadCodeInjectionCustomNode).toFactory(n.InversifyContainerFacade.getConstructorFactory(a.ServiceIdentifiers.Newable__ICustomNode,a.ServiceIdentifiers.Factory__IIdentifierNamesGenerator,a.ServiceIdentifiers.IRandomGenerator,a.ServiceIdentifiers.IOptions)),e(a.ServiceIdentifiers.Factory__ICustomNodeGroup).toFactory(n.InversifyContainerFacade.getFactory(a.ServiceIdentifiers.ICustomNodeGroup))})},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(10),p=r(31),m=r(26),g=r(33),N=r(25),v=function(e){function t(e,r,n,a){var c;return(0,o.default)(this,t),(c=(0,i.default)(this,(0,s.default)(t).call(this,r,n,a))).appendEvent=m.ObfuscationEvent.BeforeObfuscation,c.customNodeFactory=e,c}return(0,c.default)(t,e),(0,a.default)(t,[{key:"appendCustomNodes",value:function(e,t){var r=this.getRandomStackTraceIndex(t.length);this.appendCustomNodeIfExist(p.CustomNode.ConsoleOutputDisableExpressionNode,function(n){N.NodeAppender.appendToOptimalBlockScope(t,e,n.getNode(),r)}),this.appendCustomNodeIfExist(p.CustomNode.NodeCallsControllerFunctionNode,function(n){var o=t.length?N.NodeAppender.getOptimalBlockScope(t,r,1):e;N.NodeAppender.prepend(o,n.getNode())})}},{key:"initialize",value:function(){if(this.customNodes=new Map,this.options.disableConsoleOutput){var e=this.identifierNamesGenerator.generate(),t=this.customNodeFactory(p.CustomNode.ConsoleOutputDisableExpressionNode),r=this.customNodeFactory(p.CustomNode.NodeCallsControllerFunctionNode);t.initialize(e),r.initialize(this.appendEvent,e),this.customNodes.set(p.CustomNode.ConsoleOutputDisableExpressionNode,t),this.customNodes.set(p.CustomNode.NodeCallsControllerFunctionNode,r)}}}]),t}(g.AbstractCustomNodeGroup);d.__decorate([f.initializable(),d.__metadata("design:type",Map)],v.prototype,"customNodes",void 0),v=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__ICustomNode)),d.__param(1,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(3,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Function,Object,Object])],v),t.ConsoleOutputCustomNodeGroup=v},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(10),p=r(31),m=r(26),g=r(33),N=r(25),v=r(9),y=function(e){function t(e,r,n,a){var c;return(0,o.default)(this,t),(c=(0,i.default)(this,(0,s.default)(t).call(this,r,n,a))).appendEvent=m.ObfuscationEvent.BeforeObfuscation,c.customNodeFactory=e,c}return(0,c.default)(t,e),(0,a.default)(t,[{key:"appendCustomNodes",value:function(e,t){var r=this,n=this.getRandomStackTraceIndex(t.length);this.appendCustomNodeIfExist(p.CustomNode.DebugProtectionFunctionCallNode,function(r){N.NodeAppender.appendToOptimalBlockScope(t,e,r.getNode(),n)}),this.appendCustomNodeIfExist(p.CustomNode.DebugProtectionFunctionNode,function(t){N.NodeAppender.append(e,t.getNode())}),this.appendCustomNodeIfExist(p.CustomNode.DebugProtectionFunctionIntervalNode,function(t){var n=v.NodeGuards.isSwitchCaseNode(e)?e.consequent.length:e.body.length,o=r.randomGenerator.getRandomInteger(0,n);N.NodeAppender.insertAtIndex(e,t.getNode(),o)}),this.appendCustomNodeIfExist(p.CustomNode.NodeCallsControllerFunctionNode,function(r){var o=t.length?N.NodeAppender.getOptimalBlockScope(t,n,1):e;N.NodeAppender.prepend(o,r.getNode())})}},{key:"initialize",value:function(){if(this.customNodes=new Map,this.options.debugProtection){var e=this.identifierNamesGenerator.generate(),t=this.identifierNamesGenerator.generate(),r=this.customNodeFactory(p.CustomNode.DebugProtectionFunctionNode),n=this.customNodeFactory(p.CustomNode.DebugProtectionFunctionCallNode),o=this.customNodeFactory(p.CustomNode.DebugProtectionFunctionIntervalNode),a=this.customNodeFactory(p.CustomNode.NodeCallsControllerFunctionNode);r.initialize(e),n.initialize(e,t),o.initialize(e),a.initialize(this.appendEvent,t),this.customNodes.set(p.CustomNode.DebugProtectionFunctionNode,r),this.customNodes.set(p.CustomNode.DebugProtectionFunctionCallNode,n),this.options.debugProtectionInterval&&this.customNodes.set(p.CustomNode.DebugProtectionFunctionIntervalNode,o),this.customNodes.set(p.CustomNode.NodeCallsControllerFunctionNode,a)}}}]),t}(g.AbstractCustomNodeGroup);d.__decorate([f.initializable(),d.__metadata("design:type",Map)],y.prototype,"customNodes",void 0),y=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__ICustomNode)),d.__param(1,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(3,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Function,Object,Object])],y),t.DebugProtectionCustomNodeGroup=y},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(10),p=r(31),m=r(26),g=r(33),N=r(25),v=function(e){function t(e,r,n,a){var c;return(0,o.default)(this,t),(c=(0,i.default)(this,(0,s.default)(t).call(this,r,n,a))).appendEvent=m.ObfuscationEvent.BeforeObfuscation,c.customNodeFactory=e,c}return(0,c.default)(t,e),(0,a.default)(t,[{key:"appendCustomNodes",value:function(e,t){var r=this.getRandomStackTraceIndex(t.length);this.appendCustomNodeIfExist(p.CustomNode.DomainLockNode,function(n){N.NodeAppender.appendToOptimalBlockScope(t,e,n.getNode(),r)}),this.appendCustomNodeIfExist(p.CustomNode.NodeCallsControllerFunctionNode,function(n){var o=t.length?N.NodeAppender.getOptimalBlockScope(t,r,1):e;N.NodeAppender.prepend(o,n.getNode())})}},{key:"initialize",value:function(){if(this.customNodes=new Map,this.options.domainLock.length){var e=this.identifierNamesGenerator.generate(),t=this.customNodeFactory(p.CustomNode.DomainLockNode),r=this.customNodeFactory(p.CustomNode.NodeCallsControllerFunctionNode);t.initialize(e),r.initialize(this.appendEvent,e),this.customNodes.set(p.CustomNode.DomainLockNode,t),this.customNodes.set(p.CustomNode.NodeCallsControllerFunctionNode,r)}}}]),t}(g.AbstractCustomNodeGroup);d.__decorate([f.initializable(),d.__metadata("design:type",Map)],v.prototype,"customNodes",void 0),v=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__ICustomNode)),d.__param(1,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(3,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Function,Object,Object])],v),t.DomainLockCustomNodeGroup=v},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(10),p=r(31),m=r(26),g=r(33),N=r(25),v=function(e){function t(e,r,n,a){var c;return(0,o.default)(this,t),(c=(0,i.default)(this,(0,s.default)(t).call(this,r,n,a))).appendEvent=m.ObfuscationEvent.AfterObfuscation,c.customNodeFactory=e,c}return(0,c.default)(t,e),(0,a.default)(t,[{key:"appendCustomNodes",value:function(e,t){var r=this.getRandomStackTraceIndex(t.length);this.appendCustomNodeIfExist(p.CustomNode.SelfDefendingUnicodeNode,function(n){N.NodeAppender.appendToOptimalBlockScope(t,e,n.getNode(),r)}),this.appendCustomNodeIfExist(p.CustomNode.NodeCallsControllerFunctionNode,function(n){var o=t.length?N.NodeAppender.getOptimalBlockScope(t,r,1):e;N.NodeAppender.prepend(o,n.getNode())})}},{key:"initialize",value:function(){if(this.customNodes=new Map,this.options.selfDefending){var e=this.identifierNamesGenerator.generate(),t=this.customNodeFactory(p.CustomNode.SelfDefendingUnicodeNode),r=this.customNodeFactory(p.CustomNode.NodeCallsControllerFunctionNode);t.initialize(e),r.initialize(this.appendEvent,e),this.customNodes.set(p.CustomNode.SelfDefendingUnicodeNode,t),this.customNodes.set(p.CustomNode.NodeCallsControllerFunctionNode,r)}}}]),t}(g.AbstractCustomNodeGroup);d.__decorate([f.initializable(),d.__metadata("design:type",Map)],v.prototype,"customNodes",void 0),v=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__ICustomNode)),d.__param(1,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(3,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Function,Object,Object])],v),t.SelfDefendingCustomNodeGroup=v},function(e,t,r){"use strict";var n=r(0),o=n(r(30)),a=n(r(1)),i=n(r(3)),s=n(r(6)),c=n(r(7)),d=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var u=r(4),l=r(2),f=r(5),p=r(10),m=r(31),g=r(26),N=r(33),v=r(25),y=function(e){function t(e,r,n,o,i){var d;return(0,a.default)(this,t),(d=(0,s.default)(this,(0,c.default)(t).call(this,n,o,i))).appendEvent=g.ObfuscationEvent.AfterObfuscation,d.customNodeFactory=e,d.stringArrayStorage=r,d}return(0,d.default)(t,e),(0,i.default)(t,[{key:"appendCustomNodes",value:function(e,t){this.stringArrayStorage.getLength()&&(this.appendCustomNodeIfExist(m.CustomNode.StringArrayNode,function(t){v.NodeAppender.prepend(e,t.getNode())}),this.appendCustomNodeIfExist(m.CustomNode.StringArrayCallsWrapper,function(t){v.NodeAppender.insertAtIndex(e,t.getNode(),1)}),this.appendCustomNodeIfExist(m.CustomNode.StringArrayRotateFunctionNode,function(t){v.NodeAppender.insertAtIndex(e,t.getNode(),1)}))}},{key:"initialize",value:function(){if(this.customNodes=new Map,this.options.stringArray){var e,t=this.customNodeFactory(m.CustomNode.StringArrayNode),r=this.customNodeFactory(m.CustomNode.StringArrayCallsWrapper),n=this.customNodeFactory(m.CustomNode.StringArrayRotateFunctionNode),a=this.stringArrayStorage.getStorageId().split("|"),i=(0,o.default)(a,2),s=i[0],c=i[1];e=this.options.rotateStringArray?this.randomGenerator.getRandomInteger(100,500):0,t.initialize(this.stringArrayStorage,s,e),r.initialize(s,c),n.initialize(s,e),this.customNodes.set(m.CustomNode.StringArrayNode,t),this.customNodes.set(m.CustomNode.StringArrayCallsWrapper,r),this.options.rotateStringArray&&this.customNodes.set(m.CustomNode.StringArrayRotateFunctionNode,n)}}}]),t}(N.AbstractCustomNodeGroup);u.__decorate([p.initializable(),u.__metadata("design:type",Map)],y.prototype,"customNodes",void 0),y=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__ICustomNode)),u.__param(1,l.inject(f.ServiceIdentifiers.TStringArrayStorage)),u.__param(2,l.inject(f.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),u.__param(3,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(4,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Function,Object,Object])],y),t.StringArrayCustomNodeGroup=y},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(10),p=r(15),m=r(14),g=r(11),N=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r,n))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"initialize",value:function(e){this.operator=e}},{key:"getNodeStructure",value:function(){var e=m.NodeFactory.expressionStatementNode(m.NodeFactory.functionExpressionNode([m.NodeFactory.identifierNode("x"),m.NodeFactory.identifierNode("y")],m.NodeFactory.blockStatementNode([m.NodeFactory.returnStatementNode(m.NodeFactory.binaryExpressionNode(this.operator,m.NodeFactory.identifierNode("x"),m.NodeFactory.identifierNode("y")))])));return g.NodeUtils.parentizeAst(e),[e]}}]),t}(p.AbstractCustomNode);d.__decorate([f.initializable(),d.__metadata("design:type",String)],N.prototype,"operator",void 0),N=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object])],N),t.BinaryExpressionFunctionNode=N},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalVariableTemplate1=function(){return"\n var that;\n \n try {\n var getGlobal = Function('return (function() ' + '{}.constructor(\"return this\")( )' + ');');\n \n that = getGlobal();\n } catch (e) {\n that = window;\n }\n "}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalVariableTemplate2=function(){return"\n var getGlobal = function () {\n var globalObject;\n \n try {\n globalObject = Function('return (function() ' + '{}.constructor(\"return this\")( )' + ');')();\n } catch (e) {\n globalObject = window;\n }\n \n return globalObject;\n };\n var that = getGlobal();\n "}},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(10),p=r(15),m=r(14),g=r(9),N=r(11),v=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r,n))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"initialize",value:function(e,t,r){this.blockStatementBody=e,this.shuffledKeys=t,this.originalKeysIndexesInShuffledArray=r}},{key:"getNodeStructure",value:function(){var e=this,t=this.randomGenerator.getRandomString(6),r=this.randomGenerator.getRandomString(6),n=m.NodeFactory.blockStatementNode([m.NodeFactory.variableDeclarationNode([m.NodeFactory.variableDeclaratorNode(m.NodeFactory.identifierNode(t),m.NodeFactory.callExpressionNode(m.NodeFactory.memberExpressionNode(m.NodeFactory.literalNode(this.originalKeysIndexesInShuffledArray.join("|")),m.NodeFactory.identifierNode("split")),[m.NodeFactory.literalNode("|")])),m.NodeFactory.variableDeclaratorNode(m.NodeFactory.identifierNode(r),m.NodeFactory.literalNode(0))]),m.NodeFactory.whileStatementNode(m.NodeFactory.literalNode(!0),m.NodeFactory.blockStatementNode([m.NodeFactory.switchStatementNode(m.NodeFactory.memberExpressionNode(m.NodeFactory.identifierNode(t),m.NodeFactory.updateExpressionNode("++",m.NodeFactory.identifierNode(r)),!0),this.shuffledKeys.map(function(t,r){var n=e.blockStatementBody[t],o=[n];return g.NodeGuards.isReturnStatementNode(n)||o.push(m.NodeFactory.continueStatement()),m.NodeFactory.switchCaseNode(m.NodeFactory.literalNode(String(r)),o)})),m.NodeFactory.breakStatement()]))]);return N.NodeUtils.parentizeAst(n),[n]}}]),t}(p.AbstractCustomNode);d.__decorate([f.initializable(),d.__metadata("design:type",Array)],v.prototype,"blockStatementBody",void 0),d.__decorate([f.initializable(),d.__metadata("design:type",Array)],v.prototype,"originalKeysIndexesInShuffledArray",void 0),d.__decorate([f.initializable(),d.__metadata("design:type",Array)],v.prototype,"shuffledKeys",void 0),v=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object])],v),t.BlockStatementControlFlowFlatteningNode=v},function(e,t,r){"use strict";var n=r(0),o=n(r(30)),a=n(r(1)),i=n(r(3)),s=n(r(6)),c=n(r(7)),d=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var u=r(4),l=r(2),f=r(5),p=r(10),m=r(15),g=r(14),N=r(11),v=function(e){function t(e,r,n){return(0,a.default)(this,t),(0,s.default)(this,(0,c.default)(t).call(this,e,r,n))}return(0,d.default)(t,e),(0,i.default)(t,[{key:"initialize",value:function(e,t){this.blockStatementNode=e,this.deadCodeInjectionRootAstHostNode=t}},{key:"getNodeStructure",value:function(){var e=this.randomGenerator.getMathRandom()>.5,t=this.randomGenerator.getMathRandom()>.5,r=e?"===":"!==",n=this.randomGenerator.getRandomString(5),a=t?n:this.randomGenerator.getRandomString(5),i=e===t?[this.blockStatementNode,this.deadCodeInjectionRootAstHostNode]:[this.deadCodeInjectionRootAstHostNode,this.blockStatementNode],s=(0,o.default)(i,2),c=s[0],d=s[1],u=g.NodeFactory.blockStatementNode([g.NodeFactory.ifStatementNode(g.NodeFactory.binaryExpressionNode(r,g.NodeFactory.literalNode(n),g.NodeFactory.literalNode(a)),c,d)]);return N.NodeUtils.parentizeAst(u),[u]}}]),t}(m.AbstractCustomNode);u.__decorate([p.initializable(),u.__metadata("design:type",Object)],v.prototype,"blockStatementNode",void 0),u.__decorate([p.initializable(),u.__metadata("design:type",Object)],v.prototype,"deadCodeInjectionRootAstHostNode",void 0),v=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],v),t.BlockStatementDeadCodeInjectionNode=v},function(e,t,r){"use strict";var n=r(0),o=n(r(28)),a=n(r(1)),i=n(r(3)),s=n(r(6)),c=n(r(7)),d=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var u=r(4),l=r(2),f=r(5),p=r(10),m=r(15),g=r(14),N=r(11),v=function(e){function t(e,r,n){return(0,a.default)(this,t),(0,s.default)(this,(0,c.default)(t).call(this,e,r,n))}return(0,d.default)(t,e),(0,i.default)(t,[{key:"initialize",value:function(e,t,r,n){this.controlFlowStorageName=e,this.controlFlowStorageKey=t,this.callee=r,this.expressionArguments=n}},{key:"getNodeStructure",value:function(){var e=g.NodeFactory.expressionStatementNode(g.NodeFactory.callExpressionNode(g.NodeFactory.memberExpressionNode(g.NodeFactory.identifierNode(this.controlFlowStorageName),g.NodeFactory.identifierNode(this.controlFlowStorageKey)),[this.callee].concat((0,o.default)(this.expressionArguments))));return N.NodeUtils.parentizeAst(e),[e]}}]),t}(m.AbstractCustomNode);u.__decorate([p.initializable(),u.__metadata("design:type",Object)],v.prototype,"callee",void 0),u.__decorate([p.initializable(),u.__metadata("design:type",String)],v.prototype,"controlFlowStorageKey",void 0),u.__decorate([p.initializable(),u.__metadata("design:type",String)],v.prototype,"controlFlowStorageName",void 0),u.__decorate([p.initializable(),u.__metadata("design:type",Array)],v.prototype,"expressionArguments",void 0),v=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],v),t.CallExpressionControlFlowStorageCallNode=v},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(10),p=r(15),m=r(14),g=r(11),N=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r,n))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"initialize",value:function(e){this.expressionArguments=e}},{key:"getNodeStructure",value:function(){for(var e=m.NodeFactory.identifierNode("callee"),t=[],r=this.expressionArguments.length,n=0;n 0;\n \n switch (isPositive) {\n case true:\n return this.item + \'_\' + this.value + \'_\' + i;\n default:\n this.item + \'_\' + this.value;\n }\n }\n }()\n };\n };\n \n var regExp = new RegExp("[{diff}]", "g");\n var domains = "{domains}".replace(regExp, "").split(";");\n var document;\n var domain;\n var location;\n var hostname;\n\n for (var d in that) {\n if (d.length == 8 && d.charCodeAt(7) == 116 && d.charCodeAt(5) == 101 && d.charCodeAt(3) == 117 && d.charCodeAt(0) == 100) {\n document = d;\n \n break;\n }\n }\n\n for (var d1 in that[document]) {\n if (d1.length == 6 && d1.charCodeAt(5) == 110 && d1.charCodeAt(0) == 100) {\n domain = d1;\n \n break;\n }\n }\n\n if (!("~" > domain)) {\n for (var d2 in that[document]) {\n if (d2.length == 8 && d2.charCodeAt(7) == 110 && d2.charCodeAt(0) == 108) {\n location = d2;\n \n break;\n }\n }\n\n for (var d3 in that[document][location]) {\n if (d3.length == 8 && d3.charCodeAt(7) == 101 && d3.charCodeAt(0) == 104) {\n hostname = d3;\n \n break;\n }\n }\n }\n \n if (!document || !that[document]) {\n return;\n }\n \n var documentDomain = that[document][domain];\n var documentLocationHostName = !!that[document][location] && that[document][location][hostname];\n var currentDomain = documentDomain || documentLocationHostName;\n \n if (!currentDomain) {\n return;\n }\n \n var ok = false;\n \n for (var i = 0; i < domains.length; i++) {\n var domain = domains[i];\n var position = currentDomain.length - domain.length;\n var lastIndex = currentDomain.indexOf(domain, position);\n var endsWith = lastIndex !== -1 && lastIndex === position;\n \n if (endsWith) {\n if (currentDomain.length == domain.length || domain.indexOf(".") === 0) {\n ok = true;\n }\n }\n }\n \n if (!ok) {\n data;\n } else {\n return;\n }\n \n func();\n });\n\n {domainLockFunctionName}();\n '}},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(10),p=r(15),m=r(14),g=r(11),N=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r,n))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"initialize",value:function(e,t,r,n){this.controlFlowStorageName=e,this.controlFlowStorageKey=t,this.leftValue=r,this.rightValue=n}},{key:"getNodeStructure",value:function(){var e=m.NodeFactory.expressionStatementNode(m.NodeFactory.callExpressionNode(m.NodeFactory.memberExpressionNode(m.NodeFactory.identifierNode(this.controlFlowStorageName),m.NodeFactory.identifierNode(this.controlFlowStorageKey)),[this.leftValue,this.rightValue]));return g.NodeUtils.parentizeAst(e),[e]}}]),t}(p.AbstractCustomNode);d.__decorate([f.initializable(),d.__metadata("design:type",String)],N.prototype,"controlFlowStorageKey",void 0),d.__decorate([f.initializable(),d.__metadata("design:type",String)],N.prototype,"controlFlowStorageName",void 0),d.__decorate([f.initializable(),d.__metadata("design:type",Object)],N.prototype,"leftValue",void 0),d.__decorate([f.initializable(),d.__metadata("design:type",Object)],N.prototype,"rightValue",void 0),N=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object])],N),t.ExpressionWithOperatorControlFlowStorageCallNode=N},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(10),p=r(15),m=r(14),g=r(11),N=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r,n))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"initialize",value:function(e){this.operator=e}},{key:"getNodeStructure",value:function(){var e=m.NodeFactory.expressionStatementNode(m.NodeFactory.functionExpressionNode([m.NodeFactory.identifierNode("x"),m.NodeFactory.identifierNode("y")],m.NodeFactory.blockStatementNode([m.NodeFactory.returnStatementNode(m.NodeFactory.logicalExpressionNode(this.operator,m.NodeFactory.identifierNode("x"),m.NodeFactory.identifierNode("y")))])));return g.NodeUtils.parentizeAst(e),[e]}}]),t}(p.AbstractCustomNode);d.__decorate([f.initializable(),d.__metadata("design:type",String)],N.prototype,"operator",void 0),N=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object])],N),t.LogicalExpressionFunctionNode=N},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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=d.__importDefault(r(18)),p=r(26),m=r(10),g=r(116),N=r(38),v=r(15),y=r(32),h=r(11),_=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r,n))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"initialize",value:function(e,t){this.appendEvent=e,this.callsControllerFunctionName=t}},{key:"getNodeStructure",value:function(){return h.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){return this.appendEvent===p.ObfuscationEvent.AfterObfuscation?y.JavaScriptObfuscator.obfuscate(f.default(g.SingleNodeCallControllerTemplate(),{singleNodeCallControllerFunctionName:this.callsControllerFunctionName}),Object.assign({},N.NO_ADDITIONAL_NODES_PRESET,{identifierNamesGenerator:this.options.identifierNamesGenerator,seed:this.options.seed})).getObfuscatedCode():f.default(g.SingleNodeCallControllerTemplate(),{singleNodeCallControllerFunctionName:this.callsControllerFunctionName})}}]),t}(v.AbstractCustomNode);d.__decorate([m.initializable(),d.__metadata("design:type",String)],_.prototype,"callsControllerFunctionName",void 0),d.__decorate([m.initializable(),d.__metadata("design:type",String)],_.prototype,"appendEvent",void 0),_=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object])],_),t.NodeCallsControllerFunctionNode=_},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SingleNodeCallControllerTemplate=function(){return"\n var {singleNodeCallControllerFunctionName} = (function(){\n var firstCall = true;\n \n return function (context, fn){\n var rfn = firstCall ? function(){\n if(fn){\n var res = fn.apply(context, arguments);\n fn = null;\n return res;\n }\n } : function(){}\n \n firstCall = false;\n \n return rfn;\n }\n })();\n "}},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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=d.__importDefault(r(18)),p=r(10),m=r(38),g=r(118),N=r(15),v=r(32),y=r(11),h=function(e){function t(e,r,n,a){var c;return(0,o.default)(this,t),(c=(0,i.default)(this,(0,s.default)(t).call(this,e,r,a))).escapeSequenceEncoder=n,c}return(0,c.default)(t,e),(0,a.default)(t,[{key:"initialize",value:function(e){this.callsControllerFunctionName=e}},{key:"getNodeStructure",value:function(){return y.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){return v.JavaScriptObfuscator.obfuscate(f.default(g.SelfDefendingTemplate(this.escapeSequenceEncoder),{selfDefendingFunctionName:this.identifierNamesGenerator.generate(),singleNodeCallControllerFunctionName:this.callsControllerFunctionName}),Object.assign({},m.NO_ADDITIONAL_NODES_PRESET,{identifierNamesGenerator:this.options.identifierNamesGenerator,seed:this.options.seed,unicodeEscapeSequence:!0})).getObfuscatedCode()}}]),t}(N.AbstractCustomNode);d.__decorate([p.initializable(),d.__metadata("design:type",String)],h.prototype,"callsControllerFunctionName",void 0),h=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IEscapeSequenceEncoder)),d.__param(3,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object,Object])],h),t.SelfDefendingUnicodeNode=h},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SelfDefendingTemplate=function(e){return"\n var {selfDefendingFunctionName} = {singleNodeCallControllerFunctionName}(this, function () {\n var func1 = function(){return 'dev';},\n func2 = function () {\n return 'window';\n };\n \n var test1 = function () {\n var regExp = new RegExp('".concat(e.encode("\\w+ *\\(\\) *{\\w+ *['|\"].+['|\"];? *}",!0),"');\n \n return !regExp.test(func1.toString());\n };\n \n var test2 = function () {\n var regExp = new RegExp('").concat(e.encode("(\\\\[x|u](\\w){2,4})+",!0),"');\n \n return regExp.test(func2.toString());\n };\n \n var recursiveFunc1 = function (string) {\n var i = ~-1 >> 1 + 255 % 0;\n \n if (string.indexOf('i' === i)) {\n recursiveFunc2(string)\n }\n };\n \n var recursiveFunc2 = function (string) {\n var i = ~-4 >> 1 + 255 % 0;\n \n if (string.indexOf((true+\"\")[3]) !== i) {\n recursiveFunc1(string)\n }\n };\n \n if (!test1()) {\n if (!test2()) {\n recursiveFunc1('indеxOf');\n } else {\n recursiveFunc1('indexOf');\n }\n } else {\n recursiveFunc1('indеxOf');\n }\n })\n \n {selfDefendingFunctionName}();\n ")}},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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=d.__importDefault(r(18)),p=r(23),m=r(37),g=r(10),N=r(38),v=r(120),y=r(45),h=r(121),_=r(122),b=r(123),S=r(124),I=r(125),C=r(15),F=r(32),O=r(11),j=function(e){function t(e,r,n,a){var c;return(0,o.default)(this,t),(c=(0,i.default)(this,(0,s.default)(t).call(this,e,r,a))).escapeSequenceEncoder=n,c}return(0,c.default)(t,e),(0,a.default)(t,[{key:"initialize",value:function(e,t){this.stringArrayName=e,this.stringArrayCallsWrapperName=t}},{key:"getNodeStructure",value:function(){return O.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){var e=this.getDecodeStringArrayTemplate();return F.JavaScriptObfuscator.obfuscate(f.default(S.StringArrayCallsWrapperTemplate(),{decodeNodeTemplate:e,stringArrayCallsWrapperName:this.stringArrayCallsWrapperName,stringArrayName:this.stringArrayName}),Object.assign({},N.NO_ADDITIONAL_NODES_PRESET,{identifierNamesGenerator:this.options.identifierNamesGenerator,seed:this.options.seed})).getObfuscatedCode()}},{key:"getDecodeStringArrayTemplate",value:function(){var e=this.options.target!==p.ObfuscationTarget.BrowserNoEval?this.getGlobalVariableTemplate():y.GlobalVariableNoEvalTemplate(),t=f.default(v.AtobTemplate(),{globalVariableTemplate:e}),r="",n="";switch(this.options.selfDefending&&(n=f.default(_.SelfDefendingTemplate(this.randomGenerator,this.escapeSequenceEncoder),{stringArrayCallsWrapperName:this.stringArrayCallsWrapperName,stringArrayName:this.stringArrayName})),this.options.stringArrayEncoding){case m.StringArrayEncoding.Rc4:r=f.default(I.StringArrayRc4DecodeNodeTemplate(this.randomGenerator),{atobPolyfill:t,rc4Polyfill:h.Rc4Template(),selfDefendingCode:n,stringArrayCallsWrapperName:this.stringArrayCallsWrapperName});break;case m.StringArrayEncoding.Base64:r=f.default(b.StringArrayBase64DecodeNodeTemplate(this.randomGenerator),{atobPolyfill:t,selfDefendingCode:n,stringArrayCallsWrapperName:this.stringArrayCallsWrapperName})}return r}}]),t}(C.AbstractCustomNode);d.__decorate([g.initializable(),d.__metadata("design:type",String)],j.prototype,"stringArrayName",void 0),d.__decorate([g.initializable(),d.__metadata("design:type",String)],j.prototype,"stringArrayCallsWrapperName",void 0),j=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IEscapeSequenceEncoder)),d.__param(3,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object,Object])],j),t.StringArrayCallsWrapper=j},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AtobTemplate=function(){return"\n (function () {\n {globalVariableTemplate}\n \n var chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';\n\n that.atob || (\n that.atob = function(input) {\n var str = String(input).replace(/=+$/, '');\n for (\n var bc = 0, bs, buffer, idx = 0, output = '';\n buffer = str.charAt(idx++);\n ~buffer && (bs = bc % 4 ? bs * 64 + buffer : buffer,\n bc++ % 4) ? output += String.fromCharCode(255 & bs >> (-2 * bc & 6)) : 0\n ) {\n buffer = chars.indexOf(buffer);\n }\n return output;\n });\n })();\n "}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Rc4Template=function(){return"\n var rc4 = function (str, key) {\n var s = [], j = 0, x, res = '', newStr = '';\n \n str = atob(str);\n \n for (var k = 0, length = str.length; k < length; k++) {\n newStr += '%' + ('00' + str.charCodeAt(k).toString(16)).slice(-2);\n }\n \n str = decodeURIComponent(newStr);\n \t \n\t for (var 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 (var 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 res += String.fromCharCode(str.charCodeAt(y) ^ s[(s[i] + s[j]) % 256]);\n }\n \n return res;\n }\n "}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SelfDefendingTemplate=function(e,t){var r=e.getRandomString(6),n=e.getRandomString(6),o=e.getRandomString(6),a=e.getRandomString(6),i=e.getRandomString(6),s=e.getRandomString(6),c=e.getRandomString(6),d=e.getRandomString(6),u=e.getRandomString(6);return"\n var StatesClass = function (".concat(r,") {\n this.").concat(r," = ").concat(r,";\n this.").concat(n," = [1, 0, 0];\n this.").concat(o," = function(){return 'newState';};\n this.").concat(a," = '").concat(t.encode("\\w+ *\\(\\) *{\\w+ *",!0),"';\n this.").concat(i," = '").concat(t.encode("['|\"].+['|\"];? *}",!0),"';\n };\n \n StatesClass.prototype.").concat(s," = function () {\n var regExp = new RegExp(this.").concat(a," + this.").concat(i,");\n var expression = regExp.test(this.").concat(o,".toString())\n ? --this.").concat(n,"[1]\n : --this.").concat(n,"[0];\n \n return this.").concat(c,"(expression);\n };\n \n StatesClass.prototype.").concat(c," = function (").concat(u,") {\n if (!Boolean(~").concat(u,")) {\n return ").concat(u,";\n }\n \n return this.").concat(d,"(this.").concat(r,");\n };\n\n StatesClass.prototype.").concat(d," = function (").concat(r,") {\n for (var i = 0, len = this.").concat(n,".length; i < len; i++) {\n this.").concat(n,".push(Math.round(Math.random()));\n len = this.").concat(n,".length;\n }\n \n return ").concat(r,"(this.").concat(n,"[0]);\n };\n\n new StatesClass({stringArrayCallsWrapperName}).").concat(s,"();\n ")}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayBase64DecodeNodeTemplate=function(e){var t=e.getRandomString(6),r=e.getRandomString(6),n=e.getRandomString(6);return"\n if ({stringArrayCallsWrapperName}.".concat(t," === undefined) {\n {atobPolyfill}\n \n {stringArrayCallsWrapperName}.").concat(r," = function (str) {\n var string = atob(str);\n var newStringChars = [];\n \n for (var i = 0, length = string.length; i < length; i++) {\n newStringChars += '%' + ('00' + string.charCodeAt(i).toString(16)).slice(-2);\n }\n \n return decodeURIComponent(newStringChars);\n };\n \n {stringArrayCallsWrapperName}.").concat(n," = {};\n \n {stringArrayCallsWrapperName}.").concat(t," = true;\n }\n \n var cachedValue = {stringArrayCallsWrapperName}.").concat(n,"[index];\n \n if (cachedValue === undefined) {\n {selfDefendingCode}\n \n value = {stringArrayCallsWrapperName}.").concat(r,"(value);\n {stringArrayCallsWrapperName}.").concat(n,"[index] = value;\n } else {\n value = cachedValue;\n }\n ")}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayCallsWrapperTemplate=function(){return"\n var {stringArrayCallsWrapperName} = function (index, key) {\n index = index - 0;\n \n var value = {stringArrayName}[index];\n \n {decodeNodeTemplate}\n \n return value;\n };\n "}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayRc4DecodeNodeTemplate=function(e){var t=e.getRandomString(6),r=e.getRandomString(6),n=e.getRandomString(6),o=e.getRandomString(6);return"\n if ({stringArrayCallsWrapperName}.".concat(t," === undefined) {\n {atobPolyfill}\n \n {rc4Polyfill}\n {stringArrayCallsWrapperName}.").concat(r," = rc4;\n \n {stringArrayCallsWrapperName}.").concat(n," = {};\n \n {stringArrayCallsWrapperName}.").concat(t," = true;\n }\n \n var cachedValue = {stringArrayCallsWrapperName}.").concat(n,"[index];\n\n if (cachedValue === undefined) {\n if ({stringArrayCallsWrapperName}.").concat(o," === undefined) {\n {selfDefendingCode}\n \n {stringArrayCallsWrapperName}.").concat(o," = true;\n }\n \n value = {stringArrayCallsWrapperName}.").concat(r,"(value, key);\n {stringArrayCallsWrapperName}.").concat(n,"[index] = value;\n } else {\n value = cachedValue;\n }\n ")}},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(39)),d=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var u=r(4),l=r(2),f=r(5),p=u.__importDefault(r(18)),m=r(10),g=r(127),N=r(15),v=r(11),y=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r,n))}return(0,d.default)(t,e),(0,a.default)(t,[{key:"initialize",value:function(e,t,r){this.stringArrayStorage=e,this.stringArrayName=t,this.stringArrayRotateValue=r}},{key:"getNode",value:function(){return this.stringArrayStorage.rotateArray(this.stringArrayRotateValue),(0,c.default)((0,s.default)(t.prototype),"getNode",this).call(this)}},{key:"getNodeStructure",value:function(){return v.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){return p.default(g.StringArrayTemplate(),{stringArrayName:this.stringArrayName,stringArray:this.stringArrayStorage.toString()})}}]),t}(N.AbstractCustomNode);u.__decorate([m.initializable(),u.__metadata("design:type",Object)],y.prototype,"stringArrayStorage",void 0),u.__decorate([m.initializable(),u.__metadata("design:type",String)],y.prototype,"stringArrayName",void 0),u.__decorate([m.initializable(),u.__metadata("design:type",Number)],y.prototype,"stringArrayRotateValue",void 0),y=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],y),t.StringArrayNode=y},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayTemplate=function(){return"\n var {stringArrayName} = [{stringArray}];\n "}},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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=d.__importDefault(r(18)),p=r(10),m=r(38),g=r(129),N=r(130),v=r(15),y=r(32),h=r(11),_=r(40),b=function(e){function t(e,r,n,a){var c;return(0,o.default)(this,t),(c=(0,i.default)(this,(0,s.default)(t).call(this,e,r,a))).escapeSequenceEncoder=n,c}return(0,c.default)(t,e),(0,a.default)(t,[{key:"initialize",value:function(e,t){this.stringArrayName=e,this.stringArrayRotateValue=t}},{key:"getNodeStructure",value:function(){return h.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){var e=this.identifierNamesGenerator.generate(),t=this.identifierNamesGenerator.generate(),r="";return r=this.options.selfDefending?f.default(g.SelfDefendingTemplate(this.escapeSequenceEncoder),{timesName:e,whileFunctionName:t}):"".concat(t,"(++").concat(e,")"),y.JavaScriptObfuscator.obfuscate(f.default(N.StringArrayRotateFunctionTemplate(),{code:r,timesName:e,stringArrayName:this.stringArrayName,stringArrayRotateValue:_.NumberUtils.toHex(this.stringArrayRotateValue),whileFunctionName:t}),Object.assign({},m.NO_ADDITIONAL_NODES_PRESET,{identifierNamesGenerator:this.options.identifierNamesGenerator,seed:this.options.seed})).getObfuscatedCode()}}]),t}(v.AbstractCustomNode);d.__decorate([p.initializable(),d.__metadata("design:type",String)],b.prototype,"stringArrayName",void 0),d.__decorate([p.initializable(),d.__metadata("design:type",Number)],b.prototype,"stringArrayRotateValue",void 0),b=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IEscapeSequenceEncoder)),d.__param(3,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object,Object])],b),t.StringArrayRotateFunctionNode=b},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SelfDefendingTemplate=function(e){return"\n var selfDefendingFunc = function () {\n var object = {\n data: {\n key: 'cookie',\n value: 'timeout'\n },\n setCookie: function (options, name, value, document) {\n document = document || {};\n \n var updatedCookie = name + \"=\" + value;\n\n var i = 0;\n \n for (var i = 0, len = options.length; i < len; i++) {\n var propName = options[i];\n \n updatedCookie += \"; \" + propName;\n \n var propValue = options[propName];\n \n options.push(propValue);\n len = options.length;\n \n if (propValue !== true) {\n updatedCookie += \"=\" + propValue;\n }\n }\n\n document['cookie'] = updatedCookie;\n },\n removeCookie: function(){return 'dev';},\n getCookie: function (document, name) {\n document = document || function (value) { return value };\n var matches = document(new RegExp(\n \"(?:^|; )\" + name.replace(/([.$?*|{}()[]\\/+^])/g, '\\$1') + \"=([^;]*)\"\n ));\n \n var func = function (param1, param2) {\n param1(++param2);\n };\n \n func({whileFunctionName}, {timesName});\n \n return matches ? decodeURIComponent(matches[1]) : undefined;\n }\n };\n \n var test1 = function () {\n var regExp = new RegExp('".concat(e.encode("\\w+ *\\(\\) *{\\w+ *['|\"].+['|\"];? *}",!0),"');\n \n return regExp.test(object.removeCookie.toString());\n };\n \n object['updateCookie'] = test1;\n \n var cookie = '';\n var result = object['updateCookie']();\n \n if (!result) {\n object['setCookie'](['*'], 'counter', 1);\n } else if (result) {\n cookie = object['getCookie'](null, 'counter');\n } else {\n object['removeCookie']();\n }\n };\n \n selfDefendingFunc();\n ")}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayRotateFunctionTemplate=function(){return"\n (function (array, {timesName}) {\n var {whileFunctionName} = function (times) {\n while (--times) {\n array['push'](array['shift']());\n }\n };\n \n {code}\n })({stringArrayName}, 0x{stringArrayRotateValue});\n "}},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(10),p=r(15),m=r(14),g=r(11),N=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r,n))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"initialize",value:function(e,t){this.controlFlowStorageName=e,this.controlFlowStorageKey=t}},{key:"getNodeStructure",value:function(){var e=m.NodeFactory.expressionStatementNode(m.NodeFactory.memberExpressionNode(m.NodeFactory.identifierNode(this.controlFlowStorageName),m.NodeFactory.identifierNode(this.controlFlowStorageKey)));return g.NodeUtils.parentizeAst(e),[e]}}]),t}(p.AbstractCustomNode);d.__decorate([f.initializable(),d.__metadata("design:type",String)],N.prototype,"controlFlowStorageKey",void 0),d.__decorate([f.initializable(),d.__metadata("design:type",String)],N.prototype,"controlFlowStorageName",void 0),N=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object])],N),t.StringLiteralControlFlowStorageCallNode=N},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(10),p=r(15),m=r(14),g=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r,n))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"initialize",value:function(e){this.literalValue=e}},{key:"getNodeStructure",value:function(){return[m.NodeFactory.expressionStatementNode(m.NodeFactory.literalNode(this.literalValue))]}}]),t}(p.AbstractCustomNode);d.__decorate([f.initializable(),d.__metadata("design:type",String)],g.prototype,"literalValue",void 0),g=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),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.StringLiteralNode=g},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(2);t.finalizingTransformersModule=new n.ContainerModule(function(e){})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(2),o=r(5),a=r(35),i=r(135),s=r(136);t.generatorsModule=new n.ContainerModule(function(e){e(o.ServiceIdentifiers.IIdentifierNamesGenerator).to(i.HexadecimalIdentifierNamesGenerator).inSingletonScope().whenTargetNamed(a.IdentifierNamesGenerator.HexadecimalIdentifierNamesGenerator),e(o.ServiceIdentifiers.IIdentifierNamesGenerator).to(s.MangledIdentifierNamesGenerator).inSingletonScope().whenTargetNamed(a.IdentifierNamesGenerator.MangledIdentifierNamesGenerator),e(o.ServiceIdentifiers.Factory__IIdentifierNamesGenerator).toFactory(function(e){var t=null;return function(r){if(t)return t;var n;switch(r.identifierNamesGenerator){case a.IdentifierNamesGenerator.MangledIdentifierNamesGenerator:n=e.container.getNamed(o.ServiceIdentifiers.IIdentifierNamesGenerator,a.IdentifierNamesGenerator.MangledIdentifierNamesGenerator);break;case a.IdentifierNamesGenerator.HexadecimalIdentifierNamesGenerator:default:n=e.container.getNamed(o.ServiceIdentifiers.IIdentifierNamesGenerator,a.IdentifierNamesGenerator.HexadecimalIdentifierNamesGenerator)}return t=n,n}})})},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=r(5),p=r(56),m=r(40),g=r(34),N=d=function(e){function t(e,r){var n;return(0,o.default)(this,t),(n=(0,i.default)(this,(0,s.default)(t).call(this,e,r))).randomVariableNameSet=new Set,n}return(0,c.default)(t,e),(0,a.default)(t,[{key:"generate",value:function(e){var t=this.randomGenerator.getRandomInteger(1e4,99999999),r=m.NumberUtils.toHex(t),n=g.Utils.hexadecimalPrefix.length+1,o=e?e-n:d.baseIdentifierNameLength,a=r.substr(0,o),i="_".concat(g.Utils.hexadecimalPrefix).concat(a);return this.randomVariableNameSet.has(i)?this.generate(e):(this.randomVariableNameSet.add(i),i)}},{key:"generateWithPrefix",value:function(e){var t=this.generate(e);return"".concat(this.options.identifiersPrefix).concat(t).replace("__","_")}}]),t}(p.AbstractIdentifierNamesGenerator);N.baseIdentifierNameLength=6,N=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(1,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Object,Object])],N),t.HexadecimalIdentifierNamesGenerator=N},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(39)),d=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var u,l=r(4),f=r(2),p=r(5),m=r(56),g=u=function(e){function t(e,r){var n;return(0,o.default)(this,t),(n=(0,i.default)(this,(0,s.default)(t).call(this,e,r))).previousMangledName=u.initMangledNameCharacter,n}return(0,d.default)(t,e),(0,a.default)(t,[{key:"generate",value:function(e){var t=this.generateNewMangledName(this.previousMangledName);return this.previousMangledName=t,t}},{key:"generateWithPrefix",value:function(e){var t=this.options.identifiersPrefix?"".concat(this.options.identifiersPrefix,"_"):"",r=this.generate(e);return"".concat(t).concat(r)}},{key:"isValidIdentifierName",value:function(e){return(0,c.default)((0,s.default)(t.prototype),"isValidIdentifierName",this).call(this,e)&&!u.reservedNames.includes(e)}},{key:"generateNewMangledName",value:function(e){var t=function(e){var t=u.nameSequence,r=e.length,n=function(e){return"0".repeat(e)},o=r-1;do{var a=e.charAt(o),i=t.indexOf(a);if(i!==t.length-1)return e.substring(0,o)+t[i+1]+n(r-(o+1));--o}while(o>=0);return"a".concat(n(r))},r=t(e);return this.isValidIdentifierName(r)||(r=this.generateNewMangledName(r)),r}}]),t}(m.AbstractIdentifierNamesGenerator);g.initMangledNameCharacter="9",g.nameSequence="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""),g.reservedNames=["byte","case","char","do","else","enum","eval","for","goto","if","in","int","let","long","new","null","this","true","try","var","void","with"],g=u=l.__decorate([f.injectable(),l.__param(0,f.inject(p.ServiceIdentifiers.IRandomGenerator)),l.__param(1,f.inject(p.ServiceIdentifiers.IOptions)),l.__metadata("design:paramtypes",[Object,Object])],g),t.MangledIdentifierNamesGenerator=g},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(20),o=r(2),a=r(5);t.nodeTransformersModule=new o.ContainerModule(function(e){e(a.ServiceIdentifiers.Factory__INodeTransformer).toFactory(n.InversifyContainerFacade.getCacheFactory(a.ServiceIdentifiers.INodeTransformer))})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(20),o=r(2),a=r(5),i=r(22),s=r(57),c=r(29),d=r(139),u=r(140),l=r(141),f=r(142),p=r(143),m=r(144),g=r(145),N=r(146),v=r(147),y=r(148),h=r(149),_=r(150);t.obfuscatingTransformersModule=new o.ContainerModule(function(e){e(a.ServiceIdentifiers.INodeTransformer).to(l.CatchClauseTransformer).whenTargetNamed(c.NodeTransformer.CatchClauseTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(f.ClassDeclarationTransformer).whenTargetNamed(c.NodeTransformer.ClassDeclarationTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(p.FunctionDeclarationTransformer).whenTargetNamed(c.NodeTransformer.FunctionDeclarationTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(m.FunctionTransformer).whenTargetNamed(c.NodeTransformer.FunctionTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(g.ImportDeclarationTransformer).whenTargetNamed(c.NodeTransformer.ImportDeclarationTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(N.LabeledStatementTransformer).whenTargetNamed(c.NodeTransformer.LabeledStatementTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(v.LiteralTransformer).whenTargetNamed(c.NodeTransformer.LiteralTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(_.VariableDeclarationTransformer).whenTargetNamed(c.NodeTransformer.VariableDeclarationTransformer),e(a.ServiceIdentifiers.IObfuscatingReplacer).to(u.BooleanLiteralObfuscatingReplacer).whenTargetNamed(s.LiteralObfuscatingReplacer.BooleanLiteralObfuscatingReplacer),e(a.ServiceIdentifiers.IObfuscatingReplacer).to(y.NumberLiteralObfuscatingReplacer).whenTargetNamed(s.LiteralObfuscatingReplacer.NumberLiteralObfuscatingReplacer),e(a.ServiceIdentifiers.IObfuscatingReplacer).to(h.StringLiteralObfuscatingReplacer).whenTargetNamed(s.LiteralObfuscatingReplacer.StringLiteralObfuscatingReplacer),e(a.ServiceIdentifiers.IIdentifierObfuscatingReplacer).to(d.BaseIdentifierObfuscatingReplacer).whenTargetNamed(i.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer),e(a.ServiceIdentifiers.Factory__IObfuscatingReplacer).toFactory(n.InversifyContainerFacade.getCacheFactory(a.ServiceIdentifiers.IObfuscatingReplacer)),e(a.ServiceIdentifiers.Factory__IIdentifierObfuscatingReplacer).toFactory(n.InversifyContainerFacade.getCacheFactory(a.ServiceIdentifiers.IIdentifierObfuscatingReplacer))})},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(41),p=r(14),m=function(e){function t(e,r){var n;return(0,o.default)(this,t),(n=(0,i.default)(this,(0,s.default)(t).call(this,r))).blockScopesMap=new Map,n.identifierNamesGenerator=e(r),n}return(0,c.default)(t,e),(0,a.default)(t,[{key:"replace",value:function(e,t){if(this.blockScopesMap.has(t)){var r=this.blockScopesMap.get(t);r.has(e)&&(e=r.get(e))}return p.NodeFactory.identifierNode(e)}},{key:"storeGlobalName",value:function(e,t){if(!this.isReservedName(e)){var r=this.identifierNamesGenerator.generateWithPrefix();this.blockScopesMap.has(t)||this.blockScopesMap.set(t,new Map),this.blockScopesMap.get(t).set(e,r)}}},{key:"storeLocalName",value:function(e,t){if(!this.isReservedName(e)){var r=this.identifierNamesGenerator.generate();this.blockScopesMap.has(t)||this.blockScopesMap.set(t,new Map),this.blockScopesMap.get(t).set(e,r)}}},{key:"isReservedName",value:function(e){return!!this.options.reservedStrings.length&&this.options.reservedNames.some(function(t){return null!==new RegExp(t,"g").exec(e)})}}]),t}(f.AbstractObfuscatingReplacer);m=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object])],m),t.BaseIdentifierObfuscatingReplacer=m},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=r(5),p=r(41),m=r(14),g=d=function(e){function t(e){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"replace",value:function(e){return e?d.getTrueUnaryExpressionNode():d.getFalseUnaryExpressionNode()}}],[{key:"getTrueUnaryExpressionNode",value:function(){return m.NodeFactory.unaryExpressionNode("!",d.getFalseUnaryExpressionNode())}},{key:"getFalseUnaryExpressionNode",value:function(){return m.NodeFactory.unaryExpressionNode("!",m.NodeFactory.arrayExpressionNode())}}]),t}(p.AbstractObfuscatingReplacer);g=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Object])],g),t.BooleanLiteralObfuscatingReplacer=g},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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=d.__importStar(r(16)),p=r(22),m=r(12),g=r(13),N=r(9),v=r(27),y=r(17),h=function(e){function t(e,r,n){var a;return(0,o.default)(this,t),(a=(0,i.default)(this,(0,s.default)(t).call(this,r,n))).identifierObfuscatingReplacer=e(p.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer),a}return(0,c.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case m.TransformationStage.Obfuscating:return{enter:function(e,r){if(r&&N.NodeGuards.isCatchClauseNode(e))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){var r=v.NodeLexicalScopeUtils.getLexicalScope(e);return r?(this.storeCatchClauseParam(e,r),this.replaceCatchClauseParam(e,r),e):e}},{key:"storeCatchClauseParam",value:function(e,t){N.NodeGuards.isIdentifierNode(e.param)&&this.identifierObfuscatingReplacer.storeLocalName(e.param.name,t)}},{key:"replaceCatchClauseParam",value:function(e,t){var r=this;f.replace(e,{enter:function(e,n){if(n&&N.NodeGuards.isReplaceableIdentifierNode(e,n)){var o=r.identifierObfuscatingReplacer.replace(e.name,t).name;e.name!==o&&(e.name=o,y.NodeMetadata.set(e,{renamedIdentifier:!0}))}}})}}]),t}(g.AbstractNodeTransformer);h=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierObfuscatingReplacer)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object])],h),t.CatchClauseTransformer=h},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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=d.__importStar(r(16)),p=r(22),m=r(19),g=r(12),N=r(13),v=r(9),y=r(27),h=r(17),_=function(e){function t(e,r,n){var a;return(0,o.default)(this,t),(a=(0,i.default)(this,(0,s.default)(t).call(this,r,n))).replaceableIdentifiers=new Map,a.identifierObfuscatingReplacer=e(p.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer),a}return(0,c.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case g.TransformationStage.Obfuscating:return{enter:function(e,r){if(r&&v.NodeGuards.isClassDeclarationNode(e)&&!v.NodeGuards.isExportNamedDeclarationNode(r))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){var r=y.NodeLexicalScopeUtils.getLexicalScope(e);if(!r)return e;var n=r.type===m.NodeType.Program;return!this.options.renameGlobals&&n?e:(this.storeClassName(e,r,n),this.replaceableIdentifiers.has(r)?this.replaceScopeCachedIdentifiers(e,r):this.replaceScopeIdentifiers(r),e)}},{key:"storeClassName",value:function(e,t,r){r?this.identifierObfuscatingReplacer.storeGlobalName(e.id.name,t):this.identifierObfuscatingReplacer.storeLocalName(e.id.name,t)}},{key:"replaceScopeCachedIdentifiers",value:function(e,t){var r=this.replaceableIdentifiers.get(t).get(e.id.name);if(r)for(var n=r.length,o=0;o2&&void 0!==arguments[2]?arguments[2]:new Set,o={enter:function(o,a){if(v.NodeGuards.isFunctionNode(o)&&o!==e)return r.replaceFunctionParams(o,t,new Set(n)),p.VisitorOption.Skip;if(d.isProhibitedIdentifierOfShorthandPropertyNode(o))n.add(o.key.name);else if(a&&v.NodeGuards.isReplaceableIdentifierNode(o,a)&&!h.NodeMetadata.isRenamedIdentifier(o)&&!n.has(o.name)){if(r.isGlobalFunctionDeclarationIdentifier(o,a))return;var i=r.identifierObfuscatingReplacer.replace(o.name,t).name;o.name!==i&&(o.name=i,h.NodeMetadata.set(o,{renamedIdentifier:!0}))}}};p.replace(e,o)}}],[{key:"isProhibitedIdentifierOfPropertyNode",value:function(e,t){return v.NodeGuards.isIdentifierNode(e)&&!!t&&v.NodeGuards.isPropertyNode(t)&&t.key===e}},{key:"isProhibitedIdentifierOfShorthandPropertyNode",value:function(e){return v.NodeGuards.isPropertyNode(e)&&e.shorthand&&v.NodeGuards.isIdentifierNode(e.key)}}]),t}(N.AbstractNodeTransformer);b=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IIdentifierObfuscatingReplacer)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],b),t.FunctionTransformer=b},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=r(5),p=u.__importStar(r(16)),m=r(22),g=r(12),N=r(13),v=r(9),y=r(27),h=r(17),_=d=function(e){function t(e,r,n){var a;return(0,o.default)(this,t),(a=(0,i.default)(this,(0,s.default)(t).call(this,r,n))).replaceableIdentifiers=new Map,a.identifierObfuscatingReplacer=e(m.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer),a}return(0,c.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case g.TransformationStage.Obfuscating:return{enter:function(e,r){if(r&&v.NodeGuards.isImportDeclarationNode(e))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){var r=y.NodeLexicalScopeUtils.getLexicalScope(e);return r?(this.storeImportSpecifierNames(e,r),this.replaceableIdentifiers.has(r)?this.replaceScopeCachedIdentifiers(r):this.replaceScopeIdentifiers(r),e):e}},{key:"storeImportSpecifierNames",value:function(e,t){var r=this;e.specifiers.forEach(function(e){d.isProhibitedImportSpecifierNode(e)||r.identifierObfuscatingReplacer.storeGlobalName(e.local.name,t)})}},{key:"replaceScopeCachedIdentifiers",value:function(e){var t=this;this.replaceableIdentifiers.get(e).forEach(function(r){var n=t.identifierObfuscatingReplacer.replace(r.name,e);r.name=n.name,h.NodeMetadata.set(r,{renamedIdentifier:!0})})}},{key:"replaceScopeIdentifiers",value:function(e){var t=this,r=[];p.replace(e,{enter:function(n,o){if(o&&v.NodeGuards.isReplaceableIdentifierNode(n,o)&&!h.NodeMetadata.isRenamedIdentifier(n)){var a=t.identifierObfuscatingReplacer.replace(n.name,e).name;n.name!==a?(n.name=a,h.NodeMetadata.set(n,{renamedIdentifier:!0})):r.push(n)}}}),this.replaceableIdentifiers.set(e,r)}}],[{key:"isProhibitedImportSpecifierNode",value:function(e){return v.NodeGuards.isImportSpecifierNode(e)&&e.imported.name===e.local.name}}]),t}(N.AbstractNodeTransformer);_=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IIdentifierObfuscatingReplacer)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],_),t.ImportDeclarationTransformer=_},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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=d.__importStar(r(16)),p=r(22),m=r(12),g=r(13),N=r(9),v=r(27),y=function(e){function t(e,r,n){var a;return(0,o.default)(this,t),(a=(0,i.default)(this,(0,s.default)(t).call(this,r,n))).identifierObfuscatingReplacer=e(p.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer),a}return(0,c.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case m.TransformationStage.Obfuscating:return{enter:function(e,r){if(r&&N.NodeGuards.isLabeledStatementNode(e))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){var r=v.NodeLexicalScopeUtils.getLexicalScope(e);return r?(this.storeLabeledStatementName(e,r),this.replaceLabeledStatementName(e,r),e):e}},{key:"storeLabeledStatementName",value:function(e,t){this.identifierObfuscatingReplacer.storeLocalName(e.label.name,t)}},{key:"replaceLabeledStatementName",value:function(e,t){var r=this;f.replace(e,{enter:function(e,n){if(n&&N.NodeGuards.isLabelIdentifierNode(e,n)){var o=r.identifierObfuscatingReplacer.replace(e.name,t);e.name=o.name}}})}}]),t}(g.AbstractNodeTransformer);y=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierObfuscatingReplacer)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object])],y),t.LabeledStatementTransformer=y},function(e,t,r){"use strict";var n=r(0),o=n(r(50)),a=n(r(1)),i=n(r(3)),s=n(r(6)),c=n(r(7)),d=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var u=r(4),l=r(2),f=r(5),p=r(57),m=r(12),g=r(13),N=r(9),v=r(17),y=r(11),h=function(e){function t(e,r,n){var o;return(0,a.default)(this,t),(o=(0,s.default)(this,(0,c.default)(t).call(this,r,n))).literalObfuscatingReplacerFactory=e,o}return(0,d.default)(t,e),(0,i.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case m.TransformationStage.Obfuscating:return{enter:function(e,r){if(r&&N.NodeGuards.isLiteralNode(e)&&!v.NodeMetadata.isReplacedLiteral(e))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){if(this.isProhibitedNode(e,t))return e;var r;switch((0,o.default)(e.value)){case"boolean":r=this.literalObfuscatingReplacerFactory(p.LiteralObfuscatingReplacer.BooleanLiteralObfuscatingReplacer).replace(e.value);break;case"number":r=this.literalObfuscatingReplacerFactory(p.LiteralObfuscatingReplacer.NumberLiteralObfuscatingReplacer).replace(e.value);break;case"string":r=this.literalObfuscatingReplacerFactory(p.LiteralObfuscatingReplacer.StringLiteralObfuscatingReplacer).replace(e.value);break;default:r=e}return y.NodeUtils.parentizeNode(r,t),r}},{key:"isProhibitedNode",value:function(e,t){return!(!N.NodeGuards.isPropertyNode(t)||t.key!==e)||!!N.NodeGuards.isImportDeclarationNode(t)}}]),t}(g.AbstractNodeTransformer);h=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IObfuscatingReplacer)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],h),t.LiteralTransformer=h},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(41),p=r(14),m=r(40),g=r(34),N=function(e){function t(e){var r;return(0,o.default)(this,t),(r=(0,i.default)(this,(0,s.default)(t).call(this,e))).numberLiteralCache=new Map,r}return(0,c.default)(t,e),(0,a.default)(t,[{key:"replace",value:function(e){var t;return this.numberLiteralCache.has(e)?t=this.numberLiteralCache.get(e):(t=m.NumberUtils.isCeil(e)?"".concat(g.Utils.hexadecimalPrefix).concat(m.NumberUtils.toHex(e)):String(e),this.numberLiteralCache.set(e,t)),p.NodeFactory.literalNode(e,t)}}]),t}(f.AbstractObfuscatingReplacer);N=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Object])],N),t.NumberLiteralObfuscatingReplacer=N},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=r(5),p=r(37),m=r(41),g=r(17),N=r(14),v=r(40),y=r(34),h=d=function(e){function t(e,r,n,a,c){var u;return(0,o.default)(this,t),(u=(0,i.default)(this,(0,s.default)(t).call(this,c))).nodesCache=new Map,u.stringLiteralHexadecimalIndexCache=new Map,u.stringArrayStorage=e,u.escapeSequenceEncoder=r,u.randomGenerator=n,u.cryptUtils=a,u.rc4Keys=u.randomGenerator.getRandomGenerator().n(function(){return u.randomGenerator.getRandomGenerator().string({length:d.rc4KeyLength})},d.rc4KeysCount),u}return(0,c.default)(t,e),(0,a.default)(t,[{key:"replace",value:function(e){if(this.isReservedString(e))return this.replaceWithReservedLiteralNode(e);var t=this.canUseStringArray(e),r="".concat(e,"-").concat(String(t));if(this.nodesCache.has(r)&&this.options.stringArrayEncoding!==p.StringArrayEncoding.Rc4)return this.nodesCache.get(r);var n=t?this.replaceWithStringArrayCallNode(e):this.replaceWithLiteralNode(e);return this.nodesCache.set(r,n),n}},{key:"canUseStringArray",value:function(e){return this.options.stringArray&&e.length>=d.minimumLengthForStringArray&&this.randomGenerator.getMathRandom()<=this.options.stringArrayThreshold}},{key:"getStringArrayHexadecimalIndex",value:function(e,t){if(this.stringLiteralHexadecimalIndexCache.has(e))return{fromCache:!0,index:this.stringLiteralHexadecimalIndexCache.get(e)};var r=v.NumberUtils.toHex(t),n="".concat(y.Utils.hexadecimalPrefix).concat(r);return this.stringLiteralHexadecimalIndexCache.set(e,n),{fromCache:!1,index:n}}},{key:"getEncodedValue",value:function(e){var t,r=null;switch(this.options.stringArrayEncoding){case p.StringArrayEncoding.Rc4:r=this.randomGenerator.getRandomGenerator().pickone(this.rc4Keys),t=this.cryptUtils.btoa(this.cryptUtils.rc4(e,r));break;case p.StringArrayEncoding.Base64:t=this.cryptUtils.btoa(e);break;default:t=e}return{encodedValue:t,key:r}}},{key:"replaceWithLiteralNode",value:function(e){return N.NodeFactory.literalNode(this.escapeSequenceEncoder.encode(e,this.options.unicodeEscapeSequence))}},{key:"replaceWithReservedLiteralNode",value:function(e){return N.NodeFactory.literalNode(this.escapeSequenceEncoder.encode(e,!1))}},{key:"replaceWithStringArrayCallNode",value:function(e){var t=this.getEncodedValue(e),r=t.encodedValue,n=t.key,o=this.escapeSequenceEncoder.encode(r,this.options.unicodeEscapeSequence),a=this.stringArrayStorage.getLength(),i=this.stringArrayStorage.getStorageId().split("|")[1],s=this.getStringArrayHexadecimalIndex(o,a),c=s.fromCache,u=s.index;c||this.stringArrayStorage.set(a,o);var l=[d.getHexadecimalLiteralNode(u)];n&&l.push(d.getRc4KeyLiteralNode(this.escapeSequenceEncoder.encode(n,this.options.unicodeEscapeSequence)));var f=N.NodeFactory.identifierNode(i);return g.NodeMetadata.set(f,{renamedIdentifier:!0}),N.NodeFactory.callExpressionNode(f,l)}},{key:"isReservedString",value:function(e){return!!this.options.reservedStrings.length&&this.options.reservedStrings.some(function(t){return null!==new RegExp(t,"g").exec(e)})}}],[{key:"getHexadecimalLiteralNode",value:function(e){var t=N.NodeFactory.literalNode(e);return g.NodeMetadata.set(t,{replacedLiteral:!0}),t}},{key:"getRc4KeyLiteralNode",value:function(e){var t=N.NodeFactory.literalNode(e);return g.NodeMetadata.set(t,{replacedLiteral:!0}),t}}]),t}(m.AbstractObfuscatingReplacer);h.minimumLengthForStringArray=3,h.rc4KeyLength=4,h.rc4KeysCount=50,h=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.TStringArrayStorage)),u.__param(1,l.inject(f.ServiceIdentifiers.IEscapeSequenceEncoder)),u.__param(2,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(3,l.inject(f.ServiceIdentifiers.ICryptUtils)),u.__param(4,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Object,Object,Object,Object,Object])],h),t.StringLiteralObfuscatingReplacer=h},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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=d.__importStar(r(16)),p=r(22),m=r(19),g=r(12),N=r(13),v=r(9),y=r(27),h=r(151),_=r(17),b=function(e){function t(e,r,n){var a;return(0,o.default)(this,t),(a=(0,i.default)(this,(0,s.default)(t).call(this,r,n))).replaceableIdentifiers=new Map,a.identifierObfuscatingReplacer=e(p.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer),a}return(0,c.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case g.TransformationStage.Obfuscating:return{enter:function(e,r){if(r&&v.NodeGuards.isVariableDeclarationNode(e)&&!v.NodeGuards.isExportNamedDeclarationNode(r))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){var r="var"===e.kind?y.NodeLexicalScopeUtils.getLexicalScope(e):h.NodeBlockLexicalScopeUtils.getLexicalScope(e);if(!r)return e;var n=r.type===m.NodeType.Program;if(!this.options.renameGlobals&&n)return e;var o="var"===e.kind?r:t;return this.storeVariableNames(e,r,n),this.replaceableIdentifiers.has(o)?this.replaceScopeCachedIdentifiers(e,r,o):this.replaceScopeIdentifiers(o,r),e}},{key:"storeVariableNames",value:function(e,t,r){var n=this;this.traverseDeclarationIdentifiers(e,function(e){r?n.identifierObfuscatingReplacer.storeGlobalName(e.name,t):n.identifierObfuscatingReplacer.storeLocalName(e.name,t)})}},{key:"replaceScopeCachedIdentifiers",value:function(e,t,r){var n=this,o=this.replaceableIdentifiers.get(r),a=[];this.traverseDeclarationIdentifiers(e,function(e){a.push(e.name)}),a.forEach(function(e){var r=o.get(e);if(r)for(var a=r.length,i=0;i1&&void 0!==arguments[1]?arguments[1]:1/0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;if(n.length>=r)return n;var a=t.parentNode;if(!a)throw new ReferenceError("`parentNode` property of given node is `undefined`");return i.NodeGuards.isNodeWithBlockLexicalScope(t)&&n.push(t),t!==a?e.getLexicalScopesRecursive(a,r,n,++o):n}}]),e}();t.NodeBlockLexicalScopeUtils=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(2),o=r(5),a=r(153),i=r(156);t.optionsModule=new n.ContainerModule(function(e){e(o.ServiceIdentifiers.IOptions).to(a.Options).inSingletonScope(),e(o.ServiceIdentifiers.IOptionsNormalizer).to(i.OptionsNormalizer).inSingletonScope()})},function(e,t,r){"use strict";var n=r(0)(r(1));Object.defineProperty(t,"__esModule",{value:!0});var o,a=r(4),i=r(2),s=r(5),c=r(154),d=r(35),u=r(23),l=r(36),f=r(37),p=r(46),m=r(155),g=o=function e(t,r){(0,n.default)(this,e),Object.assign(this,p.DEFAULT_PRESET,t);var a=c.validateSync(this,o.validatorOptions);if(a.length)throw new ReferenceError("Validation failed. errors:\n".concat(m.ValidationErrorsFormatter.format(a)));Object.assign(this,r.normalize(this))};g.validatorOptions={validationError:{target:!1}},a.__decorate([c.IsBoolean(),a.__metadata("design:type",Boolean)],g.prototype,"compact",void 0),a.__decorate([c.IsBoolean(),a.__metadata("design:type",Boolean)],g.prototype,"controlFlowFlattening",void 0),a.__decorate([c.IsNumber(),c.Min(0),c.Max(1),a.__metadata("design:type",Number)],g.prototype,"controlFlowFlatteningThreshold",void 0),a.__decorate([c.IsBoolean(),a.__metadata("design:type",Boolean)],g.prototype,"deadCodeInjection",void 0),a.__decorate([c.IsNumber(),a.__metadata("design:type",Number)],g.prototype,"deadCodeInjectionThreshold",void 0),a.__decorate([c.IsBoolean(),a.__metadata("design:type",Boolean)],g.prototype,"debugProtection",void 0),a.__decorate([c.IsBoolean(),a.__metadata("design:type",Boolean)],g.prototype,"debugProtectionInterval",void 0),a.__decorate([c.IsBoolean(),a.__metadata("design:type",Boolean)],g.prototype,"disableConsoleOutput",void 0),a.__decorate([c.IsArray(),c.ArrayUnique(),c.IsString({each:!0}),a.__metadata("design:type",Array)],g.prototype,"domainLock",void 0),a.__decorate([c.IsIn([d.IdentifierNamesGenerator.HexadecimalIdentifierNamesGenerator,d.IdentifierNamesGenerator.MangledIdentifierNamesGenerator]),a.__metadata("design:type",String)],g.prototype,"identifierNamesGenerator",void 0),a.__decorate([c.IsString(),a.__metadata("design:type",String)],g.prototype,"identifiersPrefix",void 0),a.__decorate([c.IsString(),a.__metadata("design:type",String)],g.prototype,"inputFileName",void 0),a.__decorate([c.IsBoolean(),a.__metadata("design:type",Boolean)],g.prototype,"log",void 0),a.__decorate([c.IsBoolean(),a.__metadata("design:type",Boolean)],g.prototype,"renameGlobals",void 0),a.__decorate([c.IsArray(),c.ArrayUnique(),c.IsString({each:!0}),a.__metadata("design:type",Array)],g.prototype,"reservedNames",void 0),a.__decorate([c.IsArray(),c.ArrayUnique(),c.IsString({each:!0}),a.__metadata("design:type",Array)],g.prototype,"reservedStrings",void 0),a.__decorate([c.IsBoolean(),a.__metadata("design:type",Boolean)],g.prototype,"rotateStringArray",void 0),a.__decorate([c.IsNumber(),a.__metadata("design:type",Number)],g.prototype,"seed",void 0),a.__decorate([c.IsBoolean(),a.__metadata("design:type",Boolean)],g.prototype,"selfDefending",void 0),a.__decorate([c.IsBoolean(),a.__metadata("design:type",Boolean)],g.prototype,"sourceMap",void 0),a.__decorate([c.IsString(),c.ValidateIf(function(e){return Boolean(e.sourceMapBaseUrl)}),c.IsUrl({require_protocol:!0,require_tld:!1,require_valid_protocol:!0}),a.__metadata("design:type",String)],g.prototype,"sourceMapBaseUrl",void 0),a.__decorate([c.IsString(),a.__metadata("design:type",String)],g.prototype,"sourceMapFileName",void 0),a.__decorate([c.IsIn([l.SourceMapMode.Inline,l.SourceMapMode.Separate]),a.__metadata("design:type",String)],g.prototype,"sourceMapMode",void 0),a.__decorate([c.IsBoolean(),a.__metadata("design:type",Boolean)],g.prototype,"stringArray",void 0),a.__decorate([c.IsIn([!0,!1,f.StringArrayEncoding.Base64,f.StringArrayEncoding.Rc4]),a.__metadata("design:type",Object)],g.prototype,"stringArrayEncoding",void 0),a.__decorate([c.IsNumber(),c.Min(0),c.Max(1),a.__metadata("design:type",Number)],g.prototype,"stringArrayThreshold",void 0),a.__decorate([c.IsIn([u.ObfuscationTarget.Browser,u.ObfuscationTarget.BrowserNoEval,u.ObfuscationTarget.Node]),a.__metadata("design:type",String)],g.prototype,"target",void 0),a.__decorate([c.IsBoolean(),a.__metadata("design:type",Boolean)],g.prototype,"transformObjectKeys",void 0),a.__decorate([c.IsBoolean(),a.__metadata("design:type",Boolean)],g.prototype,"unicodeEscapeSequence",void 0),g=o=a.__decorate([i.injectable(),a.__param(0,i.inject(s.ServiceIdentifiers.TInputOptions)),a.__param(1,i.inject(s.ServiceIdentifiers.IOptionsNormalizer)),a.__metadata("design:paramtypes",[Object,Object])],g),t.Options=g},function(e,t){e.exports=require("class-validator")},function(e,t,r){"use strict";var n=r(0),o=n(r(28)),a=n(r(1)),i=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(){(0,a.default)(this,e)}return(0,i.default)(e,null,[{key:"format",value:function(t){return t.reduce(function(t,r){return(0,o.default)(t).concat([e.formatWithNestedConstraints(r)])},[]).join("\n")}},{key:"formatWithNestedConstraints",value:function(e){var t=e.constraints,r="`".concat(e.property,"` errors:\n"),n=Object.keys(t).map(function(e){return" - ".concat(t[e],"\n")}).join();return"".concat(r).concat(n)}}]),e}();t.ValidationErrorsFormatter=s},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i,s=r(4),c=r(2),d=r(157),u=r(158),l=r(159),f=r(160),p=r(161),m=r(162),g=r(163),N=r(164),v=r(165),y=r(166),h=r(167),_=i=function(){function e(){(0,o.default)(this,e)}return(0,a.default)(e,[{key:"normalize",value:function(e){var t=Object.assign({},e),r=!0,n=!1,o=void 0;try{for(var a,s=i.normalizerRules[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){t=(0,a.value)(t)}}catch(e){n=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(n)throw o}}return t}}]),e}();_.normalizerRules=[d.ControlFlowFlatteningThresholdRule,u.DeadCodeInjectionRule,l.DeadCodeInjectionThresholdRule,f.DomainLockRule,p.InputFileNameRule,m.SelfDefendingRule,g.SourceMapBaseUrlRule,N.SourceMapFileNameRule,v.StringArrayRule,y.StringArrayEncodingRule,h.StringArrayThresholdRule],_=i=s.__decorate([c.injectable()],_),t.OptionsNormalizer=_},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ControlFlowFlatteningThresholdRule=function(e){return 0===e.controlFlowFlatteningThreshold&&(e=Object.assign({},e,{controlFlowFlattening:!1,controlFlowFlatteningThreshold:0})),e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(46);t.DeadCodeInjectionRule=function(e){return e.deadCodeInjection&&((e=Object.assign({},e,{deadCodeInjection:!0,stringArray:!0})).stringArrayThreshold||(e=Object.assign({},e,{stringArray:!0,stringArrayThreshold:n.DEFAULT_PRESET.stringArrayThreshold}))),e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DeadCodeInjectionThresholdRule=function(e){return 0===e.deadCodeInjectionThreshold&&(e=Object.assign({},e,{deadCodeInjection:!1,deadCodeInjectionThreshold:0})),e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(34);t.DomainLockRule=function(e){if(e.domainLock.length){var t=[],r=!0,o=!1,a=void 0;try{for(var i,s=e.domainLock[Symbol.iterator]();!(r=(i=s.next()).done);r=!0){var c=i.value;t.push(n.Utils.extractDomainFrom(c))}}catch(e){o=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw a}}e=Object.assign({},e,{domainLock:t})}return e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InputFileNameRule=function(e){var t=e.inputFileName;return t&&(t=t.replace(/^\/+/,"").split(".").slice(0,-1).join(".")||t,e=Object.assign({},e,{inputFileName:"".concat(t,".js")})),e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SelfDefendingRule=function(e){return e.selfDefending&&(e=Object.assign({},e,{compact:!0,selfDefending:!0})),e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SourceMapBaseUrlRule=function(e){var t=e.sourceMapBaseUrl;return e.sourceMapFileName?(t&&!t.endsWith("/")&&(e=Object.assign({},e,{sourceMapBaseUrl:"".concat(t,"/")})),e):e=Object.assign({},e,{sourceMapBaseUrl:""})}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SourceMapFileNameRule=function(e){var t=e.sourceMapFileName;return t&&(t=t.replace(/^\/+/,"").split(".")[0],e=Object.assign({},e,{sourceMapFileName:"".concat(t,".js.map")})),e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayRule=function(e){return e.stringArray||(e=Object.assign({},e,{rotateStringArray:!1,stringArray:!1,stringArrayEncoding:!1,stringArrayThreshold:0})),e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(37);t.StringArrayEncodingRule=function(e){return!0===e.stringArrayEncoding&&(e=Object.assign({},e,{stringArrayEncoding:n.StringArrayEncoding.Base64})),e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayThresholdRule=function(e){return 0===e.stringArrayThreshold&&(e=Object.assign({},e,{rotateStringArray:!1,stringArray:!1,stringArrayEncoding:!1,stringArrayThreshold:0})),e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(20),o=r(2),a=r(5),i=r(29),s=r(58),c=r(169),d=r(170),u=r(171),l=r(172),f=r(173),p=r(175),m=r(176),g=r(177);t.preparingTransformersModule=new o.ContainerModule(function(e){e(a.ServiceIdentifiers.INodeTransformer).to(d.CommentsTransformer).whenTargetNamed(i.NodeTransformer.CommentsTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(l.CustomNodesTransformer).whenTargetNamed(i.NodeTransformer.CustomNodesTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(f.EvalCallExpressionTransformer).whenTargetNamed(i.NodeTransformer.EvalCallExpressionTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(p.MetadataTransformer).whenTargetNamed(i.NodeTransformer.MetadataTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(m.ObfuscatingGuardsTransformer).whenTargetNamed(i.NodeTransformer.ObfuscatingGuardsTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(g.ParentificationTransformer).whenTargetNamed(i.NodeTransformer.ParentificationTransformer),e(a.ServiceIdentifiers.INodeGuard).to(c.BlackListObfuscatingGuard).inSingletonScope().whenTargetNamed(s.ObfuscatingGuard.BlackListNodeGuard),e(a.ServiceIdentifiers.INodeGuard).to(u.ConditionalCommentObfuscatingGuard).inSingletonScope().whenTargetNamed(s.ObfuscatingGuard.ConditionalCommentNodeGuard),e(a.ServiceIdentifiers.Factory__INodeGuard).toFactory(n.InversifyContainerFacade.getCacheFactory(a.ServiceIdentifiers.INodeGuard))})},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i,s=r(4),c=r(2),d=r(9),u=i=function(){function e(){(0,o.default)(this,e),this.blackListGuardsLength=i.blackListGuards.length}return(0,a.default)(e,[{key:"check",value:function(e){for(var t=0;t=0?t:null}},{key:"getLength",value:function(){return this.storageLength}},{key:"getStorage",value:function(){return this.storage}},{key:"getStorageId",value:function(){return this.storageId}},{key:"mergeWith",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.storage=(0,o.default)(this.storage).concat((0,o.default)(e.getStorage())),t&&(this.storageId=e.getStorageId())}},{key:"set",value:function(e,t){e===this.storageLength?this.storage.push(t):this.storage.splice(e,0,t),this.storageLength++}}]),e}();s.__decorate([u.initializable(),s.__metadata("design:type",Array)],l.prototype,"storage",void 0),s.__decorate([u.initializable(),s.__metadata("design:type",String)],l.prototype,"storageId",void 0),s.__decorate([c.postConstruct(),s.__metadata("design:type",Function),s.__metadata("design:paramtypes",[]),s.__metadata("design:returntype",void 0)],l.prototype,"initialize",null),l=s.__decorate([c.injectable(),s.__param(0,c.inject(d.ServiceIdentifiers.IRandomGenerator)),s.__param(1,c.inject(d.ServiceIdentifiers.IOptions)),s.__metadata("design:paramtypes",[Object,Object])],l),t.ArrayStorage=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(2),o=r(5),a=r(184),i=r(185),s=r(188),c=r(60);t.utilsModule=new n.ContainerModule(function(e){e(o.ServiceIdentifiers.IArrayUtils).to(a.ArrayUtils).inSingletonScope(),e(o.ServiceIdentifiers.IRandomGenerator).to(c.RandomGenerator).inSingletonScope(),e(o.ServiceIdentifiers.ICryptUtils).to(i.CryptUtils).inSingletonScope(),e(o.ServiceIdentifiers.IEscapeSequenceEncoder).to(s.EscapeSequenceEncoder).inSingletonScope()})},function(e,t,r){"use strict";var n=r(0),o=n(r(28)),a=n(r(1)),i=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var s=r(4),c=r(2),d=r(5),u=function(){function e(t){(0,a.default)(this,e),this.randomGenerator=t}return(0,i.default)(e,[{key:"createWithRange",value:function(e){for(var t=[],r=0;r>8-o%1*8)){if((n=e.charCodeAt(o+=.75))>255)throw new Error("'btoa' failed: The string to be encoded contains characters outside of the Latin1 range.");r=r<<8|n}return t}},{key:"hideString",value:function(e,t){var r=this,n=this.randomGenerator.getRandomGenerator().string({length:t,pool:d.RandomGenerator.randomGeneratorPool}).replace(new RegExp("[".concat(e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"),"]"),"g"),""),o=n.split("");return this.randomGenerator.getRandomGenerator().shuffle(o),[function(e,t){for(var n=-1,o=-1,a="";n"),c="...".concat(o.substring(a,i).replace(/^\s+/,""),"...");throw new Error("Line ".concat(n.line,": ").concat(r,"\n").concat(s," ").concat(c))}}]),e}();d.colorError=c.default.red,d.nearestSymbolsCount=15,d.sourceTypes=["script","module"],t.EspreeFacade=d},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(6)),i=n(r(7)),s=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var c=r(4),d=r(2),u=r(193);d.decorate(d.injectable(),u.EventEmitter);var l=function(e){function t(){return(0,o.default)(this,t),(0,a.default)(this,(0,i.default)(t).apply(this,arguments))}return(0,s.default)(t,e),t}(u.EventEmitter);l=c.__decorate([d.injectable()],l),t.ObfuscationEventEmitter=l},function(e,t){e.exports=require("events")},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i=r(4),s=r(2),c=r(5),d=r(10),u=r(36),l=function(){function e(t,r){(0,o.default)(this,e),this.cryptUtils=t,this.options=r}return(0,a.default)(e,[{key:"initialize",value:function(e,t){this.obfuscatedCode=e,this.sourceMap=t}},{key:"getObfuscatedCode",value:function(){return this.correctObfuscatedCode()}},{key:"getSourceMap",value:function(){return this.sourceMap}},{key:"toString",value:function(){return this.obfuscatedCode}},{key:"correctObfuscatedCode",value:function(){if(!this.sourceMap)return this.obfuscatedCode;var e=this.options.sourceMapBaseUrl+this.options.sourceMapFileName,t="//# sourceMappingURL=";switch(this.options.sourceMapMode){case u.SourceMapMode.Inline:t+="data:application/json;base64,".concat(this.cryptUtils.btoa(this.sourceMap));break;case u.SourceMapMode.Separate:default:if(!e)return this.obfuscatedCode;t+=e}return"".concat(this.obfuscatedCode,"\n").concat(t)}}]),e}();i.__decorate([d.initializable(),i.__metadata("design:type",String)],l.prototype,"obfuscatedCode",void 0),i.__decorate([d.initializable(),i.__metadata("design:type",String)],l.prototype,"sourceMap",void 0),l=i.__decorate([s.injectable(),i.__param(0,s.inject(c.ServiceIdentifiers.ICryptUtils)),i.__param(1,s.inject(c.ServiceIdentifiers.IOptions)),i.__metadata("design:paramtypes",[Object,Object])],l),t.ObfuscatedCode=l},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(t,r){(0,o.default)(this,e),this.sourceCode=t,this.sourceMap=r}return(0,a.default)(e,[{key:"getSourceCode",value:function(){return this.sourceCode}},{key:"getSourceMap",value:function(){return this.sourceMap}},{key:"toString",value:function(){return this.sourceCode}}]),e}();t.SourceCode=i},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i=r(4),s=r(2),c=r(5),d=i.__importStar(r(16)),u=r(197),l=r(9),f=r(17),p=function(){function e(t){(0,o.default)(this,e),this.nodeTransformerFactory=t}return(0,a.default)(e,[{key:"transform",value:function(e,t,r){if(!t.length)return e;for(var n,o=[],a=[],i=t.length,s=0;s [options]").version("0.18.4","-v, --version").option("-o, --output ","Output path for obfuscated code").option("--compact ","Disable one line output code compacting",f.BooleanSanitizer).option("--config ","Name of js / json config file").option("--control-flow-flattening ","Enables control flow flattening",f.BooleanSanitizer).option("--control-flow-flattening-threshold ","The probability that the control flow flattening transformation will be applied to the node",parseFloat).option("--dead-code-injection ","Enables dead code injection",f.BooleanSanitizer).option("--dead-code-injection-threshold ","The probability that the dead code injection transformation will be applied to the node",parseFloat).option("--debug-protection ","Disable browser Debug panel (can cause DevTools enabled browser freeze)",f.BooleanSanitizer).option("--debug-protection-interval ","Disable browser Debug panel even after page was loaded (can cause DevTools enabled browser freeze)",f.BooleanSanitizer).option("--disable-console-output ","Allow console.log, console.info, console.error and console.warn messages output into browser console",f.BooleanSanitizer).option("--domain-lock (comma separated, without whitespaces)","Blocks the execution of the code in domains that do not match the passed RegExp patterns (comma separated)",l.ArraySanitizer).option("--exclude (comma separated, without whitespaces)","A filename or glob which indicates files to exclude from obfuscation",l.ArraySanitizer).option("--identifier-names-generator ","Sets identifier names generator. Values: hexadecimal, mangled. Default: hexadecimal",p.IdentifierNamesGeneratorSanitizer).option("--identifiers-prefix ","Sets prefix for all global identifiers.").option("--log ","Enables logging of the information to the console",f.BooleanSanitizer).option("--reserved-names (comma separated, without whitespaces)","Disables obfuscation and generation of identifiers, which being matched by passed RegExp patterns (comma separated)",l.ArraySanitizer).option("--reserved-strings (comma separated, without whitespaces)","Disables transformation of string literals, which being matched by passed RegExp patterns (comma separated)",l.ArraySanitizer).option("--rename-globals ","Allows to enable obfuscation of global variable and function names with declaration.",f.BooleanSanitizer).option("--rotate-string-array ","Disable rotation of unicode array values during obfuscation",f.BooleanSanitizer).option("--seed ","Sets seed for random generator. This is useful for creating repeatable results.",parseFloat).option("--self-defending ","Disables self-defending for obfuscated code",f.BooleanSanitizer).option("--source-map ","Enables source map generation",f.BooleanSanitizer).option("--source-map-base-url ","Sets base url to the source map import url when `--source-map-mode=separate`").option("--source-map-file-name ","Sets file name for output source map when `--source-map-mode=separate`").option("--source-map-mode ","Specify source map output mode. Values: inline, separate. Default: separate",g.SourceMapModeSanitizer).option("--string-array ","Disables gathering of all literal strings into an array and replacing every literal string with an array call",f.BooleanSanitizer).option("--string-array-encoding ","Encodes all strings in strings array using base64 or rc4 (this option can slow down your code speed. Values: true, false, base64, rc4. Default: false",N.StringArrayEncodingSanitizer).option("--string-array-threshold ","The probability that the literal string will be inserted into stringArray (Default: 0.8, Min: 0, Max: 1)",parseFloat).option("--target ","Allows to set target environment for obfuscated code. Values: browser, browser-no-eval, node. Default: browser",m.ObfuscationTargetSanitizer).option("--transform-object-keys ","Enables transformation of object keys",f.BooleanSanitizer).option("--unicode-escape-sequence ","Allows to enable/disable string conversion to unicode escape sequence",f.BooleanSanitizer).parse(this.rawArguments)}},{key:"configureHelp",value:function(){this.commands.on("--help",function(){console.log(" Examples:\n"),console.log(" %> javascript-obfuscator input_file_name.js --compact true --self-defending false"),console.log(" %> javascript-obfuscator input_file_name.js --output output_file_name.js --compact true --self-defending false"),console.log(" %> javascript-obfuscator input_directory_name --compact true --self-defending false"),console.log("")})}},{key:"processSourceCodeData",value:function(e){var t=this,r=this.inputCLIOptions.output?c.normalize(this.inputCLIOptions.output):"";if(Array.isArray(e))e.forEach(function(e,n){var o=e.filePath,a=e.content,i=r?c.join(r,o):v.CLIUtils.getOutputCodePath(o);t.processSourceCode(a,i,n)});else{var n=r||v.CLIUtils.getOutputCodePath(this.inputPath);this.processSourceCode(e,n,null)}}},{key:"processSourceCode",value:function(t,r,n){var o=this.buildOptions();if(null!==n){var a=this.inputCLIOptions.identifiersPrefix||e.baseIdentifiersPrefix,i="".concat(a).concat(n);o=Object.assign({},o,{identifiersPrefix:i})}o.sourceMap?e.processSourceCodeWithSourceMap(t,r,o):e.processSourceCodeWithoutSourceMap(t,r,o)}}],[{key:"filterOptions",value:function(e){var t={};return Object.keys(e).forEach(function(r){void 0!==e[r]&&(t[r]=e[r])}),t}},{key:"processSourceCodeWithoutSourceMap",value:function(e,t,r){var n=y.JavaScriptObfuscator.obfuscate(e,r).getObfuscatedCode();v.CLIUtils.writeFile(t,n)}},{key:"processSourceCodeWithSourceMap",value:function(e,t,r){var n=v.CLIUtils.getOutputSourceMapPath(t,r.sourceMapFileName||"");r=Object.assign({},r,{sourceMapFileName:c.basename(n)});var o=y.JavaScriptObfuscator.obfuscate(e,r);v.CLIUtils.writeFile(t,o.getObfuscatedCode()),"separate"===r.sourceMapMode&&o.getSourceMap()&&v.CLIUtils.writeFile(n,o.getSourceMap())}}]),e}();_.encoding="utf8",_.obfuscatedFilePrefix="-obfuscated",_.baseIdentifiersPrefix="a",i.__decorate([d.initializable(),i.__metadata("design:type",Object)],_.prototype,"commands",void 0),i.__decorate([d.initializable(),i.__metadata("design:type",Object)],_.prototype,"inputCLIOptions",void 0),i.__decorate([d.initializable(),i.__metadata("design:type",String)],_.prototype,"inputPath",void 0),t.JavaScriptObfuscatorCLI=_},function(e,t){e.exports=require("path")},function(e,t){e.exports=require("fs")},,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(203);e.exports=n.JavaScriptObfuscatorCLI},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0}),r(62);var i=r(198),s=function(){function e(){(0,o.default)(this,e)}return(0,a.default)(e,null,[{key:"obfuscate",value:function(e){var t=new i.JavaScriptObfuscatorCLI(e);t.initialize(),t.run()}}]),e}();t.JavaScriptObfuscatorCLI=s},function(e,t){e.exports=require("commander")},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ArraySanitizer=function(e){if(/,$/.test(e))throw new SyntaxError("Multiple values should be wrapped inside quotes: --option-name 'value1','value2'");return e.split(",").map(function(e){return e.trim()})}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BooleanSanitizer=function(e){return"true"===e||"1"===e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(35);t.IdentifierNamesGeneratorSanitizer=function(e){if(!Object.keys(n.IdentifierNamesGenerator).some(function(t){return n.IdentifierNamesGenerator[t]===e}))throw new ReferenceError("Invalid value of `--identifier-names-generator` option");return e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(23);t.ObfuscationTargetSanitizer=function(e){if(!Object.keys(n.ObfuscationTarget).some(function(t){return n.ObfuscationTarget[t]===e}))throw new ReferenceError("Invalid value of `--target` option");return e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(36);t.SourceMapModeSanitizer=function(e){if(!Object.keys(n.SourceMapMode).some(function(t){return n.SourceMapMode[t]===e}))throw new ReferenceError("Invalid value of `--source-map-mode` option");return e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(37);t.StringArrayEncodingSanitizer=function(e){switch(e){case"true":case"1":case n.StringArrayEncoding.Base64:return!0;case n.StringArrayEncoding.Rc4:return n.StringArrayEncoding.Rc4;default:return!1}}},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i=r(4),s=i.__importStar(r(200)),c=i.__importStar(r(212)),d=i.__importStar(r(199)),u=r(198),l=function(){function e(){(0,o.default)(this,e)}return(0,a.default)(e,null,[{key:"getOutputCodePath",value:function(e){return d.normalize(e).split(".").map(function(e,t){return 0===t?"".concat(e).concat(u.JavaScriptObfuscatorCLI.obfuscatedFilePrefix):e}).join(".")}},{key:"getOutputSourceMapPath",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return t&&(e="".concat(e.substring(0,e.lastIndexOf("/")),"/").concat(t)),/\.js\.map$/.test(e)?/\.js$/.test(e)&&(e+=".map"):e="".concat(e.split(".")[0],".js.map"),e}},{key:"getUserConfig",value:function(e){var t;try{t=r(213)(e)}catch(r){try{t=require(e)}catch(e){throw new ReferenceError("Given config path must be a valid `.js` or `.json` file path")}}return t}},{key:"writeFile",value:function(e,t){c.sync(d.dirname(e)),s.writeFileSync(e,t,{encoding:u.JavaScriptObfuscatorCLI.encoding})}}]),e}();t.CLIUtils=l},function(e,t){e.exports=require("mkdirp")},function(e,t){function r(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}r.keys=function(){return[]},r.resolve=r,e.exports=r,r.id=213},function(e,t,r){"use strict";var n=r(0),o=n(r(28)),a=n(r(1)),i=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var s=r(4),c=s.__importStar(r(200)),d=s.__importStar(r(199)),u=s.__importDefault(r(215)),l=r(64),f=r(198),p=r(63),m=function(){function e(t){(0,a.default)(this,e),this.options=t}return(0,i.default)(e,[{key:"readSourceCode",value:function(t){if(e.isFilePath(t)&&this.isValidFile(t))return this.readFile(t);if(e.isDirectoryPath(t)&&this.isValidDirectory(t))return this.readDirectoryRecursive(t);var r=e.availableInputExtensions.map(function(e){return"`".concat(e,"`")}).join(", ");throw new ReferenceError("Given input path must be a valid ".concat(r," file or directory path"))}},{key:"readDirectoryRecursive",value:function(t){var r=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return c.readdirSync(t,f.JavaScriptObfuscatorCLI.encoding).forEach(function(a){var i="".concat(t,"/").concat(a);if(e.isDirectoryPath(i)&&r.isValidDirectory(i))n.push.apply(n,(0,o.default)(r.readDirectoryRecursive(i)));else if(e.isFilePath(i)&&r.isValidFile(i)){var s=r.readFile(i);n.push({filePath:i,content:s})}}),n}},{key:"readFile",value:function(t){return e.logFilePath(t),c.readFileSync(t,f.JavaScriptObfuscatorCLI.encoding)}},{key:"isValidDirectory",value:function(t){return!e.isExcludedPath(t,this.options.exclude)}},{key:"isValidFile",value:function(t){return e.availableInputExtensions.includes(d.extname(t))&&!t.includes(f.JavaScriptObfuscatorCLI.obfuscatedFilePrefix)&&!e.isExcludedPath(t,this.options.exclude)}}],[{key:"isExcludedPath",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(!t.length)return!1;var r=d.basename(e),n=!!u.default([e],t).length;return t.some(function(t){return e.includes(t)||r.includes(t)})||n}},{key:"isDirectoryPath",value:function(e){try{return c.statSync(e).isDirectory()}catch(e){return!1}}},{key:"isFilePath",value:function(e){try{return c.statSync(e).isFile()}catch(e){return!1}}},{key:"logFilePath",value:function(e){var t=d.normalize(e);p.Logger.log(p.Logger.colorInfo,l.LoggingPrefix.CLI,"Obfuscating file: ".concat(t,"..."))}}]),e}();m.availableInputExtensions=[".js"],t.SourceCodeReader=m},function(e,t){e.exports=require("multimatch")}]); //# sourceMappingURL=index.cli.js.map \ No newline at end of file diff --git a/dist/index.js b/dist/index.js index dc3bbadd4..0e9c1b26a 100644 --- a/dist/index.js +++ b/dist/index.js @@ -21,5 +21,5 @@ 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 o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.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 o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));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=201)}([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",e.Factory__IControlFlowCustomNode="Factory",e.Factory__IControlFlowReplacer="Factory",e.Factory__ICustomNode="Factory",e.Factory__ICustomNodeGroup="Factory",e.Factory__IDeadCodeInjectionCustomNode="Factory",e.Factory__IIdentifierNamesGenerator="Factory",e.Factory__IIdentifierObfuscatingReplacer="Factory",e.Factory__INodeGuard="Factory",e.Factory__INodeTransformer="Factory",e.Factory__IObfuscatedCode="Factory",e.Factory__IObfuscatingReplacer="Factory",e.Factory__IPropertiesExtractor="Factory",e.Factory__TControlFlowStorage="Factory",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",e.Newable__TControlFlowStorage="Newable",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),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i=r(19),s=function(){function e(){(0,o.default)(this,e)}return(0,a.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,o=e.isContinueStatementNode(r)&&r.label===t,a=e.isBreakStatementNode(r)&&r.label===t;return n||o||a}},{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:"isReplaceableIdentifierNode",value:function(t,r){if(!e.isIdentifierNode(t))return!1;var n=e.isPropertyNode(r)&&!r.computed&&r.key===t,o=e.isMemberExpressionNode(r)&&!r.computed&&r.property===t,a=e.isMethodDefinitionNode(r)&&!r.computed,i=e.isLabelIdentifierNode(t,r);return!(n||o||a||i)}},{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}();s.nodesWithLexicalStatements=[i.NodeType.ArrowFunctionExpression,i.NodeType.FunctionDeclaration,i.NodeType.FunctionExpression,i.NodeType.MethodDefinition],t.NodeGuards=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={configurable:!0,enumerable:!0},o="_initialized",a="_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(o,!1,r),c(a,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(a,e),d=Reflect.getMetadata(i,e),u=c.includes(r)||s.has(r)||d.has(r);if(!u){var l=e[r];if("function"==typeof l){var f=Object.getOwnPropertyDescriptor(e,r)||n,p=f.value;Object.defineProperty(e,r,Object.assign({},f,{value:function(){if(!Reflect.getMetadata(o,this))throw new Error("Class should be initialized with `".concat(t,"()` method"));return p.apply(this,arguments)}})),d.add(r)}}})}(r,e),function(e,t,r){var a=Object.getOwnPropertyDescriptor(e,t)||n,i=a.value;Object.defineProperty(e,t,Object.assign({},a,{value:function(){Reflect.defineMetadata(o,!0,this);var e=i.apply(this,arguments);return this[r],e}}))}(r,e,d),function(e,t){Reflect.getMetadata(a,e).add(t);var r="_".concat(t.toString()),o=Object.getOwnPropertyDescriptor(e,r)||n;return Object.defineProperty(e,t,Object.assign({},o,{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}})),o}(r,d)}}},function(e,t,r){"use strict";var n=r(0),o=n(r(50)),a=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,a.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 a,i=t[n];a=null===i||i instanceof RegExp?i:Array.isArray(i)?i.map(e.cloneRecursive):"object"===(0,o.default)(i)?e.cloneRecursive(i):i,r[n]=a}}),r}}]),e}();t.NodeUtils=p},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){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 o=r(4),a=r(2),i=r(5),s=function e(t,r){(0,n.default)(this,e),this.randomGenerator=t,this.options=r};s=o.__decorate([a.injectable(),o.__param(0,a.inject(i.ServiceIdentifiers.IRandomGenerator)),o.__param(1,a.inject(i.ServiceIdentifiers.IOptions)),o.__metadata("design:paramtypes",[Object,Object])],s),t.AbstractNodeTransformer=s},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i=r(4).__importStar(r(44)),s=r(19),c=function(){function e(){(0,o.default)(this,e)}return(0,a.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({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=r(0),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i,s=r(4),c=r(2),d=r(5),u=r(94),l=r(95),f=i=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,a.default)(e,[{key:"getNode",value:function(){return this.cachedNode||(this.cachedNode=this.getNodeStructure()),this.cachedNode}},{key:"getGlobalVariableTemplate",value:function(){return this.randomGenerator.getRandomGenerator().pickone(i.globalVariableTemplateFunctions)}}]),e}();f.globalVariableTemplateFunctions=[u.GlobalVariableTemplate1(),l.GlobalVariableTemplate2()],f=i=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),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){(0,o.default)(this,e)}return(0,a.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";var n=r(0),o=n(r(65)),a=n(r(1)),i=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var s=r(2),c=r(5),d=r(66),u=r(71),l=r(79),f=r(87),p=r(133),m=r(134),g=r(137),N=r(138),v=r(152),y=r(168),_=r(178),h=r(183),b=r(189),S=r(63),I=r(192),C=r(194),F=r(195),O=r(196),j=function(){function e(){(0,a.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 F.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(O.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 o=t.container.getNamed(e,n);return r.set(n,o),o}}}},{key:"getConstructorFactory",value:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n1&&void 0!==arguments[1]?arguments[1]:1/0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;if(n.length>=r)return n;var a=t.parentNode;if(!a)throw new ReferenceError("`parentNode` property of given node is `undefined`");return(i.NodeGuards.isProgramNode(t)||i.NodeGuards.isNodeWithLexicalScopeStatements(t,a)&&o>0)&&n.push(t),t!==a?e.getParentNodesWithStatementsRecursive(a,r,n,++o):n}},{key:"getSiblingStatementByOffset",value:function(t,r){var n=e.getScopeOfNode(t),o=i.NodeGuards.isSwitchCaseNode(n)?n.consequent:n.body;return o[o.indexOf(t)+r]||null}}]),e}();t.NodeStatementUtils=s},function(e,t,r){"use strict";var n=r(0),o=n(r(28)),a=n(r(1)),i=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var s=r(9),c=function(){function e(){(0,a.default)(this,e)}return(0,i.default)(e,null,[{key:"append",value:function(t,r){r=e.parentizeScopeStatementsBeforeAppend(t,r),e.setScopeStatements(t,(0,o.default)(e.getScopeStatements(t)).concat((0,o.default)(r)))}},{key:"appendToOptimalBlockScope",value:function(t,r,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=t.length?e.getOptimalBlockScope(t,o):r;e.prepend(a,n)}},{key:"getOptimalBlockScope",value:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,o=t[r];if(n<=0)throw new Error("Invalid `deep` argument value. Value should be bigger then 0.");return n>1&&o.stackTrace.length?e.getOptimalBlockScope(o.stackTrace,0,--n):o.callee}},{key:"insertAfter",value:function(t,r,n){var o=e.getScopeStatements(t).indexOf(n);e.insertAtIndex(t,r,o+1)}},{key:"insertAtIndex",value:function(t,r,n){r=e.parentizeScopeStatementsBeforeAppend(t,r),e.setScopeStatements(t,(0,o.default)(e.getScopeStatements(t).slice(0,n)).concat((0,o.default)(r),(0,o.default)(e.getScopeStatements(t).slice(n))))}},{key:"prepend",value:function(t,r){r=e.parentizeScopeStatementsBeforeAppend(t,r),e.setScopeStatements(t,(0,o.default)(r).concat((0,o.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),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i=r(9),s=function(){function e(){(0,o.default)(this,e)}return(0,a.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]:[],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;if(n.length>=r)return n;var a=t.parentNode;if(!a)throw new ReferenceError("`parentNode` property of given node is `undefined`");return i.NodeGuards.isNodeWithLexicalScope(t)&&n.push(t),t!==a?e.getLexicalScopesRecursive(a,r,n,++o):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"}(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),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0}),r(62);var i=r(5),s=r(20),c=function(){function e(){(0,o.default)(this,e)}return(0,a.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).obfuscate(e);return r.unload(),n}}]),e}();c.version="0.18.3",t.JavaScriptObfuscator=c},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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,o.default)(this,e),this.identifierNamesGenerator=t(n),this.randomGenerator=r,this.options=n}return(0,a.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),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){(0,o.default)(this,e)}return(0,a.default)(e,null,[{key:"extractDomainFrom",value:function(e){return(e.indexOf("://")>-1||0===e.indexOf("//")?e.split("/")[2]:e.split("/")[0]).split(":")[0]}}]),e}();i.hexadecimalPrefix="0x",t.Utils=i},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),o=r(23),a=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:a.SourceMapMode.Separate,stringArray:!1,stringArrayEncoding:!1,stringArrayThreshold:0,target:o.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),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){(0,o.default)(this,e)}return(0,a.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 o=r(4),a=r(2),i=r(5),s=function e(t){(0,n.default)(this,e),this.options=t};s=o.__decorate([a.injectable(),o.__param(0,a.inject(i.ServiceIdentifiers.IOptions)),o.__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 o=r(4),a=r(2),i=function e(){(0,n.default)(this,e)};i=o.__decorate([a.injectable()],i),t.AbstractCalleeDataExtractor=i},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i,s=r(4),c=r(2),d=r(5),u=i=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,a.default)(e,[{key:"insertCustomNodeToControlFlowStorage",value:function(e,t,r,n){var o=this,a=t.getStorageId(),s=i.getStorageKeysByIdForCurrentStorage(this.replacerDataByControlFlowStorageId,a),c=s.get(r);if(this.randomGenerator.getMathRandom()1&&void 0!==arguments[1]&&arguments[1];this.storage=new Map((0,o.default)(this.storage).concat((0,o.default)(e.getStorage()))),t&&(this.storageId=e.getStorageId())}},{key:"set",value:function(e,t){this.storage.set(e,t)}}]),e}();c.__decorate([l.initializable(),c.__metadata("design:type",String)],f.prototype,"storageId",void 0),c.__decorate([l.initializable(),c.__metadata("design:type",Map)],f.prototype,"storage",void 0),c.__decorate([d.postConstruct(),c.__metadata("design:type",Function),c.__metadata("design:paramtypes",[]),c.__metadata("design:returntype",void 0)],f.prototype,"initialize",null),f=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])],f),t.MapStorage=f},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i,s=r(4),c=r(2),d=r(5),u=s.__importDefault(r(186)),l=r(187),f=r(10),p=i=function(){function e(t,r){(0,o.default)(this,e),this.sourceCode=t,this.options=r}return(0,a.default)(e,[{key:"initialize",value:function(){var e,t,r,n=this;this.seed=0!==this.options.seed?this.options.seed:(e=0,t=999999999,Math.floor(Math.random()*(t-e+1)+e)),this.randomGenerator=new l.Chance((r=u.default(n.sourceCode.getSourceCode()),n.seed+Number(r.replace(/\D/g,""))))}},{key:"getMathRandom",value:function(){return this.getRandomInteger(0,99999)/1e5}},{key:"getRandomGenerator",value:function(){return this.randomGenerator}},{key:"getRandomInteger",value:function(e,t){return this.getRandomGenerator().integer({min:e,max:t})}},{key:"getRandomString",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.randomGeneratorPool;return this.getRandomGenerator().string({length:e,pool:t})}},{key:"getSeed",value:function(){return this.seed}}]),e}();p.randomGeneratorPool="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",s.__decorate([f.initializable(),s.__metadata("design:type",Object)],p.prototype,"randomGenerator",void 0),s.__decorate([f.initializable(),s.__metadata("design:type",Number)],p.prototype,"seed",void 0),s.__decorate([c.postConstruct(),s.__metadata("design:type",Function),s.__metadata("design:paramtypes",[]),s.__metadata("design:returntype",void 0)],p.prototype,"initialize",null),p=i=s.__decorate([c.injectable(),s.__param(0,c.inject(d.ServiceIdentifiers.ISourceCode)),s.__param(1,c.inject(d.ServiceIdentifiers.IOptions)),s.__metadata("design:paramtypes",[Object,Object])],p),t.RandomGenerator=p},function(e,t){e.exports=require("chalk")},function(e,t){e.exports=require("reflect-metadata")},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i,s=r(4),c=r(2),d=r(5),u=s.__importDefault(r(61)),l=r(64),f=i=function(){function e(t){(0,o.default)(this,e),this.options=t}return(0,a.default)(e,[{key:"info",value:function(e,t){this.options.log&&i.log(i.colorInfo,l.LoggingPrefix.Base,e,t)}},{key:"success",value:function(e,t){this.options.log&&i.log(i.colorSuccess,l.LoggingPrefix.Base,e,t)}},{key:"warn",value:function(e,t){this.options.log&&i.log(i.colorWarn,l.LoggingPrefix.Base,e,t)}}],[{key:"log",value:function(e,t,r,n){var o=e("\n".concat(t," ").concat(r));console.log(o,n||"")}}]),e}();f.colorInfo=u.default.cyan,f.colorSuccess=u.default.green,f.colorWarn=u.default.yellow,f=i=s.__decorate([c.injectable(),s.__param(0,c.inject(d.ServiceIdentifiers.IOptions)),s.__metadata("design:paramtypes",[Object])],f),t.Logger=f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.Base="[javascript-obfuscator]",e.CLI="[javascript-obfuscator-cli]"}(t.LoggingPrefix||(t.LoggingPrefix={}))},function(e,t){e.exports=require("@babel/runtime/helpers/construct")},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(20),o=r(2),a=r(5),i=r(47),s=r(67),c=r(68),d=r(69),u=r(70);t.analyzersModule=new o.ContainerModule(function(e){e(a.ServiceIdentifiers.IStackTraceAnalyzer).to(u.StackTraceAnalyzer).inSingletonScope(),e(a.ServiceIdentifiers.ICalleeDataExtractor).to(s.FunctionDeclarationCalleeDataExtractor).whenTargetNamed(i.CalleeDataExtractor.FunctionDeclarationCalleeDataExtractor),e(a.ServiceIdentifiers.ICalleeDataExtractor).to(c.FunctionExpressionCalleeDataExtractor).whenTargetNamed(i.CalleeDataExtractor.FunctionExpressionCalleeDataExtractor),e(a.ServiceIdentifiers.ICalleeDataExtractor).to(d.ObjectExpressionCalleeDataExtractor).whenTargetNamed(i.CalleeDataExtractor.ObjectExpressionCalleeDataExtractor),e(a.ServiceIdentifiers.Factory__ICalleeDataExtractor).toFactory(n.InversifyContainerFacade.getCacheFactory(a.ServiceIdentifiers.ICalleeDataExtractor))})},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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=d.__importStar(r(16)),f=r(42),p=r(9),m=r(24),g=function(e){function t(){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).apply(this,arguments))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"extract",value:function(e,t){if(!p.NodeGuards.isIdentifierNode(t))return null;var r=this.getCalleeBlockStatement(m.NodeStatementUtils.getParentNodeWithStatements(e[0]),t.name);return r?{callee:r,name:t.name}:null}},{key:"getCalleeBlockStatement",value:function(e,t){var r=null;return l.traverse(e,{enter:function(e){if(p.NodeGuards.isFunctionDeclarationNode(e)&&e.id.name===t)return r=e.body,l.VisitorOption.Break}}),r}}]),t}(f.AbstractCalleeDataExtractor);g=d.__decorate([u.injectable()],g),t.FunctionDeclarationCalleeDataExtractor=g},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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=d.__importStar(r(16)),f=r(42),p=r(9),m=r(24),g=function(e){function t(){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).apply(this,arguments))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"extract",value:function(e,t){var r=null;return p.NodeGuards.isIdentifierNode(t)&&(r=this.getCalleeBlockStatement(m.NodeStatementUtils.getParentNodeWithStatements(e[0]),t.name)),p.NodeGuards.isFunctionExpressionNode(t)&&(r=t.body),r?{callee:r,name:t.name||null}:null}},{key:"getCalleeBlockStatement",value:function(e,t){var r=null;return l.traverse(e,{enter:function(e,n){if(p.NodeGuards.isFunctionExpressionNode(e)&&n&&p.NodeGuards.isVariableDeclaratorNode(n)&&p.NodeGuards.isIdentifierNode(n.id)&&n.id.name===t)return r=e.body,l.VisitorOption.Break}}),r}}]),t}(f.AbstractCalleeDataExtractor);g=d.__decorate([u.injectable()],g),t.FunctionExpressionCalleeDataExtractor=g},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=u.__importStar(r(16)),p=r(42),m=r(9),g=r(24),N=d=function(e){function t(){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).apply(this,arguments))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"extract",value:function(e,t){if(!m.NodeGuards.isMemberExpressionNode(t))return null;var r=this.createObjectMembersCallsChain([],t);if(!r.length)return null;var n=r[r.length-1],o=this.getCalleeBlockStatement(g.NodeStatementUtils.getParentNodeWithStatements(e[0]),r);return o?{callee:o,name:n}:null}},{key:"createObjectMembersCallsChain",value:function(e,t){if(m.NodeGuards.isIdentifierNode(t.property)&&!1===t.computed)e.unshift(t.property.name);else{if(!m.NodeGuards.isLiteralNode(t.property)||"string"!=typeof t.property.value&&"number"!=typeof t.property.value)return e;e.unshift(t.property.value)}return m.NodeGuards.isMemberExpressionNode(t.object)?this.createObjectMembersCallsChain(e,t.object):(m.NodeGuards.isIdentifierNode(t.object)&&e.unshift(t.object.name),e)}},{key:"getCalleeBlockStatement",value:function(e,t){var r=this,n=t.shift();if(!n)return null;var o=null;return f.traverse(e,{enter:function(e){if(m.NodeGuards.isVariableDeclaratorNode(e)&&m.NodeGuards.isIdentifierNode(e.id)&&e.init&&m.NodeGuards.isObjectExpressionNode(e.init)&&e.id.name===n)return o=r.findCalleeBlockStatement(e.init.properties,t),f.VisitorOption.Break}}),o}},{key:"findCalleeBlockStatement",value:function(e,t){var r=t.shift();if(!r)return null;var n=!0,o=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(n=(i=s.next()).done);n=!0){var c=i.value;if(d.isValidTargetPropertyNode(c,r)){if(m.NodeGuards.isObjectExpressionNode(c.value))return this.findCalleeBlockStatement(c.value.properties,t);if(m.NodeGuards.isFunctionExpressionNode(c.value))return c.value.body}}}catch(e){o=!0,a=e}finally{try{n||null==s.return||s.return()}finally{if(o)throw a}}return null}}],[{key:"isValidTargetPropertyNode",value:function(e,t){if(!e.key)return!1;var r=m.NodeGuards.isIdentifierNode(e.key)&&e.key.name===t,n=m.NodeGuards.isLiteralNode(e.key)&&Boolean(e.key.value)&&e.key.value===t;return r||n}}]),t}(p.AbstractCalleeDataExtractor);N=d=u.__decorate([l.injectable()],N),t.ObjectExpressionCalleeDataExtractor=N},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i,s=r(4),c=r(2),d=r(5),u=s.__importStar(r(16)),l=r(47),f=r(9),p=r(24),m=i=function(){function e(t){(0,o.default)(this,e),this.calleeDataExtractorFactory=t}return(0,a.default)(e,[{key:"analyze",value:function(e){return this.analyzeRecursive(e.body)}},{key:"analyzeRecursive",value:function(e){for(var t=this,r=i.getLimitIndex(e.length),n=[],o=e.length,a=function(o){if(o>r)return"break";var a=e[o];u.traverse(a,{enter:function(r){if(f.NodeGuards.isCallExpressionNode(r))return a.parentNode!==p.NodeStatementUtils.getParentNodeWithStatements(r)?u.VisitorOption.Skip:void t.analyzeCallExpressionNode(n,e,r)}})},s=0;sr&&(n=Math.round(r+t*i.limitThreshold))>t&&(n=t),n}}]),e}();m.calleeDataExtractorsList=[l.CalleeDataExtractor.FunctionDeclarationCalleeDataExtractor,l.CalleeDataExtractor.FunctionExpressionCalleeDataExtractor,l.CalleeDataExtractor.ObjectExpressionCalleeDataExtractor],m.limitThresholdActivationLength=25,m.limitThreshold=.002,m=i=s.__decorate([c.injectable(),s.__param(0,c.inject(d.ServiceIdentifiers.Factory__ICalleeDataExtractor)),s.__metadata("design:paramtypes",[Function])],m),t.StackTraceAnalyzer=m},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(20),o=r(2),a=r(5),i=r(48),s=r(29),c=r(72),d=r(73),u=r(74),l=r(75),f=r(76),p=r(77),m=r(78);t.controlFlowTransformersModule=new o.ContainerModule(function(e){e(a.ServiceIdentifiers.INodeTransformer).to(d.BlockStatementControlFlowTransformer).whenTargetNamed(s.NodeTransformer.BlockStatementControlFlowTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(l.DeadCodeInjectionTransformer).whenTargetNamed(s.NodeTransformer.DeadCodeInjectionTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(f.FunctionControlFlowTransformer).whenTargetNamed(s.NodeTransformer.FunctionControlFlowTransformer),e(a.ServiceIdentifiers.IControlFlowReplacer).to(c.BinaryExpressionControlFlowReplacer).whenTargetNamed(i.ControlFlowReplacer.BinaryExpressionControlFlowReplacer),e(a.ServiceIdentifiers.IControlFlowReplacer).to(u.CallExpressionControlFlowReplacer).whenTargetNamed(i.ControlFlowReplacer.CallExpressionControlFlowReplacer),e(a.ServiceIdentifiers.IControlFlowReplacer).to(p.LogicalExpressionControlFlowReplacer).whenTargetNamed(i.ControlFlowReplacer.LogicalExpressionControlFlowReplacer),e(a.ServiceIdentifiers.IControlFlowReplacer).to(m.StringLiteralControlFlowReplacer).whenTargetNamed(i.ControlFlowReplacer.StringLiteralControlFlowReplacer),e(a.ServiceIdentifiers.Factory__IControlFlowReplacer).toFactory(n.InversifyContainerFacade.getCacheFactory(a.ServiceIdentifiers.IControlFlowReplacer))})},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=r(5),p=r(21),m=r(49),g=d=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r,n))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"replace",value:function(e,t,r){var n=e.operator,o=this.controlFlowCustomNodeFactory(p.ControlFlowCustomNode.BinaryExpressionFunctionNode);o.initialize(n);var a=this.insertCustomNodeToControlFlowStorage(o,r,n,d.usingExistingIdentifierChance);return this.getControlFlowStorageCallNode(r.getStorageId(),a,e.left,e.right)}}]),t}(m.ExpressionWithOperatorControlFlowReplacer);g.usingExistingIdentifierChance=.5,g=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IControlFlowCustomNode)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],g),t.BinaryExpressionControlFlowReplacer=g},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=r(5),p=u.__importStar(r(16)),m=r(21),g=r(12),N=r(13),v=r(9),y=r(11),_=d=function(e){function t(e,r,n,a){var c;return(0,o.default)(this,t),(c=(0,i.default)(this,(0,s.default)(t).call(this,n,a))).controlFlowCustomNodeFactory=e,c.arrayUtils=r,c}return(0,c.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case g.TransformationStage.ControlFlowFlattening:return{leave:function(e,r){if(r&&v.NodeGuards.isBlockStatementNode(e))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){if(this.randomGenerator.getMathRandom()>this.options.controlFlowFlatteningThreshold||!d.canTransformBlockStatementNode(e))return e;var r=e.body,n=this.arrayUtils.createWithRange(r.length),o=this.arrayUtils.shuffle(n),a=n.map(function(e){return o.indexOf(e)}),i=this.controlFlowCustomNodeFactory(m.ControlFlowCustomNode.BlockStatementControlFlowFlatteningNode);i.initialize(r,o,a);var s=i.getNode()[0];return y.NodeUtils.parentizeNode(s,t),s}}],[{key:"isProhibitedStatementNode",value:function(e){var t=v.NodeGuards.isBreakStatementNode(e)||v.NodeGuards.isContinueStatementNode(e),r=v.NodeGuards.isVariableDeclarationNode(e)&&("const"===e.kind||"let"===e.kind),n=v.NodeGuards.isClassDeclarationNode(e);return v.NodeGuards.isFunctionDeclarationNode(e)||t||r||n}},{key:"canTransformBlockStatementNode",value:function(e){var t=!0;return p.traverse(e,{enter:function(e){if(v.NodeGuards.isWhileStatementNode(e))return p.VisitorOption.Skip;d.isProhibitedStatementNode(e)&&(t=!1)}}),e.body.length<=4&&(t=!1),t}}]),t}(N.AbstractNodeTransformer);_=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IControlFlowCustomNode)),u.__param(1,l.inject(f.ServiceIdentifiers.IArrayUtils)),u.__param(2,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(3,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object,Object])],_),t.BlockStatementControlFlowTransformer=_},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=r(5),p=r(21),m=r(43),g=r(9),N=d=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r,n))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"replace",value:function(e,t,r){var n=e.callee;if(!g.NodeGuards.isIdentifierNode(n))return e;var o=String(e.arguments.length),a=this.controlFlowCustomNodeFactory(p.ControlFlowCustomNode.CallExpressionFunctionNode),i=e.arguments;a.initialize(i);var s=this.insertCustomNodeToControlFlowStorage(a,r,o,d.usingExistingIdentifierChance);return this.getControlFlowStorageCallNode(r.getStorageId(),s,n,i)}},{key:"getControlFlowStorageCallNode",value:function(e,t,r,n){var o=this.controlFlowCustomNodeFactory(p.ControlFlowCustomNode.CallExpressionControlFlowStorageCallNode);o.initialize(e,t,r,n);var a=o.getNode()[0];if(!a||!g.NodeGuards.isExpressionStatementNode(a))throw new Error("`controlFlowStorageCallCustomNode.getNode()[0]` should returns array with `ExpressionStatement` node");return a.expression}}]),t}(m.AbstractControlFlowReplacer);N.usingExistingIdentifierChance=.5,N=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IControlFlowCustomNode)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],N),t.CallExpressionControlFlowReplacer=N},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=r(5),p=u.__importStar(r(16)),m=r(52),g=r(29),N=r(19),v=r(12),y=r(13),_=r(14),h=r(9),b=r(24),S=r(11),I=d=function(e){function t(e,r,n,a){var c;return(0,o.default)(this,t),(c=(0,i.default)(this,(0,s.default)(t).call(this,n,a))).deadCodeInjectionRootAstHostNodeSet=new Set,c.collectedBlockStatements=[],c.collectedBlockStatementsTotalLength=0,c.deadCodeInjectionCustomNodeFactory=e,c.transformersRunner=r,c}return(0,c.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case v.TransformationStage.DeadCodeInjection:return{enter:function(e,r){if(r&&h.NodeGuards.isProgramNode(e))return t.analyzeNode(e,r),e},leave:function(e,r){if(r&&h.NodeGuards.isBlockStatementNode(e))return t.transformNode(e,r)}};case v.TransformationStage.Finalizing:return this.deadCodeInjectionRootAstHostNodeSet.size?{enter:function(e,r){if(r&&t.isDeadCodeInjectionRootAstHostNode(e))return t.restoreNode(e,r)}}:null;default:return null}}},{key:"analyzeNode",value:function(e,t){var r=this;p.traverse(e,{enter:function(e){if(h.NodeGuards.isBlockStatementNode(e)){var t=S.NodeUtils.clone(e);if(d.isValidCollectedBlockStatementNode(t)){var n=r.makeClonedBlockStatementNodeUnique(t);r.collectedBlockStatements.push(n)}}}}),this.collectedBlockStatementsTotalLength=this.collectedBlockStatements.length}},{key:"transformNode",value:function(e,t){if(!this.collectedBlockStatements.length||this.collectedBlockStatementsTotalLengththis.options.deadCodeInjectionThreshold||!d.isValidWrappedBlockStatementNode(e))return e;var r=this.collectedBlockStatements.length-1,n=this.randomGenerator.getRandomInteger(0,r),o=this.collectedBlockStatements.splice(n,1)[0];return o===e?e:this.replaceBlockStatementNode(e,o,t)}},{key:"restoreNode",value:function(e,t){var r=e.body[0];if(!h.NodeGuards.isFunctionDeclarationNode(r))throw new Error("Wrong dead code injection root AST host node. Host node should contain `FunctionDeclaration` node");return r.body}},{key:"isDeadCodeInjectionRootAstHostNode",value:function(e){return h.NodeGuards.isBlockStatementNode(e)&&this.deadCodeInjectionRootAstHostNodeSet.has(e)}},{key:"makeClonedBlockStatementNodeUnique",value:function(e){var t=_.NodeFactory.functionExpressionNode([],e);return S.NodeUtils.parentizeNode(t,t),S.NodeUtils.parentizeNode(e,t),this.transformersRunner.transform(t,d.transformersToRenameBlockScopeIdentifiers,v.TransformationStage.Obfuscating).body}},{key:"replaceBlockStatementNode",value:function(e,t,r){var n=_.NodeFactory.blockStatementNode([_.NodeFactory.functionDeclarationNode(d.deadCodeInjectionRootAstHostNodeName,[],t)]);this.deadCodeInjectionRootAstHostNodeSet.add(n);var o=this.deadCodeInjectionCustomNodeFactory(m.DeadCodeInjectionCustomNode.BlockStatementDeadCodeInjectionNode);o.initialize(e,n);var a=o.getNode()[0];return S.NodeUtils.parentizeNode(a,r),a}}],[{key:"isProhibitedNodeInsideCollectedBlockStatement",value:function(e){return h.NodeGuards.isBreakStatementNode(e)||h.NodeGuards.isContinueStatementNode(e)||h.NodeGuards.isAwaitExpressionNode(e)||h.NodeGuards.isSuperNode(e)}},{key:"isScopeHoistingFunctionDeclaration",value:function(e){if(!h.NodeGuards.isFunctionDeclarationNode(e))return!1;var t=b.NodeStatementUtils.getScopeOfNode(e),r=h.NodeGuards.isSwitchCaseNode(t)?t.consequent:t.body,n=r.indexOf(e);if(0===n)return!1;var o=r.slice(0,n),a=_.NodeFactory.blockStatementNode(o),i=e.id.name,s=!1;return p.traverse(a,{enter:function(e){if(h.NodeGuards.isIdentifierNode(e)&&e.name===i)return s=!0,p.VisitorOption.Break}}),s}},{key:"isValidCollectedBlockStatementNode",value:function(e){if(!e.body.length)return!1;var t=0,r=!0;return p.traverse(e,{enter:function(e){if(h.NodeGuards.isBlockStatementNode(e)&&t++,t>d.maxNestedBlockStatementsCount||d.isProhibitedNodeInsideCollectedBlockStatement(e)||d.isScopeHoistingFunctionDeclaration(e))return r=!1,p.VisitorOption.Break}}),r}},{key:"isValidWrappedBlockStatementNode",value:function(e){if(!e.body.length)return!1;var t=!0;return p.traverse(e,{enter:function(e){if(d.isScopeHoistingFunctionDeclaration(e))return t=!1,p.VisitorOption.Break}}),!!t&&b.NodeStatementUtils.getParentNodeWithStatements(e).type!==N.NodeType.Program}}]),t}(y.AbstractNodeTransformer);I.deadCodeInjectionRootAstHostNodeName="deadCodeInjectionRootAstHostNode",I.maxNestedBlockStatementsCount=4,I.minCollectedBlockStatementsCount=5,I.transformersToRenameBlockScopeIdentifiers=[g.NodeTransformer.CatchClauseTransformer,g.NodeTransformer.ClassDeclarationTransformer,g.NodeTransformer.FunctionDeclarationTransformer,g.NodeTransformer.FunctionTransformer,g.NodeTransformer.LabeledStatementTransformer,g.NodeTransformer.VariableDeclarationTransformer],I=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IDeadCodeInjectionCustomNode)),u.__param(1,l.inject(f.ServiceIdentifiers.ITransformersRunner)),u.__param(2,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(3,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object,Object])],I),t.DeadCodeInjectionTransformer=I},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=r(5),p=u.__importStar(r(16)),m=r(21),g=r(48),N=r(19),v=r(12),y=r(13),_=r(25),h=r(9),b=r(17),S=r(24),I=d=function(e){function t(e,r,n,a,c){var d;return(0,o.default)(this,t),(d=(0,i.default)(this,(0,s.default)(t).call(this,a,c))).controlFlowData=new Map,d.visitedFunctionNodes=new Set,d.hostNodesWithControlFlowNode=new Set,d.controlFlowStorageFactory=e,d.controlFlowReplacerFactory=r,d.controlFlowCustomNodeFactory=n,d}return(0,c.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case v.TransformationStage.ControlFlowFlattening:return{leave:function(e,r){if(r&&(h.NodeGuards.isFunctionDeclarationNode(e)||h.NodeGuards.isFunctionExpressionNode(e)||h.NodeGuards.isArrowFunctionExpressionNode(e)))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){if(this.visitedFunctionNodes.add(e),!h.NodeGuards.isBlockStatementNode(e.body))return e;var r=this.getHostNode(e.body),n=this.getControlFlowStorage(r);if(this.controlFlowData.set(r,n),this.transformFunctionBody(e.body,n),!n.getLength())return e;var o=this.controlFlowCustomNodeFactory(m.ControlFlowCustomNode.ControlFlowStorageNode);return o.initialize(n),_.NodeAppender.prepend(r,o.getNode()),this.hostNodesWithControlFlowNode.add(r),e}},{key:"getControlFlowStorage",value:function(e){var t=this.controlFlowStorageFactory();if(this.controlFlowData.has(e)){this.hostNodesWithControlFlowNode.has(e)&&(h.NodeGuards.isSwitchCaseNode(e)?e.consequent.shift():e.body.shift());var r=this.controlFlowData.get(e);t.mergeWith(r,!0)}return t}},{key:"getHostNode",value:function(e){var t=S.NodeStatementUtils.getParentNodesWithStatements(e);return 1===t.length?e:(t.pop(),t.length>d.hostNodeSearchMinDepth&&t.splice(0,d.hostNodeSearchMinDepth),t.length>d.hostNodeSearchMaxDepth&&(t.length=d.hostNodeSearchMaxDepth),this.randomGenerator.getRandomGenerator().pickone(t))}},{key:"isVisitedFunctionNode",value:function(e){return(h.NodeGuards.isFunctionDeclarationNode(e)||h.NodeGuards.isFunctionExpressionNode(e)||h.NodeGuards.isArrowFunctionExpressionNode(e))&&this.visitedFunctionNodes.has(e)}},{key:"transformFunctionBody",value:function(e,t){var r=this;p.replace(e,{enter:function(e,n){if(b.NodeMetadata.isIgnoredNode(e))return p.VisitorOption.Skip;if(r.isVisitedFunctionNode(e)||!n)return p.VisitorOption.Skip;if(!d.controlFlowReplacersMap.has(e.type))return e;if(r.randomGenerator.getMathRandom()>r.options.controlFlowFlatteningThreshold)return e;var o=d.controlFlowReplacersMap.get(e.type);return void 0===o?e:Object.assign({},r.controlFlowReplacerFactory(o).replace(e,n,t),{parentNode:n})}})}}]),t}(y.AbstractNodeTransformer);I.controlFlowReplacersMap=new Map([[N.NodeType.BinaryExpression,g.ControlFlowReplacer.BinaryExpressionControlFlowReplacer],[N.NodeType.CallExpression,g.ControlFlowReplacer.CallExpressionControlFlowReplacer],[N.NodeType.LogicalExpression,g.ControlFlowReplacer.LogicalExpressionControlFlowReplacer],[N.NodeType.Literal,g.ControlFlowReplacer.StringLiteralControlFlowReplacer]]),I.hostNodeSearchMinDepth=0,I.hostNodeSearchMaxDepth=2,I=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__TControlFlowStorage)),u.__param(1,l.inject(f.ServiceIdentifiers.Factory__IControlFlowReplacer)),u.__param(2,l.inject(f.ServiceIdentifiers.Factory__IControlFlowCustomNode)),u.__param(3,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(4,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Function,Function,Object,Object])],I),t.FunctionControlFlowTransformer=I},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=r(5),p=r(21),m=r(49),g=r(9),N=r(11),v=d=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r,n))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"replace",value:function(e,t,r){if(this.checkForProhibitedExpressions(e.left,e.right))return e;var n=e.operator,o=this.controlFlowCustomNodeFactory(p.ControlFlowCustomNode.LogicalExpressionFunctionNode);o.initialize(n);var a=this.insertCustomNodeToControlFlowStorage(o,r,n,d.usingExistingIdentifierChance);return this.getControlFlowStorageCallNode(r.getStorageId(),a,e.left,e.right)}},{key:"checkForProhibitedExpressions",value:function(e,t){return[e,t].some(function(e){var t;return t=g.NodeGuards.isUnaryExpressionNode(e)?N.NodeUtils.getUnaryExpressionArgumentNode(e):e,!(g.NodeGuards.isLiteralNode(t)||g.NodeGuards.isIdentifierNode(t)||g.NodeGuards.isObjectExpressionNode(t)||g.NodeGuards.isExpressionStatementNode(t))})}}]),t}(m.ExpressionWithOperatorControlFlowReplacer);v.usingExistingIdentifierChance=.5,v=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IControlFlowCustomNode)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],v),t.LogicalExpressionControlFlowReplacer=v},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=r(5),p=r(21),m=r(43),g=r(9),N=d=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r,n))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"replace",value:function(e,t,r){if(g.NodeGuards.isPropertyNode(t)&&t.key===e)return e;if("string"!=typeof e.value||e.value.length<3)return e;var n=String(e.value),o=this.controlFlowCustomNodeFactory(p.ControlFlowCustomNode.StringLiteralNode);o.initialize(e.value);var a=this.insertCustomNodeToControlFlowStorage(o,r,n,d.usingExistingIdentifierChance);return this.getControlFlowStorageCallNode(r.getStorageId(),a)}},{key:"getControlFlowStorageCallNode",value:function(e,t){var r=this.controlFlowCustomNodeFactory(p.ControlFlowCustomNode.StringLiteralControlFlowStorageCallNode);r.initialize(e,t);var n=r.getNode()[0];if(!n||!g.NodeGuards.isExpressionStatementNode(n))throw new Error("`controlFlowStorageCallCustomNode.getNode()[0]` should returns array with `ExpressionStatement` node");return n.expression}}]),t}(m.AbstractControlFlowReplacer);N.usingExistingIdentifierChance=1,N=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IControlFlowCustomNode)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],N),t.StringLiteralControlFlowReplacer=N},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(2),o=r(20),a=r(5),i=r(29),s=r(53),c=r(80),d=r(81),u=r(82),l=r(83),f=r(84),p=r(85),m=r(86);t.convertingTransformersModule=new n.ContainerModule(function(e){e(a.ServiceIdentifiers.INodeTransformer).to(d.MemberExpressionTransformer).whenTargetNamed(i.NodeTransformer.MemberExpressionTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(u.MethodDefinitionTransformer).whenTargetNamed(i.NodeTransformer.MethodDefinitionTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(l.ObjectExpressionKeysTransformer).whenTargetNamed(i.NodeTransformer.ObjectExpressionKeysTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(f.ObjectExpressionTransformer).whenTargetNamed(i.NodeTransformer.ObjectExpressionTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(p.TemplateLiteralTransformer).whenTargetNamed(i.NodeTransformer.TemplateLiteralTransformer),e(a.ServiceIdentifiers.IPropertiesExtractor).to(c.AssignmentExpressionPropertiesExtractor).whenTargetNamed(s.PropertiesExtractor.AssignmentExpressionPropertiesExtractor),e(a.ServiceIdentifiers.IPropertiesExtractor).to(m.VariableDeclaratorPropertiesExtractor).whenTargetNamed(s.PropertiesExtractor.VariableDeclaratorPropertiesExtractor),e(a.ServiceIdentifiers.Factory__IPropertiesExtractor).toFactory(o.InversifyContainerFacade.getCacheFactory(a.ServiceIdentifiers.IPropertiesExtractor))})},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(54),p=function(e){function t(e,r){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"extract",value:function(e,t){var r=t.parentNode,n=t.left;return f.AbstractPropertiesExtractor.isProhibitedPattern(n)?e:r&&f.AbstractPropertiesExtractor.isProhibitedHostParent(r)?e:this.transformObjectExpressionNode(e,n)}}]),t}(f.AbstractPropertiesExtractor);p=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Object,Object])],p),t.AssignmentExpressionPropertiesExtractor=p},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(12),p=r(13),m=r(14),g=r(9),N=function(e){function t(e,r){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case f.TransformationStage.Converting:return{enter:function(e,r){if(r&&g.NodeGuards.isMemberExpressionNode(e))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){if(g.NodeGuards.isIdentifierNode(e.property)){if(e.computed)return e;e.computed=!0,e.property=m.NodeFactory.literalNode(e.property.name)}return e}}]),t}(p.AbstractNodeTransformer);N=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Object,Object])],N),t.MemberExpressionTransformer=N},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=r(5),p=r(12),m=r(13),g=r(14),N=r(9),v=d=function(e){function t(e,r){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case p.TransformationStage.Converting:return{enter:function(e,r){if(r&&N.NodeGuards.isMethodDefinitionNode(e))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){return N.NodeGuards.isIdentifierNode(e.key)&&!d.ignoredNames.includes(e.key.name)&&!1===e.computed&&(e.computed=!0,e.key=g.NodeFactory.literalNode(e.key.name)),e}}]),t}(m.AbstractNodeTransformer);v.ignoredNames=["constructor"],v=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(1,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Object,Object])],v),t.MethodDefinitionTransformer=v},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=r(5),p=r(19),m=r(53),g=r(12),N=r(13),v=r(9),y=d=function(e){function t(e,r,n){var a;return(0,o.default)(this,t),(a=(0,i.default)(this,(0,s.default)(t).call(this,r,n))).propertiesExtractorFactory=e,a}return(0,c.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;return e!==g.TransformationStage.Converting?null:{enter:function(e,r){if(t.options.transformObjectKeys&&r&&v.NodeGuards.isObjectExpressionNode(e))return t.transformNode(e,r)}}}},{key:"transformNode",value:function(e,t){if(!e.properties.length)return e;var r=d.propertiesExtractorsMap.get(t.type);return r?this.propertiesExtractorFactory(r).extract(e,t):e}}]),t}(N.AbstractNodeTransformer);y.propertiesExtractorsMap=new Map([[p.NodeType.AssignmentExpression,m.PropertiesExtractor.AssignmentExpressionPropertiesExtractor],[p.NodeType.VariableDeclarator,m.PropertiesExtractor.VariableDeclaratorPropertiesExtractor]]),y=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IPropertiesExtractor)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],y),t.ObjectExpressionKeysTransformer=y},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(12),p=r(13),m=r(14),g=r(9),N=function(e){function t(e,r,n){var a;return(0,o.default)(this,t),(a=(0,i.default)(this,(0,s.default)(t).call(this,r,n))).escapeSequenceEncoder=e,a}return(0,c.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case f.TransformationStage.Converting:return{enter:function(e,r){if(r&&g.NodeGuards.isObjectExpressionNode(e))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){var r=this;return e.properties.forEach(function(e){e.key&&(e.computed?r.transformComputedProperty(e):r.transformBaseProperty(e))}),e}},{key:"transformComputedProperty",value:function(e){g.NodeGuards.isLiteralNode(e.key)&&"string"==typeof e.key.value&&(e.key=m.NodeFactory.literalNode(this.getPropertyKeyValue(e.key.value)))}},{key:"transformBaseProperty",value:function(e){e.shorthand&&(e.shorthand=!1),g.NodeGuards.isIdentifierNode(e.key)&&(e.key=m.NodeFactory.literalNode(this.getPropertyKeyValue(e.key.name)))}},{key:"getPropertyKeyValue",value:function(e){return this.options.unicodeEscapeSequence?this.escapeSequenceEncoder.encode(e,!0):e}}]),t}(p.AbstractNodeTransformer);N=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.IEscapeSequenceEncoder)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Object,Object,Object])],N),t.ObjectExpressionTransformer=N},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=r(5),p=r(12),m=r(13),g=r(14),N=r(9),v=r(11),y=d=function(e){function t(e,r){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case p.TransformationStage.Converting:return{leave:function(e,r){if(r&&d.isValidTemplateLiteralNode(e,r))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){var r,n=e.expressions,o=[];if(e.quasis.forEach(function(e){o.push(g.NodeFactory.literalNode(e.value.cooked));var t=n.shift();t&&o.push(t)}),o=o.filter(function(e){return!(N.NodeGuards.isLiteralNode(e)&&""===e.value)}),d.isLiteralNodeWithStringValue(o[0])||d.isLiteralNodeWithStringValue(o[1])||o.unshift(g.NodeFactory.literalNode("")),o.length>1){var a=g.NodeFactory.binaryExpressionNode("+",o.shift(),o.shift());o.forEach(function(e){a=g.NodeFactory.binaryExpressionNode("+",a,e)}),r=a}else r=o[0];return v.NodeUtils.parentizeAst(r),r}}],[{key:"isLiteralNodeWithStringValue",value:function(e){return e&&N.NodeGuards.isLiteralNode(e)&&"string"==typeof e.value}},{key:"isValidTemplateLiteralNode",value:function(e,t){return N.NodeGuards.isTemplateLiteralNode(e)&&!N.NodeGuards.isTaggedTemplateExpressionNode(t)}}]),t}(m.AbstractNodeTransformer);y=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(1,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Object,Object])],y),t.TemplateLiteralTransformer=y},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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=d.__importStar(r(16)),p=r(54),m=r(9),g=function(e){function t(e,r){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"extract",value:function(e,t){return!m.NodeGuards.isIdentifierNode(t.id)||this.isProhibitedObjectExpressionNode(e,t.id)?e:this.transformObjectExpressionNode(e,t.id)}},{key:"getHostVariableDeclaratorNode",value:function(e){var t=e.parentNode;if(!t||!m.NodeGuards.isVariableDeclaratorNode(t))throw new Error("Cannot get `VariableDeclarator` node for `ObjectExpression` node");return t}},{key:"getHostVariableDeclarationNode",value:function(e){var t=e.parentNode;if(!t||!m.NodeGuards.isVariableDeclarationNode(t))throw new Error("Cannot get `VariableDeclaration` node for `VariableDeclarator` node");return t}},{key:"isProhibitedObjectExpressionNode",value:function(e,t){var r=this.getHostVariableDeclaratorNode(e),n=this.getHostVariableDeclarationNode(r).declarations,o=n.indexOf(r);if(o===n.length-1)return!1;var a=!1;return n.slice(o).forEach(function(e){f.traverse(e,{enter:function(e){return m.NodeGuards.isMemberExpressionNode(e)&&m.NodeGuards.isIdentifierNode(e.object)&&e.object.name===t.name?(a=!0,f.VisitorOption.Break):e}})}),a}}]),t}(p.AbstractPropertiesExtractor);g=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Object,Object])],g),t.VariableDeclaratorPropertiesExtractor=g},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(20),o=r(2),a=r(5),i=r(21),s=r(31),c=r(55),d=r(52),u=r(88),l=r(89),f=r(90),p=r(91),m=r(92),g=r(93),N=r(96),v=r(97),y=r(98),_=r(99),h=r(100),b=r(101),S=r(103),I=r(105),C=r(107),F=r(111),O=r(113),j=r(114),T=r(115),k=r(117),x=r(119),E=r(126),w=r(128),G=r(131),R=r(132);t.customNodesModule=new o.ContainerModule(function(e){e(a.ServiceIdentifiers.ICustomNode).to(b.ConsoleOutputDisableExpressionNode).whenTargetNamed(s.CustomNode.ConsoleOutputDisableExpressionNode),e(a.ServiceIdentifiers.ICustomNode).to(S.DebugProtectionFunctionCallNode).whenTargetNamed(s.CustomNode.DebugProtectionFunctionCallNode),e(a.ServiceIdentifiers.ICustomNode).to(I.DebugProtectionFunctionIntervalNode).whenTargetNamed(s.CustomNode.DebugProtectionFunctionIntervalNode),e(a.ServiceIdentifiers.ICustomNode).to(C.DebugProtectionFunctionNode).whenTargetNamed(s.CustomNode.DebugProtectionFunctionNode),e(a.ServiceIdentifiers.ICustomNode).to(F.DomainLockNode).whenTargetNamed(s.CustomNode.DomainLockNode),e(a.ServiceIdentifiers.ICustomNode).to(T.NodeCallsControllerFunctionNode).whenTargetNamed(s.CustomNode.NodeCallsControllerFunctionNode),e(a.ServiceIdentifiers.ICustomNode).to(k.SelfDefendingUnicodeNode).whenTargetNamed(s.CustomNode.SelfDefendingUnicodeNode),e(a.ServiceIdentifiers.ICustomNode).to(x.StringArrayCallsWrapper).whenTargetNamed(s.CustomNode.StringArrayCallsWrapper),e(a.ServiceIdentifiers.ICustomNode).to(E.StringArrayNode).whenTargetNamed(s.CustomNode.StringArrayNode),e(a.ServiceIdentifiers.ICustomNode).to(w.StringArrayRotateFunctionNode).whenTargetNamed(s.CustomNode.StringArrayRotateFunctionNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(g.BinaryExpressionFunctionNode).whenTargetNamed(i.ControlFlowCustomNode.BinaryExpressionFunctionNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(N.BlockStatementControlFlowFlatteningNode).whenTargetNamed(i.ControlFlowCustomNode.BlockStatementControlFlowFlatteningNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(y.CallExpressionControlFlowStorageCallNode).whenTargetNamed(i.ControlFlowCustomNode.CallExpressionControlFlowStorageCallNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(_.CallExpressionFunctionNode).whenTargetNamed(i.ControlFlowCustomNode.CallExpressionFunctionNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(h.ControlFlowStorageNode).whenTargetNamed(i.ControlFlowCustomNode.ControlFlowStorageNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(O.ExpressionWithOperatorControlFlowStorageCallNode).whenTargetNamed(i.ControlFlowCustomNode.ExpressionWithOperatorControlFlowStorageCallNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(j.LogicalExpressionFunctionNode).whenTargetNamed(i.ControlFlowCustomNode.LogicalExpressionFunctionNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(R.StringLiteralNode).whenTargetNamed(i.ControlFlowCustomNode.StringLiteralNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(G.StringLiteralControlFlowStorageCallNode).whenTargetNamed(i.ControlFlowCustomNode.StringLiteralControlFlowStorageCallNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(v.BlockStatementDeadCodeInjectionNode).whenTargetNamed(d.DeadCodeInjectionCustomNode.BlockStatementDeadCodeInjectionNode),e(a.ServiceIdentifiers.ICustomNodeGroup).to(u.ConsoleOutputCustomNodeGroup).whenTargetNamed(c.CustomNodeGroup.ConsoleOutputCustomNodeGroup),e(a.ServiceIdentifiers.ICustomNodeGroup).to(l.DebugProtectionCustomNodeGroup).whenTargetNamed(c.CustomNodeGroup.DebugProtectionCustomNodeGroup),e(a.ServiceIdentifiers.ICustomNodeGroup).to(f.DomainLockCustomNodeGroup).whenTargetNamed(c.CustomNodeGroup.DomainLockCustomNodeGroup),e(a.ServiceIdentifiers.ICustomNodeGroup).to(p.SelfDefendingCustomNodeGroup).whenTargetNamed(c.CustomNodeGroup.SelfDefendingCustomNodeGroup),e(a.ServiceIdentifiers.ICustomNodeGroup).to(m.StringArrayCustomNodeGroup).whenTargetNamed(c.CustomNodeGroup.StringArrayCustomNodeGroup),e(a.ServiceIdentifiers.Factory__ICustomNode).toFactory(n.InversifyContainerFacade.getFactory(a.ServiceIdentifiers.ICustomNode)),e(a.ServiceIdentifiers.Factory__IControlFlowCustomNode).toFactory(n.InversifyContainerFacade.getConstructorFactory(a.ServiceIdentifiers.Newable__ICustomNode,a.ServiceIdentifiers.Factory__IIdentifierNamesGenerator,a.ServiceIdentifiers.IRandomGenerator,a.ServiceIdentifiers.IOptions)),e(a.ServiceIdentifiers.Factory__IDeadCodeInjectionCustomNode).toFactory(n.InversifyContainerFacade.getConstructorFactory(a.ServiceIdentifiers.Newable__ICustomNode,a.ServiceIdentifiers.Factory__IIdentifierNamesGenerator,a.ServiceIdentifiers.IRandomGenerator,a.ServiceIdentifiers.IOptions)),e(a.ServiceIdentifiers.Factory__ICustomNodeGroup).toFactory(n.InversifyContainerFacade.getFactory(a.ServiceIdentifiers.ICustomNodeGroup))})},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(10),p=r(31),m=r(26),g=r(33),N=r(25),v=function(e){function t(e,r,n,a){var c;return(0,o.default)(this,t),(c=(0,i.default)(this,(0,s.default)(t).call(this,r,n,a))).appendEvent=m.ObfuscationEvent.BeforeObfuscation,c.customNodeFactory=e,c}return(0,c.default)(t,e),(0,a.default)(t,[{key:"appendCustomNodes",value:function(e,t){var r=this.getRandomStackTraceIndex(t.length);this.appendCustomNodeIfExist(p.CustomNode.ConsoleOutputDisableExpressionNode,function(n){N.NodeAppender.appendToOptimalBlockScope(t,e,n.getNode(),r)}),this.appendCustomNodeIfExist(p.CustomNode.NodeCallsControllerFunctionNode,function(n){var o=t.length?N.NodeAppender.getOptimalBlockScope(t,r,1):e;N.NodeAppender.prepend(o,n.getNode())})}},{key:"initialize",value:function(){if(this.customNodes=new Map,this.options.disableConsoleOutput){var e=this.identifierNamesGenerator.generate(),t=this.customNodeFactory(p.CustomNode.ConsoleOutputDisableExpressionNode),r=this.customNodeFactory(p.CustomNode.NodeCallsControllerFunctionNode);t.initialize(e),r.initialize(this.appendEvent,e),this.customNodes.set(p.CustomNode.ConsoleOutputDisableExpressionNode,t),this.customNodes.set(p.CustomNode.NodeCallsControllerFunctionNode,r)}}}]),t}(g.AbstractCustomNodeGroup);d.__decorate([f.initializable(),d.__metadata("design:type",Map)],v.prototype,"customNodes",void 0),v=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__ICustomNode)),d.__param(1,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(3,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Function,Object,Object])],v),t.ConsoleOutputCustomNodeGroup=v},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(10),p=r(31),m=r(26),g=r(33),N=r(25),v=r(9),y=function(e){function t(e,r,n,a){var c;return(0,o.default)(this,t),(c=(0,i.default)(this,(0,s.default)(t).call(this,r,n,a))).appendEvent=m.ObfuscationEvent.BeforeObfuscation,c.customNodeFactory=e,c}return(0,c.default)(t,e),(0,a.default)(t,[{key:"appendCustomNodes",value:function(e,t){var r=this,n=this.getRandomStackTraceIndex(t.length);this.appendCustomNodeIfExist(p.CustomNode.DebugProtectionFunctionCallNode,function(r){N.NodeAppender.appendToOptimalBlockScope(t,e,r.getNode(),n)}),this.appendCustomNodeIfExist(p.CustomNode.DebugProtectionFunctionNode,function(t){N.NodeAppender.append(e,t.getNode())}),this.appendCustomNodeIfExist(p.CustomNode.DebugProtectionFunctionIntervalNode,function(t){var n=v.NodeGuards.isSwitchCaseNode(e)?e.consequent.length:e.body.length,o=r.randomGenerator.getRandomInteger(0,n);N.NodeAppender.insertAtIndex(e,t.getNode(),o)}),this.appendCustomNodeIfExist(p.CustomNode.NodeCallsControllerFunctionNode,function(r){var o=t.length?N.NodeAppender.getOptimalBlockScope(t,n,1):e;N.NodeAppender.prepend(o,r.getNode())})}},{key:"initialize",value:function(){if(this.customNodes=new Map,this.options.debugProtection){var e=this.identifierNamesGenerator.generate(),t=this.identifierNamesGenerator.generate(),r=this.customNodeFactory(p.CustomNode.DebugProtectionFunctionNode),n=this.customNodeFactory(p.CustomNode.DebugProtectionFunctionCallNode),o=this.customNodeFactory(p.CustomNode.DebugProtectionFunctionIntervalNode),a=this.customNodeFactory(p.CustomNode.NodeCallsControllerFunctionNode);r.initialize(e),n.initialize(e,t),o.initialize(e),a.initialize(this.appendEvent,t),this.customNodes.set(p.CustomNode.DebugProtectionFunctionNode,r),this.customNodes.set(p.CustomNode.DebugProtectionFunctionCallNode,n),this.options.debugProtectionInterval&&this.customNodes.set(p.CustomNode.DebugProtectionFunctionIntervalNode,o),this.customNodes.set(p.CustomNode.NodeCallsControllerFunctionNode,a)}}}]),t}(g.AbstractCustomNodeGroup);d.__decorate([f.initializable(),d.__metadata("design:type",Map)],y.prototype,"customNodes",void 0),y=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__ICustomNode)),d.__param(1,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(3,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Function,Object,Object])],y),t.DebugProtectionCustomNodeGroup=y},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(10),p=r(31),m=r(26),g=r(33),N=r(25),v=function(e){function t(e,r,n,a){var c;return(0,o.default)(this,t),(c=(0,i.default)(this,(0,s.default)(t).call(this,r,n,a))).appendEvent=m.ObfuscationEvent.BeforeObfuscation,c.customNodeFactory=e,c}return(0,c.default)(t,e),(0,a.default)(t,[{key:"appendCustomNodes",value:function(e,t){var r=this.getRandomStackTraceIndex(t.length);this.appendCustomNodeIfExist(p.CustomNode.DomainLockNode,function(n){N.NodeAppender.appendToOptimalBlockScope(t,e,n.getNode(),r)}),this.appendCustomNodeIfExist(p.CustomNode.NodeCallsControllerFunctionNode,function(n){var o=t.length?N.NodeAppender.getOptimalBlockScope(t,r,1):e;N.NodeAppender.prepend(o,n.getNode())})}},{key:"initialize",value:function(){if(this.customNodes=new Map,this.options.domainLock.length){var e=this.identifierNamesGenerator.generate(),t=this.customNodeFactory(p.CustomNode.DomainLockNode),r=this.customNodeFactory(p.CustomNode.NodeCallsControllerFunctionNode);t.initialize(e),r.initialize(this.appendEvent,e),this.customNodes.set(p.CustomNode.DomainLockNode,t),this.customNodes.set(p.CustomNode.NodeCallsControllerFunctionNode,r)}}}]),t}(g.AbstractCustomNodeGroup);d.__decorate([f.initializable(),d.__metadata("design:type",Map)],v.prototype,"customNodes",void 0),v=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__ICustomNode)),d.__param(1,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(3,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Function,Object,Object])],v),t.DomainLockCustomNodeGroup=v},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(10),p=r(31),m=r(26),g=r(33),N=r(25),v=function(e){function t(e,r,n,a){var c;return(0,o.default)(this,t),(c=(0,i.default)(this,(0,s.default)(t).call(this,r,n,a))).appendEvent=m.ObfuscationEvent.AfterObfuscation,c.customNodeFactory=e,c}return(0,c.default)(t,e),(0,a.default)(t,[{key:"appendCustomNodes",value:function(e,t){var r=this.getRandomStackTraceIndex(t.length);this.appendCustomNodeIfExist(p.CustomNode.SelfDefendingUnicodeNode,function(n){N.NodeAppender.appendToOptimalBlockScope(t,e,n.getNode(),r)}),this.appendCustomNodeIfExist(p.CustomNode.NodeCallsControllerFunctionNode,function(n){var o=t.length?N.NodeAppender.getOptimalBlockScope(t,r,1):e;N.NodeAppender.prepend(o,n.getNode())})}},{key:"initialize",value:function(){if(this.customNodes=new Map,this.options.selfDefending){var e=this.identifierNamesGenerator.generate(),t=this.customNodeFactory(p.CustomNode.SelfDefendingUnicodeNode),r=this.customNodeFactory(p.CustomNode.NodeCallsControllerFunctionNode);t.initialize(e),r.initialize(this.appendEvent,e),this.customNodes.set(p.CustomNode.SelfDefendingUnicodeNode,t),this.customNodes.set(p.CustomNode.NodeCallsControllerFunctionNode,r)}}}]),t}(g.AbstractCustomNodeGroup);d.__decorate([f.initializable(),d.__metadata("design:type",Map)],v.prototype,"customNodes",void 0),v=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__ICustomNode)),d.__param(1,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(3,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Function,Object,Object])],v),t.SelfDefendingCustomNodeGroup=v},function(e,t,r){"use strict";var n=r(0),o=n(r(30)),a=n(r(1)),i=n(r(3)),s=n(r(6)),c=n(r(7)),d=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var u=r(4),l=r(2),f=r(5),p=r(10),m=r(31),g=r(26),N=r(33),v=r(25),y=function(e){function t(e,r,n,o,i){var d;return(0,a.default)(this,t),(d=(0,s.default)(this,(0,c.default)(t).call(this,n,o,i))).appendEvent=g.ObfuscationEvent.AfterObfuscation,d.customNodeFactory=e,d.stringArrayStorage=r,d}return(0,d.default)(t,e),(0,i.default)(t,[{key:"appendCustomNodes",value:function(e,t){this.stringArrayStorage.getLength()&&(this.appendCustomNodeIfExist(m.CustomNode.StringArrayNode,function(t){v.NodeAppender.prepend(e,t.getNode())}),this.appendCustomNodeIfExist(m.CustomNode.StringArrayCallsWrapper,function(t){v.NodeAppender.insertAtIndex(e,t.getNode(),1)}),this.appendCustomNodeIfExist(m.CustomNode.StringArrayRotateFunctionNode,function(t){v.NodeAppender.insertAtIndex(e,t.getNode(),1)}))}},{key:"initialize",value:function(){if(this.customNodes=new Map,this.options.stringArray){var e,t=this.customNodeFactory(m.CustomNode.StringArrayNode),r=this.customNodeFactory(m.CustomNode.StringArrayCallsWrapper),n=this.customNodeFactory(m.CustomNode.StringArrayRotateFunctionNode),a=this.stringArrayStorage.getStorageId().split("|"),i=(0,o.default)(a,2),s=i[0],c=i[1];e=this.options.rotateStringArray?this.randomGenerator.getRandomInteger(100,500):0,t.initialize(this.stringArrayStorage,s,e),r.initialize(s,c),n.initialize(s,e),this.customNodes.set(m.CustomNode.StringArrayNode,t),this.customNodes.set(m.CustomNode.StringArrayCallsWrapper,r),this.options.rotateStringArray&&this.customNodes.set(m.CustomNode.StringArrayRotateFunctionNode,n)}}}]),t}(N.AbstractCustomNodeGroup);u.__decorate([p.initializable(),u.__metadata("design:type",Map)],y.prototype,"customNodes",void 0),y=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__ICustomNode)),u.__param(1,l.inject(f.ServiceIdentifiers.TStringArrayStorage)),u.__param(2,l.inject(f.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),u.__param(3,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(4,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Function,Object,Object])],y),t.StringArrayCustomNodeGroup=y},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(10),p=r(15),m=r(14),g=r(11),N=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r,n))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"initialize",value:function(e){this.operator=e}},{key:"getNodeStructure",value:function(){var e=m.NodeFactory.expressionStatementNode(m.NodeFactory.functionExpressionNode([m.NodeFactory.identifierNode("x"),m.NodeFactory.identifierNode("y")],m.NodeFactory.blockStatementNode([m.NodeFactory.returnStatementNode(m.NodeFactory.binaryExpressionNode(this.operator,m.NodeFactory.identifierNode("x"),m.NodeFactory.identifierNode("y")))])));return g.NodeUtils.parentizeAst(e),[e]}}]),t}(p.AbstractCustomNode);d.__decorate([f.initializable(),d.__metadata("design:type",String)],N.prototype,"operator",void 0),N=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object])],N),t.BinaryExpressionFunctionNode=N},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalVariableTemplate1=function(){return"\n var that;\n \n try {\n var getGlobal = Function('return (function() ' + '{}.constructor(\"return this\")( )' + ');');\n \n that = getGlobal();\n } catch (e) {\n that = window;\n }\n "}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalVariableTemplate2=function(){return"\n var getGlobal = function () {\n var globalObject;\n \n try {\n globalObject = Function('return (function() ' + '{}.constructor(\"return this\")( )' + ');')();\n } catch (e) {\n globalObject = window;\n }\n \n return globalObject;\n };\n var that = getGlobal();\n "}},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(10),p=r(15),m=r(14),g=r(9),N=r(11),v=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r,n))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"initialize",value:function(e,t,r){this.blockStatementBody=e,this.shuffledKeys=t,this.originalKeysIndexesInShuffledArray=r}},{key:"getNodeStructure",value:function(){var e=this,t=this.randomGenerator.getRandomString(6),r=this.randomGenerator.getRandomString(6),n=m.NodeFactory.blockStatementNode([m.NodeFactory.variableDeclarationNode([m.NodeFactory.variableDeclaratorNode(m.NodeFactory.identifierNode(t),m.NodeFactory.callExpressionNode(m.NodeFactory.memberExpressionNode(m.NodeFactory.literalNode(this.originalKeysIndexesInShuffledArray.join("|")),m.NodeFactory.identifierNode("split")),[m.NodeFactory.literalNode("|")])),m.NodeFactory.variableDeclaratorNode(m.NodeFactory.identifierNode(r),m.NodeFactory.literalNode(0))]),m.NodeFactory.whileStatementNode(m.NodeFactory.literalNode(!0),m.NodeFactory.blockStatementNode([m.NodeFactory.switchStatementNode(m.NodeFactory.memberExpressionNode(m.NodeFactory.identifierNode(t),m.NodeFactory.updateExpressionNode("++",m.NodeFactory.identifierNode(r)),!0),this.shuffledKeys.map(function(t,r){var n=e.blockStatementBody[t],o=[n];return g.NodeGuards.isReturnStatementNode(n)||o.push(m.NodeFactory.continueStatement()),m.NodeFactory.switchCaseNode(m.NodeFactory.literalNode(String(r)),o)})),m.NodeFactory.breakStatement()]))]);return N.NodeUtils.parentizeAst(n),[n]}}]),t}(p.AbstractCustomNode);d.__decorate([f.initializable(),d.__metadata("design:type",Array)],v.prototype,"blockStatementBody",void 0),d.__decorate([f.initializable(),d.__metadata("design:type",Array)],v.prototype,"originalKeysIndexesInShuffledArray",void 0),d.__decorate([f.initializable(),d.__metadata("design:type",Array)],v.prototype,"shuffledKeys",void 0),v=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object])],v),t.BlockStatementControlFlowFlatteningNode=v},function(e,t,r){"use strict";var n=r(0),o=n(r(30)),a=n(r(1)),i=n(r(3)),s=n(r(6)),c=n(r(7)),d=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var u=r(4),l=r(2),f=r(5),p=r(10),m=r(15),g=r(14),N=r(11),v=function(e){function t(e,r,n){return(0,a.default)(this,t),(0,s.default)(this,(0,c.default)(t).call(this,e,r,n))}return(0,d.default)(t,e),(0,i.default)(t,[{key:"initialize",value:function(e,t){this.blockStatementNode=e,this.deadCodeInjectionRootAstHostNode=t}},{key:"getNodeStructure",value:function(){var e=this.randomGenerator.getMathRandom()>.5,t=this.randomGenerator.getMathRandom()>.5,r=e?"===":"!==",n=this.randomGenerator.getRandomString(5),a=t?n:this.randomGenerator.getRandomString(5),i=e===t?[this.blockStatementNode,this.deadCodeInjectionRootAstHostNode]:[this.deadCodeInjectionRootAstHostNode,this.blockStatementNode],s=(0,o.default)(i,2),c=s[0],d=s[1],u=g.NodeFactory.blockStatementNode([g.NodeFactory.ifStatementNode(g.NodeFactory.binaryExpressionNode(r,g.NodeFactory.literalNode(n),g.NodeFactory.literalNode(a)),c,d)]);return N.NodeUtils.parentizeAst(u),[u]}}]),t}(m.AbstractCustomNode);u.__decorate([p.initializable(),u.__metadata("design:type",Object)],v.prototype,"blockStatementNode",void 0),u.__decorate([p.initializable(),u.__metadata("design:type",Object)],v.prototype,"deadCodeInjectionRootAstHostNode",void 0),v=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],v),t.BlockStatementDeadCodeInjectionNode=v},function(e,t,r){"use strict";var n=r(0),o=n(r(28)),a=n(r(1)),i=n(r(3)),s=n(r(6)),c=n(r(7)),d=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var u=r(4),l=r(2),f=r(5),p=r(10),m=r(15),g=r(14),N=r(11),v=function(e){function t(e,r,n){return(0,a.default)(this,t),(0,s.default)(this,(0,c.default)(t).call(this,e,r,n))}return(0,d.default)(t,e),(0,i.default)(t,[{key:"initialize",value:function(e,t,r,n){this.controlFlowStorageName=e,this.controlFlowStorageKey=t,this.callee=r,this.expressionArguments=n}},{key:"getNodeStructure",value:function(){var e=g.NodeFactory.expressionStatementNode(g.NodeFactory.callExpressionNode(g.NodeFactory.memberExpressionNode(g.NodeFactory.identifierNode(this.controlFlowStorageName),g.NodeFactory.identifierNode(this.controlFlowStorageKey)),[this.callee].concat((0,o.default)(this.expressionArguments))));return N.NodeUtils.parentizeAst(e),[e]}}]),t}(m.AbstractCustomNode);u.__decorate([p.initializable(),u.__metadata("design:type",Object)],v.prototype,"callee",void 0),u.__decorate([p.initializable(),u.__metadata("design:type",String)],v.prototype,"controlFlowStorageKey",void 0),u.__decorate([p.initializable(),u.__metadata("design:type",String)],v.prototype,"controlFlowStorageName",void 0),u.__decorate([p.initializable(),u.__metadata("design:type",Array)],v.prototype,"expressionArguments",void 0),v=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],v),t.CallExpressionControlFlowStorageCallNode=v},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(10),p=r(15),m=r(14),g=r(11),N=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r,n))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"initialize",value:function(e){this.expressionArguments=e}},{key:"getNodeStructure",value:function(){for(var e=m.NodeFactory.identifierNode("callee"),t=[],r=this.expressionArguments.length,n=0;n 0;\n \n switch (isPositive) {\n case true:\n return this.item + \'_\' + this.value + \'_\' + i;\n default:\n this.item + \'_\' + this.value;\n }\n }\n }()\n };\n };\n \n var regExp = new RegExp("[{diff}]", "g");\n var domains = "{domains}".replace(regExp, "").split(";");\n var document;\n var domain;\n var location;\n var hostname;\n\n for (var d in that) {\n if (d.length == 8 && d.charCodeAt(7) == 116 && d.charCodeAt(5) == 101 && d.charCodeAt(3) == 117 && d.charCodeAt(0) == 100) {\n document = d;\n \n break;\n }\n }\n\n for (var d1 in that[document]) {\n if (d1.length == 6 && d1.charCodeAt(5) == 110 && d1.charCodeAt(0) == 100) {\n domain = d1;\n \n break;\n }\n }\n\n if (!("~" > domain)) {\n for (var d2 in that[document]) {\n if (d2.length == 8 && d2.charCodeAt(7) == 110 && d2.charCodeAt(0) == 108) {\n location = d2;\n \n break;\n }\n }\n\n for (var d3 in that[document][location]) {\n if (d3.length == 8 && d3.charCodeAt(7) == 101 && d3.charCodeAt(0) == 104) {\n hostname = d3;\n \n break;\n }\n }\n }\n \n if (!document || !that[document]) {\n return;\n }\n \n var documentDomain = that[document][domain];\n var documentLocationHostName = !!that[document][location] && that[document][location][hostname];\n var currentDomain = documentDomain || documentLocationHostName;\n \n if (!currentDomain) {\n return;\n }\n \n var ok = false;\n \n for (var i = 0; i < domains.length; i++) {\n var domain = domains[i];\n var position = currentDomain.length - domain.length;\n var lastIndex = currentDomain.indexOf(domain, position);\n var endsWith = lastIndex !== -1 && lastIndex === position;\n \n if (endsWith) {\n if (currentDomain.length == domain.length || domain.indexOf(".") === 0) {\n ok = true;\n }\n }\n }\n \n if (!ok) {\n data;\n } else {\n return;\n }\n \n func();\n });\n\n {domainLockFunctionName}();\n '}},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(10),p=r(15),m=r(14),g=r(11),N=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r,n))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"initialize",value:function(e,t,r,n){this.controlFlowStorageName=e,this.controlFlowStorageKey=t,this.leftValue=r,this.rightValue=n}},{key:"getNodeStructure",value:function(){var e=m.NodeFactory.expressionStatementNode(m.NodeFactory.callExpressionNode(m.NodeFactory.memberExpressionNode(m.NodeFactory.identifierNode(this.controlFlowStorageName),m.NodeFactory.identifierNode(this.controlFlowStorageKey)),[this.leftValue,this.rightValue]));return g.NodeUtils.parentizeAst(e),[e]}}]),t}(p.AbstractCustomNode);d.__decorate([f.initializable(),d.__metadata("design:type",String)],N.prototype,"controlFlowStorageKey",void 0),d.__decorate([f.initializable(),d.__metadata("design:type",String)],N.prototype,"controlFlowStorageName",void 0),d.__decorate([f.initializable(),d.__metadata("design:type",Object)],N.prototype,"leftValue",void 0),d.__decorate([f.initializable(),d.__metadata("design:type",Object)],N.prototype,"rightValue",void 0),N=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object])],N),t.ExpressionWithOperatorControlFlowStorageCallNode=N},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(10),p=r(15),m=r(14),g=r(11),N=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r,n))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"initialize",value:function(e){this.operator=e}},{key:"getNodeStructure",value:function(){var e=m.NodeFactory.expressionStatementNode(m.NodeFactory.functionExpressionNode([m.NodeFactory.identifierNode("x"),m.NodeFactory.identifierNode("y")],m.NodeFactory.blockStatementNode([m.NodeFactory.returnStatementNode(m.NodeFactory.logicalExpressionNode(this.operator,m.NodeFactory.identifierNode("x"),m.NodeFactory.identifierNode("y")))])));return g.NodeUtils.parentizeAst(e),[e]}}]),t}(p.AbstractCustomNode);d.__decorate([f.initializable(),d.__metadata("design:type",String)],N.prototype,"operator",void 0),N=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object])],N),t.LogicalExpressionFunctionNode=N},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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=d.__importDefault(r(18)),p=r(26),m=r(10),g=r(116),N=r(38),v=r(15),y=r(32),_=r(11),h=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r,n))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"initialize",value:function(e,t){this.appendEvent=e,this.callsControllerFunctionName=t}},{key:"getNodeStructure",value:function(){return _.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){return this.appendEvent===p.ObfuscationEvent.AfterObfuscation?y.JavaScriptObfuscator.obfuscate(f.default(g.SingleNodeCallControllerTemplate(),{singleNodeCallControllerFunctionName:this.callsControllerFunctionName}),Object.assign({},N.NO_ADDITIONAL_NODES_PRESET,{identifierNamesGenerator:this.options.identifierNamesGenerator,seed:this.options.seed})).getObfuscatedCode():f.default(g.SingleNodeCallControllerTemplate(),{singleNodeCallControllerFunctionName:this.callsControllerFunctionName})}}]),t}(v.AbstractCustomNode);d.__decorate([m.initializable(),d.__metadata("design:type",String)],h.prototype,"callsControllerFunctionName",void 0),d.__decorate([m.initializable(),d.__metadata("design:type",String)],h.prototype,"appendEvent",void 0),h=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object])],h),t.NodeCallsControllerFunctionNode=h},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SingleNodeCallControllerTemplate=function(){return"\n var {singleNodeCallControllerFunctionName} = (function(){\n var firstCall = true;\n \n return function (context, fn){\n var rfn = firstCall ? function(){\n if(fn){\n var res = fn.apply(context, arguments);\n fn = null;\n return res;\n }\n } : function(){}\n \n firstCall = false;\n \n return rfn;\n }\n })();\n "}},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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=d.__importDefault(r(18)),p=r(10),m=r(38),g=r(118),N=r(15),v=r(32),y=r(11),_=function(e){function t(e,r,n,a){var c;return(0,o.default)(this,t),(c=(0,i.default)(this,(0,s.default)(t).call(this,e,r,a))).escapeSequenceEncoder=n,c}return(0,c.default)(t,e),(0,a.default)(t,[{key:"initialize",value:function(e){this.callsControllerFunctionName=e}},{key:"getNodeStructure",value:function(){return y.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){return v.JavaScriptObfuscator.obfuscate(f.default(g.SelfDefendingTemplate(this.escapeSequenceEncoder),{selfDefendingFunctionName:this.identifierNamesGenerator.generate(),singleNodeCallControllerFunctionName:this.callsControllerFunctionName}),Object.assign({},m.NO_ADDITIONAL_NODES_PRESET,{identifierNamesGenerator:this.options.identifierNamesGenerator,seed:this.options.seed,unicodeEscapeSequence:!0})).getObfuscatedCode()}}]),t}(N.AbstractCustomNode);d.__decorate([p.initializable(),d.__metadata("design:type",String)],_.prototype,"callsControllerFunctionName",void 0),_=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IEscapeSequenceEncoder)),d.__param(3,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object,Object])],_),t.SelfDefendingUnicodeNode=_},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SelfDefendingTemplate=function(e){return"\n var {selfDefendingFunctionName} = {singleNodeCallControllerFunctionName}(this, function () {\n var func1 = function(){return 'dev';},\n func2 = function () {\n return 'window';\n };\n \n var test1 = function () {\n var regExp = new RegExp('".concat(e.encode("\\w+ *\\(\\) *{\\w+ *['|\"].+['|\"];? *}",!0),"');\n \n return !regExp.test(func1.toString());\n };\n \n var test2 = function () {\n var regExp = new RegExp('").concat(e.encode("(\\\\[x|u](\\w){2,4})+",!0),"');\n \n return regExp.test(func2.toString());\n };\n \n var recursiveFunc1 = function (string) {\n var i = ~-1 >> 1 + 255 % 0;\n \n if (string.indexOf('i' === i)) {\n recursiveFunc2(string)\n }\n };\n \n var recursiveFunc2 = function (string) {\n var i = ~-4 >> 1 + 255 % 0;\n \n if (string.indexOf((true+\"\")[3]) !== i) {\n recursiveFunc1(string)\n }\n };\n \n if (!test1()) {\n if (!test2()) {\n recursiveFunc1('indеxOf');\n } else {\n recursiveFunc1('indexOf');\n }\n } else {\n recursiveFunc1('indеxOf');\n }\n })\n \n {selfDefendingFunctionName}();\n ")}},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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=d.__importDefault(r(18)),p=r(23),m=r(37),g=r(10),N=r(38),v=r(120),y=r(45),_=r(121),h=r(122),b=r(123),S=r(124),I=r(125),C=r(15),F=r(32),O=r(11),j=function(e){function t(e,r,n,a){var c;return(0,o.default)(this,t),(c=(0,i.default)(this,(0,s.default)(t).call(this,e,r,a))).escapeSequenceEncoder=n,c}return(0,c.default)(t,e),(0,a.default)(t,[{key:"initialize",value:function(e,t){this.stringArrayName=e,this.stringArrayCallsWrapperName=t}},{key:"getNodeStructure",value:function(){return O.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){var e=this.getDecodeStringArrayTemplate();return F.JavaScriptObfuscator.obfuscate(f.default(S.StringArrayCallsWrapperTemplate(),{decodeNodeTemplate:e,stringArrayCallsWrapperName:this.stringArrayCallsWrapperName,stringArrayName:this.stringArrayName}),Object.assign({},N.NO_ADDITIONAL_NODES_PRESET,{identifierNamesGenerator:this.options.identifierNamesGenerator,seed:this.options.seed})).getObfuscatedCode()}},{key:"getDecodeStringArrayTemplate",value:function(){var e=this.options.target!==p.ObfuscationTarget.BrowserNoEval?this.getGlobalVariableTemplate():y.GlobalVariableNoEvalTemplate(),t=f.default(v.AtobTemplate(),{globalVariableTemplate:e}),r="",n="";switch(this.options.selfDefending&&(n=f.default(h.SelfDefendingTemplate(this.randomGenerator,this.escapeSequenceEncoder),{stringArrayCallsWrapperName:this.stringArrayCallsWrapperName,stringArrayName:this.stringArrayName})),this.options.stringArrayEncoding){case m.StringArrayEncoding.Rc4:r=f.default(I.StringArrayRc4DecodeNodeTemplate(this.randomGenerator),{atobPolyfill:t,rc4Polyfill:_.Rc4Template(),selfDefendingCode:n,stringArrayCallsWrapperName:this.stringArrayCallsWrapperName});break;case m.StringArrayEncoding.Base64:r=f.default(b.StringArrayBase64DecodeNodeTemplate(this.randomGenerator),{atobPolyfill:t,selfDefendingCode:n,stringArrayCallsWrapperName:this.stringArrayCallsWrapperName})}return r}}]),t}(C.AbstractCustomNode);d.__decorate([g.initializable(),d.__metadata("design:type",String)],j.prototype,"stringArrayName",void 0),d.__decorate([g.initializable(),d.__metadata("design:type",String)],j.prototype,"stringArrayCallsWrapperName",void 0),j=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IEscapeSequenceEncoder)),d.__param(3,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object,Object])],j),t.StringArrayCallsWrapper=j},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AtobTemplate=function(){return"\n (function () {\n {globalVariableTemplate}\n \n var chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';\n\n that.atob || (\n that.atob = function(input) {\n var str = String(input).replace(/=+$/, '');\n for (\n var bc = 0, bs, buffer, idx = 0, output = '';\n buffer = str.charAt(idx++);\n ~buffer && (bs = bc % 4 ? bs * 64 + buffer : buffer,\n bc++ % 4) ? output += String.fromCharCode(255 & bs >> (-2 * bc & 6)) : 0\n ) {\n buffer = chars.indexOf(buffer);\n }\n return output;\n });\n })();\n "}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Rc4Template=function(){return"\n var rc4 = function (str, key) {\n var s = [], j = 0, x, res = '', newStr = '';\n \n str = atob(str);\n \n for (var k = 0, length = str.length; k < length; k++) {\n newStr += '%' + ('00' + str.charCodeAt(k).toString(16)).slice(-2);\n }\n \n str = decodeURIComponent(newStr);\n \t \n\t for (var 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 (var 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 res += String.fromCharCode(str.charCodeAt(y) ^ s[(s[i] + s[j]) % 256]);\n }\n \n return res;\n }\n "}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SelfDefendingTemplate=function(e,t){var r=e.getRandomString(6),n=e.getRandomString(6),o=e.getRandomString(6),a=e.getRandomString(6),i=e.getRandomString(6),s=e.getRandomString(6),c=e.getRandomString(6),d=e.getRandomString(6),u=e.getRandomString(6);return"\n var StatesClass = function (".concat(r,") {\n this.").concat(r," = ").concat(r,";\n this.").concat(n," = [1, 0, 0];\n this.").concat(o," = function(){return 'newState';};\n this.").concat(a," = '").concat(t.encode("\\w+ *\\(\\) *{\\w+ *",!0),"';\n this.").concat(i," = '").concat(t.encode("['|\"].+['|\"];? *}",!0),"';\n };\n \n StatesClass.prototype.").concat(s," = function () {\n var regExp = new RegExp(this.").concat(a," + this.").concat(i,");\n var expression = regExp.test(this.").concat(o,".toString())\n ? --this.").concat(n,"[1]\n : --this.").concat(n,"[0];\n \n return this.").concat(c,"(expression);\n };\n \n StatesClass.prototype.").concat(c," = function (").concat(u,") {\n if (!Boolean(~").concat(u,")) {\n return ").concat(u,";\n }\n \n return this.").concat(d,"(this.").concat(r,");\n };\n\n StatesClass.prototype.").concat(d," = function (").concat(r,") {\n for (var i = 0, len = this.").concat(n,".length; i < len; i++) {\n this.").concat(n,".push(Math.round(Math.random()));\n len = this.").concat(n,".length;\n }\n \n return ").concat(r,"(this.").concat(n,"[0]);\n };\n\n new StatesClass({stringArrayCallsWrapperName}).").concat(s,"();\n ")}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayBase64DecodeNodeTemplate=function(e){var t=e.getRandomString(6),r=e.getRandomString(6),n=e.getRandomString(6);return"\n if ({stringArrayCallsWrapperName}.".concat(t," === undefined) {\n {atobPolyfill}\n \n {stringArrayCallsWrapperName}.").concat(r," = function (str) {\n var string = atob(str);\n var newStringChars = [];\n \n for (var i = 0, length = string.length; i < length; i++) {\n newStringChars += '%' + ('00' + string.charCodeAt(i).toString(16)).slice(-2);\n }\n \n return decodeURIComponent(newStringChars);\n };\n \n {stringArrayCallsWrapperName}.").concat(n," = {};\n \n {stringArrayCallsWrapperName}.").concat(t," = true;\n }\n \n var cachedValue = {stringArrayCallsWrapperName}.").concat(n,"[index];\n \n if (cachedValue === undefined) {\n {selfDefendingCode}\n \n value = {stringArrayCallsWrapperName}.").concat(r,"(value);\n {stringArrayCallsWrapperName}.").concat(n,"[index] = value;\n } else {\n value = cachedValue;\n }\n ")}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayCallsWrapperTemplate=function(){return"\n var {stringArrayCallsWrapperName} = function (index, key) {\n index = index - 0;\n \n var value = {stringArrayName}[index];\n \n {decodeNodeTemplate}\n \n return value;\n };\n "}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayRc4DecodeNodeTemplate=function(e){var t=e.getRandomString(6),r=e.getRandomString(6),n=e.getRandomString(6),o=e.getRandomString(6);return"\n if ({stringArrayCallsWrapperName}.".concat(t," === undefined) {\n {atobPolyfill}\n \n {rc4Polyfill}\n {stringArrayCallsWrapperName}.").concat(r," = rc4;\n \n {stringArrayCallsWrapperName}.").concat(n," = {};\n \n {stringArrayCallsWrapperName}.").concat(t," = true;\n }\n \n var cachedValue = {stringArrayCallsWrapperName}.").concat(n,"[index];\n\n if (cachedValue === undefined) {\n if ({stringArrayCallsWrapperName}.").concat(o," === undefined) {\n {selfDefendingCode}\n \n {stringArrayCallsWrapperName}.").concat(o," = true;\n }\n \n value = {stringArrayCallsWrapperName}.").concat(r,"(value, key);\n {stringArrayCallsWrapperName}.").concat(n,"[index] = value;\n } else {\n value = cachedValue;\n }\n ")}},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(39)),d=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var u=r(4),l=r(2),f=r(5),p=u.__importDefault(r(18)),m=r(10),g=r(127),N=r(15),v=r(11),y=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r,n))}return(0,d.default)(t,e),(0,a.default)(t,[{key:"initialize",value:function(e,t,r){this.stringArrayStorage=e,this.stringArrayName=t,this.stringArrayRotateValue=r}},{key:"getNode",value:function(){return this.stringArrayStorage.rotateArray(this.stringArrayRotateValue),(0,c.default)((0,s.default)(t.prototype),"getNode",this).call(this)}},{key:"getNodeStructure",value:function(){return v.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){return p.default(g.StringArrayTemplate(),{stringArrayName:this.stringArrayName,stringArray:this.stringArrayStorage.toString()})}}]),t}(N.AbstractCustomNode);u.__decorate([m.initializable(),u.__metadata("design:type",Object)],y.prototype,"stringArrayStorage",void 0),u.__decorate([m.initializable(),u.__metadata("design:type",String)],y.prototype,"stringArrayName",void 0),u.__decorate([m.initializable(),u.__metadata("design:type",Number)],y.prototype,"stringArrayRotateValue",void 0),y=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],y),t.StringArrayNode=y},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayTemplate=function(){return"\n var {stringArrayName} = [{stringArray}];\n "}},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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=d.__importDefault(r(18)),p=r(10),m=r(38),g=r(129),N=r(130),v=r(15),y=r(32),_=r(11),h=r(40),b=function(e){function t(e,r,n,a){var c;return(0,o.default)(this,t),(c=(0,i.default)(this,(0,s.default)(t).call(this,e,r,a))).escapeSequenceEncoder=n,c}return(0,c.default)(t,e),(0,a.default)(t,[{key:"initialize",value:function(e,t){this.stringArrayName=e,this.stringArrayRotateValue=t}},{key:"getNodeStructure",value:function(){return _.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){var e=this.identifierNamesGenerator.generate(),t=this.identifierNamesGenerator.generate(),r="";return r=this.options.selfDefending?f.default(g.SelfDefendingTemplate(this.escapeSequenceEncoder),{timesName:e,whileFunctionName:t}):"".concat(t,"(++").concat(e,")"),y.JavaScriptObfuscator.obfuscate(f.default(N.StringArrayRotateFunctionTemplate(),{code:r,timesName:e,stringArrayName:this.stringArrayName,stringArrayRotateValue:h.NumberUtils.toHex(this.stringArrayRotateValue),whileFunctionName:t}),Object.assign({},m.NO_ADDITIONAL_NODES_PRESET,{identifierNamesGenerator:this.options.identifierNamesGenerator,seed:this.options.seed})).getObfuscatedCode()}}]),t}(v.AbstractCustomNode);d.__decorate([p.initializable(),d.__metadata("design:type",String)],b.prototype,"stringArrayName",void 0),d.__decorate([p.initializable(),d.__metadata("design:type",Number)],b.prototype,"stringArrayRotateValue",void 0),b=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IEscapeSequenceEncoder)),d.__param(3,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object,Object])],b),t.StringArrayRotateFunctionNode=b},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SelfDefendingTemplate=function(e){return"\n var selfDefendingFunc = function () {\n var object = {\n data: {\n key: 'cookie',\n value: 'timeout'\n },\n setCookie: function (options, name, value, document) {\n document = document || {};\n \n var updatedCookie = name + \"=\" + value;\n\n var i = 0;\n \n for (var i = 0, len = options.length; i < len; i++) {\n var propName = options[i];\n \n updatedCookie += \"; \" + propName;\n \n var propValue = options[propName];\n \n options.push(propValue);\n len = options.length;\n \n if (propValue !== true) {\n updatedCookie += \"=\" + propValue;\n }\n }\n\n document['cookie'] = updatedCookie;\n },\n removeCookie: function(){return 'dev';},\n getCookie: function (document, name) {\n document = document || function (value) { return value };\n var matches = document(new RegExp(\n \"(?:^|; )\" + name.replace(/([.$?*|{}()[]\\/+^])/g, '\\$1') + \"=([^;]*)\"\n ));\n \n var func = function (param1, param2) {\n param1(++param2);\n };\n \n func({whileFunctionName}, {timesName});\n \n return matches ? decodeURIComponent(matches[1]) : undefined;\n }\n };\n \n var test1 = function () {\n var regExp = new RegExp('".concat(e.encode("\\w+ *\\(\\) *{\\w+ *['|\"].+['|\"];? *}",!0),"');\n \n return regExp.test(object.removeCookie.toString());\n };\n \n object['updateCookie'] = test1;\n \n var cookie = '';\n var result = object['updateCookie']();\n \n if (!result) {\n object['setCookie'](['*'], 'counter', 1);\n } else if (result) {\n cookie = object['getCookie'](null, 'counter');\n } else {\n object['removeCookie']();\n }\n };\n \n selfDefendingFunc();\n ")}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayRotateFunctionTemplate=function(){return"\n (function (array, {timesName}) {\n var {whileFunctionName} = function (times) {\n while (--times) {\n array['push'](array['shift']());\n }\n };\n \n {code}\n })({stringArrayName}, 0x{stringArrayRotateValue});\n "}},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(10),p=r(15),m=r(14),g=r(11),N=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r,n))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"initialize",value:function(e,t){this.controlFlowStorageName=e,this.controlFlowStorageKey=t}},{key:"getNodeStructure",value:function(){var e=m.NodeFactory.expressionStatementNode(m.NodeFactory.memberExpressionNode(m.NodeFactory.identifierNode(this.controlFlowStorageName),m.NodeFactory.identifierNode(this.controlFlowStorageKey)));return g.NodeUtils.parentizeAst(e),[e]}}]),t}(p.AbstractCustomNode);d.__decorate([f.initializable(),d.__metadata("design:type",String)],N.prototype,"controlFlowStorageKey",void 0),d.__decorate([f.initializable(),d.__metadata("design:type",String)],N.prototype,"controlFlowStorageName",void 0),N=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object])],N),t.StringLiteralControlFlowStorageCallNode=N},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(10),p=r(15),m=r(14),g=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r,n))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"initialize",value:function(e){this.literalValue=e}},{key:"getNodeStructure",value:function(){return[m.NodeFactory.expressionStatementNode(m.NodeFactory.literalNode(this.literalValue))]}}]),t}(p.AbstractCustomNode);d.__decorate([f.initializable(),d.__metadata("design:type",String)],g.prototype,"literalValue",void 0),g=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),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.StringLiteralNode=g},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(2);t.finalizingTransformersModule=new n.ContainerModule(function(e){})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(2),o=r(5),a=r(35),i=r(135),s=r(136);t.generatorsModule=new n.ContainerModule(function(e){e(o.ServiceIdentifiers.IIdentifierNamesGenerator).to(i.HexadecimalIdentifierNamesGenerator).inSingletonScope().whenTargetNamed(a.IdentifierNamesGenerator.HexadecimalIdentifierNamesGenerator),e(o.ServiceIdentifiers.IIdentifierNamesGenerator).to(s.MangledIdentifierNamesGenerator).inSingletonScope().whenTargetNamed(a.IdentifierNamesGenerator.MangledIdentifierNamesGenerator),e(o.ServiceIdentifiers.Factory__IIdentifierNamesGenerator).toFactory(function(e){var t=null;return function(r){if(t)return t;var n;switch(r.identifierNamesGenerator){case a.IdentifierNamesGenerator.MangledIdentifierNamesGenerator:n=e.container.getNamed(o.ServiceIdentifiers.IIdentifierNamesGenerator,a.IdentifierNamesGenerator.MangledIdentifierNamesGenerator);break;case a.IdentifierNamesGenerator.HexadecimalIdentifierNamesGenerator:default:n=e.container.getNamed(o.ServiceIdentifiers.IIdentifierNamesGenerator,a.IdentifierNamesGenerator.HexadecimalIdentifierNamesGenerator)}return t=n,n}})})},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=r(5),p=r(56),m=r(40),g=r(34),N=d=function(e){function t(e,r){var n;return(0,o.default)(this,t),(n=(0,i.default)(this,(0,s.default)(t).call(this,e,r))).randomVariableNameSet=new Set,n}return(0,c.default)(t,e),(0,a.default)(t,[{key:"generate",value:function(e){var t=this.randomGenerator.getRandomInteger(1e4,99999999),r=m.NumberUtils.toHex(t),n=g.Utils.hexadecimalPrefix.length+1,o=e?e-n:d.baseIdentifierNameLength,a=r.substr(0,o),i="_".concat(g.Utils.hexadecimalPrefix).concat(a);return this.randomVariableNameSet.has(i)?this.generate(e):(this.randomVariableNameSet.add(i),i)}},{key:"generateWithPrefix",value:function(e){var t=this.generate(e);return"".concat(this.options.identifiersPrefix).concat(t).replace("__","_")}}]),t}(p.AbstractIdentifierNamesGenerator);N.baseIdentifierNameLength=6,N=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(1,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Object,Object])],N),t.HexadecimalIdentifierNamesGenerator=N},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(39)),d=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var u,l=r(4),f=r(2),p=r(5),m=r(56),g=u=function(e){function t(e,r){var n;return(0,o.default)(this,t),(n=(0,i.default)(this,(0,s.default)(t).call(this,e,r))).previousMangledName=u.initMangledNameCharacter,n}return(0,d.default)(t,e),(0,a.default)(t,[{key:"generate",value:function(e){var t=this.generateNewMangledName(this.previousMangledName);return this.previousMangledName=t,t}},{key:"generateWithPrefix",value:function(e){var t=this.options.identifiersPrefix?"".concat(this.options.identifiersPrefix,"_"):"",r=this.generate(e);return"".concat(t).concat(r)}},{key:"isValidIdentifierName",value:function(e){return(0,c.default)((0,s.default)(t.prototype),"isValidIdentifierName",this).call(this,e)&&!u.reservedNames.includes(e)}},{key:"generateNewMangledName",value:function(e){var t=function(e){var t=u.nameSequence,r=e.length,n=function(e){return"0".repeat(e)},o=r-1;do{var a=e.charAt(o),i=t.indexOf(a);if(i!==t.length-1)return e.substring(0,o)+t[i+1]+n(r-(o+1));--o}while(o>=0);return"a".concat(n(r))},r=t(e);return this.isValidIdentifierName(r)||(r=this.generateNewMangledName(r)),r}}]),t}(m.AbstractIdentifierNamesGenerator);g.initMangledNameCharacter="9",g.nameSequence="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""),g.reservedNames=["byte","case","char","do","else","enum","eval","for","goto","if","in","int","let","long","new","null","this","true","try","var","void","with"],g=u=l.__decorate([f.injectable(),l.__param(0,f.inject(p.ServiceIdentifiers.IRandomGenerator)),l.__param(1,f.inject(p.ServiceIdentifiers.IOptions)),l.__metadata("design:paramtypes",[Object,Object])],g),t.MangledIdentifierNamesGenerator=g},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(20),o=r(2),a=r(5);t.nodeTransformersModule=new o.ContainerModule(function(e){e(a.ServiceIdentifiers.Factory__INodeTransformer).toFactory(n.InversifyContainerFacade.getCacheFactory(a.ServiceIdentifiers.INodeTransformer))})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(20),o=r(2),a=r(5),i=r(22),s=r(57),c=r(29),d=r(139),u=r(140),l=r(141),f=r(142),p=r(143),m=r(144),g=r(145),N=r(146),v=r(147),y=r(148),_=r(149),h=r(150);t.obfuscatingTransformersModule=new o.ContainerModule(function(e){e(a.ServiceIdentifiers.INodeTransformer).to(l.CatchClauseTransformer).whenTargetNamed(c.NodeTransformer.CatchClauseTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(f.ClassDeclarationTransformer).whenTargetNamed(c.NodeTransformer.ClassDeclarationTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(p.FunctionDeclarationTransformer).whenTargetNamed(c.NodeTransformer.FunctionDeclarationTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(m.FunctionTransformer).whenTargetNamed(c.NodeTransformer.FunctionTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(g.ImportDeclarationTransformer).whenTargetNamed(c.NodeTransformer.ImportDeclarationTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(N.LabeledStatementTransformer).whenTargetNamed(c.NodeTransformer.LabeledStatementTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(v.LiteralTransformer).whenTargetNamed(c.NodeTransformer.LiteralTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(h.VariableDeclarationTransformer).whenTargetNamed(c.NodeTransformer.VariableDeclarationTransformer),e(a.ServiceIdentifiers.IObfuscatingReplacer).to(u.BooleanLiteralObfuscatingReplacer).whenTargetNamed(s.LiteralObfuscatingReplacer.BooleanLiteralObfuscatingReplacer),e(a.ServiceIdentifiers.IObfuscatingReplacer).to(y.NumberLiteralObfuscatingReplacer).whenTargetNamed(s.LiteralObfuscatingReplacer.NumberLiteralObfuscatingReplacer),e(a.ServiceIdentifiers.IObfuscatingReplacer).to(_.StringLiteralObfuscatingReplacer).whenTargetNamed(s.LiteralObfuscatingReplacer.StringLiteralObfuscatingReplacer),e(a.ServiceIdentifiers.IIdentifierObfuscatingReplacer).to(d.BaseIdentifierObfuscatingReplacer).whenTargetNamed(i.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer),e(a.ServiceIdentifiers.Factory__IObfuscatingReplacer).toFactory(n.InversifyContainerFacade.getCacheFactory(a.ServiceIdentifiers.IObfuscatingReplacer)),e(a.ServiceIdentifiers.Factory__IIdentifierObfuscatingReplacer).toFactory(n.InversifyContainerFacade.getCacheFactory(a.ServiceIdentifiers.IIdentifierObfuscatingReplacer))})},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(41),p=r(14),m=function(e){function t(e,r){var n;return(0,o.default)(this,t),(n=(0,i.default)(this,(0,s.default)(t).call(this,r))).blockScopesMap=new Map,n.identifierNamesGenerator=e(r),n}return(0,c.default)(t,e),(0,a.default)(t,[{key:"replace",value:function(e,t){if(this.blockScopesMap.has(t)){var r=this.blockScopesMap.get(t);r.has(e)&&(e=r.get(e))}return p.NodeFactory.identifierNode(e)}},{key:"storeGlobalName",value:function(e,t){if(!this.isReservedName(e)){var r=this.identifierNamesGenerator.generateWithPrefix();this.blockScopesMap.has(t)||this.blockScopesMap.set(t,new Map),this.blockScopesMap.get(t).set(e,r)}}},{key:"storeLocalName",value:function(e,t){if(!this.isReservedName(e)){var r=this.identifierNamesGenerator.generate();this.blockScopesMap.has(t)||this.blockScopesMap.set(t,new Map),this.blockScopesMap.get(t).set(e,r)}}},{key:"isReservedName",value:function(e){return!!this.options.reservedStrings.length&&this.options.reservedNames.some(function(t){return null!==new RegExp(t,"g").exec(e)})}}]),t}(f.AbstractObfuscatingReplacer);m=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object])],m),t.BaseIdentifierObfuscatingReplacer=m},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=r(5),p=r(41),m=r(14),g=d=function(e){function t(e){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"replace",value:function(e){return e?d.getTrueUnaryExpressionNode():d.getFalseUnaryExpressionNode()}}],[{key:"getTrueUnaryExpressionNode",value:function(){return m.NodeFactory.unaryExpressionNode("!",d.getFalseUnaryExpressionNode())}},{key:"getFalseUnaryExpressionNode",value:function(){return m.NodeFactory.unaryExpressionNode("!",m.NodeFactory.arrayExpressionNode())}}]),t}(p.AbstractObfuscatingReplacer);g=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Object])],g),t.BooleanLiteralObfuscatingReplacer=g},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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=d.__importStar(r(16)),p=r(22),m=r(12),g=r(13),N=r(9),v=r(27),y=r(17),_=function(e){function t(e,r,n){var a;return(0,o.default)(this,t),(a=(0,i.default)(this,(0,s.default)(t).call(this,r,n))).identifierObfuscatingReplacer=e(p.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer),a}return(0,c.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case m.TransformationStage.Obfuscating:return{enter:function(e,r){if(r&&N.NodeGuards.isCatchClauseNode(e))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){var r=v.NodeLexicalScopeUtils.getLexicalScope(e);return r?(this.storeCatchClauseParam(e,r),this.replaceCatchClauseParam(e,r),e):e}},{key:"storeCatchClauseParam",value:function(e,t){N.NodeGuards.isIdentifierNode(e.param)&&this.identifierObfuscatingReplacer.storeLocalName(e.param.name,t)}},{key:"replaceCatchClauseParam",value:function(e,t){var r=this;f.replace(e,{enter:function(e,n){if(n&&N.NodeGuards.isReplaceableIdentifierNode(e,n)){var o=r.identifierObfuscatingReplacer.replace(e.name,t).name;e.name!==o&&(e.name=o,y.NodeMetadata.set(e,{renamedIdentifier:!0}))}}})}}]),t}(g.AbstractNodeTransformer);_=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierObfuscatingReplacer)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object])],_),t.CatchClauseTransformer=_},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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=d.__importStar(r(16)),p=r(22),m=r(19),g=r(12),N=r(13),v=r(9),y=r(27),_=r(17),h=function(e){function t(e,r,n){var a;return(0,o.default)(this,t),(a=(0,i.default)(this,(0,s.default)(t).call(this,r,n))).replaceableIdentifiers=new Map,a.identifierObfuscatingReplacer=e(p.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer),a}return(0,c.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case g.TransformationStage.Obfuscating:return{enter:function(e,r){if(r&&v.NodeGuards.isClassDeclarationNode(e)&&!v.NodeGuards.isExportNamedDeclarationNode(r))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){var r=y.NodeLexicalScopeUtils.getLexicalScope(e);if(!r)return e;var n=r.type===m.NodeType.Program;return!this.options.renameGlobals&&n?e:(this.storeClassName(e,r,n),this.replaceableIdentifiers.has(r)?this.replaceScopeCachedIdentifiers(e,r):this.replaceScopeIdentifiers(r),e)}},{key:"storeClassName",value:function(e,t,r){r?this.identifierObfuscatingReplacer.storeGlobalName(e.id.name,t):this.identifierObfuscatingReplacer.storeLocalName(e.id.name,t)}},{key:"replaceScopeCachedIdentifiers",value:function(e,t){var r=this.replaceableIdentifiers.get(t).get(e.id.name);if(r)for(var n=r.length,o=0;o2&&void 0!==arguments[2]?arguments[2]:new Set,o={enter:function(o,a){if(v.NodeGuards.isFunctionNode(o)&&o!==e)return r.replaceFunctionParams(o,t,new Set(n)),p.VisitorOption.Skip;if(d.isProhibitedIdentifierOfShorthandPropertyNode(o))n.add(o.key.name);else if(a&&v.NodeGuards.isReplaceableIdentifierNode(o,a)&&!_.NodeMetadata.isRenamedIdentifier(o)&&!n.has(o.name)){if(r.isGlobalFunctionDeclarationIdentifier(o,a))return;var i=r.identifierObfuscatingReplacer.replace(o.name,t).name;o.name!==i&&(o.name=i,_.NodeMetadata.set(o,{renamedIdentifier:!0}))}}};p.replace(e,o)}}],[{key:"isProhibitedIdentifierOfPropertyNode",value:function(e,t){return v.NodeGuards.isIdentifierNode(e)&&!!t&&v.NodeGuards.isPropertyNode(t)&&t.key===e}},{key:"isProhibitedIdentifierOfShorthandPropertyNode",value:function(e){return v.NodeGuards.isPropertyNode(e)&&e.shorthand&&v.NodeGuards.isIdentifierNode(e.key)}}]),t}(N.AbstractNodeTransformer);b=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IIdentifierObfuscatingReplacer)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],b),t.FunctionTransformer=b},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=r(5),p=u.__importStar(r(16)),m=r(22),g=r(12),N=r(13),v=r(9),y=r(27),_=r(17),h=d=function(e){function t(e,r,n){var a;return(0,o.default)(this,t),(a=(0,i.default)(this,(0,s.default)(t).call(this,r,n))).replaceableIdentifiers=new Map,a.identifierObfuscatingReplacer=e(m.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer),a}return(0,c.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case g.TransformationStage.Obfuscating:return{enter:function(e,r){if(r&&v.NodeGuards.isImportDeclarationNode(e))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){var r=y.NodeLexicalScopeUtils.getLexicalScope(e);return r?(this.storeImportSpecifierNames(e,r),this.replaceableIdentifiers.has(r)?this.replaceScopeCachedIdentifiers(r):this.replaceScopeIdentifiers(r),e):e}},{key:"storeImportSpecifierNames",value:function(e,t){var r=this;e.specifiers.forEach(function(e){d.isProhibitedImportSpecifierNode(e)||r.identifierObfuscatingReplacer.storeGlobalName(e.local.name,t)})}},{key:"replaceScopeCachedIdentifiers",value:function(e){var t=this;this.replaceableIdentifiers.get(e).forEach(function(r){var n=t.identifierObfuscatingReplacer.replace(r.name,e);r.name=n.name,_.NodeMetadata.set(r,{renamedIdentifier:!0})})}},{key:"replaceScopeIdentifiers",value:function(e){var t=this,r=[];p.replace(e,{enter:function(n,o){if(o&&v.NodeGuards.isReplaceableIdentifierNode(n,o)&&!_.NodeMetadata.isRenamedIdentifier(n)){var a=t.identifierObfuscatingReplacer.replace(n.name,e).name;n.name!==a?(n.name=a,_.NodeMetadata.set(n,{renamedIdentifier:!0})):r.push(n)}}}),this.replaceableIdentifiers.set(e,r)}}],[{key:"isProhibitedImportSpecifierNode",value:function(e){return v.NodeGuards.isImportSpecifierNode(e)&&e.imported.name===e.local.name}}]),t}(N.AbstractNodeTransformer);h=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IIdentifierObfuscatingReplacer)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],h),t.ImportDeclarationTransformer=h},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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=d.__importStar(r(16)),p=r(22),m=r(12),g=r(13),N=r(9),v=r(27),y=function(e){function t(e,r,n){var a;return(0,o.default)(this,t),(a=(0,i.default)(this,(0,s.default)(t).call(this,r,n))).identifierObfuscatingReplacer=e(p.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer),a}return(0,c.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case m.TransformationStage.Obfuscating:return{enter:function(e,r){if(r&&N.NodeGuards.isLabeledStatementNode(e))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){var r=v.NodeLexicalScopeUtils.getLexicalScope(e);return r?(this.storeLabeledStatementName(e,r),this.replaceLabeledStatementName(e,r),e):e}},{key:"storeLabeledStatementName",value:function(e,t){this.identifierObfuscatingReplacer.storeLocalName(e.label.name,t)}},{key:"replaceLabeledStatementName",value:function(e,t){var r=this;f.replace(e,{enter:function(e,n){if(n&&N.NodeGuards.isLabelIdentifierNode(e,n)){var o=r.identifierObfuscatingReplacer.replace(e.name,t);e.name=o.name}}})}}]),t}(g.AbstractNodeTransformer);y=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierObfuscatingReplacer)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object])],y),t.LabeledStatementTransformer=y},function(e,t,r){"use strict";var n=r(0),o=n(r(50)),a=n(r(1)),i=n(r(3)),s=n(r(6)),c=n(r(7)),d=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var u=r(4),l=r(2),f=r(5),p=r(57),m=r(12),g=r(13),N=r(9),v=r(17),y=r(11),_=function(e){function t(e,r,n){var o;return(0,a.default)(this,t),(o=(0,s.default)(this,(0,c.default)(t).call(this,r,n))).literalObfuscatingReplacerFactory=e,o}return(0,d.default)(t,e),(0,i.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case m.TransformationStage.Obfuscating:return{enter:function(e,r){if(r&&N.NodeGuards.isLiteralNode(e)&&!v.NodeMetadata.isReplacedLiteral(e))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){if(this.isProhibitedNode(e,t))return e;var r;switch((0,o.default)(e.value)){case"boolean":r=this.literalObfuscatingReplacerFactory(p.LiteralObfuscatingReplacer.BooleanLiteralObfuscatingReplacer).replace(e.value);break;case"number":r=this.literalObfuscatingReplacerFactory(p.LiteralObfuscatingReplacer.NumberLiteralObfuscatingReplacer).replace(e.value);break;case"string":r=this.literalObfuscatingReplacerFactory(p.LiteralObfuscatingReplacer.StringLiteralObfuscatingReplacer).replace(e.value);break;default:r=e}return y.NodeUtils.parentizeNode(r,t),r}},{key:"isProhibitedNode",value:function(e,t){return!(!N.NodeGuards.isPropertyNode(t)||t.key!==e)||!!N.NodeGuards.isImportDeclarationNode(t)}}]),t}(g.AbstractNodeTransformer);_=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IObfuscatingReplacer)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],_),t.LiteralTransformer=_},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(41),p=r(14),m=r(40),g=r(34),N=function(e){function t(e){var r;return(0,o.default)(this,t),(r=(0,i.default)(this,(0,s.default)(t).call(this,e))).numberLiteralCache=new Map,r}return(0,c.default)(t,e),(0,a.default)(t,[{key:"replace",value:function(e){var t;return this.numberLiteralCache.has(e)?t=this.numberLiteralCache.get(e):(t=m.NumberUtils.isCeil(e)?"".concat(g.Utils.hexadecimalPrefix).concat(m.NumberUtils.toHex(e)):String(e),this.numberLiteralCache.set(e,t)),p.NodeFactory.literalNode(e,t)}}]),t}(f.AbstractObfuscatingReplacer);N=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Object])],N),t.NumberLiteralObfuscatingReplacer=N},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=r(5),p=r(37),m=r(41),g=r(17),N=r(14),v=r(40),y=r(34),_=d=function(e){function t(e,r,n,a,c){var u;return(0,o.default)(this,t),(u=(0,i.default)(this,(0,s.default)(t).call(this,c))).nodesCache=new Map,u.stringLiteralHexadecimalIndexCache=new Map,u.stringArrayStorage=e,u.escapeSequenceEncoder=r,u.randomGenerator=n,u.cryptUtils=a,u.rc4Keys=u.randomGenerator.getRandomGenerator().n(function(){return u.randomGenerator.getRandomGenerator().string({length:d.rc4KeyLength})},d.rc4KeysCount),u}return(0,c.default)(t,e),(0,a.default)(t,[{key:"replace",value:function(e){if(this.isReservedString(e))return this.replaceWithReservedLiteralNode(e);var t=this.canUseStringArray(e),r="".concat(e,"-").concat(String(t));if(this.nodesCache.has(r)&&this.options.stringArrayEncoding!==p.StringArrayEncoding.Rc4)return this.nodesCache.get(r);var n=t?this.replaceWithStringArrayCallNode(e):this.replaceWithLiteralNode(e);return this.nodesCache.set(r,n),n}},{key:"canUseStringArray",value:function(e){return this.options.stringArray&&e.length>=d.minimumLengthForStringArray&&this.randomGenerator.getMathRandom()<=this.options.stringArrayThreshold}},{key:"getStringArrayHexadecimalIndex",value:function(e,t){if(this.stringLiteralHexadecimalIndexCache.has(e))return{fromCache:!0,index:this.stringLiteralHexadecimalIndexCache.get(e)};var r=v.NumberUtils.toHex(t),n="".concat(y.Utils.hexadecimalPrefix).concat(r);return this.stringLiteralHexadecimalIndexCache.set(e,n),{fromCache:!1,index:n}}},{key:"getEncodedValue",value:function(e){var t,r=null;switch(this.options.stringArrayEncoding){case p.StringArrayEncoding.Rc4:r=this.randomGenerator.getRandomGenerator().pickone(this.rc4Keys),t=this.cryptUtils.btoa(this.cryptUtils.rc4(e,r));break;case p.StringArrayEncoding.Base64:t=this.cryptUtils.btoa(e);break;default:t=e}return{encodedValue:t,key:r}}},{key:"replaceWithLiteralNode",value:function(e){return N.NodeFactory.literalNode(this.escapeSequenceEncoder.encode(e,this.options.unicodeEscapeSequence))}},{key:"replaceWithReservedLiteralNode",value:function(e){return N.NodeFactory.literalNode(this.escapeSequenceEncoder.encode(e,!1))}},{key:"replaceWithStringArrayCallNode",value:function(e){var t=this.getEncodedValue(e),r=t.encodedValue,n=t.key,o=this.escapeSequenceEncoder.encode(r,this.options.unicodeEscapeSequence),a=this.stringArrayStorage.getLength(),i=this.stringArrayStorage.getStorageId().split("|")[1],s=this.getStringArrayHexadecimalIndex(o,a),c=s.fromCache,u=s.index;c||this.stringArrayStorage.set(a,o);var l=[d.getHexadecimalLiteralNode(u)];n&&l.push(d.getRc4KeyLiteralNode(this.escapeSequenceEncoder.encode(n,this.options.unicodeEscapeSequence)));var f=N.NodeFactory.identifierNode(i);return g.NodeMetadata.set(f,{renamedIdentifier:!0}),N.NodeFactory.callExpressionNode(f,l)}},{key:"isReservedString",value:function(e){return!!this.options.reservedStrings.length&&this.options.reservedStrings.some(function(t){return null!==new RegExp(t,"g").exec(e)})}}],[{key:"getHexadecimalLiteralNode",value:function(e){var t=N.NodeFactory.literalNode(e);return g.NodeMetadata.set(t,{replacedLiteral:!0}),t}},{key:"getRc4KeyLiteralNode",value:function(e){var t=N.NodeFactory.literalNode(e);return g.NodeMetadata.set(t,{replacedLiteral:!0}),t}}]),t}(m.AbstractObfuscatingReplacer);_.minimumLengthForStringArray=3,_.rc4KeyLength=4,_.rc4KeysCount=50,_=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.TStringArrayStorage)),u.__param(1,l.inject(f.ServiceIdentifiers.IEscapeSequenceEncoder)),u.__param(2,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(3,l.inject(f.ServiceIdentifiers.ICryptUtils)),u.__param(4,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Object,Object,Object,Object,Object])],_),t.StringLiteralObfuscatingReplacer=_},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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=d.__importStar(r(16)),p=r(22),m=r(19),g=r(12),N=r(13),v=r(9),y=r(27),_=r(151),h=r(17),b=function(e){function t(e,r,n){var a;return(0,o.default)(this,t),(a=(0,i.default)(this,(0,s.default)(t).call(this,r,n))).replaceableIdentifiers=new Map,a.identifierObfuscatingReplacer=e(p.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer),a}return(0,c.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case g.TransformationStage.Obfuscating:return{enter:function(e,r){if(r&&v.NodeGuards.isVariableDeclarationNode(e)&&!v.NodeGuards.isExportNamedDeclarationNode(r))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){var r="var"===e.kind?y.NodeLexicalScopeUtils.getLexicalScope(e):_.NodeBlockLexicalScopeUtils.getLexicalScope(e);if(!r)return e;var n=r.type===m.NodeType.Program;if(!this.options.renameGlobals&&n)return e;var o="var"===e.kind?r:t;return this.storeVariableNames(e,r,n),this.replaceableIdentifiers.has(o)?this.replaceScopeCachedIdentifiers(e,r,o):this.replaceScopeIdentifiers(o,r),e}},{key:"storeVariableNames",value:function(e,t,r){var n=this;this.traverseDeclarationIdentifiers(e,function(e){r?n.identifierObfuscatingReplacer.storeGlobalName(e.name,t):n.identifierObfuscatingReplacer.storeLocalName(e.name,t)})}},{key:"replaceScopeCachedIdentifiers",value:function(e,t,r){var n=this,o=this.replaceableIdentifiers.get(r),a=[];this.traverseDeclarationIdentifiers(e,function(e){a.push(e.name)}),a.forEach(function(e){var r=o.get(e);if(r)for(var a=r.length,i=0;i1&&void 0!==arguments[1]?arguments[1]:1/0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;if(n.length>=r)return n;var a=t.parentNode;if(!a)throw new ReferenceError("`parentNode` property of given node is `undefined`");return i.NodeGuards.isNodeWithBlockLexicalScope(t)&&n.push(t),t!==a?e.getLexicalScopesRecursive(a,r,n,++o):n}}]),e}();t.NodeBlockLexicalScopeUtils=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(2),o=r(5),a=r(153),i=r(156);t.optionsModule=new n.ContainerModule(function(e){e(o.ServiceIdentifiers.IOptions).to(a.Options).inSingletonScope(),e(o.ServiceIdentifiers.IOptionsNormalizer).to(i.OptionsNormalizer).inSingletonScope()})},function(e,t,r){"use strict";var n=r(0)(r(1));Object.defineProperty(t,"__esModule",{value:!0});var o,a=r(4),i=r(2),s=r(5),c=r(154),d=r(35),u=r(23),l=r(36),f=r(37),p=r(46),m=r(155),g=o=function e(t,r){(0,n.default)(this,e),Object.assign(this,p.DEFAULT_PRESET,t);var a=c.validateSync(this,o.validatorOptions);if(a.length)throw new ReferenceError("Validation failed. errors:\n".concat(m.ValidationErrorsFormatter.format(a)));Object.assign(this,r.normalize(this))};g.validatorOptions={validationError:{target:!1}},a.__decorate([c.IsBoolean(),a.__metadata("design:type",Boolean)],g.prototype,"compact",void 0),a.__decorate([c.IsBoolean(),a.__metadata("design:type",Boolean)],g.prototype,"controlFlowFlattening",void 0),a.__decorate([c.IsNumber(),c.Min(0),c.Max(1),a.__metadata("design:type",Number)],g.prototype,"controlFlowFlatteningThreshold",void 0),a.__decorate([c.IsBoolean(),a.__metadata("design:type",Boolean)],g.prototype,"deadCodeInjection",void 0),a.__decorate([c.IsNumber(),a.__metadata("design:type",Number)],g.prototype,"deadCodeInjectionThreshold",void 0),a.__decorate([c.IsBoolean(),a.__metadata("design:type",Boolean)],g.prototype,"debugProtection",void 0),a.__decorate([c.IsBoolean(),a.__metadata("design:type",Boolean)],g.prototype,"debugProtectionInterval",void 0),a.__decorate([c.IsBoolean(),a.__metadata("design:type",Boolean)],g.prototype,"disableConsoleOutput",void 0),a.__decorate([c.IsArray(),c.ArrayUnique(),c.IsString({each:!0}),a.__metadata("design:type",Array)],g.prototype,"domainLock",void 0),a.__decorate([c.IsIn([d.IdentifierNamesGenerator.HexadecimalIdentifierNamesGenerator,d.IdentifierNamesGenerator.MangledIdentifierNamesGenerator]),a.__metadata("design:type",String)],g.prototype,"identifierNamesGenerator",void 0),a.__decorate([c.IsString(),a.__metadata("design:type",String)],g.prototype,"identifiersPrefix",void 0),a.__decorate([c.IsString(),a.__metadata("design:type",String)],g.prototype,"inputFileName",void 0),a.__decorate([c.IsBoolean(),a.__metadata("design:type",Boolean)],g.prototype,"log",void 0),a.__decorate([c.IsBoolean(),a.__metadata("design:type",Boolean)],g.prototype,"renameGlobals",void 0),a.__decorate([c.IsArray(),c.ArrayUnique(),c.IsString({each:!0}),a.__metadata("design:type",Array)],g.prototype,"reservedNames",void 0),a.__decorate([c.IsArray(),c.ArrayUnique(),c.IsString({each:!0}),a.__metadata("design:type",Array)],g.prototype,"reservedStrings",void 0),a.__decorate([c.IsBoolean(),a.__metadata("design:type",Boolean)],g.prototype,"rotateStringArray",void 0),a.__decorate([c.IsNumber(),a.__metadata("design:type",Number)],g.prototype,"seed",void 0),a.__decorate([c.IsBoolean(),a.__metadata("design:type",Boolean)],g.prototype,"selfDefending",void 0),a.__decorate([c.IsBoolean(),a.__metadata("design:type",Boolean)],g.prototype,"sourceMap",void 0),a.__decorate([c.IsString(),c.ValidateIf(function(e){return Boolean(e.sourceMapBaseUrl)}),c.IsUrl({require_protocol:!0,require_tld:!1,require_valid_protocol:!0}),a.__metadata("design:type",String)],g.prototype,"sourceMapBaseUrl",void 0),a.__decorate([c.IsString(),a.__metadata("design:type",String)],g.prototype,"sourceMapFileName",void 0),a.__decorate([c.IsIn([l.SourceMapMode.Inline,l.SourceMapMode.Separate]),a.__metadata("design:type",String)],g.prototype,"sourceMapMode",void 0),a.__decorate([c.IsBoolean(),a.__metadata("design:type",Boolean)],g.prototype,"stringArray",void 0),a.__decorate([c.IsIn([!0,!1,f.StringArrayEncoding.Base64,f.StringArrayEncoding.Rc4]),a.__metadata("design:type",Object)],g.prototype,"stringArrayEncoding",void 0),a.__decorate([c.IsNumber(),c.Min(0),c.Max(1),a.__metadata("design:type",Number)],g.prototype,"stringArrayThreshold",void 0),a.__decorate([c.IsIn([u.ObfuscationTarget.Browser,u.ObfuscationTarget.BrowserNoEval,u.ObfuscationTarget.Node]),a.__metadata("design:type",String)],g.prototype,"target",void 0),a.__decorate([c.IsBoolean(),a.__metadata("design:type",Boolean)],g.prototype,"transformObjectKeys",void 0),a.__decorate([c.IsBoolean(),a.__metadata("design:type",Boolean)],g.prototype,"unicodeEscapeSequence",void 0),g=o=a.__decorate([i.injectable(),a.__param(0,i.inject(s.ServiceIdentifiers.TInputOptions)),a.__param(1,i.inject(s.ServiceIdentifiers.IOptionsNormalizer)),a.__metadata("design:paramtypes",[Object,Object])],g),t.Options=g},function(e,t){e.exports=require("class-validator")},function(e,t,r){"use strict";var n=r(0),o=n(r(28)),a=n(r(1)),i=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(){(0,a.default)(this,e)}return(0,i.default)(e,null,[{key:"format",value:function(t){return t.reduce(function(t,r){return(0,o.default)(t).concat([e.formatWithNestedConstraints(r)])},[]).join("\n")}},{key:"formatWithNestedConstraints",value:function(e){var t=e.constraints,r="`".concat(e.property,"` errors:\n"),n=Object.keys(t).map(function(e){return" - ".concat(t[e],"\n")}).join();return"".concat(r).concat(n)}}]),e}();t.ValidationErrorsFormatter=s},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i,s=r(4),c=r(2),d=r(157),u=r(158),l=r(159),f=r(160),p=r(161),m=r(162),g=r(163),N=r(164),v=r(165),y=r(166),_=r(167),h=i=function(){function e(){(0,o.default)(this,e)}return(0,a.default)(e,[{key:"normalize",value:function(e){var t=Object.assign({},e),r=!0,n=!1,o=void 0;try{for(var a,s=i.normalizerRules[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){t=(0,a.value)(t)}}catch(e){n=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(n)throw o}}return t}}]),e}();h.normalizerRules=[d.ControlFlowFlatteningThresholdRule,u.DeadCodeInjectionRule,l.DeadCodeInjectionThresholdRule,f.DomainLockRule,p.InputFileNameRule,m.SelfDefendingRule,g.SourceMapBaseUrlRule,N.SourceMapFileNameRule,v.StringArrayRule,y.StringArrayEncodingRule,_.StringArrayThresholdRule],h=i=s.__decorate([c.injectable()],h),t.OptionsNormalizer=h},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ControlFlowFlatteningThresholdRule=function(e){return 0===e.controlFlowFlatteningThreshold&&(e=Object.assign({},e,{controlFlowFlattening:!1,controlFlowFlatteningThreshold:0})),e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(46);t.DeadCodeInjectionRule=function(e){return e.deadCodeInjection&&((e=Object.assign({},e,{deadCodeInjection:!0,stringArray:!0})).stringArrayThreshold||(e=Object.assign({},e,{stringArray:!0,stringArrayThreshold:n.DEFAULT_PRESET.stringArrayThreshold}))),e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DeadCodeInjectionThresholdRule=function(e){return 0===e.deadCodeInjectionThreshold&&(e=Object.assign({},e,{deadCodeInjection:!1,deadCodeInjectionThreshold:0})),e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(34);t.DomainLockRule=function(e){if(e.domainLock.length){var t=[],r=!0,o=!1,a=void 0;try{for(var i,s=e.domainLock[Symbol.iterator]();!(r=(i=s.next()).done);r=!0){var c=i.value;t.push(n.Utils.extractDomainFrom(c))}}catch(e){o=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw a}}e=Object.assign({},e,{domainLock:t})}return e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InputFileNameRule=function(e){var t=e.inputFileName;return t&&(t=t.replace(/^\/+/,"").split(".").slice(0,-1).join(".")||t,e=Object.assign({},e,{inputFileName:"".concat(t,".js")})),e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SelfDefendingRule=function(e){return e.selfDefending&&(e=Object.assign({},e,{compact:!0,selfDefending:!0})),e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SourceMapBaseUrlRule=function(e){var t=e.sourceMapBaseUrl;return e.sourceMapFileName?(t&&!t.endsWith("/")&&(e=Object.assign({},e,{sourceMapBaseUrl:"".concat(t,"/")})),e):e=Object.assign({},e,{sourceMapBaseUrl:""})}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SourceMapFileNameRule=function(e){var t=e.sourceMapFileName;return t&&(t=t.replace(/^\/+/,"").split(".")[0],e=Object.assign({},e,{sourceMapFileName:"".concat(t,".js.map")})),e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayRule=function(e){return e.stringArray||(e=Object.assign({},e,{rotateStringArray:!1,stringArray:!1,stringArrayEncoding:!1,stringArrayThreshold:0})),e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(37);t.StringArrayEncodingRule=function(e){return!0===e.stringArrayEncoding&&(e=Object.assign({},e,{stringArrayEncoding:n.StringArrayEncoding.Base64})),e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayThresholdRule=function(e){return 0===e.stringArrayThreshold&&(e=Object.assign({},e,{rotateStringArray:!1,stringArray:!1,stringArrayEncoding:!1,stringArrayThreshold:0})),e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(20),o=r(2),a=r(5),i=r(29),s=r(58),c=r(169),d=r(170),u=r(171),l=r(172),f=r(173),p=r(175),m=r(176),g=r(177);t.preparingTransformersModule=new o.ContainerModule(function(e){e(a.ServiceIdentifiers.INodeTransformer).to(d.CommentsTransformer).whenTargetNamed(i.NodeTransformer.CommentsTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(l.CustomNodesTransformer).whenTargetNamed(i.NodeTransformer.CustomNodesTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(f.EvalCallExpressionTransformer).whenTargetNamed(i.NodeTransformer.EvalCallExpressionTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(p.MetadataTransformer).whenTargetNamed(i.NodeTransformer.MetadataTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(m.ObfuscatingGuardsTransformer).whenTargetNamed(i.NodeTransformer.ObfuscatingGuardsTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(g.ParentificationTransformer).whenTargetNamed(i.NodeTransformer.ParentificationTransformer),e(a.ServiceIdentifiers.INodeGuard).to(c.BlackListObfuscatingGuard).inSingletonScope().whenTargetNamed(s.ObfuscatingGuard.BlackListNodeGuard),e(a.ServiceIdentifiers.INodeGuard).to(u.ConditionalCommentObfuscatingGuard).inSingletonScope().whenTargetNamed(s.ObfuscatingGuard.ConditionalCommentNodeGuard),e(a.ServiceIdentifiers.Factory__INodeGuard).toFactory(n.InversifyContainerFacade.getCacheFactory(a.ServiceIdentifiers.INodeGuard))})},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i,s=r(4),c=r(2),d=r(9),u=i=function(){function e(){(0,o.default)(this,e),this.blackListGuardsLength=i.blackListGuards.length}return(0,a.default)(e,[{key:"check",value:function(e){for(var t=0;t=0?t:null}},{key:"getLength",value:function(){return this.storageLength}},{key:"getStorage",value:function(){return this.storage}},{key:"getStorageId",value:function(){return this.storageId}},{key:"mergeWith",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.storage=(0,o.default)(this.storage).concat((0,o.default)(e.getStorage())),t&&(this.storageId=e.getStorageId())}},{key:"set",value:function(e,t){e===this.storageLength?this.storage.push(t):this.storage.splice(e,0,t),this.storageLength++}}]),e}();s.__decorate([u.initializable(),s.__metadata("design:type",Array)],l.prototype,"storage",void 0),s.__decorate([u.initializable(),s.__metadata("design:type",String)],l.prototype,"storageId",void 0),s.__decorate([c.postConstruct(),s.__metadata("design:type",Function),s.__metadata("design:paramtypes",[]),s.__metadata("design:returntype",void 0)],l.prototype,"initialize",null),l=s.__decorate([c.injectable(),s.__param(0,c.inject(d.ServiceIdentifiers.IRandomGenerator)),s.__param(1,c.inject(d.ServiceIdentifiers.IOptions)),s.__metadata("design:paramtypes",[Object,Object])],l),t.ArrayStorage=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(2),o=r(5),a=r(184),i=r(185),s=r(188),c=r(60);t.utilsModule=new n.ContainerModule(function(e){e(o.ServiceIdentifiers.IArrayUtils).to(a.ArrayUtils).inSingletonScope(),e(o.ServiceIdentifiers.IRandomGenerator).to(c.RandomGenerator).inSingletonScope(),e(o.ServiceIdentifiers.ICryptUtils).to(i.CryptUtils).inSingletonScope(),e(o.ServiceIdentifiers.IEscapeSequenceEncoder).to(s.EscapeSequenceEncoder).inSingletonScope()})},function(e,t,r){"use strict";var n=r(0),o=n(r(28)),a=n(r(1)),i=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var s=r(4),c=r(2),d=r(5),u=function(){function e(t){(0,a.default)(this,e),this.randomGenerator=t}return(0,i.default)(e,[{key:"createWithRange",value:function(e){for(var t=[],r=0;r>8-o%1*8)){if((n=e.charCodeAt(o+=.75))>255)throw new Error("'btoa' failed: The string to be encoded contains characters outside of the Latin1 range.");r=r<<8|n}return t}},{key:"hideString",value:function(e,t){var r=this,n=this.randomGenerator.getRandomGenerator().string({length:t,pool:d.RandomGenerator.randomGeneratorPool}).replace(new RegExp("[".concat(e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"),"]"),"g"),""),o=n.split("");return this.randomGenerator.getRandomGenerator().shuffle(o),[function(e,t){for(var n=-1,o=-1,a="";n"),c="...".concat(o.substring(a,i).replace(/^\s+/,""),"...");throw new Error("Line ".concat(n.line,": ").concat(r,"\n").concat(s," ").concat(c))}}]),e}();d.colorError=c.default.red,d.nearestSymbolsCount=15,d.sourceTypes=["script","module"],t.EspreeFacade=d},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(6)),i=n(r(7)),s=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var c=r(4),d=r(2),u=r(193);d.decorate(d.injectable(),u.EventEmitter);var l=function(e){function t(){return(0,o.default)(this,t),(0,a.default)(this,(0,i.default)(t).apply(this,arguments))}return(0,s.default)(t,e),t}(u.EventEmitter);l=c.__decorate([d.injectable()],l),t.ObfuscationEventEmitter=l},function(e,t){e.exports=require("events")},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i=r(4),s=r(2),c=r(5),d=r(10),u=r(36),l=function(){function e(t,r){(0,o.default)(this,e),this.cryptUtils=t,this.options=r}return(0,a.default)(e,[{key:"initialize",value:function(e,t){this.obfuscatedCode=e,this.sourceMap=t}},{key:"getObfuscatedCode",value:function(){return this.correctObfuscatedCode()}},{key:"getSourceMap",value:function(){return this.sourceMap}},{key:"toString",value:function(){return this.obfuscatedCode}},{key:"correctObfuscatedCode",value:function(){if(!this.sourceMap)return this.obfuscatedCode;var e=this.options.sourceMapBaseUrl+this.options.sourceMapFileName,t="//# sourceMappingURL=";switch(this.options.sourceMapMode){case u.SourceMapMode.Inline:t+="data:application/json;base64,".concat(this.cryptUtils.btoa(this.sourceMap));break;case u.SourceMapMode.Separate:default:if(!e)return this.obfuscatedCode;t+=e}return"".concat(this.obfuscatedCode,"\n").concat(t)}}]),e}();i.__decorate([d.initializable(),i.__metadata("design:type",String)],l.prototype,"obfuscatedCode",void 0),i.__decorate([d.initializable(),i.__metadata("design:type",String)],l.prototype,"sourceMap",void 0),l=i.__decorate([s.injectable(),i.__param(0,s.inject(c.ServiceIdentifiers.ICryptUtils)),i.__param(1,s.inject(c.ServiceIdentifiers.IOptions)),i.__metadata("design:paramtypes",[Object,Object])],l),t.ObfuscatedCode=l},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(t,r){(0,o.default)(this,e),this.sourceCode=t,this.sourceMap=r}return(0,a.default)(e,[{key:"getSourceCode",value:function(){return this.sourceCode}},{key:"getSourceMap",value:function(){return this.sourceMap}},{key:"toString",value:function(){return this.sourceCode}}]),e}();t.SourceCode=i},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i=r(4),s=r(2),c=r(5),d=i.__importStar(r(16)),u=r(197),l=r(9),f=r(17),p=function(){function e(t){(0,o.default)(this,e),this.nodeTransformerFactory=t}return(0,a.default)(e,[{key:"transform",value:function(e,t,r){if(!t.length)return e;for(var n,o=[],a=[],i=t.length,s=0;s0&&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(o,!1,r),c(a,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(a,e),d=Reflect.getMetadata(i,e),u=c.includes(r)||s.has(r)||d.has(r);if(!u){var l=e[r];if("function"==typeof l){var f=Object.getOwnPropertyDescriptor(e,r)||n,p=f.value;Object.defineProperty(e,r,Object.assign({},f,{value:function(){if(!Reflect.getMetadata(o,this))throw new Error("Class should be initialized with `".concat(t,"()` method"));return p.apply(this,arguments)}})),d.add(r)}}})}(r,e),function(e,t,r){var a=Object.getOwnPropertyDescriptor(e,t)||n,i=a.value;Object.defineProperty(e,t,Object.assign({},a,{value:function(){Reflect.defineMetadata(o,!0,this);var e=i.apply(this,arguments);return this[r],e}}))}(r,e,d),function(e,t){Reflect.getMetadata(a,e).add(t);var r="_".concat(t.toString()),o=Object.getOwnPropertyDescriptor(e,r)||n;return Object.defineProperty(e,t,Object.assign({},o,{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}})),o}(r,d)}}},function(e,t,r){"use strict";var n=r(0),o=n(r(50)),a=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,a.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 a,i=t[n];a=null===i||i instanceof RegExp?i:Array.isArray(i)?i.map(e.cloneRecursive):"object"===(0,o.default)(i)?e.cloneRecursive(i):i,r[n]=a}}),r}}]),e}();t.NodeUtils=p},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){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 o=r(4),a=r(2),i=r(5),s=function e(t,r){(0,n.default)(this,e),this.randomGenerator=t,this.options=r};s=o.__decorate([a.injectable(),o.__param(0,a.inject(i.ServiceIdentifiers.IRandomGenerator)),o.__param(1,a.inject(i.ServiceIdentifiers.IOptions)),o.__metadata("design:paramtypes",[Object,Object])],s),t.AbstractNodeTransformer=s},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i=r(4).__importStar(r(44)),s=r(19),c=function(){function e(){(0,o.default)(this,e)}return(0,a.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({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=r(0),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i,s=r(4),c=r(2),d=r(5),u=r(94),l=r(95),f=i=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,a.default)(e,[{key:"getNode",value:function(){return this.cachedNode||(this.cachedNode=this.getNodeStructure()),this.cachedNode}},{key:"getGlobalVariableTemplate",value:function(){return this.randomGenerator.getRandomGenerator().pickone(i.globalVariableTemplateFunctions)}}]),e}();f.globalVariableTemplateFunctions=[u.GlobalVariableTemplate1(),l.GlobalVariableTemplate2()],f=i=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),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){(0,o.default)(this,e)}return(0,a.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";var n=r(0),o=n(r(65)),a=n(r(1)),i=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var s=r(2),c=r(5),d=r(66),u=r(71),l=r(79),f=r(87),p=r(133),m=r(134),g=r(137),N=r(138),v=r(152),y=r(168),_=r(178),h=r(183),b=r(189),S=r(63),I=r(192),C=r(194),F=r(195),O=r(196),j=function(){function e(){(0,a.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 F.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(O.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 o=t.container.getNamed(e,n);return r.set(n,o),o}}}},{key:"getConstructorFactory",value:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n1&&void 0!==arguments[1]?arguments[1]:1/0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;if(n.length>=r)return n;var a=t.parentNode;if(!a)throw new ReferenceError("`parentNode` property of given node is `undefined`");return(i.NodeGuards.isProgramNode(t)||i.NodeGuards.isNodeWithLexicalScopeStatements(t,a)&&o>0)&&n.push(t),t!==a?e.getParentNodesWithStatementsRecursive(a,r,n,++o):n}},{key:"getSiblingStatementByOffset",value:function(t,r){var n=e.getScopeOfNode(t),o=i.NodeGuards.isSwitchCaseNode(n)?n.consequent:n.body;return o[o.indexOf(t)+r]||null}}]),e}();t.NodeStatementUtils=s},function(e,t,r){"use strict";var n=r(0),o=n(r(28)),a=n(r(1)),i=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var s=r(9),c=function(){function e(){(0,a.default)(this,e)}return(0,i.default)(e,null,[{key:"append",value:function(t,r){r=e.parentizeScopeStatementsBeforeAppend(t,r),e.setScopeStatements(t,(0,o.default)(e.getScopeStatements(t)).concat((0,o.default)(r)))}},{key:"appendToOptimalBlockScope",value:function(t,r,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=t.length?e.getOptimalBlockScope(t,o):r;e.prepend(a,n)}},{key:"getOptimalBlockScope",value:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,o=t[r];if(n<=0)throw new Error("Invalid `deep` argument value. Value should be bigger then 0.");return n>1&&o.stackTrace.length?e.getOptimalBlockScope(o.stackTrace,0,--n):o.callee}},{key:"insertAfter",value:function(t,r,n){var o=e.getScopeStatements(t).indexOf(n);e.insertAtIndex(t,r,o+1)}},{key:"insertAtIndex",value:function(t,r,n){r=e.parentizeScopeStatementsBeforeAppend(t,r),e.setScopeStatements(t,(0,o.default)(e.getScopeStatements(t).slice(0,n)).concat((0,o.default)(r),(0,o.default)(e.getScopeStatements(t).slice(n))))}},{key:"prepend",value:function(t,r){r=e.parentizeScopeStatementsBeforeAppend(t,r),e.setScopeStatements(t,(0,o.default)(r).concat((0,o.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),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i=r(9),s=function(){function e(){(0,o.default)(this,e)}return(0,a.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]:[],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;if(n.length>=r)return n;var a=t.parentNode;if(!a)throw new ReferenceError("`parentNode` property of given node is `undefined`");return i.NodeGuards.isNodeWithLexicalScope(t)&&n.push(t),t!==a?e.getLexicalScopesRecursive(a,r,n,++o):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"}(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),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0}),r(62);var i=r(5),s=r(20),c=function(){function e(){(0,o.default)(this,e)}return(0,a.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).obfuscate(e);return r.unload(),n}}]),e}();c.version="0.18.4",t.JavaScriptObfuscator=c},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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,o.default)(this,e),this.identifierNamesGenerator=t(n),this.randomGenerator=r,this.options=n}return(0,a.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),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){(0,o.default)(this,e)}return(0,a.default)(e,null,[{key:"extractDomainFrom",value:function(e){return(e.indexOf("://")>-1||0===e.indexOf("//")?e.split("/")[2]:e.split("/")[0]).split(":")[0]}}]),e}();i.hexadecimalPrefix="0x",t.Utils=i},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),o=r(23),a=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:a.SourceMapMode.Separate,stringArray:!1,stringArrayEncoding:!1,stringArrayThreshold:0,target:o.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),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){(0,o.default)(this,e)}return(0,a.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 o=r(4),a=r(2),i=r(5),s=function e(t){(0,n.default)(this,e),this.options=t};s=o.__decorate([a.injectable(),o.__param(0,a.inject(i.ServiceIdentifiers.IOptions)),o.__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 o=r(4),a=r(2),i=function e(){(0,n.default)(this,e)};i=o.__decorate([a.injectable()],i),t.AbstractCalleeDataExtractor=i},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i,s=r(4),c=r(2),d=r(5),u=i=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,a.default)(e,[{key:"insertCustomNodeToControlFlowStorage",value:function(e,t,r,n){var o=this,a=t.getStorageId(),s=i.getStorageKeysByIdForCurrentStorage(this.replacerDataByControlFlowStorageId,a),c=s.get(r);if(this.randomGenerator.getMathRandom()1&&void 0!==arguments[1]&&arguments[1];this.storage=new Map((0,o.default)(this.storage).concat((0,o.default)(e.getStorage()))),t&&(this.storageId=e.getStorageId())}},{key:"set",value:function(e,t){this.storage.set(e,t)}}]),e}();c.__decorate([l.initializable(),c.__metadata("design:type",String)],f.prototype,"storageId",void 0),c.__decorate([l.initializable(),c.__metadata("design:type",Map)],f.prototype,"storage",void 0),c.__decorate([d.postConstruct(),c.__metadata("design:type",Function),c.__metadata("design:paramtypes",[]),c.__metadata("design:returntype",void 0)],f.prototype,"initialize",null),f=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])],f),t.MapStorage=f},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i,s=r(4),c=r(2),d=r(5),u=s.__importDefault(r(186)),l=r(187),f=r(10),p=i=function(){function e(t,r){(0,o.default)(this,e),this.sourceCode=t,this.options=r}return(0,a.default)(e,[{key:"initialize",value:function(){var e,t,r,n=this;this.seed=0!==this.options.seed?this.options.seed:(e=0,t=999999999,Math.floor(Math.random()*(t-e+1)+e)),this.randomGenerator=new l.Chance((r=u.default(n.sourceCode.getSourceCode()),n.seed+Number(r.replace(/\D/g,""))))}},{key:"getMathRandom",value:function(){return this.getRandomInteger(0,99999)/1e5}},{key:"getRandomGenerator",value:function(){return this.randomGenerator}},{key:"getRandomInteger",value:function(e,t){return this.getRandomGenerator().integer({min:e,max:t})}},{key:"getRandomString",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.randomGeneratorPool;return this.getRandomGenerator().string({length:e,pool:t})}},{key:"getSeed",value:function(){return this.seed}}]),e}();p.randomGeneratorPool="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",s.__decorate([f.initializable(),s.__metadata("design:type",Object)],p.prototype,"randomGenerator",void 0),s.__decorate([f.initializable(),s.__metadata("design:type",Number)],p.prototype,"seed",void 0),s.__decorate([c.postConstruct(),s.__metadata("design:type",Function),s.__metadata("design:paramtypes",[]),s.__metadata("design:returntype",void 0)],p.prototype,"initialize",null),p=i=s.__decorate([c.injectable(),s.__param(0,c.inject(d.ServiceIdentifiers.ISourceCode)),s.__param(1,c.inject(d.ServiceIdentifiers.IOptions)),s.__metadata("design:paramtypes",[Object,Object])],p),t.RandomGenerator=p},function(e,t){e.exports=require("chalk")},function(e,t){e.exports=require("reflect-metadata")},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i,s=r(4),c=r(2),d=r(5),u=s.__importDefault(r(61)),l=r(64),f=i=function(){function e(t){(0,o.default)(this,e),this.options=t}return(0,a.default)(e,[{key:"info",value:function(e,t){this.options.log&&i.log(i.colorInfo,l.LoggingPrefix.Base,e,t)}},{key:"success",value:function(e,t){this.options.log&&i.log(i.colorSuccess,l.LoggingPrefix.Base,e,t)}},{key:"warn",value:function(e,t){this.options.log&&i.log(i.colorWarn,l.LoggingPrefix.Base,e,t)}}],[{key:"log",value:function(e,t,r,n){var o=e("\n".concat(t," ").concat(r));console.log(o,n||"")}}]),e}();f.colorInfo=u.default.cyan,f.colorSuccess=u.default.green,f.colorWarn=u.default.yellow,f=i=s.__decorate([c.injectable(),s.__param(0,c.inject(d.ServiceIdentifiers.IOptions)),s.__metadata("design:paramtypes",[Object])],f),t.Logger=f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.Base="[javascript-obfuscator]",e.CLI="[javascript-obfuscator-cli]"}(t.LoggingPrefix||(t.LoggingPrefix={}))},function(e,t){e.exports=require("@babel/runtime/helpers/construct")},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(20),o=r(2),a=r(5),i=r(47),s=r(67),c=r(68),d=r(69),u=r(70);t.analyzersModule=new o.ContainerModule(function(e){e(a.ServiceIdentifiers.IStackTraceAnalyzer).to(u.StackTraceAnalyzer).inSingletonScope(),e(a.ServiceIdentifiers.ICalleeDataExtractor).to(s.FunctionDeclarationCalleeDataExtractor).whenTargetNamed(i.CalleeDataExtractor.FunctionDeclarationCalleeDataExtractor),e(a.ServiceIdentifiers.ICalleeDataExtractor).to(c.FunctionExpressionCalleeDataExtractor).whenTargetNamed(i.CalleeDataExtractor.FunctionExpressionCalleeDataExtractor),e(a.ServiceIdentifiers.ICalleeDataExtractor).to(d.ObjectExpressionCalleeDataExtractor).whenTargetNamed(i.CalleeDataExtractor.ObjectExpressionCalleeDataExtractor),e(a.ServiceIdentifiers.Factory__ICalleeDataExtractor).toFactory(n.InversifyContainerFacade.getCacheFactory(a.ServiceIdentifiers.ICalleeDataExtractor))})},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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=d.__importStar(r(16)),f=r(42),p=r(9),m=r(24),g=function(e){function t(){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).apply(this,arguments))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"extract",value:function(e,t){if(!p.NodeGuards.isIdentifierNode(t))return null;var r=this.getCalleeBlockStatement(m.NodeStatementUtils.getParentNodeWithStatements(e[0]),t.name);return r?{callee:r,name:t.name}:null}},{key:"getCalleeBlockStatement",value:function(e,t){var r=null;return l.traverse(e,{enter:function(e){if(p.NodeGuards.isFunctionDeclarationNode(e)&&e.id.name===t)return r=e.body,l.VisitorOption.Break}}),r}}]),t}(f.AbstractCalleeDataExtractor);g=d.__decorate([u.injectable()],g),t.FunctionDeclarationCalleeDataExtractor=g},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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=d.__importStar(r(16)),f=r(42),p=r(9),m=r(24),g=function(e){function t(){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).apply(this,arguments))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"extract",value:function(e,t){var r=null;return p.NodeGuards.isIdentifierNode(t)&&(r=this.getCalleeBlockStatement(m.NodeStatementUtils.getParentNodeWithStatements(e[0]),t.name)),p.NodeGuards.isFunctionExpressionNode(t)&&(r=t.body),r?{callee:r,name:t.name||null}:null}},{key:"getCalleeBlockStatement",value:function(e,t){var r=null;return l.traverse(e,{enter:function(e,n){if(p.NodeGuards.isFunctionExpressionNode(e)&&n&&p.NodeGuards.isVariableDeclaratorNode(n)&&p.NodeGuards.isIdentifierNode(n.id)&&n.id.name===t)return r=e.body,l.VisitorOption.Break}}),r}}]),t}(f.AbstractCalleeDataExtractor);g=d.__decorate([u.injectable()],g),t.FunctionExpressionCalleeDataExtractor=g},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=u.__importStar(r(16)),p=r(42),m=r(9),g=r(24),N=d=function(e){function t(){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).apply(this,arguments))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"extract",value:function(e,t){if(!m.NodeGuards.isMemberExpressionNode(t))return null;var r=this.createObjectMembersCallsChain([],t);if(!r.length)return null;var n=r[r.length-1],o=this.getCalleeBlockStatement(g.NodeStatementUtils.getParentNodeWithStatements(e[0]),r);return o?{callee:o,name:n}:null}},{key:"createObjectMembersCallsChain",value:function(e,t){if(m.NodeGuards.isIdentifierNode(t.property)&&!1===t.computed)e.unshift(t.property.name);else{if(!m.NodeGuards.isLiteralNode(t.property)||"string"!=typeof t.property.value&&"number"!=typeof t.property.value)return e;e.unshift(t.property.value)}return m.NodeGuards.isMemberExpressionNode(t.object)?this.createObjectMembersCallsChain(e,t.object):(m.NodeGuards.isIdentifierNode(t.object)&&e.unshift(t.object.name),e)}},{key:"getCalleeBlockStatement",value:function(e,t){var r=this,n=t.shift();if(!n)return null;var o=null;return f.traverse(e,{enter:function(e){if(m.NodeGuards.isVariableDeclaratorNode(e)&&m.NodeGuards.isIdentifierNode(e.id)&&e.init&&m.NodeGuards.isObjectExpressionNode(e.init)&&e.id.name===n)return o=r.findCalleeBlockStatement(e.init.properties,t),f.VisitorOption.Break}}),o}},{key:"findCalleeBlockStatement",value:function(e,t){var r=t.shift();if(!r)return null;var n=!0,o=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(n=(i=s.next()).done);n=!0){var c=i.value;if(d.isValidTargetPropertyNode(c,r)){if(m.NodeGuards.isObjectExpressionNode(c.value))return this.findCalleeBlockStatement(c.value.properties,t);if(m.NodeGuards.isFunctionExpressionNode(c.value))return c.value.body}}}catch(e){o=!0,a=e}finally{try{n||null==s.return||s.return()}finally{if(o)throw a}}return null}}],[{key:"isValidTargetPropertyNode",value:function(e,t){if(!e.key)return!1;var r=m.NodeGuards.isIdentifierNode(e.key)&&e.key.name===t,n=m.NodeGuards.isLiteralNode(e.key)&&Boolean(e.key.value)&&e.key.value===t;return r||n}}]),t}(p.AbstractCalleeDataExtractor);N=d=u.__decorate([l.injectable()],N),t.ObjectExpressionCalleeDataExtractor=N},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i,s=r(4),c=r(2),d=r(5),u=s.__importStar(r(16)),l=r(47),f=r(9),p=r(24),m=i=function(){function e(t){(0,o.default)(this,e),this.calleeDataExtractorFactory=t}return(0,a.default)(e,[{key:"analyze",value:function(e){return this.analyzeRecursive(e.body)}},{key:"analyzeRecursive",value:function(e){for(var t=this,r=i.getLimitIndex(e.length),n=[],o=e.length,a=function(o){if(o>r)return"break";var a=e[o];u.traverse(a,{enter:function(r){if(f.NodeGuards.isCallExpressionNode(r))return a.parentNode!==p.NodeStatementUtils.getParentNodeWithStatements(r)?u.VisitorOption.Skip:void t.analyzeCallExpressionNode(n,e,r)}})},s=0;sr&&(n=Math.round(r+t*i.limitThreshold))>t&&(n=t),n}}]),e}();m.calleeDataExtractorsList=[l.CalleeDataExtractor.FunctionDeclarationCalleeDataExtractor,l.CalleeDataExtractor.FunctionExpressionCalleeDataExtractor,l.CalleeDataExtractor.ObjectExpressionCalleeDataExtractor],m.limitThresholdActivationLength=25,m.limitThreshold=.002,m=i=s.__decorate([c.injectable(),s.__param(0,c.inject(d.ServiceIdentifiers.Factory__ICalleeDataExtractor)),s.__metadata("design:paramtypes",[Function])],m),t.StackTraceAnalyzer=m},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(20),o=r(2),a=r(5),i=r(48),s=r(29),c=r(72),d=r(73),u=r(74),l=r(75),f=r(76),p=r(77),m=r(78);t.controlFlowTransformersModule=new o.ContainerModule(function(e){e(a.ServiceIdentifiers.INodeTransformer).to(d.BlockStatementControlFlowTransformer).whenTargetNamed(s.NodeTransformer.BlockStatementControlFlowTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(l.DeadCodeInjectionTransformer).whenTargetNamed(s.NodeTransformer.DeadCodeInjectionTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(f.FunctionControlFlowTransformer).whenTargetNamed(s.NodeTransformer.FunctionControlFlowTransformer),e(a.ServiceIdentifiers.IControlFlowReplacer).to(c.BinaryExpressionControlFlowReplacer).whenTargetNamed(i.ControlFlowReplacer.BinaryExpressionControlFlowReplacer),e(a.ServiceIdentifiers.IControlFlowReplacer).to(u.CallExpressionControlFlowReplacer).whenTargetNamed(i.ControlFlowReplacer.CallExpressionControlFlowReplacer),e(a.ServiceIdentifiers.IControlFlowReplacer).to(p.LogicalExpressionControlFlowReplacer).whenTargetNamed(i.ControlFlowReplacer.LogicalExpressionControlFlowReplacer),e(a.ServiceIdentifiers.IControlFlowReplacer).to(m.StringLiteralControlFlowReplacer).whenTargetNamed(i.ControlFlowReplacer.StringLiteralControlFlowReplacer),e(a.ServiceIdentifiers.Factory__IControlFlowReplacer).toFactory(n.InversifyContainerFacade.getCacheFactory(a.ServiceIdentifiers.IControlFlowReplacer))})},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=r(5),p=r(21),m=r(49),g=d=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r,n))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"replace",value:function(e,t,r){var n=e.operator,o=this.controlFlowCustomNodeFactory(p.ControlFlowCustomNode.BinaryExpressionFunctionNode);o.initialize(n);var a=this.insertCustomNodeToControlFlowStorage(o,r,n,d.usingExistingIdentifierChance);return this.getControlFlowStorageCallNode(r.getStorageId(),a,e.left,e.right)}}]),t}(m.ExpressionWithOperatorControlFlowReplacer);g.usingExistingIdentifierChance=.5,g=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IControlFlowCustomNode)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],g),t.BinaryExpressionControlFlowReplacer=g},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=r(5),p=u.__importStar(r(16)),m=r(21),g=r(12),N=r(13),v=r(9),y=r(11),_=d=function(e){function t(e,r,n,a){var c;return(0,o.default)(this,t),(c=(0,i.default)(this,(0,s.default)(t).call(this,n,a))).controlFlowCustomNodeFactory=e,c.arrayUtils=r,c}return(0,c.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case g.TransformationStage.ControlFlowFlattening:return{leave:function(e,r){if(r&&v.NodeGuards.isBlockStatementNode(e))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){if(this.randomGenerator.getMathRandom()>this.options.controlFlowFlatteningThreshold||!d.canTransformBlockStatementNode(e))return e;var r=e.body,n=this.arrayUtils.createWithRange(r.length),o=this.arrayUtils.shuffle(n),a=n.map(function(e){return o.indexOf(e)}),i=this.controlFlowCustomNodeFactory(m.ControlFlowCustomNode.BlockStatementControlFlowFlatteningNode);i.initialize(r,o,a);var s=i.getNode()[0];return y.NodeUtils.parentizeNode(s,t),s}}],[{key:"isProhibitedStatementNode",value:function(e){var t=v.NodeGuards.isBreakStatementNode(e)||v.NodeGuards.isContinueStatementNode(e),r=v.NodeGuards.isVariableDeclarationNode(e)&&("const"===e.kind||"let"===e.kind),n=v.NodeGuards.isClassDeclarationNode(e);return v.NodeGuards.isFunctionDeclarationNode(e)||t||r||n}},{key:"canTransformBlockStatementNode",value:function(e){var t=!0;return p.traverse(e,{enter:function(e){if(v.NodeGuards.isWhileStatementNode(e))return p.VisitorOption.Skip;d.isProhibitedStatementNode(e)&&(t=!1)}}),e.body.length<=4&&(t=!1),t}}]),t}(N.AbstractNodeTransformer);_=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IControlFlowCustomNode)),u.__param(1,l.inject(f.ServiceIdentifiers.IArrayUtils)),u.__param(2,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(3,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object,Object])],_),t.BlockStatementControlFlowTransformer=_},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=r(5),p=r(21),m=r(43),g=r(9),N=d=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r,n))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"replace",value:function(e,t,r){var n=e.callee;if(!g.NodeGuards.isIdentifierNode(n))return e;var o=String(e.arguments.length),a=this.controlFlowCustomNodeFactory(p.ControlFlowCustomNode.CallExpressionFunctionNode),i=e.arguments;a.initialize(i);var s=this.insertCustomNodeToControlFlowStorage(a,r,o,d.usingExistingIdentifierChance);return this.getControlFlowStorageCallNode(r.getStorageId(),s,n,i)}},{key:"getControlFlowStorageCallNode",value:function(e,t,r,n){var o=this.controlFlowCustomNodeFactory(p.ControlFlowCustomNode.CallExpressionControlFlowStorageCallNode);o.initialize(e,t,r,n);var a=o.getNode()[0];if(!a||!g.NodeGuards.isExpressionStatementNode(a))throw new Error("`controlFlowStorageCallCustomNode.getNode()[0]` should returns array with `ExpressionStatement` node");return a.expression}}]),t}(m.AbstractControlFlowReplacer);N.usingExistingIdentifierChance=.5,N=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IControlFlowCustomNode)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],N),t.CallExpressionControlFlowReplacer=N},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=r(5),p=u.__importStar(r(16)),m=r(52),g=r(29),N=r(19),v=r(12),y=r(13),_=r(14),h=r(9),b=r(24),S=r(11),I=d=function(e){function t(e,r,n,a){var c;return(0,o.default)(this,t),(c=(0,i.default)(this,(0,s.default)(t).call(this,n,a))).deadCodeInjectionRootAstHostNodeSet=new Set,c.collectedBlockStatements=[],c.collectedBlockStatementsTotalLength=0,c.deadCodeInjectionCustomNodeFactory=e,c.transformersRunner=r,c}return(0,c.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case v.TransformationStage.DeadCodeInjection:return{enter:function(e,r){if(r&&h.NodeGuards.isProgramNode(e))return t.analyzeNode(e,r),e},leave:function(e,r){if(r&&h.NodeGuards.isBlockStatementNode(e))return t.transformNode(e,r)}};case v.TransformationStage.Finalizing:return this.deadCodeInjectionRootAstHostNodeSet.size?{enter:function(e,r){if(r&&t.isDeadCodeInjectionRootAstHostNode(e))return t.restoreNode(e,r)}}:null;default:return null}}},{key:"analyzeNode",value:function(e,t){var r=this;p.traverse(e,{enter:function(e){if(h.NodeGuards.isBlockStatementNode(e)){var t=S.NodeUtils.clone(e);if(d.isValidCollectedBlockStatementNode(t)){var n=r.makeClonedBlockStatementNodeUnique(t);r.collectedBlockStatements.push(n)}}}}),this.collectedBlockStatementsTotalLength=this.collectedBlockStatements.length}},{key:"transformNode",value:function(e,t){if(!this.collectedBlockStatements.length||this.collectedBlockStatementsTotalLengththis.options.deadCodeInjectionThreshold||!d.isValidWrappedBlockStatementNode(e))return e;var r=this.collectedBlockStatements.length-1,n=this.randomGenerator.getRandomInteger(0,r),o=this.collectedBlockStatements.splice(n,1)[0];return o===e?e:this.replaceBlockStatementNode(e,o,t)}},{key:"restoreNode",value:function(e,t){var r=e.body[0];if(!h.NodeGuards.isFunctionDeclarationNode(r))throw new Error("Wrong dead code injection root AST host node. Host node should contain `FunctionDeclaration` node");return r.body}},{key:"isDeadCodeInjectionRootAstHostNode",value:function(e){return h.NodeGuards.isBlockStatementNode(e)&&this.deadCodeInjectionRootAstHostNodeSet.has(e)}},{key:"makeClonedBlockStatementNodeUnique",value:function(e){var t=_.NodeFactory.functionExpressionNode([],e);return S.NodeUtils.parentizeNode(t,t),S.NodeUtils.parentizeNode(e,t),this.transformersRunner.transform(t,d.transformersToRenameBlockScopeIdentifiers,v.TransformationStage.Obfuscating).body}},{key:"replaceBlockStatementNode",value:function(e,t,r){var n=_.NodeFactory.blockStatementNode([_.NodeFactory.functionDeclarationNode(d.deadCodeInjectionRootAstHostNodeName,[],t)]);this.deadCodeInjectionRootAstHostNodeSet.add(n);var o=this.deadCodeInjectionCustomNodeFactory(m.DeadCodeInjectionCustomNode.BlockStatementDeadCodeInjectionNode);o.initialize(e,n);var a=o.getNode()[0];return S.NodeUtils.parentizeNode(a,r),a}}],[{key:"isProhibitedNodeInsideCollectedBlockStatement",value:function(e){return h.NodeGuards.isBreakStatementNode(e)||h.NodeGuards.isContinueStatementNode(e)||h.NodeGuards.isAwaitExpressionNode(e)||h.NodeGuards.isSuperNode(e)}},{key:"isScopeHoistingFunctionDeclaration",value:function(e){if(!h.NodeGuards.isFunctionDeclarationNode(e))return!1;var t=b.NodeStatementUtils.getScopeOfNode(e),r=h.NodeGuards.isSwitchCaseNode(t)?t.consequent:t.body,n=r.indexOf(e);if(0===n)return!1;var o=r.slice(0,n),a=_.NodeFactory.blockStatementNode(o),i=e.id.name,s=!1;return p.traverse(a,{enter:function(e){if(h.NodeGuards.isIdentifierNode(e)&&e.name===i)return s=!0,p.VisitorOption.Break}}),s}},{key:"isValidCollectedBlockStatementNode",value:function(e){if(!e.body.length)return!1;var t=0,r=!0;return p.traverse(e,{enter:function(e){if(h.NodeGuards.isBlockStatementNode(e)&&t++,t>d.maxNestedBlockStatementsCount||d.isProhibitedNodeInsideCollectedBlockStatement(e)||d.isScopeHoistingFunctionDeclaration(e))return r=!1,p.VisitorOption.Break}}),r}},{key:"isValidWrappedBlockStatementNode",value:function(e){if(!e.body.length)return!1;var t=!0;return p.traverse(e,{enter:function(e){if(d.isScopeHoistingFunctionDeclaration(e))return t=!1,p.VisitorOption.Break}}),!!t&&b.NodeStatementUtils.getParentNodeWithStatements(e).type!==N.NodeType.Program}}]),t}(y.AbstractNodeTransformer);I.deadCodeInjectionRootAstHostNodeName="deadCodeInjectionRootAstHostNode",I.maxNestedBlockStatementsCount=4,I.minCollectedBlockStatementsCount=5,I.transformersToRenameBlockScopeIdentifiers=[g.NodeTransformer.CatchClauseTransformer,g.NodeTransformer.ClassDeclarationTransformer,g.NodeTransformer.FunctionDeclarationTransformer,g.NodeTransformer.FunctionTransformer,g.NodeTransformer.LabeledStatementTransformer,g.NodeTransformer.VariableDeclarationTransformer],I=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IDeadCodeInjectionCustomNode)),u.__param(1,l.inject(f.ServiceIdentifiers.ITransformersRunner)),u.__param(2,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(3,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object,Object])],I),t.DeadCodeInjectionTransformer=I},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=r(5),p=u.__importStar(r(16)),m=r(21),g=r(48),N=r(19),v=r(12),y=r(13),_=r(25),h=r(9),b=r(17),S=r(24),I=d=function(e){function t(e,r,n,a,c){var d;return(0,o.default)(this,t),(d=(0,i.default)(this,(0,s.default)(t).call(this,a,c))).controlFlowData=new Map,d.visitedFunctionNodes=new Set,d.hostNodesWithControlFlowNode=new Set,d.controlFlowStorageFactory=e,d.controlFlowReplacerFactory=r,d.controlFlowCustomNodeFactory=n,d}return(0,c.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case v.TransformationStage.ControlFlowFlattening:return{leave:function(e,r){if(r&&(h.NodeGuards.isFunctionDeclarationNode(e)||h.NodeGuards.isFunctionExpressionNode(e)||h.NodeGuards.isArrowFunctionExpressionNode(e)))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){if(this.visitedFunctionNodes.add(e),!h.NodeGuards.isBlockStatementNode(e.body))return e;var r=this.getHostNode(e.body),n=this.getControlFlowStorage(r);if(this.controlFlowData.set(r,n),this.transformFunctionBody(e.body,n),!n.getLength())return e;var o=this.controlFlowCustomNodeFactory(m.ControlFlowCustomNode.ControlFlowStorageNode);return o.initialize(n),_.NodeAppender.prepend(r,o.getNode()),this.hostNodesWithControlFlowNode.add(r),e}},{key:"getControlFlowStorage",value:function(e){var t=this.controlFlowStorageFactory();if(this.controlFlowData.has(e)){this.hostNodesWithControlFlowNode.has(e)&&(h.NodeGuards.isSwitchCaseNode(e)?e.consequent.shift():e.body.shift());var r=this.controlFlowData.get(e);t.mergeWith(r,!0)}return t}},{key:"getHostNode",value:function(e){var t=S.NodeStatementUtils.getParentNodesWithStatements(e);return 1===t.length?e:(t.pop(),t.length>d.hostNodeSearchMinDepth&&t.splice(0,d.hostNodeSearchMinDepth),t.length>d.hostNodeSearchMaxDepth&&(t.length=d.hostNodeSearchMaxDepth),this.randomGenerator.getRandomGenerator().pickone(t))}},{key:"isVisitedFunctionNode",value:function(e){return(h.NodeGuards.isFunctionDeclarationNode(e)||h.NodeGuards.isFunctionExpressionNode(e)||h.NodeGuards.isArrowFunctionExpressionNode(e))&&this.visitedFunctionNodes.has(e)}},{key:"transformFunctionBody",value:function(e,t){var r=this;p.replace(e,{enter:function(e,n){if(b.NodeMetadata.isIgnoredNode(e))return p.VisitorOption.Skip;if(r.isVisitedFunctionNode(e)||!n)return p.VisitorOption.Skip;if(!d.controlFlowReplacersMap.has(e.type))return e;if(r.randomGenerator.getMathRandom()>r.options.controlFlowFlatteningThreshold)return e;var o=d.controlFlowReplacersMap.get(e.type);return void 0===o?e:Object.assign({},r.controlFlowReplacerFactory(o).replace(e,n,t),{parentNode:n})}})}}]),t}(y.AbstractNodeTransformer);I.controlFlowReplacersMap=new Map([[N.NodeType.BinaryExpression,g.ControlFlowReplacer.BinaryExpressionControlFlowReplacer],[N.NodeType.CallExpression,g.ControlFlowReplacer.CallExpressionControlFlowReplacer],[N.NodeType.LogicalExpression,g.ControlFlowReplacer.LogicalExpressionControlFlowReplacer],[N.NodeType.Literal,g.ControlFlowReplacer.StringLiteralControlFlowReplacer]]),I.hostNodeSearchMinDepth=0,I.hostNodeSearchMaxDepth=2,I=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__TControlFlowStorage)),u.__param(1,l.inject(f.ServiceIdentifiers.Factory__IControlFlowReplacer)),u.__param(2,l.inject(f.ServiceIdentifiers.Factory__IControlFlowCustomNode)),u.__param(3,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(4,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Function,Function,Object,Object])],I),t.FunctionControlFlowTransformer=I},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=r(5),p=r(21),m=r(49),g=r(9),N=r(11),v=d=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r,n))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"replace",value:function(e,t,r){if(this.checkForProhibitedExpressions(e.left,e.right))return e;var n=e.operator,o=this.controlFlowCustomNodeFactory(p.ControlFlowCustomNode.LogicalExpressionFunctionNode);o.initialize(n);var a=this.insertCustomNodeToControlFlowStorage(o,r,n,d.usingExistingIdentifierChance);return this.getControlFlowStorageCallNode(r.getStorageId(),a,e.left,e.right)}},{key:"checkForProhibitedExpressions",value:function(e,t){return[e,t].some(function(e){var t;return t=g.NodeGuards.isUnaryExpressionNode(e)?N.NodeUtils.getUnaryExpressionArgumentNode(e):e,!(g.NodeGuards.isLiteralNode(t)||g.NodeGuards.isIdentifierNode(t)||g.NodeGuards.isObjectExpressionNode(t)||g.NodeGuards.isExpressionStatementNode(t))})}}]),t}(m.ExpressionWithOperatorControlFlowReplacer);v.usingExistingIdentifierChance=.5,v=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IControlFlowCustomNode)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],v),t.LogicalExpressionControlFlowReplacer=v},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=r(5),p=r(21),m=r(43),g=r(9),N=d=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r,n))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"replace",value:function(e,t,r){if(g.NodeGuards.isPropertyNode(t)&&t.key===e)return e;if("string"!=typeof e.value||e.value.length<3)return e;var n=String(e.value),o=this.controlFlowCustomNodeFactory(p.ControlFlowCustomNode.StringLiteralNode);o.initialize(e.value);var a=this.insertCustomNodeToControlFlowStorage(o,r,n,d.usingExistingIdentifierChance);return this.getControlFlowStorageCallNode(r.getStorageId(),a)}},{key:"getControlFlowStorageCallNode",value:function(e,t){var r=this.controlFlowCustomNodeFactory(p.ControlFlowCustomNode.StringLiteralControlFlowStorageCallNode);r.initialize(e,t);var n=r.getNode()[0];if(!n||!g.NodeGuards.isExpressionStatementNode(n))throw new Error("`controlFlowStorageCallCustomNode.getNode()[0]` should returns array with `ExpressionStatement` node");return n.expression}}]),t}(m.AbstractControlFlowReplacer);N.usingExistingIdentifierChance=1,N=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IControlFlowCustomNode)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],N),t.StringLiteralControlFlowReplacer=N},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(2),o=r(20),a=r(5),i=r(29),s=r(53),c=r(80),d=r(81),u=r(82),l=r(83),f=r(84),p=r(85),m=r(86);t.convertingTransformersModule=new n.ContainerModule(function(e){e(a.ServiceIdentifiers.INodeTransformer).to(d.MemberExpressionTransformer).whenTargetNamed(i.NodeTransformer.MemberExpressionTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(u.MethodDefinitionTransformer).whenTargetNamed(i.NodeTransformer.MethodDefinitionTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(l.ObjectExpressionKeysTransformer).whenTargetNamed(i.NodeTransformer.ObjectExpressionKeysTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(f.ObjectExpressionTransformer).whenTargetNamed(i.NodeTransformer.ObjectExpressionTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(p.TemplateLiteralTransformer).whenTargetNamed(i.NodeTransformer.TemplateLiteralTransformer),e(a.ServiceIdentifiers.IPropertiesExtractor).to(c.AssignmentExpressionPropertiesExtractor).whenTargetNamed(s.PropertiesExtractor.AssignmentExpressionPropertiesExtractor),e(a.ServiceIdentifiers.IPropertiesExtractor).to(m.VariableDeclaratorPropertiesExtractor).whenTargetNamed(s.PropertiesExtractor.VariableDeclaratorPropertiesExtractor),e(a.ServiceIdentifiers.Factory__IPropertiesExtractor).toFactory(o.InversifyContainerFacade.getCacheFactory(a.ServiceIdentifiers.IPropertiesExtractor))})},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(54),p=function(e){function t(e,r){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"extract",value:function(e,t){var r=t.parentNode,n=t.left;return f.AbstractPropertiesExtractor.isProhibitedPattern(n)?e:r&&f.AbstractPropertiesExtractor.isProhibitedHostParent(r)?e:this.transformObjectExpressionNode(e,n)}}]),t}(f.AbstractPropertiesExtractor);p=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Object,Object])],p),t.AssignmentExpressionPropertiesExtractor=p},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(12),p=r(13),m=r(14),g=r(9),N=function(e){function t(e,r){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case f.TransformationStage.Converting:return{enter:function(e,r){if(r&&g.NodeGuards.isMemberExpressionNode(e))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){if(g.NodeGuards.isIdentifierNode(e.property)){if(e.computed)return e;e.computed=!0,e.property=m.NodeFactory.literalNode(e.property.name)}return e}}]),t}(p.AbstractNodeTransformer);N=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Object,Object])],N),t.MemberExpressionTransformer=N},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=r(5),p=r(12),m=r(13),g=r(14),N=r(9),v=d=function(e){function t(e,r){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case p.TransformationStage.Converting:return{enter:function(e,r){if(r&&N.NodeGuards.isMethodDefinitionNode(e))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){return N.NodeGuards.isIdentifierNode(e.key)&&!d.ignoredNames.includes(e.key.name)&&!1===e.computed&&(e.computed=!0,e.key=g.NodeFactory.literalNode(e.key.name)),e}}]),t}(m.AbstractNodeTransformer);v.ignoredNames=["constructor"],v=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(1,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Object,Object])],v),t.MethodDefinitionTransformer=v},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=r(5),p=r(19),m=r(53),g=r(12),N=r(13),v=r(9),y=d=function(e){function t(e,r,n){var a;return(0,o.default)(this,t),(a=(0,i.default)(this,(0,s.default)(t).call(this,r,n))).propertiesExtractorFactory=e,a}return(0,c.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;return e!==g.TransformationStage.Converting?null:{enter:function(e,r){if(t.options.transformObjectKeys&&r&&v.NodeGuards.isObjectExpressionNode(e))return t.transformNode(e,r)}}}},{key:"transformNode",value:function(e,t){if(!e.properties.length)return e;var r=d.propertiesExtractorsMap.get(t.type);return r?this.propertiesExtractorFactory(r).extract(e,t):e}}]),t}(N.AbstractNodeTransformer);y.propertiesExtractorsMap=new Map([[p.NodeType.AssignmentExpression,m.PropertiesExtractor.AssignmentExpressionPropertiesExtractor],[p.NodeType.VariableDeclarator,m.PropertiesExtractor.VariableDeclaratorPropertiesExtractor]]),y=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IPropertiesExtractor)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],y),t.ObjectExpressionKeysTransformer=y},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(12),p=r(13),m=r(14),g=r(9),N=function(e){function t(e,r,n){var a;return(0,o.default)(this,t),(a=(0,i.default)(this,(0,s.default)(t).call(this,r,n))).escapeSequenceEncoder=e,a}return(0,c.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case f.TransformationStage.Converting:return{enter:function(e,r){if(r&&g.NodeGuards.isObjectExpressionNode(e))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){var r=this;return e.properties.forEach(function(e){e.key&&(e.computed?r.transformComputedProperty(e):r.transformBaseProperty(e))}),e}},{key:"transformComputedProperty",value:function(e){g.NodeGuards.isLiteralNode(e.key)&&"string"==typeof e.key.value&&(e.key=m.NodeFactory.literalNode(this.getPropertyKeyValue(e.key.value)))}},{key:"transformBaseProperty",value:function(e){e.shorthand&&(e.shorthand=!1),g.NodeGuards.isIdentifierNode(e.key)&&(e.key=m.NodeFactory.literalNode(this.getPropertyKeyValue(e.key.name)))}},{key:"getPropertyKeyValue",value:function(e){return this.options.unicodeEscapeSequence?this.escapeSequenceEncoder.encode(e,!0):e}}]),t}(p.AbstractNodeTransformer);N=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.IEscapeSequenceEncoder)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Object,Object,Object])],N),t.ObjectExpressionTransformer=N},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=r(5),p=r(12),m=r(13),g=r(14),N=r(9),v=r(11),y=d=function(e){function t(e,r){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case p.TransformationStage.Converting:return{leave:function(e,r){if(r&&d.isValidTemplateLiteralNode(e,r))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){var r,n=e.expressions,o=[];if(e.quasis.forEach(function(e){o.push(g.NodeFactory.literalNode(e.value.cooked));var t=n.shift();t&&o.push(t)}),o=o.filter(function(e){return!(N.NodeGuards.isLiteralNode(e)&&""===e.value)}),d.isLiteralNodeWithStringValue(o[0])||d.isLiteralNodeWithStringValue(o[1])||o.unshift(g.NodeFactory.literalNode("")),o.length>1){var a=g.NodeFactory.binaryExpressionNode("+",o.shift(),o.shift());o.forEach(function(e){a=g.NodeFactory.binaryExpressionNode("+",a,e)}),r=a}else r=o[0];return v.NodeUtils.parentizeAst(r),r}}],[{key:"isLiteralNodeWithStringValue",value:function(e){return e&&N.NodeGuards.isLiteralNode(e)&&"string"==typeof e.value}},{key:"isValidTemplateLiteralNode",value:function(e,t){return N.NodeGuards.isTemplateLiteralNode(e)&&!N.NodeGuards.isTaggedTemplateExpressionNode(t)}}]),t}(m.AbstractNodeTransformer);y=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(1,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Object,Object])],y),t.TemplateLiteralTransformer=y},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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=d.__importStar(r(16)),p=r(54),m=r(9),g=function(e){function t(e,r){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"extract",value:function(e,t){return!m.NodeGuards.isIdentifierNode(t.id)||this.isProhibitedObjectExpressionNode(e,t.id)?e:this.transformObjectExpressionNode(e,t.id)}},{key:"getHostVariableDeclaratorNode",value:function(e){var t=e.parentNode;if(!t||!m.NodeGuards.isVariableDeclaratorNode(t))throw new Error("Cannot get `VariableDeclarator` node for `ObjectExpression` node");return t}},{key:"getHostVariableDeclarationNode",value:function(e){var t=e.parentNode;if(!t||!m.NodeGuards.isVariableDeclarationNode(t))throw new Error("Cannot get `VariableDeclaration` node for `VariableDeclarator` node");return t}},{key:"isProhibitedObjectExpressionNode",value:function(e,t){var r=this.getHostVariableDeclaratorNode(e),n=this.getHostVariableDeclarationNode(r).declarations,o=n.indexOf(r);if(o===n.length-1)return!1;var a=!1;return n.slice(o).forEach(function(e){f.traverse(e,{enter:function(e){return m.NodeGuards.isMemberExpressionNode(e)&&m.NodeGuards.isIdentifierNode(e.object)&&e.object.name===t.name?(a=!0,f.VisitorOption.Break):e}})}),a}}]),t}(p.AbstractPropertiesExtractor);g=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Object,Object])],g),t.VariableDeclaratorPropertiesExtractor=g},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(20),o=r(2),a=r(5),i=r(21),s=r(31),c=r(55),d=r(52),u=r(88),l=r(89),f=r(90),p=r(91),m=r(92),g=r(93),N=r(96),v=r(97),y=r(98),_=r(99),h=r(100),b=r(101),S=r(103),I=r(105),C=r(107),F=r(111),O=r(113),j=r(114),T=r(115),k=r(117),x=r(119),E=r(126),w=r(128),G=r(131),R=r(132);t.customNodesModule=new o.ContainerModule(function(e){e(a.ServiceIdentifiers.ICustomNode).to(b.ConsoleOutputDisableExpressionNode).whenTargetNamed(s.CustomNode.ConsoleOutputDisableExpressionNode),e(a.ServiceIdentifiers.ICustomNode).to(S.DebugProtectionFunctionCallNode).whenTargetNamed(s.CustomNode.DebugProtectionFunctionCallNode),e(a.ServiceIdentifiers.ICustomNode).to(I.DebugProtectionFunctionIntervalNode).whenTargetNamed(s.CustomNode.DebugProtectionFunctionIntervalNode),e(a.ServiceIdentifiers.ICustomNode).to(C.DebugProtectionFunctionNode).whenTargetNamed(s.CustomNode.DebugProtectionFunctionNode),e(a.ServiceIdentifiers.ICustomNode).to(F.DomainLockNode).whenTargetNamed(s.CustomNode.DomainLockNode),e(a.ServiceIdentifiers.ICustomNode).to(T.NodeCallsControllerFunctionNode).whenTargetNamed(s.CustomNode.NodeCallsControllerFunctionNode),e(a.ServiceIdentifiers.ICustomNode).to(k.SelfDefendingUnicodeNode).whenTargetNamed(s.CustomNode.SelfDefendingUnicodeNode),e(a.ServiceIdentifiers.ICustomNode).to(x.StringArrayCallsWrapper).whenTargetNamed(s.CustomNode.StringArrayCallsWrapper),e(a.ServiceIdentifiers.ICustomNode).to(E.StringArrayNode).whenTargetNamed(s.CustomNode.StringArrayNode),e(a.ServiceIdentifiers.ICustomNode).to(w.StringArrayRotateFunctionNode).whenTargetNamed(s.CustomNode.StringArrayRotateFunctionNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(g.BinaryExpressionFunctionNode).whenTargetNamed(i.ControlFlowCustomNode.BinaryExpressionFunctionNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(N.BlockStatementControlFlowFlatteningNode).whenTargetNamed(i.ControlFlowCustomNode.BlockStatementControlFlowFlatteningNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(y.CallExpressionControlFlowStorageCallNode).whenTargetNamed(i.ControlFlowCustomNode.CallExpressionControlFlowStorageCallNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(_.CallExpressionFunctionNode).whenTargetNamed(i.ControlFlowCustomNode.CallExpressionFunctionNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(h.ControlFlowStorageNode).whenTargetNamed(i.ControlFlowCustomNode.ControlFlowStorageNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(O.ExpressionWithOperatorControlFlowStorageCallNode).whenTargetNamed(i.ControlFlowCustomNode.ExpressionWithOperatorControlFlowStorageCallNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(j.LogicalExpressionFunctionNode).whenTargetNamed(i.ControlFlowCustomNode.LogicalExpressionFunctionNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(R.StringLiteralNode).whenTargetNamed(i.ControlFlowCustomNode.StringLiteralNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(G.StringLiteralControlFlowStorageCallNode).whenTargetNamed(i.ControlFlowCustomNode.StringLiteralControlFlowStorageCallNode),e(a.ServiceIdentifiers.Newable__ICustomNode).toConstructor(v.BlockStatementDeadCodeInjectionNode).whenTargetNamed(d.DeadCodeInjectionCustomNode.BlockStatementDeadCodeInjectionNode),e(a.ServiceIdentifiers.ICustomNodeGroup).to(u.ConsoleOutputCustomNodeGroup).whenTargetNamed(c.CustomNodeGroup.ConsoleOutputCustomNodeGroup),e(a.ServiceIdentifiers.ICustomNodeGroup).to(l.DebugProtectionCustomNodeGroup).whenTargetNamed(c.CustomNodeGroup.DebugProtectionCustomNodeGroup),e(a.ServiceIdentifiers.ICustomNodeGroup).to(f.DomainLockCustomNodeGroup).whenTargetNamed(c.CustomNodeGroup.DomainLockCustomNodeGroup),e(a.ServiceIdentifiers.ICustomNodeGroup).to(p.SelfDefendingCustomNodeGroup).whenTargetNamed(c.CustomNodeGroup.SelfDefendingCustomNodeGroup),e(a.ServiceIdentifiers.ICustomNodeGroup).to(m.StringArrayCustomNodeGroup).whenTargetNamed(c.CustomNodeGroup.StringArrayCustomNodeGroup),e(a.ServiceIdentifiers.Factory__ICustomNode).toFactory(n.InversifyContainerFacade.getFactory(a.ServiceIdentifiers.ICustomNode)),e(a.ServiceIdentifiers.Factory__IControlFlowCustomNode).toFactory(n.InversifyContainerFacade.getConstructorFactory(a.ServiceIdentifiers.Newable__ICustomNode,a.ServiceIdentifiers.Factory__IIdentifierNamesGenerator,a.ServiceIdentifiers.IRandomGenerator,a.ServiceIdentifiers.IOptions)),e(a.ServiceIdentifiers.Factory__IDeadCodeInjectionCustomNode).toFactory(n.InversifyContainerFacade.getConstructorFactory(a.ServiceIdentifiers.Newable__ICustomNode,a.ServiceIdentifiers.Factory__IIdentifierNamesGenerator,a.ServiceIdentifiers.IRandomGenerator,a.ServiceIdentifiers.IOptions)),e(a.ServiceIdentifiers.Factory__ICustomNodeGroup).toFactory(n.InversifyContainerFacade.getFactory(a.ServiceIdentifiers.ICustomNodeGroup))})},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(10),p=r(31),m=r(26),g=r(33),N=r(25),v=function(e){function t(e,r,n,a){var c;return(0,o.default)(this,t),(c=(0,i.default)(this,(0,s.default)(t).call(this,r,n,a))).appendEvent=m.ObfuscationEvent.BeforeObfuscation,c.customNodeFactory=e,c}return(0,c.default)(t,e),(0,a.default)(t,[{key:"appendCustomNodes",value:function(e,t){var r=this.getRandomStackTraceIndex(t.length);this.appendCustomNodeIfExist(p.CustomNode.ConsoleOutputDisableExpressionNode,function(n){N.NodeAppender.appendToOptimalBlockScope(t,e,n.getNode(),r)}),this.appendCustomNodeIfExist(p.CustomNode.NodeCallsControllerFunctionNode,function(n){var o=t.length?N.NodeAppender.getOptimalBlockScope(t,r,1):e;N.NodeAppender.prepend(o,n.getNode())})}},{key:"initialize",value:function(){if(this.customNodes=new Map,this.options.disableConsoleOutput){var e=this.identifierNamesGenerator.generate(),t=this.customNodeFactory(p.CustomNode.ConsoleOutputDisableExpressionNode),r=this.customNodeFactory(p.CustomNode.NodeCallsControllerFunctionNode);t.initialize(e),r.initialize(this.appendEvent,e),this.customNodes.set(p.CustomNode.ConsoleOutputDisableExpressionNode,t),this.customNodes.set(p.CustomNode.NodeCallsControllerFunctionNode,r)}}}]),t}(g.AbstractCustomNodeGroup);d.__decorate([f.initializable(),d.__metadata("design:type",Map)],v.prototype,"customNodes",void 0),v=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__ICustomNode)),d.__param(1,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(3,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Function,Object,Object])],v),t.ConsoleOutputCustomNodeGroup=v},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(10),p=r(31),m=r(26),g=r(33),N=r(25),v=r(9),y=function(e){function t(e,r,n,a){var c;return(0,o.default)(this,t),(c=(0,i.default)(this,(0,s.default)(t).call(this,r,n,a))).appendEvent=m.ObfuscationEvent.BeforeObfuscation,c.customNodeFactory=e,c}return(0,c.default)(t,e),(0,a.default)(t,[{key:"appendCustomNodes",value:function(e,t){var r=this,n=this.getRandomStackTraceIndex(t.length);this.appendCustomNodeIfExist(p.CustomNode.DebugProtectionFunctionCallNode,function(r){N.NodeAppender.appendToOptimalBlockScope(t,e,r.getNode(),n)}),this.appendCustomNodeIfExist(p.CustomNode.DebugProtectionFunctionNode,function(t){N.NodeAppender.append(e,t.getNode())}),this.appendCustomNodeIfExist(p.CustomNode.DebugProtectionFunctionIntervalNode,function(t){var n=v.NodeGuards.isSwitchCaseNode(e)?e.consequent.length:e.body.length,o=r.randomGenerator.getRandomInteger(0,n);N.NodeAppender.insertAtIndex(e,t.getNode(),o)}),this.appendCustomNodeIfExist(p.CustomNode.NodeCallsControllerFunctionNode,function(r){var o=t.length?N.NodeAppender.getOptimalBlockScope(t,n,1):e;N.NodeAppender.prepend(o,r.getNode())})}},{key:"initialize",value:function(){if(this.customNodes=new Map,this.options.debugProtection){var e=this.identifierNamesGenerator.generate(),t=this.identifierNamesGenerator.generate(),r=this.customNodeFactory(p.CustomNode.DebugProtectionFunctionNode),n=this.customNodeFactory(p.CustomNode.DebugProtectionFunctionCallNode),o=this.customNodeFactory(p.CustomNode.DebugProtectionFunctionIntervalNode),a=this.customNodeFactory(p.CustomNode.NodeCallsControllerFunctionNode);r.initialize(e),n.initialize(e,t),o.initialize(e),a.initialize(this.appendEvent,t),this.customNodes.set(p.CustomNode.DebugProtectionFunctionNode,r),this.customNodes.set(p.CustomNode.DebugProtectionFunctionCallNode,n),this.options.debugProtectionInterval&&this.customNodes.set(p.CustomNode.DebugProtectionFunctionIntervalNode,o),this.customNodes.set(p.CustomNode.NodeCallsControllerFunctionNode,a)}}}]),t}(g.AbstractCustomNodeGroup);d.__decorate([f.initializable(),d.__metadata("design:type",Map)],y.prototype,"customNodes",void 0),y=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__ICustomNode)),d.__param(1,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(3,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Function,Object,Object])],y),t.DebugProtectionCustomNodeGroup=y},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(10),p=r(31),m=r(26),g=r(33),N=r(25),v=function(e){function t(e,r,n,a){var c;return(0,o.default)(this,t),(c=(0,i.default)(this,(0,s.default)(t).call(this,r,n,a))).appendEvent=m.ObfuscationEvent.BeforeObfuscation,c.customNodeFactory=e,c}return(0,c.default)(t,e),(0,a.default)(t,[{key:"appendCustomNodes",value:function(e,t){var r=this.getRandomStackTraceIndex(t.length);this.appendCustomNodeIfExist(p.CustomNode.DomainLockNode,function(n){N.NodeAppender.appendToOptimalBlockScope(t,e,n.getNode(),r)}),this.appendCustomNodeIfExist(p.CustomNode.NodeCallsControllerFunctionNode,function(n){var o=t.length?N.NodeAppender.getOptimalBlockScope(t,r,1):e;N.NodeAppender.prepend(o,n.getNode())})}},{key:"initialize",value:function(){if(this.customNodes=new Map,this.options.domainLock.length){var e=this.identifierNamesGenerator.generate(),t=this.customNodeFactory(p.CustomNode.DomainLockNode),r=this.customNodeFactory(p.CustomNode.NodeCallsControllerFunctionNode);t.initialize(e),r.initialize(this.appendEvent,e),this.customNodes.set(p.CustomNode.DomainLockNode,t),this.customNodes.set(p.CustomNode.NodeCallsControllerFunctionNode,r)}}}]),t}(g.AbstractCustomNodeGroup);d.__decorate([f.initializable(),d.__metadata("design:type",Map)],v.prototype,"customNodes",void 0),v=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__ICustomNode)),d.__param(1,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(3,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Function,Object,Object])],v),t.DomainLockCustomNodeGroup=v},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(10),p=r(31),m=r(26),g=r(33),N=r(25),v=function(e){function t(e,r,n,a){var c;return(0,o.default)(this,t),(c=(0,i.default)(this,(0,s.default)(t).call(this,r,n,a))).appendEvent=m.ObfuscationEvent.AfterObfuscation,c.customNodeFactory=e,c}return(0,c.default)(t,e),(0,a.default)(t,[{key:"appendCustomNodes",value:function(e,t){var r=this.getRandomStackTraceIndex(t.length);this.appendCustomNodeIfExist(p.CustomNode.SelfDefendingUnicodeNode,function(n){N.NodeAppender.appendToOptimalBlockScope(t,e,n.getNode(),r)}),this.appendCustomNodeIfExist(p.CustomNode.NodeCallsControllerFunctionNode,function(n){var o=t.length?N.NodeAppender.getOptimalBlockScope(t,r,1):e;N.NodeAppender.prepend(o,n.getNode())})}},{key:"initialize",value:function(){if(this.customNodes=new Map,this.options.selfDefending){var e=this.identifierNamesGenerator.generate(),t=this.customNodeFactory(p.CustomNode.SelfDefendingUnicodeNode),r=this.customNodeFactory(p.CustomNode.NodeCallsControllerFunctionNode);t.initialize(e),r.initialize(this.appendEvent,e),this.customNodes.set(p.CustomNode.SelfDefendingUnicodeNode,t),this.customNodes.set(p.CustomNode.NodeCallsControllerFunctionNode,r)}}}]),t}(g.AbstractCustomNodeGroup);d.__decorate([f.initializable(),d.__metadata("design:type",Map)],v.prototype,"customNodes",void 0),v=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__ICustomNode)),d.__param(1,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(3,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Function,Object,Object])],v),t.SelfDefendingCustomNodeGroup=v},function(e,t,r){"use strict";var n=r(0),o=n(r(30)),a=n(r(1)),i=n(r(3)),s=n(r(6)),c=n(r(7)),d=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var u=r(4),l=r(2),f=r(5),p=r(10),m=r(31),g=r(26),N=r(33),v=r(25),y=function(e){function t(e,r,n,o,i){var d;return(0,a.default)(this,t),(d=(0,s.default)(this,(0,c.default)(t).call(this,n,o,i))).appendEvent=g.ObfuscationEvent.AfterObfuscation,d.customNodeFactory=e,d.stringArrayStorage=r,d}return(0,d.default)(t,e),(0,i.default)(t,[{key:"appendCustomNodes",value:function(e,t){this.stringArrayStorage.getLength()&&(this.appendCustomNodeIfExist(m.CustomNode.StringArrayNode,function(t){v.NodeAppender.prepend(e,t.getNode())}),this.appendCustomNodeIfExist(m.CustomNode.StringArrayCallsWrapper,function(t){v.NodeAppender.insertAtIndex(e,t.getNode(),1)}),this.appendCustomNodeIfExist(m.CustomNode.StringArrayRotateFunctionNode,function(t){v.NodeAppender.insertAtIndex(e,t.getNode(),1)}))}},{key:"initialize",value:function(){if(this.customNodes=new Map,this.options.stringArray){var e,t=this.customNodeFactory(m.CustomNode.StringArrayNode),r=this.customNodeFactory(m.CustomNode.StringArrayCallsWrapper),n=this.customNodeFactory(m.CustomNode.StringArrayRotateFunctionNode),a=this.stringArrayStorage.getStorageId().split("|"),i=(0,o.default)(a,2),s=i[0],c=i[1];e=this.options.rotateStringArray?this.randomGenerator.getRandomInteger(100,500):0,t.initialize(this.stringArrayStorage,s,e),r.initialize(s,c),n.initialize(s,e),this.customNodes.set(m.CustomNode.StringArrayNode,t),this.customNodes.set(m.CustomNode.StringArrayCallsWrapper,r),this.options.rotateStringArray&&this.customNodes.set(m.CustomNode.StringArrayRotateFunctionNode,n)}}}]),t}(N.AbstractCustomNodeGroup);u.__decorate([p.initializable(),u.__metadata("design:type",Map)],y.prototype,"customNodes",void 0),y=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__ICustomNode)),u.__param(1,l.inject(f.ServiceIdentifiers.TStringArrayStorage)),u.__param(2,l.inject(f.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),u.__param(3,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(4,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Function,Object,Object])],y),t.StringArrayCustomNodeGroup=y},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(10),p=r(15),m=r(14),g=r(11),N=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r,n))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"initialize",value:function(e){this.operator=e}},{key:"getNodeStructure",value:function(){var e=m.NodeFactory.expressionStatementNode(m.NodeFactory.functionExpressionNode([m.NodeFactory.identifierNode("x"),m.NodeFactory.identifierNode("y")],m.NodeFactory.blockStatementNode([m.NodeFactory.returnStatementNode(m.NodeFactory.binaryExpressionNode(this.operator,m.NodeFactory.identifierNode("x"),m.NodeFactory.identifierNode("y")))])));return g.NodeUtils.parentizeAst(e),[e]}}]),t}(p.AbstractCustomNode);d.__decorate([f.initializable(),d.__metadata("design:type",String)],N.prototype,"operator",void 0),N=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object])],N),t.BinaryExpressionFunctionNode=N},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalVariableTemplate1=function(){return"\n var that;\n \n try {\n var getGlobal = Function('return (function() ' + '{}.constructor(\"return this\")( )' + ');');\n \n that = getGlobal();\n } catch (e) {\n that = window;\n }\n "}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalVariableTemplate2=function(){return"\n var getGlobal = function () {\n var globalObject;\n \n try {\n globalObject = Function('return (function() ' + '{}.constructor(\"return this\")( )' + ');')();\n } catch (e) {\n globalObject = window;\n }\n \n return globalObject;\n };\n var that = getGlobal();\n "}},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(10),p=r(15),m=r(14),g=r(9),N=r(11),v=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r,n))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"initialize",value:function(e,t,r){this.blockStatementBody=e,this.shuffledKeys=t,this.originalKeysIndexesInShuffledArray=r}},{key:"getNodeStructure",value:function(){var e=this,t=this.randomGenerator.getRandomString(6),r=this.randomGenerator.getRandomString(6),n=m.NodeFactory.blockStatementNode([m.NodeFactory.variableDeclarationNode([m.NodeFactory.variableDeclaratorNode(m.NodeFactory.identifierNode(t),m.NodeFactory.callExpressionNode(m.NodeFactory.memberExpressionNode(m.NodeFactory.literalNode(this.originalKeysIndexesInShuffledArray.join("|")),m.NodeFactory.identifierNode("split")),[m.NodeFactory.literalNode("|")])),m.NodeFactory.variableDeclaratorNode(m.NodeFactory.identifierNode(r),m.NodeFactory.literalNode(0))]),m.NodeFactory.whileStatementNode(m.NodeFactory.literalNode(!0),m.NodeFactory.blockStatementNode([m.NodeFactory.switchStatementNode(m.NodeFactory.memberExpressionNode(m.NodeFactory.identifierNode(t),m.NodeFactory.updateExpressionNode("++",m.NodeFactory.identifierNode(r)),!0),this.shuffledKeys.map(function(t,r){var n=e.blockStatementBody[t],o=[n];return g.NodeGuards.isReturnStatementNode(n)||o.push(m.NodeFactory.continueStatement()),m.NodeFactory.switchCaseNode(m.NodeFactory.literalNode(String(r)),o)})),m.NodeFactory.breakStatement()]))]);return N.NodeUtils.parentizeAst(n),[n]}}]),t}(p.AbstractCustomNode);d.__decorate([f.initializable(),d.__metadata("design:type",Array)],v.prototype,"blockStatementBody",void 0),d.__decorate([f.initializable(),d.__metadata("design:type",Array)],v.prototype,"originalKeysIndexesInShuffledArray",void 0),d.__decorate([f.initializable(),d.__metadata("design:type",Array)],v.prototype,"shuffledKeys",void 0),v=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object])],v),t.BlockStatementControlFlowFlatteningNode=v},function(e,t,r){"use strict";var n=r(0),o=n(r(30)),a=n(r(1)),i=n(r(3)),s=n(r(6)),c=n(r(7)),d=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var u=r(4),l=r(2),f=r(5),p=r(10),m=r(15),g=r(14),N=r(11),v=function(e){function t(e,r,n){return(0,a.default)(this,t),(0,s.default)(this,(0,c.default)(t).call(this,e,r,n))}return(0,d.default)(t,e),(0,i.default)(t,[{key:"initialize",value:function(e,t){this.blockStatementNode=e,this.deadCodeInjectionRootAstHostNode=t}},{key:"getNodeStructure",value:function(){var e=this.randomGenerator.getMathRandom()>.5,t=this.randomGenerator.getMathRandom()>.5,r=e?"===":"!==",n=this.randomGenerator.getRandomString(5),a=t?n:this.randomGenerator.getRandomString(5),i=e===t?[this.blockStatementNode,this.deadCodeInjectionRootAstHostNode]:[this.deadCodeInjectionRootAstHostNode,this.blockStatementNode],s=(0,o.default)(i,2),c=s[0],d=s[1],u=g.NodeFactory.blockStatementNode([g.NodeFactory.ifStatementNode(g.NodeFactory.binaryExpressionNode(r,g.NodeFactory.literalNode(n),g.NodeFactory.literalNode(a)),c,d)]);return N.NodeUtils.parentizeAst(u),[u]}}]),t}(m.AbstractCustomNode);u.__decorate([p.initializable(),u.__metadata("design:type",Object)],v.prototype,"blockStatementNode",void 0),u.__decorate([p.initializable(),u.__metadata("design:type",Object)],v.prototype,"deadCodeInjectionRootAstHostNode",void 0),v=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],v),t.BlockStatementDeadCodeInjectionNode=v},function(e,t,r){"use strict";var n=r(0),o=n(r(28)),a=n(r(1)),i=n(r(3)),s=n(r(6)),c=n(r(7)),d=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var u=r(4),l=r(2),f=r(5),p=r(10),m=r(15),g=r(14),N=r(11),v=function(e){function t(e,r,n){return(0,a.default)(this,t),(0,s.default)(this,(0,c.default)(t).call(this,e,r,n))}return(0,d.default)(t,e),(0,i.default)(t,[{key:"initialize",value:function(e,t,r,n){this.controlFlowStorageName=e,this.controlFlowStorageKey=t,this.callee=r,this.expressionArguments=n}},{key:"getNodeStructure",value:function(){var e=g.NodeFactory.expressionStatementNode(g.NodeFactory.callExpressionNode(g.NodeFactory.memberExpressionNode(g.NodeFactory.identifierNode(this.controlFlowStorageName),g.NodeFactory.identifierNode(this.controlFlowStorageKey)),[this.callee].concat((0,o.default)(this.expressionArguments))));return N.NodeUtils.parentizeAst(e),[e]}}]),t}(m.AbstractCustomNode);u.__decorate([p.initializable(),u.__metadata("design:type",Object)],v.prototype,"callee",void 0),u.__decorate([p.initializable(),u.__metadata("design:type",String)],v.prototype,"controlFlowStorageKey",void 0),u.__decorate([p.initializable(),u.__metadata("design:type",String)],v.prototype,"controlFlowStorageName",void 0),u.__decorate([p.initializable(),u.__metadata("design:type",Array)],v.prototype,"expressionArguments",void 0),v=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],v),t.CallExpressionControlFlowStorageCallNode=v},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(10),p=r(15),m=r(14),g=r(11),N=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r,n))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"initialize",value:function(e){this.expressionArguments=e}},{key:"getNodeStructure",value:function(){for(var e=m.NodeFactory.identifierNode("callee"),t=[],r=this.expressionArguments.length,n=0;n 0;\n \n switch (isPositive) {\n case true:\n return this.item + \'_\' + this.value + \'_\' + i;\n default:\n this.item + \'_\' + this.value;\n }\n }\n }()\n };\n };\n \n var regExp = new RegExp("[{diff}]", "g");\n var domains = "{domains}".replace(regExp, "").split(";");\n var document;\n var domain;\n var location;\n var hostname;\n\n for (var d in that) {\n if (d.length == 8 && d.charCodeAt(7) == 116 && d.charCodeAt(5) == 101 && d.charCodeAt(3) == 117 && d.charCodeAt(0) == 100) {\n document = d;\n \n break;\n }\n }\n\n for (var d1 in that[document]) {\n if (d1.length == 6 && d1.charCodeAt(5) == 110 && d1.charCodeAt(0) == 100) {\n domain = d1;\n \n break;\n }\n }\n\n if (!("~" > domain)) {\n for (var d2 in that[document]) {\n if (d2.length == 8 && d2.charCodeAt(7) == 110 && d2.charCodeAt(0) == 108) {\n location = d2;\n \n break;\n }\n }\n\n for (var d3 in that[document][location]) {\n if (d3.length == 8 && d3.charCodeAt(7) == 101 && d3.charCodeAt(0) == 104) {\n hostname = d3;\n \n break;\n }\n }\n }\n \n if (!document || !that[document]) {\n return;\n }\n \n var documentDomain = that[document][domain];\n var documentLocationHostName = !!that[document][location] && that[document][location][hostname];\n var currentDomain = documentDomain || documentLocationHostName;\n \n if (!currentDomain) {\n return;\n }\n \n var ok = false;\n \n for (var i = 0; i < domains.length; i++) {\n var domain = domains[i];\n var position = currentDomain.length - domain.length;\n var lastIndex = currentDomain.indexOf(domain, position);\n var endsWith = lastIndex !== -1 && lastIndex === position;\n \n if (endsWith) {\n if (currentDomain.length == domain.length || domain.indexOf(".") === 0) {\n ok = true;\n }\n }\n }\n \n if (!ok) {\n data;\n } else {\n return;\n }\n \n func();\n });\n\n {domainLockFunctionName}();\n '}},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(10),p=r(15),m=r(14),g=r(11),N=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r,n))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"initialize",value:function(e,t,r,n){this.controlFlowStorageName=e,this.controlFlowStorageKey=t,this.leftValue=r,this.rightValue=n}},{key:"getNodeStructure",value:function(){var e=m.NodeFactory.expressionStatementNode(m.NodeFactory.callExpressionNode(m.NodeFactory.memberExpressionNode(m.NodeFactory.identifierNode(this.controlFlowStorageName),m.NodeFactory.identifierNode(this.controlFlowStorageKey)),[this.leftValue,this.rightValue]));return g.NodeUtils.parentizeAst(e),[e]}}]),t}(p.AbstractCustomNode);d.__decorate([f.initializable(),d.__metadata("design:type",String)],N.prototype,"controlFlowStorageKey",void 0),d.__decorate([f.initializable(),d.__metadata("design:type",String)],N.prototype,"controlFlowStorageName",void 0),d.__decorate([f.initializable(),d.__metadata("design:type",Object)],N.prototype,"leftValue",void 0),d.__decorate([f.initializable(),d.__metadata("design:type",Object)],N.prototype,"rightValue",void 0),N=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object])],N),t.ExpressionWithOperatorControlFlowStorageCallNode=N},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(10),p=r(15),m=r(14),g=r(11),N=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r,n))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"initialize",value:function(e){this.operator=e}},{key:"getNodeStructure",value:function(){var e=m.NodeFactory.expressionStatementNode(m.NodeFactory.functionExpressionNode([m.NodeFactory.identifierNode("x"),m.NodeFactory.identifierNode("y")],m.NodeFactory.blockStatementNode([m.NodeFactory.returnStatementNode(m.NodeFactory.logicalExpressionNode(this.operator,m.NodeFactory.identifierNode("x"),m.NodeFactory.identifierNode("y")))])));return g.NodeUtils.parentizeAst(e),[e]}}]),t}(p.AbstractCustomNode);d.__decorate([f.initializable(),d.__metadata("design:type",String)],N.prototype,"operator",void 0),N=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object])],N),t.LogicalExpressionFunctionNode=N},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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=d.__importDefault(r(18)),p=r(26),m=r(10),g=r(116),N=r(38),v=r(15),y=r(32),_=r(11),h=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r,n))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"initialize",value:function(e,t){this.appendEvent=e,this.callsControllerFunctionName=t}},{key:"getNodeStructure",value:function(){return _.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){return this.appendEvent===p.ObfuscationEvent.AfterObfuscation?y.JavaScriptObfuscator.obfuscate(f.default(g.SingleNodeCallControllerTemplate(),{singleNodeCallControllerFunctionName:this.callsControllerFunctionName}),Object.assign({},N.NO_ADDITIONAL_NODES_PRESET,{identifierNamesGenerator:this.options.identifierNamesGenerator,seed:this.options.seed})).getObfuscatedCode():f.default(g.SingleNodeCallControllerTemplate(),{singleNodeCallControllerFunctionName:this.callsControllerFunctionName})}}]),t}(v.AbstractCustomNode);d.__decorate([m.initializable(),d.__metadata("design:type",String)],h.prototype,"callsControllerFunctionName",void 0),d.__decorate([m.initializable(),d.__metadata("design:type",String)],h.prototype,"appendEvent",void 0),h=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object])],h),t.NodeCallsControllerFunctionNode=h},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SingleNodeCallControllerTemplate=function(){return"\n var {singleNodeCallControllerFunctionName} = (function(){\n var firstCall = true;\n \n return function (context, fn){\n var rfn = firstCall ? function(){\n if(fn){\n var res = fn.apply(context, arguments);\n fn = null;\n return res;\n }\n } : function(){}\n \n firstCall = false;\n \n return rfn;\n }\n })();\n "}},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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=d.__importDefault(r(18)),p=r(10),m=r(38),g=r(118),N=r(15),v=r(32),y=r(11),_=function(e){function t(e,r,n,a){var c;return(0,o.default)(this,t),(c=(0,i.default)(this,(0,s.default)(t).call(this,e,r,a))).escapeSequenceEncoder=n,c}return(0,c.default)(t,e),(0,a.default)(t,[{key:"initialize",value:function(e){this.callsControllerFunctionName=e}},{key:"getNodeStructure",value:function(){return y.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){return v.JavaScriptObfuscator.obfuscate(f.default(g.SelfDefendingTemplate(this.escapeSequenceEncoder),{selfDefendingFunctionName:this.identifierNamesGenerator.generate(),singleNodeCallControllerFunctionName:this.callsControllerFunctionName}),Object.assign({},m.NO_ADDITIONAL_NODES_PRESET,{identifierNamesGenerator:this.options.identifierNamesGenerator,seed:this.options.seed,unicodeEscapeSequence:!0})).getObfuscatedCode()}}]),t}(N.AbstractCustomNode);d.__decorate([p.initializable(),d.__metadata("design:type",String)],_.prototype,"callsControllerFunctionName",void 0),_=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IEscapeSequenceEncoder)),d.__param(3,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object,Object])],_),t.SelfDefendingUnicodeNode=_},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SelfDefendingTemplate=function(e){return"\n var {selfDefendingFunctionName} = {singleNodeCallControllerFunctionName}(this, function () {\n var func1 = function(){return 'dev';},\n func2 = function () {\n return 'window';\n };\n \n var test1 = function () {\n var regExp = new RegExp('".concat(e.encode("\\w+ *\\(\\) *{\\w+ *['|\"].+['|\"];? *}",!0),"');\n \n return !regExp.test(func1.toString());\n };\n \n var test2 = function () {\n var regExp = new RegExp('").concat(e.encode("(\\\\[x|u](\\w){2,4})+",!0),"');\n \n return regExp.test(func2.toString());\n };\n \n var recursiveFunc1 = function (string) {\n var i = ~-1 >> 1 + 255 % 0;\n \n if (string.indexOf('i' === i)) {\n recursiveFunc2(string)\n }\n };\n \n var recursiveFunc2 = function (string) {\n var i = ~-4 >> 1 + 255 % 0;\n \n if (string.indexOf((true+\"\")[3]) !== i) {\n recursiveFunc1(string)\n }\n };\n \n if (!test1()) {\n if (!test2()) {\n recursiveFunc1('indеxOf');\n } else {\n recursiveFunc1('indexOf');\n }\n } else {\n recursiveFunc1('indеxOf');\n }\n })\n \n {selfDefendingFunctionName}();\n ")}},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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=d.__importDefault(r(18)),p=r(23),m=r(37),g=r(10),N=r(38),v=r(120),y=r(45),_=r(121),h=r(122),b=r(123),S=r(124),I=r(125),C=r(15),F=r(32),O=r(11),j=function(e){function t(e,r,n,a){var c;return(0,o.default)(this,t),(c=(0,i.default)(this,(0,s.default)(t).call(this,e,r,a))).escapeSequenceEncoder=n,c}return(0,c.default)(t,e),(0,a.default)(t,[{key:"initialize",value:function(e,t){this.stringArrayName=e,this.stringArrayCallsWrapperName=t}},{key:"getNodeStructure",value:function(){return O.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){var e=this.getDecodeStringArrayTemplate();return F.JavaScriptObfuscator.obfuscate(f.default(S.StringArrayCallsWrapperTemplate(),{decodeNodeTemplate:e,stringArrayCallsWrapperName:this.stringArrayCallsWrapperName,stringArrayName:this.stringArrayName}),Object.assign({},N.NO_ADDITIONAL_NODES_PRESET,{identifierNamesGenerator:this.options.identifierNamesGenerator,seed:this.options.seed})).getObfuscatedCode()}},{key:"getDecodeStringArrayTemplate",value:function(){var e=this.options.target!==p.ObfuscationTarget.BrowserNoEval?this.getGlobalVariableTemplate():y.GlobalVariableNoEvalTemplate(),t=f.default(v.AtobTemplate(),{globalVariableTemplate:e}),r="",n="";switch(this.options.selfDefending&&(n=f.default(h.SelfDefendingTemplate(this.randomGenerator,this.escapeSequenceEncoder),{stringArrayCallsWrapperName:this.stringArrayCallsWrapperName,stringArrayName:this.stringArrayName})),this.options.stringArrayEncoding){case m.StringArrayEncoding.Rc4:r=f.default(I.StringArrayRc4DecodeNodeTemplate(this.randomGenerator),{atobPolyfill:t,rc4Polyfill:_.Rc4Template(),selfDefendingCode:n,stringArrayCallsWrapperName:this.stringArrayCallsWrapperName});break;case m.StringArrayEncoding.Base64:r=f.default(b.StringArrayBase64DecodeNodeTemplate(this.randomGenerator),{atobPolyfill:t,selfDefendingCode:n,stringArrayCallsWrapperName:this.stringArrayCallsWrapperName})}return r}}]),t}(C.AbstractCustomNode);d.__decorate([g.initializable(),d.__metadata("design:type",String)],j.prototype,"stringArrayName",void 0),d.__decorate([g.initializable(),d.__metadata("design:type",String)],j.prototype,"stringArrayCallsWrapperName",void 0),j=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IEscapeSequenceEncoder)),d.__param(3,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object,Object])],j),t.StringArrayCallsWrapper=j},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AtobTemplate=function(){return"\n (function () {\n {globalVariableTemplate}\n \n var chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';\n\n that.atob || (\n that.atob = function(input) {\n var str = String(input).replace(/=+$/, '');\n for (\n var bc = 0, bs, buffer, idx = 0, output = '';\n buffer = str.charAt(idx++);\n ~buffer && (bs = bc % 4 ? bs * 64 + buffer : buffer,\n bc++ % 4) ? output += String.fromCharCode(255 & bs >> (-2 * bc & 6)) : 0\n ) {\n buffer = chars.indexOf(buffer);\n }\n return output;\n });\n })();\n "}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Rc4Template=function(){return"\n var rc4 = function (str, key) {\n var s = [], j = 0, x, res = '', newStr = '';\n \n str = atob(str);\n \n for (var k = 0, length = str.length; k < length; k++) {\n newStr += '%' + ('00' + str.charCodeAt(k).toString(16)).slice(-2);\n }\n \n str = decodeURIComponent(newStr);\n \t \n\t for (var 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 (var 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 res += String.fromCharCode(str.charCodeAt(y) ^ s[(s[i] + s[j]) % 256]);\n }\n \n return res;\n }\n "}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SelfDefendingTemplate=function(e,t){var r=e.getRandomString(6),n=e.getRandomString(6),o=e.getRandomString(6),a=e.getRandomString(6),i=e.getRandomString(6),s=e.getRandomString(6),c=e.getRandomString(6),d=e.getRandomString(6),u=e.getRandomString(6);return"\n var StatesClass = function (".concat(r,") {\n this.").concat(r," = ").concat(r,";\n this.").concat(n," = [1, 0, 0];\n this.").concat(o," = function(){return 'newState';};\n this.").concat(a," = '").concat(t.encode("\\w+ *\\(\\) *{\\w+ *",!0),"';\n this.").concat(i," = '").concat(t.encode("['|\"].+['|\"];? *}",!0),"';\n };\n \n StatesClass.prototype.").concat(s," = function () {\n var regExp = new RegExp(this.").concat(a," + this.").concat(i,");\n var expression = regExp.test(this.").concat(o,".toString())\n ? --this.").concat(n,"[1]\n : --this.").concat(n,"[0];\n \n return this.").concat(c,"(expression);\n };\n \n StatesClass.prototype.").concat(c," = function (").concat(u,") {\n if (!Boolean(~").concat(u,")) {\n return ").concat(u,";\n }\n \n return this.").concat(d,"(this.").concat(r,");\n };\n\n StatesClass.prototype.").concat(d," = function (").concat(r,") {\n for (var i = 0, len = this.").concat(n,".length; i < len; i++) {\n this.").concat(n,".push(Math.round(Math.random()));\n len = this.").concat(n,".length;\n }\n \n return ").concat(r,"(this.").concat(n,"[0]);\n };\n\n new StatesClass({stringArrayCallsWrapperName}).").concat(s,"();\n ")}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayBase64DecodeNodeTemplate=function(e){var t=e.getRandomString(6),r=e.getRandomString(6),n=e.getRandomString(6);return"\n if ({stringArrayCallsWrapperName}.".concat(t," === undefined) {\n {atobPolyfill}\n \n {stringArrayCallsWrapperName}.").concat(r," = function (str) {\n var string = atob(str);\n var newStringChars = [];\n \n for (var i = 0, length = string.length; i < length; i++) {\n newStringChars += '%' + ('00' + string.charCodeAt(i).toString(16)).slice(-2);\n }\n \n return decodeURIComponent(newStringChars);\n };\n \n {stringArrayCallsWrapperName}.").concat(n," = {};\n \n {stringArrayCallsWrapperName}.").concat(t," = true;\n }\n \n var cachedValue = {stringArrayCallsWrapperName}.").concat(n,"[index];\n \n if (cachedValue === undefined) {\n {selfDefendingCode}\n \n value = {stringArrayCallsWrapperName}.").concat(r,"(value);\n {stringArrayCallsWrapperName}.").concat(n,"[index] = value;\n } else {\n value = cachedValue;\n }\n ")}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayCallsWrapperTemplate=function(){return"\n var {stringArrayCallsWrapperName} = function (index, key) {\n index = index - 0;\n \n var value = {stringArrayName}[index];\n \n {decodeNodeTemplate}\n \n return value;\n };\n "}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayRc4DecodeNodeTemplate=function(e){var t=e.getRandomString(6),r=e.getRandomString(6),n=e.getRandomString(6),o=e.getRandomString(6);return"\n if ({stringArrayCallsWrapperName}.".concat(t," === undefined) {\n {atobPolyfill}\n \n {rc4Polyfill}\n {stringArrayCallsWrapperName}.").concat(r," = rc4;\n \n {stringArrayCallsWrapperName}.").concat(n," = {};\n \n {stringArrayCallsWrapperName}.").concat(t," = true;\n }\n \n var cachedValue = {stringArrayCallsWrapperName}.").concat(n,"[index];\n\n if (cachedValue === undefined) {\n if ({stringArrayCallsWrapperName}.").concat(o," === undefined) {\n {selfDefendingCode}\n \n {stringArrayCallsWrapperName}.").concat(o," = true;\n }\n \n value = {stringArrayCallsWrapperName}.").concat(r,"(value, key);\n {stringArrayCallsWrapperName}.").concat(n,"[index] = value;\n } else {\n value = cachedValue;\n }\n ")}},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(39)),d=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var u=r(4),l=r(2),f=r(5),p=u.__importDefault(r(18)),m=r(10),g=r(127),N=r(15),v=r(11),y=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r,n))}return(0,d.default)(t,e),(0,a.default)(t,[{key:"initialize",value:function(e,t,r){this.stringArrayStorage=e,this.stringArrayName=t,this.stringArrayRotateValue=r}},{key:"getNode",value:function(){return this.stringArrayStorage.rotateArray(this.stringArrayRotateValue),(0,c.default)((0,s.default)(t.prototype),"getNode",this).call(this)}},{key:"getNodeStructure",value:function(){return v.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){return p.default(g.StringArrayTemplate(),{stringArrayName:this.stringArrayName,stringArray:this.stringArrayStorage.toString()})}}]),t}(N.AbstractCustomNode);u.__decorate([m.initializable(),u.__metadata("design:type",Object)],y.prototype,"stringArrayStorage",void 0),u.__decorate([m.initializable(),u.__metadata("design:type",String)],y.prototype,"stringArrayName",void 0),u.__decorate([m.initializable(),u.__metadata("design:type",Number)],y.prototype,"stringArrayRotateValue",void 0),y=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],y),t.StringArrayNode=y},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayTemplate=function(){return"\n var {stringArrayName} = [{stringArray}];\n "}},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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=d.__importDefault(r(18)),p=r(10),m=r(38),g=r(129),N=r(130),v=r(15),y=r(32),_=r(11),h=r(40),b=function(e){function t(e,r,n,a){var c;return(0,o.default)(this,t),(c=(0,i.default)(this,(0,s.default)(t).call(this,e,r,a))).escapeSequenceEncoder=n,c}return(0,c.default)(t,e),(0,a.default)(t,[{key:"initialize",value:function(e,t){this.stringArrayName=e,this.stringArrayRotateValue=t}},{key:"getNodeStructure",value:function(){return _.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){var e=this.identifierNamesGenerator.generate(),t=this.identifierNamesGenerator.generate(),r="";return r=this.options.selfDefending?f.default(g.SelfDefendingTemplate(this.escapeSequenceEncoder),{timesName:e,whileFunctionName:t}):"".concat(t,"(++").concat(e,")"),y.JavaScriptObfuscator.obfuscate(f.default(N.StringArrayRotateFunctionTemplate(),{code:r,timesName:e,stringArrayName:this.stringArrayName,stringArrayRotateValue:h.NumberUtils.toHex(this.stringArrayRotateValue),whileFunctionName:t}),Object.assign({},m.NO_ADDITIONAL_NODES_PRESET,{identifierNamesGenerator:this.options.identifierNamesGenerator,seed:this.options.seed})).getObfuscatedCode()}}]),t}(v.AbstractCustomNode);d.__decorate([p.initializable(),d.__metadata("design:type",String)],b.prototype,"stringArrayName",void 0),d.__decorate([p.initializable(),d.__metadata("design:type",Number)],b.prototype,"stringArrayRotateValue",void 0),b=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IEscapeSequenceEncoder)),d.__param(3,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object,Object])],b),t.StringArrayRotateFunctionNode=b},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SelfDefendingTemplate=function(e){return"\n var selfDefendingFunc = function () {\n var object = {\n data: {\n key: 'cookie',\n value: 'timeout'\n },\n setCookie: function (options, name, value, document) {\n document = document || {};\n \n var updatedCookie = name + \"=\" + value;\n\n var i = 0;\n \n for (var i = 0, len = options.length; i < len; i++) {\n var propName = options[i];\n \n updatedCookie += \"; \" + propName;\n \n var propValue = options[propName];\n \n options.push(propValue);\n len = options.length;\n \n if (propValue !== true) {\n updatedCookie += \"=\" + propValue;\n }\n }\n\n document['cookie'] = updatedCookie;\n },\n removeCookie: function(){return 'dev';},\n getCookie: function (document, name) {\n document = document || function (value) { return value };\n var matches = document(new RegExp(\n \"(?:^|; )\" + name.replace(/([.$?*|{}()[]\\/+^])/g, '\\$1') + \"=([^;]*)\"\n ));\n \n var func = function (param1, param2) {\n param1(++param2);\n };\n \n func({whileFunctionName}, {timesName});\n \n return matches ? decodeURIComponent(matches[1]) : undefined;\n }\n };\n \n var test1 = function () {\n var regExp = new RegExp('".concat(e.encode("\\w+ *\\(\\) *{\\w+ *['|\"].+['|\"];? *}",!0),"');\n \n return regExp.test(object.removeCookie.toString());\n };\n \n object['updateCookie'] = test1;\n \n var cookie = '';\n var result = object['updateCookie']();\n \n if (!result) {\n object['setCookie'](['*'], 'counter', 1);\n } else if (result) {\n cookie = object['getCookie'](null, 'counter');\n } else {\n object['removeCookie']();\n }\n };\n \n selfDefendingFunc();\n ")}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayRotateFunctionTemplate=function(){return"\n (function (array, {timesName}) {\n var {whileFunctionName} = function (times) {\n while (--times) {\n array['push'](array['shift']());\n }\n };\n \n {code}\n })({stringArrayName}, 0x{stringArrayRotateValue});\n "}},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(10),p=r(15),m=r(14),g=r(11),N=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r,n))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"initialize",value:function(e,t){this.controlFlowStorageName=e,this.controlFlowStorageKey=t}},{key:"getNodeStructure",value:function(){var e=m.NodeFactory.expressionStatementNode(m.NodeFactory.memberExpressionNode(m.NodeFactory.identifierNode(this.controlFlowStorageName),m.NodeFactory.identifierNode(this.controlFlowStorageKey)));return g.NodeUtils.parentizeAst(e),[e]}}]),t}(p.AbstractCustomNode);d.__decorate([f.initializable(),d.__metadata("design:type",String)],N.prototype,"controlFlowStorageKey",void 0),d.__decorate([f.initializable(),d.__metadata("design:type",String)],N.prototype,"controlFlowStorageName",void 0),N=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object])],N),t.StringLiteralControlFlowStorageCallNode=N},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(10),p=r(15),m=r(14),g=function(e){function t(e,r,n){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e,r,n))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"initialize",value:function(e){this.literalValue=e}},{key:"getNodeStructure",value:function(){return[m.NodeFactory.expressionStatementNode(m.NodeFactory.literalNode(this.literalValue))]}}]),t}(p.AbstractCustomNode);d.__decorate([f.initializable(),d.__metadata("design:type",String)],g.prototype,"literalValue",void 0),g=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),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.StringLiteralNode=g},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(2);t.finalizingTransformersModule=new n.ContainerModule(function(e){})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(2),o=r(5),a=r(35),i=r(135),s=r(136);t.generatorsModule=new n.ContainerModule(function(e){e(o.ServiceIdentifiers.IIdentifierNamesGenerator).to(i.HexadecimalIdentifierNamesGenerator).inSingletonScope().whenTargetNamed(a.IdentifierNamesGenerator.HexadecimalIdentifierNamesGenerator),e(o.ServiceIdentifiers.IIdentifierNamesGenerator).to(s.MangledIdentifierNamesGenerator).inSingletonScope().whenTargetNamed(a.IdentifierNamesGenerator.MangledIdentifierNamesGenerator),e(o.ServiceIdentifiers.Factory__IIdentifierNamesGenerator).toFactory(function(e){var t=null;return function(r){if(t)return t;var n;switch(r.identifierNamesGenerator){case a.IdentifierNamesGenerator.MangledIdentifierNamesGenerator:n=e.container.getNamed(o.ServiceIdentifiers.IIdentifierNamesGenerator,a.IdentifierNamesGenerator.MangledIdentifierNamesGenerator);break;case a.IdentifierNamesGenerator.HexadecimalIdentifierNamesGenerator:default:n=e.container.getNamed(o.ServiceIdentifiers.IIdentifierNamesGenerator,a.IdentifierNamesGenerator.HexadecimalIdentifierNamesGenerator)}return t=n,n}})})},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=r(5),p=r(56),m=r(40),g=r(34),N=d=function(e){function t(e,r){var n;return(0,o.default)(this,t),(n=(0,i.default)(this,(0,s.default)(t).call(this,e,r))).randomVariableNameSet=new Set,n}return(0,c.default)(t,e),(0,a.default)(t,[{key:"generate",value:function(e){var t=this.randomGenerator.getRandomInteger(1e4,99999999),r=m.NumberUtils.toHex(t),n=g.Utils.hexadecimalPrefix.length+1,o=e?e-n:d.baseIdentifierNameLength,a=r.substr(0,o),i="_".concat(g.Utils.hexadecimalPrefix).concat(a);return this.randomVariableNameSet.has(i)?this.generate(e):(this.randomVariableNameSet.add(i),i)}},{key:"generateWithPrefix",value:function(e){var t=this.generate(e);return"".concat(this.options.identifiersPrefix).concat(t).replace("__","_")}}]),t}(p.AbstractIdentifierNamesGenerator);N.baseIdentifierNameLength=6,N=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(1,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Object,Object])],N),t.HexadecimalIdentifierNamesGenerator=N},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(39)),d=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var u,l=r(4),f=r(2),p=r(5),m=r(56),g=u=function(e){function t(e,r){var n;return(0,o.default)(this,t),(n=(0,i.default)(this,(0,s.default)(t).call(this,e,r))).previousMangledName=u.initMangledNameCharacter,n}return(0,d.default)(t,e),(0,a.default)(t,[{key:"generate",value:function(e){var t=this.generateNewMangledName(this.previousMangledName);return this.previousMangledName=t,t}},{key:"generateWithPrefix",value:function(e){var t=this.options.identifiersPrefix?"".concat(this.options.identifiersPrefix,"_"):"",r=this.generate(e);return"".concat(t).concat(r)}},{key:"isValidIdentifierName",value:function(e){return(0,c.default)((0,s.default)(t.prototype),"isValidIdentifierName",this).call(this,e)&&!u.reservedNames.includes(e)}},{key:"generateNewMangledName",value:function(e){var t=function(e){var t=u.nameSequence,r=e.length,n=function(e){return"0".repeat(e)},o=r-1;do{var a=e.charAt(o),i=t.indexOf(a);if(i!==t.length-1)return e.substring(0,o)+t[i+1]+n(r-(o+1));--o}while(o>=0);return"a".concat(n(r))},r=t(e);return this.isValidIdentifierName(r)||(r=this.generateNewMangledName(r)),r}}]),t}(m.AbstractIdentifierNamesGenerator);g.initMangledNameCharacter="9",g.nameSequence="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""),g.reservedNames=["byte","case","char","do","else","enum","eval","for","goto","if","in","int","let","long","new","null","this","true","try","var","void","with"],g=u=l.__decorate([f.injectable(),l.__param(0,f.inject(p.ServiceIdentifiers.IRandomGenerator)),l.__param(1,f.inject(p.ServiceIdentifiers.IOptions)),l.__metadata("design:paramtypes",[Object,Object])],g),t.MangledIdentifierNamesGenerator=g},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(20),o=r(2),a=r(5);t.nodeTransformersModule=new o.ContainerModule(function(e){e(a.ServiceIdentifiers.Factory__INodeTransformer).toFactory(n.InversifyContainerFacade.getCacheFactory(a.ServiceIdentifiers.INodeTransformer))})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(20),o=r(2),a=r(5),i=r(22),s=r(57),c=r(29),d=r(139),u=r(140),l=r(141),f=r(142),p=r(143),m=r(144),g=r(145),N=r(146),v=r(147),y=r(148),_=r(149),h=r(150);t.obfuscatingTransformersModule=new o.ContainerModule(function(e){e(a.ServiceIdentifiers.INodeTransformer).to(l.CatchClauseTransformer).whenTargetNamed(c.NodeTransformer.CatchClauseTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(f.ClassDeclarationTransformer).whenTargetNamed(c.NodeTransformer.ClassDeclarationTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(p.FunctionDeclarationTransformer).whenTargetNamed(c.NodeTransformer.FunctionDeclarationTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(m.FunctionTransformer).whenTargetNamed(c.NodeTransformer.FunctionTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(g.ImportDeclarationTransformer).whenTargetNamed(c.NodeTransformer.ImportDeclarationTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(N.LabeledStatementTransformer).whenTargetNamed(c.NodeTransformer.LabeledStatementTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(v.LiteralTransformer).whenTargetNamed(c.NodeTransformer.LiteralTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(h.VariableDeclarationTransformer).whenTargetNamed(c.NodeTransformer.VariableDeclarationTransformer),e(a.ServiceIdentifiers.IObfuscatingReplacer).to(u.BooleanLiteralObfuscatingReplacer).whenTargetNamed(s.LiteralObfuscatingReplacer.BooleanLiteralObfuscatingReplacer),e(a.ServiceIdentifiers.IObfuscatingReplacer).to(y.NumberLiteralObfuscatingReplacer).whenTargetNamed(s.LiteralObfuscatingReplacer.NumberLiteralObfuscatingReplacer),e(a.ServiceIdentifiers.IObfuscatingReplacer).to(_.StringLiteralObfuscatingReplacer).whenTargetNamed(s.LiteralObfuscatingReplacer.StringLiteralObfuscatingReplacer),e(a.ServiceIdentifiers.IIdentifierObfuscatingReplacer).to(d.BaseIdentifierObfuscatingReplacer).whenTargetNamed(i.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer),e(a.ServiceIdentifiers.Factory__IObfuscatingReplacer).toFactory(n.InversifyContainerFacade.getCacheFactory(a.ServiceIdentifiers.IObfuscatingReplacer)),e(a.ServiceIdentifiers.Factory__IIdentifierObfuscatingReplacer).toFactory(n.InversifyContainerFacade.getCacheFactory(a.ServiceIdentifiers.IIdentifierObfuscatingReplacer))})},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(41),p=r(14),m=function(e){function t(e,r){var n;return(0,o.default)(this,t),(n=(0,i.default)(this,(0,s.default)(t).call(this,r))).blockScopesMap=new Map,n.identifierNamesGenerator=e(r),n}return(0,c.default)(t,e),(0,a.default)(t,[{key:"replace",value:function(e,t){if(this.blockScopesMap.has(t)){var r=this.blockScopesMap.get(t);r.has(e)&&(e=r.get(e))}return p.NodeFactory.identifierNode(e)}},{key:"storeGlobalName",value:function(e,t){if(!this.isReservedName(e)){var r=this.identifierNamesGenerator.generateWithPrefix();this.blockScopesMap.has(t)||this.blockScopesMap.set(t,new Map),this.blockScopesMap.get(t).set(e,r)}}},{key:"storeLocalName",value:function(e,t){if(!this.isReservedName(e)){var r=this.identifierNamesGenerator.generate();this.blockScopesMap.has(t)||this.blockScopesMap.set(t,new Map),this.blockScopesMap.get(t).set(e,r)}}},{key:"isReservedName",value:function(e){return!!this.options.reservedStrings.length&&this.options.reservedNames.some(function(t){return null!==new RegExp(t,"g").exec(e)})}}]),t}(f.AbstractObfuscatingReplacer);m=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),d.__param(1,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object])],m),t.BaseIdentifierObfuscatingReplacer=m},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=r(5),p=r(41),m=r(14),g=d=function(e){function t(e){return(0,o.default)(this,t),(0,i.default)(this,(0,s.default)(t).call(this,e))}return(0,c.default)(t,e),(0,a.default)(t,[{key:"replace",value:function(e){return e?d.getTrueUnaryExpressionNode():d.getFalseUnaryExpressionNode()}}],[{key:"getTrueUnaryExpressionNode",value:function(){return m.NodeFactory.unaryExpressionNode("!",d.getFalseUnaryExpressionNode())}},{key:"getFalseUnaryExpressionNode",value:function(){return m.NodeFactory.unaryExpressionNode("!",m.NodeFactory.arrayExpressionNode())}}]),t}(p.AbstractObfuscatingReplacer);g=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Object])],g),t.BooleanLiteralObfuscatingReplacer=g},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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=d.__importStar(r(16)),p=r(22),m=r(12),g=r(13),N=r(9),v=r(27),y=r(17),_=function(e){function t(e,r,n){var a;return(0,o.default)(this,t),(a=(0,i.default)(this,(0,s.default)(t).call(this,r,n))).identifierObfuscatingReplacer=e(p.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer),a}return(0,c.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case m.TransformationStage.Obfuscating:return{enter:function(e,r){if(r&&N.NodeGuards.isCatchClauseNode(e))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){var r=v.NodeLexicalScopeUtils.getLexicalScope(e);return r?(this.storeCatchClauseParam(e,r),this.replaceCatchClauseParam(e,r),e):e}},{key:"storeCatchClauseParam",value:function(e,t){N.NodeGuards.isIdentifierNode(e.param)&&this.identifierObfuscatingReplacer.storeLocalName(e.param.name,t)}},{key:"replaceCatchClauseParam",value:function(e,t){var r=this;f.replace(e,{enter:function(e,n){if(n&&N.NodeGuards.isReplaceableIdentifierNode(e,n)){var o=r.identifierObfuscatingReplacer.replace(e.name,t).name;e.name!==o&&(e.name=o,y.NodeMetadata.set(e,{renamedIdentifier:!0}))}}})}}]),t}(g.AbstractNodeTransformer);_=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierObfuscatingReplacer)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object])],_),t.CatchClauseTransformer=_},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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=d.__importStar(r(16)),p=r(22),m=r(19),g=r(12),N=r(13),v=r(9),y=r(27),_=r(17),h=function(e){function t(e,r,n){var a;return(0,o.default)(this,t),(a=(0,i.default)(this,(0,s.default)(t).call(this,r,n))).replaceableIdentifiers=new Map,a.identifierObfuscatingReplacer=e(p.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer),a}return(0,c.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case g.TransformationStage.Obfuscating:return{enter:function(e,r){if(r&&v.NodeGuards.isClassDeclarationNode(e)&&!v.NodeGuards.isExportNamedDeclarationNode(r))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){var r=y.NodeLexicalScopeUtils.getLexicalScope(e);if(!r)return e;var n=r.type===m.NodeType.Program;return!this.options.renameGlobals&&n?e:(this.storeClassName(e,r,n),this.replaceableIdentifiers.has(r)?this.replaceScopeCachedIdentifiers(e,r):this.replaceScopeIdentifiers(r),e)}},{key:"storeClassName",value:function(e,t,r){r?this.identifierObfuscatingReplacer.storeGlobalName(e.id.name,t):this.identifierObfuscatingReplacer.storeLocalName(e.id.name,t)}},{key:"replaceScopeCachedIdentifiers",value:function(e,t){var r=this.replaceableIdentifiers.get(t).get(e.id.name);if(r)for(var n=r.length,o=0;o2&&void 0!==arguments[2]?arguments[2]:new Set,o={enter:function(o,a){if(v.NodeGuards.isFunctionNode(o)&&o!==e)return r.replaceFunctionParams(o,t,new Set(n)),p.VisitorOption.Skip;if(d.isProhibitedIdentifierOfShorthandPropertyNode(o))n.add(o.key.name);else if(a&&v.NodeGuards.isReplaceableIdentifierNode(o,a)&&!_.NodeMetadata.isRenamedIdentifier(o)&&!n.has(o.name)){if(r.isGlobalFunctionDeclarationIdentifier(o,a))return;var i=r.identifierObfuscatingReplacer.replace(o.name,t).name;o.name!==i&&(o.name=i,_.NodeMetadata.set(o,{renamedIdentifier:!0}))}}};p.replace(e,o)}}],[{key:"isProhibitedIdentifierOfPropertyNode",value:function(e,t){return v.NodeGuards.isIdentifierNode(e)&&!!t&&v.NodeGuards.isPropertyNode(t)&&t.key===e}},{key:"isProhibitedIdentifierOfShorthandPropertyNode",value:function(e){return v.NodeGuards.isPropertyNode(e)&&e.shorthand&&v.NodeGuards.isIdentifierNode(e.key)}}]),t}(N.AbstractNodeTransformer);b=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IIdentifierObfuscatingReplacer)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],b),t.FunctionTransformer=b},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=r(5),p=u.__importStar(r(16)),m=r(22),g=r(12),N=r(13),v=r(9),y=r(27),_=r(17),h=d=function(e){function t(e,r,n){var a;return(0,o.default)(this,t),(a=(0,i.default)(this,(0,s.default)(t).call(this,r,n))).replaceableIdentifiers=new Map,a.identifierObfuscatingReplacer=e(m.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer),a}return(0,c.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case g.TransformationStage.Obfuscating:return{enter:function(e,r){if(r&&v.NodeGuards.isImportDeclarationNode(e))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){var r=y.NodeLexicalScopeUtils.getLexicalScope(e);return r?(this.storeImportSpecifierNames(e,r),this.replaceableIdentifiers.has(r)?this.replaceScopeCachedIdentifiers(r):this.replaceScopeIdentifiers(r),e):e}},{key:"storeImportSpecifierNames",value:function(e,t){var r=this;e.specifiers.forEach(function(e){d.isProhibitedImportSpecifierNode(e)||r.identifierObfuscatingReplacer.storeGlobalName(e.local.name,t)})}},{key:"replaceScopeCachedIdentifiers",value:function(e){var t=this;this.replaceableIdentifiers.get(e).forEach(function(r){var n=t.identifierObfuscatingReplacer.replace(r.name,e);r.name=n.name,_.NodeMetadata.set(r,{renamedIdentifier:!0})})}},{key:"replaceScopeIdentifiers",value:function(e){var t=this,r=[];p.replace(e,{enter:function(n,o){if(o&&v.NodeGuards.isReplaceableIdentifierNode(n,o)&&!_.NodeMetadata.isRenamedIdentifier(n)){var a=t.identifierObfuscatingReplacer.replace(n.name,e).name;n.name!==a?(n.name=a,_.NodeMetadata.set(n,{renamedIdentifier:!0})):r.push(n)}}}),this.replaceableIdentifiers.set(e,r)}}],[{key:"isProhibitedImportSpecifierNode",value:function(e){return v.NodeGuards.isImportSpecifierNode(e)&&e.imported.name===e.local.name}}]),t}(N.AbstractNodeTransformer);h=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IIdentifierObfuscatingReplacer)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],h),t.ImportDeclarationTransformer=h},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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=d.__importStar(r(16)),p=r(22),m=r(12),g=r(13),N=r(9),v=r(27),y=function(e){function t(e,r,n){var a;return(0,o.default)(this,t),(a=(0,i.default)(this,(0,s.default)(t).call(this,r,n))).identifierObfuscatingReplacer=e(p.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer),a}return(0,c.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case m.TransformationStage.Obfuscating:return{enter:function(e,r){if(r&&N.NodeGuards.isLabeledStatementNode(e))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){var r=v.NodeLexicalScopeUtils.getLexicalScope(e);return r?(this.storeLabeledStatementName(e,r),this.replaceLabeledStatementName(e,r),e):e}},{key:"storeLabeledStatementName",value:function(e,t){this.identifierObfuscatingReplacer.storeLocalName(e.label.name,t)}},{key:"replaceLabeledStatementName",value:function(e,t){var r=this;f.replace(e,{enter:function(e,n){if(n&&N.NodeGuards.isLabelIdentifierNode(e,n)){var o=r.identifierObfuscatingReplacer.replace(e.name,t);e.name=o.name}}})}}]),t}(g.AbstractNodeTransformer);y=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.Factory__IIdentifierObfuscatingReplacer)),d.__param(1,u.inject(l.ServiceIdentifiers.IRandomGenerator)),d.__param(2,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Function,Object,Object])],y),t.LabeledStatementTransformer=y},function(e,t,r){"use strict";var n=r(0),o=n(r(50)),a=n(r(1)),i=n(r(3)),s=n(r(6)),c=n(r(7)),d=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var u=r(4),l=r(2),f=r(5),p=r(57),m=r(12),g=r(13),N=r(9),v=r(17),y=r(11),_=function(e){function t(e,r,n){var o;return(0,a.default)(this,t),(o=(0,s.default)(this,(0,c.default)(t).call(this,r,n))).literalObfuscatingReplacerFactory=e,o}return(0,d.default)(t,e),(0,i.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case m.TransformationStage.Obfuscating:return{enter:function(e,r){if(r&&N.NodeGuards.isLiteralNode(e)&&!v.NodeMetadata.isReplacedLiteral(e))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){if(this.isProhibitedNode(e,t))return e;var r;switch((0,o.default)(e.value)){case"boolean":r=this.literalObfuscatingReplacerFactory(p.LiteralObfuscatingReplacer.BooleanLiteralObfuscatingReplacer).replace(e.value);break;case"number":r=this.literalObfuscatingReplacerFactory(p.LiteralObfuscatingReplacer.NumberLiteralObfuscatingReplacer).replace(e.value);break;case"string":r=this.literalObfuscatingReplacerFactory(p.LiteralObfuscatingReplacer.StringLiteralObfuscatingReplacer).replace(e.value);break;default:r=e}return y.NodeUtils.parentizeNode(r,t),r}},{key:"isProhibitedNode",value:function(e,t){return!(!N.NodeGuards.isPropertyNode(t)||t.key!==e)||!!N.NodeGuards.isImportDeclarationNode(t)}}]),t}(g.AbstractNodeTransformer);_=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.Factory__IObfuscatingReplacer)),u.__param(1,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(2,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Function,Object,Object])],_),t.LiteralTransformer=_},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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(41),p=r(14),m=r(40),g=r(34),N=function(e){function t(e){var r;return(0,o.default)(this,t),(r=(0,i.default)(this,(0,s.default)(t).call(this,e))).numberLiteralCache=new Map,r}return(0,c.default)(t,e),(0,a.default)(t,[{key:"replace",value:function(e){var t;return this.numberLiteralCache.has(e)?t=this.numberLiteralCache.get(e):(t=m.NumberUtils.isCeil(e)?"".concat(g.Utils.hexadecimalPrefix).concat(m.NumberUtils.toHex(e)):String(e),this.numberLiteralCache.set(e,t)),p.NodeFactory.literalNode(e,t)}}]),t}(f.AbstractObfuscatingReplacer);N=d.__decorate([u.injectable(),d.__param(0,u.inject(l.ServiceIdentifiers.IOptions)),d.__metadata("design:paramtypes",[Object])],N),t.NumberLiteralObfuscatingReplacer=N},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3)),i=n(r(6)),s=n(r(7)),c=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var d,u=r(4),l=r(2),f=r(5),p=r(37),m=r(41),g=r(17),N=r(14),v=r(40),y=r(34),_=d=function(e){function t(e,r,n,a,c){var u;return(0,o.default)(this,t),(u=(0,i.default)(this,(0,s.default)(t).call(this,c))).nodesCache=new Map,u.stringLiteralHexadecimalIndexCache=new Map,u.stringArrayStorage=e,u.escapeSequenceEncoder=r,u.randomGenerator=n,u.cryptUtils=a,u.rc4Keys=u.randomGenerator.getRandomGenerator().n(function(){return u.randomGenerator.getRandomGenerator().string({length:d.rc4KeyLength})},d.rc4KeysCount),u}return(0,c.default)(t,e),(0,a.default)(t,[{key:"replace",value:function(e){if(this.isReservedString(e))return this.replaceWithReservedLiteralNode(e);var t=this.canUseStringArray(e),r="".concat(e,"-").concat(String(t));if(this.nodesCache.has(r)&&this.options.stringArrayEncoding!==p.StringArrayEncoding.Rc4)return this.nodesCache.get(r);var n=t?this.replaceWithStringArrayCallNode(e):this.replaceWithLiteralNode(e);return this.nodesCache.set(r,n),n}},{key:"canUseStringArray",value:function(e){return this.options.stringArray&&e.length>=d.minimumLengthForStringArray&&this.randomGenerator.getMathRandom()<=this.options.stringArrayThreshold}},{key:"getStringArrayHexadecimalIndex",value:function(e,t){if(this.stringLiteralHexadecimalIndexCache.has(e))return{fromCache:!0,index:this.stringLiteralHexadecimalIndexCache.get(e)};var r=v.NumberUtils.toHex(t),n="".concat(y.Utils.hexadecimalPrefix).concat(r);return this.stringLiteralHexadecimalIndexCache.set(e,n),{fromCache:!1,index:n}}},{key:"getEncodedValue",value:function(e){var t,r=null;switch(this.options.stringArrayEncoding){case p.StringArrayEncoding.Rc4:r=this.randomGenerator.getRandomGenerator().pickone(this.rc4Keys),t=this.cryptUtils.btoa(this.cryptUtils.rc4(e,r));break;case p.StringArrayEncoding.Base64:t=this.cryptUtils.btoa(e);break;default:t=e}return{encodedValue:t,key:r}}},{key:"replaceWithLiteralNode",value:function(e){return N.NodeFactory.literalNode(this.escapeSequenceEncoder.encode(e,this.options.unicodeEscapeSequence))}},{key:"replaceWithReservedLiteralNode",value:function(e){return N.NodeFactory.literalNode(this.escapeSequenceEncoder.encode(e,!1))}},{key:"replaceWithStringArrayCallNode",value:function(e){var t=this.getEncodedValue(e),r=t.encodedValue,n=t.key,o=this.escapeSequenceEncoder.encode(r,this.options.unicodeEscapeSequence),a=this.stringArrayStorage.getLength(),i=this.stringArrayStorage.getStorageId().split("|")[1],s=this.getStringArrayHexadecimalIndex(o,a),c=s.fromCache,u=s.index;c||this.stringArrayStorage.set(a,o);var l=[d.getHexadecimalLiteralNode(u)];n&&l.push(d.getRc4KeyLiteralNode(this.escapeSequenceEncoder.encode(n,this.options.unicodeEscapeSequence)));var f=N.NodeFactory.identifierNode(i);return g.NodeMetadata.set(f,{renamedIdentifier:!0}),N.NodeFactory.callExpressionNode(f,l)}},{key:"isReservedString",value:function(e){return!!this.options.reservedStrings.length&&this.options.reservedStrings.some(function(t){return null!==new RegExp(t,"g").exec(e)})}}],[{key:"getHexadecimalLiteralNode",value:function(e){var t=N.NodeFactory.literalNode(e);return g.NodeMetadata.set(t,{replacedLiteral:!0}),t}},{key:"getRc4KeyLiteralNode",value:function(e){var t=N.NodeFactory.literalNode(e);return g.NodeMetadata.set(t,{replacedLiteral:!0}),t}}]),t}(m.AbstractObfuscatingReplacer);_.minimumLengthForStringArray=3,_.rc4KeyLength=4,_.rc4KeysCount=50,_=d=u.__decorate([l.injectable(),u.__param(0,l.inject(f.ServiceIdentifiers.TStringArrayStorage)),u.__param(1,l.inject(f.ServiceIdentifiers.IEscapeSequenceEncoder)),u.__param(2,l.inject(f.ServiceIdentifiers.IRandomGenerator)),u.__param(3,l.inject(f.ServiceIdentifiers.ICryptUtils)),u.__param(4,l.inject(f.ServiceIdentifiers.IOptions)),u.__metadata("design:paramtypes",[Object,Object,Object,Object,Object])],_),t.StringLiteralObfuscatingReplacer=_},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=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=d.__importStar(r(16)),p=r(22),m=r(19),g=r(12),N=r(13),v=r(9),y=r(27),_=r(151),h=r(17),b=function(e){function t(e,r,n){var a;return(0,o.default)(this,t),(a=(0,i.default)(this,(0,s.default)(t).call(this,r,n))).replaceableIdentifiers=new Map,a.identifierObfuscatingReplacer=e(p.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer),a}return(0,c.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case g.TransformationStage.Obfuscating:return{enter:function(e,r){if(r&&v.NodeGuards.isVariableDeclarationNode(e)&&!v.NodeGuards.isExportNamedDeclarationNode(r))return t.transformNode(e,r)}};default:return null}}},{key:"transformNode",value:function(e,t){var r="var"===e.kind?y.NodeLexicalScopeUtils.getLexicalScope(e):_.NodeBlockLexicalScopeUtils.getLexicalScope(e);if(!r)return e;var n=r.type===m.NodeType.Program;if(!this.options.renameGlobals&&n)return e;var o="var"===e.kind?r:t;return this.storeVariableNames(e,r,n),this.replaceableIdentifiers.has(o)?this.replaceScopeCachedIdentifiers(e,r,o):this.replaceScopeIdentifiers(o,r),e}},{key:"storeVariableNames",value:function(e,t,r){var n=this;this.traverseDeclarationIdentifiers(e,function(e){r?n.identifierObfuscatingReplacer.storeGlobalName(e.name,t):n.identifierObfuscatingReplacer.storeLocalName(e.name,t)})}},{key:"replaceScopeCachedIdentifiers",value:function(e,t,r){var n=this,o=this.replaceableIdentifiers.get(r),a=[];this.traverseDeclarationIdentifiers(e,function(e){a.push(e.name)}),a.forEach(function(e){var r=o.get(e);if(r)for(var a=r.length,i=0;i1&&void 0!==arguments[1]?arguments[1]:1/0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;if(n.length>=r)return n;var a=t.parentNode;if(!a)throw new ReferenceError("`parentNode` property of given node is `undefined`");return i.NodeGuards.isNodeWithBlockLexicalScope(t)&&n.push(t),t!==a?e.getLexicalScopesRecursive(a,r,n,++o):n}}]),e}();t.NodeBlockLexicalScopeUtils=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(2),o=r(5),a=r(153),i=r(156);t.optionsModule=new n.ContainerModule(function(e){e(o.ServiceIdentifiers.IOptions).to(a.Options).inSingletonScope(),e(o.ServiceIdentifiers.IOptionsNormalizer).to(i.OptionsNormalizer).inSingletonScope()})},function(e,t,r){"use strict";var n=r(0)(r(1));Object.defineProperty(t,"__esModule",{value:!0});var o,a=r(4),i=r(2),s=r(5),c=r(154),d=r(35),u=r(23),l=r(36),f=r(37),p=r(46),m=r(155),g=o=function e(t,r){(0,n.default)(this,e),Object.assign(this,p.DEFAULT_PRESET,t);var a=c.validateSync(this,o.validatorOptions);if(a.length)throw new ReferenceError("Validation failed. errors:\n".concat(m.ValidationErrorsFormatter.format(a)));Object.assign(this,r.normalize(this))};g.validatorOptions={validationError:{target:!1}},a.__decorate([c.IsBoolean(),a.__metadata("design:type",Boolean)],g.prototype,"compact",void 0),a.__decorate([c.IsBoolean(),a.__metadata("design:type",Boolean)],g.prototype,"controlFlowFlattening",void 0),a.__decorate([c.IsNumber(),c.Min(0),c.Max(1),a.__metadata("design:type",Number)],g.prototype,"controlFlowFlatteningThreshold",void 0),a.__decorate([c.IsBoolean(),a.__metadata("design:type",Boolean)],g.prototype,"deadCodeInjection",void 0),a.__decorate([c.IsNumber(),a.__metadata("design:type",Number)],g.prototype,"deadCodeInjectionThreshold",void 0),a.__decorate([c.IsBoolean(),a.__metadata("design:type",Boolean)],g.prototype,"debugProtection",void 0),a.__decorate([c.IsBoolean(),a.__metadata("design:type",Boolean)],g.prototype,"debugProtectionInterval",void 0),a.__decorate([c.IsBoolean(),a.__metadata("design:type",Boolean)],g.prototype,"disableConsoleOutput",void 0),a.__decorate([c.IsArray(),c.ArrayUnique(),c.IsString({each:!0}),a.__metadata("design:type",Array)],g.prototype,"domainLock",void 0),a.__decorate([c.IsIn([d.IdentifierNamesGenerator.HexadecimalIdentifierNamesGenerator,d.IdentifierNamesGenerator.MangledIdentifierNamesGenerator]),a.__metadata("design:type",String)],g.prototype,"identifierNamesGenerator",void 0),a.__decorate([c.IsString(),a.__metadata("design:type",String)],g.prototype,"identifiersPrefix",void 0),a.__decorate([c.IsString(),a.__metadata("design:type",String)],g.prototype,"inputFileName",void 0),a.__decorate([c.IsBoolean(),a.__metadata("design:type",Boolean)],g.prototype,"log",void 0),a.__decorate([c.IsBoolean(),a.__metadata("design:type",Boolean)],g.prototype,"renameGlobals",void 0),a.__decorate([c.IsArray(),c.ArrayUnique(),c.IsString({each:!0}),a.__metadata("design:type",Array)],g.prototype,"reservedNames",void 0),a.__decorate([c.IsArray(),c.ArrayUnique(),c.IsString({each:!0}),a.__metadata("design:type",Array)],g.prototype,"reservedStrings",void 0),a.__decorate([c.IsBoolean(),a.__metadata("design:type",Boolean)],g.prototype,"rotateStringArray",void 0),a.__decorate([c.IsNumber(),a.__metadata("design:type",Number)],g.prototype,"seed",void 0),a.__decorate([c.IsBoolean(),a.__metadata("design:type",Boolean)],g.prototype,"selfDefending",void 0),a.__decorate([c.IsBoolean(),a.__metadata("design:type",Boolean)],g.prototype,"sourceMap",void 0),a.__decorate([c.IsString(),c.ValidateIf(function(e){return Boolean(e.sourceMapBaseUrl)}),c.IsUrl({require_protocol:!0,require_tld:!1,require_valid_protocol:!0}),a.__metadata("design:type",String)],g.prototype,"sourceMapBaseUrl",void 0),a.__decorate([c.IsString(),a.__metadata("design:type",String)],g.prototype,"sourceMapFileName",void 0),a.__decorate([c.IsIn([l.SourceMapMode.Inline,l.SourceMapMode.Separate]),a.__metadata("design:type",String)],g.prototype,"sourceMapMode",void 0),a.__decorate([c.IsBoolean(),a.__metadata("design:type",Boolean)],g.prototype,"stringArray",void 0),a.__decorate([c.IsIn([!0,!1,f.StringArrayEncoding.Base64,f.StringArrayEncoding.Rc4]),a.__metadata("design:type",Object)],g.prototype,"stringArrayEncoding",void 0),a.__decorate([c.IsNumber(),c.Min(0),c.Max(1),a.__metadata("design:type",Number)],g.prototype,"stringArrayThreshold",void 0),a.__decorate([c.IsIn([u.ObfuscationTarget.Browser,u.ObfuscationTarget.BrowserNoEval,u.ObfuscationTarget.Node]),a.__metadata("design:type",String)],g.prototype,"target",void 0),a.__decorate([c.IsBoolean(),a.__metadata("design:type",Boolean)],g.prototype,"transformObjectKeys",void 0),a.__decorate([c.IsBoolean(),a.__metadata("design:type",Boolean)],g.prototype,"unicodeEscapeSequence",void 0),g=o=a.__decorate([i.injectable(),a.__param(0,i.inject(s.ServiceIdentifiers.TInputOptions)),a.__param(1,i.inject(s.ServiceIdentifiers.IOptionsNormalizer)),a.__metadata("design:paramtypes",[Object,Object])],g),t.Options=g},function(e,t){e.exports=require("class-validator")},function(e,t,r){"use strict";var n=r(0),o=n(r(28)),a=n(r(1)),i=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(){(0,a.default)(this,e)}return(0,i.default)(e,null,[{key:"format",value:function(t){return t.reduce(function(t,r){return(0,o.default)(t).concat([e.formatWithNestedConstraints(r)])},[]).join("\n")}},{key:"formatWithNestedConstraints",value:function(e){var t=e.constraints,r="`".concat(e.property,"` errors:\n"),n=Object.keys(t).map(function(e){return" - ".concat(t[e],"\n")}).join();return"".concat(r).concat(n)}}]),e}();t.ValidationErrorsFormatter=s},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i,s=r(4),c=r(2),d=r(157),u=r(158),l=r(159),f=r(160),p=r(161),m=r(162),g=r(163),N=r(164),v=r(165),y=r(166),_=r(167),h=i=function(){function e(){(0,o.default)(this,e)}return(0,a.default)(e,[{key:"normalize",value:function(e){var t=Object.assign({},e),r=!0,n=!1,o=void 0;try{for(var a,s=i.normalizerRules[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){t=(0,a.value)(t)}}catch(e){n=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(n)throw o}}return t}}]),e}();h.normalizerRules=[d.ControlFlowFlatteningThresholdRule,u.DeadCodeInjectionRule,l.DeadCodeInjectionThresholdRule,f.DomainLockRule,p.InputFileNameRule,m.SelfDefendingRule,g.SourceMapBaseUrlRule,N.SourceMapFileNameRule,v.StringArrayRule,y.StringArrayEncodingRule,_.StringArrayThresholdRule],h=i=s.__decorate([c.injectable()],h),t.OptionsNormalizer=h},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ControlFlowFlatteningThresholdRule=function(e){return 0===e.controlFlowFlatteningThreshold&&(e=Object.assign({},e,{controlFlowFlattening:!1,controlFlowFlatteningThreshold:0})),e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(46);t.DeadCodeInjectionRule=function(e){return e.deadCodeInjection&&((e=Object.assign({},e,{deadCodeInjection:!0,stringArray:!0})).stringArrayThreshold||(e=Object.assign({},e,{stringArray:!0,stringArrayThreshold:n.DEFAULT_PRESET.stringArrayThreshold}))),e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DeadCodeInjectionThresholdRule=function(e){return 0===e.deadCodeInjectionThreshold&&(e=Object.assign({},e,{deadCodeInjection:!1,deadCodeInjectionThreshold:0})),e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(34);t.DomainLockRule=function(e){if(e.domainLock.length){var t=[],r=!0,o=!1,a=void 0;try{for(var i,s=e.domainLock[Symbol.iterator]();!(r=(i=s.next()).done);r=!0){var c=i.value;t.push(n.Utils.extractDomainFrom(c))}}catch(e){o=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw a}}e=Object.assign({},e,{domainLock:t})}return e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InputFileNameRule=function(e){var t=e.inputFileName;return t&&(t=t.replace(/^\/+/,"").split(".").slice(0,-1).join(".")||t,e=Object.assign({},e,{inputFileName:"".concat(t,".js")})),e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SelfDefendingRule=function(e){return e.selfDefending&&(e=Object.assign({},e,{compact:!0,selfDefending:!0})),e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SourceMapBaseUrlRule=function(e){var t=e.sourceMapBaseUrl;return e.sourceMapFileName?(t&&!t.endsWith("/")&&(e=Object.assign({},e,{sourceMapBaseUrl:"".concat(t,"/")})),e):e=Object.assign({},e,{sourceMapBaseUrl:""})}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SourceMapFileNameRule=function(e){var t=e.sourceMapFileName;return t&&(t=t.replace(/^\/+/,"").split(".")[0],e=Object.assign({},e,{sourceMapFileName:"".concat(t,".js.map")})),e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayRule=function(e){return e.stringArray||(e=Object.assign({},e,{rotateStringArray:!1,stringArray:!1,stringArrayEncoding:!1,stringArrayThreshold:0})),e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(37);t.StringArrayEncodingRule=function(e){return!0===e.stringArrayEncoding&&(e=Object.assign({},e,{stringArrayEncoding:n.StringArrayEncoding.Base64})),e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayThresholdRule=function(e){return 0===e.stringArrayThreshold&&(e=Object.assign({},e,{rotateStringArray:!1,stringArray:!1,stringArrayEncoding:!1,stringArrayThreshold:0})),e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(20),o=r(2),a=r(5),i=r(29),s=r(58),c=r(169),d=r(170),u=r(171),l=r(172),f=r(173),p=r(175),m=r(176),g=r(177);t.preparingTransformersModule=new o.ContainerModule(function(e){e(a.ServiceIdentifiers.INodeTransformer).to(d.CommentsTransformer).whenTargetNamed(i.NodeTransformer.CommentsTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(l.CustomNodesTransformer).whenTargetNamed(i.NodeTransformer.CustomNodesTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(f.EvalCallExpressionTransformer).whenTargetNamed(i.NodeTransformer.EvalCallExpressionTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(p.MetadataTransformer).whenTargetNamed(i.NodeTransformer.MetadataTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(m.ObfuscatingGuardsTransformer).whenTargetNamed(i.NodeTransformer.ObfuscatingGuardsTransformer),e(a.ServiceIdentifiers.INodeTransformer).to(g.ParentificationTransformer).whenTargetNamed(i.NodeTransformer.ParentificationTransformer),e(a.ServiceIdentifiers.INodeGuard).to(c.BlackListObfuscatingGuard).inSingletonScope().whenTargetNamed(s.ObfuscatingGuard.BlackListNodeGuard),e(a.ServiceIdentifiers.INodeGuard).to(u.ConditionalCommentObfuscatingGuard).inSingletonScope().whenTargetNamed(s.ObfuscatingGuard.ConditionalCommentNodeGuard),e(a.ServiceIdentifiers.Factory__INodeGuard).toFactory(n.InversifyContainerFacade.getCacheFactory(a.ServiceIdentifiers.INodeGuard))})},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i,s=r(4),c=r(2),d=r(9),u=i=function(){function e(){(0,o.default)(this,e),this.blackListGuardsLength=i.blackListGuards.length}return(0,a.default)(e,[{key:"check",value:function(e){for(var t=0;t=0?t:null}},{key:"getLength",value:function(){return this.storageLength}},{key:"getStorage",value:function(){return this.storage}},{key:"getStorageId",value:function(){return this.storageId}},{key:"mergeWith",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.storage=(0,o.default)(this.storage).concat((0,o.default)(e.getStorage())),t&&(this.storageId=e.getStorageId())}},{key:"set",value:function(e,t){e===this.storageLength?this.storage.push(t):this.storage.splice(e,0,t),this.storageLength++}}]),e}();s.__decorate([u.initializable(),s.__metadata("design:type",Array)],l.prototype,"storage",void 0),s.__decorate([u.initializable(),s.__metadata("design:type",String)],l.prototype,"storageId",void 0),s.__decorate([c.postConstruct(),s.__metadata("design:type",Function),s.__metadata("design:paramtypes",[]),s.__metadata("design:returntype",void 0)],l.prototype,"initialize",null),l=s.__decorate([c.injectable(),s.__param(0,c.inject(d.ServiceIdentifiers.IRandomGenerator)),s.__param(1,c.inject(d.ServiceIdentifiers.IOptions)),s.__metadata("design:paramtypes",[Object,Object])],l),t.ArrayStorage=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(2),o=r(5),a=r(184),i=r(185),s=r(188),c=r(60);t.utilsModule=new n.ContainerModule(function(e){e(o.ServiceIdentifiers.IArrayUtils).to(a.ArrayUtils).inSingletonScope(),e(o.ServiceIdentifiers.IRandomGenerator).to(c.RandomGenerator).inSingletonScope(),e(o.ServiceIdentifiers.ICryptUtils).to(i.CryptUtils).inSingletonScope(),e(o.ServiceIdentifiers.IEscapeSequenceEncoder).to(s.EscapeSequenceEncoder).inSingletonScope()})},function(e,t,r){"use strict";var n=r(0),o=n(r(28)),a=n(r(1)),i=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var s=r(4),c=r(2),d=r(5),u=function(){function e(t){(0,a.default)(this,e),this.randomGenerator=t}return(0,i.default)(e,[{key:"createWithRange",value:function(e){for(var t=[],r=0;r>8-o%1*8)){if((n=e.charCodeAt(o+=.75))>255)throw new Error("'btoa' failed: The string to be encoded contains characters outside of the Latin1 range.");r=r<<8|n}return t}},{key:"hideString",value:function(e,t){var r=this,n=this.randomGenerator.getRandomGenerator().string({length:t,pool:d.RandomGenerator.randomGeneratorPool}).replace(new RegExp("[".concat(e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"),"]"),"g"),""),o=n.split("");return this.randomGenerator.getRandomGenerator().shuffle(o),[function(e,t){for(var n=-1,o=-1,a="";n"),c="...".concat(o.substring(a,i).replace(/^\s+/,""),"...");throw new Error("Line ".concat(n.line,": ").concat(r,"\n").concat(s," ").concat(c))}}]),e}();d.colorError=c.default.red,d.nearestSymbolsCount=15,d.sourceTypes=["script","module"],t.EspreeFacade=d},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(6)),i=n(r(7)),s=n(r(8));Object.defineProperty(t,"__esModule",{value:!0});var c=r(4),d=r(2),u=r(193);d.decorate(d.injectable(),u.EventEmitter);var l=function(e){function t(){return(0,o.default)(this,t),(0,a.default)(this,(0,i.default)(t).apply(this,arguments))}return(0,s.default)(t,e),t}(u.EventEmitter);l=c.__decorate([d.injectable()],l),t.ObfuscationEventEmitter=l},function(e,t){e.exports=require("events")},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i=r(4),s=r(2),c=r(5),d=r(10),u=r(36),l=function(){function e(t,r){(0,o.default)(this,e),this.cryptUtils=t,this.options=r}return(0,a.default)(e,[{key:"initialize",value:function(e,t){this.obfuscatedCode=e,this.sourceMap=t}},{key:"getObfuscatedCode",value:function(){return this.correctObfuscatedCode()}},{key:"getSourceMap",value:function(){return this.sourceMap}},{key:"toString",value:function(){return this.obfuscatedCode}},{key:"correctObfuscatedCode",value:function(){if(!this.sourceMap)return this.obfuscatedCode;var e=this.options.sourceMapBaseUrl+this.options.sourceMapFileName,t="//# sourceMappingURL=";switch(this.options.sourceMapMode){case u.SourceMapMode.Inline:t+="data:application/json;base64,".concat(this.cryptUtils.btoa(this.sourceMap));break;case u.SourceMapMode.Separate:default:if(!e)return this.obfuscatedCode;t+=e}return"".concat(this.obfuscatedCode,"\n").concat(t)}}]),e}();i.__decorate([d.initializable(),i.__metadata("design:type",String)],l.prototype,"obfuscatedCode",void 0),i.__decorate([d.initializable(),i.__metadata("design:type",String)],l.prototype,"sourceMap",void 0),l=i.__decorate([s.injectable(),i.__param(0,s.inject(c.ServiceIdentifiers.ICryptUtils)),i.__param(1,s.inject(c.ServiceIdentifiers.IOptions)),i.__metadata("design:paramtypes",[Object,Object])],l),t.ObfuscatedCode=l},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(t,r){(0,o.default)(this,e),this.sourceCode=t,this.sourceMap=r}return(0,a.default)(e,[{key:"getSourceCode",value:function(){return this.sourceCode}},{key:"getSourceMap",value:function(){return this.sourceMap}},{key:"toString",value:function(){return this.sourceCode}}]),e}();t.SourceCode=i},function(e,t,r){"use strict";var n=r(0),o=n(r(1)),a=n(r(3));Object.defineProperty(t,"__esModule",{value:!0});var i=r(4),s=r(2),c=r(5),d=i.__importStar(r(16)),u=r(197),l=r(9),f=r(17),p=function(){function e(t){(0,o.default)(this,e),this.nodeTransformerFactory=t}return(0,a.default)(e,[{key:"transform",value:function(e,t,r){if(!t.length)return e;for(var n,o=[],a=[],i=t.length,s=0;s Date: Wed, 27 Nov 2019 22:41:13 +0300 Subject: [PATCH 07/13] Do not rename parent function with same name --- dist/index.browser.js | 2 +- dist/index.cli.js | 2 +- dist/index.js | 2 +- .../FunctionDeclarationTransformer.ts | 1 + .../issues/fixtures/issue321.js | 9 ++++++ test/functional-tests/issues/issue321.spec.ts | 32 +++++++++++++++++++ 6 files changed, 45 insertions(+), 3 deletions(-) create mode 100644 test/functional-tests/issues/fixtures/issue321.js create mode 100644 test/functional-tests/issues/issue321.spec.ts diff --git a/dist/index.browser.js b/dist/index.browser.js index 596d50d9d..d6852e8f1 100644 --- a/dist/index.browser.js +++ b/dist/index.browser.js @@ -36,7 +36,7 @@ MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ -var n;!function(n){!function(r){var i="object"==typeof t?t:"object"==typeof self?self:"object"==typeof this?this:Function("return this;")(),o=a(n);function a(e,t){return function(n,r){"function"!=typeof e[n]&&Object.defineProperty(e,n,{configurable:!0,writable:!0,value:r}),t&&t(n,r)}}void 0===i.Reflect?i.Reflect=n:o=a(i.Reflect,o),function(t){var n=Object.prototype.hasOwnProperty,r="function"==typeof Symbol,i=r&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",o=r&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",a="function"==typeof Object.create,s={__proto__:[]}instanceof Array,u=!a&&!s,d={create:a?function(){return x(Object.create(null))}:s?function(){return x({__proto__:null})}:function(){return x({})},has:u?function(e,t){return n.call(e,t)}:function(e,t){return t in e},get:u?function(e,t){return n.call(e,t)?e[t]:void 0}:function(e,t){return e[t]}},l=Object.getPrototypeOf(Function),c="object"==typeof e&&e.env&&"true"===e.env.REFLECT_METADATA_USE_MAP_POLYFILL,p=c||"function"!=typeof Map||"function"!=typeof Map.prototype.entries?function(){var e={},t=[],n=function(){function e(e,t,n){this._index=0,this._keys=e,this._values=t,this._selector=n}return e.prototype["@@iterator"]=function(){return this},e.prototype[o]=function(){return this},e.prototype.next=function(){var e=this._index;if(e>=0&&e=this._keys.length?(this._index=-1,this._keys=t,this._values=t):this._index++,{value:n,done:!1}}return{value:void 0,done:!0}},e.prototype.throw=function(e){throw this._index>=0&&(this._index=-1,this._keys=t,this._values=t),e},e.prototype.return=function(e){return this._index>=0&&(this._index=-1,this._keys=t,this._values=t),{value:e,done:!0}},e}();return function(){function t(){this._keys=[],this._values=[],this._cacheKey=e,this._cacheIndex=-2}return Object.defineProperty(t.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),t.prototype.has=function(e){return this._find(e,!1)>=0},t.prototype.get=function(e){var t=this._find(e,!1);return t>=0?this._values[t]:void 0},t.prototype.set=function(e,t){var n=this._find(e,!0);return this._values[n]=t,this},t.prototype.delete=function(t){var n=this._find(t,!1);if(n>=0){for(var r=this._keys.length,i=n+1;i=0;--n){var r=e[n],i=r(t);if(!S(i)&&!N(i)){if(!D(i))throw new TypeError;t=i}}return t}(e,t)}if(!I(e))throw new TypeError;if(!A(t))throw new TypeError;if(!A(r)&&!S(r)&&!N(r))throw new TypeError;return N(r)&&(r=void 0),n=E(n),function(e,t,n,r){for(var i=e.length-1;i>=0;--i){var o=e[i],a=o(t,n,r);if(!S(a)&&!N(a)){if(!A(a))throw new TypeError;r=a}}return r}(e,t,n,r)}),t("metadata",function(e,t){return function(n,r){if(!A(n))throw new TypeError;if(!S(r)&&!function(e){switch(C(e)){case 3:case 4:return!0;default:return!1}}(r))throw new TypeError;b(e,t,n,r)}}),t("defineMetadata",function(e,t,n,r){if(!A(n))throw new TypeError;S(r)||(r=E(r));return b(e,t,n,r)}),t("hasMetadata",function(e,t,n){if(!A(t))throw new TypeError;S(n)||(n=E(n));return function e(t,n,r){var i=m(t,n,r);if(i)return!0;var o=R(n);if(!N(o))return e(t,o,r);return!1}(e,t,n)}),t("hasOwnMetadata",function(e,t,n){if(!A(t))throw new TypeError;S(n)||(n=E(n));return m(e,t,n)}),t("getMetadata",function(e,t,n){if(!A(t))throw new TypeError;S(n)||(n=E(n));return function e(t,n,r){var i=m(t,n,r);if(i)return y(t,n,r);var o=R(n);if(!N(o))return e(t,o,r);return}(e,t,n)}),t("getOwnMetadata",function(e,t,n){if(!A(t))throw new TypeError;S(n)||(n=E(n));return y(e,t,n)}),t("getMetadataKeys",function(e,t){if(!A(e))throw new TypeError;S(t)||(t=E(t));return function e(t,n){var r=v(t,n);var i=R(t);if(null===i)return r;var o=e(i,n);if(o.length<=0)return r;if(r.length<=0)return o;var a=new f;var s=[];for(var u=0,d=r;u0)return!0;var i=h.get(t);return i.delete(n),i.size>0||(h.delete(t),!0)})}(o)}()}(n||(n={}))}).call(this,n(70),n(56))},function(e,t,n){var r=n(71);function i(t,n,o){return!function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()?e.exports=i=function(e,t,n){var i=[null];i.push.apply(i,t);var o=new(Function.bind.apply(e,i));return n&&r(o,n.prototype),o}:e.exports=i=Reflect.construct,i.apply(null,arguments)}e.exports=i},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n(function(t){t(e.value)}).then(a,s)}u((r=r.apply(e,t||[])).next())})},i=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=r[2&o[0]?"return":o[0]?"throw":"next"])&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[0,i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0?f.length:n.length),g=function e(t,n){var r=t.getPropertiesMetadata(n);var i=[];var a=Object.keys(r);for(var s=0,d=a;s0?l:e(t,r)}return 0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e){this.str=e}return e.prototype.startsWith=function(e){return 0===this.str.indexOf(e)},e.prototype.endsWith=function(e){var t,n=e.split("").reverse().join("");return t=this.str.split("").reverse().join(""),this.startsWith.call({str:t},n)},e.prototype.contains=function(e){return-1!==this.str.indexOf(e)},e.prototype.equals=function(e){return this.str===e},e.prototype.value=function(){return this.str},e}();t.QueryableString=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(29),i=function(){function e(e,t,n,i,o){this.guid=r.guid(),this.serviceIdentifier=e,this.parentContext=t,this.parentRequest=n,this.target=o,this.childRequests=[],this.bindings=Array.isArray(i)?i:[i],this.requestScope=null===n?new Map:null}return e.prototype.addChildRequest=function(t,n,r){var i=new e(t,this.parentContext,this,n,r);return this.childRequests.push(i),i},e}();t.Request=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(19),i=n(23),o=n(73),a=n(43),s=n(122),u=function(e,t,n){try{return n()}catch(n){throw o.isStackOverflowExeption(n)?new Error(r.CIRCULAR_DEPENDENCY_IN_FACTORY(e,t.toString())):n}},d=function(e){return function(t){t.parentContext.setCurrentRequest(t);var n=t.bindings,o=t.childRequests,l=t.target&&t.target.isArray(),c=!(t.parentRequest&&t.parentRequest.target&&t.target&&t.parentRequest.target.matchesArray(t.target.serviceIdentifier));if(l&&c)return o.map(function(t){return d(e)(t)});var p=null;if(!t.target.isOptional()||0!==n.length){var f=n[0],h=f.scope===i.BindingScopeEnum.Singleton,g=f.scope===i.BindingScopeEnum.Request;if(h&&f.activated)return f.cache;if(g&&null!==e&&e.has(f.guid))return e.get(f.guid);if(f.type===i.BindingTypeEnum.ConstantValue)p=f.cache;else if(f.type===i.BindingTypeEnum.Function)p=f.cache;else if(f.type===i.BindingTypeEnum.Constructor)p=f.implementationType;else if(f.type===i.BindingTypeEnum.DynamicValue&&null!==f.dynamicValue)p=u("toDynamicValue",f.serviceIdentifier,function(){return f.dynamicValue(t.parentContext)});else if(f.type===i.BindingTypeEnum.Factory&&null!==f.factory)p=u("toFactory",f.serviceIdentifier,function(){return f.factory(t.parentContext)});else if(f.type===i.BindingTypeEnum.Provider&&null!==f.provider)p=u("toProvider",f.serviceIdentifier,function(){return f.provider(t.parentContext)});else{if(f.type!==i.BindingTypeEnum.Instance||null===f.implementationType){var m=a.getServiceIdentifierAsString(t.serviceIdentifier);throw new Error(r.INVALID_BINDING_TYPE+" "+m)}p=s.resolveInstance(f.implementationType,o,d(e))}return"function"==typeof f.onActivation&&(p=f.onActivation(t.parentContext,p)),h&&(f.cache=p,f.activated=!0),g&&null!==e&&!e.has(f.guid)&&e.set(f.guid,p),p}}};t.resolve=function(e){return d(e.plan.rootRequest.requestScope)(e.plan.rootRequest)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(19),i=n(23),o=n(17);t.resolveInstance=function(e,t,n){var a,s,u=null;if(t.length>0){var d=t.filter(function(e){return null!==e.target&&e.target.type===i.TargetTypeEnum.ConstructorArgument}).map(n);s=d,u=function(e,t,n){var r=t.filter(function(e){return null!==e.target&&e.target.type===i.TargetTypeEnum.ClassProperty}),o=r.map(n);return r.forEach(function(t,n){var r;r=t.target.name.value();var i=o[n];e[r]=i}),e}(u=new((a=e).bind.apply(a,[void 0].concat(s))),t,n)}else u=new e;return function(e,t){if(Reflect.hasMetadata(o.POST_CONSTRUCT,e)){var n=Reflect.getMetadata(o.POST_CONSTRUCT,e);try{t[n.value]()}catch(t){throw new Error(r.POST_CONSTRUCT_ERROR(e.name,t.message))}}}(e,u),u}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(19),i=n(23),o=n(124),a=n(76),s=function(){function e(e){this._binding=e}return e.prototype.to=function(e){return this._binding.type=i.BindingTypeEnum.Instance,this._binding.implementationType=e,new o.BindingInWhenOnSyntax(this._binding)},e.prototype.toSelf=function(){if("function"!=typeof this._binding.serviceIdentifier)throw new Error(""+r.INVALID_TO_SELF_VALUE);var e=this._binding.serviceIdentifier;return this.to(e)},e.prototype.toConstantValue=function(e){return this._binding.type=i.BindingTypeEnum.ConstantValue,this._binding.cache=e,this._binding.dynamicValue=null,this._binding.implementationType=null,new a.BindingWhenOnSyntax(this._binding)},e.prototype.toDynamicValue=function(e){return this._binding.type=i.BindingTypeEnum.DynamicValue,this._binding.cache=null,this._binding.dynamicValue=e,this._binding.implementationType=null,new o.BindingInWhenOnSyntax(this._binding)},e.prototype.toConstructor=function(e){return this._binding.type=i.BindingTypeEnum.Constructor,this._binding.implementationType=e,new a.BindingWhenOnSyntax(this._binding)},e.prototype.toFactory=function(e){return this._binding.type=i.BindingTypeEnum.Factory,this._binding.factory=e,new a.BindingWhenOnSyntax(this._binding)},e.prototype.toFunction=function(e){if("function"!=typeof e)throw new Error(r.INVALID_FUNCTION_BINDING);var t=this.toConstantValue(e);return this._binding.type=i.BindingTypeEnum.Function,t},e.prototype.toAutoFactory=function(e){return this._binding.type=i.BindingTypeEnum.Factory,this._binding.factory=function(t){return function(){return t.container.get(e)}},new a.BindingWhenOnSyntax(this._binding)},e.prototype.toProvider=function(e){return this._binding.type=i.BindingTypeEnum.Provider,this._binding.provider=e,new a.BindingWhenOnSyntax(this._binding)},e.prototype.toService=function(e){this.toDynamicValue(function(t){return t.container.get(e)})},e}();t.BindingToSyntax=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(125),i=n(57),o=n(58),a=function(){function e(e){this._binding=e,this._bindingWhenSyntax=new o.BindingWhenSyntax(this._binding),this._bindingOnSyntax=new i.BindingOnSyntax(this._binding),this._bindingInSyntax=new r.BindingInSyntax(e)}return e.prototype.inRequestScope=function(){return this._bindingInSyntax.inRequestScope()},e.prototype.inSingletonScope=function(){return this._bindingInSyntax.inSingletonScope()},e.prototype.inTransientScope=function(){return this._bindingInSyntax.inTransientScope()},e.prototype.when=function(e){return this._bindingWhenSyntax.when(e)},e.prototype.whenTargetNamed=function(e){return this._bindingWhenSyntax.whenTargetNamed(e)},e.prototype.whenTargetIsDefault=function(){return this._bindingWhenSyntax.whenTargetIsDefault()},e.prototype.whenTargetTagged=function(e,t){return this._bindingWhenSyntax.whenTargetTagged(e,t)},e.prototype.whenInjectedInto=function(e){return this._bindingWhenSyntax.whenInjectedInto(e)},e.prototype.whenParentNamed=function(e){return this._bindingWhenSyntax.whenParentNamed(e)},e.prototype.whenParentTagged=function(e,t){return this._bindingWhenSyntax.whenParentTagged(e,t)},e.prototype.whenAnyAncestorIs=function(e){return this._bindingWhenSyntax.whenAnyAncestorIs(e)},e.prototype.whenNoAncestorIs=function(e){return this._bindingWhenSyntax.whenNoAncestorIs(e)},e.prototype.whenAnyAncestorNamed=function(e){return this._bindingWhenSyntax.whenAnyAncestorNamed(e)},e.prototype.whenAnyAncestorTagged=function(e,t){return this._bindingWhenSyntax.whenAnyAncestorTagged(e,t)},e.prototype.whenNoAncestorNamed=function(e){return this._bindingWhenSyntax.whenNoAncestorNamed(e)},e.prototype.whenNoAncestorTagged=function(e,t){return this._bindingWhenSyntax.whenNoAncestorTagged(e,t)},e.prototype.whenAnyAncestorMatches=function(e){return this._bindingWhenSyntax.whenAnyAncestorMatches(e)},e.prototype.whenNoAncestorMatches=function(e){return this._bindingWhenSyntax.whenNoAncestorMatches(e)},e.prototype.onActivation=function(e){return this._bindingOnSyntax.onActivation(e)},e}();t.BindingInWhenOnSyntax=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(23),i=n(76),o=function(){function e(e){this._binding=e}return e.prototype.inRequestScope=function(){return this._binding.scope=r.BindingScopeEnum.Request,new i.BindingWhenOnSyntax(this._binding)},e.prototype.inSingletonScope=function(){return this._binding.scope=r.BindingScopeEnum.Singleton,new i.BindingWhenOnSyntax(this._binding)},e.prototype.inTransientScope=function(){return this._binding.scope=r.BindingScopeEnum.Transient,new i.BindingWhenOnSyntax(this._binding)},e}();t.BindingInSyntax=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){}return e.of=function(t,n){var r=new e;return r.bindings=t,r.middleware=n,r},e}();t.ContainerSnapshot=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(19),i=function(){function e(){this._map=new Map}return e.prototype.getMap=function(){return this._map},e.prototype.add=function(e,t){if(null===e||void 0===e)throw new Error(r.NULL_ARGUMENT);if(null===t||void 0===t)throw new Error(r.NULL_ARGUMENT);var n=this._map.get(e);void 0!==n?(n.push(t),this._map.set(e,n)):this._map.set(e,[t])},e.prototype.get=function(e){if(null===e||void 0===e)throw new Error(r.NULL_ARGUMENT);var t=this._map.get(e);if(void 0!==t)return t;throw new Error(r.KEY_NOT_FOUND)},e.prototype.remove=function(e){if(null===e||void 0===e)throw new Error(r.NULL_ARGUMENT);if(!this._map.delete(e))throw new Error(r.KEY_NOT_FOUND)},e.prototype.removeByCondition=function(e){var t=this;this._map.forEach(function(n,r){var i=n.filter(function(t){return!e(t)});i.length>0?t._map.set(r,i):t._map.delete(r)})},e.prototype.hasKey=function(e){if(null===e||void 0===e)throw new Error(r.NULL_ARGUMENT);return this._map.has(e)},e.prototype.clone=function(){var t=new e;return this._map.forEach(function(e,n){e.forEach(function(e){return t.add(n,e.clone())})}),t},e.prototype.traverse=function(e){this._map.forEach(function(t,n){e(n,t)})},e}();t.Lookup=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(29),i=function(){return function(e){this.guid=r.guid(),this.registry=e}}();t.ContainerModule=i;var o=function(){return function(e){this.guid=r.guid(),this.registry=e}}();t.AsyncContainerModule=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(19),i=n(17);t.injectable=function(){return function(e){if(Reflect.hasOwnMetadata(i.PARAM_TYPES,e))throw new Error(r.DUPLICATED_INJECTABLE_DECORATOR);var t=Reflect.getMetadata(i.DESIGN_PARAM_TYPES,e)||[];return Reflect.defineMetadata(i.PARAM_TYPES,t,e),e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(21),i=n(26);t.tagged=function(e,t){return function(n,o,a){var s=new r.Metadata(e,t);"number"==typeof a?i.tagParameter(n,o,a,s):i.tagProperty(n,o,s)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(17),i=n(21),o=n(26);t.named=function(e){return function(t,n,a){var s=new i.Metadata(r.NAMED_TAG,e);"number"==typeof a?o.tagParameter(t,n,a,s):o.tagProperty(t,n,s)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(17),i=n(21),o=n(26);t.optional=function(){return function(e,t,n){var a=new i.Metadata(r.OPTIONAL_TAG,!0);"number"==typeof n?o.tagParameter(e,t,n,a):o.tagProperty(e,t,a)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(17),i=n(21),o=n(26);t.unmanaged=function(){return function(e,t,n){var a=new i.Metadata(r.UNMANAGED_TAG,!0);o.tagParameter(e,t,n,a)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(17),i=n(21),o=n(26);t.multiInject=function(e){return function(t,n,a){var s=new i.Metadata(r.MULTI_INJECT_TAG,e);"number"==typeof a?o.tagParameter(t,n,a,s):o.tagProperty(t,n,s)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(17),i=n(21),o=n(26);t.targetName=function(e){return function(t,n,a){var s=new i.Metadata(r.NAME_TAG,e);o.tagParameter(t,n,a,s)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(19),i=n(17),o=n(21);t.postConstruct=function(){return function(e,t,n){var a=new o.Metadata(i.POST_CONSTRUCT,t);if(Reflect.hasOwnMetadata(i.POST_CONSTRUCT,e.constructor))throw new Error(r.MULTIPLE_POST_CONSTRUCT_METHODS);Reflect.defineMetadata(i.POST_CONSTRUCT,a,e.constructor)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.multiBindToService=function(e){return function(t){return function(){for(var n=[],r=0;r=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},c=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var p=n(2),f=c(n(18)),h=n(59),g=n(10),m=n(30),y=function(e){function t(){return(0,i.default)(this,t),(0,a.default)(this,(0,s.default)(t).apply(this,arguments))}return(0,u.default)(t,e),(0,o.default)(t,[{key:"extract",value:function(e,t){if(!g.NodeGuards.isIdentifierNode(t))return null;var n=this.getCalleeBlockStatement(m.NodeStatementUtils.getParentNodeWithStatements(e[0]),t.name);return n?{callee:n,name:t.name}:null}},{key:"getCalleeBlockStatement",value:function(e,t){var n=null;return f.traverse(e,{enter:function(e){if(g.NodeGuards.isFunctionDeclarationNode(e)&&e.id.name===t)return n=e.body,f.VisitorOption.Break}}),n}}]),t}(h.AbstractCalleeDataExtractor);y=l([p.injectable()],y),t.FunctionDeclarationCalleeDataExtractor=y},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e){e.exports={name:"estraverse",description:"ECMAScript JS AST traversal functions",homepage:"https://github.com/estools/estraverse",main:"estraverse.js",version:"4.2.0",engines:{node:">=0.10.0"},maintainers:[{name:"Yusuke Suzuki",email:"utatane.tea@gmail.com",web:"http://github.com/Constellation"}],repository:{type:"git",url:"http://github.com/estools/estraverse.git"},devDependencies:{"babel-preset-es2015":"^6.3.13","babel-register":"^6.3.13",chai:"^2.1.1",espree:"^1.11.0",gulp:"^3.8.10","gulp-bump":"^0.2.2","gulp-filter":"^2.0.0","gulp-git":"^1.0.1","gulp-tag-version":"^1.2.1",jshint:"^2.5.6",mocha:"^2.1.0"},license:"BSD-2-Clause",scripts:{test:"npm run-script lint && npm run-script unit-test",lint:"jshint estraverse.js","unit-test":"mocha --compilers js:babel-register"}}},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(3)),a=r(n(7)),s=r(n(6)),u=r(n(8)),d=r(n(5)),l=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},c=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var p=n(2),f=c(n(18)),h=n(59),g=n(10),m=n(30),y=function(e){function t(){return(0,i.default)(this,t),(0,a.default)(this,(0,s.default)(t).apply(this,arguments))}return(0,u.default)(t,e),(0,o.default)(t,[{key:"extract",value:function(e,t){var n=null;return g.NodeGuards.isIdentifierNode(t)&&(n=this.getCalleeBlockStatement(m.NodeStatementUtils.getParentNodeWithStatements(e[0]),t.name)),g.NodeGuards.isFunctionExpressionNode(t)&&(n=t.body),n?{callee:n,name:t.name||null}:null}},{key:"getCalleeBlockStatement",value:function(e,t){var n=null;return f.traverse(e,{enter:function(e,r){if(g.NodeGuards.isFunctionExpressionNode(e)&&r&&g.NodeGuards.isVariableDeclaratorNode(r)&&g.NodeGuards.isIdentifierNode(r.id)&&r.id.name===t)return n=e.body,f.VisitorOption.Break}}),n}}]),t}(h.AbstractCalleeDataExtractor);y=l([p.injectable()],y),t.FunctionExpressionCalleeDataExtractor=y},function(e,t,n){"use strict";var r,i=n(0),o=i(n(1)),a=i(n(3)),s=i(n(7)),u=i(n(6)),d=i(n(8)),l=i(n(5)),c=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,l.default)(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},p=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var f=n(2),h=p(n(18)),g=n(59),m=n(10),y=n(30),b=r=function(e){function t(){return(0,o.default)(this,t),(0,s.default)(this,(0,u.default)(t).apply(this,arguments))}return(0,d.default)(t,e),(0,a.default)(t,[{key:"extract",value:function(e,t){if(!m.NodeGuards.isMemberExpressionNode(t))return null;var n=this.createObjectMembersCallsChain([],t);if(!n.length)return null;var r=n[n.length-1],i=this.getCalleeBlockStatement(y.NodeStatementUtils.getParentNodeWithStatements(e[0]),n);return i?{callee:i,name:r}:null}},{key:"createObjectMembersCallsChain",value:function(e,t){if(m.NodeGuards.isIdentifierNode(t.property)&&!1===t.computed)e.unshift(t.property.name);else{if(!m.NodeGuards.isLiteralNode(t.property)||"string"!=typeof t.property.value&&"number"!=typeof t.property.value)return e;e.unshift(t.property.value)}return m.NodeGuards.isMemberExpressionNode(t.object)?this.createObjectMembersCallsChain(e,t.object):(m.NodeGuards.isIdentifierNode(t.object)&&e.unshift(t.object.name),e)}},{key:"getCalleeBlockStatement",value:function(e,t){var n=this,r=t.shift();if(!r)return null;var i=null;return h.traverse(e,{enter:function(e){if(m.NodeGuards.isVariableDeclaratorNode(e)&&m.NodeGuards.isIdentifierNode(e.id)&&e.init&&m.NodeGuards.isObjectExpressionNode(e.init)&&e.id.name===r)return i=n.findCalleeBlockStatement(e.init.properties,t),h.VisitorOption.Break}}),i}},{key:"findCalleeBlockStatement",value:function(e,t){var n=t.shift();if(!n)return null;var i=!0,o=!1,a=void 0;try{for(var s,u=e[Symbol.iterator]();!(i=(s=u.next()).done);i=!0){var d=s.value;if(r.isValidTargetPropertyNode(d,n)){if(m.NodeGuards.isObjectExpressionNode(d.value))return this.findCalleeBlockStatement(d.value.properties,t);if(m.NodeGuards.isFunctionExpressionNode(d.value))return d.value.body}}}catch(e){o=!0,a=e}finally{try{i||null==u.return||u.return()}finally{if(o)throw a}}return null}}],[{key:"isValidTargetPropertyNode",value:function(e,t){if(!e.key)return!1;var n=m.NodeGuards.isIdentifierNode(e.key)&&e.key.name===t,r=m.NodeGuards.isLiteralNode(e.key)&&Boolean(e.key.value)&&e.key.value===t;return n||r}}]),t}(g.AbstractCalleeDataExtractor);b=r=c([f.injectable()],b),t.ObjectExpressionCalleeDataExtractor=b},function(e,t,n){"use strict";var r,i=n(0),o=i(n(1)),a=i(n(3)),s=i(n(5)),u=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,s.default)(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var u=e.length-1;u>=0;u--)(i=e[u])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},d=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,s.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},l=function(e,t){return function(n,r){t(n,r,e)}},c=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var p=n(2),f=n(4),h=c(n(18)),g=n(78),m=n(10),y=n(30),b=r=function(){function e(t){(0,o.default)(this,e),this.calleeDataExtractorFactory=t}return(0,a.default)(e,[{key:"analyze",value:function(e){return this.analyzeRecursive(e.body)}},{key:"analyzeRecursive",value:function(e){for(var t=this,n=r.getLimitIndex(e.length),i=[],o=e.length,a=function(r){if(r>n)return"break";var o=e[r];h.traverse(o,{enter:function(n){if(m.NodeGuards.isCallExpressionNode(n))return o.parentNode!==y.NodeStatementUtils.getParentNodeWithStatements(n)?h.VisitorOption.Skip:void t.analyzeCallExpressionNode(i,e,n)}})},s=0;sn&&(i=Math.round(n+t*r.limitThreshold))>t&&(i=t),i}}]),e}();b.calleeDataExtractorsList=[g.CalleeDataExtractor.FunctionDeclarationCalleeDataExtractor,g.CalleeDataExtractor.FunctionExpressionCalleeDataExtractor,g.CalleeDataExtractor.ObjectExpressionCalleeDataExtractor],b.limitThresholdActivationLength=25,b.limitThreshold=.002,b=r=u([p.injectable(),l(0,p.inject(f.ServiceIdentifiers.Factory__ICalleeDataExtractor)),d("design:paramtypes",[Function])],b),t.StackTraceAnalyzer=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(25),i=n(2),o=n(4),a=n(79),s=n(35),u=n(146),d=n(147),l=n(164),c=n(165),p=n(166),f=n(170),h=n(171);t.controlFlowTransformersModule=new i.ContainerModule(function(e){e(o.ServiceIdentifiers.INodeTransformer).to(d.BlockStatementControlFlowTransformer).whenTargetNamed(s.NodeTransformer.BlockStatementControlFlowTransformer),e(o.ServiceIdentifiers.INodeTransformer).to(c.DeadCodeInjectionTransformer).whenTargetNamed(s.NodeTransformer.DeadCodeInjectionTransformer),e(o.ServiceIdentifiers.INodeTransformer).to(p.FunctionControlFlowTransformer).whenTargetNamed(s.NodeTransformer.FunctionControlFlowTransformer),e(o.ServiceIdentifiers.IControlFlowReplacer).to(u.BinaryExpressionControlFlowReplacer).whenTargetNamed(a.ControlFlowReplacer.BinaryExpressionControlFlowReplacer),e(o.ServiceIdentifiers.IControlFlowReplacer).to(l.CallExpressionControlFlowReplacer).whenTargetNamed(a.ControlFlowReplacer.CallExpressionControlFlowReplacer),e(o.ServiceIdentifiers.IControlFlowReplacer).to(f.LogicalExpressionControlFlowReplacer).whenTargetNamed(a.ControlFlowReplacer.LogicalExpressionControlFlowReplacer),e(o.ServiceIdentifiers.IControlFlowReplacer).to(h.StringLiteralControlFlowReplacer).whenTargetNamed(a.ControlFlowReplacer.StringLiteralControlFlowReplacer),e(o.ServiceIdentifiers.Factory__IControlFlowReplacer).toFactory(r.InversifyContainerFacade.getCacheFactory(o.ServiceIdentifiers.IControlFlowReplacer))})},function(e,t,n){"use strict";var r,i=n(0),o=i(n(1)),a=i(n(3)),s=i(n(7)),u=i(n(6)),d=i(n(8)),l=i(n(5)),c=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,l.default)(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},p=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,l.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},f=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var h=n(2),g=n(4),m=n(27),y=n(80),b=r=function(e){function t(e,n,r){return(0,o.default)(this,t),(0,s.default)(this,(0,u.default)(t).call(this,e,n,r))}return(0,d.default)(t,e),(0,a.default)(t,[{key:"replace",value:function(e,t,n){var i=e.operator,o=this.controlFlowCustomNodeFactory(m.ControlFlowCustomNode.BinaryExpressionFunctionNode);o.initialize(i);var a=this.insertCustomNodeToControlFlowStorage(o,n,i,r.usingExistingIdentifierChance);return this.getControlFlowStorageCallNode(n.getStorageId(),a,e.left,e.right)}}]),t}(y.ExpressionWithOperatorControlFlowReplacer);b.usingExistingIdentifierChance=.5,b=r=c([h.injectable(),f(0,h.inject(g.ServiceIdentifiers.Factory__IControlFlowCustomNode)),f(1,h.inject(g.ServiceIdentifiers.IRandomGenerator)),f(2,h.inject(g.ServiceIdentifiers.IOptions)),p("design:paramtypes",[Function,Object,Object])],b),t.BinaryExpressionControlFlowReplacer=b},function(e,t,n){"use strict";var r,i=n(0),o=i(n(1)),a=i(n(3)),s=i(n(7)),u=i(n(6)),d=i(n(8)),l=i(n(5)),c=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,l.default)(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},p=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,l.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},f=function(e,t){return function(n,r){t(n,r,e)}},h=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var g=n(2),m=n(4),y=h(n(18)),b=n(27),v=n(13),C=n(14),S=n(10),N=n(12),A=r=function(e){function t(e,n,r,i){var a;return(0,o.default)(this,t),(a=(0,s.default)(this,(0,u.default)(t).call(this,r,i))).controlFlowCustomNodeFactory=e,a.arrayUtils=n,a}return(0,d.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case v.TransformationStage.ControlFlowFlattening:return{leave:function(e,n){if(n&&S.NodeGuards.isBlockStatementNode(e))return t.transformNode(e,n)}};default:return null}}},{key:"transformNode",value:function(e,t){if(this.randomGenerator.getMathRandom()>this.options.controlFlowFlatteningThreshold||!r.canTransformBlockStatementNode(e))return e;var n=e.body,i=this.arrayUtils.createWithRange(n.length),o=this.arrayUtils.shuffle(i),a=i.map(function(e){return o.indexOf(e)}),s=this.controlFlowCustomNodeFactory(b.ControlFlowCustomNode.BlockStatementControlFlowFlatteningNode);s.initialize(n,o,a);var u=s.getNode()[0];return N.NodeUtils.parentizeNode(u,t),u}}],[{key:"isProhibitedStatementNode",value:function(e){var t=S.NodeGuards.isBreakStatementNode(e)||S.NodeGuards.isContinueStatementNode(e),n=S.NodeGuards.isVariableDeclarationNode(e)&&("const"===e.kind||"let"===e.kind),r=S.NodeGuards.isClassDeclarationNode(e);return S.NodeGuards.isFunctionDeclarationNode(e)||t||n||r}},{key:"canTransformBlockStatementNode",value:function(e){var t=!0;return y.traverse(e,{enter:function(e){if(S.NodeGuards.isWhileStatementNode(e))return y.VisitorOption.Skip;r.isProhibitedStatementNode(e)&&(t=!1)}}),e.body.length<=4&&(t=!1),t}}]),t}(C.AbstractNodeTransformer);A=r=c([g.injectable(),f(0,g.inject(m.ServiceIdentifiers.Factory__IControlFlowCustomNode)),f(1,g.inject(m.ServiceIdentifiers.IArrayUtils)),f(2,g.inject(m.ServiceIdentifiers.IRandomGenerator)),f(3,g.inject(m.ServiceIdentifiers.IOptions)),p("design:paramtypes",[Function,Object,Object,Object])],A),t.BlockStatementControlFlowTransformer=A},function(e,t,n){var r,i,o;!function(n,a){"use strict";i=[t],void 0===(o="function"==typeof(r=function e(t){var n,r,i,o,a,s,u,d,l;(r=Array.isArray)||(r=function(e){return"[object Array]"===Object.prototype.toString.call(e)});function c(e){var t,n,r={};for(t in e)e.hasOwnProperty(t)&&(n=e[t],r[t]="object"==typeof n&&null!==n?c(n):n);return r}function p(e,t){this.parent=e,this.key=t}function f(e,t,n,r){this.node=e,this.path=t,this.wrap=n,this.ref=r}function h(){}function g(e){return null!=e&&("object"==typeof e&&"string"==typeof e.type)}function m(e,t){return(e===n.ObjectExpression||e===n.ObjectPattern)&&"properties"===t}function y(e,t){var n=new h;return n.traverse(e,t)}function b(e,t){var n;return n=function(e,t){var n,r,i,o;r=e.length,i=0;for(;r;)t(e[o=i+(n=r>>>1)])?r=n:(i=o+1,r-=n+1);return i}(t,function(t){return t.range[0]>e.range[0]}),e.extendedRange=[e.range[0],e.range[1]],n!==t.length&&(e.extendedRange[1]=t[n].range[0]),(n-=1)>=0&&(e.extendedRange[0]=t[n].range[1]),e}return a=Object.create||function(){function e(){}return function(t){return e.prototype=t,new e}}(),s=Object.keys||function(e){var t,n=[];for(t in e)n.push(t);return n},n={AssignmentExpression:"AssignmentExpression",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ComprehensionBlock:"ComprehensionBlock",ComprehensionExpression:"ComprehensionExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DebuggerStatement:"DebuggerStatement",DirectiveStatement:"DirectiveStatement",DoWhileStatement:"DoWhileStatement",EmptyStatement:"EmptyStatement",ExportBatchSpecifier:"ExportBatchSpecifier",ExportDeclaration:"ExportDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForInStatement:"ForInStatement",ForOfStatement:"ForOfStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",GeneratorExpression:"GeneratorExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MethodDefinition:"MethodDefinition",ModuleSpecifier:"ModuleSpecifier",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",Program:"Program",Property:"Property",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",SwitchStatement:"SwitchStatement",SwitchCase:"SwitchCase",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"},o={AssignmentExpression:["left","right"],ArrayExpression:["elements"],ArrayPattern:["elements"],ArrowFunctionExpression:["params","defaults","rest","body"],AwaitExpression:["argument"],BlockStatement:["body"],BinaryExpression:["left","right"],BreakStatement:["label"],CallExpression:["callee","arguments"],CatchClause:["param","body"],ClassBody:["body"],ClassDeclaration:["id","body","superClass"],ClassExpression:["id","body","superClass"],ComprehensionBlock:["left","right"],ComprehensionExpression:["blocks","filter","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DirectiveStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExportBatchSpecifier:[],ExportDeclaration:["declaration","specifiers","source"],ExportSpecifier:["id","name"],ExpressionStatement:["expression"],ForStatement:["init","test","update","body"],ForInStatement:["left","right","body"],ForOfStatement:["left","right","body"],FunctionDeclaration:["id","params","defaults","rest","body"],FunctionExpression:["id","params","defaults","rest","body"],GeneratorExpression:["blocks","filter","body"],Identifier:[],IfStatement:["test","consequent","alternate"],ImportDeclaration:["specifiers","source"],ImportDefaultSpecifier:["id"],ImportNamespaceSpecifier:["id"],ImportSpecifier:["id","name"],Literal:[],LabeledStatement:["label","body"],LogicalExpression:["left","right"],MemberExpression:["object","property"],MethodDefinition:["key","value"],ModuleSpecifier:[],NewExpression:["callee","arguments"],ObjectExpression:["properties"],ObjectPattern:["properties"],Program:["body"],Property:["key","value"],ReturnStatement:["argument"],SequenceExpression:["expressions"],SpreadElement:["argument"],SwitchStatement:["discriminant","cases"],SwitchCase:["test","consequent"],TaggedTemplateExpression:["tag","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handlers","handler","guardedHandlers","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],YieldExpression:["argument"]},i={Break:u={},Skip:d={},Remove:l={}},p.prototype.replace=function(e){this.parent[this.key]=e},p.prototype.remove=function(){return r(this.parent)?(this.parent.splice(this.key,1),!0):(this.replace(null),!1)},h.prototype.path=function(){var e,t,n,i,o;function a(e,t){if(r(t))for(n=0,i=t.length;n=0;)if(v=a[p=b[h]])if(r(v)){for(y=v.length;(y-=1)>=0;)if(v[y]){if(m(l,b[h]))o=new f(v[y],[p,y],"Property",null);else{if(!g(v[y]))continue;o=new f(v[y],[p,y],null,null)}n.push(o)}}else g(v)&&n.push(new f(v,p,null,null))}}else if(o=i.pop(),c=this.__execute(t.leave,o),this.__state===u||c===u)return},h.prototype.replace=function(e,t){function n(e){var t,n,r,o;if(e.ref.remove())for(n=e.ref.key,o=e.ref.parent,t=i.length;t--;)if((r=i[t]).ref&&r.ref.parent===o){if(r.ref.key=0;)if(S=a[_=C[b]])if(r(S)){for(v=S.length;(v-=1)>=0;)if(S[v]){if(m(c,C[b]))y=new f(S[v],[_,v],"Property",new p(S,v));else{if(!g(S[v]))continue;y=new f(S[v],[_,v],null,new p(S,v))}i.push(y)}}else g(S)&&i.push(new f(S,_,null,new p(a,_)))}}else if(y=o.pop(),void 0!==(h=this.__execute(t.leave,y))&&h!==u&&h!==d&&h!==l&&y.ref.replace(h),this.__state!==l&&h!==l||n(y),this.__state===u||h===u)return A.root;return A.root},t.version="1.8.1-dev",t.Syntax=n,t.traverse=y,t.replace=function(e,t){return(new h).replace(e,t)},t.attachComments=function(e,t,n){var r,o,a,s,u=[];if(!e.range)throw new Error("attachComments needs range information");if(!n.length){if(t.length){for(a=0,o=t.length;ae.range[0]);)t.extendedRange[1]===e.range[0]?(e.leadingComments||(e.leadingComments=[]),e.leadingComments.push(t),u.splice(s,1)):s+=1;return s===u.length?i.Break:u[s].extendedRange[0]>e.range[1]?i.Skip:void 0}}),s=0,y(e,{leave:function(e){for(var t;se.range[1]?i.Skip:void 0}}),e},t.VisitorKeys=o,t.VisitorOption=i,t.Controller=h,t.cloneEnvironment=function(){return e({})},t})?r.apply(t,i):r)||(e.exports=o)}()},function(e,t,n){!function(){"use strict";t.ast=n(150),t.code=n(81),t.keyword=n(151)}()},function(e,t){!function(){"use strict";function t(e){if(null==e)return!1;switch(e.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":return!0}return!1}function n(e){switch(e.type){case"IfStatement":return null!=e.alternate?e.alternate:e.consequent;case"LabeledStatement":case"ForStatement":case"ForInStatement":case"WhileStatement":case"WithStatement":return e.body}return null}e.exports={isExpression:function(e){if(null==e)return!1;switch(e.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"Literal":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":return!0}return!1},isStatement:t,isIterationStatement:function(e){if(null==e)return!1;switch(e.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":return!0}return!1},isSourceElement:function(e){return t(e)||null!=e&&"FunctionDeclaration"===e.type},isProblematicIfStatement:function(e){var t;if("IfStatement"!==e.type)return!1;if(null==e.alternate)return!1;t=e.consequent;do{if("IfStatement"===t.type&&null==t.alternate)return!0;t=n(t)}while(t);return!1},trailingStatement:n}}()},function(e,t,n){!function(){"use strict";var t=n(81);function r(e,t){return!(!t&&"yield"===e)&&i(e,t)}function i(e,t){if(t&&function(e){switch(e){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"let":return!0;default:return!1}}(e))return!0;switch(e.length){case 2:return"if"===e||"in"===e||"do"===e;case 3:return"var"===e||"for"===e||"new"===e||"try"===e;case 4:return"this"===e||"else"===e||"case"===e||"void"===e||"with"===e||"enum"===e;case 5:return"while"===e||"break"===e||"catch"===e||"throw"===e||"const"===e||"yield"===e||"class"===e||"super"===e;case 6:return"return"===e||"typeof"===e||"delete"===e||"switch"===e||"export"===e||"import"===e;case 7:return"default"===e||"finally"===e||"extends"===e;case 8:return"function"===e||"continue"===e||"debugger"===e;case 10:return"instanceof"===e;default:return!1}}function o(e,t){return"null"===e||"true"===e||"false"===e||r(e,t)}function a(e,t){return"null"===e||"true"===e||"false"===e||i(e,t)}function s(e){var n,r,i;if(0===e.length)return!1;if(i=e.charCodeAt(0),!t.isIdentifierStartES5(i))return!1;for(n=1,r=e.length;n=r)return!1;if(!(56320<=(o=e.charCodeAt(n))&&o<=57343))return!1;i=1024*(i-55296)+(o-56320)+65536}if(!a(i))return!1;a=t.isIdentifierPartES6}return!0}e.exports={isKeywordES5:r,isKeywordES6:i,isReservedWordES5:o,isReservedWordES6:a,isRestrictedWord:function(e){return"eval"===e||"arguments"===e},isIdentifierNameES5:s,isIdentifierNameES6:u,isIdentifierES5:function(e,t){return s(e)&&!o(e,t)},isIdentifierES6:function(e,t){return u(e)&&!a(e,t)}}}()},function(e,t,n){t.SourceMapGenerator=n(153).SourceMapGenerator,t.SourceMapConsumer=n(154).SourceMapConsumer,t.SourceNode=n(155).SourceNode},function(e,t,n){(function(e){if("function"!=typeof t)var t=n(62)(e,n(63));t(function(e,t,n){var r=e("./base64-vlq"),i=e("./util"),o=e("./array-set").ArraySet,a=e("./mapping-list").MappingList;function s(e){e||(e={}),this._file=i.getArg(e,"file",null),this._sourceRoot=i.getArg(e,"sourceRoot",null),this._skipValidation=i.getArg(e,"skipValidation",!1),this._sources=new o,this._names=new o,this._mappings=new a,this._sourcesContents=null}s.prototype._version=3,s.fromSourceMap=function(e){var t=e.sourceRoot,n=new s({file:e.file,sourceRoot:t});return e.eachMapping(function(e){var r={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(r.source=e.source,null!=t&&(r.source=i.relative(t,r.source)),r.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(r.name=e.name)),n.addMapping(r)}),e.sources.forEach(function(t){var r=e.sourceContentFor(t);null!=r&&n.setSourceContent(t,r)}),n},s.prototype.addMapping=function(e){var t=i.getArg(e,"generated"),n=i.getArg(e,"original",null),r=i.getArg(e,"source",null),o=i.getArg(e,"name",null);this._skipValidation||this._validateMapping(t,n,r,o),null==r||this._sources.has(r)||this._sources.add(r),null==o||this._names.has(o)||this._names.add(o),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:null!=n&&n.line,originalColumn:null!=n&&n.column,source:r,name:o})},s.prototype.setSourceContent=function(e,t){var n=e;null!=this._sourceRoot&&(n=i.relative(this._sourceRoot,n)),null!=t?(this._sourcesContents||(this._sourcesContents={}),this._sourcesContents[i.toSetString(n)]=t):this._sourcesContents&&(delete this._sourcesContents[i.toSetString(n)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},s.prototype.applySourceMap=function(e,t,n){var r=t;if(null==t){if(null==e.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');r=e.file}var a=this._sourceRoot;null!=a&&(r=i.relative(a,r));var s=new o,u=new o;this._mappings.unsortedForEach(function(t){if(t.source===r&&null!=t.originalLine){var o=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});null!=o.source&&(t.source=o.source,null!=n&&(t.source=i.join(n,t.source)),null!=a&&(t.source=i.relative(a,t.source)),t.originalLine=o.line,t.originalColumn=o.column,null!=o.name&&(t.name=o.name))}var d=t.source;null==d||s.has(d)||s.add(d);var l=t.name;null==l||u.has(l)||u.add(l)},this),this._sources=s,this._names=u,e.sources.forEach(function(t){var r=e.sourceContentFor(t);null!=r&&(null!=n&&(t=i.join(n,t)),null!=a&&(t=i.relative(a,t)),this.setSourceContent(t,r))},this)},s.prototype._validateMapping=function(e,t,n,r){if((!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0)||t||n||r)&&!(e&&"line"in e&&"column"in e&&t&&"line"in t&&"column"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&n))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:n,original:t,name:r}))},s.prototype._serializeMappings=function(){for(var e,t=0,n=1,o=0,a=0,s=0,u=0,d="",l=this._mappings.toArray(),c=0,p=l.length;c0){if(!i.compareByGeneratedPositions(e,l[c-1]))continue;d+=","}d+=r.encode(e.generatedColumn-t),t=e.generatedColumn,null!=e.source&&(d+=r.encode(this._sources.indexOf(e.source)-u),u=this._sources.indexOf(e.source),d+=r.encode(e.originalLine-1-a),a=e.originalLine-1,d+=r.encode(e.originalColumn-o),o=e.originalColumn,null!=e.name&&(d+=r.encode(this._names.indexOf(e.name)-s),s=this._names.indexOf(e.name)))}return d},s.prototype._generateSourcesContent=function(e,t){return e.map(function(e){if(!this._sourcesContents)return null;null!=t&&(e=i.relative(t,e));var n=i.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,n)?this._sourcesContents[n]:null},this)},s.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},s.prototype.toString=function(){return JSON.stringify(this)},t.SourceMapGenerator=s})}).call(this,n(47)(e))},function(e,t,n){(function(e){if("function"!=typeof t)var t=n(62)(e,n(63));t(function(e,t,n){var r=e("./util");function i(t){var n=t;return"string"==typeof t&&(n=JSON.parse(t.replace(/^\)\]\}'/,""))),null!=n.sections?new(e("./indexed-source-map-consumer").IndexedSourceMapConsumer)(n):new(e("./basic-source-map-consumer").BasicSourceMapConsumer)(n)}i.fromSourceMap=function(t){return e("./basic-source-map-consumer").BasicSourceMapConsumer.fromSourceMap(t)},i.prototype._version=3,i.prototype.__generatedMappings=null,Object.defineProperty(i.prototype,"_generatedMappings",{get:function(){return this.__generatedMappings||(this.__generatedMappings=[],this.__originalMappings=[],this._parseMappings(this._mappings,this.sourceRoot)),this.__generatedMappings}}),i.prototype.__originalMappings=null,Object.defineProperty(i.prototype,"_originalMappings",{get:function(){return this.__originalMappings||(this.__generatedMappings=[],this.__originalMappings=[],this._parseMappings(this._mappings,this.sourceRoot)),this.__originalMappings}}),i.prototype._nextCharIsMappingSeparator=function(e){var t=e.charAt(0);return";"===t||","===t},i.prototype._parseMappings=function(e,t){throw new Error("Subclasses must implement _parseMappings")},i.GENERATED_ORDER=1,i.ORIGINAL_ORDER=2,i.prototype.eachMapping=function(e,t,n){var o,a=t||null;switch(n||i.GENERATED_ORDER){case i.GENERATED_ORDER:o=this._generatedMappings;break;case i.ORIGINAL_ORDER:o=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var s=this.sourceRoot;o.map(function(e){var t=e.source;return null!=t&&null!=s&&(t=r.join(s,t)),{source:t,generatedLine:e.generatedLine,generatedColumn:e.generatedColumn,originalLine:e.originalLine,originalColumn:e.originalColumn,name:e.name}}).forEach(e,a)},i.prototype.allGeneratedPositionsFor=function(e){var t={source:r.getArg(e,"source"),originalLine:r.getArg(e,"line"),originalColumn:1/0};null!=this.sourceRoot&&(t.source=r.relative(this.sourceRoot,t.source));var n=[],i=this._findMapping(t,this._originalMappings,"originalLine","originalColumn",r.compareByOriginalPositions);if(i>=0)for(var o=this._originalMappings[i];o&&o.originalLine===t.originalLine;)n.push({line:r.getArg(o,"generatedLine",null),column:r.getArg(o,"generatedColumn",null),lastColumn:r.getArg(o,"lastGeneratedColumn",null)}),o=this._originalMappings[--i];return n.reverse()},t.SourceMapConsumer=i})}).call(this,n(47)(e))},function(e,t,n){(function(e){if("function"!=typeof t)var t=n(62)(e,n(63));t(function(e,t,n){var r=e("./source-map-generator").SourceMapGenerator,i=e("./util"),o=/(\r?\n)/,a="$$$isSourceNode$$$";function s(e,t,n,r,i){this.children=[],this.sourceContents={},this.line=null==e?null:e,this.column=null==t?null:t,this.source=null==n?null:n,this.name=null==i?null:i,this[a]=!0,null!=r&&this.add(r)}s.fromStringWithSourceMap=function(e,t,n){var r=new s,a=e.split(o),u=function(){return a.shift()+(a.shift()||"")},d=1,l=0,c=null;return t.eachMapping(function(e){if(null!==c){if(!(d0&&(c&&p(c,u()),r.add(a.join(""))),t.sources.forEach(function(e){var o=t.sourceContentFor(e);null!=o&&(null!=n&&(e=i.join(n,e)),r.setSourceContent(e,o))}),r;function p(e,t){if(null===e||void 0===e.source)r.add(t);else{var o=n?i.join(n,e.source):e.source;r.add(new s(e.originalLine,e.originalColumn,o,t,e.name))}}},s.prototype.add=function(e){if(Array.isArray(e))e.forEach(function(e){this.add(e)},this);else{if(!e[a]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);e&&this.children.push(e)}return this},s.prototype.prepend=function(e){if(Array.isArray(e))for(var t=e.length-1;t>=0;t--)this.prepend(e[t]);else{if(!e[a]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);this.children.unshift(e)}return this},s.prototype.walk=function(e){for(var t,n=0,r=this.children.length;n0){for(t=[],n=0;n=0.10.0"},maintainers:[{name:"Artem Govorov",email:"artem.govorov@gmail.com",web:"http://dm.gl"}],repository:{type:"git",url:"http://github.com/wallabyjs/escodegen.git"},dependencies:{estraverse:"^1.9.1",esutils:"^2.0.2",esprima:"^2.7.1",optionator:"^0.8.1"},optionalDependencies:{"source-map":"~0.2.0"},devDependencies:{acorn:"^2.7.0",bluebird:"^2.3.11","bower-registry-client":"^0.2.1",chai:"^1.10.0","commonjs-everywhere":"^0.9.7",gulp:"^3.8.10","gulp-eslint":"^0.2.0","gulp-mocha":"^2.0.0",semver:"^5.1.0"},licenses:[{type:"BSD",url:"http://github.com/wallabyjs/escodegen/raw/master/LICENSE.BSD"}],scripts:{test:"gulp travis","unit-test":"gulp test",lint:"gulp lint",release:"node tools/release.js","build-min":"./node_modules/.bin/cjsify -ma path: tools/entry-point.js > escodegen.browser.min.js",build:"./node_modules/.bin/cjsify -a path: tools/entry-point.js > escodegen.browser.js"}}},function(e,t,n){"use strict";var r=n(83),i={trailingComments:[],leadingComments:[],bottomRightStack:[],previousNode:null};e.exports={reset:function(){i.trailingComments=[],i.leadingComments=[],i.bottomRightStack=[],i.previousNode=null},addComment:function(e){i.trailingComments.push(e),i.leadingComments.push(e)},processComment:function(e){var t,n,o,a;if(!(e.type===r.Program&&e.body.length>0)){for(i.trailingComments.length>0?i.trailingComments[0].range[0]>=e.range[1]?(n=i.trailingComments,i.trailingComments=[]):i.trailingComments.length=0:i.bottomRightStack.length>0&&i.bottomRightStack[i.bottomRightStack.length-1].trailingComments&&i.bottomRightStack[i.bottomRightStack.length-1].trailingComments[0].range[0]>=e.range[1]&&(n=i.bottomRightStack[i.bottomRightStack.length-1].trailingComments,delete i.bottomRightStack[i.bottomRightStack.length-1].trailingComments);i.bottomRightStack.length>0&&i.bottomRightStack[i.bottomRightStack.length-1].range[0]>=e.range[0];)t=i.bottomRightStack.pop();if(t){if(t.leadingComments)if(t.leadingComments[t.leadingComments.length-1].range[1]<=e.range[0])e.leadingComments=t.leadingComments,delete t.leadingComments;else for(o=t.leadingComments.length-2;o>=0;--o)if(t.leadingComments[o].range[1]<=e.range[0]){e.leadingComments=t.leadingComments.splice(0,o+1);break}}else if(i.leadingComments.length>0)if(i.leadingComments[i.leadingComments.length-1].range[1]<=e.range[0]){if(i.previousNode)for(a=0;a0&&(e.leadingComments=i.leadingComments,i.leadingComments=[])}else{for(o=0;oe.range[0]);o++);e.leadingComments=i.leadingComments.slice(0,o),0===e.leadingComments.length&&delete e.leadingComments,0===(n=i.leadingComments.slice(o)).length&&(n=null)}i.previousNode=e,n&&(e.trailingComments=n),i.bottomRightStack.push(e)}}}},function(e,t,n){"use strict";var r={Boolean:"Boolean",EOF:"",Identifier:"Identifier",Keyword:"Keyword",Null:"Null",Numeric:"Numeric",Punctuator:"Punctuator",String:"String",RegularExpression:"RegularExpression",Template:"Template",JSXIdentifier:"JSXIdentifier",JSXText:"JSXText"};function i(e,t){this._acornTokTypes=e,this._tokens=[],this._curlyBrace=null,this._code=t}i.prototype={constructor:i,translate:function(e,t){var n=e.type,i=this._acornTokTypes;if(n===i.name)e.type=r.Identifier,"static"===e.value&&(e.type=r.Keyword),t.ecmaVersion>5&&("yield"===e.value||"let"===e.value)&&(e.type=r.Keyword);else if(n===i.semi||n===i.comma||n===i.parenL||n===i.parenR||n===i.braceL||n===i.braceR||n===i.dot||n===i.bracketL||n===i.colon||n===i.question||n===i.bracketR||n===i.ellipsis||n===i.arrow||n===i.jsxTagStart||n===i.incDec||n===i.starstar||n===i.jsxTagEnd||n===i.prefix||n.binop&&!n.keyword||n.isAssign)e.type=r.Punctuator,e.value=this._code.slice(e.start,e.end);else if(n===i.jsxName)e.type=r.JSXIdentifier;else if("jsxText"===n.label||n===i.jsxAttrValueToken)e.type=r.JSXText;else if(n.keyword)"true"===n.keyword||"false"===n.keyword?e.type=r.Boolean:"null"===n.keyword?e.type=r.Null:e.type=r.Keyword;else if(n===i.num)e.type=r.Numeric,e.value=this._code.slice(e.start,e.end);else if(n===i.string)t.jsxAttrValueToken?(t.jsxAttrValueToken=!1,e.type=r.JSXText):e.type=r.String,e.value=this._code.slice(e.start,e.end);else if(n===i.regexp){e.type=r.RegularExpression;var o=e.value;e.regex={flags:o.flags,pattern:o.pattern},e.value="/"+o.pattern+"/"+o.flags}return e},onToken:function(e,t){var n=this,i=this._acornTokTypes,o=t.tokens,a=this._tokens;function s(){o.push(function(e,t){var n=e[0],i=e[e.length-1],o={type:r.Template,value:t.slice(n.start,i.end)};return n.loc&&(o.loc={start:n.loc.start,end:i.loc.end}),n.range&&(o.start=n.range[0],o.end=i.range[1],o.range=[o.start,o.end]),o}(n._tokens,n._code)),n._tokens=[]}if(e.type!==i.eof){if(e.type===i.backQuote)return this._curlyBrace&&(o.push(this.translate(this._curlyBrace,t)),this._curlyBrace=null),a.push(e),void(a.length>1&&s());if(e.type===i.dollarBraceL)return a.push(e),void s();if(e.type===i.braceR)return this._curlyBrace&&o.push(this.translate(this._curlyBrace,t)),void(this._curlyBrace=e);if(e.type===i.template||e.type===i.invalidTemplate)return this._curlyBrace&&(a.push(this._curlyBrace),this._curlyBrace=null),void a.push(e);this._curlyBrace&&(o.push(this.translate(this._curlyBrace,t)),this._curlyBrace=null),o.push(this.translate(e,t))}else this._curlyBrace&&o.push(this.translate(this._curlyBrace,t))}},e.exports=i},function(e,t,n){"use strict";var r=n(160),i=/^[\da-fA-F]+$/,o=/^\d+$/;e.exports=function(e){var t=e.tokTypes,n=e.tokContexts;n.j_oTag=new e.TokContext("...",!0,!0),t.jsxName=new e.TokenType("jsxName"),t.jsxText=new e.TokenType("jsxText",{beforeExpr:!0}),t.jsxTagStart=new e.TokenType("jsxTagStart"),t.jsxTagEnd=new e.TokenType("jsxTagEnd"),t.jsxTagStart.updateContext=function(){this.context.push(n.j_expr),this.context.push(n.j_oTag),this.exprAllowed=!1},t.jsxTagEnd.updateContext=function(e){var r=this.context.pop();r===n.j_oTag&&e===t.slash||r===n.j_cTag?(this.context.pop(),this.exprAllowed=this.curContext()===n.j_expr):this.exprAllowed=!0};var a=e.Parser.prototype;function s(e){return e?"JSXIdentifier"===e.type?e.name:"JSXNamespacedName"===e.type?e.namespace.name+":"+e.name.name:"JSXMemberExpression"===e.type?s(e.object)+"."+s(e.property):void 0:e}return a.jsx_readToken=function(){for(var n="",r=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated JSX contents");var i=this.input.charCodeAt(this.pos);switch(i){case 60:case 123:return this.pos===this.start?60===i&&this.exprAllowed?(++this.pos,this.finishToken(t.jsxTagStart)):this.getTokenFromCode(i):(n+=this.input.slice(r,this.pos),this.finishToken(t.jsxText,n));case 38:n+=this.input.slice(r,this.pos),n+=this.jsx_readEntity(),r=this.pos;break;default:e.isNewLine(i)?(n+=this.input.slice(r,this.pos),n+=this.jsx_readNewLine(!0),r=this.pos):++this.pos}}},a.jsx_readNewLine=function(e){var t,n=this.input.charCodeAt(this.pos);return++this.pos,13===n&&10===this.input.charCodeAt(this.pos)?(++this.pos,t=e?"\n":"\r\n"):t=String.fromCharCode(n),this.options.locations&&(++this.curLine,this.lineStart=this.pos),t},a.jsx_readString=function(n){for(var r="",i=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var o=this.input.charCodeAt(this.pos);if(o===n)break;38===o?(r+=this.input.slice(i,this.pos),r+=this.jsx_readEntity(),i=this.pos):e.isNewLine(o)?(r+=this.input.slice(i,this.pos),r+=this.jsx_readNewLine(!1),i=this.pos):++this.pos}return r+=this.input.slice(i,this.pos++),this.finishToken(t.string,r)},a.jsx_readEntity=function(){var e,t="",n=0,a=this.input[this.pos];"&"!==a&&this.raise(this.pos,"Entity must start with an ampersand");for(var s=++this.pos;this.pos")}return r.openingElement=o,r.closingElement=a,r.children=i,this.type===t.relational&&"<"===this.value&&this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag"),this.finishNode(r,o.name?"JSXElement":"JSXFragment")},a.jsx_parseText=function(e){var t=this.parseLiteral(e);return t.type="JSXText",t},a.jsx_parseElement=function(){var e=this.start,t=this.startLoc;return this.next(),this.jsx_parseElementAt(e,t)},e.plugins.jsx=function(r,i){i&&("object"!=typeof i&&(i={}),r.options.plugins.jsx={allowNamespaces:!1!==i.allowNamespaces,allowNamespacedObjects:!!i.allowNamespacedObjects},r.extend("parseExprAtom",function(e){return function(n){return this.type===t.jsxText?this.jsx_parseText(this.value):this.type===t.jsxTagStart?this.jsx_parseElement():e.call(this,n)}}),r.extend("readToken",function(r){return function(i){var o=this.curContext();if(o===n.j_expr)return this.jsx_readToken();if(o===n.j_oTag||o===n.j_cTag){if(e.isIdentifierStart(i))return this.jsx_readWord();if(62==i)return++this.pos,this.finishToken(t.jsxTagEnd);if((34===i||39===i)&&o==n.j_oTag)return this.jsx_readString(i)}return 60===i&&this.exprAllowed&&33!==this.input.charCodeAt(this.pos+1)?(++this.pos,this.finishToken(t.jsxTagStart)):r.call(this,i)}}),r.extend("updateContext",function(e){return function(r){if(this.type==t.braceL){var i=this.curContext();i==n.j_oTag?this.context.push(n.b_expr):i==n.j_expr?this.context.push(n.b_tmpl):e.call(this,r),this.exprAllowed=!0}else{if(this.type!==t.slash||r!==t.jsxTagStart)return e.call(this,r);this.context.length-=2,this.context.push(n.j_cTag),this.exprAllowed=!1}}}))},e}},function(e,t){e.exports={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"}},function(e,t,n){"use strict";n.r(t),n.d(t,"version",function(){return Ee}),n.d(t,"parse",function(){return Ie}),n.d(t,"parseExpressionAt",function(){return Te}),n.d(t,"tokenizer",function(){return De}),n.d(t,"parse_dammit",function(){return Ne}),n.d(t,"LooseParser",function(){return Ae}),n.d(t,"pluginsLoose",function(){return _e}),n.d(t,"addLooseExports",function(){return Fe}),n.d(t,"Parser",function(){return j}),n.d(t,"plugins",function(){return k}),n.d(t,"defaultOptions",function(){return w}),n.d(t,"Position",function(){return x}),n.d(t,"SourceLocation",function(){return O}),n.d(t,"getLineInfo",function(){return $}),n.d(t,"Node",function(){return ee}),n.d(t,"TokenType",function(){return m}),n.d(t,"tokTypes",function(){return N}),n.d(t,"keywordTypes",function(){return C}),n.d(t,"TokContext",function(){return re}),n.d(t,"tokContexts",function(){return ie}),n.d(t,"isIdentifierChar",function(){return g}),n.d(t,"isIdentifierStart",function(){return h}),n.d(t,"Token",function(){return be}),n.d(t,"isNewLine",function(){return E}),n.d(t,"lineBreak",function(){return A}),n.d(t,"lineBreakG",function(){return _}),n.d(t,"nonASCIIwhitespace",function(){return I});var r={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},i="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",o={5:i,6:i+" const class extends export import super"},a=/^in(stanceof)?$/,s="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࢠ-ࢴࢶ-ࢽऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿯ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞹꟷ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭥꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",u="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࣓-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ංඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ູົຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠐-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭ᳲ-᳴᳷-᳹᷀-᷹᷻-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_",d=new RegExp("["+s+"]"),l=new RegExp("["+s+u+"]");s=u=null;var c=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,157,310,10,21,11,7,153,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,477,28,11,0,9,21,190,52,76,44,33,24,27,35,30,0,12,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,85,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,54,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,86,26,230,43,117,63,32,0,257,0,11,39,8,0,22,0,12,39,3,3,20,0,35,56,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,270,921,103,110,18,195,2749,1070,4050,582,8634,568,8,30,114,29,19,47,17,3,32,20,6,18,689,63,129,68,12,0,67,12,65,1,31,6129,15,754,9486,286,82,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,4149,196,60,67,1213,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42710,42,4148,12,221,3,5761,15,7472,3104,541],p=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,525,10,176,2,54,14,32,9,16,3,46,10,54,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,4,9,83,11,7,0,161,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,280,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,19306,9,135,4,60,6,26,9,1016,45,17,3,19723,1,5319,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,2214,6,110,6,6,9,792487,239];function f(e,t){for(var n=65536,r=0;re)return!1;if((n+=t[r+1])>=e)return!0}}function h(e,t){return e<65?36===e:e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&d.test(String.fromCharCode(e)):!1!==t&&f(e,c)))}function g(e,t){return e<48?36===e:e<58||!(e<65)&&(e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&l.test(String.fromCharCode(e)):!1!==t&&(f(e,c)||f(e,p)))))}var m=function(e,t){void 0===t&&(t={}),this.label=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=t.binop||null,this.updateContext=null};function y(e,t){return new m(e,{beforeExpr:!0,binop:t})}var b={beforeExpr:!0},v={startsExpr:!0},C={};function S(e,t){return void 0===t&&(t={}),t.keyword=e,C[e]=new m(e,t)}var N={num:new m("num",v),regexp:new m("regexp",v),string:new m("string",v),name:new m("name",v),eof:new m("eof"),bracketL:new m("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new m("]"),braceL:new m("{",{beforeExpr:!0,startsExpr:!0}),braceR:new m("}"),parenL:new m("(",{beforeExpr:!0,startsExpr:!0}),parenR:new m(")"),comma:new m(",",b),semi:new m(";",b),colon:new m(":",b),dot:new m("."),question:new m("?",b),arrow:new m("=>",b),template:new m("template"),invalidTemplate:new m("invalidTemplate"),ellipsis:new m("...",b),backQuote:new m("`",v),dollarBraceL:new m("${",{beforeExpr:!0,startsExpr:!0}),eq:new m("=",{beforeExpr:!0,isAssign:!0}),assign:new m("_=",{beforeExpr:!0,isAssign:!0}),incDec:new m("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new m("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:y("||",1),logicalAND:y("&&",2),bitwiseOR:y("|",3),bitwiseXOR:y("^",4),bitwiseAND:y("&",5),equality:y("==/!=/===/!==",6),relational:y("/<=/>=",7),bitShift:y("<>/>>>",8),plusMin:new m("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:y("%",10),star:y("*",10),slash:y("/",10),starstar:new m("**",{beforeExpr:!0}),_break:S("break"),_case:S("case",b),_catch:S("catch"),_continue:S("continue"),_debugger:S("debugger"),_default:S("default",b),_do:S("do",{isLoop:!0,beforeExpr:!0}),_else:S("else",b),_finally:S("finally"),_for:S("for",{isLoop:!0}),_function:S("function",v),_if:S("if"),_return:S("return",b),_switch:S("switch"),_throw:S("throw",b),_try:S("try"),_var:S("var"),_const:S("const"),_while:S("while",{isLoop:!0}),_with:S("with"),_new:S("new",{beforeExpr:!0,startsExpr:!0}),_this:S("this",v),_super:S("super",v),_class:S("class",v),_extends:S("extends",b),_export:S("export"),_import:S("import"),_null:S("null",v),_true:S("true",v),_false:S("false",v),_in:S("in",{beforeExpr:!0,binop:7}),_instanceof:S("instanceof",{beforeExpr:!0,binop:7}),_typeof:S("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:S("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:S("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},A=/\r\n?|\n|\u2028|\u2029/,_=new RegExp(A.source,"g");function E(e,t){return 10===e||13===e||!t&&(8232===e||8233===e)}var I=/[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/,T=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,D=Object.prototype,F=D.hasOwnProperty,M=D.toString;function P(e,t){return F.call(e,t)}var R=Array.isArray||function(e){return"[object Array]"===M.call(e)},x=function(e,t){this.line=e,this.column=t};x.prototype.offset=function(e){return new x(this.line,this.column+e)};var O=function(e,t,n){this.start=t,this.end=n,null!==e.sourceFile&&(this.source=e.sourceFile)};function $(e,t){for(var n=1,r=0;;){_.lastIndex=r;var i=_.exec(e);if(!(i&&i.index=2015&&(t.ecmaVersion-=2009),null==t.allowReserved&&(t.allowReserved=t.ecmaVersion<5),R(t.onToken)){var r=t.onToken;t.onToken=function(e){return r.push(e)}}return R(t.onComment)&&(t.onComment=function(e,t){return function(n,r,i,o,a,s){var u={type:n?"Block":"Line",value:r,start:i,end:o};e.locations&&(u.loc=new O(this,a,s)),e.ranges&&(u.range=[i,o]),t.push(u)}}(t,t.onComment)),t}var k={};function L(e){return new RegExp("^(?:"+e.replace(/ /g,"|")+")$")}var j=function(e,t,n){this.options=e=B(e),this.sourceFile=e.sourceFile,this.keywords=L(o[e.ecmaVersion>=6?6:5]);var i="";if(!e.allowReserved){for(var a=e.ecmaVersion;!(i=r[a]);a--);"module"===e.sourceType&&(i+=" await")}this.reservedWords=L(i);var s=(i?i+" ":"")+r.strict;this.reservedWordsStrict=L(s),this.reservedWordsStrictBind=L(s+" "+r.strictBind),this.input=String(t),this.containsEsc=!1,this.loadPlugins(e.plugins),n?(this.pos=n,this.lineStart=this.input.lastIndexOf("\n",n-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(A).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=N.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule="module"===e.sourceType,this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.inFunction=this.inGenerator=this.inAsync=!1,this.yieldPos=this.awaitPos=0,this.labels=[],0===this.pos&&e.allowHashBang&&"#!"===this.input.slice(0,2)&&this.skipLineComment(2),this.scopeStack=[],this.enterFunctionScope(),this.regexpState=null};j.prototype.isKeyword=function(e){return this.keywords.test(e)},j.prototype.isReservedWord=function(e){return this.reservedWords.test(e)},j.prototype.extend=function(e,t){this[e]=t(this[e])},j.prototype.loadPlugins=function(e){for(var t in e){var n=k[t];if(!n)throw new Error("Plugin '"+t+"' not found");n(this,e[t])}},j.prototype.parse=function(){var e=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(e)};var G=j.prototype,V=/^(?:'((?:\\.|[^'])*?)'|"((?:\\.|[^"])*?)"|;)/;function U(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1}G.strictDirective=function(e){for(;;){T.lastIndex=e,e+=T.exec(this.input)[0].length;var t=V.exec(this.input.slice(e));if(!t)return!1;if("use strict"===(t[1]||t[2]))return!0;e+=t[0].length}},G.eat=function(e){return this.type===e&&(this.next(),!0)},G.isContextual=function(e){return this.type===N.name&&this.value===e&&!this.containsEsc},G.eatContextual=function(e){return!!this.isContextual(e)&&(this.next(),!0)},G.expectContextual=function(e){this.eatContextual(e)||this.unexpected()},G.canInsertSemicolon=function(){return this.type===N.eof||this.type===N.braceR||A.test(this.input.slice(this.lastTokEnd,this.start))},G.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},G.semicolon=function(){this.eat(N.semi)||this.insertSemicolon()||this.unexpected()},G.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0},G.expect=function(e){this.eat(e)||this.unexpected()},G.unexpected=function(e){this.raise(null!=e?e:this.start,"Unexpected token")},G.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var n=t?e.parenthesizedAssign:e.parenthesizedBind;n>-1&&this.raiseRecoverable(n,"Parenthesized pattern")}},G.checkExpressionErrors=function(e,t){if(!e)return!1;var n=e.shorthandAssign,r=e.doubleProto;if(!t)return n>=0||r>=0;n>=0&&this.raise(n,"Shorthand property assignments are valid only in destructuring patterns"),r>=0&&this.raiseRecoverable(r,"Redefinition of __proto__ property")},G.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos=6&&(e.sourceType=this.options.sourceType),this.finishNode(e,"Program")};var W={kind:"loop"},z={kind:"switch"};H.isLet=function(){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;T.lastIndex=this.pos;var e=T.exec(this.input),t=this.pos+e[0].length,n=this.input.charCodeAt(t);if(91===n||123===n)return!0;if(h(n,!0)){for(var r=t+1;g(this.input.charCodeAt(r),!0);)++r;var i=this.input.slice(t,r);if(!a.test(i))return!0}return!1},H.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;T.lastIndex=this.pos;var e=T.exec(this.input),t=this.pos+e[0].length;return!(A.test(this.input.slice(this.pos,t))||"function"!==this.input.slice(t,t+8)||t+8!==this.input.length&&g(this.input.charAt(t+8)))},H.parseStatement=function(e,t,n){var r,i=this.type,o=this.startNode();switch(this.isLet()&&(i=N._var,r="let"),i){case N._break:case N._continue:return this.parseBreakContinueStatement(o,i.keyword);case N._debugger:return this.parseDebuggerStatement(o);case N._do:return this.parseDoStatement(o);case N._for:return this.parseForStatement(o);case N._function:return!e&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(o,!1);case N._class:return e||this.unexpected(),this.parseClass(o,!0);case N._if:return this.parseIfStatement(o);case N._return:return this.parseReturnStatement(o);case N._switch:return this.parseSwitchStatement(o);case N._throw:return this.parseThrowStatement(o);case N._try:return this.parseTryStatement(o);case N._const:case N._var:return r=r||this.value,e||"var"===r||this.unexpected(),this.parseVarStatement(o,r);case N._while:return this.parseWhileStatement(o);case N._with:return this.parseWithStatement(o);case N.braceL:return this.parseBlock();case N.semi:return this.parseEmptyStatement(o);case N._export:case N._import:return this.options.allowImportExportEverywhere||(t||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),i===N._import?this.parseImport(o):this.parseExport(o,n);default:if(this.isAsyncFunction())return e||this.unexpected(),this.next(),this.parseFunctionStatement(o,!0);var a=this.value,s=this.parseExpression();return i===N.name&&"Identifier"===s.type&&this.eat(N.colon)?this.parseLabeledStatement(o,a,s):this.parseExpressionStatement(o,s)}},H.parseBreakContinueStatement=function(e,t){var n="break"===t;this.next(),this.eat(N.semi)||this.insertSemicolon()?e.label=null:this.type!==N.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var r=0;r=6?this.eat(N.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")},H.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.inAsync&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(W),this.enterLexicalScope(),this.expect(N.parenL),this.type===N.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var n=this.isLet();if(this.type===N._var||this.type===N._const||n){var r=this.startNode(),i=n?"let":this.value;return this.next(),this.parseVar(r,!0,i),this.finishNode(r,"VariableDeclaration"),!(this.type===N._in||this.options.ecmaVersion>=6&&this.isContextual("of"))||1!==r.declarations.length||"var"!==i&&r.declarations[0].init?(t>-1&&this.unexpected(t),this.parseFor(e,r)):(this.options.ecmaVersion>=9&&(this.type===N._in?t>-1&&this.unexpected(t):e.await=t>-1),this.parseForIn(e,r))}var o=new U,a=this.parseExpression(!0,o);return this.type===N._in||this.options.ecmaVersion>=6&&this.isContextual("of")?(this.options.ecmaVersion>=9&&(this.type===N._in?t>-1&&this.unexpected(t):e.await=t>-1),this.toAssignable(a,!1,o),this.checkLVal(a),this.parseForIn(e,a)):(this.checkExpressionErrors(o,!0),t>-1&&this.unexpected(t),this.parseFor(e,a))},H.parseFunctionStatement=function(e,t){return this.next(),this.parseFunction(e,!0,!1,t)},H.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement(!this.strict&&this.type===N._function),e.alternate=this.eat(N._else)?this.parseStatement(!this.strict&&this.type===N._function):null,this.finishNode(e,"IfStatement")},H.parseReturnStatement=function(e){return this.inFunction||this.options.allowReturnOutsideFunction||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(N.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")},H.parseSwitchStatement=function(e){var t;this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(N.braceL),this.labels.push(z),this.enterLexicalScope();for(var n=!1;this.type!==N.braceR;)if(this.type===N._case||this.type===N._default){var r=this.type===N._case;t&&this.finishNode(t,"SwitchCase"),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),r?t.test=this.parseExpression():(n&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),n=!0,t.test=null),this.expect(N.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(!0));return this.exitLexicalScope(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")},H.parseThrowStatement=function(e){return this.next(),A.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")};var K=[];H.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===N._catch){var t=this.startNode();this.next(),this.eat(N.parenL)?(t.param=this.parseBindingAtom(),this.enterLexicalScope(),this.checkLVal(t.param,"let"),this.expect(N.parenR)):(this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterLexicalScope()),t.body=this.parseBlock(!1),this.exitLexicalScope(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(N._finally)?this.parseBlock():null,e.handler||e.finalizer||this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")},H.parseVarStatement=function(e,t){return this.next(),this.parseVar(e,!1,t),this.semicolon(),this.finishNode(e,"VariableDeclaration")},H.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(W),e.body=this.parseStatement(!1),this.labels.pop(),this.finishNode(e,"WhileStatement")},H.parseWithStatement=function(e){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement(!1),this.finishNode(e,"WithStatement")},H.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")},H.parseLabeledStatement=function(e,t,n){for(var r=0,i=this.labels;r=0;a--){var s=this.labels[a];if(s.statementStart!==e.start)break;s.statementStart=this.start,s.kind=o}return this.labels.push({name:t,kind:o,statementStart:this.start}),e.body=this.parseStatement(!0),("ClassDeclaration"===e.body.type||"VariableDeclaration"===e.body.type&&"var"!==e.body.kind||"FunctionDeclaration"===e.body.type&&(this.strict||e.body.generator))&&this.raiseRecoverable(e.body.start,"Invalid labeled declaration"),this.labels.pop(),e.label=n,this.finishNode(e,"LabeledStatement")},H.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")},H.parseBlock=function(e){void 0===e&&(e=!0);var t=this.startNode();for(t.body=[],this.expect(N.braceL),e&&this.enterLexicalScope();!this.eat(N.braceR);){var n=this.parseStatement(!0);t.body.push(n)}return e&&this.exitLexicalScope(),this.finishNode(t,"BlockStatement")},H.parseFor=function(e,t){return e.init=t,this.expect(N.semi),e.test=this.type===N.semi?null:this.parseExpression(),this.expect(N.semi),e.update=this.type===N.parenR?null:this.parseExpression(),this.expect(N.parenR),this.exitLexicalScope(),e.body=this.parseStatement(!1),this.labels.pop(),this.finishNode(e,"ForStatement")},H.parseForIn=function(e,t){var n=this.type===N._in?"ForInStatement":"ForOfStatement";return this.next(),"ForInStatement"===n&&("AssignmentPattern"===t.type||"VariableDeclaration"===t.type&&null!=t.declarations[0].init&&(this.strict||"Identifier"!==t.declarations[0].id.type))&&this.raise(t.start,"Invalid assignment in for-in loop head"),e.left=t,e.right="ForInStatement"===n?this.parseExpression():this.parseMaybeAssign(),this.expect(N.parenR),this.exitLexicalScope(),e.body=this.parseStatement(!1),this.labels.pop(),this.finishNode(e,n)},H.parseVar=function(e,t,n){for(e.declarations=[],e.kind=n;;){var r=this.startNode();if(this.parseVarId(r,n),this.eat(N.eq)?r.init=this.parseMaybeAssign(t):"const"!==n||this.type===N._in||this.options.ecmaVersion>=6&&this.isContextual("of")?"Identifier"===r.id.type||t&&(this.type===N._in||this.isContextual("of"))?r.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.unexpected(),e.declarations.push(this.finishNode(r,"VariableDeclarator")),!this.eat(N.comma))break}return e},H.parseVarId=function(e,t){e.id=this.parseBindingAtom(t),this.checkLVal(e.id,t,!1)},H.parseFunction=function(e,t,n,r){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!r)&&(e.generator=this.eat(N.star)),this.options.ecmaVersion>=8&&(e.async=!!r),t&&(e.id="nullableID"===t&&this.type!==N.name?null:this.parseIdent(),e.id&&this.checkLVal(e.id,"var"));var i=this.inGenerator,o=this.inAsync,a=this.yieldPos,s=this.awaitPos,u=this.inFunction;return this.inGenerator=e.generator,this.inAsync=e.async,this.yieldPos=0,this.awaitPos=0,this.inFunction=!0,this.enterFunctionScope(),t||(e.id=this.type===N.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,n),this.inGenerator=i,this.inAsync=o,this.yieldPos=a,this.awaitPos=s,this.inFunction=u,this.finishNode(e,t?"FunctionDeclaration":"FunctionExpression")},H.parseFunctionParams=function(e){this.expect(N.parenL),e.params=this.parseBindingList(N.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},H.parseClass=function(e,t){this.next(),this.parseClassId(e,t),this.parseClassSuper(e);var n=this.startNode(),r=!1;for(n.body=[],this.expect(N.braceL);!this.eat(N.braceR);){var i=this.parseClassMember(n);i&&"MethodDefinition"===i.type&&"constructor"===i.kind&&(r&&this.raise(i.start,"Duplicate constructor in the same class"),r=!0)}return e.body=this.finishNode(n,"ClassBody"),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")},H.parseClassMember=function(e){var t=this;if(this.eat(N.semi))return null;var n=this.startNode(),r=function(e,r){void 0===r&&(r=!1);var i=t.start,o=t.startLoc;return!!t.eatContextual(e)&&(!(t.type===N.parenL||r&&t.canInsertSemicolon())||(n.key&&t.unexpected(),n.computed=!1,n.key=t.startNodeAt(i,o),n.key.name=e,t.finishNode(n.key,"Identifier"),!1))};n.kind="method",n.static=r("static");var i=this.eat(N.star),o=!1;i||(this.options.ecmaVersion>=8&&r("async",!0)?(o=!0,i=this.options.ecmaVersion>=9&&this.eat(N.star)):r("get")?n.kind="get":r("set")&&(n.kind="set")),n.key||this.parsePropertyName(n);var a=n.key;return n.computed||n.static||!("Identifier"===a.type&&"constructor"===a.name||"Literal"===a.type&&"constructor"===a.value)?n.static&&"Identifier"===a.type&&"prototype"===a.name&&this.raise(a.start,"Classes may not have a static property named prototype"):("method"!==n.kind&&this.raise(a.start,"Constructor can't have get/set modifier"),i&&this.raise(a.start,"Constructor can't be a generator"),o&&this.raise(a.start,"Constructor can't be an async method"),n.kind="constructor"),this.parseClassMethod(e,n,i,o),"get"===n.kind&&0!==n.value.params.length&&this.raiseRecoverable(n.value.start,"getter should have no params"),"set"===n.kind&&1!==n.value.params.length&&this.raiseRecoverable(n.value.start,"setter should have exactly one param"),"set"===n.kind&&"RestElement"===n.value.params[0].type&&this.raiseRecoverable(n.value.params[0].start,"Setter cannot use rest params"),n},H.parseClassMethod=function(e,t,n,r){t.value=this.parseMethod(n,r),e.body.push(this.finishNode(t,"MethodDefinition"))},H.parseClassId=function(e,t){e.id=this.type===N.name?this.parseIdent():!0===t?this.unexpected():null},H.parseClassSuper=function(e){e.superClass=this.eat(N._extends)?this.parseExprSubscripts():null},H.parseExport=function(e,t){if(this.next(),this.eat(N.star))return this.expectContextual("from"),this.type!==N.string&&this.unexpected(),e.source=this.parseExprAtom(),this.semicolon(),this.finishNode(e,"ExportAllDeclaration");if(this.eat(N._default)){var n;if(this.checkExport(t,"default",this.lastTokStart),this.type===N._function||(n=this.isAsyncFunction())){var r=this.startNode();this.next(),n&&this.next(),e.declaration=this.parseFunction(r,"nullableID",!1,n)}else if(this.type===N._class){var i=this.startNode();e.declaration=this.parseClass(i,"nullableID")}else e.declaration=this.parseMaybeAssign(),this.semicolon();return this.finishNode(e,"ExportDefaultDeclaration")}if(this.shouldParseExportStatement())e.declaration=this.parseStatement(!0),"VariableDeclaration"===e.declaration.type?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id.name,e.declaration.id.start),e.specifiers=[],e.source=null;else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))this.type!==N.string&&this.unexpected(),e.source=this.parseExprAtom();else{for(var o=0,a=e.specifiers;o=6&&e)switch(e.type){case"Identifier":this.inAsync&&"await"===e.name&&this.raise(e.start,"Can not use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern",n&&this.checkPatternErrors(n,!0);for(var r=0,i=e.properties;r=9&&"SpreadElement"===e.type||this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))){var r,i=e.key;switch(i.type){case"Identifier":r=i.name;break;case"Literal":r=String(i.value);break;default:return}var o=e.kind;if(this.options.ecmaVersion>=6)"__proto__"===r&&"init"===o&&(t.proto&&(n&&n.doubleProto<0?n.doubleProto=i.start:this.raiseRecoverable(i.start,"Redefinition of __proto__ property")),t.proto=!0);else{var a=t[r="$"+r];if(a)("init"===o?this.strict&&a.init||a.get||a.set:a.init||a[o])&&this.raiseRecoverable(i.start,"Redefinition of property");else a=t[r]={init:!1,get:!1,set:!1};a[o]=!0}}},Y.parseExpression=function(e,t){var n=this.start,r=this.startLoc,i=this.parseMaybeAssign(e,t);if(this.type===N.comma){var o=this.startNodeAt(n,r);for(o.expressions=[i];this.eat(N.comma);)o.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(o,"SequenceExpression")}return i},Y.parseMaybeAssign=function(e,t,n){if(this.inGenerator&&this.isContextual("yield"))return this.parseYield();var r=!1,i=-1,o=-1;t?(i=t.parenthesizedAssign,o=t.trailingComma,t.parenthesizedAssign=t.trailingComma=-1):(t=new U,r=!0);var a=this.start,s=this.startLoc;this.type!==N.parenL&&this.type!==N.name||(this.potentialArrowAt=this.start);var u=this.parseMaybeConditional(e,t);if(n&&(u=n.call(this,u,a,s)),this.type.isAssign){var d=this.startNodeAt(a,s);return d.operator=this.value,d.left=this.type===N.eq?this.toAssignable(u,!1,t):u,r||U.call(t),t.shorthandAssign=-1,this.checkLVal(u),this.next(),d.right=this.parseMaybeAssign(e),this.finishNode(d,"AssignmentExpression")}return r&&this.checkExpressionErrors(t,!0),i>-1&&(t.parenthesizedAssign=i),o>-1&&(t.trailingComma=o),u},Y.parseMaybeConditional=function(e,t){var n=this.start,r=this.startLoc,i=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return i;if(this.eat(N.question)){var o=this.startNodeAt(n,r);return o.test=i,o.consequent=this.parseMaybeAssign(),this.expect(N.colon),o.alternate=this.parseMaybeAssign(e),this.finishNode(o,"ConditionalExpression")}return i},Y.parseExprOps=function(e,t){var n=this.start,r=this.startLoc,i=this.parseMaybeUnary(t,!1);return this.checkExpressionErrors(t)?i:i.start===n&&"ArrowFunctionExpression"===i.type?i:this.parseExprOp(i,n,r,-1,e)},Y.parseExprOp=function(e,t,n,r,i){var o=this.type.binop;if(null!=o&&(!i||this.type!==N._in)&&o>r){var a=this.type===N.logicalOR||this.type===N.logicalAND,s=this.value;this.next();var u=this.start,d=this.startLoc,l=this.parseExprOp(this.parseMaybeUnary(null,!1),u,d,o,i),c=this.buildBinary(t,n,e,l,s,a);return this.parseExprOp(c,t,n,r,i)}return e},Y.buildBinary=function(e,t,n,r,i,o){var a=this.startNodeAt(e,t);return a.left=n,a.operator=i,a.right=r,this.finishNode(a,o?"LogicalExpression":"BinaryExpression")},Y.parseMaybeUnary=function(e,t){var n,r=this.start,i=this.startLoc;if(this.isContextual("await")&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction))n=this.parseAwait(),t=!0;else if(this.type.prefix){var o=this.startNode(),a=this.type===N.incDec;o.operator=this.value,o.prefix=!0,this.next(),o.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(e,!0),a?this.checkLVal(o.argument):this.strict&&"delete"===o.operator&&"Identifier"===o.argument.type?this.raiseRecoverable(o.start,"Deleting local variable in strict mode"):t=!0,n=this.finishNode(o,a?"UpdateExpression":"UnaryExpression")}else{if(n=this.parseExprSubscripts(e),this.checkExpressionErrors(e))return n;for(;this.type.postfix&&!this.canInsertSemicolon();){var s=this.startNodeAt(r,i);s.operator=this.value,s.prefix=!1,s.argument=n,this.checkLVal(n),this.next(),n=this.finishNode(s,"UpdateExpression")}}return!t&&this.eat(N.starstar)?this.buildBinary(r,i,n,this.parseMaybeUnary(null,!1),"**",!1):n},Y.parseExprSubscripts=function(e){var t=this.start,n=this.startLoc,r=this.parseExprAtom(e),i="ArrowFunctionExpression"===r.type&&")"!==this.input.slice(this.lastTokStart,this.lastTokEnd);if(this.checkExpressionErrors(e)||i)return r;var o=this.parseSubscripts(r,t,n);return e&&"MemberExpression"===o.type&&(e.parenthesizedAssign>=o.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=o.start&&(e.parenthesizedBind=-1)),o},Y.parseSubscripts=function(e,t,n,r){for(var i=this.options.ecmaVersion>=8&&"Identifier"===e.type&&"async"===e.name&&this.lastTokEnd===e.end&&!this.canInsertSemicolon()&&"async"===this.input.slice(e.start,e.end),o=void 0;;)if((o=this.eat(N.bracketL))||this.eat(N.dot)){var a=this.startNodeAt(t,n);a.object=e,a.property=o?this.parseExpression():this.parseIdent(!0),a.computed=!!o,o&&this.expect(N.bracketR),e=this.finishNode(a,"MemberExpression")}else if(!r&&this.eat(N.parenL)){var s=new U,u=this.yieldPos,d=this.awaitPos;this.yieldPos=0,this.awaitPos=0;var l=this.parseExprList(N.parenR,this.options.ecmaVersion>=8,!1,s);if(i&&!this.canInsertSemicolon()&&this.eat(N.arrow))return this.checkPatternErrors(s,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=u,this.awaitPos=d,this.parseArrowExpression(this.startNodeAt(t,n),l,!0);this.checkExpressionErrors(s,!0),this.yieldPos=u||this.yieldPos,this.awaitPos=d||this.awaitPos;var c=this.startNodeAt(t,n);c.callee=e,c.arguments=l,e=this.finishNode(c,"CallExpression")}else{if(this.type!==N.backQuote)return e;var p=this.startNodeAt(t,n);p.tag=e,p.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(p,"TaggedTemplateExpression")}},Y.parseExprAtom=function(e){var t,n=this.potentialArrowAt===this.start;switch(this.type){case N._super:return this.inFunction||this.raise(this.start,"'super' outside of function or class"),t=this.startNode(),this.next(),this.type!==N.dot&&this.type!==N.bracketL&&this.type!==N.parenL&&this.unexpected(),this.finishNode(t,"Super");case N._this:return t=this.startNode(),this.next(),this.finishNode(t,"ThisExpression");case N.name:var r=this.start,i=this.startLoc,o=this.containsEsc,a=this.parseIdent(this.type!==N.name);if(this.options.ecmaVersion>=8&&!o&&"async"===a.name&&!this.canInsertSemicolon()&&this.eat(N._function))return this.parseFunction(this.startNodeAt(r,i),!1,!1,!0);if(n&&!this.canInsertSemicolon()){if(this.eat(N.arrow))return this.parseArrowExpression(this.startNodeAt(r,i),[a],!1);if(this.options.ecmaVersion>=8&&"async"===a.name&&this.type===N.name&&!o)return a=this.parseIdent(),!this.canInsertSemicolon()&&this.eat(N.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(r,i),[a],!0)}return a;case N.regexp:var s=this.value;return(t=this.parseLiteral(s.value)).regex={pattern:s.pattern,flags:s.flags},t;case N.num:case N.string:return this.parseLiteral(this.value);case N._null:case N._true:case N._false:return(t=this.startNode()).value=this.type===N._null?null:this.type===N._true,t.raw=this.type.keyword,this.next(),this.finishNode(t,"Literal");case N.parenL:var u=this.start,d=this.parseParenAndDistinguishExpression(n);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(d)&&(e.parenthesizedAssign=u),e.parenthesizedBind<0&&(e.parenthesizedBind=u)),d;case N.bracketL:return t=this.startNode(),this.next(),t.elements=this.parseExprList(N.bracketR,!0,!0,e),this.finishNode(t,"ArrayExpression");case N.braceL:return this.parseObj(!1,e);case N._function:return t=this.startNode(),this.next(),this.parseFunction(t,!1);case N._class:return this.parseClass(this.startNode(),!1);case N._new:return this.parseNew();case N.backQuote:return this.parseTemplate();default:this.unexpected()}},Y.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),this.next(),this.finishNode(t,"Literal")},Y.parseParenExpression=function(){this.expect(N.parenL);var e=this.parseExpression();return this.expect(N.parenR),e},Y.parseParenAndDistinguishExpression=function(e){var t,n=this.start,r=this.startLoc,i=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var o,a=this.start,s=this.startLoc,u=[],d=!0,l=!1,c=new U,p=this.yieldPos,f=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==N.parenR;){if(d?d=!1:this.expect(N.comma),i&&this.afterTrailingComma(N.parenR,!0)){l=!0;break}if(this.type===N.ellipsis){o=this.start,u.push(this.parseParenItem(this.parseRestBinding())),this.type===N.comma&&this.raise(this.start,"Comma is not permitted after the rest element");break}u.push(this.parseMaybeAssign(!1,c,this.parseParenItem))}var h=this.start,g=this.startLoc;if(this.expect(N.parenR),e&&!this.canInsertSemicolon()&&this.eat(N.arrow))return this.checkPatternErrors(c,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=p,this.awaitPos=f,this.parseParenArrowList(n,r,u);u.length&&!l||this.unexpected(this.lastTokStart),o&&this.unexpected(o),this.checkExpressionErrors(c,!0),this.yieldPos=p||this.yieldPos,this.awaitPos=f||this.awaitPos,u.length>1?((t=this.startNodeAt(a,s)).expressions=u,this.finishNodeAt(t,"SequenceExpression",h,g)):t=u[0]}else t=this.parseParenExpression();if(this.options.preserveParens){var m=this.startNodeAt(n,r);return m.expression=t,this.finishNode(m,"ParenthesizedExpression")}return t},Y.parseParenItem=function(e){return e},Y.parseParenArrowList=function(e,t,n){return this.parseArrowExpression(this.startNodeAt(e,t),n)};var q=[];Y.parseNew=function(){var e=this.startNode(),t=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(N.dot)){e.meta=t;var n=this.containsEsc;return e.property=this.parseIdent(!0),("target"!==e.property.name||n)&&this.raiseRecoverable(e.property.start,"The only valid meta property for new is new.target"),this.inFunction||this.raiseRecoverable(e.start,"new.target can only be used in functions"),this.finishNode(e,"MetaProperty")}var r=this.start,i=this.startLoc;return e.callee=this.parseSubscripts(this.parseExprAtom(),r,i,!0),this.eat(N.parenL)?e.arguments=this.parseExprList(N.parenR,this.options.ecmaVersion>=8,!1):e.arguments=q,this.finishNode(e,"NewExpression")},Y.parseTemplateElement=function(e){var t=e.isTagged,n=this.startNode();return this.type===N.invalidTemplate?(t||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),n.value={raw:this.value,cooked:null}):n.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,"\n"),cooked:this.value},this.next(),n.tail=this.type===N.backQuote,this.finishNode(n,"TemplateElement")},Y.parseTemplate=function(e){void 0===e&&(e={});var t=e.isTagged;void 0===t&&(t=!1);var n=this.startNode();this.next(),n.expressions=[];var r=this.parseTemplateElement({isTagged:t});for(n.quasis=[r];!r.tail;)this.expect(N.dollarBraceL),n.expressions.push(this.parseExpression()),this.expect(N.braceR),n.quasis.push(r=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(n,"TemplateLiteral")},Y.isAsyncProp=function(e){return!e.computed&&"Identifier"===e.key.type&&"async"===e.key.name&&(this.type===N.name||this.type===N.num||this.type===N.string||this.type===N.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===N.star)&&!A.test(this.input.slice(this.lastTokEnd,this.start))},Y.parseObj=function(e,t){var n=this.startNode(),r=!0,i={};for(n.properties=[],this.next();!this.eat(N.braceR);){if(r)r=!1;else if(this.expect(N.comma),this.afterTrailingComma(N.braceR))break;var o=this.parseProperty(e,t);e||this.checkPropClash(o,i,t),n.properties.push(o)}return this.finishNode(n,e?"ObjectPattern":"ObjectExpression")},Y.parseProperty=function(e,t){var n,r,i,o,a=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(N.ellipsis))return e?(a.argument=this.parseIdent(!1),this.type===N.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.finishNode(a,"RestElement")):(this.type===N.parenL&&t&&(t.parenthesizedAssign<0&&(t.parenthesizedAssign=this.start),t.parenthesizedBind<0&&(t.parenthesizedBind=this.start)),a.argument=this.parseMaybeAssign(!1,t),this.type===N.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(a,"SpreadElement"));this.options.ecmaVersion>=6&&(a.method=!1,a.shorthand=!1,(e||t)&&(i=this.start,o=this.startLoc),e||(n=this.eat(N.star)));var s=this.containsEsc;return this.parsePropertyName(a),!e&&!s&&this.options.ecmaVersion>=8&&!n&&this.isAsyncProp(a)?(r=!0,n=this.options.ecmaVersion>=9&&this.eat(N.star),this.parsePropertyName(a,t)):r=!1,this.parsePropertyValue(a,e,n,r,i,o,t,s),this.finishNode(a,"Property")},Y.parsePropertyValue=function(e,t,n,r,i,o,a,s){if((n||r)&&this.type===N.colon&&this.unexpected(),this.eat(N.colon))e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,a),e.kind="init";else if(this.options.ecmaVersion>=6&&this.type===N.parenL)t&&this.unexpected(),e.kind="init",e.method=!0,e.value=this.parseMethod(n,r);else if(t||s||!(this.options.ecmaVersion>=5)||e.computed||"Identifier"!==e.key.type||"get"!==e.key.name&&"set"!==e.key.name||this.type===N.comma||this.type===N.braceR)this.options.ecmaVersion>=6&&!e.computed&&"Identifier"===e.key.type?(this.checkUnreserved(e.key),e.kind="init",t?e.value=this.parseMaybeDefault(i,o,e.key):this.type===N.eq&&a?(a.shorthandAssign<0&&(a.shorthandAssign=this.start),e.value=this.parseMaybeDefault(i,o,e.key)):e.value=e.key,e.shorthand=!0):this.unexpected();else{(n||r)&&this.unexpected(),e.kind=e.key.name,this.parsePropertyName(e),e.value=this.parseMethod(!1);var u="get"===e.kind?0:1;if(e.value.params.length!==u){var d=e.value.start;"get"===e.kind?this.raiseRecoverable(d,"getter should have no params"):this.raiseRecoverable(d,"setter should have exactly one param")}else"set"===e.kind&&"RestElement"===e.value.params[0].type&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")}},Y.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(N.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(N.bracketR),e.key;e.computed=!1}return e.key=this.type===N.num||this.type===N.string?this.parseExprAtom():this.parseIdent(!0)},Y.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=!1,e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)},Y.parseMethod=function(e,t){var n=this.startNode(),r=this.inGenerator,i=this.inAsync,o=this.yieldPos,a=this.awaitPos,s=this.inFunction;return this.initFunction(n),this.options.ecmaVersion>=6&&(n.generator=e),this.options.ecmaVersion>=8&&(n.async=!!t),this.inGenerator=n.generator,this.inAsync=n.async,this.yieldPos=0,this.awaitPos=0,this.inFunction=!0,this.enterFunctionScope(),this.expect(N.parenL),n.params=this.parseBindingList(N.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(n,!1),this.inGenerator=r,this.inAsync=i,this.yieldPos=o,this.awaitPos=a,this.inFunction=s,this.finishNode(n,"FunctionExpression")},Y.parseArrowExpression=function(e,t,n){var r=this.inGenerator,i=this.inAsync,o=this.yieldPos,a=this.awaitPos,s=this.inFunction;return this.enterFunctionScope(),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!n),this.inGenerator=!1,this.inAsync=e.async,this.yieldPos=0,this.awaitPos=0,this.inFunction=!0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0),this.inGenerator=r,this.inAsync=i,this.yieldPos=o,this.awaitPos=a,this.inFunction=s,this.finishNode(e,"ArrowFunctionExpression")},Y.parseFunctionBody=function(e,t){var n=t&&this.type!==N.braceL,r=this.strict,i=!1;if(n)e.body=this.parseMaybeAssign(),e.expression=!0,this.checkParams(e,!1);else{var o=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);r&&!o||(i=this.strictDirective(this.end))&&o&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list");var a=this.labels;this.labels=[],i&&(this.strict=!0),this.checkParams(e,!r&&!i&&!t&&this.isSimpleParamList(e.params)),e.body=this.parseBlock(!1),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=a}this.exitFunctionScope(),this.strict&&e.id&&this.checkLVal(e.id,"none"),this.strict=r},Y.isSimpleParamList=function(e){for(var t=0,n=e;t0;)t[n]=arguments[n+1];for(var r=0,i=t;r=1;e--){var t=this.context[e];if("function"===t.token)return t.generator}return!1},oe.updateContext=function(e){var t,n=this.type;n.keyword&&e===N.dot?this.exprAllowed=!1:(t=n.updateContext)?t.call(this,e):this.exprAllowed=n.beforeExpr},N.parenR.updateContext=N.braceR.updateContext=function(){if(1!==this.context.length){var e=this.context.pop();e===ie.b_stat&&"function"===this.curContext().token&&(e=this.context.pop()),this.exprAllowed=!e.isExpr}else this.exprAllowed=!0},N.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?ie.b_stat:ie.b_expr),this.exprAllowed=!0},N.dollarBraceL.updateContext=function(){this.context.push(ie.b_tmpl),this.exprAllowed=!0},N.parenL.updateContext=function(e){var t=e===N._if||e===N._for||e===N._with||e===N._while;this.context.push(t?ie.p_stat:ie.p_expr),this.exprAllowed=!0},N.incDec.updateContext=function(){},N._function.updateContext=N._class.updateContext=function(e){e.beforeExpr&&e!==N.semi&&e!==N._else&&(e!==N.colon&&e!==N.braceL||this.curContext()!==ie.b_stat)?this.context.push(ie.f_expr):this.context.push(ie.f_stat),this.exprAllowed=!1},N.backQuote.updateContext=function(){this.curContext()===ie.q_tmpl?this.context.pop():this.context.push(ie.q_tmpl),this.exprAllowed=!1},N.star.updateContext=function(e){if(e===N._function){var t=this.context.length-1;this.context[t]===ie.f_expr?this.context[t]=ie.f_expr_gen:this.context[t]=ie.f_gen}this.exprAllowed=!0},N.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&("of"===this.value&&!this.exprAllowed||"yield"===this.value&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var ae={$LONE:["ASCII","ASCII_Hex_Digit","AHex","Alphabetic","Alpha","Any","Assigned","Bidi_Control","Bidi_C","Bidi_Mirrored","Bidi_M","Case_Ignorable","CI","Cased","Changes_When_Casefolded","CWCF","Changes_When_Casemapped","CWCM","Changes_When_Lowercased","CWL","Changes_When_NFKC_Casefolded","CWKCF","Changes_When_Titlecased","CWT","Changes_When_Uppercased","CWU","Dash","Default_Ignorable_Code_Point","DI","Deprecated","Dep","Diacritic","Dia","Emoji","Emoji_Component","Emoji_Modifier","Emoji_Modifier_Base","Emoji_Presentation","Extender","Ext","Grapheme_Base","Gr_Base","Grapheme_Extend","Gr_Ext","Hex_Digit","Hex","IDS_Binary_Operator","IDSB","IDS_Trinary_Operator","IDST","ID_Continue","IDC","ID_Start","IDS","Ideographic","Ideo","Join_Control","Join_C","Logical_Order_Exception","LOE","Lowercase","Lower","Math","Noncharacter_Code_Point","NChar","Pattern_Syntax","Pat_Syn","Pattern_White_Space","Pat_WS","Quotation_Mark","QMark","Radical","Regional_Indicator","RI","Sentence_Terminal","STerm","Soft_Dotted","SD","Terminal_Punctuation","Term","Unified_Ideograph","UIdeo","Uppercase","Upper","Variation_Selector","VS","White_Space","space","XID_Continue","XIDC","XID_Start","XIDS"],General_Category:["Cased_Letter","LC","Close_Punctuation","Pe","Connector_Punctuation","Pc","Control","Cc","cntrl","Currency_Symbol","Sc","Dash_Punctuation","Pd","Decimal_Number","Nd","digit","Enclosing_Mark","Me","Final_Punctuation","Pf","Format","Cf","Initial_Punctuation","Pi","Letter","L","Letter_Number","Nl","Line_Separator","Zl","Lowercase_Letter","Ll","Mark","M","Combining_Mark","Math_Symbol","Sm","Modifier_Letter","Lm","Modifier_Symbol","Sk","Nonspacing_Mark","Mn","Number","N","Open_Punctuation","Ps","Other","C","Other_Letter","Lo","Other_Number","No","Other_Punctuation","Po","Other_Symbol","So","Paragraph_Separator","Zp","Private_Use","Co","Punctuation","P","punct","Separator","Z","Space_Separator","Zs","Spacing_Mark","Mc","Surrogate","Cs","Symbol","S","Titlecase_Letter","Lt","Unassigned","Cn","Uppercase_Letter","Lu"],Script:["Adlam","Adlm","Ahom","Anatolian_Hieroglyphs","Hluw","Arabic","Arab","Armenian","Armn","Avestan","Avst","Balinese","Bali","Bamum","Bamu","Bassa_Vah","Bass","Batak","Batk","Bengali","Beng","Bhaiksuki","Bhks","Bopomofo","Bopo","Brahmi","Brah","Braille","Brai","Buginese","Bugi","Buhid","Buhd","Canadian_Aboriginal","Cans","Carian","Cari","Caucasian_Albanian","Aghb","Chakma","Cakm","Cham","Cherokee","Cher","Common","Zyyy","Coptic","Copt","Qaac","Cuneiform","Xsux","Cypriot","Cprt","Cyrillic","Cyrl","Deseret","Dsrt","Devanagari","Deva","Duployan","Dupl","Egyptian_Hieroglyphs","Egyp","Elbasan","Elba","Ethiopic","Ethi","Georgian","Geor","Glagolitic","Glag","Gothic","Goth","Grantha","Gran","Greek","Grek","Gujarati","Gujr","Gurmukhi","Guru","Han","Hani","Hangul","Hang","Hanunoo","Hano","Hatran","Hatr","Hebrew","Hebr","Hiragana","Hira","Imperial_Aramaic","Armi","Inherited","Zinh","Qaai","Inscriptional_Pahlavi","Phli","Inscriptional_Parthian","Prti","Javanese","Java","Kaithi","Kthi","Kannada","Knda","Katakana","Kana","Kayah_Li","Kali","Kharoshthi","Khar","Khmer","Khmr","Khojki","Khoj","Khudawadi","Sind","Lao","Laoo","Latin","Latn","Lepcha","Lepc","Limbu","Limb","Linear_A","Lina","Linear_B","Linb","Lisu","Lycian","Lyci","Lydian","Lydi","Mahajani","Mahj","Malayalam","Mlym","Mandaic","Mand","Manichaean","Mani","Marchen","Marc","Masaram_Gondi","Gonm","Meetei_Mayek","Mtei","Mende_Kikakui","Mend","Meroitic_Cursive","Merc","Meroitic_Hieroglyphs","Mero","Miao","Plrd","Modi","Mongolian","Mong","Mro","Mroo","Multani","Mult","Myanmar","Mymr","Nabataean","Nbat","New_Tai_Lue","Talu","Newa","Nko","Nkoo","Nushu","Nshu","Ogham","Ogam","Ol_Chiki","Olck","Old_Hungarian","Hung","Old_Italic","Ital","Old_North_Arabian","Narb","Old_Permic","Perm","Old_Persian","Xpeo","Old_South_Arabian","Sarb","Old_Turkic","Orkh","Oriya","Orya","Osage","Osge","Osmanya","Osma","Pahawh_Hmong","Hmng","Palmyrene","Palm","Pau_Cin_Hau","Pauc","Phags_Pa","Phag","Phoenician","Phnx","Psalter_Pahlavi","Phlp","Rejang","Rjng","Runic","Runr","Samaritan","Samr","Saurashtra","Saur","Sharada","Shrd","Shavian","Shaw","Siddham","Sidd","SignWriting","Sgnw","Sinhala","Sinh","Sora_Sompeng","Sora","Soyombo","Soyo","Sundanese","Sund","Syloti_Nagri","Sylo","Syriac","Syrc","Tagalog","Tglg","Tagbanwa","Tagb","Tai_Le","Tale","Tai_Tham","Lana","Tai_Viet","Tavt","Takri","Takr","Tamil","Taml","Tangut","Tang","Telugu","Telu","Thaana","Thaa","Thai","Tibetan","Tibt","Tifinagh","Tfng","Tirhuta","Tirh","Ugaritic","Ugar","Vai","Vaii","Warang_Citi","Wara","Yi","Yiii","Zanabazar_Square","Zanb"]};Array.prototype.push.apply(ae.$LONE,ae.General_Category),ae.gc=ae.General_Category,ae.sc=ae.Script_Extensions=ae.scx=ae.Script;var se=j.prototype,ue=function(e){this.parser=e,this.validFlags="gim"+(e.options.ecmaVersion>=6?"uy":"")+(e.options.ecmaVersion>=9?"s":""),this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]};function de(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e)))}function le(e){return 36===e||e>=40&&e<=43||46===e||63===e||e>=91&&e<=94||e>=123&&e<=125}function ce(e){return e>=65&&e<=90||e>=97&&e<=122}function pe(e){return ce(e)||95===e}function fe(e){return pe(e)||he(e)}function he(e){return e>=48&&e<=57}function ge(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function me(e){return e>=65&&e<=70?e-65+10:e>=97&&e<=102?e-97+10:e-48}function ye(e){return e>=48&&e<=55}ue.prototype.reset=function(e,t,n){var r=-1!==n.indexOf("u");this.start=0|e,this.source=t+"",this.flags=n,this.switchU=r&&this.parser.options.ecmaVersion>=6,this.switchN=r&&this.parser.options.ecmaVersion>=9},ue.prototype.raise=function(e){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+e)},ue.prototype.at=function(e){var t=this.source,n=t.length;if(e>=n)return-1;var r=t.charCodeAt(e);return!this.switchU||r<=55295||r>=57344||e+1>=n?r:(r<<10)+t.charCodeAt(e+1)-56613888},ue.prototype.nextIndex=function(e){var t=this.source,n=t.length;if(e>=n)return n;var r=t.charCodeAt(e);return!this.switchU||r<=55295||r>=57344||e+1>=n?e+1:e+2},ue.prototype.current=function(){return this.at(this.pos)},ue.prototype.lookahead=function(){return this.at(this.nextIndex(this.pos))},ue.prototype.advance=function(){this.pos=this.nextIndex(this.pos)},ue.prototype.eat=function(e){return this.current()===e&&(this.advance(),!0)},se.validateRegExpFlags=function(e){for(var t=e.validFlags,n=e.flags,r=0;r-1&&this.raise(e.start,"Duplicate regular expression flag")}},se.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&e.groupNames.length>0&&(e.switchN=!0,this.regexp_pattern(e))},se.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue="",e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames.length=0,e.backReferenceNames.length=0,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise("Unmatched ')'"),(e.eat(93)||e.eat(125))&&e.raise("Lone quantifier brackets")),e.maxBackReference>e.numCapturingParens&&e.raise("Invalid escape");for(var t=0,n=e.backReferenceNames;t=9&&(n=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise("Unterminated group"),e.lastAssertionIsQuantifiable=!n,!0}return e.pos=t,!1},se.regexp_eatQuantifier=function(e,t){return void 0===t&&(t=!1),!!this.regexp_eatQuantifierPrefix(e,t)&&(e.eat(63),!0)},se.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)},se.regexp_eatBracedQuantifier=function(e,t){var n=e.pos;if(e.eat(123)){var r=0,i=-1;if(this.regexp_eatDecimalDigits(e)&&(r=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(i=e.lastIntValue),e.eat(125)))return-1!==i&&i=9?this.regexp_groupSpecifier(e):63===e.current()&&e.raise("Invalid group"),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise("Unterminated group")}return!1},se.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)},se.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1},se.regexp_eatSyntaxCharacter=function(e){var t=e.current();return!!le(t)&&(e.lastIntValue=t,e.advance(),!0)},se.regexp_eatPatternCharacters=function(e){for(var t=e.pos,n=0;-1!==(n=e.current())&&!le(n);)e.advance();return e.pos!==t},se.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return!(-1===t||36===t||t>=40&&t<=43||46===t||63===t||91===t||94===t||124===t)&&(e.advance(),!0)},se.regexp_groupSpecifier=function(e){if(e.eat(63)){if(this.regexp_eatGroupName(e))return-1!==e.groupNames.indexOf(e.lastStringValue)&&e.raise("Duplicate capture group name"),void e.groupNames.push(e.lastStringValue);e.raise("Invalid group")}},se.regexp_eatGroupName=function(e){if(e.lastStringValue="",e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise("Invalid capture group name")}return!1},se.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=de(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=de(e.lastIntValue);return!0}return!1},se.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,n=e.current();return e.advance(),92===n&&this.regexp_eatRegExpUnicodeEscapeSequence(e)&&(n=e.lastIntValue),function(e){return h(e,!0)||36===e||95===e}(n)?(e.lastIntValue=n,!0):(e.pos=t,!1)},se.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,n=e.current();return e.advance(),92===n&&this.regexp_eatRegExpUnicodeEscapeSequence(e)&&(n=e.lastIntValue),function(e){return g(e,!0)||36===e||95===e||8204===e||8205===e}(n)?(e.lastIntValue=n,!0):(e.pos=t,!1)},se.regexp_eatAtomEscape=function(e){return!!(this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e))||(e.switchU&&(99===e.current()&&e.raise("Invalid unicode escape"),e.raise("Invalid escape")),!1)},se.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var n=e.lastIntValue;if(e.switchU)return n>e.maxBackReference&&(e.maxBackReference=n),!0;if(n<=e.numCapturingParens)return!0;e.pos=t}return!1},se.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise("Invalid named reference")}return!1},se.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)},se.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1},se.regexp_eatZero=function(e){return 48===e.current()&&!he(e.lookahead())&&(e.lastIntValue=0,e.advance(),!0)},se.regexp_eatControlEscape=function(e){var t=e.current();return 116===t?(e.lastIntValue=9,e.advance(),!0):110===t?(e.lastIntValue=10,e.advance(),!0):118===t?(e.lastIntValue=11,e.advance(),!0):102===t?(e.lastIntValue=12,e.advance(),!0):114===t&&(e.lastIntValue=13,e.advance(),!0)},se.regexp_eatControlLetter=function(e){var t=e.current();return!!ce(t)&&(e.lastIntValue=t%32,e.advance(),!0)},se.regexp_eatRegExpUnicodeEscapeSequence=function(e){var t,n=e.pos;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var r=e.lastIntValue;if(e.switchU&&r>=55296&&r<=56319){var i=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var o=e.lastIntValue;if(o>=56320&&o<=57343)return e.lastIntValue=1024*(r-55296)+(o-56320)+65536,!0}e.pos=i,e.lastIntValue=r}return!0}if(e.switchU&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&((t=e.lastIntValue)>=0&&t<=1114111))return!0;e.switchU&&e.raise("Invalid unicode escape"),e.pos=n}return!1},se.regexp_eatIdentityEscape=function(e){if(e.switchU)return!!this.regexp_eatSyntaxCharacter(e)||!!e.eat(47)&&(e.lastIntValue=47,!0);var t=e.current();return!(99===t||e.switchN&&107===t)&&(e.lastIntValue=t,e.advance(),!0)},se.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do{e.lastIntValue=10*e.lastIntValue+(t-48),e.advance()}while((t=e.current())>=48&&t<=57);return!0}return!1},se.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(function(e){return 100===e||68===e||115===e||83===e||119===e||87===e}(t))return e.lastIntValue=-1,e.advance(),!0;if(e.switchU&&this.options.ecmaVersion>=9&&(80===t||112===t)){if(e.lastIntValue=-1,e.advance(),e.eat(123)&&this.regexp_eatUnicodePropertyValueExpression(e)&&e.eat(125))return!0;e.raise("Invalid property name")}return!1},se.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var n=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var r=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,n,r),!0}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var i=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,i),!0}return!1},se.regexp_validateUnicodePropertyNameAndValue=function(e,t,n){ae.hasOwnProperty(t)&&-1!==ae[t].indexOf(n)||e.raise("Invalid property name")},se.regexp_validateUnicodePropertyNameOrValue=function(e,t){-1===ae.$LONE.indexOf(t)&&e.raise("Invalid property name")},se.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";pe(t=e.current());)e.lastStringValue+=de(t),e.advance();return""!==e.lastStringValue},se.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue="";fe(t=e.current());)e.lastStringValue+=de(t),e.advance();return""!==e.lastStringValue},se.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)},se.regexp_eatCharacterClass=function(e){if(e.eat(91)){if(e.eat(94),this.regexp_classRanges(e),e.eat(93))return!0;e.raise("Unterminated character class")}return!1},se.regexp_classRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var n=e.lastIntValue;!e.switchU||-1!==t&&-1!==n||e.raise("Invalid character class"),-1!==t&&-1!==n&&t>n&&e.raise("Range out of order in character class")}}},se.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var n=e.current();(99===n||ye(n))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=t}var r=e.current();return 93!==r&&(e.lastIntValue=r,e.advance(),!0)},se.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)},se.regexp_eatClassControlLetter=function(e){var t=e.current();return!(!he(t)&&95!==t)&&(e.lastIntValue=t%32,e.advance(),!0)},se.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise("Invalid escape"),e.pos=t}return!1},se.regexp_eatDecimalDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;he(n=e.current());)e.lastIntValue=10*e.lastIntValue+(n-48),e.advance();return e.pos!==t},se.regexp_eatHexDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;ge(n=e.current());)e.lastIntValue=16*e.lastIntValue+me(n),e.advance();return e.pos!==t},se.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var n=e.lastIntValue;t<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=64*t+8*n+e.lastIntValue:e.lastIntValue=8*t+n}else e.lastIntValue=t;return!0}return!1},se.regexp_eatOctalDigit=function(e){var t=e.current();return ye(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)},se.regexp_eatFixedHexDigits=function(e,t){var n=e.pos;e.lastIntValue=0;for(var r=0;r>10),56320+(1023&e)))}ve.next=function(){this.options.onToken&&this.options.onToken(new be(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},ve.getToken=function(){return this.next(),new be(this)},"undefined"!=typeof Symbol&&(ve[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===N.eof,value:t}}}}),ve.curContext=function(){return this.context[this.context.length-1]},ve.nextToken=function(){var e=this.curContext();return e&&e.preserveSpace||this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length?this.finishToken(N.eof):e.override?e.override(this):void this.readToken(this.fullCharCodeAtPos())},ve.readToken=function(e){return h(e,this.options.ecmaVersion>=6)||92===e?this.readWord():this.getTokenFromCode(e)},ve.fullCharCodeAtPos=function(){var e=this.input.charCodeAt(this.pos);return e<=55295||e>=57344?e:(e<<10)+this.input.charCodeAt(this.pos+1)-56613888},ve.skipBlockComment=function(){var e,t=this.options.onComment&&this.curPosition(),n=this.pos,r=this.input.indexOf("*/",this.pos+=2);if(-1===r&&this.raise(this.pos-2,"Unterminated comment"),this.pos=r+2,this.options.locations)for(_.lastIndex=n;(e=_.exec(this.input))&&e.index8&&e<14||e>=5760&&I.test(String.fromCharCode(e))))break e;++this.pos}}},ve.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var n=this.type;this.type=e,this.value=t,this.updateContext(n)},ve.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&46===e&&46===t?(this.pos+=3,this.finishToken(N.ellipsis)):(++this.pos,this.finishToken(N.dot))},ve.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===e?this.finishOp(N.assign,2):this.finishOp(N.slash,1)},ve.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),n=1,r=42===e?N.star:N.modulo;return this.options.ecmaVersion>=7&&42===e&&42===t&&(++n,r=N.starstar,t=this.input.charCodeAt(this.pos+2)),61===t?this.finishOp(N.assign,n+1):this.finishOp(r,n)},ve.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?this.finishOp(124===e?N.logicalOR:N.logicalAND,2):61===t?this.finishOp(N.assign,2):this.finishOp(124===e?N.bitwiseOR:N.bitwiseAND,1)},ve.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(N.assign,2):this.finishOp(N.bitwiseXOR,1)},ve.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?45!==t||this.inModule||62!==this.input.charCodeAt(this.pos+2)||0!==this.lastTokEnd&&!A.test(this.input.slice(this.lastTokEnd,this.pos))?this.finishOp(N.incDec,2):(this.skipLineComment(3),this.skipSpace(),this.nextToken()):61===t?this.finishOp(N.assign,2):this.finishOp(N.plusMin,1)},ve.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),n=1;return t===e?(n=62===e&&62===this.input.charCodeAt(this.pos+2)?3:2,61===this.input.charCodeAt(this.pos+n)?this.finishOp(N.assign,n+1):this.finishOp(N.bitShift,n)):33!==t||60!==e||this.inModule||45!==this.input.charCodeAt(this.pos+2)||45!==this.input.charCodeAt(this.pos+3)?(61===t&&(n=2),this.finishOp(N.relational,n)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},ve.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return 61===t?this.finishOp(N.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===e&&62===t&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(N.arrow)):this.finishOp(61===e?N.eq:N.prefix,1)},ve.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(N.parenL);case 41:return++this.pos,this.finishToken(N.parenR);case 59:return++this.pos,this.finishToken(N.semi);case 44:return++this.pos,this.finishToken(N.comma);case 91:return++this.pos,this.finishToken(N.bracketL);case 93:return++this.pos,this.finishToken(N.bracketR);case 123:return++this.pos,this.finishToken(N.braceL);case 125:return++this.pos,this.finishToken(N.braceR);case 58:return++this.pos,this.finishToken(N.colon);case 63:return++this.pos,this.finishToken(N.question);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(N.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(120===t||88===t)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(111===t||79===t)return this.readRadixNumber(8);if(98===t||66===t)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 126:return this.finishOp(N.prefix,1)}this.raise(this.pos,"Unexpected character '"+Ce(e)+"'")},ve.finishOp=function(e,t){var n=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,n)},ve.readRegexp=function(){for(var e,t,n=this.pos;;){this.pos>=this.input.length&&this.raise(n,"Unterminated regular expression");var r=this.input.charAt(this.pos);if(A.test(r)&&this.raise(n,"Unterminated regular expression"),e)e=!1;else{if("["===r)t=!0;else if("]"===r&&t)t=!1;else if("/"===r&&!t)break;e="\\"===r}++this.pos}var i=this.input.slice(n,this.pos);++this.pos;var o=this.pos,a=this.readWord1();this.containsEsc&&this.unexpected(o);var s=this.regexpState||(this.regexpState=new ue(this));s.reset(n,i,a),this.validateRegExpFlags(s),this.validateRegExpPattern(s);var u=null;try{u=new RegExp(i,a)}catch(e){}return this.finishToken(N.regexp,{pattern:i,flags:a,value:u})},ve.readInt=function(e,t){for(var n=this.pos,r=0,i=0,o=null==t?1/0:t;i=97?a-97+10:a>=65?a-65+10:a>=48&&a<=57?a-48:1/0)>=e)break;++this.pos,r=r*e+s}return this.pos===n||null!=t&&this.pos-n!==t?null:r},ve.readRadixNumber=function(e){this.pos+=2;var t=this.readInt(e);return null==t&&this.raise(this.start+2,"Expected number in radix "+e),h(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(N.num,t)},ve.readNumber=function(e){var t=this.pos;e||null!==this.readInt(10)||this.raise(t,"Invalid number");var n=this.pos-t>=2&&48===this.input.charCodeAt(t);n&&this.strict&&this.raise(t,"Invalid number"),n&&/[89]/.test(this.input.slice(t,this.pos))&&(n=!1);var r=this.input.charCodeAt(this.pos);46!==r||n||(++this.pos,this.readInt(10),r=this.input.charCodeAt(this.pos)),69!==r&&101!==r||n||(43!==(r=this.input.charCodeAt(++this.pos))&&45!==r||++this.pos,null===this.readInt(10)&&this.raise(t,"Invalid number")),h(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var i=this.input.slice(t,this.pos),o=n?parseInt(i,8):parseFloat(i);return this.finishToken(N.num,o)},ve.readCodePoint=function(){var e;if(123===this.input.charCodeAt(this.pos)){this.options.ecmaVersion<6&&this.unexpected();var t=++this.pos;e=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,e>1114111&&this.invalidStringToken(t,"Code point out of bounds")}else e=this.readHexChar(4);return e},ve.readString=function(e){for(var t="",n=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var r=this.input.charCodeAt(this.pos);if(r===e)break;92===r?(t+=this.input.slice(n,this.pos),t+=this.readEscapedChar(!1),n=this.pos):(E(r,this.options.ecmaVersion>=10)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(n,this.pos++),this.finishToken(N.string,t)};var Se={};ve.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e!==Se)throw e;this.readInvalidTemplateToken()}this.inTemplateElement=!1},ve.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw Se;this.raise(e,t)},ve.readTmplToken=function(){for(var e="",t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var n=this.input.charCodeAt(this.pos);if(96===n||36===n&&123===this.input.charCodeAt(this.pos+1))return this.pos!==this.start||this.type!==N.template&&this.type!==N.invalidTemplate?(e+=this.input.slice(t,this.pos),this.finishToken(N.template,e)):36===n?(this.pos+=2,this.finishToken(N.dollarBraceL)):(++this.pos,this.finishToken(N.backQuote));if(92===n)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(E(n)){switch(e+=this.input.slice(t,this.pos),++this.pos,n){case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:e+="\n";break;default:e+=String.fromCharCode(n)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}},ve.readInvalidTemplateToken=function(){for(;this.pos=48&&t<=55){var n=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],r=parseInt(n,8);return r>255&&(n=n.slice(0,-1),r=parseInt(n,8)),this.pos+=n.length-1,t=this.input.charCodeAt(this.pos),"0"===n&&56!==t&&57!==t||!this.strict&&!e||this.invalidStringToken(this.pos-1-n.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(r)}return String.fromCharCode(t)}},ve.readHexChar=function(e){var t=this.pos,n=this.readInt(16,e);return null===n&&this.invalidStringToken(t,"Bad character escape sequence"),n},ve.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,n=this.pos,r=this.options.ecmaVersion>=6;this.pos",homepage:"https://github.com/eslint/espree",main:"espree.js",version:"4.0.0",files:["lib","espree.js"],engines:{node:">=6.0.0"},repository:"eslint/espree",bugs:{url:"http://github.com/eslint/espree.git"},license:"BSD-2-Clause",dependencies:{acorn:"^5.6.0","acorn-jsx":"^4.1.1"},devDependencies:{browserify:"^7.0.0",chai:"^1.10.0",eslint:"^2.13.1","eslint-config-eslint":"^3.0.0","eslint-release":"^0.11.1",esprima:"latest","esprima-fb":"^8001.2001.0-dev-harmony-fb",istanbul:"~0.2.6","json-diff":"~0.3.1",leche:"^1.0.1",mocha:"^2.0.1",regenerate:"~0.5.4",shelljs:"^0.3.0","shelljs-nodecli":"^0.1.1","unicode-6.3.0":"~0.1.0"},keywords:["ast","ecmascript","javascript","parser","syntax","acorn"],scripts:{"generate-regex":"node tools/generate-identifier-regex.js",test:"npm run-script lint && node Makefile.js test",lint:"node Makefile.js lint",release:"eslint-release","ci-release":"eslint-ci-release","gh-release":"eslint-gh-release",alpharelease:"eslint-prerelease alpha",betarelease:"eslint-prerelease beta",rcrelease:"eslint-prerelease rc",browserify:"node Makefile.js browserify"}}},function(e,t,n){"use strict";e.exports={AssignmentExpression:["left","right"],AssignmentPattern:["left","right"],ArrayExpression:["elements"],ArrayPattern:["elements"],ArrowFunctionExpression:["params","body"],BlockStatement:["body"],BinaryExpression:["left","right"],BreakStatement:["label"],CallExpression:["callee","arguments"],CatchClause:["param","body"],ClassBody:["body"],ClassDeclaration:["id","superClass","body"],ClassExpression:["id","superClass","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DirectiveStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExportAllDeclaration:["source"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source"],ExportSpecifier:["exported","local"],ExpressionStatement:["expression"],ForStatement:["init","test","update","body"],ForInStatement:["left","right","body"],ForOfStatement:["left","right","body"],FunctionDeclaration:["id","params","body"],FunctionExpression:["id","params","body"],Identifier:[],IfStatement:["test","consequent","alternate"],ImportDeclaration:["specifiers","source"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],Literal:[],LabeledStatement:["label","body"],LogicalExpression:["left","right"],MemberExpression:["object","property"],MetaProperty:["meta","property"],MethodDefinition:["key","value"],ModuleSpecifier:[],NewExpression:["callee","arguments"],ObjectExpression:["properties"],ObjectPattern:["properties"],Program:["body"],Property:["key","value"],RestElement:["argument"],ReturnStatement:["argument"],SequenceExpression:["expressions"],SpreadElement:["argument"],Super:[],SwitchStatement:["discriminant","cases"],SwitchCase:["test","consequent"],TaggedTemplateExpression:["tag","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],YieldExpression:["argument"],JSXIdentifier:[],JSXNamespacedName:["namespace","name"],JSXMemberExpression:["object","property"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXElement:["openingElement","closingElement","children"],JSXClosingElement:["name"],JSXOpeningElement:["name","attributes"],JSXAttribute:["name","value"],JSXText:null,JSXSpreadAttribute:["argument"]}},function(e,t,n){"use strict";var r,i=n(0),o=i(n(1)),a=i(n(3)),s=i(n(7)),u=i(n(6)),d=i(n(8)),l=i(n(5)),c=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,l.default)(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},p=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,l.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},f=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var h=n(2),g=n(4),m=n(27),y=n(60),b=n(10),v=r=function(e){function t(e,n,r){return(0,o.default)(this,t),(0,s.default)(this,(0,u.default)(t).call(this,e,n,r))}return(0,d.default)(t,e),(0,a.default)(t,[{key:"replace",value:function(e,t,n){var i=e.callee;if(!b.NodeGuards.isIdentifierNode(i))return e;var o=String(e.arguments.length),a=this.controlFlowCustomNodeFactory(m.ControlFlowCustomNode.CallExpressionFunctionNode),s=e.arguments;a.initialize(s);var u=this.insertCustomNodeToControlFlowStorage(a,n,o,r.usingExistingIdentifierChance);return this.getControlFlowStorageCallNode(n.getStorageId(),u,i,s)}},{key:"getControlFlowStorageCallNode",value:function(e,t,n,r){var i=this.controlFlowCustomNodeFactory(m.ControlFlowCustomNode.CallExpressionControlFlowStorageCallNode);i.initialize(e,t,n,r);var o=i.getNode()[0];if(!o||!b.NodeGuards.isExpressionStatementNode(o))throw new Error("`controlFlowStorageCallCustomNode.getNode()[0]` should returns array with `ExpressionStatement` node");return o.expression}}]),t}(y.AbstractControlFlowReplacer);v.usingExistingIdentifierChance=.5,v=r=c([h.injectable(),f(0,h.inject(g.ServiceIdentifiers.Factory__IControlFlowCustomNode)),f(1,h.inject(g.ServiceIdentifiers.IRandomGenerator)),f(2,h.inject(g.ServiceIdentifiers.IOptions)),p("design:paramtypes",[Function,Object,Object])],v),t.CallExpressionControlFlowReplacer=v},function(e,t,n){"use strict";var r,i=n(0),o=i(n(1)),a=i(n(3)),s=i(n(7)),u=i(n(6)),d=i(n(8)),l=i(n(5)),c=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,l.default)(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},p=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,l.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},f=function(e,t){return function(n,r){t(n,r,e)}},h=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var g=n(2),m=n(4),y=h(n(18)),b=n(84),v=n(35),C=n(24),S=n(13),N=n(14),A=n(15),_=n(10),E=n(30),I=n(12),T=r=function(e){function t(e,n,r,i){var a;return(0,o.default)(this,t),(a=(0,s.default)(this,(0,u.default)(t).call(this,r,i))).deadCodeInjectionRootAstHostNodeSet=new Set,a.collectedBlockStatements=[],a.collectedBlockStatementsTotalLength=0,a.deadCodeInjectionCustomNodeFactory=e,a.transformersRunner=n,a}return(0,d.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case S.TransformationStage.DeadCodeInjection:return{enter:function(e,n){if(n&&_.NodeGuards.isProgramNode(e))return t.analyzeNode(e,n),e},leave:function(e,n){if(n&&_.NodeGuards.isBlockStatementNode(e))return t.transformNode(e,n)}};case S.TransformationStage.Finalizing:return this.deadCodeInjectionRootAstHostNodeSet.size?{enter:function(e,n){if(n&&t.isDeadCodeInjectionRootAstHostNode(e))return t.restoreNode(e,n)}}:null;default:return null}}},{key:"analyzeNode",value:function(e,t){var n=this;y.traverse(e,{enter:function(e){if(_.NodeGuards.isBlockStatementNode(e)){var t=I.NodeUtils.clone(e);if(r.isValidCollectedBlockStatementNode(t)){var i=n.makeClonedBlockStatementNodeUnique(t);n.collectedBlockStatements.push(i)}}}}),this.collectedBlockStatementsTotalLength=this.collectedBlockStatements.length}},{key:"transformNode",value:function(e,t){if(!this.collectedBlockStatements.length||this.collectedBlockStatementsTotalLengththis.options.deadCodeInjectionThreshold||!r.isValidWrappedBlockStatementNode(e))return e;var n=this.collectedBlockStatements.length-1,i=this.randomGenerator.getRandomInteger(0,n),o=this.collectedBlockStatements.splice(i,1)[0];return o===e?e:this.replaceBlockStatementNode(e,o,t)}},{key:"restoreNode",value:function(e,t){var n=e.body[0];if(!_.NodeGuards.isFunctionDeclarationNode(n))throw new Error("Wrong dead code injection root AST host node. Host node should contain `FunctionDeclaration` node");return n.body}},{key:"isDeadCodeInjectionRootAstHostNode",value:function(e){return _.NodeGuards.isBlockStatementNode(e)&&this.deadCodeInjectionRootAstHostNodeSet.has(e)}},{key:"makeClonedBlockStatementNodeUnique",value:function(e){var t=A.NodeFactory.functionExpressionNode([],e);return I.NodeUtils.parentizeNode(t,t),I.NodeUtils.parentizeNode(e,t),this.transformersRunner.transform(t,r.transformersToRenameBlockScopeIdentifiers,S.TransformationStage.Obfuscating).body}},{key:"replaceBlockStatementNode",value:function(e,t,n){var i=A.NodeFactory.blockStatementNode([A.NodeFactory.functionDeclarationNode(r.deadCodeInjectionRootAstHostNodeName,[],t)]);this.deadCodeInjectionRootAstHostNodeSet.add(i);var o=this.deadCodeInjectionCustomNodeFactory(b.DeadCodeInjectionCustomNode.BlockStatementDeadCodeInjectionNode);o.initialize(e,i);var a=o.getNode()[0];return I.NodeUtils.parentizeNode(a,n),a}}],[{key:"isProhibitedNodeInsideCollectedBlockStatement",value:function(e){return _.NodeGuards.isBreakStatementNode(e)||_.NodeGuards.isContinueStatementNode(e)||_.NodeGuards.isAwaitExpressionNode(e)||_.NodeGuards.isSuperNode(e)}},{key:"isScopeHoistingFunctionDeclaration",value:function(e){if(!_.NodeGuards.isFunctionDeclarationNode(e))return!1;var t=E.NodeStatementUtils.getScopeOfNode(e),n=_.NodeGuards.isSwitchCaseNode(t)?t.consequent:t.body,r=n.indexOf(e);if(0===r)return!1;var i=n.slice(0,r),o=A.NodeFactory.blockStatementNode(i),a=e.id.name,s=!1;return y.traverse(o,{enter:function(e){if(_.NodeGuards.isIdentifierNode(e)&&e.name===a)return s=!0,y.VisitorOption.Break}}),s}},{key:"isValidCollectedBlockStatementNode",value:function(e){if(!e.body.length)return!1;var t=0,n=!0;return y.traverse(e,{enter:function(e){if(_.NodeGuards.isBlockStatementNode(e)&&t++,t>r.maxNestedBlockStatementsCount||r.isProhibitedNodeInsideCollectedBlockStatement(e)||r.isScopeHoistingFunctionDeclaration(e))return n=!1,y.VisitorOption.Break}}),n}},{key:"isValidWrappedBlockStatementNode",value:function(e){if(!e.body.length)return!1;var t=!0;return y.traverse(e,{enter:function(e){if(r.isScopeHoistingFunctionDeclaration(e))return t=!1,y.VisitorOption.Break}}),!!t&&E.NodeStatementUtils.getParentNodeWithStatements(e).type!==C.NodeType.Program}}]),t}(N.AbstractNodeTransformer);T.deadCodeInjectionRootAstHostNodeName="deadCodeInjectionRootAstHostNode",T.maxNestedBlockStatementsCount=4,T.minCollectedBlockStatementsCount=5,T.transformersToRenameBlockScopeIdentifiers=[v.NodeTransformer.CatchClauseTransformer,v.NodeTransformer.ClassDeclarationTransformer,v.NodeTransformer.FunctionDeclarationTransformer,v.NodeTransformer.FunctionTransformer,v.NodeTransformer.LabeledStatementTransformer,v.NodeTransformer.VariableDeclarationTransformer],T=r=c([g.injectable(),f(0,g.inject(m.ServiceIdentifiers.Factory__IDeadCodeInjectionCustomNode)),f(1,g.inject(m.ServiceIdentifiers.ITransformersRunner)),f(2,g.inject(m.ServiceIdentifiers.IRandomGenerator)),f(3,g.inject(m.ServiceIdentifiers.IOptions)),p("design:paramtypes",[Function,Object,Object,Object])],T),t.DeadCodeInjectionTransformer=T},function(e,t,n){"use strict";var r,i=n(0),o=i(n(1)),a=i(n(3)),s=i(n(7)),u=i(n(6)),d=i(n(8)),l=i(n(5)),c=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,l.default)(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},p=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,l.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},f=function(e,t){return function(n,r){t(n,r,e)}},h=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var g=n(2),m=n(4),y=h(n(18)),b=n(27),v=n(79),C=n(24),S=n(13),N=n(14),A=n(31),_=n(10),E=n(20),I=n(30),T=r=function(e){function t(e,n,r,i,a){var d;return(0,o.default)(this,t),(d=(0,s.default)(this,(0,u.default)(t).call(this,i,a))).controlFlowData=new Map,d.visitedFunctionNodes=new Set,d.hostNodesWithControlFlowNode=new Set,d.controlFlowStorageFactory=e,d.controlFlowReplacerFactory=n,d.controlFlowCustomNodeFactory=r,d}return(0,d.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case S.TransformationStage.ControlFlowFlattening:return{leave:function(e,n){if(n&&(_.NodeGuards.isFunctionDeclarationNode(e)||_.NodeGuards.isFunctionExpressionNode(e)||_.NodeGuards.isArrowFunctionExpressionNode(e)))return t.transformNode(e,n)}};default:return null}}},{key:"transformNode",value:function(e,t){if(this.visitedFunctionNodes.add(e),!_.NodeGuards.isBlockStatementNode(e.body))return e;var n=this.getHostNode(e.body),r=this.getControlFlowStorage(n);if(this.controlFlowData.set(n,r),this.transformFunctionBody(e.body,r),!r.getLength())return e;var i=this.controlFlowCustomNodeFactory(b.ControlFlowCustomNode.ControlFlowStorageNode);return i.initialize(r),A.NodeAppender.prepend(n,i.getNode()),this.hostNodesWithControlFlowNode.add(n),e}},{key:"getControlFlowStorage",value:function(e){var t=this.controlFlowStorageFactory();if(this.controlFlowData.has(e)){this.hostNodesWithControlFlowNode.has(e)&&(_.NodeGuards.isSwitchCaseNode(e)?e.consequent.shift():e.body.shift());var n=this.controlFlowData.get(e);t.mergeWith(n,!0)}return t}},{key:"getHostNode",value:function(e){var t=I.NodeStatementUtils.getParentNodesWithStatements(e);return 1===t.length?e:(t.pop(),t.length>r.hostNodeSearchMinDepth&&t.splice(0,r.hostNodeSearchMinDepth),t.length>r.hostNodeSearchMaxDepth&&(t.length=r.hostNodeSearchMaxDepth),this.randomGenerator.getRandomGenerator().pickone(t))}},{key:"isVisitedFunctionNode",value:function(e){return(_.NodeGuards.isFunctionDeclarationNode(e)||_.NodeGuards.isFunctionExpressionNode(e)||_.NodeGuards.isArrowFunctionExpressionNode(e))&&this.visitedFunctionNodes.has(e)}},{key:"transformFunctionBody",value:function(e,t){var n=this;y.replace(e,{enter:function(e,i){if(E.NodeMetadata.isIgnoredNode(e))return y.VisitorOption.Skip;if(n.isVisitedFunctionNode(e)||!i)return y.VisitorOption.Skip;if(!r.controlFlowReplacersMap.has(e.type))return e;if(n.randomGenerator.getMathRandom()>n.options.controlFlowFlatteningThreshold)return e;var o=r.controlFlowReplacersMap.get(e.type);return void 0===o?e:Object.assign({},n.controlFlowReplacerFactory(o).replace(e,i,t),{parentNode:i})}})}}]),t}(N.AbstractNodeTransformer);T.controlFlowReplacersMap=new Map([[C.NodeType.BinaryExpression,v.ControlFlowReplacer.BinaryExpressionControlFlowReplacer],[C.NodeType.CallExpression,v.ControlFlowReplacer.CallExpressionControlFlowReplacer],[C.NodeType.LogicalExpression,v.ControlFlowReplacer.LogicalExpressionControlFlowReplacer],[C.NodeType.Literal,v.ControlFlowReplacer.StringLiteralControlFlowReplacer]]),T.hostNodeSearchMinDepth=0,T.hostNodeSearchMaxDepth=2,T=r=c([g.injectable(),f(0,g.inject(m.ServiceIdentifiers.Factory__TControlFlowStorage)),f(1,g.inject(m.ServiceIdentifiers.Factory__IControlFlowReplacer)),f(2,g.inject(m.ServiceIdentifiers.Factory__IControlFlowCustomNode)),f(3,g.inject(m.ServiceIdentifiers.IRandomGenerator)),f(4,g.inject(m.ServiceIdentifiers.IOptions)),p("design:paramtypes",[Function,Function,Function,Object,Object])],T),t.FunctionControlFlowTransformer=T},function(e,t){e.exports=function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},p=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,l.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},f=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var h=n(2),g=n(4),m=n(27),y=n(80),b=n(10),v=n(12),C=r=function(e){function t(e,n,r){return(0,o.default)(this,t),(0,s.default)(this,(0,u.default)(t).call(this,e,n,r))}return(0,d.default)(t,e),(0,a.default)(t,[{key:"replace",value:function(e,t,n){if(this.checkForProhibitedExpressions(e.left,e.right))return e;var i=e.operator,o=this.controlFlowCustomNodeFactory(m.ControlFlowCustomNode.LogicalExpressionFunctionNode);o.initialize(i);var a=this.insertCustomNodeToControlFlowStorage(o,n,i,r.usingExistingIdentifierChance);return this.getControlFlowStorageCallNode(n.getStorageId(),a,e.left,e.right)}},{key:"checkForProhibitedExpressions",value:function(e,t){return[e,t].some(function(e){var t;return t=b.NodeGuards.isUnaryExpressionNode(e)?v.NodeUtils.getUnaryExpressionArgumentNode(e):e,!(b.NodeGuards.isLiteralNode(t)||b.NodeGuards.isIdentifierNode(t)||b.NodeGuards.isObjectExpressionNode(t)||b.NodeGuards.isExpressionStatementNode(t))})}}]),t}(y.ExpressionWithOperatorControlFlowReplacer);C.usingExistingIdentifierChance=.5,C=r=c([h.injectable(),f(0,h.inject(g.ServiceIdentifiers.Factory__IControlFlowCustomNode)),f(1,h.inject(g.ServiceIdentifiers.IRandomGenerator)),f(2,h.inject(g.ServiceIdentifiers.IOptions)),p("design:paramtypes",[Function,Object,Object])],C),t.LogicalExpressionControlFlowReplacer=C},function(e,t,n){"use strict";var r,i=n(0),o=i(n(1)),a=i(n(3)),s=i(n(7)),u=i(n(6)),d=i(n(8)),l=i(n(5)),c=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,l.default)(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},p=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,l.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},f=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var h=n(2),g=n(4),m=n(27),y=n(60),b=n(10),v=r=function(e){function t(e,n,r){return(0,o.default)(this,t),(0,s.default)(this,(0,u.default)(t).call(this,e,n,r))}return(0,d.default)(t,e),(0,a.default)(t,[{key:"replace",value:function(e,t,n){if(b.NodeGuards.isPropertyNode(t)&&t.key===e)return e;if("string"!=typeof e.value||e.value.length<3)return e;var i=String(e.value),o=this.controlFlowCustomNodeFactory(m.ControlFlowCustomNode.StringLiteralNode);o.initialize(e.value);var a=this.insertCustomNodeToControlFlowStorage(o,n,i,r.usingExistingIdentifierChance);return this.getControlFlowStorageCallNode(n.getStorageId(),a)}},{key:"getControlFlowStorageCallNode",value:function(e,t){var n=this.controlFlowCustomNodeFactory(m.ControlFlowCustomNode.StringLiteralControlFlowStorageCallNode);n.initialize(e,t);var r=n.getNode()[0];if(!r||!b.NodeGuards.isExpressionStatementNode(r))throw new Error("`controlFlowStorageCallCustomNode.getNode()[0]` should returns array with `ExpressionStatement` node");return r.expression}}]),t}(y.AbstractControlFlowReplacer);v.usingExistingIdentifierChance=1,v=r=c([h.injectable(),f(0,h.inject(g.ServiceIdentifiers.Factory__IControlFlowCustomNode)),f(1,h.inject(g.ServiceIdentifiers.IRandomGenerator)),f(2,h.inject(g.ServiceIdentifiers.IOptions)),p("design:paramtypes",[Function,Object,Object])],v),t.StringLiteralControlFlowReplacer=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2),i=n(25),o=n(4),a=n(35),s=n(85),u=n(173),d=n(177),l=n(178),c=n(179),p=n(180),f=n(181),h=n(182);t.convertingTransformersModule=new r.ContainerModule(function(e){e(o.ServiceIdentifiers.INodeTransformer).to(d.MemberExpressionTransformer).whenTargetNamed(a.NodeTransformer.MemberExpressionTransformer),e(o.ServiceIdentifiers.INodeTransformer).to(l.MethodDefinitionTransformer).whenTargetNamed(a.NodeTransformer.MethodDefinitionTransformer),e(o.ServiceIdentifiers.INodeTransformer).to(c.ObjectExpressionKeysTransformer).whenTargetNamed(a.NodeTransformer.ObjectExpressionKeysTransformer),e(o.ServiceIdentifiers.INodeTransformer).to(p.ObjectExpressionTransformer).whenTargetNamed(a.NodeTransformer.ObjectExpressionTransformer),e(o.ServiceIdentifiers.INodeTransformer).to(f.TemplateLiteralTransformer).whenTargetNamed(a.NodeTransformer.TemplateLiteralTransformer),e(o.ServiceIdentifiers.IPropertiesExtractor).to(u.AssignmentExpressionPropertiesExtractor).whenTargetNamed(s.PropertiesExtractor.AssignmentExpressionPropertiesExtractor),e(o.ServiceIdentifiers.IPropertiesExtractor).to(h.VariableDeclaratorPropertiesExtractor).whenTargetNamed(s.PropertiesExtractor.VariableDeclaratorPropertiesExtractor),e(o.ServiceIdentifiers.Factory__IPropertiesExtractor).toFactory(i.InversifyContainerFacade.getCacheFactory(o.ServiceIdentifiers.IPropertiesExtractor))})},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(3)),a=r(n(7)),s=r(n(6)),u=r(n(8)),d=r(n(5)),l=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},c=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},p=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var f=n(2),h=n(4),g=n(86),m=function(e){function t(e,n){return(0,i.default)(this,t),(0,a.default)(this,(0,s.default)(t).call(this,e,n))}return(0,u.default)(t,e),(0,o.default)(t,[{key:"extract",value:function(e,t){var n=t.parentNode,r=t.left;return g.AbstractPropertiesExtractor.isProhibitedPattern(r)?e:n&&g.AbstractPropertiesExtractor.isProhibitedHostParent(n)?e:this.transformObjectExpressionNode(e,r)}}]),t}(g.AbstractPropertiesExtractor);m=l([f.injectable(),p(0,f.inject(h.ServiceIdentifiers.IRandomGenerator)),p(1,f.inject(h.ServiceIdentifiers.IOptions)),c("design:paramtypes",[Object,Object])],m),t.AssignmentExpressionPropertiesExtractor=m},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(3)),a=r(n(7)),s=r(n(6)),u=r(n(8)),d=r(n(5)),l=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},c=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},p=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var f=n(2),h=n(4),g=n(13),m=n(14),y=n(15),b=n(10),v=function(e){function t(e,n){return(0,i.default)(this,t),(0,a.default)(this,(0,s.default)(t).call(this,e,n))}return(0,u.default)(t,e),(0,o.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case g.TransformationStage.Converting:return{enter:function(e,n){if(n&&b.NodeGuards.isMemberExpressionNode(e))return t.transformNode(e,n)}};default:return null}}},{key:"transformNode",value:function(e,t){if(b.NodeGuards.isIdentifierNode(e.property)){if(e.computed)return e;e.computed=!0,e.property=y.NodeFactory.literalNode(e.property.name)}return e}}]),t}(m.AbstractNodeTransformer);v=l([f.injectable(),p(0,f.inject(h.ServiceIdentifiers.IRandomGenerator)),p(1,f.inject(h.ServiceIdentifiers.IOptions)),c("design:paramtypes",[Object,Object])],v),t.MemberExpressionTransformer=v},function(e,t,n){"use strict";var r,i=n(0),o=i(n(1)),a=i(n(3)),s=i(n(7)),u=i(n(6)),d=i(n(8)),l=i(n(5)),c=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,l.default)(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},p=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,l.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},f=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var h=n(2),g=n(4),m=n(13),y=n(14),b=n(15),v=n(10),C=r=function(e){function t(e,n){return(0,o.default)(this,t),(0,s.default)(this,(0,u.default)(t).call(this,e,n))}return(0,d.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case m.TransformationStage.Converting:return{enter:function(e,n){if(n&&v.NodeGuards.isMethodDefinitionNode(e))return t.transformNode(e,n)}};default:return null}}},{key:"transformNode",value:function(e,t){return v.NodeGuards.isIdentifierNode(e.key)&&!r.ignoredNames.includes(e.key.name)&&!1===e.computed&&(e.computed=!0,e.key=b.NodeFactory.literalNode(e.key.name)),e}}]),t}(y.AbstractNodeTransformer);C.ignoredNames=["constructor"],C=r=c([h.injectable(),f(0,h.inject(g.ServiceIdentifiers.IRandomGenerator)),f(1,h.inject(g.ServiceIdentifiers.IOptions)),p("design:paramtypes",[Object,Object])],C),t.MethodDefinitionTransformer=C},function(e,t,n){"use strict";var r,i=n(0),o=i(n(1)),a=i(n(3)),s=i(n(7)),u=i(n(6)),d=i(n(8)),l=i(n(5)),c=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,l.default)(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},p=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,l.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},f=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var h=n(2),g=n(4),m=n(24),y=n(85),b=n(13),v=n(14),C=n(10),S=r=function(e){function t(e,n,r){var i;return(0,o.default)(this,t),(i=(0,s.default)(this,(0,u.default)(t).call(this,n,r))).propertiesExtractorFactory=e,i}return(0,d.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;return e!==b.TransformationStage.Converting?null:{enter:function(e,n){if(t.options.transformObjectKeys&&n&&C.NodeGuards.isObjectExpressionNode(e))return t.transformNode(e,n)}}}},{key:"transformNode",value:function(e,t){if(!e.properties.length)return e;var n=r.propertiesExtractorsMap.get(t.type);return n?this.propertiesExtractorFactory(n).extract(e,t):e}}]),t}(v.AbstractNodeTransformer);S.propertiesExtractorsMap=new Map([[m.NodeType.AssignmentExpression,y.PropertiesExtractor.AssignmentExpressionPropertiesExtractor],[m.NodeType.VariableDeclarator,y.PropertiesExtractor.VariableDeclaratorPropertiesExtractor]]),S=r=c([h.injectable(),f(0,h.inject(g.ServiceIdentifiers.Factory__IPropertiesExtractor)),f(1,h.inject(g.ServiceIdentifiers.IRandomGenerator)),f(2,h.inject(g.ServiceIdentifiers.IOptions)),p("design:paramtypes",[Function,Object,Object])],S),t.ObjectExpressionKeysTransformer=S},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(3)),a=r(n(7)),s=r(n(6)),u=r(n(8)),d=r(n(5)),l=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},c=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},p=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var f=n(2),h=n(4),g=n(13),m=n(14),y=n(15),b=n(10),v=function(e){function t(e,n,r){var o;return(0,i.default)(this,t),(o=(0,a.default)(this,(0,s.default)(t).call(this,n,r))).escapeSequenceEncoder=e,o}return(0,u.default)(t,e),(0,o.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case g.TransformationStage.Converting:return{enter:function(e,n){if(n&&b.NodeGuards.isObjectExpressionNode(e))return t.transformNode(e,n)}};default:return null}}},{key:"transformNode",value:function(e,t){var n=this;return e.properties.forEach(function(e){e.key&&(e.computed?n.transformComputedProperty(e):n.transformBaseProperty(e))}),e}},{key:"transformComputedProperty",value:function(e){b.NodeGuards.isLiteralNode(e.key)&&"string"==typeof e.key.value&&(e.key=y.NodeFactory.literalNode(this.getPropertyKeyValue(e.key.value)))}},{key:"transformBaseProperty",value:function(e){e.shorthand&&(e.shorthand=!1),b.NodeGuards.isIdentifierNode(e.key)&&(e.key=y.NodeFactory.literalNode(this.getPropertyKeyValue(e.key.name)))}},{key:"getPropertyKeyValue",value:function(e){return this.options.unicodeEscapeSequence?this.escapeSequenceEncoder.encode(e,!0):e}}]),t}(m.AbstractNodeTransformer);v=l([f.injectable(),p(0,f.inject(h.ServiceIdentifiers.IEscapeSequenceEncoder)),p(1,f.inject(h.ServiceIdentifiers.IRandomGenerator)),p(2,f.inject(h.ServiceIdentifiers.IOptions)),c("design:paramtypes",[Object,Object,Object])],v),t.ObjectExpressionTransformer=v},function(e,t,n){"use strict";var r,i=n(0),o=i(n(1)),a=i(n(3)),s=i(n(7)),u=i(n(6)),d=i(n(8)),l=i(n(5)),c=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,l.default)(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},p=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,l.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},f=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var h=n(2),g=n(4),m=n(13),y=n(14),b=n(15),v=n(10),C=n(12),S=r=function(e){function t(e,n){return(0,o.default)(this,t),(0,s.default)(this,(0,u.default)(t).call(this,e,n))}return(0,d.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case m.TransformationStage.Converting:return{leave:function(e,n){if(n&&r.isValidTemplateLiteralNode(e,n))return t.transformNode(e,n)}};default:return null}}},{key:"transformNode",value:function(e,t){var n,i=e.expressions,o=[];if(e.quasis.forEach(function(e){o.push(b.NodeFactory.literalNode(e.value.cooked));var t=i.shift();t&&o.push(t)}),o=o.filter(function(e){return!(v.NodeGuards.isLiteralNode(e)&&""===e.value)}),r.isLiteralNodeWithStringValue(o[0])||r.isLiteralNodeWithStringValue(o[1])||o.unshift(b.NodeFactory.literalNode("")),o.length>1){var a=b.NodeFactory.binaryExpressionNode("+",o.shift(),o.shift());o.forEach(function(e){a=b.NodeFactory.binaryExpressionNode("+",a,e)}),n=a}else n=o[0];return C.NodeUtils.parentizeAst(n),n}}],[{key:"isLiteralNodeWithStringValue",value:function(e){return e&&v.NodeGuards.isLiteralNode(e)&&"string"==typeof e.value}},{key:"isValidTemplateLiteralNode",value:function(e,t){return v.NodeGuards.isTemplateLiteralNode(e)&&!v.NodeGuards.isTaggedTemplateExpressionNode(t)}}]),t}(y.AbstractNodeTransformer);S=r=c([h.injectable(),f(0,h.inject(g.ServiceIdentifiers.IRandomGenerator)),f(1,h.inject(g.ServiceIdentifiers.IOptions)),p("design:paramtypes",[Object,Object])],S),t.TemplateLiteralTransformer=S},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(3)),a=r(n(7)),s=r(n(6)),u=r(n(8)),d=r(n(5)),l=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},c=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},p=function(e,t){return function(n,r){t(n,r,e)}},f=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var h=n(2),g=n(4),m=f(n(18)),y=n(86),b=n(10),v=function(e){function t(e,n){return(0,i.default)(this,t),(0,a.default)(this,(0,s.default)(t).call(this,e,n))}return(0,u.default)(t,e),(0,o.default)(t,[{key:"extract",value:function(e,t){return!b.NodeGuards.isIdentifierNode(t.id)||this.isProhibitedObjectExpressionNode(e,t.id)?e:this.transformObjectExpressionNode(e,t.id)}},{key:"getHostVariableDeclaratorNode",value:function(e){var t=e.parentNode;if(!t||!b.NodeGuards.isVariableDeclaratorNode(t))throw new Error("Cannot get `VariableDeclarator` node for `ObjectExpression` node");return t}},{key:"getHostVariableDeclarationNode",value:function(e){var t=e.parentNode;if(!t||!b.NodeGuards.isVariableDeclarationNode(t))throw new Error("Cannot get `VariableDeclaration` node for `VariableDeclarator` node");return t}},{key:"isProhibitedObjectExpressionNode",value:function(e,t){var n=this.getHostVariableDeclaratorNode(e),r=this.getHostVariableDeclarationNode(n).declarations,i=r.indexOf(n);if(i===r.length-1)return!1;var o=!1;return r.slice(i).forEach(function(e){m.traverse(e,{enter:function(e){return b.NodeGuards.isMemberExpressionNode(e)&&b.NodeGuards.isIdentifierNode(e.object)&&e.object.name===t.name?(o=!0,m.VisitorOption.Break):e}})}),o}}]),t}(y.AbstractPropertiesExtractor);v=l([h.injectable(),p(0,h.inject(g.ServiceIdentifiers.IRandomGenerator)),p(1,h.inject(g.ServiceIdentifiers.IOptions)),c("design:paramtypes",[Object,Object])],v),t.VariableDeclaratorPropertiesExtractor=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(25),i=n(2),o=n(4),a=n(27),s=n(38),u=n(87),d=n(84),l=n(184),c=n(185),p=n(186),f=n(187),h=n(188),g=n(189),m=n(192),y=n(193),b=n(194),v=n(195),C=n(196),S=n(197),N=n(199),A=n(201),_=n(203),E=n(207),I=n(209),T=n(210),D=n(211),F=n(213),M=n(215),P=n(222),R=n(225),x=n(228),O=n(229);t.customNodesModule=new i.ContainerModule(function(e){e(o.ServiceIdentifiers.ICustomNode).to(S.ConsoleOutputDisableExpressionNode).whenTargetNamed(s.CustomNode.ConsoleOutputDisableExpressionNode),e(o.ServiceIdentifiers.ICustomNode).to(N.DebugProtectionFunctionCallNode).whenTargetNamed(s.CustomNode.DebugProtectionFunctionCallNode),e(o.ServiceIdentifiers.ICustomNode).to(A.DebugProtectionFunctionIntervalNode).whenTargetNamed(s.CustomNode.DebugProtectionFunctionIntervalNode),e(o.ServiceIdentifiers.ICustomNode).to(_.DebugProtectionFunctionNode).whenTargetNamed(s.CustomNode.DebugProtectionFunctionNode),e(o.ServiceIdentifiers.ICustomNode).to(E.DomainLockNode).whenTargetNamed(s.CustomNode.DomainLockNode),e(o.ServiceIdentifiers.ICustomNode).to(D.NodeCallsControllerFunctionNode).whenTargetNamed(s.CustomNode.NodeCallsControllerFunctionNode),e(o.ServiceIdentifiers.ICustomNode).to(F.SelfDefendingUnicodeNode).whenTargetNamed(s.CustomNode.SelfDefendingUnicodeNode),e(o.ServiceIdentifiers.ICustomNode).to(M.StringArrayCallsWrapper).whenTargetNamed(s.CustomNode.StringArrayCallsWrapper),e(o.ServiceIdentifiers.ICustomNode).to(P.StringArrayNode).whenTargetNamed(s.CustomNode.StringArrayNode),e(o.ServiceIdentifiers.ICustomNode).to(R.StringArrayRotateFunctionNode).whenTargetNamed(s.CustomNode.StringArrayRotateFunctionNode),e(o.ServiceIdentifiers.Newable__ICustomNode).toConstructor(g.BinaryExpressionFunctionNode).whenTargetNamed(a.ControlFlowCustomNode.BinaryExpressionFunctionNode),e(o.ServiceIdentifiers.Newable__ICustomNode).toConstructor(m.BlockStatementControlFlowFlatteningNode).whenTargetNamed(a.ControlFlowCustomNode.BlockStatementControlFlowFlatteningNode),e(o.ServiceIdentifiers.Newable__ICustomNode).toConstructor(b.CallExpressionControlFlowStorageCallNode).whenTargetNamed(a.ControlFlowCustomNode.CallExpressionControlFlowStorageCallNode),e(o.ServiceIdentifiers.Newable__ICustomNode).toConstructor(v.CallExpressionFunctionNode).whenTargetNamed(a.ControlFlowCustomNode.CallExpressionFunctionNode),e(o.ServiceIdentifiers.Newable__ICustomNode).toConstructor(C.ControlFlowStorageNode).whenTargetNamed(a.ControlFlowCustomNode.ControlFlowStorageNode),e(o.ServiceIdentifiers.Newable__ICustomNode).toConstructor(I.ExpressionWithOperatorControlFlowStorageCallNode).whenTargetNamed(a.ControlFlowCustomNode.ExpressionWithOperatorControlFlowStorageCallNode),e(o.ServiceIdentifiers.Newable__ICustomNode).toConstructor(T.LogicalExpressionFunctionNode).whenTargetNamed(a.ControlFlowCustomNode.LogicalExpressionFunctionNode),e(o.ServiceIdentifiers.Newable__ICustomNode).toConstructor(O.StringLiteralNode).whenTargetNamed(a.ControlFlowCustomNode.StringLiteralNode),e(o.ServiceIdentifiers.Newable__ICustomNode).toConstructor(x.StringLiteralControlFlowStorageCallNode).whenTargetNamed(a.ControlFlowCustomNode.StringLiteralControlFlowStorageCallNode),e(o.ServiceIdentifiers.Newable__ICustomNode).toConstructor(y.BlockStatementDeadCodeInjectionNode).whenTargetNamed(d.DeadCodeInjectionCustomNode.BlockStatementDeadCodeInjectionNode),e(o.ServiceIdentifiers.ICustomNodeGroup).to(l.ConsoleOutputCustomNodeGroup).whenTargetNamed(u.CustomNodeGroup.ConsoleOutputCustomNodeGroup),e(o.ServiceIdentifiers.ICustomNodeGroup).to(c.DebugProtectionCustomNodeGroup).whenTargetNamed(u.CustomNodeGroup.DebugProtectionCustomNodeGroup),e(o.ServiceIdentifiers.ICustomNodeGroup).to(p.DomainLockCustomNodeGroup).whenTargetNamed(u.CustomNodeGroup.DomainLockCustomNodeGroup),e(o.ServiceIdentifiers.ICustomNodeGroup).to(f.SelfDefendingCustomNodeGroup).whenTargetNamed(u.CustomNodeGroup.SelfDefendingCustomNodeGroup),e(o.ServiceIdentifiers.ICustomNodeGroup).to(h.StringArrayCustomNodeGroup).whenTargetNamed(u.CustomNodeGroup.StringArrayCustomNodeGroup),e(o.ServiceIdentifiers.Factory__ICustomNode).toFactory(r.InversifyContainerFacade.getFactory(o.ServiceIdentifiers.ICustomNode)),e(o.ServiceIdentifiers.Factory__IControlFlowCustomNode).toFactory(r.InversifyContainerFacade.getConstructorFactory(o.ServiceIdentifiers.Newable__ICustomNode,o.ServiceIdentifiers.Factory__IIdentifierNamesGenerator,o.ServiceIdentifiers.IRandomGenerator,o.ServiceIdentifiers.IOptions)),e(o.ServiceIdentifiers.Factory__IDeadCodeInjectionCustomNode).toFactory(r.InversifyContainerFacade.getConstructorFactory(o.ServiceIdentifiers.Newable__ICustomNode,o.ServiceIdentifiers.Factory__IIdentifierNamesGenerator,o.ServiceIdentifiers.IRandomGenerator,o.ServiceIdentifiers.IOptions)),e(o.ServiceIdentifiers.Factory__ICustomNodeGroup).toFactory(r.InversifyContainerFacade.getFactory(o.ServiceIdentifiers.ICustomNodeGroup))})},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(3)),a=r(n(7)),s=r(n(6)),u=r(n(8)),d=r(n(5)),l=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},c=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},p=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var f=n(2),h=n(4),g=n(11),m=n(38),y=n(32),b=n(44),v=n(31),C=function(e){function t(e,n,r,o){var u;return(0,i.default)(this,t),(u=(0,a.default)(this,(0,s.default)(t).call(this,n,r,o))).appendEvent=y.ObfuscationEvent.BeforeObfuscation,u.customNodeFactory=e,u}return(0,u.default)(t,e),(0,o.default)(t,[{key:"appendCustomNodes",value:function(e,t){var n=this.getRandomStackTraceIndex(t.length);this.appendCustomNodeIfExist(m.CustomNode.ConsoleOutputDisableExpressionNode,function(r){v.NodeAppender.appendToOptimalBlockScope(t,e,r.getNode(),n)}),this.appendCustomNodeIfExist(m.CustomNode.NodeCallsControllerFunctionNode,function(r){var i=t.length?v.NodeAppender.getOptimalBlockScope(t,n,1):e;v.NodeAppender.prepend(i,r.getNode())})}},{key:"initialize",value:function(){if(this.customNodes=new Map,this.options.disableConsoleOutput){var e=this.identifierNamesGenerator.generate(),t=this.customNodeFactory(m.CustomNode.ConsoleOutputDisableExpressionNode),n=this.customNodeFactory(m.CustomNode.NodeCallsControllerFunctionNode);t.initialize(e),n.initialize(this.appendEvent,e),this.customNodes.set(m.CustomNode.ConsoleOutputDisableExpressionNode,t),this.customNodes.set(m.CustomNode.NodeCallsControllerFunctionNode,n)}}}]),t}(b.AbstractCustomNodeGroup);l([g.initializable(),c("design:type",Map)],C.prototype,"customNodes",void 0),C=l([f.injectable(),p(0,f.inject(h.ServiceIdentifiers.Factory__ICustomNode)),p(1,f.inject(h.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),p(2,f.inject(h.ServiceIdentifiers.IRandomGenerator)),p(3,f.inject(h.ServiceIdentifiers.IOptions)),c("design:paramtypes",[Function,Function,Object,Object])],C),t.ConsoleOutputCustomNodeGroup=C},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(3)),a=r(n(7)),s=r(n(6)),u=r(n(8)),d=r(n(5)),l=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},c=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},p=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var f=n(2),h=n(4),g=n(11),m=n(38),y=n(32),b=n(44),v=n(31),C=n(10),S=function(e){function t(e,n,r,o){var u;return(0,i.default)(this,t),(u=(0,a.default)(this,(0,s.default)(t).call(this,n,r,o))).appendEvent=y.ObfuscationEvent.BeforeObfuscation,u.customNodeFactory=e,u}return(0,u.default)(t,e),(0,o.default)(t,[{key:"appendCustomNodes",value:function(e,t){var n=this,r=this.getRandomStackTraceIndex(t.length);this.appendCustomNodeIfExist(m.CustomNode.DebugProtectionFunctionCallNode,function(n){v.NodeAppender.appendToOptimalBlockScope(t,e,n.getNode(),r)}),this.appendCustomNodeIfExist(m.CustomNode.DebugProtectionFunctionNode,function(t){v.NodeAppender.append(e,t.getNode())}),this.appendCustomNodeIfExist(m.CustomNode.DebugProtectionFunctionIntervalNode,function(t){var r=C.NodeGuards.isSwitchCaseNode(e)?e.consequent.length:e.body.length,i=n.randomGenerator.getRandomInteger(0,r);v.NodeAppender.insertAtIndex(e,t.getNode(),i)}),this.appendCustomNodeIfExist(m.CustomNode.NodeCallsControllerFunctionNode,function(n){var i=t.length?v.NodeAppender.getOptimalBlockScope(t,r,1):e;v.NodeAppender.prepend(i,n.getNode())})}},{key:"initialize",value:function(){if(this.customNodes=new Map,this.options.debugProtection){var e=this.identifierNamesGenerator.generate(),t=this.identifierNamesGenerator.generate(),n=this.customNodeFactory(m.CustomNode.DebugProtectionFunctionNode),r=this.customNodeFactory(m.CustomNode.DebugProtectionFunctionCallNode),i=this.customNodeFactory(m.CustomNode.DebugProtectionFunctionIntervalNode),o=this.customNodeFactory(m.CustomNode.NodeCallsControllerFunctionNode);n.initialize(e),r.initialize(e,t),i.initialize(e),o.initialize(this.appendEvent,t),this.customNodes.set(m.CustomNode.DebugProtectionFunctionNode,n),this.customNodes.set(m.CustomNode.DebugProtectionFunctionCallNode,r),this.options.debugProtectionInterval&&this.customNodes.set(m.CustomNode.DebugProtectionFunctionIntervalNode,i),this.customNodes.set(m.CustomNode.NodeCallsControllerFunctionNode,o)}}}]),t}(b.AbstractCustomNodeGroup);l([g.initializable(),c("design:type",Map)],S.prototype,"customNodes",void 0),S=l([f.injectable(),p(0,f.inject(h.ServiceIdentifiers.Factory__ICustomNode)),p(1,f.inject(h.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),p(2,f.inject(h.ServiceIdentifiers.IRandomGenerator)),p(3,f.inject(h.ServiceIdentifiers.IOptions)),c("design:paramtypes",[Function,Function,Object,Object])],S),t.DebugProtectionCustomNodeGroup=S},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(3)),a=r(n(7)),s=r(n(6)),u=r(n(8)),d=r(n(5)),l=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},c=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},p=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var f=n(2),h=n(4),g=n(11),m=n(38),y=n(32),b=n(44),v=n(31),C=function(e){function t(e,n,r,o){var u;return(0,i.default)(this,t),(u=(0,a.default)(this,(0,s.default)(t).call(this,n,r,o))).appendEvent=y.ObfuscationEvent.BeforeObfuscation,u.customNodeFactory=e,u}return(0,u.default)(t,e),(0,o.default)(t,[{key:"appendCustomNodes",value:function(e,t){var n=this.getRandomStackTraceIndex(t.length);this.appendCustomNodeIfExist(m.CustomNode.DomainLockNode,function(r){v.NodeAppender.appendToOptimalBlockScope(t,e,r.getNode(),n)}),this.appendCustomNodeIfExist(m.CustomNode.NodeCallsControllerFunctionNode,function(r){var i=t.length?v.NodeAppender.getOptimalBlockScope(t,n,1):e;v.NodeAppender.prepend(i,r.getNode())})}},{key:"initialize",value:function(){if(this.customNodes=new Map,this.options.domainLock.length){var e=this.identifierNamesGenerator.generate(),t=this.customNodeFactory(m.CustomNode.DomainLockNode),n=this.customNodeFactory(m.CustomNode.NodeCallsControllerFunctionNode);t.initialize(e),n.initialize(this.appendEvent,e),this.customNodes.set(m.CustomNode.DomainLockNode,t),this.customNodes.set(m.CustomNode.NodeCallsControllerFunctionNode,n)}}}]),t}(b.AbstractCustomNodeGroup);l([g.initializable(),c("design:type",Map)],C.prototype,"customNodes",void 0),C=l([f.injectable(),p(0,f.inject(h.ServiceIdentifiers.Factory__ICustomNode)),p(1,f.inject(h.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),p(2,f.inject(h.ServiceIdentifiers.IRandomGenerator)),p(3,f.inject(h.ServiceIdentifiers.IOptions)),c("design:paramtypes",[Function,Function,Object,Object])],C),t.DomainLockCustomNodeGroup=C},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(3)),a=r(n(7)),s=r(n(6)),u=r(n(8)),d=r(n(5)),l=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},c=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},p=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var f=n(2),h=n(4),g=n(11),m=n(38),y=n(32),b=n(44),v=n(31),C=function(e){function t(e,n,r,o){var u;return(0,i.default)(this,t),(u=(0,a.default)(this,(0,s.default)(t).call(this,n,r,o))).appendEvent=y.ObfuscationEvent.AfterObfuscation,u.customNodeFactory=e,u}return(0,u.default)(t,e),(0,o.default)(t,[{key:"appendCustomNodes",value:function(e,t){var n=this.getRandomStackTraceIndex(t.length);this.appendCustomNodeIfExist(m.CustomNode.SelfDefendingUnicodeNode,function(r){v.NodeAppender.appendToOptimalBlockScope(t,e,r.getNode(),n)}),this.appendCustomNodeIfExist(m.CustomNode.NodeCallsControllerFunctionNode,function(r){var i=t.length?v.NodeAppender.getOptimalBlockScope(t,n,1):e;v.NodeAppender.prepend(i,r.getNode())})}},{key:"initialize",value:function(){if(this.customNodes=new Map,this.options.selfDefending){var e=this.identifierNamesGenerator.generate(),t=this.customNodeFactory(m.CustomNode.SelfDefendingUnicodeNode),n=this.customNodeFactory(m.CustomNode.NodeCallsControllerFunctionNode);t.initialize(e),n.initialize(this.appendEvent,e),this.customNodes.set(m.CustomNode.SelfDefendingUnicodeNode,t),this.customNodes.set(m.CustomNode.NodeCallsControllerFunctionNode,n)}}}]),t}(b.AbstractCustomNodeGroup);l([g.initializable(),c("design:type",Map)],C.prototype,"customNodes",void 0),C=l([f.injectable(),p(0,f.inject(h.ServiceIdentifiers.Factory__ICustomNode)),p(1,f.inject(h.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),p(2,f.inject(h.ServiceIdentifiers.IRandomGenerator)),p(3,f.inject(h.ServiceIdentifiers.IOptions)),c("design:paramtypes",[Function,Function,Object,Object])],C),t.SelfDefendingCustomNodeGroup=C},function(e,t,n){"use strict";var r=n(0),i=r(n(37)),o=r(n(1)),a=r(n(3)),s=r(n(7)),u=r(n(6)),d=r(n(8)),l=r(n(5)),c=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,l.default)(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},p=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,l.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},f=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var h=n(2),g=n(4),m=n(11),y=n(38),b=n(32),v=n(44),C=n(31),S=function(e){function t(e,n,r,i,a){var d;return(0,o.default)(this,t),(d=(0,s.default)(this,(0,u.default)(t).call(this,r,i,a))).appendEvent=b.ObfuscationEvent.AfterObfuscation,d.customNodeFactory=e,d.stringArrayStorage=n,d}return(0,d.default)(t,e),(0,a.default)(t,[{key:"appendCustomNodes",value:function(e,t){this.stringArrayStorage.getLength()&&(this.appendCustomNodeIfExist(y.CustomNode.StringArrayNode,function(t){C.NodeAppender.prepend(e,t.getNode())}),this.appendCustomNodeIfExist(y.CustomNode.StringArrayCallsWrapper,function(t){C.NodeAppender.insertAtIndex(e,t.getNode(),1)}),this.appendCustomNodeIfExist(y.CustomNode.StringArrayRotateFunctionNode,function(t){C.NodeAppender.insertAtIndex(e,t.getNode(),1)}))}},{key:"initialize",value:function(){if(this.customNodes=new Map,this.options.stringArray){var e,t=this.customNodeFactory(y.CustomNode.StringArrayNode),n=this.customNodeFactory(y.CustomNode.StringArrayCallsWrapper),r=this.customNodeFactory(y.CustomNode.StringArrayRotateFunctionNode),o=this.stringArrayStorage.getStorageId().split("|"),a=(0,i.default)(o,2),s=a[0],u=a[1];e=this.options.rotateStringArray?this.randomGenerator.getRandomInteger(100,500):0,t.initialize(this.stringArrayStorage,s,e),n.initialize(s,u),r.initialize(s,e),this.customNodes.set(y.CustomNode.StringArrayNode,t),this.customNodes.set(y.CustomNode.StringArrayCallsWrapper,n),this.options.rotateStringArray&&this.customNodes.set(y.CustomNode.StringArrayRotateFunctionNode,r)}}}]),t}(v.AbstractCustomNodeGroup);c([m.initializable(),p("design:type",Map)],S.prototype,"customNodes",void 0),S=c([h.injectable(),f(0,h.inject(g.ServiceIdentifiers.Factory__ICustomNode)),f(1,h.inject(g.ServiceIdentifiers.TStringArrayStorage)),f(2,h.inject(g.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),f(3,h.inject(g.ServiceIdentifiers.IRandomGenerator)),f(4,h.inject(g.ServiceIdentifiers.IOptions)),p("design:paramtypes",[Function,Object,Function,Object,Object])],S),t.StringArrayCustomNodeGroup=S},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(3)),a=r(n(7)),s=r(n(6)),u=r(n(8)),d=r(n(5)),l=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},c=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},p=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var f=n(2),h=n(4),g=n(11),m=n(16),y=n(15),b=n(12),v=function(e){function t(e,n,r){return(0,i.default)(this,t),(0,a.default)(this,(0,s.default)(t).call(this,e,n,r))}return(0,u.default)(t,e),(0,o.default)(t,[{key:"initialize",value:function(e){this.operator=e}},{key:"getNodeStructure",value:function(){var e=y.NodeFactory.expressionStatementNode(y.NodeFactory.functionExpressionNode([y.NodeFactory.identifierNode("x"),y.NodeFactory.identifierNode("y")],y.NodeFactory.blockStatementNode([y.NodeFactory.returnStatementNode(y.NodeFactory.binaryExpressionNode(this.operator,y.NodeFactory.identifierNode("x"),y.NodeFactory.identifierNode("y")))])));return b.NodeUtils.parentizeAst(e),[e]}}]),t}(m.AbstractCustomNode);l([g.initializable(),c("design:type",String)],v.prototype,"operator",void 0),v=l([f.injectable(),p(0,f.inject(h.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),p(1,f.inject(h.ServiceIdentifiers.IRandomGenerator)),p(2,f.inject(h.ServiceIdentifiers.IOptions)),c("design:paramtypes",[Function,Object,Object])],v),t.BinaryExpressionFunctionNode=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalVariableTemplate1=function(){return"\n var that;\n \n try {\n var getGlobal = Function('return (function() ' + '{}.constructor(\"return this\")( )' + ');');\n \n that = getGlobal();\n } catch (e) {\n that = window;\n }\n "}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalVariableTemplate2=function(){return"\n var getGlobal = function () {\n var globalObject;\n \n try {\n globalObject = Function('return (function() ' + '{}.constructor(\"return this\")( )' + ');')();\n } catch (e) {\n globalObject = window;\n }\n \n return globalObject;\n };\n var that = getGlobal();\n "}},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(3)),a=r(n(7)),s=r(n(6)),u=r(n(8)),d=r(n(5)),l=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},c=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},p=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var f=n(2),h=n(4),g=n(11),m=n(16),y=n(15),b=n(10),v=n(12),C=function(e){function t(e,n,r){return(0,i.default)(this,t),(0,a.default)(this,(0,s.default)(t).call(this,e,n,r))}return(0,u.default)(t,e),(0,o.default)(t,[{key:"initialize",value:function(e,t,n){this.blockStatementBody=e,this.shuffledKeys=t,this.originalKeysIndexesInShuffledArray=n}},{key:"getNodeStructure",value:function(){var e=this,t=this.randomGenerator.getRandomString(6),n=this.randomGenerator.getRandomString(6),r=y.NodeFactory.blockStatementNode([y.NodeFactory.variableDeclarationNode([y.NodeFactory.variableDeclaratorNode(y.NodeFactory.identifierNode(t),y.NodeFactory.callExpressionNode(y.NodeFactory.memberExpressionNode(y.NodeFactory.literalNode(this.originalKeysIndexesInShuffledArray.join("|")),y.NodeFactory.identifierNode("split")),[y.NodeFactory.literalNode("|")])),y.NodeFactory.variableDeclaratorNode(y.NodeFactory.identifierNode(n),y.NodeFactory.literalNode(0))]),y.NodeFactory.whileStatementNode(y.NodeFactory.literalNode(!0),y.NodeFactory.blockStatementNode([y.NodeFactory.switchStatementNode(y.NodeFactory.memberExpressionNode(y.NodeFactory.identifierNode(t),y.NodeFactory.updateExpressionNode("++",y.NodeFactory.identifierNode(n)),!0),this.shuffledKeys.map(function(t,n){var r=e.blockStatementBody[t],i=[r];return b.NodeGuards.isReturnStatementNode(r)||i.push(y.NodeFactory.continueStatement()),y.NodeFactory.switchCaseNode(y.NodeFactory.literalNode(String(n)),i)})),y.NodeFactory.breakStatement()]))]);return v.NodeUtils.parentizeAst(r),[r]}}]),t}(m.AbstractCustomNode);l([g.initializable(),c("design:type",Array)],C.prototype,"blockStatementBody",void 0),l([g.initializable(),c("design:type",Array)],C.prototype,"originalKeysIndexesInShuffledArray",void 0),l([g.initializable(),c("design:type",Array)],C.prototype,"shuffledKeys",void 0),C=l([f.injectable(),p(0,f.inject(h.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),p(1,f.inject(h.ServiceIdentifiers.IRandomGenerator)),p(2,f.inject(h.ServiceIdentifiers.IOptions)),c("design:paramtypes",[Function,Object,Object])],C),t.BlockStatementControlFlowFlatteningNode=C},function(e,t,n){"use strict";var r=n(0),i=r(n(37)),o=r(n(1)),a=r(n(3)),s=r(n(7)),u=r(n(6)),d=r(n(8)),l=r(n(5)),c=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,l.default)(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},p=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,l.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},f=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var h=n(2),g=n(4),m=n(11),y=n(16),b=n(15),v=n(12),C=function(e){function t(e,n,r){return(0,o.default)(this,t),(0,s.default)(this,(0,u.default)(t).call(this,e,n,r))}return(0,d.default)(t,e),(0,a.default)(t,[{key:"initialize",value:function(e,t){this.blockStatementNode=e,this.deadCodeInjectionRootAstHostNode=t}},{key:"getNodeStructure",value:function(){var e=this.randomGenerator.getMathRandom()>.5,t=this.randomGenerator.getMathRandom()>.5,n=e?"===":"!==",r=this.randomGenerator.getRandomString(5),o=t?r:this.randomGenerator.getRandomString(5),a=e===t?[this.blockStatementNode,this.deadCodeInjectionRootAstHostNode]:[this.deadCodeInjectionRootAstHostNode,this.blockStatementNode],s=(0,i.default)(a,2),u=s[0],d=s[1],l=b.NodeFactory.blockStatementNode([b.NodeFactory.ifStatementNode(b.NodeFactory.binaryExpressionNode(n,b.NodeFactory.literalNode(r),b.NodeFactory.literalNode(o)),u,d)]);return v.NodeUtils.parentizeAst(l),[l]}}]),t}(y.AbstractCustomNode);c([m.initializable(),p("design:type",Object)],C.prototype,"blockStatementNode",void 0),c([m.initializable(),p("design:type",Object)],C.prototype,"deadCodeInjectionRootAstHostNode",void 0),C=c([h.injectable(),f(0,h.inject(g.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),f(1,h.inject(g.ServiceIdentifiers.IRandomGenerator)),f(2,h.inject(g.ServiceIdentifiers.IOptions)),p("design:paramtypes",[Function,Object,Object])],C),t.BlockStatementDeadCodeInjectionNode=C},function(e,t,n){"use strict";var r=n(0),i=r(n(36)),o=r(n(1)),a=r(n(3)),s=r(n(7)),u=r(n(6)),d=r(n(8)),l=r(n(5)),c=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,l.default)(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},p=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,l.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},f=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var h=n(2),g=n(4),m=n(11),y=n(16),b=n(15),v=n(12),C=function(e){function t(e,n,r){return(0,o.default)(this,t),(0,s.default)(this,(0,u.default)(t).call(this,e,n,r))}return(0,d.default)(t,e),(0,a.default)(t,[{key:"initialize",value:function(e,t,n,r){this.controlFlowStorageName=e,this.controlFlowStorageKey=t,this.callee=n,this.expressionArguments=r}},{key:"getNodeStructure",value:function(){var e=b.NodeFactory.expressionStatementNode(b.NodeFactory.callExpressionNode(b.NodeFactory.memberExpressionNode(b.NodeFactory.identifierNode(this.controlFlowStorageName),b.NodeFactory.identifierNode(this.controlFlowStorageKey)),[this.callee].concat((0,i.default)(this.expressionArguments))));return v.NodeUtils.parentizeAst(e),[e]}}]),t}(y.AbstractCustomNode);c([m.initializable(),p("design:type",Object)],C.prototype,"callee",void 0),c([m.initializable(),p("design:type",String)],C.prototype,"controlFlowStorageKey",void 0),c([m.initializable(),p("design:type",String)],C.prototype,"controlFlowStorageName",void 0),c([m.initializable(),p("design:type",Array)],C.prototype,"expressionArguments",void 0),C=c([h.injectable(),f(0,h.inject(g.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),f(1,h.inject(g.ServiceIdentifiers.IRandomGenerator)),f(2,h.inject(g.ServiceIdentifiers.IOptions)),p("design:paramtypes",[Function,Object,Object])],C),t.CallExpressionControlFlowStorageCallNode=C},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(3)),a=r(n(7)),s=r(n(6)),u=r(n(8)),d=r(n(5)),l=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},c=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},p=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var f=n(2),h=n(4),g=n(11),m=n(16),y=n(15),b=n(12),v=function(e){function t(e,n,r){return(0,i.default)(this,t),(0,a.default)(this,(0,s.default)(t).call(this,e,n,r))}return(0,u.default)(t,e),(0,o.default)(t,[{key:"initialize",value:function(e){this.expressionArguments=e}},{key:"getNodeStructure",value:function(){for(var e=y.NodeFactory.identifierNode("callee"),t=[],n=this.expressionArguments.length,r=0;r=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},p=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,l.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},f=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var h=n(2),g=n(4),m=n(11),y=n(16),b=n(15),v=n(10),C=n(12),S=function(e){function t(e,n,r){return(0,o.default)(this,t),(0,s.default)(this,(0,u.default)(t).call(this,e,n,r))}return(0,d.default)(t,e),(0,a.default)(t,[{key:"initialize",value:function(e){this.controlFlowStorage=e}},{key:"getNodeStructure",value:function(){var e=Array.from(this.controlFlowStorage.getStorage()).map(function(e){var t=(0,i.default)(e,2),n=t[0],r=t[1].getNode()[0];if(!v.NodeGuards.isExpressionStatementNode(r))throw new Error("Function node for control flow storage object should be passed inside the `ExpressionStatement` node!");return b.NodeFactory.propertyNode(b.NodeFactory.identifierNode(n),r.expression)}),t=b.NodeFactory.variableDeclarationNode([b.NodeFactory.variableDeclaratorNode(b.NodeFactory.identifierNode(this.controlFlowStorage.getStorageId()),b.NodeFactory.objectExpressionNode(e))]);return[t=C.NodeUtils.parentizeAst(t)]}}]),t}(y.AbstractCustomNode);c([m.initializable(),p("design:type",Object)],S.prototype,"controlFlowStorage",void 0),S=c([h.injectable(),f(0,h.inject(g.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),f(1,h.inject(g.ServiceIdentifiers.IRandomGenerator)),f(2,h.inject(g.ServiceIdentifiers.IOptions)),p("design:paramtypes",[Function,Object,Object])],S),t.ControlFlowStorageNode=S},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(3)),a=r(n(7)),s=r(n(6)),u=r(n(8)),d=r(n(5)),l=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},c=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},p=function(e,t){return function(n,r){t(n,r,e)}},f=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var h=n(2),g=n(4),m=f(n(22)),y=n(33),b=n(198),v=n(64),C=n(11),S=n(16),N=n(12),A=function(e){function t(e,n,r){return(0,i.default)(this,t),(0,a.default)(this,(0,s.default)(t).call(this,e,n,r))}return(0,u.default)(t,e),(0,o.default)(t,[{key:"initialize",value:function(e){this.callsControllerFunctionName=e}},{key:"getNodeStructure",value:function(){return N.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){var e=this.options.target!==y.ObfuscationTarget.BrowserNoEval?this.getGlobalVariableTemplate():v.GlobalVariableNoEvalTemplate();return m.default(b.ConsoleOutputDisableExpressionTemplate(),{consoleLogDisableFunctionName:this.identifierNamesGenerator.generate(),globalVariableTemplate:e,singleNodeCallControllerFunctionName:this.callsControllerFunctionName})}}]),t}(S.AbstractCustomNode);l([C.initializable(),c("design:type",String)],A.prototype,"callsControllerFunctionName",void 0),A=l([h.injectable(),p(0,h.inject(g.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),p(1,h.inject(g.ServiceIdentifiers.IRandomGenerator)),p(2,h.inject(g.ServiceIdentifiers.IOptions)),c("design:paramtypes",[Function,Object,Object])],A),t.ConsoleOutputDisableExpressionNode=A},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ConsoleOutputDisableExpressionTemplate=function(){return"\n var {consoleLogDisableFunctionName} = {singleNodeCallControllerFunctionName}(this, function () {\n var func = function () {};\n \n {globalVariableTemplate}\n \n if (!that.console) {\n that.console = (function (func){\n var c = {};\n \n c.log = func;\n c.warn = func;\n c.debug = func;\n c.info = func;\n c.error = func;\n c.exception = func;\n c.trace = func;\n \n return c;\n })(func);\n } else {\n that.console.log = func;\n that.console.warn = func;\n that.console.debug = func;\n that.console.info = func;\n that.console.error = func;\n that.console.exception = func;\n that.console.trace = func;\n }\n });\n \n {consoleLogDisableFunctionName}();\n "}},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(3)),a=r(n(7)),s=r(n(6)),u=r(n(8)),d=r(n(5)),l=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},c=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},p=function(e,t){return function(n,r){t(n,r,e)}},f=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var h=n(2),g=n(4),m=f(n(22)),y=n(11),b=n(200),v=n(16),C=n(12),S=function(e){function t(e,n,r){return(0,i.default)(this,t),(0,a.default)(this,(0,s.default)(t).call(this,e,n,r))}return(0,u.default)(t,e),(0,o.default)(t,[{key:"initialize",value:function(e,t){this.debugProtectionFunctionName=e,this.callsControllerFunctionName=t}},{key:"getNodeStructure",value:function(){return C.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){return m.default(b.DebugProtectionFunctionCallTemplate(),{debugProtectionFunctionName:this.debugProtectionFunctionName,singleNodeCallControllerFunctionName:this.callsControllerFunctionName})}}]),t}(v.AbstractCustomNode);l([y.initializable(),c("design:type",String)],S.prototype,"callsControllerFunctionName",void 0),l([y.initializable(),c("design:type",String)],S.prototype,"debugProtectionFunctionName",void 0),S=l([h.injectable(),p(0,h.inject(g.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),p(1,h.inject(g.ServiceIdentifiers.IRandomGenerator)),p(2,h.inject(g.ServiceIdentifiers.IOptions)),c("design:paramtypes",[Function,Object,Object])],S),t.DebugProtectionFunctionCallNode=S},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DebugProtectionFunctionCallTemplate=function(){return"\n (function () {\n {singleNodeCallControllerFunctionName}(this, function () {\n var regExp1 = new RegExp('function *\\\\( *\\\\)');\n var regExp2 = new RegExp('\\\\+\\\\+ *\\(?:_0x(?:[a-f0-9]){4,6}|(?:\\\\b|\\\\d)[a-z0-9]{1,4}(?:\\\\b|\\\\d)\\)', 'i');\n \n var result = {debugProtectionFunctionName}('init');\n \n if (!regExp1.test(result + 'chain') || !regExp2.test(result + 'input')) {\n result('0');\n } else {\n {debugProtectionFunctionName}();\n }\n })();\n })();\n "}},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(3)),a=r(n(7)),s=r(n(6)),u=r(n(8)),d=r(n(5)),l=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},c=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},p=function(e,t){return function(n,r){t(n,r,e)}},f=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var h=n(2),g=n(4),m=f(n(22)),y=n(11),b=n(202),v=n(16),C=n(12),S=function(e){function t(e,n,r){return(0,i.default)(this,t),(0,a.default)(this,(0,s.default)(t).call(this,e,n,r))}return(0,u.default)(t,e),(0,o.default)(t,[{key:"initialize",value:function(e){this.debugProtectionFunctionName=e}},{key:"getNodeStructure",value:function(){return C.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){return m.default(b.DebugProtectionFunctionIntervalTemplate(),{debugProtectionFunctionName:this.debugProtectionFunctionName})}}]),t}(v.AbstractCustomNode);l([y.initializable(),c("design:type",String)],S.prototype,"debugProtectionFunctionName",void 0),S=l([h.injectable(),p(0,h.inject(g.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),p(1,h.inject(g.ServiceIdentifiers.IRandomGenerator)),p(2,h.inject(g.ServiceIdentifiers.IOptions)),c("design:paramtypes",[Function,Object,Object])],S),t.DebugProtectionFunctionIntervalNode=S},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DebugProtectionFunctionIntervalTemplate=function(){return"\n setInterval(function () {\n {debugProtectionFunctionName}();\n }, 4000);\n "}},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(3)),a=r(n(7)),s=r(n(6)),u=r(n(8)),d=r(n(5)),l=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},c=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},p=function(e,t){return function(n,r){t(n,r,e)}},f=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var h=n(2),g=n(4),m=f(n(22)),y=n(33),b=n(11),v=n(204),C=n(205),S=n(206),N=n(16),A=n(12),_=function(e){function t(e,n,r){return(0,i.default)(this,t),(0,a.default)(this,(0,s.default)(t).call(this,e,n,r))}return(0,u.default)(t,e),(0,o.default)(t,[{key:"initialize",value:function(e){this.debugProtectionFunctionName=e}},{key:"getNodeStructure",value:function(){return A.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){var e=this.options.target!==y.ObfuscationTarget.BrowserNoEval?v.DebuggerTemplate():C.DebuggerTemplateNoEval();return m.default(S.DebugProtectionFunctionTemplate(),{debuggerTemplate:e,debugProtectionFunctionName:this.debugProtectionFunctionName})}}]),t}(N.AbstractCustomNode);l([b.initializable(),c("design:type",String)],_.prototype,"debugProtectionFunctionName",void 0),_=l([h.injectable(),p(0,h.inject(g.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),p(1,h.inject(g.ServiceIdentifiers.IRandomGenerator)),p(2,h.inject(g.ServiceIdentifiers.IOptions)),c("design:paramtypes",[Function,Object,Object])],_),t.DebugProtectionFunctionNode=_},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DebuggerTemplate=function(){return"\n if (typeof counter === 'string') {\n return (function (arg) {}.constructor('while (true) {}').apply('counter'));\n } else {\n if (('' + counter / counter)['length'] !== 1 || counter % 20 === 0) {\n (function () {return true;}.constructor('debu' + 'gger').call('action'));\n } else {\n (function () {return false;}.constructor('debu' + 'gger').apply('stateObject'));\n }\n \n }\n "}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DebuggerTemplateNoEval=function(){return"\n if (typeof counter === 'string') {\n var func = function () {\n while (true) {}\n };\n \n return func();\n } else {\n if (('' + counter / counter)['length'] !== 1 || counter % 20 === 0) {\n debugger;\n } else {\n debugger;\n }\n \n }\n "}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DebugProtectionFunctionTemplate=function(){return"\n function {debugProtectionFunctionName} (ret) {\n function debuggerProtection (counter) {\n \n {debuggerTemplate}\n \n debuggerProtection(++counter);\n }\n \n try {\n if (ret) {\n return debuggerProtection;\n } else {\n debuggerProtection(0);\n }\n } catch (y) {}\n }\n "}},function(e,t,n){"use strict";var r=n(0),i=r(n(37)),o=r(n(1)),a=r(n(3)),s=r(n(7)),u=r(n(6)),d=r(n(8)),l=r(n(5)),c=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,l.default)(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},p=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,l.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},f=function(e,t){return function(n,r){t(n,r,e)}},h=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var g=n(2),m=n(4),y=h(n(22)),b=n(33),v=n(11),C=n(208),S=n(64),N=n(16),A=n(12),_=function(e){function t(e,n,r,i){var a;return(0,o.default)(this,t),(a=(0,s.default)(this,(0,u.default)(t).call(this,e,n,i))).cryptUtils=r,a}return(0,d.default)(t,e),(0,a.default)(t,[{key:"initialize",value:function(e){this.callsControllerFunctionName=e}},{key:"getNodeStructure",value:function(){return A.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){var e=this.options.domainLock.join(";"),t=this.cryptUtils.hideString(e,3*e.length),n=(0,i.default)(t,2),r=n[0],o=n[1],a=this.options.target!==b.ObfuscationTarget.BrowserNoEval?this.getGlobalVariableTemplate():S.GlobalVariableNoEvalTemplate();return y.default(C.DomainLockNodeTemplate(),{domainLockFunctionName:this.identifierNamesGenerator.generate(),diff:o,domains:r,globalVariableTemplate:a,singleNodeCallControllerFunctionName:this.callsControllerFunctionName})}}]),t}(N.AbstractCustomNode);c([v.initializable(),p("design:type",String)],_.prototype,"callsControllerFunctionName",void 0),_=c([g.injectable(),f(0,g.inject(m.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),f(1,g.inject(m.ServiceIdentifiers.IRandomGenerator)),f(2,g.inject(m.ServiceIdentifiers.ICryptUtils)),f(3,g.inject(m.ServiceIdentifiers.IOptions)),p("design:paramtypes",[Function,Object,Object,Object])],_),t.DomainLockNode=_},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DomainLockNodeTemplate=function(){return'\n var {domainLockFunctionName} = {singleNodeCallControllerFunctionName}(this, function () {\n \n {globalVariableTemplate}\n \n var func = function () {\n return {\n key: \'item\',\n value: \'attribute\',\n getAttribute: function () {\n for (var i = 0; i < 1000; i--) {\n var isPositive = i > 0;\n \n switch (isPositive) {\n case true:\n return this.item + \'_\' + this.value + \'_\' + i;\n default:\n this.item + \'_\' + this.value;\n }\n }\n }()\n };\n };\n \n var regExp = new RegExp("[{diff}]", "g");\n var domains = "{domains}".replace(regExp, "").split(";");\n var document;\n var domain;\n var location;\n var hostname;\n\n for (var d in that) {\n if (d.length == 8 && d.charCodeAt(7) == 116 && d.charCodeAt(5) == 101 && d.charCodeAt(3) == 117 && d.charCodeAt(0) == 100) {\n document = d;\n \n break;\n }\n }\n\n for (var d1 in that[document]) {\n if (d1.length == 6 && d1.charCodeAt(5) == 110 && d1.charCodeAt(0) == 100) {\n domain = d1;\n \n break;\n }\n }\n\n if (!("~" > domain)) {\n for (var d2 in that[document]) {\n if (d2.length == 8 && d2.charCodeAt(7) == 110 && d2.charCodeAt(0) == 108) {\n location = d2;\n \n break;\n }\n }\n\n for (var d3 in that[document][location]) {\n if (d3.length == 8 && d3.charCodeAt(7) == 101 && d3.charCodeAt(0) == 104) {\n hostname = d3;\n \n break;\n }\n }\n }\n \n if (!document || !that[document]) {\n return;\n }\n \n var documentDomain = that[document][domain];\n var documentLocationHostName = !!that[document][location] && that[document][location][hostname];\n var currentDomain = documentDomain || documentLocationHostName;\n \n if (!currentDomain) {\n return;\n }\n \n var ok = false;\n \n for (var i = 0; i < domains.length; i++) {\n var domain = domains[i];\n var position = currentDomain.length - domain.length;\n var lastIndex = currentDomain.indexOf(domain, position);\n var endsWith = lastIndex !== -1 && lastIndex === position;\n \n if (endsWith) {\n if (currentDomain.length == domain.length || domain.indexOf(".") === 0) {\n ok = true;\n }\n }\n }\n \n if (!ok) {\n data;\n } else {\n return;\n }\n \n func();\n });\n\n {domainLockFunctionName}();\n '}},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(3)),a=r(n(7)),s=r(n(6)),u=r(n(8)),d=r(n(5)),l=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},c=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},p=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var f=n(2),h=n(4),g=n(11),m=n(16),y=n(15),b=n(12),v=function(e){function t(e,n,r){return(0,i.default)(this,t),(0,a.default)(this,(0,s.default)(t).call(this,e,n,r))}return(0,u.default)(t,e),(0,o.default)(t,[{key:"initialize",value:function(e,t,n,r){this.controlFlowStorageName=e,this.controlFlowStorageKey=t,this.leftValue=n,this.rightValue=r}},{key:"getNodeStructure",value:function(){var e=y.NodeFactory.expressionStatementNode(y.NodeFactory.callExpressionNode(y.NodeFactory.memberExpressionNode(y.NodeFactory.identifierNode(this.controlFlowStorageName),y.NodeFactory.identifierNode(this.controlFlowStorageKey)),[this.leftValue,this.rightValue]));return b.NodeUtils.parentizeAst(e),[e]}}]),t}(m.AbstractCustomNode);l([g.initializable(),c("design:type",String)],v.prototype,"controlFlowStorageKey",void 0),l([g.initializable(),c("design:type",String)],v.prototype,"controlFlowStorageName",void 0),l([g.initializable(),c("design:type",Object)],v.prototype,"leftValue",void 0),l([g.initializable(),c("design:type",Object)],v.prototype,"rightValue",void 0),v=l([f.injectable(),p(0,f.inject(h.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),p(1,f.inject(h.ServiceIdentifiers.IRandomGenerator)),p(2,f.inject(h.ServiceIdentifiers.IOptions)),c("design:paramtypes",[Function,Object,Object])],v),t.ExpressionWithOperatorControlFlowStorageCallNode=v},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(3)),a=r(n(7)),s=r(n(6)),u=r(n(8)),d=r(n(5)),l=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},c=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},p=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var f=n(2),h=n(4),g=n(11),m=n(16),y=n(15),b=n(12),v=function(e){function t(e,n,r){return(0,i.default)(this,t),(0,a.default)(this,(0,s.default)(t).call(this,e,n,r))}return(0,u.default)(t,e),(0,o.default)(t,[{key:"initialize",value:function(e){this.operator=e}},{key:"getNodeStructure",value:function(){var e=y.NodeFactory.expressionStatementNode(y.NodeFactory.functionExpressionNode([y.NodeFactory.identifierNode("x"),y.NodeFactory.identifierNode("y")],y.NodeFactory.blockStatementNode([y.NodeFactory.returnStatementNode(y.NodeFactory.logicalExpressionNode(this.operator,y.NodeFactory.identifierNode("x"),y.NodeFactory.identifierNode("y")))])));return b.NodeUtils.parentizeAst(e),[e]}}]),t}(m.AbstractCustomNode);l([g.initializable(),c("design:type",String)],v.prototype,"operator",void 0),v=l([f.injectable(),p(0,f.inject(h.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),p(1,f.inject(h.ServiceIdentifiers.IRandomGenerator)),p(2,f.inject(h.ServiceIdentifiers.IOptions)),c("design:paramtypes",[Function,Object,Object])],v),t.LogicalExpressionFunctionNode=v},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(3)),a=r(n(7)),s=r(n(6)),u=r(n(8)),d=r(n(5)),l=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},c=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},p=function(e,t){return function(n,r){t(n,r,e)}},f=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var h=n(2),g=n(4),m=f(n(22)),y=n(32),b=n(11),v=n(212),C=n(48),S=n(16),N=n(42),A=n(12),_=function(e){function t(e,n,r){return(0,i.default)(this,t),(0,a.default)(this,(0,s.default)(t).call(this,e,n,r))}return(0,u.default)(t,e),(0,o.default)(t,[{key:"initialize",value:function(e,t){this.appendEvent=e,this.callsControllerFunctionName=t}},{key:"getNodeStructure",value:function(){return A.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){return this.appendEvent===y.ObfuscationEvent.AfterObfuscation?N.JavaScriptObfuscator.obfuscate(m.default(v.SingleNodeCallControllerTemplate(),{singleNodeCallControllerFunctionName:this.callsControllerFunctionName}),Object.assign({},C.NO_ADDITIONAL_NODES_PRESET,{identifierNamesGenerator:this.options.identifierNamesGenerator,seed:this.options.seed})).getObfuscatedCode():m.default(v.SingleNodeCallControllerTemplate(),{singleNodeCallControllerFunctionName:this.callsControllerFunctionName})}}]),t}(S.AbstractCustomNode);l([b.initializable(),c("design:type",String)],_.prototype,"callsControllerFunctionName",void 0),l([b.initializable(),c("design:type",String)],_.prototype,"appendEvent",void 0),_=l([h.injectable(),p(0,h.inject(g.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),p(1,h.inject(g.ServiceIdentifiers.IRandomGenerator)),p(2,h.inject(g.ServiceIdentifiers.IOptions)),c("design:paramtypes",[Function,Object,Object])],_),t.NodeCallsControllerFunctionNode=_},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SingleNodeCallControllerTemplate=function(){return"\n var {singleNodeCallControllerFunctionName} = (function(){\n var firstCall = true;\n \n return function (context, fn){\n var rfn = firstCall ? function(){\n if(fn){\n var res = fn.apply(context, arguments);\n fn = null;\n return res;\n }\n } : function(){}\n \n firstCall = false;\n \n return rfn;\n }\n })();\n "}},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(3)),a=r(n(7)),s=r(n(6)),u=r(n(8)),d=r(n(5)),l=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},c=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},p=function(e,t){return function(n,r){t(n,r,e)}},f=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var h=n(2),g=n(4),m=f(n(22)),y=n(11),b=n(48),v=n(214),C=n(16),S=n(42),N=n(12),A=function(e){function t(e,n,r,o){var u;return(0,i.default)(this,t),(u=(0,a.default)(this,(0,s.default)(t).call(this,e,n,o))).escapeSequenceEncoder=r,u}return(0,u.default)(t,e),(0,o.default)(t,[{key:"initialize",value:function(e){this.callsControllerFunctionName=e}},{key:"getNodeStructure",value:function(){return N.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){return S.JavaScriptObfuscator.obfuscate(m.default(v.SelfDefendingTemplate(this.escapeSequenceEncoder),{selfDefendingFunctionName:this.identifierNamesGenerator.generate(),singleNodeCallControllerFunctionName:this.callsControllerFunctionName}),Object.assign({},b.NO_ADDITIONAL_NODES_PRESET,{identifierNamesGenerator:this.options.identifierNamesGenerator,seed:this.options.seed,unicodeEscapeSequence:!0})).getObfuscatedCode()}}]),t}(C.AbstractCustomNode);l([y.initializable(),c("design:type",String)],A.prototype,"callsControllerFunctionName",void 0),A=l([h.injectable(),p(0,h.inject(g.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),p(1,h.inject(g.ServiceIdentifiers.IRandomGenerator)),p(2,h.inject(g.ServiceIdentifiers.IEscapeSequenceEncoder)),p(3,h.inject(g.ServiceIdentifiers.IOptions)),c("design:paramtypes",[Function,Object,Object,Object])],A),t.SelfDefendingUnicodeNode=A},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SelfDefendingTemplate=function(e){return"\n var {selfDefendingFunctionName} = {singleNodeCallControllerFunctionName}(this, function () {\n var func1 = function(){return 'dev';},\n func2 = function () {\n return 'window';\n };\n \n var test1 = function () {\n var regExp = new RegExp('".concat(e.encode("\\w+ *\\(\\) *{\\w+ *['|\"].+['|\"];? *}",!0),"');\n \n return !regExp.test(func1.toString());\n };\n \n var test2 = function () {\n var regExp = new RegExp('").concat(e.encode("(\\\\[x|u](\\w){2,4})+",!0),"');\n \n return regExp.test(func2.toString());\n };\n \n var recursiveFunc1 = function (string) {\n var i = ~-1 >> 1 + 255 % 0;\n \n if (string.indexOf('i' === i)) {\n recursiveFunc2(string)\n }\n };\n \n var recursiveFunc2 = function (string) {\n var i = ~-4 >> 1 + 255 % 0;\n \n if (string.indexOf((true+\"\")[3]) !== i) {\n recursiveFunc1(string)\n }\n };\n \n if (!test1()) {\n if (!test2()) {\n recursiveFunc1('indеxOf');\n } else {\n recursiveFunc1('indexOf');\n }\n } else {\n recursiveFunc1('indеxOf');\n }\n })\n \n {selfDefendingFunctionName}();\n ")}},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(3)),a=r(n(7)),s=r(n(6)),u=r(n(8)),d=r(n(5)),l=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},c=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},p=function(e,t){return function(n,r){t(n,r,e)}},f=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var h=n(2),g=n(4),m=f(n(22)),y=n(33),b=n(51),v=n(11),C=n(48),S=n(216),N=n(64),A=n(217),_=n(218),E=n(219),I=n(220),T=n(221),D=n(16),F=n(42),M=n(12),P=function(e){function t(e,n,r,o){var u;return(0,i.default)(this,t),(u=(0,a.default)(this,(0,s.default)(t).call(this,e,n,o))).escapeSequenceEncoder=r,u}return(0,u.default)(t,e),(0,o.default)(t,[{key:"initialize",value:function(e,t){this.stringArrayName=e,this.stringArrayCallsWrapperName=t}},{key:"getNodeStructure",value:function(){return M.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){var e=this.getDecodeStringArrayTemplate();return F.JavaScriptObfuscator.obfuscate(m.default(I.StringArrayCallsWrapperTemplate(),{decodeNodeTemplate:e,stringArrayCallsWrapperName:this.stringArrayCallsWrapperName,stringArrayName:this.stringArrayName}),Object.assign({},C.NO_ADDITIONAL_NODES_PRESET,{identifierNamesGenerator:this.options.identifierNamesGenerator,seed:this.options.seed})).getObfuscatedCode()}},{key:"getDecodeStringArrayTemplate",value:function(){var e=this.options.target!==y.ObfuscationTarget.BrowserNoEval?this.getGlobalVariableTemplate():N.GlobalVariableNoEvalTemplate(),t=m.default(S.AtobTemplate(),{globalVariableTemplate:e}),n="",r="";switch(this.options.selfDefending&&(r=m.default(_.SelfDefendingTemplate(this.randomGenerator,this.escapeSequenceEncoder),{stringArrayCallsWrapperName:this.stringArrayCallsWrapperName,stringArrayName:this.stringArrayName})),this.options.stringArrayEncoding){case b.StringArrayEncoding.Rc4:n=m.default(T.StringArrayRc4DecodeNodeTemplate(this.randomGenerator),{atobPolyfill:t,rc4Polyfill:A.Rc4Template(),selfDefendingCode:r,stringArrayCallsWrapperName:this.stringArrayCallsWrapperName});break;case b.StringArrayEncoding.Base64:n=m.default(E.StringArrayBase64DecodeNodeTemplate(this.randomGenerator),{atobPolyfill:t,selfDefendingCode:r,stringArrayCallsWrapperName:this.stringArrayCallsWrapperName})}return n}}]),t}(D.AbstractCustomNode);l([v.initializable(),c("design:type",String)],P.prototype,"stringArrayName",void 0),l([v.initializable(),c("design:type",String)],P.prototype,"stringArrayCallsWrapperName",void 0),P=l([h.injectable(),p(0,h.inject(g.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),p(1,h.inject(g.ServiceIdentifiers.IRandomGenerator)),p(2,h.inject(g.ServiceIdentifiers.IEscapeSequenceEncoder)),p(3,h.inject(g.ServiceIdentifiers.IOptions)),c("design:paramtypes",[Function,Object,Object,Object])],P),t.StringArrayCallsWrapper=P},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AtobTemplate=function(){return"\n (function () {\n {globalVariableTemplate}\n \n var chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';\n\n that.atob || (\n that.atob = function(input) {\n var str = String(input).replace(/=+$/, '');\n for (\n var bc = 0, bs, buffer, idx = 0, output = '';\n buffer = str.charAt(idx++);\n ~buffer && (bs = bc % 4 ? bs * 64 + buffer : buffer,\n bc++ % 4) ? output += String.fromCharCode(255 & bs >> (-2 * bc & 6)) : 0\n ) {\n buffer = chars.indexOf(buffer);\n }\n return output;\n });\n })();\n "}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Rc4Template=function(){return"\n var rc4 = function (str, key) {\n var s = [], j = 0, x, res = '', newStr = '';\n \n str = atob(str);\n \n for (var k = 0, length = str.length; k < length; k++) {\n newStr += '%' + ('00' + str.charCodeAt(k).toString(16)).slice(-2);\n }\n \n str = decodeURIComponent(newStr);\n \t \n\t for (var 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 (var 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 res += String.fromCharCode(str.charCodeAt(y) ^ s[(s[i] + s[j]) % 256]);\n }\n \n return res;\n }\n "}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SelfDefendingTemplate=function(e,t){var n=e.getRandomString(6),r=e.getRandomString(6),i=e.getRandomString(6),o=e.getRandomString(6),a=e.getRandomString(6),s=e.getRandomString(6),u=e.getRandomString(6),d=e.getRandomString(6),l=e.getRandomString(6);return"\n var StatesClass = function (".concat(n,") {\n this.").concat(n," = ").concat(n,";\n this.").concat(r," = [1, 0, 0];\n this.").concat(i," = function(){return 'newState';};\n this.").concat(o," = '").concat(t.encode("\\w+ *\\(\\) *{\\w+ *",!0),"';\n this.").concat(a," = '").concat(t.encode("['|\"].+['|\"];? *}",!0),"';\n };\n \n StatesClass.prototype.").concat(s," = function () {\n var regExp = new RegExp(this.").concat(o," + this.").concat(a,");\n var expression = regExp.test(this.").concat(i,".toString())\n ? --this.").concat(r,"[1]\n : --this.").concat(r,"[0];\n \n return this.").concat(u,"(expression);\n };\n \n StatesClass.prototype.").concat(u," = function (").concat(l,") {\n if (!Boolean(~").concat(l,")) {\n return ").concat(l,";\n }\n \n return this.").concat(d,"(this.").concat(n,");\n };\n\n StatesClass.prototype.").concat(d," = function (").concat(n,") {\n for (var i = 0, len = this.").concat(r,".length; i < len; i++) {\n this.").concat(r,".push(Math.round(Math.random()));\n len = this.").concat(r,".length;\n }\n \n return ").concat(n,"(this.").concat(r,"[0]);\n };\n\n new StatesClass({stringArrayCallsWrapperName}).").concat(s,"();\n ")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayBase64DecodeNodeTemplate=function(e){var t=e.getRandomString(6),n=e.getRandomString(6),r=e.getRandomString(6);return"\n if ({stringArrayCallsWrapperName}.".concat(t," === undefined) {\n {atobPolyfill}\n \n {stringArrayCallsWrapperName}.").concat(n," = function (str) {\n var string = atob(str);\n var newStringChars = [];\n \n for (var i = 0, length = string.length; i < length; i++) {\n newStringChars += '%' + ('00' + string.charCodeAt(i).toString(16)).slice(-2);\n }\n \n return decodeURIComponent(newStringChars);\n };\n \n {stringArrayCallsWrapperName}.").concat(r," = {};\n \n {stringArrayCallsWrapperName}.").concat(t," = true;\n }\n \n var cachedValue = {stringArrayCallsWrapperName}.").concat(r,"[index];\n \n if (cachedValue === undefined) {\n {selfDefendingCode}\n \n value = {stringArrayCallsWrapperName}.").concat(n,"(value);\n {stringArrayCallsWrapperName}.").concat(r,"[index] = value;\n } else {\n value = cachedValue;\n }\n ")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayCallsWrapperTemplate=function(){return"\n var {stringArrayCallsWrapperName} = function (index, key) {\n index = index - 0;\n \n var value = {stringArrayName}[index];\n \n {decodeNodeTemplate}\n \n return value;\n };\n "}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayRc4DecodeNodeTemplate=function(e){var t=e.getRandomString(6),n=e.getRandomString(6),r=e.getRandomString(6),i=e.getRandomString(6);return"\n if ({stringArrayCallsWrapperName}.".concat(t," === undefined) {\n {atobPolyfill}\n \n {rc4Polyfill}\n {stringArrayCallsWrapperName}.").concat(n," = rc4;\n \n {stringArrayCallsWrapperName}.").concat(r," = {};\n \n {stringArrayCallsWrapperName}.").concat(t," = true;\n }\n \n var cachedValue = {stringArrayCallsWrapperName}.").concat(r,"[index];\n\n if (cachedValue === undefined) {\n if ({stringArrayCallsWrapperName}.").concat(i," === undefined) {\n {selfDefendingCode}\n \n {stringArrayCallsWrapperName}.").concat(i," = true;\n }\n \n value = {stringArrayCallsWrapperName}.").concat(n,"(value, key);\n {stringArrayCallsWrapperName}.").concat(r,"[index] = value;\n } else {\n value = cachedValue;\n }\n ")}},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(3)),a=r(n(7)),s=r(n(6)),u=r(n(52)),d=r(n(8)),l=r(n(5)),c=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,l.default)(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},p=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,l.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},f=function(e,t){return function(n,r){t(n,r,e)}},h=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var g=n(2),m=n(4),y=h(n(22)),b=n(11),v=n(224),C=n(16),S=n(12),N=function(e){function t(e,n,r){return(0,i.default)(this,t),(0,a.default)(this,(0,s.default)(t).call(this,e,n,r))}return(0,d.default)(t,e),(0,o.default)(t,[{key:"initialize",value:function(e,t,n){this.stringArrayStorage=e,this.stringArrayName=t,this.stringArrayRotateValue=n}},{key:"getNode",value:function(){return this.stringArrayStorage.rotateArray(this.stringArrayRotateValue),(0,u.default)((0,s.default)(t.prototype),"getNode",this).call(this)}},{key:"getNodeStructure",value:function(){return S.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){return y.default(v.StringArrayTemplate(),{stringArrayName:this.stringArrayName,stringArray:this.stringArrayStorage.toString()})}}]),t}(C.AbstractCustomNode);c([b.initializable(),p("design:type",Object)],N.prototype,"stringArrayStorage",void 0),c([b.initializable(),p("design:type",String)],N.prototype,"stringArrayName",void 0),c([b.initializable(),p("design:type",Number)],N.prototype,"stringArrayRotateValue",void 0),N=c([g.injectable(),f(0,g.inject(m.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),f(1,g.inject(m.ServiceIdentifiers.IRandomGenerator)),f(2,g.inject(m.ServiceIdentifiers.IOptions)),p("design:paramtypes",[Function,Object,Object])],N),t.StringArrayNode=N},function(e,t,n){var r=n(6);e.exports=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=r(e)););return e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayTemplate=function(){return"\n var {stringArrayName} = [{stringArray}];\n "}},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(3)),a=r(n(7)),s=r(n(6)),u=r(n(8)),d=r(n(5)),l=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},c=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},p=function(e,t){return function(n,r){t(n,r,e)}},f=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var h=n(2),g=n(4),m=f(n(22)),y=n(11),b=n(48),v=n(226),C=n(227),S=n(16),N=n(42),A=n(12),_=n(53),E=function(e){function t(e,n,r,o){var u;return(0,i.default)(this,t),(u=(0,a.default)(this,(0,s.default)(t).call(this,e,n,o))).escapeSequenceEncoder=r,u}return(0,u.default)(t,e),(0,o.default)(t,[{key:"initialize",value:function(e,t){this.stringArrayName=e,this.stringArrayRotateValue=t}},{key:"getNodeStructure",value:function(){return A.NodeUtils.convertCodeToStructure(this.getTemplate())}},{key:"getTemplate",value:function(){var e=this.identifierNamesGenerator.generate(),t=this.identifierNamesGenerator.generate(),n="";return n=this.options.selfDefending?m.default(v.SelfDefendingTemplate(this.escapeSequenceEncoder),{timesName:e,whileFunctionName:t}):"".concat(t,"(++").concat(e,")"),N.JavaScriptObfuscator.obfuscate(m.default(C.StringArrayRotateFunctionTemplate(),{code:n,timesName:e,stringArrayName:this.stringArrayName,stringArrayRotateValue:_.NumberUtils.toHex(this.stringArrayRotateValue),whileFunctionName:t}),Object.assign({},b.NO_ADDITIONAL_NODES_PRESET,{identifierNamesGenerator:this.options.identifierNamesGenerator,seed:this.options.seed})).getObfuscatedCode()}}]),t}(S.AbstractCustomNode);l([y.initializable(),c("design:type",String)],E.prototype,"stringArrayName",void 0),l([y.initializable(),c("design:type",Number)],E.prototype,"stringArrayRotateValue",void 0),E=l([h.injectable(),p(0,h.inject(g.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),p(1,h.inject(g.ServiceIdentifiers.IRandomGenerator)),p(2,h.inject(g.ServiceIdentifiers.IEscapeSequenceEncoder)),p(3,h.inject(g.ServiceIdentifiers.IOptions)),c("design:paramtypes",[Function,Object,Object,Object])],E),t.StringArrayRotateFunctionNode=E},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SelfDefendingTemplate=function(e){return"\n var selfDefendingFunc = function () {\n var object = {\n data: {\n key: 'cookie',\n value: 'timeout'\n },\n setCookie: function (options, name, value, document) {\n document = document || {};\n \n var updatedCookie = name + \"=\" + value;\n\n var i = 0;\n \n for (var i = 0, len = options.length; i < len; i++) {\n var propName = options[i];\n \n updatedCookie += \"; \" + propName;\n \n var propValue = options[propName];\n \n options.push(propValue);\n len = options.length;\n \n if (propValue !== true) {\n updatedCookie += \"=\" + propValue;\n }\n }\n\n document['cookie'] = updatedCookie;\n },\n removeCookie: function(){return 'dev';},\n getCookie: function (document, name) {\n document = document || function (value) { return value };\n var matches = document(new RegExp(\n \"(?:^|; )\" + name.replace(/([.$?*|{}()[]\\/+^])/g, '\\$1') + \"=([^;]*)\"\n ));\n \n var func = function (param1, param2) {\n param1(++param2);\n };\n \n func({whileFunctionName}, {timesName});\n \n return matches ? decodeURIComponent(matches[1]) : undefined;\n }\n };\n \n var test1 = function () {\n var regExp = new RegExp('".concat(e.encode("\\w+ *\\(\\) *{\\w+ *['|\"].+['|\"];? *}",!0),"');\n \n return regExp.test(object.removeCookie.toString());\n };\n \n object['updateCookie'] = test1;\n \n var cookie = '';\n var result = object['updateCookie']();\n \n if (!result) {\n object['setCookie'](['*'], 'counter', 1);\n } else if (result) {\n cookie = object['getCookie'](null, 'counter');\n } else {\n object['removeCookie']();\n }\n };\n \n selfDefendingFunc();\n ")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayRotateFunctionTemplate=function(){return"\n (function (array, {timesName}) {\n var {whileFunctionName} = function (times) {\n while (--times) {\n array['push'](array['shift']());\n }\n };\n \n {code}\n })({stringArrayName}, 0x{stringArrayRotateValue});\n "}},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(3)),a=r(n(7)),s=r(n(6)),u=r(n(8)),d=r(n(5)),l=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},c=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},p=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var f=n(2),h=n(4),g=n(11),m=n(16),y=n(15),b=n(12),v=function(e){function t(e,n,r){return(0,i.default)(this,t),(0,a.default)(this,(0,s.default)(t).call(this,e,n,r))}return(0,u.default)(t,e),(0,o.default)(t,[{key:"initialize",value:function(e,t){this.controlFlowStorageName=e,this.controlFlowStorageKey=t}},{key:"getNodeStructure",value:function(){var e=y.NodeFactory.expressionStatementNode(y.NodeFactory.memberExpressionNode(y.NodeFactory.identifierNode(this.controlFlowStorageName),y.NodeFactory.identifierNode(this.controlFlowStorageKey)));return b.NodeUtils.parentizeAst(e),[e]}}]),t}(m.AbstractCustomNode);l([g.initializable(),c("design:type",String)],v.prototype,"controlFlowStorageKey",void 0),l([g.initializable(),c("design:type",String)],v.prototype,"controlFlowStorageName",void 0),v=l([f.injectable(),p(0,f.inject(h.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),p(1,f.inject(h.ServiceIdentifiers.IRandomGenerator)),p(2,f.inject(h.ServiceIdentifiers.IOptions)),c("design:paramtypes",[Function,Object,Object])],v),t.StringLiteralControlFlowStorageCallNode=v},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(3)),a=r(n(7)),s=r(n(6)),u=r(n(8)),d=r(n(5)),l=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},c=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},p=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var f=n(2),h=n(4),g=n(11),m=n(16),y=n(15),b=function(e){function t(e,n,r){return(0,i.default)(this,t),(0,a.default)(this,(0,s.default)(t).call(this,e,n,r))}return(0,u.default)(t,e),(0,o.default)(t,[{key:"initialize",value:function(e){this.literalValue=e}},{key:"getNodeStructure",value:function(){return[y.NodeFactory.expressionStatementNode(y.NodeFactory.literalNode(this.literalValue))]}}]),t}(m.AbstractCustomNode);l([g.initializable(),c("design:type",String)],b.prototype,"literalValue",void 0),b=l([f.injectable(),p(0,f.inject(h.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),p(1,f.inject(h.ServiceIdentifiers.IRandomGenerator)),p(2,f.inject(h.ServiceIdentifiers.IOptions)),c("design:paramtypes",[Function,Object,Object])],b),t.StringLiteralNode=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2);t.finalizingTransformersModule=new r.ContainerModule(function(e){})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2),i=n(4),o=n(49),a=n(232),s=n(233);t.generatorsModule=new r.ContainerModule(function(e){e(i.ServiceIdentifiers.IIdentifierNamesGenerator).to(a.HexadecimalIdentifierNamesGenerator).inSingletonScope().whenTargetNamed(o.IdentifierNamesGenerator.HexadecimalIdentifierNamesGenerator),e(i.ServiceIdentifiers.IIdentifierNamesGenerator).to(s.MangledIdentifierNamesGenerator).inSingletonScope().whenTargetNamed(o.IdentifierNamesGenerator.MangledIdentifierNamesGenerator),e(i.ServiceIdentifiers.Factory__IIdentifierNamesGenerator).toFactory(function(e){var t=null;return function(n){if(t)return t;var r;switch(n.identifierNamesGenerator){case o.IdentifierNamesGenerator.MangledIdentifierNamesGenerator:r=e.container.getNamed(i.ServiceIdentifiers.IIdentifierNamesGenerator,o.IdentifierNamesGenerator.MangledIdentifierNamesGenerator);break;case o.IdentifierNamesGenerator.HexadecimalIdentifierNamesGenerator:default:r=e.container.getNamed(i.ServiceIdentifiers.IIdentifierNamesGenerator,o.IdentifierNamesGenerator.HexadecimalIdentifierNamesGenerator)}return t=r,r}})})},function(e,t,n){"use strict";var r,i=n(0),o=i(n(1)),a=i(n(3)),s=i(n(7)),u=i(n(6)),d=i(n(8)),l=i(n(5)),c=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,l.default)(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},p=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,l.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},f=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var h=n(2),g=n(4),m=n(88),y=n(53),b=n(45),v=r=function(e){function t(e,n){var r;return(0,o.default)(this,t),(r=(0,s.default)(this,(0,u.default)(t).call(this,e,n))).randomVariableNameSet=new Set,r}return(0,d.default)(t,e),(0,a.default)(t,[{key:"generate",value:function(e){var t=this.randomGenerator.getRandomInteger(1e4,99999999),n=y.NumberUtils.toHex(t),i=b.Utils.hexadecimalPrefix.length+1,o=e?e-i:r.baseIdentifierNameLength,a=n.substr(0,o),s="_".concat(b.Utils.hexadecimalPrefix).concat(a);return this.randomVariableNameSet.has(s)?this.generate(e):(this.randomVariableNameSet.add(s),s)}},{key:"generateWithPrefix",value:function(e){var t=this.generate(e);return"".concat(this.options.identifiersPrefix).concat(t).replace("__","_")}}]),t}(m.AbstractIdentifierNamesGenerator);v.baseIdentifierNameLength=6,v=r=c([h.injectable(),f(0,h.inject(g.ServiceIdentifiers.IRandomGenerator)),f(1,h.inject(g.ServiceIdentifiers.IOptions)),p("design:paramtypes",[Object,Object])],v),t.HexadecimalIdentifierNamesGenerator=v},function(e,t,n){"use strict";var r,i=n(0),o=i(n(1)),a=i(n(3)),s=i(n(7)),u=i(n(6)),d=i(n(52)),l=i(n(8)),c=i(n(5)),p=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,c.default)(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},f=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,c.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},h=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var g=n(2),m=n(4),y=n(88),b=r=function(e){function t(e,n){var i;return(0,o.default)(this,t),(i=(0,s.default)(this,(0,u.default)(t).call(this,e,n))).previousMangledName=r.initMangledNameCharacter,i}return(0,l.default)(t,e),(0,a.default)(t,[{key:"generate",value:function(e){var t=this.generateNewMangledName(this.previousMangledName);return this.previousMangledName=t,t}},{key:"generateWithPrefix",value:function(e){var t=this.options.identifiersPrefix?"".concat(this.options.identifiersPrefix,"_"):"",n=this.generate(e);return"".concat(t).concat(n)}},{key:"isValidIdentifierName",value:function(e){return(0,d.default)((0,u.default)(t.prototype),"isValidIdentifierName",this).call(this,e)&&!r.reservedNames.includes(e)}},{key:"generateNewMangledName",value:function(e){var t=function(e){var t=r.nameSequence,n=e.length,i=function(e){return"0".repeat(e)},o=n-1;do{var a=e.charAt(o),s=t.indexOf(a);if(s!==t.length-1)return e.substring(0,o)+t[s+1]+i(n-(o+1));--o}while(o>=0);return"a".concat(i(n))},n=t(e);return this.isValidIdentifierName(n)||(n=this.generateNewMangledName(n)),n}}]),t}(y.AbstractIdentifierNamesGenerator);b.initMangledNameCharacter="9",b.nameSequence="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""),b.reservedNames=["byte","case","char","do","else","enum","eval","for","goto","if","in","int","let","long","new","null","this","true","try","var","void","with"],b=r=p([g.injectable(),h(0,g.inject(m.ServiceIdentifiers.IRandomGenerator)),h(1,g.inject(m.ServiceIdentifiers.IOptions)),f("design:paramtypes",[Object,Object])],b),t.MangledIdentifierNamesGenerator=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(25),i=n(2),o=n(4);t.nodeTransformersModule=new i.ContainerModule(function(e){e(o.ServiceIdentifiers.Factory__INodeTransformer).toFactory(r.InversifyContainerFacade.getCacheFactory(o.ServiceIdentifiers.INodeTransformer))})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(25),i=n(2),o=n(4),a=n(28),s=n(89),u=n(35),d=n(236),l=n(237),c=n(238),p=n(239),f=n(240),h=n(241),g=n(242),m=n(243),y=n(244),b=n(245),v=n(246),C=n(247);t.obfuscatingTransformersModule=new i.ContainerModule(function(e){e(o.ServiceIdentifiers.INodeTransformer).to(c.CatchClauseTransformer).whenTargetNamed(u.NodeTransformer.CatchClauseTransformer),e(o.ServiceIdentifiers.INodeTransformer).to(p.ClassDeclarationTransformer).whenTargetNamed(u.NodeTransformer.ClassDeclarationTransformer),e(o.ServiceIdentifiers.INodeTransformer).to(f.FunctionDeclarationTransformer).whenTargetNamed(u.NodeTransformer.FunctionDeclarationTransformer),e(o.ServiceIdentifiers.INodeTransformer).to(h.FunctionTransformer).whenTargetNamed(u.NodeTransformer.FunctionTransformer),e(o.ServiceIdentifiers.INodeTransformer).to(g.ImportDeclarationTransformer).whenTargetNamed(u.NodeTransformer.ImportDeclarationTransformer),e(o.ServiceIdentifiers.INodeTransformer).to(m.LabeledStatementTransformer).whenTargetNamed(u.NodeTransformer.LabeledStatementTransformer),e(o.ServiceIdentifiers.INodeTransformer).to(y.LiteralTransformer).whenTargetNamed(u.NodeTransformer.LiteralTransformer),e(o.ServiceIdentifiers.INodeTransformer).to(C.VariableDeclarationTransformer).whenTargetNamed(u.NodeTransformer.VariableDeclarationTransformer),e(o.ServiceIdentifiers.IObfuscatingReplacer).to(l.BooleanLiteralObfuscatingReplacer).whenTargetNamed(s.LiteralObfuscatingReplacer.BooleanLiteralObfuscatingReplacer),e(o.ServiceIdentifiers.IObfuscatingReplacer).to(b.NumberLiteralObfuscatingReplacer).whenTargetNamed(s.LiteralObfuscatingReplacer.NumberLiteralObfuscatingReplacer),e(o.ServiceIdentifiers.IObfuscatingReplacer).to(v.StringLiteralObfuscatingReplacer).whenTargetNamed(s.LiteralObfuscatingReplacer.StringLiteralObfuscatingReplacer),e(o.ServiceIdentifiers.IIdentifierObfuscatingReplacer).to(d.BaseIdentifierObfuscatingReplacer).whenTargetNamed(a.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer),e(o.ServiceIdentifiers.Factory__IObfuscatingReplacer).toFactory(r.InversifyContainerFacade.getCacheFactory(o.ServiceIdentifiers.IObfuscatingReplacer)),e(o.ServiceIdentifiers.Factory__IIdentifierObfuscatingReplacer).toFactory(r.InversifyContainerFacade.getCacheFactory(o.ServiceIdentifiers.IIdentifierObfuscatingReplacer))})},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(3)),a=r(n(7)),s=r(n(6)),u=r(n(8)),d=r(n(5)),l=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},c=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},p=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var f=n(2),h=n(4),g=n(54),m=n(15),y=function(e){function t(e,n){var r;return(0,i.default)(this,t),(r=(0,a.default)(this,(0,s.default)(t).call(this,n))).blockScopesMap=new Map,r.identifierNamesGenerator=e(n),r}return(0,u.default)(t,e),(0,o.default)(t,[{key:"replace",value:function(e,t){if(this.blockScopesMap.has(t)){var n=this.blockScopesMap.get(t);n.has(e)&&(e=n.get(e))}return m.NodeFactory.identifierNode(e)}},{key:"storeGlobalName",value:function(e,t){if(!this.isReservedName(e)){var n=this.identifierNamesGenerator.generateWithPrefix();this.blockScopesMap.has(t)||this.blockScopesMap.set(t,new Map),this.blockScopesMap.get(t).set(e,n)}}},{key:"storeLocalName",value:function(e,t){if(!this.isReservedName(e)){var n=this.identifierNamesGenerator.generate();this.blockScopesMap.has(t)||this.blockScopesMap.set(t,new Map),this.blockScopesMap.get(t).set(e,n)}}},{key:"isReservedName",value:function(e){return!!this.options.reservedStrings.length&&this.options.reservedNames.some(function(t){return null!==new RegExp(t,"g").exec(e)})}}]),t}(g.AbstractObfuscatingReplacer);y=l([f.injectable(),p(0,f.inject(h.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),p(1,f.inject(h.ServiceIdentifiers.IOptions)),c("design:paramtypes",[Function,Object])],y),t.BaseIdentifierObfuscatingReplacer=y},function(e,t,n){"use strict";var r,i=n(0),o=i(n(1)),a=i(n(3)),s=i(n(7)),u=i(n(6)),d=i(n(8)),l=i(n(5)),c=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,l.default)(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},p=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,l.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},f=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var h=n(2),g=n(4),m=n(54),y=n(15),b=r=function(e){function t(e){return(0,o.default)(this,t),(0,s.default)(this,(0,u.default)(t).call(this,e))}return(0,d.default)(t,e),(0,a.default)(t,[{key:"replace",value:function(e){return e?r.getTrueUnaryExpressionNode():r.getFalseUnaryExpressionNode()}}],[{key:"getTrueUnaryExpressionNode",value:function(){return y.NodeFactory.unaryExpressionNode("!",r.getFalseUnaryExpressionNode())}},{key:"getFalseUnaryExpressionNode",value:function(){return y.NodeFactory.unaryExpressionNode("!",y.NodeFactory.arrayExpressionNode())}}]),t}(m.AbstractObfuscatingReplacer);b=r=c([h.injectable(),f(0,h.inject(g.ServiceIdentifiers.IOptions)),p("design:paramtypes",[Object])],b),t.BooleanLiteralObfuscatingReplacer=b},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(3)),a=r(n(7)),s=r(n(6)),u=r(n(8)),d=r(n(5)),l=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},c=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},p=function(e,t){return function(n,r){t(n,r,e)}},f=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var h=n(2),g=n(4),m=f(n(18)),y=n(28),b=n(13),v=n(14),C=n(10),S=n(34),N=n(20),A=function(e){function t(e,n,r){var o;return(0,i.default)(this,t),(o=(0,a.default)(this,(0,s.default)(t).call(this,n,r))).identifierObfuscatingReplacer=e(y.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer),o}return(0,u.default)(t,e),(0,o.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case b.TransformationStage.Obfuscating:return{enter:function(e,n){if(n&&C.NodeGuards.isCatchClauseNode(e))return t.transformNode(e,n)}};default:return null}}},{key:"transformNode",value:function(e,t){var n=S.NodeLexicalScopeUtils.getLexicalScope(e);return n?(this.storeCatchClauseParam(e,n),this.replaceCatchClauseParam(e,n),e):e}},{key:"storeCatchClauseParam",value:function(e,t){C.NodeGuards.isIdentifierNode(e.param)&&this.identifierObfuscatingReplacer.storeLocalName(e.param.name,t)}},{key:"replaceCatchClauseParam",value:function(e,t){var n=this;m.replace(e,{enter:function(e,r){if(r&&C.NodeGuards.isReplaceableIdentifierNode(e,r)){var i=n.identifierObfuscatingReplacer.replace(e.name,t).name;e.name!==i&&(e.name=i,N.NodeMetadata.set(e,{renamedIdentifier:!0}))}}})}}]),t}(v.AbstractNodeTransformer);A=l([h.injectable(),p(0,h.inject(g.ServiceIdentifiers.Factory__IIdentifierObfuscatingReplacer)),p(1,h.inject(g.ServiceIdentifiers.IRandomGenerator)),p(2,h.inject(g.ServiceIdentifiers.IOptions)),c("design:paramtypes",[Function,Object,Object])],A),t.CatchClauseTransformer=A},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(3)),a=r(n(7)),s=r(n(6)),u=r(n(8)),d=r(n(5)),l=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},c=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},p=function(e,t){return function(n,r){t(n,r,e)}},f=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var h=n(2),g=n(4),m=f(n(18)),y=n(28),b=n(24),v=n(13),C=n(14),S=n(10),N=n(34),A=n(20),_=function(e){function t(e,n,r){var o;return(0,i.default)(this,t),(o=(0,a.default)(this,(0,s.default)(t).call(this,n,r))).replaceableIdentifiers=new Map,o.identifierObfuscatingReplacer=e(y.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer),o}return(0,u.default)(t,e),(0,o.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case v.TransformationStage.Obfuscating:return{enter:function(e,n){if(n&&S.NodeGuards.isClassDeclarationNode(e)&&!S.NodeGuards.isExportNamedDeclarationNode(n))return t.transformNode(e,n)}};default:return null}}},{key:"transformNode",value:function(e,t){var n=N.NodeLexicalScopeUtils.getLexicalScope(e);if(!n)return e;var r=n.type===b.NodeType.Program;return!this.options.renameGlobals&&r?e:(this.storeClassName(e,n,r),this.replaceableIdentifiers.has(n)?this.replaceScopeCachedIdentifiers(e,n):this.replaceScopeIdentifiers(n),e)}},{key:"storeClassName",value:function(e,t,n){n?this.identifierObfuscatingReplacer.storeGlobalName(e.id.name,t):this.identifierObfuscatingReplacer.storeLocalName(e.id.name,t)}},{key:"replaceScopeCachedIdentifiers",value:function(e,t){var n=this.replaceableIdentifiers.get(t).get(e.id.name);if(n)for(var r=n.length,i=0;i=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},c=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},p=function(e,t){return function(n,r){t(n,r,e)}},f=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var h=n(2),g=n(4),m=f(n(18)),y=n(28),b=n(24),v=n(13),C=n(14),S=n(10),N=n(34),A=n(20),_=function(e){function t(e,n,r){var o;return(0,i.default)(this,t),(o=(0,a.default)(this,(0,s.default)(t).call(this,n,r))).replaceableIdentifiers=new Map,o.identifierObfuscatingReplacer=e(y.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer),o}return(0,u.default)(t,e),(0,o.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case v.TransformationStage.Obfuscating:return{enter:function(e,n){if(n&&S.NodeGuards.isFunctionDeclarationNode(e)&&!S.NodeGuards.isExportNamedDeclarationNode(n))return t.transformNode(e,n)}};default:return null}}},{key:"transformNode",value:function(e,t){var n=N.NodeLexicalScopeUtils.getLexicalScope(t);if(!n)return e;var r=n.type===b.NodeType.Program;return!this.options.renameGlobals&&r?e:(this.storeFunctionName(e,n,r),this.replaceableIdentifiers.has(n)?this.replaceScopeCachedIdentifiers(e,n):this.replaceScopeIdentifiers(n),e)}},{key:"storeFunctionName",value:function(e,t,n){n?this.identifierObfuscatingReplacer.storeGlobalName(e.id.name,t):this.identifierObfuscatingReplacer.storeLocalName(e.id.name,t)}},{key:"replaceScopeCachedIdentifiers",value:function(e,t){var n=this.replaceableIdentifiers.get(t).get(e.id.name);if(n)for(var r=n.length,i=0;i=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},p=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,l.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},f=function(e,t){return function(n,r){t(n,r,e)}},h=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var g=n(2),m=n(4),y=h(n(18)),b=n(28),v=n(13),C=n(14),S=n(10),N=n(34),A=n(20),_=n(24),E=r=function(e){function t(e,n,r){var i;return(0,o.default)(this,t),(i=(0,s.default)(this,(0,u.default)(t).call(this,n,r))).identifierObfuscatingReplacer=e(b.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer),i}return(0,d.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case v.TransformationStage.Obfuscating:return{enter:function(e,n){if(n&&S.NodeGuards.isFunctionNode(e))return t.transformNode(e,n)}};default:return null}}},{key:"transformNode",value:function(e,t){var n=N.NodeLexicalScopeUtils.getLexicalScope(e);return n?(this.storeFunctionParams(e,n),this.replaceFunctionParams(e,n),e):e}},{key:"isGlobalFunctionDeclarationIdentifier",value:function(e,t){if(!S.NodeGuards.isFunctionDeclarationNode(t)||t.id!==e)return!1;var n=N.NodeLexicalScopeUtils.getLexicalScopes(t)[1];if(!n)return!1;var r=n.type===_.NodeType.Program;return!this.options.renameGlobals&&r}},{key:"storeFunctionParams",value:function(e,t){var n=this,i={enter:function(e,i){if(!r.isProhibitedIdentifierOfPropertyNode(e,i))return S.NodeGuards.isAssignmentPatternNode(e)&&S.NodeGuards.isIdentifierNode(e.left)?(n.identifierObfuscatingReplacer.storeLocalName(e.left.name,t),y.VisitorOption.Skip):void(S.NodeGuards.isIdentifierNode(e)&&n.identifierObfuscatingReplacer.storeLocalName(e.name,t))}};e.params.forEach(function(e){y.traverse(e,i)})}},{key:"replaceFunctionParams",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new Set,o={enter:function(o,a){if(S.NodeGuards.isFunctionNode(o)&&o!==e)return n.replaceFunctionParams(o,t,new Set(i)),y.VisitorOption.Skip;if(r.isProhibitedIdentifierOfShorthandPropertyNode(o))i.add(o.key.name);else if(a&&S.NodeGuards.isReplaceableIdentifierNode(o,a)&&!A.NodeMetadata.isRenamedIdentifier(o)&&!i.has(o.name)){if(n.isGlobalFunctionDeclarationIdentifier(o,a))return;var s=n.identifierObfuscatingReplacer.replace(o.name,t).name;o.name!==s&&(o.name=s,A.NodeMetadata.set(o,{renamedIdentifier:!0}))}}};y.replace(e,o)}}],[{key:"isProhibitedIdentifierOfPropertyNode",value:function(e,t){return S.NodeGuards.isIdentifierNode(e)&&!!t&&S.NodeGuards.isPropertyNode(t)&&t.key===e}},{key:"isProhibitedIdentifierOfShorthandPropertyNode",value:function(e){return S.NodeGuards.isPropertyNode(e)&&e.shorthand&&S.NodeGuards.isIdentifierNode(e.key)}}]),t}(C.AbstractNodeTransformer);E=r=c([g.injectable(),f(0,g.inject(m.ServiceIdentifiers.Factory__IIdentifierObfuscatingReplacer)),f(1,g.inject(m.ServiceIdentifiers.IRandomGenerator)),f(2,g.inject(m.ServiceIdentifiers.IOptions)),p("design:paramtypes",[Function,Object,Object])],E),t.FunctionTransformer=E},function(e,t,n){"use strict";var r,i=n(0),o=i(n(1)),a=i(n(3)),s=i(n(7)),u=i(n(6)),d=i(n(8)),l=i(n(5)),c=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,l.default)(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},p=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,l.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},f=function(e,t){return function(n,r){t(n,r,e)}},h=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var g=n(2),m=n(4),y=h(n(18)),b=n(28),v=n(13),C=n(14),S=n(10),N=n(34),A=n(20),_=r=function(e){function t(e,n,r){var i;return(0,o.default)(this,t),(i=(0,s.default)(this,(0,u.default)(t).call(this,n,r))).replaceableIdentifiers=new Map,i.identifierObfuscatingReplacer=e(b.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer),i}return(0,d.default)(t,e),(0,a.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case v.TransformationStage.Obfuscating:return{enter:function(e,n){if(n&&S.NodeGuards.isImportDeclarationNode(e))return t.transformNode(e,n)}};default:return null}}},{key:"transformNode",value:function(e,t){var n=N.NodeLexicalScopeUtils.getLexicalScope(e);return n?(this.storeImportSpecifierNames(e,n),this.replaceableIdentifiers.has(n)?this.replaceScopeCachedIdentifiers(n):this.replaceScopeIdentifiers(n),e):e}},{key:"storeImportSpecifierNames",value:function(e,t){var n=this;e.specifiers.forEach(function(e){r.isProhibitedImportSpecifierNode(e)||n.identifierObfuscatingReplacer.storeGlobalName(e.local.name,t)})}},{key:"replaceScopeCachedIdentifiers",value:function(e){var t=this;this.replaceableIdentifiers.get(e).forEach(function(n){var r=t.identifierObfuscatingReplacer.replace(n.name,e);n.name=r.name,A.NodeMetadata.set(n,{renamedIdentifier:!0})})}},{key:"replaceScopeIdentifiers",value:function(e){var t=this,n=[];y.replace(e,{enter:function(r,i){if(i&&S.NodeGuards.isReplaceableIdentifierNode(r,i)&&!A.NodeMetadata.isRenamedIdentifier(r)){var o=t.identifierObfuscatingReplacer.replace(r.name,e).name;r.name!==o?(r.name=o,A.NodeMetadata.set(r,{renamedIdentifier:!0})):n.push(r)}}}),this.replaceableIdentifiers.set(e,n)}}],[{key:"isProhibitedImportSpecifierNode",value:function(e){return S.NodeGuards.isImportSpecifierNode(e)&&e.imported.name===e.local.name}}]),t}(C.AbstractNodeTransformer);_=r=c([g.injectable(),f(0,g.inject(m.ServiceIdentifiers.Factory__IIdentifierObfuscatingReplacer)),f(1,g.inject(m.ServiceIdentifiers.IRandomGenerator)),f(2,g.inject(m.ServiceIdentifiers.IOptions)),p("design:paramtypes",[Function,Object,Object])],_),t.ImportDeclarationTransformer=_},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(3)),a=r(n(7)),s=r(n(6)),u=r(n(8)),d=r(n(5)),l=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},c=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},p=function(e,t){return function(n,r){t(n,r,e)}},f=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var h=n(2),g=n(4),m=f(n(18)),y=n(28),b=n(13),v=n(14),C=n(10),S=n(34),N=function(e){function t(e,n,r){var o;return(0,i.default)(this,t),(o=(0,a.default)(this,(0,s.default)(t).call(this,n,r))).identifierObfuscatingReplacer=e(y.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer),o}return(0,u.default)(t,e),(0,o.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case b.TransformationStage.Obfuscating:return{enter:function(e,n){if(n&&C.NodeGuards.isLabeledStatementNode(e))return t.transformNode(e,n)}};default:return null}}},{key:"transformNode",value:function(e,t){var n=S.NodeLexicalScopeUtils.getLexicalScope(e);return n?(this.storeLabeledStatementName(e,n),this.replaceLabeledStatementName(e,n),e):e}},{key:"storeLabeledStatementName",value:function(e,t){this.identifierObfuscatingReplacer.storeLocalName(e.label.name,t)}},{key:"replaceLabeledStatementName",value:function(e,t){var n=this;m.replace(e,{enter:function(e,r){if(r&&C.NodeGuards.isLabelIdentifierNode(e,r)){var i=n.identifierObfuscatingReplacer.replace(e.name,t);e.name=i.name}}})}}]),t}(v.AbstractNodeTransformer);N=l([h.injectable(),p(0,h.inject(g.ServiceIdentifiers.Factory__IIdentifierObfuscatingReplacer)),p(1,h.inject(g.ServiceIdentifiers.IRandomGenerator)),p(2,h.inject(g.ServiceIdentifiers.IOptions)),c("design:paramtypes",[Function,Object,Object])],N),t.LabeledStatementTransformer=N},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(3)),a=r(n(7)),s=r(n(6)),u=r(n(8)),d=r(n(5)),l=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},c=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},p=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var f=n(2),h=n(4),g=n(89),m=n(13),y=n(14),b=n(10),v=n(20),C=n(12),S=function(e){function t(e,n,r){var o;return(0,i.default)(this,t),(o=(0,a.default)(this,(0,s.default)(t).call(this,n,r))).literalObfuscatingReplacerFactory=e,o}return(0,u.default)(t,e),(0,o.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case m.TransformationStage.Obfuscating:return{enter:function(e,n){if(n&&b.NodeGuards.isLiteralNode(e)&&!v.NodeMetadata.isReplacedLiteral(e))return t.transformNode(e,n)}};default:return null}}},{key:"transformNode",value:function(e,t){if(this.isProhibitedNode(e,t))return e;var n;switch((0,d.default)(e.value)){case"boolean":n=this.literalObfuscatingReplacerFactory(g.LiteralObfuscatingReplacer.BooleanLiteralObfuscatingReplacer).replace(e.value);break;case"number":n=this.literalObfuscatingReplacerFactory(g.LiteralObfuscatingReplacer.NumberLiteralObfuscatingReplacer).replace(e.value);break;case"string":n=this.literalObfuscatingReplacerFactory(g.LiteralObfuscatingReplacer.StringLiteralObfuscatingReplacer).replace(e.value);break;default:n=e}return C.NodeUtils.parentizeNode(n,t),n}},{key:"isProhibitedNode",value:function(e,t){return!(!b.NodeGuards.isPropertyNode(t)||t.key!==e)||!!b.NodeGuards.isImportDeclarationNode(t)}}]),t}(y.AbstractNodeTransformer);S=l([f.injectable(),p(0,f.inject(h.ServiceIdentifiers.Factory__IObfuscatingReplacer)),p(1,f.inject(h.ServiceIdentifiers.IRandomGenerator)),p(2,f.inject(h.ServiceIdentifiers.IOptions)),c("design:paramtypes",[Function,Object,Object])],S),t.LiteralTransformer=S},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(3)),a=r(n(7)),s=r(n(6)),u=r(n(8)),d=r(n(5)),l=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},c=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},p=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var f=n(2),h=n(4),g=n(54),m=n(15),y=n(53),b=n(45),v=function(e){function t(e){var n;return(0,i.default)(this,t),(n=(0,a.default)(this,(0,s.default)(t).call(this,e))).numberLiteralCache=new Map,n}return(0,u.default)(t,e),(0,o.default)(t,[{key:"replace",value:function(e){var t;return this.numberLiteralCache.has(e)?t=this.numberLiteralCache.get(e):(t=y.NumberUtils.isCeil(e)?"".concat(b.Utils.hexadecimalPrefix).concat(y.NumberUtils.toHex(e)):String(e),this.numberLiteralCache.set(e,t)),m.NodeFactory.literalNode(e,t)}}]),t}(g.AbstractObfuscatingReplacer);v=l([f.injectable(),p(0,f.inject(h.ServiceIdentifiers.IOptions)),c("design:paramtypes",[Object])],v),t.NumberLiteralObfuscatingReplacer=v},function(e,t,n){"use strict";var r,i=n(0),o=i(n(1)),a=i(n(3)),s=i(n(7)),u=i(n(6)),d=i(n(8)),l=i(n(5)),c=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,l.default)(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},p=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,l.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},f=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var h=n(2),g=n(4),m=n(51),y=n(54),b=n(20),v=n(15),C=n(53),S=n(45),N=r=function(e){function t(e,n,i,a,d){var l;return(0,o.default)(this,t),(l=(0,s.default)(this,(0,u.default)(t).call(this,d))).nodesCache=new Map,l.stringLiteralHexadecimalIndexCache=new Map,l.stringArrayStorage=e,l.escapeSequenceEncoder=n,l.randomGenerator=i,l.cryptUtils=a,l.rc4Keys=l.randomGenerator.getRandomGenerator().n(function(){return l.randomGenerator.getRandomGenerator().string({length:r.rc4KeyLength})},r.rc4KeysCount),l}return(0,d.default)(t,e),(0,a.default)(t,[{key:"replace",value:function(e){if(this.isReservedString(e))return this.replaceWithReservedLiteralNode(e);var t=this.canUseStringArray(e),n="".concat(e,"-").concat(String(t));if(this.nodesCache.has(n)&&this.options.stringArrayEncoding!==m.StringArrayEncoding.Rc4)return this.nodesCache.get(n);var r=t?this.replaceWithStringArrayCallNode(e):this.replaceWithLiteralNode(e);return this.nodesCache.set(n,r),r}},{key:"canUseStringArray",value:function(e){return this.options.stringArray&&e.length>=r.minimumLengthForStringArray&&this.randomGenerator.getMathRandom()<=this.options.stringArrayThreshold}},{key:"getStringArrayHexadecimalIndex",value:function(e,t){if(this.stringLiteralHexadecimalIndexCache.has(e))return{fromCache:!0,index:this.stringLiteralHexadecimalIndexCache.get(e)};var n=C.NumberUtils.toHex(t),r="".concat(S.Utils.hexadecimalPrefix).concat(n);return this.stringLiteralHexadecimalIndexCache.set(e,r),{fromCache:!1,index:r}}},{key:"getEncodedValue",value:function(e){var t,n=null;switch(this.options.stringArrayEncoding){case m.StringArrayEncoding.Rc4:n=this.randomGenerator.getRandomGenerator().pickone(this.rc4Keys),t=this.cryptUtils.btoa(this.cryptUtils.rc4(e,n));break;case m.StringArrayEncoding.Base64:t=this.cryptUtils.btoa(e);break;default:t=e}return{encodedValue:t,key:n}}},{key:"replaceWithLiteralNode",value:function(e){return v.NodeFactory.literalNode(this.escapeSequenceEncoder.encode(e,this.options.unicodeEscapeSequence))}},{key:"replaceWithReservedLiteralNode",value:function(e){return v.NodeFactory.literalNode(this.escapeSequenceEncoder.encode(e,!1))}},{key:"replaceWithStringArrayCallNode",value:function(e){var t=this.getEncodedValue(e),n=t.encodedValue,i=t.key,o=this.escapeSequenceEncoder.encode(n,this.options.unicodeEscapeSequence),a=this.stringArrayStorage.getLength(),s=this.stringArrayStorage.getStorageId().split("|")[1],u=this.getStringArrayHexadecimalIndex(o,a),d=u.fromCache,l=u.index;d||this.stringArrayStorage.set(a,o);var c=[r.getHexadecimalLiteralNode(l)];i&&c.push(r.getRc4KeyLiteralNode(this.escapeSequenceEncoder.encode(i,this.options.unicodeEscapeSequence)));var p=v.NodeFactory.identifierNode(s);return b.NodeMetadata.set(p,{renamedIdentifier:!0}),v.NodeFactory.callExpressionNode(p,c)}},{key:"isReservedString",value:function(e){return!!this.options.reservedStrings.length&&this.options.reservedStrings.some(function(t){return null!==new RegExp(t,"g").exec(e)})}}],[{key:"getHexadecimalLiteralNode",value:function(e){var t=v.NodeFactory.literalNode(e);return b.NodeMetadata.set(t,{replacedLiteral:!0}),t}},{key:"getRc4KeyLiteralNode",value:function(e){var t=v.NodeFactory.literalNode(e);return b.NodeMetadata.set(t,{replacedLiteral:!0}),t}}]),t}(y.AbstractObfuscatingReplacer);N.minimumLengthForStringArray=3,N.rc4KeyLength=4,N.rc4KeysCount=50,N=r=c([h.injectable(),f(0,h.inject(g.ServiceIdentifiers.TStringArrayStorage)),f(1,h.inject(g.ServiceIdentifiers.IEscapeSequenceEncoder)),f(2,h.inject(g.ServiceIdentifiers.IRandomGenerator)),f(3,h.inject(g.ServiceIdentifiers.ICryptUtils)),f(4,h.inject(g.ServiceIdentifiers.IOptions)),p("design:paramtypes",[Object,Object,Object,Object,Object])],N),t.StringLiteralObfuscatingReplacer=N},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(3)),a=r(n(7)),s=r(n(6)),u=r(n(8)),d=r(n(5)),l=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},c=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,d.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},p=function(e,t){return function(n,r){t(n,r,e)}},f=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var h=n(2),g=n(4),m=f(n(18)),y=n(28),b=n(24),v=n(13),C=n(14),S=n(10),N=n(34),A=n(248),_=n(20),E=function(e){function t(e,n,r){var o;return(0,i.default)(this,t),(o=(0,a.default)(this,(0,s.default)(t).call(this,n,r))).replaceableIdentifiers=new Map,o.identifierObfuscatingReplacer=e(y.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer),o}return(0,u.default)(t,e),(0,o.default)(t,[{key:"getVisitor",value:function(e){var t=this;switch(e){case v.TransformationStage.Obfuscating:return{enter:function(e,n){if(n&&S.NodeGuards.isVariableDeclarationNode(e)&&!S.NodeGuards.isExportNamedDeclarationNode(n))return t.transformNode(e,n)}};default:return null}}},{key:"transformNode",value:function(e,t){var n="var"===e.kind?N.NodeLexicalScopeUtils.getLexicalScope(e):A.NodeBlockLexicalScopeUtils.getLexicalScope(e);if(!n)return e;var r=n.type===b.NodeType.Program;if(!this.options.renameGlobals&&r)return e;var i="var"===e.kind?n:t;return this.storeVariableNames(e,n,r),this.replaceableIdentifiers.has(i)?this.replaceScopeCachedIdentifiers(e,n,i):this.replaceScopeIdentifiers(i,n),e}},{key:"storeVariableNames",value:function(e,t,n){var r=this;this.traverseDeclarationIdentifiers(e,function(e){n?r.identifierObfuscatingReplacer.storeGlobalName(e.name,t):r.identifierObfuscatingReplacer.storeLocalName(e.name,t)})}},{key:"replaceScopeCachedIdentifiers",value:function(e,t,n){var r=this,i=this.replaceableIdentifiers.get(n),o=[];this.traverseDeclarationIdentifiers(e,function(e){o.push(e.name)}),o.forEach(function(e){var n=i.get(e);if(n)for(var o=n.length,a=0;a1&&void 0!==arguments[1]?arguments[1]:1/0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;if(r.length>=n)return r;var o=t.parentNode;if(!o)throw new ReferenceError("`parentNode` property of given node is `undefined`");return a.NodeGuards.isNodeWithBlockLexicalScope(t)&&r.push(t),t!==o?e.getLexicalScopesRecursive(o,n,r,++i):r}}]),e}();t.NodeBlockLexicalScopeUtils=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2),i=n(4),o=n(250),a=n(317);t.optionsModule=new r.ContainerModule(function(e){e(i.ServiceIdentifiers.IOptions).to(o.Options).inSingletonScope(),e(i.ServiceIdentifiers.IOptionsNormalizer).to(a.OptionsNormalizer).inSingletonScope()})},function(e,t,n){"use strict";var r,i=n(0),o=i(n(1)),a=i(n(5)),s=function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,a.default)(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var u=e.length-1;u>=0;u--)(i=e[u])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},u=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,a.default)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},d=function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var l=n(2),c=n(4),p=n(251),f=n(49),h=n(33),g=n(50),m=n(51),y=n(102),b=n(316),v=r=function e(t,n){(0,o.default)(this,e),Object.assign(this,y.DEFAULT_PRESET,t);var i=p.validateSync(this,r.validatorOptions);if(i.length)throw new ReferenceError("Validation failed. errors:\n".concat(b.ValidationErrorsFormatter.format(i)));Object.assign(this,n.normalize(this))};v.validatorOptions={validationError:{target:!1}},s([p.IsBoolean(),u("design:type",Boolean)],v.prototype,"compact",void 0),s([p.IsBoolean(),u("design:type",Boolean)],v.prototype,"controlFlowFlattening",void 0),s([p.IsNumber(),p.Min(0),p.Max(1),u("design:type",Number)],v.prototype,"controlFlowFlatteningThreshold",void 0),s([p.IsBoolean(),u("design:type",Boolean)],v.prototype,"deadCodeInjection",void 0),s([p.IsNumber(),u("design:type",Number)],v.prototype,"deadCodeInjectionThreshold",void 0),s([p.IsBoolean(),u("design:type",Boolean)],v.prototype,"debugProtection",void 0),s([p.IsBoolean(),u("design:type",Boolean)],v.prototype,"debugProtectionInterval",void 0),s([p.IsBoolean(),u("design:type",Boolean)],v.prototype,"disableConsoleOutput",void 0),s([p.IsArray(),p.ArrayUnique(),p.IsString({each:!0}),u("design:type",Array)],v.prototype,"domainLock",void 0),s([p.IsIn([f.IdentifierNamesGenerator.HexadecimalIdentifierNamesGenerator,f.IdentifierNamesGenerator.MangledIdentifierNamesGenerator]),u("design:type",String)],v.prototype,"identifierNamesGenerator",void 0),s([p.IsString(),u("design:type",String)],v.prototype,"identifiersPrefix",void 0),s([p.IsString(),u("design:type",String)],v.prototype,"inputFileName",void 0),s([p.IsBoolean(),u("design:type",Boolean)],v.prototype,"log",void 0),s([p.IsBoolean(),u("design:type",Boolean)],v.prototype,"renameGlobals",void 0),s([p.IsArray(),p.ArrayUnique(),p.IsString({each:!0}),u("design:type",Array)],v.prototype,"reservedNames",void 0),s([p.IsArray(),p.ArrayUnique(),p.IsString({each:!0}),u("design:type",Array)],v.prototype,"reservedStrings",void 0),s([p.IsBoolean(),u("design:type",Boolean)],v.prototype,"rotateStringArray",void 0),s([p.IsNumber(),u("design:type",Number)],v.prototype,"seed",void 0),s([p.IsBoolean(),u("design:type",Boolean)],v.prototype,"selfDefending",void 0),s([p.IsBoolean(),u("design:type",Boolean)],v.prototype,"sourceMap",void 0),s([p.IsString(),p.ValidateIf(function(e){return Boolean(e.sourceMapBaseUrl)}),p.IsUrl({require_protocol:!0,require_tld:!1,require_valid_protocol:!0}),u("design:type",String)],v.prototype,"sourceMapBaseUrl",void 0),s([p.IsString(),u("design:type",String)],v.prototype,"sourceMapFileName",void 0),s([p.IsIn([g.SourceMapMode.Inline,g.SourceMapMode.Separate]),u("design:type",String)],v.prototype,"sourceMapMode",void 0),s([p.IsBoolean(),u("design:type",Boolean)],v.prototype,"stringArray",void 0),s([p.IsIn([!0,!1,m.StringArrayEncoding.Base64,m.StringArrayEncoding.Rc4]),u("design:type",Object)],v.prototype,"stringArrayEncoding",void 0),s([p.IsNumber(),p.Min(0),p.Max(1),u("design:type",Number)],v.prototype,"stringArrayThreshold",void 0),s([p.IsIn([h.ObfuscationTarget.Browser,h.ObfuscationTarget.BrowserNoEval,h.ObfuscationTarget.Node]),u("design:type",String)],v.prototype,"target",void 0),s([p.IsBoolean(),u("design:type",Boolean)],v.prototype,"transformObjectKeys",void 0),s([p.IsBoolean(),u("design:type",Boolean)],v.prototype,"unicodeEscapeSequence",void 0),v=r=s([l.injectable(),d(0,l.inject(c.ServiceIdentifiers.TInputOptions)),d(1,l.inject(c.ServiceIdentifiers.IOptionsNormalizer)),u("design:paramtypes",[Object,Object])],v),t.Options=v},function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0});var i=n(46),o=n(90),a=n(40);r(n(40)),r(n(314)),r(n(91)),r(n(39)),r(n(90)),r(n(315)),r(n(46)),t.validate=function(e,t,n){return"string"==typeof e?a.getFromContainer(o.Validator).validate(e,t,n):a.getFromContainer(o.Validator).validate(e,t)},t.validateOrReject=function(e,t,n){return"string"==typeof e?a.getFromContainer(o.Validator).validateOrReject(e,t,n):a.getFromContainer(o.Validator).validateOrReject(e,t)},t.validateSync=function(e,t,n){return"string"==typeof e?a.getFromContainer(o.Validator).validateSync(e,t,n):a.getFromContainer(o.Validator).validateSync(e,t)},t.registerSchema=function(e){a.getFromContainer(i.MetadataStorage).addValidationSchema(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(65),i=n(39),o=function(){function e(){}return e.prototype.transform=function(e){var t=[];return Object.keys(e.properties).forEach(function(n){e.properties[n].forEach(function(o){if(!i.ValidationTypes.isValid(o.type))throw new Error("Validation schema "+e.name+"#"+n+" as incorrect type "+o.type);var a={message:o.message,groups:o.groups,always:o.always,each:o.each},s={type:o.type,target:e.name,propertyName:n,constraints:o.constraints,validationTypeOptions:o.options,validationOptions:a};t.push(new r.ValidationMetadata(s))})}),t},e}();t.ValidationSchemaToMetadataTransformer=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(91),i=n(46),o=n(40),a=n(39),s=n(254),u=function(){function e(e,t){this.validator=e,this.validatorOptions=t,this.awaitingPromises=[],this.ignoreAsyncValidations=!1,this.metadataStorage=o.getFromContainer(i.MetadataStorage)}return e.prototype.execute=function(e,t,n){var i=this;this.metadataStorage.hasValidationMetaData||console.warn("No metadata found. There is more than once class-validator version installed probably. You need to flatten your dependencies.");var o=this.validatorOptions?this.validatorOptions.groups:void 0,s=this.metadataStorage.getTargetValidationMetadatas(e.constructor,t,o),u=this.metadataStorage.groupByPropertyName(s);if(this.validatorOptions&&this.validatorOptions.forbidUnknownValues&&!s.length){var d=new r.ValidationError;return this.validatorOptions&&this.validatorOptions.validationError&&void 0!==this.validatorOptions.validationError.target&&!0!==this.validatorOptions.validationError.target||(d.target=e),d.value=void 0,d.property=void 0,d.children=[],d.constraints={unknownValue:"an unknown value was passed to the validate function"},void n.push(d)}this.validatorOptions&&this.validatorOptions.whitelist&&this.whitelist(e,u,n),Object.keys(u).forEach(function(t){var r=e[t],o=u[t].filter(function(e){return e.type===a.ValidationTypes.IS_DEFINED}),s=u[t].filter(function(e){return e.type!==a.ValidationTypes.IS_DEFINED&&e.type!==a.ValidationTypes.WHITELIST}),d=s.filter(function(e){return e.type===a.ValidationTypes.CUSTOM_VALIDATION}),l=s.filter(function(e){return e.type===a.ValidationTypes.NESTED_VALIDATION}),c=s.filter(function(e){return e.type===a.ValidationTypes.CONDITIONAL_VALIDATION}),p=i.generateValidationError(e,r,t);n.push(p),i.conditionalValidations(e,r,c)&&(i.defaultValidations(e,r,o,p.constraints),(null!==r&&void 0!==r||!i.validatorOptions||!0!==i.validatorOptions.skipMissingProperties)&&(i.defaultValidations(e,r,s,p.constraints),i.customValidations(e,r,d,p.constraints),i.nestedValidations(r,l,p.children),i.mapContexts(e,r,s,p)))})},e.prototype.whitelist=function(e,t,n){var r=[];Object.keys(e).forEach(function(e){t[e]&&0!==t[e].length||r.push(e)}),r.length>0&&(this.validatorOptions&&this.validatorOptions.forbidNonWhitelisted?r.forEach(function(t){var r;n.push({target:e,property:t,value:e[t],children:void 0,constraints:(r={},r[a.ValidationTypes.WHITELIST]="property "+t+" should not exist",r)})}):r.forEach(function(t){return delete e[t]}))},e.prototype.stripEmptyErrors=function(e){var t=this;return e.filter(function(e){if(e.children&&(e.children=t.stripEmptyErrors(e.children)),0===Object.keys(e.constraints).length){if(0===e.children.length)return!1;delete e.constraints}return!0})},e.prototype.generateValidationError=function(e,t,n){var i=new r.ValidationError;return this.validatorOptions&&this.validatorOptions.validationError&&void 0!==this.validatorOptions.validationError.target&&!0!==this.validatorOptions.validationError.target||(i.target=e),this.validatorOptions&&this.validatorOptions.validationError&&void 0!==this.validatorOptions.validationError.value&&!0!==this.validatorOptions.validationError.value||(i.value=t),i.property=n,i.children=[],i.constraints={},i},e.prototype.conditionalValidations=function(e,t,n){return n.map(function(n){return n.constraints[0](e,t)}).reduce(function(e,t){return e&&t},!0)},e.prototype.defaultValidations=function(e,t,n,r){var i=this;return n.filter(function(e){return e.each?t instanceof Array?!t.every(function(t){return i.validator.validateValueByMetadata(t,e)}):void 0:!i.validator.validateValueByMetadata(t,e)}).forEach(function(n){var o=i.createValidationError(e,t,n),a=o[0],s=o[1];r[a]=s})},e.prototype.customValidations=function(e,t,n,r){var a=this;n.forEach(function(n){o.getFromContainer(i.MetadataStorage).getTargetValidatorConstraints(n.constraintCls).forEach(function(i){if(!i.async||!a.ignoreAsyncValidations){var o={targetName:e.constructor?e.constructor.name:void 0,property:n.propertyName,object:e,value:t,constraints:n.constraints},s=i.instance.validate(t,o);if(s instanceof Promise){var u=s.then(function(o){if(!o){var s=a.createValidationError(e,t,n,i),u=s[0],d=s[1];r[u]=d}});a.awaitingPromises.push(u)}else if(!s){var d=a.createValidationError(e,t,n,i),l=d[0],c=d[1];r[l]=c}}})})},e.prototype.nestedValidations=function(e,t,n){var i=this;void 0!==e&&t.forEach(function(t){var o;if(t.type===a.ValidationTypes.NESTED_VALIDATION){var s="string"==typeof t.target?t.target:void 0;if(e instanceof Array)e.forEach(function(t,r){var o=i.generateValidationError(e,t,r.toString());n.push(o),i.execute(t,s,o.children)});else if(e instanceof Object)i.execute(e,s,n);else{var u=new r.ValidationError;u.value=e,u.property=t.propertyName,u.target=t.target;var d=i.createValidationError(t.target,e,t),l=d[0],c=d[1];u.constraints=((o={})[l]=c,o),n.push(u)}}})},e.prototype.mapContexts=function(e,t,n,r){var i=this;return n.forEach(function(e){if(e.context){var t=i.getConstraintType(e);r.constraints[t]&&(r.contexts||(r.contexts={}),r.contexts[t]=Object.assign(r.contexts[t]||{},e.context))}})},e.prototype.createValidationError=function(e,t,n,r){var i=e.constructor?e.constructor.name:void 0,o=this.getConstraintType(n,r),u={targetName:i,property:n.propertyName,object:e,value:t,constraints:n.constraints},d=n.message;return n.message||this.validatorOptions&&(!this.validatorOptions||this.validatorOptions.dismissDefaultMessages)||(r&&r.instance.defaultMessage instanceof Function&&(d=r.instance.defaultMessage(u)),d||(d=a.ValidationTypes.getMessage(o,n.each))),[o,s.ValidationUtils.replaceMessageSpecialTokens(d,u)]},e.prototype.getConstraintType=function(e,t){return t&&t.name?t.name:e.type},e}();t.ValidationExecutor=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){}return e.replaceMessageSpecialTokens=function(e,t){var n;return e instanceof Function?n=e(t):"string"==typeof e&&(n=e),n&&t.constraints instanceof Array&&t.constraints.forEach(function(e,t){n=n.replace(new RegExp("\\$constraint"+(t+1),"g"),e)}),n&&void 0!==t.value&&null!==t.value&&"string"==typeof t.value&&(n=n.replace(/\$value/g,t.value)),n&&(n=n.replace(/\$property/g,t.property)),n&&(n=n.replace(/\$target/g,t.targetName)),n},e}();t.ValidationUtils=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Ce(n(66)),i=Ce(n(92)),o=Ce(n(256)),a=Ce(n(257)),s=Ce(n(258)),u=Ce(n(259)),d=Ce(n(260)),l=Ce(n(261)),c=Ce(n(262)),p=Ce(n(263)),f=Ce(n(69)),h=Ce(n(264)),g=Ce(n(68)),m=Ce(n(265)),y=Ce(n(266)),b=Ce(n(267)),v=Ce(n(268)),C=Ce(n(269)),S=Ce(n(270)),N=Ce(n(271)),A=Ce(n(272)),_=Ce(n(95)),E=Ce(n(96)),I=Ce(n(273)),T=Ce(n(274)),D=Ce(n(275)),F=Ce(n(94)),M=Ce(n(276)),P=Ce(n(277)),R=Ce(n(97)),x=Ce(n(278)),O=Ce(n(279)),$=Ce(n(280)),w=Ce(n(281)),B=Ce(n(282)),k=Ce(n(283)),L=Ce(n(284)),j=Ce(n(285)),G=Ce(n(93)),V=Ce(n(286)),U=Ce(n(287)),H=Ce(n(288)),W=Ce(n(289)),z=Ce(n(290)),K=Ce(n(291)),J=Ce(n(292)),Y=Ce(n(293)),q=Ce(n(294)),Z=Ce(n(295)),X=Ce(n(296)),Q=Ce(n(297)),ee=Ce(n(298)),te=Ce(n(299)),ne=Ce(n(300)),re=Ce(n(301)),ie=Ce(n(302)),oe=Ce(n(303)),ae=Ce(n(304)),se=n(305),ue=Ce(se),de=Ce(n(98)),le=Ce(n(99)),ce=Ce(n(306)),pe=Ce(n(307)),fe=Ce(n(308)),he=Ce(n(309)),ge=Ce(n(310)),me=Ce(n(100)),ye=Ce(n(311)),be=Ce(n(312)),ve=Ce(n(67));function Ce(e){return e&&e.__esModule?e:{default:e}}var Se={version:"10.4.0",toDate:r.default,toFloat:i.default,toInt:o.default,toBoolean:a.default,equals:s.default,contains:u.default,matches:d.default,isEmail:l.default,isURL:c.default,isMACAddress:p.default,isIP:f.default,isIPRange:h.default,isFQDN:g.default,isBoolean:m.default,isAlpha:y.default,isAlphanumeric:b.default,isNumeric:v.default,isPort:C.default,isLowercase:S.default,isUppercase:N.default,isAscii:A.default,isFullWidth:_.default,isHalfWidth:E.default,isVariableWidth:I.default,isMultibyte:T.default,isSurrogatePair:D.default,isInt:F.default,isFloat:M.default,isDecimal:P.default,isHexadecimal:R.default,isDivisibleBy:x.default,isHexColor:O.default,isISRC:$.default,isMD5:w.default,isHash:B.default,isJSON:k.default,isEmpty:L.default,isLength:j.default,isByteLength:G.default,isUUID:V.default,isMongoId:U.default,isAfter:H.default,isBefore:W.default,isIn:z.default,isCreditCard:K.default,isISIN:J.default,isISBN:Y.default,isISSN:q.default,isMobilePhone:Z.default,isPostalCode:ue.default,isPostalCodeLocales:se.locales,isCurrency:X.default,isISO8601:Q.default,isRFC3339:ee.default,isISO31661Alpha2:te.default,isISO31661Alpha3:ne.default,isBase64:re.default,isDataURI:ie.default,isMimeType:oe.default,isLatLong:ae.default,ltrim:de.default,rtrim:le.default,trim:ce.default,escape:pe.default,unescape:fe.default,stripLow:he.default,whitelist:ge.default,blacklist:me.default,isWhitelisted:ye.default,normalizeEmail:be.default,toString:ve.default};t.default=Se,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,o.default)(e),parseInt(e,t||10)};var r,i=n(9),o=(r=i)&&r.__esModule?r:{default:r};e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,o.default)(e),t)return"1"===e||"true"===e;return"0"!==e&&"false"!==e&&""!==e};var r,i=n(9),o=(r=i)&&r.__esModule?r:{default:r};e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,o.default)(e),e===t};var r,i=n(9),o=(r=i)&&r.__esModule?r:{default:r};e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,r.default)(e),e.indexOf((0,i.default)(t))>=0};var r=o(n(9)),i=o(n(67));function o(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){(0,o.default)(e),"[object RegExp]"!==Object.prototype.toString.call(t)&&(t=new RegExp(t,n));return t.test(e)};var r,i=n(9),o=(r=i)&&r.__esModule?r:{default:r};e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,r.default)(e),(t=(0,i.default)(t,u)).require_display_name||t.allow_display_name){var n=e.match(d);if(n)e=n[1];else if(t.require_display_name)return!1}var s=e.split("@"),g=s.pop(),m=s.join("@"),y=g.toLowerCase();if("gmail.com"===y||"googlemail.com"===y){var b=(m=m.toLowerCase()).split("+")[0];if(!(0,o.default)(b.replace(".",""),{min:6,max:30}))return!1;for(var v=b.split("."),C=0;C$/i,l=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~]+$/i,c=/^[a-z\d]+$/,p=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f]))*$/i,f=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+$/i,h=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))*$/i;e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,r.default)(e),!e||e.length>=2083||/[\s<>]/.test(e))return!1;if(0===e.indexOf("mailto:"))return!1;t=(0,a.default)(t,u);var n=void 0,s=void 0,c=void 0,p=void 0,f=void 0,h=void 0,g=void 0,m=void 0;if(g=e.split("#"),e=g.shift(),g=e.split("?"),e=g.shift(),(g=e.split("://")).length>1){if(n=g.shift(),t.require_valid_protocol&&-1===t.protocols.indexOf(n))return!1}else{if(t.require_protocol)return!1;t.allow_protocol_relative_urls&&"//"===e.substr(0,2)&&(g[0]=e.substr(2))}if(""===(e=g.join("://")))return!1;if(g=e.split("/"),""===(e=g.shift())&&!t.require_host)return!0;if((g=e.split("@")).length>1&&(s=g.shift()).indexOf(":")>=0&&s.split(":").length>2)return!1;p=g.join("@"),h=null,m=null;var y=p.match(d);y?(c="",m=y[1],h=y[2]||null):(g=p.split(":"),c=g.shift(),g.length&&(h=g.join(":")));if(null!==h&&(f=parseInt(h,10),!/^[0-9]+$/.test(h)||f<=0||f>65535))return!1;if(!((0,o.default)(c)||(0,i.default)(c,t)||m&&(0,o.default)(m,6)))return!1;if(c=c||m,t.host_whitelist&&!l(c,t.host_whitelist))return!1;if(t.host_blacklist&&l(c,t.host_blacklist))return!1;return!0};var r=s(n(9)),i=s(n(68)),o=s(n(69)),a=s(n(41));function s(e){return e&&e.__esModule?e:{default:e}}var u={protocols:["http","https","ftp"],require_tld:!0,require_protocol:!1,require_host:!0,require_valid_protocol:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_protocol_relative_urls:!1},d=/^\[([^\]]+)\](?::([0-9]+))?$/;function l(e,t){for(var n=0;n1&&t[1].startsWith("0"))return!1;return(0,i.default)(t[0],4)&&t[1]<=32&&t[1]>=0};var r=o(n(9)),i=o(n(69));function o(e){return e&&e.__esModule?e:{default:e}}var a=/^\d{1,2}$/;e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),["true","false","1","0"].indexOf(e)>=0};var r,i=n(9),o=(r=i)&&r.__esModule?r:{default:r};e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en-US";if((0,o.default)(e),t in a.alpha)return a.alpha[t].test(e);throw new Error("Invalid locale '"+t+"'")};var r,i=n(9),o=(r=i)&&r.__esModule?r:{default:r},a=n(55);e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en-US";if((0,o.default)(e),t in a.alphanumeric)return a.alphanumeric[t].test(e);throw new Error("Invalid locale '"+t+"'")};var r,i=n(9),o=(r=i)&&r.__esModule?r:{default:r},a=n(55);e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),a.test(e)};var r,i=n(9),o=(r=i)&&r.__esModule?r:{default:r};var a=/^[+-]?([0-9]*[.])?[0-9]+$/;e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e,{min:0,max:65535})};var r,i=n(94),o=(r=i)&&r.__esModule?r:{default:r};e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),e===e.toLowerCase()};var r,i=n(9),o=(r=i)&&r.__esModule?r:{default:r};e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),e===e.toUpperCase()};var r,i=n(9),o=(r=i)&&r.__esModule?r:{default:r};e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),a.test(e)};var r,i=n(9),o=(r=i)&&r.__esModule?r:{default:r};var a=/^[\x00-\x7F]+$/;e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),a.fullWidth.test(e)&&s.halfWidth.test(e)};var r,i=n(9),o=(r=i)&&r.__esModule?r:{default:r},a=n(95),s=n(96);e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),a.test(e)};var r,i=n(9),o=(r=i)&&r.__esModule?r:{default:r};var a=/[^\x00-\x7F]/;e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),a.test(e)};var r,i=n(9),o=(r=i)&&r.__esModule?r:{default:r};var a=/[\uD800-\uDBFF][\uDC00-\uDFFF]/;e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,o.default)(e),t=t||{};var n=new RegExp("^(?:[-+])?(?:[0-9]+)?(?:\\"+(t.locale?a.decimal[t.locale]:".")+"[0-9]*)?(?:[eE][\\+\\-]?(?:[0-9]+))?$");if(""===e||"."===e||"-"===e||"+"===e)return!1;var r=parseFloat(e.replace(",","."));return n.test(e)&&(!t.hasOwnProperty("min")||r>=t.min)&&(!t.hasOwnProperty("max")||r<=t.max)&&(!t.hasOwnProperty("lt")||rt.gt)};var r,i=n(9),o=(r=i)&&r.__esModule?r:{default:r},a=n(55);e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,i.default)(e),(t=(0,r.default)(t,s)).locale in o.decimal)return!u.includes(e.replace(/ /g,""))&&function(e){return new RegExp("^[-+]?([0-9]+)?(\\"+o.decimal[e.locale]+"[0-9]{"+e.decimal_digits+"})"+(e.force_decimal?"":"?")+"$")}(t).test(e);throw new Error("Invalid locale '"+t.locale+"'")};var r=a(n(41)),i=a(n(9)),o=n(55);function a(e){return e&&e.__esModule?e:{default:e}}var s={force_decimal:!1,decimal_digits:"1,",locale:"en-US"},u=["","-","+"];e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,r.default)(e),(0,i.default)(e)%parseInt(t,10)==0};var r=o(n(9)),i=o(n(92));function o(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),a.test(e)};var r,i=n(9),o=(r=i)&&r.__esModule?r:{default:r};var a=/^#?([0-9A-F]{3}|[0-9A-F]{6})$/i;e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),a.test(e)};var r,i=n(9),o=(r=i)&&r.__esModule?r:{default:r};var a=/^[A-Z]{2}[0-9A-Z]{3}\d{2}\d{5}$/;e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),a.test(e)};var r,i=n(9),o=(r=i)&&r.__esModule?r:{default:r};var a=/^[a-f0-9]{32}$/;e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,o.default)(e),new RegExp("^[a-f0-9]{"+a[t]+"}$").test(e)};var r,i=n(9),o=(r=i)&&r.__esModule?r:{default:r};var a={md5:32,md4:32,sha1:40,sha256:64,sha384:96,sha512:128,ripemd128:32,ripemd160:40,tiger128:32,tiger160:40,tiger192:48,crc32:8,crc32b:8};e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.default=function(e){(0,a.default)(e);try{var t=JSON.parse(e);return!!t&&"object"===(void 0===t?"undefined":r(t))}catch(e){}return!1};var i,o=n(9),a=(i=o)&&i.__esModule?i:{default:i};e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),0===e.length};var r,i=n(9),o=(r=i)&&r.__esModule?r:{default:r};e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.default=function(e,t){(0,a.default)(e);var n=void 0,i=void 0;"object"===(void 0===t?"undefined":r(t))?(n=t.min||0,i=t.max):(n=arguments[1],i=arguments[2]);var o=e.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g)||[],s=e.length-o.length;return s>=n&&(void 0===i||s<=i)};var i,o=n(9),a=(i=o)&&i.__esModule?i:{default:i};e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"all";(0,o.default)(e);var n=a[t];return n&&n.test(e)};var r,i=n(9),o=(r=i)&&r.__esModule?r:{default:r};var a={3:/^[0-9A-F]{8}-[0-9A-F]{4}-3[0-9A-F]{3}-[0-9A-F]{4}-[0-9A-F]{12}$/i,4:/^[0-9A-F]{8}-[0-9A-F]{4}-4[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,5:/^[0-9A-F]{8}-[0-9A-F]{4}-5[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,all:/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i};e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e),(0,i.default)(e)&&24===e.length};var r=o(n(9)),i=o(n(97));function o(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:String(new Date);(0,r.default)(e);var n=(0,i.default)(t),o=(0,i.default)(e);return!!(o&&n&&o>n)};var r=o(n(9)),i=o(n(66));function o(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:String(new Date);(0,r.default)(e);var n=(0,i.default)(t),o=(0,i.default)(e);return!!(o&&n&&o=0}if("object"===(void 0===t?"undefined":r(t)))return t.hasOwnProperty(e);if(t&&"function"==typeof t.indexOf)return t.indexOf(e)>=0;return!1};var i=a(n(9)),o=a(n(67));function a(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,o.default)(e);var t=e.replace(/[- ]+/g,"");if(!a.test(t))return!1;for(var n=0,r=void 0,i=void 0,s=void 0,u=t.length-1;u>=0;u--)r=t.substring(u,u+1),i=parseInt(r,10),n+=s&&(i*=2)>=10?i%10+1:i,s=!s;return!(n%10!=0||!t)};var r,i=n(9),o=(r=i)&&r.__esModule?r:{default:r};var a=/^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|(222[1-9]|22[3-9][0-9]|2[3-6][0-9]{2}|27[01][0-9]|2720)[0-9]{12}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11}|6[27][0-9]{14})$/;e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if((0,o.default)(e),!a.test(e))return!1;for(var t=e.replace(/[A-Z]/g,function(e){return parseInt(e,36)}),n=0,r=void 0,i=void 0,s=!0,u=t.length-2;u>=0;u--)r=t.substring(u,u+1),i=parseInt(r,10),n+=s&&(i*=2)>=10?i+1:i,s=!s;return parseInt(e.substr(e.length-1),10)===(1e4-n)%10};var r,i=n(9),o=(r=i)&&r.__esModule?r:{default:r};var a=/^[A-Z]{2}[0-9A-Z]{9}[0-9]$/;e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";(0,o.default)(t);n=String(n);if(!n)return e(t,10)||e(t,13);var r=t.replace(/[\s-]+/g,"");var i=0;var d=void 0;if("10"===n){if(!a.test(r))return!1;for(d=0;d<9;d++)i+=(d+1)*r.charAt(d);if("X"===r.charAt(9)?i+=100:i+=10*r.charAt(9),i%11==0)return!!r}else if("13"===n){if(!s.test(r))return!1;for(d=0;d<12;d++)i+=u[d%2]*r.charAt(d);if(r.charAt(12)-(10-i%10)%10==0)return!!r}return!1};var r,i=n(9),o=(r=i)&&r.__esModule?r:{default:r};var a=/^(?:[0-9]{9}X|[0-9]{10})$/,s=/^(?:[0-9]{13})$/,u=[1,3];e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,o.default)(e);var n=a;if(n=t.require_hyphen?n.replace("?",""):n,!(n=t.case_sensitive?new RegExp(n):new RegExp(n,"i")).test(e))return!1;for(var r=e.replace("-","").toUpperCase(),i=0,s=0;s/g,">").replace(/\//g,"/").replace(/\\/g,"\").replace(/`/g,"`")};var r,i=n(9),o=(r=i)&&r.__esModule?r:{default:r};e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),e.replace(/&/g,"&").replace(/"/g,'"').replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">").replace(///g,"/").replace(/\/g,"\\").replace(/`/g,"`")};var r,i=n(9),o=(r=i)&&r.__esModule?r:{default:r};e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,r.default)(e);var n=t?"\\x00-\\x09\\x0B\\x0C\\x0E-\\x1F\\x7F":"\\x00-\\x1F\\x7F";return(0,i.default)(e,n)};var r=o(n(9)),i=o(n(100));function o(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,o.default)(e),e.replace(new RegExp("[^"+t+"]+","g"),"")};var r,i=n(9),o=(r=i)&&r.__esModule?r:{default:r};e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,o.default)(e);for(var n=e.length-1;n>=0;n--)if(-1===t.indexOf(e[n]))return!1;return!0};var r,i=n(9),o=(r=i)&&r.__esModule?r:{default:r};e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){t=(0,o.default)(t,a);var n=e.split("@"),r=n.pop(),i=[n.join("@"),r];if(i[1]=i[1].toLowerCase(),"gmail.com"===i[1]||"googlemail.com"===i[1]){if(t.gmail_remove_subaddress&&(i[0]=i[0].split("+")[0]),t.gmail_remove_dots&&(i[0]=i[0].replace(/\.+/g,c)),!i[0].length)return!1;(t.all_lowercase||t.gmail_lowercase)&&(i[0]=i[0].toLowerCase()),i[1]=t.gmail_convert_googlemaildotcom?"gmail.com":i[1]}else if(s.indexOf(i[1])>=0){if(t.icloud_remove_subaddress&&(i[0]=i[0].split("+")[0]),!i[0].length)return!1;(t.all_lowercase||t.icloud_lowercase)&&(i[0]=i[0].toLowerCase())}else if(u.indexOf(i[1])>=0){if(t.outlookdotcom_remove_subaddress&&(i[0]=i[0].split("+")[0]),!i[0].length)return!1;(t.all_lowercase||t.outlookdotcom_lowercase)&&(i[0]=i[0].toLowerCase())}else if(d.indexOf(i[1])>=0){if(t.yahoo_remove_subaddress){var p=i[0].split("-");i[0]=p.length>1?p.slice(0,-1).join("-"):p[0]}if(!i[0].length)return!1;(t.all_lowercase||t.yahoo_lowercase)&&(i[0]=i[0].toLowerCase())}else l.indexOf(i[1])>=0?((t.all_lowercase||t.yandex_lowercase)&&(i[0]=i[0].toLowerCase()),i[1]="yandex.ru"):t.all_lowercase&&(i[0]=i[0].toLowerCase());return i.join("@")};var r,i=n(41),o=(r=i)&&r.__esModule?r:{default:r};var a={all_lowercase:!0,gmail_lowercase:!0,gmail_remove_dots:!0,gmail_remove_subaddress:!0,gmail_convert_googlemaildotcom:!0,outlookdotcom_lowercase:!0,outlookdotcom_remove_subaddress:!0,yahoo_lowercase:!0,yahoo_remove_subaddress:!0,yandex_lowercase:!0,icloud_lowercase:!0,icloud_remove_subaddress:!0},s=["icloud.com","me.com"],u=["hotmail.at","hotmail.be","hotmail.ca","hotmail.cl","hotmail.co.il","hotmail.co.nz","hotmail.co.th","hotmail.co.uk","hotmail.com","hotmail.com.ar","hotmail.com.au","hotmail.com.br","hotmail.com.gr","hotmail.com.mx","hotmail.com.pe","hotmail.com.tr","hotmail.com.vn","hotmail.cz","hotmail.de","hotmail.dk","hotmail.es","hotmail.fr","hotmail.hu","hotmail.id","hotmail.ie","hotmail.in","hotmail.it","hotmail.jp","hotmail.kr","hotmail.lv","hotmail.my","hotmail.ph","hotmail.pt","hotmail.sa","hotmail.sg","hotmail.sk","live.be","live.co.uk","live.com","live.com.ar","live.com.mx","live.de","live.es","live.eu","live.fr","live.it","live.nl","msn.com","outlook.at","outlook.be","outlook.cl","outlook.co.il","outlook.co.nz","outlook.co.th","outlook.com","outlook.com.ar","outlook.com.au","outlook.com.br","outlook.com.gr","outlook.com.pe","outlook.com.tr","outlook.com.vn","outlook.cz","outlook.de","outlook.dk","outlook.es","outlook.fr","outlook.hu","outlook.id","outlook.ie","outlook.in","outlook.it","outlook.jp","outlook.kr","outlook.lv","outlook.my","outlook.ph","outlook.pt","outlook.sa","outlook.sg","outlook.sk","passport.com"],d=["rocketmail.com","yahoo.ca","yahoo.co.uk","yahoo.com","yahoo.de","yahoo.fr","yahoo.in","yahoo.it","ymail.com"],l=["yandex.ru","yandex.ua","yandex.kz","yandex.com","yandex.by","ya.ru"];function c(e){return e.length>1?e:""}e.exports=t.default},function(module,exports,__webpack_require__){var require,require;module.exports=function(){var define,module,exports;return function e(t,n,r){function i(a,s){if(!n[a]){if(!t[a]){var u="function"==typeof require&&require;if(!s&&u)return require(a,!0);if(o)return o(a,!0);var d=new Error("Cannot find module '"+a+"'");throw d.code="MODULE_NOT_FOUND",d}var l=n[a]={exports:{}};t[a][0].call(l.exports,function(e){var n=t[a][1][e];return i(n||e)},l,l.exports,e,t,n,r)}return n[a].exports}for(var o="function"==typeof require&&require,a=0;a>>0),goog.uidCounter_=0,goog.getHashCode=goog.getUid,goog.removeHashCode=goog.removeUid,goog.cloneObject=function(e){var t=goog.typeOf(e);if("object"==t||"array"==t){if("function"==typeof e.clone)return e.clone();for(var n in t="array"==t?[]:{},e)t[n]=goog.cloneObject(e[n]);return t}return e},goog.bindNative_=function(e,t,n){return e.call.apply(e.bind,arguments)},goog.bindJs_=function(e,t,n){if(!e)throw Error();if(2Number(t[1]))&&b('(()=>{"use strict";class X{constructor(){if(new.target!=String)throw 1;this.x=42}}let q=Reflect.construct(X,[],String);if(q.x!=42||!(q instanceof String))throw 1;for(const a of[2,3]){if(a==2)continue;function f(z={a}){let a=0;return z.a}{function f(){return 0;}}return f()==3}})()')}),a("es6-impl",function(){return!0}),a("es7",function(){return b("2 ** 2 == 4")}),a("es8",function(){return b("async () => 1, true")}),a("es9",function(){return b("({...rest} = {}), true")}),a("es_next",function(){return!1}),c},goog.Transpiler.prototype.needsTranspile=function(e,t){if("always"==goog.TRANSPILE)return!0;if("never"==goog.TRANSPILE)return!1;if(this.requiresTranspilation_||(this.requiresTranspilation_=this.createRequiresTranspilation_()),e in this.requiresTranspilation_)return!!this.requiresTranspilation_[e]||!(!goog.inHtmlDocument_()||"es6"!=t||"noModule"in goog.global.document.createElement("script"));throw Error("Unknown language mode: "+e)},goog.Transpiler.prototype.transpile=function(e,t){return goog.transpile_(e,t)},goog.transpiler_=new goog.Transpiler,goog.protectScriptTag_=function(e){return e.replace(/<\/(SCRIPT)/gi,"\\x3c/$1")},goog.DebugLoader_=function(){this.dependencies_={},this.idToPath_={},this.written_={},this.loadingDeps_=[],this.depsToLoad_=[],this.paused_=!1,this.factory_=new goog.DependencyFactory(goog.transpiler_),this.deferredCallbacks_={},this.deferredQueue_=[]},goog.DebugLoader_.prototype.bootstrap=function(e,t){function n(){r&&(goog.global.setTimeout(r,0),r=null)}var r=t;if(e.length){for(var i=[],o=0;o<\/script>")}else{var i=t.createElement("script");i.defer=goog.Dependency.defer_,i.async=!1,i.type="text/javascript",(r=goog.getScriptNonce())&&i.setAttribute("nonce",r),goog.DebugLoader_.IS_OLD_IE_?(e.pause(),i.onreadystatechange=function(){"loaded"!=i.readyState&&"complete"!=i.readyState||(e.loaded(),e.resume())}):i.onload=function(){i.onload=null,e.loaded()},i.src=this.path,t.head.appendChild(i)}}else goog.logToConsole_("Cannot use default debug loader outside of HTML documents."),"deps.js"==this.relativePath?(goog.logToConsole_("Consider setting CLOSURE_IMPORT_SCRIPT before loading base.js, or seting CLOSURE_NO_DEPS to true."),e.loaded()):e.pause()},goog.Es6ModuleDependency=function(e,t,n,r,i){goog.Dependency.call(this,e,t,n,r,i)},goog.inherits(goog.Es6ModuleDependency,goog.Dependency),goog.Es6ModuleDependency.prototype.load=function(e){if(goog.global.CLOSURE_IMPORT_SCRIPT)goog.global.CLOSURE_IMPORT_SCRIPT(this.path)?e.loaded():e.pause();else if(goog.inHtmlDocument_()){var t=goog.global.document,n=this;if(goog.isDocumentLoading_()){var r=function(e,n){n?t.write('