@g9tm/lynxcontrols-studio 0.0.0-stage → 2.8.1

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 (76) hide show
  1. package/README.md +184 -2
  2. package/catalog/cards/G9NleTimeline.md +17 -0
  3. package/catalog/cards/G9Surface.md +16 -0
  4. package/catalog/cards/G9TransformBox.md +17 -0
  5. package/catalog/catalog.json +2255 -0
  6. package/catalog/index.md +7 -0
  7. package/dist/.tsbuildinfo +1 -0
  8. package/dist/index.d.ts +4 -0
  9. package/dist/index.d.ts.map +1 -0
  10. package/dist/index.jsx +3 -0
  11. package/dist/nle-timeline/core.d.ts +5 -0
  12. package/dist/nle-timeline/core.d.ts.map +1 -0
  13. package/dist/nle-timeline/core.js +4 -0
  14. package/dist/nle-timeline/core.jsx +4 -0
  15. package/dist/nle-timeline/edits.d.ts +65 -0
  16. package/dist/nle-timeline/edits.d.ts.map +1 -0
  17. package/dist/nle-timeline/edits.js +344 -0
  18. package/dist/nle-timeline/edits.js.map +1 -0
  19. package/dist/nle-timeline/edits.jsx +342 -0
  20. package/dist/nle-timeline/engine.d.ts +159 -0
  21. package/dist/nle-timeline/engine.d.ts.map +1 -0
  22. package/dist/nle-timeline/engine.js +899 -0
  23. package/dist/nle-timeline/engine.js.map +1 -0
  24. package/dist/nle-timeline/engine.jsx +897 -0
  25. package/dist/nle-timeline/index.d.ts +6 -0
  26. package/dist/nle-timeline/index.d.ts.map +1 -0
  27. package/dist/nle-timeline/index.jsx +5 -0
  28. package/dist/nle-timeline/layout.d.ts +116 -0
  29. package/dist/nle-timeline/layout.d.ts.map +1 -0
  30. package/dist/nle-timeline/layout.js +310 -0
  31. package/dist/nle-timeline/layout.js.map +1 -0
  32. package/dist/nle-timeline/layout.jsx +308 -0
  33. package/dist/nle-timeline/model.d.ts +140 -0
  34. package/dist/nle-timeline/model.d.ts.map +1 -0
  35. package/dist/nle-timeline/model.js +155 -0
  36. package/dist/nle-timeline/model.js.map +1 -0
  37. package/dist/nle-timeline/model.jsx +153 -0
  38. package/dist/nle-timeline/nle.d.ts +72 -0
  39. package/dist/nle-timeline/nle.d.ts.map +1 -0
  40. package/dist/nle-timeline/nle.jsx +92 -0
  41. package/dist/surface/core.d.ts +2 -0
  42. package/dist/surface/core.d.ts.map +1 -0
  43. package/dist/surface/core.js +1 -0
  44. package/dist/surface/core.jsx +1 -0
  45. package/dist/surface/index.d.ts +3 -0
  46. package/dist/surface/index.d.ts.map +1 -0
  47. package/dist/surface/index.jsx +2 -0
  48. package/dist/surface/protocol.d.ts +40 -0
  49. package/dist/surface/protocol.d.ts.map +1 -0
  50. package/dist/surface/protocol.js +19 -0
  51. package/dist/surface/protocol.js.map +1 -0
  52. package/dist/surface/protocol.jsx +17 -0
  53. package/dist/surface/surface.d.ts +53 -0
  54. package/dist/surface/surface.d.ts.map +1 -0
  55. package/dist/surface/surface.jsx +62 -0
  56. package/dist/transform-box/core.d.ts +3 -0
  57. package/dist/transform-box/core.d.ts.map +1 -0
  58. package/dist/transform-box/core.js +2 -0
  59. package/dist/transform-box/core.jsx +2 -0
  60. package/dist/transform-box/engine.d.ts +152 -0
  61. package/dist/transform-box/engine.d.ts.map +1 -0
  62. package/dist/transform-box/engine.js +636 -0
  63. package/dist/transform-box/engine.js.map +1 -0
  64. package/dist/transform-box/engine.jsx +634 -0
  65. package/dist/transform-box/geometry.d.ts +129 -0
  66. package/dist/transform-box/geometry.d.ts.map +1 -0
  67. package/dist/transform-box/geometry.js +506 -0
  68. package/dist/transform-box/geometry.js.map +1 -0
  69. package/dist/transform-box/geometry.jsx +504 -0
  70. package/dist/transform-box/index.d.ts +4 -0
  71. package/dist/transform-box/index.d.ts.map +1 -0
  72. package/dist/transform-box/index.jsx +3 -0
  73. package/dist/transform-box/transform-box.d.ts +65 -0
  74. package/dist/transform-box/transform-box.d.ts.map +1 -0
  75. package/dist/transform-box/transform-box.jsx +104 -0
  76. package/package.json +56 -4
