@xyo-network/payload 2.38.8 → 2.38.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/dist/cjs/SchemaNameValidator.d.ts +30 -30
- package/dist/cjs/SchemaNameValidator.d.ts.map +1 -1
- package/dist/cjs/SchemaNameValidator.js +53 -53
- package/dist/cjs/SchemaNameValidator.js.map +1 -1
- package/dist/cjs/Validator/Validator.d.ts +1 -1
- package/dist/cjs/Validator/Validator.d.ts.map +1 -1
- package/dist/cjs/Validator/Validator.js.map +1 -1
- package/dist/cjs/models/XyoPayloadFindFilter.d.ts +2 -2
- package/dist/cjs/models/XyoPayloadFindFilter.d.ts.map +1 -1
- package/dist/docs.json +361 -361
- package/dist/esm/SchemaNameValidator.d.ts +30 -30
- package/dist/esm/SchemaNameValidator.d.ts.map +1 -1
- package/dist/esm/SchemaNameValidator.js +53 -53
- package/dist/esm/SchemaNameValidator.js.map +1 -1
- package/dist/esm/Validator/Validator.d.ts +1 -1
- package/dist/esm/Validator/Validator.d.ts.map +1 -1
- package/dist/esm/Validator/Validator.js +1 -1
- package/dist/esm/Validator/Validator.js.map +1 -1
- package/dist/esm/models/XyoPayloadFindFilter.d.ts +2 -2
- package/dist/esm/models/XyoPayloadFindFilter.d.ts.map +1 -1
- package/package.json +5 -5
- package/src/SchemaNameValidator.ts +51 -53
- package/src/Validator/Validator.ts +2 -1
- package/src/models/XyoPayloadFindFilter.ts +2 -2
|
@@ -3,14 +3,15 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export declare class XyoSchemaNameValidator {
|
|
5
5
|
schema?: string;
|
|
6
|
-
constructor(schema?: string);
|
|
7
6
|
private _parts?;
|
|
7
|
+
private _rootDomain?;
|
|
8
|
+
constructor(schema?: string);
|
|
8
9
|
/**
|
|
9
|
-
*
|
|
10
|
+
* Checks whether the schema is all lowercase
|
|
10
11
|
*
|
|
11
|
-
* @returns
|
|
12
|
+
* @returns boolean
|
|
12
13
|
*/
|
|
13
|
-
get
|
|
14
|
+
get isLowercase(): boolean;
|
|
14
15
|
/**
|
|
15
16
|
* Levels in the schema
|
|
16
17
|
*
|
|
@@ -18,20 +19,11 @@ export declare class XyoSchemaNameValidator {
|
|
|
18
19
|
*/
|
|
19
20
|
get levels(): number | undefined;
|
|
20
21
|
/**
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
* @returns boolean
|
|
24
|
-
*/
|
|
25
|
-
get isLowercase(): boolean;
|
|
26
|
-
/**
|
|
27
|
-
*
|
|
28
|
-
* Get a domain for the schema at a certain level
|
|
22
|
+
* The schema converted into a string array split on '.'
|
|
29
23
|
*
|
|
30
|
-
* @
|
|
31
|
-
* @returns string
|
|
24
|
+
* @returns string[]
|
|
32
25
|
*/
|
|
33
|
-
|
|
34
|
-
private _rootDomain?;
|
|
26
|
+
get parts(): string[] | undefined;
|
|
35
27
|
/**
|
|
36
28
|
* The rootDomain is the first two levels of the schema, in reverse order
|
|
37
29
|
* This can be used to determine who 'owns' that schema, based on domain
|
|
@@ -41,34 +33,42 @@ export declare class XyoSchemaNameValidator {
|
|
|
41
33
|
*/
|
|
42
34
|
get rootDomain(): string | undefined;
|
|
43
35
|
/**
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
* @returns boolean
|
|
36
|
+
* Run all static validations
|
|
37
|
+
* @returns Error[]
|
|
47
38
|
*/
|
|
48
|
-
|
|
39
|
+
all(): Error[];
|
|
40
|
+
/**
|
|
41
|
+
* Run all the validations
|
|
42
|
+
* @param checkExistance - boolean
|
|
43
|
+
* @returns Error[]
|
|
44
|
+
*/
|
|
45
|
+
allDynamic(): Promise<Error[]>;
|
|
49
46
|
/**
|
|
50
47
|
* Determines how many levels of the schema's reverse domain
|
|
51
48
|
* pass DNS resolution
|
|
52
49
|
*
|
|
53
50
|
* @returns number (0 if none exist)
|
|
54
51
|
*/
|
|
55
|
-
|
|
52
|
+
domainExistenceDepth(): Promise<number>;
|
|
56
53
|
/**
|
|
57
|
-
*
|
|
58
|
-
*
|
|
59
|
-
* @returns
|
|
54
|
+
* Checks if the root domain validates via DNS resolution
|
|
55
|
+
*
|
|
56
|
+
* @returns boolean
|
|
60
57
|
*/
|
|
61
|
-
|
|
58
|
+
rootDomainExists(): Promise<boolean>;
|
|
62
59
|
/**
|
|
63
|
-
*
|
|
64
|
-
*
|
|
60
|
+
*
|
|
61
|
+
* Get a domain for the schema at a certain level
|
|
62
|
+
*
|
|
63
|
+
* @param level - Zero based level to check
|
|
64
|
+
* @returns string
|
|
65
65
|
*/
|
|
66
|
-
|
|
66
|
+
private domainLevel;
|
|
67
67
|
}
|
|
68
|
-
/** @
|
|
68
|
+
/** @deprecated use XyoSchemaNameValidator instead */
|
|
69
69
|
export declare class SchemaValidator extends XyoSchemaNameValidator {
|
|
70
70
|
}
|
|
71
|
-
/** @
|
|
71
|
+
/** @deprecated use XyoSchemaNameValidator instead */
|
|
72
72
|
export declare class XyoSchemaValidator extends XyoSchemaNameValidator {
|
|
73
73
|
}
|
|
74
74
|
//# sourceMappingURL=SchemaNameValidator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SchemaNameValidator.d.ts","sourceRoot":"","sources":["../../src/SchemaNameValidator.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,qBAAa,sBAAsB;IAC1B,MAAM,CAAC,EAAE,MAAM,CAAA;
|
|
1
|
+
{"version":3,"file":"SchemaNameValidator.d.ts","sourceRoot":"","sources":["../../src/SchemaNameValidator.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,qBAAa,sBAAsB;IAC1B,MAAM,CAAC,EAAE,MAAM,CAAA;IACtB,OAAO,CAAC,MAAM,CAAC,CAAU;IACzB,OAAO,CAAC,WAAW,CAAC,CAAQ;gBAChB,MAAM,CAAC,EAAE,MAAM;IAI3B;;;;OAIG;IACH,IAAI,WAAW,IAAI,OAAO,CAEzB;IAED;;;;OAIG;IACH,IAAI,MAAM,IAAI,MAAM,GAAG,SAAS,CAE/B;IAED;;;;OAIG;IACH,IAAI,KAAK,yBAGR;IAED;;;;;;OAMG;IACH,IAAI,UAAU,IAAI,MAAM,GAAG,SAAS,CAGnC;IAED;;;OAGG;IAEI,GAAG;IAQV;;;;OAIG;IAEU,UAAU;IAOvB;;;;;OAKG;IACU,oBAAoB;IAYjC;;;;OAIG;IACU,gBAAgB;IAI7B;;;;;;OAMG;IACH,OAAO,CAAC,WAAW;CAMpB;AAED,qDAAqD;AACrD,qBAAa,eAAgB,SAAQ,sBAAsB;CAAG;AAE9D,qDAAqD;AACrD,qBAAa,kBAAmB,SAAQ,sBAAsB;CAAG"}
|
|
@@ -11,14 +11,13 @@ class XyoSchemaNameValidator {
|
|
|
11
11
|
this.schema = schema;
|
|
12
12
|
}
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* Checks whether the schema is all lowercase
|
|
15
15
|
*
|
|
16
|
-
* @returns
|
|
16
|
+
* @returns boolean
|
|
17
17
|
*/
|
|
18
|
-
get
|
|
19
|
-
var _a
|
|
20
|
-
this.
|
|
21
|
-
return this._parts;
|
|
18
|
+
get isLowercase() {
|
|
19
|
+
var _a;
|
|
20
|
+
return this.schema === ((_a = this.schema) === null || _a === void 0 ? void 0 : _a.toLowerCase());
|
|
22
21
|
}
|
|
23
22
|
/**
|
|
24
23
|
* Levels in the schema
|
|
@@ -30,24 +29,14 @@ class XyoSchemaNameValidator {
|
|
|
30
29
|
return (_a = this.parts) === null || _a === void 0 ? void 0 : _a.length;
|
|
31
30
|
}
|
|
32
31
|
/**
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
* @returns boolean
|
|
36
|
-
*/
|
|
37
|
-
get isLowercase() {
|
|
38
|
-
var _a;
|
|
39
|
-
return this.schema === ((_a = this.schema) === null || _a === void 0 ? void 0 : _a.toLowerCase());
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
*
|
|
43
|
-
* Get a domain for the schema at a certain level
|
|
32
|
+
* The schema converted into a string array split on '.'
|
|
44
33
|
*
|
|
45
|
-
* @
|
|
46
|
-
* @returns string
|
|
34
|
+
* @returns string[]
|
|
47
35
|
*/
|
|
48
|
-
|
|
49
|
-
var _a;
|
|
50
|
-
|
|
36
|
+
get parts() {
|
|
37
|
+
var _a, _b;
|
|
38
|
+
this._parts = (_a = this._parts) !== null && _a !== void 0 ? _a : (_b = this.schema) === null || _b === void 0 ? void 0 : _b.split('.');
|
|
39
|
+
return this._parts;
|
|
51
40
|
}
|
|
52
41
|
/**
|
|
53
42
|
* The rootDomain is the first two levels of the schema, in reverse order
|
|
@@ -62,13 +51,34 @@ class XyoSchemaNameValidator {
|
|
|
62
51
|
return this._rootDomain;
|
|
63
52
|
}
|
|
64
53
|
/**
|
|
65
|
-
*
|
|
66
|
-
*
|
|
67
|
-
* @returns boolean
|
|
54
|
+
* Run all static validations
|
|
55
|
+
* @returns Error[]
|
|
68
56
|
*/
|
|
69
|
-
|
|
57
|
+
all() {
|
|
58
|
+
var _a, _b, _c;
|
|
59
|
+
const errors = [];
|
|
60
|
+
if (((_b = (_a = this.schema) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 0) === 0)
|
|
61
|
+
errors.push(Error('schema missing'));
|
|
62
|
+
else if (((_c = this.levels) !== null && _c !== void 0 ? _c : 0) < 3)
|
|
63
|
+
errors.push(Error(`schema levels < 3 [${this.levels}, ${this.schema}]`));
|
|
64
|
+
else if (!this.isLowercase)
|
|
65
|
+
errors.push(Error(`schema not lowercase [${this.schema}]`));
|
|
66
|
+
return errors;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Run all the validations
|
|
70
|
+
* @param checkExistance - boolean
|
|
71
|
+
* @returns Error[]
|
|
72
|
+
*/
|
|
73
|
+
allDynamic() {
|
|
74
|
+
var _a, _b;
|
|
70
75
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
71
|
-
|
|
76
|
+
const errors = [];
|
|
77
|
+
if (((_b = (_a = this.schema) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 0) === 0)
|
|
78
|
+
errors.push(Error('schema missing'));
|
|
79
|
+
else if (!(yield this.rootDomainExists()))
|
|
80
|
+
errors.push(Error(`schema root domain must exist [${this.rootDomain}]`));
|
|
81
|
+
return errors;
|
|
72
82
|
});
|
|
73
83
|
}
|
|
74
84
|
/**
|
|
@@ -77,7 +87,7 @@ class XyoSchemaNameValidator {
|
|
|
77
87
|
*
|
|
78
88
|
* @returns number (0 if none exist)
|
|
79
89
|
*/
|
|
80
|
-
|
|
90
|
+
domainExistenceDepth() {
|
|
81
91
|
var _a;
|
|
82
92
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
83
93
|
const levels = (_a = this.levels) !== null && _a !== void 0 ? _a : 0;
|
|
@@ -92,43 +102,33 @@ class XyoSchemaNameValidator {
|
|
|
92
102
|
});
|
|
93
103
|
}
|
|
94
104
|
/**
|
|
95
|
-
*
|
|
96
|
-
*
|
|
97
|
-
* @returns
|
|
105
|
+
* Checks if the root domain validates via DNS resolution
|
|
106
|
+
*
|
|
107
|
+
* @returns boolean
|
|
98
108
|
*/
|
|
99
|
-
|
|
100
|
-
var _a, _b;
|
|
109
|
+
rootDomainExists() {
|
|
101
110
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
102
|
-
|
|
103
|
-
if (((_b = (_a = this.schema) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 0) === 0)
|
|
104
|
-
errors.push(Error('schema missing'));
|
|
105
|
-
else if (!(yield this.rootDomainExists()))
|
|
106
|
-
errors.push(Error(`schema root domain must exist [${this.rootDomain}]`));
|
|
107
|
-
return errors;
|
|
111
|
+
return yield (0, core_1.domainExists)(this.rootDomain);
|
|
108
112
|
});
|
|
109
113
|
}
|
|
110
114
|
/**
|
|
111
|
-
*
|
|
112
|
-
*
|
|
115
|
+
*
|
|
116
|
+
* Get a domain for the schema at a certain level
|
|
117
|
+
*
|
|
118
|
+
* @param level - Zero based level to check
|
|
119
|
+
* @returns string
|
|
113
120
|
*/
|
|
114
|
-
|
|
115
|
-
var _a
|
|
116
|
-
|
|
117
|
-
if (((_b = (_a = this.schema) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 0) === 0)
|
|
118
|
-
errors.push(Error('schema missing'));
|
|
119
|
-
else if (((_c = this.levels) !== null && _c !== void 0 ? _c : 0) < 3)
|
|
120
|
-
errors.push(Error(`schema levels < 3 [${this.levels}, ${this.schema}]`));
|
|
121
|
-
else if (!this.isLowercase)
|
|
122
|
-
errors.push(Error(`schema not lowercase [${this.schema}]`));
|
|
123
|
-
return errors;
|
|
121
|
+
domainLevel(level) {
|
|
122
|
+
var _a;
|
|
123
|
+
return (_a = this.parts) === null || _a === void 0 ? void 0 : _a.slice(0, level + 1).reverse().join('.');
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
126
|
exports.XyoSchemaNameValidator = XyoSchemaNameValidator;
|
|
127
|
-
/** @
|
|
127
|
+
/** @deprecated use XyoSchemaNameValidator instead */
|
|
128
128
|
class SchemaValidator extends XyoSchemaNameValidator {
|
|
129
129
|
}
|
|
130
130
|
exports.SchemaValidator = SchemaValidator;
|
|
131
|
-
/** @
|
|
131
|
+
/** @deprecated use XyoSchemaNameValidator instead */
|
|
132
132
|
class XyoSchemaValidator extends XyoSchemaNameValidator {
|
|
133
133
|
}
|
|
134
134
|
exports.XyoSchemaValidator = XyoSchemaValidator;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SchemaNameValidator.js","sourceRoot":"","sources":["../../src/SchemaNameValidator.ts"],"names":[],"mappings":";;;;AAAA,4CAAgD;AAEhD;;GAEG;AACH,MAAa,sBAAsB;
|
|
1
|
+
{"version":3,"file":"SchemaNameValidator.js","sourceRoot":"","sources":["../../src/SchemaNameValidator.ts"],"names":[],"mappings":";;;;AAAA,4CAAgD;AAEhD;;GAEG;AACH,MAAa,sBAAsB;IAIjC,YAAY,MAAe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Q,sBAAsB;CAAG;AAAjE,gDAAiE"}
|
|
@@ -2,8 +2,8 @@ import { XyoValidator, XyoValidatorBase } from '@xyo-network/core';
|
|
|
2
2
|
import { XyoPayload } from '../models';
|
|
3
3
|
import { XyoSchemaNameValidator } from '../SchemaNameValidator';
|
|
4
4
|
export declare class PayloadValidator<T extends XyoPayload = XyoPayload> extends XyoValidatorBase<T> implements XyoValidator<T> {
|
|
5
|
-
constructor(payload: T);
|
|
6
5
|
private _schemaValidator?;
|
|
6
|
+
constructor(payload: T);
|
|
7
7
|
get schemaValidator(): XyoSchemaNameValidator;
|
|
8
8
|
schemaName(): Error[];
|
|
9
9
|
validate(): Error[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Validator.d.ts","sourceRoot":"","sources":["../../../src/Validator/Validator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAA;AAElE,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAA;AACtC,OAAO,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAA;AAE/D,qBAAa,gBAAgB,CAAC,CAAC,SAAS,UAAU,GAAG,UAAU,CAAE,SAAQ,gBAAgB,CAAC,CAAC,CAAE,YAAW,YAAY,CAAC,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"Validator.d.ts","sourceRoot":"","sources":["../../../src/Validator/Validator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAA;AAElE,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAA;AACtC,OAAO,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAA;AAE/D,qBAAa,gBAAgB,CAAC,CAAC,SAAS,UAAU,GAAG,UAAU,CAAE,SAAQ,gBAAgB,CAAC,CAAC,CAAE,YAAW,YAAY,CAAC,CAAC,CAAC;IACrH,OAAO,CAAC,gBAAgB,CAAC,CAAwB;gBAErC,OAAO,EAAE,CAAC;IAItB,IAAI,eAAe,2BAGlB;IAEM,UAAU;IAUV,QAAQ;CAKhB;AAED,8CAA8C;AAC9C,qBAAa,mBAAmB,CAAC,CAAC,SAAS,UAAU,GAAG,UAAU,CAAE,SAAQ,gBAAgB,CAAC,CAAC,CAAC;CAAG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Validator.js","sourceRoot":"","sources":["../../../src/Validator/Validator.ts"],"names":[],"mappings":";;;AAAA,4CAAkE;AAGlE,gEAA+D;AAE/D,MAAa,gBAAoD,SAAQ,uBAAmB;
|
|
1
|
+
{"version":3,"file":"Validator.js","sourceRoot":"","sources":["../../../src/Validator/Validator.ts"],"names":[],"mappings":";;;AAAA,4CAAkE;AAGlE,gEAA+D;AAE/D,MAAa,gBAAoD,SAAQ,uBAAmB;IAG1F,YAAY,OAAU;QACpB,KAAK,CAAC,OAAO,CAAC,CAAA;IAChB,CAAC;IAED,IAAI,eAAe;;QACjB,IAAI,CAAC,gBAAgB,GAAG,MAAA,IAAI,CAAC,gBAAgB,mCAAI,IAAI,4CAAsB,CAAC,MAAA,IAAI,CAAC,GAAG,CAAC,MAAM,mCAAI,EAAE,CAAC,CAAA;QAClG,OAAO,IAAI,CAAC,gBAAgB,CAAA;IAC9B,CAAC;IAEM,UAAU;QACf,MAAM,MAAM,GAAY,EAAE,CAAA;QAC1B,IAAI,IAAI,CAAC,GAAG,CAAC,MAAM,KAAK,SAAS,EAAE;YACjC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC,CAAA;SACrC;aAAM;YACL,MAAM,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,eAAe,CAAC,GAAG,EAAE,CAAC,CAAA;SAC3C;QACD,OAAO,MAAM,CAAA;IACf,CAAC;IAEM,QAAQ;QACb,MAAM,MAAM,GAAY,EAAE,CAAA;QAC1B,MAAM,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,UAAU,EAAE,CAAC,CAAA;QACjC,OAAO,MAAM,CAAA;IACf,CAAC;CACF;AA3BD,4CA2BC;AAED,8CAA8C;AAC9C,MAAa,mBAAuD,SAAQ,gBAAmB;CAAG;AAAlG,kDAAkG"}
|
|
@@ -7,10 +7,10 @@ export interface XyoPayloadFindFilterHashOffset {
|
|
|
7
7
|
}
|
|
8
8
|
export declare type XyoPayloadFindFilterOffset = XyoPayloadFindFilterTimeOffset | XyoPayloadFindFilterHashOffset;
|
|
9
9
|
export declare type XyoPayloadFindFilter = {
|
|
10
|
+
limit?: number;
|
|
10
11
|
order?: 'desc' | 'asc';
|
|
12
|
+
schema?: string | string[];
|
|
11
13
|
/** @deprecated use offset instead */
|
|
12
14
|
timestamp?: number;
|
|
13
|
-
limit?: number;
|
|
14
|
-
schema?: string | string[];
|
|
15
15
|
} & XyoPayloadFindFilterOffset;
|
|
16
16
|
//# sourceMappingURL=XyoPayloadFindFilter.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"XyoPayloadFindFilter.d.ts","sourceRoot":"","sources":["../../../src/models/XyoPayloadFindFilter.ts"],"names":[],"mappings":"AAAA,wDAAwD;AACxD,MAAM,WAAW,8BAA8B;IAC7C,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAED,MAAM,WAAW,8BAA8B;IAC7C,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAGD,oBAAY,0BAA0B,GAAG,8BAA8B,GAAG,8BAA8B,CAAA;AAExG,oBAAY,oBAAoB,GAAG;IACjC,KAAK,CAAC,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"XyoPayloadFindFilter.d.ts","sourceRoot":"","sources":["../../../src/models/XyoPayloadFindFilter.ts"],"names":[],"mappings":"AAAA,wDAAwD;AACxD,MAAM,WAAW,8BAA8B;IAC7C,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAED,MAAM,WAAW,8BAA8B;IAC7C,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAGD,oBAAY,0BAA0B,GAAG,8BAA8B,GAAG,8BAA8B,CAAA;AAExG,oBAAY,oBAAoB,GAAG;IACjC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,KAAK,CAAC,EAAE,MAAM,GAAG,KAAK,CAAA;IACtB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAC1B,qCAAqC;IACrC,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,GAAG,0BAA0B,CAAA"}
|