@sitecore-content-sdk/core 2.1.1 → 2.1.2-beta.atoms.20260709143238

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.
@@ -47,6 +47,9 @@ exports.ERROR_MESSAGES = {
47
47
  IV_005: '[IV-005] Incorrect value for "expiryDate". Format the value according to ISO 8601.',
48
48
  IV_006: (maxAttributes) => `[IV-006] "extensionData" supports maximum ${maxAttributes} attributes. Reduce the number of attributes.`,
49
49
  IV_007: (siteName) => `[IV-007] Site "${siteName}" does not exist or site item tree is missing.`,
50
+ IV_008: (lockSide, currentSide) => `[IV-008] Catalog version mismatch: lock file has ${lockSide}, current is ${currentSide}.`,
51
+ IV_009: (name, lockSide, currentSide) => `[IV-009] Atom "${name}" version mismatch: lock file has ${lockSide}, current is ${currentSide}.`,
52
+ IV_010: (name) => `[IV-010] Atom "${name}" schema has changed.`,
50
53
  /** IE errors are related to incorrect execution */
51
54
  IE_001: (pluginName, dependency) => `[IE-001] "${pluginName}" also requires "${dependency}". Add the missing dependency.`,
52
55
  IE_002: '[IE-002] SDK not initialized. You must first initialize the SDK using "initContentSdk()".',
@@ -55,6 +58,8 @@ exports.ERROR_MESSAGES = {
55
58
  IE_005: '[IE-005] Unable to set the "sc_cid" cookie because the client ID could not be retrieved from the server. Make sure to set the correct values for "contextId" and "siteName". If the issue persists, try again later or use try-catch blocks to handle this error.',
56
59
  IE_006: '[IE-006] Unable to set the "sc_cid_personalize" cookie because the visitor ID could not be retrieved from the server. Make sure to set the correct values for "contextId" and "siteName". If the issue persists, try again later or use try-catch blocks to handle this error.',
57
60
  IE_007: (hostName) => `[IE-007] Could not resolve site for host "${hostName}".`,
61
+ IE_008: '[IE-008] Lock file validation failed:',
62
+ IE_009: '[IE-009] Atom validation failed. See issues above. You see this error because `breakOnError` is enabled in your CLI config.',
58
63
  /** MV errors are related to missing values */
59
64
  MV_001: '[MV-001] "contextId" is required.',
60
65
  MV_002: '[MV-002] "siteName" is required.',
@@ -65,6 +70,11 @@ exports.ERROR_MESSAGES = {
65
70
  MV_007: '[MV-007] Provide either "contextId" or both "apiHost" and "apiKey".',
66
71
  MV_008: '[MV-008] Verify that sitecore.config is properly imported and correctly referenced.',
67
72
  MV_009: '[MV-009] "language" is required.',
73
+ MV_010: (modulePath) => `[MV-010] Atoms module not found at ${modulePath}.{ts,tsx}. Ensure your atoms are defined in src/atoms/index.{ts,tsx} and export a catalog.`,
74
+ MV_011: (modulePath) => `[MV-011] Atoms module at ${modulePath} does not export "catalog". Export the result of defineAtomsCatalog as "catalog".`,
75
+ MV_012: '[MV-012] Lock file not found. Run `sitecore-tools project atoms update` to generate it.',
76
+ MV_013: (name) => `[MV-013] Atom "${name}" is in the lock file but not found in current definitions.`,
77
+ MV_014: (name) => `[MV-014] Atom "${name}" is new and not in the lock file. Run \`sitecore-tools project atoms update\` to add it.`,
68
78
  /** Generic follow-up when the user should contact support */
69
79
  CONTACT_SUPPORT: 'If the issue persists, please contact Sitecore Support.',
70
80
  };
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.mergeURLSearchParams = exports.escapeNonSpecialQuestionMarks = exports.areURLSearchParamsEqual = exports.isRegexOrUrl = exports.getAllowedOriginsFromEnv = exports.getEnforcedCorsHeaders = exports.isTimeoutError = exports.resolveUrl = exports.SITECORE_EXPERIENCE_EDGE_HOSTNAME_ENV = exports.SITECORE_EDGE_PLATFORM_HOSTNAME_ENV = exports.resolveExperienceEdgeUrl = exports.resolveEdgeUrlForStaticFiles = exports.resolveEdgeUrl = exports.isServer = exports.normalizeUrl = exports.setCache = exports.getCacheAndClean = exports.getCache = exports.hasCache = void 0;
6
+ exports.mergeURLSearchParams = exports.escapeRegExp = exports.escapeNonSpecialQuestionMarks = exports.areURLSearchParamsEqual = exports.isRegexOrUrl = exports.getAllowedOriginsFromEnv = exports.getEnforcedCorsHeaders = exports.isTimeoutError = exports.resolveUrl = exports.SITECORE_EXPERIENCE_EDGE_HOSTNAME_ENV = exports.SITECORE_EDGE_PLATFORM_HOSTNAME_ENV = exports.resolveExperienceEdgeUrl = exports.resolveEdgeUrlForStaticFiles = exports.resolveEdgeUrl = exports.isServer = exports.normalizeUrl = exports.setCache = exports.getCacheAndClean = exports.getCache = exports.hasCache = void 0;
7
7
  var globalCache_1 = require("./globalCache");
8
8
  Object.defineProperty(exports, "hasCache", { enumerable: true, get: function () { return globalCache_1.hasCache; } });
9
9
  Object.defineProperty(exports, "getCache", { enumerable: true, get: function () { return globalCache_1.getCache; } });
@@ -28,4 +28,5 @@ Object.defineProperty(exports, "getAllowedOriginsFromEnv", { enumerable: true, g
28
28
  Object.defineProperty(exports, "isRegexOrUrl", { enumerable: true, get: function () { return utils_1.isRegexOrUrl; } });
29
29
  Object.defineProperty(exports, "areURLSearchParamsEqual", { enumerable: true, get: function () { return utils_1.areURLSearchParamsEqual; } });
30
30
  Object.defineProperty(exports, "escapeNonSpecialQuestionMarks", { enumerable: true, get: function () { return utils_1.escapeNonSpecialQuestionMarks; } });
31
+ Object.defineProperty(exports, "escapeRegExp", { enumerable: true, get: function () { return utils_1.escapeRegExp; } });
31
32
  Object.defineProperty(exports, "mergeURLSearchParams", { enumerable: true, get: function () { return utils_1.mergeURLSearchParams; } });
@@ -5,6 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.mergeURLSearchParams = exports.escapeNonSpecialQuestionMarks = exports.areURLSearchParamsEqual = exports.isRegexOrUrl = exports.getEnforcedCorsHeaders = exports.getAllowedOriginsFromEnv = exports.isTimeoutError = void 0;
7
7
  exports.resolveUrl = resolveUrl;
8
+ exports.escapeRegExp = escapeRegExp;
8
9
  const is_server_1 = __importDefault(require("./is-server"));
9
10
  /**
10
11
  * note: encodeURIComponent is available via browser (window) or natively in node.js
@@ -174,6 +175,15 @@ const escapeNonSpecialQuestionMarks = (input) => {
174
175
  return input.replace(/\?/g, '\\?');
175
176
  };
176
177
  exports.escapeNonSpecialQuestionMarks = escapeNonSpecialQuestionMarks;
178
+ /**
179
+ * Escapes a string so it can be safely embedded in a RegExp as a literal.
180
+ * @param {string} input - The string to escape
181
+ * @returns {string} The escaped string safe for RegExp construction
182
+ * @internal
183
+ */
184
+ function escapeRegExp(input) {
185
+ return input.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
186
+ }
177
187
  /**
178
188
  * Merges two URLSearchParams objects. If both objects contain the same key, the value from the second object overrides the first.
179
189
  * @param {URLSearchParams} params1 - The first set of URL search parameters.
@@ -44,6 +44,9 @@ export const ERROR_MESSAGES = {
44
44
  IV_005: '[IV-005] Incorrect value for "expiryDate". Format the value according to ISO 8601.',
45
45
  IV_006: (maxAttributes) => `[IV-006] "extensionData" supports maximum ${maxAttributes} attributes. Reduce the number of attributes.`,
46
46
  IV_007: (siteName) => `[IV-007] Site "${siteName}" does not exist or site item tree is missing.`,
47
+ IV_008: (lockSide, currentSide) => `[IV-008] Catalog version mismatch: lock file has ${lockSide}, current is ${currentSide}.`,
48
+ IV_009: (name, lockSide, currentSide) => `[IV-009] Atom "${name}" version mismatch: lock file has ${lockSide}, current is ${currentSide}.`,
49
+ IV_010: (name) => `[IV-010] Atom "${name}" schema has changed.`,
47
50
  /** IE errors are related to incorrect execution */
48
51
  IE_001: (pluginName, dependency) => `[IE-001] "${pluginName}" also requires "${dependency}". Add the missing dependency.`,
49
52
  IE_002: '[IE-002] SDK not initialized. You must first initialize the SDK using "initContentSdk()".',
@@ -52,6 +55,8 @@ export const ERROR_MESSAGES = {
52
55
  IE_005: '[IE-005] Unable to set the "sc_cid" cookie because the client ID could not be retrieved from the server. Make sure to set the correct values for "contextId" and "siteName". If the issue persists, try again later or use try-catch blocks to handle this error.',
53
56
  IE_006: '[IE-006] Unable to set the "sc_cid_personalize" cookie because the visitor ID could not be retrieved from the server. Make sure to set the correct values for "contextId" and "siteName". If the issue persists, try again later or use try-catch blocks to handle this error.',
54
57
  IE_007: (hostName) => `[IE-007] Could not resolve site for host "${hostName}".`,
58
+ IE_008: '[IE-008] Lock file validation failed:',
59
+ IE_009: '[IE-009] Atom validation failed. See issues above. You see this error because `breakOnError` is enabled in your CLI config.',
55
60
  /** MV errors are related to missing values */
56
61
  MV_001: '[MV-001] "contextId" is required.',
57
62
  MV_002: '[MV-002] "siteName" is required.',
@@ -62,6 +67,11 @@ export const ERROR_MESSAGES = {
62
67
  MV_007: '[MV-007] Provide either "contextId" or both "apiHost" and "apiKey".',
63
68
  MV_008: '[MV-008] Verify that sitecore.config is properly imported and correctly referenced.',
64
69
  MV_009: '[MV-009] "language" is required.',
70
+ MV_010: (modulePath) => `[MV-010] Atoms module not found at ${modulePath}.{ts,tsx}. Ensure your atoms are defined in src/atoms/index.{ts,tsx} and export a catalog.`,
71
+ MV_011: (modulePath) => `[MV-011] Atoms module at ${modulePath} does not export "catalog". Export the result of defineAtomsCatalog as "catalog".`,
72
+ MV_012: '[MV-012] Lock file not found. Run `sitecore-tools project atoms update` to generate it.',
73
+ MV_013: (name) => `[MV-013] Atom "${name}" is in the lock file but not found in current definitions.`,
74
+ MV_014: (name) => `[MV-014] Atom "${name}" is new and not in the lock file. Run \`sitecore-tools project atoms update\` to add it.`,
65
75
  /** Generic follow-up when the user should contact support */
66
76
  CONTACT_SUPPORT: 'If the issue persists, please contact Sitecore Support.',
67
77
  };
@@ -3,4 +3,4 @@ export { hasCache, getCache, getCacheAndClean, setCache } from './globalCache';
3
3
  export { normalizeUrl } from './normalize-url';
4
4
  export { default as isServer } from './is-server';
5
5
  export { resolveEdgeUrl, resolveEdgeUrlForStaticFiles, resolveExperienceEdgeUrl, SITECORE_EDGE_PLATFORM_HOSTNAME_ENV, SITECORE_EXPERIENCE_EDGE_HOSTNAME_ENV, } from './resolve-edge-url';
6
- export { resolveUrl, isTimeoutError, getEnforcedCorsHeaders, getAllowedOriginsFromEnv, isRegexOrUrl, areURLSearchParamsEqual, escapeNonSpecialQuestionMarks, mergeURLSearchParams, } from './utils';
6
+ export { resolveUrl, isTimeoutError, getEnforcedCorsHeaders, getAllowedOriginsFromEnv, isRegexOrUrl, areURLSearchParamsEqual, escapeNonSpecialQuestionMarks, escapeRegExp, mergeURLSearchParams, } from './utils';
@@ -161,6 +161,15 @@ export const escapeNonSpecialQuestionMarks = (input) => {
161
161
  // For non-regex strings, escape literal "?" characters
162
162
  return input.replace(/\?/g, '\\?');
163
163
  };
164
+ /**
165
+ * Escapes a string so it can be safely embedded in a RegExp as a literal.
166
+ * @param {string} input - The string to escape
167
+ * @returns {string} The escaped string safe for RegExp construction
168
+ * @internal
169
+ */
170
+ export function escapeRegExp(input) {
171
+ return input.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
172
+ }
164
173
  /**
165
174
  * Merges two URLSearchParams objects. If both objects contain the same key, the value from the second object overrides the first.
166
175
  * @param {URLSearchParams} params1 - The first set of URL search parameters.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sitecore-content-sdk/core",
3
- "version": "2.1.1",
3
+ "version": "2.1.2-beta.atoms.20260709143238",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "sideEffects": false,
@@ -43,6 +43,9 @@ export declare const ERROR_MESSAGES: {
43
43
  readonly IV_005: "[IV-005] Incorrect value for \"expiryDate\". Format the value according to ISO 8601.";
44
44
  readonly IV_006: (maxAttributes: number) => string;
45
45
  readonly IV_007: (siteName: string) => string;
46
+ readonly IV_008: (lockSide: string, currentSide: string) => string;
47
+ readonly IV_009: (name: string, lockSide: string, currentSide: string) => string;
48
+ readonly IV_010: (name: string) => string;
46
49
  /** IE errors are related to incorrect execution */
47
50
  readonly IE_001: (pluginName: string, dependency: string) => string;
48
51
  readonly IE_002: "[IE-002] SDK not initialized. You must first initialize the SDK using \"initContentSdk()\".";
@@ -51,6 +54,8 @@ export declare const ERROR_MESSAGES: {
51
54
  readonly IE_005: "[IE-005] Unable to set the \"sc_cid\" cookie because the client ID could not be retrieved from the server. Make sure to set the correct values for \"contextId\" and \"siteName\". If the issue persists, try again later or use try-catch blocks to handle this error.";
52
55
  readonly IE_006: "[IE-006] Unable to set the \"sc_cid_personalize\" cookie because the visitor ID could not be retrieved from the server. Make sure to set the correct values for \"contextId\" and \"siteName\". If the issue persists, try again later or use try-catch blocks to handle this error.";
53
56
  readonly IE_007: (hostName: string) => string;
57
+ readonly IE_008: "[IE-008] Lock file validation failed:";
58
+ readonly IE_009: "[IE-009] Atom validation failed. See issues above. You see this error because `breakOnError` is enabled in your CLI config.";
54
59
  /** MV errors are related to missing values */
55
60
  readonly MV_001: "[MV-001] \"contextId\" is required.";
56
61
  readonly MV_002: "[MV-002] \"siteName\" is required.";
@@ -61,6 +66,11 @@ export declare const ERROR_MESSAGES: {
61
66
  readonly MV_007: "[MV-007] Provide either \"contextId\" or both \"apiHost\" and \"apiKey\".";
62
67
  readonly MV_008: "[MV-008] Verify that sitecore.config is properly imported and correctly referenced.";
63
68
  readonly MV_009: "[MV-009] \"language\" is required.";
69
+ readonly MV_010: (modulePath: string) => string;
70
+ readonly MV_011: (modulePath: string) => string;
71
+ readonly MV_012: "[MV-012] Lock file not found. Run `sitecore-tools project atoms update` to generate it.";
72
+ readonly MV_013: (name: string) => string;
73
+ readonly MV_014: (name: string) => string;
64
74
  /** Generic follow-up when the user should contact support */
65
75
  readonly CONTACT_SUPPORT: "If the issue persists, please contact Sitecore Support.";
66
76
  };
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,eAAO,MAAM,kCAAkC,2CAA2C,CAAC;AAE3F;;;;GAIG;AACH,eAAO,MAAM,oCAAoC,kCAAkC,CAAC;AAEpF;;;GAGG;AACH,eAAO,MAAM,MAAM,yCAAyC,CAAC;AAC7D;;;GAGG;AACH,eAAO,MAAM,4BAA4B,kCAAkC,CAAC;AAC5E;;;GAGG;AACH,eAAO,MAAM,8BAA8B,iCAAiC,CAAC;AAC7E;;;GAGG;AACH,eAAO,MAAM,8BAA8B,kDAAkD,CAAC;AAE9F;;;GAGG;AACH,eAAO,MAAM,cAAc;IACzB,iFAAiF;;;;;;qCAOzD,MAAM;gCAEX,MAAM;IAGzB,mDAAmD;kCAC9B,MAAM,cAAc,MAAM;;;kCAK1B,MAAM;;;gCAMR,MAAM;IAEzB,8CAA8C;;;;;gCAK3B,MAAM;;;;;IAOzB,6DAA6D;;CAErD,CAAC"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,eAAO,MAAM,kCAAkC,2CAA2C,CAAC;AAE3F;;;;GAIG;AACH,eAAO,MAAM,oCAAoC,kCAAkC,CAAC;AAEpF;;;GAGG;AACH,eAAO,MAAM,MAAM,yCAAyC,CAAC;AAC7D;;;GAGG;AACH,eAAO,MAAM,4BAA4B,kCAAkC,CAAC;AAC5E;;;GAGG;AACH,eAAO,MAAM,8BAA8B,iCAAiC,CAAC;AAC7E;;;GAGG;AACH,eAAO,MAAM,8BAA8B,kDAAkD,CAAC;AAE9F;;;GAGG;AACH,eAAO,MAAM,cAAc;IACzB,iFAAiF;;;;;;qCAOzD,MAAM;gCAEX,MAAM;gCAEN,MAAM,eAAe,MAAM;4BAE/B,MAAM,YAAY,MAAM,eAAe,MAAM;4BAE7C,MAAM;IAErB,mDAAmD;kCAC9B,MAAM,cAAc,MAAM;;;kCAK1B,MAAM;;;gCAMR,MAAM;;;IAKzB,8CAA8C;;;;;gCAK3B,MAAM;;;;;kCAMJ,MAAM;kCAEN,MAAM;;4BAGZ,MAAM;4BAEN,MAAM;IAGrB,6DAA6D;;CAErD,CAAC"}
@@ -2,5 +2,5 @@ export { hasCache, getCache, getCacheAndClean, setCache } from './globalCache';
2
2
  export { normalizeUrl } from './normalize-url';
3
3
  export { default as isServer } from './is-server';
4
4
  export { resolveEdgeUrl, resolveEdgeUrlForStaticFiles, resolveExperienceEdgeUrl, SITECORE_EDGE_PLATFORM_HOSTNAME_ENV, SITECORE_EXPERIENCE_EDGE_HOSTNAME_ENV, } from './resolve-edge-url';
5
- export { resolveUrl, isTimeoutError, getEnforcedCorsHeaders, EnhancedOmit, getAllowedOriginsFromEnv, isRegexOrUrl, areURLSearchParamsEqual, escapeNonSpecialQuestionMarks, mergeURLSearchParams, } from './utils';
5
+ export { resolveUrl, isTimeoutError, getEnforcedCorsHeaders, EnhancedOmit, getAllowedOriginsFromEnv, isRegexOrUrl, areURLSearchParamsEqual, escapeNonSpecialQuestionMarks, escapeRegExp, mergeURLSearchParams, } from './utils';
6
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAE/E,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EACL,cAAc,EACd,4BAA4B,EAC5B,wBAAwB,EACxB,mCAAmC,EACnC,qCAAqC,GACtC,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,UAAU,EACV,cAAc,EACd,sBAAsB,EACtB,YAAY,EACZ,wBAAwB,EACxB,YAAY,EACZ,uBAAuB,EACvB,6BAA6B,EAC7B,oBAAoB,GACrB,MAAM,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAE/E,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EACL,cAAc,EACd,4BAA4B,EAC5B,wBAAwB,EACxB,mCAAmC,EACnC,qCAAqC,GACtC,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,UAAU,EACV,cAAc,EACd,sBAAsB,EACtB,YAAY,EACZ,wBAAwB,EACxB,YAAY,EACZ,uBAAuB,EACvB,6BAA6B,EAC7B,YAAY,EACZ,oBAAoB,GACrB,MAAM,SAAS,CAAC"}
@@ -73,6 +73,13 @@ export declare const areURLSearchParamsEqual: (params1: URLSearchParams, params2
73
73
  * @public
74
74
  */
75
75
  export declare const escapeNonSpecialQuestionMarks: (input: string) => string;
76
+ /**
77
+ * Escapes a string so it can be safely embedded in a RegExp as a literal.
78
+ * @param {string} input - The string to escape
79
+ * @returns {string} The escaped string safe for RegExp construction
80
+ * @internal
81
+ */
82
+ export declare function escapeRegExp(input: string): string;
76
83
  /**
77
84
  * Merges two URLSearchParams objects. If both objects contain the same key, the value from the second object overrides the first.
78
85
  * @param {URLSearchParams} params1 - The first set of URL search parameters.
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/tools/utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,MAAM,CAAC;AAC3C,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAGlD;;;;GAIG;AAEH,MAAM,MAAM,YAAY,CAAC,CAAC,EAAE,CAAC,SAAS,WAAW,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,IAAI,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAE,CAAC;AAe/F;;;;;;;;GAQG;AACH,wBAAgB,UAAU,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,GAAE,mBAAwB,GAAG,MAAM,CAsBpF;AAED;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