@openrewrite/recipes-nodejs 0.51.0 → 0.51.1

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 (104) hide show
  1. package/dist/index.d.ts.map +1 -1
  2. package/dist/index.js +2 -0
  3. package/dist/index.js.map +1 -1
  4. package/dist/migrate/angular-animations/remove-angular-animations-providers.js +7 -7
  5. package/dist/migrate/angular-animations/remove-angular-animations-providers.js.map +1 -1
  6. package/dist/migrate/express-request-id/migrate-express-request-id-to-native.d.ts.map +1 -1
  7. package/dist/migrate/express-request-id/migrate-express-request-id-to-native.js +3 -2
  8. package/dist/migrate/express-request-id/migrate-express-request-id-to-native.js.map +1 -1
  9. package/dist/migrate/express-request-id/remove-unused-express-request-id-dependency.d.ts +3 -6
  10. package/dist/migrate/express-request-id/remove-unused-express-request-id-dependency.d.ts.map +1 -1
  11. package/dist/migrate/express-request-id/remove-unused-express-request-id-dependency.js +5 -11
  12. package/dist/migrate/express-request-id/remove-unused-express-request-id-dependency.js.map +1 -1
  13. package/dist/migrate/find-process-assert.js +2 -2
  14. package/dist/migrate/find-process-assert.js.map +1 -1
  15. package/dist/migrate/fs-extra/migrate-fs-extra-to-node-fs.d.ts.map +1 -1
  16. package/dist/migrate/fs-extra/migrate-fs-extra-to-node-fs.js +4 -2
  17. package/dist/migrate/fs-extra/migrate-fs-extra-to-node-fs.js.map +1 -1
  18. package/dist/migrate/fs-extra/remove-unused-fs-extra-dependency.d.ts +4 -6
  19. package/dist/migrate/fs-extra/remove-unused-fs-extra-dependency.d.ts.map +1 -1
  20. package/dist/migrate/fs-extra/remove-unused-fs-extra-dependency.js +6 -14
  21. package/dist/migrate/fs-extra/remove-unused-fs-extra-dependency.js.map +1 -1
  22. package/dist/migrate/fs-extra/replace-fs-extra-native-methods.js +1 -1
  23. package/dist/migrate/fs-extra/replace-fs-extra-native-methods.js.map +1 -1
  24. package/dist/migrate/hpagent/migrate-hpagent-to-https-proxy-agent.d.ts.map +1 -1
  25. package/dist/migrate/hpagent/migrate-hpagent-to-https-proxy-agent.js +3 -7
  26. package/dist/migrate/hpagent/migrate-hpagent-to-https-proxy-agent.js.map +1 -1
  27. package/dist/migrate/hpagent/replace-hpagent.d.ts.map +1 -1
  28. package/dist/migrate/hpagent/replace-hpagent.js +68 -2
  29. package/dist/migrate/hpagent/replace-hpagent.js.map +1 -1
  30. package/dist/migrate/hpagent/swap-hpagent-dependency.d.ts +3 -15
  31. package/dist/migrate/hpagent/swap-hpagent-dependency.d.ts.map +1 -1
  32. package/dist/migrate/hpagent/swap-hpagent-dependency.js +11 -62
  33. package/dist/migrate/hpagent/swap-hpagent-dependency.js.map +1 -1
  34. package/dist/migrate/package-json-support.d.ts +6 -0
  35. package/dist/migrate/package-json-support.d.ts.map +1 -0
  36. package/dist/migrate/package-json-support.js +31 -0
  37. package/dist/migrate/package-json-support.js.map +1 -0
  38. package/dist/migrate/path/remove-path-dependency.js +8 -8
  39. package/dist/migrate/path/remove-path-dependency.js.map +1 -1
  40. package/dist/migrate/process-exit-code.js +3 -3
  41. package/dist/migrate/process-exit-code.js.map +1 -1
  42. package/dist/migrate/process-features-tls.js +1 -1
  43. package/dist/migrate/process-features-tls.js.map +1 -1
  44. package/dist/migrate/prop-types/remove-prop-types.js +8 -8
  45. package/dist/migrate/prop-types/remove-prop-types.js.map +1 -1
  46. package/dist/migrate/remove-dependencies.d.ts +6 -0
  47. package/dist/migrate/remove-dependencies.d.ts.map +1 -0
  48. package/dist/migrate/remove-dependencies.js +23 -0
  49. package/dist/migrate/remove-dependencies.js.map +1 -0
  50. package/dist/migrate/source-map-support/enable-source-maps-at-launch.d.ts +19 -0
  51. package/dist/migrate/source-map-support/enable-source-maps-at-launch.d.ts.map +1 -0
  52. package/dist/migrate/source-map-support/enable-source-maps-at-launch.js +311 -0
  53. package/dist/migrate/source-map-support/enable-source-maps-at-launch.js.map +1 -0
  54. package/dist/migrate/source-map-support/migrate-source-map-support-to-native.d.ts.map +1 -1
  55. package/dist/migrate/source-map-support/migrate-source-map-support-to-native.js +9 -4
  56. package/dist/migrate/source-map-support/migrate-source-map-support-to-native.js.map +1 -1
  57. package/dist/migrate/source-map-support/register-flag.d.ts +4 -0
  58. package/dist/migrate/source-map-support/register-flag.d.ts.map +1 -1
  59. package/dist/migrate/source-map-support/register-flag.js +35 -0
  60. package/dist/migrate/source-map-support/register-flag.js.map +1 -1
  61. package/dist/migrate/source-map-support/remove-unused-source-map-support-dependency.d.ts +3 -6
  62. package/dist/migrate/source-map-support/remove-unused-source-map-support-dependency.d.ts.map +1 -1
  63. package/dist/migrate/source-map-support/remove-unused-source-map-support-dependency.js +5 -12
  64. package/dist/migrate/source-map-support/remove-unused-source-map-support-dependency.js.map +1 -1
  65. package/dist/migrate/source-map-support/source-map-support-rewrites.d.ts.map +1 -1
  66. package/dist/migrate/source-map-support/source-map-support-rewrites.js +2 -0
  67. package/dist/migrate/source-map-support/source-map-support-rewrites.js.map +1 -1
  68. package/dist/migrate/upgrade-node-22.d.ts.map +1 -1
  69. package/dist/migrate/upgrade-node-22.js +2 -0
  70. package/dist/migrate/upgrade-node-22.js.map +1 -1
  71. package/dist/migrate/upgrade-node-24.d.ts.map +1 -1
  72. package/dist/migrate/upgrade-node-24.js +2 -0
  73. package/dist/migrate/upgrade-node-24.js.map +1 -1
  74. package/dist/resources/advisories-npm.csv +278 -20
  75. package/package.json +2 -2
  76. package/src/index.ts +2 -0
  77. package/src/migrate/angular-animations/remove-angular-animations-providers.ts +1 -1
  78. package/src/migrate/express-request-id/migrate-express-request-id-to-native.ts +3 -2
  79. package/src/migrate/express-request-id/remove-unused-express-request-id-dependency.ts +5 -13
  80. package/src/migrate/find-process-assert.ts +2 -2
  81. package/src/migrate/fs-extra/migrate-fs-extra-to-node-fs.ts +4 -2
  82. package/src/migrate/fs-extra/remove-unused-fs-extra-dependency.ts +6 -16
  83. package/src/migrate/fs-extra/replace-fs-extra-native-methods.ts +1 -1
  84. package/src/migrate/hpagent/migrate-hpagent-to-https-proxy-agent.ts +3 -7
  85. package/src/migrate/hpagent/replace-hpagent.ts +82 -3
  86. package/src/migrate/hpagent/swap-hpagent-dependency.ts +13 -68
  87. package/src/migrate/package-json-support.ts +34 -0
  88. package/src/migrate/path/remove-path-dependency.ts +1 -1
  89. package/src/migrate/process-exit-code.ts +3 -3
  90. package/src/migrate/process-features-tls.ts +1 -1
  91. package/src/migrate/prop-types/remove-prop-types.ts +1 -1
  92. package/src/migrate/remove-dependencies.ts +21 -0
  93. package/src/migrate/source-map-support/enable-source-maps-at-launch.ts +289 -0
  94. package/src/migrate/source-map-support/migrate-source-map-support-to-native.ts +9 -4
  95. package/src/migrate/source-map-support/register-flag.ts +48 -0
  96. package/src/migrate/source-map-support/remove-unused-source-map-support-dependency.ts +5 -14
  97. package/src/migrate/source-map-support/source-map-support-rewrites.ts +3 -0
  98. package/src/migrate/upgrade-node-22.ts +2 -0
  99. package/src/migrate/upgrade-node-24.ts +2 -0
  100. package/dist/migrate/remove-unused-dependency.d.ts +0 -43
  101. package/dist/migrate/remove-unused-dependency.d.ts.map +0 -1
  102. package/dist/migrate/remove-unused-dependency.js +0 -257
  103. package/dist/migrate/remove-unused-dependency.js.map +0 -1
  104. package/src/migrate/remove-unused-dependency.ts +0 -275
