jazz-tools 0.7.0-alpha.3 → 0.7.0-alpha.31

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. package/.turbo/turbo-build.log +78 -8
  2. package/CHANGELOG.md +181 -0
  3. package/dist/coValues/account.js +81 -41
  4. package/dist/coValues/account.js.map +1 -1
  5. package/dist/coValues/coList.js +156 -104
  6. package/dist/coValues/coList.js.map +1 -1
  7. package/dist/coValues/coMap.js +182 -163
  8. package/dist/coValues/coMap.js.map +1 -1
  9. package/dist/coValues/coStream.js +202 -71
  10. package/dist/coValues/coStream.js.map +1 -1
  11. package/dist/coValues/extensions/imageDef.js +13 -8
  12. package/dist/coValues/extensions/imageDef.js.map +1 -1
  13. package/dist/coValues/group.js +46 -38
  14. package/dist/coValues/group.js.map +1 -1
  15. package/dist/coValues/interfaces.js +23 -5
  16. package/dist/coValues/interfaces.js.map +1 -1
  17. package/dist/implementation/refs.js +26 -12
  18. package/dist/implementation/refs.js.map +1 -1
  19. package/dist/implementation/schema.js +38 -1
  20. package/dist/implementation/schema.js.map +1 -1
  21. package/dist/implementation/symbols.js +5 -0
  22. package/dist/implementation/symbols.js.map +1 -0
  23. package/dist/index.js +4 -3
  24. package/dist/index.js.map +1 -1
  25. package/dist/internal.js +1 -0
  26. package/dist/internal.js.map +1 -1
  27. package/dist/tests/coList.test.js +32 -36
  28. package/dist/tests/coList.test.js.map +1 -1
  29. package/dist/tests/coMap.test.js +170 -59
  30. package/dist/tests/coMap.test.js.map +1 -1
  31. package/dist/tests/coStream.test.js +59 -64
  32. package/dist/tests/coStream.test.js.map +1 -1
  33. package/dist/tests/groupsAndAccounts.test.js +88 -0
  34. package/dist/tests/groupsAndAccounts.test.js.map +1 -0
  35. package/package.json +5 -4
  36. package/src/coValues/account.ts +129 -105
  37. package/src/coValues/coList.ts +200 -131
  38. package/src/coValues/coMap.ts +243 -305
  39. package/src/coValues/coStream.ts +300 -127
  40. package/src/coValues/extensions/imageDef.ts +14 -16
  41. package/src/coValues/group.ts +90 -106
  42. package/src/coValues/interfaces.ts +33 -12
  43. package/src/implementation/refs.ts +42 -25
  44. package/src/implementation/schema.ts +69 -46
  45. package/src/implementation/symbols.ts +12 -0
  46. package/src/index.ts +10 -8
  47. package/src/internal.ts +1 -0
  48. package/src/tests/coList.test.ts +35 -39
  49. package/src/tests/coMap.test.ts +176 -81
  50. package/src/tests/coStream.test.ts +76 -81
  51. package/src/tests/groupsAndAccounts.test.ts +100 -0
@@ -1,24 +1,94 @@
1
1
 
2
- > jazz-js@0.6.1 build /Users/anselm/jazz/jazz/packages/jazz-js
2
+ > jazz-tools@0.7.0-alpha.30 build /Users/anselm/jazz/jazz/packages/jazz-tools
3
3
  > npm run lint && rm -rf ./dist && tsc --sourceMap --outDir dist
4
4
 
5
5
 
6
- > jazz-js@0.6.1 lint
6
+ > jazz-tools@0.7.0-alpha.30 lint
7
7
  > eslint src/**/*.ts
8
8
 
9
9
 
