@o3r/schematics 10.0.0-next.14 → 10.0.0-next.16

Sign up to get free protection for your applications and to get access to all the features.
Files changed (74) hide show
  1. package/README.md +1 -1
  2. package/package.json +17 -12
  3. package/src/cli/environment.d.ts +2 -0
  4. package/src/cli/environment.d.ts.map +1 -0
  5. package/src/cli/environment.js +5 -0
  6. package/src/cli/environment.js.map +1 -0
  7. package/src/interfaces/angular-workspace.d.ts +16 -14
  8. package/src/interfaces/angular-workspace.d.ts.map +1 -1
  9. package/src/modules/modules.constants.d.ts +6 -2
  10. package/src/modules/modules.constants.d.ts.map +1 -1
  11. package/src/modules/modules.constants.js +5 -3
  12. package/src/modules/modules.constants.js.map +1 -1
  13. package/src/rule-factories/check-packages-peers/index.d.ts.map +1 -1
  14. package/src/rule-factories/check-packages-peers/index.js +4 -4
  15. package/src/rule-factories/check-packages-peers/index.js.map +1 -1
  16. package/src/rule-factories/dev-tools/devtools-registration.d.ts +20 -0
  17. package/src/rule-factories/dev-tools/devtools-registration.d.ts.map +1 -0
  18. package/src/rule-factories/dev-tools/devtools-registration.js +50 -0
  19. package/src/rule-factories/dev-tools/devtools-registration.js.map +1 -0
  20. package/src/rule-factories/dev-tools/index.d.ts +2 -0
  21. package/src/rule-factories/dev-tools/index.d.ts.map +1 -0
  22. package/src/rule-factories/dev-tools/index.js +5 -0
  23. package/src/rule-factories/dev-tools/index.js.map +1 -0
  24. package/src/rule-factories/eslint-fix/index.d.ts +1 -17
  25. package/src/rule-factories/eslint-fix/index.d.ts.map +1 -1
  26. package/src/rule-factories/eslint-fix/index.js +10 -24
  27. package/src/rule-factories/eslint-fix/index.js.map +1 -1
  28. package/src/rule-factories/index.d.ts +1 -0
  29. package/src/rule-factories/index.d.ts.map +1 -1
  30. package/src/rule-factories/index.js +1 -0
  31. package/src/rule-factories/index.js.map +1 -1
  32. package/src/rule-factories/ng-add/index.d.ts +2 -5
  33. package/src/rule-factories/ng-add/index.d.ts.map +1 -1
  34. package/src/rule-factories/ng-add/index.js +107 -83
  35. package/src/rule-factories/ng-add/index.js.map +1 -1
  36. package/src/tasks/eslint/index.d.ts +26 -1
  37. package/src/tasks/eslint/index.d.ts.map +1 -1
  38. package/src/tasks/eslint/index.js +15 -5
  39. package/src/tasks/eslint/index.js.map +1 -1
  40. package/src/utility/collection.d.ts +2 -5
  41. package/src/utility/collection.d.ts.map +1 -1
  42. package/src/utility/collection.js +11 -9
  43. package/src/utility/collection.js.map +1 -1
  44. package/src/utility/component.d.ts.map +1 -1
  45. package/src/utility/component.js +4 -3
  46. package/src/utility/component.js.map +1 -1
  47. package/src/utility/environment.d.ts +27 -0
  48. package/src/utility/environment.d.ts.map +1 -0
  49. package/src/utility/environment.js +51 -0
  50. package/src/utility/environment.js.map +1 -0
  51. package/src/utility/error.d.ts +7 -0
  52. package/src/utility/error.d.ts.map +1 -0
  53. package/src/utility/error.js +17 -0
  54. package/src/utility/error.js.map +1 -0
  55. package/src/utility/generation.d.ts +0 -1
  56. package/src/utility/generation.d.ts.map +1 -1
  57. package/src/utility/generation.js +7 -11
  58. package/src/utility/generation.js.map +1 -1
  59. package/src/utility/index.d.ts +9 -7
  60. package/src/utility/index.d.ts.map +1 -1
  61. package/src/utility/index.js +9 -7
  62. package/src/utility/index.js.map +1 -1
  63. package/src/utility/loaders.d.ts +19 -17
  64. package/src/utility/loaders.d.ts.map +1 -1
  65. package/src/utility/loaders.js +38 -18
  66. package/src/utility/loaders.js.map +1 -1
  67. package/src/utility/modules.d.ts +2 -7
  68. package/src/utility/modules.d.ts.map +1 -1
  69. package/src/utility/modules.js +5 -10
  70. package/src/utility/modules.js.map +1 -1
  71. package/src/utility/package-manager-runner.d.ts +16 -1
  72. package/src/utility/package-manager-runner.d.ts.map +1 -1
  73. package/src/utility/package-manager-runner.js +39 -1
  74. package/src/utility/package-manager-runner.js.map +1 -1
