@intrig/next 0.0.7 → 0.0.9
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/index.esm.d.ts +1 -0
- package/index.esm.js +4224 -0
- package/package.json +2 -6
- package/src/extra.d.ts +53 -0
- package/src/extra.d.ts.map +1 -0
- package/src/index.d.ts +5 -0
- package/src/index.d.ts.map +1 -0
- package/src/intrig-context.d.ts +46 -0
- package/src/intrig-context.d.ts.map +1 -0
- package/src/intrig-layout.d.ts +7 -0
- package/src/intrig-layout.d.ts.map +1 -0
- package/src/intrig-middleware.d.ts +6 -0
- package/src/intrig-middleware.d.ts.map +1 -0
- package/src/intrig-provider.d.ts +99 -0
- package/src/intrig-provider.d.ts.map +1 -0
- package/src/logger.d.ts +8 -0
- package/src/logger.d.ts.map +1 -0
- package/src/media-type-utils.d.ts +5 -0
- package/src/media-type-utils.d.ts.map +1 -0
- package/src/network-state.d.ts +382 -0
- package/src/network-state.d.ts.map +1 -0
|
@@ -0,0 +1,382 @@
|
|
|
1
|
+
import { ZodError } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* State of an asynchronous call. Network state follows the state diagram given below.
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
* <pre>
|
|
7
|
+
* ┌──────┐
|
|
8
|
+
* ┌─────────────► Init ◄────────────┐
|
|
9
|
+
* │ └▲────┬┘ │
|
|
10
|
+
* │ │ │ │
|
|
11
|
+
* │ Reset Execute │
|
|
12
|
+
* Reset │ │ Reset
|
|
13
|
+
* │ ┌──┴────┴──┐ │
|
|
14
|
+
* │ ┌────► Pending ◄────┐ │
|
|
15
|
+
* │ │ └──┬────┬──┘ │ │
|
|
16
|
+
* │ Execute │ │ Execute │
|
|
17
|
+
* │ │ │ │ │ │
|
|
18
|
+
* │ │ OnSuccess OnError │ │
|
|
19
|
+
* │ ┌────┴──┐ │ │ ┌──┴───┐ │
|
|
20
|
+
* └─┤Success◄────┘ └────►Error ├─┘
|
|
21
|
+
* └───────┘ └──────┘
|
|
22
|
+
*
|
|
23
|
+
* </pre>
|
|
24
|
+
*/
|
|
25
|
+
export interface NetworkState<T = unknown, E = unknown> {
|
|
26
|
+
state: 'init' | 'pending' | 'success' | 'error';
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Network call is not yet started
|
|
30
|
+
*/
|
|
31
|
+
export interface InitState<T, E = unknown> extends NetworkState<T, E> {
|
|
32
|
+
state: 'init';
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Checks whether the state is init state
|
|
36
|
+
* @param state
|
|
37
|
+
*/
|
|
38
|
+
export declare function isInit<T, E = unknown>(state: NetworkState<T, E>): state is InitState<T, E>;
|
|
39
|
+
/**
|
|
40
|
+
* Initializes a new state.
|
|
41
|
+
*
|
|
42
|
+
* @template T The type of the state.
|
|
43
|
+
* @return {InitState<T>} An object representing the initial state.
|
|
44
|
+
*/
|
|
45
|
+
export declare function init<T, E = unknown>(): InitState<T, E>;
|
|
46
|
+
/**
|
|
47
|
+
* Network call is not yet completed
|
|
48
|
+
*/
|
|
49
|
+
export interface PendingState<T, E = unknown> extends NetworkState<T, E> {
|
|
50
|
+
state: 'pending';
|
|
51
|
+
progress?: Progress;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Interface representing progress information for an upload or download operation.
|
|
55
|
+
*
|
|
56
|
+
* @typedef {object} Progress
|
|
57
|
+
*
|
|
58
|
+
* @property {'upload' | 'download'} type - The type of the operation.
|
|
59
|
+
*
|
|
60
|
+
* @property {number} loaded - The amount of data that has been loaded so far.
|
|
61
|
+
*
|
|
62
|
+
* @property {number} [total] - The total amount of data to be loaded (if known).
|
|
63
|
+
*/
|
|
64
|
+
export interface Progress {
|
|
65
|
+
type?: 'upload' | 'download';
|
|
66
|
+
loaded: number;
|
|
67
|
+
total?: number;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Checks whether the state is pending state
|
|
71
|
+
* @param state
|
|
72
|
+
*/
|
|
73
|
+
export declare function isPending<T, E = unknown>(state: NetworkState<T, E>): state is PendingState<T, E>;
|
|
74
|
+
/**
|
|
75
|
+
* Generates a PendingState object with a state of "pending".
|
|
76
|
+
*
|
|
77
|
+
* @return {PendingState<T>} An object representing the pending state.
|
|
78
|
+
*/
|
|
79
|
+
export declare function pending<T, E = unknown>(progress?: Progress | undefined): PendingState<T, E>;
|
|
80
|
+
/**
|
|
81
|
+
* Network call is completed with success state
|
|
82
|
+
*/
|
|
83
|
+
export interface SuccessState<T, E = unknown> extends NetworkState<T, E> {
|
|
84
|
+
state: 'success';
|
|
85
|
+
data: T;
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Checks whether the state is success response
|
|
89
|
+
* @param state
|
|
90
|
+
*/
|
|
91
|
+
export declare function isSuccess<T, E = unknown>(state: NetworkState<T, E>): state is SuccessState<T, E>;
|
|
92
|
+
/**
|
|
93
|
+
* Creates a success state object with the provided data.
|
|
94
|
+
*
|
|
95
|
+
* @param {T} data - The data to be included in the success state.
|
|
96
|
+
* @return {SuccessState<T>} An object representing a success state containing the provided data.
|
|
97
|
+
*/
|
|
98
|
+
export declare function success<T, E = unknown>(data: T): SuccessState<T, E>;
|
|
99
|
+
/**
|
|
100
|
+
* Network call is completed with error response
|
|
101
|
+
*/
|
|
102
|
+
export interface ErrorState<T, E = unknown> extends NetworkState<T, E> {
|
|
103
|
+
state: 'error';
|
|
104
|
+
error: E;
|
|
105
|
+
statusCode?: number;
|
|
106
|
+
request?: any;
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* Checks whether the state is error state
|
|
110
|
+
* @param state
|
|
111
|
+
*/
|
|
112
|
+
export declare function isError<T, E = unknown>(state: NetworkState<T, E>): state is ErrorState<T, E>;
|
|
113
|
+
/**
|
|
114
|
+
* Constructs an ErrorState object representing an error.
|
|
115
|
+
*
|
|
116
|
+
* @param {any} error - The error object or message.
|
|
117
|
+
* @param {string} [statusCode] - An optional status code associated with the error.
|
|
118
|
+
* @return {ErrorState<T>} An object representing the error state.
|
|
119
|
+
*/
|
|
120
|
+
export declare function error<T, E = unknown>(error: E, statusCode?: number, request?: any): ErrorState<T>;
|
|
121
|
+
/**
|
|
122
|
+
* Represents an error state with additional contextual information.
|
|
123
|
+
*
|
|
124
|
+
* @typedef {Object} ErrorWithContext
|
|
125
|
+
* @template T
|
|
126
|
+
* @extends ErrorState<T>
|
|
127
|
+
*
|
|
128
|
+
* @property {string} source - The origin of the error.
|
|
129
|
+
* @property {string} operation - The operation being performed when the error occurred.
|
|
130
|
+
* @property {string} key - A unique key identifying the specific error instance.
|
|
131
|
+
*/
|
|
132
|
+
export interface ErrorWithContext<T = unknown, E = unknown> extends ErrorState<T, E> {
|
|
133
|
+
source: string;
|
|
134
|
+
operation: string;
|
|
135
|
+
key: string;
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* Represents an action in the network context.
|
|
139
|
+
*
|
|
140
|
+
* @template T - The type of data associated with the network action
|
|
141
|
+
*
|
|
142
|
+
* @property {NetworkState<any>} state - The current state of the network action
|
|
143
|
+
* @property {string} key - The unique identifier for the network action
|
|
144
|
+
*/
|
|
145
|
+
export interface NetworkAction<T, E> {
|
|
146
|
+
key: string;
|
|
147
|
+
source: string;
|
|
148
|
+
operation: string;
|
|
149
|
+
state: NetworkState<T, E>;
|
|
150
|
+
handled?: boolean;
|
|
151
|
+
}
|
|
152
|
+
type HookWithKey = {
|
|
153
|
+
key: string;
|
|
154
|
+
};
|
|
155
|
+
export type UnitHookOptions = {
|
|
156
|
+
key?: string;
|
|
157
|
+
fetchOnMount?: false;
|
|
158
|
+
clearOnUnmount?: boolean;
|
|
159
|
+
} | {
|
|
160
|
+
key?: string;
|
|
161
|
+
fetchOnMount: true;
|
|
162
|
+
params?: Record<string, any>;
|
|
163
|
+
clearOnUnmount?: boolean;
|
|
164
|
+
};
|
|
165
|
+
export type UnitHook<E = unknown> = ((options: UnitHookOptions) => [
|
|
166
|
+
NetworkState<never, E>,
|
|
167
|
+
(params?: Record<string, any>) => DispatchState<any>,
|
|
168
|
+
() => void
|
|
169
|
+
]) & HookWithKey;
|
|
170
|
+
export type ConstantHook<T, E = unknown> = ((options: UnitHookOptions) => [
|
|
171
|
+
NetworkState<T, E>,
|
|
172
|
+
(params?: Record<string, any>) => DispatchState<any>,
|
|
173
|
+
() => void
|
|
174
|
+
]) & HookWithKey;
|
|
175
|
+
export type UnaryHookOptions<P> = {
|
|
176
|
+
key?: string;
|
|
177
|
+
fetchOnMount?: false;
|
|
178
|
+
clearOnUnmount?: boolean;
|
|
179
|
+
} | {
|
|
180
|
+
key?: string;
|
|
181
|
+
fetchOnMount: true;
|
|
182
|
+
params: P;
|
|
183
|
+
clearOnUnmount?: boolean;
|
|
184
|
+
};
|
|
185
|
+
export type UnaryProduceHook<P, E = unknown> = ((options?: UnaryHookOptions<P>) => [NetworkState<never, E>, (params: P) => DispatchState<any>, () => void]) & HookWithKey;
|
|
186
|
+
export type UnaryFunctionHook<P, T, E = unknown> = ((options?: UnaryHookOptions<P>) => [NetworkState<T, E>, (params: P) => DispatchState<any>, () => void]) & HookWithKey;
|
|
187
|
+
export type BinaryHookOptions<P, B> = {
|
|
188
|
+
key?: string;
|
|
189
|
+
fetchOnMount?: false;
|
|
190
|
+
clearOnUnmount?: boolean;
|
|
191
|
+
} | {
|
|
192
|
+
key?: string;
|
|
193
|
+
fetchOnMount: true;
|
|
194
|
+
params: P;
|
|
195
|
+
body: B;
|
|
196
|
+
clearOnUnmount?: boolean;
|
|
197
|
+
};
|
|
198
|
+
export type BinaryProduceHook<P, B, E = unknown> = ((options?: BinaryHookOptions<P, B>) => [
|
|
199
|
+
NetworkState<never, E>,
|
|
200
|
+
(body: B, params: P) => DispatchState<any>,
|
|
201
|
+
() => void
|
|
202
|
+
]) & HookWithKey;
|
|
203
|
+
export type BinaryFunctionHook<P, B, T, E = unknown> = ((options?: BinaryHookOptions<P, B>) => [
|
|
204
|
+
NetworkState<T, E>,
|
|
205
|
+
(body: B, params: P) => DispatchState<any>,
|
|
206
|
+
() => void
|
|
207
|
+
]) & HookWithKey;
|
|
208
|
+
export type IntrigHookOptions<P = undefined, B = undefined> = UnitHookOptions | UnaryHookOptions<P> | BinaryHookOptions<P, B>;
|
|
209
|
+
export type IntrigHook<P = undefined, B = undefined, T = any, E = unknown> = UnitHook<E> | ConstantHook<T, E> | UnaryProduceHook<P, E> | UnaryFunctionHook<P, T, E> | BinaryProduceHook<P, B, E> | BinaryFunctionHook<P, B, T, E>;
|
|
210
|
+
export interface AsyncRequestOptions {
|
|
211
|
+
hydrate?: boolean;
|
|
212
|
+
key?: string;
|
|
213
|
+
}
|
|
214
|
+
/**
|
|
215
|
+
* Represents the dispatch state of a process.
|
|
216
|
+
*
|
|
217
|
+
* @template T The type of the state information.
|
|
218
|
+
* @interface
|
|
219
|
+
*
|
|
220
|
+
* @property {string} state The current state of the dispatch process.
|
|
221
|
+
*/
|
|
222
|
+
export interface DispatchState<T> {
|
|
223
|
+
state: string;
|
|
224
|
+
}
|
|
225
|
+
/**
|
|
226
|
+
* Represents a successful dispatch state.
|
|
227
|
+
*
|
|
228
|
+
* @template T - Type of the data associated with the dispatch.
|
|
229
|
+
*
|
|
230
|
+
* @extends DispatchState<T>
|
|
231
|
+
*
|
|
232
|
+
* @property {string} state - The state of the dispatch, always 'success'.
|
|
233
|
+
*/
|
|
234
|
+
export interface SuccessfulDispatch<T> extends DispatchState<T> {
|
|
235
|
+
state: 'success';
|
|
236
|
+
}
|
|
237
|
+
/**
|
|
238
|
+
* Indicates a successful dispatch state.
|
|
239
|
+
*
|
|
240
|
+
* @return {DispatchState<T>} An object representing a successful state.
|
|
241
|
+
*/
|
|
242
|
+
export declare function successfulDispatch<T>(): DispatchState<T>;
|
|
243
|
+
/**
|
|
244
|
+
* Determines if the provided dispatch state represents a successful dispatch.
|
|
245
|
+
*
|
|
246
|
+
* @param {DispatchState<T>} value - The dispatch state to check.
|
|
247
|
+
* @return {value is SuccessfulDispatch<T>} - True if the dispatch state indicates success, false otherwise.
|
|
248
|
+
*/
|
|
249
|
+
export declare function isSuccessfulDispatch<T>(value: DispatchState<T>): value is SuccessfulDispatch<T>;
|
|
250
|
+
/**
|
|
251
|
+
* ValidationError interface represents a specific type of dispatch state
|
|
252
|
+
* where a validation error has occurred.
|
|
253
|
+
*
|
|
254
|
+
* @typeparam T - The type of the data associated with this dispatch state.
|
|
255
|
+
*/
|
|
256
|
+
export interface ValidationError<T> extends DispatchState<T> {
|
|
257
|
+
state: 'validation-error';
|
|
258
|
+
error: any;
|
|
259
|
+
}
|
|
260
|
+
/**
|
|
261
|
+
* Generates a ValidationError object.
|
|
262
|
+
*
|
|
263
|
+
* @param error The error details that caused the validation to fail.
|
|
264
|
+
* @return The ValidationError object containing the error state and details.
|
|
265
|
+
*/
|
|
266
|
+
export declare function validationError<T>(error: any): ValidationError<T>;
|
|
267
|
+
/**
|
|
268
|
+
* Determines if a provided DispatchState object is a ValidationError.
|
|
269
|
+
*
|
|
270
|
+
* @param {DispatchState<T>} value - The DispatchState object to evaluate.
|
|
271
|
+
* @return {boolean} - Returns true if the provided DispatchState object is a ValidationError, otherwise returns false.
|
|
272
|
+
*/
|
|
273
|
+
export declare function isValidationError<T>(value: DispatchState<T>): value is ValidationError<T>;
|
|
274
|
+
/**
|
|
275
|
+
* Represents an error structure with a specified type and associated data.
|
|
276
|
+
*
|
|
277
|
+
* @template T - The type of the data associated with the error.
|
|
278
|
+
* @template E - The type of the error detail.
|
|
279
|
+
*
|
|
280
|
+
* @property {string} type - A string representing the type of the error.
|
|
281
|
+
*/
|
|
282
|
+
export interface IntrigError<T, E> {
|
|
283
|
+
type: string;
|
|
284
|
+
}
|
|
285
|
+
/**
|
|
286
|
+
* Represents an error encountered during a network operation.
|
|
287
|
+
* Extends from the `IntrigError` interface, adding network-specific properties.
|
|
288
|
+
*
|
|
289
|
+
* @template T - The type of the intrinsic data associated with the error.
|
|
290
|
+
* @template E - The type of the error details, defaulting to `unknown`.
|
|
291
|
+
*
|
|
292
|
+
* @property {string} type - A constant property representing the error type, always set to 'network'.
|
|
293
|
+
* @property {string} statusCode - A string representation of the HTTP status code associated with the error, indicating the nature of the network failure.
|
|
294
|
+
* @property {E} error - The detailed error information specific to the failure, type extends from the generic E, allowing flexibility in the error details.
|
|
295
|
+
* @property {any} request - The request object that was attempted when the network error occurred, providing context for what operation failed.
|
|
296
|
+
*/
|
|
297
|
+
export interface NetworkError<T, E = unknown> extends IntrigError<T, E> {
|
|
298
|
+
type: 'network';
|
|
299
|
+
statusCode: string;
|
|
300
|
+
error: E;
|
|
301
|
+
request: any;
|
|
302
|
+
}
|
|
303
|
+
/**
|
|
304
|
+
* Constructs a network error object.
|
|
305
|
+
*
|
|
306
|
+
* @param error The error object corresponding to the network request.
|
|
307
|
+
* @param statusCode A string representing the HTTP status code returned.
|
|
308
|
+
* @param request The request object associated with the network operation.
|
|
309
|
+
* @return A NetworkError object containing the error type, status code, error details, and the original request.
|
|
310
|
+
*/
|
|
311
|
+
export declare function networkError<T, E>(error: E, statusCode: string, request: any): NetworkError<T, E>;
|
|
312
|
+
/**
|
|
313
|
+
* Determines if the provided IntrigError is of type 'network'.
|
|
314
|
+
*
|
|
315
|
+
* @param {IntrigError<T, E>} value - The error value to check the type of.
|
|
316
|
+
* @return {boolean} - Returns true if the error is of type 'network', otherwise false.
|
|
317
|
+
*/
|
|
318
|
+
export declare function isNetworkError<T, E>(value: IntrigError<T, E>): value is NetworkError<T, E>;
|
|
319
|
+
/**
|
|
320
|
+
* Interface representing a request validation error.
|
|
321
|
+
*
|
|
322
|
+
* This error occurs when a validation process on a request fails. It extends the IntrigError interface
|
|
323
|
+
* by adding specific properties related to request validation.
|
|
324
|
+
*
|
|
325
|
+
* @template T - The type of the data associated with the error.
|
|
326
|
+
* @template E - The optional type of additional error information. Defaults to unknown.
|
|
327
|
+
*
|
|
328
|
+
* @extends IntrigError<T, E>
|
|
329
|
+
*
|
|
330
|
+
* @property {string} type - A string literal indicating the error type as 'request-validation'.
|
|
331
|
+
* @property {ZodError} error - An instance of ZodError containing detailed validation error information.
|
|
332
|
+
*/
|
|
333
|
+
export interface RequestValidationError<T, E = unknown> extends IntrigError<T, E> {
|
|
334
|
+
type: 'request-validation';
|
|
335
|
+
error: ZodError;
|
|
336
|
+
}
|
|
337
|
+
/**
|
|
338
|
+
* Constructs a RequestValidationError object encapsulating the ZodError.
|
|
339
|
+
*
|
|
340
|
+
* @param {ZodError} error - The error object resulting from Zod schema validation.
|
|
341
|
+
* @return {RequestValidationError<T, E>} A RequestValidationError object containing the validation error information.
|
|
342
|
+
*/
|
|
343
|
+
export declare function requestValidationError<T, E>(error: ZodError): RequestValidationError<T, E>;
|
|
344
|
+
/**
|
|
345
|
+
* Determines if a given error is of type RequestValidationError.
|
|
346
|
+
*
|
|
347
|
+
* @param value The error object to check, which implements the IntrigError interface.
|
|
348
|
+
* @return A boolean indicating whether the error is a RequestValidationError.
|
|
349
|
+
*/
|
|
350
|
+
export declare function isRequestValidationError<T, E>(value: IntrigError<T, E>): value is RequestValidationError<T, E>;
|
|
351
|
+
/**
|
|
352
|
+
* ResponseValidationError interface is designed to extend the capabilities of the IntrigError interface,
|
|
353
|
+
* specifically for handling errors related to response validation.
|
|
354
|
+
*
|
|
355
|
+
* @template T - Represents the type of the data or payload associated with the error.
|
|
356
|
+
* @template E - Represents the type of any additional error information. Defaults to unknown.
|
|
357
|
+
*
|
|
358
|
+
* @extends IntrigError
|
|
359
|
+
*
|
|
360
|
+
* @property type - A string literal that identifies the type of error as 'response-validation'.
|
|
361
|
+
* @property error - An instance of ZodError representing the validation error encountered.
|
|
362
|
+
*/
|
|
363
|
+
export interface ResponseValidationError<T, E = unknown> extends IntrigError<T, E> {
|
|
364
|
+
type: 'response-validation';
|
|
365
|
+
error: ZodError;
|
|
366
|
+
}
|
|
367
|
+
/**
|
|
368
|
+
* Constructs a ResponseValidationError object with a specified error.
|
|
369
|
+
*
|
|
370
|
+
* @param {ZodError} error - The validation error encountered during response validation.
|
|
371
|
+
* @return {ResponseValidationError<T, E>} An error object containing the type of error and the validation error details.
|
|
372
|
+
*/
|
|
373
|
+
export declare function responseValidationError<T, E>(error: ZodError): ResponseValidationError<T, E>;
|
|
374
|
+
/**
|
|
375
|
+
* Determines if the given error is a response validation error.
|
|
376
|
+
*
|
|
377
|
+
* @param {IntrigError<T, E>} value - The error object to assess.
|
|
378
|
+
* @return {boolean} True if the error is a response validation error, otherwise false.
|
|
379
|
+
*/
|
|
380
|
+
export declare function isResponseValidationError<T, E>(value: IntrigError<T, E>): value is ResponseValidationError<T, E>;
|
|
381
|
+
export {};
|
|
382
|
+
//# sourceMappingURL=network-state.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"network-state.d.ts","sourceRoot":"","sources":["../../../lib/src/network-state.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAC;AAE/B;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAM,WAAW,YAAY,CAAC,CAAC,GAAG,OAAO,EAAE,CAAC,GAAG,OAAO;IACpD,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC;CACjD;AAED;;GAEG;AACH,MAAM,WAAW,SAAS,CAAC,CAAC,EAAE,CAAC,GAAG,OAAO,CAAE,SAAQ,YAAY,CAAC,CAAC,EAAE,CAAC,CAAC;IACnE,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;;GAGG;AACH,wBAAgB,MAAM,CAAC,CAAC,EAAE,CAAC,GAAG,OAAO,EACnC,KAAK,EAAE,YAAY,CAAC,CAAC,EAAE,CAAC,CAAC,GACxB,KAAK,IAAI,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,CAE1B;AAED;;;;;GAKG;AACH,wBAAgB,IAAI,CAAC,CAAC,EAAE,CAAC,GAAG,OAAO,KAAK,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,CAItD;AAED;;G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