@hypercerts-org/lexicon 0.10.0-beta.4 → 0.10.0-beta.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.
Files changed (49) hide show
  1. package/CHANGELOG.md +82 -0
  2. package/README.md +66 -311
  3. package/SCHEMAS.md +284 -0
  4. package/dist/exports.d.ts +76 -118
  5. package/dist/exports.d.ts.map +1 -1
  6. package/dist/generated/exports.d.ts +76 -118
  7. package/dist/generated/exports.d.ts.map +1 -1
  8. package/dist/generated/lexicons.d.ts +182 -266
  9. package/dist/generated/lexicons.d.ts.map +1 -1
  10. package/dist/generated/types/org/hypercerts/claim/activity.d.ts +21 -18
  11. package/dist/generated/types/org/hypercerts/claim/activity.d.ts.map +1 -1
  12. package/dist/generated/types/org/hypercerts/claim/collection.d.ts +9 -9
  13. package/dist/generated/types/org/hypercerts/claim/collection.d.ts.map +1 -1
  14. package/dist/generated/types/org/hypercerts/claim/{contribution.d.ts → contributionDetails.d.ts} +8 -10
  15. package/dist/generated/types/org/hypercerts/claim/contributionDetails.d.ts.map +1 -0
  16. package/dist/generated/types/org/hypercerts/claim/contributorInformation.d.ts +23 -0
  17. package/dist/generated/types/org/hypercerts/claim/contributorInformation.d.ts.map +1 -0
  18. package/dist/index.cjs +270 -357
  19. package/dist/index.cjs.map +1 -1
  20. package/dist/index.mjs +263 -350
  21. package/dist/index.mjs.map +1 -1
  22. package/dist/lexicons.cjs +102 -141
  23. package/dist/lexicons.cjs.map +1 -1
  24. package/dist/lexicons.d.ts +182 -266
  25. package/dist/lexicons.d.ts.map +1 -1
  26. package/dist/lexicons.mjs +102 -141
  27. package/dist/lexicons.mjs.map +1 -1
  28. package/dist/types/org/hypercerts/claim/activity.d.ts +21 -18
  29. package/dist/types/org/hypercerts/claim/activity.d.ts.map +1 -1
  30. package/dist/types/org/hypercerts/claim/collection.d.ts +9 -9
  31. package/dist/types/org/hypercerts/claim/collection.d.ts.map +1 -1
  32. package/dist/types/org/hypercerts/claim/{contribution.d.ts → contributionDetails.d.ts} +8 -10
  33. package/dist/types/org/hypercerts/claim/contributionDetails.d.ts.map +1 -0
  34. package/dist/types/org/hypercerts/claim/contributorInformation.d.ts +23 -0
  35. package/dist/types/org/hypercerts/claim/contributorInformation.d.ts.map +1 -0
  36. package/lexicons/org/hypercerts/claim/activity.json +29 -39
  37. package/lexicons/org/hypercerts/claim/collection.json +14 -17
  38. package/lexicons/org/hypercerts/claim/contributionDetails.json +43 -0
  39. package/lexicons/org/hypercerts/claim/contributorInformation.json +39 -0
  40. package/lexicons/org/hypercerts/claim/evaluation.json +1 -1
  41. package/package.json +6 -2
  42. package/dist/generated/types/org/hypercerts/claim/contribution.d.ts.map +0 -1
  43. package/dist/generated/types/org/hypercerts/claim/project.d.ts +0 -29
  44. package/dist/generated/types/org/hypercerts/claim/project.d.ts.map +0 -1
  45. package/dist/types/org/hypercerts/claim/contribution.d.ts.map +0 -1
  46. package/dist/types/org/hypercerts/claim/project.d.ts +0 -29
  47. package/dist/types/org/hypercerts/claim/project.d.ts.map +0 -1
  48. package/lexicons/org/hypercerts/claim/contribution.json +0 -50
  49. package/lexicons/org/hypercerts/claim/project.json +0 -64
