@digitaldefiance/ecies-lib 4.2.5 → 4.2.6

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/README.md CHANGED
@@ -305,6 +305,10 @@ This release focuses on eliminating type safety escape hatches while maintaining
305
305
 
306
306
  **Migration Guide:** No migration needed - this is a drop-in replacement for 4.2.x versions
307
307
 
308
+ ### v4.2.6
309
+
310
+ - Minor bump. Fix exports
311
+
308
312
  ### v4.2.0
309
313
 
310
314
  - Add idToString/idFromString to id provider
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digitaldefiance/ecies-lib",
3
- "version": "4.2.5",
3
+ "version": "4.2.6",
4
4
  "description": "Digital Defiance ECIES Library",
5
5
  "main": "src/index.js",
6
6
  "types": "src/index.d.ts",
package/src/index.d.ts CHANGED
@@ -8,66 +8,72 @@
8
8
  * - Result pattern
9
9
  * - i18n 2.0 integration
10
10
  */
11
- export * from './core';
12
- export * from './builders';
13
- export * from './lib';
14
- export { getEciesI18nEngine, resetEciesI18nEngine, getEciesTranslation, safeEciesTranslation, EciesI18nEngineKey, EciesComponentId, } from './i18n-setup';
11
+ export * from './builders/index.js';
12
+ export * from './core/index.js';
13
+ export * from './lib/index.js';
14
+ export { EciesComponentId, EciesI18nEngineKey, getEciesI18nEngine, getEciesTranslation, resetEciesI18nEngine, safeEciesTranslation, } from './i18n-setup';
15
15
  export { EciesStringKey } from './enumerations/ecies-string-key';
16
16
  export { MemberType } from './enumerations/member-type';
17
17
  export { Pbkdf2ProfileEnum } from './enumerations/pbkdf2-profile';
18
18
  export { EmailString } from './email-string';
19
- export { SecureString } from './secure-string';
20
19
  export { SecureBuffer } from './secure-buffer';
20
+ export { SecureString } from './secure-string';
21
21
  export { Constants, ConstantsRegistry } from './constants';
22
22
  export type { IConstants } from './interfaces';
23
- export type { IECIESConstants, IECIESConfig, IPbkdf2Config, IPBkdf2Consts, IMemberStorageData, } from './interfaces';
24
- export type { HexString } from './types';
25
- export { LengthEncodingType } from './enumerations/length-encoding-type';
26
- export { MemberErrorType } from './enumerations/member-error-type';
27
- export { InvalidEmailErrorType } from './enumerations/invalid-email-type';
28
- export { EciesEncryptionTypeEnum, type EciesEncryptionType, EciesEncryptionTypeMap, encryptionTypeEnumToType, encryptionTypeToString, ensureEciesEncryptionTypeEnum, } from './enumerations/ecies-encryption-type';
29
- export { EciesVersionEnum } from './enumerations/ecies-version';
23
+ export { ECIES, OBJECT_ID_LENGTH, UINT32_MAX, UINT64_SIZE } from './constants';
30
24
  export { EciesCipherSuiteEnum } from './enumerations/ecies-cipher-suite';
25
+ export { EciesEncryptionTypeEnum, EciesEncryptionTypeMap, encryptionTypeEnumToType, encryptionTypeToString, ensureEciesEncryptionTypeEnum, type EciesEncryptionType, } from './enumerations/ecies-encryption-type';
31
26
  export { ECIESErrorTypeEnum } from './enumerations/ecies-error-type';
32
- export { ECIESError } from './errors/ecies';
27
+ export { EciesVersionEnum } from './enumerations/ecies-version';
28
+ export { InvalidEmailErrorType } from './enumerations/invalid-email-type';
29
+ export { LengthEncodingType } from './enumerations/length-encoding-type';
30
+ export { MemberErrorType } from './enumerations/member-error-type';
33
31
  export { Pbkdf2ErrorType } from './enumerations/pbkdf2-error-type';
34
- export { ECIES, UINT32_MAX, UINT64_SIZE, OBJECT_ID_LENGTH } from './constants';
32
+ export { ECIESError } from './errors/ecies';
33
+ export type { IECIESConfig, IECIESConstants, IMemberStorageData, IPBkdf2Consts, IPbkdf2Config, } from './interfaces';
34
+ export type { HexString } from './types';
35
35
  export { getLengthEncodingTypeForLength, getLengthEncodingTypeFromValue, getLengthForLengthType, } from './utils';
36
- export * from './lib/id-providers';
37
- export type { IIdProvider } from './interfaces/id-provider';
38
36
  export { BaseIdProvider } from './interfaces/id-provider';
