accessibility-checker 4.0.1 → 4.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (209) hide show
  1. package/bin/achecker.js +213 -262
  2. package/bin/achecker.js.map +1 -1
  3. package/cjs/bin/achecker.d.ts +2 -0
  4. package/cjs/bin/achecker.js +306 -0
  5. package/cjs/bin/achecker.js.map +1 -0
  6. package/cjs/index.d.ts +319 -0
  7. package/cjs/index.js +402 -0
  8. package/cjs/index.js.map +1 -0
  9. package/cjs/lib/ACBrowserManager.d.ts +22 -0
  10. package/cjs/lib/ACBrowserManager.js +172 -0
  11. package/cjs/lib/ACBrowserManager.js.map +1 -0
  12. package/cjs/lib/ACEngineManager.d.ts +19 -0
  13. package/cjs/lib/ACEngineManager.js +457 -0
  14. package/cjs/lib/ACEngineManager.js.map +1 -0
  15. package/cjs/lib/ACHelper.d.ts +2 -0
  16. package/cjs/lib/ACHelper.js +678 -0
  17. package/cjs/lib/ACHelper.js.map +1 -0
  18. package/cjs/lib/api/IChecker.d.ts +28 -0
  19. package/cjs/lib/api/IChecker.js +11 -0
  20. package/cjs/lib/api/IChecker.js.map +1 -0
  21. package/cjs/lib/api/IMapper.d.ts +37 -0
  22. package/cjs/lib/api/IMapper.js +18 -0
  23. package/cjs/lib/api/IMapper.js.map +1 -0
  24. package/cjs/lib/common/api-ext/Fetch.d.ts +17 -0
  25. package/cjs/lib/common/api-ext/Fetch.js +95 -0
  26. package/cjs/lib/common/api-ext/Fetch.js.map +1 -0
  27. package/cjs/lib/common/api-ext/IAbstractAPI.d.ts +33 -0
  28. package/cjs/lib/common/api-ext/IAbstractAPI.js +18 -0
  29. package/cjs/lib/common/api-ext/IAbstractAPI.js.map +1 -0
  30. package/cjs/lib/common/config/ACConfigManager.d.ts +13 -0
  31. package/cjs/lib/common/config/ACConfigManager.js +483 -0
  32. package/cjs/lib/common/config/ACConfigManager.js.map +1 -0
  33. package/cjs/lib/common/config/ACConstants.d.ts +17 -0
  34. package/cjs/lib/common/config/ACConstants.js +111 -0
  35. package/cjs/lib/common/config/ACConstants.js.map +1 -0
  36. package/cjs/lib/common/config/IArchive.d.ts +37 -0
  37. package/cjs/lib/common/config/IArchive.js +18 -0
  38. package/cjs/lib/common/config/IArchive.js.map +1 -0
  39. package/cjs/lib/common/config/IConfig.d.ts +152 -0
  40. package/cjs/lib/common/config/IConfig.js +36 -0
  41. package/cjs/lib/common/config/IConfig.js.map +1 -0
  42. package/cjs/lib/common/engine/IBounds.d.ts +21 -0
  43. package/cjs/lib/common/engine/IBounds.js +18 -0
  44. package/cjs/lib/common/engine/IBounds.js.map +1 -0
  45. package/cjs/lib/common/engine/IChecker.d.ts +23 -0
  46. package/cjs/lib/common/engine/IChecker.js +18 -0
  47. package/cjs/lib/common/engine/IChecker.js.map +1 -0
  48. package/cjs/lib/common/engine/IEngine.d.ts +39 -0
  49. package/cjs/lib/common/engine/IEngine.js +18 -0
  50. package/cjs/lib/common/engine/IEngine.js.map +1 -0
  51. package/cjs/lib/common/engine/IGuideline.d.ts +53 -0
  52. package/cjs/lib/common/engine/IGuideline.js +37 -0
  53. package/cjs/lib/common/engine/IGuideline.js.map +1 -0
  54. package/cjs/lib/common/engine/IMapper.d.ts +32 -0
  55. package/cjs/lib/common/engine/IMapper.js +18 -0
  56. package/cjs/lib/common/engine/IMapper.js.map +1 -0
  57. package/cjs/lib/common/engine/IReport.d.ts +143 -0
  58. package/cjs/lib/common/engine/IReport.js +44 -0
  59. package/cjs/lib/common/engine/IReport.js.map +1 -0
  60. package/cjs/lib/common/engine/IRule.d.ts +100 -0
  61. package/cjs/lib/common/engine/IRule.js +87 -0
  62. package/cjs/lib/common/engine/IRule.js.map +1 -0
  63. package/cjs/lib/common/engine/IRuleset.d.ts +20 -0
  64. package/cjs/lib/common/engine/IRuleset.js +18 -0
  65. package/cjs/lib/common/engine/IRuleset.js.map +1 -0
  66. package/cjs/lib/common/report/ACReporterCSV.d.ts +28 -0
  67. package/cjs/lib/common/report/ACReporterCSV.js +75 -0
  68. package/cjs/lib/common/report/ACReporterCSV.js.map +1 -0
  69. package/cjs/lib/common/report/ACReporterHTML.d.ts +27 -0
  70. package/cjs/lib/common/report/ACReporterHTML.js +61 -0
  71. package/cjs/lib/common/report/ACReporterHTML.js.map +1 -0
  72. package/cjs/lib/common/report/ACReporterJSON.d.ts +36 -0
  73. package/cjs/lib/common/report/ACReporterJSON.js +109 -0
  74. package/cjs/lib/common/report/ACReporterJSON.js.map +1 -0
  75. package/cjs/lib/common/report/ACReporterMetrics.d.ts +78 -0
  76. package/cjs/lib/common/report/ACReporterMetrics.js +135 -0
  77. package/cjs/lib/common/report/ACReporterMetrics.js.map +1 -0
  78. package/cjs/lib/common/report/ACReporterXLSX.d.ts +38 -0
  79. package/cjs/lib/common/report/ACReporterXLSX.js +996 -0
  80. package/cjs/lib/common/report/ACReporterXLSX.js.map +1 -0
  81. package/cjs/lib/common/report/BaselineManager.d.ts +169 -0
  82. package/cjs/lib/common/report/BaselineManager.js +382 -0
  83. package/cjs/lib/common/report/BaselineManager.js.map +1 -0
  84. package/cjs/lib/common/report/ReporterManager.d.ts +79 -0
  85. package/cjs/lib/common/report/ReporterManager.js +469 -0
  86. package/cjs/lib/common/report/ReporterManager.js.map +1 -0
  87. package/cjs/lib/common/report/genReport.d.ts +1 -0
  88. package/cjs/lib/common/report/genReport.js +12 -0
  89. package/cjs/lib/common/report/genReport.js.map +1 -0
  90. package/cjs/package.json +3 -0
  91. package/index.js +21 -63
  92. package/index.js.map +1 -1
  93. package/lib/ACBrowserManager.js +138 -203
  94. package/lib/ACBrowserManager.js.map +1 -1
  95. package/lib/ACEngineManager.js +395 -402
  96. package/lib/ACEngineManager.js.map +1 -1
  97. package/lib/ACHelper.js +581 -642
  98. package/lib/ACHelper.js.map +1 -1
  99. package/lib/common/api-ext/Fetch.js +58 -78
  100. package/lib/common/api-ext/Fetch.js.map +1 -1
  101. package/lib/common/config/ACConfigManager.js +271 -281
  102. package/lib/common/config/ACConfigManager.js.map +1 -1
  103. package/lib/common/config/ACConstants.js +38 -4
  104. package/lib/common/config/ACConstants.js.map +1 -1
  105. package/lib/common/config/IConfig.d.ts +1 -1
  106. package/lib/common/report/ACReporterCSV.js +42 -77
  107. package/lib/common/report/ACReporterCSV.js.map +1 -1
  108. package/lib/common/report/ACReporterHTML.js +15 -48
  109. package/lib/common/report/ACReporterHTML.js.map +1 -1
  110. package/lib/common/report/ACReporterJSON.js +59 -94
  111. package/lib/common/report/ACReporterJSON.js.map +1 -1
  112. package/lib/common/report/ACReporterMetrics.js +45 -108
  113. package/lib/common/report/ACReporterMetrics.js.map +1 -1
  114. package/lib/common/report/ACReporterXLSX.js +282 -300
  115. package/lib/common/report/ACReporterXLSX.js.map +1 -1
  116. package/lib/common/report/BaselineManager.js +82 -56
  117. package/lib/common/report/BaselineManager.js.map +1 -1
  118. package/lib/common/report/ReporterManager.js +125 -190
  119. package/lib/common/report/ReporterManager.js.map +1 -1
  120. package/lib/common/report/genReport.js +2 -2
  121. package/mjs/bin/achecker.d.ts +2 -0
  122. package/mjs/bin/achecker.js +236 -0
  123. package/mjs/bin/achecker.js.map +1 -0
  124. package/mjs/index.d.ts +319 -0
  125. package/mjs/index.js +368 -0
  126. package/mjs/index.js.map +1 -0
  127. package/mjs/lib/ACBrowserManager.d.ts +22 -0
  128. package/mjs/lib/ACBrowserManager.js +121 -0
  129. package/mjs/lib/ACBrowserManager.js.map +1 -0
  130. package/mjs/lib/ACEngineManager.d.ts +19 -0
  131. package/mjs/lib/ACEngineManager.js +397 -0
  132. package/mjs/lib/ACEngineManager.js.map +1 -0
  133. package/mjs/lib/ACHelper.d.ts +2 -0
  134. package/mjs/lib/ACHelper.js +614 -0
  135. package/mjs/lib/ACHelper.js.map +1 -0
  136. package/mjs/lib/api/IChecker.d.ts +28 -0
  137. package/mjs/lib/api/IChecker.js +8 -0
  138. package/mjs/lib/api/IChecker.js.map +1 -0
  139. package/mjs/lib/api/IMapper.d.ts +37 -0
  140. package/mjs/lib/api/IMapper.js +17 -0
  141. package/mjs/lib/api/IMapper.js.map +1 -0
  142. package/mjs/lib/common/api-ext/Fetch.d.ts +17 -0
  143. package/mjs/lib/common/api-ext/Fetch.js +45 -0
  144. package/mjs/lib/common/api-ext/Fetch.js.map +1 -0
  145. package/mjs/lib/common/api-ext/IAbstractAPI.d.ts +33 -0
  146. package/mjs/lib/common/api-ext/IAbstractAPI.js +17 -0
  147. package/mjs/lib/common/api-ext/IAbstractAPI.js.map +1 -0
  148. package/mjs/lib/common/config/ACConfigManager.d.ts +13 -0
  149. package/mjs/lib/common/config/ACConfigManager.js +421 -0
  150. package/mjs/lib/common/config/ACConfigManager.js.map +1 -0
  151. package/mjs/lib/common/config/ACConstants.d.ts +17 -0
  152. package/mjs/lib/common/config/ACConstants.js +75 -0
  153. package/mjs/lib/common/config/ACConstants.js.map +1 -0
  154. package/mjs/lib/common/config/IArchive.d.ts +37 -0
  155. package/mjs/lib/common/config/IArchive.js +17 -0
  156. package/mjs/lib/common/config/IArchive.js.map +1 -0
  157. package/mjs/lib/common/config/IConfig.d.ts +152 -0
  158. package/mjs/lib/common/config/IConfig.js +33 -0
  159. package/mjs/lib/common/config/IConfig.js.map +1 -0
  160. package/mjs/lib/common/engine/IBounds.d.ts +21 -0
  161. package/mjs/lib/common/engine/IBounds.js +17 -0
  162. package/mjs/lib/common/engine/IBounds.js.map +1 -0
  163. package/mjs/lib/common/engine/IChecker.d.ts +23 -0
  164. package/mjs/lib/common/engine/IChecker.js +17 -0
  165. package/mjs/lib/common/engine/IChecker.js.map +1 -0
  166. package/mjs/lib/common/engine/IEngine.d.ts +39 -0
  167. package/mjs/lib/common/engine/IEngine.js +17 -0
  168. package/mjs/lib/common/engine/IEngine.js.map +1 -0
  169. package/mjs/lib/common/engine/IGuideline.d.ts +53 -0
  170. package/mjs/lib/common/engine/IGuideline.js +34 -0
  171. package/mjs/lib/common/engine/IGuideline.js.map +1 -0
  172. package/mjs/lib/common/engine/IMapper.d.ts +32 -0
  173. package/mjs/lib/common/engine/IMapper.js +17 -0
  174. package/mjs/lib/common/engine/IMapper.js.map +1 -0
  175. package/mjs/lib/common/engine/IReport.d.ts +143 -0
  176. package/mjs/lib/common/engine/IReport.js +36 -0
  177. package/mjs/lib/common/engine/IReport.js.map +1 -0
  178. package/mjs/lib/common/engine/IRule.d.ts +100 -0
  179. package/mjs/lib/common/engine/IRule.js +79 -0
  180. package/mjs/lib/common/engine/IRule.js.map +1 -0
  181. package/mjs/lib/common/engine/IRuleset.d.ts +20 -0
  182. package/mjs/lib/common/engine/IRuleset.js +17 -0
  183. package/mjs/lib/common/engine/IRuleset.js.map +1 -0
  184. package/mjs/lib/common/report/ACReporterCSV.d.ts +28 -0
  185. package/mjs/lib/common/report/ACReporterCSV.js +60 -0
  186. package/mjs/lib/common/report/ACReporterCSV.js.map +1 -0
  187. package/mjs/lib/common/report/ACReporterHTML.d.ts +27 -0
  188. package/mjs/lib/common/report/ACReporterHTML.js +46 -0
  189. package/mjs/lib/common/report/ACReporterHTML.js.map +1 -0
  190. package/mjs/lib/common/report/ACReporterJSON.d.ts +36 -0
  191. package/mjs/lib/common/report/ACReporterJSON.js +94 -0
  192. package/mjs/lib/common/report/ACReporterJSON.js.map +1 -0
  193. package/mjs/lib/common/report/ACReporterMetrics.d.ts +78 -0
  194. package/mjs/lib/common/report/ACReporterMetrics.js +122 -0
  195. package/mjs/lib/common/report/ACReporterMetrics.js.map +1 -0
  196. package/mjs/lib/common/report/ACReporterXLSX.d.ts +38 -0
  197. package/mjs/lib/common/report/ACReporterXLSX.js +948 -0
  198. package/mjs/lib/common/report/ACReporterXLSX.js.map +1 -0
  199. package/mjs/lib/common/report/BaselineManager.d.ts +169 -0
  200. package/mjs/lib/common/report/BaselineManager.js +348 -0
  201. package/mjs/lib/common/report/BaselineManager.js.map +1 -0
  202. package/mjs/lib/common/report/ReporterManager.d.ts +79 -0
  203. package/mjs/lib/common/report/ReporterManager.js +469 -0
  204. package/mjs/lib/common/report/ReporterManager.js.map +1 -0
  205. package/mjs/lib/common/report/genReport.d.ts +1 -0
  206. package/mjs/lib/common/report/genReport.js +9 -0
  207. package/mjs/lib/common/report/genReport.js.map +1 -0
  208. package/mjs/package.json +3 -0
  209. package/package.json +10 -4
