@narumitw/pi-ticker 0.0.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.
@@ -0,0 +1,433 @@
1
+ // @generated by scripts/build-runtime.mjs; do not edit.
2
+ // @ts-nocheck -- generated JavaScript uses a .ts extension for Pi's Jiti loader.
3
+ import {
4
+ parseSymbols
5
+ } from "./chunk-U5NETXSC.js";
6
+
7
+ // src/tui-menu.ts
8
+ import { fuzzyFilter, Input, Key, matchesKey, truncateToWidth } from "@earendil-works/pi-tui";
9
+ var PASTE_START = "\x1B[200~";
10
+ var PASTE_END = "\x1B[201~";
11
+ var RESERVED_INPUT_BINDINGS = [
12
+ "tui.select.up",
13
+ "tui.select.down",
14
+ "tui.select.pageUp",
15
+ "tui.select.pageDown",
16
+ "tui.select.confirm",
17
+ "tui.select.cancel",
18
+ "tui.editor.undo",
19
+ "tui.input.submit",
20
+ "tui.editor.deleteCharBackward",
21
+ "tui.editor.deleteCharForward",
22
+ "tui.editor.deleteWordBackward",
23
+ "tui.editor.deleteWordForward",
24
+ "tui.editor.deleteToLineStart",
25
+ "tui.editor.deleteToLineEnd",
26
+ "tui.editor.yank",
27
+ "tui.editor.yankPop",
28
+ "tui.editor.cursorLeft",
29
+ "tui.editor.cursorRight",
30
+ "tui.editor.cursorLineStart",
31
+ "tui.editor.cursorLineEnd",
32
+ "tui.editor.cursorWordLeft",
33
+ "tui.editor.cursorWordRight"
34
+ ];
35
+ async function showTickerTuiMenu(ctx, options) {
36
+ const { formatInteractionHints, HorizontalRule, runCustomInteraction, sanitizeTerminalText } = await import("@narumitw/pi-tui-kit");
37
+ while (!options.signal.aborted && options.isCurrent()) {
38
+ const result = await runCustomInteraction(ctx, {
39
+ signal: options.signal,
40
+ isCurrent: options.isCurrent,
41
+ onError: (errorCtx, error) => {
42
+ if (!errorCtx.hasUI) return;
43
+ const message = error instanceof Error ? error.message : String(error);
44
+ errorCtx.ui.notify(sanitizeTerminalText(message), "error");
45
+ },
46
+ create: ({ tui, theme, keybindings, complete }) => {
47
+ let symbols = [...options.getSymbols()];
48
+ let widgetEnabled = options.getWidgetEnabled();
49
+ const rawSearchInput = new Input();
50
+ const searchInput = new Input();
51
+ let selectedIndex = 0;
52
+ let rows = [];
53
+ let busy = false;
54
+ let disposed = false;
55
+ let pasteActive = false;
56
+ let errorMessage;
57
+ let pending = Promise.resolve();
58
+ const shortcutUp = shortcutAvailable(keybindings, "shift+up");
59
+ const shortcutDown = shortcutAvailable(keybindings, "shift+down");
60
+ const activationHint = (label) => formatInteractionHints(keybindings, [
61
+ { bindings: ["tui.select.confirm"], keys: ["space"], label }
62
+ ]);
63
+ const reorderKeys = [shortcutUp, shortcutDown].filter(
64
+ (shortcut) => shortcut !== void 0
65
+ );
66
+ const tickerDescription = `${[
67
+ activationHint("removes this ticker"),
68
+ ...reorderKeys.length > 0 ? [`${reorderKeys.join("/")} changes its order`] : []
69
+ ].join("; ")}.`;
70
+ const topRule = new HorizontalRule({
71
+ label: "Manage tickers",
72
+ labelAlignment: "left",
73
+ ruleStyle: (text) => theme.fg("borderMuted", text),
74
+ labelStyle: (text) => theme.fg("accent", text)
75
+ });
76
+ const bottomRule = new HorizontalRule({
77
+ ruleStyle: (text) => theme.fg("borderMuted", text)
78
+ });
79
+ const hint = formatInteractionHints(keybindings, [
80
+ { bindings: ["tui.select.up", "tui.select.down"], label: "select" },
81
+ ...shortcutUp ? [{ keys: [shortcutUp], label: "move up" }] : [],
82
+ ...shortcutDown ? [{ keys: [shortcutDown], label: "move down" }] : [],
83
+ { bindings: ["tui.select.confirm"], keys: ["space"], label: "toggle/select" },
84
+ {
85
+ bindings: ["tui.select.cancel"],
86
+ excludeKeys: ["ctrl+c"],
87
+ label: "close"
88
+ },
89
+ { keys: ["ctrl+c"], label: "close" }
90
+ ]);
91
+ const actionRows = (directSymbol) => [
92
+ {
93
+ kind: "action",
94
+ id: "add",
95
+ label: directSymbol ? `Add ${sanitizeTerminalText(directSymbol)}` : "Add custom ticker\u2026",
96
+ description: directSymbol ? `${activationHint(`adds ${sanitizeTerminalText(directSymbol)} directly`)}.` : "Add and select one Yahoo Finance symbol."
97
+ },
98
+ {
99
+ kind: "action",
100
+ id: "widget",
101
+ label: `Widget: ${widgetEnabled ? "On" : "Off"}`,
102
+ description: "Show or hide the editor widget and persist this setting."
103
+ },
104
+ {
105
+ kind: "action",
106
+ id: "refresh",
107
+ label: "Refresh now",
108
+ description: widgetEnabled ? "Fetch the selected symbols immediately." : "Enable the widget before refreshing."
109
+ }
110
+ ];
111
+ const buildRows = () => {
112
+ const tickerRows = symbols.map(
113
+ (symbol) => ({ kind: "ticker", id: symbol, symbol })
114
+ );
115
+ const query = searchInput.getValue().toLowerCase();
116
+ const filtered = fuzzyFilter(
117
+ tickerRows,
118
+ query,
119
+ (row) => sanitizeTerminalText(row.symbol.replaceAll("-", " ")).toLowerCase()
120
+ );
121
+ const directSymbol = filtered.length === 0 ? tryDirectSymbol(rawSearchInput.getValue()) : void 0;
122
+ return [...filtered, ...actionRows(directSymbol)];
123
+ };
124
+ const selectedRow = () => rows[selectedIndex];
125
+ const rebuild = (preferredId, fallbackIndex = selectedIndex) => {
126
+ rows = buildRows();
127
+ const preferredIndex = preferredId ? rows.findIndex((row) => row.id === preferredId) : -1;
128
+ selectedIndex = preferredIndex >= 0 ? preferredIndex : Math.max(0, Math.min(fallbackIndex, rows.length - 1));
129
+ tui.requestRender();
130
+ };
131
+ rebuild();
132
+ const select = (index, wrap) => {
133
+ if (rows.length === 0) return;
134
+ selectedIndex = wrap ? (index + rows.length) % rows.length : Math.max(0, Math.min(index, rows.length - 1));
135
+ tui.requestRender();
136
+ };
137
+ const persist = (nextSymbols, previousSymbols, preferredId, previousIndex, clearSearchOnSuccess = false) => {
138
+ busy = true;
139
+ errorMessage = void 0;
140
+ symbols = [...nextSymbols];
141
+ rebuild(preferredId, previousIndex);
142
+ pending = (async () => {
143
+ try {
144
+ await options.applySymbols(symbols, options.signal);
145
+ if (options.signal.aborted || !options.isCurrent()) return;
146
+ symbols = [...options.getSymbols()];
147
+ if (clearSearchOnSuccess) {
148
+ rawSearchInput.setValue("");
149
+ searchInput.setValue("");
150
+ }
151
+ } catch (error) {
152
+ if (options.signal.aborted || !options.isCurrent()) return;
153
+ symbols = [...previousSymbols];
154
+ errorMessage = sanitizeTerminalText(
155
+ error instanceof Error ? error.message : String(error)
156
+ );
157
+ ctx.ui.notify(`Ticker settings were not saved: ${errorMessage}`, "error");
158
+ } finally {
159
+ busy = false;
160
+ if (!disposed && !options.signal.aborted && options.isCurrent()) {
161
+ rebuild(preferredId, previousIndex);
162
+ }
163
+ }
164
+ })();
165
+ };
166
+ const persistWidgetEnabled = (nextWidgetEnabled) => {
167
+ const previousWidgetEnabled = widgetEnabled;
168
+ widgetEnabled = nextWidgetEnabled;
169
+ busy = true;
170
+ errorMessage = void 0;
171
+ rebuild("widget");
172
+ pending = (async () => {
173
+ try {
174
+ await options.applyWidgetEnabled(nextWidgetEnabled, options.signal);
175
+ if (options.signal.aborted || !options.isCurrent()) return;
176
+ widgetEnabled = options.getWidgetEnabled();
177
+ } catch (error) {
178
+ if (options.signal.aborted || !options.isCurrent()) return;
179
+ widgetEnabled = previousWidgetEnabled;
180
+ errorMessage = sanitizeTerminalText(
181
+ error instanceof Error ? error.message : String(error)
182
+ );
183
+ ctx.ui.notify(`Ticker settings were not saved: ${errorMessage}`, "error");
184
+ } finally {
185
+ busy = false;
186
+ if (!disposed && !options.signal.aborted && options.isCurrent()) rebuild("widget");
187
+ }
188
+ })();
189
+ };
190
+ const toggle = () => {
191
+ if (busy || disposed) return;
192
+ const row = selectedRow();
193
+ if (row?.kind !== "ticker") return;
194
+ const previous = [...symbols];
195
+ const next = symbols.filter((symbol) => symbol !== row.symbol);
196
+ persist(next, previous, void 0, selectedIndex);
197
+ };
198
+ const moveTicker = (direction) => {
199
+ if (busy || disposed || rawSearchInput.getValue() || options.signal.aborted || !options.isCurrent()) {
200
+ return;
201
+ }
202
+ const row = selectedRow();
203
+ if (row?.kind !== "ticker") return;
204
+ const from = symbols.indexOf(row.symbol);
205
+ const to = from + direction;
206
+ if (from < 0 || to < 0 || to >= symbols.length) return;
207
+ const previous = [...symbols];
208
+ const next = [...symbols];
209
+ const [symbol] = next.splice(from, 1);
210
+ if (!symbol) return;
211
+ next.splice(to, 0, symbol);
212
+ persist(next, previous, symbol, selectedIndex);
213
+ };
214
+ const activate = () => {
215
+ if (busy || disposed) return;
216
+ const row = selectedRow();
217
+ if (!row) return;
218
+ if (row.kind === "ticker") {
219
+ toggle();
220
+ return;
221
+ }
222
+ if (row.id === "add") {
223
+ const query = rawSearchInput.getValue();
224
+ const hasTickerMatch = rows.some((candidate) => candidate.kind === "ticker");
225
+ if (query.trim() && !hasTickerMatch) {
226
+ let symbol;
227
+ try {
228
+ symbol = parseDirectSymbol(query);
229
+ } catch (error) {
230
+ const message = error instanceof Error ? error.message : String(error);
231
+ errorMessage = sanitizeTerminalText(message);
232
+ ctx.ui.notify(errorMessage, "error");
233
+ tui.requestRender();
234
+ return;
235
+ }
236
+ if (symbols.includes(symbol)) {
237
+ ctx.ui.notify(`${symbol} is already selected.`, "info");
238
+ return;
239
+ }
240
+ persist([...symbols, symbol], [...symbols], symbol, selectedIndex, true);
241
+ return;
242
+ }
243
+ complete("add");
244
+ } else if (row.id === "widget") persistWidgetEnabled(!widgetEnabled);
245
+ else options.refresh();
246
+ };
247
+ const handleSearch = (data) => {
248
+ const previousId = selectedRow()?.id;
249
+ errorMessage = void 0;
250
+ rawSearchInput.handleInput(data);
251
+ searchInput.handleInput(data);
252
+ searchInput.setValue(sanitizeTerminalText(rawSearchInput.getValue()));
253
+ rebuild(previousId, 0);
254
+ };
255
+ return {
256
+ render(width) {
257
+ const safeWidth = Number.isFinite(width) ? Math.max(0, Math.floor(width)) : 0;
258
+ if (safeWidth === 0) return [""];
259
+ const viewportSize = availableRows(tui.terminal.rows, rows.length);
260
+ const viewportStart = Math.max(
261
+ 0,
262
+ Math.min(selectedIndex - Math.floor(viewportSize / 2), rows.length - viewportSize)
263
+ );
264
+ const visibleRows = rows.slice(viewportStart, viewportStart + viewportSize);
265
+ const content = visibleRows.map((row2, offset) => {
266
+ const index = viewportStart + offset;
267
+ const focused = index === selectedIndex;
268
+ const label = row2.kind === "ticker" ? `${focused ? "\u203A" : " "} [x] ${sanitizeTerminalText(row2.symbol)}` : `${focused ? "\u203A" : " "} ${row2.label}`;
269
+ const bounded = truncateToWidth(label, safeWidth, safeWidth > 1 ? "\u2026" : "");
270
+ return focused ? theme.fg("accent", bounded) : bounded;
271
+ });
272
+ if (viewportSize < rows.length) {
273
+ content.push(
274
+ theme.fg(
275
+ "dim",
276
+ truncateToWidth(` (${selectedIndex + 1}/${rows.length})`, safeWidth, "")
277
+ )
278
+ );
279
+ }
280
+ const row = selectedRow();
281
+ const description = row?.kind === "ticker" ? rawSearchInput.getValue() ? "Clear search before reordering." : tickerDescription : row?.description;
282
+ const status = errorMessage ? theme.fg("error", errorMessage) : busy ? theme.fg("muted", "Saving changes\u2026") : void 0;
283
+ return [
284
+ ...topRule.render(safeWidth),
285
+ theme.fg(
286
+ "muted",
287
+ truncateToWidth(
288
+ `${symbols.length} selected \xB7 changes save immediately`,
289
+ safeWidth,
290
+ ""
291
+ )
292
+ ),
293
+ ...searchInput.render(safeWidth).map((line) => truncateToWidth(line, safeWidth, "")),
294
+ ...content,
295
+ ...description ? [theme.fg("dim", truncateToWidth(` ${description}`, safeWidth, ""))] : [],
296
+ ...status ? [truncateToWidth(status, safeWidth, "")] : [],
297
+ ...bottomRule.render(safeWidth),
298
+ theme.fg("dim", truncateToWidth(hint, safeWidth, ""))
299
+ ];
300
+ },
301
+ invalidate() {
302
+ searchInput.invalidate();
303
+ },
304
+ handleInput(data) {
305
+ if (pasteActive || data.includes(PASTE_START)) {
306
+ pasteActive = !data.includes(PASTE_END);
307
+ handleSearch(data);
308
+ return;
309
+ }
310
+ if (matchesKey(data, Key.ctrl("c"))) {
311
+ complete("close");
312
+ return;
313
+ }
314
+ if (keybindings.matches(data, "tui.select.cancel")) {
315
+ complete("close");
316
+ return;
317
+ }
318
+ if (keybindings.matches(data, "tui.select.up")) {
319
+ select(selectedIndex - 1, true);
320
+ return;
321
+ }
322
+ if (keybindings.matches(data, "tui.select.down")) {
323
+ select(selectedIndex + 1, true);
324
+ return;
325
+ }
326
+ if (keybindings.matches(data, "tui.select.pageUp")) {
327
+ select(selectedIndex - availableRows(tui.terminal.rows, rows.length), false);
328
+ return;
329
+ }
330
+ if (keybindings.matches(data, "tui.select.pageDown")) {
331
+ select(selectedIndex + availableRows(tui.terminal.rows, rows.length), false);
332
+ return;
333
+ }
334
+ if (keybindings.matches(data, "tui.select.confirm") || data === " ") {
335
+ activate();
336
+ return;
337
+ }
338
+ if (shortcutUp && matchesKey(data, shortcutUp)) {
339
+ moveTicker(-1);
340
+ return;
341
+ }
342
+ if (shortcutDown && matchesKey(data, shortcutDown)) {
343
+ moveTicker(1);
344
+ return;
345
+ }
346
+ handleSearch(data);
347
+ },
348
+ async waitForPending() {
349
+ await pending;
350
+ },
351
+ dispose() {
352
+ disposed = true;
353
+ },
354
+ get focused() {
355
+ return searchInput.focused;
356
+ },
357
+ set focused(value) {
358
+ searchInput.focused = value;
359
+ }
360
+ };
361
+ }
362
+ });
363
+ if (result.kind !== "completed" || result.value === "close") return;
364
+ const entered = await ctx.ui.input(
365
+ "Add custom ticker",
366
+ "Yahoo symbol, for example MSFT or SOL-USD",
367
+ { signal: options.signal }
368
+ );
369
+ if (options.signal.aborted || !options.isCurrent()) return;
370
+ if (!entered?.trim()) continue;
371
+ try {
372
+ const parsed = parseSymbols([entered]);
373
+ if (parsed.length !== 1) throw new Error("Enter exactly one Yahoo Finance symbol.");
374
+ const symbol = parsed[0];
375
+ if (!symbol) continue;
376
+ const current = options.getSymbols();
377
+ if (current.includes(symbol)) {
378
+ ctx.ui.notify(`${symbol} is already selected.`, "info");
379
+ continue;
380
+ }
381
+ await options.applySymbols([...current, symbol], options.signal);
382
+ if (options.signal.aborted || !options.isCurrent()) return;
383
+ } catch (error) {
384
+ if (options.signal.aborted || !options.isCurrent()) return;
385
+ const message = error instanceof Error ? error.message : String(error);
386
+ ctx.ui.notify(sanitizeTerminalText(message), "error");
387
+ }
388
+ }
389
+ }
390
+ function parseDirectSymbol(value) {
391
+ const parsed = parseSymbols([value]);
392
+ if (parsed.length !== 1) throw new Error("Enter exactly one Yahoo Finance symbol.");
393
+ const symbol = parsed[0];
394
+ if (!symbol) throw new Error("Enter one Yahoo Finance symbol.");
395
+ return symbol;
396
+ }
397
+ function tryDirectSymbol(value) {
398
+ if (!value.trim()) return void 0;
399
+ try {
400
+ return parseDirectSymbol(value);
401
+ } catch {
402
+ return void 0;
403
+ }
404
+ }
405
+ function availableRows(terminalRows, rowCount) {
406
+ const boundedRows = Number.isFinite(terminalRows) ? Math.max(1, Math.floor(terminalRows) - 9) : 10;
407
+ return Math.max(1, Math.min(rowCount, boundedRows, 12));
408
+ }
409
+ function shortcutAvailable(keybindings, shortcut) {
410
+ const unavailable = new Set(
411
+ [
412
+ "ctrl+c",
413
+ "home",
414
+ "end",
415
+ "space",
416
+ ...RESERVED_INPUT_BINDINGS.flatMap((binding) => keybindings.getKeys(binding))
417
+ ].map(canonicalKey)
418
+ );
419
+ return unavailable.has(canonicalKey(shortcut)) ? void 0 : shortcut;
420
+ }
421
+ function canonicalKey(value) {
422
+ const parts = value.toLowerCase().split("+");
423
+ const base = parts.at(-1) ?? "";
424
+ const canonicalBase = base === "escape" ? "esc" : base === "return" ? "enter" : base;
425
+ const modifiers = ["ctrl", "shift", "alt", "super"].filter(
426
+ (modifier) => parts.includes(modifier)
427
+ );
428
+ return [...modifiers, canonicalBase].join("+");
429
+ }
430
+ export {
431
+ showTickerTuiMenu
432
+ };
433
+ //# sourceMappingURL=tui-menu-KQLX7NJ5.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/tui-menu.ts"],
4
+ "sourcesContent": ["import type { ExtensionCommandContext } from \"@earendil-works/pi-coding-agent\";\nimport { fuzzyFilter, Input, Key, matchesKey, truncateToWidth } from \"@earendil-works/pi-tui\";\nimport type { TickerMenuOptions } from \"./menu.js\";\nimport { parseSymbols } from \"./settings.js\";\n\ntype TuiMenuResult = \"add\" | \"close\";\ntype TickerRow = { kind: \"ticker\"; id: string; symbol: string };\ntype ActionRow = {\n\tkind: \"action\";\n\tid: \"add\" | \"widget\" | \"refresh\";\n\tlabel: string;\n\tdescription: string;\n};\ntype Row = TickerRow | ActionRow;\n\nconst PASTE_START = \"\\u001b[200~\";\nconst PASTE_END = \"\\u001b[201~\";\n// Keep these aligned with Input.handleInput so configured editing actions beat additive reorder.\nconst RESERVED_INPUT_BINDINGS = [\n\t\"tui.select.up\",\n\t\"tui.select.down\",\n\t\"tui.select.pageUp\",\n\t\"tui.select.pageDown\",\n\t\"tui.select.confirm\",\n\t\"tui.select.cancel\",\n\t\"tui.editor.undo\",\n\t\"tui.input.submit\",\n\t\"tui.editor.deleteCharBackward\",\n\t\"tui.editor.deleteCharForward\",\n\t\"tui.editor.deleteWordBackward\",\n\t\"tui.editor.deleteWordForward\",\n\t\"tui.editor.deleteToLineStart\",\n\t\"tui.editor.deleteToLineEnd\",\n\t\"tui.editor.yank\",\n\t\"tui.editor.yankPop\",\n\t\"tui.editor.cursorLeft\",\n\t\"tui.editor.cursorRight\",\n\t\"tui.editor.cursorLineStart\",\n\t\"tui.editor.cursorLineEnd\",\n\t\"tui.editor.cursorWordLeft\",\n\t\"tui.editor.cursorWordRight\",\n] as const;\n\n// Pi TUI Kit multi-select screens do not expose in-place row-reorder shortcuts.\n// This specialized TUI keeps the same search, toggle, action, binding, and cancellation behavior\n// while RPC mode continues to use the Kit's declarative adapter in menu.ts.\nexport async function showTickerTuiMenu(\n\tctx: ExtensionCommandContext,\n\toptions: TickerMenuOptions,\n): Promise<void> {\n\tconst { formatInteractionHints, HorizontalRule, runCustomInteraction, sanitizeTerminalText } =\n\t\tawait import(\"@narumitw/pi-tui-kit\");\n\n\twhile (!options.signal.aborted && options.isCurrent()) {\n\t\tconst result = await runCustomInteraction<TuiMenuResult>(ctx, {\n\t\t\tsignal: options.signal,\n\t\t\tisCurrent: options.isCurrent,\n\t\t\tonError: (errorCtx, error) => {\n\t\t\t\tif (!errorCtx.hasUI) return;\n\t\t\t\tconst message = error instanceof Error ? error.message : String(error);\n\t\t\t\terrorCtx.ui.notify(sanitizeTerminalText(message), \"error\");\n\t\t\t},\n\t\t\tcreate: ({ tui, theme, keybindings, complete }) => {\n\t\t\t\tlet symbols = [...options.getSymbols()];\n\t\t\t\tlet widgetEnabled = options.getWidgetEnabled();\n\t\t\t\tconst rawSearchInput = new Input();\n\t\t\t\tconst searchInput = new Input();\n\t\t\t\tlet selectedIndex = 0;\n\t\t\t\tlet rows: Row[] = [];\n\t\t\t\tlet busy = false;\n\t\t\t\tlet disposed = false;\n\t\t\t\tlet pasteActive = false;\n\t\t\t\tlet errorMessage: string | undefined;\n\t\t\t\tlet pending = Promise.resolve();\n\t\t\t\tconst shortcutUp = shortcutAvailable(keybindings, \"shift+up\");\n\t\t\t\tconst shortcutDown = shortcutAvailable(keybindings, \"shift+down\");\n\t\t\t\tconst activationHint = (label: string) =>\n\t\t\t\t\tformatInteractionHints(keybindings, [\n\t\t\t\t\t\t{ bindings: [\"tui.select.confirm\"], keys: [\"space\"], label },\n\t\t\t\t\t]);\n\t\t\t\tconst reorderKeys = [shortcutUp, shortcutDown].filter(\n\t\t\t\t\t(shortcut): shortcut is \"shift+up\" | \"shift+down\" => shortcut !== undefined,\n\t\t\t\t);\n\t\t\t\tconst tickerDescription = `${[\n\t\t\t\t\tactivationHint(\"removes this ticker\"),\n\t\t\t\t\t...(reorderKeys.length > 0 ? [`${reorderKeys.join(\"/\")} changes its order`] : []),\n\t\t\t\t].join(\"; \")}.`;\n\t\t\t\tconst topRule = new HorizontalRule({\n\t\t\t\t\tlabel: \"Manage tickers\",\n\t\t\t\t\tlabelAlignment: \"left\",\n\t\t\t\t\truleStyle: (text) => theme.fg(\"borderMuted\", text),\n\t\t\t\t\tlabelStyle: (text) => theme.fg(\"accent\", text),\n\t\t\t\t});\n\t\t\t\tconst bottomRule = new HorizontalRule({\n\t\t\t\t\truleStyle: (text) => theme.fg(\"borderMuted\", text),\n\t\t\t\t});\n\t\t\t\tconst hint = formatInteractionHints(keybindings, [\n\t\t\t\t\t{ bindings: [\"tui.select.up\", \"tui.select.down\"], label: \"select\" },\n\t\t\t\t\t...(shortcutUp ? [{ keys: [shortcutUp], label: \"move up\" }] : []),\n\t\t\t\t\t...(shortcutDown ? [{ keys: [shortcutDown], label: \"move down\" }] : []),\n\t\t\t\t\t{ bindings: [\"tui.select.confirm\"], keys: [\"space\"], label: \"toggle/select\" },\n\t\t\t\t\t{\n\t\t\t\t\t\tbindings: [\"tui.select.cancel\"],\n\t\t\t\t\t\texcludeKeys: [\"ctrl+c\"],\n\t\t\t\t\t\tlabel: \"close\",\n\t\t\t\t\t},\n\t\t\t\t\t{ keys: [\"ctrl+c\"], label: \"close\" },\n\t\t\t\t]);\n\n\t\t\t\tconst actionRows = (directSymbol?: string): ActionRow[] => [\n\t\t\t\t\t{\n\t\t\t\t\t\tkind: \"action\",\n\t\t\t\t\t\tid: \"add\",\n\t\t\t\t\t\tlabel: directSymbol\n\t\t\t\t\t\t\t? `Add ${sanitizeTerminalText(directSymbol)}`\n\t\t\t\t\t\t\t: \"Add custom ticker\u2026\",\n\t\t\t\t\t\tdescription: directSymbol\n\t\t\t\t\t\t\t? `${activationHint(`adds ${sanitizeTerminalText(directSymbol)} directly`)}.`\n\t\t\t\t\t\t\t: \"Add and select one Yahoo Finance symbol.\",\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tkind: \"action\",\n\t\t\t\t\t\tid: \"widget\",\n\t\t\t\t\t\tlabel: `Widget: ${widgetEnabled ? \"On\" : \"Off\"}`,\n\t\t\t\t\t\tdescription: \"Show or hide the editor widget and persist this setting.\",\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tkind: \"action\",\n\t\t\t\t\t\tid: \"refresh\",\n\t\t\t\t\t\tlabel: \"Refresh now\",\n\t\t\t\t\t\tdescription: widgetEnabled\n\t\t\t\t\t\t\t? \"Fetch the selected symbols immediately.\"\n\t\t\t\t\t\t\t: \"Enable the widget before refreshing.\",\n\t\t\t\t\t},\n\t\t\t\t];\n\t\t\t\tconst buildRows = (): Row[] => {\n\t\t\t\t\tconst tickerRows = symbols.map(\n\t\t\t\t\t\t(symbol): TickerRow => ({ kind: \"ticker\", id: symbol, symbol }),\n\t\t\t\t\t);\n\t\t\t\t\tconst query = searchInput.getValue().toLowerCase();\n\t\t\t\t\tconst filtered = fuzzyFilter(tickerRows, query, (row) =>\n\t\t\t\t\t\tsanitizeTerminalText(row.symbol.replaceAll(\"-\", \" \")).toLowerCase(),\n\t\t\t\t\t);\n\t\t\t\t\tconst directSymbol =\n\t\t\t\t\t\tfiltered.length === 0 ? tryDirectSymbol(rawSearchInput.getValue()) : undefined;\n\t\t\t\t\treturn [...filtered, ...actionRows(directSymbol)];\n\t\t\t\t};\n\t\t\t\tconst selectedRow = () => rows[selectedIndex];\n\t\t\t\tconst rebuild = (preferredId?: string, fallbackIndex = selectedIndex) => {\n\t\t\t\t\trows = buildRows();\n\t\t\t\t\tconst preferredIndex = preferredId ? rows.findIndex((row) => row.id === preferredId) : -1;\n\t\t\t\t\tselectedIndex =\n\t\t\t\t\t\tpreferredIndex >= 0\n\t\t\t\t\t\t\t? preferredIndex\n\t\t\t\t\t\t\t: Math.max(0, Math.min(fallbackIndex, rows.length - 1));\n\t\t\t\t\ttui.requestRender();\n\t\t\t\t};\n\t\t\t\trebuild();\n\n\t\t\t\tconst select = (index: number, wrap: boolean) => {\n\t\t\t\t\tif (rows.length === 0) return;\n\t\t\t\t\tselectedIndex = wrap\n\t\t\t\t\t\t? (index + rows.length) % rows.length\n\t\t\t\t\t\t: Math.max(0, Math.min(index, rows.length - 1));\n\t\t\t\t\ttui.requestRender();\n\t\t\t\t};\n\t\t\t\tconst persist = (\n\t\t\t\t\tnextSymbols: readonly string[],\n\t\t\t\t\tpreviousSymbols: readonly string[],\n\t\t\t\t\tpreferredId: string | undefined,\n\t\t\t\t\tpreviousIndex: number,\n\t\t\t\t\tclearSearchOnSuccess = false,\n\t\t\t\t) => {\n\t\t\t\t\tbusy = true;\n\t\t\t\t\terrorMessage = undefined;\n\t\t\t\t\tsymbols = [...nextSymbols];\n\t\t\t\t\trebuild(preferredId, previousIndex);\n\t\t\t\t\tpending = (async () => {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tawait options.applySymbols(symbols, options.signal);\n\t\t\t\t\t\t\tif (options.signal.aborted || !options.isCurrent()) return;\n\t\t\t\t\t\t\tsymbols = [...options.getSymbols()];\n\t\t\t\t\t\t\tif (clearSearchOnSuccess) {\n\t\t\t\t\t\t\t\trawSearchInput.setValue(\"\");\n\t\t\t\t\t\t\t\tsearchInput.setValue(\"\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch (error) {\n\t\t\t\t\t\t\tif (options.signal.aborted || !options.isCurrent()) return;\n\t\t\t\t\t\t\tsymbols = [...previousSymbols];\n\t\t\t\t\t\t\terrorMessage = sanitizeTerminalText(\n\t\t\t\t\t\t\t\terror instanceof Error ? error.message : String(error),\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\tctx.ui.notify(`Ticker settings were not saved: ${errorMessage}`, \"error\");\n\t\t\t\t\t\t} finally {\n\t\t\t\t\t\t\tbusy = false;\n\t\t\t\t\t\t\tif (!disposed && !options.signal.aborted && options.isCurrent()) {\n\t\t\t\t\t\t\t\trebuild(preferredId, previousIndex);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t})();\n\t\t\t\t};\n\t\t\t\tconst persistWidgetEnabled = (nextWidgetEnabled: boolean) => {\n\t\t\t\t\tconst previousWidgetEnabled = widgetEnabled;\n\t\t\t\t\twidgetEnabled = nextWidgetEnabled;\n\t\t\t\t\tbusy = true;\n\t\t\t\t\terrorMessage = undefined;\n\t\t\t\t\trebuild(\"widget\");\n\t\t\t\t\tpending = (async () => {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tawait options.applyWidgetEnabled(nextWidgetEnabled, options.signal);\n\t\t\t\t\t\t\tif (options.signal.aborted || !options.isCurrent()) return;\n\t\t\t\t\t\t\twidgetEnabled = options.getWidgetEnabled();\n\t\t\t\t\t\t} catch (error) {\n\t\t\t\t\t\t\tif (options.signal.aborted || !options.isCurrent()) return;\n\t\t\t\t\t\t\twidgetEnabled = previousWidgetEnabled;\n\t\t\t\t\t\t\terrorMessage = sanitizeTerminalText(\n\t\t\t\t\t\t\t\terror instanceof Error ? error.message : String(error),\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\tctx.ui.notify(`Ticker settings were not saved: ${errorMessage}`, \"error\");\n\t\t\t\t\t\t} finally {\n\t\t\t\t\t\t\tbusy = false;\n\t\t\t\t\t\t\tif (!disposed && !options.signal.aborted && options.isCurrent()) rebuild(\"widget\");\n\t\t\t\t\t\t}\n\t\t\t\t\t})();\n\t\t\t\t};\n\t\t\t\tconst toggle = () => {\n\t\t\t\t\tif (busy || disposed) return;\n\t\t\t\t\tconst row = selectedRow();\n\t\t\t\t\tif (row?.kind !== \"ticker\") return;\n\t\t\t\t\tconst previous = [...symbols];\n\t\t\t\t\tconst next = symbols.filter((symbol) => symbol !== row.symbol);\n\t\t\t\t\tpersist(next, previous, undefined, selectedIndex);\n\t\t\t\t};\n\t\t\t\tconst moveTicker = (direction: -1 | 1) => {\n\t\t\t\t\tif (\n\t\t\t\t\t\tbusy ||\n\t\t\t\t\t\tdisposed ||\n\t\t\t\t\t\trawSearchInput.getValue() ||\n\t\t\t\t\t\toptions.signal.aborted ||\n\t\t\t\t\t\t!options.isCurrent()\n\t\t\t\t\t) {\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tconst row = selectedRow();\n\t\t\t\t\tif (row?.kind !== \"ticker\") return;\n\t\t\t\t\tconst from = symbols.indexOf(row.symbol);\n\t\t\t\t\tconst to = from + direction;\n\t\t\t\t\tif (from < 0 || to < 0 || to >= symbols.length) return;\n\t\t\t\t\tconst previous = [...symbols];\n\t\t\t\t\tconst next = [...symbols];\n\t\t\t\t\tconst [symbol] = next.splice(from, 1);\n\t\t\t\t\tif (!symbol) return;\n\t\t\t\t\tnext.splice(to, 0, symbol);\n\t\t\t\t\tpersist(next, previous, symbol, selectedIndex);\n\t\t\t\t};\n\t\t\t\tconst activate = () => {\n\t\t\t\t\tif (busy || disposed) return;\n\t\t\t\t\tconst row = selectedRow();\n\t\t\t\t\tif (!row) return;\n\t\t\t\t\tif (row.kind === \"ticker\") {\n\t\t\t\t\t\ttoggle();\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tif (row.id === \"add\") {\n\t\t\t\t\t\tconst query = rawSearchInput.getValue();\n\t\t\t\t\t\tconst hasTickerMatch = rows.some((candidate) => candidate.kind === \"ticker\");\n\t\t\t\t\t\tif (query.trim() && !hasTickerMatch) {\n\t\t\t\t\t\t\tlet symbol: string;\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tsymbol = parseDirectSymbol(query);\n\t\t\t\t\t\t\t} catch (error) {\n\t\t\t\t\t\t\t\tconst message = error instanceof Error ? error.message : String(error);\n\t\t\t\t\t\t\t\terrorMessage = sanitizeTerminalText(message);\n\t\t\t\t\t\t\t\tctx.ui.notify(errorMessage, \"error\");\n\t\t\t\t\t\t\t\ttui.requestRender();\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (symbols.includes(symbol)) {\n\t\t\t\t\t\t\t\tctx.ui.notify(`${symbol} is already selected.`, \"info\");\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tpersist([...symbols, symbol], [...symbols], symbol, selectedIndex, true);\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcomplete(\"add\");\n\t\t\t\t\t} else if (row.id === \"widget\") persistWidgetEnabled(!widgetEnabled);\n\t\t\t\t\telse options.refresh();\n\t\t\t\t};\n\t\t\t\tconst handleSearch = (data: string) => {\n\t\t\t\t\tconst previousId = selectedRow()?.id;\n\t\t\t\t\terrorMessage = undefined;\n\t\t\t\t\trawSearchInput.handleInput(data);\n\t\t\t\t\tsearchInput.handleInput(data);\n\t\t\t\t\tsearchInput.setValue(sanitizeTerminalText(rawSearchInput.getValue()));\n\t\t\t\t\trebuild(previousId, 0);\n\t\t\t\t};\n\n\t\t\t\treturn {\n\t\t\t\t\trender(width: number) {\n\t\t\t\t\t\tconst safeWidth = Number.isFinite(width) ? Math.max(0, Math.floor(width)) : 0;\n\t\t\t\t\t\tif (safeWidth === 0) return [\"\"];\n\t\t\t\t\t\tconst viewportSize = availableRows(tui.terminal.rows, rows.length);\n\t\t\t\t\t\tconst viewportStart = Math.max(\n\t\t\t\t\t\t\t0,\n\t\t\t\t\t\t\tMath.min(selectedIndex - Math.floor(viewportSize / 2), rows.length - viewportSize),\n\t\t\t\t\t\t);\n\t\t\t\t\t\tconst visibleRows = rows.slice(viewportStart, viewportStart + viewportSize);\n\t\t\t\t\t\tconst content = visibleRows.map((row, offset) => {\n\t\t\t\t\t\t\tconst index = viewportStart + offset;\n\t\t\t\t\t\t\tconst focused = index === selectedIndex;\n\t\t\t\t\t\t\tconst label =\n\t\t\t\t\t\t\t\trow.kind === \"ticker\"\n\t\t\t\t\t\t\t\t\t? `${focused ? \"\u203A\" : \" \"} [x] ${sanitizeTerminalText(row.symbol)}`\n\t\t\t\t\t\t\t\t\t: `${focused ? \"\u203A\" : \" \"} ${row.label}`;\n\t\t\t\t\t\t\tconst bounded = truncateToWidth(label, safeWidth, safeWidth > 1 ? \"\u2026\" : \"\");\n\t\t\t\t\t\t\treturn focused ? theme.fg(\"accent\", bounded) : bounded;\n\t\t\t\t\t\t});\n\t\t\t\t\t\tif (viewportSize < rows.length) {\n\t\t\t\t\t\t\tcontent.push(\n\t\t\t\t\t\t\t\ttheme.fg(\n\t\t\t\t\t\t\t\t\t\"dim\",\n\t\t\t\t\t\t\t\t\ttruncateToWidth(` (${selectedIndex + 1}/${rows.length})`, safeWidth, \"\"),\n\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tconst row = selectedRow();\n\t\t\t\t\t\tconst description =\n\t\t\t\t\t\t\trow?.kind === \"ticker\"\n\t\t\t\t\t\t\t\t? rawSearchInput.getValue()\n\t\t\t\t\t\t\t\t\t? \"Clear search before reordering.\"\n\t\t\t\t\t\t\t\t\t: tickerDescription\n\t\t\t\t\t\t\t\t: row?.description;\n\t\t\t\t\t\tconst status = errorMessage\n\t\t\t\t\t\t\t? theme.fg(\"error\", errorMessage)\n\t\t\t\t\t\t\t: busy\n\t\t\t\t\t\t\t\t? theme.fg(\"muted\", \"Saving changes\u2026\")\n\t\t\t\t\t\t\t\t: undefined;\n\t\t\t\t\t\treturn [\n\t\t\t\t\t\t\t...topRule.render(safeWidth),\n\t\t\t\t\t\t\ttheme.fg(\n\t\t\t\t\t\t\t\t\"muted\",\n\t\t\t\t\t\t\t\ttruncateToWidth(\n\t\t\t\t\t\t\t\t\t`${symbols.length} selected \u00B7 changes save immediately`,\n\t\t\t\t\t\t\t\t\tsafeWidth,\n\t\t\t\t\t\t\t\t\t\"\",\n\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t...searchInput.render(safeWidth).map((line) => truncateToWidth(line, safeWidth, \"\")),\n\t\t\t\t\t\t\t...content,\n\t\t\t\t\t\t\t...(description\n\t\t\t\t\t\t\t\t? [theme.fg(\"dim\", truncateToWidth(` ${description}`, safeWidth, \"\"))]\n\t\t\t\t\t\t\t\t: []),\n\t\t\t\t\t\t\t...(status ? [truncateToWidth(status, safeWidth, \"\")] : []),\n\t\t\t\t\t\t\t...bottomRule.render(safeWidth),\n\t\t\t\t\t\t\ttheme.fg(\"dim\", truncateToWidth(hint, safeWidth, \"\")),\n\t\t\t\t\t\t];\n\t\t\t\t\t},\n\t\t\t\t\tinvalidate() {\n\t\t\t\t\t\tsearchInput.invalidate();\n\t\t\t\t\t},\n\t\t\t\t\thandleInput(data: string) {\n\t\t\t\t\t\tif (pasteActive || data.includes(PASTE_START)) {\n\t\t\t\t\t\t\tpasteActive = !data.includes(PASTE_END);\n\t\t\t\t\t\t\thandleSearch(data);\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (matchesKey(data, Key.ctrl(\"c\"))) {\n\t\t\t\t\t\t\tcomplete(\"close\");\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (keybindings.matches(data, \"tui.select.cancel\")) {\n\t\t\t\t\t\t\tcomplete(\"close\");\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (keybindings.matches(data, \"tui.select.up\")) {\n\t\t\t\t\t\t\tselect(selectedIndex - 1, true);\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (keybindings.matches(data, \"tui.select.down\")) {\n\t\t\t\t\t\t\tselect(selectedIndex + 1, true);\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (keybindings.matches(data, \"tui.select.pageUp\")) {\n\t\t\t\t\t\t\tselect(selectedIndex - availableRows(tui.terminal.rows, rows.length), false);\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (keybindings.matches(data, \"tui.select.pageDown\")) {\n\t\t\t\t\t\t\tselect(selectedIndex + availableRows(tui.terminal.rows, rows.length), false);\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (keybindings.matches(data, \"tui.select.confirm\") || data === \" \") {\n\t\t\t\t\t\t\tactivate();\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (shortcutUp && matchesKey(data, shortcutUp)) {\n\t\t\t\t\t\t\tmoveTicker(-1);\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (shortcutDown && matchesKey(data, shortcutDown)) {\n\t\t\t\t\t\t\tmoveTicker(1);\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t\thandleSearch(data);\n\t\t\t\t\t},\n\t\t\t\t\tasync waitForPending() {\n\t\t\t\t\t\tawait pending;\n\t\t\t\t\t},\n\t\t\t\t\tdispose() {\n\t\t\t\t\t\tdisposed = true;\n\t\t\t\t\t},\n\t\t\t\t\tget focused() {\n\t\t\t\t\t\treturn searchInput.focused;\n\t\t\t\t\t},\n\t\t\t\t\tset focused(value: boolean) {\n\t\t\t\t\t\tsearchInput.focused = value;\n\t\t\t\t\t},\n\t\t\t\t};\n\t\t\t},\n\t\t});\n\n\t\tif (result.kind !== \"completed\" || result.value === \"close\") return;\n\t\tconst entered = await ctx.ui.input(\n\t\t\t\"Add custom ticker\",\n\t\t\t\"Yahoo symbol, for example MSFT or SOL-USD\",\n\t\t\t{ signal: options.signal },\n\t\t);\n\t\tif (options.signal.aborted || !options.isCurrent()) return;\n\t\tif (!entered?.trim()) continue;\n\t\ttry {\n\t\t\tconst parsed = parseSymbols([entered]);\n\t\t\tif (parsed.length !== 1) throw new Error(\"Enter exactly one Yahoo Finance symbol.\");\n\t\t\tconst symbol = parsed[0];\n\t\t\tif (!symbol) continue;\n\t\t\tconst current = options.getSymbols();\n\t\t\tif (current.includes(symbol)) {\n\t\t\t\tctx.ui.notify(`${symbol} is already selected.`, \"info\");\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tawait options.applySymbols([...current, symbol], options.signal);\n\t\t\tif (options.signal.aborted || !options.isCurrent()) return;\n\t\t} catch (error) {\n\t\t\tif (options.signal.aborted || !options.isCurrent()) return;\n\t\t\tconst message = error instanceof Error ? error.message : String(error);\n\t\t\tctx.ui.notify(sanitizeTerminalText(message), \"error\");\n\t\t}\n\t}\n}\n\nfunction parseDirectSymbol(value: string): string {\n\tconst parsed = parseSymbols([value]);\n\tif (parsed.length !== 1) throw new Error(\"Enter exactly one Yahoo Finance symbol.\");\n\tconst symbol = parsed[0];\n\tif (!symbol) throw new Error(\"Enter one Yahoo Finance symbol.\");\n\treturn symbol;\n}\n\nfunction tryDirectSymbol(value: string): string | undefined {\n\tif (!value.trim()) return undefined;\n\ttry {\n\t\treturn parseDirectSymbol(value);\n\t} catch {\n\t\treturn undefined;\n\t}\n}\n\nfunction availableRows(terminalRows: number, rowCount: number): number {\n\tconst boundedRows = Number.isFinite(terminalRows)\n\t\t? Math.max(1, Math.floor(terminalRows) - 9)\n\t\t: 10;\n\treturn Math.max(1, Math.min(rowCount, boundedRows, 12));\n}\n\nfunction shortcutAvailable(\n\tkeybindings: {\n\t\tgetKeys(binding: string): readonly string[];\n\t},\n\tshortcut: \"shift+up\" | \"shift+down\",\n): typeof shortcut | undefined {\n\tconst unavailable = new Set(\n\t\t[\n\t\t\t\"ctrl+c\",\n\t\t\t\"home\",\n\t\t\t\"end\",\n\t\t\t\"space\",\n\t\t\t...RESERVED_INPUT_BINDINGS.flatMap((binding) => keybindings.getKeys(binding)),\n\t\t].map(canonicalKey),\n\t);\n\treturn unavailable.has(canonicalKey(shortcut)) ? undefined : shortcut;\n}\n\nfunction canonicalKey(value: string): string {\n\tconst parts = value.toLowerCase().split(\"+\");\n\tconst base = parts.at(-1) ?? \"\";\n\tconst canonicalBase = base === \"escape\" ? \"esc\" : base === \"return\" ? \"enter\" : base;\n\tconst modifiers = [\"ctrl\", \"shift\", \"alt\", \"super\"].filter((modifier) =>\n\t\tparts.includes(modifier),\n\t);\n\treturn [...modifiers, canonicalBase].join(\"+\");\n}\n"],
5
+ "mappings": ";;;;;;;AACA,SAAS,aAAa,OAAO,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