@ember-data/model 5.5.0-alpha.9 → 5.5.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.
Files changed (104) hide show
  1. package/LICENSE.md +19 -7
  2. package/README.md +21 -2
  3. package/addon-main.cjs +5 -0
  4. package/blueprints/model/index.js +18 -5
  5. package/blueprints/model-test/index.js +16 -10
  6. package/blueprints/model-test/qunit-files/__root__/__path__/__test__.js +4 -5
  7. package/dist/-private.js +3 -0
  8. package/{addon → dist}/-private.js.map +1 -1
  9. package/dist/has-many-BXU96bZ9.js +682 -0
  10. package/dist/has-many-BXU96bZ9.js.map +1 -0
  11. package/dist/hooks-o1U_cEA3.js +75 -0
  12. package/dist/hooks-o1U_cEA3.js.map +1 -0
  13. package/dist/hooks.js +2 -0
  14. package/{addon → dist}/hooks.js.map +1 -1
  15. package/dist/index.js +5 -0
  16. package/{addon → dist}/index.js.map +1 -1
  17. package/dist/migration-support.js +388 -0
  18. package/dist/migration-support.js.map +1 -0
  19. package/{addon/model-5a9ec6a9.js → dist/model-Dkk-TZlL.js} +2566 -2433
  20. package/dist/model-Dkk-TZlL.js.map +1 -0
  21. package/dist/schema-provider-DyG6fJXt.js +259 -0
  22. package/dist/schema-provider-DyG6fJXt.js.map +1 -0
  23. package/logos/NCC-1701-a-blue.svg +4 -0
  24. package/logos/NCC-1701-a-gold.svg +4 -0
  25. package/logos/NCC-1701-a-gold_100.svg +1 -0
  26. package/logos/NCC-1701-a-gold_base-64.txt +1 -0
  27. package/logos/NCC-1701-a.svg +4 -0
  28. package/logos/README.md +4 -0
  29. package/logos/docs-badge.svg +2 -0
  30. package/logos/ember-data-logo-dark.svg +12 -0
  31. package/logos/ember-data-logo-light.svg +12 -0
  32. package/logos/github-header.svg +444 -0
  33. package/logos/social1.png +0 -0
  34. package/logos/social2.png +0 -0
  35. package/logos/warp-drive-logo-dark.svg +4 -0
  36. package/logos/warp-drive-logo-gold.svg +4 -0
  37. package/package.json +62 -58
  38. package/unstable-preview-types/-private/attr.d.ts +175 -0
  39. package/unstable-preview-types/-private/attr.d.ts.map +1 -0
  40. package/unstable-preview-types/-private/attr.type-test.d.ts +4 -0
  41. package/unstable-preview-types/-private/attr.type-test.d.ts.map +1 -0
  42. package/unstable-preview-types/-private/belongs-to.d.ts +181 -0
  43. package/unstable-preview-types/-private/belongs-to.d.ts.map +1 -0
  44. package/unstable-preview-types/-private/belongs-to.type-test.d.ts +4 -0
  45. package/unstable-preview-types/-private/belongs-to.type-test.d.ts.map +1 -0
  46. package/unstable-preview-types/-private/debug/assert-polymorphic-type.d.ts +8 -0
  47. package/unstable-preview-types/-private/debug/assert-polymorphic-type.d.ts.map +1 -0
  48. package/unstable-preview-types/-private/errors.d.ts +303 -0
  49. package/unstable-preview-types/-private/errors.d.ts.map +1 -0
  50. package/unstable-preview-types/-private/has-many.d.ts +169 -0
  51. package/unstable-preview-types/-private/has-many.d.ts.map +1 -0
  52. package/unstable-preview-types/-private/has-many.type-test.d.ts +4 -0
  53. package/unstable-preview-types/-private/has-many.type-test.d.ts.map +1 -0
  54. package/unstable-preview-types/-private/hooks.d.ts +13 -0
  55. package/unstable-preview-types/-private/hooks.d.ts.map +1 -0
  56. package/unstable-preview-types/-private/legacy-relationships-support.d.ts +60 -0
  57. package/unstable-preview-types/-private/legacy-relationships-support.d.ts.map +1 -0
  58. package/unstable-preview-types/-private/model-for-mixin.d.ts +6 -0
  59. package/unstable-preview-types/-private/model-for-mixin.d.ts.map +1 -0
  60. package/unstable-preview-types/-private/model-methods.d.ts +37 -0
  61. package/unstable-preview-types/-private/model-methods.d.ts.map +1 -0
  62. package/unstable-preview-types/-private/model.d.ts +1303 -0
  63. package/unstable-preview-types/-private/model.d.ts.map +1 -0
  64. package/unstable-preview-types/-private/model.type-test.d.ts +4 -0
  65. package/unstable-preview-types/-private/model.type-test.d.ts.map +1 -0
  66. package/unstable-preview-types/-private/notify-changes.d.ts +8 -0
  67. package/unstable-preview-types/-private/notify-changes.d.ts.map +1 -0
  68. package/unstable-preview-types/-private/promise-belongs-to.d.ts +46 -0
  69. package/unstable-preview-types/-private/promise-belongs-to.d.ts.map +1 -0
  70. package/unstable-preview-types/-private/promise-many-array.d.ts +136 -0
  71. package/unstable-preview-types/-private/promise-many-array.d.ts.map +1 -0
  72. package/unstable-preview-types/-private/promise-proxy-base.d.ts +5 -0
  73. package/unstable-preview-types/-private/promise-proxy-base.d.ts.map +1 -0
  74. package/unstable-preview-types/-private/record-state.d.ts +80 -0
  75. package/unstable-preview-types/-private/record-state.d.ts.map +1 -0
  76. package/unstable-preview-types/-private/references/belongs-to.d.ts +506 -0
  77. package/unstable-preview-types/-private/references/belongs-to.d.ts.map +1 -0
  78. package/unstable-preview-types/-private/references/has-many.d.ts +518 -0
  79. package/unstable-preview-types/-private/references/has-many.d.ts.map +1 -0
  80. package/unstable-preview-types/-private/schema-provider.d.ts +65 -0
  81. package/unstable-preview-types/-private/schema-provider.d.ts.map +1 -0
  82. package/unstable-preview-types/-private/type-utils.d.ts +64 -0
  83. package/unstable-preview-types/-private/type-utils.d.ts.map +1 -0
  84. package/unstable-preview-types/-private/util.d.ts +8 -0
  85. package/unstable-preview-types/-private/util.d.ts.map +1 -0
  86. package/unstable-preview-types/-private.d.ts +13 -0
  87. package/unstable-preview-types/-private.d.ts.map +1 -0
  88. package/unstable-preview-types/hooks.d.ts +5 -0
  89. package/unstable-preview-types/hooks.d.ts.map +1 -0
  90. package/unstable-preview-types/index.d.ts +77 -0
  91. package/unstable-preview-types/index.d.ts.map +1 -0
  92. package/unstable-preview-types/migration-support.d.ts +271 -0
  93. package/unstable-preview-types/migration-support.d.ts.map +1 -0
  94. package/unstable-preview-types/migration-support.type-test.d.ts +4 -0
  95. package/unstable-preview-types/migration-support.type-test.d.ts.map +1 -0
  96. package/addon/-private.js +0 -2
  97. package/addon/has-many-76406f33.js +0 -321
  98. package/addon/has-many-76406f33.js.map +0 -1
  99. package/addon/hooks-dde806e1.js +0 -157
  100. package/addon/hooks-dde806e1.js.map +0 -1
  101. package/addon/hooks.js +0 -1
  102. package/addon/index.js +0 -3
  103. package/addon/model-5a9ec6a9.js.map +0 -1
  104. package/addon-main.js +0 -93