@@ -1 +1 @@
1
- {"version":3,"file":"lexicons.d.ts","sourceRoot":"","sources":["../../generated/lexicons.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAEL,QAAQ,EAER,KAAK,gBAAgB,EACtB,MAAM,kBAAkB,CAAA;AAGzB,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AgB,CAAC,CAAC,CAAC,CAAA;AACtB,wBAAgB,QAAQ,CAAC,CAAC,SAAS;IAAE,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,EACnD,CAAC,EAAE,OAAO,EACV,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,MAAM,EACZ,YAAY,CAAC,EAAE,KAAK,GACnB,gBAAgB,CAAC,CAAC,CAAC,CAAA;AAiBtB,eAAO,MAAM,GAAG;;;;;;;;;;;;;;;;;CAmBN,CAAA"}
@@ -16,18 +16,16 @@ export interface Main {
16
16
  image?: $Typed<OrgHypercertsDefs.Uri> | $Typed<OrgHypercertsDefs.SmallImage> | {
17
17
  $type: string;
18
18
  };
19
- workScope?: WorkScope;
19
+ workScope?: ComAtprotoRepoStrongRef.Main;
20
20
  /** When the work began */
21
- startDate: string;
21
+ startDate?: string;
22
22
  /** When the work ended */
23
- endDate: string;
24
- /** A strong reference to the contributions done to create the impact in the hypercerts. The record referenced must conform with the lexicon org.hypercerts.claim.contribution. */
25
- contributions?: ComAtprotoRepoStrongRef.Main[];
23
+ endDate?: string;
24
+ /** An array of contributor objects, each containing contributor information, weight, and contribution details. */
25
+ contributors?: Contributor[];
26
26
  rights?: ComAtprotoRepoStrongRef.Main;
27
27
  /** An array of strong references to the location where activity was performed. The record referenced must conform with the lexicon app.certified.location. */
28
28
  locations?: ComAtprotoRepoStrongRef.Main[];
29
- /** A reference (AT-URI) to the project record that this activity is part of. The record referenced must conform with the lexicon org.hypercerts.claim.project. This activity must also be referenced by the project, establishing a bidirectional link. */
30
- project?: string;
31
29
  /** Client-declared timestamp when this record was originally created */
32
30
  createdAt: string;
33
31
  [k: string]: unknown;
@@ -35,18 +33,23 @@ export interface Main {
35
33
  export declare function isMain<V>(v: V): v is import("../../../../util").$TypedObject<V, "org.hypercerts.claim.activity", "main">;
36
34
  export declare function validateMain<V>(v: V): ValidationResult<Main & V>;
37
35
  export { type Main as Record, isMain as isRecord, validateMain as validateRecord, };
38
- /** Logical scope of the work using label-based conditions. All labels in `withinAllOf` must apply; at least one label in `withinAnyOf` must apply if provided; no label in `withinNoneOf` may apply. */
39
- export interface WorkScope {
40
- $type?: 'org.hypercerts.claim.activity#workScope';
41
- /** Labels that MUST all hold for the scope to apply. */
42
- withinAllOf?: string[];
43
- /** Labels of which AT LEAST ONE must hold (optional). If omitted or empty, imposes no additional condition. */
44
- withinAnyOf?: string[];
45
- /** Labels that MUST NOT hold for the scope to apply. */
46
- withinNoneOf?: string[];
36
+ export interface Contributor {
37
+ $type?: 'org.hypercerts.claim.activity#contributor';
38
+ contributorInformation: $Typed<ContributorIdentity> | $Typed<ComAtprotoRepoStrongRef.Main> | {
39
+ $type: string;
40
+ };
41
+ /** The relative weight/importance of this contribution (stored as a string to avoid float precision issues). Must be a positive numeric value. Weights do not need to sum to a specific total; normalization can be performed by the consuming application as needed. */
42
+ weight?: string;
43
+ contributionDetails?: $Typed<ContributorRole> | $Typed<ComAtprotoRepoStrongRef.Main> | {
44
+ $type: string;
45
+ };
47
46
  }
48
- export declare function isWorkScope<V>(v: V): v is import("../../../../util").$TypedObject<V, "org.hypercerts.claim.activity", "workScope">;
49
- export declare function validateWorkScope<V>(v: V): ValidationResult<WorkScope & V>;
47
+ export declare function isContributor<V>(v: V): v is import("../../../../util").$TypedObject<V, "org.hypercerts.claim.activity", "contributor">;
48
+ export declare function validateContributor<V>(v: V): ValidationResult<Contributor & V>;
49
+ /** Contributor information as a string (DID or identifier). */
50
+ export type ContributorIdentity = string;
51
+ /** Contribution details as a string. */
52
+ export type ContributorRole = string;
50
53
  export interface ActivityWeight {
51
54
  $type?: 'org.hypercerts.claim.activity#activityWeight';
52
55
  activity: ComAtprotoRepoStrongRef.Main;
@@ -1 +1 @@
1
- {"version":3,"file":"activity.d.ts","sourceRoot":"","sources":["../../../../../../generated/types/org/hypercerts/claim/activity.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAGj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xM,MAAM,WAAW,SAAS;IACxB,KAAK,CAAC,EAAE,yCAAyC,CAAA;IACjD,wDAAwD;IACxD,WAAW,CAAC,EAAE,MAAM,EAAE,CAAA;IACtB,+GAA+G;IAC/G,WAAW,CAAC,EAAE,MAAM,EAAE,CAAA;IACtB,wDAAwD;IACxD,YAAY,CAAC,EAAE,MAAM,EAAE,CAAA;CACxB;AAID,wBAAgB,WAAW,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,iGAElC;AAED,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,mCAExC;AAED,MAAM,WAAW,cAAc;IAC7B,KAAK,CAAC,EAAE,8CAA8C,CAAA;IACtD,QAAQ,EAAE,uBAAuB,CAAC,IAAI,CAAA;IACtC,oRAAoR;IACpR,MAAM,EAAE,MAAM,CAAA;CACf;AAID,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,sGAEvC;AAED,wBAAgB,sBAAsB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,wCAE7C"}
1
+ {"version":3,"file":"activity.d.ts","sourceRoot":"","sources":["../../../../../../generated/types/org/hypercerts/claim/activity.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAGjE,OAAO,EACL,KAAK,MAAM,EAGZ,MAAM,kBAAkB,CAAA;AACzB,OAAO,KAAK,KAAK,iBAAiB,MAAM,YAAY,CAAA;AACpD,OAAO,KAAK,KAAK,uBAAuB,MAAM,wCAAwC,CAAA;AAMtF,MAAM,WAAW,IAAI;IACnB,KAAK,EAAE,+BAA+B,CAAA;IACtC,8BAA8B;IAC9B,KAAK,EAAE,MAAM,CAAA;IACb,2CAA2C;IAC3C,gBAAgB,EAAE,MAAM,CAAA;IACxB,2DAA2D;IAC3D,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,KAAK,CAAC,EACF,MAAM,CAAC,iBAAiB,CAAC,G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EpC;AAED,wBAAgB,mBAAmB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,qCAE1C;AAED,+DAA+D;AAC/D,MAAM,MAAM,mBAAmB,GAAG,MAAM,CAAA;AACxC,wCAAwC;AACxC,MAAM,MAAM,eAAe,GAAG,MAAM,CAAA;AAEpC,MAAM,WAAW,cAAc;IAC7B,KAAK,CAAC,EAAE,8CAA8C,CAAA;IACtD,QAAQ,EAAE,uBAAuB,CAAC,IAAI,CAAA;IACtC,oRAAoR;IACpR,MAAM,EAAE,MAAM,CAAA;CACf;AAID,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,sGAEvC;AAED,wBAAgB,sBAAsB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,wCAE7C"}
@@ -1,20 +1,20 @@
1
1
  /**
2
2
  * GENERATED CODE - DO NOT MODIFY
3
3
  */
4
- import { type ValidationResult, BlobRef } from '@atproto/lexicon';
5
- import type * as OrgHypercertsClaimActivity from './activity.js';
4
+ import { type ValidationResult } from '@atproto/lexicon';
5
+ import type * as PubLeafletPagesLinearDocument from '../../../pub/leaflet/pages/linearDocument.js';
6
+ import type * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef.js';
6
7
  export interface Main {
7
8
  $type: 'org.hypercerts.claim.collection';
9
+ /** The type of this collection. Possible fields can be 'favorites', 'project', or any other type of collection. */
10
+ type?: string;
8
11
  /** The title of this collection */
9
12
  title: string;
10
- /** A short description of this collection */
13
+ /** Short summary of this collection, suitable for previews and list views */
11
14
  shortDescription?: string;
12
- /** Primary avatar image representing this collection across apps and views; typically a square image. */
13
- avatar?: BlobRef;
14
- /** The cover photo of this collection. */
15
- coverPhoto?: BlobRef;
16
- /** Array of activities with their associated weights in this collection */
17
- activities: OrgHypercertsClaimActivity.ActivityWeight[];
15
+ description?: PubLeafletPagesLinearDocument.Main;
16
+ /** Array of strong references to items in this collection. Items can be activities (org.hypercerts.claim.activity) and/or other collections (org.hypercerts.claim.collection). */
17
+ items: ComAtprotoRepoStrongRef.Main[];
18
18
  /** Client-declared timestamp when this record was originally created */
19
19
  createdAt: string;
20
20
  [k: string]: unknown;
@@ -1 +1 @@
1
- {"version":3,"file":"collection.d.ts","sourceRoot":"","sources":["../../../../../../generated/types/org/hypercerts/claim/collection.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,gBAAgB,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAQjE,OAAO,KAAK,KAAK,0BAA0B,MAAM,eAAe,CAAA;AAMhE,MAAM,WAAW,IAAI;IACnB,KAAK,EAAE,iCAAiC,CAAA;IACxC,mCAAmC;IACnC,KAAK,EAAE,MAAM,CAAA;IACb,6CAA6C;IAC7C,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,yGAAyG;IACzG,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,0CAA0C;IAC1C,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,2EAA2E;IAC3E,UAAU,EAAE,0BAA0B,CAAC,cAAc,EAAE,CAAA;IACvD,wEAAwE;IACxE,SAAS,EAAE,MAAM,CAAA;IACjB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACrB;AAID,wBAAgB,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,8FAE7B;AAED,wBAAgB,YAAY,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,8BAEnC;AAED,OAAO,EACL,KAAK,IAAI,IAAI,MAAM,EACnB,MAAM,IAAI,QAAQ,EAClB,YAAY,IAAI,cAAc,GAC/B,CAAA"}
1
+ {"version":3,"file":"collection.d.ts","sourceRoot":"","sources":["../../../../../../generated/types/org/hypercerts/claim/collection.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAQjE,OAAO,KAAK,KAAK,6BAA6B,MAAM,8CAA8C,CAAA;AAClG,OAAO,KAAK,KAAK,uBAAuB,MAAM,wCAAwC,CAAA;AAMtF,MAAM,WAAW,IAAI;IACnB,KAAK,EAAE,iCAAiC,CAAA;IACxC,mHAAmH;IACnH,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,mCAAmC;IACnC,KAAK,EAAE,MAAM,CAAA;IACb,6EAA6E;IAC7E,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,WAAW,CAAC,EAAE,6BAA6B,CAAC,IAAI,CAAA;IAChD,kLAAkL;IAClL,KAAK,EAAE,uBAAuB,CAAC,IAAI,EAAE,CAAA;IACrC,wEAAwE;IACxE,SAAS,EAAE,MAAM,CAAA;IACjB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACrB;AAID,wBAAgB,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,8FAE7B;AAED,wBAAgB,YAAY,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,8BAEnC;AAED,OAAO,EACL,KAAK,IAAI,IAAI,MAAM,EACnB,MAAM,IAAI,QAAQ,EAClB,YAAY,IAAI,cAAc,GAC/B,CAAA"}
@@ -3,22 +3,20 @@
3
3
  */
4
4
  import { type ValidationResult } from '@atproto/lexicon';
5
5
  export interface Main {
6
- $type: 'org.hypercerts.claim.contribution';
7
- /** Role or title of the contributor(s). */
6
+ $type: 'org.hypercerts.claim.contributionDetails';
7
+ /** Role or title of the contributor. */
8
8
  role?: string;
9
- /** List of the contributors (names, pseudonyms, or DIDs). If multiple contributors are stored in the same hypercertContribution, then they would have the exact same role. */
10
- contributors: string[];
11
- /** What the contribution concretely achieved */
12
- description?: string;
9
+ /** What the contribution concretely was. */
10
+ contributionDescription?: string;
13
11
  /** When this contribution started. This should be a subset of the hypercert timeframe. */
14
12
  startDate?: string;
15
- /** When this contribution finished. This should be a subset of the hypercert timeframe. */
13
+ /** When this contribution finished. This should be a subset of the hypercert timeframe. */
16
14
  endDate?: string;
17
- /** Client-declared timestamp when this record was originally created */
15
+ /** Client-declared timestamp when this record was originally created. */
18
16
  createdAt: string;
19
17
  [k: string]: unknown;
20
18
  }
21
- export declare function isMain<V>(v: V): v is import("../../../../util").$TypedObject<V, "org.hypercerts.claim.contribution", "main">;
19
+ export declare function isMain<V>(v: V): v is import("../../../../util").$TypedObject<V, "org.hypercerts.claim.contributionDetails", "main">;
22
20
  export declare function validateMain<V>(v: V): ValidationResult<Main & V>;
23
21
  export { type Main as Record, isMain as isRecord, validateMain as validateRecord, };
24
- //# sourceMappingURL=contribution.d.ts.map
22
+ //# sourceMappingURL=contributionDetails.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contributionDetails.d.ts","sourceRoot":"","sources":["../../../../../../generated/types/org/hypercerts/claim/contributionDetails.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAajE,MAAM,WAAW,IAAI;IACnB,KAAK,EAAE,0CAA0C,CAAA;IACjD,wCAAwC;IACxC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,4CAA4C;IAC5C,uBAAuB,CAAC,EAAE,MAAM,CAAA;IAChC,0FAA0F;IAC1F,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,2FAA2F;IAC3F,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,yEAAyE;IACzE,SAAS,EAAE,MAAM,CAAA;IACjB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACrB;AAID,wBAAgB,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,uGAE7B;AAED,wBAAgB,YAAY,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,8BAEnC;AAED,OAAO,EACL,KAAK,IAAI,IAAI,MAAM,EACnB,MAAM,IAAI,QAAQ,EAClB,YAAY,IAAI,cAAc,GAC/B,CAAA"}
@@ -0,0 +1,23 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { type ValidationResult } from '@atproto/lexicon';
5
+ import { type $Typed } from '../../../../util';
6
+ import type * as OrgHypercertsDefs from '../defs.js';
7
+ export interface Main {
8
+ $type: 'org.hypercerts.claim.contributorInformation';
9
+ /** DID or a URI to a social profile of the contributor. */
10
+ identifier?: string;
11
+ /** Display name of the contributor. */
12
+ displayName?: string;
13
+ image?: $Typed<OrgHypercertsDefs.Uri> | $Typed<OrgHypercertsDefs.SmallImage> | {
14
+ $type: string;
15
+ };
16
+ /** Client-declared timestamp when this record was originally created. */
17
+ createdAt: string;
18
+ [k: string]: unknown;
19
+ }
20
+ export declare function isMain<V>(v: V): v is import("../../../../util").$TypedObject<V, "org.hypercerts.claim.contributorInformation", "main">;
21
+ export declare function validateMain<V>(v: V): ValidationResult<Main & V>;
22
+ export { type Main as Record, isMain as isRecord, validateMain as validateRecord, };
23
+ //# sourceMappingURL=contributorInformation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contributorInformation.d.ts","sourceRoot":"","sources":["../../../../../../generated/types/org/hypercerts/claim/contributorInformation.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAGjE,OAAO,EACL,KAAK,MAAM,EAGZ,MAAM,kBAAkB,CAAA;AACzB,OAAO,KAAK,KAAK,iBAAiB,MAAM,YAAY,CAAA;AAMpD,MAAM,WAAW,IAAI;IACnB,KAAK,EAAE,6CAA6C,CAAA;IACpD,2DAA2D;IAC3D,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,uCAAuC;IACvC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,KAAK,CAAC,EACF,MAAM,CAAC,iBAAiB,CAAC,GAAG,CAAC,GAC7B,MAAM,CAAC,iBAAiB,CAAC,UAAU,CAAC,GACpC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,CAAA;IACrB,yEAAyE;IACzE,SAAS,EAAE,MAAM,CAAA;IACjB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACrB;AAID,wBAAgB,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,0GAE7B;AAED,wBAAgB,YAAY,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,8BAEnC;AAED,OAAO,EACL,KAAK,IAAI,IAAI,MAAM,EACnB,MAAM,IAAI,QAAQ,EAClB,YAAY,IAAI,cAAc,GAC/B,CAAA"}