@@ -0,0 +1,342 @@
1
+ import { nearest } from "./layout.jsx";
2
+ import { compatible, frameOf, laneById, laneClips, quantize } from "./model.jsx";
3
+ const EPS = 1e-6;
4
+ function changeOf(clip, over = {}) {
5
+ var _over_lane, _over_start, _over_duration, _ref, _over_sourceIn;
6
+ return {
7
+ id: clip.id,
8
+ lane: null != (_over_lane = over.lane) ? _over_lane : clip.lane,
9
+ start: null != (_over_start = over.start) ? _over_start : clip.start,
10
+ duration: null != (_over_duration = over.duration) ? _over_duration : clip.duration,
11
+ sourceIn: null != (_ref = null != (_over_sourceIn = over.sourceIn) ? _over_sourceIn : clip.sourceIn) ? _ref : 0
12
+ };
13
+ }
14
+ function differing(doc, changes) {
15
+ const out = [];
16
+ for (const change of changes.values()){
17
+ var _clip_sourceIn;
18
+ const clip = doc.clips.get(change.id);
19
+ if (!clip || clip.lane !== change.lane || Math.abs(clip.start - change.start) > EPS || Math.abs(clip.duration - change.duration) > EPS || Math.abs((null != (_clip_sourceIn = clip.sourceIn) ? _clip_sourceIn : 0) - change.sourceIn) > EPS) out.push(change);
20
+ }
21
+ return out;
22
+ }
23
+ function commit(doc, changes) {
24
+ let any = false;
25
+ for (const change of changes){
26
+ const clip = doc.clips.get(change.id);
27
+ if (clip) {
28
+ doc.clips.set(change.id, {
29
+ ...clip,
30
+ lane: change.lane,
31
+ start: change.start,
32
+ duration: change.duration,
33
+ sourceIn: change.sourceIn
34
+ });
35
+ any = true;
36
+ }
37
+ }
38
+ if (any) {
39
+ doc.index = null;
40
+ doc.version++;
41
+ }
42
+ }
43
+ function packMain(order, laneId, changes, override) {
44
+ let t = 0;
45
+ for (const clip of order){
46
+ var _ref;
47
+ const own = null == override ? void 0 : override.get(clip.id);
48
+ const duration = null != (_ref = null == own ? void 0 : own.duration) ? _ref : clip.duration;
49
+ changes.set(clip.id, changeOf(clip, {
50
+ ...own,
51
+ lane: laneId,
52
+ start: t,
53
+ duration
54
+ }));
55
+ t += duration;
56
+ }
57
+ }
58
+ function insertByCentre(others, clip, centre) {
59
+ const order = [];
60
+ let t = 0;
61
+ let placed = false;
62
+ for (const other of others){
63
+ if (!placed && centre < t + other.duration / 2) {
64
+ order.push(clip);
65
+ placed = true;
66
+ }
67
+ order.push(other);
68
+ t += other.duration;
69
+ }
70
+ if (!placed) order.push(clip);
71
+ return order;
72
+ }
73
+ function computeMove(doc, input) {
74
+ const changes = new Map();
75
+ const lead = doc.clips.get(input.lead);
76
+ if (!lead) return {
77
+ changes,
78
+ snap: null
79
+ };
80
+ const fromLane = laneById(doc, lead.lane);
81
+ const toLaneRaw = input.lane ? laneById(doc, input.lane) : void 0;
82
+ const toLane = fromLane && toLaneRaw && !toLaneRaw.locked && compatible(fromLane, toLaneRaw) ? toLaneRaw : fromLane;
83
+ if (!fromLane || !toLane || fromLane.locked) return {
84
+ changes,
85
+ snap: null
86
+ };
87
+ const ids = 'main' === fromLane.kind || 'main' === toLane.kind || toLane.id !== fromLane.id ? [
88
+ lead.id
89
+ ] : input.ids;
90
+ const moving = ids.map((id)=>doc.clips.get(id)).filter((c)=>Boolean(c) && !(null == c ? void 0 : c.locked));
91
+ if (!moving.length) return {
92
+ changes,
93
+ snap: null
94
+ };
95
+ let dt = input.dt;
96
+ let snap = null;
97
+ const minStart = Math.min(...moving.map((c)=>c.start));
98
+ if (input.targets && 'main' !== toLane.kind) {
99
+ let best = null;
100
+ for (const clip of moving)for (const edge of [
101
+ clip.start + dt,
102
+ clip.start + clip.duration + dt
103
+ ]){
104
+ const t = nearest(input.targets, edge, input.within);
105
+ if (null !== t && (!best || Math.abs(t - edge) < Math.abs(best.d))) best = {
106
+ d: t - edge,
107
+ t
108
+ };
109
+ }
110
+ if (best) {
111
+ dt += best.d;
112
+ snap = best.t;
113
+ }
114
+ }
115
+ if (minStart + dt < 0) {
116
+ dt = -minStart;
117
+ snap = null;
118
+ }
119
+ if ('main' !== fromLane.kind && 'main' !== toLane.kind) {
120
+ for (const clip of moving)changes.set(clip.id, changeOf(clip, {
121
+ lane: toLane.id,
122
+ start: quantize(doc, clip.start + dt)
123
+ }));
124
+ return {
125
+ changes,
126
+ snap
127
+ };
128
+ }
129
+ const centre = lead.start + input.dt + lead.duration / 2;
130
+ if ('main' === fromLane.kind && toLane.id === fromLane.id) {
131
+ const others = laneClips(doc, fromLane.id).filter((c)=>c.id !== lead.id);
132
+ packMain(insertByCentre(others, lead, centre), fromLane.id, changes);
133
+ return {
134
+ changes,
135
+ snap: null
136
+ };
137
+ }
138
+ if ('main' === fromLane.kind) {
139
+ packMain(laneClips(doc, fromLane.id).filter((c)=>c.id !== lead.id), fromLane.id, changes);
140
+ changes.set(lead.id, changeOf(lead, {
141
+ lane: toLane.id,
142
+ start: quantize(doc, Math.max(0, lead.start + dt))
143
+ }));
144
+ return {
145
+ changes,
146
+ snap
147
+ };
148
+ }
149
+ const others = laneClips(doc, toLane.id);
150
+ packMain(insertByCentre(others, lead, centre), toLane.id, changes);
151
+ return {
152
+ changes,
153
+ snap: null
154
+ };
155
+ }
156
+ function minDuration(doc) {
157
+ return Math.max(frameOf(doc), 0.05);
158
+ }
159
+ function computeTrim(doc, input) {
160
+ var _clip_sourceIn;
161
+ const changes = new Map();
162
+ const clip = doc.clips.get(input.id);
163
+ const lane = clip ? laneById(doc, clip.lane) : void 0;
164
+ if (!clip || !lane || clip.locked || lane.locked) return {
165
+ changes,
166
+ snap: null
167
+ };
168
+ const speed = clip.speed && clip.speed > 0 ? clip.speed : 1;
169
+ const sourceIn = null != (_clip_sourceIn = clip.sourceIn) ? _clip_sourceIn : 0;
170
+ const min = minDuration(doc);
171
+ let snap = null;
172
+ const main = 'main' === lane.kind;
173
+ if ('end' === input.edge) {
174
+ let end = clip.start + clip.duration + input.dt;
175
+ if (input.targets && !main) {
176
+ const t = nearest(input.targets, end, input.within);
177
+ if (null !== t) {
178
+ end = t;
179
+ snap = t;
180
+ }
181
+ } else if (input.targets && main) {
182
+ const t = nearest(input.targets, end, input.within);
183
+ if (null !== t) {
184
+ end = t;
185
+ snap = t;
186
+ }
187
+ }
188
+ let duration = end - clip.start;
189
+ const maxBySource = void 0 !== clip.sourceDuration ? (clip.sourceDuration - sourceIn) / speed : 1 / 0;
190
+ if (duration > maxBySource) {
191
+ duration = maxBySource;
192
+ snap = null;
193
+ }
194
+ if (duration < min) {
195
+ duration = min;
196
+ snap = null;
197
+ }
198
+ duration = Math.max(min, quantize(doc, duration));
199
+ const own = changeOf(clip, {
200
+ duration
201
+ });
202
+ if (main) packMain(laneClips(doc, lane.id), lane.id, changes, new Map([
203
+ [
204
+ clip.id,
205
+ own
206
+ ]
207
+ ]));
208
+ else changes.set(clip.id, own);
209
+ return {
210
+ changes,
211
+ snap
212
+ };
213
+ }
214
+ let dt = input.dt;
215
+ if (input.targets && !main) {
216
+ const t = nearest(input.targets, clip.start + dt, input.within);
217
+ if (null !== t) {
218
+ dt = t - clip.start;
219
+ snap = t;
220
+ }
221
+ }
222
+ const maxDt = clip.duration - min;
223
+ const minDtBySource = void 0 === clip.sourceDuration ? -1 / 0 : -sourceIn / speed;
224
+ const minDtByZero = main ? -1 / 0 : -clip.start;
225
+ if (dt > maxDt) {
226
+ dt = maxDt;
227
+ snap = null;
228
+ }
229
+ if (dt < Math.max(minDtBySource, minDtByZero)) {
230
+ dt = Math.max(minDtBySource, minDtByZero);
231
+ snap = null;
232
+ }
233
+ dt = quantize(doc, dt);
234
+ const duration = Math.max(min, clip.duration - dt);
235
+ const newIn = Math.max(0, sourceIn + dt * speed);
236
+ if (!main) {
237
+ changes.set(clip.id, changeOf(clip, {
238
+ start: clip.start + dt,
239
+ duration,
240
+ sourceIn: newIn
241
+ }));
242
+ return {
243
+ changes,
244
+ snap
245
+ };
246
+ }
247
+ packMain(laneClips(doc, lane.id), lane.id, changes, new Map([
248
+ [
249
+ clip.id,
250
+ changeOf(clip, {
251
+ duration,
252
+ sourceIn: newIn
253
+ })
254
+ ]
255
+ ]));
256
+ return {
257
+ changes,
258
+ snap: null
259
+ };
260
+ }
261
+ function trimToTime(doc, id, edge, time) {
262
+ const clip = doc.clips.get(id);
263
+ if (!clip) return {
264
+ changes: new Map(),
265
+ snap: null
266
+ };
267
+ if (time <= clip.start + EPS || time >= clip.start + clip.duration - EPS) return {
268
+ changes: new Map(),
269
+ snap: null
270
+ };
271
+ const dt = 'end' === edge ? time - (clip.start + clip.duration) : time - clip.start;
272
+ return computeTrim(doc, {
273
+ id,
274
+ edge,
275
+ dt,
276
+ targets: null,
277
+ within: 0
278
+ });
279
+ }
280
+ function computeNudge(doc, ids, frames) {
281
+ const changes = new Map();
282
+ const step = frameOf(doc) * frames;
283
+ for (const id of ids){
284
+ const clip = doc.clips.get(id);
285
+ const lane = clip ? laneById(doc, clip.lane) : void 0;
286
+ if (clip && lane && !clip.locked && !lane.locked) {
287
+ if ('main' === lane.kind) {
288
+ const order = laneClips(doc, lane.id).slice();
289
+ const i = order.findIndex((c)=>c.id === id);
290
+ const j = i + (frames > 0 ? 1 : -1);
291
+ if (j < 0 || j >= order.length) continue;
292
+ [order[i], order[j]] = [
293
+ order[j],
294
+ order[i]
295
+ ];
296
+ packMain(order, lane.id, changes);
297
+ return changes;
298
+ }
299
+ changes.set(id, changeOf(clip, {
300
+ start: quantize(doc, Math.max(0, clip.start + step))
301
+ }));
302
+ }
303
+ }
304
+ return changes;
305
+ }
306
+ function computeLaneStep(doc, id, step) {
307
+ const clip = doc.clips.get(id);
308
+ const from = clip ? laneById(doc, clip.lane) : void 0;
309
+ const changes = new Map();
310
+ if (!clip || !from || from.locked || clip.locked) return changes;
311
+ const lanes = doc.lanes.filter((l)=>!l.hidden);
312
+ let i = lanes.findIndex((l)=>l.id === from.id) + step;
313
+ while(i >= 0 && i < lanes.length && (!compatible(from, lanes[i]) || lanes[i].locked))i += step;
314
+ const to = lanes[i];
315
+ if (!to) return changes;
316
+ return computeMove(doc, {
317
+ lead: id,
318
+ ids: [
319
+ id
320
+ ],
321
+ dt: 0,
322
+ lane: to.id,
323
+ targets: null,
324
+ within: 0
325
+ }).changes;
326
+ }
327
+ function splitTargets(doc, time) {
328
+ const inside = (c)=>time > c.start + EPS && time < c.start + c.duration - EPS;
329
+ const selected = doc.selection.map((id)=>doc.clips.get(id)).filter((c)=>Boolean(c) && inside(c));
330
+ const free = (c)=>{
331
+ const lane = laneById(doc, c.lane);
332
+ return !c.locked && Boolean(lane) && !(null == lane ? void 0 : lane.locked);
333
+ };
334
+ if (selected.length) return selected.filter(free).map((c)=>c.id);
335
+ for (const lane of doc.lanes)if ('main' === lane.kind) {
336
+ for (const clip of laneClips(doc, lane.id))if (inside(clip) && free(clip)) return [
337
+ clip.id
338
+ ];
339
+ }
340
+ return [];
341
+ }
342
+ export { changeOf, commit, computeLaneStep, computeMove, computeNudge, computeTrim, differing, insertByCentre, minDuration, packMain, splitTargets, trimToTime };
@@ -0,0 +1,159 @@
1
+ import { type NleChanges, type NleClipChange } from './edits.js';
2
+ import { type NleLayout, type NleMetrics, type NleViewport } from './layout.js';
3
+ import { type NleDoc, type NlePatch, type NleRange } from './model.js';
4
+ /** The pointer tool: select (select, move, trim) or blade (a click splits). */
5
+ export type NleTool = 'select' | 'blade';
6
+ /** A pointer event handed to the engine, in element px. */
7
+ export interface NlePointer {
8
+ readonly id: number;
9
+ /** CSS px inside the element. */
10
+ readonly x: number;
11
+ readonly y: number;
12
+ readonly type: 'mouse' | 'touch' | 'pen';
13
+ readonly shift?: boolean;
14
+ readonly alt?: boolean;
15
+ readonly ctrl?: boolean;
16
+ /** ms (for double taps). */
17
+ readonly time: number;
18
+ }
19
+ /** A wheel or trackpad event handed to the engine. */
20
+ export interface NleWheel {
21
+ readonly x: number;
22
+ readonly y: number;
23
+ readonly dx: number;
24
+ readonly dy: number;
25
+ readonly ctrl?: boolean;
26
+ readonly shift?: boolean;
27
+ }
28
+ /** A key press handed to the engine. */
29
+ export interface NleKeyInput {
30
+ readonly key: string;
31
+ readonly ctrl?: boolean;
32
+ readonly shift?: boolean;
33
+ readonly alt?: boolean;
34
+ }
35
+ /** How an edit was made. */
36
+ export type NleVia = 'pointer' | 'keyboard';
37
+ /** The events (names as on the element; each detail is JSON). */
38
+ export interface NleEvents {
39
+ nleselect: {
40
+ ids: string[];
41
+ };
42
+ nleedit: {
43
+ op: 'move' | 'trim' | 'keys' | 'split' | 'delete';
44
+ via: NleVia;
45
+ changes?: NleClipChange[];
46
+ keys?: {
47
+ id: string;
48
+ time: number;
49
+ }[];
50
+ splits?: {
51
+ id: string;
52
+ time: number;
53
+ }[];
54
+ ids?: string[];
55
+ /** A delete on the magnetic lane closes the gap. */
56
+ ripple?: boolean;
57
+ };
58
+ nleadd: {
59
+ lane: string;
60
+ time: number;
61
+ via: NleVia;
62
+ };
63
+ nleopen: {
64
+ id: string;
65
+ };
66
+ nleseek: {
67
+ time: number;
68
+ scrubbing: boolean;
69
+ };
70
+ nlerange: {
71
+ range: NleRange | null;
72
+ };
73
+ nleview: {
74
+ zoom: number;
75
+ scroll: number;
76
+ scrollY: number;
77
+ };
78
+ nlecommand: {
79
+ name: 'undo' | 'redo' | 'duplicate' | 'copy' | 'paste' | 'marker' | 'escape';
80
+ time: number;
81
+ };
82
+ }
83
+ /** How the engine raises an event on its host element. */
84
+ export type NleEmit = <K extends keyof NleEvents>(name: K, detail: NleEvents[K]) => void;
85
+ /** The keys, for the README and the help sheet of an app. */
86
+ export declare const NLE_KEYS: readonly (readonly [string, string])[];
87
+ /** What the painter draws over the doc while a gesture runs. */
88
+ export interface NleOverlay {
89
+ /** Clips shown somewhere else than in the doc. */
90
+ readonly preview: NleChanges | null;
91
+ readonly keyPreview: ReadonlyMap<string, number> | null;
92
+ /** A snap line's time. */
93
+ readonly snap: number | null;
94
+ /** The lane a move drops into. */
95
+ readonly dropLane: string | null;
96
+ }
97
+ /** G9NleTimeline's behaviour without a host: pointers, wheel and keys in, the view and events out. Each host element runs it unchanged and only paints its state. */
98
+ export declare class NleEngine {
99
+ private readonly emit;
100
+ private readonly invalidate;
101
+ readonly doc: NleDoc;
102
+ readonly vp: NleViewport;
103
+ readonly metrics: NleMetrics;
104
+ tool: NleTool;
105
+ snapping: boolean;
106
+ editable: boolean;
107
+ layout: NleLayout;
108
+ overlay: NleOverlay;
109
+ private drag;
110
+ private readonly pointers;
111
+ private lastTap;
112
+ private fitted;
113
+ private layoutVersion;
114
+ constructor(emit: NleEmit, invalidate: () => void, metrics?: Partial<NleMetrics>);
115
+ apply(patch: NlePatch): void;
116
+ resize(width: number, height: number): void;
117
+ setDirection(dir: 'ltr' | 'rtl'): void;
118
+ relayout(): void;
119
+ /** Zoom to show the whole film. */
120
+ fit(announce?: boolean): void;
121
+ /** Zoom by `factor` keeping the time under `x` in place. */
122
+ zoomAt(factor: number, x: number): void;
123
+ scrollBy(dxPx: number, dyPx: number): void;
124
+ private clamp;
125
+ private announceView;
126
+ private select;
127
+ private seek;
128
+ /** Scrolls so `t` is visible. */
129
+ private reveal;
130
+ private setRange;
131
+ private edgeFor;
132
+ private within;
133
+ pointerDown(p: NlePointer): void;
134
+ pointerMove(p: NlePointer): void;
135
+ pointerUp(p: NlePointer): void;
136
+ pointerCancel(p: NlePointer): void;
137
+ /** The pointer is near an edge of the track during a drag: scroll a little (the element calls it per frame too). */
138
+ autoScroll(x: number): void;
139
+ /** The cursor a host shows over a point. */
140
+ cursorAt(x: number, y: number): 'default' | 'ew-resize' | 'grab' | 'text' | 'crosshair' | 'pointer';
141
+ private laneUnder;
142
+ private snapped;
143
+ private startDrag;
144
+ private tap;
145
+ wheel(w: NleWheel): void;
146
+ /** Returns true when the key was used (the host then prevents its default). */
147
+ key(k: NleKeyInput): boolean;
148
+ private playheadX;
149
+ private nudge;
150
+ private commitClips;
151
+ private commitKeys;
152
+ private splitAtPlayhead;
153
+ /** Tab order: clips by start, then lane order. */
154
+ private selectNext;
155
+ private selectInLane;
156
+ /** True while a gesture runs (the host keeps drawing every frame). */
157
+ get busy(): boolean;
158
+ }
159
+ //# sourceMappingURL=engine.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"engine.d.ts","sourceRoot":"","sources":["../../src/nle-timeline/engine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