@@ -0,0 +1,506 @@
1
+ declare module '@ember-data/model/-private/references/belongs-to' {
2
+ import type { Graph, ResourceEdge } from '@ember-data/graph/-private';
3
+ import type Store from '@ember-data/store';
4
+ import type { StableRecordIdentifier } from '@warp-drive/core-types';
5
+ import type { TypeFromInstance, TypeFromInstanceOrString } from '@warp-drive/core-types/record';
6
+ import type { Links, Meta, SingleResourceDocument, SingleResourceRelationship } from '@warp-drive/core-types/spec/json-api-raw';
7
+ import type { IsUnknown } from '@ember-data/model/-private/belongs-to';
8
+ import type { MaybeBelongsToFields } from '@ember-data/model/-private/type-utils';
9
+ /**
10
+ A `BelongsToReference` is a low-level API that allows access
11
+ and manipulation of a belongsTo relationship.
12
+
13
+ It is especially useful when you're dealing with `async` relationships
14
+ from `@ember-data/model` as it allows synchronous access to
15
+ the relationship data if loaded, as well as APIs for loading, reloading
16
+ the data or accessing available information without triggering a load.
17
+
18
+ It may also be useful when using `sync` relationships with `@ember-data/model`
19
+ that need to be loaded/reloaded with more precise timing than marking the
20
+ relationship as `async` and relying on autofetch would have allowed.
21
+
22
+ However,keep in mind that marking a relationship as `async: false` will introduce
23
+ bugs into your application if the data is not always guaranteed to be available
24
+ by the time the relationship is accessed. Ergo, it is recommended when using this
25
+ approach to utilize `links` for unloaded relationship state instead of identifiers.
26
+
27
+ Reference APIs are entangled with the relationship's underlying state,
28
+ thus any getters or cached properties that utilize these will properly
29
+ invalidate if the relationship state changes.
30
+
31
+ References are "stable", meaning that multiple calls to retrieve the reference
32
+ for a given relationship will always return the same HasManyReference.
33
+
34
+ @class BelongsToReference
35
+ @public
36
+ */
37
+ export default class BelongsToReference<T = unknown, K extends string = IsUnknown<T> extends true ? string : MaybeBelongsToFields<T>, Related = K extends keyof T ? Exclude<Awaited<T[K]>, null> : unknown> {
38
+ graph: Graph;
39
+ store: Store;
40
+ belongsToRelationship: ResourceEdge;
41
+ /**
42
+ * The field name on the parent record for this has-many relationship.
43
+ *
44
+ * @property key
45
+ * @type {String}
46
+ * @public
47
+ */
48
+ key: K;
49
+ /**
50
+ * The type of resource this relationship will contain.
51
+ *
52
+ * @property type
53
+ * @type {String}
54
+ * @public
55
+ */
56
+ type: TypeFromInstanceOrString<Related>;
57
+ ___token: object;
58
+ ___identifier: StableRecordIdentifier<TypeFromInstanceOrString<T>>;
59
+ ___relatedToken: object | null;
60
+ _ref: number;
61
+ constructor(store: Store, graph: Graph, parentIdentifier: StableRecordIdentifier<TypeFromInstanceOrString<T>>, belongsToRelationship: ResourceEdge, key: K);
62
+ destroy(): void;
63
+ /**
64
+ * The identifier of the record that this reference refers to.
65
+ * `null` if no related record is known.
66
+ *
67
+ * @property identifier
68
+ * @type {StableRecordIdentifier | null}
69
+ * @public
70
+ */
71
+ get identifier(): StableRecordIdentifier<TypeFromInstanceOrString<Related>> | null;
72
+ /**
73
+ The `id` of the record that this reference refers to. Together, the
74
+ `type()` and `id()` methods form a composite key for the identity
75
+ map. This can be used to access the id of an async relationship
76
+ without triggering a fetch that would normally happen if you
77
+ attempted to use `record.relationship.id`.
78
+
79
+ Example
80
+
81
+ ```javascript
82
+ // models/blog.js
83
+ import Model, { belongsTo } from '@ember-data/model';
84
+
85
+ export default class BlogModel extends Model {
86
+ @belongsTo('user', { async: true, inverse: null }) user;
87
+ }
88
+
89
+ let blog = store.push({
90
+ data: {
91
+ type: 'blog',
92
+ id: 1,
93
+ relationships: {
94
+ user: {
95
+ data: { type: 'user', id: 1 }
96
+ }
97
+ }
98
+ }
99
+ });
100
+ let userRef = blog.belongsTo('user');
101
+
102
+ // get the identifier of the reference
103
+ if (userRef.remoteType() === "id") {
104
+ let id = userRef.id();
105
+ }
106
+ ```
107
+
108
+ @method id
109
+ @public
110
+ @return {String} The id of the record in this belongsTo relationship.
111
+ */
112
+ id(): string | null;
113
+ /**
114
+ The link Ember Data will use to fetch or reload this belongs-to
115
+ relationship. By default it uses only the "related" resource linkage.
116
+
117
+ Example
118
+
119
+ ```javascript
120
+ // models/blog.js
121
+ import Model, { belongsTo } from '@ember-data/model';
122
+ export default Model.extend({
123
+ user: belongsTo('user', { async: true, inverse: null })
124
+ });
125
+
126
+ let blog = store.push({
127
+ data: {
128
+ type: 'blog',
129
+ id: 1,
130
+ relationships: {
131
+ user: {
132
+ links: {
133
+ related: '/articles/1/author'
134
+ }
135
+ }
136
+ }
137
+ }
138
+ });
139
+ let userRef = blog.belongsTo('user');
140
+
141
+ // get the identifier of the reference
142
+ if (userRef.remoteType() === "link") {
143
+ let link = userRef.link();
144
+ }
145
+ ```
146
+
147
+ @method link
148
+ @public
149
+ @return {String} The link Ember Data will use to fetch or reload this belongs-to relationship.
150
+ */
151
+ link(): string | null;
152
+ /**
153
+ * any links that have been received for this relationship
154
+ *
155
+ * @method links
156
+ * @public
157
+ * @return
158
+ */
159
+ links(): Links | null;
160
+ /**
161
+ The meta data for the belongs-to relationship.
162
+
163
+ Example
164
+
165
+ ```javascript
166
+ // models/blog.js
167
+ import Model, { belongsTo } from '@ember-data/model';
168
+ export default Model.extend({
169
+ user: belongsTo('user', { async: true, inverse: null })
170
+ });
171
+
172
+ let blog = store.push({
173
+ data: {
174
+ type: 'blog',
175
+ id: 1,
176
+ relationships: {
177
+ user: {
178
+ links: {
179
+ related: {
180
+ href: '/articles/1/author'
181
+ },
182
+ },
183
+ meta: {
184
+ lastUpdated: 1458014400000
185
+ }
186
+ }
187
+ }
188
+ }
189
+ });
190
+
191
+ let userRef = blog.belongsTo('user');
192
+
193
+ userRef.meta() // { lastUpdated: 1458014400000 }
194
+ ```
195
+
196
+ @method meta
197
+ @public
198
+ @return {Object} The meta information for the belongs-to relationship.
199
+ */
200
+ meta(): Meta | null;
201
+ _resource(): SingleResourceRelationship<StableRecordIdentifier<TypeFromInstance<Related>>>;
202
+ /**
203
+ This returns a string that represents how the reference will be
204
+ looked up when it is loaded. If the relationship has a link it will
205
+ use the "link" otherwise it defaults to "id".
206
+
207
+ Example
208
+
209
+ ```app/models/post.js
210
+ import Model, { hasMany } from '@ember-data/model';
211
+
212
+ export default class PostModel extends Model {
213
+ @hasMany('comment', { async: true, inverse: null }) comments;
214
+ }
215
+ ```
216
+
217
+ ```javascript
218
+ let post = store.push({
219
+ data: {
220
+ type: 'post',
221
+ id: 1,
222
+ relationships: {
223
+ comments: {
224
+ data: [{ type: 'comment', id: 1 }]
225
+ }
226
+ }
227
+ }
228
+ });
229
+
230
+ let commentsRef = post.hasMany('comments');
231
+
232
+ // get the identifier of the reference
233
+ if (commentsRef.remoteType() === "ids") {
234
+ let ids = commentsRef.ids();
235
+ } else if (commentsRef.remoteType() === "link") {
236
+ let link = commentsRef.link();
237
+ }
238
+ ```
239
+
240
+ @method remoteType
241
+ @public
242
+ @return {String} The name of the remote type. This should either be `link` or `id`
243
+ */
244
+ remoteType(): 'link' | 'id';
245
+ /**
246
+ `push` can be used to update the data in the relationship and EmberData
247
+ will treat the new data as the canonical value of this relationship on
248
+ the backend. A value of `null` (e.g. `{ data: null }`) can be passed to
249
+ clear the relationship.
250
+
251
+ Example model
252
+
253
+ ```app/models/blog.js
254
+ import Model, { belongsTo } from '@ember-data/model';
255
+
256
+ export default class BlogModel extends Model {
257
+ @belongsTo('user', { async: true, inverse: null }) user;
258
+ }
259
+ ```
260
+
261
+ Setup some initial state, note we haven't loaded the user yet:
262
+
263
+ ```js
264
+ const blog = store.push({
265
+ data: {
266
+ type: 'blog',
267
+ id: '1',
268
+ relationships: {
269
+ user: {
270
+ data: { type: 'user', id: '1' }
271
+ }
272
+ }
273
+ }
274
+ });
275
+
276
+ const userRef = blog.belongsTo('user');
277
+ userRef.id(); // '1'
278
+ ```
279
+
280
+ Update the state using `push`, note we can do this even without
281
+ having loaded the user yet by providing a resource-identifier.
282
+
283
+ Both full a resource and a resource-identifier are supported.
284
+
285
+ ```js
286
+ await userRef.push({
287
+ data: {
288
+ type: 'user',
289
+ id: '2',
290
+ }
291
+ });
292
+
293
+ userRef.id(); // '2'
294
+ ```
295
+
296
+ You may also pass in links and meta fore the relationship, and sideload
297
+ additional resources that might be required.
298
+
299
+ ```js
300
+ await userRef.push({
301
+ data: {
302
+ type: 'user',
303
+ id: '2',
304
+ },
305
+ links: {
306
+ related: '/articles/1/author'
307
+ },
308
+ meta: {
309
+ lastUpdated: Date.now()
310
+ },
311
+ included: [
312
+ {
313
+ type: 'user-preview',
314
+ id: '2',
315
+ attributes: {
316
+ username: '@runspired'
317
+ }
318
+ }
319
+ ]
320
+ });
321
+ ```
322
+
323
+ By default, the store will attempt to fetch the record if it is not loaded or its
324
+ resource data is not included in the call to `push` before resolving the returned
325
+ promise with the new state..
326
+
327
+ Alternatively, pass `true` as the second argument to avoid fetching unloaded records
328
+ and instead the promise will resolve with void without attempting to fetch. This is
329
+ particularly useful if you want to update the state of the relationship without
330
+ forcing the load of all of the associated record.
331
+
332
+ @method push
333
+ @public
334
+ @param {Object} doc a JSONAPI document object describing the new value of this relationship.
335
+ @param {Boolean} [skipFetch] if `true`, do not attempt to fetch unloaded records
336
+ @return {Promise<OpaqueRecordInstance | null | void>}
337
+ */
338
+ push(doc: SingleResourceDocument, skipFetch?: boolean): Promise<Related | null | void>;
339
+ /**
340
+ `value()` synchronously returns the current value of the belongs-to
341
+ relationship. Unlike `record.relationshipName`, calling
342
+ `value()` on a reference does not trigger a fetch if the async
343
+ relationship is not yet loaded. If the relationship is not loaded
344
+ it will always return `null`.
345
+
346
+ Example
347
+
348
+ ```javascript
349
+ // models/blog.js
350
+ import Model, { belongsTo } from '@ember-data/model';
351
+
352
+ export default class BlogModel extends Model {
353
+ @belongsTo('user', { async: true, inverse: null }) user;
354
+ }
355
+
356
+ let blog = store.push({
357
+ data: {
358
+ type: 'blog',
359
+ id: 1,
360
+ relationships: {
361
+ user: {
362
+ data: { type: 'user', id: 1 }
363
+ }
364
+ }
365
+ }
366
+ });
367
+ let userRef = blog.belongsTo('user');
368
+
369
+ userRef.value(); // null
370
+
371
+ // provide data for reference
372
+ userRef.push({
373
+ data: {
374
+ type: 'user',
375
+ id: 1,
376
+ attributes: {
377
+ username: "@user"
378
+ }
379
+ }
380
+ }).then(function(user) {
381
+ userRef.value(); // user
382
+ });
383
+ ```
384
+
385
+ @method value
386
+ @public
387
+ @return {Model} the record in this relationship
388
+ */
389
+ value(): Related | null;
390
+ /**
391
+ Loads a record in a belongs-to relationship if it is not already
392
+ loaded. If the relationship is already loaded this method does not
393
+ trigger a new load.
394
+
395
+ Example
396
+
397
+ ```javascript
398
+ // models/blog.js
399
+ import Model, { belongsTo } from '@ember-data/model';
400
+
401
+ export default class BlogModel extends Model {
402
+ @belongsTo('user', { async: true, inverse: null }) user;
403
+ }
404
+
405
+ let blog = store.push({
406
+ data: {
407
+ type: 'blog',
408
+ id: 1,
409
+ relationships: {
410
+ user: {
411
+ data: { type: 'user', id: 1 }
412
+ }
413
+ }
414
+ }
415
+ });
416
+ let userRef = blog.belongsTo('user');
417
+
418
+ userRef.value(); // null
419
+
420
+ userRef.load().then(function(user) {
421
+ userRef.value() === user
422
+ });
423
+ ```
424
+
425
+ You may also pass in an options object whose properties will be
426
+ fed forward. This enables you to pass `adapterOptions` into the
427
+ request given to the adapter via the reference.
428
+
429
+ Example
430
+
431
+ ```javascript
432
+ userRef.load({ adapterOptions: { isPrivate: true } }).then(function(user) {
433
+ userRef.value() === user;
434
+ });
435
+ ```
436
+ ```app/adapters/user.js
437
+ import Adapter from '@ember-data/adapter';
438
+
439
+ export default class UserAdapter extends Adapter {
440
+ findRecord(store, type, id, snapshot) {
441
+ // In the adapter you will have access to adapterOptions.
442
+ let adapterOptions = snapshot.adapterOptions;
443
+ }
444
+ });
445
+ ```
446
+
447
+ @method load
448
+ @public
449
+ @param {Object} options the options to pass in.
450
+ @return {Promise} a promise that resolves with the record in this belongs-to relationship.
451
+ */
452
+ load(options?: Record<string, unknown>): Promise<Related | null>;
453
+ /**
454
+ Triggers a reload of the value in this relationship. If the
455
+ remoteType is `"link"` Ember Data will use the relationship link to
456
+ reload the relationship. Otherwise it will reload the record by its
457
+ id.
458
+
459
+ Example
460
+
461
+ ```javascript
462
+ // models/blog.js
463
+ import Model, { belongsTo } from '@ember-data/model';
464
+
465
+ export default class BlogModel extends Model {
466
+ @belongsTo('user', { async: true, inverse: null }) user;
467
+ }
468
+
469
+ let blog = store.push({
470
+ data: {
471
+ type: 'blog',
472
+ id: 1,
473
+ relationships: {
474
+ user: {
475
+ data: { type: 'user', id: 1 }
476
+ }
477
+ }
478
+ }
479
+ });
480
+ let userRef = blog.belongsTo('user');
481
+
482
+ userRef.reload().then(function(user) {
483
+ userRef.value() === user
484
+ });
485
+ ```
486
+
487
+ You may also pass in an options object whose properties will be
488
+ fed forward. This enables you to pass `adapterOptions` into the
489
+ request given to the adapter via the reference. A full example
490
+ can be found in the `load` method.
491
+
492
+ Example
493
+
494
+ ```javascript
495
+ userRef.reload({ adapterOptions: { isPrivate: true } })
496
+ ```
497
+
498
+ @method reload
499
+ @public
500
+ @param {Object} options the options to pass in.
501
+ @return {Promise} a promise that resolves with the record in this belongs-to relationship after the reload has completed.
502
+ */
503
+ reload(options?: Record<string, unknown>): Promise<Related | null>;
504
+ }
505
+ }
506
+ //# sourceMappingURL=belongs-to.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"belongs-to.d.ts","sourceRoot":"","sources":["../../../src/-private/references/belongs-to.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,KAAK,KAAK,MAAM,mBAAmB,CAAC;AAI3C,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AAErE,OAAO,KAAK,EAAE,gBAAgB,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAChG,OAAO,KAAK,EAEV,KAAK,EACL,IAAI,EACJ,sBAAsB,EACtB,0BAA0B,EAC3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