@rocicorp/zero 0.6.2024111701 → 0.6.2024111900
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/out/{chunk-NBTG5EEV.js → chunk-7E5TITAZ.js} +135 -48
- package/out/chunk-7E5TITAZ.js.map +7 -0
- package/out/shared/src/valita.d.ts.map +1 -1
- package/out/shared/src/valita.js +53 -4
- package/out/shared/src/valita.js.map +1 -1
- package/out/solid.js +1 -1
- package/out/zero-cache/src/config/zero-config.d.ts.map +1 -1
- package/out/zero-cache/src/config/zero-config.js +12 -4
- package/out/zero-cache/src/config/zero-config.js.map +1 -1
- package/out/zero-cache/src/services/change-streamer/pg/schema/shard.js +1 -1
- package/out/zero-cache/src/services/mutagen/write-authorizer.d.ts.map +1 -1
- package/out/zero-cache/src/services/mutagen/write-authorizer.js +15 -35
- package/out/zero-cache/src/services/mutagen/write-authorizer.js.map +1 -1
- package/out/zero-cache/src/services/view-syncer/cvr.d.ts.map +1 -1
- package/out/zero-cache/src/services/view-syncer/cvr.js +8 -2
- package/out/zero-cache/src/services/view-syncer/cvr.js.map +1 -1
- package/out/zero-cache/src/services/view-syncer/schema/types.d.ts +80 -15
- package/out/zero-cache/src/services/view-syncer/schema/types.d.ts.map +1 -1
- package/out/zero-protocol/src/ast.d.ts +75 -18
- package/out/zero-protocol/src/ast.d.ts.map +1 -1
- package/out/zero-protocol/src/ast.js +36 -13
- package/out/zero-protocol/src/ast.js.map +1 -1
- package/out/zero-protocol/src/change-desired-queries.d.ts +32 -6
- package/out/zero-protocol/src/change-desired-queries.d.ts.map +1 -1
- package/out/zero-protocol/src/connect.d.ts +32 -6
- package/out/zero-protocol/src/connect.d.ts.map +1 -1
- package/out/zero-protocol/src/down.d.ts +32 -6
- package/out/zero-protocol/src/down.d.ts.map +1 -1
- package/out/zero-protocol/src/poke.d.ts +64 -12
- package/out/zero-protocol/src/poke.d.ts.map +1 -1
- package/out/zero-protocol/src/queries-patch.d.ts +48 -9
- package/out/zero-protocol/src/queries-patch.d.ts.map +1 -1
- package/out/zero-protocol/src/up.d.ts +32 -6
- package/out/zero-protocol/src/up.d.ts.map +1 -1
- package/out/zero-schema/src/compiled-authorization.d.ts +224 -42
- package/out/zero-schema/src/compiled-authorization.d.ts.map +1 -1
- package/out/zero.js +1 -1
- package/out/zql/src/builder/builder.d.ts.map +1 -1
- package/out/zql/src/builder/builder.js +10 -12
- package/out/zql/src/builder/builder.js.map +1 -1
- package/out/zql/src/builder/filter.d.ts.map +1 -1
- package/out/zql/src/builder/filter.js +20 -5
- package/out/zql/src/builder/filter.js.map +1 -1
- package/out/zql/src/ivm/memory-source.js +4 -4
- package/out/zql/src/ivm/memory-source.js.map +1 -1
- package/out/zql/src/query/expression.d.ts +3 -2
- package/out/zql/src/query/expression.d.ts.map +1 -1
- package/out/zql/src/query/query-impl.d.ts.map +1 -1
- package/out/zqlite/src/table-source.d.ts +1 -1
- package/out/zqlite/src/table-source.d.ts.map +1 -1
- package/out/zqlite/src/table-source.js +38 -10
- package/out/zqlite/src/table-source.js.map +1 -1
- package/package.json +1 -1
- package/out/chunk-NBTG5EEV.js.map +0 -7
- package/out/zql/src/builder/error.d.ts +0 -3
- package/out/zql/src/builder/error.d.ts.map +0 -1
- package/out/zql/src/builder/error.js +0 -3
- package/out/zql/src/builder/error.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../zero-cache/src/services/view-syncer/schema/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,qCAAqC,CAAC;AAKzD,eAAO,MAAM,gBAAgB;IAC3B;;OAEG;;IAGH;;;;;;;;;;;;;;;;OAgBG;;aAEH,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE1D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,kBAAkB,GAAG,UAAU,C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,cAAc;;;;;;;;;;;;;;;;;;;;;;;eAAgD,CAAC;AAE5E,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAEtD,eAAO,MAAM,gBAAgB;;;;;;;aAI3B,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE1D,MAAM,MAAM,aAAa,GAAG,UAAU,GAAG;IAAC,EAAE,EAAE,KAAK,CAAA;CAAC,CAAC;AACrD,MAAM,MAAM,aAAa,GAAG,UAAU,GAAG;IAAC,EAAE,EAAE,KAAK,CAAA;CAAC,CAAC;AAErD,eAAO,MAAM,iBAAiB;;;;;;aAG5B,CAAC;AAEH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;eAA+C,CAAC;AAEhF,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE,wBAAgB,aAAa,CAAC,CAAC,EAAE,UAAU,UAQ1C;AAED,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,CAkBzD"}
|
|
@@ -18,12 +18,25 @@ export declare const simpleOperatorSchema: v.UnionType<[v.UnionType<[v.Type<"=">
|
|
|
18
18
|
export declare const simpleConditionSchema: v.ObjectType<{
|
|
19
19
|
type: v.Type<"simple">;
|
|
20
20
|
op: v.UnionType<[v.UnionType<[v.Type<"=">, v.Type<"!=">, v.Type<"IS">, v.Type<"IS NOT">]>, v.UnionType<[v.Type<"<">, v.Type<">">, v.Type<"<=">, v.Type<">=">]>, v.UnionType<[v.Type<"LIKE">, v.Type<"NOT LIKE">, v.Type<"ILIKE">, v.Type<"NOT ILIKE">]>, v.UnionType<[v.Type<"IN">, v.Type<"NOT IN">]>]>;
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
left: v.UnionType<[v.ObjectType<{
|
|
22
|
+
type: v.Type<"literal">;
|
|
23
|
+
value: v.UnionType<[v.Type<string>, v.Type<number>, v.Type<boolean>, v.Type<null>, v.Type<readonly (string | number | boolean)[]>]>;
|
|
24
|
+
}, undefined>, v.ObjectType<{
|
|
25
|
+
type: v.Type<"column">;
|
|
26
|
+
name: v.Type<string>;
|
|
27
|
+
}, undefined>, v.ObjectType<{
|
|
23
28
|
type: v.Type<"static">;
|
|
24
29
|
anchor: v.UnionType<[v.Type<"authData">, v.Type<"preMutationRow">]>;
|
|
25
30
|
field: v.Type<string>;
|
|
26
31
|
}, undefined>]>;
|
|
32
|
+
right: v.UnionType<[v.ObjectType<{
|
|
33
|
+
type: v.Type<"static">;
|
|
34
|
+
anchor: v.UnionType<[v.Type<"authData">, v.Type<"preMutationRow">]>;
|
|
35
|
+
field: v.Type<string>;
|
|
36
|
+
}, undefined>, v.ObjectType<{
|
|
37
|
+
type: v.Type<"literal">;
|
|
38
|
+
value: v.UnionType<[v.Type<string>, v.Type<number>, v.Type<boolean>, v.Type<null>, v.Type<readonly (string | number | boolean)[]>]>;
|
|
39
|
+
}, undefined>]>;
|
|
27
40
|
}, undefined>;
|
|
28
41
|
export declare const correlatedSubqueryConditionOperatorSchema: v.UnionType<[v.Type<"EXISTS">, v.Type<"NOT EXISTS">]>;
|
|
29
42
|
export declare const correlatedSubqueryConditionSchema: v.ObjectType<Readonly<{
|
|
@@ -34,11 +47,24 @@ export declare const correlatedSubqueryConditionSchema: v.ObjectType<Readonly<{
|
|
|
34
47
|
export declare const conditionSchema: v.UnionType<[v.ObjectType<{
|
|
35
48
|
type: v.Type<"simple">;
|
|
36
49
|
op: v.UnionType<[v.UnionType<[v.Type<"=">, v.Type<"!=">, v.Type<"IS">, v.Type<"IS NOT">]>, v.UnionType<[v.Type<"<">, v.Type<">">, v.Type<"<=">, v.Type<">=">]>, v.UnionType<[v.Type<"LIKE">, v.Type<"NOT LIKE">, v.Type<"ILIKE">, v.Type<"NOT ILIKE">]>, v.UnionType<[v.Type<"IN">, v.Type<"NOT IN">]>]>;
|
|
37
|
-
|
|
38
|
-
|
|
50
|
+
left: v.UnionType<[v.ObjectType<{
|
|
51
|
+
type: v.Type<"literal">;
|
|
52
|
+
value: v.UnionType<[v.Type<string>, v.Type<number>, v.Type<boolean>, v.Type<null>, v.Type<readonly (string | number | boolean)[]>]>;
|
|
53
|
+
}, undefined>, v.ObjectType<{
|
|
54
|
+
type: v.Type<"column">;
|
|
55
|
+
name: v.Type<string>;
|
|
56
|
+
}, undefined>, v.ObjectType<{
|
|
57
|
+
type: v.Type<"static">;
|
|
58
|
+
anchor: v.UnionType<[v.Type<"authData">, v.Type<"preMutationRow">]>;
|
|
59
|
+
field: v.Type<string>;
|
|
60
|
+
}, undefined>]>;
|
|
61
|
+
right: v.UnionType<[v.ObjectType<{
|
|
39
62
|
type: v.Type<"static">;
|
|
40
63
|
anchor: v.UnionType<[v.Type<"authData">, v.Type<"preMutationRow">]>;
|
|
41
64
|
field: v.Type<string>;
|
|
65
|
+
}, undefined>, v.ObjectType<{
|
|
66
|
+
type: v.Type<"literal">;
|
|
67
|
+
value: v.UnionType<[v.Type<string>, v.Type<number>, v.Type<boolean>, v.Type<null>, v.Type<readonly (string | number | boolean)[]>]>;
|
|
42
68
|
}, undefined>]>;
|
|
43
69
|
}, undefined>, v.Type<Conjunction>, v.Type<Disjunction>, v.ObjectType<Readonly<{
|
|
44
70
|
type: v.Type<"correlatedSubquery">;
|
|
@@ -61,12 +87,25 @@ export declare const astSchema: v.ObjectType<{
|
|
|
61
87
|
where: v.Optional<{
|
|
62
88
|
type: "simple";
|
|
63
89
|
op: "=" | "!=" | "IS" | "IS NOT" | "<" | ">" | "<=" | ">=" | "LIKE" | "NOT LIKE" | "ILIKE" | "NOT ILIKE" | "IN" | "NOT IN";
|
|
64
|
-
|
|
65
|
-
|
|
90
|
+
left: {
|
|
91
|
+
type: "literal";
|
|
92
|
+
value: string | number | boolean | readonly (string | number | boolean)[] | null;
|
|
93
|
+
} | {
|
|
94
|
+
type: "column";
|
|
95
|
+
name: string;
|
|
96
|
+
} | {
|
|
97
|
+
type: "static";
|
|
98
|
+
anchor: "authData" | "preMutationRow";
|
|
99
|
+
field: string;
|
|
100
|
+
};
|
|
101
|
+
right: {
|
|
102
|
+
type: "literal";
|
|
103
|
+
value: string | number | boolean | readonly (string | number | boolean)[] | null;
|
|
104
|
+
} | {
|
|
66
105
|
type: "static";
|
|
67
106
|
anchor: "authData" | "preMutationRow";
|
|
68
107
|
field: string;
|
|
69
|
-
}
|
|
108
|
+
};
|
|
70
109
|
} | Conjunction | Disjunction | {
|
|
71
110
|
readonly type: "correlatedSubquery";
|
|
72
111
|
readonly related: CorrelatedSubquery;
|
|
@@ -118,7 +157,20 @@ export type CorrelatedSubquery = {
|
|
|
118
157
|
readonly subquery: AST;
|
|
119
158
|
readonly hidden?: boolean | undefined;
|
|
120
159
|
};
|
|
121
|
-
export type ValuePosition =
|
|
160
|
+
export type ValuePosition = LiteralReference | Parameter | ColumnReference;
|
|
161
|
+
export type ColumnReference = {
|
|
162
|
+
readonly type: 'column';
|
|
163
|
+
/**
|
|
164
|
+
* Not a path yet as we're currently not allowing
|
|
165
|
+
* comparisons across tables. This will need to
|
|
166
|
+
* be a path through the tree in the near future.
|
|
167
|
+
*/
|
|
168
|
+
readonly name: string;
|
|
169
|
+
};
|
|
170
|
+
type LiteralReference = {
|
|
171
|
+
readonly type: 'literal';
|
|
172
|
+
readonly value: LiteralValue;
|
|
173
|
+
};
|
|
122
174
|
export type LiteralValue = string | number | boolean | null | ReadonlyArray<string | number | boolean>;
|
|
123
175
|
/**
|
|
124
176
|
* Starting only with SimpleCondition for now.
|
|
@@ -127,15 +179,20 @@ export type LiteralValue = string | number | boolean | null | ReadonlyArray<stri
|
|
|
127
179
|
*/
|
|
128
180
|
export type Condition = SimpleCondition | Conjunction | Disjunction | CorrelatedSubqueryCondition;
|
|
129
181
|
export type SimpleCondition = {
|
|
130
|
-
type: 'simple';
|
|
131
|
-
op: SimpleOperator;
|
|
182
|
+
readonly type: 'simple';
|
|
183
|
+
readonly op: SimpleOperator;
|
|
184
|
+
readonly left: ValuePosition;
|
|
132
185
|
/**
|
|
133
|
-
*
|
|
134
|
-
*
|
|
135
|
-
* be a path through the tree in the near future.
|
|
186
|
+
* `null` is absent since we do not have an `IS` or `IS NOT`
|
|
187
|
+
* operator defined and `null != null` in SQL.
|
|
136
188
|
*/
|
|
137
|
-
|
|
138
|
-
|
|
189
|
+
readonly right: Exclude<ValuePosition, ColumnReference>;
|
|
190
|
+
};
|
|
191
|
+
export type LiteralCondition = {
|
|
192
|
+
type: 'literal';
|
|
193
|
+
op: SimpleOperator;
|
|
194
|
+
leftValue: ValuePosition;
|
|
195
|
+
rightValue: ValuePosition;
|
|
139
196
|
};
|
|
140
197
|
export type Conjunction = {
|
|
141
198
|
type: 'and';
|
|
@@ -170,9 +227,9 @@ export type CorrelatedSubqueryConditionOperator = 'EXISTS' | 'NOT EXISTS';
|
|
|
170
227
|
*/
|
|
171
228
|
export type Parameter = StaticParameter;
|
|
172
229
|
type StaticParameter = {
|
|
173
|
-
type: 'static';
|
|
174
|
-
anchor: 'authData' | 'preMutationRow';
|
|
175
|
-
field: string;
|
|
230
|
+
readonly type: 'static';
|
|
231
|
+
readonly anchor: 'authData' | 'preMutationRow';
|
|
232
|
+
readonly field: string;
|
|
176
233
|
};
|
|
177
234
|
export declare function normalizeAST(ast: AST): Required<AST>;
|
|
178
235
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ast.d.ts","sourceRoot":"","sources":["../../../../zero-protocol/src/ast.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,KAAK,CAAC,MAAM,4BAA4B,CAAC;AAEhD,OAAO,EAAY,KAAK,GAAG,EAAC,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"ast.d.ts","sourceRoot":"","s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EAAE,oBAAoB,CAAC;IAC3B,OAAO,EAAE,kBAAkB,CAAC;IAC5B,EAAE,EAAE,mCAAmC,CAAC;CACzC,CAAC;AAEF,MAAM,MAAM,mCAAmC,GAAG,QAAQ,GAAG,YAAY,CAAC;AAE1E;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,MAAM,SAAS,GAAG,eAAe,CAAC;AACxC,KAAK,eAAe,GAAG;IACrB,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC;IAMxB,QAAQ,CAAC,MAAM,EAAE,UAAU,GAAG,gBAAgB,CAAC;IAC/C,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CACxB,CAAC;AAGF,wBAAgB,YAAY,CAAC,GAAG,EAAE,GAAG,GAAG,QAAQ,CAAC,GAAG,CAAC,CAkCpD"}
|
|
@@ -10,6 +10,7 @@ import { must } from '../../shared/src/must.js';
|
|
|
10
10
|
import * as v from '../../shared/src/valita.js';
|
|
11
11
|
import { defined } from '../../shared/src/arrays.js';
|
|
12
12
|
import { rowSchema } from './data.js';
|
|
13
|
+
import { assert } from '../../shared/src/asserts.js';
|
|
13
14
|
export const selectorSchema = v.string();
|
|
14
15
|
const orderingElementSchema = v.readonly(v.tuple([selectorSchema, v.union(v.literal('asc'), v.literal('desc'))]));
|
|
15
16
|
export const orderingSchema = v.readonlyArray(orderingElementSchema);
|
|
@@ -19,15 +20,25 @@ export const orderOpsSchema = v.union(v.literal('<'), v.literal('>'), v.literal(
|
|
|
19
20
|
export const likeOpsSchema = v.union(v.literal('LIKE'), v.literal('NOT LIKE'), v.literal('ILIKE'), v.literal('NOT ILIKE'));
|
|
20
21
|
export const inOpsSchema = v.union(v.literal('IN'), v.literal('NOT IN'));
|
|
21
22
|
export const simpleOperatorSchema = v.union(equalityOpsSchema, orderOpsSchema, likeOpsSchema, inOpsSchema);
|
|
23
|
+
const literalReferenceSchema = v.object({
|
|
24
|
+
type: v.literal('literal'),
|
|
25
|
+
value: v.union(v.string(), v.number(), v.boolean(), v.null(), v.readonlyArray(v.union(v.string(), v.number(), v.boolean()))),
|
|
26
|
+
});
|
|
27
|
+
const columnReferenceSchema = v.object({
|
|
28
|
+
type: v.literal('column'),
|
|
29
|
+
name: v.string(),
|
|
30
|
+
});
|
|
31
|
+
const parameterReferenceSchema = v.object({
|
|
32
|
+
type: v.literal('static'),
|
|
33
|
+
anchor: v.union(v.literal('authData'), v.literal('preMutationRow')),
|
|
34
|
+
field: v.string(),
|
|
35
|
+
});
|
|
36
|
+
const conditionValueSchema = v.union(literalReferenceSchema, columnReferenceSchema, parameterReferenceSchema);
|
|
22
37
|
export const simpleConditionSchema = v.object({
|
|
23
38
|
type: v.literal('simple'),
|
|
24
39
|
op: simpleOperatorSchema,
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
type: v.literal('static'),
|
|
28
|
-
anchor: v.union(v.literal('authData'), v.literal('preMutationRow')),
|
|
29
|
-
field: v.string(),
|
|
30
|
-
})),
|
|
40
|
+
left: conditionValueSchema,
|
|
41
|
+
right: v.union(parameterReferenceSchema, literalReferenceSchema),
|
|
31
42
|
});
|
|
32
43
|
export const correlatedSubqueryConditionOperatorSchema = v.union(v.literal('EXISTS'), v.literal('NOT EXISTS'));
|
|
33
44
|
export const correlatedSubqueryConditionSchema = v.readonlyObject({
|
|
@@ -121,17 +132,14 @@ function sortedRelated(related) {
|
|
|
121
132
|
function cmpCondition(a, b) {
|
|
122
133
|
if (a.type === 'simple') {
|
|
123
134
|
if (b.type !== 'simple') {
|
|
124
|
-
return -1; // Order SimpleConditions first
|
|
135
|
+
return -1; // Order SimpleConditions first
|
|
125
136
|
}
|
|
126
|
-
return (
|
|
137
|
+
return (compareValuePosition(a.left, b.left) ||
|
|
127
138
|
compareUTF8MaybeNull(a.op, b.op) ||
|
|
128
|
-
|
|
129
|
-
// sense, but is technically possible. Assume the values are of the same type and
|
|
130
|
-
// sort by their String forms.
|
|
131
|
-
compareUTF8MaybeNull(String(a.value), String(b.value)));
|
|
139
|
+
compareValuePosition(a.right, b.right));
|
|
132
140
|
}
|
|
133
141
|
if (b.type === 'simple') {
|
|
134
|
-
return 1; // Order SimpleConditions first
|
|
142
|
+
return 1; // Order SimpleConditions first
|
|
135
143
|
}
|
|
136
144
|
if (a.type === 'correlatedSubquery') {
|
|
137
145
|
if (b.type !== 'correlatedSubquery') {
|
|
@@ -155,6 +163,21 @@ function cmpCondition(a, b) {
|
|
|
155
163
|
// prefixes first
|
|
156
164
|
return a.conditions.length - b.conditions.length;
|
|
157
165
|
}
|
|
166
|
+
function compareValuePosition(a, b) {
|
|
167
|
+
if (a.type !== b.type) {
|
|
168
|
+
return compareUTF8(a.type, b.type);
|
|
169
|
+
}
|
|
170
|
+
switch (a.type) {
|
|
171
|
+
case 'literal':
|
|
172
|
+
assert(b.type === 'literal');
|
|
173
|
+
return compareUTF8MaybeNull(String(a.value), String(b.value));
|
|
174
|
+
case 'column':
|
|
175
|
+
assert(b.type === 'column');
|
|
176
|
+
return compareUTF8(a.name, b.name);
|
|
177
|
+
case 'static':
|
|
178
|
+
throw new Error('Static parameters should be resolved before normalization');
|
|
179
|
+
}
|
|
180
|
+
}
|
|
158
181
|
function cmpRelated(a, b) {
|
|
159
182
|
return compareUTF8(must(a.subquery.alias), must(b.subquery.alias));
|
|
160
183
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ast.js","sourceRoot":"","sources":["../../../../zero-protocol/src/ast.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAC,WAAW,EAAC,MAAM,cAAc,CAAC;AACzC,OAAO,EAAC,IAAI,EAAC,MAAM,0BAA0B,CAAC;AAC9C,OAAO,KAAK,CAAC,MAAM,4BAA4B,CAAC;AAChD,OAAO,EAAC,OAAO,EAAC,MAAM,4BAA4B,CAAC;AACnD,OAAO,EAAC,SAAS,EAAW,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"ast.js","sourceRoot":"","sources":["../../../../zero-protocol/src/ast.ts"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I,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAC1E,CACF,CAAC;IAEF,QAAQ,UAAU,CAAC,MAAM,EAAE,CAAC;QAC1B,KAAK,CAAC;YACJ,OAAO,SAAS,CAAC;QACnB,KAAK,CAAC;YACJ,OAAO,UAAU,CAAC,CAAC,CAAM,CAAC;QAC5B;YACE,OAAO;gBACL,IAAI,EAAE,IAAI,CAAC,IAAI;gBACf,UAAU;aACK,CAAC;IACtB,CAAC;AACH,CAAC;AAED,SAAS,oBAAoB,CAAC,CAAgB,EAAE,CAAgB;IAC9D,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,KAAK,IAAI,EAAE,CAAC;QAC7B,OAAO,WAAW,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IAC3B,CAAC;IACD,IAAI,CAAC,KAAK,IAAI,EAAE,CAAC;QACf,OAAO,CAAC,CAAC,CAAC;IACZ,CAAC;IACD,IAAI,CAAC,KAAK,IAAI,EAAE,CAAC;QACf,OAAO,CAAC,CAAC;IACX,CAAC;IACD,OAAO,CAAC,CAAC;AACX,CAAC"}
|
|
@@ -10,12 +10,25 @@ declare const changeDesiredQueriesBodySchema: v.ObjectType<{
|
|
|
10
10
|
where: v.Optional<{
|
|
11
11
|
type: "simple";
|
|
12
12
|
op: "=" | "!=" | "IS" | "IS NOT" | "<" | ">" | "<=" | ">=" | "LIKE" | "NOT LIKE" | "ILIKE" | "NOT ILIKE" | "IN" | "NOT IN";
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
left: {
|
|
14
|
+
type: "literal";
|
|
15
|
+
value: string | number | boolean | readonly (string | number | boolean)[] | null;
|
|
16
|
+
} | {
|
|
17
|
+
type: "column";
|
|
18
|
+
name: string;
|
|
19
|
+
} | {
|
|
15
20
|
type: "static";
|
|
16
21
|
anchor: "authData" | "preMutationRow";
|
|
17
22
|
field: string;
|
|
18
|
-
}
|
|
23
|
+
};
|
|
24
|
+
right: {
|
|
25
|
+
type: "literal";
|
|
26
|
+
value: string | number | boolean | readonly (string | number | boolean)[] | null;
|
|
27
|
+
} | {
|
|
28
|
+
type: "static";
|
|
29
|
+
anchor: "authData" | "preMutationRow";
|
|
30
|
+
field: string;
|
|
31
|
+
};
|
|
19
32
|
} | import("./ast.js").Conjunction | import("./ast.js").Disjunction | {
|
|
20
33
|
readonly type: "correlatedSubquery";
|
|
21
34
|
readonly related: import("./ast.js").CorrelatedSubquery;
|
|
@@ -47,12 +60,25 @@ export declare const changeDesiredQueriesMessageSchema: v.TupleType<[v.Type<"cha
|
|
|
47
60
|
where: v.Optional<{
|
|
48
61
|
type: "simple";
|
|
49
62
|
op: "=" | "!=" | "IS" | "IS NOT" | "<" | ">" | "<=" | ">=" | "LIKE" | "NOT LIKE" | "ILIKE" | "NOT ILIKE" | "IN" | "NOT IN";
|
|
50
|
-
|
|
51
|
-
|
|
63
|
+
left: {
|
|
64
|
+
type: "literal";
|
|
65
|
+
value: string | number | boolean | readonly (string | number | boolean)[] | null;
|
|
66
|
+
} | {
|
|
67
|
+
type: "column";
|
|
68
|
+
name: string;
|
|
69
|
+
} | {
|
|
70
|
+
type: "static";
|
|
71
|
+
anchor: "authData" | "preMutationRow";
|
|
72
|
+
field: string;
|
|
73
|
+
};
|
|
74
|
+
right: {
|
|
75
|
+
type: "literal";
|
|
76
|
+
value: string | number | boolean | readonly (string | number | boolean)[] | null;
|
|
77
|
+
} | {
|
|
52
78
|
type: "static";
|
|
53
79
|
anchor: "authData" | "preMutationRow";
|
|
54
80
|
field: string;
|
|
55
|
-
}
|
|
81
|
+
};
|
|
56
82
|
} | import("./ast.js").Conjunction | import("./ast.js").Disjunction | {
|
|
57
83
|
readonly type: "correlatedSubquery";
|
|
58
84
|
readonly related: import("./ast.js").CorrelatedSubquery;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"change-desired-queries.d.ts","sourceRoot":"","sources":["../../../../zero-protocol/src/change-desired-queries.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,4BAA4B,CAAC;AAGhD,QAAA,MAAM,8BAA8B
|
|
1
|
+
{"version":3,"file":"change-desired-queries.d.ts","sourceRoot":"","sources":["../../../../zero-protocol/src/change-desired-queries.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,4BAA4B,CAAC;AAGhD,QAAA,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAElC,CAAC;AAEH,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eAG5C,CAAC;AAEH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAC5C,OAAO,8BAA8B,CACtC,CAAC;AACF,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAC/C,OAAO,iCAAiC,CACzC,CAAC"}
|
|
@@ -25,12 +25,25 @@ declare const initConnectionBodySchema: v.ObjectType<{
|
|
|
25
25
|
where: v.Optional<{
|
|
26
26
|
type: "simple";
|
|
27
27
|
op: "=" | "!=" | "IS" | "IS NOT" | "<" | ">" | "<=" | ">=" | "LIKE" | "NOT LIKE" | "ILIKE" | "NOT ILIKE" | "IN" | "NOT IN";
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
left: {
|
|
29
|
+
type: "literal";
|
|
30
|
+
value: string | number | boolean | readonly (string | number | boolean)[] | null;
|
|
31
|
+
} | {
|
|
32
|
+
type: "column";
|
|
33
|
+
name: string;
|
|
34
|
+
} | {
|
|
30
35
|
type: "static";
|
|
31
36
|
anchor: "authData" | "preMutationRow";
|
|
32
37
|
field: string;
|
|
33
|
-
}
|
|
38
|
+
};
|
|
39
|
+
right: {
|
|
40
|
+
type: "literal";
|
|
41
|
+
value: string | number | boolean | readonly (string | number | boolean)[] | null;
|
|
42
|
+
} | {
|
|
43
|
+
type: "static";
|
|
44
|
+
anchor: "authData" | "preMutationRow";
|
|
45
|
+
field: string;
|
|
46
|
+
};
|
|
34
47
|
} | import("./ast.js").Conjunction | import("./ast.js").Disjunction | {
|
|
35
48
|
readonly type: "correlatedSubquery";
|
|
36
49
|
readonly related: import("./ast.js").CorrelatedSubquery;
|
|
@@ -62,12 +75,25 @@ export declare const initConnectionMessageSchema: v.TupleType<[v.Type<"initConne
|
|
|
62
75
|
where: v.Optional<{
|
|
63
76
|
type: "simple";
|
|
64
77
|
op: "=" | "!=" | "IS" | "IS NOT" | "<" | ">" | "<=" | ">=" | "LIKE" | "NOT LIKE" | "ILIKE" | "NOT ILIKE" | "IN" | "NOT IN";
|
|
65
|
-
|
|
66
|
-
|
|
78
|
+
left: {
|
|
79
|
+
type: "literal";
|
|
80
|
+
value: string | number | boolean | readonly (string | number | boolean)[] | null;
|
|
81
|
+
} | {
|
|
82
|
+
type: "column";
|
|
83
|
+
name: string;
|
|
84
|
+
} | {
|
|
85
|
+
type: "static";
|
|
86
|
+
anchor: "authData" | "preMutationRow";
|
|
87
|
+
field: string;
|
|
88
|
+
};
|
|
89
|
+
right: {
|
|
90
|
+
type: "literal";
|
|
91
|
+
value: string | number | boolean | readonly (string | number | boolean)[] | null;
|
|
92
|
+
} | {
|
|
67
93
|
type: "static";
|
|
68
94
|
anchor: "authData" | "preMutationRow";
|
|
69
95
|
field: string;
|
|
70
|
-
}
|
|
96
|
+
};
|
|
71
97
|
} | import("./ast.js").Conjunction | import("./ast.js").Disjunction | {
|
|
72
98
|
readonly type: "correlatedSubquery";
|
|
73
99
|
readonly related: import("./ast.js").CorrelatedSubquery;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connect.d.ts","sourceRoot":"","sources":["../../../../zero-protocol/src/connect.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,4BAA4B,CAAC;AAGhD;;;;;;GAMG;AAEH,eAAO,MAAM,mBAAmB;;;aAG9B,CAAC;AAEH,eAAO,MAAM,sBAAsB;;;eAGjC,CAAC;AAEH,QAAA,MAAM,wBAAwB
|
|
1
|
+
{"version":3,"file":"connect.d.ts","sourceRoot":"","sources":["../../../../zero-protocol/src/connect.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,4BAA4B,CAAC;AAGhD;;;;;;GAMG;AAEH,eAAO,MAAM,mBAAmB;;;aAG9B,CAAC;AAEH,eAAO,MAAM,sBAAsB;;;eAGjC,CAAC;AAEH,QAAA,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAE5B,CAAC;AAEH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eAGtC,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAChE,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEtE,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAC1E,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAEhF,wBAAgB,kBAAkB,CAChC,qBAAqB,EAAE,qBAAqB,GAAG,SAAS,EACxD,SAAS,EAAE,MAAM,GAAG,SAAS,UAQ9B;AAED,wBAAgB,kBAAkB,CAAC,WAAW,EAAE,MAAM,GAAG;IACvD,qBAAqB,EAAE,qBAAqB,GAAG,SAAS,CAAC;IACzD,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;CAC/B,CAEA"}
|
|
@@ -34,12 +34,25 @@ export declare const downstreamSchema: v.UnionType<[v.TupleType<[v.Type<"connect
|
|
|
34
34
|
where?: {
|
|
35
35
|
type: "simple";
|
|
36
36
|
op: "=" | "!=" | "IS" | "IS NOT" | "<" | ">" | "<=" | ">=" | "LIKE" | "NOT LIKE" | "ILIKE" | "NOT ILIKE" | "IN" | "NOT IN";
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
left: {
|
|
38
|
+
type: "literal";
|
|
39
|
+
value: string | number | boolean | readonly (string | number | boolean)[] | null;
|
|
40
|
+
} | {
|
|
41
|
+
type: "column";
|
|
42
|
+
name: string;
|
|
43
|
+
} | {
|
|
39
44
|
type: "static";
|
|
40
45
|
anchor: "authData" | "preMutationRow";
|
|
41
46
|
field: string;
|
|
42
|
-
}
|
|
47
|
+
};
|
|
48
|
+
right: {
|
|
49
|
+
type: "literal";
|
|
50
|
+
value: string | number | boolean | readonly (string | number | boolean)[] | null;
|
|
51
|
+
} | {
|
|
52
|
+
type: "static";
|
|
53
|
+
anchor: "authData" | "preMutationRow";
|
|
54
|
+
field: string;
|
|
55
|
+
};
|
|
43
56
|
} | import("./ast.js").Conjunction | import("./ast.js").Disjunction | {
|
|
44
57
|
readonly type: "correlatedSubquery";
|
|
45
58
|
readonly related: import("./ast.js").CorrelatedSubquery;
|
|
@@ -69,12 +82,25 @@ export declare const downstreamSchema: v.UnionType<[v.TupleType<[v.Type<"connect
|
|
|
69
82
|
where?: {
|
|
70
83
|
type: "simple";
|
|
71
84
|
op: "=" | "!=" | "IS" | "IS NOT" | "<" | ">" | "<=" | ">=" | "LIKE" | "NOT LIKE" | "ILIKE" | "NOT ILIKE" | "IN" | "NOT IN";
|
|
72
|
-
|
|
73
|
-
|
|
85
|
+
left: {
|
|
86
|
+
type: "literal";
|
|
87
|
+
value: string | number | boolean | readonly (string | number | boolean)[] | null;
|
|
88
|
+
} | {
|
|
89
|
+
type: "column";
|
|
90
|
+
name: string;
|
|
91
|
+
} | {
|
|
92
|
+
type: "static";
|
|
93
|
+
anchor: "authData" | "preMutationRow";
|
|
94
|
+
field: string;
|
|
95
|
+
};
|
|
96
|
+
right: {
|
|
97
|
+
type: "literal";
|
|
98
|
+
value: string | number | boolean | readonly (string | number | boolean)[] | null;
|
|
99
|
+
} | {
|
|
74
100
|
type: "static";
|
|
75
101
|
anchor: "authData" | "preMutationRow";
|
|
76
102
|
field: string;
|
|
77
|
-
}
|
|
103
|
+
};
|
|
78
104
|
} | import("./ast.js").Conjunction | import("./ast.js").Disjunction | {
|
|
79
105
|
readonly type: "correlatedSubquery";
|
|
80
106
|
readonly related: import("./ast.js").CorrelatedSubquery;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"down.d.ts","sourceRoot":"","sources":["../../../../zero-protocol/src/down.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,4BAA4B,CAAC;AAYhD,eAAO,MAAM,gBAAgB
|
|
1
|
+
{"version":3,"file":"down.d.ts","sourceRoot":"","sources":["../../../../zero-protocol/src/down.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,4BAA4B,CAAC;AAYhD,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAS5B,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
|
|
@@ -54,12 +54,25 @@ export declare const pokePartBodySchema: v.ObjectType<{
|
|
|
54
54
|
where?: {
|
|
55
55
|
type: "simple";
|
|
56
56
|
op: "=" | "!=" | "IS" | "IS NOT" | "<" | ">" | "<=" | ">=" | "LIKE" | "NOT LIKE" | "ILIKE" | "NOT ILIKE" | "IN" | "NOT IN";
|
|
57
|
-
|
|
58
|
-
|
|
57
|
+
left: {
|
|
58
|
+
type: "literal";
|
|
59
|
+
value: string | number | boolean | readonly (string | number | boolean)[] | null;
|
|
60
|
+
} | {
|
|
61
|
+
type: "column";
|
|
62
|
+
name: string;
|
|
63
|
+
} | {
|
|
59
64
|
type: "static";
|
|
60
65
|
anchor: "authData" | "preMutationRow";
|
|
61
66
|
field: string;
|
|
62
|
-
}
|
|
67
|
+
};
|
|
68
|
+
right: {
|
|
69
|
+
type: "literal";
|
|
70
|
+
value: string | number | boolean | readonly (string | number | boolean)[] | null;
|
|
71
|
+
} | {
|
|
72
|
+
type: "static";
|
|
73
|
+
anchor: "authData" | "preMutationRow";
|
|
74
|
+
field: string;
|
|
75
|
+
};
|
|
63
76
|
} | import("./ast.js").Conjunction | import("./ast.js").Disjunction | {
|
|
64
77
|
readonly type: "correlatedSubquery";
|
|
65
78
|
readonly related: import("./ast.js").CorrelatedSubquery;
|
|
@@ -89,12 +102,25 @@ export declare const pokePartBodySchema: v.ObjectType<{
|
|
|
89
102
|
where?: {
|
|
90
103
|
type: "simple";
|
|
91
104
|
op: "=" | "!=" | "IS" | "IS NOT" | "<" | ">" | "<=" | ">=" | "LIKE" | "NOT LIKE" | "ILIKE" | "NOT ILIKE" | "IN" | "NOT IN";
|
|
92
|
-
|
|
93
|
-
|
|
105
|
+
left: {
|
|
106
|
+
type: "literal";
|
|
107
|
+
value: string | number | boolean | readonly (string | number | boolean)[] | null;
|
|
108
|
+
} | {
|
|
109
|
+
type: "column";
|
|
110
|
+
name: string;
|
|
111
|
+
} | {
|
|
112
|
+
type: "static";
|
|
113
|
+
anchor: "authData" | "preMutationRow";
|
|
114
|
+
field: string;
|
|
115
|
+
};
|
|
116
|
+
right: {
|
|
117
|
+
type: "literal";
|
|
118
|
+
value: string | number | boolean | readonly (string | number | boolean)[] | null;
|
|
119
|
+
} | {
|
|
94
120
|
type: "static";
|
|
95
121
|
anchor: "authData" | "preMutationRow";
|
|
96
122
|
field: string;
|
|
97
|
-
}
|
|
123
|
+
};
|
|
98
124
|
} | import("./ast.js").Conjunction | import("./ast.js").Disjunction | {
|
|
99
125
|
readonly type: "correlatedSubquery";
|
|
100
126
|
readonly related: import("./ast.js").CorrelatedSubquery;
|
|
@@ -168,12 +194,25 @@ export declare const pokePartMessageSchema: v.TupleType<[v.Type<"pokePart">, v.O
|
|
|
168
194
|
where?: {
|
|
169
195
|
type: "simple";
|
|
170
196
|
op: "=" | "!=" | "IS" | "IS NOT" | "<" | ">" | "<=" | ">=" | "LIKE" | "NOT LIKE" | "ILIKE" | "NOT ILIKE" | "IN" | "NOT IN";
|
|
171
|
-
|
|
172
|
-
|
|
197
|
+
left: {
|
|
198
|
+
type: "literal";
|
|
199
|
+
value: string | number | boolean | readonly (string | number | boolean)[] | null;
|
|
200
|
+
} | {
|
|
201
|
+
type: "column";
|
|
202
|
+
name: string;
|
|
203
|
+
} | {
|
|
173
204
|
type: "static";
|
|
174
205
|
anchor: "authData" | "preMutationRow";
|
|
175
206
|
field: string;
|
|
176
|
-
}
|
|
207
|
+
};
|
|
208
|
+
right: {
|
|
209
|
+
type: "literal";
|
|
210
|
+
value: string | number | boolean | readonly (string | number | boolean)[] | null;
|
|
211
|
+
} | {
|
|
212
|
+
type: "static";
|
|
213
|
+
anchor: "authData" | "preMutationRow";
|
|
214
|
+
field: string;
|
|
215
|
+
};
|
|
177
216
|
} | import("./ast.js").Conjunction | import("./ast.js").Disjunction | {
|
|
178
217
|
readonly type: "correlatedSubquery";
|
|
179
218
|
readonly related: import("./ast.js").CorrelatedSubquery;
|
|
@@ -203,12 +242,25 @@ export declare const pokePartMessageSchema: v.TupleType<[v.Type<"pokePart">, v.O
|
|
|
203
242
|
where?: {
|
|
204
243
|
type: "simple";
|
|
205
244
|
op: "=" | "!=" | "IS" | "IS NOT" | "<" | ">" | "<=" | ">=" | "LIKE" | "NOT LIKE" | "ILIKE" | "NOT ILIKE" | "IN" | "NOT IN";
|
|
206
|
-
|
|
207
|
-
|
|
245
|
+
left: {
|
|
246
|
+
type: "literal";
|
|
247
|
+
value: string | number | boolean | readonly (string | number | boolean)[] | null;
|
|
248
|
+
} | {
|
|
249
|
+
type: "column";
|
|
250
|
+
name: string;
|
|
251
|
+
} | {
|
|
252
|
+
type: "static";
|
|
253
|
+
anchor: "authData" | "preMutationRow";
|
|
254
|
+
field: string;
|
|
255
|
+
};
|
|
256
|
+
right: {
|
|
257
|
+
type: "literal";
|
|
258
|
+
value: string | number | boolean | readonly (string | number | boolean)[] | null;
|
|
259
|
+
} | {
|
|
208
260
|
type: "static";
|
|
209
261
|
anchor: "authData" | "preMutationRow";
|
|
210
262
|
field: string;
|
|
211
|
-
}
|
|
263
|
+
};
|
|
212
264
|
} | import("./ast.js").Conjunction | import("./ast.js").Disjunction | {
|
|
213
265
|
readonly type: "correlatedSubquery";
|
|
214
266
|
readonly related: import("./ast.js").CorrelatedSubquery;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"poke.d.ts","sourceRoot":"","sources":["../../../../zero-protocol/src/poke.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,4BAA4B,CAAC;AAMhD;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,eAAO,MAAM,mBAAmB;;;;;;;;;aAY9B,CAAC;AAEH,eAAO,MAAM,kBAAkB
|
|
1
|
+
{"version":3,"file":"poke.d.ts","sourceRoot":"","sources":["../../../../zero-protocol/src/poke.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,4BAA4B,CAAC;AAMhD;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,eAAO,MAAM,mBAAmB;;;;;;;;;aAY9B,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAc7B,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;aAK5B,CAAC;AAEH,eAAO,MAAM,sBAAsB;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