@teambit/lanes 1.0.383 → 1.0.385
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/artifacts/__bit_junit.xml +11 -11
- package/artifacts/preview/teambit_lanes_lanes-preview.js +1 -1
- package/artifacts/schema.json +215 -215
- package/dist/lane.cmd.js +3 -3
- package/dist/lane.cmd.js.map +1 -1
- package/dist/lanes.main.runtime.js +9 -8
- package/dist/lanes.main.runtime.js.map +1 -1
- package/dist/lanes.ui.runtime.d.ts +1 -1
- package/dist/{preview-1724037552319.js → preview-1724210355889.js} +2 -2
- package/dist/switch-lanes.js +4 -4
- package/dist/switch-lanes.js.map +1 -1
- package/package.json +25 -26
- package/dist/create-lane.d.ts +0 -8
- package/dist/create-lane.js +0 -168
- package/dist/create-lane.js.map +0 -1
package/package.json
CHANGED
@@ -1,28 +1,27 @@
|
|
1
1
|
{
|
2
2
|
"name": "@teambit/lanes",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.385",
|
4
4
|
"homepage": "https://bit.cloud/teambit/lanes/lanes",
|
5
5
|
"main": "dist/index.js",
|
6
6
|
"componentId": {
|
7
7
|
"scope": "teambit.lanes",
|
8
8
|
"name": "lanes",
|
9
|
-
"version": "1.0.
|
9
|
+
"version": "1.0.385"
|
10
10
|
},
|
11
11
|
"dependencies": {
|
12
|
-
"lodash": "4.17.21",
|
13
12
|
"chalk": "2.4.2",
|
14
13
|
"yn": "2.0.0",
|
15
14
|
"fuse.js": "6.6.2",
|
16
15
|
"graphql-tag": "2.12.1",
|
16
|
+
"lodash": "4.17.21",
|
17
17
|
"p-map-series": "2.1.0",
|
18
18
|
"p-map": "4.0.0",
|
19
19
|
"group-array": "1.0.0",
|
20
20
|
"@teambit/bit-error": "0.0.404",
|
21
|
-
"@teambit/component-version": "1.0.3",
|
22
21
|
"@teambit/lane-id": "0.0.311",
|
23
|
-
"@teambit/legacy-bit-id": "1.1.1",
|
24
22
|
"@teambit/harmony": "0.4.6",
|
25
23
|
"@teambit/component-id": "1.2.0",
|
24
|
+
"@teambit/legacy-bit-id": "1.1.1",
|
26
25
|
"@teambit/design.ui.pages.not-found": "0.0.371",
|
27
26
|
"@teambit/lanes.ui.menus.lanes-overview-menu": "0.0.10",
|
28
27
|
"@teambit/scope.ui.scope-icon": "0.0.91",
|
@@ -31,37 +30,37 @@
|
|
31
30
|
"@teambit/lanes.ui.compare.lane-compare-page": "0.0.162",
|
32
31
|
"@teambit/lanes.ui.compare.lane-compare": "0.0.193",
|
33
32
|
"@teambit/lanes.ui.navigation.lane-switcher": "0.0.225",
|
34
|
-
"@teambit/cloud.modules.get-cloud-user": "0.0.1",
|
35
|
-
"@teambit/legacy.component-list": "0.0.21",
|
36
|
-
"@teambit/scope": "1.0.383",
|
37
|
-
"@teambit/workspace": "1.0.383",
|
38
33
|
"@teambit/lanes.ui.models.lanes-model": "0.0.217",
|
39
|
-
"@teambit/checkout": "1.0.
|
40
|
-
"@teambit/cli": "0.0.
|
41
|
-
"@teambit/importer": "1.0.
|
34
|
+
"@teambit/checkout": "1.0.385",
|
35
|
+
"@teambit/cli": "0.0.962",
|
36
|
+
"@teambit/importer": "1.0.385",
|
42
37
|
"@teambit/legacy.cli.prompts": "0.0.1",
|
43
|
-
"@teambit/
|
44
|
-
"@teambit/
|
45
|
-
"@teambit/
|
46
|
-
"@teambit/
|
47
|
-
"@teambit/
|
48
|
-
"@teambit/component": "1.0.
|
49
|
-
"@teambit/
|
38
|
+
"@teambit/scope": "1.0.385",
|
39
|
+
"@teambit/workspace": "1.0.385",
|
40
|
+
"@teambit/express": "0.0.1061",
|
41
|
+
"@teambit/logger": "0.0.1055",
|
42
|
+
"@teambit/graphql": "1.0.385",
|
43
|
+
"@teambit/component-compare": "1.0.385",
|
44
|
+
"@teambit/component-writer": "1.0.385",
|
45
|
+
"@teambit/component": "1.0.385",
|
46
|
+
"@teambit/export": "1.0.385",
|
50
47
|
"@teambit/harmony.modules.concurrency": "0.0.1",
|
51
48
|
"@teambit/harmony.modules.feature-toggle": "0.0.5",
|
52
|
-
"@teambit/install": "1.0.
|
49
|
+
"@teambit/install": "1.0.385",
|
53
50
|
"@teambit/lanes.entities.lane-diff": "0.0.166",
|
51
|
+
"@teambit/lanes.modules.create-lane": "0.0.1",
|
54
52
|
"@teambit/lanes.modules.diff": "0.0.464",
|
55
53
|
"@teambit/legacy.component-diff": "0.0.21",
|
56
|
-
"@teambit/
|
57
|
-
"@teambit/
|
58
|
-
"@teambit/
|
54
|
+
"@teambit/legacy.component-list": "0.0.21",
|
55
|
+
"@teambit/merging": "1.0.385",
|
56
|
+
"@teambit/remove": "1.0.385",
|
57
|
+
"@teambit/command-bar": "1.0.385",
|
59
58
|
"@teambit/lanes.hooks.use-lanes": "0.0.267",
|
60
59
|
"@teambit/lanes.hooks.use-viewed-lane-from-url": "0.0.226",
|
61
60
|
"@teambit/lanes.ui.lane-overview": "0.0.237",
|
62
61
|
"@teambit/lanes.ui.menus.use-lanes-menu": "0.0.219",
|
63
62
|
"@teambit/ui-foundation.ui.react-router.slot-router": "0.0.509",
|
64
|
-
"@teambit/ui": "1.0.
|
63
|
+
"@teambit/ui": "1.0.385"
|
65
64
|
},
|
66
65
|
"devDependencies": {
|
67
66
|
"@types/lodash": "4.14.165",
|
@@ -73,8 +72,8 @@
|
|
73
72
|
"@teambit/harmony.envs.core-aspect-env": "0.0.47",
|
74
73
|
"@teambit/component.testing.mock-components": "0.0.226",
|
75
74
|
"@teambit/harmony.testing.load-aspect": "0.0.221",
|
76
|
-
"@teambit/merge-lanes": "1.0.
|
77
|
-
"@teambit/snapping": "1.0.
|
75
|
+
"@teambit/merge-lanes": "1.0.385",
|
76
|
+
"@teambit/snapping": "1.0.385",
|
78
77
|
"@teambit/workspace.testing.mock-workspace": "0.0.27"
|
79
78
|
},
|
80
79
|
"peerDependencies": {
|
package/dist/create-lane.d.ts
DELETED
@@ -1,8 +0,0 @@
|
|
1
|
-
import { Consumer } from '@teambit/legacy/dist/consumer';
|
2
|
-
import { ScopeMain } from '@teambit/scope';
|
3
|
-
import Lane from '@teambit/legacy/dist/scope/models/lane';
|
4
|
-
import { Workspace } from '@teambit/workspace';
|
5
|
-
export declare function createLane(workspace: Workspace, laneName: string, scopeName: string, remoteLane?: Lane): Promise<Lane>;
|
6
|
-
export declare function createLaneInScope(laneName: string, scope: ScopeMain): Promise<Lane>;
|
7
|
-
export declare function throwForInvalidLaneName(laneName: string): void;
|
8
|
-
export declare function throwForStagedComponents(consumer: Consumer): Promise<void>;
|
package/dist/create-lane.js
DELETED
@@ -1,168 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
4
|
-
value: true
|
5
|
-
});
|
6
|
-
exports.createLane = createLane;
|
7
|
-
exports.createLaneInScope = createLaneInScope;
|
8
|
-
exports.throwForInvalidLaneName = throwForInvalidLaneName;
|
9
|
-
exports.throwForStagedComponents = throwForStagedComponents;
|
10
|
-
function _bitError() {
|
11
|
-
const data = require("@teambit/bit-error");
|
12
|
-
_bitError = function () {
|
13
|
-
return data;
|
14
|
-
};
|
15
|
-
return data;
|
16
|
-
}
|
17
|
-
function _lane() {
|
18
|
-
const data = _interopRequireDefault(require("@teambit/legacy/dist/scope/models/lane"));
|
19
|
-
_lane = function () {
|
20
|
-
return data;
|
21
|
-
};
|
22
|
-
return data;
|
23
|
-
}
|
24
|
-
function _componentVersion() {
|
25
|
-
const data = require("@teambit/component-version");
|
26
|
-
_componentVersion = function () {
|
27
|
-
return data;
|
28
|
-
};
|
29
|
-
return data;
|
30
|
-
}
|
31
|
-
function _legacy() {
|
32
|
-
const data = require("@teambit/legacy.component-list");
|
33
|
-
_legacy = function () {
|
34
|
-
return data;
|
35
|
-
};
|
36
|
-
return data;
|
37
|
-
}
|
38
|
-
function _objects() {
|
39
|
-
const data = require("@teambit/legacy/dist/scope/objects");
|
40
|
-
_objects = function () {
|
41
|
-
return data;
|
42
|
-
};
|
43
|
-
return data;
|
44
|
-
}
|
45
|
-
function _lodash() {
|
46
|
-
const data = require("lodash");
|
47
|
-
_lodash = function () {
|
48
|
-
return data;
|
49
|
-
};
|
50
|
-
return data;
|
51
|
-
}
|
52
|
-
function _cloudModules() {
|
53
|
-
const data = require("@teambit/cloud.modules.get-cloud-user");
|
54
|
-
_cloudModules = function () {
|
55
|
-
return data;
|
56
|
-
};
|
57
|
-
return data;
|
58
|
-
}
|
59
|
-
function _legacyBitId() {
|
60
|
-
const data = require("@teambit/legacy-bit-id");
|
61
|
-
_legacyBitId = function () {
|
62
|
-
return data;
|
63
|
-
};
|
64
|
-
return data;
|
65
|
-
}
|
66
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
67
|
-
// import { ComponentIdList } from '@teambit/component-id';
|
68
|
-
|
69
|
-
const MAX_LANE_NAME_LENGTH = 800;
|
70
|
-
async function createLane(workspace, laneName, scopeName, remoteLane) {
|
71
|
-
const consumer = workspace.consumer;
|
72
|
-
const lanes = await consumer.scope.listLanes();
|
73
|
-
if (lanes.find(lane => lane.name === laneName && lane.scope === scopeName)) {
|
74
|
-
throw new (_bitError().BitError)(`lane "${scopeName}/${laneName}" already exists, to switch to this lane, please use "bit switch" command`);
|
75
|
-
}
|
76
|
-
const bitCloudUser = await (0, _cloudModules().getBitCloudUser)();
|
77
|
-
throwForInvalidLaneName(laneName);
|
78
|
-
if (!(0, _legacyBitId().isValidScopeName)(scopeName)) {
|
79
|
-
throw new (_legacyBitId().InvalidScopeName)(scopeName);
|
80
|
-
}
|
81
|
-
await throwForStagedComponents(consumer);
|
82
|
-
const getDataToPopulateLaneObjectIfNeeded = async () => {
|
83
|
-
if (remoteLane) return remoteLane.components;
|
84
|
-
// when branching from one lane to another, copy components from the origin lane
|
85
|
-
// when branching from main, no need to copy anything
|
86
|
-
const currentLaneObject = await consumer.getCurrentLaneObject();
|
87
|
-
if (!currentLaneObject) return [];
|
88
|
-
const laneComponents = currentLaneObject.components;
|
89
|
-
const workspaceIds = consumer.bitMap.getAllBitIds();
|
90
|
-
const laneComponentWithBitmapHead = await Promise.all(laneComponents.map(async ({
|
91
|
-
id,
|
92
|
-
head
|
93
|
-
}) => {
|
94
|
-
const compId = id.changeVersion(head.toString());
|
95
|
-
const isRemoved = await workspace.scope.isComponentRemoved(compId);
|
96
|
-
if (isRemoved) return null;
|
97
|
-
const bitmapHead = workspaceIds.searchWithoutVersion(id);
|
98
|
-
if (bitmapHead && (0, _componentVersion().isSnap)(bitmapHead.version)) {
|
99
|
-
return {
|
100
|
-
id,
|
101
|
-
head: _objects().Ref.from(bitmapHead.version)
|
102
|
-
};
|
103
|
-
}
|
104
|
-
return {
|
105
|
-
id,
|
106
|
-
head
|
107
|
-
};
|
108
|
-
}));
|
109
|
-
return (0, _lodash().compact)(laneComponentWithBitmapHead);
|
110
|
-
};
|
111
|
-
const forkedFrom = await getLaneOrigin(consumer);
|
112
|
-
const newLane = remoteLane ? _lane().default.from({
|
113
|
-
name: laneName,
|
114
|
-
hash: remoteLane.hash().toString(),
|
115
|
-
log: remoteLane.log,
|
116
|
-
scope: remoteLane.scope,
|
117
|
-
forkedFrom
|
118
|
-
}) : _lane().default.create(laneName, scopeName, forkedFrom, bitCloudUser);
|
119
|
-
const dataToPopulate = await getDataToPopulateLaneObjectIfNeeded();
|
120
|
-
newLane.setLaneComponents(dataToPopulate);
|
121
|
-
const laneHistoryMsg = remoteLane ? `fork lane "${remoteLane.name}"` : 'new lane';
|
122
|
-
await consumer.scope.lanes.saveLane(newLane, {
|
123
|
-
laneHistoryMsg
|
124
|
-
});
|
125
|
-
return newLane;
|
126
|
-
}
|
127
|
-
async function createLaneInScope(laneName, scope) {
|
128
|
-
const lanes = await scope.legacyScope.listLanes();
|
129
|
-
if (lanes.find(lane => lane.name === laneName)) {
|
130
|
-
throw new (_bitError().BitError)(`lane "${laneName}" already exists`);
|
131
|
-
}
|
132
|
-
throwForInvalidLaneName(laneName);
|
133
|
-
const newLane = _lane().default.create(laneName, scope.name);
|
134
|
-
await scope.legacyScope.lanes.saveLane(newLane, {
|
135
|
-
laneHistoryMsg: 'new lane (created from scope)'
|
136
|
-
});
|
137
|
-
return newLane;
|
138
|
-
}
|
139
|
-
async function getLaneOrigin(consumer) {
|
140
|
-
const currentLaneId = consumer.bitMap.laneId;
|
141
|
-
if (!currentLaneId) return undefined;
|
142
|
-
if (consumer.bitMap.isLaneExported) {
|
143
|
-
return currentLaneId;
|
144
|
-
}
|
145
|
-
// current lane is new.
|
146
|
-
const currentLane = await consumer.getCurrentLaneObject();
|
147
|
-
return currentLane?.forkedFrom;
|
148
|
-
}
|
149
|
-
function throwForInvalidLaneName(laneName) {
|
150
|
-
if (!isValidLaneName(laneName)) {
|
151
|
-
throw new (_bitError().BitError)(`lane "${laneName}" has invalid characters. lane name can only contain alphanumeric, lowercase characters, and the following ["-", "_", "$", "!"]`);
|
152
|
-
}
|
153
|
-
}
|
154
|
-
async function throwForStagedComponents(consumer) {
|
155
|
-
const componentList = new (_legacy().ComponentsList)(consumer);
|
156
|
-
const stagedComponents = await componentList.listExportPendingComponentsIds();
|
157
|
-
if (stagedComponents.length) {
|
158
|
-
throw new (_bitError().BitError)(`unable to switch/create a new lane, please export or reset the following components first: ${stagedComponents.join(', ')}`);
|
159
|
-
}
|
160
|
-
}
|
161
|
-
function isValidLaneName(val) {
|
162
|
-
if (typeof val !== 'string') return false;
|
163
|
-
if (val.length > MAX_LANE_NAME_LENGTH) return false;
|
164
|
-
// @todo: should we allow slash? if so, we should probably replace the lane-delimiter with something else. (maybe ":")
|
165
|
-
return /^[$\-_!a-z0-9]+$/.test(val);
|
166
|
-
}
|
167
|
-
|
168
|
-
//# sourceMappingURL=create-lane.js.map
|
package/dist/create-lane.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"names":["_bitError","data","require","_lane","_interopRequireDefault","_componentVersion","_legacy","_objects","_lodash","_cloudModules","_legacyBitId","e","__esModule","default","MAX_LANE_NAME_LENGTH","createLane","workspace","laneName","scopeName","remoteLane","consumer","lanes","scope","listLanes","find","lane","name","BitError","bitCloudUser","getBitCloudUser","throwForInvalidLaneName","isValidScopeName","InvalidScopeName","throwForStagedComponents","getDataToPopulateLaneObjectIfNeeded","components","currentLaneObject","getCurrentLaneObject","laneComponents","workspaceIds","bitMap","getAllBitIds","laneComponentWithBitmapHead","Promise","all","map","id","head","compId","changeVersion","toString","isRemoved","isComponentRemoved","bitmapHead","searchWithoutVersion","isSnap","version","Ref","from","compact","forkedFrom","getLaneOrigin","newLane","Lane","hash","log","create","dataToPopulate","setLaneComponents","laneHistoryMsg","saveLane","createLaneInScope","legacyScope","currentLaneId","laneId","undefined","isLaneExported","currentLane","isValidLaneName","componentList","ComponentsList","stagedComponents","listExportPendingComponentsIds","length","join","val","test"],"sources":["create-lane.ts"],"sourcesContent":["import { BitError } from '@teambit/bit-error';\nimport { LaneId } from '@teambit/lane-id';\nimport { Consumer } from '@teambit/legacy/dist/consumer';\nimport { ScopeMain } from '@teambit/scope';\n// import { ComponentIdList } from '@teambit/component-id';\nimport Lane, { LaneComponent } from '@teambit/legacy/dist/scope/models/lane';\nimport { isSnap } from '@teambit/component-version';\nimport { ComponentsList } from '@teambit/legacy.component-list';\nimport { Ref } from '@teambit/legacy/dist/scope/objects';\nimport { Workspace } from '@teambit/workspace';\nimport { compact } from 'lodash';\nimport { getBitCloudUser } from '@teambit/cloud.modules.get-cloud-user';\nimport { InvalidScopeName, isValidScopeName } from '@teambit/legacy-bit-id';\n\nconst MAX_LANE_NAME_LENGTH = 800;\n\nexport async function createLane(\n workspace: Workspace,\n laneName: string,\n scopeName: string,\n remoteLane?: Lane\n): Promise<Lane> {\n const consumer = workspace.consumer;\n const lanes = await consumer.scope.listLanes();\n if (lanes.find((lane) => lane.name === laneName && lane.scope === scopeName)) {\n throw new BitError(\n `lane \"${scopeName}/${laneName}\" already exists, to switch to this lane, please use \"bit switch\" command`\n );\n }\n const bitCloudUser = await getBitCloudUser();\n throwForInvalidLaneName(laneName);\n if (!isValidScopeName(scopeName)) {\n throw new InvalidScopeName(scopeName);\n }\n await throwForStagedComponents(consumer);\n const getDataToPopulateLaneObjectIfNeeded = async (): Promise<LaneComponent[]> => {\n if (remoteLane) return remoteLane.components;\n // when branching from one lane to another, copy components from the origin lane\n // when branching from main, no need to copy anything\n const currentLaneObject = await consumer.getCurrentLaneObject();\n if (!currentLaneObject) return [];\n const laneComponents = currentLaneObject.components;\n const workspaceIds = consumer.bitMap.getAllBitIds();\n const laneComponentWithBitmapHead = await Promise.all(\n laneComponents.map(async ({ id, head }) => {\n const compId = id.changeVersion(head.toString());\n const isRemoved = await workspace.scope.isComponentRemoved(compId);\n if (isRemoved) return null;\n const bitmapHead = workspaceIds.searchWithoutVersion(id);\n if (bitmapHead && isSnap(bitmapHead.version)) {\n return { id, head: Ref.from(bitmapHead.version as string) };\n }\n return { id, head };\n })\n );\n return compact(laneComponentWithBitmapHead);\n };\n\n const forkedFrom = await getLaneOrigin(consumer);\n const newLane = remoteLane\n ? Lane.from({\n name: laneName,\n hash: remoteLane.hash().toString(),\n log: remoteLane.log,\n scope: remoteLane.scope,\n forkedFrom,\n })\n : Lane.create(laneName, scopeName, forkedFrom, bitCloudUser);\n const dataToPopulate = await getDataToPopulateLaneObjectIfNeeded();\n newLane.setLaneComponents(dataToPopulate);\n\n const laneHistoryMsg = remoteLane ? `fork lane \"${remoteLane.name}\"` : 'new lane';\n await consumer.scope.lanes.saveLane(newLane, { laneHistoryMsg });\n\n return newLane;\n}\n\nexport async function createLaneInScope(laneName: string, scope: ScopeMain): Promise<Lane> {\n const lanes = await scope.legacyScope.listLanes();\n if (lanes.find((lane) => lane.name === laneName)) {\n throw new BitError(`lane \"${laneName}\" already exists`);\n }\n throwForInvalidLaneName(laneName);\n const newLane = Lane.create(laneName, scope.name);\n await scope.legacyScope.lanes.saveLane(newLane, { laneHistoryMsg: 'new lane (created from scope)' });\n return newLane;\n}\n\nasync function getLaneOrigin(consumer: Consumer): Promise<LaneId | undefined> {\n const currentLaneId = consumer.bitMap.laneId;\n if (!currentLaneId) return undefined;\n if (consumer.bitMap.isLaneExported) {\n return currentLaneId;\n }\n // current lane is new.\n const currentLane = await consumer.getCurrentLaneObject();\n return currentLane?.forkedFrom;\n}\n\nexport function throwForInvalidLaneName(laneName: string) {\n if (!isValidLaneName(laneName)) {\n throw new BitError(\n `lane \"${laneName}\" has invalid characters. lane name can only contain alphanumeric, lowercase characters, and the following [\"-\", \"_\", \"$\", \"!\"]`\n );\n }\n}\n\nexport async function throwForStagedComponents(consumer: Consumer) {\n const componentList = new ComponentsList(consumer);\n const stagedComponents = await componentList.listExportPendingComponentsIds();\n if (stagedComponents.length) {\n throw new BitError(\n `unable to switch/create a new lane, please export or reset the following components first: ${stagedComponents.join(\n ', '\n )}`\n );\n }\n}\n\nfunction isValidLaneName(val: unknown): boolean {\n if (typeof val !== 'string') return false;\n if (val.length > MAX_LANE_NAME_LENGTH) return false;\n // @todo: should we allow slash? if so, we should probably replace the lane-delimiter with something else. (maybe \":\")\n return /^[$\\-_!a-z0-9]+$/.test(val);\n}\n"],"mappings":";;;;;;;;;AAAA,SAAAA,UAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,SAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAKA,SAAAE,MAAA;EAAA,MAAAF,IAAA,GAAAG,sBAAA,CAAAF,OAAA;EAAAC,KAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAI,kBAAA;EAAA,MAAAJ,IAAA,GAAAC,OAAA;EAAAG,iBAAA,YAAAA,CAAA;IAAA,OAAAJ,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAK,QAAA;EAAA,MAAAL,IAAA,GAAAC,OAAA;EAAAI,OAAA,YAAAA,CAAA;IAAA,OAAAL,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAM,S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