immosquare-cleaner 0.1.34 → 0.1.35

Sign up to get free protection for your applications and to get access to all the features.
Files changed (191) hide show
  1. checksums.yaml +4 -4
  2. data/lib/immosquare-cleaner/version.rb +1 -1
  3. data/lib/immosquare-cleaner.rb +2 -2
  4. data/linters/eslint.config.mjs +30 -0
  5. data/linters/rubocop-3.2.2.yml +2 -0
  6. data/node_modules/function-bind/README.md +27 -25
  7. data/node_modules/function-bind/implementation.js +12 -44
  8. data/node_modules/function-bind/package.json +14 -38
  9. data/node_modules/is-core-module/CHANGELOG.md +0 -7
  10. data/node_modules/is-core-module/index.js +2 -2
  11. data/node_modules/is-core-module/package.json +4 -4
  12. data/package.json +2 -4
  13. metadata +3 -180
  14. data/linters/eslintrc.json +0 -57
  15. data/node_modules/.bin/rimraf +0 -1
  16. data/node_modules/eslint-config-airbnb-base/CHANGELOG.md +0 -374
  17. data/node_modules/eslint-config-airbnb-base/LICENSE.md +0 -21
  18. data/node_modules/eslint-config-airbnb-base/README.md +0 -112
  19. data/node_modules/eslint-config-airbnb-base/index.js +0 -17
  20. data/node_modules/eslint-config-airbnb-base/legacy.js +0 -34
  21. data/node_modules/eslint-config-airbnb-base/node_modules/semver/LICENSE +0 -15
  22. data/node_modules/eslint-config-airbnb-base/node_modules/semver/README.md +0 -443
  23. data/node_modules/eslint-config-airbnb-base/node_modules/semver/bin/semver.js +0 -174
  24. data/node_modules/eslint-config-airbnb-base/node_modules/semver/package.json +0 -38
  25. data/node_modules/eslint-config-airbnb-base/node_modules/semver/range.bnf +0 -16
  26. data/node_modules/eslint-config-airbnb-base/node_modules/semver/semver.js +0 -1643
  27. data/node_modules/eslint-config-airbnb-base/package.json +0 -95
  28. data/node_modules/eslint-config-airbnb-base/rules/best-practices.js +0 -408
  29. data/node_modules/eslint-config-airbnb-base/rules/errors.js +0 -179
  30. data/node_modules/eslint-config-airbnb-base/rules/es6.js +0 -185
  31. data/node_modules/eslint-config-airbnb-base/rules/imports.js +0 -273
  32. data/node_modules/eslint-config-airbnb-base/rules/node.js +0 -43
  33. data/node_modules/eslint-config-airbnb-base/rules/strict.js +0 -6
  34. data/node_modules/eslint-config-airbnb-base/rules/style.js +0 -529
  35. data/node_modules/eslint-config-airbnb-base/rules/variables.js +0 -56
  36. data/node_modules/eslint-config-airbnb-base/test/requires.js +0 -13
  37. data/node_modules/eslint-config-airbnb-base/test/test-base.js +0 -32
  38. data/node_modules/eslint-config-airbnb-base/whitespace-async.js +0 -96
  39. data/node_modules/eslint-config-airbnb-base/whitespace.js +0 -102
  40. data/node_modules/eslint-plugin-import/CHANGELOG.md +0 -1925
  41. data/node_modules/eslint-plugin-import/CONTRIBUTING.md +0 -84
  42. data/node_modules/eslint-plugin-import/LICENSE +0 -22
  43. data/node_modules/eslint-plugin-import/README.md +0 -500
  44. data/node_modules/eslint-plugin-import/RELEASE.md +0 -54
  45. data/node_modules/eslint-plugin-import/SECURITY.md +0 -11
  46. data/node_modules/eslint-plugin-import/config/electron.js +0 -8
  47. data/node_modules/eslint-plugin-import/config/errors.js +0 -14
  48. data/node_modules/eslint-plugin-import/config/react-native.js +0 -13
  49. data/node_modules/eslint-plugin-import/config/react.js +0 -18
  50. data/node_modules/eslint-plugin-import/config/recommended.js +0 -28
  51. data/node_modules/eslint-plugin-import/config/stage-0.js +0 -12
  52. data/node_modules/eslint-plugin-import/config/typescript.js +0 -34
  53. data/node_modules/eslint-plugin-import/config/warnings.js +0 -12
  54. data/node_modules/eslint-plugin-import/docs/rules/consistent-type-specifier-style.md +0 -91
  55. data/node_modules/eslint-plugin-import/docs/rules/default.md +0 -72
  56. data/node_modules/eslint-plugin-import/docs/rules/dynamic-import-chunkname.md +0 -92
  57. data/node_modules/eslint-plugin-import/docs/rules/export.md +0 -37
  58. data/node_modules/eslint-plugin-import/docs/rules/exports-last.md +0 -51
  59. data/node_modules/eslint-plugin-import/docs/rules/extensions.md +0 -174
  60. data/node_modules/eslint-plugin-import/docs/rules/first.md +0 -75
  61. data/node_modules/eslint-plugin-import/docs/rules/group-exports.md +0 -118
  62. data/node_modules/eslint-plugin-import/docs/rules/imports-first.md +0 -9
  63. data/node_modules/eslint-plugin-import/docs/rules/max-dependencies.md +0 -70
  64. data/node_modules/eslint-plugin-import/docs/rules/named.md +0 -102
  65. data/node_modules/eslint-plugin-import/docs/rules/namespace.md +0 -106
  66. data/node_modules/eslint-plugin-import/docs/rules/newline-after-import.md +0 -167
  67. data/node_modules/eslint-plugin-import/docs/rules/no-absolute-path.md +0 -54
  68. data/node_modules/eslint-plugin-import/docs/rules/no-amd.md +0 -37
  69. data/node_modules/eslint-plugin-import/docs/rules/no-anonymous-default-export.md +0 -83
  70. data/node_modules/eslint-plugin-import/docs/rules/no-commonjs.md +0 -96
  71. data/node_modules/eslint-plugin-import/docs/rules/no-cycle.md +0 -111
  72. data/node_modules/eslint-plugin-import/docs/rules/no-default-export.md +0 -65
  73. data/node_modules/eslint-plugin-import/docs/rules/no-deprecated.md +0 -62
  74. data/node_modules/eslint-plugin-import/docs/rules/no-duplicates.md +0 -109
  75. data/node_modules/eslint-plugin-import/docs/rules/no-dynamic-require.md +0 -25
  76. data/node_modules/eslint-plugin-import/docs/rules/no-empty-named-blocks.md +0 -49
  77. data/node_modules/eslint-plugin-import/docs/rules/no-extraneous-dependencies.md +0 -139
  78. data/node_modules/eslint-plugin-import/docs/rules/no-import-module-exports.md +0 -81
  79. data/node_modules/eslint-plugin-import/docs/rules/no-internal-modules.md +0 -136
  80. data/node_modules/eslint-plugin-import/docs/rules/no-mutable-exports.md +0 -54
  81. data/node_modules/eslint-plugin-import/docs/rules/no-named-as-default-member.md +0 -52
  82. data/node_modules/eslint-plugin-import/docs/rules/no-named-as-default.md +0 -53
  83. data/node_modules/eslint-plugin-import/docs/rules/no-named-default.md +0 -36
  84. data/node_modules/eslint-plugin-import/docs/rules/no-named-export.md +0 -79
  85. data/node_modules/eslint-plugin-import/docs/rules/no-namespace.md +0 -44
  86. data/node_modules/eslint-plugin-import/docs/rules/no-nodejs-modules.md +0 -42
  87. data/node_modules/eslint-plugin-import/docs/rules/no-relative-packages.md +0 -70
  88. data/node_modules/eslint-plugin-import/docs/rules/no-relative-parent-imports.md +0 -123
  89. data/node_modules/eslint-plugin-import/docs/rules/no-restricted-paths.md +0 -198
  90. data/node_modules/eslint-plugin-import/docs/rules/no-self-import.md +0 -32
  91. data/node_modules/eslint-plugin-import/docs/rules/no-unassigned-import.md +0 -60
  92. data/node_modules/eslint-plugin-import/docs/rules/no-unresolved.md +0 -110
  93. data/node_modules/eslint-plugin-import/docs/rules/no-unused-modules.md +0 -125
  94. data/node_modules/eslint-plugin-import/docs/rules/no-useless-path-segments.md +0 -85
  95. data/node_modules/eslint-plugin-import/docs/rules/no-webpack-loader-syntax.md +0 -39
  96. data/node_modules/eslint-plugin-import/docs/rules/order.md +0 -365
  97. data/node_modules/eslint-plugin-import/docs/rules/prefer-default-export.md +0 -185
  98. data/node_modules/eslint-plugin-import/docs/rules/unambiguous.md +0 -57
  99. data/node_modules/eslint-plugin-import/lib/ExportMap.js +0 -856
  100. data/node_modules/eslint-plugin-import/lib/core/importType.js +0 -129
  101. data/node_modules/eslint-plugin-import/lib/core/packagePath.js +0 -22
  102. data/node_modules/eslint-plugin-import/lib/core/staticRequire.js +0 -11
  103. data/node_modules/eslint-plugin-import/lib/docsUrl.js +0 -8
  104. data/node_modules/eslint-plugin-import/lib/importDeclaration.js +0 -5
  105. data/node_modules/eslint-plugin-import/lib/index.js +0 -71
  106. data/node_modules/eslint-plugin-import/lib/rules/consistent-type-specifier-style.js +0 -221
  107. data/node_modules/eslint-plugin-import/lib/rules/default.js +0 -40
  108. data/node_modules/eslint-plugin-import/lib/rules/dynamic-import-chunkname.js +0 -120
  109. data/node_modules/eslint-plugin-import/lib/rules/export.js +0 -250
  110. data/node_modules/eslint-plugin-import/lib/rules/exports-last.js +0 -40
  111. data/node_modules/eslint-plugin-import/lib/rules/extensions.js +0 -193
  112. data/node_modules/eslint-plugin-import/lib/rules/first.js +0 -144
  113. data/node_modules/eslint-plugin-import/lib/rules/group-exports.js +0 -155
  114. data/node_modules/eslint-plugin-import/lib/rules/imports-first.js +0 -16
  115. data/node_modules/eslint-plugin-import/lib/rules/max-dependencies.js +0 -60
  116. data/node_modules/eslint-plugin-import/lib/rules/named.js +0 -143
  117. data/node_modules/eslint-plugin-import/lib/rules/namespace.js +0 -218
  118. data/node_modules/eslint-plugin-import/lib/rules/newline-after-import.js +0 -237
  119. data/node_modules/eslint-plugin-import/lib/rules/no-absolute-path.js +0 -40
  120. data/node_modules/eslint-plugin-import/lib/rules/no-amd.js +0 -47
  121. data/node_modules/eslint-plugin-import/lib/rules/no-anonymous-default-export.js +0 -103
  122. data/node_modules/eslint-plugin-import/lib/rules/no-commonjs.js +0 -141
  123. data/node_modules/eslint-plugin-import/lib/rules/no-cycle.js +0 -158
  124. data/node_modules/eslint-plugin-import/lib/rules/no-default-export.js +0 -43
  125. data/node_modules/eslint-plugin-import/lib/rules/no-deprecated.js +0 -138
  126. data/node_modules/eslint-plugin-import/lib/rules/no-duplicates.js +0 -354
  127. data/node_modules/eslint-plugin-import/lib/rules/no-dynamic-require.js +0 -77
  128. data/node_modules/eslint-plugin-import/lib/rules/no-empty-named-blocks.js +0 -105
  129. data/node_modules/eslint-plugin-import/lib/rules/no-extraneous-dependencies.js +0 -301
  130. data/node_modules/eslint-plugin-import/lib/rules/no-import-module-exports.js +0 -85
  131. data/node_modules/eslint-plugin-import/lib/rules/no-internal-modules.js +0 -144
  132. data/node_modules/eslint-plugin-import/lib/rules/no-mutable-exports.js +0 -59
  133. data/node_modules/eslint-plugin-import/lib/rules/no-named-as-default-member.js +0 -96
  134. data/node_modules/eslint-plugin-import/lib/rules/no-named-as-default.js +0 -45
  135. data/node_modules/eslint-plugin-import/lib/rules/no-named-default.js +0 -31
  136. data/node_modules/eslint-plugin-import/lib/rules/no-named-export.js +0 -39
  137. data/node_modules/eslint-plugin-import/lib/rules/no-namespace.js +0 -175
  138. data/node_modules/eslint-plugin-import/lib/rules/no-nodejs-modules.js +0 -44
  139. data/node_modules/eslint-plugin-import/lib/rules/no-relative-packages.js +0 -71
  140. data/node_modules/eslint-plugin-import/lib/rules/no-relative-parent-imports.js +0 -48
  141. data/node_modules/eslint-plugin-import/lib/rules/no-restricted-paths.js +0 -245
  142. data/node_modules/eslint-plugin-import/lib/rules/no-self-import.js +0 -39
  143. data/node_modules/eslint-plugin-import/lib/rules/no-unassigned-import.js +0 -79
  144. data/node_modules/eslint-plugin-import/lib/rules/no-unresolved.js +0 -60
  145. data/node_modules/eslint-plugin-import/lib/rules/no-unused-modules.js +0 -945
  146. data/node_modules/eslint-plugin-import/lib/rules/no-useless-path-segments.js +0 -147
  147. data/node_modules/eslint-plugin-import/lib/rules/no-webpack-loader-syntax.js +0 -26
  148. data/node_modules/eslint-plugin-import/lib/rules/order.js +0 -785
  149. data/node_modules/eslint-plugin-import/lib/rules/prefer-default-export.js +0 -116
  150. data/node_modules/eslint-plugin-import/lib/rules/unambiguous.js +0 -38
  151. data/node_modules/eslint-plugin-import/memo-parser/LICENSE +0 -22
  152. data/node_modules/eslint-plugin-import/memo-parser/README.md +0 -21
  153. data/node_modules/eslint-plugin-import/memo-parser/index.js +0 -41
  154. data/node_modules/eslint-plugin-import/node_modules/debug/CHANGELOG.md +0 -395
  155. data/node_modules/eslint-plugin-import/node_modules/debug/LICENSE +0 -19
  156. data/node_modules/eslint-plugin-import/node_modules/debug/README.md +0 -437
  157. data/node_modules/eslint-plugin-import/node_modules/debug/node.js +0 -1
  158. data/node_modules/eslint-plugin-import/node_modules/debug/node_modules/ms/index.js +0 -162
  159. data/node_modules/eslint-plugin-import/node_modules/debug/node_modules/ms/license.md +0 -21
  160. data/node_modules/eslint-plugin-import/node_modules/debug/node_modules/ms/package.json +0 -38
  161. data/node_modules/eslint-plugin-import/node_modules/debug/node_modules/ms/readme.md +0 -59
  162. data/node_modules/eslint-plugin-import/node_modules/debug/package.json +0 -51
  163. data/node_modules/eslint-plugin-import/node_modules/debug/src/browser.js +0 -180
  164. data/node_modules/eslint-plugin-import/node_modules/debug/src/common.js +0 -249
  165. data/node_modules/eslint-plugin-import/node_modules/debug/src/index.js +0 -12
  166. data/node_modules/eslint-plugin-import/node_modules/debug/src/node.js +0 -177
  167. data/node_modules/eslint-plugin-import/node_modules/doctrine/CHANGELOG.md +0 -94
  168. data/node_modules/eslint-plugin-import/node_modules/doctrine/LICENSE +0 -177
  169. data/node_modules/eslint-plugin-import/node_modules/doctrine/LICENSE.closure-compiler +0 -202
  170. data/node_modules/eslint-plugin-import/node_modules/doctrine/LICENSE.esprima +0 -19
  171. data/node_modules/eslint-plugin-import/node_modules/doctrine/README.md +0 -165
  172. data/node_modules/eslint-plugin-import/node_modules/doctrine/lib/doctrine.js +0 -899
  173. data/node_modules/eslint-plugin-import/node_modules/doctrine/lib/typed.js +0 -1305
  174. data/node_modules/eslint-plugin-import/node_modules/doctrine/lib/utility.js +0 -35
  175. data/node_modules/eslint-plugin-import/node_modules/doctrine/package.json +0 -57
  176. data/node_modules/eslint-plugin-import/node_modules/minimatch/LICENSE +0 -15
  177. data/node_modules/eslint-plugin-import/node_modules/minimatch/README.md +0 -230
  178. data/node_modules/eslint-plugin-import/node_modules/minimatch/minimatch.js +0 -947
  179. data/node_modules/eslint-plugin-import/node_modules/minimatch/node_modules/brace-expansion/LICENSE +0 -21
  180. data/node_modules/eslint-plugin-import/node_modules/minimatch/node_modules/brace-expansion/README.md +0 -129
  181. data/node_modules/eslint-plugin-import/node_modules/minimatch/node_modules/brace-expansion/index.js +0 -201
  182. data/node_modules/eslint-plugin-import/node_modules/minimatch/node_modules/brace-expansion/package.json +0 -47
  183. data/node_modules/eslint-plugin-import/node_modules/minimatch/package.json +0 -33
  184. data/node_modules/eslint-plugin-import/node_modules/semver/LICENSE +0 -15
  185. data/node_modules/eslint-plugin-import/node_modules/semver/README.md +0 -443
  186. data/node_modules/eslint-plugin-import/node_modules/semver/bin/semver.js +0 -174
  187. data/node_modules/eslint-plugin-import/node_modules/semver/package.json +0 -38
  188. data/node_modules/eslint-plugin-import/node_modules/semver/range.bnf +0 -16
  189. data/node_modules/eslint-plugin-import/node_modules/semver/semver.js +0 -1643
  190. data/node_modules/eslint-plugin-import/package.json +0 -124
  191. data/node_modules/function-bind/CHANGELOG.md +0 -136