@@ -2,7 +2,6 @@ import { SchematicContext, Tree, UpdateRecorder } from '@angular-devkit/schemati
2
2
  import * as ts from 'typescript';
3
3
  /**
4
4
  * Get the path to the app.module.ts
5
- *
6
5
  * @param tree File tree
7
6
  * @param context Context of the rule
8
7
  * @param projectName The name of the project where to search for an app module file
@@ -13,12 +12,12 @@ export declare function getAppModuleFilePath(tree: Tree, context: SchematicConte
13
12
  *
14
13
  * @param tree File tree
15
14
  * @param context Context of the rule
15
+ * @param projectName
16
16
  */
17
- export declare function getMainFilePath(tree: Tree, context: SchematicContext): string | undefined;
17
+ export declare function getMainFilePath(tree: Tree, context: SchematicContext, projectName?: string): string | undefined;
18
18
  /**
19
19
  * Returns true if the project is an application and contains a TS file that imports the angular RouterModule in
20
20
  * one of its modules.
21
- *
22
21
  * @param tree
23
22
  * @param options @see RuleFactory.options
24
23
  * @param options.projectName
@@ -28,7 +27,6 @@ export declare function isApplicationThatUsesRouterModule(tree: Tree, options: {
28
27
  }): boolean | "" | undefined;
29
28
  /**
30
29
  * Add import to the main module
31
- *
32
30
  * @param name
33
31
  * @param file
34
32
  * @param sourceFile
@@ -43,7 +41,6 @@ export declare function isApplicationThatUsesRouterModule(tree: Tree, options: {
43
41
  export declare function addImportToModuleFile(name: string, file: string, sourceFile: ts.SourceFile, sourceFileContent: string, context: SchematicContext, recorder: UpdateRecorder, moduleFilePath: string, moduleIndex: number, moduleFunction?: string, override?: boolean): UpdateRecorder;
44
42
  /**
45
43
  * Insert import on top of the main module file
46
- *
47
44
  * @param name
48
45
  * @param file
49
46
  * @param sourceFile
@@ -54,7 +51,6 @@ export declare function addImportToModuleFile(name: string, file: string, source
54
51
  export declare function insertImportToModuleFile(name: string, file: string, sourceFile: ts.SourceFile, recorder: UpdateRecorder, moduleFilePath: string, isDefault?: boolean): UpdateRecorder;
55
52
  /**
56
53
  * Add providers to the main module
57
- *
58
54
  * @param name
59
55
  * @param file
60
56
  * @param sourceFile
@@ -68,7 +64,6 @@ export declare function insertImportToModuleFile(name: string, file: string, sou
68
64
  export declare function addProviderToModuleFile(name: string, file: string, sourceFile: ts.SourceFile, sourceFileContent: string, context: SchematicContext, recorder: UpdateRecorder, moduleFilePath: string, moduleIndex: number, customProvider?: string): UpdateRecorder;
69
65
  /**
70
66
  * Add custom code before the module definition
71
- *
72
67
  * @param line
73
68
  * @param file
74
69
  * @param recorder
@@ -1 +1 @@
1
- {"version":3,"file":"modules.d.ts","sourceRoot":"","sources":["../../../src/utility/modules.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,gBAAgB,EAAuB,IAAI,EAAE,cAAc,EAAC,MAAM,4BAA4B,CAAC;AACvG,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAejC;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,gBAAgB,EAAE,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,sBA0DtG;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,gBAAgB,sBAUpE;AAED;;;;;;;GAOG;AACH,wBAAgB,iCAAiC,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE;IAAE,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAAE,4BAgB1G;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,EAAE,CAAC,UAAU,EAAE,iBAAiB,EAAE,MAAM,EAAE,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,cAAc,EACrI,cAAc,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,cAAc,CAAC,EAAE,MAAM,EAAE,QAAQ,UAAQ,kBAoB3H;AAED;;;;;;;;;GASG;AACH,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,EAAE,CAAC,UAAU,EAAE,QAAQ,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,OAAO,kBAMpK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EAAE,QAAQ,EAAE,cAAc,EACrI,cAAc,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,cAAc,CAAC,EAAE,MAAM,EAAE,QAAQ,UAAQ,kBAoB3H;AAED;;;;;;;;GAQG;AACH,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,EAAE,CAAC,UAAU,EAAE,QAAQ,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,OAAO,kBAMpK;AAGD;;;;;;;;;;;GAWG;AACH,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,EAAE,CAAC,UAAU,EAAE,iBAAiB,EAAE,MAAM,EAAE,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,cAAc,EACrI,cAAc,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,cAAc,CAAC,EAAE,MAAM,kBAY3G;AAED;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,kBAK3G"}
@@ -12,13 +12,12 @@ const ast_1 = require("./ast");
12
12
  const loaders_1 = require("./loaders");
13
13
  /**
14
14
  * Get the path to the app.module.ts
15
- *
16
15
  * @param tree File tree
17
16
  * @param context Context of the rule
18
17
  * @param projectName The name of the project where to search for an app module file
19
18
  */