37
+ export type { IIdProvider } from './interfaces/id-provider';
38
+ export * from './lib/id-providers';
39
39
  export { ObjectIdProvider } from './lib/id-providers/objectid-provider';
40
- export { InvariantValidator } from './lib/invariant-validator';
41
- export type { IInvariant } from './interfaces/invariant';
42
40
  export { BaseInvariant } from './interfaces/invariant';
41
+ export type { IInvariant } from './interfaces/invariant';
42
+ export { InvariantValidator } from './lib/invariant-validator';
43
43
  export * from './lib/invariants';
44
- export { createRuntimeConfiguration, registerRuntimeConfiguration, unregisterRuntimeConfiguration, clearRuntimeConfigurations, getRuntimeConfiguration, } from './constants';
44
+ export { clearRuntimeConfigurations, createRuntimeConfiguration, getRuntimeConfiguration, registerRuntimeConfiguration, unregisterRuntimeConfiguration, } from './constants';
45
+ export { calculateConfigChecksum, captureCreationStack, } from './interfaces/configuration-provenance';
45
46
  export type { IConfigurationProvenance } from './interfaces/configuration-provenance';
46
- export { calculateConfigChecksum, captureCreationStack } from './interfaces/configuration-provenance';
47
47
  export * from './constants';
48
48
  export * from './email-string';
49
49
  export * from './enumerations';
50
50
  export * from './errors';
51
51
  export * from './i18n-setup';
52
52
  export * from './interfaces';
53
- export * from './interfaces/stream-config';
54
53
  export * from './interfaces/encrypted-chunk';
55
- export * from './interfaces/stream-progress';
54
+ export { ENCRYPTION_STATE_VERSION } from './interfaces/encryption-state';
55
+ export type { IEncryptionState } from './interfaces/encryption-state';
56
+ export * from './interfaces/stream-config';
56
57
  export * from './interfaces/stream-header';
58
+ export * from './interfaces/stream-progress';
57
59
  export * from './member';
60
+ export { Member } from './member';
58
61
  export * from './pbkdf2-profiles';
59
62
  export * from './phone-number';
60
63
  export * from './secure-buffer';
61
64
  export * from './secure-string';
62
65
  export * from './services';
63
66
  export { ChunkProcessor } from './services/chunk-processor';
67
+ export { EciesCryptoCore } from './services/ecies/crypto-core';
68
+ export { ECIESService } from './services/ecies/service';
64
69
  export { EncryptionStream } from './services/encryption-stream';
70
+ export type { IDecryptStreamOptions, IEncryptStreamOptions, } from './services/encryption-stream';
71
+ export { PasswordLoginService } from './services/password-login';
72
+ export { Pbkdf2Service } from './services/pbkdf2';
65
73
  export { ProgressTracker } from './services/progress-tracker';
66
74
  export { ResumableEncryption } from './services/resumable-encryption';
67
- export type { IEncryptStreamOptions, IDecryptStreamOptions, } from './services/encryption-stream';
68
75
  export type { IResumableOptions } from './services/resumable-encryption';
69
- export type { IEncryptionState } from './interfaces/encryption-state';
70
- export { ENCRYPTION_STATE_VERSION } from './interfaces/encryption-state';
71
76
  export * from './types';
72
77
  export * from './utils';
78
+ export { hexToUint8Array, uint8ArrayToHex } from './utils';
73
79
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../packages/digitaldefiance-ecies-lib/src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAGH,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,OAAO,CAAC;AAGtB,OAAO,EACL,kBAAkB,EAClB,oBAAoB,EACpB,mBAAmB,EACnB,oBAAoB,EACpB,kBAAkB,EAClB,gBAAgB,GACjB,MAAM,cAAc,CAAC;AAGtB,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACjE,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAGlE,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAG/C,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAC3D,YAAY,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,YAAY,EACV,eAAe,EACf,YAAY,EACZ,aAAa,EACb,aAAa,EACb,kBAAkB,GACnB,MAAM,cAAc,CAAC;AACtB,YAAY,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AACzE,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AAc,YAAY,CAAC;AAC3B,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,YAAY,EACV,qBAAqB,EACrB,qBAAqB,GACtB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AACtE,YAAY,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AACzE,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC"}
package/src/index.js CHANGED
@@ -9,43 +9,44 @@
9
9
  * - i18n 2.0 integration
10
10
  */
11
11
  // Core v2 exports
