@axe-core/watcher 3.16.0-next.bc42b90e → 3.16.0-next.bff3a1e5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (60) hide show
  1. package/dist/Controller.d.ts +1 -1
  2. package/dist/Controller.js +33 -34
  3. package/dist/Controller.js.map +1 -1
  4. package/dist/cypress.js +2 -0
  5. package/dist/cypress.js.map +1 -1
  6. package/dist/cypressCommands.js +37 -6
  7. package/dist/cypressCommands.js.map +1 -1
  8. package/dist/index.d.ts +1 -1
  9. package/dist/index.js.map +1 -1
  10. package/dist/playwright.d.ts +1 -1
  11. package/dist/playwright.js +6 -1
  12. package/dist/playwright.js.map +1 -1
  13. package/dist/playwrightTest.d.ts +9 -3
  14. package/dist/playwrightTest.js +10 -5
  15. package/dist/playwrightTest.js.map +1 -1
  16. package/dist/playwrightWrapping.d.ts +1 -0
  17. package/dist/playwrightWrapping.js +15 -7
  18. package/dist/playwrightWrapping.js.map +1 -1
  19. package/dist/puppeteer.js +4 -0
  20. package/dist/puppeteer.js.map +1 -1
  21. package/dist/utils/assertVariablesWereWritten.d.ts +1 -0
  22. package/dist/utils/assertVariablesWereWritten.js +15 -0
  23. package/dist/utils/assertVariablesWereWritten.js.map +1 -0
  24. package/dist/utils/checkUserArgs.d.ts +8 -0
  25. package/dist/utils/checkUserArgs.js +10 -0
  26. package/dist/utils/checkUserArgs.js.map +1 -0
  27. package/dist/utils/proxyHandlers.d.ts +2 -0
  28. package/dist/utils/proxyHandlers.js +14 -1
  29. package/dist/utils/proxyHandlers.js.map +1 -1
  30. package/dist/wdio.js +5 -0
  31. package/dist/wdio.js.map +1 -1
  32. package/dist/webdriver.js +4 -0
  33. package/dist/webdriver.js.map +1 -1
  34. package/extension/background.js +1 -1
  35. package/extension/content.js +1 -1
  36. package/package.json +2 -2
  37. package/dist/utils/headlessNotSupportedError.test.d.ts +0 -1
  38. package/dist/utils/headlessNotSupportedError.test.js +0 -21
  39. package/dist/utils/headlessNotSupportedError.test.js.map +0 -1
  40. package/dist/utils/initializeSession.test.d.ts +0 -1
  41. package/dist/utils/initializeSession.test.js +0 -177
  42. package/dist/utils/initializeSession.test.js.map +0 -1
  43. package/dist/utils/isValidExcludePattern.test.d.ts +0 -1
  44. package/dist/utils/isValidExcludePattern.test.js +0 -17
  45. package/dist/utils/isValidExcludePattern.test.js.map +0 -1
  46. package/dist/utils/mergeChromeArgs.test.d.ts +0 -1
  47. package/dist/utils/mergeChromeArgs.test.js +0 -257
  48. package/dist/utils/mergeChromeArgs.test.js.map +0 -1
  49. package/dist/utils/proxyHandlers.test.d.ts +0 -1
  50. package/dist/utils/proxyHandlers.test.js +0 -27
  51. package/dist/utils/proxyHandlers.test.js.map +0 -1
  52. package/dist/utils/validateAxeRunContext.test.d.ts +0 -1
  53. package/dist/utils/validateAxeRunContext.test.js +0 -97
  54. package/dist/utils/validateAxeRunContext.test.js.map +0 -1
  55. package/dist/utils/validateAxeRunOptions.test.d.ts +0 -1
  56. package/dist/utils/validateAxeRunOptions.test.js +0 -215
  57. package/dist/utils/validateAxeRunOptions.test.js.map +0 -1
  58. package/dist/utils/writeVariables.test.d.ts +0 -1
  59. package/dist/utils/writeVariables.test.js +0 -200
  60. package/dist/utils/writeVariables.test.js.map +0 -1
