firebird-wasm 0.2.0 → 0.4.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.
- package/CHANGELOG.md +199 -0
- package/README.md +4 -1
- package/dist/.tsbuildinfo.build +1 -1
- package/dist/browser/engine-transport.d.ts +63 -5
- package/dist/browser/engine-transport.d.ts.map +1 -1
- package/dist/browser/engine-transport.js +290 -8
- package/dist/browser/engine-transport.js.map +1 -1
- package/dist/browser/firebird-browser.d.ts +252 -7
- package/dist/browser/firebird-browser.d.ts.map +1 -1
- package/dist/browser/firebird-browser.js +373 -20
- package/dist/browser/firebird-browser.js.map +1 -1
- package/dist/browser/index.d.ts +8 -2
- package/dist/browser/index.d.ts.map +1 -1
- package/dist/browser/index.js +19 -3
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/opfs-fs.d.ts +72 -0
- package/dist/browser/opfs-fs.d.ts.map +1 -0
- package/dist/browser/opfs-fs.js +249 -0
- package/dist/browser/opfs-fs.js.map +1 -0
- package/dist/browser/params.d.ts +30 -3
- package/dist/browser/params.d.ts.map +1 -1
- package/dist/browser/params.js +97 -22
- package/dist/browser/params.js.map +1 -1
- package/dist/browser/shared-transport.d.ts +9 -2
- package/dist/browser/shared-transport.d.ts.map +1 -1
- package/dist/browser/shared-transport.js +33 -2
- package/dist/browser/shared-transport.js.map +1 -1
- package/dist/browser/statement-types.d.ts +18 -0
- package/dist/browser/statement-types.d.ts.map +1 -0
- package/dist/browser/statement-types.js +39 -0
- package/dist/browser/statement-types.js.map +1 -0
- package/dist/browser/value-types.d.ts +173 -0
- package/dist/browser/value-types.d.ts.map +1 -0
- package/dist/browser/value-types.js +222 -0
- package/dist/browser/value-types.js.map +1 -0
- package/dist/browser/worker-entry.d.ts.map +1 -1
- package/dist/browser/worker-entry.js +38 -1
- package/dist/browser/worker-entry.js.map +1 -1
- package/dist/browser/worker-protocol.d.ts +1 -1
- package/dist/browser/worker-protocol.d.ts.map +1 -1
- package/dist/browser/worker-transport.d.ts +9 -2
- package/dist/browser/worker-transport.d.ts.map +1 -1
- package/dist/browser/worker-transport.js +29 -2
- package/dist/browser/worker-transport.js.map +1 -1
- package/dist/firebird.d.ts +69 -5
- package/dist/firebird.d.ts.map +1 -1
- package/dist/firebird.js +187 -49
- package/dist/firebird.js.map +1 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9 -1
- package/dist/index.js.map +1 -1
- package/dist/sql-tag.d.ts +184 -0
- package/dist/sql-tag.d.ts.map +1 -0
- package/dist/sql-tag.js +287 -0
- package/dist/sql-tag.js.map +1 -0
- package/dist/statement-types.d.ts +23 -0
- package/dist/statement-types.d.ts.map +1 -0
- package/dist/statement-types.js +44 -0
- package/dist/statement-types.js.map +1 -0
- package/dist/types.d.ts +62 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/wasm/firebird-embedded.js +1 -1
- package/dist/wasm/firebird-embedded.wasm +0 -0
- package/dist/wasm-loader.d.ts +44 -2
- package/dist/wasm-loader.d.ts.map +1 -1
- package/dist/wasm-loader.js.map +1 -1
- package/package.json +3 -2
|
@@ -23,7 +23,79 @@
|
|
|
23
23
|
*/
|
|
24
24
|
import type { IndexedDBVFSOptions } from './indexeddb-vfs';
|
|
25
25
|
import type { EngineHandle, EngineTransport } from './engine-transport';
|
|
26
|
-
import type {
|
|
26
|
+
import type { TypeOptions } from './value-types';
|
|
27
|
+
import type { SqlFragment } from '../sql-tag';
|
|
28
|
+
import type { ArrayRow, QueryResult, QueryDescription, QueryOptions, Row, QueryParams, RowMode, TransactionOptions } from '../types';
|
|
29
|
+
/** `QueryOptions` with the array mode pinned, for the overloads below. */
|
|
30
|
+
type ArrayModeOptions = QueryOptions & {
|
|
31
|
+
rowMode: 'array';
|
|
32
|
+
};
|
|
33
|
+
/** A running subscription. Returned by {@link FirebirdBrowser.listen}. */
|
|
34
|
+
export interface EventSubscription {
|
|
35
|
+
/** Stop listening and release the subscription. Safe to call twice. */
|
|
36
|
+
unsubscribe(): Promise<void>;
|
|
37
|
+
}
|
|
38
|
+
/** Options for {@link FirebirdBrowser.listen}. */
|
|
39
|
+
export interface ListenOptions {
|
|
40
|
+
/**
|
|
41
|
+
* How often to ask the engine whether anything fired, in milliseconds.
|
|
42
|
+
*
|
|
43
|
+
* This is a poll because the engine's callback runs on an engine thread and
|
|
44
|
+
* re-arming has to happen off it — see `fb_events_poll`. The cost of a tick
|
|
45
|
+
* that finds nothing is one round trip to the Worker.
|
|
46
|
+
*
|
|
47
|
+
* @default 250
|
|
48
|
+
*/
|
|
49
|
+
pollIntervalMs?: number;
|
|
50
|
+
/**
|
|
51
|
+
* Called when a poll or a handler throws.
|
|
52
|
+
*
|
|
53
|
+
* A subscription outlives the call that created it, so an error has nowhere
|
|
54
|
+
* else to go. Defaults to `console.error`; polling continues, because one
|
|
55
|
+
* failure does not mean the next will fail.
|
|
56
|
+
*/
|
|
57
|
+
onError?: (error: Error) => void;
|
|
58
|
+
}
|
|
59
|
+
/** Options for {@link FirebirdBrowser.live}. */
|
|
60
|
+
export interface LiveQueryOptions {
|
|
61
|
+
/**
|
|
62
|
+
* Event names to watch, as posted by `POST_EVENT`.
|
|
63
|
+
*
|
|
64
|
+
* Required, and deliberately not inferred from the statement. Firebird
|
|
65
|
+
* delivers events a trigger chose to post; nothing connects them to the
|
|
66
|
+
* tables a query reads, so guessing which events matter would be guessing.
|
|
67
|
+
*/
|
|
68
|
+
events: string[];
|
|
69
|
+
/** Parameters for the statement, as `query()` takes them. */
|
|
70
|
+
params?: QueryParams;
|
|
71
|
+
/**
|
|
72
|
+
* How often to ask the engine whether anything fired, in milliseconds.
|
|
73
|
+
*
|
|
74
|
+
* This is a poll because the engine's callback runs on an engine thread and
|
|
75
|
+
* re-arming has to happen off it — see `fb_events_poll`. The cost of a tick
|
|
76
|
+
* that finds nothing is one round trip to the Worker.
|
|
77
|
+
*
|
|
78
|
+
* @default 250
|
|
79
|
+
*/
|
|
80
|
+
pollIntervalMs?: number;
|
|
81
|
+
/**
|
|
82
|
+
* Called when a refresh fails.
|
|
83
|
+
*
|
|
84
|
+
* A live query outlives the call that created it, so an error has nowhere
|
|
85
|
+
* else to go. Defaults to `console.error`; polling continues, because one
|
|
86
|
+
* failed refresh — a lock conflict, say — does not mean the next will fail.
|
|
87
|
+
*/
|
|
88
|
+
onError?: (error: Error) => void;
|
|
89
|
+
}
|
|
90
|
+
/** A running live query. Returned by {@link FirebirdBrowser.live}. */
|
|
91
|
+
export interface LiveQuery<T> {
|
|
92
|
+
/** The most recent rows. Replaced, not mutated, on each refresh. */
|
|
93
|
+
readonly rows: T[];
|
|
94
|
+
/** Re-run the statement now, without waiting for an event. */
|
|
95
|
+
refresh(): Promise<void>;
|
|
96
|
+
/** Stop watching and release the subscription. Safe to call twice. */
|
|
97
|
+
unsubscribe(): Promise<void>;
|
|
98
|
+
}
|
|
27
99
|
/** What a statement did. Returned by `exec()`. */
|
|
28
100
|
export interface ExecResult {
|
|
29
101
|
/** Rows affected — for INSERT, UPDATE and DELETE. 0 for DDL. */
|
|
@@ -118,6 +190,33 @@ export interface FirebirdBrowserOptions {
|
|
|
118
190
|
* @default 5000
|
|
119
191
|
*/
|
|
120
192
|
lockTimeoutMs?: number;
|
|
193
|
+
/**
|
|
194
|
+
* Convert result values to richer JavaScript types.
|
|
195
|
+
*
|
|
196
|
+
* Off by default: every conversion trades something away, and values as
|
|
197
|
+
* returned today are correct, just awkward. See {@link TypeOptions} for what
|
|
198
|
+
* each one costs — `dates` in particular loses precision and has to choose a
|
|
199
|
+
* time zone Firebird did not store.
|
|
200
|
+
*
|
|
201
|
+
* @example
|
|
202
|
+
* ```ts
|
|
203
|
+
* new FirebirdBrowser('mydb', { worker, types: { bigint: true, binary: true } })
|
|
204
|
+
* ```
|
|
205
|
+
*/
|
|
206
|
+
types?: TypeOptions;
|
|
207
|
+
/**
|
|
208
|
+
* Initial contents for the database, as the bytes {@link
|
|
209
|
+
* FirebirdBrowser.dumpDataDir} produced.
|
|
210
|
+
*
|
|
211
|
+
* Used **only when there is no database yet** — a stored one always wins.
|
|
212
|
+
* That is deliberate and is the difference between seeding and destroying:
|
|
213
|
+
* an application passes this on every load, so a seed that replaced what was
|
|
214
|
+
* there would reset the user's data to the snapshot on every page reload.
|
|
215
|
+
*
|
|
216
|
+
* To load a snapshot regardless of what is stored, open it as an ephemeral
|
|
217
|
+
* database: `new FirebirdBrowser('memory://', { loadDataDir: bytes })`.
|
|
218
|
+
*/
|
|
219
|
+
loadDataDir?: Uint8Array;
|
|
121
220
|
}
|
|
122
221
|
/**
|
|
123
222
|
* Browser-side Firebird database backed by WASM + IndexedDB.
|
|
@@ -127,6 +226,21 @@ export interface FirebirdBrowserOptions {
|
|
|
127
226
|
*/
|
|
128
227
|
export declare class FirebirdBrowser {
|
|
129
228
|
private readonly dbName;
|
|
229
|
+
/** True for a `memory://` database: never stored, discarded on close. */
|
|
230
|
+
private readonly ephemeral;
|
|
231
|
+
/** True for an `opfs://` database: the engine writes its pages straight to a file. */
|
|
232
|
+
private readonly opfs;
|
|
233
|
+
/** Path the engine opens. Set by the OPFS mount, which chooses it. */
|
|
234
|
+
private opfsPath;
|
|
235
|
+
/**
|
|
236
|
+
* Name of the file inside the engine's own filesystem.
|
|
237
|
+
*
|
|
238
|
+
* The same as `dbName` for a stored database. For an ephemeral one it is
|
|
239
|
+
* made unique per instance, so two `memory://` databases in one page cannot
|
|
240
|
+
* land on the same path — the WASM module, and therefore its filesystem, is
|
|
241
|
+
* shared by every instance in a tab.
|
|
242
|
+
*/
|
|
243
|
+
private readonly fileName;
|
|
130
244
|
private readonly options;
|
|
131
245
|
private readonly vfs;
|
|
132
246
|
private readonly engine;
|
|
@@ -146,6 +260,8 @@ export declare class FirebirdBrowser {
|
|
|
146
260
|
private readonly lockTimeoutMs;
|
|
147
261
|
/** Held for the connection's lifetime; released by close(). */
|
|
148
262
|
private lock;
|
|
263
|
+
/** Live queries to tear down with the connection. */
|
|
264
|
+
private readonly liveQueries;
|
|
149
265
|
/** Set only in shared mode; owns the election and the channel. */
|
|
150
266
|
private shared;
|
|
151
267
|
/**
|
|
@@ -168,6 +284,14 @@ export declare class FirebirdBrowser {
|
|
|
168
284
|
get isLeader(): boolean;
|
|
169
285
|
/** Path of the database inside Emscripten's filesystem. */
|
|
170
286
|
private get dbPath();
|
|
287
|
+
/**
|
|
288
|
+
* Run any configured serializers over outgoing parameters.
|
|
289
|
+
*
|
|
290
|
+
* Here rather than in the encoder because the encoder may be on the far side
|
|
291
|
+
* of a Worker, where the serializer functions cannot follow — see
|
|
292
|
+
* {@link applySerializers}.
|
|
293
|
+
*/
|
|
294
|
+
private serialize;
|
|
171
295
|
/**
|
|
172
296
|
* Execute one or more statements that do not return rows.
|
|
173
297
|
*
|
|
@@ -184,17 +308,106 @@ export declare class FirebirdBrowser {
|
|
|
184
308
|
*
|
|
185
309
|
* @returns one result per statement, in order.
|
|
186
310
|
*/
|
|
187
|
-
exec(sql: string, params?: QueryParams): Promise<ExecResult[]>;
|
|
311
|
+
exec(sql: string | SqlFragment, params?: QueryParams): Promise<ExecResult[]>;
|
|
312
|
+
/**
|
|
313
|
+
* Execute one statement once per row of parameters: a batch.
|
|
314
|
+
*
|
|
315
|
+
* The statement is prepared once and executed for each row, in one
|
|
316
|
+
* transaction that commits when every row went in and rolls back when any
|
|
317
|
+
* failed — a batch is all or nothing. Loading 100,000 rows this way costs
|
|
318
|
+
* the inserts, not 100,000 prepares and transactions; a failure names the
|
|
319
|
+
* row. One statement only: a script cannot say which rows belong to which.
|
|
320
|
+
*
|
|
321
|
+
* ```ts
|
|
322
|
+
* await db.execBatch('INSERT INTO t (id, name) VALUES (?, ?)', [[1, 'a'], [2, 'b']]);
|
|
323
|
+
* ```
|
|
324
|
+
*
|
|
325
|
+
* @returns the rows affected over the whole batch.
|
|
326
|
+
*/
|
|
327
|
+
execBatch(sql: string, rows: QueryParams[]): Promise<ExecResult>;
|
|
188
328
|
/**
|
|
189
329
|
* Execute a SQL query and return the result rows.
|
|
190
330
|
*
|
|
191
|
-
* Parameters are bound with `?` placeholders, as in the Node.js backend
|
|
331
|
+
* Parameters are bound with `?` placeholders, as in the Node.js backend, or
|
|
332
|
+
* interpolated into a `` sql`…` `` fragment:
|
|
192
333
|
*
|
|
193
334
|
* ```ts
|
|
194
335
|
* await db.query('SELECT * FROM items WHERE id = ?', [1]);
|
|
336
|
+
* await db.query(sql`SELECT * FROM items WHERE id = ${1}`);
|
|
337
|
+
* ```
|
|
338
|
+
*/
|
|
339
|
+
query(sql: SqlFragment, options: ArrayModeOptions): Promise<QueryResult<ArrayRow>>;
|
|
340
|
+
query(sql: string | SqlFragment, params: QueryParams | undefined, options: ArrayModeOptions): Promise<QueryResult<ArrayRow>>;
|
|
341
|
+
query<T extends Row = Row>(sql: SqlFragment, options?: QueryOptions): Promise<QueryResult<T>>;
|
|
342
|
+
query<T extends Row = Row>(sql: string, params?: QueryParams, options?: QueryOptions): Promise<QueryResult<T>>;
|
|
343
|
+
query<T extends Row = Row>(sql: string | SqlFragment, params?: QueryParams, options?: QueryOptions): Promise<QueryResult<T>>;
|
|
344
|
+
/**
|
|
345
|
+
* Re-run a query whenever named events fire.
|
|
346
|
+
*
|
|
347
|
+
* ```ts
|
|
348
|
+
* // A trigger does the posting:
|
|
349
|
+
* // CREATE TRIGGER items_ai FOR items AFTER INSERT
|
|
350
|
+
* // AS BEGIN POST_EVENT 'items_changed'; END
|
|
351
|
+
*
|
|
352
|
+
* const live = await db.live(
|
|
353
|
+
* 'SELECT id, name FROM items ORDER BY id',
|
|
354
|
+
* { events: ['items_changed'] },
|
|
355
|
+
* (rows) => render(rows),
|
|
356
|
+
* );
|
|
357
|
+
* // …later
|
|
358
|
+
* await live.unsubscribe();
|
|
359
|
+
* ```
|
|
360
|
+
*
|
|
361
|
+
* `onChange` is called once immediately with the current rows, so it is the
|
|
362
|
+
* only place results need handling — there is no separate "initial value" to
|
|
363
|
+
* deal with differently.
|
|
364
|
+
*
|
|
365
|
+
* Firebird delivers events **after the posting transaction commits**, so a
|
|
366
|
+
* refresh only ever sees data that survived. That is worth more than
|
|
367
|
+
* immediacy: a live query that showed uncommitted rows would show rows that
|
|
368
|
+
* can vanish.
|
|
369
|
+
*
|
|
370
|
+
* The event names are the caller's to supply. Nothing in Firebird connects a
|
|
371
|
+
* posted event to the tables a statement reads, so inferring them would be
|
|
372
|
+
* guesswork dressed as convenience.
|
|
373
|
+
*/
|
|
374
|
+
listen(names: string | string[], onEvent: (counts: Record<string, number>) => void, options?: ListenOptions): Promise<EventSubscription>;
|
|
375
|
+
/**
|
|
376
|
+
* Post an event, without writing a trigger to do it.
|
|
377
|
+
*
|
|
378
|
+
* ```ts
|
|
379
|
+
* await db.notify('items_changed');
|
|
195
380
|
* ```
|
|
381
|
+
*
|
|
382
|
+
* The event is delivered **after the transaction posting it commits**, which
|
|
383
|
+
* here is the statement's own auto-commit — so listeners hear about it only
|
|
384
|
+
* once it has actually happened.
|
|
385
|
+
*
|
|
386
|
+
* A trigger remains the better place for anything tied to data changing:
|
|
387
|
+
* `POST_EVENT` in an `AFTER INSERT` fires however the row arrived, including
|
|
388
|
+
* from another connection, while this fires only where it is called.
|
|
389
|
+
*/
|
|
390
|
+
notify(name: string): Promise<void>;
|
|
391
|
+
live<T extends Row = Row>(sql: string | SqlFragment, options: LiveQueryOptions, onChange: (rows: T[], result: QueryResult<T>) => void): Promise<LiveQuery<T>>;
|
|
392
|
+
/**
|
|
393
|
+
* Describe a statement's shape without running it.
|
|
394
|
+
*
|
|
395
|
+
* ```ts
|
|
396
|
+
* const shape = await db.describeQuery('SELECT id, name FROM items WHERE id = ?');
|
|
397
|
+
* // shape.params → [{ type: 496, typeName: 'INTEGER', … }]
|
|
398
|
+
* // shape.fields → [{ name: 'ID', … }, { name: 'NAME', … }]
|
|
399
|
+
* // shape.statementType → 'SELECT'
|
|
400
|
+
* ```
|
|
401
|
+
*
|
|
402
|
+
* The statement is prepared and dropped, so nothing happens: describing an
|
|
403
|
+
* `INSERT` inserts nothing. Preparing is not free — the engine parses and
|
|
404
|
+
* plans — but it is the only way to learn a shape, and the alternative,
|
|
405
|
+
* running the statement to see what comes back, is not one.
|
|
406
|
+
*
|
|
407
|
+
* A `` sql`…` `` fragment is accepted and its values ignored; only the text
|
|
408
|
+
* decides the shape, and a fragment is often what a caller has to hand.
|
|
196
409
|
*/
|
|
197
|
-
|
|
410
|
+
describeQuery(sql: string | SqlFragment): Promise<QueryDescription>;
|
|
198
411
|
/**
|
|
199
412
|
* Run a function inside an explicit transaction.
|
|
200
413
|
*/
|
|
@@ -203,6 +416,25 @@ export declare class FirebirdBrowser {
|
|
|
203
416
|
* Persist the in-memory database pages to IndexedDB.
|
|
204
417
|
* Call this periodically or before the page unloads to avoid data loss.
|
|
205
418
|
*/
|
|
419
|
+
/**
|
|
420
|
+
* The database as bytes, ready to be stored, sent, or handed to
|
|
421
|
+
* {@link FirebirdBrowserOptions.loadDataDir}.
|
|
422
|
+
*
|
|
423
|
+
* ```ts
|
|
424
|
+
* const bytes = await db.dumpDataDir();
|
|
425
|
+
* const url = URL.createObjectURL(new Blob([bytes]));
|
|
426
|
+
* ```
|
|
427
|
+
*
|
|
428
|
+
* Read from the **live** database rather than from IndexedDB, which matters
|
|
429
|
+
* twice over: writes that have not been persisted yet are included, and an
|
|
430
|
+
* ephemeral `memory://` database has no stored copy to read at all. It is
|
|
431
|
+
* the same image `persist()` writes, taken the same way.
|
|
432
|
+
*
|
|
433
|
+
* A `Uint8Array` rather than a `Blob` — a `Blob` is one constructor away and
|
|
434
|
+
* exists only in a browser, while this class also runs in Node against a
|
|
435
|
+
* direct transport.
|
|
436
|
+
*/
|
|
437
|
+
dumpDataDir(): Promise<Uint8Array>;
|
|
206
438
|
persist(): Promise<void>;
|
|
207
439
|
/**
|
|
208
440
|
* Close the database and release all resources.
|
|
@@ -276,8 +508,9 @@ export declare class FirebirdBrowserTransaction {
|
|
|
276
508
|
private readonly engine;
|
|
277
509
|
private readonly dbHandle;
|
|
278
510
|
private readonly txHandle;
|
|
511
|
+
private readonly types?;
|
|
279
512
|
private finished;
|
|
280
|
-
constructor(engine: EngineTransport, dbHandle: EngineHandle, txHandle: EngineHandle);
|
|
513
|
+
constructor(engine: EngineTransport, dbHandle: EngineHandle, txHandle: EngineHandle, types?: TypeOptions | undefined);
|
|
281
514
|
/** Whether this transaction has already been rolled back. */
|
|
282
515
|
get isFinished(): boolean;
|
|
283
516
|
/**
|
|
@@ -294,8 +527,20 @@ export declare class FirebirdBrowserTransaction {
|
|
|
294
527
|
*
|
|
295
528
|
* @returns the number of rows affected.
|
|
296
529
|
*/
|
|
297
|
-
exec(sql: string, params?: QueryParams): Promise<ExecResult>;
|
|
530
|
+
exec(sql: string | SqlFragment, params?: QueryParams): Promise<ExecResult>;
|
|
531
|
+
/**
|
|
532
|
+
* Execute one statement once per row of parameters inside this
|
|
533
|
+
* transaction: prepared once, executed per row. The rows before a failure
|
|
534
|
+
* stay, as statements run one by one would; the transaction decides.
|
|
535
|
+
*
|
|
536
|
+
* @returns the rows affected over the whole batch.
|
|
537
|
+
*/
|
|
538
|
+
execBatch(sql: string, rows: QueryParams[]): Promise<ExecResult>;
|
|
298
539
|
/** Execute a SELECT inside this transaction and return rows. */
|
|
299
|
-
query
|
|
540
|
+
query(sql: string | SqlFragment, params: QueryParams | undefined, options: ArrayModeOptions): Promise<QueryResult<ArrayRow>>;
|
|
541
|
+
query<T extends Row = Row>(sql: string | SqlFragment, params?: QueryParams, options?: {
|
|
542
|
+
rowMode?: RowMode;
|
|
543
|
+
}): Promise<QueryResult<T>>;
|
|
300
544
|
}
|
|
545
|
+
export {};
|
|
301
546
|
//# sourceMappingURL=firebird-browser.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"firebird-browser.d.ts","sourceRoot":"","sources":["../../src/browser/firebird-browser.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAGH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MA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