@@ -0,0 +1,483 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
36
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
37
+ return new (P || (P = Promise))(function (resolve, reject) {
38
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
39
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
40
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
41
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
42
+ });
43
+ };
44
+ var __importDefault = (this && this.__importDefault) || function (mod) {
45
+ return (mod && mod.__esModule) ? mod : { "default": mod };
46
+ };
47
+ Object.defineProperty(exports, "__esModule", { value: true });
48
+ exports.ACConfigManager = void 0;
49
+ exports.compareVersions = compareVersions;
50
+ /******************************************************************************
51
+ Copyright:: 2020- IBM, Inc
52
+
53
+ Licensed under the Apache License, Version 2.0 (the "License");
54
+ you may not use this file except in compliance with the License.
55
+ You may obtain a copy of the License at
56
+
57
+ http://www.apache.org/licenses/LICENSE-2.0
58
+
59
+ Unless required by applicable law or agreed to in writing, software
60
+ distributed under the License is distributed on an "AS IS" BASIS,
61
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
62
+ See the License for the specific language governing permissions and
63
+ limitations under the License.
64
+ *****************************************************************************/
65
+ // Load all the modules that are needed
66
+ const pathLib = __importStar(require("path"));
67
+ const fs = __importStar(require("fs"));
68
+ const YAML = __importStar(require("js-yaml"));
69
+ const ACConstants_js_1 = require("./ACConstants.js");
70
+ const crypto = __importStar(require("crypto"));
71
+ const Fetch_js_1 = require("../api-ext/Fetch.js");
72
+ const ReporterManager_js_1 = require("../report/ReporterManager.js");
73
+ const path_1 = __importDefault(require("path"));
74
+ // This line will be modified by sed for cjs vs mjs environments. Look at package.json before modifying
75
+ // import { fileURLToPath } from 'url';
76
+ /**
77
+ * This function is responsible converting policies into an Array based on string or Array.
78
+ *
79
+ * i.e. convert array into string version of array
80
+ * "CI162_5_2_DCP070116,CI162_5_2_DCP070116"
81
+ *
82
+ * converts to:
83
+ *
84
+ * [
85
+ * "CI162_5_2_DCP070116",
86
+ * "CI162_5_2_DCP070116"
87
+ * ]
88
+ *
89
+ * @param {Array or String} policies - Provide list of policies, single policy or comma seperated policies
90
+ *
91
+ * @return {Array} policies - return the policy converted into Array version
92
+ *
93
+ * @memberOf this
94
+ */
95
+ function convertPolicies(policies) {
96
+ ACConstants_js_1.ACConstants.DEBUG && console.log("START 'convertPolicies' function");
97
+ ACConstants_js_1.ACConstants.DEBUG && console.log("Converting policy provided to Array: ");
98
+ ACConstants_js_1.ACConstants.DEBUG && console.log(policies);
99
+ ACConstants_js_1.ACConstants.DEBUG && console.log("END 'convertPolicies' function");
100
+ // In the case policies is an Array return it as engine expects list
101
+ if (policies instanceof Array) {
102
+ return policies;
103
+ }
104
+ // If the policies is string, we need to convert it to an array. Which includes comma seperated string support also
105
+ else if (typeof policies === "string") {
106
+ return policies.split(',');
107
+ }
108
+ return policies;
109
+ }
110
+ /**
111
+ * negative if versionA is less than versionB, positive if versionA is greater than versionB, and zero if they are equal. NaN is treated as 0.
112
+ * @param versionA
113
+ * @param versionB
114
+ */
115
+ function compareVersions(versionA, versionB) {
116
+ const versionRE = /[0-9.]+(-rc\.[0-9]+)?/;
117
+ versionA = versionA.trim();
118
+ versionB = versionB.trim();
119
+ if (!versionRE.test(versionA))
120
+ throw new Error("Invalid version");
121
+ if (!versionRE.test(versionB))
122
+ throw new Error("Invalid version");
123
+ if (versionA === versionB)
124
+ return 0;
125
+ // Get x.y.z-rc.a into [x.y.z, a]
126
+ // Get x.y.z into [x.y.z]
127
+ let split1A = versionA.split("-rc.");
128
+ let split1B = versionB.split("-rc.");
129
+ // Get x.y.z into [x,y,z]
130
+ let split2A = split1A[0].split(".");
131
+ let split2B = split1B[0].split(".");
132
+ // For the components of the shortest version - can only compare numbers we have
133
+ let minLength = Math.min(split2A.length, split2B.length);
134
+ for (let idx = 0; idx < minLength; ++idx) {
135
+ if (split2A[idx] !== split2B[idx]) {
136
+ return parseInt(split2A[idx]) - parseInt(split2B[idx]);
137
+ }
138
+ }
139
+ // Handle 4.0 vs 4.0.1 (longer string is later)
140
+ if (split2A.length !== split2B.length) {
141
+ return split2A.length - split2B.length;
142
+ }
143
+ // Handle 4.0.0 vs 4.0.0-rc.x (shorter string is later)
144
+ if (split1A.length !== split1B.length) {
145
+ return split1B.length - split1A.length;
146
+ }
147
+ return parseInt(split1A[1]) - parseInt(split1B[1]);
148
+ }
149
+ /**
150
+ *
151
+ * @param archives
152
+ * @param toolVersion
153
+ */
154
+ function findLatestArchiveId(archives, toolVersion) {
155
+ const validArchiveKeywords = ["latest", "preview", "versioned"];
156
+ for (const archive of archives) {
157
+ if (validArchiveKeywords.includes(archive.id))
158
+ continue;
159
+ // If the toolVersion is greater than or equal to the archive version we've found it
160
+ if (compareVersions(toolVersion, archive.version) >= 0) {
161
+ return archive.id;
162
+ }
163
+ }
164
+ // Something wrong, go with the latest
165
+ return "latest";
166
+ }
167
+ /**
168
+ * This function is responsible processing the achecker config which was initialized to make sure it contains,
169
+ * information which matches what the engine reads.
170
+ *
171
+ * i.e.
172
+ * Need to change reportLevels and failLevels to match with level declerations in the engine.
173
+ * replace violation with level.violation
174
+ * Need to change array of policies into a string
175
+ * ["CI162_5_2_DCP070116","CI162_5_2_DCP070116"] to "CI162_5_2_DCP070116,CI162_5_2_DCP070116"
176
+ *
177
+ * @param {Object} ACConfig - Provide the config object in which needs to be processed.
178
+ *
179
+ * @return {Object} ACConfig - return the config object which has been made engine readable
180
+ *
181
+ * @memberOf this
182
+ */
183
+ function processACConfig(ACConfig) {
184
+ return __awaiter(this, void 0, void 0, function* () {
185
+ ACConstants_js_1.ACConstants.DEBUG && console.log("START 'processACConfig' function");
186
+ const validArchiveKeywords = ["latest", "preview", "versioned"];
187
+ // Convert the reportLevels and failLevels to match with what the engine provides
188
+ // Don't need to convert the levels from the input as we are going to compare with out the level.
189
+ // by using contains algo, so that in the reports we can add it without level, until the engine is
190
+ // updated to pass back with out level.
191
+ //ACConfig.reportLevels = mapLevelsToEngineReadableLevels(ACConfig.reportLevels);
192
+ //ACConfig.failLevels = mapLevelsToEngineReadableLevels(ACConfig.failLevels);
193
+ // Convert the policies into a comma seperated string
194
+ ACConfig.policies = convertPolicies(ACConfig.policies);
195
+ // In the case that baseA11yServerURL is provided in the config use that as the base otherwise switch to the default one from the ACConstants object
196
+ let ruleServer = ACConfig.ruleServer ? ACConfig.ruleServer : ACConstants_js_1.ACConstants.ruleServer;
197
+ // Get and parse the rule archive.
198
+ let ruleArchiveFile = `${ruleServer}${ruleServer.includes("jsdelivr.net") ? "@next" : ""}/archives.json`;
199
+ let ruleArchiveParse;
200
+ try {
201
+ if (ACConfig.ignoreHTTPSErrors) {
202
+ process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0";
203
+ }
204
+ ruleArchiveParse = yield (0, Fetch_js_1.fetch_get)(ruleArchiveFile);
205
+ }
206
+ catch (err) {
207
+ console.log(err);
208
+ throw new Error(err);
209
+ }
210
+ let ruleArchivePath = null;
211
+ if (ruleArchiveParse && ruleArchiveParse.length > 0) {
212
+ ACConstants_js_1.ACConstants.DEBUG && console.log("Found archiveFile: " + ruleArchiveFile);
213
+ ACConfig.ruleArchiveSet = ruleArchiveParse;
214
+ let ruleArchive = ACConfig.ruleArchive;
215
+ // If the user asked us to sync the rule version with the tool version, we need to figure out what the last rule version was
216
+ if (ruleArchive === "versioned") {
217
+ if (!ACConfig.toolVersion) {
218
+ ruleArchive = "latest";
219
+ }
220
+ else {
221
+ ruleArchive = findLatestArchiveId(ACConfig.ruleArchiveSet, ACConfig.toolVersion);
222
+ }
223
+ }
224
+ ACConfig.ruleArchiveLabel = ACConfig.ruleArchive;
225
+ for (let i = 0; i < ACConfig.ruleArchiveSet.length; i++) {
226
+ if (ruleArchive === ACConfig.ruleArchiveSet[i].id && !ACConfig.ruleArchiveSet[i].sunset) {
227
+ ruleArchivePath = ACConfig.ruleArchiveSet[i].path;
228
+ ACConfig.ruleArchiveVersion = ACConfig.ruleArchiveSet[i].version;
229
+ ACConfig.ruleArchiveLabel = ruleArchiveParse[i].name + " (" + ruleArchiveParse[i].id + ")";
230
+ break;
231
+ }
232
+ }
233
+ if (!ruleArchivePath || ACConfig.ruleArchiveVersion === null) {
234
+ const errStr = "[ERROR] RuleArchiveInvalid: Make Sure correct rule archive is provided in the configuration file. More information is available in the README.md";
235
+ console.error(errStr);
236
+ throw new Error(errStr);
237
+ }
238
+ for (let i = 0; i < ACConfig.ruleArchiveSet.length; i++) {
239
+ if (ACConfig.ruleArchiveVersion === ACConfig.ruleArchiveSet[i].version && !validArchiveKeywords.includes(ACConfig.ruleArchiveSet[i].id)) {
240
+ ACConfig.ruleArchivePath = ACConfig.ruleArchiveSet[i].path;
241
+ break;
242
+ }
243
+ }
244
+ //}
245
+ }
246
+ else {
247
+ const errStr = "[ERROR] UnableToParseArchive: Archives are unable to be parse. Contact support team.";
248
+ console.error(errStr);
249
+ throw new Error(errStr);
250
+ }
251
+ // Build the new rulePack based of the baseA11yServerURL
252
+ if (!ACConfig.rulePack) {
253
+ if (ruleServer.includes("jsdelivr.net")) {
254
+ ACConfig.rulePack = `${ruleServer}@${ACConfig.ruleArchiveVersion}`;
255
+ }
256
+ else {
257
+ ACConfig.rulePack = `${ruleServer}${ruleArchivePath}/js`;
258
+ }
259
+ }
260
+ ACConfig.ruleServer = ruleServer;
261
+ ACConstants_js_1.ACConstants.DEBUG && console.log("Built new rulePack: " + ACConfig.rulePack);
262
+ ACConstants_js_1.ACConstants.DEBUG && console.log("END 'processACConfig' function");
263
+ // Return the updated ACConfig object
264
+ return ACConfig;
265
+ });
266
+ }
267
+ /**
268
+ * This function is responsible initializing all the default values for the configurations, in the case any
269
+ * of the config options are missing.
270
+ *
271
+ * @param {Object} config - Provide the config object in which we need to initialize the default values.
272
+ *
273
+ * @return {Object} config - return the config object which has all the default values, in the case
274
+ * some of the options are null or undefined.
275
+ *
276
+ * @memberOf this
277
+ */
278
+ function initializeDefaults(config) {
279
+ ACConstants_js_1.ACConstants.DEBUG && console.log("START 'initializeDefaults' function");
280
+ ACConstants_js_1.ACConstants.DEBUG && console.log("Config before initialization: ");
281
+ ACConstants_js_1.ACConstants.DEBUG && console.log(config);
282
+ // Make sure all the following options are defined, otherwise reset them to default values.
283
+ config.ruleArchiveLabel = config.ruleArchiveLabel || ACConstants_js_1.ACConstants.ruleArchiveLabel || config.ruleArchive;
284
+ // For capture screenshots need to check for null or undefined and then set default otherwise it will evaluate the
285
+ // boolean which causes it to always comply with the default value and not user provided option
286
+ if (config.captureScreenshots === null || config.captureScreenshots === undefined || typeof config.captureScreenshots === "undefined") {
287
+ config.captureScreenshots = ACConstants_js_1.ACConstants.captureScreenshots;
288
+ }
289
+ // Load in the package.json file so that we can extract the module name and the version to build
290
+ // a toolID which needs to be used when results are build for the purpose of keeping track of
291
+ // which tool is uploading the results.
292
+ let packageDir = "";
293
+ try {
294
+ packageDir = __dirname;
295
+ }
296
+ catch (err) {
297
+ // This line will be modified by sed for cjs vs mjs environments. Look at package.json before modifying
298
+ // const __filename = fileURLToPath(import.meta.url);
299
+ const __dirname = path_1.default.dirname(__filename);
300
+ packageDir = __dirname;
301
+ }
302
+ while (!fs.existsSync(pathLib.join(packageDir, "package.json"))) {
303
+ packageDir = pathLib.join(packageDir, "..");
304
+ }
305
+ const packageObject = JSON.parse(fs.readFileSync(pathLib.join(packageDir, 'package.json')).toString());
306
+ // Build the toolID based on name and version
307
+ config.toolID = packageObject.name + "-v" + packageObject.version;
308
+ config.toolName = packageObject.name;
309
+ config.toolVersion = packageObject.version;
310
+ // Using the uuid module generate a uuid number which is used to assoiciate to the scans that
311
+ // are done for a single run of karma.
312
+ config.scanID = crypto.randomUUID();
313
+ for (const key in ACConstants_js_1.ACConstants) {
314
+ config[key] = typeof config[key] !== "undefined" ? config[key] : ACConstants_js_1.ACConstants[key];
315
+ }
316
+ ACConstants_js_1.ACConstants.DEBUG && console.log("Config after initialization: ");
317
+ ACConstants_js_1.ACConstants.DEBUG && console.log(config);
318
+ ACConstants_js_1.ACConstants.DEBUG && console.log("END 'initializeDefaults' function");
319
+ }
320
+ /**
321
+ * This function is responsible reading in the .yaml or .yml or .json and set the config options based on this.
322
+ *
323
+ * @return {Object} config - return the config object that was read in, refer to function initializeDefaults
324
+ * to view how the object is to be constructed.
325
+ *
326
+ * @memberOf this
327
+ */
328
+ function loadConfigFromYAMLorJSONFile() {
329
+ return __awaiter(this, void 0, void 0, function* () {
330
+ ACConstants_js_1.ACConstants.DEBUG && console.log("START 'loadConfigFromYAMLorJSONFile' function");
331
+ // Variable Decleration
332
+ let config = {};
333
+ // Get the current working directory, where we will look for the yaml, yml or json file
334
+ let workingDir = process.cwd();
335
+ ACConstants_js_1.ACConstants.DEBUG && console.log("Working directory set to: " + workingDir);
336
+ // List of files to look for in that order, in the case even one is found we stop and load that as the config.
337
+ // Theses files will be checked for in the working directory:
338
+ // ./.achecker.yml
339
+ // ./.achecker.yaml
340
+ // ./achecker.js
341
+ // ./achecker.json
342
+ // ./.config/.achecker.yml
343
+ // ./.config/.achecker.yaml
344
+ // ./.config/achecker.js
345
+ // ./.config/achecker.json
346
+ // The node module, require will load js or json depending on which one is present, in the case
347
+ // both json and js are present it loads js first.
348
+ // Refer to ACConstants.js for more details
349
+ let configFiles = ACConstants_js_1.ACConstants.configFiles;
350
+ // Loop over all the possible location where the config file can reside, if one is found load it and break out.
351
+ for (let i = 0; i < configFiles.length; i++) {
352
+ // Get the full path to the config file we are going to check
353
+ let fileToCheck = pathLib.join(workingDir, configFiles[i]);
354
+ ACConstants_js_1.ACConstants.DEBUG && console.log("Checking file: " + fileToCheck);
355
+ // Get the extension of the file we are about to scan
356
+ let fileExtension = fileToCheck.substr(fileToCheck.lastIndexOf('.') + 1);
357
+ // If this is a yml or yaml file verify that the file exists and then load as such.
358
+ if (fileExtension === "yml" || fileExtension === "yaml") {
359
+ // Start checking which files exists, if it exists then load it as the config that was read in
360
+ // We only allow specifying a file, and the order it checks is based on what is specified in the array.
361
+ // i.e. So in the case that it finds yml, it will load and not check the rest, etc...
362
+ if (fs.existsSync(fileToCheck)) {
363
+ ACConstants_js_1.ACConstants.DEBUG && console.log("File: " + fileToCheck + " exists loading it.");
364
+ ACConstants_js_1.ACConstants.DEBUG && console.log("Loading as YAML file.");
365
+ // Load in as yml or yaml file and return this object
366
+ return YAML.load(fs.readFileSync(fileToCheck), 'utf8');
367
+ }
368
+ }
369
+ else {
370
+ ACConstants_js_1.ACConstants.DEBUG && console.log("Trying to load as json or js.");
371
+ // Need to use try/catch mech so that in the case the require throws an exception, we can
372
+ // catch this and discatd the error, as in the case there is no config file provided then
373
+ // we load in default values.
374
+ try {
375
+ // call the resolve to check if the file exists or not, and get the actualy path if it was js or json
376
+ let jsOrJSONFile = require.resolve(fileToCheck);
377
+ // Only try to load the achecker js or json file if it exists.
378
+ if (jsOrJSONFile) {
379
+ ACConstants_js_1.ACConstants.DEBUG && console.log("Loading: " + jsOrJSONFile);
380
+ // Load in as json or js and return this object
381
+ try {
382
+ return require(fileToCheck);
383
+ }
384
+ catch (err) {
385
+ try {
386
+ return yield Promise.resolve(`${fileToCheck}`).then(s => __importStar(require(s)));
387
+ }
388
+ catch (err) {
389
+ return JSON.parse(fs.readFileSync(jsOrJSONFile).toString());
390
+ }
391
+ }
392
+ }
393
+ }
394
+ catch (e) {
395
+ ACConstants_js_1.ACConstants.DEBUG && console.log("JSON or JS file does not exists, will load default config.");
396
+ }
397
+ }
398
+ }
399
+ ACConstants_js_1.ACConstants.DEBUG && console.log("END 'loadConfigFromYAMLorJSONFile' function");
400
+ return config;
401
+ });
402
+ }
403
+ /**
404
+ * This function is responsible for processing the karma configuration for accessibility-checker.
405
+ * The ACConfig provided in the Karma configuration will be processed by this
406
+ * function and then the config variables will be assoiciated to the global space so that
407
+ * they can be accessed from window.__karma__.config
408
+ *
409
+ * @param {Object} config - All the Karma configuration, we will extract what we need from this over
410
+ * all object, we need the entire object so that we can reasign some config
411
+ * variables to global scope so that all karma testscases/scripts can access
412
+ * them.
413
+ *
414
+ * @return - N/A - Object will be processed and all the params that are needed for this module will
415
+ * be extracted and then the entire object will be added to global space.
416
+ *
417
+ * @memberOf this
418
+ */
419
+ function processConfiguration(config) {
420
+ return __awaiter(this, void 0, void 0, function* () {
421
+ ACConstants_js_1.ACConstants.DEBUG && console.log("START 'processConfiguration' function");
422
+ // Variable Decleration
423
+ let ACConfig = null;
424
+ let configFromFile = null;
425
+ // Read in the .yaml (.yml) or .json file to load in the configuration
426
+ configFromFile = yield loadConfigFromYAMLorJSONFile();
427
+ ACConstants_js_1.ACConstants.DEBUG && console.log("Loaded config from file: ");
428
+ ACConstants_js_1.ACConstants.DEBUG && console.log(configFromFile);
429
+ // In the case configuration was provided in a yaml, yml or json file, then set this as the configuration
430
+ // otherwise load them from the Karma configuration.
431
+ if (configFromFile !== null && typeof (configFromFile) !== "undefined" && Object.keys(configFromFile).length !== 0) {
432
+ ACConstants_js_1.ACConstants.DEBUG && console.log("Using config which was loaded from config file.");
433
+ ACConfig = configFromFile;
434
+ }
435
+ else if (config !== null && typeof (config) !== "undefined" && Object.keys(config).length !== 0) {
436
+ // Extract the ACConfig from the overall karma configuration, in the case config file
437
+ // was not provided.
438
+ ACConfig = config;
439
+ }
440
+ else {
441
+ ACConfig = JSON.parse(JSON.stringify(ACConstants_js_1.ACConstants));
442
+ }
443
+ // In the case the ACConfig object is not defined, then define it with default config options so
444
+ // it can be set in window.__karma__.config.ACConfig, so that we know even in the testcases, other
445
+ // wrapper scripts that there was nothing defined at all, and at the same time to make sure that this
446
+ // code was actually executed.
447
+ initializeDefaults(ACConfig);
448
+ // Now we process the final accessibility-checker config object that is build to make sure it is valid, also need to perform some
449
+ // mapping for provided paremeters to actualy read by the engine.
450
+ yield processACConfig(ACConfig);
451
+ // In the case the Karma config is set to config.LOG_DEBUG then also enable the accessibility-checker debuging
452
+ ACConfig.DEBUG = ACConstants_js_1.ACConstants.DEBUG;
453
+ ACConstants_js_1.ACConstants.DEBUG && console.log("END 'processConfiguration' function");
454
+ return ACConfig;
455
+ });
456
+ }
457
+ let config = null;
458
+ class ACConfigManager {
459
+ static setConfig(inConfig) {
460
+ return __awaiter(this, void 0, void 0, function* () {
461
+ config = yield processConfiguration(inConfig);
462
+ ReporterManager_js_1.ReporterManager.setConfig(config);
463
+ });
464
+ }
465
+ static getConfig() {
466
+ return __awaiter(this, void 0, void 0, function* () {
467
+ return this.getConfigUnsupported();
468
+ });
469
+ }
470
+ static getConfigUnsupported() {
471
+ return __awaiter(this, void 0, void 0, function* () {
472
+ if (!config) {
473
+ yield ACConfigManager.setConfig();
474
+ }
475
+ return config;
476
+ });
477
+ }
478
+ static getConfigNow() {
479
+ return config;
480
+ }
481
+ }
482
+ exports.ACConfigManager = ACConfigManager;
483
+ //# sourceMappingURL=ACConfigManager.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ACConfigManager.js","sourceRoot":"","sources":["../../../../../src-ts/lib/common/config/ACConfigManager.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyEA,0CA8BC;AAvGD;;;;;;;;;;;;;;8EAc8E;AAC9E,uCAAuC;AACvC,8CAAgC;AAChC,uCAAyB;AACzB,8CAAgC;AAChC,qDAA+C;AAC/C,+CAAiC;AAEjC,kDAAgD;AAChD,qEAA+D;AAC/D,gDAAwB;AAExB,uGAAuG;AACvG,uCAAuC;AAEvC;;;;;;;;;;;;;;;;;;GAkBG;AACH,SAAS,eAAe,CAAC,QAA2B;IAChD,4BAAW,CAAC,KAAK,IAAI,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC,CAAC;IAErE,4BAAW,CAAC,KAAK,IAAI,OAAO,CAAC,GAAG,CAAC,uCAAuC,CAAC,CAAC;IAC1E,4BAAW,CAAC,KAAK,IAAI,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IAE3C,4BAAW,CAAC,KAAK,IAAI,OAAO,CAAC,GAAG,CAAC,gCAAgC,CAAC,CAAC;IAEnE,oEAAoE;IACpE,IAAI,QAAQ,YAAY,KAAK,EAAE,CAAC;QAC5B,OAAO,QAAQ,CAAC;IACpB,CAAC;IACD,mHAAmH;SAC9G,IAAI,OAAO,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C;KAAA;IAED,MAAM,CAAO,SAAS;;YAClB,OAAO,IAAI,CAAC,oBAAoB,EAAE,CAAC;QACvC,CAAC;KAAA;IAED,MAAM,CAAO,oBAAoB;;YAC7B,IAAI,CAAC,MAAM,EAAE,CAAC;gBACV,MAAM,eAAe,CAAC,SAAS,EAAE,CAAC;YACtC,CAAC;YACD,OAAO,MAAM,CAAC;QAClB,CAAC;KAAA;IAED,MAAM,CAAC,YAAY;QACf,OAAO,MAAM,CAAC;IAClB,CAAC;CACJ;AApBD,0CAoBC"}
@@ -0,0 +1,17 @@
1
+ /******************************************************************************
2
+ Copyright:: 2020- IBM, Inc
3
+
4
+ Licensed under the Apache License, Version 2.0 (the "License");
5
+ you may not use this file except in compliance with the License.
6
+ You may obtain a copy of the License at
7
+
8
+ http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ Unless required by applicable law or agreed to in writing, software
11
+ distributed under the License is distributed on an "AS IS" BASIS,
12
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ See the License for the specific language governing permissions and
14
+ limitations under the License.
15
+ *****************************************************************************/
16
+ import { IConfigInternal } from "./IConfig.js";
17
+ export declare const ACConstants: IConfigInternal;
@@ -0,0 +1,111 @@
1
+ "use strict";
2
+ /******************************************************************************
3
+ Copyright:: 2020- IBM, Inc
4
+
5
+ Licensed under the Apache License, Version 2.0 (the "License");
6
+ you may not use this file except in compliance with the License.
7
+ You may obtain a copy of the License at
8
+
9
+ http://www.apache.org/licenses/LICENSE-2.0
10
+
11
+ Unless required by applicable law or agreed to in writing, software
12
+ distributed under the License is distributed on an "AS IS" BASIS,
13
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ See the License for the specific language governing permissions and
15
+ limitations under the License.
16
+ *****************************************************************************/
17
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
18
+ if (k2 === undefined) k2 = k;
19
+ var desc = Object.getOwnPropertyDescriptor(m, k);
20
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
21
+ desc = { enumerable: true, get: function() { return m[k]; } };
22
+ }
23
+ Object.defineProperty(o, k2, desc);
24
+ }) : (function(o, m, k, k2) {
25
+ if (k2 === undefined) k2 = k;
26
+ o[k2] = m[k];
27
+ }));
28
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
29
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
30
+ }) : function(o, v) {
31
+ o["default"] = v;
32
+ });
33
+ var __importStar = (this && this.__importStar) || (function () {
34
+ var ownKeys = function(o) {
35
+ ownKeys = Object.getOwnPropertyNames || function (o) {
36
+ var ar = [];
37
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
38
+ return ar;
39
+ };
40
+ return ownKeys(o);
41
+ };
42
+ return function (mod) {
43
+ if (mod && mod.__esModule) return mod;
44
+ var result = {};
45
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
46
+ __setModuleDefault(result, mod);
47
+ return result;
48
+ };
49
+ })();
50
+ Object.defineProperty(exports, "__esModule", { value: true });
51
+ exports.ACConstants = void 0;
52
+ /*******************************************************************************
53
+ * NAME: ACConstants.js
54
+ * DESCRIPTION: Stores all the constants that are used by karma-ibma.
55
+ *******************************************************************************/
56
+ // Load all the modules that are needed
57
+ const os_1 = require("os");
58
+ const pathLib = __importStar(require("path"));
59
+ const IConfig_js_1 = require("./IConfig.js");
60
+ // Used to specify all the constant
61
+ exports.ACConstants = {
62
+ DEBUG: process.env.DEBUG === "true",
63
+ maxTabs: 1,
64
+ policies: ["IBM_Accessibility"],
65
+ // Specify the default rule pack server to use. (Where to pull the rules and engine from).
66
+ // - JSDelivr CDN
67
+ ruleServer: "https://cdn.jsdelivr.net/npm/accessibility-checker-engine",
68
+ // - IBM Cloud hosting
69
+ // ruleServer: "https://able.ibm.com/rules",
70
+ //Specify the rule set to be use.
71
+ ruleArchive: "latest",
72
+ // Specify default violation levels on which to fail the test.
73
+ // i.e. If specified violation then the testcase will only fail if
74
+ // a violation is found uring the scan.
75
+ failLevels: [IConfig_js_1.eRuleLevel.violation, IConfig_js_1.eRuleLevel.potentialviolation],
76
+ // Specify default violation levels which should be reported.
77
+ // i.e. If specified violation then in the report it would only contain
78
+ // results which are level of violation.
79
+ reportLevels: [IConfig_js_1.eRuleLevel.violation, IConfig_js_1.eRuleLevel.potentialviolation],
80
+ // Specify default value if screenshoot should be captured of the current page that is being scanned.
81
+ captureScreenshots: false,
82
+ outputFilenameTimestamp: true,
83
+ // Specify default value for which type should the results be outputted to
84
+ outputFormat: ["json"],
85
+ // Specify default location where the results should be saved
86
+ outputFolder: "results",
87
+ // Specify default location where the baselines should be saved
88
+ baselineFolder: "baselines",
89
+ // Default cache folder (for ace-node.js / archives.json)
90
+ cacheFolder: `${(0, os_1.tmpdir)()}/accessibility-checker/`,
91
+ // Specify default value for Which file extensions should be checked
92
+ extensions: ["html", "htm", "svg"],
93
+ // List of files to look for in that order, in the case even one is found we stop and load that as the config.
94
+ // Theses files will be checked for in the working directory:
95
+ // ./.achecker.yml
96
+ // ./.achecker.yaml
97
+ // ./achecker.js
98
+ // ./achecker.json
99
+ // ./.config/.achecker.yml
100
+ // ./.config/.achecker.yaml
101
+ // ./.config/achecker.js
102
+ // ./.config/achecker.json
103
+ // The node module, require will load js or json depending on which one is present, in the case
104
+ // both json and js are present it loads js first.
105
+ configFiles: [".achecker.yml", ".achecker.yaml", "achecker", "aceconfig", pathLib.join(".config", ".achecker.yml"), pathLib.join(".config", ".achecker.yaml"), pathLib.join(".config", "achecker"), pathLib.join(".config", "aceconfig")],
106
+ ignoreHTTPSErrors: false,
107
+ headless: "shell",
108
+ perfMetrics: true,
109
+ engineMode: "DEFAULT"
110
+ };
111
+ //# sourceMappingURL=ACConstants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ACConstants.js","sourceRoot":"","sources":["../../../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