package/dist/puppeteer.js CHANGED
@@ -9,6 +9,8 @@ const Controller_1 = __importDefault(require("./Controller"));
9
9
  const headlessNotSupportedError_1 = require("./utils/headlessNotSupportedError");
10
10
  const mergeChromeArgs_1 = __importDefault(require("./utils/mergeChromeArgs"));
11
11
  const writeVariables_1 = __importDefault(require("./utils/writeVariables"));
12
+ const checkUserArgs_1 = require("./utils/checkUserArgs");
13
+ const assertVariablesWereWritten_1 = require("./utils/assertVariablesWereWritten");
12
14
  function headlessNotSupportedError(config) {
13
15
  if (!(config === null || config === void 0 ? void 0 : config.headless) || config.headless === 'new') {
14
16
  return;
@@ -21,6 +23,7 @@ function headlessNotSupportedError(config) {
21
23
  function puppeteerConfig(opts) {
22
24
  const { axe, ...config } = opts;
23
25
  let { args = [] } = config;
26
+ (0, checkUserArgs_1.checkUserArgs)(args);
24
27
  (0, writeVariables_1.default)(axe);
25
28
  headlessNotSupportedError(config);
26
29
  const existingArgs = args;
@@ -34,6 +37,7 @@ function puppeteerConfig(opts) {
34
37
  class PuppeteerController extends Controller_1.default {
35
38
  constructor(driver) {
36
39
  super({ debugLoggerName: 'PuppeteerController' });
40
+ (0, assertVariablesWereWritten_1.assertVariablesWereWritten)('Puppeteer', 'puppeteerConfig()');
37
41
  this.driver = driver;
38
42
  }
39
43
  async executeScript(fn, ...args) {
@@ -1 +1 @@
1
- {"version":3,"file":"puppeteer.js","sourceRoot":"","sources":["../src/puppeteer.ts"],"names":[],"mappings":";;;;;;AA6CA,0CAkBC;AAxDD,8DAAqC;AACrC,iFAA6E;AAC7E,8EAAqD;AACrD,4EAA2E;AAW3E,SAAS,yBAAyB,CAChC,MAAuD;IAEvD,IAAI,CAAC,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,QAAQ,CAAA,IAAI,MAAM,CAAC,QAAQ,KAAK,KAAK,EAAE,CAAC;QACnD,OAAM;IACR,CAAC;IAED,IAAI,MAAM,CAAC,QAAQ,KAAK,OAAO,EAAE,CAAC;QAChC,MAAM,IAAI,qDAAyB,CACjC,mGAAmG,CACpG,CAAA;IACH,CAAC;IAED,MAAM,IAAI,qDAAyB,CACjC,8HAA8H,CAC/H,CAAA;AACH,CAAC;AAQD,SAAgB,eAAe,CAAC,IAA6B;IAC3D,MAAM,EAAE,GAAG,EAAE,GAAG,MAAM,EAAE,GAAG,IAAI,CAAA;IAC/B,IAAI,EAAE,IAAI,GAAG,EAAE,EAAE,GAAG,MAAM,CAAA;IAE1B,IAAA,wBAAc,EAAC,GAAG,CAAC,CAAA;IAEnB,yBAAyB,CACvB,MAAyD,CAC1D,CAAA;IAED,MAAM,YAAY,GAAG,IAAI,CAAA;IACzB,IAAI,GAAG,IAAA,yBAAe,EAAC,YAAY,EAAE,EAAE,sBAAsB,EAAE,IAAI,EAAE,CAAC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
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.assertVariablesWereWritten = void 0;
7
+ const assert_1 = __importDefault(require("assert"));
8
+ const fs_1 = __importDefault(require("fs"));
9
+ const constants_1 = require("./constants");
10
+ const assertVariablesWereWritten = (integration, method) => {
11
+ const exists = fs_1.default.existsSync(constants_1.PATH_TO_EXTENSION_VARIABLES);
12
+ (0, assert_1.default)(exists, `${integration} is not configured for @axe-core/watcher. Please ensure that @axe-core/watcher's ${method} is invoked. All tests will fail with this error.`);
13
+ };
14
+ exports.assertVariablesWereWritten = assertVariablesWereWritten;
15
+ //# sourceMappingURL=assertVariablesWereWritten.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assertVariablesWereWritten.js","sourceRoot":"","sources":["../../src/utils/assertVariablesWereWritten.ts"],"names":[],"mappings":";;;;;;AAAA,oDAA2B;AAC3B,4CAAmB;AACnB,2CAAyD;AAElD,MAAM,0BAA0B,GAAG,CACxC,WAAmB,EACnB,MAAc,EACR,EAAE;IACR,MAAM,MAAM,GAAG,YAAE,CAAC,UAAU,CAAC,uCAA2B,CAAC,CAAA;IACzD,IAAA,gBAAM,EACJ,MAAM,EACN,GAAG,WAAW,oFAAoF,MAAM,mDAAmD,CAC5J,CAAA;AACH,CAAC,CAAA;AATY,QAAA,0BAA0B,8BAStC"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * A utility function to verify the user's Chrome arguments for compatibility
3
+ * and provide a clear error message if they're not supported by Watcher.
4
+ *
5
+ * @param args The user provided arguments to check on supporting.
6
+ * @throws Throws an error, if the user provides at least one of the following flags: [--incognito]
7
+ */
8
+ export declare const checkUserArgs: (args: string[]) => void;
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.checkUserArgs = void 0;
4
+ const checkUserArgs = (args) => {
5
+ if (args.includes('--incognito') || args.includes('incognito')) {
6
+ throw new Error(`You cannot use the **--incognito** command-line option with Chrome; otherwise, your tests will silently fail. If you're using incognito mode to avoid writing cached files to disk (cached files are kept in memory only in incognito mode), use your testing suite's caching methods instead.`);
7
+ }
8
+ };
9
+ exports.checkUserArgs = checkUserArgs;
10
+ //# sourceMappingURL=checkUserArgs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"checkUserArgs.js","sourceRoot":"","sources":["../../src/utils/checkUserArgs.ts"],"names":[],"mappings":";;;AAQO,MAAM,aAAa,GAAG,CAAC,IAAc,EAAQ,EAAE;IAGpD,IAAI,IAAI,CAAC,QAAQ,CAAC,aAAa,CAAC,IAAI,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,EAAE,CAAC;QAC/D,MAAM,IAAI,KAAK,CACb,gSAAgS,CACjS,CAAA;IACH,CAAC;AACH,CAAC,CAAA;AARY,QAAA,aAAa,iBAQzB"}
@@ -1,4 +1,5 @@
1
1
  import type Controller from '../Controller';
2
+ import { type PlaywrightController } from '../playwright';
2
3
  declare const kWrapped: unique symbol;
3
4
  export type PossiblyWrapped<T> = T & {
4
5
  [kWrapped]?: boolean;
@@ -8,5 +9,6 @@ export declare const isWrapped: <T>(o: PossiblyWrapped<T> | null) => boolean;
8
9
  /** Mark the given object as wrapped. */
9
10
  export declare const markAsWrapped: (o: unknown) => void;
10
11
  export declare const proxiedGetFuncWithAnalyze: <T>(target: T, prop: keyof T, controller: Controller) => (...args: unknown[]) => Promise<unknown>;
12
+ export declare const proxiedGetFuncWithAnalyzeWrapped: <T>(target: T, prop: keyof T, controller: PlaywrightController) => (...args: unknown[]) => Promise<unknown>;
11
13
  export declare const proxiedGetWithoutAnalyze: <T>(target: T, prop: keyof T) => unknown;
12
14
  export {};
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.proxiedGetWithoutAnalyze = exports.proxiedGetFuncWithAnalyze = exports.markAsWrapped = exports.isWrapped = void 0;
3
+ exports.proxiedGetWithoutAnalyze = exports.proxiedGetFuncWithAnalyzeWrapped = exports.proxiedGetFuncWithAnalyze = exports.markAsWrapped = exports.isWrapped = void 0;
4
+ const playwrightWrapping_1 = require("../playwrightWrapping");
4
5
  const kWrapped = Symbol('axe watcher wrapped');
5
6
  const isWrapped = (o) => {
6
7
  if (!o) {
@@ -26,6 +27,18 @@ const proxiedGetFuncWithAnalyze = (target, prop, controller) => async (...args)
26
27
  return result;
27
28
  };
28
29
  exports.proxiedGetFuncWithAnalyze = proxiedGetFuncWithAnalyze;
30
+ const proxiedGetFuncWithAnalyzeWrapped = (target, prop, controller) => async (...args) => {
31
+ await controller.analyze({
32
+ __Method: prop,
33
+ __UserRequestedAnalyze: false
34
+ });
35
+ const result = await target[prop].call(target, ...args);
36
+ if (!result) {
37
+ return null;
38
+ }
39
+ return (0, playwrightWrapping_1.wrapElementHandle)(result, controller);
40
+ };
41
+ exports.proxiedGetFuncWithAnalyzeWrapped = proxiedGetFuncWithAnalyzeWrapped;
29
42
  const proxiedGetWithoutAnalyze = (target, prop) => {
30
43
  const original = target[prop];
31
44
  if (typeof original === 'function') {
@@ -1 +1 @@
1
- {"version":3,"file":"proxyHandlers.js","sourceRoot":"","sources":["../../src/utils/proxyHandlers.ts"],"names":[],"mappings":";;;AAEA,MAAM,QAAQ,GAAG,MAAM,CAAC,qBAAqB,CAAC,CAAA;AAOvC,MAAM,SAAS,GAAG,CAAI,CAA4B,EAAW,EAAE;IACpE,IAAI,CAAC,CAAC,EAAE,CAAC;QACP,OAAO,KAAK,CAAA;IACd,CAAC;IACD,OAAO,CAAC,CAAC,QAAQ,CAAC,KAAK,IAAI,CAAA;AAC7B,CAAC,CAAA;AALY,QAAA,SAAS,aAKrB;AAGM,MAAM,aAAa,GAAG,CAAC,CAAU,EAAQ,EAAE;IAChD,MAAM,CAAC,cAAc,CAAC,CAAC,EAAE,QAAQ,EAAE;QACjC,YAAY,EAAE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,CAAC;IAED,OAAO,IAAA,sCAAiB,EAAC,MAAM,EAAE,UAAU,CAAC,CAAA;AAC9C,CAAC,CAAA;AAhBU,QAAA,gCAAgC,oCAgB1C;AAEI,MAAM,wBAAwB,GAAG,CACtC,MAAS,EACT,IAAa,EACJ,EAAE;IACX,MAAM,QAAQ,GAAG,MAAM,CAAC,IAAI,CAAC,CAAA;IAE7B,IAAI,OAAO,QAAQ,KAAK,UAAU,EAAE,CAAC;QAWnC,MAAM,cAAc,GAAG,QAAQ,CAAC,IAAI,CAAA;QACpC,MAAM,iBAAiB,GAAG;YAKxB,CAAC,cAAc,CAAC,EAAE,UAAU,GAAG,IAAe;gBAC5C,OAAO,QAAQ,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,IAAI,CAAC,CAAA;YACvC,CAAC;SACF,CAAA;QAED,OAAO,iBAAiB,CAAC,cAAc,CAAC,CAAA;IAC1C,CAAC;IAED,OAAO,QAAQ,CAAA;AACjB,CAAC,CAAA;AAhCY,QAAA,wBAAwB,4BAgCpC"}
package/dist/wdio.js CHANGED
@@ -12,6 +12,8 @@ const writeVariables_1 = __importDefault(require("./utils/writeVariables"));
12
12
  const constants_1 = require("./utils/constants");
13
13
  const headlessNotSupportedError_1 = require("./utils/headlessNotSupportedError");
14
14
  const mergeChromeArgs_1 = __importDefault(require("./utils/mergeChromeArgs"));
15
+ const checkUserArgs_1 = require("./utils/checkUserArgs");
16
+ const assertVariablesWereWritten_1 = require("./utils/assertVariablesWereWritten");
15
17
  const noop = () => {
16
18
  };
17
19
  function wdioConfig({ axe, ...options }) {
@@ -22,6 +24,7 @@ function wdioConfig({ axe, ...options }) {
22
24
  if (['headless', '--headless'].some(flag => args.includes(flag))) {
23
25
  throw new headlessNotSupportedError_1.HeadlessNotSupportedError(`In WebdriverIO, use "headless=new" instead of "headless" in the "args" property of your "${CHROME_OPTIONS}" browser capability configuration.`);
24
26
  }
27
+ (0, checkUserArgs_1.checkUserArgs)(args);
25
28
  return {
26
29
  ...options,
27
30
  capabilities: {
@@ -57,6 +60,7 @@ function wdioTestRunner(...params) {
57
60
  if (['headless', '--headless'].some(flag => args.includes(flag))) {
58
61
  throw new headlessNotSupportedError_1.HeadlessNotSupportedError(`In WebdriverIO, use "headless=new" instead of "headless" in the "args" property of your "${CHROME_OPTIONS}" browser capability configuration.`);
59
62
  }
63
+ (0, checkUserArgs_1.checkUserArgs)(args);
60
64
  chromeOpts.args = (0, mergeChromeArgs_1.default)(args, { disableOtherExtensions: false });
61
65
  const { onPrepare = noop, onComplete = noop } = config;
62
66
  return {
@@ -83,6 +87,7 @@ function wdioTestRunner(...params) {
83
87
  class WdioController extends Controller_1.default {
84
88
  constructor(driver) {
85
89
  super({ debugLoggerName: 'WdioController' });
90
+ (0, assertVariablesWereWritten_1.assertVariablesWereWritten)('WDIO', 'wdioConfig()');
86
91
  this.driver = driver;
87
92
  }
88
93
  async executeScript(fn, ...args) {
package/dist/wdio.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"wdio.js","sourceRoot":"","sources":["../src/wdio.ts"],"names":[],"mappings":";;;;;;AAkCA,gCA0BC;AAgBD,wCA8DC;AAnID,4CAAmB;AACnB,8DAAqC;AACrC,4EAA2E;AAC3E,iDAAwD;AACxD,iFAA6E;AAC7E,8EAAqD;AAErD,MAAM,IAAI,GAAG,GAAS,EAAE;AAExB,CAAC,CAAA;AAkBD,SAAgB,UAAU,CAAC,EAAE,GAAG,EAAE,GAAG,OAAO,EAAW;;IACrD,IAAA,wBAAc,EAAC,GAAG,CAAC,CAAA;IAInB,MAAM,UAAU,GAAG,CAAA,MAAC,OAAO,CAAC,YAAoB,0CAAG,oBAAoB,CAAC,KAAI,EAAE,CAAA;IAC9E,MAAM,IAAI,GAAG,UAAU,CAAC,IAAI,IAAI,EAAE,CAAA;IAElC,IAAI,CAAC,UAAU,EAAE,YAAY,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,CA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ACb,QAAQ;IACR,gBAAgB;IAChB,UAAU;IACV,aAAa;IACb,kBAAkB;IAClB,kBAAkB;IAClB,gBAAgB;IAChB,cAAc;IACd,WAAW;CACZ,CAAA;AAGI,MAAM,QAAQ,GAAG,CACtB,OAAgB,EAChB,UAA0B,EACjB,EAAE;IACX,MAAM,OAAO,GAAG,KAAK,EACnB,EAA4C,EAC5C,GAAG,IAAe,EACA,EAAE;QACpB,MAAM,GAAG,GAAG,MAAM,EAAE,CAAC,GAAG,IAAI,CAAC,CAAA;QAC7B,MAAM,UAAU,CAAC,OAAO,CAAC,EAAE,sBAAsB,EAAE,KAAK,EAAE,CAAC,CAAA;QAC3D,OAAO,GAAG,CAAA;IACZ,CAAC,CAAA;IAED,KAAK,MAAM,MAAM,IAAI,+BAAuB,EAAE,CAAC;QAC7C,OAAO,CAAC,gBAAgB,CAAC,MAAa,EAAE,OAAO,CAAC,CAAA;IAClD,CAAC;IAED,KAAK,MAAM,MAAM,IAAI,+BAAuB,EAAE,CAAC;QAC7C,OAAO,CAAC,gBAAgB,CAAC,MAAa,EAAE,OAAO,EAAE,IAAI,CAAC,CAAA;IACxD,CAAC;IAED,OAAO,OAAO,CAAA;AAChB,CAAC,CAAA;AAtBY,QAAA,QAAQ,YAsBpB"}
package/dist/webdriver.js CHANGED
@@ -9,6 +9,8 @@ const Controller_1 = __importDefault(require("./Controller"));
9
9
  const writeVariables_1 = __importDefault(require("./utils/writeVariables"));
10
10
  const headlessNotSupportedError_1 = require("./utils/headlessNotSupportedError");
11
11
  const mergeChromeArgs_1 = __importDefault(require("./utils/mergeChromeArgs"));
12
+ const checkUserArgs_1 = require("./utils/checkUserArgs");
13
+ const assertVariablesWereWritten_1 = require("./utils/assertVariablesWereWritten");
12
14
  var webdriverWrapping_1 = require("./webdriverWrapping");
13
15
  Object.defineProperty(exports, "wrapWebdriver", { enumerable: true, get: function () { return webdriverWrapping_1.wrapDriver; } });
14
16
  function webdriverConfig(arg) {
@@ -18,6 +20,7 @@ function webdriverConfig(arg) {
18
20
  (0, writeVariables_1.default)(axe);
19
21
  const opts = options ? options : new chrome.Options();
20
22
  const existingArgs = (((_a = opts === null || opts === void 0 ? void 0 : opts.options_) === null || _a === void 0 ? void 0 : _a.args) || []);
23
+ (0, checkUserArgs_1.checkUserArgs)(existingArgs);
21
24
  opts.options_.args = (0, mergeChromeArgs_1.default)(existingArgs, {
22
25
  disableOtherExtensions: false
23
26
  });
@@ -29,6 +32,7 @@ function webdriverConfig(arg) {
29
32
  class WebdriverController extends Controller_1.default {
30
33
  constructor(driver) {
31
34
  super({ debugLoggerName: 'WebdriverController' });
35
+ (0, assertVariablesWereWritten_1.assertVariablesWereWritten)('WebDriver', 'webdriverConfig()');
32
36
  this.driver = driver;
33
37
  }
34
38
  async executeScript(fn, ...args) {
@@ -1 +1 @@
1
- {"version":3,"file":"webdriver.js","sourceRoot":"","sources":["../src/webdriver.ts"],"names":[],"mappings":";;;;;;AAmBA,0CA6BC;AA9CD,8DAAqC;AACrC,4EAA2E;AAC3E,iFAA6E;AAC7E,8EAAqD;AAErD,yDAAiE;AAAxD,kHAAA,UAAU,OAAiB;AAYpC,SAAgB,eAAe,CAAC,GAAkB;;IAGhD,MAAM,MAAM,GAAG,OAAO,CAAC,2BAA2B,CAAC,CAAA;IAEnD,MAAM,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG,GAAG,CAAA;IAC5B,IAAA,wBAAc,EAAC,GAAG,CAAC,CAAA;IAEnB,MAAM,IAAI,GAAY,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,MAAM,CAAC,OAAO,EAAE,CAAA;IAE9D,MAAM,YAAY,GAAG,CAAC,CAAA,MAAC,IAAY,aAAZ,IAAI,uBAAJ,IAAI,CAAU,QAAQ,0CAAE,IAAI,KAAI,EAAE,CAAa,CAErE;IAAC,IAAY,CAAC,QAAQ,CAAC,IAAI,GAAG,IAAA,yBAAe,EAAC,YAAY,EAAE;QAC3D,sBAAsB,EAAE,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