12
- export * from './core';
13
- export * from './builders';
14
- export * from './lib';
12
+ export * from './builders/index.js';
13
+ export * from './core/index.js';
14
+ export * from './lib/index.js';
15
15
  // i18n v2
16
- export { getEciesI18nEngine, resetEciesI18nEngine, getEciesTranslation, safeEciesTranslation, EciesI18nEngineKey, EciesComponentId, } from './i18n-setup';
16
+ export { EciesComponentId, EciesI18nEngineKey, getEciesI18nEngine, getEciesTranslation, resetEciesI18nEngine, safeEciesTranslation, } from './i18n-setup';
17
17
  // Re-export existing types and enums (unchanged)
18
18
  export { EciesStringKey } from './enumerations/ecies-string-key';
19
19
  export { MemberType } from './enumerations/member-type';
20
20
  export { Pbkdf2ProfileEnum } from './enumerations/pbkdf2-profile';
21
21
  // Re-export value objects (unchanged)
22
22
  export { EmailString } from './email-string';
23
- export { SecureString } from './secure-string';
24
23
  export { SecureBuffer } from './secure-buffer';
24
+ export { SecureString } from './secure-string';
25
25
  // Re-export constants (unchanged)
26
26
  export { Constants, ConstantsRegistry } from './constants';
27
- export { LengthEncodingType } from './enumerations/length-encoding-type';
28
- export { MemberErrorType } from './enumerations/member-error-type';
29
- export { InvalidEmailErrorType } from './enumerations/invalid-email-type';
30
- export { EciesEncryptionTypeEnum, EciesEncryptionTypeMap, encryptionTypeEnumToType, encryptionTypeToString, ensureEciesEncryptionTypeEnum, } from './enumerations/ecies-encryption-type';
31
- export { EciesVersionEnum } from './enumerations/ecies-version';
27
+ // Also export specific interfaces, types, and enums that are needed
28
+ export { ECIES, OBJECT_ID_LENGTH, UINT32_MAX, UINT64_SIZE } from './constants';
32
29
  export { EciesCipherSuiteEnum } from './enumerations/ecies-cipher-suite';
30
+ export { EciesEncryptionTypeEnum, EciesEncryptionTypeMap, encryptionTypeEnumToType, encryptionTypeToString, ensureEciesEncryptionTypeEnum, } from './enumerations/ecies-encryption-type';
33
31
  export { ECIESErrorTypeEnum } from './enumerations/ecies-error-type';
34
- export { ECIESError } from './errors/ecies';
32
+ export { EciesVersionEnum } from './enumerations/ecies-version';
33
+ export { InvalidEmailErrorType } from './enumerations/invalid-email-type';
34
+ export { LengthEncodingType } from './enumerations/length-encoding-type';
35
+ export { MemberErrorType } from './enumerations/member-error-type';
35
36
  export { Pbkdf2ErrorType } from './enumerations/pbkdf2-error-type';
36
- export { ECIES, UINT32_MAX, UINT64_SIZE, OBJECT_ID_LENGTH } from './constants';
37
+ export { ECIESError } from './errors/ecies';
37
38
  export { getLengthEncodingTypeForLength, getLengthEncodingTypeFromValue, getLengthForLengthType, } from './utils';
38
39
  // ID Provider system
39
- export * from './lib/id-providers';
40
40
  export { BaseIdProvider } from './interfaces/id-provider';
41
+ export * from './lib/id-providers';
41
42
  export { ObjectIdProvider } from './lib/id-providers/objectid-provider';
42
43
  // Invariant validation system
43
- export { InvariantValidator } from './lib/invariant-validator';
44
44
  export { BaseInvariant } from './interfaces/invariant';
45
+ export { InvariantValidator } from './lib/invariant-validator';
45
46
  export * from './lib/invariants';
46
47
  // Configuration helpers
47
- export { createRuntimeConfiguration, registerRuntimeConfiguration, unregisterRuntimeConfiguration, clearRuntimeConfigurations, getRuntimeConfiguration, } from './constants';
48
- export { calculateConfigChecksum, captureCreationStack } from './interfaces/configuration-provenance';
48
+ export { clearRuntimeConfigurations, createRuntimeConfiguration, getRuntimeConfiguration, registerRuntimeConfiguration, unregisterRuntimeConfiguration, } from './constants';
49
+ export { calculateConfigChecksum, captureCreationStack, } from './interfaces/configuration-provenance';
49
50
  // Note: Existing services will be re-exported once migrated to v2
50
51
  // For now, import from main index.ts for backward compatibility
51
52
  export * from './constants';
