@ember-data/model 5.3.2 → 5.3.4

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