10
- /Users/anselm/jazz/jazz/packages/jazz-js/src/tests/binaryCoStream.test.ts
10
+ /Users/anselm/jazz/jazz/packages/jazz-tools/src/coValues/account.ts
11
+ 44:21 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
12
+ 55:14 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
13
+ 87:22 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
14
+ 98:22 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
15
+ 164:11 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
16
+ 223:24 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
17
+ 250:67 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
18
+ 253:67 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
19
+ 305:12 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
20
+ 311:29 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
21
+ 311:39 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
22
+
23
+ /Users/anselm/jazz/jazz/packages/jazz-tools/src/coValues/coList.ts
24
+ 31:28 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
25
+ 56:21 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
26
+ 88:14 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
27
+ 106:20 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
28
+ 234:71 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
29
+ 239:75 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
30
+ 272:31 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
31
+
32
+ /Users/anselm/jazz/jazz/packages/jazz-tools/src/coValues/coMap.ts
33
+ 47:21 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
34
+ 73:14 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
35
+ 124:20 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
36
+ 127:50 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
37
+ 168:44 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
38
+ 186:56 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
39
+ 212:38 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
40
+ 250:42 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
41
+
42
+ /Users/anselm/jazz/jazz/packages/jazz-tools/src/coValues/coStream.ts
43
+ 48:30 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
44
+ 67:21 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
45
+ 86:20 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
46
+ 171:31 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
47
+ 292:73 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
48
+ 398:73 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
49
+
50
+ /Users/anselm/jazz/jazz/packages/jazz-tools/src/coValues/group.ts
51
+ 32:21 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
52
+ 45:14 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
53
+ 71:22 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
54
+ 80:22 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
55
+
56
+ /Users/anselm/jazz/jazz/packages/jazz-tools/src/coValues/interfaces.ts
57
+ 16:19 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
58
+ 19:71 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
59
+ 58:62 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
60
+ 74:15 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
61
+ 76:18 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
62
+ 79:34 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
63
+ 82:39 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
64
+ 115:27 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
65
+ 217:24 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
66
+
67
+ /Users/anselm/jazz/jazz/packages/jazz-tools/src/implementation/schema.ts
68
+ 28:61 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
69
+ 31:61 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
70
+ 34:71 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
71
+ 39:58 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
72
+ 66:68 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
73
+ 75:5 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
74
+ 76:5 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
75
+ 80:17 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
76
+ 81:17 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
77
+
78
+ /Users/anselm/jazz/jazz/packages/jazz-tools/src/implementation/subscriptionScope.ts
79
+ 6:23 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
80
+
81
+ /Users/anselm/jazz/jazz/packages/jazz-tools/src/tests/coList.test.ts
11
82
  0:0 warning File ignored because of a matching ignore pattern. Use "--no-ignore" to override
12
83
 
13
- /Users/anselm/jazz/jazz/packages/jazz-js/src/tests/coList.test.ts
84
+ /Users/anselm/jazz/jazz/packages/jazz-tools/src/tests/coMap.test.ts
14
85
  0:0 warning File ignored because of a matching ignore pattern. Use "--no-ignore" to override
15
86
 
16
- /Users/anselm/jazz/jazz/packages/jazz-js/src/tests/coMap.test.ts
87
+ /Users/anselm/jazz/jazz/packages/jazz-tools/src/tests/coStream.test.ts
17
88
  0:0 warning File ignored because of a matching ignore pattern. Use "--no-ignore" to override
18
89
 
19
- /Users/anselm/jazz/jazz/packages/jazz-js/src/tests/coStream.test.ts
90
+ /Users/anselm/jazz/jazz/packages/jazz-tools/src/tests/groupsAndAccounts.test.ts
20
91
  0:0 warning File ignored because of a matching ignore pattern. Use "--no-ignore" to override
21
92
 
22
- 4 problems (0 errors, 4 warnings)
93
+ 59 problems (0 errors, 59 warnings)
23
94
 
24
-  ELIFECYCLE  Command failed.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,186 @@
1
1
  # jazz-autosub
2
2
 
