@squiz/render-runtime-lib 1.74.0 → 1.76.0
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.
- package/lib/PreviewComponentService.js +43 -0
- package/lib/PreviewComponentService.js.map +1 -0
- package/lib/PreviewComponentService.spec.js +64 -0
- package/lib/PreviewComponentService.spec.js.map +1 -0
- package/lib/RenderInputService.js +286 -0
- package/lib/RenderInputService.js.map +1 -0
- package/lib/RenderInputService.spec.js +645 -0
- package/lib/RenderInputService.spec.js.map +1 -0
- package/lib/component-runner/ComponentRootUrlResolver.js +3 -0
- package/lib/component-runner/ComponentRootUrlResolver.js.map +1 -0
- package/lib/component-runner/ComponentRunnerServiceWithWorkers.js +91 -0
- package/lib/component-runner/ComponentRunnerServiceWithWorkers.js.map +1 -0
- package/lib/component-runner/ComponentRunnerServiceWithWorkers.spec.js +104 -0
- package/lib/component-runner/ComponentRunnerServiceWithWorkers.spec.js.map +1 -0
- package/lib/component-runner/ComponentRuntimeContext.d.ts +1 -8
- package/lib/component-runner/ComponentRuntimeContext.js +3 -0
- package/lib/component-runner/ComponentRuntimeContext.js.map +1 -0
- package/lib/component-runner/ContentRuntimeService.js +31 -0
- package/lib/component-runner/ContentRuntimeService.js.map +1 -0
- package/lib/component-runner/ExecuteComponentTask.d.ts +1 -9
- package/lib/component-runner/ExecuteComponentTask.js +8 -0
- package/lib/component-runner/ExecuteComponentTask.js.map +1 -0
- package/lib/component-runner/FunctionReturnTypes.js +3 -0
- package/lib/component-runner/FunctionReturnTypes.js.map +1 -0
- package/lib/component-runner/index.js +23 -0
- package/lib/component-runner/index.js.map +1 -0
- package/lib/component-runner/worker/component-bootstrapper.js +63 -0
- package/lib/component-runner/worker/component-bootstrapper.js.map +1 -0
- package/lib/health-check-service.js +3 -0
- package/lib/health-check-service.js.map +1 -0
- package/lib/index.d.ts +0 -16
- package/lib/index.js +23 -4610
- package/lib/index.js.map +1 -7
- package/lib/ioc.js +37 -0
- package/lib/ioc.js.map +1 -0
- package/lib/test/helpers/fixtures.js +152 -0
- package/lib/test/helpers/fixtures.js.map +1 -0
- package/lib/test/helpers/stack.js +121 -0
- package/lib/test/helpers/stack.js.map +1 -0
- package/lib/test/index.js +21 -0
- package/lib/test/index.js.map +1 -0
- package/lib/test/mock-services/MockedComponentSetService.js +413 -0
- package/lib/test/mock-services/MockedComponentSetService.js.map +1 -0
- package/lib/test/mock-services/MockedContentItemService.js +37 -0
- package/lib/test/mock-services/MockedContentItemService.js.map +1 -0
- package/lib/test-helpers.d.ts +16 -0
- package/lib/test-helpers.js +44 -0
- package/lib/test-helpers.js.map +1 -0
- package/lib/utils/getContentItemIdFromInput.js +13 -0
- package/lib/utils/getContentItemIdFromInput.js.map +1 -0
- package/lib/utils/getContentItemIdFromInput.spec.js +18 -0
- package/lib/utils/getContentItemIdFromInput.spec.js.map +1 -0
- package/lib/utils/resolvePreviewOutput.js +71 -0
- package/lib/utils/resolvePreviewOutput.js.map +1 -0
- package/lib/utils/resolvePreviewOutput.spec.js +168 -0
- package/lib/utils/resolvePreviewOutput.spec.js.map +1 -0
- package/lib/utils/setHeadersOnExpressResponse.js +15 -0
- package/lib/utils/setHeadersOnExpressResponse.js.map +1 -0
- package/lib/utils/setHeadersOnExpressResponse.sepc.js +21 -0
- package/lib/utils/setHeadersOnExpressResponse.sepc.js.map +1 -0
- package/lib/webserver/app.js +78 -0
- package/lib/webserver/app.js.map +1 -0
- package/lib/webserver/controllers/CoreController.js +116 -0
- package/lib/webserver/controllers/CoreController.js.map +1 -0
- package/lib/webserver/controllers/CoreController.spec.js +132 -0
- package/lib/webserver/controllers/CoreController.spec.js.map +1 -0
- package/lib/webserver/controllers/DefinitionController.js +162 -0
- package/lib/webserver/controllers/DefinitionController.js.map +1 -0
- package/lib/webserver/controllers/DefinitionController.spec.js +16 -0
- package/lib/webserver/controllers/DefinitionController.spec.js.map +1 -0
- package/lib/webserver/controllers/DevelopmentController.js +149 -0
- package/lib/webserver/controllers/DevelopmentController.js.map +1 -0
- package/lib/webserver/controllers/DevelopmentController.spec.js +29 -0
- package/lib/webserver/controllers/DevelopmentController.spec.js.map +1 -0
- package/lib/webserver/controllers/PreviewController.spec.js +124 -0
- package/lib/webserver/controllers/PreviewController.spec.js.map +1 -0
- package/lib/webserver/controllers/RenderController.d.ts +3 -2
- package/lib/webserver/controllers/RenderController.js +221 -0
- package/lib/webserver/controllers/RenderController.js.map +1 -0
- package/lib/webserver/controllers/RenderController.spec.js +441 -0
- package/lib/webserver/controllers/RenderController.spec.js.map +1 -0
- package/lib/webserver/controllers/StaticController.js +149 -0
- package/lib/webserver/controllers/StaticController.js.map +1 -0
- package/lib/webserver/controllers/StaticController.spec.js +28 -0
- package/lib/webserver/controllers/StaticController.spec.js.map +1 -0
- package/lib/webserver/controllers/test/definition-route-tests.js +627 -0
- package/lib/webserver/controllers/test/definition-route-tests.js.map +1 -0
- package/lib/webserver/controllers/test/development-route-tests.js +110 -0
- package/lib/webserver/controllers/test/development-route-tests.js.map +1 -0
- package/lib/webserver/controllers/test/preview-route-tests.js +122 -0
- package/lib/webserver/controllers/test/preview-route-tests.js.map +1 -0
- package/lib/webserver/controllers/test/render-route-sandbox-tests.js +194 -0
- package/lib/webserver/controllers/test/render-route-sandbox-tests.js.map +1 -0
- package/lib/webserver/controllers/test/render-route-tests.js +422 -0
- package/lib/webserver/controllers/test/render-route-tests.js.map +1 -0
- package/lib/webserver/controllers/test/static-route-tests.js +96 -0
- package/lib/webserver/controllers/test/static-route-tests.js.map +1 -0
- package/lib/webserver/index.js +6 -0
- package/lib/webserver/index.js.map +1 -0
- package/lib/webserver/routes/routes.js +902 -0
- package/lib/webserver/routes/routes.js.map +1 -0
- package/package.json +19 -12
- package/lib/migrations/20220704054051_initial.sql +0 -19
- package/lib/migrations/20220718172237_adding_component_sets.sql +0 -23
- package/lib/migrations/20220728113941_add_env_vars_field.sql +0 -1
- package/lib/migrations/20220817113300_removing_null_props_from_jsonb.sql +0 -41
- package/lib/migrations/20221027151225_dummy.sql +0 -2
- package/lib/migrations/20221117151200_add_detail_columns_to_component_version.js +0 -40
- package/lib/migrations/20221220151200_add_required_to_manifests.js +0 -7794
- package/lib/migrations/20221222151200_add_required_to_manifests.js +0 -7856
- package/lib/migrations/20223525103556_component_set_rule.sql +0 -19
- package/lib/migrations/20230111095522_update_environment_property.js +0 -7802
- package/lib/migrations/20230203084900_ensure_static_root_exists.js +0 -47
- package/lib/migrations/20230210143300_lowercase_all_uri_names.js +0 -88
- package/lib/migrations/20230217151212_component_set_component_version_updates.sql +0 -38
- package/lib/migrations/20230218121212_add_component_set_rules.js +0 -24
- package/lib/migrations/202406061447_edge_component_type.sql +0 -1
- package/lib/migrations/202407111308_component_version_type.sql +0 -1
- package/lib/migrations/202408061132_update_type_to_server.sql +0 -1
- package/lib/public/docs.json +0 -5509
- package/lib/worker/component-bootstrapper.js +0 -170132
- package/lib/worker/component-bootstrapper.js.map +0 -7
|
@@ -0,0 +1,221 @@
|
|
|
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 __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
19
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
20
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
21
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
22
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
23
|
+
};
|
|
24
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
25
|
+
if (mod && mod.__esModule) return mod;
|
|
26
|
+
var result = {};
|
|
27
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
28
|
+
__setModuleDefault(result, mod);
|
|
29
|
+
return result;
|
|
30
|
+
};
|
|
31
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
32
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
33
|
+
};
|
|
34
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
35
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
36
|
+
};
|
|
37
|
+
var RenderController_1;
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.RenderController = void 0;
|
|
40
|
+
const tsoa_1 = require("tsoa");
|
|
41
|
+
const inversify_binding_decorators_1 = require("inversify-binding-decorators");
|
|
42
|
+
const inversify_1 = require("inversify");
|
|
43
|
+
const query_string_1 = require("query-string");
|
|
44
|
+
const component_lib_1 = require("@squiz/component-lib");
|
|
45
|
+
const RenderInputService_1 = require("../../RenderInputService");
|
|
46
|
+
const PreviewComponentService_1 = require("../../PreviewComponentService");
|
|
47
|
+
const setHeadersOnExpressResponse_1 = require("../../utils/setHeadersOnExpressResponse");
|
|
48
|
+
const dx_common_lib_1 = require("@squiz/dx-common-lib");
|
|
49
|
+
const cheerio = __importStar(require("cheerio"));
|
|
50
|
+
// import { ValueType, metrics } from '@opentelemetry/api';
|
|
51
|
+
const UPPERCASE_REGEX = /[A-Z]/;
|
|
52
|
+
// const meter = metrics.getMeter('render-runtime');
|
|
53
|
+
let RenderController = RenderController_1 = class RenderController extends tsoa_1.Controller {
|
|
54
|
+
constructor(componentSetService, manifestService, componentFunctionService, componentRunnerService, renderInputService, contentItemService, componentPreviewService) {
|
|
55
|
+
super();
|
|
56
|
+
this.componentSetService = componentSetService;
|
|
57
|
+
this.manifestService = manifestService;
|
|
58
|
+
this.componentFunctionService = componentFunctionService;
|
|
59
|
+
this.componentRunnerService = componentRunnerService;
|
|
60
|
+
this.renderInputService = renderInputService;
|
|
61
|
+
this.contentItemService = contentItemService;
|
|
62
|
+
this.componentPreviewService = componentPreviewService;
|
|
63
|
+
}
|
|
64
|
+
async getDefaultFunctionRendering(expressRequest, namespace, componentName, version, componentSet, previewKey, contentItemId, previewBlockIndex) {
|
|
65
|
+
await this.getGivenFunctionRendering(expressRequest, namespace, componentName, version, '', componentSet, previewKey, contentItemId, previewBlockIndex);
|
|
66
|
+
}
|
|
67
|
+
async getGivenFunctionRendering(expressRequest, namespace, componentName, version, functionName, componentSet, previewKey, contentItemId, previewBlockIndex) {
|
|
68
|
+
const response = expressRequest.res;
|
|
69
|
+
(0, dx_common_lib_1.assertIsDefined)(response);
|
|
70
|
+
const { path, query } = expressRequest;
|
|
71
|
+
if (UPPERCASE_REGEX.test(path) || (componentSet && UPPERCASE_REGEX.test(componentSet))) {
|
|
72
|
+
const url = (0, query_string_1.stringifyUrl)({
|
|
73
|
+
url: path.toLowerCase(),
|
|
74
|
+
query: {
|
|
75
|
+
...query,
|
|
76
|
+
_componentSet: componentSet === null || componentSet === void 0 ? void 0 : componentSet.toLowerCase(),
|
|
77
|
+
},
|
|
78
|
+
});
|
|
79
|
+
response.redirect(url);
|
|
80
|
+
return;
|
|
81
|
+
}
|
|
82
|
+
//TODO: Update metric export https://squizgroup.atlassian.net/browse/FEAAS-768
|
|
83
|
+
// const histogram = meter.createHistogram('component.render.duration', {
|
|
84
|
+
// description: 'A distribution of the component render times',
|
|
85
|
+
// unit: 'milliseconds',
|
|
86
|
+
// valueType: ValueType.INT,
|
|
87
|
+
// });
|
|
88
|
+
// const start = new Date();
|
|
89
|
+
const renderInput = await this.renderInputService.resolveInput({
|
|
90
|
+
componentSet,
|
|
91
|
+
namespace,
|
|
92
|
+
componentName,
|
|
93
|
+
version,
|
|
94
|
+
previewKey,
|
|
95
|
+
contentItemId,
|
|
96
|
+
expressRequest,
|
|
97
|
+
functionName,
|
|
98
|
+
});
|
|
99
|
+
let renderedOutput = await this.doFunctionRender(renderInput);
|
|
100
|
+
// If we have a string (such as HTML), add the block index attribute if set
|
|
101
|
+
if (typeof renderedOutput === 'string' && previewBlockIndex) {
|
|
102
|
+
renderedOutput = this.processPreviewHtml(previewBlockIndex, renderedOutput);
|
|
103
|
+
}
|
|
104
|
+
this.handleResponse(renderInput, renderedOutput, response);
|
|
105
|
+
// const end = new Date();
|
|
106
|
+
// histogram.record(end.getTime() - start.getTime(), {
|
|
107
|
+
// 'component.id': componentName,
|
|
108
|
+
// 'component.set': componentSet,
|
|
109
|
+
// 'component.function': functionName,
|
|
110
|
+
// });
|
|
111
|
+
}
|
|
112
|
+
processPreviewHtml(index, html) {
|
|
113
|
+
const $ = cheerio.load(html);
|
|
114
|
+
$('body')
|
|
115
|
+
.children()
|
|
116
|
+
.each((idx, el) => {
|
|
117
|
+
$(el).attr('data-block-index', index);
|
|
118
|
+
});
|
|
119
|
+
return $('body').html() || '';
|
|
120
|
+
}
|
|
121
|
+
handleResponse(input, output, response) {
|
|
122
|
+
this.setHeadersOnResponse(input, response);
|
|
123
|
+
response.send(output);
|
|
124
|
+
}
|
|
125
|
+
async doFunctionRender(renderInput) {
|
|
126
|
+
let result = await this.renderAndValidateOutput(renderInput);
|
|
127
|
+
if (renderInput.renderType === 'preview') {
|
|
128
|
+
result = await this.componentPreviewService.dressRenderedOutputForPreview(renderInput.manifest, renderInput.componentFunction, renderInput.previewKey, result);
|
|
129
|
+
}
|
|
130
|
+
return result;
|
|
131
|
+
}
|
|
132
|
+
async renderAndValidateOutput(renderInput) {
|
|
133
|
+
var _a, _b;
|
|
134
|
+
let previewKey = undefined;
|
|
135
|
+
if (renderInput.renderType === 'preview') {
|
|
136
|
+
previewKey = renderInput.previewKey;
|
|
137
|
+
}
|
|
138
|
+
const result = await this.componentRunnerService.executeComponentFunction({
|
|
139
|
+
dxpApiKey: renderInput.dxpApiKey,
|
|
140
|
+
requestId: renderInput.requestId,
|
|
141
|
+
args: [renderInput.input],
|
|
142
|
+
functionEntryFilePath: renderInput.functionEntryFilePath,
|
|
143
|
+
environment: renderInput.runtimeSet.environment,
|
|
144
|
+
componentFullName: renderInput.componentFullName,
|
|
145
|
+
componentFunction: renderInput.componentFunction,
|
|
146
|
+
componentRootUrl: renderInput.componentRootUrl,
|
|
147
|
+
manifest: renderInput.manifestForWeb,
|
|
148
|
+
runtimeSet: renderInput.runtimeSet,
|
|
149
|
+
manifestPath: renderInput.renderType === 'preview' ? renderInput.manifestPath : '',
|
|
150
|
+
previewKey: previewKey,
|
|
151
|
+
queryParameters: renderInput.queryParameters,
|
|
152
|
+
});
|
|
153
|
+
try {
|
|
154
|
+
this.componentFunctionService.assertOutputValidForComponentFunction(result, renderInput.componentFunction);
|
|
155
|
+
}
|
|
156
|
+
catch (e) {
|
|
157
|
+
throw new component_lib_1.ComponentError(renderInput.requestId, e, (_b = (_a = renderInput.componentFunction) === null || _a === void 0 ? void 0 : _a.name) !== null && _b !== void 0 ? _b : 'main', renderInput.componentFullName, renderInput.manifest.getVersion(), renderInput.functionEntryFilePath, renderInput.componentFunction.output.responseType);
|
|
158
|
+
}
|
|
159
|
+
return result;
|
|
160
|
+
}
|
|
161
|
+
setHeadersOnResponse(renderInput, response) {
|
|
162
|
+
const headers = renderInput.headers || {};
|
|
163
|
+
switch (renderInput.componentFunction.output.responseType) {
|
|
164
|
+
case 'html':
|
|
165
|
+
headers['content-type'] = 'text/html';
|
|
166
|
+
break;
|
|
167
|
+
case 'json':
|
|
168
|
+
headers['content-type'] = 'application/json';
|
|
169
|
+
break;
|
|
170
|
+
}
|
|
171
|
+
(0, setHeadersOnExpressResponse_1.setHeadersOnExpressResponse)(headers, response);
|
|
172
|
+
let cacheControl = response.getHeader('cache-control');
|
|
173
|
+
if (typeof cacheControl !== 'string') {
|
|
174
|
+
cacheControl = undefined;
|
|
175
|
+
}
|
|
176
|
+
response.setHeader('cache-control', (0, dx_common_lib_1.parseAndSanitiseCacheControlHeader)(cacheControl));
|
|
177
|
+
}
|
|
178
|
+
};
|
|
179
|
+
__decorate([
|
|
180
|
+
(0, tsoa_1.Get)('/:namespace/:componentName/:version'),
|
|
181
|
+
__param(0, (0, tsoa_1.Request)()),
|
|
182
|
+
__param(1, (0, tsoa_1.Path)()),
|
|
183
|
+
__param(2, (0, tsoa_1.Path)()),
|
|
184
|
+
__param(3, (0, tsoa_1.Path)()),
|
|
185
|
+
__param(4, (0, tsoa_1.Query)('_componentSet')),
|
|
186
|
+
__param(5, (0, tsoa_1.Query)('_previewKey')),
|
|
187
|
+
__param(6, (0, tsoa_1.Query)('_contentItemId')),
|
|
188
|
+
__param(7, (0, tsoa_1.Query)('_previewBlockIndex')),
|
|
189
|
+
__metadata("design:type", Function),
|
|
190
|
+
__metadata("design:paramtypes", [Object, String, String, String, String, String, String, String]),
|
|
191
|
+
__metadata("design:returntype", Promise)
|
|
192
|
+
], RenderController.prototype, "getDefaultFunctionRendering", null);
|
|
193
|
+
__decorate([
|
|
194
|
+
(0, tsoa_1.Get)('/:namespace/:componentName/:version/:functionName'),
|
|
195
|
+
__param(0, (0, tsoa_1.Request)()),
|
|
196
|
+
__param(1, (0, tsoa_1.Path)()),
|
|
197
|
+
__param(2, (0, tsoa_1.Path)()),
|
|
198
|
+
__param(3, (0, tsoa_1.Path)()),
|
|
199
|
+
__param(4, (0, tsoa_1.Path)()),
|
|
200
|
+
__param(5, (0, tsoa_1.Query)('_componentSet')),
|
|
201
|
+
__param(6, (0, tsoa_1.Query)('_previewKey')),
|
|
202
|
+
__param(7, (0, tsoa_1.Query)('_contentItemId')),
|
|
203
|
+
__param(8, (0, tsoa_1.Query)('_previewBlockIndex')),
|
|
204
|
+
__metadata("design:type", Function),
|
|
205
|
+
__metadata("design:paramtypes", [Object, String, String, String, String, String, String, String, String]),
|
|
206
|
+
__metadata("design:returntype", Promise)
|
|
207
|
+
], RenderController.prototype, "getGivenFunctionRendering", null);
|
|
208
|
+
RenderController = RenderController_1 = __decorate([
|
|
209
|
+
(0, inversify_binding_decorators_1.provide)(RenderController_1),
|
|
210
|
+
(0, tsoa_1.Route)('/r'),
|
|
211
|
+
__param(0, (0, inversify_1.inject)('ComponentSetService')),
|
|
212
|
+
__param(1, (0, inversify_1.inject)('ManifestService')),
|
|
213
|
+
__param(2, (0, inversify_1.inject)('ComponentFunctionService')),
|
|
214
|
+
__param(3, (0, inversify_1.inject)('ComponentRunnerService')),
|
|
215
|
+
__param(4, (0, inversify_1.inject)('RenderInputService')),
|
|
216
|
+
__param(5, (0, inversify_1.inject)('ContentItemService')),
|
|
217
|
+
__param(6, (0, inversify_1.inject)('ComponentPreviewService')),
|
|
218
|
+
__metadata("design:paramtypes", [Object, Object, component_lib_1.ComponentFunctionService, Object, RenderInputService_1.RenderInputService, Object, PreviewComponentService_1.ComponentPreviewService])
|
|
219
|
+
], RenderController);
|
|
220
|
+
exports.RenderController = RenderController;
|
|
221
|
+
//# sourceMappingURL=RenderController.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RenderController.js","sourceRoot":"","sources":["../../../src/webserver/controllers/RenderController.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAAoE;AACpE,+EAAuD;AACvD,yCAAmC;AAEnC,+CAA4C;AAG5C,wDA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