20
19
  function getAppModuleFilePath(tree, context, projectName) {
21
- const workspaceProject = (0, loaders_1.getProjectFromTree)(tree, projectName, 'application');
20
+ const workspaceProject = projectName ? (0, loaders_1.getWorkspaceConfig)(tree)?.projects[projectName] : undefined;
22
21
  // exit if not an application
23
22
  if (!workspaceProject) {
24
23
  context.logger.debug('Aborted. App module file path will be searched only in application project.');
@@ -69,9 +68,10 @@ exports.getAppModuleFilePath = getAppModuleFilePath;
69
68
  *
70
69
  * @param tree File tree
71
70
  * @param context Context of the rule
71
+ * @param projectName
72
72
  */
73
- function getMainFilePath(tree, context) {
74
- const workspaceProject = (0, loaders_1.getProjectFromTree)(tree, null, 'application');
73
+ function getMainFilePath(tree, context, projectName) {
74
+ const workspaceProject = projectName ? (0, loaders_1.getWorkspaceConfig)(tree)?.projects[projectName] : undefined;
75
75
  // exit if not an application
76
76
  if (!workspaceProject) {
77
77
  context.logger.debug('Register localization on main module only in application project');
@@ -84,13 +84,12 @@ exports.getMainFilePath = getMainFilePath;
84
84
  /**
85
85
  * Returns true if the project is an application and contains a TS file that imports the angular RouterModule in
86
86
  * one of its modules.
87
- *
88
87
  * @param tree
89
88
  * @param options @see RuleFactory.options
90
89
  * @param options.projectName
91
90
  */
92
91
  function isApplicationThatUsesRouterModule(tree, options) {
93
- const workspaceProject = (0, loaders_1.getProjectFromTree)(tree, options.projectName, 'application');
92
+ const workspaceProject = options.projectName ? (0, loaders_1.getWorkspaceConfig)(tree)?.projects[options.projectName] : undefined;
94
93
  const cwd = process.cwd().replace(/[\\/]+/g, '/');
95
94
  const root = (workspaceProject?.root && cwd.endsWith(workspaceProject.root)) ? workspaceProject.root.replace(/[^\\/]+/g, '..') : '.';
96
95
  return workspaceProject?.sourceRoot &&
@@ -110,7 +109,6 @@ function isApplicationThatUsesRouterModule(tree, options) {
110
109
  exports.isApplicationThatUsesRouterModule = isApplicationThatUsesRouterModule;
111
110
  /**
112
111
  * Add import to the main module
113
- *
114
112
  * @param name
115
113
  * @param file
116
114
  * @param sourceFile
@@ -149,7 +147,6 @@ function addImportToModuleFile(name, file, sourceFile, sourceFileContent, contex
149
147
  exports.addImportToModuleFile = addImportToModuleFile;
150
148
  /**
151
149
  * Insert import on top of the main module file
152
- *
153
150
  * @param name
154
151
  * @param file
155
152
  * @param sourceFile
@@ -167,7 +164,6 @@ function insertImportToModuleFile(name, file, sourceFile, recorder, moduleFilePa
167
164
  exports.insertImportToModuleFile = insertImportToModuleFile;
168
165
  /**
169
166
  * Add providers to the main module
170
- *
171
167
  * @param name
172
168
  * @param file
173
169
  * @param sourceFile
@@ -194,7 +190,6 @@ function addProviderToModuleFile(name, file, sourceFile, sourceFileContent, cont
194
190
  exports.addProviderToModuleFile = addProviderToModuleFile;
195
191
  /**
196
192
  * Add custom code before the module definition
197
- *
198
193
  * @param line
199
194
  * @param file
200
195
  * @param recorder
@@ -1 +1 @@
1
- {"version":3,"file":"modules.js","sourceRoot":"","sources":["../../../src/utility/modules.ts"],"names":[],"mappings":";;;AAAA,2DAAuG;AACvG,iCAAiC;AACjC,qEAK+C;AAC/C,+DAAgE;AAChE,8BAA8B;AAC9B,mCAA0C;AAC1C,kCAAkC;AAClC,+BAAiD;AACjD,uCAA6C;AAG7C;;;;;;GAMG;AACH,SAAgB,oBAAoB,CAAC,IAAU,EAAE,OAAyB,EAAE,WAA2B;IACrG,MAAM,gBAAgB,GAAG,IAAA,4BAAkB,EAAC,IAAI,EAAE,WAAW,EAAE,aAAa,CAAC,CAAC;IAC9E,6BAA6B;IAC7B,IAAI,CAAC,gBAAgB,EAAE;QACrB,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,6EAA6E,CAAC,CAAC;QACpG,OAAO,SAAS,CAAC;KAClB;IAED,MAAM,YAAY,GAAW,gBAAgB,CAAC,SAAU,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC;IAC5E,MAAM,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC,YAAY,CAAE,CAAC,QAAQ,EAAE,CAAC;IAErD,MAAM,2BAA2B,GAAG,QAAQ,CAAC,KAAK,CAAC,6BAA6B,CAAC,CAAC;IAClF,IAAI,CAAC,2BAA2B,IAAI,CAAC,2BAA2B,CAAC,CAAC,CAAC,EAAE;QACnE,MAAM,IAAI,gCAAmB,CAAC,iCAAiC,CAAC,CAAC;KAClE;IAED,MAAM,eAAe,GAAG,2BAA2B,CAAC,CAAC,CAAC,CAAC;IACvD,MAAM,UAAU,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mB;IAC1G,IAAI,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE;QACtD,OAAO,QAAQ,CAAC,UAAU,CAAC,WAAW,GAAG,CAAC,EAAE,GAAG,IAAI,MAAM,CAAC,CAAC;KAC5D;IACD,OAAO,QAAQ,CAAC;AAClB,CAAC;AALD,gDAKC"}
@@ -1,5 +1,5 @@
1
- import { WorkspaceSchema } from '../interfaces';
2
1
  import { logging } from '@angular-devkit/core';
2
+ import type { WorkspaceSchema } from '../interfaces';
3
3
  /** Support NPM package managers */
4
4
  export type SupportedPackageManagers = 'npm' | 'yarn';
5
5
  /** Support NPM package managers */
@@ -40,4 +40,19 @@ export declare function getPackageManagerRunner(workspaceConfig?: WorkspaceSchem
40
40
  * @param workspaceConfig Workspace configuration
41
41
  */
42
42
  export declare function getPackageManagerExecutor(workspaceConfig?: WorkspaceSchema | string | null): SupportedPackageManagerExecutors;
43
+ /**
44
+ * Get package manager version
45
+ *
46
+ * @param options Option to determine the final package manager
47
+ */
48
+ export declare function getPackageManagerVersion(options?: PackageManagerOptions): string | undefined;
49
+ /**
50
+ * Get package manager information
51
+ *
52
+ * @param options Option to determine the final package manager
53
+ */
54
+ export declare function getPackageManagerInfo(options?: PackageManagerOptions): {
55
+ name: SupportedPackageManagers;
56
+ version: string | undefined;
57
+ };
43
58
  //# sourceMappingURL=package-manager-runner.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"package-manager-runner.d.ts","sourceRoot":"","sources":["../../../src/utility/package-manager-runner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAE/C,mCAAmC;AACnC,MAAM,MAAM,wBAAwB,GAAG,KAAK,GAAG,MAAM,CAAC;AAEtD,mCAAmC;AACnC,MAAM,MAAM,8BAA8B,GAAG,GA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AC1C,MAAM,WAAW,qBAAqB;IACpC,8BAA8B;IAC9B,eAAe,CAAC,EAAE,eAAe,GAAG,MAAM,GAAG,IAAI,CAAC;IAElD,4DAA4D;IAC5D,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEnC,8DAA8D;IAC9D,MAAM,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC;CAC5B;AAED;;;;GAIG;AACH,wBAAgB,yBAAyB,CAAC,IAAI,CAAC,EAAE,GAAG,GAAG,IAAI,IAAI,wBAAwB,CAEtF;AAaD;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,CAAC,EAAE,qBAAqB,4BAWhE;AAED;;;;GAIG;AACH,wBAAgB,uBAAuB,CAAC,eAAe,CAAC,EAAE,eAAe,GAAG,MAAM,GAAG,IAAI,kCAExF;AAED;;;;GAIG;AACH,wBAAgB,yBAAyB,CAAC,eAAe,CAAC,EAAE,eAAe,GAAG,MAAM,GAAG,IAAI,oCAE1F;AAED;;;;GAIG;AACH,wBAAgB,wBAAwB,CAAC,OAAO,CAAC,EAAE,qBAAqB,GAAG,MAAM,GAAG,SAAS,CAiB5F;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,OAAO,CAAC,EAAE,qBAAqB;;;EAKpE"}
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getPackageManagerExecutor = exports.getPackageManagerRunner = exports.getPackageManager = exports.isSupportedPackageManager = void 0;
3
+ exports.getPackageManagerInfo = exports.getPackageManagerVersion = exports.getPackageManagerExecutor = exports.getPackageManagerRunner = exports.getPackageManager = exports.isSupportedPackageManager = void 0;
4
+ const node_child_process_1 = require("node:child_process");
4
5
  /**
5
6
  * Determine if the given packager manager is supported
6
7
  *
@@ -57,4 +58,41 @@ function getPackageManagerExecutor(workspaceConfig) {
57
58
  return getPackageManager({ workspaceConfig }) + ' exec';
58
59
  }
59
60
  exports.getPackageManagerExecutor = getPackageManagerExecutor;
61
+ /**
62
+ * Get package manager version
63
+ *
64
+ * @param options Option to determine the final package manager
65
+ */
66
+ function getPackageManagerVersion(options) {
67
+ try {
68
+ return (0, node_child_process_1.execSync)(`${getPackageManager(options)} --version`, {
69
+ encoding: 'utf8',
70
+ stdio: ['ignore', 'pipe', 'ignore'],
71
+ env: {
72
+ ...process.env,
73
+ // NPM updater notifier will prevents the child process from closing until it timeout after 3 minutes.
74
+ // eslint-disable-next-line @typescript-eslint/naming-convention
75
+ NO_UPDATE_NOTIFIER: '1',
76
+ // eslint-disable-next-line @typescript-eslint/naming-convention
77
+ NPM_CONFIG_UPDATE_NOTIFIER: 'false'
78
+ }
79
+ }).trim();
80
+ }
81
+ catch {
82
+ return undefined;
83
+ }
84
+ }
85
+ exports.getPackageManagerVersion = getPackageManagerVersion;
86
+ /**
87
+ * Get package manager information
88
+ *
89
+ * @param options Option to determine the final package manager
90
+ */
91
+ function getPackageManagerInfo(options) {
92
+ return {
93
+ name: getPackageManager(options),
94
+ version: getPackageManagerVersion(options)
95
+ };
96
+ }
97
+ exports.getPackageManagerInfo = getPackageManagerInfo;
60
98
  //# sourceMappingURL=package-manager-runner.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"package-manager-runner.js","sourceRoot":"","sources":["../../../src/utility/package-manager-runner.ts"],"names":[],"mappings":";;;AAwBA;;;;GAIG;AACH,SAAgB,yBAAyB,CAAC,IAAU;IAClD,OAAO,IAAI,KAAK,MAAM,IAAI,IAAI,KAAK,KAAK,CAAC;AAC3C,CAAC;AAFD,8DAEC;AAED;;;;GAIG;AACH,SAAS,qBAAqB,CAAC,kBAA6C;IAC1E,MAAM,uBAAuB,GAAG,yBAAyB,CAAC,OAAO,CAAC,GAAG,EAAE,wBAAwB,CAAC,IAAI,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC;IACzI,MAAM,qBAAqB,GAAG,OAAO,CAAC,GAAG,EAAE,YAAY,EAAE,QAAQ,CAAC,MAAM,CAAC,IA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