3
+ ## 0.7.0-alpha.31
4
+
5
+ ### Patch Changes
6
+
7
+ - Get rid of self generics, new create syntax
8
+
9
+ ## 0.7.0-alpha.30
10
+
11
+ ### Patch Changes
12
+
13
+ - CoValue casting & auto-subbing \_owner
14
+
15
+ ## 0.7.0-alpha.29
16
+
17
+ ### Patch Changes
18
+
19
+ - Reintroduce changes from main
20
+ - Updated dependencies
21
+ - cojson@0.7.0-alpha.29
22
+
23
+ ## 0.7.0-alpha.28
24
+
25
+ ### Patch Changes
26
+
27
+ - Implement profile visibility based on groups & new migration signature
28
+ - Updated dependencies
29
+ - cojson@0.7.0-alpha.28
30
+
31
+ ## 0.7.0-alpha.27
32
+
33
+ ### Patch Changes
34
+
35
+ - Fix CoList.splice / RawCoList.append
36
+ - Fix Costream[...].all
37
+ - Updated dependencies
38
+ - cojson@0.7.0-alpha.27
39
+
40
+ ## 0.7.0-alpha.26
41
+
42
+ ### Patch Changes
43
+
44
+ - Fix CoMap.Record.toJSON()
45
+
46
+ ## 0.7.0-alpha.25
47
+
48
+ ### Patch Changes
49
+
50
+ - Make Account -> Profile a lazy ref schema
51
+
52
+ ## 0.7.0-alpha.24
53
+
54
+ ### Patch Changes
55
+
56
+ - Relax types of CoMap.\_schema
57
+ - Fix schema of Account & Group
58
+ - Make sure delete on CoMaps deletes keys
59
+ - Updated dependencies
60
+ - cojson@0.7.0-alpha.24
61
+
62
+ ## 0.7.0-alpha.23
63
+
64
+ ### Patch Changes
65
+
66
+ - CoMap fixes and improvements
67
+
68
+ ## 0.7.0-alpha.22
69
+
70
+ ### Patch Changes
71
+
72
+ - Fix CoMap \_refs for co.items
73
+
74
+ ## 0.7.0-alpha.21
75
+
76
+ ### Patch Changes
77
+
78
+ - Add maxWidth option for loading images
79
+
80
+ ## 0.7.0-alpha.20
81
+
82
+ ### Patch Changes
83
+
84
+ - Make fast-check a direct dependency to help dev time resolution
85
+
86
+ ## 0.7.0-alpha.19
87
+
88
+ ### Patch Changes
89
+
90
+ - More precise imports from @effect/schema
91
+
92
+ ## 0.7.0-alpha.17
93
+
94
+ ### Patch Changes
95
+
96
+ - Use effect 3.0
97
+
98
+ ## 0.7.0-alpha.16
99
+
100
+ ### Patch Changes
101
+
102
+ - Make CoMaps even more subclassable
103
+
104
+ ## 0.7.0-alpha.15
105
+
106
+ ### Patch Changes
107
+
108
+ - More superclass-compatible CoMaps
109
+
110
+ ## 0.7.0-alpha.14
111
+
112
+ ### Patch Changes
113
+
114
+ - Fix CoStream types
115
+
116
+ ## 0.7.0-alpha.13
117
+
118
+ ### Patch Changes
119
+
120
+ - Add .all to CoStreamEntry
121
+
122
+ ## 0.7.0-alpha.12
123
+
124
+ ### Patch Changes
125
+
126
+ - Fix variance of ID.\_\_type
127
+
128
+ ## 0.7.0-alpha.11
129
+
130
+ ### Patch Changes
131
+
132
+ - Support stricter TS lint rules
133
+ - Updated dependencies
134
+ - cojson@0.7.0-alpha.11
135
+
136
+ ## 0.7.0-alpha.10
137
+
138
+ ### Patch Changes
139
+
140
+ - Clean up API more & re-add jazz-nodejs
141
+ - Updated dependencies
142
+ - cojson@0.7.0-alpha.10
143
+
144
+ ## 0.7.0-alpha.9
145
+
146
+ ### Patch Changes
147
+
148
+ - Even friendlier for subclassing CoMap
149
+
150
+ ## 0.7.0-alpha.8
151
+
152
+ ### Patch Changes
153
+
154
+ - More subclass-friendly types in CoMap
155
+
156
+ ## 0.7.0-alpha.7
157
+
158
+ ### Patch Changes
159
+
160
+ - Consistent proxy based API
161
+ - Updated dependencies
162
+ - cojson@0.7.0-alpha.7
163
+
164
+ ## 0.7.0-alpha.6
165
+
166
+ ### Patch Changes
167
+
168
+ - CoMap fix
169
+
170
+ ## 0.7.0-alpha.5
171
+
172
+ ### Patch Changes
173
+
174
+ - Refactoring
175
+ - Updated dependencies
176
+ - cojson@0.7.0-alpha.5
177
+
178
+ ## 0.7.0-alpha.4
179
+
180
+ ### Patch Changes
181
+
182
+ - Make refs on list more precise
183
+
3
184
  ## 0.7.0-alpha.3