@@ -54,21 +55,27 @@ export * from './enumerations';
54
55
  export * from './errors';
55
56
  export * from './i18n-setup';
56
57
  export * from './interfaces';
57
- export * from './interfaces/stream-config';
58
58
  export * from './interfaces/encrypted-chunk';
59
- export * from './interfaces/stream-progress';
59
+ export { ENCRYPTION_STATE_VERSION } from './interfaces/encryption-state';
60
+ export * from './interfaces/stream-config';
60
61
  export * from './interfaces/stream-header';
62
+ export * from './interfaces/stream-progress';
61
63
  export * from './member';
64
+ export { Member } from './member';
62
65
  export * from './pbkdf2-profiles';
63
66
  export * from './phone-number';
64
67
  export * from './secure-buffer';
65
68
  export * from './secure-string';
66
69
  export * from './services';
67
70
  export { ChunkProcessor } from './services/chunk-processor';
71
+ export { EciesCryptoCore } from './services/ecies/crypto-core';
72
+ export { ECIESService } from './services/ecies/service';
68
73
  export { EncryptionStream } from './services/encryption-stream';
74
+ export { PasswordLoginService } from './services/password-login';
75
+ export { Pbkdf2Service } from './services/pbkdf2';
69
76
  export { ProgressTracker } from './services/progress-tracker';
70
77
  export { ResumableEncryption } from './services/resumable-encryption';
71
- export { ENCRYPTION_STATE_VERSION } from './interfaces/encryption-state';
72
78
  export * from './types';
73
79
  export * from './utils';
80
+ export { hexToUint8Array, uint8ArrayToHex } from './utils';
74
81
  //# sourceMappingURL=index.js.map
package/src/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/digitaldefiance-ecies-lib/src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,kBAAkB;AAClB,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,OAAO,CAAC;AAEtB,UAAU;AACV,OAAO,EACL,kBAAkB,EAClB,oBAAoB,EACpB,mBAAmB,EACnB,oBAAoB,EACpB,kBAAkB,EAClB,gBAAgB,GACjB,MAAM,cAAc,CAAC;AAEtB,iDAAiD;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACjE,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAElE,sCAAsC;AACtC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,kCAAkC;AAClC,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAW3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AACzE,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACnE,OAAO,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAC1E,OAAO,EACL,uBAAuB,EAEvB,sBAAsB,EACtB,wBAAwB,EACxB,sBAAsB,EACtB,6BAA6B,GAC9B,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AACzE,OAAO,EAAE,kBAAkB,EAAE,MA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c,8BAA8B,CAAC;AAC7C,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAEzE,cAAc,4BAA4B,CAAC;AAC3C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,UAAU,CAAC;AACzB,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAKhE,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AAEtE,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC"}
@@ -1,6 +1,11 @@
1
1
  export * from './aes-gcm';
2
+ export * from './chunk-processor';
2
3
  export * from './ecies';
4
+ export * from './encryption-stream';
5
+ export * from './multi-recipient-processor';
3
6
  export * from './password-login';
4
7
  export * from './pbkdf2';
8
+ export * from './progress-tracker';
9
+ export * from './resumable-encryption';
5
10
  export * from './xor';
6
11
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/digitaldefiance-ecies-lib/src/services/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,kBAAkB,CAAC;AACjC,cAAc,UAAU,CAAC;AACzB,cAAc,OAAO,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/digitaldefiance-ecies-lib/src/services/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,SAAS,CAAC;AACxB,cAAc,qBAAqB,CAAC;AACpC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,kBAAkB,CAAC;AACjC,cAAc,UAAU,CAAC;AACzB,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,OAAO,CAAC"}
@@ -1,6 +1,11 @@
1
1
  export * from './aes-gcm';
2
+ export * from './chunk-processor';
2
3
  export * from './ecies';
4
+ export * from './encryption-stream';
5
+ export * from './multi-recipient-processor';
3
6
  export * from './password-login';
4
7
  export * from './pbkdf2';
8
+ export * from './progress-tracker';
9
+ export * from './resumable-encryption';
5
10
  export * from './xor';
6
11
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../packages/digitaldefiance-ecies-lib/src/services/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,kBAAkB,CAAC;AACjC,cAAc,UAAU,CAAC;AACzB,cAAc,OAAO,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../packages/digitaldefiance-ecies-lib/src/services/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,SAAS,CAAC;AACxB,cAAc,qBAAqB,CAAC;AACpC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,kBAAkB,CAAC;AACjC,cAAc,UAAU,CAAC;AACzB,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,OAAO,CAAC"}