@spinajs/di 1.1.5 → 1.2.19

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/container.js CHANGED
@@ -2,7 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Container = void 0;
4
4
  const exceptions_1 = require("@spinajs/exceptions");
5
- const _ = require("lodash");
6
5
  require("reflect-metadata");
7
6
  const array_1 = require("./array");
8
7
  const decorators_1 = require("./decorators");
@@ -10,17 +9,18 @@ const enums_1 = require("./enums");
10
9
  const helpers_1 = require("./helpers");
11
10
  const interfaces_1 = require("./interfaces");
12
11
  const events_1 = require("events");
13
- const exceptions_2 = require("./exceptions");
12
+ const binder_1 = require("./binder");
13
+ const registry_1 = require("./registry");
14
+ const container_cache_1 = require("./container-cache");
14
15
  /**
15
16
  * Dependency injection container implementation
16
17
  */
17
18
  class Container extends events_1.EventEmitter {
18
19
  constructor(parent) {
19
20
  super();
20
- this.registry = new Map();
21
- this.cache = new Map();
21
+ this.registry = new registry_1.Registry(this);
22
+ this.cache = new container_cache_1.ContainerCache(this);
22
23
  this.parent = parent || undefined;
23
- this.registerSelf();
24
24
  }
25
25
  /**
26
26
  * Returns container cache - map object with resolved classes as singletons
@@ -31,6 +31,9 @@ class Container extends events_1.EventEmitter {
31
31
  get Registry() {
32
32
  return this.registry;
33
33
  }
34
+ get Parent() {
35
+ return this.parent;
36
+ }
34
37
  /**
35
38
  * Clears container registry and cache. shorthand for container.clearCache() && container.clearRegistry()
36
39
  */
@@ -42,54 +45,23 @@ class Container extends events_1.EventEmitter {
42
45
  */
43
46
  clearCache() {
44
47
  this.cache.clear();
45
- this.cache = new Map();
46
48
  }
47
49
  /**
48
50
  * Clears container resolved types
49
51
  */
50
52
  clearRegistry() {
51
- this.registry.clear();
52
- this.registerSelf();
53
+ this.Registry.clear();
53
54
  }
54
55
  /**
55
56
  * Register class/interface to DI.
56
57
  * @param type - interface object to register
57
- * @throws { InvalidArgument } if type is null or undefined
58
+ * @throws {@link InvalidArgument} if type is null or undefined
58
59
  */
59
60
  register(implementation) {
60
- if (_.isNil(implementation)) {
61
+ if (!implementation) {
61
62
  throw new exceptions_1.InvalidArgument('argument `type` cannot be null or undefined');
62
63
  }
63
- const self = this;
64
- return {
65
- _impl: null,
66
- as(type) {
67
- this._impl = implementation;
68
- const tname = typeof type === 'string' ? type : type.name;
69
- if (!self._hasRegisteredType(tname, implementation)) {
70
- if (self.registry.has(tname)) {
71
- self.registry.get(tname).push(implementation);
72
- }
73
- else {
74
- self.registry.set(tname, [implementation]);
75
- }
76
- }
77
- return this;
78
- },
79
- asSelf() {
80
- this._impl = implementation;
81
- self.registry.set(implementation.name, [implementation]);
82
- return this;
83
- },
84
- singleInstance() {
85
- const descriptor = {
86
- inject: [],
87
- resolver: enums_1.ResolveType.Singleton,
88
- };
89
- this._impl[decorators_1.DI_DESCRIPTION_SYMBOL] = descriptor;
90
- return this;
91
- },
92
- };
64
+ return new binder_1.Binder(implementation, this);
93
65
  }
94
66
  /**
95
67
  * Creates child DI container.
@@ -99,294 +71,267 @@ class Container extends events_1.EventEmitter {
99
71
  return new Container(this);
100
72
  }
101
73
  get(service, parent = true) {
102
- const self = this;
103
- const identifier = typeof service === 'string'
104
- ? this.Registry.get(service) || service
105
- : service instanceof array_1.TypedArray
106
- ? this.Registry.get(service.Type.name)
107
- : this.Registry.get(service.name) || service.name;
108
- if (!identifier) {
109
- return null;
110
- }
111
- if (typeof identifier === 'string') {
112
- return _get(identifier);
113
- }
114
- /**
115
- * When we try to get type by factory func, always return null
116
- * It's technically an arror becouse factory func in in charge now
117
- * of managing intances of created objects (eg. creating cache)
118
- *
119
- * We do not track of any instances created by factory funcions.
120
- */
121
- const isFactory = !helpers_1.isConstructor(identifier[identifier.length - 1]) && _.isFunction(identifier[identifier.length - 1]);
122
- if (isFactory) {
123
- return null;
124
- }
74
+ // get value registered as TypedArray ( mean to return all created instances )
125
75
  if (service instanceof array_1.TypedArray) {
126
- return identifier.map(t => _get(t.name));
127
- }
128
- return _get(identifier[identifier.length - 1].name);
129
- function _get(i) {
130
- if (self.cache.has(i)) {
131
- return self.cache.get(i);
132
- }
133
- else if (self.parent && parent) {
134
- return self.parent.get(i, parent);
135
- }
136
- return null;
76
+ return this.cache.get((0, helpers_1.getTypeName)(service.Type));
137
77
  }
138
- }
139
- getRegistered(service, parent = true) {
140
- if (!service) {
141
- throw new exceptions_1.InvalidArgument('argument "service" cannot be null or empty');
142
- }
143
- const name = typeof service === 'string' ? service : service.constructor.name;
144
- if (this.registry.has(name)) {
145
- return this.registry.get(name);
146
- }
147
- if (this.parent && parent) {
148
- return this.parent.getRegistered(service, parent);
149
- }
150
- return null;
78
+ const r = this.cache.get(service, parent);
79
+ return r[r.length - 1];
151
80
  }
152
81
  hasRegistered(service, parent = true) {
153
- if (this.registry.has(typeof service === 'string' ? service : service.name)) {
154
- return true;
155
- }
156
- else if (this.parent && parent) {
157
- return this.parent.hasRegistered(service);
158
- }
159
- return false;
82
+ return this.Registry.hasRegistered(service, parent);
160
83
  }
161
84
  /**
162
85
  * Checks if service is already resolved and exists in container cache.
163
86
  * NOTE: check is only valid for classes that are singletons.
164
87
  *
165
88
  * @param service - service name or class to check
166
- * @returns { boolean } - true if service instance already exists, otherwise false.
167
- * @throws { InvalidArgument } when service is null or empty
89
+ * @returns true if service instance already exists, otherwise false.
90
+ * @throws {@link InvalidArgument} when service is null or empty
168
91
  */
169
- has(service, parent = true) {
170
- if (!service) {
171
- throw new exceptions_1.InvalidArgument('argument cannot be null or empty');
172
- }
173
- const name = typeof service === 'string' ? service : service.name;
174
- if (this.cache.has(name)) {
175
- return true;
176
- }
177
- if (this.parent && parent) {
178
- return this.parent.has(name);
179
- }
180
- return false;
92
+ isResolved(service, parent = true) {
93
+ return this.Cache.has(service, parent);
181
94
  }
182
95
  /**
183
96
  *
184
- * @param type type to resolve
185
- * @param options options passed to constructor / factory
186
- * @param check strict check if serivice is registered in container before resolving. Default behavior is to not check and resolve
97
+ * @param type - type to resolve
98
+ * @param options - options passed to constructor / factory
99
+ * @param check - strict check if serivice is registered in container before resolving. Default behavior is to not check and resolve
187
100
  */
188
101
  resolve(type, options, check) {
189
- const sourceType = type instanceof array_1.TypedArray ? type.Type : type;
190
- if (_.isNil(type)) {
102
+ if (!type) {
191
103
  throw new exceptions_1.InvalidArgument('argument `type` cannot be null or undefined');
192
104
  }
193
- if ((typeof options === 'boolean' && options === true) || check === true) {
194
- if (!this.hasRegistered(typeof sourceType === 'string' ? sourceType : sourceType.name)) {
195
- throw new Error(`Type ${sourceType} is not registered at container`);
196
- }
197
- }
105
+ const sourceType = type instanceof array_1.TypedArray ? type.Type : type;
106
+ const sourceName = (0, helpers_1.getTypeName)(type);
198
107
  const opt = typeof options === 'boolean' ? null : options;
199
- const isArray = type.constructor.name === 'TypedArray';
200
- const targetType = isArray
201
- ? this.getRegistered(type.Type.name) || [type.Type]
202
- : typeof type === 'string'
203
- ? this.getRegistered(type)
204
- : this.getRegistered(type.name) || [type];
205
- if (!targetType) {
206
- throw new Error(`cannot resolve type ${type} becouse is not registered in container`);
207
- }
208
- if (typeof sourceType === 'string') {
209
- return this.resolveType(sourceType, targetType[targetType.length - 1], opt);
108
+ const setCache = (r) => {
109
+ this.Cache.add(type, r);
110
+ return r;
111
+ };
112
+ if (options === true || check === true) {
113
+ if (!this.hasRegistered(sourceType)) {
114
+ throw new Error(`Type ${sourceName} is not registered at container`);
115
+ }
210
116
  }
211
- if (isArray) {
212
- const resolved = targetType.map(r => this.resolveArrayType(sourceType, r, opt));
213
- if (resolved.some(r => r instanceof Promise)) {
214
- return Promise.all(resolved);
117
+ if ((0, helpers_1.isTypedArray)(type)) {
118
+ // special case for arrays
119
+ // if we have in cache, retunr all we got
120
+ // TODO: fix this and every time check if theres is any
121
+ // new registerd type
122
+ if (this.Cache.has(type)) {
123
+ return this.Cache.get(type);
124
+ }
125
+ // if its array type, resolve all registered types or throw exception
126
+ const targetType = this.getRegisteredTypes(type);
127
+ if (!targetType) {
128
+ return [];
129
+ }
130
+ const resolved = targetType.map((r) => this.resolveType(type, r, opt));
131
+ if (resolved.some((r) => r instanceof Promise)) {
132
+ return Promise.all(resolved).then((value) => {
133
+ value.forEach((v) => setCache(v));
134
+ return value;
135
+ });
215
136
  }
137
+ // special case, we dont want to cache multiple times
138
+ resolved.forEach((v) => setCache(v));
216
139
  return resolved;
217
140
  }
218
- return this.resolveType(sourceType, targetType[targetType.length - 1], opt);
219
- }
220
- resolveArrayType(sourceType, targetType, options) {
221
- const tname = typeof sourceType === 'string' ? sourceType : sourceType.name;
222
- if (!this.Registry.has(tname)) {
223
- throw new exceptions_2.ResolveException(`Cannot resolve array of type ${tname}, no types are registered in container.`);
141
+ else {
142
+ // finaly resolve single type:
143
+ // 1. last registered type OR
144
+ // 2. if non is registered - type itself
145
+ let targetType = this.getRegisteredTypes(type);
146
+ if (!targetType) {
147
+ // if nothing is register under string identifier, then return null
148
+ if (typeof type === 'string') {
149
+ return null;
150
+ }
151
+ else {
152
+ targetType = [type];
153
+ }
154
+ }
155
+ // resolve last registered type ( newest )
156
+ const rValue = this.resolveType(sourceType, targetType[targetType.length - 1], opt);
157
+ if ((0, helpers_1.isPromise)(rValue)) {
158
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-call
159
+ return rValue.then((v) => {
160
+ setCache(v);
161
+ return v;
162
+ });
163
+ }
164
+ setCache(rValue);
165
+ return rValue;
224
166
  }
225
- return this.resolveType(sourceType, targetType, options);
167
+ }
168
+ getRegisteredTypes(service, parent) {
169
+ return this.Registry.getTypes(service, parent);
226
170
  }
227
171
  resolveType(sourceType, targetType, options) {
228
- const self = this;
229
- const descriptor = _extractDescriptor(targetType);
230
- const isFactory = !helpers_1.isConstructor(targetType) && _.isFunction(targetType);
231
172
  /**
232
173
  * If its a factory func, always resolve as new instance
233
174
  */
234
- if (isFactory) {
235
- return _getNewInstance(targetType);
236
- }
175
+ if ((0, helpers_1.isFactory)(targetType)) {
176
+ return this.getNewInstance((0, helpers_1.getTypeName)(sourceType), targetType, null, options);
177
+ }
178
+ // we now know its not factory func
179
+ // but typescript complains about this
180
+ // becouse isFactory is custom type check
181
+ const tType = targetType;
182
+ const sName = (0, helpers_1.getTypeName)(sourceType);
183
+ const descriptor = this.extractDescriptor(tType);
184
+ // check if is singleton,
185
+ // resolving strategy per container is treatead as singleton
186
+ // in this particular container
187
+ const isSingletonInChild = descriptor.resolver === enums_1.ResolveType.PerChildContainer;
188
+ const isSingleton = descriptor.resolver === enums_1.ResolveType.Singleton;
189
+ const getCachedInstance = (e, parent) => {
190
+ if (this.isResolved(e, parent)) {
191
+ return this.get(e, parent);
192
+ }
193
+ return null;
194
+ };
195
+ const resolve = (d, t, i) => {
196
+ if (d.resolver === enums_1.ResolveType.NewInstance) {
197
+ return this.getNewInstance((0, helpers_1.getTypeName)(sourceType), t, i, options);
198
+ }
199
+ this.Registry.register(sName, t);
200
+ return getCachedInstance(tType, d.resolver === enums_1.ResolveType.Singleton ? true : false) || this.getNewInstance((0, helpers_1.getTypeName)(sourceType), t, i, options);
201
+ };
237
202
  // check cache if needed
238
- if (descriptor.resolver === enums_1.ResolveType.Singleton || descriptor.resolver === enums_1.ResolveType.PerChildContainer) {
239
- if (this.has(targetType, descriptor.resolver === enums_1.ResolveType.Singleton)) {
240
- return this.get(targetType);
203
+ if (isSingletonInChild || isSingleton) {
204
+ // if its singleton ( not per child container )
205
+ // check also in parent containers
206
+ // ------- IMPORTANT ------------
207
+ // TODO: in future allow to check in runtime if target type is cashed,
208
+ // now, if for example we resolve array of some type,
209
+ // when we later register another type of base class used in typed array
210
+ // we will not resolve it, becaouse contaienr will not check
211
+ // if in cache this new type exists ( only check if type in array exists )
212
+ const cached = getCachedInstance(sourceType, isSingleton);
213
+ if (cached) {
214
+ return cached;
241
215
  }
242
216
  }
243
- const deps = _resolveDeps(descriptor.inject);
217
+ const deps = this.resolveDependencies(descriptor.inject);
244
218
  if (deps instanceof Promise) {
245
- return deps
246
- .then(resolvedDependencies => {
247
- return _resolve(descriptor, targetType, resolvedDependencies);
248
- }).then(_setCache);
219
+ return deps.then((resolvedDependencies) => {
220
+ return resolve(descriptor, tType, resolvedDependencies);
221
+ });
249
222
  }
250
223
  else {
251
- const resInstance = _resolve(descriptor, targetType, deps);
224
+ const resInstance = resolve(descriptor, tType, deps);
252
225
  if (resInstance instanceof Promise) {
253
- return resInstance.then(_setCache);
226
+ return resInstance;
254
227
  }
255
- _setCache(resInstance);
256
228
  return resInstance;
257
229
  }
258
- function _getNameOfResolvedType() {
259
- return targetType.name;
260
- }
261
- function _setCache(r) {
262
- const checkParent = descriptor.resolver === enums_1.ResolveType.Singleton;
263
- const toCheck = _getNameOfResolvedType();
264
- if (!self.has(toCheck, checkParent)) {
265
- self.Cache.set(toCheck, r);
266
- }
267
- return r;
230
+ }
231
+ getNewInstance(sourceType, typeToCreate, a, options) {
232
+ let args = [null];
233
+ let newInstance = null;
234
+ /**
235
+ * If type is not Constructable, we assume its factory function,
236
+ * just call it with `this` container.
237
+ */
238
+ if ((0, helpers_1.isFactory)(typeToCreate)) {
239
+ newInstance = typeToCreate(this, ...(options !== null && options !== void 0 ? options : []));
268
240
  }
269
- function _resolve(d, t, i) {
270
- const tname = typeof sourceType === 'string' ? sourceType : sourceType.name;
271
- if (d.resolver === enums_1.ResolveType.NewInstance) {
272
- return _getNewInstance(t, i);
241
+ else {
242
+ if (a.constructor.name === 'Array') {
243
+ args = args.concat(a.filter((i) => !i.autoinject).map((i) => i.instance));
273
244
  }
274
- if (!self.Registry.has(tname)) {
275
- self.Registry.set(tname, [t]);
245
+ if (options && options.length !== 0) {
246
+ args = args.concat(options);
276
247
  }
277
- else {
278
- if (!self._hasRegisteredType(sourceType, t)) {
279
- self.Registry.set(tname, self.Registry.get(tname).concat(t));
280
- }
248
+ /* eslint-disable */
249
+ newInstance = new (Function.prototype.bind.apply(typeToCreate, args))();
250
+ for (const ai of a.filter((i) => i.autoinject)) {
251
+ // TYPE HACK to tell typescript we dont care type
252
+ /* eslint-disable */
253
+ newInstance[`${ai.autoinjectKey}`] = ai.instance;
281
254
  }
282
- return (_getCachedInstance(targetType, d.resolver === enums_1.ResolveType.Singleton ? true : false) || _getNewInstance(t, i));
283
- }
284
- function _extractDescriptor(type) {
285
- const descriptor = {
286
- inject: [],
287
- resolver: enums_1.ResolveType.Singleton,
288
- };
289
- reduce(type);
290
- descriptor.inject = _.uniqWith(descriptor.inject, (a, b) => {
291
- return a.inject.name === b.inject.name;
292
- });
293
- return descriptor;
294
- function reduce(t) {
295
- if (!t) {
296
- return;
297
- }
298
- reduce(t.prototype);
299
- reduce(t.__proto__);
300
- if (t[decorators_1.DI_DESCRIPTION_SYMBOL]) {
301
- descriptor.inject = descriptor.inject.concat(t[decorators_1.DI_DESCRIPTION_SYMBOL].inject);
302
- descriptor.resolver = t[decorators_1.DI_DESCRIPTION_SYMBOL].resolver;
303
- }
255
+ if ((0, helpers_1.isAsyncModule)(newInstance)) {
256
+ return new Promise((res, rej) => {
257
+ newInstance
258
+ .resolveAsync()
259
+ .then(() => {
260
+ this.emit(`di.resolved.${typeToCreate.name}`, this, newInstance);
261
+ this.emit(`di.resolved.${sourceType}`, this, newInstance);
262
+ })
263
+ .then(() => {
264
+ res(newInstance);
265
+ })
266
+ .catch((err) => rej(err));
267
+ });
304
268
  }
305
- }
306
- function _resolveDeps(toInject) {
307
- const dependencies = toInject.map(t => {
308
- const promiseOrVal = self.resolve(t.inject);
309
- if (promiseOrVal instanceof Promise) {
310
- return new Promise((res, _) => {
311
- res(promiseOrVal);
312
- }).then((val) => {
313
- return {
314
- autoinject: t.autoinject,
315
- autoinjectKey: t.autoinjectKey,
316
- instance: val,
317
- };
318
- });
269
+ else {
270
+ if (newInstance instanceof interfaces_1.SyncModule) {
271
+ newInstance.resolve();
319
272
  }
320
- return {
321
- autoinject: t.autoinject,
322
- autoinjectKey: t.autoinjectKey,
323
- instance: promiseOrVal,
324
- };
325
- });
326
- if (dependencies.some(p => p instanceof Promise)) {
327
- return Promise.all(dependencies);
273
+ this.emit(`di.resolved.${typeToCreate.name}`, this, newInstance);
274
+ this.emit(`di.resolved.${sourceType}`, this, newInstance);
328
275
  }
329
- return dependencies;
330
276
  }
331
- function _getCachedInstance(e, parent) {
332
- if (self.has(e, parent)) {
333
- return self.get(e, parent);
277
+ return newInstance;
278
+ }
279
+ hasRegisteredType(source, type, parent) {
280
+ return this.Registry.hasRegisteredType(source, type, parent);
281
+ }
282
+ resolveDependencies(toInject) {
283
+ const dependencies = toInject.map((t) => {
284
+ const promiseOrVal = this.resolve(t.inject);
285
+ if (promiseOrVal instanceof Promise) {
286
+ return new Promise((res, _) => {
287
+ res(promiseOrVal);
288
+ }).then((val) => {
289
+ return {
290
+ autoinject: t.autoinject,
291
+ autoinjectKey: t.autoinjectKey,
292
+ instance: val,
293
+ };
294
+ });
334
295
  }
335
- return null;
296
+ return {
297
+ autoinject: t.autoinject,
298
+ autoinjectKey: t.autoinjectKey,
299
+ instance: promiseOrVal,
300
+ };
301
+ });
302
+ if (dependencies.some((p) => p instanceof Promise)) {
303
+ return Promise.all(dependencies);
336
304
  }
337
- function _getNewInstance(typeToCreate, a) {
338
- let args = [null];
339
- let newInstance = null;
340
- /**
341
- * If type is not Constructable, we assume its factory function,
342
- * just call it with `this` container.
343
- */
344
- if (!helpers_1.isConstructor(typeToCreate) && _.isFunction(typeToCreate)) {
345
- newInstance = typeToCreate(self, ...[].concat(options));
305
+ return dependencies;
306
+ }
307
+ extractDescriptor(type) {
308
+ const descriptor = {
309
+ inject: [],
310
+ resolver: enums_1.ResolveType.Singleton,
311
+ };
312
+ reduce(type);
313
+ descriptor.inject = (0, helpers_1.uniqBy)(descriptor.inject, (a, b) => {
314
+ if (a.inject instanceof array_1.TypedArray && b.inject instanceof array_1.TypedArray) {
315
+ return (0, helpers_1.getTypeName)(a.inject.Type) === (0, helpers_1.getTypeName)(b.inject.Type);
346
316
  }
347
317
  else {
348
- if (_.isArray(a)) {
349
- args = args.concat(a.filter(i => !i.autoinject).map(i => i.instance));
350
- }
351
- if (!_.isEmpty(options)) {
352
- args = args.concat(options);
353
- }
354
- newInstance = new (Function.prototype.bind.apply(typeToCreate, args))();
355
- for (const ai of a.filter(i => i.autoinject)) {
356
- newInstance[ai.autoinjectKey] = ai.instance;
357
- }
358
- if (newInstance instanceof interfaces_1.AsyncModule) {
359
- return new Promise(res => {
360
- newInstance.resolveAsync(self).then(() => {
361
- self.emit(`di.resolved.${_getNameOfResolvedType()}`);
362
- }).then(() => {
363
- res(newInstance);
364
- });
365
- });
366
- }
367
- else {
368
- if (newInstance instanceof interfaces_1.SyncModule) {
369
- newInstance.resolve(self);
370
- }
371
- self.emit(`di.resolved.${_getNameOfResolvedType()}`);
318
+ return a.inject.name === b.inject.name;
319
+ }
320
+ });
321
+ return descriptor;
322
+ function reduce(t) {
323
+ if (t) {
324
+ // for descriptors defined on class declarations
325
+ reduce(t.prototype);
326
+ // for descriptors defined on class properties eg. @Autoinject()
327
+ reduce(t.__proto__);
328
+ if (t[`${decorators_1.DI_DESCRIPTION_SYMBOL}`]) {
329
+ descriptor.inject = descriptor.inject.concat(t[`${decorators_1.DI_DESCRIPTION_SYMBOL}`].inject);
330
+ descriptor.resolver = t[`${decorators_1.DI_DESCRIPTION_SYMBOL}`].resolver;
372
331
  }
373
332
  }
374
- return newInstance;
375
333
  }
376
334
  }
377
- _hasRegisteredType(source, type) {
378
- const sourceName = typeof source === 'string' ? source : source.name;
379
- const targetName = typeof type === 'string' ? type : type.name;
380
- if (this.registry.has(sourceName)) {
381
- return this.registry.get(sourceName).find(s => s.name === targetName) !== undefined;
382
- }
383
- return false;
384
- }
385
- //
386
- // allows container instance to be resolved
387
- registerSelf() {
388
- this.cache.set('Container', this);
389
- }
390
335
  }
391
336
  exports.Container = Container;
392
337
  //# sourceMappingURL=container.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"container.js","sourceRoot":"","sources":["../src/container.ts"],"names":[],"mappings":";;;AAAA,oDAAsD;AACt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