@code0-tech/definition-reader 0.0.16 → 0.0.18
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/index.d.ts +2 -0
- package/dist/{definition-reader.js → index.js} +616 -583
- package/dist/mapper/dataTypeMapper.d.ts +6 -0
- package/dist/mapper/flowTypeMapper.d.ts +5 -0
- package/dist/mapper/functionMapper.d.ts +5 -0
- package/dist/mapper/translation.d.ts +3 -0
- package/dist/parser.d.ts +10 -0
- package/package.json +12 -7
- package/src/index.ts +2 -0
- package/src/mapper/dataTypeMapper.ts +30 -6
- package/src/mapper/flowTypeMapper.ts +3 -3
- package/src/mapper/functionMapper.ts +9 -4
- package/src/parser.ts +8 -8
- package/index.ts +0 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { readdirSync as
|
|
2
|
-
import
|
|
3
|
-
function
|
|
1
|
+
import { readdirSync as Ae, readFileSync as je } from "node:fs";
|
|
2
|
+
import _e from "node:path";
|
|
3
|
+
function Fe(a) {
|
|
4
4
|
let e = typeof a;
|
|
5
5
|
if (e == "object") {
|
|
6
6
|
if (Array.isArray(a))
|
|
@@ -13,17 +13,17 @@ function De(a) {
|
|
|
13
13
|
function Pe(a) {
|
|
14
14
|
return a !== null && typeof a == "object" && !Array.isArray(a);
|
|
15
15
|
}
|
|
16
|
-
let K = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),
|
|
16
|
+
let K = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""), z = [];
|
|
17
17
|
for (let a = 0; a < K.length; a++)
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
function
|
|
18
|
+
z[K[a].charCodeAt(0)] = a;
|
|
19
|
+
z[45] = K.indexOf("+");
|
|
20
|
+
z[95] = K.indexOf("/");
|
|
21
|
+
function Se(a) {
|
|
22
22
|
let e = a.length * 3 / 4;
|
|
23
23
|
a[a.length - 2] == "=" ? e -= 2 : a[a.length - 1] == "=" && (e -= 1);
|
|
24
|
-
let t = new Uint8Array(e), n = 0, r = 0, i,
|
|
24
|
+
let t = new Uint8Array(e), n = 0, r = 0, i, f = 0;
|
|
25
25
|
for (let s = 0; s < a.length; s++) {
|
|
26
|
-
if (i =
|
|
26
|
+
if (i = z[a.charCodeAt(s)], i === void 0)
|
|
27
27
|
switch (a[s]) {
|
|
28
28
|
case "=":
|
|
29
29
|
r = 0;
|
|
@@ -40,16 +40,16 @@ function _e(a) {
|
|
|
40
40
|
}
|
|
41
41
|
switch (r) {
|
|
42
42
|
case 0:
|
|
43
|
-
|
|
43
|
+
f = i, r = 1;
|
|
44
44
|
break;
|
|
45
45
|
case 1:
|
|
46
|
-
t[n++] =
|
|
46
|
+
t[n++] = f << 2 | (i & 48) >> 4, f = i, r = 2;
|
|
47
47
|
break;
|
|
48
48
|
case 2:
|
|
49
|
-
t[n++] = (
|
|
49
|
+
t[n++] = (f & 15) << 4 | (i & 60) >> 2, f = i, r = 3;
|
|
50
50
|
break;
|
|
51
51
|
case 3:
|
|
52
|
-
t[n++] = (
|
|
52
|
+
t[n++] = (f & 3) << 6 | i, r = 0;
|
|
53
53
|
break;
|
|
54
54
|
}
|
|
55
55
|
}
|
|
@@ -57,7 +57,7 @@ function _e(a) {
|
|
|
57
57
|
throw Error("invalid base64 string.");
|
|
58
58
|
return t.subarray(0, n);
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function Me(a) {
|
|
61
61
|
let e = "", t = 0, n, r = 0;
|
|
62
62
|
for (let i = 0; i < a.length; i++)
|
|
63
63
|
switch (n = a[i], t) {
|
|
@@ -75,11 +75,11 @@ function Se(a) {
|
|
|
75
75
|
}
|
|
76
76
|
var d;
|
|
77
77
|
(function(a) {
|
|
78
|
-
a.symbol = Symbol.for("protobuf-ts/unknown"), a.onRead = (t, n, r, i,
|
|
79
|
-
(e(n) ? n[a.symbol] : n[a.symbol] = []).push({ no: r, wireType: i, data:
|
|
78
|
+
a.symbol = Symbol.for("protobuf-ts/unknown"), a.onRead = (t, n, r, i, f) => {
|
|
79
|
+
(e(n) ? n[a.symbol] : n[a.symbol] = []).push({ no: r, wireType: i, data: f });
|
|
80
80
|
}, a.onWrite = (t, n, r) => {
|
|
81
|
-
for (let { no: i, wireType:
|
|
82
|
-
r.tag(i,
|
|
81
|
+
for (let { no: i, wireType: f, data: s } of a.list(n))
|
|
82
|
+
r.tag(i, f).raw(s);
|
|
83
83
|
}, a.list = (t, n) => {
|
|
84
84
|
if (e(t)) {
|
|
85
85
|
let r = t[a.symbol];
|
|
@@ -93,7 +93,7 @@ var u;
|
|
|
93
93
|
(function(a) {
|
|
94
94
|
a[a.Varint = 0] = "Varint", a[a.Bit64 = 1] = "Bit64", a[a.LengthDelimited = 2] = "LengthDelimited", a[a.StartGroup = 3] = "StartGroup", a[a.EndGroup = 4] = "EndGroup", a[a.Bit32 = 5] = "Bit32";
|
|
95
95
|
})(u || (u = {}));
|
|
96
|
-
function
|
|
96
|
+
function Xe() {
|
|
97
97
|
let a = 0, e = 0;
|
|
98
98
|
for (let n = 0; n < 28; n += 7) {
|
|
99
99
|
let r = this.buf[this.pos++];
|
|
@@ -110,60 +110,60 @@ function Me() {
|
|
|
110
110
|
}
|
|
111
111
|
throw new Error("invalid varint");
|
|
112
112
|
}
|
|
113
|
-
function
|
|
113
|
+
function H(a, e, t) {
|
|
114
114
|
for (let i = 0; i < 28; i = i + 7) {
|
|
115
|
-
const
|
|
115
|
+
const f = a >>> i, s = !(!(f >>> 7) && e == 0), o = (s ? f | 128 : f) & 255;
|
|
116
116
|
if (t.push(o), !s)
|
|
117
117
|
return;
|
|
118
118
|
}
|
|
119
119
|
const n = a >>> 28 & 15 | (e & 7) << 4, r = e >> 3 != 0;
|
|
120
120
|
if (t.push((r ? n | 128 : n) & 255), !!r) {
|
|
121
121
|
for (let i = 3; i < 31; i = i + 7) {
|
|
122
|
-
const
|
|
122
|
+
const f = e >>> i, s = !!(f >>> 7), o = (s ? f | 128 : f) & 255;
|
|
123
123
|
if (t.push(o), !s)
|
|
124
124
|
return;
|
|
125
125
|
}
|
|
126
126
|
t.push(e >>> 31 & 1);
|
|
127
127
|
}
|
|
128
128
|
}
|
|
129
|
-
const
|
|
130
|
-
function
|
|
129
|
+
const J = 65536 * 65536;
|
|
130
|
+
function Ue(a) {
|
|
131
131
|
let e = a[0] == "-";
|
|
132
132
|
e && (a = a.slice(1));
|
|
133
133
|
const t = 1e6;
|
|
134
134
|
let n = 0, r = 0;
|
|
135
|
-
function i(
|
|
136
|
-
const o = Number(a.slice(
|
|
137
|
-
r *= t, n = n * t + o, n >=
|
|
135
|
+
function i(f, s) {
|
|
136
|
+
const o = Number(a.slice(f, s));
|
|
137
|
+
r *= t, n = n * t + o, n >= J && (r = r + (n / J | 0), n = n % J);
|
|
138
138
|
}
|
|
139
139
|
return i(-24, -18), i(-18, -12), i(-12, -6), i(-6), [e, n, r];
|
|
140
140
|
}
|
|
141
141
|
function ge(a, e) {
|
|
142
142
|
if (e >>> 0 <= 2097151)
|
|
143
|
-
return "" + (
|
|
144
|
-
let t = a & 16777215, n = (a >>> 24 | e << 8) >>> 0 & 16777215, r = e >> 16 & 65535, i = t + n * 6777216 + r * 6710656,
|
|
145
|
-
i >= o && (
|
|
146
|
-
function
|
|
143
|
+
return "" + (J * e + (a >>> 0));
|
|
144
|
+
let t = a & 16777215, n = (a >>> 24 | e << 8) >>> 0 & 16777215, r = e >> 16 & 65535, i = t + n * 6777216 + r * 6710656, f = n + r * 8147497, s = r * 2, o = 1e7;
|
|
145
|
+
i >= o && (f += Math.floor(i / o), i %= o), f >= o && (s += Math.floor(f / o), f %= o);
|
|
146
|
+
function l(h, g) {
|
|
147
147
|
let k = h ? String(h) : "";
|
|
148
148
|
return g ? "0000000".slice(k.length) + k : k;
|
|
149
149
|
}
|
|
150
|
-
return
|
|
150
|
+
return l(
|
|
151
151
|
s,
|
|
152
152
|
/*needLeadingZeros=*/
|
|
153
153
|
0
|
|
154
|
-
) +
|
|
155
|
-
|
|
154
|
+
) + l(
|
|
155
|
+
f,
|
|
156
156
|
/*needLeadingZeros=*/
|
|
157
157
|
s
|
|
158
158
|
) + // If the final 1e7 digit didn't need leading zeros, we would have
|
|
159
159
|
// returned via the trivial code path at the top.
|
|
160
|
-
|
|
160
|
+
l(
|
|
161
161
|
i,
|
|
162
162
|
/*needLeadingZeros=*/
|
|
163
163
|
1
|
|
164
164
|
);
|
|
165
165
|
}
|
|
166
|
-
function
|
|
166
|
+
function we(a, e) {
|
|
167
167
|
if (a >= 0) {
|
|
168
168
|
for (; a > 127; )
|
|
169
169
|
e.push(a & 127 | 128), a = a >>> 7;
|
|
@@ -174,7 +174,7 @@ function Te(a, e) {
|
|
|
174
174
|
e.push(1);
|
|
175
175
|
}
|
|
176
176
|
}
|
|
177
|
-
function
|
|
177
|
+
function Ge() {
|
|
178
178
|
let a = this.buf[this.pos++], e = a & 127;
|
|
179
179
|
if ((a & 128) == 0)
|
|
180
180
|
return this.assertBounds(), e;
|
|
@@ -192,7 +192,7 @@ function Xe() {
|
|
|
192
192
|
return this.assertBounds(), e >>> 0;
|
|
193
193
|
}
|
|
194
194
|
let T;
|
|
195
|
-
function
|
|
195
|
+
function Je() {
|
|
196
196
|
const a = new DataView(new ArrayBuffer(8));
|
|
197
197
|
T = globalThis.BigInt !== void 0 && typeof a.getBigInt64 == "function" && typeof a.getBigUint64 == "function" && typeof a.setBigInt64 == "function" && typeof a.setBigUint64 == "function" ? {
|
|
198
198
|
MIN: BigInt("-9223372036854775808"),
|
|
@@ -203,13 +203,13 @@ function Ge() {
|
|
|
203
203
|
V: a
|
|
204
204
|
} : void 0;
|
|
205
205
|
}
|
|
206
|
-
|
|
207
|
-
function
|
|
206
|
+
Je();
|
|
207
|
+
function $e(a) {
|
|
208
208
|
if (!a)
|
|
209
209
|
throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support");
|
|
210
210
|
}
|
|
211
|
-
const
|
|
212
|
-
class
|
|
211
|
+
const Le = /^-?[0-9]+$/, Y = 4294967296, X = 2147483648;
|
|
212
|
+
class Ke {
|
|
213
213
|
/**
|
|
214
214
|
* Create a new instance with the given bits.
|
|
215
215
|
*/
|
|
@@ -226,13 +226,13 @@ class $e {
|
|
|
226
226
|
* Convert to a native number.
|
|
227
227
|
*/
|
|
228
228
|
toNumber() {
|
|
229
|
-
let e = this.hi *
|
|
229
|
+
let e = this.hi * Y + (this.lo >>> 0);
|
|
230
230
|
if (!Number.isSafeInteger(e))
|
|
231
231
|
throw new Error("cannot convert to safe number");
|
|
232
232
|
return e;
|
|
233
233
|
}
|
|
234
234
|
}
|
|
235
|
-
class B extends
|
|
235
|
+
class B extends Ke {
|
|
236
236
|
/**
|
|
237
237
|
* Create instance from a `string`, `number` or `bigint`.
|
|
238
238
|
*/
|
|
@@ -263,9 +263,9 @@ class B extends $e {
|
|
|
263
263
|
case "string":
|
|
264
264
|
if (e == "0")
|
|
265
265
|
return this.ZERO;
|
|
266
|
-
if (e = e.trim(), !
|
|
266
|
+
if (e = e.trim(), !Le.test(e))
|
|
267
267
|
throw new Error("string is no integer");
|
|
268
|
-
let [t, n, r] =
|
|
268
|
+
let [t, n, r] = Ue(e);
|
|
269
269
|
if (t)
|
|
270
270
|
throw new Error("signed value for ulong");
|
|
271
271
|
return new B(n, r);
|
|
@@ -276,7 +276,7 @@ class B extends $e {
|
|
|
276
276
|
throw new Error("number is no integer");
|
|
277
277
|
if (e < 0)
|
|
278
278
|
throw new Error("signed value for ulong");
|
|
279
|
-
return new B(e, e /
|
|
279
|
+
return new B(e, e / Y);
|
|
280
280
|
}
|
|
281
281
|
throw new Error("unknown value " + typeof e);
|
|
282
282
|
}
|
|
@@ -290,11 +290,11 @@ class B extends $e {
|
|
|
290
290
|
* Convert to native bigint.
|
|
291
291
|
*/
|
|
292
292
|
toBigInt() {
|
|
293
|
-
return
|
|
293
|
+
return $e(T), T.V.setInt32(0, this.lo, !0), T.V.setInt32(4, this.hi, !0), T.V.getBigUint64(0, !0);
|
|
294
294
|
}
|
|
295
295
|
}
|
|
296
296
|
B.ZERO = new B(0, 0);
|
|
297
|
-
class N extends
|
|
297
|
+
class N extends Ke {
|
|
298
298
|
/**
|
|
299
299
|
* Create instance from a `string`, `number` or `bigint`.
|
|
300
300
|
*/
|
|
@@ -325,13 +325,13 @@ class N extends $e {
|
|
|
325
325
|
case "string":
|
|
326
326
|
if (e == "0")
|
|
327
327
|
return this.ZERO;
|
|
328
|
-
if (e = e.trim(), !
|
|
328
|
+
if (e = e.trim(), !Le.test(e))
|
|
329
329
|
throw new Error("string is no integer");
|
|
330
|
-
let [t, n, r] =
|
|
330
|
+
let [t, n, r] = Ue(e);
|
|
331
331
|
if (t) {
|
|
332
|
-
if (r >
|
|
332
|
+
if (r > X || r == X && n != 0)
|
|
333
333
|
throw new Error("signed long too small");
|
|
334
|
-
} else if (r >=
|
|
334
|
+
} else if (r >= X)
|
|
335
335
|
throw new Error("signed long too large");
|
|
336
336
|
let i = new N(n, r);
|
|
337
337
|
return t ? i.negate() : i;
|
|
@@ -340,7 +340,7 @@ class N extends $e {
|
|
|
340
340
|
return this.ZERO;
|
|
341
341
|
if (!Number.isSafeInteger(e))
|
|
342
342
|
throw new Error("number is no integer");
|
|
343
|
-
return e > 0 ? new N(e, e /
|
|
343
|
+
return e > 0 ? new N(e, e / Y) : new N(-e, -e / Y).negate();
|
|
344
344
|
}
|
|
345
345
|
throw new Error("unknown value " + typeof e);
|
|
346
346
|
}
|
|
@@ -348,7 +348,7 @@ class N extends $e {
|
|
|
348
348
|
* Do we have a minus sign?
|
|
349
349
|
*/
|
|
350
350
|
isNegative() {
|
|
351
|
-
return (this.hi &
|
|
351
|
+
return (this.hi & X) !== 0;
|
|
352
352
|
}
|
|
353
353
|
/**
|
|
354
354
|
* Negate two's complement.
|
|
@@ -374,20 +374,20 @@ class N extends $e {
|
|
|
374
374
|
* Convert to native bigint.
|
|
375
375
|
*/
|
|
376
376
|
toBigInt() {
|
|
377
|
-
return
|
|
377
|
+
return $e(T), T.V.setInt32(0, this.lo, !0), T.V.setInt32(4, this.hi, !0), T.V.getBigInt64(0, !0);
|
|
378
378
|
}
|
|
379
379
|
}
|
|
380
380
|
N.ZERO = new N(0, 0);
|
|
381
|
-
const
|
|
381
|
+
const Ne = {
|
|
382
382
|
readUnknownField: !0,
|
|
383
|
-
readerFactory: (a) => new
|
|
383
|
+
readerFactory: (a) => new Ze(a)
|
|
384
384
|
};
|
|
385
|
-
function
|
|
386
|
-
return a ? Object.assign(Object.assign({},
|
|
385
|
+
function Ye(a) {
|
|
386
|
+
return a ? Object.assign(Object.assign({}, Ne), a) : Ne;
|
|
387
387
|
}
|
|
388
|
-
class
|
|
388
|
+
class Ze {
|
|
389
389
|
constructor(e, t) {
|
|
390
|
-
this.varint64 =
|
|
390
|
+
this.varint64 = Xe, this.uint32 = Ge, this.buf = e, this.len = e.length, this.pos = 0, this.view = new DataView(e.buffer, e.byteOffset, e.byteLength), this.textDecoder = t ?? new TextDecoder("utf-8", {
|
|
391
391
|
fatal: !0,
|
|
392
392
|
ignoreBOM: !0
|
|
393
393
|
});
|
|
@@ -531,33 +531,33 @@ function y(a, e) {
|
|
|
531
531
|
if (!a)
|
|
532
532
|
throw new Error(e);
|
|
533
533
|
}
|
|
534
|
-
const
|
|
535
|
-
function
|
|
534
|
+
const qe = 34028234663852886e22, ze = -34028234663852886e22, Qe = 4294967295, He = 2147483647, ve = -2147483648;
|
|
535
|
+
function P(a) {
|
|
536
536
|
if (typeof a != "number")
|
|
537
537
|
throw new Error("invalid int 32: " + typeof a);
|
|
538
|
-
if (!Number.isInteger(a) || a >
|
|
538
|
+
if (!Number.isInteger(a) || a > He || a < ve)
|
|
539
539
|
throw new Error("invalid int 32: " + a);
|
|
540
540
|
}
|
|
541
|
-
function
|
|
541
|
+
function Z(a) {
|
|
542
542
|
if (typeof a != "number")
|
|
543
543
|
throw new Error("invalid uint 32: " + typeof a);
|
|
544
|
-
if (!Number.isInteger(a) || a >
|
|
544
|
+
if (!Number.isInteger(a) || a > Qe || a < 0)
|
|
545
545
|
throw new Error("invalid uint 32: " + a);
|
|
546
546
|
}
|
|
547
|
-
function
|
|
547
|
+
function be(a) {
|
|
548
548
|
if (typeof a != "number")
|
|
549
549
|
throw new Error("invalid float 32: " + typeof a);
|
|
550
|
-
if (Number.isFinite(a) && (a >
|
|
550
|
+
if (Number.isFinite(a) && (a > qe || a < ze))
|
|
551
551
|
throw new Error("invalid float 32: " + a);
|
|
552
552
|
}
|
|
553
|
-
const
|
|
553
|
+
const Ie = {
|
|
554
554
|
writeUnknownFields: !0,
|
|
555
|
-
writerFactory: () => new
|
|
555
|
+
writerFactory: () => new tt()
|
|
556
556
|
};
|
|
557
|
-
function
|
|
558
|
-
return a ? Object.assign(Object.assign({},
|
|
557
|
+
function et(a) {
|
|
558
|
+
return a ? Object.assign(Object.assign({}, Ie), a) : Ie;
|
|
559
559
|
}
|
|
560
|
-
class
|
|
560
|
+
class tt {
|
|
561
561
|
constructor(e) {
|
|
562
562
|
this.stack = [], this.textEncoder = e ?? new TextEncoder(), this.chunks = [], this.buf = [];
|
|
563
563
|
}
|
|
@@ -613,7 +613,7 @@ class et {
|
|
|
613
613
|
* Write a `uint32` value, an unsigned 32 bit varint.
|
|
614
614
|
*/
|
|
615
615
|
uint32(e) {
|
|
616
|
-
for (
|
|
616
|
+
for (Z(e); e > 127; )
|
|
617
617
|
this.buf.push(e & 127 | 128), e = e >>> 7;
|
|
618
618
|
return this.buf.push(e), this;
|
|
619
619
|
}
|
|
@@ -621,7 +621,7 @@ class et {
|
|
|
621
621
|
* Write a `int32` value, a signed 32 bit varint.
|
|
622
622
|
*/
|
|
623
623
|
int32(e) {
|
|
624
|
-
return
|
|
624
|
+
return P(e), we(e, this.buf), this;
|
|
625
625
|
}
|
|
626
626
|
/**
|
|
627
627
|
* Write a `bool` value, a variant.
|
|
@@ -646,7 +646,7 @@ class et {
|
|
|
646
646
|
* Write a `float` value, 32-bit floating point number.
|
|
647
647
|
*/
|
|
648
648
|
float(e) {
|
|
649
|
-
|
|
649
|
+
be(e);
|
|
650
650
|
let t = new Uint8Array(4);
|
|
651
651
|
return new DataView(t.buffer).setFloat32(0, e, !0), this.raw(t);
|
|
652
652
|
}
|
|
@@ -661,7 +661,7 @@ class et {
|
|
|
661
661
|
* Write a `fixed32` value, an unsigned, fixed-length 32-bit integer.
|
|
662
662
|
*/
|
|
663
663
|
fixed32(e) {
|
|
664
|
-
|
|
664
|
+
Z(e);
|
|
665
665
|
let t = new Uint8Array(4);
|
|
666
666
|
return new DataView(t.buffer).setUint32(0, e, !0), this.raw(t);
|
|
667
667
|
}
|
|
@@ -669,7 +669,7 @@ class et {
|
|
|
669
669
|
* Write a `sfixed32` value, a signed, fixed-length 32-bit integer.
|
|
670
670
|
*/
|
|
671
671
|
sfixed32(e) {
|
|
672
|
-
|
|
672
|
+
P(e);
|
|
673
673
|
let t = new Uint8Array(4);
|
|
674
674
|
return new DataView(t.buffer).setInt32(0, e, !0), this.raw(t);
|
|
675
675
|
}
|
|
@@ -677,7 +677,7 @@ class et {
|
|
|
677
677
|
* Write a `sint32` value, a signed, zigzag-encoded 32-bit varint.
|
|
678
678
|
*/
|
|
679
679
|
sint32(e) {
|
|
680
|
-
return
|
|
680
|
+
return P(e), e = (e << 1 ^ e >> 31) >>> 0, we(e, this.buf), this;
|
|
681
681
|
}
|
|
682
682
|
/**
|
|
683
683
|
* Write a `fixed64` value, a signed, fixed-length 64-bit integer.
|
|
@@ -698,39 +698,39 @@ class et {
|
|
|
698
698
|
*/
|
|
699
699
|
int64(e) {
|
|
700
700
|
let t = N.from(e);
|
|
701
|
-
return
|
|
701
|
+
return H(t.lo, t.hi, this.buf), this;
|
|
702
702
|
}
|
|
703
703
|
/**
|
|
704
704
|
* Write a `sint64` value, a signed, zig-zag-encoded 64-bit varint.
|
|
705
705
|
*/
|
|
706
706
|
sint64(e) {
|
|
707
707
|
let t = N.from(e), n = t.hi >> 31, r = t.lo << 1 ^ n, i = (t.hi << 1 | t.lo >>> 31) ^ n;
|
|
708
|
-
return
|
|
708
|
+
return H(r, i, this.buf), this;
|
|
709
709
|
}
|
|
710
710
|
/**
|
|
711
711
|
* Write a `uint64` value, an unsigned 64-bit varint.
|
|
712
712
|
*/
|
|
713
713
|
uint64(e) {
|
|
714
714
|
let t = B.from(e);
|
|
715
|
-
return
|
|
715
|
+
return H(t.lo, t.hi, this.buf), this;
|
|
716
716
|
}
|
|
717
717
|
}
|
|
718
|
-
const
|
|
718
|
+
const Be = {
|
|
719
719
|
emitDefaultValues: !1,
|
|
720
720
|
enumAsInteger: !1,
|
|
721
721
|
useProtoFieldName: !1,
|
|
722
722
|
prettySpaces: 0
|
|
723
|
-
},
|
|
723
|
+
}, Re = {
|
|
724
724
|
ignoreUnknownFields: !1
|
|
725
725
|
};
|
|
726
|
-
function tt(a) {
|
|
727
|
-
return a ? Object.assign(Object.assign({}, Ie), a) : Ie;
|
|
728
|
-
}
|
|
729
726
|
function nt(a) {
|
|
730
|
-
return a ? Object.assign(Object.assign({},
|
|
727
|
+
return a ? Object.assign(Object.assign({}, Re), a) : Re;
|
|
728
|
+
}
|
|
729
|
+
function it(a) {
|
|
730
|
+
return a ? Object.assign(Object.assign({}, Be), a) : Be;
|
|
731
731
|
}
|
|
732
|
-
const
|
|
733
|
-
function
|
|
732
|
+
const Ve = Symbol.for("protobuf-ts/message-type");
|
|
733
|
+
function Ee(a) {
|
|
734
734
|
let e = !1;
|
|
735
735
|
const t = [];
|
|
736
736
|
for (let n = 0; n < a.length; n++) {
|
|
@@ -743,19 +743,19 @@ var c;
|
|
|
743
743
|
(function(a) {
|
|
744
744
|
a[a.DOUBLE = 1] = "DOUBLE", a[a.FLOAT = 2] = "FLOAT", a[a.INT64 = 3] = "INT64", a[a.UINT64 = 4] = "UINT64", a[a.INT32 = 5] = "INT32", a[a.FIXED64 = 6] = "FIXED64", a[a.FIXED32 = 7] = "FIXED32", a[a.BOOL = 8] = "BOOL", a[a.STRING = 9] = "STRING", a[a.BYTES = 12] = "BYTES", a[a.UINT32 = 13] = "UINT32", a[a.SFIXED32 = 15] = "SFIXED32", a[a.SFIXED64 = 16] = "SFIXED64", a[a.SINT32 = 17] = "SINT32", a[a.SINT64 = 18] = "SINT64";
|
|
745
745
|
})(c || (c = {}));
|
|
746
|
-
var
|
|
746
|
+
var U;
|
|
747
747
|
(function(a) {
|
|
748
748
|
a[a.BIGINT = 0] = "BIGINT", a[a.STRING = 1] = "STRING", a[a.NUMBER = 2] = "NUMBER";
|
|
749
|
-
})(
|
|
750
|
-
var
|
|
749
|
+
})(U || (U = {}));
|
|
750
|
+
var q;
|
|
751
751
|
(function(a) {
|
|
752
752
|
a[a.NO = 0] = "NO", a[a.PACKED = 1] = "PACKED", a[a.UNPACKED = 2] = "UNPACKED";
|
|
753
|
-
})(
|
|
754
|
-
function
|
|
753
|
+
})(q || (q = {}));
|
|
754
|
+
function rt(a) {
|
|
755
755
|
var e, t, n, r;
|
|
756
|
-
return a.localName = (e = a.localName) !== null && e !== void 0 ? e :
|
|
756
|
+
return a.localName = (e = a.localName) !== null && e !== void 0 ? e : Ee(a.name), a.jsonName = (t = a.jsonName) !== null && t !== void 0 ? t : Ee(a.name), a.repeat = (n = a.repeat) !== null && n !== void 0 ? n : q.NO, a.opt = (r = a.opt) !== null && r !== void 0 ? r : a.repeat || a.oneof ? !1 : a.kind == "message", a;
|
|
757
757
|
}
|
|
758
|
-
function
|
|
758
|
+
function at(a) {
|
|
759
759
|
if (typeof a != "object" || a === null || !a.hasOwnProperty("oneofKind"))
|
|
760
760
|
return !1;
|
|
761
761
|
switch (typeof a.oneofKind) {
|
|
@@ -767,7 +767,7 @@ function rt(a) {
|
|
|
767
767
|
return !1;
|
|
768
768
|
}
|
|
769
769
|
}
|
|
770
|
-
class
|
|
770
|
+
class st {
|
|
771
771
|
constructor(e) {
|
|
772
772
|
var t;
|
|
773
773
|
this.fields = (t = e.fields) !== null && t !== void 0 ? t : [];
|
|
@@ -821,22 +821,22 @@ class at {
|
|
|
821
821
|
return !1;
|
|
822
822
|
this.prepare();
|
|
823
823
|
let r = Object.keys(e), i = this.data;
|
|
824
|
-
if (r.length < i.req.length || i.req.some((
|
|
824
|
+
if (r.length < i.req.length || i.req.some((f) => !r.includes(f)) || !n && r.some((f) => !i.known.includes(f)))
|
|
825
825
|
return !1;
|
|
826
826
|
if (t < 1)
|
|
827
827
|
return !0;
|
|
828
|
-
for (const
|
|
829
|
-
const s = e[
|
|
830
|
-
if (!
|
|
828
|
+
for (const f of i.oneofs) {
|
|
829
|
+
const s = e[f];
|
|
830
|
+
if (!at(s))
|
|
831
831
|
return !1;
|
|
832
832
|
if (s.oneofKind === void 0)
|
|
833
833
|
continue;
|
|
834
|
-
const o = this.fields.find((
|
|
834
|
+
const o = this.fields.find((l) => l.localName === s.oneofKind);
|
|
835
835
|
if (!o || !this.field(s[s.oneofKind], o, n, t))
|
|
836
836
|
return !1;
|
|
837
837
|
}
|
|
838
|
-
for (const
|
|
839
|
-
if (
|
|
838
|
+
for (const f of this.fields)
|
|
839
|
+
if (f.oneof === void 0 && !this.field(e[f.localName], f, n, t))
|
|
840
840
|
return !1;
|
|
841
841
|
return !0;
|
|
842
842
|
}
|
|
@@ -895,9 +895,9 @@ class at {
|
|
|
895
895
|
case c.SFIXED64:
|
|
896
896
|
case c.SINT64:
|
|
897
897
|
switch (n) {
|
|
898
|
-
case
|
|
898
|
+
case U.BIGINT:
|
|
899
899
|
return r == "bigint";
|
|
900
|
-
case
|
|
900
|
+
case U.NUMBER:
|
|
901
901
|
return r == "number" && !isNaN(e);
|
|
902
902
|
default:
|
|
903
903
|
return r == "string";
|
|
@@ -939,21 +939,21 @@ class at {
|
|
|
939
939
|
case c.BOOL:
|
|
940
940
|
return this.scalars(r.slice(0, n).map((i) => i == "true" ? !0 : i == "false" ? !1 : i), t, n);
|
|
941
941
|
default:
|
|
942
|
-
return this.scalars(r, t, n,
|
|
942
|
+
return this.scalars(r, t, n, U.STRING);
|
|
943
943
|
}
|
|
944
944
|
}
|
|
945
945
|
}
|
|
946
946
|
function O(a, e) {
|
|
947
947
|
switch (e) {
|
|
948
|
-
case
|
|
948
|
+
case U.BIGINT:
|
|
949
949
|
return a.toBigInt();
|
|
950
|
-
case
|
|
950
|
+
case U.NUMBER:
|
|
951
951
|
return a.toNumber();
|
|
952
952
|
default:
|
|
953
953
|
return a.toString();
|
|
954
954
|
}
|
|
955
955
|
}
|
|
956
|
-
class
|
|
956
|
+
class ot {
|
|
957
957
|
constructor(e) {
|
|
958
958
|
this.info = e;
|
|
959
959
|
}
|
|
@@ -969,7 +969,7 @@ class st {
|
|
|
969
969
|
// Cannot parse JSON <type of jsonValue> for <type name>#<fieldName>.
|
|
970
970
|
assert(e, t, n) {
|
|
971
971
|
if (!e) {
|
|
972
|
-
let r =
|
|
972
|
+
let r = Fe(n);
|
|
973
973
|
throw (r == "number" || r == "boolean") && (r = n.toString()), new Error(`Cannot parse JSON ${r} for ${this.info.typeName}#${t}`);
|
|
974
974
|
}
|
|
975
975
|
}
|
|
@@ -985,7 +985,7 @@ class st {
|
|
|
985
985
|
read(e, t, n) {
|
|
986
986
|
this.prepare();
|
|
987
987
|
const r = [];
|
|
988
|
-
for (const [i,
|
|
988
|
+
for (const [i, f] of Object.entries(e)) {
|
|
989
989
|
const s = this.fMap[i];
|
|
990
990
|
if (!s) {
|
|
991
991
|
if (!n.ignoreUnknownFields)
|
|
@@ -993,23 +993,23 @@ class st {
|
|
|
993
993
|
continue;
|
|
994
994
|
}
|
|
995
995
|
const o = s.localName;
|
|
996
|
-
let
|
|
996
|
+
let l;
|
|
997
997
|
if (s.oneof) {
|
|
998
|
-
if (
|
|
998
|
+
if (f === null && (s.kind !== "enum" || s.T()[0] !== "google.protobuf.NullValue"))
|
|
999
999
|
continue;
|
|
1000
1000
|
if (r.includes(s.oneof))
|
|
1001
1001
|
throw new Error(`Multiple members of the oneof group "${s.oneof}" of ${this.info.typeName} are present in JSON.`);
|
|
1002
|
-
r.push(s.oneof),
|
|
1002
|
+
r.push(s.oneof), l = t[s.oneof] = {
|
|
1003
1003
|
oneofKind: o
|
|
1004
1004
|
};
|
|
1005
1005
|
} else
|
|
1006
|
-
|
|
1006
|
+
l = t;
|
|
1007
1007
|
if (s.kind == "map") {
|
|
1008
|
-
if (
|
|
1008
|
+
if (f === null)
|
|
1009
1009
|
continue;
|
|
1010
|
-
this.assert(Pe(
|
|
1011
|
-
const h =
|
|
1012
|
-
for (const [g, k] of Object.entries(
|
|
1010
|
+
this.assert(Pe(f), s.name, f);
|
|
1011
|
+
const h = l[o];
|
|
1012
|
+
for (const [g, k] of Object.entries(f)) {
|
|
1013
1013
|
this.assert(k !== null, s.name + " map value", null);
|
|
1014
1014
|
let R;
|
|
1015
1015
|
switch (s.V.kind) {
|
|
@@ -1025,15 +1025,15 @@ class st {
|
|
|
1025
1025
|
break;
|
|
1026
1026
|
}
|
|
1027
1027
|
this.assert(R !== void 0, s.name + " map value", k);
|
|
1028
|
-
let
|
|
1029
|
-
s.K == c.BOOL && (
|
|
1028
|
+
let $ = g;
|
|
1029
|
+
s.K == c.BOOL && ($ = $ == "true" ? !0 : $ == "false" ? !1 : $), $ = this.scalar($, s.K, U.STRING, s.name).toString(), h[$] = R;
|
|
1030
1030
|
}
|
|
1031
1031
|
} else if (s.repeat) {
|
|
1032
|
-
if (
|
|
1032
|
+
if (f === null)
|
|
1033
1033
|
continue;
|
|
1034
|
-
this.assert(Array.isArray(
|
|
1035
|
-
const h =
|
|
1036
|
-
for (const g of
|
|
1034
|
+
this.assert(Array.isArray(f), s.name, f);
|
|
1035
|
+
const h = l[o];
|
|
1036
|
+
for (const g of f) {
|
|
1037
1037
|
this.assert(g !== null, s.name, null);
|
|
1038
1038
|
let k;
|
|
1039
1039
|
switch (s.kind) {
|
|
@@ -1048,29 +1048,29 @@ class st {
|
|
|
1048
1048
|
k = this.scalar(g, s.T, s.L, s.name);
|
|
1049
1049
|
break;
|
|
1050
1050
|
}
|
|
1051
|
-
this.assert(k !== void 0, s.name,
|
|
1051
|
+
this.assert(k !== void 0, s.name, f), h.push(k);
|
|
1052
1052
|
}
|
|
1053
1053
|
} else
|
|
1054
1054
|
switch (s.kind) {
|
|
1055
1055
|
case "message":
|
|
1056
|
-
if (
|
|
1056
|
+
if (f === null && s.T().typeName != "google.protobuf.Value") {
|
|
1057
1057
|
this.assert(s.oneof === void 0, s.name + " (oneof member)", null);
|
|
1058
1058
|
continue;
|
|
1059
1059
|
}
|
|
1060
|
-
|
|
1060
|
+
l[o] = s.T().internalJsonRead(f, n, l[o]);
|
|
1061
1061
|
break;
|
|
1062
1062
|
case "enum":
|
|
1063
|
-
if (
|
|
1063
|
+
if (f === null)
|
|
1064
1064
|
continue;
|
|
1065
|
-
let h = this.enum(s.T(),
|
|
1065
|
+
let h = this.enum(s.T(), f, s.name, n.ignoreUnknownFields);
|
|
1066
1066
|
if (h === !1)
|
|
1067
1067
|
continue;
|
|
1068
|
-
|
|
1068
|
+
l[o] = h;
|
|
1069
1069
|
break;
|
|
1070
1070
|
case "scalar":
|
|
1071
|
-
if (
|
|
1071
|
+
if (f === null)
|
|
1072
1072
|
continue;
|
|
1073
|
-
|
|
1073
|
+
l[o] = this.scalar(f, s.T, s.L, s.name);
|
|
1074
1074
|
break;
|
|
1075
1075
|
}
|
|
1076
1076
|
}
|
|
@@ -1089,8 +1089,8 @@ class st {
|
|
|
1089
1089
|
case "string":
|
|
1090
1090
|
let i = t;
|
|
1091
1091
|
e[2] && t.substring(0, e[2].length) === e[2] && (i = t.substring(e[2].length));
|
|
1092
|
-
let
|
|
1093
|
-
return typeof
|
|
1092
|
+
let f = e[1][i];
|
|
1093
|
+
return typeof f > "u" && r ? !1 : (y(typeof f == "number", `Unable to parse field ${this.info.typeName}#${n}, enum ${e[0]} has no value for "${t}".`), f);
|
|
1094
1094
|
}
|
|
1095
1095
|
y(!1, `Unable to parse field ${this.info.typeName}#${n}, cannot parse enum value from ${typeof t}".`);
|
|
1096
1096
|
}
|
|
@@ -1120,16 +1120,16 @@ class st {
|
|
|
1120
1120
|
}
|
|
1121
1121
|
if (typeof e != "string" && typeof e != "number")
|
|
1122
1122
|
break;
|
|
1123
|
-
let
|
|
1124
|
-
if (Number.isNaN(
|
|
1123
|
+
let f = Number(e);
|
|
1124
|
+
if (Number.isNaN(f)) {
|
|
1125
1125
|
i = "not a number";
|
|
1126
1126
|
break;
|
|
1127
1127
|
}
|
|
1128
|
-
if (!Number.isFinite(
|
|
1128
|
+
if (!Number.isFinite(f)) {
|
|
1129
1129
|
i = "too large or small";
|
|
1130
1130
|
break;
|
|
1131
1131
|
}
|
|
1132
|
-
return t == c.FLOAT &&
|
|
1132
|
+
return t == c.FLOAT && be(f), f;
|
|
1133
1133
|
// int32, fixed32, uint32: JSON value will be a decimal number. Either numbers or strings are accepted.
|
|
1134
1134
|
case c.INT32:
|
|
1135
1135
|
case c.FIXED32:
|
|
@@ -1141,7 +1141,7 @@ class st {
|
|
|
1141
1141
|
let s;
|
|
1142
1142
|
if (typeof e == "number" ? s = e : e === "" ? i = "empty string" : typeof e == "string" && (e.trim().length !== e.length ? i = "extra whitespace" : s = Number(e)), s === void 0)
|
|
1143
1143
|
break;
|
|
1144
|
-
return t == c.UINT32 ?
|
|
1144
|
+
return t == c.UINT32 ? Z(s) : P(s), s;
|
|
1145
1145
|
// int64, fixed64, uint64: JSON value will be a decimal string. Either numbers or strings are accepted.
|
|
1146
1146
|
case c.INT64:
|
|
1147
1147
|
case c.SFIXED64:
|
|
@@ -1187,15 +1187,15 @@ class st {
|
|
|
1187
1187
|
return new Uint8Array(0);
|
|
1188
1188
|
if (typeof e != "string")
|
|
1189
1189
|
break;
|
|
1190
|
-
return
|
|
1190
|
+
return Se(e);
|
|
1191
1191
|
}
|
|
1192
|
-
} catch (
|
|
1193
|
-
i =
|
|
1192
|
+
} catch (f) {
|
|
1193
|
+
i = f.message;
|
|
1194
1194
|
}
|
|
1195
1195
|
this.assert(!1, r + (i ? " - " + i : ""), e);
|
|
1196
1196
|
}
|
|
1197
1197
|
}
|
|
1198
|
-
class
|
|
1198
|
+
class ft {
|
|
1199
1199
|
constructor(e) {
|
|
1200
1200
|
var t;
|
|
1201
1201
|
this.fields = (t = e.fields) !== null && t !== void 0 ? t : [];
|
|
@@ -1207,15 +1207,15 @@ class ot {
|
|
|
1207
1207
|
const n = {}, r = e;
|
|
1208
1208
|
for (const i of this.fields) {
|
|
1209
1209
|
if (!i.oneof) {
|
|
1210
|
-
let
|
|
1211
|
-
|
|
1210
|
+
let l = this.field(i, r[i.localName], t);
|
|
1211
|
+
l !== void 0 && (n[t.useProtoFieldName ? i.name : i.jsonName] = l);
|
|
1212
1212
|
continue;
|
|
1213
1213
|
}
|
|
1214
|
-
const
|
|
1215
|
-
if (
|
|
1214
|
+
const f = r[i.oneof];
|
|
1215
|
+
if (f.oneofKind !== i.localName)
|
|
1216
1216
|
continue;
|
|
1217
1217
|
const s = i.kind == "scalar" || i.kind == "enum" ? Object.assign(Object.assign({}, t), { emitDefaultValues: !0 }) : t;
|
|
1218
|
-
let o = this.field(i,
|
|
1218
|
+
let o = this.field(i, f[i.localName], s);
|
|
1219
1219
|
y(o !== void 0), n[t.useProtoFieldName ? i.name : i.jsonName] = o;
|
|
1220
1220
|
}
|
|
1221
1221
|
return n;
|
|
@@ -1227,23 +1227,23 @@ class ot {
|
|
|
1227
1227
|
const i = {};
|
|
1228
1228
|
switch (e.V.kind) {
|
|
1229
1229
|
case "scalar":
|
|
1230
|
-
for (const [o,
|
|
1231
|
-
const h = this.scalar(e.V.T,
|
|
1230
|
+
for (const [o, l] of Object.entries(t)) {
|
|
1231
|
+
const h = this.scalar(e.V.T, l, e.name, !1, !0);
|
|
1232
1232
|
y(h !== void 0), i[o.toString()] = h;
|
|
1233
1233
|
}
|
|
1234
1234
|
break;
|
|
1235
1235
|
case "message":
|
|
1236
|
-
const
|
|
1237
|
-
for (const [o,
|
|
1238
|
-
const h = this.message(
|
|
1236
|
+
const f = e.V.T();
|
|
1237
|
+
for (const [o, l] of Object.entries(t)) {
|
|
1238
|
+
const h = this.message(f, l, e.name, n);
|
|
1239
1239
|
y(h !== void 0), i[o.toString()] = h;
|
|
1240
1240
|
}
|
|
1241
1241
|
break;
|
|
1242
1242
|
case "enum":
|
|
1243
1243
|
const s = e.V.T();
|
|
1244
|
-
for (const [o,
|
|
1245
|
-
y(
|
|
1246
|
-
const h = this.enum(s,
|
|
1244
|
+
for (const [o, l] of Object.entries(t)) {
|
|
1245
|
+
y(l === void 0 || typeof l == "number");
|
|
1246
|
+
const h = this.enum(s, l, e.name, !1, !0, n.enumAsInteger);
|
|
1247
1247
|
y(h !== void 0), i[o.toString()] = h;
|
|
1248
1248
|
}
|
|
1249
1249
|
break;
|
|
@@ -1255,23 +1255,23 @@ class ot {
|
|
|
1255
1255
|
switch (e.kind) {
|
|
1256
1256
|
case "scalar":
|
|
1257
1257
|
for (let o = 0; o < t.length; o++) {
|
|
1258
|
-
const
|
|
1259
|
-
y(
|
|
1258
|
+
const l = this.scalar(e.T, t[o], e.name, e.opt, !0);
|
|
1259
|
+
y(l !== void 0), i.push(l);
|
|
1260
1260
|
}
|
|
1261
1261
|
break;
|
|
1262
1262
|
case "enum":
|
|
1263
|
-
const
|
|
1263
|
+
const f = e.T();
|
|
1264
1264
|
for (let o = 0; o < t.length; o++) {
|
|
1265
1265
|
y(t[o] === void 0 || typeof t[o] == "number");
|
|
1266
|
-
const
|
|
1267
|
-
y(
|
|
1266
|
+
const l = this.enum(f, t[o], e.name, e.opt, !0, n.enumAsInteger);
|
|
1267
|
+
y(l !== void 0), i.push(l);
|
|
1268
1268
|
}
|
|
1269
1269
|
break;
|
|
1270
1270
|
case "message":
|
|
1271
1271
|
const s = e.T();
|
|
1272
1272
|
for (let o = 0; o < t.length; o++) {
|
|
1273
|
-
const
|
|
1274
|
-
y(
|
|
1273
|
+
const l = this.message(s, t[o], e.name, n);
|
|
1274
|
+
y(l !== void 0), i.push(l);
|
|
1275
1275
|
}
|
|
1276
1276
|
break;
|
|
1277
1277
|
}
|
|
@@ -1293,7 +1293,7 @@ class ot {
|
|
|
1293
1293
|
/**
|
|
1294
1294
|
* Returns `null` as the default for google.protobuf.NullValue.
|
|
1295
1295
|
*/
|
|
1296
|
-
enum(e, t, n, r, i,
|
|
1296
|
+
enum(e, t, n, r, i, f) {
|
|
1297
1297
|
if (e[0] == "google.protobuf.NullValue")
|
|
1298
1298
|
return !i && !r ? void 0 : null;
|
|
1299
1299
|
if (t === void 0) {
|
|
@@ -1301,7 +1301,7 @@ class ot {
|
|
|
1301
1301
|
return;
|
|
1302
1302
|
}
|
|
1303
1303
|
if (!(t === 0 && !i && !r))
|
|
1304
|
-
return y(typeof t == "number"), y(Number.isInteger(t)),
|
|
1304
|
+
return y(typeof t == "number"), y(Number.isInteger(t)), f || !e[1].hasOwnProperty(t) ? t : e[2] ? e[2] + e[1][t] : e[1][t];
|
|
1305
1305
|
}
|
|
1306
1306
|
message(e, t, n, r) {
|
|
1307
1307
|
return t === void 0 ? r.emitDefaultValues ? null : void 0 : e.internalJsonWrite(t, r);
|
|
@@ -1311,49 +1311,49 @@ class ot {
|
|
|
1311
1311
|
y(r);
|
|
1312
1312
|
return;
|
|
1313
1313
|
}
|
|
1314
|
-
const
|
|
1314
|
+
const f = i || r;
|
|
1315
1315
|
switch (e) {
|
|
1316
1316
|
// int32, fixed32, uint32: JSON value will be a decimal number. Either numbers or strings are accepted.
|
|
1317
1317
|
case c.INT32:
|
|
1318
1318
|
case c.SFIXED32:
|
|
1319
1319
|
case c.SINT32:
|
|
1320
|
-
return t === 0 ?
|
|
1320
|
+
return t === 0 ? f ? 0 : void 0 : (P(t), t);
|
|
1321
1321
|
case c.FIXED32:
|
|
1322
1322
|
case c.UINT32:
|
|
1323
|
-
return t === 0 ?
|
|
1323
|
+
return t === 0 ? f ? 0 : void 0 : (Z(t), t);
|
|
1324
1324
|
// float, double: JSON value will be a number or one of the special string values "NaN", "Infinity", and "-Infinity".
|
|
1325
1325
|
// Either numbers or strings are accepted. Exponent notation is also accepted.
|
|
1326
1326
|
case c.FLOAT:
|
|
1327
|
-
|
|
1327
|
+
be(t);
|
|
1328
1328
|
case c.DOUBLE:
|
|
1329
|
-
return t === 0 ?
|
|
1329
|
+
return t === 0 ? f ? 0 : void 0 : (y(typeof t == "number"), Number.isNaN(t) ? "NaN" : t === Number.POSITIVE_INFINITY ? "Infinity" : t === Number.NEGATIVE_INFINITY ? "-Infinity" : t);
|
|
1330
1330
|
// string:
|
|
1331
1331
|
case c.STRING:
|
|
1332
|
-
return t === "" ?
|
|
1332
|
+
return t === "" ? f ? "" : void 0 : (y(typeof t == "string"), t);
|
|
1333
1333
|
// bool:
|
|
1334
1334
|
case c.BOOL:
|
|
1335
|
-
return t === !1 ?
|
|
1335
|
+
return t === !1 ? f ? !1 : void 0 : (y(typeof t == "boolean"), t);
|
|
1336
1336
|
// JSON value will be a decimal string. Either numbers or strings are accepted.
|
|
1337
1337
|
case c.UINT64:
|
|
1338
1338
|
case c.FIXED64:
|
|
1339
1339
|
y(typeof t == "number" || typeof t == "string" || typeof t == "bigint");
|
|
1340
1340
|
let s = B.from(t);
|
|
1341
|
-
return s.isZero() && !
|
|
1341
|
+
return s.isZero() && !f ? void 0 : s.toString();
|
|
1342
1342
|
// JSON value will be a decimal string. Either numbers or strings are accepted.
|
|
1343
1343
|
case c.INT64:
|
|
1344
1344
|
case c.SFIXED64:
|
|
1345
1345
|
case c.SINT64:
|
|
1346
1346
|
y(typeof t == "number" || typeof t == "string" || typeof t == "bigint");
|
|
1347
1347
|
let o = N.from(t);
|
|
1348
|
-
return o.isZero() && !
|
|
1348
|
+
return o.isZero() && !f ? void 0 : o.toString();
|
|
1349
1349
|
// bytes: JSON value will be the data encoded as a string using standard base64 encoding with paddings.
|
|
1350
1350
|
// Either standard or URL-safe base64 encoding with/without paddings are accepted.
|
|
1351
1351
|
case c.BYTES:
|
|
1352
|
-
return y(t instanceof Uint8Array), t.byteLength ?
|
|
1352
|
+
return y(t instanceof Uint8Array), t.byteLength ? Me(t) : f ? "" : void 0;
|
|
1353
1353
|
}
|
|
1354
1354
|
}
|
|
1355
1355
|
}
|
|
1356
|
-
function ye(a, e =
|
|
1356
|
+
function ye(a, e = U.STRING) {
|
|
1357
1357
|
switch (a) {
|
|
1358
1358
|
case c.BOOL:
|
|
1359
1359
|
return !1;
|
|
@@ -1399,43 +1399,43 @@ class lt {
|
|
|
1399
1399
|
this.prepare();
|
|
1400
1400
|
const i = r === void 0 ? e.len : e.pos + r;
|
|
1401
1401
|
for (; e.pos < i; ) {
|
|
1402
|
-
const [
|
|
1402
|
+
const [f, s] = e.tag(), o = this.fieldNoToField.get(f);
|
|
1403
1403
|
if (!o) {
|
|
1404
1404
|
let k = n.readUnknownField;
|
|
1405
1405
|
if (k == "throw")
|
|
1406
|
-
throw new Error(`Unknown field ${
|
|
1406
|
+
throw new Error(`Unknown field ${f} (wire type ${s}) for ${this.info.typeName}`);
|
|
1407
1407
|
let R = e.skip(s);
|
|
1408
|
-
k !== !1 && (k === !0 ? d.onRead : k)(this.info.typeName, t,
|
|
1408
|
+
k !== !1 && (k === !0 ? d.onRead : k)(this.info.typeName, t, f, s, R);
|
|
1409
1409
|
continue;
|
|
1410
1410
|
}
|
|
1411
|
-
let
|
|
1412
|
-
switch (o.oneof && (
|
|
1411
|
+
let l = t, h = o.repeat, g = o.localName;
|
|
1412
|
+
switch (o.oneof && (l = l[o.oneof], l.oneofKind !== g && (l = t[o.oneof] = {
|
|
1413
1413
|
oneofKind: g
|
|
1414
1414
|
})), o.kind) {
|
|
1415
1415
|
case "scalar":
|
|
1416
1416
|
case "enum":
|
|
1417
1417
|
let k = o.kind == "enum" ? c.INT32 : o.T, R = o.kind == "scalar" ? o.L : void 0;
|
|
1418
1418
|
if (h) {
|
|
1419
|
-
let
|
|
1419
|
+
let M = l[g];
|
|
1420
1420
|
if (s == u.LengthDelimited && k != c.STRING && k != c.BYTES) {
|
|
1421
|
-
let
|
|
1422
|
-
for (; e.pos <
|
|
1423
|
-
|
|
1421
|
+
let Q = e.uint32() + e.pos;
|
|
1422
|
+
for (; e.pos < Q; )
|
|
1423
|
+
M.push(this.scalar(e, k, R));
|
|
1424
1424
|
} else
|
|
1425
|
-
|
|
1425
|
+
M.push(this.scalar(e, k, R));
|
|
1426
1426
|
} else
|
|
1427
|
-
|
|
1427
|
+
l[g] = this.scalar(e, k, R);
|
|
1428
1428
|
break;
|
|
1429
1429
|
case "message":
|
|
1430
1430
|
if (h) {
|
|
1431
|
-
let
|
|
1432
|
-
|
|
1431
|
+
let M = l[g], Q = o.T().internalBinaryRead(e, e.uint32(), n);
|
|
1432
|
+
M.push(Q);
|
|
1433
1433
|
} else
|
|
1434
|
-
|
|
1434
|
+
l[g] = o.T().internalBinaryRead(e, e.uint32(), n, l[g]);
|
|
1435
1435
|
break;
|
|
1436
1436
|
case "map":
|
|
1437
|
-
let [
|
|
1438
|
-
|
|
1437
|
+
let [$, Ce] = this.mapEntry(o, e, n);
|
|
1438
|
+
l[g][$] = Ce;
|
|
1439
1439
|
break;
|
|
1440
1440
|
}
|
|
1441
1441
|
}
|
|
@@ -1444,12 +1444,12 @@ class lt {
|
|
|
1444
1444
|
* Read a map field, expecting key field = 1, value field = 2
|
|
1445
1445
|
*/
|
|
1446
1446
|
mapEntry(e, t, n) {
|
|
1447
|
-
let r = t.uint32(), i = t.pos + r,
|
|
1447
|
+
let r = t.uint32(), i = t.pos + r, f, s;
|
|
1448
1448
|
for (; t.pos < i; ) {
|
|
1449
|
-
let [o,
|
|
1449
|
+
let [o, l] = t.tag();
|
|
1450
1450
|
switch (o) {
|
|
1451
1451
|
case 1:
|
|
1452
|
-
e.K == c.BOOL ?
|
|
1452
|
+
e.K == c.BOOL ? f = t.bool().toString() : f = this.scalar(t, e.K, U.STRING);
|
|
1453
1453
|
break;
|
|
1454
1454
|
case 2:
|
|
1455
1455
|
switch (e.V.kind) {
|
|
@@ -1465,12 +1465,12 @@ class lt {
|
|
|
1465
1465
|
}
|
|
1466
1466
|
break;
|
|
1467
1467
|
default:
|
|
1468
|
-
throw new Error(`Unknown field ${o} (wire type ${
|
|
1468
|
+
throw new Error(`Unknown field ${o} (wire type ${l}) in map entry for ${this.info.typeName}#${e.name}`);
|
|
1469
1469
|
}
|
|
1470
1470
|
}
|
|
1471
|
-
if (
|
|
1471
|
+
if (f === void 0) {
|
|
1472
1472
|
let o = ye(e.K);
|
|
1473
|
-
|
|
1473
|
+
f = e.K == c.BOOL ? o.toString() : o;
|
|
1474
1474
|
}
|
|
1475
1475
|
if (s === void 0)
|
|
1476
1476
|
switch (e.V.kind) {
|
|
@@ -1484,7 +1484,7 @@ class lt {
|
|
|
1484
1484
|
s = e.V.T().create();
|
|
1485
1485
|
break;
|
|
1486
1486
|
}
|
|
1487
|
-
return [
|
|
1487
|
+
return [f, s];
|
|
1488
1488
|
}
|
|
1489
1489
|
scalar(e, t, n) {
|
|
1490
1490
|
switch (t) {
|
|
@@ -1521,7 +1521,7 @@ class lt {
|
|
|
1521
1521
|
}
|
|
1522
1522
|
}
|
|
1523
1523
|
}
|
|
1524
|
-
class
|
|
1524
|
+
class ut {
|
|
1525
1525
|
constructor(e) {
|
|
1526
1526
|
this.info = e;
|
|
1527
1527
|
}
|
|
@@ -1537,37 +1537,37 @@ class ft {
|
|
|
1537
1537
|
write(e, t, n) {
|
|
1538
1538
|
this.prepare();
|
|
1539
1539
|
for (const i of this.fields) {
|
|
1540
|
-
let
|
|
1540
|
+
let f, s, o = i.repeat, l = i.localName;
|
|
1541
1541
|
if (i.oneof) {
|
|
1542
1542
|
const h = e[i.oneof];
|
|
1543
|
-
if (h.oneofKind !==
|
|
1543
|
+
if (h.oneofKind !== l)
|
|
1544
1544
|
continue;
|
|
1545
|
-
|
|
1545
|
+
f = h[l], s = !0;
|
|
1546
1546
|
} else
|
|
1547
|
-
|
|
1547
|
+
f = e[l], s = !1;
|
|
1548
1548
|
switch (i.kind) {
|
|
1549
1549
|
case "scalar":
|
|
1550
1550
|
case "enum":
|
|
1551
1551
|
let h = i.kind == "enum" ? c.INT32 : i.T;
|
|
1552
1552
|
if (o)
|
|
1553
|
-
if (y(Array.isArray(
|
|
1554
|
-
this.packed(t, h, i.no,
|
|
1553
|
+
if (y(Array.isArray(f)), o == q.PACKED)
|
|
1554
|
+
this.packed(t, h, i.no, f);
|
|
1555
1555
|
else
|
|
1556
|
-
for (const g of
|
|
1556
|
+
for (const g of f)
|
|
1557
1557
|
this.scalar(t, h, i.no, g, !0);
|
|
1558
|
-
else
|
|
1558
|
+
else f === void 0 ? y(i.opt) : this.scalar(t, h, i.no, f, s || i.opt);
|
|
1559
1559
|
break;
|
|
1560
1560
|
case "message":
|
|
1561
1561
|
if (o) {
|
|
1562
|
-
y(Array.isArray(
|
|
1563
|
-
for (const g of
|
|
1562
|
+
y(Array.isArray(f));
|
|
1563
|
+
for (const g of f)
|
|
1564
1564
|
this.message(t, n, i.T(), i.no, g);
|
|
1565
1565
|
} else
|
|
1566
|
-
this.message(t, n, i.T(), i.no,
|
|
1566
|
+
this.message(t, n, i.T(), i.no, f);
|
|
1567
1567
|
break;
|
|
1568
1568
|
case "map":
|
|
1569
|
-
y(typeof
|
|
1570
|
-
for (const [g, k] of Object.entries(
|
|
1569
|
+
y(typeof f == "object" && f !== null);
|
|
1570
|
+
for (const [g, k] of Object.entries(f))
|
|
1571
1571
|
this.mapEntry(t, n, i, g, k);
|
|
1572
1572
|
break;
|
|
1573
1573
|
}
|
|
@@ -1577,20 +1577,20 @@ class ft {
|
|
|
1577
1577
|
}
|
|
1578
1578
|
mapEntry(e, t, n, r, i) {
|
|
1579
1579
|
e.tag(n.no, u.LengthDelimited), e.fork();
|
|
1580
|
-
let
|
|
1580
|
+
let f = r;
|
|
1581
1581
|
switch (n.K) {
|
|
1582
1582
|
case c.INT32:
|
|
1583
1583
|
case c.FIXED32:
|
|
1584
1584
|
case c.UINT32:
|
|
1585
1585
|
case c.SFIXED32:
|
|
1586
1586
|
case c.SINT32:
|
|
1587
|
-
|
|
1587
|
+
f = Number.parseInt(r);
|
|
1588
1588
|
break;
|
|
1589
1589
|
case c.BOOL:
|
|
1590
|
-
y(r == "true" || r == "false"),
|
|
1590
|
+
y(r == "true" || r == "false"), f = r == "true";
|
|
1591
1591
|
break;
|
|
1592
1592
|
}
|
|
1593
|
-
switch (this.scalar(e, n.K, 1,
|
|
1593
|
+
switch (this.scalar(e, n.K, 1, f, !0), n.V.kind) {
|
|
1594
1594
|
case "scalar":
|
|
1595
1595
|
this.scalar(e, n.V.T, 2, i, !0);
|
|
1596
1596
|
break;
|
|
@@ -1610,8 +1610,8 @@ class ft {
|
|
|
1610
1610
|
* Write a single scalar value.
|
|
1611
1611
|
*/
|
|
1612
1612
|
scalar(e, t, n, r, i) {
|
|
1613
|
-
let [
|
|
1614
|
-
(!o || i) && (e.tag(n,
|
|
1613
|
+
let [f, s, o] = this.scalarInfo(t, r);
|
|
1614
|
+
(!o || i) && (e.tag(n, f), e[s](r));
|
|
1615
1615
|
}
|
|
1616
1616
|
/**
|
|
1617
1617
|
* Write an array of scalar values in packed format.
|
|
@@ -1621,8 +1621,8 @@ class ft {
|
|
|
1621
1621
|
return;
|
|
1622
1622
|
y(t !== c.BYTES && t !== c.STRING), e.tag(n, u.LengthDelimited), e.fork();
|
|
1623
1623
|
let [, i] = this.scalarInfo(t);
|
|
1624
|
-
for (let
|
|
1625
|
-
e[i](r[
|
|
1624
|
+
for (let f = 0; f < r.length; f++)
|
|
1625
|
+
e[i](r[f]);
|
|
1626
1626
|
e.join();
|
|
1627
1627
|
}
|
|
1628
1628
|
/**
|
|
@@ -1636,16 +1636,16 @@ class ft {
|
|
|
1636
1636
|
* If argument `value` is omitted, [2] is always false.
|
|
1637
1637
|
*/
|
|
1638
1638
|
scalarInfo(e, t) {
|
|
1639
|
-
let n = u.Varint, r, i = t === void 0,
|
|
1639
|
+
let n = u.Varint, r, i = t === void 0, f = t === 0;
|
|
1640
1640
|
switch (e) {
|
|
1641
1641
|
case c.INT32:
|
|
1642
1642
|
r = "int32";
|
|
1643
1643
|
break;
|
|
1644
1644
|
case c.STRING:
|
|
1645
|
-
|
|
1645
|
+
f = i || !t.length, n = u.LengthDelimited, r = "string";
|
|
1646
1646
|
break;
|
|
1647
1647
|
case c.BOOL:
|
|
1648
|
-
|
|
1648
|
+
f = t === !1, r = "bool";
|
|
1649
1649
|
break;
|
|
1650
1650
|
case c.UINT32:
|
|
1651
1651
|
r = "uint32";
|
|
@@ -1657,16 +1657,16 @@ class ft {
|
|
|
1657
1657
|
n = u.Bit32, r = "float";
|
|
1658
1658
|
break;
|
|
1659
1659
|
case c.INT64:
|
|
1660
|
-
|
|
1660
|
+
f = i || N.from(t).isZero(), r = "int64";
|
|
1661
1661
|
break;
|
|
1662
1662
|
case c.UINT64:
|
|
1663
|
-
|
|
1663
|
+
f = i || B.from(t).isZero(), r = "uint64";
|
|
1664
1664
|
break;
|
|
1665
1665
|
case c.FIXED64:
|
|
1666
|
-
|
|
1666
|
+
f = i || B.from(t).isZero(), n = u.Bit64, r = "fixed64";
|
|
1667
1667
|
break;
|
|
1668
1668
|
case c.BYTES:
|
|
1669
|
-
|
|
1669
|
+
f = i || !t.byteLength, n = u.LengthDelimited, r = "bytes";
|
|
1670
1670
|
break;
|
|
1671
1671
|
case c.FIXED32:
|
|
1672
1672
|
n = u.Bit32, r = "fixed32";
|
|
@@ -1675,20 +1675,20 @@ class ft {
|
|
|
1675
1675
|
n = u.Bit32, r = "sfixed32";
|
|
1676
1676
|
break;
|
|
1677
1677
|
case c.SFIXED64:
|
|
1678
|
-
|
|
1678
|
+
f = i || N.from(t).isZero(), n = u.Bit64, r = "sfixed64";
|
|
1679
1679
|
break;
|
|
1680
1680
|
case c.SINT32:
|
|
1681
1681
|
r = "sint32";
|
|
1682
1682
|
break;
|
|
1683
1683
|
case c.SINT64:
|
|
1684
|
-
|
|
1684
|
+
f = i || N.from(t).isZero(), r = "sint64";
|
|
1685
1685
|
break;
|
|
1686
1686
|
}
|
|
1687
|
-
return [n, r, i ||
|
|
1687
|
+
return [n, r, i || f];
|
|
1688
1688
|
}
|
|
1689
1689
|
}
|
|
1690
|
-
function
|
|
1691
|
-
const e = a.messagePrototype ? Object.create(a.messagePrototype) : Object.defineProperty({},
|
|
1690
|
+
function ct(a) {
|
|
1691
|
+
const e = a.messagePrototype ? Object.create(a.messagePrototype) : Object.defineProperty({}, Ve, { value: a });
|
|
1692
1692
|
for (let t of a.fields) {
|
|
1693
1693
|
let n = t.localName;
|
|
1694
1694
|
if (!t.opt)
|
|
@@ -1713,79 +1713,79 @@ function ut(a) {
|
|
|
1713
1713
|
}
|
|
1714
1714
|
function m(a, e, t) {
|
|
1715
1715
|
let n, r = t, i;
|
|
1716
|
-
for (let
|
|
1717
|
-
let s =
|
|
1718
|
-
if (
|
|
1719
|
-
const o = r[
|
|
1716
|
+
for (let f of a.fields) {
|
|
1717
|
+
let s = f.localName;
|
|
1718
|
+
if (f.oneof) {
|
|
1719
|
+
const o = r[f.oneof];
|
|
1720
1720
|
if (o?.oneofKind == null)
|
|
1721
1721
|
continue;
|
|
1722
|
-
if (n = o[s], i = e[
|
|
1722
|
+
if (n = o[s], i = e[f.oneof], i.oneofKind = o.oneofKind, n == null) {
|
|
1723
1723
|
delete i[s];
|
|
1724
1724
|
continue;
|
|
1725
1725
|
}
|
|
1726
1726
|
} else if (n = r[s], i = e, n == null)
|
|
1727
1727
|
continue;
|
|
1728
|
-
switch (
|
|
1728
|
+
switch (f.repeat && (i[s].length = n.length), f.kind) {
|
|
1729
1729
|
case "scalar":
|
|
1730
1730
|
case "enum":
|
|
1731
|
-
if (
|
|
1732
|
-
for (let
|
|
1733
|
-
i[s][
|
|
1731
|
+
if (f.repeat)
|
|
1732
|
+
for (let l = 0; l < n.length; l++)
|
|
1733
|
+
i[s][l] = n[l];
|
|
1734
1734
|
else
|
|
1735
1735
|
i[s] = n;
|
|
1736
1736
|
break;
|
|
1737
1737
|
case "message":
|
|
1738
|
-
let o =
|
|
1739
|
-
if (
|
|
1740
|
-
for (let
|
|
1741
|
-
i[s][
|
|
1738
|
+
let o = f.T();
|
|
1739
|
+
if (f.repeat)
|
|
1740
|
+
for (let l = 0; l < n.length; l++)
|
|
1741
|
+
i[s][l] = o.create(n[l]);
|
|
1742
1742
|
else i[s] === void 0 ? i[s] = o.create(n) : o.mergePartial(i[s], n);
|
|
1743
1743
|
break;
|
|
1744
1744
|
case "map":
|
|
1745
|
-
switch (
|
|
1745
|
+
switch (f.V.kind) {
|
|
1746
1746
|
case "scalar":
|
|
1747
1747
|
case "enum":
|
|
1748
1748
|
Object.assign(i[s], n);
|
|
1749
1749
|
break;
|
|
1750
1750
|
case "message":
|
|
1751
|
-
let
|
|
1751
|
+
let l = f.V.T();
|
|
1752
1752
|
for (let h of Object.keys(n))
|
|
1753
|
-
i[s][h] =
|
|
1753
|
+
i[s][h] = l.create(n[h]);
|
|
1754
1754
|
break;
|
|
1755
1755
|
}
|
|
1756
1756
|
break;
|
|
1757
1757
|
}
|
|
1758
1758
|
}
|
|
1759
1759
|
}
|
|
1760
|
-
function
|
|
1760
|
+
function ht(a, e, t) {
|
|
1761
1761
|
if (e === t)
|
|
1762
1762
|
return !0;
|
|
1763
1763
|
if (!e || !t)
|
|
1764
1764
|
return !1;
|
|
1765
1765
|
for (let n of a.fields) {
|
|
1766
|
-
let r = n.localName, i = n.oneof ? e[n.oneof][r] : e[r],
|
|
1766
|
+
let r = n.localName, i = n.oneof ? e[n.oneof][r] : e[r], f = n.oneof ? t[n.oneof][r] : t[r];
|
|
1767
1767
|
switch (n.kind) {
|
|
1768
1768
|
case "enum":
|
|
1769
1769
|
case "scalar":
|
|
1770
1770
|
let s = n.kind == "enum" ? c.INT32 : n.T;
|
|
1771
|
-
if (!(n.repeat ?
|
|
1771
|
+
if (!(n.repeat ? De(s, i, f) : xe(s, i, f)))
|
|
1772
1772
|
return !1;
|
|
1773
1773
|
break;
|
|
1774
1774
|
case "map":
|
|
1775
|
-
if (!(n.V.kind == "message" ?
|
|
1775
|
+
if (!(n.V.kind == "message" ? Oe(n.V.T(), G(i), G(f)) : De(n.V.kind == "enum" ? c.INT32 : n.V.T, G(i), G(f))))
|
|
1776
1776
|
return !1;
|
|
1777
1777
|
break;
|
|
1778
1778
|
case "message":
|
|
1779
1779
|
let o = n.T();
|
|
1780
|
-
if (!(n.repeat ?
|
|
1780
|
+
if (!(n.repeat ? Oe(o, i, f) : o.equals(i, f)))
|
|
1781
1781
|
return !1;
|
|
1782
1782
|
break;
|
|
1783
1783
|
}
|
|
1784
1784
|
}
|
|
1785
1785
|
return !0;
|
|
1786
1786
|
}
|
|
1787
|
-
const
|
|
1788
|
-
function
|
|
1787
|
+
const G = Object.values;
|
|
1788
|
+
function xe(a, e, t) {
|
|
1789
1789
|
if (e === t)
|
|
1790
1790
|
return !0;
|
|
1791
1791
|
if (a !== c.BYTES)
|
|
@@ -1798,15 +1798,15 @@ function Ke(a, e, t) {
|
|
|
1798
1798
|
return !1;
|
|
1799
1799
|
return !0;
|
|
1800
1800
|
}
|
|
1801
|
-
function
|
|
1801
|
+
function De(a, e, t) {
|
|
1802
1802
|
if (e.length !== t.length)
|
|
1803
1803
|
return !1;
|
|
1804
1804
|
for (let n = 0; n < e.length; n++)
|
|
1805
|
-
if (!
|
|
1805
|
+
if (!xe(a, e[n], t[n]))
|
|
1806
1806
|
return !1;
|
|
1807
1807
|
return !0;
|
|
1808
1808
|
}
|
|
1809
|
-
function
|
|
1809
|
+
function Oe(a, e, t) {
|
|
1810
1810
|
if (e.length !== t.length)
|
|
1811
1811
|
return !1;
|
|
1812
1812
|
for (let n = 0; n < e.length; n++)
|
|
@@ -1814,13 +1814,13 @@ function Ee(a, e, t) {
|
|
|
1814
1814
|
return !1;
|
|
1815
1815
|
return !0;
|
|
1816
1816
|
}
|
|
1817
|
-
const
|
|
1817
|
+
const We = Object.getOwnPropertyDescriptors(Object.getPrototypeOf({})), dt = We[Ve] = {};
|
|
1818
1818
|
class b {
|
|
1819
1819
|
constructor(e, t, n) {
|
|
1820
|
-
this.defaultCheckDepth = 16, this.typeName = e, this.fields = t.map(
|
|
1820
|
+
this.defaultCheckDepth = 16, this.typeName = e, this.fields = t.map(rt), this.options = n ?? {}, dt.value = this, this.messagePrototype = Object.create(null, We), this.refTypeCheck = new st(this), this.refJsonReader = new ot(this), this.refJsonWriter = new ft(this), this.refBinReader = new lt(this), this.refBinWriter = new ut(this);
|
|
1821
1821
|
}
|
|
1822
1822
|
create(e) {
|
|
1823
|
-
let t =
|
|
1823
|
+
let t = ct(this);
|
|
1824
1824
|
return e !== void 0 && m(this, t, e), t;
|
|
1825
1825
|
}
|
|
1826
1826
|
/**
|
|
@@ -1839,7 +1839,7 @@ class b {
|
|
|
1839
1839
|
* Will also return true if both messages are `undefined`.
|
|
1840
1840
|
*/
|
|
1841
1841
|
equals(e, t) {
|
|
1842
|
-
return
|
|
1842
|
+
return ht(this, e, t);
|
|
1843
1843
|
}
|
|
1844
1844
|
/**
|
|
1845
1845
|
* Is the given value assignable to our message type
|
|
@@ -1865,14 +1865,14 @@ class b {
|
|
|
1865
1865
|
* Create a new message from binary format.
|
|
1866
1866
|
*/
|
|
1867
1867
|
fromBinary(e, t) {
|
|
1868
|
-
let n =
|
|
1868
|
+
let n = Ye(t);
|
|
1869
1869
|
return this.internalBinaryRead(n.readerFactory(e), e.byteLength, n);
|
|
1870
1870
|
}
|
|
1871
1871
|
/**
|
|
1872
1872
|
* Read a new message from a JSON value.
|
|
1873
1873
|
*/
|
|
1874
1874
|
fromJson(e, t) {
|
|
1875
|
-
return this.internalJsonRead(e,
|
|
1875
|
+
return this.internalJsonRead(e, nt(t));
|
|
1876
1876
|
}
|
|
1877
1877
|
/**
|
|
1878
1878
|
* Read a new message from a JSON string.
|
|
@@ -1886,7 +1886,7 @@ class b {
|
|
|
1886
1886
|
* Write the message to canonical JSON value.
|
|
1887
1887
|
*/
|
|
1888
1888
|
toJson(e, t) {
|
|
1889
|
-
return this.internalJsonWrite(e,
|
|
1889
|
+
return this.internalJsonWrite(e, it(t));
|
|
1890
1890
|
}
|
|
1891
1891
|
/**
|
|
1892
1892
|
* Convert the message to canonical JSON string.
|
|
@@ -1901,7 +1901,7 @@ class b {
|
|
|
1901
1901
|
* Write the message to binary format.
|
|
1902
1902
|
*/
|
|
1903
1903
|
toBinary(e, t) {
|
|
1904
|
-
let n =
|
|
1904
|
+
let n = et(t);
|
|
1905
1905
|
return this.internalBinaryWrite(e, n.writerFactory(), n).finish();
|
|
1906
1906
|
}
|
|
1907
1907
|
/**
|
|
@@ -1917,7 +1917,7 @@ class b {
|
|
|
1917
1917
|
let r = n ?? this.create();
|
|
1918
1918
|
return this.refJsonReader.read(e, r, t), r;
|
|
1919
1919
|
}
|
|
1920
|
-
throw new Error(`Unable to parse message ${this.typeName} from JSON ${
|
|
1920
|
+
throw new Error(`Unable to parse message ${this.typeName} from JSON ${Fe(e)}.`);
|
|
1921
1921
|
}
|
|
1922
1922
|
/**
|
|
1923
1923
|
* This is an internal method. If you just want to write a message
|
|
@@ -1951,8 +1951,11 @@ class b {
|
|
|
1951
1951
|
return this.refBinReader.read(e, i, n, t), i;
|
|
1952
1952
|
}
|
|
1953
1953
|
}
|
|
1954
|
-
var
|
|
1955
|
-
|
|
1954
|
+
var me;
|
|
1955
|
+
(function(a) {
|
|
1956
|
+
a[a.NULL_VALUE = 0] = "NULL_VALUE";
|
|
1957
|
+
})(me || (me = {}));
|
|
1958
|
+
class pt extends b {
|
|
1956
1959
|
constructor() {
|
|
1957
1960
|
super("shared.Struct", [
|
|
1958
1961
|
{ no: 1, name: "fields", kind: "map", K: 9, V: { kind: "message", T: () => I } }
|
|
@@ -1963,8 +1966,8 @@ class dt extends b {
|
|
|
1963
1966
|
return t.fields = {}, e !== void 0 && m(this, t, e), t;
|
|
1964
1967
|
}
|
|
1965
1968
|
internalBinaryRead(e, t, n, r) {
|
|
1966
|
-
let i = r ?? this.create(),
|
|
1967
|
-
for (; e.pos <
|
|
1969
|
+
let i = r ?? this.create(), f = e.pos + t;
|
|
1970
|
+
for (; e.pos < f; ) {
|
|
1968
1971
|
let [s, o] = e.tag();
|
|
1969
1972
|
switch (s) {
|
|
1970
1973
|
case /* map<string, shared.Value> fields */
|
|
@@ -1972,22 +1975,22 @@ class dt extends b {
|
|
|
1972
1975
|
this.binaryReadMap1(i.fields, e, n);
|
|
1973
1976
|
break;
|
|
1974
1977
|
default:
|
|
1975
|
-
let
|
|
1976
|
-
if (
|
|
1978
|
+
let l = n.readUnknownField;
|
|
1979
|
+
if (l === "throw")
|
|
1977
1980
|
throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
|
|
1978
1981
|
let h = e.skip(o);
|
|
1979
|
-
|
|
1982
|
+
l !== !1 && (l === !0 ? d.onRead : l)(this.typeName, i, s, o, h);
|
|
1980
1983
|
}
|
|
1981
1984
|
}
|
|
1982
1985
|
return i;
|
|
1983
1986
|
}
|
|
1984
1987
|
binaryReadMap1(e, t, n) {
|
|
1985
|
-
let r = t.uint32(), i = t.pos + r,
|
|
1988
|
+
let r = t.uint32(), i = t.pos + r, f, s;
|
|
1986
1989
|
for (; t.pos < i; ) {
|
|
1987
|
-
let [o,
|
|
1990
|
+
let [o, l] = t.tag();
|
|
1988
1991
|
switch (o) {
|
|
1989
1992
|
case 1:
|
|
1990
|
-
|
|
1993
|
+
f = t.string();
|
|
1991
1994
|
break;
|
|
1992
1995
|
case 2:
|
|
1993
1996
|
s = I.internalBinaryRead(t, t.uint32(), n);
|
|
@@ -1996,7 +1999,7 @@ class dt extends b {
|
|
|
1996
1999
|
throw new globalThis.Error("unknown map entry field for shared.Struct.fields");
|
|
1997
2000
|
}
|
|
1998
2001
|
}
|
|
1999
|
-
e[
|
|
2002
|
+
e[f ?? ""] = s ?? I.create();
|
|
2000
2003
|
}
|
|
2001
2004
|
internalBinaryWrite(e, t, n) {
|
|
2002
2005
|
for (let i of globalThis.Object.keys(e.fields))
|
|
@@ -2005,11 +2008,11 @@ class dt extends b {
|
|
|
2005
2008
|
return r !== !1 && (r == !0 ? d.onWrite : r)(this.typeName, e, t), t;
|
|
2006
2009
|
}
|
|
2007
2010
|
}
|
|
2008
|
-
const
|
|
2009
|
-
class
|
|
2011
|
+
const v = new pt();
|
|
2012
|
+
class gt extends b {
|
|
2010
2013
|
constructor() {
|
|
2011
2014
|
super("shared.Value", [
|
|
2012
|
-
{ no: 1, name: "null_value", kind: "enum", oneof: "kind", T: () => ["shared.NullValue",
|
|
2015
|
+
{ no: 1, name: "null_value", kind: "enum", oneof: "kind", T: () => ["shared.NullValue", me] },
|
|
2013
2016
|
{
|
|
2014
2017
|
no: 2,
|
|
2015
2018
|
name: "number_value",
|
|
@@ -2034,7 +2037,7 @@ class pt extends b {
|
|
|
2034
2037
|
T: 8
|
|
2035
2038
|
/*ScalarType.BOOL*/
|
|
2036
2039
|
},
|
|
2037
|
-
{ no: 5, name: "struct_value", kind: "message", oneof: "kind", T: () =>
|
|
2040
|
+
{ no: 5, name: "struct_value", kind: "message", oneof: "kind", T: () => v },
|
|
2038
2041
|
{ no: 6, name: "list_value", kind: "message", oneof: "kind", T: () => ee }
|
|
2039
2042
|
]);
|
|
2040
2043
|
}
|
|
@@ -2043,8 +2046,8 @@ class pt extends b {
|
|
|
2043
2046
|
return t.kind = { oneofKind: void 0 }, e !== void 0 && m(this, t, e), t;
|
|
2044
2047
|
}
|
|
2045
2048
|
internalBinaryRead(e, t, n, r) {
|
|
2046
|
-
let i = r ?? this.create(),
|
|
2047
|
-
for (; e.pos <
|
|
2049
|
+
let i = r ?? this.create(), f = e.pos + t;
|
|
2050
|
+
for (; e.pos < f; ) {
|
|
2048
2051
|
let [s, o] = e.tag();
|
|
2049
2052
|
switch (s) {
|
|
2050
2053
|
case /* shared.NullValue null_value */
|
|
@@ -2079,7 +2082,7 @@ class pt extends b {
|
|
|
2079
2082
|
5:
|
|
2080
2083
|
i.kind = {
|
|
2081
2084
|
oneofKind: "structValue",
|
|
2082
|
-
structValue:
|
|
2085
|
+
structValue: v.internalBinaryRead(e, e.uint32(), n, i.kind.structValue)
|
|
2083
2086
|
};
|
|
2084
2087
|
break;
|
|
2085
2088
|
case /* shared.ListValue list_value */
|
|
@@ -2090,23 +2093,23 @@ class pt extends b {
|
|
|
2090
2093
|
};
|
|
2091
2094
|
break;
|
|
2092
2095
|
default:
|
|
2093
|
-
let
|
|
2094
|
-
if (
|
|
2096
|
+
let l = n.readUnknownField;
|
|
2097
|
+
if (l === "throw")
|
|
2095
2098
|
throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
|
|
2096
2099
|
let h = e.skip(o);
|
|
2097
|
-
|
|
2100
|
+
l !== !1 && (l === !0 ? d.onRead : l)(this.typeName, i, s, o, h);
|
|
2098
2101
|
}
|
|
2099
2102
|
}
|
|
2100
2103
|
return i;
|
|
2101
2104
|
}
|
|
2102
2105
|
internalBinaryWrite(e, t, n) {
|
|
2103
|
-
e.kind.oneofKind === "nullValue" && t.tag(1, u.Varint).int32(e.kind.nullValue), e.kind.oneofKind === "numberValue" && t.tag(2, u.Bit64).double(e.kind.numberValue), e.kind.oneofKind === "stringValue" && t.tag(3, u.LengthDelimited).string(e.kind.stringValue), e.kind.oneofKind === "boolValue" && t.tag(4, u.Varint).bool(e.kind.boolValue), e.kind.oneofKind === "structValue" &&
|
|
2106
|
+
e.kind.oneofKind === "nullValue" && t.tag(1, u.Varint).int32(e.kind.nullValue), e.kind.oneofKind === "numberValue" && t.tag(2, u.Bit64).double(e.kind.numberValue), e.kind.oneofKind === "stringValue" && t.tag(3, u.LengthDelimited).string(e.kind.stringValue), e.kind.oneofKind === "boolValue" && t.tag(4, u.Varint).bool(e.kind.boolValue), e.kind.oneofKind === "structValue" && v.internalBinaryWrite(e.kind.structValue, t.tag(5, u.LengthDelimited).fork(), n).join(), e.kind.oneofKind === "listValue" && ee.internalBinaryWrite(e.kind.listValue, t.tag(6, u.LengthDelimited).fork(), n).join();
|
|
2104
2107
|
let r = n.writeUnknownFields;
|
|
2105
2108
|
return r !== !1 && (r == !0 ? d.onWrite : r)(this.typeName, e, t), t;
|
|
2106
2109
|
}
|
|
2107
2110
|
}
|
|
2108
|
-
const I = new
|
|
2109
|
-
class
|
|
2111
|
+
const I = new gt();
|
|
2112
|
+
class yt extends b {
|
|
2110
2113
|
constructor() {
|
|
2111
2114
|
super("shared.ListValue", [
|
|
2112
2115
|
{ no: 1, name: "values", kind: "message", repeat: 2, T: () => I }
|
|
@@ -2117,8 +2120,8 @@ class gt extends b {
|
|
|
2117
2120
|
return t.values = [], e !== void 0 && m(this, t, e), t;
|
|
2118
2121
|
}
|
|
2119
2122
|
internalBinaryRead(e, t, n, r) {
|
|
2120
|
-
let i = r ?? this.create(),
|
|
2121
|
-
for (; e.pos <
|
|
2123
|
+
let i = r ?? this.create(), f = e.pos + t;
|
|
2124
|
+
for (; e.pos < f; ) {
|
|
2122
2125
|
let [s, o] = e.tag();
|
|
2123
2126
|
switch (s) {
|
|
2124
2127
|
case /* repeated shared.Value values */
|
|
@@ -2126,11 +2129,11 @@ class gt extends b {
|
|
|
2126
2129
|
i.values.push(I.internalBinaryRead(e, e.uint32(), n));
|
|
2127
2130
|
break;
|
|
2128
2131
|
default:
|
|
2129
|
-
let
|
|
2130
|
-
if (
|
|
2132
|
+
let l = n.readUnknownField;
|
|
2133
|
+
if (l === "throw")
|
|
2131
2134
|
throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
|
|
2132
2135
|
let h = e.skip(o);
|
|
2133
|
-
|
|
2136
|
+
l !== !1 && (l === !0 ? d.onRead : l)(this.typeName, i, s, o, h);
|
|
2134
2137
|
}
|
|
2135
2138
|
}
|
|
2136
2139
|
return i;
|
|
@@ -2142,8 +2145,8 @@ class gt extends b {
|
|
|
2142
2145
|
return r !== !1 && (r == !0 ? d.onWrite : r)(this.typeName, e, t), t;
|
|
2143
2146
|
}
|
|
2144
2147
|
}
|
|
2145
|
-
const ee = new
|
|
2146
|
-
class
|
|
2148
|
+
const ee = new yt();
|
|
2149
|
+
class mt extends b {
|
|
2147
2150
|
constructor() {
|
|
2148
2151
|
super("shared.Version", [
|
|
2149
2152
|
{
|
|
@@ -2174,8 +2177,8 @@ class yt extends b {
|
|
|
2174
2177
|
return t.major = 0, t.minor = 0, t.patch = 0, e !== void 0 && m(this, t, e), t;
|
|
2175
2178
|
}
|
|
2176
2179
|
internalBinaryRead(e, t, n, r) {
|
|
2177
|
-
let i = r ?? this.create(),
|
|
2178
|
-
for (; e.pos <
|
|
2180
|
+
let i = r ?? this.create(), f = e.pos + t;
|
|
2181
|
+
for (; e.pos < f; ) {
|
|
2179
2182
|
let [s, o] = e.tag();
|
|
2180
2183
|
switch (s) {
|
|
2181
2184
|
case /* int32 major */
|
|
@@ -2191,11 +2194,11 @@ class yt extends b {
|
|
|
2191
2194
|
i.patch = e.int32();
|
|
2192
2195
|
break;
|
|
2193
2196
|
default:
|
|
2194
|
-
let
|
|
2195
|
-
if (
|
|
2197
|
+
let l = n.readUnknownField;
|
|
2198
|
+
if (l === "throw")
|
|
2196
2199
|
throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
|
|
2197
2200
|
let h = e.skip(o);
|
|
2198
|
-
|
|
2201
|
+
l !== !1 && (l === !0 ? d.onRead : l)(this.typeName, i, s, o, h);
|
|
2199
2202
|
}
|
|
2200
2203
|
}
|
|
2201
2204
|
return i;
|
|
@@ -2206,8 +2209,8 @@ class yt extends b {
|
|
|
2206
2209
|
return r !== !1 && (r == !0 ? d.onWrite : r)(this.typeName, e, t), t;
|
|
2207
2210
|
}
|
|
2208
2211
|
}
|
|
2209
|
-
const
|
|
2210
|
-
class
|
|
2212
|
+
const V = new mt();
|
|
2213
|
+
class kt extends b {
|
|
2211
2214
|
constructor() {
|
|
2212
2215
|
super("shared.Translation", [
|
|
2213
2216
|
{
|
|
@@ -2231,8 +2234,8 @@ class mt extends b {
|
|
|
2231
2234
|
return t.code = "", t.content = "", e !== void 0 && m(this, t, e), t;
|
|
2232
2235
|
}
|
|
2233
2236
|
internalBinaryRead(e, t, n, r) {
|
|
2234
|
-
let i = r ?? this.create(),
|
|
2235
|
-
for (; e.pos <
|
|
2237
|
+
let i = r ?? this.create(), f = e.pos + t;
|
|
2238
|
+
for (; e.pos < f; ) {
|
|
2236
2239
|
let [s, o] = e.tag();
|
|
2237
2240
|
switch (s) {
|
|
2238
2241
|
case /* string code */
|
|
@@ -2244,11 +2247,11 @@ class mt extends b {
|
|
|
2244
2247
|
i.content = e.string();
|
|
2245
2248
|
break;
|
|
2246
2249
|
default:
|
|
2247
|
-
let
|
|
2248
|
-
if (
|
|
2250
|
+
let l = n.readUnknownField;
|
|
2251
|
+
if (l === "throw")
|
|
2249
2252
|
throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
|
|
2250
2253
|
let h = e.skip(o);
|
|
2251
|
-
|
|
2254
|
+
l !== !1 && (l === !0 ? d.onRead : l)(this.typeName, i, s, o, h);
|
|
2252
2255
|
}
|
|
2253
2256
|
}
|
|
2254
2257
|
return i;
|
|
@@ -2259,12 +2262,19 @@ class mt extends b {
|
|
|
2259
2262
|
return r !== !1 && (r == !0 ? d.onWrite : r)(this.typeName, e, t), t;
|
|
2260
2263
|
}
|
|
2261
2264
|
}
|
|
2262
|
-
const p = new
|
|
2263
|
-
var
|
|
2264
|
-
|
|
2265
|
+
const p = new kt();
|
|
2266
|
+
var F;
|
|
2267
|
+
(function(a) {
|
|
2268
|
+
a[a.UNKNOWN = 0] = "UNKNOWN", a[a.PRIMITIVE = 1] = "PRIMITIVE", a[a.TYPE = 2] = "TYPE", a[a.OBJECT = 3] = "OBJECT", a[a.DATATYPE = 4] = "DATATYPE", a[a.ARRAY = 5] = "ARRAY", a[a.ERROR = 6] = "ERROR", a[a.NODE = 7] = "NODE";
|
|
2269
|
+
})(F || (F = {}));
|
|
2270
|
+
var S;
|
|
2271
|
+
(function(a) {
|
|
2272
|
+
a[a.UNKNOWN = 0] = "UNKNOWN", a[a.AND = 1] = "AND", a[a.OR = 2] = "OR";
|
|
2273
|
+
})(S || (S = {}));
|
|
2274
|
+
class Tt extends b {
|
|
2265
2275
|
constructor() {
|
|
2266
2276
|
super("shared.DefinitionDataType", [
|
|
2267
|
-
{ no: 1, name: "variant", kind: "enum", T: () => ["shared.DefinitionDataType.Variant",
|
|
2277
|
+
{ no: 1, name: "variant", kind: "enum", T: () => ["shared.DefinitionDataType.Variant", F] },
|
|
2268
2278
|
{
|
|
2269
2279
|
no: 2,
|
|
2270
2280
|
name: "identifier",
|
|
@@ -2282,7 +2292,7 @@ class kt extends b {
|
|
|
2282
2292
|
T: 9
|
|
2283
2293
|
/*ScalarType.STRING*/
|
|
2284
2294
|
},
|
|
2285
|
-
{ no: 6, name: "version", kind: "message", T: () =>
|
|
2295
|
+
{ no: 6, name: "version", kind: "message", T: () => V }
|
|
2286
2296
|
]);
|
|
2287
2297
|
}
|
|
2288
2298
|
create(e) {
|
|
@@ -2290,8 +2300,8 @@ class kt extends b {
|
|
|
2290
2300
|
return t.variant = 0, t.identifier = "", t.name = [], t.rules = [], t.genericKeys = [], e !== void 0 && m(this, t, e), t;
|
|
2291
2301
|
}
|
|
2292
2302
|
internalBinaryRead(e, t, n, r) {
|
|
2293
|
-
let i = r ?? this.create(),
|
|
2294
|
-
for (; e.pos <
|
|
2303
|
+
let i = r ?? this.create(), f = e.pos + t;
|
|
2304
|
+
for (; e.pos < f; ) {
|
|
2295
2305
|
let [s, o] = e.tag();
|
|
2296
2306
|
switch (s) {
|
|
2297
2307
|
case /* shared.DefinitionDataType.Variant variant */
|
|
@@ -2316,14 +2326,14 @@ class kt extends b {
|
|
|
2316
2326
|
break;
|
|
2317
2327
|
case /* shared.Version version */
|
|
2318
2328
|
6:
|
|
2319
|
-
i.version =
|
|
2329
|
+
i.version = V.internalBinaryRead(e, e.uint32(), n, i.version);
|
|
2320
2330
|
break;
|
|
2321
2331
|
default:
|
|
2322
|
-
let
|
|
2323
|
-
if (
|
|
2332
|
+
let l = n.readUnknownField;
|
|
2333
|
+
if (l === "throw")
|
|
2324
2334
|
throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
|
|
2325
2335
|
let h = e.skip(o);
|
|
2326
|
-
|
|
2336
|
+
l !== !1 && (l === !0 ? d.onRead : l)(this.typeName, i, s, o, h);
|
|
2327
2337
|
}
|
|
2328
2338
|
}
|
|
2329
2339
|
return i;
|
|
@@ -2336,13 +2346,13 @@ class kt extends b {
|
|
|
2336
2346
|
te.internalBinaryWrite(e.rules[i], t.tag(4, u.LengthDelimited).fork(), n).join();
|
|
2337
2347
|
for (let i = 0; i < e.genericKeys.length; i++)
|
|
2338
2348
|
t.tag(5, u.LengthDelimited).string(e.genericKeys[i]);
|
|
2339
|
-
e.version &&
|
|
2349
|
+
e.version && V.internalBinaryWrite(e.version, t.tag(6, u.LengthDelimited).fork(), n).join();
|
|
2340
2350
|
let r = n.writeUnknownFields;
|
|
2341
2351
|
return r !== !1 && (r == !0 ? d.onWrite : r)(this.typeName, e, t), t;
|
|
2342
2352
|
}
|
|
2343
2353
|
}
|
|
2344
|
-
const
|
|
2345
|
-
class
|
|
2354
|
+
const bt = new Tt();
|
|
2355
|
+
class wt extends b {
|
|
2346
2356
|
constructor() {
|
|
2347
2357
|
super("shared.ExecutionDataType", [
|
|
2348
2358
|
{
|
|
@@ -2360,8 +2370,8 @@ class bt extends b {
|
|
|
2360
2370
|
return t.identifier = "", t.rules = [], e !== void 0 && m(this, t, e), t;
|
|
2361
2371
|
}
|
|
2362
2372
|
internalBinaryRead(e, t, n, r) {
|
|
2363
|
-
let i = r ?? this.create(),
|
|
2364
|
-
for (; e.pos <
|
|
2373
|
+
let i = r ?? this.create(), f = e.pos + t;
|
|
2374
|
+
for (; e.pos < f; ) {
|
|
2365
2375
|
let [s, o] = e.tag();
|
|
2366
2376
|
switch (s) {
|
|
2367
2377
|
case /* string identifier */
|
|
@@ -2373,11 +2383,11 @@ class bt extends b {
|
|
|
2373
2383
|
i.rules.push(ne.internalBinaryRead(e, e.uint32(), n));
|
|
2374
2384
|
break;
|
|
2375
2385
|
default:
|
|
2376
|
-
let
|
|
2377
|
-
if (
|
|
2386
|
+
let l = n.readUnknownField;
|
|
2387
|
+
if (l === "throw")
|
|
2378
2388
|
throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
|
|
2379
2389
|
let h = e.skip(o);
|
|
2380
|
-
|
|
2390
|
+
l !== !1 && (l === !0 ? d.onRead : l)(this.typeName, i, s, o, h);
|
|
2381
2391
|
}
|
|
2382
2392
|
}
|
|
2383
2393
|
return i;
|
|
@@ -2390,16 +2400,16 @@ class bt extends b {
|
|
|
2390
2400
|
return r !== !1 && (r == !0 ? d.onWrite : r)(this.typeName, e, t), t;
|
|
2391
2401
|
}
|
|
2392
2402
|
}
|
|
2393
|
-
new
|
|
2394
|
-
class
|
|
2403
|
+
new wt();
|
|
2404
|
+
class Nt extends b {
|
|
2395
2405
|
constructor() {
|
|
2396
2406
|
super("shared.DefinitionDataTypeRule", [
|
|
2397
2407
|
{ no: 1, name: "contains_key", kind: "message", oneof: "config", T: () => re },
|
|
2398
2408
|
{ no: 2, name: "contains_type", kind: "message", oneof: "config", T: () => se },
|
|
2399
|
-
{ no: 3, name: "item_of_collection", kind: "message", oneof: "config", T: () =>
|
|
2409
|
+
{ no: 3, name: "item_of_collection", kind: "message", oneof: "config", T: () => C },
|
|
2400
2410
|
{ no: 4, name: "number_range", kind: "message", oneof: "config", T: () => A },
|
|
2401
2411
|
{ no: 5, name: "regex", kind: "message", oneof: "config", T: () => j },
|
|
2402
|
-
{ no: 6, name: "input_types", kind: "message", oneof: "config", T: () =>
|
|
2412
|
+
{ no: 6, name: "input_types", kind: "message", oneof: "config", T: () => fe },
|
|
2403
2413
|
{ no: 7, name: "return_type", kind: "message", oneof: "config", T: () => ue },
|
|
2404
2414
|
{ no: 8, name: "parent_type", kind: "message", oneof: "config", T: () => ie }
|
|
2405
2415
|
]);
|
|
@@ -2409,8 +2419,8 @@ class wt extends b {
|
|
|
2409
2419
|
return t.config = { oneofKind: void 0 }, e !== void 0 && m(this, t, e), t;
|
|
2410
2420
|
}
|
|
2411
2421
|
internalBinaryRead(e, t, n, r) {
|
|
2412
|
-
let i = r ?? this.create(),
|
|
2413
|
-
for (; e.pos <
|
|
2422
|
+
let i = r ?? this.create(), f = e.pos + t;
|
|
2423
|
+
for (; e.pos < f; ) {
|
|
2414
2424
|
let [s, o] = e.tag();
|
|
2415
2425
|
switch (s) {
|
|
2416
2426
|
case /* shared.DefinitionDataTypeContainsKeyRuleConfig contains_key */
|
|
@@ -2431,7 +2441,7 @@ class wt extends b {
|
|
|
2431
2441
|
3:
|
|
2432
2442
|
i.config = {
|
|
2433
2443
|
oneofKind: "itemOfCollection",
|
|
2434
|
-
itemOfCollection:
|
|
2444
|
+
itemOfCollection: C.internalBinaryRead(e, e.uint32(), n, i.config.itemOfCollection)
|
|
2435
2445
|
};
|
|
2436
2446
|
break;
|
|
2437
2447
|
case /* shared.DataTypeNumberRangeRuleConfig number_range */
|
|
@@ -2452,7 +2462,7 @@ class wt extends b {
|
|
|
2452
2462
|
6:
|
|
2453
2463
|
i.config = {
|
|
2454
2464
|
oneofKind: "inputTypes",
|
|
2455
|
-
inputTypes:
|
|
2465
|
+
inputTypes: fe.internalBinaryRead(e, e.uint32(), n, i.config.inputTypes)
|
|
2456
2466
|
};
|
|
2457
2467
|
break;
|
|
2458
2468
|
case /* shared.DefinitionDataTypeReturnTypeRuleConfig return_type */
|
|
@@ -2470,28 +2480,28 @@ class wt extends b {
|
|
|
2470
2480
|
};
|
|
2471
2481
|
break;
|
|
2472
2482
|
default:
|
|
2473
|
-
let
|
|
2474
|
-
if (
|
|
2483
|
+
let l = n.readUnknownField;
|
|
2484
|
+
if (l === "throw")
|
|
2475
2485
|
throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
|
|
2476
2486
|
let h = e.skip(o);
|
|
2477
|
-
|
|
2487
|
+
l !== !1 && (l === !0 ? d.onRead : l)(this.typeName, i, s, o, h);
|
|
2478
2488
|
}
|
|
2479
2489
|
}
|
|
2480
2490
|
return i;
|
|
2481
2491
|
}
|
|
2482
2492
|
internalBinaryWrite(e, t, n) {
|
|
2483
|
-
e.config.oneofKind === "containsKey" && re.internalBinaryWrite(e.config.containsKey, t.tag(1, u.LengthDelimited).fork(), n).join(), e.config.oneofKind === "containsType" && se.internalBinaryWrite(e.config.containsType, t.tag(2, u.LengthDelimited).fork(), n).join(), e.config.oneofKind === "itemOfCollection" &&
|
|
2493
|
+
e.config.oneofKind === "containsKey" && re.internalBinaryWrite(e.config.containsKey, t.tag(1, u.LengthDelimited).fork(), n).join(), e.config.oneofKind === "containsType" && se.internalBinaryWrite(e.config.containsType, t.tag(2, u.LengthDelimited).fork(), n).join(), e.config.oneofKind === "itemOfCollection" && C.internalBinaryWrite(e.config.itemOfCollection, t.tag(3, u.LengthDelimited).fork(), n).join(), e.config.oneofKind === "numberRange" && A.internalBinaryWrite(e.config.numberRange, t.tag(4, u.LengthDelimited).fork(), n).join(), e.config.oneofKind === "regex" && j.internalBinaryWrite(e.config.regex, t.tag(5, u.LengthDelimited).fork(), n).join(), e.config.oneofKind === "inputTypes" && fe.internalBinaryWrite(e.config.inputTypes, t.tag(6, u.LengthDelimited).fork(), n).join(), e.config.oneofKind === "returnType" && ue.internalBinaryWrite(e.config.returnType, t.tag(7, u.LengthDelimited).fork(), n).join(), e.config.oneofKind === "parentType" && ie.internalBinaryWrite(e.config.parentType, t.tag(8, u.LengthDelimited).fork(), n).join();
|
|
2484
2494
|
let r = n.writeUnknownFields;
|
|
2485
2495
|
return r !== !1 && (r == !0 ? d.onWrite : r)(this.typeName, e, t), t;
|
|
2486
2496
|
}
|
|
2487
2497
|
}
|
|
2488
|
-
const te = new
|
|
2489
|
-
class
|
|
2498
|
+
const te = new Nt();
|
|
2499
|
+
class It extends b {
|
|
2490
2500
|
constructor() {
|
|
2491
2501
|
super("shared.ExecutionDataTypeRule", [
|
|
2492
2502
|
{ no: 1, name: "contains_key", kind: "message", oneof: "config", T: () => ae },
|
|
2493
2503
|
{ no: 2, name: "contains_type", kind: "message", oneof: "config", T: () => oe },
|
|
2494
|
-
{ no: 3, name: "item_of_collection", kind: "message", oneof: "config", T: () =>
|
|
2504
|
+
{ no: 3, name: "item_of_collection", kind: "message", oneof: "config", T: () => C },
|
|
2495
2505
|
{ no: 4, name: "number_range", kind: "message", oneof: "config", T: () => A },
|
|
2496
2506
|
{ no: 5, name: "regex", kind: "message", oneof: "config", T: () => j }
|
|
2497
2507
|
]);
|
|
@@ -2501,8 +2511,8 @@ class Nt extends b {
|
|
|
2501
2511
|
return t.config = { oneofKind: void 0 }, e !== void 0 && m(this, t, e), t;
|
|
2502
2512
|
}
|
|
2503
2513
|
internalBinaryRead(e, t, n, r) {
|
|
2504
|
-
let i = r ?? this.create(),
|
|
2505
|
-
for (; e.pos <
|
|
2514
|
+
let i = r ?? this.create(), f = e.pos + t;
|
|
2515
|
+
for (; e.pos < f; ) {
|
|
2506
2516
|
let [s, o] = e.tag();
|
|
2507
2517
|
switch (s) {
|
|
2508
2518
|
case /* shared.ExecutionDataTypeContainsKeyRuleConfig contains_key */
|
|
@@ -2523,7 +2533,7 @@ class Nt extends b {
|
|
|
2523
2533
|
3:
|
|
2524
2534
|
i.config = {
|
|
2525
2535
|
oneofKind: "itemOfCollection",
|
|
2526
|
-
itemOfCollection:
|
|
2536
|
+
itemOfCollection: C.internalBinaryRead(e, e.uint32(), n, i.config.itemOfCollection)
|
|
2527
2537
|
};
|
|
2528
2538
|
break;
|
|
2529
2539
|
case /* shared.DataTypeNumberRangeRuleConfig number_range */
|
|
@@ -2541,23 +2551,23 @@ class Nt extends b {
|
|
|
2541
2551
|
};
|
|
2542
2552
|
break;
|
|
2543
2553
|
default:
|
|
2544
|
-
let
|
|
2545
|
-
if (
|
|
2554
|
+
let l = n.readUnknownField;
|
|
2555
|
+
if (l === "throw")
|
|
2546
2556
|
throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
|
|
2547
2557
|
let h = e.skip(o);
|
|
2548
|
-
|
|
2558
|
+
l !== !1 && (l === !0 ? d.onRead : l)(this.typeName, i, s, o, h);
|
|
2549
2559
|
}
|
|
2550
2560
|
}
|
|
2551
2561
|
return i;
|
|
2552
2562
|
}
|
|
2553
2563
|
internalBinaryWrite(e, t, n) {
|
|
2554
|
-
e.config.oneofKind === "containsKey" && ae.internalBinaryWrite(e.config.containsKey, t.tag(1, u.LengthDelimited).fork(), n).join(), e.config.oneofKind === "containsType" && oe.internalBinaryWrite(e.config.containsType, t.tag(2, u.LengthDelimited).fork(), n).join(), e.config.oneofKind === "itemOfCollection" &&
|
|
2564
|
+
e.config.oneofKind === "containsKey" && ae.internalBinaryWrite(e.config.containsKey, t.tag(1, u.LengthDelimited).fork(), n).join(), e.config.oneofKind === "containsType" && oe.internalBinaryWrite(e.config.containsType, t.tag(2, u.LengthDelimited).fork(), n).join(), e.config.oneofKind === "itemOfCollection" && C.internalBinaryWrite(e.config.itemOfCollection, t.tag(3, u.LengthDelimited).fork(), n).join(), e.config.oneofKind === "numberRange" && A.internalBinaryWrite(e.config.numberRange, t.tag(4, u.LengthDelimited).fork(), n).join(), e.config.oneofKind === "regex" && j.internalBinaryWrite(e.config.regex, t.tag(5, u.LengthDelimited).fork(), n).join();
|
|
2555
2565
|
let r = n.writeUnknownFields;
|
|
2556
2566
|
return r !== !1 && (r == !0 ? d.onWrite : r)(this.typeName, e, t), t;
|
|
2557
2567
|
}
|
|
2558
2568
|
}
|
|
2559
|
-
const ne = new
|
|
2560
|
-
class
|
|
2569
|
+
const ne = new It();
|
|
2570
|
+
class Bt extends b {
|
|
2561
2571
|
constructor() {
|
|
2562
2572
|
super("shared.DefinitionDataTypeParentTypeRuleConfig", [
|
|
2563
2573
|
{ no: 1, name: "parent_type", kind: "message", T: () => w }
|
|
@@ -2568,8 +2578,8 @@ class It extends b {
|
|
|
2568
2578
|
return e !== void 0 && m(this, t, e), t;
|
|
2569
2579
|
}
|
|
2570
2580
|
internalBinaryRead(e, t, n, r) {
|
|
2571
|
-
let i = r ?? this.create(),
|
|
2572
|
-
for (; e.pos <
|
|
2581
|
+
let i = r ?? this.create(), f = e.pos + t;
|
|
2582
|
+
for (; e.pos < f; ) {
|
|
2573
2583
|
let [s, o] = e.tag();
|
|
2574
2584
|
switch (s) {
|
|
2575
2585
|
case /* shared.DataTypeIdentifier parent_type */
|
|
@@ -2577,11 +2587,11 @@ class It extends b {
|
|
|
2577
2587
|
i.parentType = w.internalBinaryRead(e, e.uint32(), n, i.parentType);
|
|
2578
2588
|
break;
|
|
2579
2589
|
default:
|
|
2580
|
-
let
|
|
2581
|
-
if (
|
|
2590
|
+
let l = n.readUnknownField;
|
|
2591
|
+
if (l === "throw")
|
|
2582
2592
|
throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
|
|
2583
2593
|
let h = e.skip(o);
|
|
2584
|
-
|
|
2594
|
+
l !== !1 && (l === !0 ? d.onRead : l)(this.typeName, i, s, o, h);
|
|
2585
2595
|
}
|
|
2586
2596
|
}
|
|
2587
2597
|
return i;
|
|
@@ -2592,8 +2602,8 @@ class It extends b {
|
|
|
2592
2602
|
return r !== !1 && (r == !0 ? d.onWrite : r)(this.typeName, e, t), t;
|
|
2593
2603
|
}
|
|
2594
2604
|
}
|
|
2595
|
-
const ie = new
|
|
2596
|
-
class
|
|
2605
|
+
const ie = new Bt();
|
|
2606
|
+
class Rt extends b {
|
|
2597
2607
|
constructor() {
|
|
2598
2608
|
super("shared.DefinitionDataTypeContainsKeyRuleConfig", [
|
|
2599
2609
|
{
|
|
@@ -2611,8 +2621,8 @@ class Bt extends b {
|
|
|
2611
2621
|
return t.key = "", e !== void 0 && m(this, t, e), t;
|
|
2612
2622
|
}
|
|
2613
2623
|
internalBinaryRead(e, t, n, r) {
|
|
2614
|
-
let i = r ?? this.create(),
|
|
2615
|
-
for (; e.pos <
|
|
2624
|
+
let i = r ?? this.create(), f = e.pos + t;
|
|
2625
|
+
for (; e.pos < f; ) {
|
|
2616
2626
|
let [s, o] = e.tag();
|
|
2617
2627
|
switch (s) {
|
|
2618
2628
|
case /* string key */
|
|
@@ -2624,11 +2634,11 @@ class Bt extends b {
|
|
|
2624
2634
|
i.dataTypeIdentifier = w.internalBinaryRead(e, e.uint32(), n, i.dataTypeIdentifier);
|
|
2625
2635
|
break;
|
|
2626
2636
|
default:
|
|
2627
|
-
let
|
|
2628
|
-
if (
|
|
2637
|
+
let l = n.readUnknownField;
|
|
2638
|
+
if (l === "throw")
|
|
2629
2639
|
throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
|
|
2630
2640
|
let h = e.skip(o);
|
|
2631
|
-
|
|
2641
|
+
l !== !1 && (l === !0 ? d.onRead : l)(this.typeName, i, s, o, h);
|
|
2632
2642
|
}
|
|
2633
2643
|
}
|
|
2634
2644
|
return i;
|
|
@@ -2639,8 +2649,8 @@ class Bt extends b {
|
|
|
2639
2649
|
return r !== !1 && (r == !0 ? d.onWrite : r)(this.typeName, e, t), t;
|
|
2640
2650
|
}
|
|
2641
2651
|
}
|
|
2642
|
-
const re = new
|
|
2643
|
-
class
|
|
2652
|
+
const re = new Rt();
|
|
2653
|
+
class Et extends b {
|
|
2644
2654
|
constructor() {
|
|
2645
2655
|
super("shared.ExecutionDataTypeContainsKeyRuleConfig", [
|
|
2646
2656
|
{
|
|
@@ -2664,8 +2674,8 @@ class Rt extends b {
|
|
|
2664
2674
|
return t.key = "", t.dataTypeIdentifier = "", e !== void 0 && m(this, t, e), t;
|
|
2665
2675
|
}
|
|
2666
2676
|
internalBinaryRead(e, t, n, r) {
|
|
2667
|
-
let i = r ?? this.create(),
|
|
2668
|
-
for (; e.pos <
|
|
2677
|
+
let i = r ?? this.create(), f = e.pos + t;
|
|
2678
|
+
for (; e.pos < f; ) {
|
|
2669
2679
|
let [s, o] = e.tag();
|
|
2670
2680
|
switch (s) {
|
|
2671
2681
|
case /* string key */
|
|
@@ -2677,11 +2687,11 @@ class Rt extends b {
|
|
|
2677
2687
|
i.dataTypeIdentifier = e.string();
|
|
2678
2688
|
break;
|
|
2679
2689
|
default:
|
|
2680
|
-
let
|
|
2681
|
-
if (
|
|
2690
|
+
let l = n.readUnknownField;
|
|
2691
|
+
if (l === "throw")
|
|
2682
2692
|
throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
|
|
2683
2693
|
let h = e.skip(o);
|
|
2684
|
-
|
|
2694
|
+
l !== !1 && (l === !0 ? d.onRead : l)(this.typeName, i, s, o, h);
|
|
2685
2695
|
}
|
|
2686
2696
|
}
|
|
2687
2697
|
return i;
|
|
@@ -2692,8 +2702,8 @@ class Rt extends b {
|
|
|
2692
2702
|
return r !== !1 && (r == !0 ? d.onWrite : r)(this.typeName, e, t), t;
|
|
2693
2703
|
}
|
|
2694
2704
|
}
|
|
2695
|
-
const ae = new
|
|
2696
|
-
class
|
|
2705
|
+
const ae = new Et();
|
|
2706
|
+
class Dt extends b {
|
|
2697
2707
|
constructor() {
|
|
2698
2708
|
super("shared.DefinitionDataTypeContainsTypeRuleConfig", [
|
|
2699
2709
|
{ no: 1, name: "data_type_identifier", kind: "message", T: () => w }
|
|
@@ -2704,8 +2714,8 @@ class Et extends b {
|
|
|
2704
2714
|
return e !== void 0 && m(this, t, e), t;
|
|
2705
2715
|
}
|
|
2706
2716
|
internalBinaryRead(e, t, n, r) {
|
|
2707
|
-
let i = r ?? this.create(),
|
|
2708
|
-
for (; e.pos <
|
|
2717
|
+
let i = r ?? this.create(), f = e.pos + t;
|
|
2718
|
+
for (; e.pos < f; ) {
|
|
2709
2719
|
let [s, o] = e.tag();
|
|
2710
2720
|
switch (s) {
|
|
2711
2721
|
case /* shared.DataTypeIdentifier data_type_identifier */
|
|
@@ -2713,11 +2723,11 @@ class Et extends b {
|
|
|
2713
2723
|
i.dataTypeIdentifier = w.internalBinaryRead(e, e.uint32(), n, i.dataTypeIdentifier);
|
|
2714
2724
|
break;
|
|
2715
2725
|
default:
|
|
2716
|
-
let
|
|
2717
|
-
if (
|
|
2726
|
+
let l = n.readUnknownField;
|
|
2727
|
+
if (l === "throw")
|
|
2718
2728
|
throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
|
|
2719
2729
|
let h = e.skip(o);
|
|
2720
|
-
|
|
2730
|
+
l !== !1 && (l === !0 ? d.onRead : l)(this.typeName, i, s, o, h);
|
|
2721
2731
|
}
|
|
2722
2732
|
}
|
|
2723
2733
|
return i;
|
|
@@ -2728,8 +2738,8 @@ class Et extends b {
|
|
|
2728
2738
|
return r !== !1 && (r == !0 ? d.onWrite : r)(this.typeName, e, t), t;
|
|
2729
2739
|
}
|
|
2730
2740
|
}
|
|
2731
|
-
const se = new
|
|
2732
|
-
class
|
|
2741
|
+
const se = new Dt();
|
|
2742
|
+
class Ot extends b {
|
|
2733
2743
|
constructor() {
|
|
2734
2744
|
super("shared.ExecutionDataTypeContainsTypeRuleConfig", [
|
|
2735
2745
|
{
|
|
@@ -2746,8 +2756,8 @@ class Dt extends b {
|
|
|
2746
2756
|
return t.dataTypeIdentifier = "", e !== void 0 && m(this, t, e), t;
|
|
2747
2757
|
}
|
|
2748
2758
|
internalBinaryRead(e, t, n, r) {
|
|
2749
|
-
let i = r ?? this.create(),
|
|
2750
|
-
for (; e.pos <
|
|
2759
|
+
let i = r ?? this.create(), f = e.pos + t;
|
|
2760
|
+
for (; e.pos < f; ) {
|
|
2751
2761
|
let [s, o] = e.tag();
|
|
2752
2762
|
switch (s) {
|
|
2753
2763
|
case /* string data_type_identifier */
|
|
@@ -2755,11 +2765,11 @@ class Dt extends b {
|
|
|
2755
2765
|
i.dataTypeIdentifier = e.string();
|
|
2756
2766
|
break;
|
|
2757
2767
|
default:
|
|
2758
|
-
let
|
|
2759
|
-
if (
|
|
2768
|
+
let l = n.readUnknownField;
|
|
2769
|
+
if (l === "throw")
|
|
2760
2770
|
throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
|
|
2761
2771
|
let h = e.skip(o);
|
|
2762
|
-
|
|
2772
|
+
l !== !1 && (l === !0 ? d.onRead : l)(this.typeName, i, s, o, h);
|
|
2763
2773
|
}
|
|
2764
2774
|
}
|
|
2765
2775
|
return i;
|
|
@@ -2770,8 +2780,8 @@ class Dt extends b {
|
|
|
2770
2780
|
return r !== !1 && (r == !0 ? d.onWrite : r)(this.typeName, e, t), t;
|
|
2771
2781
|
}
|
|
2772
2782
|
}
|
|
2773
|
-
const oe = new
|
|
2774
|
-
class
|
|
2783
|
+
const oe = new Ot();
|
|
2784
|
+
class Ft extends b {
|
|
2775
2785
|
constructor() {
|
|
2776
2786
|
super("shared.DataTypeItemOfCollectionRuleConfig", [
|
|
2777
2787
|
{ no: 1, name: "items", kind: "message", repeat: 2, T: () => I }
|
|
@@ -2782,8 +2792,8 @@ class Ot extends b {
|
|
|
2782
2792
|
return t.items = [], e !== void 0 && m(this, t, e), t;
|
|
2783
2793
|
}
|
|
2784
2794
|
internalBinaryRead(e, t, n, r) {
|
|
2785
|
-
let i = r ?? this.create(),
|
|
2786
|
-
for (; e.pos <
|
|
2795
|
+
let i = r ?? this.create(), f = e.pos + t;
|
|
2796
|
+
for (; e.pos < f; ) {
|
|
2787
2797
|
let [s, o] = e.tag();
|
|
2788
2798
|
switch (s) {
|
|
2789
2799
|
case /* repeated shared.Value items */
|
|
@@ -2791,11 +2801,11 @@ class Ot extends b {
|
|
|
2791
2801
|
i.items.push(I.internalBinaryRead(e, e.uint32(), n));
|
|
2792
2802
|
break;
|
|
2793
2803
|
default:
|
|
2794
|
-
let
|
|
2795
|
-
if (
|
|
2804
|
+
let l = n.readUnknownField;
|
|
2805
|
+
if (l === "throw")
|
|
2796
2806
|
throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
|
|
2797
2807
|
let h = e.skip(o);
|
|
2798
|
-
|
|
2808
|
+
l !== !1 && (l === !0 ? d.onRead : l)(this.typeName, i, s, o, h);
|
|
2799
2809
|
}
|
|
2800
2810
|
}
|
|
2801
2811
|
return i;
|
|
@@ -2807,8 +2817,8 @@ class Ot extends b {
|
|
|
2807
2817
|
return r !== !1 && (r == !0 ? d.onWrite : r)(this.typeName, e, t), t;
|
|
2808
2818
|
}
|
|
2809
2819
|
}
|
|
2810
|
-
const
|
|
2811
|
-
class
|
|
2820
|
+
const C = new Ft();
|
|
2821
|
+
class Ut extends b {
|
|
2812
2822
|
constructor() {
|
|
2813
2823
|
super("shared.DataTypeNumberRangeRuleConfig", [
|
|
2814
2824
|
{
|
|
@@ -2843,8 +2853,8 @@ class Ft extends b {
|
|
|
2843
2853
|
return t.from = 0n, t.to = 0n, e !== void 0 && m(this, t, e), t;
|
|
2844
2854
|
}
|
|
2845
2855
|
internalBinaryRead(e, t, n, r) {
|
|
2846
|
-
let i = r ?? this.create(),
|
|
2847
|
-
for (; e.pos <
|
|
2856
|
+
let i = r ?? this.create(), f = e.pos + t;
|
|
2857
|
+
for (; e.pos < f; ) {
|
|
2848
2858
|
let [s, o] = e.tag();
|
|
2849
2859
|
switch (s) {
|
|
2850
2860
|
case /* int64 from */
|
|
@@ -2860,11 +2870,11 @@ class Ft extends b {
|
|
|
2860
2870
|
i.steps = e.int64().toBigInt();
|
|
2861
2871
|
break;
|
|
2862
2872
|
default:
|
|
2863
|
-
let
|
|
2864
|
-
if (
|
|
2873
|
+
let l = n.readUnknownField;
|
|
2874
|
+
if (l === "throw")
|
|
2865
2875
|
throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
|
|
2866
2876
|
let h = e.skip(o);
|
|
2867
|
-
|
|
2877
|
+
l !== !1 && (l === !0 ? d.onRead : l)(this.typeName, i, s, o, h);
|
|
2868
2878
|
}
|
|
2869
2879
|
}
|
|
2870
2880
|
return i;
|
|
@@ -2875,8 +2885,8 @@ class Ft extends b {
|
|
|
2875
2885
|
return r !== !1 && (r == !0 ? d.onWrite : r)(this.typeName, e, t), t;
|
|
2876
2886
|
}
|
|
2877
2887
|
}
|
|
2878
|
-
const A = new
|
|
2879
|
-
class
|
|
2888
|
+
const A = new Ut();
|
|
2889
|
+
class $t extends b {
|
|
2880
2890
|
constructor() {
|
|
2881
2891
|
super("shared.DataTypeRegexRuleConfig", [
|
|
2882
2892
|
{
|
|
@@ -2893,8 +2903,8 @@ class Ut extends b {
|
|
|
2893
2903
|
return t.pattern = "", e !== void 0 && m(this, t, e), t;
|
|
2894
2904
|
}
|
|
2895
2905
|
internalBinaryRead(e, t, n, r) {
|
|
2896
|
-
let i = r ?? this.create(),
|
|
2897
|
-
for (; e.pos <
|
|
2906
|
+
let i = r ?? this.create(), f = e.pos + t;
|
|
2907
|
+
for (; e.pos < f; ) {
|
|
2898
2908
|
let [s, o] = e.tag();
|
|
2899
2909
|
switch (s) {
|
|
2900
2910
|
case /* string pattern */
|
|
@@ -2902,11 +2912,11 @@ class Ut extends b {
|
|
|
2902
2912
|
i.pattern = e.string();
|
|
2903
2913
|
break;
|
|
2904
2914
|
default:
|
|
2905
|
-
let
|
|
2906
|
-
if (
|
|
2915
|
+
let l = n.readUnknownField;
|
|
2916
|
+
if (l === "throw")
|
|
2907
2917
|
throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
|
|
2908
2918
|
let h = e.skip(o);
|
|
2909
|
-
|
|
2919
|
+
l !== !1 && (l === !0 ? d.onRead : l)(this.typeName, i, s, o, h);
|
|
2910
2920
|
}
|
|
2911
2921
|
}
|
|
2912
2922
|
return i;
|
|
@@ -2917,11 +2927,11 @@ class Ut extends b {
|
|
|
2917
2927
|
return r !== !1 && (r == !0 ? d.onWrite : r)(this.typeName, e, t), t;
|
|
2918
2928
|
}
|
|
2919
2929
|
}
|
|
2920
|
-
const j = new
|
|
2921
|
-
class
|
|
2930
|
+
const j = new $t();
|
|
2931
|
+
class Lt extends b {
|
|
2922
2932
|
constructor() {
|
|
2923
2933
|
super("shared.DefinitionDataTypeInputTypesRuleConfig", [
|
|
2924
|
-
{ no: 1, name: "input_types", kind: "message", repeat: 2, T: () =>
|
|
2934
|
+
{ no: 1, name: "input_types", kind: "message", repeat: 2, T: () => le }
|
|
2925
2935
|
]);
|
|
2926
2936
|
}
|
|
2927
2937
|
create(e) {
|
|
@@ -2929,33 +2939,33 @@ class $t extends b {
|
|
|
2929
2939
|
return t.inputTypes = [], e !== void 0 && m(this, t, e), t;
|
|
2930
2940
|
}
|
|
2931
2941
|
internalBinaryRead(e, t, n, r) {
|
|
2932
|
-
let i = r ?? this.create(),
|
|
2933
|
-
for (; e.pos <
|
|
2942
|
+
let i = r ?? this.create(), f = e.pos + t;
|
|
2943
|
+
for (; e.pos < f; ) {
|
|
2934
2944
|
let [s, o] = e.tag();
|
|
2935
2945
|
switch (s) {
|
|
2936
2946
|
case /* repeated shared.DefinitionDataTypeInputTypesRuleConfig.DataTypeInputType input_types */
|
|
2937
2947
|
1:
|
|
2938
|
-
i.inputTypes.push(
|
|
2948
|
+
i.inputTypes.push(le.internalBinaryRead(e, e.uint32(), n));
|
|
2939
2949
|
break;
|
|
2940
2950
|
default:
|
|
2941
|
-
let
|
|
2942
|
-
if (
|
|
2951
|
+
let l = n.readUnknownField;
|
|
2952
|
+
if (l === "throw")
|
|
2943
2953
|
throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
|
|
2944
2954
|
let h = e.skip(o);
|
|
2945
|
-
|
|
2955
|
+
l !== !1 && (l === !0 ? d.onRead : l)(this.typeName, i, s, o, h);
|
|
2946
2956
|
}
|
|
2947
2957
|
}
|
|
2948
2958
|
return i;
|
|
2949
2959
|
}
|
|
2950
2960
|
internalBinaryWrite(e, t, n) {
|
|
2951
2961
|
for (let i = 0; i < e.inputTypes.length; i++)
|
|
2952
|
-
|
|
2962
|
+
le.internalBinaryWrite(e.inputTypes[i], t.tag(1, u.LengthDelimited).fork(), n).join();
|
|
2953
2963
|
let r = n.writeUnknownFields;
|
|
2954
2964
|
return r !== !1 && (r == !0 ? d.onWrite : r)(this.typeName, e, t), t;
|
|
2955
2965
|
}
|
|
2956
2966
|
}
|
|
2957
|
-
const
|
|
2958
|
-
class
|
|
2967
|
+
const fe = new Lt();
|
|
2968
|
+
class Kt extends b {
|
|
2959
2969
|
constructor() {
|
|
2960
2970
|
super("shared.DefinitionDataTypeInputTypesRuleConfig.DataTypeInputType", [
|
|
2961
2971
|
{ no: 1, name: "data_type_identifier", kind: "message", T: () => w },
|
|
@@ -2973,8 +2983,8 @@ class Lt extends b {
|
|
|
2973
2983
|
return t.inputIdentifier = "", e !== void 0 && m(this, t, e), t;
|
|
2974
2984
|
}
|
|
2975
2985
|
internalBinaryRead(e, t, n, r) {
|
|
2976
|
-
let i = r ?? this.create(),
|
|
2977
|
-
for (; e.pos <
|
|
2986
|
+
let i = r ?? this.create(), f = e.pos + t;
|
|
2987
|
+
for (; e.pos < f; ) {
|
|
2978
2988
|
let [s, o] = e.tag();
|
|
2979
2989
|
switch (s) {
|
|
2980
2990
|
case /* shared.DataTypeIdentifier data_type_identifier */
|
|
@@ -2986,11 +2996,11 @@ class Lt extends b {
|
|
|
2986
2996
|
i.inputIdentifier = e.string();
|
|
2987
2997
|
break;
|
|
2988
2998
|
default:
|
|
2989
|
-
let
|
|
2990
|
-
if (
|
|
2999
|
+
let l = n.readUnknownField;
|
|
3000
|
+
if (l === "throw")
|
|
2991
3001
|
throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
|
|
2992
3002
|
let h = e.skip(o);
|
|
2993
|
-
|
|
3003
|
+
l !== !1 && (l === !0 ? d.onRead : l)(this.typeName, i, s, o, h);
|
|
2994
3004
|
}
|
|
2995
3005
|
}
|
|
2996
3006
|
return i;
|
|
@@ -3001,8 +3011,8 @@ class Lt extends b {
|
|
|
3001
3011
|
return r !== !1 && (r == !0 ? d.onWrite : r)(this.typeName, e, t), t;
|
|
3002
3012
|
}
|
|
3003
3013
|
}
|
|
3004
|
-
const
|
|
3005
|
-
class
|
|
3014
|
+
const le = new Kt();
|
|
3015
|
+
class Vt extends b {
|
|
3006
3016
|
constructor() {
|
|
3007
3017
|
super("shared.DefinitionDataTypeReturnTypeRuleConfig", [
|
|
3008
3018
|
{ no: 1, name: "data_type_identifier", kind: "message", T: () => w }
|
|
@@ -3013,8 +3023,8 @@ class Kt extends b {
|
|
|
3013
3023
|
return e !== void 0 && m(this, t, e), t;
|
|
3014
3024
|
}
|
|
3015
3025
|
internalBinaryRead(e, t, n, r) {
|
|
3016
|
-
let i = r ?? this.create(),
|
|
3017
|
-
for (; e.pos <
|
|
3026
|
+
let i = r ?? this.create(), f = e.pos + t;
|
|
3027
|
+
for (; e.pos < f; ) {
|
|
3018
3028
|
let [s, o] = e.tag();
|
|
3019
3029
|
switch (s) {
|
|
3020
3030
|
case /* shared.DataTypeIdentifier data_type_identifier */
|
|
@@ -3022,11 +3032,11 @@ class Kt extends b {
|
|
|
3022
3032
|
i.dataTypeIdentifier = w.internalBinaryRead(e, e.uint32(), n, i.dataTypeIdentifier);
|
|
3023
3033
|
break;
|
|
3024
3034
|
default:
|
|
3025
|
-
let
|
|
3026
|
-
if (
|
|
3035
|
+
let l = n.readUnknownField;
|
|
3036
|
+
if (l === "throw")
|
|
3027
3037
|
throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
|
|
3028
3038
|
let h = e.skip(o);
|
|
3029
|
-
|
|
3039
|
+
l !== !1 && (l === !0 ? d.onRead : l)(this.typeName, i, s, o, h);
|
|
3030
3040
|
}
|
|
3031
3041
|
}
|
|
3032
3042
|
return i;
|
|
@@ -3037,7 +3047,7 @@ class Kt extends b {
|
|
|
3037
3047
|
return r !== !1 && (r == !0 ? d.onWrite : r)(this.typeName, e, t), t;
|
|
3038
3048
|
}
|
|
3039
3049
|
}
|
|
3040
|
-
const ue = new
|
|
3050
|
+
const ue = new Vt();
|
|
3041
3051
|
class xt extends b {
|
|
3042
3052
|
constructor() {
|
|
3043
3053
|
super("shared.DataTypeIdentifier", [
|
|
@@ -3065,8 +3075,8 @@ class xt extends b {
|
|
|
3065
3075
|
return t.type = { oneofKind: void 0 }, e !== void 0 && m(this, t, e), t;
|
|
3066
3076
|
}
|
|
3067
3077
|
internalBinaryRead(e, t, n, r) {
|
|
3068
|
-
let i = r ?? this.create(),
|
|
3069
|
-
for (; e.pos <
|
|
3078
|
+
let i = r ?? this.create(), f = e.pos + t;
|
|
3079
|
+
for (; e.pos < f; ) {
|
|
3070
3080
|
let [s, o] = e.tag();
|
|
3071
3081
|
switch (s) {
|
|
3072
3082
|
case /* string data_type_identifier */
|
|
@@ -3091,11 +3101,11 @@ class xt extends b {
|
|
|
3091
3101
|
};
|
|
3092
3102
|
break;
|
|
3093
3103
|
default:
|
|
3094
|
-
let
|
|
3095
|
-
if (
|
|
3104
|
+
let l = n.readUnknownField;
|
|
3105
|
+
if (l === "throw")
|
|
3096
3106
|
throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
|
|
3097
3107
|
let h = e.skip(o);
|
|
3098
|
-
|
|
3108
|
+
l !== !1 && (l === !0 ? d.onRead : l)(this.typeName, i, s, o, h);
|
|
3099
3109
|
}
|
|
3100
3110
|
}
|
|
3101
3111
|
return i;
|
|
@@ -3125,8 +3135,8 @@ class Wt extends b {
|
|
|
3125
3135
|
return t.dataTypeIdentifier = "", t.genericMappers = [], e !== void 0 && m(this, t, e), t;
|
|
3126
3136
|
}
|
|
3127
3137
|
internalBinaryRead(e, t, n, r) {
|
|
3128
|
-
let i = r ?? this.create(),
|
|
3129
|
-
for (; e.pos <
|
|
3138
|
+
let i = r ?? this.create(), f = e.pos + t;
|
|
3139
|
+
for (; e.pos < f; ) {
|
|
3130
3140
|
let [s, o] = e.tag();
|
|
3131
3141
|
switch (s) {
|
|
3132
3142
|
case /* string data_type_identifier */
|
|
@@ -3138,11 +3148,11 @@ class Wt extends b {
|
|
|
3138
3148
|
i.genericMappers.push(he.internalBinaryRead(e, e.uint32(), n));
|
|
3139
3149
|
break;
|
|
3140
3150
|
default:
|
|
3141
|
-
let
|
|
3142
|
-
if (
|
|
3151
|
+
let l = n.readUnknownField;
|
|
3152
|
+
if (l === "throw")
|
|
3143
3153
|
throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
|
|
3144
3154
|
let h = e.skip(o);
|
|
3145
|
-
|
|
3155
|
+
l !== !1 && (l === !0 ? d.onRead : l)(this.typeName, i, s, o, h);
|
|
3146
3156
|
}
|
|
3147
3157
|
}
|
|
3148
3158
|
return i;
|
|
@@ -3167,7 +3177,7 @@ class Ct extends b {
|
|
|
3167
3177
|
T: 9
|
|
3168
3178
|
/*ScalarType.STRING*/
|
|
3169
3179
|
},
|
|
3170
|
-
{ no: 3, name: "generic_combinations", kind: "enum", repeat: 1, T: () => ["shared.GenericMapper.GenericCombinationStrategy",
|
|
3180
|
+
{ no: 3, name: "generic_combinations", kind: "enum", repeat: 1, T: () => ["shared.GenericMapper.GenericCombinationStrategy", S] }
|
|
3171
3181
|
]);
|
|
3172
3182
|
}
|
|
3173
3183
|
create(e) {
|
|
@@ -3175,8 +3185,8 @@ class Ct extends b {
|
|
|
3175
3185
|
return t.source = [], t.target = "", t.genericCombinations = [], e !== void 0 && m(this, t, e), t;
|
|
3176
3186
|
}
|
|
3177
3187
|
internalBinaryRead(e, t, n, r) {
|
|
3178
|
-
let i = r ?? this.create(),
|
|
3179
|
-
for (; e.pos <
|
|
3188
|
+
let i = r ?? this.create(), f = e.pos + t;
|
|
3189
|
+
for (; e.pos < f; ) {
|
|
3180
3190
|
let [s, o] = e.tag();
|
|
3181
3191
|
switch (s) {
|
|
3182
3192
|
case /* repeated shared.DataTypeIdentifier source */
|
|
@@ -3196,11 +3206,11 @@ class Ct extends b {
|
|
|
3196
3206
|
i.genericCombinations.push(e.int32());
|
|
3197
3207
|
break;
|
|
3198
3208
|
default:
|
|
3199
|
-
let
|
|
3200
|
-
if (
|
|
3209
|
+
let l = n.readUnknownField;
|
|
3210
|
+
if (l === "throw")
|
|
3201
3211
|
throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
|
|
3202
3212
|
let h = e.skip(o);
|
|
3203
|
-
|
|
3213
|
+
l !== !1 && (l === !0 ? d.onRead : l)(this.typeName, i, s, o, h);
|
|
3204
3214
|
}
|
|
3205
3215
|
}
|
|
3206
3216
|
return i;
|
|
@@ -3219,7 +3229,7 @@ class Ct extends b {
|
|
|
3219
3229
|
}
|
|
3220
3230
|
}
|
|
3221
3231
|
const he = new Ct();
|
|
3222
|
-
class
|
|
3232
|
+
class At extends b {
|
|
3223
3233
|
constructor() {
|
|
3224
3234
|
super("shared.FlowType", [
|
|
3225
3235
|
{
|
|
@@ -3256,7 +3266,7 @@ class Vt extends b {
|
|
|
3256
3266
|
{ no: 6, name: "name", kind: "message", repeat: 2, T: () => p },
|
|
3257
3267
|
{ no: 7, name: "description", kind: "message", repeat: 2, T: () => p },
|
|
3258
3268
|
{ no: 8, name: "documentation", kind: "message", repeat: 2, T: () => p },
|
|
3259
|
-
{ no: 9, name: "version", kind: "message", T: () =>
|
|
3269
|
+
{ no: 9, name: "version", kind: "message", T: () => V }
|
|
3260
3270
|
]);
|
|
3261
3271
|
}
|
|
3262
3272
|
create(e) {
|
|
@@ -3264,8 +3274,8 @@ class Vt extends b {
|
|
|
3264
3274
|
return t.identifier = "", t.settings = [], t.editable = !1, t.name = [], t.description = [], t.documentation = [], e !== void 0 && m(this, t, e), t;
|
|
3265
3275
|
}
|
|
3266
3276
|
internalBinaryRead(e, t, n, r) {
|
|
3267
|
-
let i = r ?? this.create(),
|
|
3268
|
-
for (; e.pos <
|
|
3277
|
+
let i = r ?? this.create(), f = e.pos + t;
|
|
3278
|
+
for (; e.pos < f; ) {
|
|
3269
3279
|
let [s, o] = e.tag();
|
|
3270
3280
|
switch (s) {
|
|
3271
3281
|
case /* string identifier */
|
|
@@ -3302,14 +3312,14 @@ class Vt extends b {
|
|
|
3302
3312
|
break;
|
|
3303
3313
|
case /* shared.Version version */
|
|
3304
3314
|
9:
|
|
3305
|
-
i.version =
|
|
3315
|
+
i.version = V.internalBinaryRead(e, e.uint32(), n, i.version);
|
|
3306
3316
|
break;
|
|
3307
3317
|
default:
|
|
3308
|
-
let
|
|
3309
|
-
if (
|
|
3318
|
+
let l = n.readUnknownField;
|
|
3319
|
+
if (l === "throw")
|
|
3310
3320
|
throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
|
|
3311
3321
|
let h = e.skip(o);
|
|
3312
|
-
|
|
3322
|
+
l !== !1 && (l === !0 ? d.onRead : l)(this.typeName, i, s, o, h);
|
|
3313
3323
|
}
|
|
3314
3324
|
}
|
|
3315
3325
|
return i;
|
|
@@ -3325,13 +3335,13 @@ class Vt extends b {
|
|
|
3325
3335
|
p.internalBinaryWrite(e.description[i], t.tag(7, u.LengthDelimited).fork(), n).join();
|
|
3326
3336
|
for (let i = 0; i < e.documentation.length; i++)
|
|
3327
3337
|
p.internalBinaryWrite(e.documentation[i], t.tag(8, u.LengthDelimited).fork(), n).join();
|
|
3328
|
-
e.version &&
|
|
3338
|
+
e.version && V.internalBinaryWrite(e.version, t.tag(9, u.LengthDelimited).fork(), n).join();
|
|
3329
3339
|
let r = n.writeUnknownFields;
|
|
3330
3340
|
return r !== !1 && (r == !0 ? d.onWrite : r)(this.typeName, e, t), t;
|
|
3331
3341
|
}
|
|
3332
3342
|
}
|
|
3333
|
-
const
|
|
3334
|
-
class
|
|
3343
|
+
const jt = new At();
|
|
3344
|
+
class _t extends b {
|
|
3335
3345
|
constructor() {
|
|
3336
3346
|
super("shared.FlowTypeSetting", [
|
|
3337
3347
|
{
|
|
@@ -3365,8 +3375,8 @@ class jt extends b {
|
|
|
3365
3375
|
return t.identifier = "", t.unique = !1, t.dataTypeIdentifier = "", t.name = [], t.description = [], e !== void 0 && m(this, t, e), t;
|
|
3366
3376
|
}
|
|
3367
3377
|
internalBinaryRead(e, t, n, r) {
|
|
3368
|
-
let i = r ?? this.create(),
|
|
3369
|
-
for (; e.pos <
|
|
3378
|
+
let i = r ?? this.create(), f = e.pos + t;
|
|
3379
|
+
for (; e.pos < f; ) {
|
|
3370
3380
|
let [s, o] = e.tag();
|
|
3371
3381
|
switch (s) {
|
|
3372
3382
|
case /* string identifier */
|
|
@@ -3394,11 +3404,11 @@ class jt extends b {
|
|
|
3394
3404
|
i.description.push(p.internalBinaryRead(e, e.uint32(), n));
|
|
3395
3405
|
break;
|
|
3396
3406
|
default:
|
|
3397
|
-
let
|
|
3398
|
-
if (
|
|
3407
|
+
let l = n.readUnknownField;
|
|
3408
|
+
if (l === "throw")
|
|
3399
3409
|
throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
|
|
3400
3410
|
let h = e.skip(o);
|
|
3401
|
-
|
|
3411
|
+
l !== !1 && (l === !0 ? d.onRead : l)(this.typeName, i, s, o, h);
|
|
3402
3412
|
}
|
|
3403
3413
|
}
|
|
3404
3414
|
return i;
|
|
@@ -3413,7 +3423,7 @@ class jt extends b {
|
|
|
3413
3423
|
return r !== !1 && (r == !0 ? d.onWrite : r)(this.typeName, e, t), t;
|
|
3414
3424
|
}
|
|
3415
3425
|
}
|
|
3416
|
-
const de = new
|
|
3426
|
+
const de = new _t();
|
|
3417
3427
|
class Pt extends b {
|
|
3418
3428
|
constructor() {
|
|
3419
3429
|
super("shared.RuntimeFunctionDefinition", [
|
|
@@ -3445,7 +3455,7 @@ class Pt extends b {
|
|
|
3445
3455
|
{ no: 7, name: "description", kind: "message", repeat: 2, T: () => p },
|
|
3446
3456
|
{ no: 8, name: "documentation", kind: "message", repeat: 2, T: () => p },
|
|
3447
3457
|
{ no: 9, name: "deprecation_message", kind: "message", repeat: 2, T: () => p },
|
|
3448
|
-
{ no: 10, name: "version", kind: "message", T: () =>
|
|
3458
|
+
{ no: 10, name: "version", kind: "message", T: () => V }
|
|
3449
3459
|
]);
|
|
3450
3460
|
}
|
|
3451
3461
|
create(e) {
|
|
@@ -3453,8 +3463,8 @@ class Pt extends b {
|
|
|
3453
3463
|
return t.runtimeName = "", t.runtimeParameterDefinitions = [], t.throwsError = !1, t.genericKeys = [], t.name = [], t.description = [], t.documentation = [], t.deprecationMessage = [], e !== void 0 && m(this, t, e), t;
|
|
3454
3464
|
}
|
|
3455
3465
|
internalBinaryRead(e, t, n, r) {
|
|
3456
|
-
let i = r ?? this.create(),
|
|
3457
|
-
for (; e.pos <
|
|
3466
|
+
let i = r ?? this.create(), f = e.pos + t;
|
|
3467
|
+
for (; e.pos < f; ) {
|
|
3458
3468
|
let [s, o] = e.tag();
|
|
3459
3469
|
switch (s) {
|
|
3460
3470
|
case /* string runtime_name */
|
|
@@ -3495,14 +3505,14 @@ class Pt extends b {
|
|
|
3495
3505
|
break;
|
|
3496
3506
|
case /* shared.Version version */
|
|
3497
3507
|
10:
|
|
3498
|
-
i.version =
|
|
3508
|
+
i.version = V.internalBinaryRead(e, e.uint32(), n, i.version);
|
|
3499
3509
|
break;
|
|
3500
3510
|
default:
|
|
3501
|
-
let
|
|
3502
|
-
if (
|
|
3511
|
+
let l = n.readUnknownField;
|
|
3512
|
+
if (l === "throw")
|
|
3503
3513
|
throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
|
|
3504
3514
|
let h = e.skip(o);
|
|
3505
|
-
|
|
3515
|
+
l !== !1 && (l === !0 ? d.onRead : l)(this.typeName, i, s, o, h);
|
|
3506
3516
|
}
|
|
3507
3517
|
}
|
|
3508
3518
|
return i;
|
|
@@ -3522,13 +3532,13 @@ class Pt extends b {
|
|
|
3522
3532
|
p.internalBinaryWrite(e.documentation[i], t.tag(8, u.LengthDelimited).fork(), n).join();
|
|
3523
3533
|
for (let i = 0; i < e.deprecationMessage.length; i++)
|
|
3524
3534
|
p.internalBinaryWrite(e.deprecationMessage[i], t.tag(9, u.LengthDelimited).fork(), n).join();
|
|
3525
|
-
e.version &&
|
|
3535
|
+
e.version && V.internalBinaryWrite(e.version, t.tag(10, u.LengthDelimited).fork(), n).join();
|
|
3526
3536
|
let r = n.writeUnknownFields;
|
|
3527
3537
|
return r !== !1 && (r == !0 ? d.onWrite : r)(this.typeName, e, t), t;
|
|
3528
3538
|
}
|
|
3529
3539
|
}
|
|
3530
|
-
const
|
|
3531
|
-
class
|
|
3540
|
+
const St = new Pt();
|
|
3541
|
+
class Mt extends b {
|
|
3532
3542
|
constructor() {
|
|
3533
3543
|
super("shared.RuntimeParameterDefinition", [
|
|
3534
3544
|
{ no: 1, name: "data_type_identifier", kind: "message", T: () => w },
|
|
@@ -3550,8 +3560,8 @@ class St extends b {
|
|
|
3550
3560
|
return t.runtimeName = "", t.name = [], t.description = [], t.documentation = [], e !== void 0 && m(this, t, e), t;
|
|
3551
3561
|
}
|
|
3552
3562
|
internalBinaryRead(e, t, n, r) {
|
|
3553
|
-
let i = r ?? this.create(),
|
|
3554
|
-
for (; e.pos <
|
|
3563
|
+
let i = r ?? this.create(), f = e.pos + t;
|
|
3564
|
+
for (; e.pos < f; ) {
|
|
3555
3565
|
let [s, o] = e.tag();
|
|
3556
3566
|
switch (s) {
|
|
3557
3567
|
case /* shared.DataTypeIdentifier data_type_identifier */
|
|
@@ -3579,11 +3589,11 @@ class St extends b {
|
|
|
3579
3589
|
i.documentation.push(p.internalBinaryRead(e, e.uint32(), n));
|
|
3580
3590
|
break;
|
|
3581
3591
|
default:
|
|
3582
|
-
let
|
|
3583
|
-
if (
|
|
3592
|
+
let l = n.readUnknownField;
|
|
3593
|
+
if (l === "throw")
|
|
3584
3594
|
throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
|
|
3585
3595
|
let h = e.skip(o);
|
|
3586
|
-
|
|
3596
|
+
l !== !1 && (l === !0 ? d.onRead : l)(this.typeName, i, s, o, h);
|
|
3587
3597
|
}
|
|
3588
3598
|
}
|
|
3589
3599
|
return i;
|
|
@@ -3600,33 +3610,33 @@ class St extends b {
|
|
|
3600
3610
|
return r !== !1 && (r == !0 ? d.onWrite : r)(this.typeName, e, t), t;
|
|
3601
3611
|
}
|
|
3602
3612
|
}
|
|
3603
|
-
const pe = new
|
|
3604
|
-
var
|
|
3605
|
-
function
|
|
3613
|
+
const pe = new Mt();
|
|
3614
|
+
var L = /* @__PURE__ */ ((a) => (a.ContainsKey = "CONTAINS_KEY", a.ContainsType = "CONTAINS_TYPE", a.InputType = "INPUT_TYPE", a.ItemOfCollection = "ITEM_OF_COLLECTION", a.NumberRange = "NUMBER_RANGE", a.ParentType = "PARENT_TYPE", a.Regex = "REGEX", a.ReturnType = "RETURN_TYPE", a))(L || {}), x = /* @__PURE__ */ ((a) => (a.Array = "ARRAY", a.DataType = "DATA_TYPE", a.Error = "ERROR", a.Node = "NODE", a.Object = "OBJECT", a.Primitive = "PRIMITIVE", a.Type = "TYPE", a))(x || {}), ke = /* @__PURE__ */ ((a) => (a.And = "AND", a.Or = "OR", a))(ke || {});
|
|
3615
|
+
function D(a) {
|
|
3606
3616
|
return {
|
|
3607
3617
|
count: a.length,
|
|
3608
3618
|
nodes: a
|
|
3609
3619
|
};
|
|
3610
3620
|
}
|
|
3611
|
-
function
|
|
3621
|
+
function _(a, e) {
|
|
3612
3622
|
const t = e.constructedDataTypes.find((n) => n.identifier === a);
|
|
3613
3623
|
if (t == null) {
|
|
3614
3624
|
const n = e.scannedTucanaTypes.find((i) => i.identifier === a);
|
|
3615
3625
|
if (n == null)
|
|
3616
3626
|
return console.error("Skipping Identifier because it can't be identified:" + a), null;
|
|
3617
3627
|
const r = {
|
|
3618
|
-
id: `gid://sagittarius/DataType/${
|
|
3628
|
+
id: `gid://sagittarius/DataType/${E(e)}`,
|
|
3619
3629
|
genericKeys: n.genericKeys,
|
|
3620
3630
|
identifier: n.identifier,
|
|
3621
|
-
name:
|
|
3622
|
-
rules:
|
|
3623
|
-
variant:
|
|
3631
|
+
name: D(n.name),
|
|
3632
|
+
rules: Xt(n.rules, e),
|
|
3633
|
+
variant: Gt(n.variant)
|
|
3624
3634
|
};
|
|
3625
3635
|
return e.constructedDataTypes.push(r), r;
|
|
3626
3636
|
}
|
|
3627
3637
|
return t;
|
|
3628
3638
|
}
|
|
3629
|
-
function
|
|
3639
|
+
function Xt(a, e) {
|
|
3630
3640
|
return {
|
|
3631
3641
|
count: a.length,
|
|
3632
3642
|
nodes: a.map(
|
|
@@ -3634,30 +3644,29 @@ function Mt(a, e) {
|
|
|
3634
3644
|
switch (t.config.oneofKind) {
|
|
3635
3645
|
case "containsType": {
|
|
3636
3646
|
const n = {
|
|
3637
|
-
dataTypeIdentifier:
|
|
3647
|
+
dataTypeIdentifier: W(t.config.containsType.dataTypeIdentifier, e)
|
|
3638
3648
|
};
|
|
3639
3649
|
return {
|
|
3640
|
-
variant:
|
|
3650
|
+
variant: L.ContainsType,
|
|
3641
3651
|
config: n
|
|
3642
3652
|
};
|
|
3643
3653
|
}
|
|
3644
3654
|
case "containsKey": {
|
|
3645
3655
|
const n = {
|
|
3646
|
-
dataTypeIdentifier:
|
|
3656
|
+
dataTypeIdentifier: W(t.config.containsKey.dataTypeIdentifier, e),
|
|
3647
3657
|
key: t.config.containsKey.key
|
|
3648
3658
|
};
|
|
3649
3659
|
return {
|
|
3650
|
-
variant:
|
|
3660
|
+
variant: L.ContainsKey,
|
|
3651
3661
|
config: n
|
|
3652
3662
|
};
|
|
3653
3663
|
}
|
|
3654
3664
|
case "itemOfCollection": {
|
|
3655
3665
|
const n = {
|
|
3656
|
-
items: t.config.itemOfCollection.items
|
|
3657
|
-
//TODO: This needs to be checked
|
|
3666
|
+
items: t.config.itemOfCollection.items.map(Te)
|
|
3658
3667
|
};
|
|
3659
3668
|
return {
|
|
3660
|
-
variant:
|
|
3669
|
+
variant: L.ItemOfCollection,
|
|
3661
3670
|
config: n
|
|
3662
3671
|
};
|
|
3663
3672
|
}
|
|
@@ -3668,7 +3677,7 @@ function Mt(a, e) {
|
|
|
3668
3677
|
to: Number(t.config.numberRange.to)
|
|
3669
3678
|
};
|
|
3670
3679
|
return {
|
|
3671
|
-
variant:
|
|
3680
|
+
variant: L.NumberRange,
|
|
3672
3681
|
config: n
|
|
3673
3682
|
};
|
|
3674
3683
|
}
|
|
@@ -3677,37 +3686,37 @@ function Mt(a, e) {
|
|
|
3677
3686
|
pattern: t.config.regex.pattern
|
|
3678
3687
|
};
|
|
3679
3688
|
return {
|
|
3680
|
-
variant:
|
|
3689
|
+
variant: L.Regex,
|
|
3681
3690
|
config: n
|
|
3682
3691
|
};
|
|
3683
3692
|
}
|
|
3684
3693
|
case "inputTypes": {
|
|
3685
3694
|
const n = {
|
|
3686
3695
|
inputTypes: t.config.inputTypes.inputTypes.map((i) => (console.log("AF: " + i.inputIdentifier), {
|
|
3687
|
-
dataTypeIdentifier:
|
|
3696
|
+
dataTypeIdentifier: W(i.dataTypeIdentifier, e),
|
|
3688
3697
|
inputIdentifier: i.inputIdentifier
|
|
3689
3698
|
}))
|
|
3690
3699
|
};
|
|
3691
3700
|
return {
|
|
3692
|
-
variant:
|
|
3701
|
+
variant: L.InputType,
|
|
3693
3702
|
config: n
|
|
3694
3703
|
};
|
|
3695
3704
|
}
|
|
3696
3705
|
case "returnType": {
|
|
3697
3706
|
const n = {
|
|
3698
|
-
dataTypeIdentifier:
|
|
3707
|
+
dataTypeIdentifier: W(t.config.returnType.dataTypeIdentifier, e)
|
|
3699
3708
|
};
|
|
3700
3709
|
return {
|
|
3701
|
-
variant:
|
|
3710
|
+
variant: L.ReturnType,
|
|
3702
3711
|
config: n
|
|
3703
3712
|
};
|
|
3704
3713
|
}
|
|
3705
3714
|
case "parentType": {
|
|
3706
3715
|
const n = {
|
|
3707
|
-
dataTypeIdentifier:
|
|
3716
|
+
dataTypeIdentifier: W(t.config.parentType.parentType, e)
|
|
3708
3717
|
};
|
|
3709
3718
|
return {
|
|
3710
|
-
variant:
|
|
3719
|
+
variant: L.ParentType,
|
|
3711
3720
|
config: n
|
|
3712
3721
|
};
|
|
3713
3722
|
}
|
|
@@ -3717,135 +3726,159 @@ function Mt(a, e) {
|
|
|
3717
3726
|
)
|
|
3718
3727
|
};
|
|
3719
3728
|
}
|
|
3720
|
-
function
|
|
3729
|
+
function Gt(a) {
|
|
3721
3730
|
switch (a) {
|
|
3722
|
-
case
|
|
3723
|
-
return
|
|
3724
|
-
case
|
|
3725
|
-
return
|
|
3726
|
-
case
|
|
3727
|
-
return
|
|
3728
|
-
case
|
|
3729
|
-
return
|
|
3730
|
-
case
|
|
3731
|
-
return
|
|
3732
|
-
case
|
|
3733
|
-
return
|
|
3734
|
-
case
|
|
3735
|
-
return
|
|
3731
|
+
case F.ARRAY:
|
|
3732
|
+
return x.Array;
|
|
3733
|
+
case F.DATATYPE:
|
|
3734
|
+
return x.DataType;
|
|
3735
|
+
case F.ERROR:
|
|
3736
|
+
return x.Error;
|
|
3737
|
+
case F.NODE:
|
|
3738
|
+
return x.Node;
|
|
3739
|
+
case F.OBJECT:
|
|
3740
|
+
return x.Object;
|
|
3741
|
+
case F.PRIMITIVE:
|
|
3742
|
+
return x.Primitive;
|
|
3743
|
+
case F.TYPE:
|
|
3744
|
+
return x.Type;
|
|
3736
3745
|
default:
|
|
3737
3746
|
throw new Error(`Unknown variant: ${a}`);
|
|
3738
3747
|
}
|
|
3739
3748
|
}
|
|
3740
|
-
function
|
|
3749
|
+
function W(a, e) {
|
|
3741
3750
|
if (a == null)
|
|
3742
3751
|
return null;
|
|
3743
3752
|
switch (a.type.oneofKind) {
|
|
3744
3753
|
case "genericType":
|
|
3745
3754
|
return {
|
|
3746
|
-
id: `gid://sagittarius/DataTypeIdentifier/${
|
|
3755
|
+
id: `gid://sagittarius/DataTypeIdentifier/${E(e)}`,
|
|
3747
3756
|
genericType: {
|
|
3748
|
-
id: `gid://sagittarius/GenericType/${
|
|
3749
|
-
dataType:
|
|
3757
|
+
id: `gid://sagittarius/GenericType/${E(e)}`,
|
|
3758
|
+
dataType: _(a.type.genericType.dataTypeIdentifier, e),
|
|
3750
3759
|
genericMappers: a.type.genericType.genericMappers.map((t) => ({
|
|
3751
3760
|
genericCombinationStrategies: t.genericCombinations.map((n) => {
|
|
3752
3761
|
let r;
|
|
3753
3762
|
switch (n) {
|
|
3754
|
-
case
|
|
3755
|
-
r =
|
|
3763
|
+
case S.AND:
|
|
3764
|
+
r = ke.And;
|
|
3756
3765
|
break;
|
|
3757
|
-
case
|
|
3758
|
-
r =
|
|
3766
|
+
case S.OR:
|
|
3767
|
+
r = ke.Or;
|
|
3759
3768
|
break;
|
|
3760
3769
|
default:
|
|
3761
3770
|
throw new Error("GenericCombinationStrategy was Unknown");
|
|
3762
3771
|
}
|
|
3763
3772
|
return {
|
|
3764
|
-
id: `gid://sagittarius/GenericCombinationStrategy/${
|
|
3773
|
+
id: `gid://sagittarius/GenericCombinationStrategy/${E(e)}`,
|
|
3765
3774
|
type: r
|
|
3766
3775
|
};
|
|
3767
3776
|
}),
|
|
3768
|
-
|
|
3769
|
-
(n) =>
|
|
3777
|
+
sourceDataTypeIdentifiers: t.source.map(
|
|
3778
|
+
(n) => W(n, e)
|
|
3770
3779
|
).filter((n) => n != null),
|
|
3771
3780
|
target: t.target,
|
|
3772
|
-
id: `gid://sagittarius/GenericMapper/${
|
|
3781
|
+
id: `gid://sagittarius/GenericMapper/${E(e)}`
|
|
3773
3782
|
}))
|
|
3774
3783
|
}
|
|
3775
3784
|
};
|
|
3776
3785
|
case "dataTypeIdentifier":
|
|
3777
3786
|
return {
|
|
3778
|
-
id: `gid://sagittarius/DataTypeIdentifier/${
|
|
3779
|
-
dataType:
|
|
3787
|
+
id: `gid://sagittarius/DataTypeIdentifier/${E(e)}`,
|
|
3788
|
+
dataType: _(a.type.dataTypeIdentifier, e)
|
|
3780
3789
|
};
|
|
3781
3790
|
case "genericKey":
|
|
3782
3791
|
return {
|
|
3783
|
-
id: `gid://sagittarius/DataTypeIdentifier/${
|
|
3792
|
+
id: `gid://sagittarius/DataTypeIdentifier/${E(e)}`,
|
|
3784
3793
|
genericKey: a.type.genericKey
|
|
3785
3794
|
};
|
|
3786
3795
|
}
|
|
3787
3796
|
return null;
|
|
3788
3797
|
}
|
|
3789
|
-
function
|
|
3798
|
+
function Te(a) {
|
|
3799
|
+
switch (a.kind.oneofKind) {
|
|
3800
|
+
case "nullValue":
|
|
3801
|
+
return null;
|
|
3802
|
+
case "numberValue":
|
|
3803
|
+
return a.kind.numberValue;
|
|
3804
|
+
case "stringValue":
|
|
3805
|
+
return a.kind.stringValue;
|
|
3806
|
+
case "boolValue":
|
|
3807
|
+
return a.kind.boolValue;
|
|
3808
|
+
case "structValue":
|
|
3809
|
+
return Object.fromEntries(
|
|
3810
|
+
// @ts-ignore
|
|
3811
|
+
Object.entries(a.kind.structValue.fields).map(([e, t]) => [e, Te(t)])
|
|
3812
|
+
);
|
|
3813
|
+
case "listValue":
|
|
3814
|
+
return a.kind.listValue.values.map(Te);
|
|
3815
|
+
}
|
|
3816
|
+
}
|
|
3817
|
+
function Jt(a, e) {
|
|
3790
3818
|
return {
|
|
3791
|
-
id: `gid://sagittarius/TypesFlowType/${
|
|
3819
|
+
id: `gid://sagittarius/TypesFlowType/${E(e)}`,
|
|
3792
3820
|
identifier: a.identifier,
|
|
3793
|
-
inputType:
|
|
3794
|
-
returnType:
|
|
3795
|
-
flowTypeSettings:
|
|
3796
|
-
names:
|
|
3797
|
-
descriptions:
|
|
3821
|
+
inputType: _(a.inputTypeIdentifier, e),
|
|
3822
|
+
returnType: _(a.returnTypeIdentifier, e),
|
|
3823
|
+
flowTypeSettings: Yt(a.settings, e),
|
|
3824
|
+
names: D(a.name),
|
|
3825
|
+
descriptions: D(a.description),
|
|
3798
3826
|
editable: a.editable
|
|
3799
3827
|
};
|
|
3800
3828
|
}
|
|
3801
|
-
function
|
|
3829
|
+
function Yt(a, e) {
|
|
3802
3830
|
return a.map((t) => ({
|
|
3803
|
-
id: `gid://sagittarius/FlowTypeSetting/${
|
|
3804
|
-
names:
|
|
3805
|
-
descriptions:
|
|
3806
|
-
dataType:
|
|
3831
|
+
id: `gid://sagittarius/FlowTypeSetting/${E(e)}`,
|
|
3832
|
+
names: D(t.name),
|
|
3833
|
+
descriptions: D(t.description),
|
|
3834
|
+
dataType: _(t.dataTypeIdentifier, e),
|
|
3807
3835
|
identifier: t.identifier,
|
|
3808
3836
|
unique: t.unique
|
|
3809
3837
|
}));
|
|
3810
3838
|
}
|
|
3811
|
-
function
|
|
3839
|
+
function Zt(a, e) {
|
|
3812
3840
|
return {
|
|
3813
|
-
id: `gid://sagittarius/FunctionDefinition/${
|
|
3841
|
+
id: `gid://sagittarius/FunctionDefinition/${E(e)}`,
|
|
3814
3842
|
genericKeys: a.genericKeys,
|
|
3815
|
-
names:
|
|
3816
|
-
descriptions:
|
|
3817
|
-
documentations:
|
|
3818
|
-
deprecationMessages:
|
|
3843
|
+
names: D(a.name),
|
|
3844
|
+
descriptions: D(a.description),
|
|
3845
|
+
documentations: D(a.documentation),
|
|
3846
|
+
deprecationMessages: D(a.deprecationMessage),
|
|
3819
3847
|
throwsError: a.throwsError,
|
|
3820
|
-
returnType:
|
|
3821
|
-
parameterDefinitions:
|
|
3848
|
+
returnType: W(a.returnTypeIdentifier, e),
|
|
3849
|
+
parameterDefinitions: qt(a.runtimeParameterDefinitions, e),
|
|
3850
|
+
runtimeFunctionDefinition: {
|
|
3851
|
+
id: `gid://sagittarius/RuntimeFunctionDefinition/${E(e)}`,
|
|
3852
|
+
identifier: a.runtimeName
|
|
3853
|
+
}
|
|
3822
3854
|
};
|
|
3823
3855
|
}
|
|
3824
|
-
function
|
|
3856
|
+
function qt(a, e) {
|
|
3825
3857
|
return {
|
|
3826
3858
|
count: a.length,
|
|
3827
3859
|
nodes: a.map((t) => ({
|
|
3828
|
-
id: `gid://sagittarius/ParameterDefinition/${
|
|
3829
|
-
names:
|
|
3830
|
-
|
|
3831
|
-
|
|
3832
|
-
|
|
3860
|
+
id: `gid://sagittarius/ParameterDefinition/${E(e)}`,
|
|
3861
|
+
names: D(t.name),
|
|
3862
|
+
identifier: t.runtimeName,
|
|
3863
|
+
descriptions: D(t.description),
|
|
3864
|
+
documentations: D(t.documentation),
|
|
3865
|
+
dataTypeIdentifier: W(t.dataTypeIdentifier, e)
|
|
3833
3866
|
}))
|
|
3834
3867
|
};
|
|
3835
3868
|
}
|
|
3836
|
-
function
|
|
3869
|
+
function E(a) {
|
|
3837
3870
|
const e = a.id;
|
|
3838
3871
|
return a.id += 1, e;
|
|
3839
3872
|
}
|
|
3840
|
-
const
|
|
3873
|
+
const Ht = (a) => {
|
|
3841
3874
|
const e = [], t = [], n = [];
|
|
3842
|
-
|
|
3875
|
+
Ae(a, { withFileTypes: !0 }).forEach((s) => {
|
|
3843
3876
|
const o = s.name.split("_")[0];
|
|
3844
3877
|
if (o == null)
|
|
3845
3878
|
throw new Error("Feature name is null");
|
|
3846
|
-
const
|
|
3879
|
+
const l = _e.join(s.parentPath, s.name), h = je(l);
|
|
3847
3880
|
if (s.name.includes("data_type")) {
|
|
3848
|
-
const g =
|
|
3881
|
+
const g = bt.fromBinary(h);
|
|
3849
3882
|
e.push(
|
|
3850
3883
|
{
|
|
3851
3884
|
feature: o,
|
|
@@ -3854,7 +3887,7 @@ const zt = (a) => {
|
|
|
3854
3887
|
);
|
|
3855
3888
|
}
|
|
3856
3889
|
if (s.name.includes("function")) {
|
|
3857
|
-
const g =
|
|
3890
|
+
const g = St.fromBinary(h);
|
|
3858
3891
|
t.push(
|
|
3859
3892
|
{
|
|
3860
3893
|
feature: o,
|
|
@@ -3863,7 +3896,7 @@ const zt = (a) => {
|
|
|
3863
3896
|
);
|
|
3864
3897
|
}
|
|
3865
3898
|
if (s.name.includes("flow_type")) {
|
|
3866
|
-
const g =
|
|
3899
|
+
const g = jt.fromBinary(h);
|
|
3867
3900
|
n.push(
|
|
3868
3901
|
{
|
|
3869
3902
|
feature: o,
|
|
@@ -3877,35 +3910,35 @@ const zt = (a) => {
|
|
|
3877
3910
|
constructedDataTypes: [],
|
|
3878
3911
|
id: 0
|
|
3879
3912
|
};
|
|
3880
|
-
function
|
|
3913
|
+
function f(s) {
|
|
3881
3914
|
const o = r.find((h) => h.name === s);
|
|
3882
3915
|
if (o != null)
|
|
3883
3916
|
return o;
|
|
3884
|
-
const
|
|
3917
|
+
const l = {
|
|
3885
3918
|
name: s,
|
|
3886
3919
|
dataTypes: [],
|
|
3887
3920
|
flowTypes: [],
|
|
3888
3921
|
runtimeFunctions: []
|
|
3889
3922
|
};
|
|
3890
|
-
return r.push(
|
|
3923
|
+
return r.push(l), l;
|
|
3891
3924
|
}
|
|
3892
3925
|
return e.map((s) => ({
|
|
3893
3926
|
name: s.feature,
|
|
3894
|
-
type:
|
|
3927
|
+
type: _(s.type.identifier, i)
|
|
3895
3928
|
})).forEach((s) => {
|
|
3896
|
-
s.type != null &&
|
|
3929
|
+
s.type != null && f(s.name).dataTypes.push(s.type);
|
|
3897
3930
|
}), t.map((s) => ({
|
|
3898
3931
|
name: s.feature,
|
|
3899
|
-
type:
|
|
3932
|
+
type: Zt(s.func, i)
|
|
3900
3933
|
})).forEach((s) => {
|
|
3901
|
-
s.type != null &&
|
|
3934
|
+
s.type != null && f(s.name).runtimeFunctions.push(s.type);
|
|
3902
3935
|
}), n.map((s) => ({
|
|
3903
3936
|
name: s.feature,
|
|
3904
|
-
type:
|
|
3937
|
+
type: Jt(s.flow, i)
|
|
3905
3938
|
})).forEach((s) => {
|
|
3906
|
-
s.type != null &&
|
|
3939
|
+
s.type != null && f(s.name).flowTypes.push(s.type);
|
|
3907
3940
|
}), r;
|
|
3908
3941
|
};
|
|
3909
3942
|
export {
|
|
3910
|
-
|
|
3943
|
+
Ht as Definition
|
|
3911
3944
|
};
|