@@ -1,12 +1,9 @@
1
- import { Recipe } from "@openrewrite/rewrite";
2
- import { RemoveUnusedDependency } from "../remove-unused-dependency";
3
- export declare class RemoveUnusedSourceMapSupportDependency extends RemoveUnusedDependency {
1
+ import { RemoveDependencies } from "../remove-dependencies";
2
+ export declare class RemoveUnusedSourceMapSupportDependency extends RemoveDependencies {
4
3
  readonly name = "org.openrewrite.node.migrate.source-map-support.remove-unused-source-map-support-dependency";
5
- readonly displayName = "Remove unused `source-map-support` dependency";
4
+ readonly displayName = "Remove the `source-map-support` dependency";
6
5
  readonly description: string;
7
6
  readonly tags: string[];
8
- protected readonly module = "source-map-support";
9
7
  protected readonly packages: string[];
10
- protected migrationRecipes(): Recipe[];
11
8
  }
12
9
  //# sourceMappingURL=remove-unused-source-map-support-dependency.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"remove-unused-source-map-support-dependency.d.ts","sourceRoot":"","sources":["../../../src/migrate/source-map-support/remove-unused-source-map-support-dependency.ts"],"names":[],"mappings":"AAMA,OAAO,EAAC,MAAM,EAAC,MAAM,sBAAsB,CAAC;AAC5C,OAAO,EAAC,sBAAsB,EAAC,MAAM,6BAA6B,CAAC;AAGnE,qBAAa,sCAAuC,SAAQ,sBAAsB;IAC9E,QAAQ,CAAC,IAAI,iGAAiG;IAC9G,QAAQ,CAAC,WAAW,mDAAmD;IACvE,QAAQ,CAAC,WAAW,SAG+F;IACnH,QAAQ,CAAC,IAAI,WAA0B;IAEvC,SAAS,CAAC,QAAQ,CAAC,MAAM,wBAAwB;IACjD,SAAS,CAAC,QAAQ,CAAC,QAAQ,WAAuD;IAElF,SAAS,CAAC,gBAAgB,IAAI,MAAM,EAAE;CAGzC"}
1
+ {"version":3,"file":"remove-unused-source-map-support-dependency.d.ts","sourceRoot":"","sources":["../../../src/migrate/source-map-support/remove-unused-source-map-support-dependency.ts"],"names":[],"mappings":"AAMA,OAAO,EAAC,kBAAkB,EAAC,MAAM,wBAAwB,CAAC;AAE1D,qBAAa,sCAAuC,SAAQ,kBAAkB;IAC1E,QAAQ,CAAC,IAAI,iGAAiG;IAC9G,QAAQ,CAAC,WAAW,gDAAgD;IACpE,QAAQ,CAAC,WAAW,SAC0C;IAC9D,QAAQ,CAAC,IAAI,WAA0B;IAEvC,SAAS,CAAC,QAAQ,CAAC,QAAQ,WAAuD;CACrF"}
@@ -1,24 +1,17 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.RemoveUnusedSourceMapSupportDependency = void 0;
4
- const remove_unused_dependency_1 = require("../remove-unused-dependency");
5
- const source_map_support_rewrites_1 = require("./source-map-support-rewrites");
6
- class RemoveUnusedSourceMapSupportDependency extends remove_unused_dependency_1.RemoveUnusedDependency {
4
+ const remove_dependencies_1 = require("../remove-dependencies");
5
+ class RemoveUnusedSourceMapSupportDependency extends remove_dependencies_1.RemoveDependencies {
7
6
  constructor() {
8
7
  super(...arguments);
9
8
  this.name = "org.openrewrite.node.migrate.source-map-support.remove-unused-source-map-support-dependency";
10
- this.displayName = "Remove unused `source-map-support` dependency";
11
- this.description = "Removes `source-map-support` and `@types/source-map-support` from each `package.json` whose " +
12
- "package no longer references it from a JavaScript or TypeScript source, a `package.json` script or tool " +
13
- "configuration, or a `.mocharc`/`mocha.opts` file. A webpack banner that injects `require(\"source-map-support\")` " +
14
- "into a bundle counts as a use. Lock files are not regenerated; run the package manager's install afterwards.";
9
+ this.displayName = "Remove the `source-map-support` dependency";
10
+ this.description = "Removes `source-map-support` and `@types/source-map-support` from each `package.json` " +
11
+ "that declares them, and updates the lock file to match.";
15
12
  this.tags = ["source-map-support"];
16
- this.module = 'source-map-support';
17
13
  this.packages = ['source-map-support', '@types/source-map-support'];
18
14
  }
19
- migrationRecipes() {
20
- return (0, source_map_support_rewrites_1.sourceMapSupportRewriteRecipes)();
21
- }
22
15
  }
23
16
  exports.RemoveUnusedSourceMapSupportDependency = RemoveUnusedSourceMapSupportDependency;
24
17
  //# sourceMappingURL=remove-unused-source-map-support-dependency.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"remove-unused-source-map-support-dependency.js","sourceRoot":"","sources":["../../../src/migrate/source-map-support/remove-unused-source-map-support-dependency.ts"],"names":[],"mappings":";;;AAOA,0EAAmE;AACnE,+EAA6E;AAE7E,MAAa,sCAAuC,SAAQ,iDAAsB;IAAlF;;QACa,SAAI,GAAG,6FAA6F,CAAC;QACrG,gBAAW,GAAG,+CAA+C,CAAC;QAC9D,gBAAW,GAAG,8FAA8F;YACjH,0GAA0G;YAC1G,oHAAoH;YACpH,8GAA8G,CAAC;QAC1G,SAAI,GAAG,CAAC,oBAAoB,CAAC,CAAC;QAEpB,WAAM,GAAG,oBAAoB,CAAC;QAC9B,aAAQ,GAAG,CAAC,oBAAoB,EAAE,2BAA2B,CAAC,CAAC;IAKtF,CAAC;IAHa,gBAAgB;QACtB,OAAO,IAAA,4DAA8B,GAAE,CAAC;IAC5C,CAAC;CACJ;AAfD,wFAeC"}
1
+ {"version":3,"file":"remove-unused-source-map-support-dependency.js","sourceRoot":"","sources":["../../../src/migrate/source-map-support/remove-unused-source-map-support-dependency.ts"],"names":[],"mappings":";;;AAMA,gEAA0D;AAE1D,MAAa,sCAAuC,SAAQ,wCAAkB;IAA9E;;QACa,SAAI,GAAG,6FAA6F,CAAC;QACrG,gBAAW,GAAG,4CAA4C,CAAC;QAC3D,gBAAW,GAAG,wFAAwF;YAC3G,yDAAyD,CAAC;QACrD,SAAI,GAAG,CAAC,oBAAoB,CAAC,CAAC;QAEpB,aAAQ,GAAG,CAAC,oBAAoB,EAAE,2BAA2B,CAAC,CAAC;IACtF,CAAC;CAAA;AARD,wFAQC"}
@@ -1 +1 @@
1
- {"version":3,"file":"source-map-support-rewrites.d.ts","sourceRoot":"","sources":["../../../src/migrate/source-map-support/source-map-support-rewrites.ts"],"names":[],"mappings":"AAMA,OAAO,EAAC,MAAM,EAAC,MAAM,sBAAsB,CAAC;AAM5C,wBAAgB,8BAA8B,IAAI,MAAM,EAAE,CAMzD"}
1
+ {"version":3,"file":"source-map-support-rewrites.d.ts","sourceRoot":"","sources":["../../../src/migrate/source-map-support/source-map-support-rewrites.ts"],"names":[],"mappings":"AAMA,OAAO,EAAC,MAAM,EAAC,MAAM,sBAAsB,CAAC;AAO5C,wBAAgB,8BAA8B,IAAI,MAAM,EAAE,CAQzD"}
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.sourceMapSupportRewriteRecipes = sourceMapSupportRewriteRecipes;
4
+ const enable_source_maps_at_launch_1 = require("./enable-source-maps-at-launch");
4
5
  const replace_source_map_support_install_1 = require("./replace-source-map-support-install");
5
6
  const replace_source_map_support_register_in_package_json_1 = require("./replace-source-map-support-register-in-package-json");
6
7
  const replace_source_map_support_register_in_mocha_config_1 = require("./replace-source-map-support-register-in-mocha-config");
@@ -9,6 +10,7 @@ function sourceMapSupportRewriteRecipes() {
9
10
  new replace_source_map_support_register_in_package_json_1.ReplaceSourceMapSupportRegisterInPackageJson(),
10
11
  new replace_source_map_support_register_in_mocha_config_1.ReplaceSourceMapSupportRegisterInMochaConfig(),
11
12
  new replace_source_map_support_install_1.ReplaceSourceMapSupportInstall(),
13
+ new enable_source_maps_at_launch_1.EnableSourceMapsAtLaunch(),
12
14
  ];
13
15
  }
14
16
  //# sourceMappingURL=source-map-support-rewrites.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"source-map-support-rewrites.js","sourceRoot":"","sources":["../../../src/migrate/source-map-support/source-map-support-rewrites.ts"],"names":[],"mappings":";;AAYA,wEAMC;AAXD,6FAAoF;AACpF,+HAAmH;AACnH,+HAAmH;AAGnH,SAAgB,8BAA8B;IAC1C,OAAO;QACH,IAAI,kGAA4C,EAAE;QAClD,IAAI,kGAA4C,EAAE;QAClD,IAAI,mEAA8B,EAAE;KACvC,CAAC;AACN,CAAC"}
1
+ {"version":3,"file":"source-map-support-rewrites.js","sourceRoot":"","sources":["../../../src/migrate/source-map-support/source-map-support-rewrites.ts"],"names":[],"mappings":";;AAaA,wEAQC;AAdD,iFAAwE;AACxE,6FAAoF;AACpF,+HAAmH;AACnH,+HAAmH;AAGnH,SAAgB,8BAA8B;IAC1C,OAAO;QACH,IAAI,kGAA4C,EAAE;QAClD,IAAI,kGAA4C,EAAE;QAClD,IAAI,mEAA8B,EAAE;QAEpC,IAAI,uDAAwB,EAAE;KACjC,CAAC;AACN,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"upgrade-node-22.d.ts","sourceRoot":"","sources":["../../src/migrate/upgrade-node-22.ts"],"names":[],"mappings":"AAKA,OAAO,EAAC,MAAM,EAAC,MAAM,sBAAsB,CAAC;AAoC5C,qBAAa,aAAc,SAAQ,MAAM;IACrC,QAAQ,CAAC,IAAI,kDAAkD;IAC/D,QAAQ,CAAC,WAAW,2BAA2B;IAC/C,QAAQ,CAAC,WAAW,0IAA0I;IAExJ,UAAU,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC;CASxC"}
1
+ {"version":3,"file":"upgrade-node-22.d.ts","sourceRoot":"","sources":["../../src/migrate/upgrade-node-22.ts"],"names":[],"mappings":"AAKA,OAAO,EAAC,MAAM,EAAC,MAAM,sBAAsB,CAAC;AAqC5C,qBAAa,aAAc,SAAQ,MAAM;IACrC,QAAQ,CAAC,IAAI,kDAAkD;IAC/D,QAAQ,CAAC,WAAW,2BAA2B;IAC/C,QAAQ,CAAC,WAAW,0IAA0I;IAExJ,UAAU,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC;CAUxC"}
@@ -11,6 +11,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.UpgradeNode22 = void 0;
13
13
  const rewrite_1 = require("@openrewrite/rewrite");
14
+ const rpc_1 = require("@openrewrite/rewrite/rpc");
14
15
  const promisify_on_promise_1 = require("./promisify-on-promise");
15
16
  const util_types_wasm_1 = require("./util-types-wasm");
16
17
  const crypto_constructors_1 = require("./crypto-constructors");
@@ -51,6 +52,7 @@ class UpgradeNode22 extends rewrite_1.Recipe {
51
52
  return [
52
53
  new increase_node_engine_version_1.IncreaseNodeEngineVersion({ version: "22" }),
53
54
  new increase_node_engine_version_in_github_actions_1.IncreaseNodeEngineVersionInGithubActions({ version: "22" }),
55
+ yield (0, rpc_1.prepareJavaRecipe)("org.openrewrite.nodejs.migrate.UpgradeNodeVersion", { version: "22" }),
54
56
  ...node22EolDeprecations,
55
57
  ...node22RuntimeDeprecations,
56
58
  ...olderDeprecations,
@@ -1 +1 @@
1
- {"version":3,"file":"upgrade-node-22.js","sourceRoot":"","sources":["../../src/migrate/upgrade-node-22.ts"],"names":[],"mappings":";;;;;;;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AAQ,CAAC,WAAW,2IAA2I;IAEzJ,UAAU,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC;CASxC"}
1
+ {"version":3,"file":"upgrade-node-24.d.ts","sourceRoot":"","sources":["../../src/migrate/upgrade-node-24.ts"],"names":[],"mappings":"AAKA,OAAO,EAAC,MAAM,EAAC,MAAM,sBAAsB,CAAC;AAgC5C,qBAAa,aAAc,SAAQ,MAAM;IACrC,QAAQ,CAAC,IAAI,kDAAkD;IAC/D,QAAQ,CAAC,WAAW,2BAA2B;IAC/C,QAAQ,CAAC,WAAW,2IAA2I;IAEzJ,UAAU,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC;CAUxC"}
@@ -11,6 +11,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.UpgradeNode24 = void 0;
13
13
  const rewrite_1 = require("@openrewrite/rewrite");
14
+ const rpc_1 = require("@openrewrite/rewrite/rpc");
14
15
  const util_log_1 = require("./util-log");
15
16
  const zlib_bytes_read_1 = require("./zlib-bytes-read");
16
17
  const crypto_fips_1 = require("./crypto-fips");
@@ -48,6 +49,7 @@ class UpgradeNode24 extends rewrite_1.Recipe {
48
49
  return [
49
50
  new increase_node_engine_version_1.IncreaseNodeEngineVersion({ version: "24" }),
50
51
  new increase_node_engine_version_in_github_actions_1.IncreaseNodeEngineVersionInGithubActions({ version: "24" }),
52
+ yield (0, rpc_1.prepareJavaRecipe)("org.openrewrite.nodejs.migrate.UpgradeNodeVersion", { version: "24" }),
51
53
  new upgrade_node_22_1.UpgradeNode22(),
52
54
  ...node24EolDeprecations,
53
55
  ...node24RuntimeDeprecations,
@@ -1 +1 @@
1
- {"version":3,"file":"upgrade-node-24.js","sourceRoot":"","sources":["../../src/migrate/upgrade-node-24.ts"],"names":[],"mappings":";;;;;;;;;;;;AAKA,kDAA4C;AAC5C,yCAA0C;AAC1C,uDAAuD;AACvD,+CAAgD;AAChD,+CA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