@digitaldefiance/ecies-lib 4.10.8 → 4.11.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.
Files changed (38) hide show
  1. package/package.json +1 -1
  2. package/src/enumerations/guid-brand-type.d.ts +1 -1
  3. package/src/enumerations/guid-brand-type.d.ts.map +1 -1
  4. package/src/enumerations/guid-brand-type.js +1 -1
  5. package/src/enumerations/guid-brand-type.js.map +1 -1
  6. package/src/errors/guid.d.ts +3 -3
  7. package/src/errors/guid.d.ts.map +1 -1
  8. package/src/errors/guid.js.map +1 -1
  9. package/src/examples/typed-configuration-usage.js +2 -2
  10. package/src/examples/typed-configuration-usage.js.map +1 -1
  11. package/src/index.d.ts +1 -0
  12. package/src/index.d.ts.map +1 -1
  13. package/src/index.js +1 -0
  14. package/src/index.js.map +1 -1
  15. package/src/interfaces/guid.d.ts +42 -8
  16. package/src/interfaces/guid.d.ts.map +1 -1
  17. package/src/interfaces/platform-id.d.ts +2 -2
  18. package/src/interfaces/platform-id.d.ts.map +1 -1
  19. package/src/lib/guid.d.ts +117 -77
  20. package/src/lib/guid.d.ts.map +1 -1
  21. package/src/lib/guid.js +344 -241
  22. package/src/lib/guid.js.map +1 -1
  23. package/src/lib/id-providers/guidv4-provider.d.ts +4 -3
  24. package/src/lib/id-providers/guidv4-provider.d.ts.map +1 -1
  25. package/src/lib/id-providers/guidv4-provider.js +22 -21
  26. package/src/lib/id-providers/guidv4-provider.js.map +1 -1
  27. package/src/typed-configuration.d.ts +1 -1
  28. package/src/typed-configuration.d.ts.map +1 -1
  29. package/src/types/guid-versions.d.ts +34 -0
  30. package/src/types/guid-versions.d.ts.map +1 -0
  31. package/src/types/guid-versions.js +7 -0
  32. package/src/types/guid-versions.js.map +1 -0
  33. package/src/types.d.ts +1 -1
  34. package/src/types.d.ts.map +1 -1
  35. package/src/utils.d.ts +1 -0
  36. package/src/utils.d.ts.map +1 -1
  37. package/src/utils.js +4 -0
  38. package/src/utils.js.map +1 -1
package/src/lib/guid.d.ts CHANGED
@@ -1,20 +1,23 @@
1
1
  import { GuidBrandType } from '../enumerations/guid-brand-type';
2
- import { IGuidV4 } from '../interfaces/guid';
3
- import { Base64Guid, BigIntGuid, FullHexGuid, RawGuidBuffer, ShortHexGuid } from '../types';
4
- export type GuidInput = string | FullHexGuid | ShortHexGuid | Base64Guid | BigIntGuid | RawGuidBuffer | bigint | Uint8Array;
2
+ import type { IGuid } from '../interfaces/guid';
3
+ import type { Base64Guid, BigIntGuid, FullHexGuid, RawGuidPlatformBuffer, ShortHexGuid } from '../types';
4
+ export type GuidInput = string | FullHexGuid | ShortHexGuid | Base64Guid | BigIntGuid | RawGuidPlatformBuffer | bigint | Uint8Array;
5
5
  /**
6
- * GuidV4 represents a GUID (Globally Unique Identifier) that is compliant with the RFC 4122 standard.
7
- * GuidV4 instances can be created from a variety of input types, including:
6
+ * Guid represents a GUID/UUID (Globally Unique Identifier) that is compliant with the RFC 4122 standard.
7
+ * Supports all UUID versions (v1-v5), with factory methods for v3, v4, and v5.
8
+ * Guid instances can be created from a variety of input types, including:
8
9
  * - FullHexGuid: A 36-character string representation of the GUID, including dashes
9
10
  * - ShortHexGuid: A 32-character string representation of the GUID, excluding dashes
10
11
  * - Base64Guid: A 24-character base64-encoded string representation of the GUID
11
12
  * - BigIntGuid: A bigint representation of the GUID
12
- * - RawGuidBuffer: A 16-byte Buffer representation of the GUID
13
- * GuidV4 instances can be converted to any of these representations using the appropriate method.
13
+ * - RawGuidUint8Array: A 16-byte Uint8Array representation of the GUID
14
+ * Guid instances can be converted to any of these representations using the appropriate method.
14
15
  */