4
185
 
5
186
  ### Patch Changes
@@ -1,10 +1,10 @@
1
1
  var _a;
2
2
  import { LocalNode } from "cojson";
3
3
  import { Context } from "effect";
4
- import { CoValueBase, Profile, ValueRef, inspect } from "../internal.js";
4
+ import { Group, CoValueBase, MembersSym, Profile, Ref, SchemaInit, inspect, subscriptionsScopes, } from "../internal.js";
5
5
  export class Account extends CoValueBase {
6
- get _encoding() {
7
- return this.constructor._encoding;
6
+ get _schema() {
7
+ return this.constructor._schema;
8
8
  }
9
9
  get _owner() {
10
10
  return this;
@@ -18,12 +18,13 @@ export class Account extends CoValueBase {
18
18
  const profileID = this._raw.get("profile");
19
19
  const rootID = this._raw.get("root");
20
20
  return {
21
- profile: profileID && (new ValueRef(profileID, this._loadedAs, this._encoding.profile.ref())),
21
+ profile: profileID &&
22
+ new Ref(profileID, this._loadedAs, this._schema.profile),
22
23
  root: rootID &&
23
- new ValueRef(rootID, this._loadedAs, this._encoding.root.ref()),
24
+ new Ref(rootID, this._loadedAs, this._schema.root),
24
25
  };
25
26
  }
26
- constructor(init, options) {
27
+ constructor(options) {
27
28
  super();
28
29
  this.acceptInvite = (async (valueID, inviteSecret, coValueClass) => {
29
30
  if (!this.isMe) {
@@ -44,33 +45,12 @@ export class Account extends CoValueBase {
44
45
  enumerable: false,
45
46
  },
46
47
  _raw: { value: options.fromRaw, enumerable: false },
47
- profile: {
48
- get: () => {
49
- const ref = this._refs.profile;
50
- return ref ? ref.accessFrom(this) : undefined;
51
- },
52
- set: (value) => {
53
- if (value) {
54
- this._raw.set("profile", value.id);
55
- }
56
- },
57
- },
58
- root: {
59
- get: () => {
60
- const ref = this._refs.root;
61
- return ref ? ref.accessFrom(this) : undefined;
62
- },
63
- set: (value) => {
64
- if (value) {
65
- this._raw.set("root", value.id);
66
- }
67
- },
68
- },
69
48
  });
70
49
  if (this.isMe) {
71
50
  this.sessionID =
72
51
  options.fromRaw.core.node.currentSessionID;
73
52
  }
53
+ return new Proxy(this, AccountAndGroupProxyHandler);
74
54
  }
75
55
  myRole() {
76
56
  if (this.isMe) {
@@ -80,11 +60,11 @@ export class Account extends CoValueBase {
80
60
  static async create(options) {
81
61
  const { node } = await LocalNode.withNewlyCreatedAccount({
82
62
  ...options,
83
- migration: async (rawAccount) => {
84
- const account = new this(undefined, {
63
+ migration: async (rawAccount, _node, creationProps) => {
64
+ const account = new this({
85
65
  fromRaw: rawAccount,
86
66
  });
87
- await account.migrate?.();
67
+ await account.migrate?.(creationProps);
88
68
  },
89
69
  });
90
70
  return this.fromNode(node);
@@ -95,17 +75,17 @@ export class Account extends CoValueBase {
95
75
  accountSecret: options.accountSecret,
96
76
  sessionID: options.sessionID,
97
77
  peersToLoadFrom: options.peersToLoadFrom,
98
- migration: async (rawAccount) => {
99
- const account = new this(undefined, {
78
+ migration: async (rawAccount, _node, creationProps) => {
79
+ const account = new this({
100
80
  fromRaw: rawAccount,
101
81
  });
102
- await account.migrate?.();
82
+ await account.migrate?.(creationProps);
103
83
  },
104
84
  });
105
85
  return this.fromNode(node);
106
86
  }
107
87
  static fromNode(node) {
108
- return new this(undefined, {
88
+ return new this({
109
89
  fromRaw: node.account,
110
90
  });
111
91
  }
@@ -118,18 +98,78 @@ export class Account extends CoValueBase {
118
98
  [inspect]() {
119
99
  return this.toJSON();
120
100
  }
121
- static encoding(fields) {
122
- this._encoding || (this._encoding = {});
123
- Object.assign(this._encoding, fields);
101
+ migrate(creationProps) {
102
+ if (creationProps) {
103
+ const profileGroup = Group.create({ owner: this });
104
+ profileGroup.addMember("everyone", "reader");
105
+ this.profile = Profile.create({ name: creationProps.name }, { owner: profileGroup });
106
+ }
124
107
  }
125
108
  }
126
109
  _a = Account;
127
110
  (() => {
128
- _a._encoding = {
129
- profile: { ref: () => Profile },
130
- root: { json: true },
111
+ _a._schema = {
112
+ profile: () => Profile,
113
+ root: "json",
131
114
  };
132
115
  })();
116
+ export const AccountAndGroupProxyHandler = {
117
+ get(target, key, receiver) {
118
+ if (key === "profile") {
119
+ const ref = target._refs.profile;
120
+ return ref ? ref.accessFrom(receiver) : undefined;
121
+ }
122
+ else if (key === "root") {
123
+ const ref = target._refs.root;
124
+ return ref ? ref.accessFrom(receiver) : undefined;
125
+ }
126
+ else {
127
+ return Reflect.get(target, key, receiver);
128
+ }
129
+ },
130
+ set(target, key, value, receiver) {
131
+ var _b;
132
+ if ((key === "profile" || key === "root" || key === MembersSym) &&
133
+ typeof value === "object" &&
134
+ SchemaInit in value) {
135
+ (_b = target.constructor)._schema || (_b._schema = {});
136
+ target.constructor._schema[key] =
137
+ value[SchemaInit];
138
+ return true;
139
+ }
140
+ else if (key === "profile") {
141
+ if (value) {
142
+ target._raw.set("profile", value.id, "trusting");
143
+ }
144
+ subscriptionsScopes.get(receiver)?.onRefAccessedOrSet(value.id);
145
+ return true;
146
+ }
147
+ else if (key === "root") {
148
+ if (value) {
149
+ target._raw.set("root", value.id);
150
+ }
151
+ subscriptionsScopes.get(receiver)?.onRefAccessedOrSet(value.id);
152
+ return true;
153
+ }
154
+ else {
155
+ return Reflect.set(target, key, value, receiver);
156
+ }
157
+ },
158
+ defineProperty(target, key, descriptor) {
159
+ var _b;
160
+ if ((key === "profile" || key === "root" || key === MembersSym) &&
161
+ typeof descriptor.value === "object" &&
162
+ SchemaInit in descriptor.value) {
163
+ (_b = target.constructor)._schema || (_b._schema = {});
164
+ target.constructor._schema[key] =
165
+ descriptor.value[SchemaInit];
166
+ return true;
167
+ }
168
+ else {
169
+ return Reflect.defineProperty(target, key, descriptor);
170
+ }
171
+ },
172
+ };
133
173
  export class AccountCtx extends Context.Tag("Account")() {
134
174
  }
135
175
  export function isControlledAccount(account) {
@@ -1 +1 @@
1
- {"version":3,"file":"account.js","sourceRoot":"","sources":["../../src/coValues/account.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AAYnC,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AAYjC,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAGzE,MAAM,OAAO,OAMT,SAAQ,WAAW;IAQnB,IAAI,SAAS;QAIT,OAAQ,IAAI,CAAC,WAA8B,CAAC,SAAS,CAAC;IAC1D,CAAC;IAQD,IAAI,MAAM;QACN,OAAO,IAAe,CAAC;IAC3B,CAAC;IACD,IAAI,SAAS;QACT,OAAO,IAAI,CAAC,IAAI;YACZ,CAAC,CAAE,IAAqB;YACxB,CAAC,CAAC,EAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAChD,CAAC;IAKD,I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