@@ -1,785 +0,0 @@
1
- 'use strict';var _slicedToArray = function () {function sliceIterator(arr, i) {var _arr = [];var _n = true;var _d = false;var _e = undefined;try {for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {_arr.push(_s.value);if (i && _arr.length === i) break;}} catch (err) {_d = true;_e = err;} finally {try {if (!_n && _i["return"]) _i["return"]();} finally {if (_d) throw _e;}}return _arr;}return function (arr, i) {if (Array.isArray(arr)) {return arr;} else if (Symbol.iterator in Object(arr)) {return sliceIterator(arr, i);} else {throw new TypeError("Invalid attempt to destructure non-iterable instance");}};}();
2
-
3
- var _minimatch = require('minimatch');var _minimatch2 = _interopRequireDefault(_minimatch);
4
- var _arrayIncludes = require('array-includes');var _arrayIncludes2 = _interopRequireDefault(_arrayIncludes);
5
- var _object = require('object.groupby');var _object2 = _interopRequireDefault(_object);
6
-
7
- var _importType = require('../core/importType');var _importType2 = _interopRequireDefault(_importType);
8
- var _staticRequire = require('../core/staticRequire');var _staticRequire2 = _interopRequireDefault(_staticRequire);
9
- var _docsUrl = require('../docsUrl');var _docsUrl2 = _interopRequireDefault(_docsUrl);function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { 'default': obj };}
10
-
11
- var defaultGroups = ['builtin', 'external', 'parent', 'sibling', 'index'];
12
-
13
- // REPORTING AND FIXING
14
-
15
- function reverse(array) {
16
- return array.map(function (v) {
17
- return Object.assign({}, v, { rank: -v.rank });
18
- }).reverse();
19
- }
20
-
21
- function getTokensOrCommentsAfter(sourceCode, node, count) {
22
- var currentNodeOrToken = node;
23
- var result = [];
24
- for (var i = 0; i < count; i++) {
25
- currentNodeOrToken = sourceCode.getTokenOrCommentAfter(currentNodeOrToken);
26
- if (currentNodeOrToken == null) {
27
- break;
28
- }
29
- result.push(currentNodeOrToken);
30
- }
31
- return result;
32
- }
33
-
34
- function getTokensOrCommentsBefore(sourceCode, node, count) {
35
- var currentNodeOrToken = node;
36
- var result = [];
37
- for (var i = 0; i < count; i++) {
38
- currentNodeOrToken = sourceCode.getTokenOrCommentBefore(currentNodeOrToken);
39
- if (currentNodeOrToken == null) {
40
- break;
41
- }
42
- result.push(currentNodeOrToken);
43
- }
44
- return result.reverse();
45
- }
46
-
47
- function takeTokensAfterWhile(sourceCode, node, condition) {
48
- var tokens = getTokensOrCommentsAfter(sourceCode, node, 100);
49
- var result = [];
50
- for (var i = 0; i < tokens.length; i++) {
51
- if (condition(tokens[i])) {
52
- result.push(tokens[i]);
53
- } else {
54
- break;
55
- }
56
- }
57
- return result;
58
- }
59
-
60
- function takeTokensBeforeWhile(sourceCode, node, condition) {
61
- var tokens = getTokensOrCommentsBefore(sourceCode, node, 100);
62
- var result = [];
63
- for (var i = tokens.length - 1; i >= 0; i--) {
64
- if (condition(tokens[i])) {
65
- result.push(tokens[i]);
66
- } else {
67
- break;
68
- }
69
- }
70
- return result.reverse();
71
- }
72
-
73
- function findOutOfOrder(imported) {
74
- if (imported.length === 0) {
75
- return [];
76
- }
77
- var maxSeenRankNode = imported[0];
78
- return imported.filter(function (importedModule) {
79
- var res = importedModule.rank < maxSeenRankNode.rank;
80
- if (maxSeenRankNode.rank < importedModule.rank) {
81
- maxSeenRankNode = importedModule;
82
- }
83
- return res;
84
- });
85
- }
86
-
87
- function findRootNode(node) {
88
- var parent = node;
89
- while (parent.parent != null && parent.parent.body == null) {
90
- parent = parent.parent;
91
- }
92
- return parent;
93
- }
94
-
95
- function findEndOfLineWithComments(sourceCode, node) {
96
- var tokensToEndOfLine = takeTokensAfterWhile(sourceCode, node, commentOnSameLineAs(node));
97
- var endOfTokens = tokensToEndOfLine.length > 0 ?
98
- tokensToEndOfLine[tokensToEndOfLine.length - 1].range[1] :
99
- node.range[1];
100
- var result = endOfTokens;
101
- for (var i = endOfTokens; i < sourceCode.text.length; i++) {
102
- if (sourceCode.text[i] === '\n') {
103
- result = i + 1;
104
- break;
105
- }
106
- if (sourceCode.text[i] !== ' ' && sourceCode.text[i] !== '\t' && sourceCode.text[i] !== '\r') {
107
- break;
108
- }
109
- result = i + 1;
110
- }
111
- return result;
112
- }
113
-
114
- function commentOnSameLineAs(node) {
115
- return function (token) {return (token.type === 'Block' || token.type === 'Line') &&
116
- token.loc.start.line === token.loc.end.line &&
117
- token.loc.end.line === node.loc.end.line;};
118
- }
119
-
120
- function findStartOfLineWithComments(sourceCode, node) {
121
- var tokensToEndOfLine = takeTokensBeforeWhile(sourceCode, node, commentOnSameLineAs(node));
122
- var startOfTokens = tokensToEndOfLine.length > 0 ? tokensToEndOfLine[0].range[0] : node.range[0];
123
- var result = startOfTokens;
124
- for (var i = startOfTokens - 1; i > 0; i--) {
125
- if (sourceCode.text[i] !== ' ' && sourceCode.text[i] !== '\t') {
126
- break;
127
- }
128
- result = i;
129
- }
130
- return result;
131
- }
132
-
133
- function isRequireExpression(expr) {
134
- return expr != null &&
135
- expr.type === 'CallExpression' &&
136
- expr.callee != null &&
137
- expr.callee.name === 'require' &&
138
- expr.arguments != null &&
139
- expr.arguments.length === 1 &&
140
- expr.arguments[0].type === 'Literal';
141
- }
142
-
143
- function isSupportedRequireModule(node) {
144
- if (node.type !== 'VariableDeclaration') {
145
- return false;
146
- }
147
- if (node.declarations.length !== 1) {
148
- return false;
149
- }
150
- var decl = node.declarations[0];
151
- var isPlainRequire = decl.id && (
152
- decl.id.type === 'Identifier' || decl.id.type === 'ObjectPattern') &&
153
- isRequireExpression(decl.init);
154
- var isRequireWithMemberExpression = decl.id && (
155
- decl.id.type === 'Identifier' || decl.id.type === 'ObjectPattern') &&
156
- decl.init != null &&
157
- decl.init.type === 'CallExpression' &&
158
- decl.init.callee != null &&
159
- decl.init.callee.type === 'MemberExpression' &&
160
- isRequireExpression(decl.init.callee.object);
161
- return isPlainRequire || isRequireWithMemberExpression;
162
- }
163
-
164
- function isPlainImportModule(node) {
165
- return node.type === 'ImportDeclaration' && node.specifiers != null && node.specifiers.length > 0;
166
- }
167
-
168
- function isPlainImportEquals(node) {
169
- return node.type === 'TSImportEqualsDeclaration' && node.moduleReference.expression;
170
- }
171
-
172
- function canCrossNodeWhileReorder(node) {
173
- return isSupportedRequireModule(node) || isPlainImportModule(node) || isPlainImportEquals(node);
174
- }
175
-
176
- function canReorderItems(firstNode, secondNode) {
177
- var parent = firstNode.parent;var _sort =
178
- [
179
- parent.body.indexOf(firstNode),
180
- parent.body.indexOf(secondNode)].
181
- sort(),_sort2 = _slicedToArray(_sort, 2),firstIndex = _sort2[0],secondIndex = _sort2[1];
182
- var nodesBetween = parent.body.slice(firstIndex, secondIndex + 1);var _iteratorNormalCompletion = true;var _didIteratorError = false;var _iteratorError = undefined;try {
183
- for (var _iterator = nodesBetween[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {var nodeBetween = _step.value;
184
- if (!canCrossNodeWhileReorder(nodeBetween)) {
185
- return false;
186
- }
187
- }} catch (err) {_didIteratorError = true;_iteratorError = err;} finally {try {if (!_iteratorNormalCompletion && _iterator['return']) {_iterator['return']();}} finally {if (_didIteratorError) {throw _iteratorError;}}}
188
- return true;
189
- }
190
-
191
- function makeImportDescription(node) {
192
- if (node.node.importKind === 'type') {
193
- return 'type import';
194
- }
195
- if (node.node.importKind === 'typeof') {
196
- return 'typeof import';
197
- }
198
- return 'import';
199
- }
200
-
201
- function fixOutOfOrder(context, firstNode, secondNode, order) {
202
- var sourceCode = context.getSourceCode();
203
-
204
- var firstRoot = findRootNode(firstNode.node);
205
- var firstRootStart = findStartOfLineWithComments(sourceCode, firstRoot);
206
- var firstRootEnd = findEndOfLineWithComments(sourceCode, firstRoot);
207
-
208
- var secondRoot = findRootNode(secondNode.node);
209
- var secondRootStart = findStartOfLineWithComments(sourceCode, secondRoot);
210
- var secondRootEnd = findEndOfLineWithComments(sourceCode, secondRoot);
211
- var canFix = canReorderItems(firstRoot, secondRoot);
212
-
213
- var newCode = sourceCode.text.substring(secondRootStart, secondRootEnd);
214
- if (newCode[newCode.length - 1] !== '\n') {
215
- newCode = String(newCode) + '\n';
216
- }
217
-
218
- var firstImport = String(makeImportDescription(firstNode)) + ' of `' + String(firstNode.displayName) + '`';
219
- var secondImport = '`' + String(secondNode.displayName) + '` ' + String(makeImportDescription(secondNode));
220
- var message = secondImport + ' should occur ' + String(order) + ' ' + firstImport;
221
-
222
- if (order === 'before') {
223
- context.report({
224
- node: secondNode.node,
225
- message: message,
226
- fix: canFix && function (fixer) {return fixer.replaceTextRange(
227
- [firstRootStart, secondRootEnd],
228
- newCode + sourceCode.text.substring(firstRootStart, secondRootStart));} });
229
-
230
-
231
- } else if (order === 'after') {
232
- context.report({
233
- node: secondNode.node,
234
- message: message,
235
- fix: canFix && function (fixer) {return fixer.replaceTextRange(
236
- [secondRootStart, firstRootEnd],
237
- sourceCode.text.substring(secondRootEnd, firstRootEnd) + newCode);} });
238
-
239
-
240
- }
241
- }
242
-
243
- function reportOutOfOrder(context, imported, outOfOrder, order) {
244
- outOfOrder.forEach(function (imp) {
245
- var found = imported.find(function () {function hasHigherRank(importedItem) {
246
- return importedItem.rank > imp.rank;
247
- }return hasHigherRank;}());
248
- fixOutOfOrder(context, found, imp, order);
249
- });
250
- }
251
-
252
- function makeOutOfOrderReport(context, imported) {
253
- var outOfOrder = findOutOfOrder(imported);
254
- if (!outOfOrder.length) {
255
- return;
256
- }
257
-
258
- // There are things to report. Try to minimize the number of reported errors.
259
- var reversedImported = reverse(imported);
260
- var reversedOrder = findOutOfOrder(reversedImported);
261
- if (reversedOrder.length < outOfOrder.length) {
262
- reportOutOfOrder(context, reversedImported, reversedOrder, 'after');
263
- return;
264
- }
265
- reportOutOfOrder(context, imported, outOfOrder, 'before');
266
- }
267
-
268
- var compareString = function compareString(a, b) {
269
- if (a < b) {
270
- return -1;
271
- }
272
- if (a > b) {
273
- return 1;
274
- }
275
- return 0;
276
- };
277
-
278
- /** Some parsers (languages without types) don't provide ImportKind */
279
- var DEAFULT_IMPORT_KIND = 'value';
280
- var getNormalizedValue = function getNormalizedValue(node, toLowerCase) {
281
- var value = node.value;
282
- return toLowerCase ? String(value).toLowerCase() : value;
283
- };
284
-
285
- function getSorter(alphabetizeOptions) {
286
- var multiplier = alphabetizeOptions.order === 'asc' ? 1 : -1;
287
- var orderImportKind = alphabetizeOptions.orderImportKind;
288
- var multiplierImportKind = orderImportKind !== 'ignore' && (
289
- alphabetizeOptions.orderImportKind === 'asc' ? 1 : -1);
290
-
291
- return function () {function importsSorter(nodeA, nodeB) {
292
- var importA = getNormalizedValue(nodeA, alphabetizeOptions.caseInsensitive);
293
- var importB = getNormalizedValue(nodeB, alphabetizeOptions.caseInsensitive);
294
- var result = 0;
295
-
296
- if (!(0, _arrayIncludes2['default'])(importA, '/') && !(0, _arrayIncludes2['default'])(importB, '/')) {
297
- result = compareString(importA, importB);
298
- } else {
299
- var A = importA.split('/');
300
- var B = importB.split('/');
301
- var a = A.length;
302
- var b = B.length;
303
-
304
- for (var i = 0; i < Math.min(a, b); i++) {
305
- result = compareString(A[i], B[i]);
306
- if (result) {break;}
307
- }
308
-
309
- if (!result && a !== b) {
310
- result = a < b ? -1 : 1;
311
- }
312
- }
313
-
314
- result = result * multiplier;
315
-
316
- // In case the paths are equal (result === 0), sort them by importKind
317
- if (!result && multiplierImportKind) {
318
- result = multiplierImportKind * compareString(
319
- nodeA.node.importKind || DEAFULT_IMPORT_KIND,
320
- nodeB.node.importKind || DEAFULT_IMPORT_KIND);
321
-
322
- }
323
-
324
- return result;
325
- }return importsSorter;}();
326
- }
327
-
328
- function mutateRanksToAlphabetize(imported, alphabetizeOptions) {
329
- var groupedByRanks = (0, _object2['default'])(imported, function (item) {return item.rank;});
330
-
331
- var sorterFn = getSorter(alphabetizeOptions);
332
-
333
- // sort group keys so that they can be iterated on in order
334
- var groupRanks = Object.keys(groupedByRanks).sort(function (a, b) {
335
- return a - b;
336
- });
337
-
338
- // sort imports locally within their group
339
- groupRanks.forEach(function (groupRank) {
340
- groupedByRanks[groupRank].sort(sorterFn);
341
- });
342
-
343
- // assign globally unique rank to each import
344
- var newRank = 0;
345
- var alphabetizedRanks = groupRanks.reduce(function (acc, groupRank) {
346
- groupedByRanks[groupRank].forEach(function (importedItem) {
347
- acc[String(importedItem.value) + '|' + String(importedItem.node.importKind)] = parseInt(groupRank, 10) + newRank;
348
- newRank += 1;
349
- });
350
- return acc;
351
- }, {});
352
-
353
- // mutate the original group-rank with alphabetized-rank
354
- imported.forEach(function (importedItem) {
355
- importedItem.rank = alphabetizedRanks[String(importedItem.value) + '|' + String(importedItem.node.importKind)];
356
- });
357
- }
358
-
359
- // DETECTING
360
-
361
- function computePathRank(ranks, pathGroups, path, maxPosition) {
362
- for (var i = 0, l = pathGroups.length; i < l; i++) {var _pathGroups$i =
363
- pathGroups[i],pattern = _pathGroups$i.pattern,patternOptions = _pathGroups$i.patternOptions,group = _pathGroups$i.group,_pathGroups$i$positio = _pathGroups$i.position,position = _pathGroups$i$positio === undefined ? 1 : _pathGroups$i$positio;
364
- if ((0, _minimatch2['default'])(path, pattern, patternOptions || { nocomment: true })) {
365
- return ranks[group] + position / maxPosition;
366
- }
367
- }
368
- }
369
-
370
- function computeRank(context, ranks, importEntry, excludedImportTypes) {
371
- var impType = void 0;
372
- var rank = void 0;
373
- if (importEntry.type === 'import:object') {
374
- impType = 'object';
375
- } else if (importEntry.node.importKind === 'type' && ranks.omittedTypes.indexOf('type') === -1) {
376
- impType = 'type';
377
- } else {
378
- impType = (0, _importType2['default'])(importEntry.value, context);
379
- }
380
- if (!excludedImportTypes.has(impType)) {
381
- rank = computePathRank(ranks.groups, ranks.pathGroups, importEntry.value, ranks.maxPosition);
382
- }
383
- if (typeof rank === 'undefined') {
384
- rank = ranks.groups[impType];
385
- }
386
- if (importEntry.type !== 'import' && !importEntry.type.startsWith('import:')) {
387
- rank += 100;
388
- }
389
-
390
- return rank;
391
- }
392
-
393
- function registerNode(context, importEntry, ranks, imported, excludedImportTypes) {
394
- var rank = computeRank(context, ranks, importEntry, excludedImportTypes);
395
- if (rank !== -1) {
396
- imported.push(Object.assign({}, importEntry, { rank: rank }));
397
- }
398
- }
399
-
400
- function getRequireBlock(node) {
401
- var n = node;
402
- // Handle cases like `const baz = require('foo').bar.baz`
403
- // and `const foo = require('foo')()`
404
- while (
405
- n.parent.type === 'MemberExpression' && n.parent.object === n ||
406
- n.parent.type === 'CallExpression' && n.parent.callee === n)
407
- {
408
- n = n.parent;
409
- }
410
- if (
411
- n.parent.type === 'VariableDeclarator' &&
412
- n.parent.parent.type === 'VariableDeclaration' &&
413
- n.parent.parent.parent.type === 'Program')
414
- {
415
- return n.parent.parent.parent;
416
- }
417
- }
418
-
419
- var types = ['builtin', 'external', 'internal', 'unknown', 'parent', 'sibling', 'index', 'object', 'type'];
420
-
421
- // Creates an object with type-rank pairs.
422
- // Example: { index: 0, sibling: 1, parent: 1, external: 1, builtin: 2, internal: 2 }
423
- // Will throw an error if it contains a type that does not exist, or has a duplicate
424
- function convertGroupsToRanks(groups) {
425
- var rankObject = groups.reduce(function (res, group, index) {
426
- [].concat(group).forEach(function (groupItem) {
427
- if (types.indexOf(groupItem) === -1) {
428
- throw new Error('Incorrect configuration of the rule: Unknown type `' + String(JSON.stringify(groupItem)) + '`');
429
- }
430
- if (res[groupItem] !== undefined) {
431
- throw new Error('Incorrect configuration of the rule: `' + String(groupItem) + '` is duplicated');
432
- }
433
- res[groupItem] = index * 2;
434
- });
435
- return res;
436
- }, {});
437
-
438
- var omittedTypes = types.filter(function (type) {
439
- return typeof rankObject[type] === 'undefined';
440
- });
441
-
442
- var ranks = omittedTypes.reduce(function (res, type) {
443
- res[type] = groups.length * 2;
444
- return res;
445
- }, rankObject);
446
-
447
- return { groups: ranks, omittedTypes: omittedTypes };
448
- }
449
-
450
- function convertPathGroupsForRanks(pathGroups) {
451
- var after = {};
452
- var before = {};
453
-
454
- var transformed = pathGroups.map(function (pathGroup, index) {var
455
- group = pathGroup.group,positionString = pathGroup.position;
456
- var position = 0;
457
- if (positionString === 'after') {
458
- if (!after[group]) {
459
- after[group] = 1;
460
- }
461
- position = after[group]++;
462
- } else if (positionString === 'before') {
463
- if (!before[group]) {
464
- before[group] = [];
465
- }
466
- before[group].push(index);
467
- }
468
-
469
- return Object.assign({}, pathGroup, { position: position });
470
- });
471
-
472
- var maxPosition = 1;
473
-
474
- Object.keys(before).forEach(function (group) {
475
- var groupLength = before[group].length;
476
- before[group].forEach(function (groupIndex, index) {
477
- transformed[groupIndex].position = -1 * (groupLength - index);
478
- });
479
- maxPosition = Math.max(maxPosition, groupLength);
480
- });
481
-
482
- Object.keys(after).forEach(function (key) {
483
- var groupNextPosition = after[key];
484
- maxPosition = Math.max(maxPosition, groupNextPosition - 1);
485
- });
486
-
487
- return {
488
- pathGroups: transformed,
489
- maxPosition: maxPosition > 10 ? Math.pow(10, Math.ceil(Math.log10(maxPosition))) : 10 };
490
-
491
- }
492
-
493
- function fixNewLineAfterImport(context, previousImport) {
494
- var prevRoot = findRootNode(previousImport.node);
495
- var tokensToEndOfLine = takeTokensAfterWhile(
496
- context.getSourceCode(), prevRoot, commentOnSameLineAs(prevRoot));
497
-
498
- var endOfLine = prevRoot.range[1];
499
- if (tokensToEndOfLine.length > 0) {
500
- endOfLine = tokensToEndOfLine[tokensToEndOfLine.length - 1].range[1];
501
- }
502
- return function (fixer) {return fixer.insertTextAfterRange([prevRoot.range[0], endOfLine], '\n');};
503
- }
504
-
505
- function removeNewLineAfterImport(context, currentImport, previousImport) {
506
- var sourceCode = context.getSourceCode();
507
- var prevRoot = findRootNode(previousImport.node);
508
- var currRoot = findRootNode(currentImport.node);
509
- var rangeToRemove = [
510
- findEndOfLineWithComments(sourceCode, prevRoot),
511
- findStartOfLineWithComments(sourceCode, currRoot)];
512
-
513
- if (/^\s*$/.test(sourceCode.text.substring(rangeToRemove[0], rangeToRemove[1]))) {
514
- return function (fixer) {return fixer.removeRange(rangeToRemove);};
515
- }
516
- return undefined;
517
- }
518
-
519
- function makeNewlinesBetweenReport(context, imported, newlinesBetweenImports, distinctGroup) {
520
- var getNumberOfEmptyLinesBetween = function getNumberOfEmptyLinesBetween(currentImport, previousImport) {
521
- var linesBetweenImports = context.getSourceCode().lines.slice(
522
- previousImport.node.loc.end.line,
523
- currentImport.node.loc.start.line - 1);
524
-
525
-
526
- return linesBetweenImports.filter(function (line) {return !line.trim().length;}).length;
527
- };
528
- var getIsStartOfDistinctGroup = function getIsStartOfDistinctGroup(currentImport, previousImport) {return currentImport.rank - 1 >= previousImport.rank;};
529
- var previousImport = imported[0];
530
-
531
- imported.slice(1).forEach(function (currentImport) {
532
- var emptyLinesBetween = getNumberOfEmptyLinesBetween(currentImport, previousImport);
533
- var isStartOfDistinctGroup = getIsStartOfDistinctGroup(currentImport, previousImport);
534
-
535
- if (newlinesBetweenImports === 'always' ||
536
- newlinesBetweenImports === 'always-and-inside-groups') {
537
- if (currentImport.rank !== previousImport.rank && emptyLinesBetween === 0) {
538
- if (distinctGroup || !distinctGroup && isStartOfDistinctGroup) {
539
- context.report({
540
- node: previousImport.node,
541
- message: 'There should be at least one empty line between import groups',
542
- fix: fixNewLineAfterImport(context, previousImport) });
543
-
544
- }
545
- } else if (emptyLinesBetween > 0 &&
546
- newlinesBetweenImports !== 'always-and-inside-groups') {
547
- if (distinctGroup && currentImport.rank === previousImport.rank || !distinctGroup && !isStartOfDistinctGroup) {
548
- context.report({
549
- node: previousImport.node,
550
- message: 'There should be no empty line within import group',
551
- fix: removeNewLineAfterImport(context, currentImport, previousImport) });
552
-
553
- }
554
- }
555
- } else if (emptyLinesBetween > 0) {
556
- context.report({
557
- node: previousImport.node,
558
- message: 'There should be no empty line between import groups',
559
- fix: removeNewLineAfterImport(context, currentImport, previousImport) });
560
-
561
- }
562
-
563
- previousImport = currentImport;
564
- });
565
- }
566
-
567
- function getAlphabetizeConfig(options) {
568
- var alphabetize = options.alphabetize || {};
569
- var order = alphabetize.order || 'ignore';
570
- var orderImportKind = alphabetize.orderImportKind || 'ignore';
571
- var caseInsensitive = alphabetize.caseInsensitive || false;
572
-
573
- return { order: order, orderImportKind: orderImportKind, caseInsensitive: caseInsensitive };
574
- }
575
-
576
- // TODO, semver-major: Change the default of "distinctGroup" from true to false
577
- var defaultDistinctGroup = true;
578
-
579
- module.exports = {
580
- meta: {
581
- type: 'suggestion',
582
- docs: {
583
- category: 'Style guide',
584
- description: 'Enforce a convention in module import order.',
585
- url: (0, _docsUrl2['default'])('order') },
586
-
587
-
588
- fixable: 'code',
589
- schema: [
590
- {
591
- type: 'object',
592
- properties: {
593
- groups: {
594
- type: 'array' },
595
-
596
- pathGroupsExcludedImportTypes: {
597
- type: 'array' },
598
-
599
- distinctGroup: {
600
- type: 'boolean',
601
- 'default': defaultDistinctGroup },
602
-
603
- pathGroups: {
604
- type: 'array',
605
- items: {
606
- type: 'object',
607
- properties: {
608
- pattern: {
609
- type: 'string' },
610
-
611
- patternOptions: {
612
- type: 'object' },
613
-
614
- group: {
615
- type: 'string',
616
- 'enum': types },
617
-
618
- position: {
619
- type: 'string',
620
- 'enum': ['after', 'before'] } },
621
-
622
-
623
- additionalProperties: false,
624
- required: ['pattern', 'group'] } },
625
-
626
-
627
- 'newlines-between': {
628
- 'enum': [
629
- 'ignore',
630
- 'always',
631
- 'always-and-inside-groups',
632
- 'never'] },
633
-
634
-
635
- alphabetize: {
636
- type: 'object',
637
- properties: {
638
- caseInsensitive: {
639
- type: 'boolean',
640
- 'default': false },
641
-
642
- order: {
643
- 'enum': ['ignore', 'asc', 'desc'],
644
- 'default': 'ignore' },
645
-
646
- orderImportKind: {
647
- 'enum': ['ignore', 'asc', 'desc'],
648
- 'default': 'ignore' } },
649
-
650
-
651
- additionalProperties: false },
652
-
653
- warnOnUnassignedImports: {
654
- type: 'boolean',
655
- 'default': false } },
656
-
657
-
658
- additionalProperties: false }] },
659
-
660
-
661
-
662
-
663
- create: function () {function importOrderRule(context) {
664
- var options = context.options[0] || {};
665
- var newlinesBetweenImports = options['newlines-between'] || 'ignore';
666
- var pathGroupsExcludedImportTypes = new Set(options.pathGroupsExcludedImportTypes || ['builtin', 'external', 'object']);
667
- var alphabetize = getAlphabetizeConfig(options);
668
- var distinctGroup = options.distinctGroup == null ? defaultDistinctGroup : !!options.distinctGroup;
669
- var ranks = void 0;
670
-
671
- try {var _convertPathGroupsFor =
672
- convertPathGroupsForRanks(options.pathGroups || []),pathGroups = _convertPathGroupsFor.pathGroups,maxPosition = _convertPathGroupsFor.maxPosition;var _convertGroupsToRanks =
673
- convertGroupsToRanks(options.groups || defaultGroups),groups = _convertGroupsToRanks.groups,omittedTypes = _convertGroupsToRanks.omittedTypes;
674
- ranks = {
675
- groups: groups,
676
- omittedTypes: omittedTypes,
677
- pathGroups: pathGroups,
678
- maxPosition: maxPosition };
679
-
680
- } catch (error) {
681
- // Malformed configuration
682
- return {
683
- Program: function () {function Program(node) {
684
- context.report(node, error.message);
685
- }return Program;}() };
686
-
687
- }
688
- var importMap = new Map();
689
-
690
- function getBlockImports(node) {
691
- if (!importMap.has(node)) {
692
- importMap.set(node, []);
693
- }
694
- return importMap.get(node);
695
- }
696
-
697
- return {
698
- ImportDeclaration: function () {function handleImports(node) {
699
- // Ignoring unassigned imports unless warnOnUnassignedImports is set
700
- if (node.specifiers.length || options.warnOnUnassignedImports) {
701
- var name = node.source.value;
702
- registerNode(
703
- context,
704
- {
705
- node: node,
706
- value: name,
707
- displayName: name,
708
- type: 'import' },
709
-
710
- ranks,
711
- getBlockImports(node.parent),
712
- pathGroupsExcludedImportTypes);
713
-
714
- }
715
- }return handleImports;}(),
716
- TSImportEqualsDeclaration: function () {function handleImports(node) {
717
- var displayName = void 0;
718
- var value = void 0;
719
- var type = void 0;
720
- // skip "export import"s
721
- if (node.isExport) {
722
- return;
723
- }
724
- if (node.moduleReference.type === 'TSExternalModuleReference') {
725
- value = node.moduleReference.expression.value;
726
- displayName = value;
727
- type = 'import';
728
- } else {
729
- value = '';
730
- displayName = context.getSourceCode().getText(node.moduleReference);
731
- type = 'import:object';
732
- }
733
- registerNode(
734
- context,
735
- {
736
- node: node,
737
- value: value,
738
- displayName: displayName,
739
- type: type },
740
-
741
- ranks,
742
- getBlockImports(node.parent),
743
- pathGroupsExcludedImportTypes);
744
-
745
- }return handleImports;}(),
746
- CallExpression: function () {function handleRequires(node) {
747
- if (!(0, _staticRequire2['default'])(node)) {
748
- return;
749
- }
750
- var block = getRequireBlock(node);
751
- if (!block) {
752
- return;
753
- }
754
- var name = node.arguments[0].value;
755
- registerNode(
756
- context,
757
- {
758
- node: node,
759
- value: name,
760
- displayName: name,
761
- type: 'require' },
762
-
763
- ranks,
764
- getBlockImports(block),
765
- pathGroupsExcludedImportTypes);
766
-
767
- }return handleRequires;}(),
768
- 'Program:exit': function () {function reportAndReset() {
769
- importMap.forEach(function (imported) {
770
- if (newlinesBetweenImports !== 'ignore') {
771
- makeNewlinesBetweenReport(context, imported, newlinesBetweenImports, distinctGroup);
772
- }
773
-
774
- if (alphabetize.order !== 'ignore') {
775
- mutateRanksToAlphabetize(imported, alphabetize);
776
- }
777
-
778
- makeOutOfOrderReport(context, imported);
779
- });
780
-
781
- importMap.clear();
782
- }return reportAndReset;}() };
783
-
784
- }return importOrderRule;}() };
785
- //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9ydWxlcy9vcmRlci5qcyJdLCJuYW1lcyI6WyJkZWZhdWx0R3JvdXBzIiwicmV2ZXJzZSIsImFycmF5IiwibWFwIiwidiIsInJhbmsiLCJnZXRUb2tlbnNPckNvbW1lbnRzQWZ0ZXIiLCJzb3VyY2VDb2RlIiwibm9kZSIsImNvdW50IiwiY3VycmVudE5vZGVPclRva2VuIiwicmVzdWx0IiwiaSIsImdldFRva2VuT3JDb21tZW50QWZ0ZXIiLCJwd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ufVxuXG4vLyBUT0RPLCBzZW12ZXItbWFqb3I6IENoYW5nZSB0aGUgZGVmYXVsdCBvZiBcImRpc3RpbmN0R3JvdXBcIiBmcm9tIHRydWUgdG8gZmFsc2VcbmNvbnN0IGRlZmF1bHREaXN0aW5jdEdyb3VwID0gdHJ1ZTtcblxubW9kdWxlLmV4cG9ydHMgPSB7XG4gIG1ldGE6IHtcbiAgICB0eXBlOiAnc3VnZ2VzdGlvbicsXG4gICAgZG9jczoge1xuICAgICAgY2F0ZWdvcnk6ICdTdHlsZSBndWlkZScsXG4gICAgICBkZXNjcmlwdGlvbjogJ0VuZm9yY2UgYSBjb252ZW50aW9uIGluIG1vZHVsZSBpbXBvcnQgb3JkZXIuJyxcbiAgICAgIHVybDogZG9jc1VybCgnb3JkZXInKSxcbiAgICB9LFxuXG4gICAgZml4YWJsZTogJ2NvZGUnLFxuICAgIHNjaGVtYTogW1xuICAgICAge1xuICAgICAgICB0eXBlOiAnb2JqZWN0JyxcbiAgICAgICAgcHJvcGVydGllczoge1xuICAgICAgICAgIGdyb3Vwczoge1xuICAgICAgICAgICAgdHlwZTogJ2FycmF5JyxcbiAgICAgICAgICB9LFxuICAgICAgICAgIHBhdGhHcm91cHNFeGNsdWRlZEltcG9ydFR5cGVzOiB7XG4gICAgICAgICAgICB0eXBlOiAnYXJyYXknLFxuICAgICAgICAgIH0sXG4gICAgICAgICAgZGlzdGluY3RHcm91cDoge1xuICAgICAgICAgICAgdHlwZTogJ2Jvb2xlYW4nLFxuICAgICAgICAgICAgZGVmYXVsdDogZGVmYXVsdERpc3RpbmN0R3JvdXAsXG4gICAgICAgICAgfSxcbiAgICAgICAgICBwYXRoR3JvdXBzOiB7XG4gICAgICAgICAgICB0eXBlOiAnYXJyYXknLFxuICAgICAgICAgICAgaXRlbXM6IHtcbiAgICAgICAgICAgICAgdHlwZTogJ29iamVjdCcsXG4gICAgICAgICAgICAgIHByb3BlcnRpZXM6IHtcbiAgICAgICAgICAgICAgICBwYXR0ZXJuOiB7XG4gICAgICAgICAgICAgICAgICB0eXBlOiAnc3RyaW5nJyxcbiAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgIHBhdHRlcm5PcHRpb25zOiB7XG4gICAgICAgICAgICAgICAgICB0eXBlOiAnb2JqZWN0JyxcbiAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgIGdyb3VwOiB7XG4gICAgICAgICAgICAgICAgICB0eXBlOiAnc3RyaW5nJyxcbiAgICAgICAgICAgICAgICAgIGVudW06IHR5cGVzLFxuICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgcG9zaXRpb246IHtcbiAgICAgICAgICAgICAgICAgIHR5cGU6ICdzdHJpbmcnLFxuICAgICAgICAgICAgICAgICAgZW51bTogWydhZnRlcicsICdiZWZvcmUnXSxcbiAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICBhZGRpdGlvbmFsUHJvcGVydGllczogZmFsc2UsXG4gICAgICAgICAgICAgIHJlcXVpcmVkOiBbJ3BhdHRlcm4nLCAnZ3JvdXAnXSxcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgfSxcbiAgICAgICAgICAnbmV3bGluZXMtYmV0d2Vlbic6IHtcbiAgICAgICAgICAgIGVudW06IFtcbiAgICAgICAgICAgICAgJ2lnbm9yZScsXG4gICAgICAgICAgICAgICdhbHdheXMnLFxuICAgICAgICAgICAgICAnYWx3YXlzLWFuZC1pbnNpZGUtZ3JvdXBzJyxcbiAgICAgICAgICAgICAgJ25ldmVyJyxcbiAgICAgICAgICAgIF0sXG4gICAgICAgICAgfSxcbiAgICAgICAgICBhbHBoYWJldGl6ZToge1xuICAgICAgICAgICAgdHlwZTogJ29iamVjdCcsXG4gICAgICAgICAgICBwcm9wZXJ0aWVzOiB7XG4gICAgICAgICAgICAgIGNhc2VJbnNlbnNpdGl2ZToge1xuICAgICAgICAgICAgICAgIHR5cGU6ICdib29sZWFuJyxcbiAgICAgICAgICAgICAgICBkZWZhdWx0OiBmYWxzZSxcbiAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgb3JkZXI6IHtcbiAgICAgICAgICAgICAgICBlbnVtOiBbJ2lnbm9yZScsICdhc2MnLCAnZGVzYyddLFxuICAgICAgICAgICAgICAgIGRlZmF1bHQ6ICdpZ25vcmUnLFxuICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICBvcmRlckltcG9ydEtpbmQ6IHtcbiAgICAgICAgICAgICAgICBlbnVtOiBbJ2lnbm9yZScsICdhc2MnLCAnZGVzYyddLFxuICAgICAgICAgICAgICAgIGRlZmF1bHQ6ICdpZ25vcmUnLFxuICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIGFkZGl0aW9uYWxQcm9wZXJ0aWVzOiBmYWxzZSxcbiAgICAgICAgICB9LFxuICAgICAgICAgIHdhcm5PblVuYXNzaWduZWRJbXBvcnRzOiB7XG4gICAgICAgICAgICB0eXBlOiAnYm9vbGVhbicsXG4gICAgICAgICAgICBkZWZhdWx0OiBmYWxzZSxcbiAgICAgICAgICB9LFxuICAgICAgICB9LFxuICAgICAgICBhZGRpdGlvbmFsUHJvcGVydGllczogZmFsc2UsXG4gICAgICB9LFxuICAgIF0sXG4gIH0sXG5cbiAgY3JlYXRlOiBmdW5jdGlvbiBpbXBvcnRPcmRlclJ1bGUoY29udGV4dCkge1xuICAgIGNvbnN0IG9wdGlvbnMgPSBjb250ZXh0Lm9wdGlvbnNbMF0gfHwge307XG4gICAgY29uc3QgbmV3bGluZXNCZXR3ZWVuSW1wb3J0cyA9IG9wdGlvbnNbJ25ld2xpbmVzLWJldHdlZW4nXSB8fCAnaWdub3JlJztcbiAgICBjb25zdCBwYXRoR3JvdXBzRXhjbHVkZWRJbXBvcnRUeXBlcyA9IG5ldyBTZXQob3B0aW9ucy5wYXRoR3JvdXBzRXhjbHVkZWRJbXBvcnRUeXBlcyB8fCBbJ2J1aWx0aW4nLC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iAgICAgIH1cbiAgICAgIHJldHVybiBpbXBvcnRNYXAuZ2V0KG5vZGUpO1xuICAgIH1cblxuICAgIHJldHVybiB7XG4gICAgICBJbXBvcnREZWNsYXJhdGlvbjogZnVuY3Rpb24gaGFuZGxlSW1wb3J0cyhub2RlKSB7XG4gICAgICAgIC8vIElnbm9yaW5nIHVuYXNzaWduZWQgaW1wb3J0cyB1bmxlc3Mgd2Fybk9uVW5hc3NpZ25lZEltcG9ydHMgaXMgc2V0XG4gICAgICAgIGlmIChub2RlLnNwZWNpZmllcnMubGVuZ3RoIHx8IG9wdGlvbnMud2Fybk9uVW5hc3NpZ25lZEltcG9ydHMpIHtcbiAgICAgICAgICBjb25zdCBuYW1lID0gbm9kZS5zb3VyY2UudmFsdWU7XG4gICAgICAgICAgcmVnaXN0ZXJOb2RlKFxuICAgICAgICAgICAgY29udGV4dCxcbiAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgbm9kZSxcbiAgICAgICAgICAgICAgdmFsdWU6IG5hbWUsXG4gICAgICAgICAgICAgIGRpc3BsYXlOYW1lOiBuYW1lLFxuICAgICAgICAgICAgICB0eXBlOiAnaW1wb3J0JyxcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgICByYW5rcyxcbiAgICAgICAgICAgIGdldEJsb2NrSW1wb3J0cyhub2RlLnBhcmVudCksXG4gICAgICAgICAgICBwYXRoR3JvdXBzRXhjbHVkZWRJbXBvcnRUeXBlcyxcbiAgICAgICAgICApO1xuICAgICAgICB9XG4gICAgICB9LFxuICAgICAgVFNJbXBvcnRFcXVhbHNEZWNsYXJhdGlvbjogZnVuY3Rpb24gaGFuZGxlSW1wb3J0cyhub2RlKSB7XG4gICAgICAgIGxldCBkaXNwbGF5TmFtZTtcbiAgICAgICAgbGV0IHZhbHVlO1xuICAgICAgICBsZXQgdHlwZTtcbiAgICAgICAgLy8gc2tpcCBcImV4cG9ydCBpbXBvcnRcInNcbiAgICAgICAgaWYgKG5vZGUuaXNFeHBvcnQpIHtcbiAgICAgICAgICByZXR1cm47XG4gICAgICAgIH1cbiAgICAgICAgaWYgKG5vZGUubW9kdWxlUmVmZXJlbmNlLnR5cGUgPT09ICdUU0V4dGVybmFsTW9kdWxlUmVmZXJlbmNlJykge1xuICAgICAgICAgIHZhbHVlID0gbm9kZS5tb2R1bGVSZWZlcmVuY2UuZXhwcmVzc2lvbi52YWx1ZTtcbiAgICAgICAgICBkaXNwbGF5TmFtZSA9IHZhbHVlO1xuICAgICAgICAgIHR5cGUgPSAnaW1wb3J0JztcbiAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICB2YWx1ZSA9ICcnO1xuICAgICAgICAgIGRpc3BsYXlOYW1lID0gY29udGV4dC5nZXRTb3VyY2VDb2RlKCkuZ2V0VGV4dChub2RlLm1vZHVsZVJlZmVyZW5jZSk7XG4gICAgICAgICAgdHlwZSA9ICdpbXBvcnQ6b2JqZWN0JztcbiAgICAgICAgfVxuICAgICAgICByZWdpc3Rlck5vZGUoXG4gICAgICAgICAgY29udGV4dCxcbiAgICAgICAgICB7XG4gICAgICAgICAgICBub2RlLFxuICAgICAgICAgICAgdmFsdWUsXG4gICAgICAgICAgICBkaXNwbGF5TmFtZSxcbiAgICAgICAgICAgIHR5cGUsXG4gICAgICAgICAgfSxcbiAgICAgICAgICByYW5rcyxcbiAgICAgICAgICBnZXRCbG9ja0ltcG9ydHMobm9kZS5wYXJlbnQpLFxuICAgICAgICAgIHBhdGhHcm91cHNFeGNsdWRlZEltcG9ydFR5cGVzLFxuICAgICAgICApO1xuICAgICAgfSxcbiAgICAgIENhbGxFeHByZXNzaW9uOiBmdW5jdGlvbiBoYW5kbGVSZXF1aXJlcyhub2RlKSB7XG4gICAgICAgIGlmICghaXNTdGF0aWNSZXF1aXJlKG5vZGUpKSB7XG4gICAgICAgICAgcmV0dXJuO1xuICAgICAgICB9XG4gICAgICAgIGNvbnN0IGJsb2NrID0gZ2V0UmVxdWlyZUJsb2NrKG5vZGUpO1xuICAgICAgICBpZiAoIWJsb2NrKSB7XG4gICAgICAgICAgcmV0dXJuO1xuICAgICAgICB9XG4gICAgICAgIGNvbnN0IG5hbWUgPSBub2RlLmFyZ3VtZW50c1swXS52YWx1ZTtcbiAgICAgICAgcmVnaXN0ZXJOb2RlKFxuICAgICAgICAgIGNvbnRleHQsXG4gICAgICAgICAge1xuICAgICAgICAgICAgbm9kZSxcbiAgICAgICAgICAgIHZhbHVlOiBuYW1lLFxuICAgICAgICAgICAgZGlzcGxheU5hbWU6IG5hbWUsXG4gICAgICAgICAgICB0eXBlOiAncmVxdWlyZScsXG4gICAgICAgICAgfSxcbiAgICAgICAgICByYW5rcyxcbiAgICAgICAgICBnZXRCbG9ja0ltcG9ydHMoYmxvY2spLFxuICAgICAgICAgIHBhdGhHcm91cHNFeGNsdWRlZEltcG9ydFR5cGVzLFxuICAgICAgICApO1xuICAgICAgfSxcbiAgICAgICdQcm9ncmFtOmV4aXQnOiBmdW5jdGlvbiByZXBvcnRBbmRSZXNldCgpIHtcbiAgICAgICAgaW1wb3J0TWFwLmZvckVhY2goKGltcG9ydGVkKSA9PiB7XG4gICAgICAgICAgaWYgKG5ld2xpbmVzQmV0d2VlbkltcG9ydHMgIT09ICdpZ25vcmUnKSB7XG4gICAgICAgICAgICBtYWtlTmV3bGluZXNCZXR3ZWVuUmVwb3J0KGNvbnRleHQsIGltcG9ydGVkLCBuZXdsaW5lc0JldHdlZW5JbXBvcnRzLCBkaXN0aW5jdEdyb3VwKTtcbiAgICAgICAgICB9XG5cbiAgICAgICAgICBpZiAoYWxwaGFiZXRpemUub3JkZXIgIT09ICdpZ25vcmUnKSB7XG4gICAgICAgICAgICBtdXRhdGVSYW5rc1RvQWxwaGFiZXRpemUoaW1wb3J0ZWQsIGFscGhhYmV0aXplKTtcbiAgICAgICAgICB9XG5cbiAgICAgICAgICBtYWtlT3V0T2ZPcmRlclJlcG9ydChjb250ZXh0LCBpbXBvcnRlZCk7XG4gICAgICAgIH0pO1xuXG4gICAgICAgIGltcG9ydE1hcC5jbGVhcigpO1xuICAgICAgfSxcbiAgICB9O1xuICB9LFxufTtcbiJdfQ==