15
- export declare class GuidV4 implements IGuidV4 {
16
+ export declare class Guid implements IGuid {
17
+ /** @deprecated Use Guid instead */
18
+ static readonly Guid: typeof Guid;
16
19
  /**
17
- * GUID is stored internally as a raw 16-byte Buffer.
20
+ * GUID is stored internally as a raw 16-byte Uint8Array.
18
21
  */
19
22
  private readonly _value;
20
23
  /**
@@ -49,10 +52,6 @@ export declare class GuidV4 implements IGuidV4 {
49
52
  * Type guard to check if a value is a Uint8Array
50
53
  */
51
54
  private static isUint8Array;
52
- /**
53
- * Type guard to check if a value is a Buffer or Uint8Array
54
- */
55
- private static isBufferLike;
56
55
  /**
57
56
  * Cached empty/nil GUID constant (all zeros)
58
57
  */
@@ -60,60 +59,65 @@ export declare class GuidV4 implements IGuidV4 {
60
59
  /**
61
60
  * Empty/nil GUID constant (all zeros)
62
61
  */
63
- static get Empty(): GuidV4;
62
+ static get Empty(): Guid;
64
63
  constructor(value: GuidInput);
65
64
  /**
66
- * Validates input and converts to raw buffer with comprehensive error handling.
65
+ * Validates input and converts to raw array with comprehensive error handling.
67
66
  * This centralizes all validation logic for better maintainability.
68
67
  * @param value The input value to validate and convert
69
- * @returns The validated raw GUID buffer
68
+ * @returns The validated raw GUID array
70
69
  * @throws {GuidError} If validation fails
71
70
  */
72
71
  private static validateAndConvert;
73
72
  static validateUuid(value: string): boolean;
74
73
  serialize(): string;
75
- static hydrate(value: string): GuidV4;
74
+ static hydrate(value: string): Guid;
76
75
  private static readonly LengthMap;
77
76
  private static readonly ReverseLengthMap;
78
77
  private static readonly VerifyFunctions;
79
78
  /**
80
- * Returns the GUID as a raw Buffer.
79
+ * Returns the GUID as a raw Uint8Array.
81
80
  * NOTE: Returns a defensive copy to prevent external mutation.
82
- * Use asRawGuidBufferUnsafe() if you need the internal buffer and guarantee no mutation.
81
+ * Use asRawGuidUint8ArrayUnsafe() if you need the internal array and guarantee no mutation.
83
82
  */
84
- get asRawGuidBuffer(): RawGuidBuffer;
83
+ get asRawGuidPlatformBuffer(): RawGuidPlatformBuffer;
85
84
  /**
86
- * Returns the internal raw Buffer without copying.
87
- * ⚠️ WARNING: Do NOT mutate the returned buffer! This is for performance-critical paths only.
88
- * Mutating this buffer will corrupt the GUID instance.
85
+ * Returns the internal raw Uint8Array without copying.
86
+ * ⚠️ WARNING: Do NOT mutate the returned array! This is for performance-critical paths only.
87
+ * Mutating this array will corrupt the GUID instance.
89
88
  * @internal
90
89
  */
91
- get asRawGuidBufferUnsafe(): RawGuidBuffer;
90
+ get asRawGuidPlatformBufferUnsafe(): RawGuidPlatformBuffer;
92
91
  /**
93
92
  * Generates a new random v4 GUID.
94
- * @returns A new GuidV4 instance with a randomly generated value
93
+ * @returns A new Guid instance with a randomly generated value
95
94
  */
96
- static generate(): GuidV4;
95
+ static generate(): Guid;
96
+ /**
97
+ * Alias for generate() to create a v4 GUID.
98
+ * @returns A new Guid instance with a randomly generated v4 value
99
+ */
100
+ static v4(): Guid;
97
101
  /**
98
102
  * Alias for generate() for backward compatibility.
99
103
  * @deprecated Use generate() instead for clearer intent
100
104
  */
101
- static new(): GuidV4;
105
+ static new(): Guid;
102
106
  /**
103
107
  * Parses a GUID from any valid format, throwing on invalid input.
104
108
  * This is the primary parsing method for when you expect valid input.
105
109
  * @param value The value to parse
106
- * @returns A new GuidV4 instance
110
+ * @returns A new Guid instance
107
111
  * @throws {GuidError} If the value is not a valid GUID
108
112
  */
109
- static parse(value: GuidInput): GuidV4;
113
+ static parse(value: GuidInput): Guid;
110
114
  /**
111
115
  * Attempts to parse a GUID, returning null on failure instead of throwing.
112
116
  * Use this when you're uncertain if the input is valid.
113
117
  * @param value The value to parse
114
- * @returns A new GuidV4 instance or null if parsing fails
118
+ * @returns A new Guid instance or null if parsing fails
115
119
  */
116
- static tryParse(value: GuidInput): GuidV4 | null;
120
+ static tryParse(value: GuidInput): Guid | null;
117
121
  /**
118
122
  * Validates whether a value is a valid GUID without creating an instance.
119
123
  * More efficient than tryParse when you only need validation.
@@ -124,62 +128,56 @@ export declare class GuidV4 implements IGuidV4 {
124
128
  /**
125
129
  * Factory method to create a GUID from a full hex string.
126
130
  * @param fullHex The full hex string (with dashes)
127
- * @returns A new GuidV4 instance
131
+ * @returns A new Guid instance
128
132
  */
129
- static fromFullHex(fullHex: string): GuidV4;
133
+ static fromFullHex(fullHex: string): Guid;
130
134
  /**
131
135
  * Factory method to create a GUID from a short hex string.
132
136
  * @param shortHex The short hex string (without dashes)
133
- * @returns A new GuidV4 instance
137
+ * @returns A new Guid instance
134
138
  */
135
- static fromShortHex(shortHex: string): GuidV4;
139
+ static fromShortHex(shortHex: string): Guid;
136
140
  /**
137
141
  * Factory method to create a GUID from a base64 string.
138
142
  * @param base64 The base64 encoded string
139
- * @returns A new GuidV4 instance
143
+ * @returns A new Guid instance
140
144
  */
141
- static fromBase64(base64: string): GuidV4;
145
+ static fromBase64(base64: string): Guid;
142
146
  /**
143
147
  * Factory method to create a GUID from a bigint.
144
148
  * @param bigint The bigint value
145
- * @returns A new GuidV4 instance
146
- */
147
- static fromBigInt(bigint: bigint): GuidV4;
148
- /**
149
- * Factory method to create a GUID from a raw buffer.
150
- * @param buffer The raw 16-byte buffer
151
- * @returns A new GuidV4 instance
149
+ * @returns A new Guid instance
152
150
  */
153
- static fromBuffer(buffer: Uint8Array): GuidV4;
151
+ static fromBigInt(bigint: bigint): Guid;
154
152
  /**
155
153
  * Factory method to create a GUID from a raw Uint8Array.
156
154
  * This is an explicit alias for fromBuffer(), provided for clarity when working
157
155
  * with browser environments where Uint8Array is the native binary type.
158
156
  * @param bytes The raw 16-byte Uint8Array
159
- * @returns A new GuidV4 instance
157
+ * @returns A new Guid instance
160
158
  */
161
- static fromUint8Array(bytes: Uint8Array): GuidV4;
159
+ static fromPlatformBuffer(bytes: Uint8Array): Guid;
162
160
  /**
163
161
  * Creates a namespace-based v3 GUID (MD5 hash).
164
162
  * Use this for deterministic GUIDs based on a namespace and name.
165
- * @param namespace The namespace GUID (e.g., uuid.v3.DNS)
166
163
  * @param name The name to hash within the namespace
167
- * @returns A new GuidV4 instance containing the v3 GUID
164
+ * @param namespace The namespace GUID (e.g., Guid.Namespaces.DNS)
165
+ * @returns A new Guid instance containing the v3 GUID
168
166
  * @example
169
- * const guid = GuidV4.v3('example.com', uuid.v3.DNS);
167
+ * const guid = Guid.v3('example.com', Guid.Namespaces.DNS);
170
168
  */
171
- static v3(name: string, namespace: string | Buffer): GuidV4;
169
+ static v3(name: string, namespace: string | Uint8Array): Guid;
172
170
  /**
173
171
  * Creates a namespace-based v5 GUID (SHA-1 hash).
174
172
  * Use this for deterministic GUIDs based on a namespace and name.
175
173
  * Preferred over v3 as SHA-1 is stronger than MD5.
176
- * @param namespace The namespace GUID (e.g., uuid.v5.DNS)
177
174
  * @param name The name to hash within the namespace
178
- * @returns A new GuidV4 instance containing the v5 GUID
175
+ * @param namespace The namespace GUID (e.g., Guid.Namespaces.DNS)
176
+ * @returns A new Guid instance containing the v5 GUID
179
177
  * @example
180
- * const guid = GuidV4.v5('example.com', uuid.v5.DNS);
178
+ * const guid = Guid.v5('example.com', Guid.Namespaces.DNS);
181
179
  */
182
- static v5(name: string, namespace: string | Buffer): GuidV4;
180
+ static v5(name: string, namespace: string | Uint8Array): Guid;
183
181
  /**
184
182
  * Common namespace constants for use with v3/v5 GUIDs.
185
183
  * These are the standard RFC 4122 namespace UUIDs, defined inline for browser compatibility.
@@ -199,7 +197,7 @@ export declare class GuidV4 implements IGuidV4 {
199
197
  /**
200
198
  * Returns the GUID as a raw Uint8Array.
201
199
  */
202
- get asUint8Array(): Uint8Array;
200
+ get asPlatformBuffer(): Uint8Array;
203
201
  /**
204
202
  * Returns the GUID as a short hex string.
205
203
  * Result is cached for performance.
@@ -245,10 +243,10 @@ export declare class GuidV4 implements IGuidV4 {
245
243
  /**
246
244
  * Returns the brand of the GUID for the given length.
247
245
  * @param length The length of the GUID to get the brand for.
248
- * @param isBuffer Whether the GUID is a Buffer.
246
+ * @param isUint8Array Whether the GUID is a Uint8Array.
249
247
  * @returns The brand of the GUID for the given length.
250
248
  */
251
- static lengthToGuidBrand(length: number, isBuffer: boolean): GuidBrandType;
249
+ static lengthToGuidBrand(length: number, isUint8Array: boolean): GuidBrandType;
252
250
  /**
253
251
  * Verifies if a given GUID is a valid full hex GUID.
254
252
  * @param fullHexGuidValue The full hex GUID to verify.
@@ -268,11 +266,11 @@ export declare class GuidV4 implements IGuidV4 {
268
266
  */
269
267
  static isBase64Guid(value: GuidInput): boolean;
270
268
  /**
271
- * Verifies if a given GUID is a valid raw GUID buffer.
272
- * @param value The raw GUID buffer to verify.
273
- * @returns True if the GUID is a valid raw GUID buffer, false otherwise.
269
+ * Verifies if a given GUID is a valid raw GUID array.
270
+ * @param value The raw GUID array to verify.
271
+ * @returns True if the GUID is a valid raw GUID array, false otherwise.
274
272
  */
275
- static isRawGuidBuffer(value: GuidInput): boolean;
273
+ static isRawGuidUint8Array(value: GuidInput): boolean;
276
274
  /**
277
275
  * Verifies if a given GUID is a valid bigint GUID.
278
276
  * @param value The bigint GUID to verify.
@@ -296,8 +294,8 @@ export declare class GuidV4 implements IGuidV4 {
296
294
  * @param guid The GUID value to convert.
297
295
  * @returns The GUID value as a full hex GUID.
298
296
  */
299
- static toFullHexGuid(guid: RawGuidBuffer | BigIntGuid | Base64Guid | ShortHexGuid | FullHexGuid | string): FullHexGuid;
300
- static toShortHexGuid(guid: RawGuidBuffer | BigIntGuid | Base64Guid | ShortHexGuid | FullHexGuid | string): ShortHexGuid;
297
+ static toFullHexGuid(guid: RawGuidPlatformBuffer | BigIntGuid | Base64Guid | ShortHexGuid | FullHexGuid | string): FullHexGuid;
298
+ static toShortHexGuid(guid: RawGuidPlatformBuffer | BigIntGuid | Base64Guid | ShortHexGuid | FullHexGuid | string): ShortHexGuid;
301
299
  /**
302
300
  * Converts a given bigint to a full hex GUID.
303
301
  * @param bigInt The bigint to convert.
@@ -305,18 +303,18 @@ export declare class GuidV4 implements IGuidV4 {
305
303
  */
306
304
  static toFullHexFromBigInt(bigInt: bigint): FullHexGuid;
307
305
  /**
308
- * Converts a given GUID value to a raw GUID buffer.
306
+ * Converts a given GUID value to a raw GUID array.
309
307
  * @param value The GUID value to convert.
310
- * @returns The GUID value as a raw GUID buffer.
308
+ * @returns The GUID value as a raw GUID array.
311
309
  */
312
- static toRawGuidBuffer(value: GuidInput): RawGuidBuffer;
310
+ static toRawGuidPlatformBuffer(value: GuidInput): RawGuidPlatformBuffer;
313
311
  /**
314
- * Compare two GuidV4 instances for equality.
315
- * @param other - The other GuidV4 instance to compare (can be null/undefined)
312
+ * Compare two Guid instances for equality.
313
+ * @param other - The other Guid instance to compare (can be null/undefined)
316
314
  * @param constantTime - Use constant-time comparison to prevent timing attacks (default: false)
317
- * @returns True if the two GuidV4 instances are equal, false otherwise
315
+ * @returns True if the two Guid instances are equal, false otherwise
318
316
  */
319
- equals(other: IGuidV4 | null | undefined, constantTime?: boolean): boolean;
317
+ equals(other: IGuid | null | undefined, constantTime?: boolean): boolean;
320
318
  /**
321
319
  * Checks if this GUID is empty (all zeros).
322
320
  * @returns True if the GUID is all zeros, false otherwise
@@ -327,14 +325,14 @@ export declare class GuidV4 implements IGuidV4 {
327
325
  * @param guid The GUID to check
328
326
  * @returns True if the GUID is null, undefined, or empty
329
327
  */
330
- static isNilOrEmpty(guid: IGuidV4 | null | undefined): boolean;
328
+ static isNilOrEmpty(guid: IGuid | null | undefined): boolean;
331
329
  /**
332
- * Creates a new GuidV4 instance with the same value as this one.
333
- * @returns A new GuidV4 instance with identical value
330
+ * Creates a new Guid instance with the same value as this one.
331
+ * @returns A new Guid instance with identical value
334
332
  */
335
- clone(): GuidV4;
333
+ clone(): Guid;
336
334
  /**
337
- * Returns the hash code for this GUID based on its buffer content.
335
+ * Returns the hash code for this GUID based on its array content.
338
336
  * Useful for using GUIDs as Map/Set keys.
339
337
  * @returns A numeric hash code
340
338
  */
@@ -345,18 +343,60 @@ export declare class GuidV4 implements IGuidV4 {
345
343
  * @returns The version number (1-5) or undefined
346
344
  */
347
345
  getVersion(): number | undefined;
346
+ /**
347
+ * Validates that this GUID is a proper v3 GUID according to RFC 4122.
348
+ * @returns True if valid v3 GUID, false otherwise
349
+ */
350
+ isValidV3(): boolean;
348
351
  /**
349
352
  * Validates that this GUID is a proper v4 GUID according to RFC 4122.
350
353
  * Boundary values (all zeros/all Fs) return true as they're mathematically valid.
351
354
  * @returns True if valid v4 GUID or boundary value, false otherwise
352
355
  */
353
356
  isValidV4(): boolean;
357
+ /**
358
+ * Validates that this GUID is a proper v5 GUID according to RFC 4122.
359
+ * @returns True if valid v5 GUID, false otherwise
360
+ */
361
+ isValidV5(): boolean;
362
+ /**
363
+ * Returns a human-readable string representation.
364
+ */
365
+ toDebugString(): string;
354
366
  /**
355
367
  * Compares two GUIDs for ordering.
356
368
  * Useful for sorting GUID arrays.
357
369
  * @param other The other GUID to compare to
358
370
  * @returns -1 if this < other, 0 if equal, 1 if this > other
359
371
  */
360
- compareTo(other: IGuidV4): number;
372
+ compareTo(other: IGuid): number;
373
+ /**
374
+ * Returns the timestamp from a v1 GUID.
375
+ * @returns Date object or undefined if not a v1 GUID
376
+ */
377
+ getTimestamp(): Date | undefined;
378
+ /**
379
+ * Extracts the variant from the GUID.
380
+ * @returns The variant (0-2) or undefined
381
+ */
382
+ getVariant(): number | undefined;
383
+ /**
384
+ * Creates a v1 GUID (time-based).
385
+ * @returns A new Guid instance containing a v1 GUID
386
+ */
387
+ static v1(): Guid;
388
+ /**
389
+ * Validates that this GUID is a proper v1 GUID.
390
+ * @returns True if valid v1 GUID, false otherwise
391
+ */
392
+ isValidV1(): boolean;
393
+ /**
394
+ * Returns a URL-safe base64 representation (no padding, URL-safe chars).
395
+ */
396
+ get asUrlSafeBase64(): string;
397
+ /**
398
+ * Creates a GUID from URL-safe base64.
399
+ */
400
+ static fromUrlSafeBase64(urlSafe: string): Guid;
361
401
  }
362
402
  //# sourceMappingURL=guid.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"guid.d.ts","sourceRoot":"","sources":["../../../../../packages/digitaldefiance-ecies-lib/src/lib/guid.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAGhE,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EACL,UAAU,EACV,UAAU,EACV,WAAW,EACX,aAAa,EACb,YAAY,EAC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G;WACW,eAAe,CAAC,KAAK,EAAE,SAAS,GAAG,aAAa;IAoD9D;;;;;OAKG;IACI,MAAM,CACX,KAAK,EAAE,OAAO,GAAG,IAAI,GAAG,SAAS,EACjC,YAAY,UAAQ,GACnB,OAAO;IAsBV;;;OAGG;IACI,OAAO,IAAI,OAAO;IAUzB;;;;OAIG;WACW,YAAY,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,GAAG,SAAS,GAAG,OAAO;IAIrE;;;OAGG;IACI,KAAK,IAAI,MAAM;IAItB;;;;OAIG;IACI,QAAQ,IAAI,MAAM;IASzB;;;;OAIG;IACI,UAAU,IAAI,MAAM,GAAG,SAAS;IAcvC;;;;OAIG;IACI,SAAS,IAAI,OAAO;IAU3B;;;;;OAKG;IACI,SAAS,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM;CAGzC"}
1
+ {"version":3,"file":"guid.d.ts","sourceRoot":"","sources":["../../../../../packages/digitaldefiance-ecies-lib/src/lib/guid.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAGhE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,KAAK,EACV,UAAU,EACV,UAAU,EACV,WAAW,EACX,qBAAqB,EACrB,YAAY,EACb,MAAM,UAAU,CAAC;AAGlB,MAAM,MAAM,SAAS,GACjB,MAAM,GACN,WAAW,GACX,YAAY,GACZ,UAAU,GACV,UAAU,GACV,qBAAqB,GACrB,MAAM,GACN,UAAU,CAAC;AAEf;;;;;;;;;;GAUG;AACH,qBAAa,IAAK,YAAW,KAAK;IAChC,mCAAmC;IACnC,MAAM,CAAC,QAAQ,CAAC,IAAI,cAAQ;IAC5B;;OAEG;IACH,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAwB;IAE/C;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,eAAe,CAK5B;IAEX;;OAEG;IACH,OAAO,CAAC,MAAM,CA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