mezon-js 2.13.66 → 2.13.68
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/api/api.ts +40395 -0
- package/api.gen.ts +253 -180
- package/client.ts +12 -4
- package/dist/api/api.d.ts +23765 -0
- package/dist/google/protobuf/struct.d.ts +201 -0
- package/dist/google/protobuf/timestamp.d.ts +139 -0
- package/dist/google/protobuf/wrappers.d.ts +238 -0
- package/dist/mezon-js.cjs.js +3172 -209
- package/dist/mezon-js.esm.mjs +3181 -208
- package/google/protobuf/struct.ts +554 -0
- package/google/protobuf/timestamp.ts +223 -0
- package/google/protobuf/wrappers.ts +670 -0
- package/package.json +2 -1
- package/rollup.config.js +5 -1
package/dist/mezon-js.esm.mjs
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
1
2
|
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
2
5
|
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
3
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
4
8
|
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
5
9
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
@@ -14,6 +18,25 @@ var __spreadValues = (a, b) => {
|
|
|
14
18
|
}
|
|
15
19
|
return a;
|
|
16
20
|
};
|
|
21
|
+
var __commonJS = (cb, mod2) => function __require() {
|
|
22
|
+
return mod2 || (0, cb[__getOwnPropNames(cb)[0]])((mod2 = { exports: {} }).exports, mod2), mod2.exports;
|
|
23
|
+
};
|
|
24
|
+
var __copyProps = (to, from, except, desc) => {
|
|
25
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
26
|
+
for (let key of __getOwnPropNames(from))
|
|
27
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
28
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
29
|
+
}
|
|
30
|
+
return to;
|
|
31
|
+
};
|
|
32
|
+
var __toESM = (mod2, isNodeMode, target) => (target = mod2 != null ? __create(__getProtoOf(mod2)) : {}, __copyProps(
|
|
33
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
34
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
35
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
36
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
37
|
+
isNodeMode || !mod2 || !mod2.__esModule ? __defProp(target, "default", { value: mod2, enumerable: true }) : target,
|
|
38
|
+
mod2
|
|
39
|
+
));
|
|
17
40
|
var __async = (__this, __arguments, generator) => {
|
|
18
41
|
return new Promise((resolve, reject) => {
|
|
19
42
|
var fulfilled = (value) => {
|
|
@@ -35,6 +58,2228 @@ var __async = (__this, __arguments, generator) => {
|
|
|
35
58
|
});
|
|
36
59
|
};
|
|
37
60
|
|
|
61
|
+
// ../../node_modules/long/src/long.js
|
|
62
|
+
var require_long = __commonJS({
|
|
63
|
+
"../../node_modules/long/src/long.js"(exports2, module2) {
|
|
64
|
+
module2.exports = Long4;
|
|
65
|
+
var wasm = null;
|
|
66
|
+
try {
|
|
67
|
+
wasm = new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([
|
|
68
|
+
0,
|
|
69
|
+
97,
|
|
70
|
+
115,
|
|
71
|
+
109,
|
|
72
|
+
1,
|
|
73
|
+
0,
|
|
74
|
+
0,
|
|
75
|
+
0,
|
|
76
|
+
1,
|
|
77
|
+
13,
|
|
78
|
+
2,
|
|
79
|
+
96,
|
|
80
|
+
0,
|
|
81
|
+
1,
|
|
82
|
+
127,
|
|
83
|
+
96,
|
|
84
|
+
4,
|
|
85
|
+
127,
|
|
86
|
+
127,
|
|
87
|
+
127,
|
|
88
|
+
127,
|
|
89
|
+
1,
|
|
90
|
+
127,
|
|
91
|
+
3,
|
|
92
|
+
7,
|
|
93
|
+
6,
|
|
94
|
+
0,
|
|
95
|
+
1,
|
|
96
|
+
1,
|
|
97
|
+
1,
|
|
98
|
+
1,
|
|
99
|
+
1,
|
|
100
|
+
6,
|
|
101
|
+
6,
|
|
102
|
+
1,
|
|
103
|
+
127,
|
|
104
|
+
1,
|
|
105
|
+
65,
|
|
106
|
+
0,
|
|
107
|
+
11,
|
|
108
|
+
7,
|
|
109
|
+
50,
|
|
110
|
+
6,
|
|
111
|
+
3,
|
|
112
|
+
109,
|
|
113
|
+
117,
|
|
114
|
+
108,
|
|
115
|
+
0,
|
|
116
|
+
1,
|
|
117
|
+
5,
|
|
118
|
+
100,
|
|
119
|
+
105,
|
|
120
|
+
118,
|
|
121
|
+
95,
|
|
122
|
+
115,
|
|
123
|
+
0,
|
|
124
|
+
2,
|
|
125
|
+
5,
|
|
126
|
+
100,
|
|
127
|
+
105,
|
|
128
|
+
118,
|
|
129
|
+
95,
|
|
130
|
+
117,
|
|
131
|
+
0,
|
|
132
|
+
3,
|
|
133
|
+
5,
|
|
134
|
+
114,
|
|
135
|
+
101,
|
|
136
|
+
109,
|
|
137
|
+
95,
|
|
138
|
+
115,
|
|
139
|
+
0,
|
|
140
|
+
4,
|
|
141
|
+
5,
|
|
142
|
+
114,
|
|
143
|
+
101,
|
|
144
|
+
109,
|
|
145
|
+
95,
|
|
146
|
+
117,
|
|
147
|
+
0,
|
|
148
|
+
5,
|
|
149
|
+
8,
|
|
150
|
+
103,
|
|
151
|
+
101,
|
|
152
|
+
116,
|
|
153
|
+
95,
|
|
154
|
+
104,
|
|
155
|
+
105,
|
|
156
|
+
103,
|
|
157
|
+
104,
|
|
158
|
+
0,
|
|
159
|
+
0,
|
|
160
|
+
10,
|
|
161
|
+
191,
|
|
162
|
+
1,
|
|
163
|
+
6,
|
|
164
|
+
4,
|
|
165
|
+
0,
|
|
166
|
+
35,
|
|
167
|
+
0,
|
|
168
|
+
11,
|
|
169
|
+
36,
|
|
170
|
+
1,
|
|
171
|
+
1,
|
|
172
|
+
126,
|
|
173
|
+
32,
|
|
174
|
+
0,
|
|
175
|
+
173,
|
|
176
|
+
32,
|
|
177
|
+
1,
|
|
178
|
+
173,
|
|
179
|
+
66,
|
|
180
|
+
32,
|
|
181
|
+
134,
|
|
182
|
+
132,
|
|
183
|
+
32,
|
|
184
|
+
2,
|
|
185
|
+
173,
|
|
186
|
+
32,
|
|
187
|
+
3,
|
|
188
|
+
173,
|
|
189
|
+
66,
|
|
190
|
+
32,
|
|
191
|
+
134,
|
|
192
|
+
132,
|
|
193
|
+
126,
|
|
194
|
+
34,
|
|
195
|
+
4,
|
|
196
|
+
66,
|
|
197
|
+
32,
|
|
198
|
+
135,
|
|
199
|
+
167,
|
|
200
|
+
36,
|
|
201
|
+
0,
|
|
202
|
+
32,
|
|
203
|
+
4,
|
|
204
|
+
167,
|
|
205
|
+
11,
|
|
206
|
+
36,
|
|
207
|
+
1,
|
|
208
|
+
1,
|
|
209
|
+
126,
|
|
210
|
+
32,
|
|
211
|
+
0,
|
|
212
|
+
173,
|
|
213
|
+
32,
|
|
214
|
+
1,
|
|
215
|
+
173,
|
|
216
|
+
66,
|
|
217
|
+
32,
|
|
218
|
+
134,
|
|
219
|
+
132,
|
|
220
|
+
32,
|
|
221
|
+
2,
|
|
222
|
+
173,
|
|
223
|
+
32,
|
|
224
|
+
3,
|
|
225
|
+
173,
|
|
226
|
+
66,
|
|
227
|
+
32,
|
|
228
|
+
134,
|
|
229
|
+
132,
|
|
230
|
+
127,
|
|
231
|
+
34,
|
|
232
|
+
4,
|
|
233
|
+
66,
|
|
234
|
+
32,
|
|
235
|
+
135,
|
|
236
|
+
167,
|
|
237
|
+
36,
|
|
238
|
+
0,
|
|
239
|
+
32,
|
|
240
|
+
4,
|
|
241
|
+
167,
|
|
242
|
+
11,
|
|
243
|
+
36,
|
|
244
|
+
1,
|
|
245
|
+
1,
|
|
246
|
+
126,
|
|
247
|
+
32,
|
|
248
|
+
0,
|
|
249
|
+
173,
|
|
250
|
+
32,
|
|
251
|
+
1,
|
|
252
|
+
173,
|
|
253
|
+
66,
|
|
254
|
+
32,
|
|
255
|
+
134,
|
|
256
|
+
132,
|
|
257
|
+
32,
|
|
258
|
+
2,
|
|
259
|
+
173,
|
|
260
|
+
32,
|
|
261
|
+
3,
|
|
262
|
+
173,
|
|
263
|
+
66,
|
|
264
|
+
32,
|
|
265
|
+
134,
|
|
266
|
+
132,
|
|
267
|
+
128,
|
|
268
|
+
34,
|
|
269
|
+
4,
|
|
270
|
+
66,
|
|
271
|
+
32,
|
|
272
|
+
135,
|
|
273
|
+
167,
|
|
274
|
+
36,
|
|
275
|
+
0,
|
|
276
|
+
32,
|
|
277
|
+
4,
|
|
278
|
+
167,
|
|
279
|
+
11,
|
|
280
|
+
36,
|
|
281
|
+
1,
|
|
282
|
+
1,
|
|
283
|
+
126,
|
|
284
|
+
32,
|
|
285
|
+
0,
|
|
286
|
+
173,
|
|
287
|
+
32,
|
|
288
|
+
1,
|
|
289
|
+
173,
|
|
290
|
+
66,
|
|
291
|
+
32,
|
|
292
|
+
134,
|
|
293
|
+
132,
|
|
294
|
+
32,
|
|
295
|
+
2,
|
|
296
|
+
173,
|
|
297
|
+
32,
|
|
298
|
+
3,
|
|
299
|
+
173,
|
|
300
|
+
66,
|
|
301
|
+
32,
|
|
302
|
+
134,
|
|
303
|
+
132,
|
|
304
|
+
129,
|
|
305
|
+
34,
|
|
306
|
+
4,
|
|
307
|
+
66,
|
|
308
|
+
32,
|
|
309
|
+
135,
|
|
310
|
+
167,
|
|
311
|
+
36,
|
|
312
|
+
0,
|
|
313
|
+
32,
|
|
314
|
+
4,
|
|
315
|
+
167,
|
|
316
|
+
11,
|
|
317
|
+
36,
|
|
318
|
+
1,
|
|
319
|
+
1,
|
|
320
|
+
126,
|
|
321
|
+
32,
|
|
322
|
+
0,
|
|
323
|
+
173,
|
|
324
|
+
32,
|
|
325
|
+
1,
|
|
326
|
+
173,
|
|
327
|
+
66,
|
|
328
|
+
32,
|
|
329
|
+
134,
|
|
330
|
+
132,
|
|
331
|
+
32,
|
|
332
|
+
2,
|
|
333
|
+
173,
|
|
334
|
+
32,
|
|
335
|
+
3,
|
|
336
|
+
173,
|
|
337
|
+
66,
|
|
338
|
+
32,
|
|
339
|
+
134,
|
|
340
|
+
132,
|
|
341
|
+
130,
|
|
342
|
+
34,
|
|
343
|
+
4,
|
|
344
|
+
66,
|
|
345
|
+
32,
|
|
346
|
+
135,
|
|
347
|
+
167,
|
|
348
|
+
36,
|
|
349
|
+
0,
|
|
350
|
+
32,
|
|
351
|
+
4,
|
|
352
|
+
167,
|
|
353
|
+
11
|
|
354
|
+
])), {}).exports;
|
|
355
|
+
} catch (e) {
|
|
356
|
+
}
|
|
357
|
+
function Long4(low, high, unsigned) {
|
|
358
|
+
this.low = low | 0;
|
|
359
|
+
this.high = high | 0;
|
|
360
|
+
this.unsigned = !!unsigned;
|
|
361
|
+
}
|
|
362
|
+
Long4.prototype.__isLong__;
|
|
363
|
+
Object.defineProperty(Long4.prototype, "__isLong__", { value: true });
|
|
364
|
+
function isLong(obj) {
|
|
365
|
+
return (obj && obj["__isLong__"]) === true;
|
|
366
|
+
}
|
|
367
|
+
Long4.isLong = isLong;
|
|
368
|
+
var INT_CACHE = {};
|
|
369
|
+
var UINT_CACHE = {};
|
|
370
|
+
function fromInt(value, unsigned) {
|
|
371
|
+
var obj, cachedObj, cache;
|
|
372
|
+
if (unsigned) {
|
|
373
|
+
value >>>= 0;
|
|
374
|
+
if (cache = 0 <= value && value < 256) {
|
|
375
|
+
cachedObj = UINT_CACHE[value];
|
|
376
|
+
if (cachedObj)
|
|
377
|
+
return cachedObj;
|
|
378
|
+
}
|
|
379
|
+
obj = fromBits(value, (value | 0) < 0 ? -1 : 0, true);
|
|
380
|
+
if (cache)
|
|
381
|
+
UINT_CACHE[value] = obj;
|
|
382
|
+
return obj;
|
|
383
|
+
} else {
|
|
384
|
+
value |= 0;
|
|
385
|
+
if (cache = -128 <= value && value < 128) {
|
|
386
|
+
cachedObj = INT_CACHE[value];
|
|
387
|
+
if (cachedObj)
|
|
388
|
+
return cachedObj;
|
|
389
|
+
}
|
|
390
|
+
obj = fromBits(value, value < 0 ? -1 : 0, false);
|
|
391
|
+
if (cache)
|
|
392
|
+
INT_CACHE[value] = obj;
|
|
393
|
+
return obj;
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
Long4.fromInt = fromInt;
|
|
397
|
+
function fromNumber(value, unsigned) {
|
|
398
|
+
if (isNaN(value))
|
|
399
|
+
return unsigned ? UZERO : ZERO;
|
|
400
|
+
if (unsigned) {
|
|
401
|
+
if (value < 0)
|
|
402
|
+
return UZERO;
|
|
403
|
+
if (value >= TWO_PWR_64_DBL)
|
|
404
|
+
return MAX_UNSIGNED_VALUE;
|
|
405
|
+
} else {
|
|
406
|
+
if (value <= -TWO_PWR_63_DBL)
|
|
407
|
+
return MIN_VALUE;
|
|
408
|
+
if (value + 1 >= TWO_PWR_63_DBL)
|
|
409
|
+
return MAX_VALUE;
|
|
410
|
+
}
|
|
411
|
+
if (value < 0)
|
|
412
|
+
return fromNumber(-value, unsigned).neg();
|
|
413
|
+
return fromBits(value % TWO_PWR_32_DBL | 0, value / TWO_PWR_32_DBL | 0, unsigned);
|
|
414
|
+
}
|
|
415
|
+
Long4.fromNumber = fromNumber;
|
|
416
|
+
function fromBits(lowBits, highBits, unsigned) {
|
|
417
|
+
return new Long4(lowBits, highBits, unsigned);
|
|
418
|
+
}
|
|
419
|
+
Long4.fromBits = fromBits;
|
|
420
|
+
var pow_dbl = Math.pow;
|
|
421
|
+
function fromString(str, unsigned, radix) {
|
|
422
|
+
if (str.length === 0)
|
|
423
|
+
throw Error("empty string");
|
|
424
|
+
if (str === "NaN" || str === "Infinity" || str === "+Infinity" || str === "-Infinity")
|
|
425
|
+
return ZERO;
|
|
426
|
+
if (typeof unsigned === "number") {
|
|
427
|
+
radix = unsigned, unsigned = false;
|
|
428
|
+
} else {
|
|
429
|
+
unsigned = !!unsigned;
|
|
430
|
+
}
|
|
431
|
+
radix = radix || 10;
|
|
432
|
+
if (radix < 2 || 36 < radix)
|
|
433
|
+
throw RangeError("radix");
|
|
434
|
+
var p;
|
|
435
|
+
if ((p = str.indexOf("-")) > 0)
|
|
436
|
+
throw Error("interior hyphen");
|
|
437
|
+
else if (p === 0) {
|
|
438
|
+
return fromString(str.substring(1), unsigned, radix).neg();
|
|
439
|
+
}
|
|
440
|
+
var radixToPower = fromNumber(pow_dbl(radix, 8));
|
|
441
|
+
var result = ZERO;
|
|
442
|
+
for (var i = 0; i < str.length; i += 8) {
|
|
443
|
+
var size = Math.min(8, str.length - i), value = parseInt(str.substring(i, i + size), radix);
|
|
444
|
+
if (size < 8) {
|
|
445
|
+
var power = fromNumber(pow_dbl(radix, size));
|
|
446
|
+
result = result.mul(power).add(fromNumber(value));
|
|
447
|
+
} else {
|
|
448
|
+
result = result.mul(radixToPower);
|
|
449
|
+
result = result.add(fromNumber(value));
|
|
450
|
+
}
|
|
451
|
+
}
|
|
452
|
+
result.unsigned = unsigned;
|
|
453
|
+
return result;
|
|
454
|
+
}
|
|
455
|
+
Long4.fromString = fromString;
|
|
456
|
+
function fromValue(val, unsigned) {
|
|
457
|
+
if (typeof val === "number")
|
|
458
|
+
return fromNumber(val, unsigned);
|
|
459
|
+
if (typeof val === "string")
|
|
460
|
+
return fromString(val, unsigned);
|
|
461
|
+
return fromBits(val.low, val.high, typeof unsigned === "boolean" ? unsigned : val.unsigned);
|
|
462
|
+
}
|
|
463
|
+
Long4.fromValue = fromValue;
|
|
464
|
+
var TWO_PWR_16_DBL = 1 << 16;
|
|
465
|
+
var TWO_PWR_24_DBL = 1 << 24;
|
|
466
|
+
var TWO_PWR_32_DBL = TWO_PWR_16_DBL * TWO_PWR_16_DBL;
|
|
467
|
+
var TWO_PWR_64_DBL = TWO_PWR_32_DBL * TWO_PWR_32_DBL;
|
|
468
|
+
var TWO_PWR_63_DBL = TWO_PWR_64_DBL / 2;
|
|
469
|
+
var TWO_PWR_24 = fromInt(TWO_PWR_24_DBL);
|
|
470
|
+
var ZERO = fromInt(0);
|
|
471
|
+
Long4.ZERO = ZERO;
|
|
472
|
+
var UZERO = fromInt(0, true);
|
|
473
|
+
Long4.UZERO = UZERO;
|
|
474
|
+
var ONE = fromInt(1);
|
|
475
|
+
Long4.ONE = ONE;
|
|
476
|
+
var UONE = fromInt(1, true);
|
|
477
|
+
Long4.UONE = UONE;
|
|
478
|
+
var NEG_ONE = fromInt(-1);
|
|
479
|
+
Long4.NEG_ONE = NEG_ONE;
|
|
480
|
+
var MAX_VALUE = fromBits(4294967295 | 0, 2147483647 | 0, false);
|
|
481
|
+
Long4.MAX_VALUE = MAX_VALUE;
|
|
482
|
+
var MAX_UNSIGNED_VALUE = fromBits(4294967295 | 0, 4294967295 | 0, true);
|
|
483
|
+
Long4.MAX_UNSIGNED_VALUE = MAX_UNSIGNED_VALUE;
|
|
484
|
+
var MIN_VALUE = fromBits(0, 2147483648 | 0, false);
|
|
485
|
+
Long4.MIN_VALUE = MIN_VALUE;
|
|
486
|
+
var LongPrototype = Long4.prototype;
|
|
487
|
+
LongPrototype.toInt = function toInt() {
|
|
488
|
+
return this.unsigned ? this.low >>> 0 : this.low;
|
|
489
|
+
};
|
|
490
|
+
LongPrototype.toNumber = function toNumber() {
|
|
491
|
+
if (this.unsigned)
|
|
492
|
+
return (this.high >>> 0) * TWO_PWR_32_DBL + (this.low >>> 0);
|
|
493
|
+
return this.high * TWO_PWR_32_DBL + (this.low >>> 0);
|
|
494
|
+
};
|
|
495
|
+
LongPrototype.toString = function toString(radix) {
|
|
496
|
+
radix = radix || 10;
|
|
497
|
+
if (radix < 2 || 36 < radix)
|
|
498
|
+
throw RangeError("radix");
|
|
499
|
+
if (this.isZero())
|
|
500
|
+
return "0";
|
|
501
|
+
if (this.isNegative()) {
|
|
502
|
+
if (this.eq(MIN_VALUE)) {
|
|
503
|
+
var radixLong = fromNumber(radix), div = this.div(radixLong), rem1 = div.mul(radixLong).sub(this);
|
|
504
|
+
return div.toString(radix) + rem1.toInt().toString(radix);
|
|
505
|
+
} else
|
|
506
|
+
return "-" + this.neg().toString(radix);
|
|
507
|
+
}
|
|
508
|
+
var radixToPower = fromNumber(pow_dbl(radix, 6), this.unsigned), rem = this;
|
|
509
|
+
var result = "";
|
|
510
|
+
while (true) {
|
|
511
|
+
var remDiv = rem.div(radixToPower), intval = rem.sub(remDiv.mul(radixToPower)).toInt() >>> 0, digits = intval.toString(radix);
|
|
512
|
+
rem = remDiv;
|
|
513
|
+
if (rem.isZero())
|
|
514
|
+
return digits + result;
|
|
515
|
+
else {
|
|
516
|
+
while (digits.length < 6)
|
|
517
|
+
digits = "0" + digits;
|
|
518
|
+
result = "" + digits + result;
|
|
519
|
+
}
|
|
520
|
+
}
|
|
521
|
+
};
|
|
522
|
+
LongPrototype.getHighBits = function getHighBits() {
|
|
523
|
+
return this.high;
|
|
524
|
+
};
|
|
525
|
+
LongPrototype.getHighBitsUnsigned = function getHighBitsUnsigned() {
|
|
526
|
+
return this.high >>> 0;
|
|
527
|
+
};
|
|
528
|
+
LongPrototype.getLowBits = function getLowBits() {
|
|
529
|
+
return this.low;
|
|
530
|
+
};
|
|
531
|
+
LongPrototype.getLowBitsUnsigned = function getLowBitsUnsigned() {
|
|
532
|
+
return this.low >>> 0;
|
|
533
|
+
};
|
|
534
|
+
LongPrototype.getNumBitsAbs = function getNumBitsAbs() {
|
|
535
|
+
if (this.isNegative())
|
|
536
|
+
return this.eq(MIN_VALUE) ? 64 : this.neg().getNumBitsAbs();
|
|
537
|
+
var val = this.high != 0 ? this.high : this.low;
|
|
538
|
+
for (var bit = 31; bit > 0; bit--)
|
|
539
|
+
if ((val & 1 << bit) != 0)
|
|
540
|
+
break;
|
|
541
|
+
return this.high != 0 ? bit + 33 : bit + 1;
|
|
542
|
+
};
|
|
543
|
+
LongPrototype.isZero = function isZero() {
|
|
544
|
+
return this.high === 0 && this.low === 0;
|
|
545
|
+
};
|
|
546
|
+
LongPrototype.eqz = LongPrototype.isZero;
|
|
547
|
+
LongPrototype.isNegative = function isNegative() {
|
|
548
|
+
return !this.unsigned && this.high < 0;
|
|
549
|
+
};
|
|
550
|
+
LongPrototype.isPositive = function isPositive() {
|
|
551
|
+
return this.unsigned || this.high >= 0;
|
|
552
|
+
};
|
|
553
|
+
LongPrototype.isOdd = function isOdd() {
|
|
554
|
+
return (this.low & 1) === 1;
|
|
555
|
+
};
|
|
556
|
+
LongPrototype.isEven = function isEven() {
|
|
557
|
+
return (this.low & 1) === 0;
|
|
558
|
+
};
|
|
559
|
+
LongPrototype.equals = function equals(other) {
|
|
560
|
+
if (!isLong(other))
|
|
561
|
+
other = fromValue(other);
|
|
562
|
+
if (this.unsigned !== other.unsigned && this.high >>> 31 === 1 && other.high >>> 31 === 1)
|
|
563
|
+
return false;
|
|
564
|
+
return this.high === other.high && this.low === other.low;
|
|
565
|
+
};
|
|
566
|
+
LongPrototype.eq = LongPrototype.equals;
|
|
567
|
+
LongPrototype.notEquals = function notEquals(other) {
|
|
568
|
+
return !this.eq(
|
|
569
|
+
/* validates */
|
|
570
|
+
other
|
|
571
|
+
);
|
|
572
|
+
};
|
|
573
|
+
LongPrototype.neq = LongPrototype.notEquals;
|
|
574
|
+
LongPrototype.ne = LongPrototype.notEquals;
|
|
575
|
+
LongPrototype.lessThan = function lessThan(other) {
|
|
576
|
+
return this.comp(
|
|
577
|
+
/* validates */
|
|
578
|
+
other
|
|
579
|
+
) < 0;
|
|
580
|
+
};
|
|
581
|
+
LongPrototype.lt = LongPrototype.lessThan;
|
|
582
|
+
LongPrototype.lessThanOrEqual = function lessThanOrEqual(other) {
|
|
583
|
+
return this.comp(
|
|
584
|
+
/* validates */
|
|
585
|
+
other
|
|
586
|
+
) <= 0;
|
|
587
|
+
};
|
|
588
|
+
LongPrototype.lte = LongPrototype.lessThanOrEqual;
|
|
589
|
+
LongPrototype.le = LongPrototype.lessThanOrEqual;
|
|
590
|
+
LongPrototype.greaterThan = function greaterThan(other) {
|
|
591
|
+
return this.comp(
|
|
592
|
+
/* validates */
|
|
593
|
+
other
|
|
594
|
+
) > 0;
|
|
595
|
+
};
|
|
596
|
+
LongPrototype.gt = LongPrototype.greaterThan;
|
|
597
|
+
LongPrototype.greaterThanOrEqual = function greaterThanOrEqual(other) {
|
|
598
|
+
return this.comp(
|
|
599
|
+
/* validates */
|
|
600
|
+
other
|
|
601
|
+
) >= 0;
|
|
602
|
+
};
|
|
603
|
+
LongPrototype.gte = LongPrototype.greaterThanOrEqual;
|
|
604
|
+
LongPrototype.ge = LongPrototype.greaterThanOrEqual;
|
|
605
|
+
LongPrototype.compare = function compare(other) {
|
|
606
|
+
if (!isLong(other))
|
|
607
|
+
other = fromValue(other);
|
|
608
|
+
if (this.eq(other))
|
|
609
|
+
return 0;
|
|
610
|
+
var thisNeg = this.isNegative(), otherNeg = other.isNegative();
|
|
611
|
+
if (thisNeg && !otherNeg)
|
|
612
|
+
return -1;
|
|
613
|
+
if (!thisNeg && otherNeg)
|
|
614
|
+
return 1;
|
|
615
|
+
if (!this.unsigned)
|
|
616
|
+
return this.sub(other).isNegative() ? -1 : 1;
|
|
617
|
+
return other.high >>> 0 > this.high >>> 0 || other.high === this.high && other.low >>> 0 > this.low >>> 0 ? -1 : 1;
|
|
618
|
+
};
|
|
619
|
+
LongPrototype.comp = LongPrototype.compare;
|
|
620
|
+
LongPrototype.negate = function negate() {
|
|
621
|
+
if (!this.unsigned && this.eq(MIN_VALUE))
|
|
622
|
+
return MIN_VALUE;
|
|
623
|
+
return this.not().add(ONE);
|
|
624
|
+
};
|
|
625
|
+
LongPrototype.neg = LongPrototype.negate;
|
|
626
|
+
LongPrototype.add = function add(addend) {
|
|
627
|
+
if (!isLong(addend))
|
|
628
|
+
addend = fromValue(addend);
|
|
629
|
+
var a48 = this.high >>> 16;
|
|
630
|
+
var a32 = this.high & 65535;
|
|
631
|
+
var a16 = this.low >>> 16;
|
|
632
|
+
var a00 = this.low & 65535;
|
|
633
|
+
var b48 = addend.high >>> 16;
|
|
634
|
+
var b32 = addend.high & 65535;
|
|
635
|
+
var b16 = addend.low >>> 16;
|
|
636
|
+
var b00 = addend.low & 65535;
|
|
637
|
+
var c48 = 0, c32 = 0, c16 = 0, c00 = 0;
|
|
638
|
+
c00 += a00 + b00;
|
|
639
|
+
c16 += c00 >>> 16;
|
|
640
|
+
c00 &= 65535;
|
|
641
|
+
c16 += a16 + b16;
|
|
642
|
+
c32 += c16 >>> 16;
|
|
643
|
+
c16 &= 65535;
|
|
644
|
+
c32 += a32 + b32;
|
|
645
|
+
c48 += c32 >>> 16;
|
|
646
|
+
c32 &= 65535;
|
|
647
|
+
c48 += a48 + b48;
|
|
648
|
+
c48 &= 65535;
|
|
649
|
+
return fromBits(c16 << 16 | c00, c48 << 16 | c32, this.unsigned);
|
|
650
|
+
};
|
|
651
|
+
LongPrototype.subtract = function subtract(subtrahend) {
|
|
652
|
+
if (!isLong(subtrahend))
|
|
653
|
+
subtrahend = fromValue(subtrahend);
|
|
654
|
+
return this.add(subtrahend.neg());
|
|
655
|
+
};
|
|
656
|
+
LongPrototype.sub = LongPrototype.subtract;
|
|
657
|
+
LongPrototype.multiply = function multiply(multiplier) {
|
|
658
|
+
if (this.isZero())
|
|
659
|
+
return ZERO;
|
|
660
|
+
if (!isLong(multiplier))
|
|
661
|
+
multiplier = fromValue(multiplier);
|
|
662
|
+
if (wasm) {
|
|
663
|
+
var low = wasm.mul(
|
|
664
|
+
this.low,
|
|
665
|
+
this.high,
|
|
666
|
+
multiplier.low,
|
|
667
|
+
multiplier.high
|
|
668
|
+
);
|
|
669
|
+
return fromBits(low, wasm.get_high(), this.unsigned);
|
|
670
|
+
}
|
|
671
|
+
if (multiplier.isZero())
|
|
672
|
+
return ZERO;
|
|
673
|
+
if (this.eq(MIN_VALUE))
|
|
674
|
+
return multiplier.isOdd() ? MIN_VALUE : ZERO;
|
|
675
|
+
if (multiplier.eq(MIN_VALUE))
|
|
676
|
+
return this.isOdd() ? MIN_VALUE : ZERO;
|
|
677
|
+
if (this.isNegative()) {
|
|
678
|
+
if (multiplier.isNegative())
|
|
679
|
+
return this.neg().mul(multiplier.neg());
|
|
680
|
+
else
|
|
681
|
+
return this.neg().mul(multiplier).neg();
|
|
682
|
+
} else if (multiplier.isNegative())
|
|
683
|
+
return this.mul(multiplier.neg()).neg();
|
|
684
|
+
if (this.lt(TWO_PWR_24) && multiplier.lt(TWO_PWR_24))
|
|
685
|
+
return fromNumber(this.toNumber() * multiplier.toNumber(), this.unsigned);
|
|
686
|
+
var a48 = this.high >>> 16;
|
|
687
|
+
var a32 = this.high & 65535;
|
|
688
|
+
var a16 = this.low >>> 16;
|
|
689
|
+
var a00 = this.low & 65535;
|
|
690
|
+
var b48 = multiplier.high >>> 16;
|
|
691
|
+
var b32 = multiplier.high & 65535;
|
|
692
|
+
var b16 = multiplier.low >>> 16;
|
|
693
|
+
var b00 = multiplier.low & 65535;
|
|
694
|
+
var c48 = 0, c32 = 0, c16 = 0, c00 = 0;
|
|
695
|
+
c00 += a00 * b00;
|
|
696
|
+
c16 += c00 >>> 16;
|
|
697
|
+
c00 &= 65535;
|
|
698
|
+
c16 += a16 * b00;
|
|
699
|
+
c32 += c16 >>> 16;
|
|
700
|
+
c16 &= 65535;
|
|
701
|
+
c16 += a00 * b16;
|
|
702
|
+
c32 += c16 >>> 16;
|
|
703
|
+
c16 &= 65535;
|
|
704
|
+
c32 += a32 * b00;
|
|
705
|
+
c48 += c32 >>> 16;
|
|
706
|
+
c32 &= 65535;
|
|
707
|
+
c32 += a16 * b16;
|
|
708
|
+
c48 += c32 >>> 16;
|
|
709
|
+
c32 &= 65535;
|
|
710
|
+
c32 += a00 * b32;
|
|
711
|
+
c48 += c32 >>> 16;
|
|
712
|
+
c32 &= 65535;
|
|
713
|
+
c48 += a48 * b00 + a32 * b16 + a16 * b32 + a00 * b48;
|
|
714
|
+
c48 &= 65535;
|
|
715
|
+
return fromBits(c16 << 16 | c00, c48 << 16 | c32, this.unsigned);
|
|
716
|
+
};
|
|
717
|
+
LongPrototype.mul = LongPrototype.multiply;
|
|
718
|
+
LongPrototype.divide = function divide(divisor) {
|
|
719
|
+
if (!isLong(divisor))
|
|
720
|
+
divisor = fromValue(divisor);
|
|
721
|
+
if (divisor.isZero())
|
|
722
|
+
throw Error("division by zero");
|
|
723
|
+
if (wasm) {
|
|
724
|
+
if (!this.unsigned && this.high === -2147483648 && divisor.low === -1 && divisor.high === -1) {
|
|
725
|
+
return this;
|
|
726
|
+
}
|
|
727
|
+
var low = (this.unsigned ? wasm.div_u : wasm.div_s)(
|
|
728
|
+
this.low,
|
|
729
|
+
this.high,
|
|
730
|
+
divisor.low,
|
|
731
|
+
divisor.high
|
|
732
|
+
);
|
|
733
|
+
return fromBits(low, wasm.get_high(), this.unsigned);
|
|
734
|
+
}
|
|
735
|
+
if (this.isZero())
|
|
736
|
+
return this.unsigned ? UZERO : ZERO;
|
|
737
|
+
var approx, rem, res;
|
|
738
|
+
if (!this.unsigned) {
|
|
739
|
+
if (this.eq(MIN_VALUE)) {
|
|
740
|
+
if (divisor.eq(ONE) || divisor.eq(NEG_ONE))
|
|
741
|
+
return MIN_VALUE;
|
|
742
|
+
else if (divisor.eq(MIN_VALUE))
|
|
743
|
+
return ONE;
|
|
744
|
+
else {
|
|
745
|
+
var halfThis = this.shr(1);
|
|
746
|
+
approx = halfThis.div(divisor).shl(1);
|
|
747
|
+
if (approx.eq(ZERO)) {
|
|
748
|
+
return divisor.isNegative() ? ONE : NEG_ONE;
|
|
749
|
+
} else {
|
|
750
|
+
rem = this.sub(divisor.mul(approx));
|
|
751
|
+
res = approx.add(rem.div(divisor));
|
|
752
|
+
return res;
|
|
753
|
+
}
|
|
754
|
+
}
|
|
755
|
+
} else if (divisor.eq(MIN_VALUE))
|
|
756
|
+
return this.unsigned ? UZERO : ZERO;
|
|
757
|
+
if (this.isNegative()) {
|
|
758
|
+
if (divisor.isNegative())
|
|
759
|
+
return this.neg().div(divisor.neg());
|
|
760
|
+
return this.neg().div(divisor).neg();
|
|
761
|
+
} else if (divisor.isNegative())
|
|
762
|
+
return this.div(divisor.neg()).neg();
|
|
763
|
+
res = ZERO;
|
|
764
|
+
} else {
|
|
765
|
+
if (!divisor.unsigned)
|
|
766
|
+
divisor = divisor.toUnsigned();
|
|
767
|
+
if (divisor.gt(this))
|
|
768
|
+
return UZERO;
|
|
769
|
+
if (divisor.gt(this.shru(1)))
|
|
770
|
+
return UONE;
|
|
771
|
+
res = UZERO;
|
|
772
|
+
}
|
|
773
|
+
rem = this;
|
|
774
|
+
while (rem.gte(divisor)) {
|
|
775
|
+
approx = Math.max(1, Math.floor(rem.toNumber() / divisor.toNumber()));
|
|
776
|
+
var log2 = Math.ceil(Math.log(approx) / Math.LN2), delta = log2 <= 48 ? 1 : pow_dbl(2, log2 - 48), approxRes = fromNumber(approx), approxRem = approxRes.mul(divisor);
|
|
777
|
+
while (approxRem.isNegative() || approxRem.gt(rem)) {
|
|
778
|
+
approx -= delta;
|
|
779
|
+
approxRes = fromNumber(approx, this.unsigned);
|
|
780
|
+
approxRem = approxRes.mul(divisor);
|
|
781
|
+
}
|
|
782
|
+
if (approxRes.isZero())
|
|
783
|
+
approxRes = ONE;
|
|
784
|
+
res = res.add(approxRes);
|
|
785
|
+
rem = rem.sub(approxRem);
|
|
786
|
+
}
|
|
787
|
+
return res;
|
|
788
|
+
};
|
|
789
|
+
LongPrototype.div = LongPrototype.divide;
|
|
790
|
+
LongPrototype.modulo = function modulo(divisor) {
|
|
791
|
+
if (!isLong(divisor))
|
|
792
|
+
divisor = fromValue(divisor);
|
|
793
|
+
if (wasm) {
|
|
794
|
+
var low = (this.unsigned ? wasm.rem_u : wasm.rem_s)(
|
|
795
|
+
this.low,
|
|
796
|
+
this.high,
|
|
797
|
+
divisor.low,
|
|
798
|
+
divisor.high
|
|
799
|
+
);
|
|
800
|
+
return fromBits(low, wasm.get_high(), this.unsigned);
|
|
801
|
+
}
|
|
802
|
+
return this.sub(this.div(divisor).mul(divisor));
|
|
803
|
+
};
|
|
804
|
+
LongPrototype.mod = LongPrototype.modulo;
|
|
805
|
+
LongPrototype.rem = LongPrototype.modulo;
|
|
806
|
+
LongPrototype.not = function not() {
|
|
807
|
+
return fromBits(~this.low, ~this.high, this.unsigned);
|
|
808
|
+
};
|
|
809
|
+
LongPrototype.and = function and(other) {
|
|
810
|
+
if (!isLong(other))
|
|
811
|
+
other = fromValue(other);
|
|
812
|
+
return fromBits(this.low & other.low, this.high & other.high, this.unsigned);
|
|
813
|
+
};
|
|
814
|
+
LongPrototype.or = function or(other) {
|
|
815
|
+
if (!isLong(other))
|
|
816
|
+
other = fromValue(other);
|
|
817
|
+
return fromBits(this.low | other.low, this.high | other.high, this.unsigned);
|
|
818
|
+
};
|
|
819
|
+
LongPrototype.xor = function xor(other) {
|
|
820
|
+
if (!isLong(other))
|
|
821
|
+
other = fromValue(other);
|
|
822
|
+
return fromBits(this.low ^ other.low, this.high ^ other.high, this.unsigned);
|
|
823
|
+
};
|
|
824
|
+
LongPrototype.shiftLeft = function shiftLeft(numBits) {
|
|
825
|
+
if (isLong(numBits))
|
|
826
|
+
numBits = numBits.toInt();
|
|
827
|
+
if ((numBits &= 63) === 0)
|
|
828
|
+
return this;
|
|
829
|
+
else if (numBits < 32)
|
|
830
|
+
return fromBits(this.low << numBits, this.high << numBits | this.low >>> 32 - numBits, this.unsigned);
|
|
831
|
+
else
|
|
832
|
+
return fromBits(0, this.low << numBits - 32, this.unsigned);
|
|
833
|
+
};
|
|
834
|
+
LongPrototype.shl = LongPrototype.shiftLeft;
|
|
835
|
+
LongPrototype.shiftRight = function shiftRight(numBits) {
|
|
836
|
+
if (isLong(numBits))
|
|
837
|
+
numBits = numBits.toInt();
|
|
838
|
+
if ((numBits &= 63) === 0)
|
|
839
|
+
return this;
|
|
840
|
+
else if (numBits < 32)
|
|
841
|
+
return fromBits(this.low >>> numBits | this.high << 32 - numBits, this.high >> numBits, this.unsigned);
|
|
842
|
+
else
|
|
843
|
+
return fromBits(this.high >> numBits - 32, this.high >= 0 ? 0 : -1, this.unsigned);
|
|
844
|
+
};
|
|
845
|
+
LongPrototype.shr = LongPrototype.shiftRight;
|
|
846
|
+
LongPrototype.shiftRightUnsigned = function shiftRightUnsigned(numBits) {
|
|
847
|
+
if (isLong(numBits))
|
|
848
|
+
numBits = numBits.toInt();
|
|
849
|
+
numBits &= 63;
|
|
850
|
+
if (numBits === 0)
|
|
851
|
+
return this;
|
|
852
|
+
else {
|
|
853
|
+
var high = this.high;
|
|
854
|
+
if (numBits < 32) {
|
|
855
|
+
var low = this.low;
|
|
856
|
+
return fromBits(low >>> numBits | high << 32 - numBits, high >>> numBits, this.unsigned);
|
|
857
|
+
} else if (numBits === 32)
|
|
858
|
+
return fromBits(high, 0, this.unsigned);
|
|
859
|
+
else
|
|
860
|
+
return fromBits(high >>> numBits - 32, 0, this.unsigned);
|
|
861
|
+
}
|
|
862
|
+
};
|
|
863
|
+
LongPrototype.shru = LongPrototype.shiftRightUnsigned;
|
|
864
|
+
LongPrototype.shr_u = LongPrototype.shiftRightUnsigned;
|
|
865
|
+
LongPrototype.toSigned = function toSigned() {
|
|
866
|
+
if (!this.unsigned)
|
|
867
|
+
return this;
|
|
868
|
+
return fromBits(this.low, this.high, false);
|
|
869
|
+
};
|
|
870
|
+
LongPrototype.toUnsigned = function toUnsigned() {
|
|
871
|
+
if (this.unsigned)
|
|
872
|
+
return this;
|
|
873
|
+
return fromBits(this.low, this.high, true);
|
|
874
|
+
};
|
|
875
|
+
LongPrototype.toBytes = function toBytes(le) {
|
|
876
|
+
return le ? this.toBytesLE() : this.toBytesBE();
|
|
877
|
+
};
|
|
878
|
+
LongPrototype.toBytesLE = function toBytesLE() {
|
|
879
|
+
var hi = this.high, lo = this.low;
|
|
880
|
+
return [
|
|
881
|
+
lo & 255,
|
|
882
|
+
lo >>> 8 & 255,
|
|
883
|
+
lo >>> 16 & 255,
|
|
884
|
+
lo >>> 24,
|
|
885
|
+
hi & 255,
|
|
886
|
+
hi >>> 8 & 255,
|
|
887
|
+
hi >>> 16 & 255,
|
|
888
|
+
hi >>> 24
|
|
889
|
+
];
|
|
890
|
+
};
|
|
891
|
+
LongPrototype.toBytesBE = function toBytesBE() {
|
|
892
|
+
var hi = this.high, lo = this.low;
|
|
893
|
+
return [
|
|
894
|
+
hi >>> 24,
|
|
895
|
+
hi >>> 16 & 255,
|
|
896
|
+
hi >>> 8 & 255,
|
|
897
|
+
hi & 255,
|
|
898
|
+
lo >>> 24,
|
|
899
|
+
lo >>> 16 & 255,
|
|
900
|
+
lo >>> 8 & 255,
|
|
901
|
+
lo & 255
|
|
902
|
+
];
|
|
903
|
+
};
|
|
904
|
+
Long4.fromBytes = function fromBytes(bytes, unsigned, le) {
|
|
905
|
+
return le ? Long4.fromBytesLE(bytes, unsigned) : Long4.fromBytesBE(bytes, unsigned);
|
|
906
|
+
};
|
|
907
|
+
Long4.fromBytesLE = function fromBytesLE(bytes, unsigned) {
|
|
908
|
+
return new Long4(
|
|
909
|
+
bytes[0] | bytes[1] << 8 | bytes[2] << 16 | bytes[3] << 24,
|
|
910
|
+
bytes[4] | bytes[5] << 8 | bytes[6] << 16 | bytes[7] << 24,
|
|
911
|
+
unsigned
|
|
912
|
+
);
|
|
913
|
+
};
|
|
914
|
+
Long4.fromBytesBE = function fromBytesBE(bytes, unsigned) {
|
|
915
|
+
return new Long4(
|
|
916
|
+
bytes[4] << 24 | bytes[5] << 16 | bytes[6] << 8 | bytes[7],
|
|
917
|
+
bytes[0] << 24 | bytes[1] << 16 | bytes[2] << 8 | bytes[3],
|
|
918
|
+
unsigned
|
|
919
|
+
);
|
|
920
|
+
};
|
|
921
|
+
}
|
|
922
|
+
});
|
|
923
|
+
|
|
924
|
+
// ../../node_modules/@protobufjs/aspromise/index.js
|
|
925
|
+
var require_aspromise = __commonJS({
|
|
926
|
+
"../../node_modules/@protobufjs/aspromise/index.js"(exports2, module2) {
|
|
927
|
+
"use strict";
|
|
928
|
+
module2.exports = asPromise;
|
|
929
|
+
function asPromise(fn, ctx) {
|
|
930
|
+
var params = new Array(arguments.length - 1), offset = 0, index = 2, pending = true;
|
|
931
|
+
while (index < arguments.length)
|
|
932
|
+
params[offset++] = arguments[index++];
|
|
933
|
+
return new Promise(function executor(resolve, reject) {
|
|
934
|
+
params[offset] = function callback(err) {
|
|
935
|
+
if (pending) {
|
|
936
|
+
pending = false;
|
|
937
|
+
if (err)
|
|
938
|
+
reject(err);
|
|
939
|
+
else {
|
|
940
|
+
var params2 = new Array(arguments.length - 1), offset2 = 0;
|
|
941
|
+
while (offset2 < params2.length)
|
|
942
|
+
params2[offset2++] = arguments[offset2];
|
|
943
|
+
resolve.apply(null, params2);
|
|
944
|
+
}
|
|
945
|
+
}
|
|
946
|
+
};
|
|
947
|
+
try {
|
|
948
|
+
fn.apply(ctx || null, params);
|
|
949
|
+
} catch (err) {
|
|
950
|
+
if (pending) {
|
|
951
|
+
pending = false;
|
|
952
|
+
reject(err);
|
|
953
|
+
}
|
|
954
|
+
}
|
|
955
|
+
});
|
|
956
|
+
}
|
|
957
|
+
}
|
|
958
|
+
});
|
|
959
|
+
|
|
960
|
+
// ../../node_modules/@protobufjs/base64/index.js
|
|
961
|
+
var require_base64 = __commonJS({
|
|
962
|
+
"../../node_modules/@protobufjs/base64/index.js"(exports2) {
|
|
963
|
+
"use strict";
|
|
964
|
+
var base64 = exports2;
|
|
965
|
+
base64.length = function length(string) {
|
|
966
|
+
var p = string.length;
|
|
967
|
+
if (!p)
|
|
968
|
+
return 0;
|
|
969
|
+
var n = 0;
|
|
970
|
+
while (--p % 4 > 1 && string.charAt(p) === "=")
|
|
971
|
+
++n;
|
|
972
|
+
return Math.ceil(string.length * 3) / 4 - n;
|
|
973
|
+
};
|
|
974
|
+
var b64 = new Array(64);
|
|
975
|
+
var s64 = new Array(123);
|
|
976
|
+
for (i = 0; i < 64; )
|
|
977
|
+
s64[b64[i] = i < 26 ? i + 65 : i < 52 ? i + 71 : i < 62 ? i - 4 : i - 59 | 43] = i++;
|
|
978
|
+
var i;
|
|
979
|
+
base64.encode = function encode3(buffer, start, end) {
|
|
980
|
+
var parts = null, chunk = [];
|
|
981
|
+
var i2 = 0, j = 0, t;
|
|
982
|
+
while (start < end) {
|
|
983
|
+
var b = buffer[start++];
|
|
984
|
+
switch (j) {
|
|
985
|
+
case 0:
|
|
986
|
+
chunk[i2++] = b64[b >> 2];
|
|
987
|
+
t = (b & 3) << 4;
|
|
988
|
+
j = 1;
|
|
989
|
+
break;
|
|
990
|
+
case 1:
|
|
991
|
+
chunk[i2++] = b64[t | b >> 4];
|
|
992
|
+
t = (b & 15) << 2;
|
|
993
|
+
j = 2;
|
|
994
|
+
break;
|
|
995
|
+
case 2:
|
|
996
|
+
chunk[i2++] = b64[t | b >> 6];
|
|
997
|
+
chunk[i2++] = b64[b & 63];
|
|
998
|
+
j = 0;
|
|
999
|
+
break;
|
|
1000
|
+
}
|
|
1001
|
+
if (i2 > 8191) {
|
|
1002
|
+
(parts || (parts = [])).push(String.fromCharCode.apply(String, chunk));
|
|
1003
|
+
i2 = 0;
|
|
1004
|
+
}
|
|
1005
|
+
}
|
|
1006
|
+
if (j) {
|
|
1007
|
+
chunk[i2++] = b64[t];
|
|
1008
|
+
chunk[i2++] = 61;
|
|
1009
|
+
if (j === 1)
|
|
1010
|
+
chunk[i2++] = 61;
|
|
1011
|
+
}
|
|
1012
|
+
if (parts) {
|
|
1013
|
+
if (i2)
|
|
1014
|
+
parts.push(String.fromCharCode.apply(String, chunk.slice(0, i2)));
|
|
1015
|
+
return parts.join("");
|
|
1016
|
+
}
|
|
1017
|
+
return String.fromCharCode.apply(String, chunk.slice(0, i2));
|
|
1018
|
+
};
|
|
1019
|
+
var invalidEncoding = "invalid encoding";
|
|
1020
|
+
base64.decode = function decode4(string, buffer, offset) {
|
|
1021
|
+
var start = offset;
|
|
1022
|
+
var j = 0, t;
|
|
1023
|
+
for (var i2 = 0; i2 < string.length; ) {
|
|
1024
|
+
var c = string.charCodeAt(i2++);
|
|
1025
|
+
if (c === 61 && j > 1)
|
|
1026
|
+
break;
|
|
1027
|
+
if ((c = s64[c]) === void 0)
|
|
1028
|
+
throw Error(invalidEncoding);
|
|
1029
|
+
switch (j) {
|
|
1030
|
+
case 0:
|
|
1031
|
+
t = c;
|
|
1032
|
+
j = 1;
|
|
1033
|
+
break;
|
|
1034
|
+
case 1:
|
|
1035
|
+
buffer[offset++] = t << 2 | (c & 48) >> 4;
|
|
1036
|
+
t = c;
|
|
1037
|
+
j = 2;
|
|
1038
|
+
break;
|
|
1039
|
+
case 2:
|
|
1040
|
+
buffer[offset++] = (t & 15) << 4 | (c & 60) >> 2;
|
|
1041
|
+
t = c;
|
|
1042
|
+
j = 3;
|
|
1043
|
+
break;
|
|
1044
|
+
case 3:
|
|
1045
|
+
buffer[offset++] = (t & 3) << 6 | c;
|
|
1046
|
+
j = 0;
|
|
1047
|
+
break;
|
|
1048
|
+
}
|
|
1049
|
+
}
|
|
1050
|
+
if (j === 1)
|
|
1051
|
+
throw Error(invalidEncoding);
|
|
1052
|
+
return offset - start;
|
|
1053
|
+
};
|
|
1054
|
+
base64.test = function test(string) {
|
|
1055
|
+
return /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(string);
|
|
1056
|
+
};
|
|
1057
|
+
}
|
|
1058
|
+
});
|
|
1059
|
+
|
|
1060
|
+
// ../../node_modules/@protobufjs/eventemitter/index.js
|
|
1061
|
+
var require_eventemitter = __commonJS({
|
|
1062
|
+
"../../node_modules/@protobufjs/eventemitter/index.js"(exports2, module2) {
|
|
1063
|
+
"use strict";
|
|
1064
|
+
module2.exports = EventEmitter;
|
|
1065
|
+
function EventEmitter() {
|
|
1066
|
+
this._listeners = {};
|
|
1067
|
+
}
|
|
1068
|
+
EventEmitter.prototype.on = function on(evt, fn, ctx) {
|
|
1069
|
+
(this._listeners[evt] || (this._listeners[evt] = [])).push({
|
|
1070
|
+
fn,
|
|
1071
|
+
ctx: ctx || this
|
|
1072
|
+
});
|
|
1073
|
+
return this;
|
|
1074
|
+
};
|
|
1075
|
+
EventEmitter.prototype.off = function off(evt, fn) {
|
|
1076
|
+
if (evt === void 0)
|
|
1077
|
+
this._listeners = {};
|
|
1078
|
+
else {
|
|
1079
|
+
if (fn === void 0)
|
|
1080
|
+
this._listeners[evt] = [];
|
|
1081
|
+
else {
|
|
1082
|
+
var listeners = this._listeners[evt];
|
|
1083
|
+
for (var i = 0; i < listeners.length; )
|
|
1084
|
+
if (listeners[i].fn === fn)
|
|
1085
|
+
listeners.splice(i, 1);
|
|
1086
|
+
else
|
|
1087
|
+
++i;
|
|
1088
|
+
}
|
|
1089
|
+
}
|
|
1090
|
+
return this;
|
|
1091
|
+
};
|
|
1092
|
+
EventEmitter.prototype.emit = function emit(evt) {
|
|
1093
|
+
var listeners = this._listeners[evt];
|
|
1094
|
+
if (listeners) {
|
|
1095
|
+
var args = [], i = 1;
|
|
1096
|
+
for (; i < arguments.length; )
|
|
1097
|
+
args.push(arguments[i++]);
|
|
1098
|
+
for (i = 0; i < listeners.length; )
|
|
1099
|
+
listeners[i].fn.apply(listeners[i++].ctx, args);
|
|
1100
|
+
}
|
|
1101
|
+
return this;
|
|
1102
|
+
};
|
|
1103
|
+
}
|
|
1104
|
+
});
|
|
1105
|
+
|
|
1106
|
+
// ../../node_modules/@protobufjs/float/index.js
|
|
1107
|
+
var require_float = __commonJS({
|
|
1108
|
+
"../../node_modules/@protobufjs/float/index.js"(exports2, module2) {
|
|
1109
|
+
"use strict";
|
|
1110
|
+
module2.exports = factory(factory);
|
|
1111
|
+
function factory(exports3) {
|
|
1112
|
+
if (typeof Float32Array !== "undefined") (function() {
|
|
1113
|
+
var f32 = new Float32Array([-0]), f8b = new Uint8Array(f32.buffer), le = f8b[3] === 128;
|
|
1114
|
+
function writeFloat_f32_cpy(val, buf, pos) {
|
|
1115
|
+
f32[0] = val;
|
|
1116
|
+
buf[pos] = f8b[0];
|
|
1117
|
+
buf[pos + 1] = f8b[1];
|
|
1118
|
+
buf[pos + 2] = f8b[2];
|
|
1119
|
+
buf[pos + 3] = f8b[3];
|
|
1120
|
+
}
|
|
1121
|
+
function writeFloat_f32_rev(val, buf, pos) {
|
|
1122
|
+
f32[0] = val;
|
|
1123
|
+
buf[pos] = f8b[3];
|
|
1124
|
+
buf[pos + 1] = f8b[2];
|
|
1125
|
+
buf[pos + 2] = f8b[1];
|
|
1126
|
+
buf[pos + 3] = f8b[0];
|
|
1127
|
+
}
|
|
1128
|
+
exports3.writeFloatLE = le ? writeFloat_f32_cpy : writeFloat_f32_rev;
|
|
1129
|
+
exports3.writeFloatBE = le ? writeFloat_f32_rev : writeFloat_f32_cpy;
|
|
1130
|
+
function readFloat_f32_cpy(buf, pos) {
|
|
1131
|
+
f8b[0] = buf[pos];
|
|
1132
|
+
f8b[1] = buf[pos + 1];
|
|
1133
|
+
f8b[2] = buf[pos + 2];
|
|
1134
|
+
f8b[3] = buf[pos + 3];
|
|
1135
|
+
return f32[0];
|
|
1136
|
+
}
|
|
1137
|
+
function readFloat_f32_rev(buf, pos) {
|
|
1138
|
+
f8b[3] = buf[pos];
|
|
1139
|
+
f8b[2] = buf[pos + 1];
|
|
1140
|
+
f8b[1] = buf[pos + 2];
|
|
1141
|
+
f8b[0] = buf[pos + 3];
|
|
1142
|
+
return f32[0];
|
|
1143
|
+
}
|
|
1144
|
+
exports3.readFloatLE = le ? readFloat_f32_cpy : readFloat_f32_rev;
|
|
1145
|
+
exports3.readFloatBE = le ? readFloat_f32_rev : readFloat_f32_cpy;
|
|
1146
|
+
})();
|
|
1147
|
+
else (function() {
|
|
1148
|
+
function writeFloat_ieee754(writeUint, val, buf, pos) {
|
|
1149
|
+
var sign = val < 0 ? 1 : 0;
|
|
1150
|
+
if (sign)
|
|
1151
|
+
val = -val;
|
|
1152
|
+
if (val === 0)
|
|
1153
|
+
writeUint(1 / val > 0 ? (
|
|
1154
|
+
/* positive */
|
|
1155
|
+
0
|
|
1156
|
+
) : (
|
|
1157
|
+
/* negative 0 */
|
|
1158
|
+
2147483648
|
|
1159
|
+
), buf, pos);
|
|
1160
|
+
else if (isNaN(val))
|
|
1161
|
+
writeUint(2143289344, buf, pos);
|
|
1162
|
+
else if (val > 34028234663852886e22)
|
|
1163
|
+
writeUint((sign << 31 | 2139095040) >>> 0, buf, pos);
|
|
1164
|
+
else if (val < 11754943508222875e-54)
|
|
1165
|
+
writeUint((sign << 31 | Math.round(val / 1401298464324817e-60)) >>> 0, buf, pos);
|
|
1166
|
+
else {
|
|
1167
|
+
var exponent = Math.floor(Math.log(val) / Math.LN2), mantissa = Math.round(val * Math.pow(2, -exponent) * 8388608) & 8388607;
|
|
1168
|
+
writeUint((sign << 31 | exponent + 127 << 23 | mantissa) >>> 0, buf, pos);
|
|
1169
|
+
}
|
|
1170
|
+
}
|
|
1171
|
+
exports3.writeFloatLE = writeFloat_ieee754.bind(null, writeUintLE);
|
|
1172
|
+
exports3.writeFloatBE = writeFloat_ieee754.bind(null, writeUintBE);
|
|
1173
|
+
function readFloat_ieee754(readUint, buf, pos) {
|
|
1174
|
+
var uint = readUint(buf, pos), sign = (uint >> 31) * 2 + 1, exponent = uint >>> 23 & 255, mantissa = uint & 8388607;
|
|
1175
|
+
return exponent === 255 ? mantissa ? NaN : sign * Infinity : exponent === 0 ? sign * 1401298464324817e-60 * mantissa : sign * Math.pow(2, exponent - 150) * (mantissa + 8388608);
|
|
1176
|
+
}
|
|
1177
|
+
exports3.readFloatLE = readFloat_ieee754.bind(null, readUintLE);
|
|
1178
|
+
exports3.readFloatBE = readFloat_ieee754.bind(null, readUintBE);
|
|
1179
|
+
})();
|
|
1180
|
+
if (typeof Float64Array !== "undefined") (function() {
|
|
1181
|
+
var f64 = new Float64Array([-0]), f8b = new Uint8Array(f64.buffer), le = f8b[7] === 128;
|
|
1182
|
+
function writeDouble_f64_cpy(val, buf, pos) {
|
|
1183
|
+
f64[0] = val;
|
|
1184
|
+
buf[pos] = f8b[0];
|
|
1185
|
+
buf[pos + 1] = f8b[1];
|
|
1186
|
+
buf[pos + 2] = f8b[2];
|
|
1187
|
+
buf[pos + 3] = f8b[3];
|
|
1188
|
+
buf[pos + 4] = f8b[4];
|
|
1189
|
+
buf[pos + 5] = f8b[5];
|
|
1190
|
+
buf[pos + 6] = f8b[6];
|
|
1191
|
+
buf[pos + 7] = f8b[7];
|
|
1192
|
+
}
|
|
1193
|
+
function writeDouble_f64_rev(val, buf, pos) {
|
|
1194
|
+
f64[0] = val;
|
|
1195
|
+
buf[pos] = f8b[7];
|
|
1196
|
+
buf[pos + 1] = f8b[6];
|
|
1197
|
+
buf[pos + 2] = f8b[5];
|
|
1198
|
+
buf[pos + 3] = f8b[4];
|
|
1199
|
+
buf[pos + 4] = f8b[3];
|
|
1200
|
+
buf[pos + 5] = f8b[2];
|
|
1201
|
+
buf[pos + 6] = f8b[1];
|
|
1202
|
+
buf[pos + 7] = f8b[0];
|
|
1203
|
+
}
|
|
1204
|
+
exports3.writeDoubleLE = le ? writeDouble_f64_cpy : writeDouble_f64_rev;
|
|
1205
|
+
exports3.writeDoubleBE = le ? writeDouble_f64_rev : writeDouble_f64_cpy;
|
|
1206
|
+
function readDouble_f64_cpy(buf, pos) {
|
|
1207
|
+
f8b[0] = buf[pos];
|
|
1208
|
+
f8b[1] = buf[pos + 1];
|
|
1209
|
+
f8b[2] = buf[pos + 2];
|
|
1210
|
+
f8b[3] = buf[pos + 3];
|
|
1211
|
+
f8b[4] = buf[pos + 4];
|
|
1212
|
+
f8b[5] = buf[pos + 5];
|
|
1213
|
+
f8b[6] = buf[pos + 6];
|
|
1214
|
+
f8b[7] = buf[pos + 7];
|
|
1215
|
+
return f64[0];
|
|
1216
|
+
}
|
|
1217
|
+
function readDouble_f64_rev(buf, pos) {
|
|
1218
|
+
f8b[7] = buf[pos];
|
|
1219
|
+
f8b[6] = buf[pos + 1];
|
|
1220
|
+
f8b[5] = buf[pos + 2];
|
|
1221
|
+
f8b[4] = buf[pos + 3];
|
|
1222
|
+
f8b[3] = buf[pos + 4];
|
|
1223
|
+
f8b[2] = buf[pos + 5];
|
|
1224
|
+
f8b[1] = buf[pos + 6];
|
|
1225
|
+
f8b[0] = buf[pos + 7];
|
|
1226
|
+
return f64[0];
|
|
1227
|
+
}
|
|
1228
|
+
exports3.readDoubleLE = le ? readDouble_f64_cpy : readDouble_f64_rev;
|
|
1229
|
+
exports3.readDoubleBE = le ? readDouble_f64_rev : readDouble_f64_cpy;
|
|
1230
|
+
})();
|
|
1231
|
+
else (function() {
|
|
1232
|
+
function writeDouble_ieee754(writeUint, off0, off1, val, buf, pos) {
|
|
1233
|
+
var sign = val < 0 ? 1 : 0;
|
|
1234
|
+
if (sign)
|
|
1235
|
+
val = -val;
|
|
1236
|
+
if (val === 0) {
|
|
1237
|
+
writeUint(0, buf, pos + off0);
|
|
1238
|
+
writeUint(1 / val > 0 ? (
|
|
1239
|
+
/* positive */
|
|
1240
|
+
0
|
|
1241
|
+
) : (
|
|
1242
|
+
/* negative 0 */
|
|
1243
|
+
2147483648
|
|
1244
|
+
), buf, pos + off1);
|
|
1245
|
+
} else if (isNaN(val)) {
|
|
1246
|
+
writeUint(0, buf, pos + off0);
|
|
1247
|
+
writeUint(2146959360, buf, pos + off1);
|
|
1248
|
+
} else if (val > 17976931348623157e292) {
|
|
1249
|
+
writeUint(0, buf, pos + off0);
|
|
1250
|
+
writeUint((sign << 31 | 2146435072) >>> 0, buf, pos + off1);
|
|
1251
|
+
} else {
|
|
1252
|
+
var mantissa;
|
|
1253
|
+
if (val < 22250738585072014e-324) {
|
|
1254
|
+
mantissa = val / 5e-324;
|
|
1255
|
+
writeUint(mantissa >>> 0, buf, pos + off0);
|
|
1256
|
+
writeUint((sign << 31 | mantissa / 4294967296) >>> 0, buf, pos + off1);
|
|
1257
|
+
} else {
|
|
1258
|
+
var exponent = Math.floor(Math.log(val) / Math.LN2);
|
|
1259
|
+
if (exponent === 1024)
|
|
1260
|
+
exponent = 1023;
|
|
1261
|
+
mantissa = val * Math.pow(2, -exponent);
|
|
1262
|
+
writeUint(mantissa * 4503599627370496 >>> 0, buf, pos + off0);
|
|
1263
|
+
writeUint((sign << 31 | exponent + 1023 << 20 | mantissa * 1048576 & 1048575) >>> 0, buf, pos + off1);
|
|
1264
|
+
}
|
|
1265
|
+
}
|
|
1266
|
+
}
|
|
1267
|
+
exports3.writeDoubleLE = writeDouble_ieee754.bind(null, writeUintLE, 0, 4);
|
|
1268
|
+
exports3.writeDoubleBE = writeDouble_ieee754.bind(null, writeUintBE, 4, 0);
|
|
1269
|
+
function readDouble_ieee754(readUint, off0, off1, buf, pos) {
|
|
1270
|
+
var lo = readUint(buf, pos + off0), hi = readUint(buf, pos + off1);
|
|
1271
|
+
var sign = (hi >> 31) * 2 + 1, exponent = hi >>> 20 & 2047, mantissa = 4294967296 * (hi & 1048575) + lo;
|
|
1272
|
+
return exponent === 2047 ? mantissa ? NaN : sign * Infinity : exponent === 0 ? sign * 5e-324 * mantissa : sign * Math.pow(2, exponent - 1075) * (mantissa + 4503599627370496);
|
|
1273
|
+
}
|
|
1274
|
+
exports3.readDoubleLE = readDouble_ieee754.bind(null, readUintLE, 0, 4);
|
|
1275
|
+
exports3.readDoubleBE = readDouble_ieee754.bind(null, readUintBE, 4, 0);
|
|
1276
|
+
})();
|
|
1277
|
+
return exports3;
|
|
1278
|
+
}
|
|
1279
|
+
function writeUintLE(val, buf, pos) {
|
|
1280
|
+
buf[pos] = val & 255;
|
|
1281
|
+
buf[pos + 1] = val >>> 8 & 255;
|
|
1282
|
+
buf[pos + 2] = val >>> 16 & 255;
|
|
1283
|
+
buf[pos + 3] = val >>> 24;
|
|
1284
|
+
}
|
|
1285
|
+
function writeUintBE(val, buf, pos) {
|
|
1286
|
+
buf[pos] = val >>> 24;
|
|
1287
|
+
buf[pos + 1] = val >>> 16 & 255;
|
|
1288
|
+
buf[pos + 2] = val >>> 8 & 255;
|
|
1289
|
+
buf[pos + 3] = val & 255;
|
|
1290
|
+
}
|
|
1291
|
+
function readUintLE(buf, pos) {
|
|
1292
|
+
return (buf[pos] | buf[pos + 1] << 8 | buf[pos + 2] << 16 | buf[pos + 3] << 24) >>> 0;
|
|
1293
|
+
}
|
|
1294
|
+
function readUintBE(buf, pos) {
|
|
1295
|
+
return (buf[pos] << 24 | buf[pos + 1] << 16 | buf[pos + 2] << 8 | buf[pos + 3]) >>> 0;
|
|
1296
|
+
}
|
|
1297
|
+
}
|
|
1298
|
+
});
|
|
1299
|
+
|
|
1300
|
+
// ../../node_modules/@protobufjs/inquire/index.js
|
|
1301
|
+
var require_inquire = __commonJS({
|
|
1302
|
+
"../../node_modules/@protobufjs/inquire/index.js"(exports, module) {
|
|
1303
|
+
"use strict";
|
|
1304
|
+
module.exports = inquire;
|
|
1305
|
+
function inquire(moduleName) {
|
|
1306
|
+
try {
|
|
1307
|
+
var mod = eval("quire".replace(/^/, "re"))(moduleName);
|
|
1308
|
+
if (mod && (mod.length || Object.keys(mod).length))
|
|
1309
|
+
return mod;
|
|
1310
|
+
} catch (e) {
|
|
1311
|
+
}
|
|
1312
|
+
return null;
|
|
1313
|
+
}
|
|
1314
|
+
}
|
|
1315
|
+
});
|
|
1316
|
+
|
|
1317
|
+
// ../../node_modules/@protobufjs/utf8/index.js
|
|
1318
|
+
var require_utf8 = __commonJS({
|
|
1319
|
+
"../../node_modules/@protobufjs/utf8/index.js"(exports2) {
|
|
1320
|
+
"use strict";
|
|
1321
|
+
var utf8 = exports2;
|
|
1322
|
+
utf8.length = function utf8_length(string) {
|
|
1323
|
+
var len = 0, c = 0;
|
|
1324
|
+
for (var i = 0; i < string.length; ++i) {
|
|
1325
|
+
c = string.charCodeAt(i);
|
|
1326
|
+
if (c < 128)
|
|
1327
|
+
len += 1;
|
|
1328
|
+
else if (c < 2048)
|
|
1329
|
+
len += 2;
|
|
1330
|
+
else if ((c & 64512) === 55296 && (string.charCodeAt(i + 1) & 64512) === 56320) {
|
|
1331
|
+
++i;
|
|
1332
|
+
len += 4;
|
|
1333
|
+
} else
|
|
1334
|
+
len += 3;
|
|
1335
|
+
}
|
|
1336
|
+
return len;
|
|
1337
|
+
};
|
|
1338
|
+
utf8.read = function utf8_read(buffer, start, end) {
|
|
1339
|
+
var len = end - start;
|
|
1340
|
+
if (len < 1)
|
|
1341
|
+
return "";
|
|
1342
|
+
var parts = null, chunk = [], i = 0, t;
|
|
1343
|
+
while (start < end) {
|
|
1344
|
+
t = buffer[start++];
|
|
1345
|
+
if (t < 128)
|
|
1346
|
+
chunk[i++] = t;
|
|
1347
|
+
else if (t > 191 && t < 224)
|
|
1348
|
+
chunk[i++] = (t & 31) << 6 | buffer[start++] & 63;
|
|
1349
|
+
else if (t > 239 && t < 365) {
|
|
1350
|
+
t = ((t & 7) << 18 | (buffer[start++] & 63) << 12 | (buffer[start++] & 63) << 6 | buffer[start++] & 63) - 65536;
|
|
1351
|
+
chunk[i++] = 55296 + (t >> 10);
|
|
1352
|
+
chunk[i++] = 56320 + (t & 1023);
|
|
1353
|
+
} else
|
|
1354
|
+
chunk[i++] = (t & 15) << 12 | (buffer[start++] & 63) << 6 | buffer[start++] & 63;
|
|
1355
|
+
if (i > 8191) {
|
|
1356
|
+
(parts || (parts = [])).push(String.fromCharCode.apply(String, chunk));
|
|
1357
|
+
i = 0;
|
|
1358
|
+
}
|
|
1359
|
+
}
|
|
1360
|
+
if (parts) {
|
|
1361
|
+
if (i)
|
|
1362
|
+
parts.push(String.fromCharCode.apply(String, chunk.slice(0, i)));
|
|
1363
|
+
return parts.join("");
|
|
1364
|
+
}
|
|
1365
|
+
return String.fromCharCode.apply(String, chunk.slice(0, i));
|
|
1366
|
+
};
|
|
1367
|
+
utf8.write = function utf8_write(string, buffer, offset) {
|
|
1368
|
+
var start = offset, c1, c2;
|
|
1369
|
+
for (var i = 0; i < string.length; ++i) {
|
|
1370
|
+
c1 = string.charCodeAt(i);
|
|
1371
|
+
if (c1 < 128) {
|
|
1372
|
+
buffer[offset++] = c1;
|
|
1373
|
+
} else if (c1 < 2048) {
|
|
1374
|
+
buffer[offset++] = c1 >> 6 | 192;
|
|
1375
|
+
buffer[offset++] = c1 & 63 | 128;
|
|
1376
|
+
} else if ((c1 & 64512) === 55296 && ((c2 = string.charCodeAt(i + 1)) & 64512) === 56320) {
|
|
1377
|
+
c1 = 65536 + ((c1 & 1023) << 10) + (c2 & 1023);
|
|
1378
|
+
++i;
|
|
1379
|
+
buffer[offset++] = c1 >> 18 | 240;
|
|
1380
|
+
buffer[offset++] = c1 >> 12 & 63 | 128;
|
|
1381
|
+
buffer[offset++] = c1 >> 6 & 63 | 128;
|
|
1382
|
+
buffer[offset++] = c1 & 63 | 128;
|
|
1383
|
+
} else {
|
|
1384
|
+
buffer[offset++] = c1 >> 12 | 224;
|
|
1385
|
+
buffer[offset++] = c1 >> 6 & 63 | 128;
|
|
1386
|
+
buffer[offset++] = c1 & 63 | 128;
|
|
1387
|
+
}
|
|
1388
|
+
}
|
|
1389
|
+
return offset - start;
|
|
1390
|
+
};
|
|
1391
|
+
}
|
|
1392
|
+
});
|
|
1393
|
+
|
|
1394
|
+
// ../../node_modules/@protobufjs/pool/index.js
|
|
1395
|
+
var require_pool = __commonJS({
|
|
1396
|
+
"../../node_modules/@protobufjs/pool/index.js"(exports2, module2) {
|
|
1397
|
+
"use strict";
|
|
1398
|
+
module2.exports = pool;
|
|
1399
|
+
function pool(alloc, slice, size) {
|
|
1400
|
+
var SIZE = size || 8192;
|
|
1401
|
+
var MAX = SIZE >>> 1;
|
|
1402
|
+
var slab = null;
|
|
1403
|
+
var offset = SIZE;
|
|
1404
|
+
return function pool_alloc(size2) {
|
|
1405
|
+
if (size2 < 1 || size2 > MAX)
|
|
1406
|
+
return alloc(size2);
|
|
1407
|
+
if (offset + size2 > SIZE) {
|
|
1408
|
+
slab = alloc(SIZE);
|
|
1409
|
+
offset = 0;
|
|
1410
|
+
}
|
|
1411
|
+
var buf = slice.call(slab, offset, offset += size2);
|
|
1412
|
+
if (offset & 7)
|
|
1413
|
+
offset = (offset | 7) + 1;
|
|
1414
|
+
return buf;
|
|
1415
|
+
};
|
|
1416
|
+
}
|
|
1417
|
+
}
|
|
1418
|
+
});
|
|
1419
|
+
|
|
1420
|
+
// ../../node_modules/protobufjs/src/util/longbits.js
|
|
1421
|
+
var require_longbits = __commonJS({
|
|
1422
|
+
"../../node_modules/protobufjs/src/util/longbits.js"(exports2, module2) {
|
|
1423
|
+
"use strict";
|
|
1424
|
+
module2.exports = LongBits;
|
|
1425
|
+
var util = require_minimal();
|
|
1426
|
+
function LongBits(lo, hi) {
|
|
1427
|
+
this.lo = lo >>> 0;
|
|
1428
|
+
this.hi = hi >>> 0;
|
|
1429
|
+
}
|
|
1430
|
+
var zero = LongBits.zero = new LongBits(0, 0);
|
|
1431
|
+
zero.toNumber = function() {
|
|
1432
|
+
return 0;
|
|
1433
|
+
};
|
|
1434
|
+
zero.zzEncode = zero.zzDecode = function() {
|
|
1435
|
+
return this;
|
|
1436
|
+
};
|
|
1437
|
+
zero.length = function() {
|
|
1438
|
+
return 1;
|
|
1439
|
+
};
|
|
1440
|
+
var zeroHash = LongBits.zeroHash = "\0\0\0\0\0\0\0\0";
|
|
1441
|
+
LongBits.fromNumber = function fromNumber(value) {
|
|
1442
|
+
if (value === 0)
|
|
1443
|
+
return zero;
|
|
1444
|
+
var sign = value < 0;
|
|
1445
|
+
if (sign)
|
|
1446
|
+
value = -value;
|
|
1447
|
+
var lo = value >>> 0, hi = (value - lo) / 4294967296 >>> 0;
|
|
1448
|
+
if (sign) {
|
|
1449
|
+
hi = ~hi >>> 0;
|
|
1450
|
+
lo = ~lo >>> 0;
|
|
1451
|
+
if (++lo > 4294967295) {
|
|
1452
|
+
lo = 0;
|
|
1453
|
+
if (++hi > 4294967295)
|
|
1454
|
+
hi = 0;
|
|
1455
|
+
}
|
|
1456
|
+
}
|
|
1457
|
+
return new LongBits(lo, hi);
|
|
1458
|
+
};
|
|
1459
|
+
LongBits.from = function from(value) {
|
|
1460
|
+
if (typeof value === "number")
|
|
1461
|
+
return LongBits.fromNumber(value);
|
|
1462
|
+
if (util.isString(value)) {
|
|
1463
|
+
if (util.Long)
|
|
1464
|
+
value = util.Long.fromString(value);
|
|
1465
|
+
else
|
|
1466
|
+
return LongBits.fromNumber(parseInt(value, 10));
|
|
1467
|
+
}
|
|
1468
|
+
return value.low || value.high ? new LongBits(value.low >>> 0, value.high >>> 0) : zero;
|
|
1469
|
+
};
|
|
1470
|
+
LongBits.prototype.toNumber = function toNumber(unsigned) {
|
|
1471
|
+
if (!unsigned && this.hi >>> 31) {
|
|
1472
|
+
var lo = ~this.lo + 1 >>> 0, hi = ~this.hi >>> 0;
|
|
1473
|
+
if (!lo)
|
|
1474
|
+
hi = hi + 1 >>> 0;
|
|
1475
|
+
return -(lo + hi * 4294967296);
|
|
1476
|
+
}
|
|
1477
|
+
return this.lo + this.hi * 4294967296;
|
|
1478
|
+
};
|
|
1479
|
+
LongBits.prototype.toLong = function toLong(unsigned) {
|
|
1480
|
+
return util.Long ? new util.Long(this.lo | 0, this.hi | 0, Boolean(unsigned)) : { low: this.lo | 0, high: this.hi | 0, unsigned: Boolean(unsigned) };
|
|
1481
|
+
};
|
|
1482
|
+
var charCodeAt = String.prototype.charCodeAt;
|
|
1483
|
+
LongBits.fromHash = function fromHash(hash) {
|
|
1484
|
+
if (hash === zeroHash)
|
|
1485
|
+
return zero;
|
|
1486
|
+
return new LongBits(
|
|
1487
|
+
(charCodeAt.call(hash, 0) | charCodeAt.call(hash, 1) << 8 | charCodeAt.call(hash, 2) << 16 | charCodeAt.call(hash, 3) << 24) >>> 0,
|
|
1488
|
+
(charCodeAt.call(hash, 4) | charCodeAt.call(hash, 5) << 8 | charCodeAt.call(hash, 6) << 16 | charCodeAt.call(hash, 7) << 24) >>> 0
|
|
1489
|
+
);
|
|
1490
|
+
};
|
|
1491
|
+
LongBits.prototype.toHash = function toHash() {
|
|
1492
|
+
return String.fromCharCode(
|
|
1493
|
+
this.lo & 255,
|
|
1494
|
+
this.lo >>> 8 & 255,
|
|
1495
|
+
this.lo >>> 16 & 255,
|
|
1496
|
+
this.lo >>> 24,
|
|
1497
|
+
this.hi & 255,
|
|
1498
|
+
this.hi >>> 8 & 255,
|
|
1499
|
+
this.hi >>> 16 & 255,
|
|
1500
|
+
this.hi >>> 24
|
|
1501
|
+
);
|
|
1502
|
+
};
|
|
1503
|
+
LongBits.prototype.zzEncode = function zzEncode() {
|
|
1504
|
+
var mask = this.hi >> 31;
|
|
1505
|
+
this.hi = ((this.hi << 1 | this.lo >>> 31) ^ mask) >>> 0;
|
|
1506
|
+
this.lo = (this.lo << 1 ^ mask) >>> 0;
|
|
1507
|
+
return this;
|
|
1508
|
+
};
|
|
1509
|
+
LongBits.prototype.zzDecode = function zzDecode() {
|
|
1510
|
+
var mask = -(this.lo & 1);
|
|
1511
|
+
this.lo = ((this.lo >>> 1 | this.hi << 31) ^ mask) >>> 0;
|
|
1512
|
+
this.hi = (this.hi >>> 1 ^ mask) >>> 0;
|
|
1513
|
+
return this;
|
|
1514
|
+
};
|
|
1515
|
+
LongBits.prototype.length = function length() {
|
|
1516
|
+
var part0 = this.lo, part1 = (this.lo >>> 28 | this.hi << 4) >>> 0, part2 = this.hi >>> 24;
|
|
1517
|
+
return part2 === 0 ? part1 === 0 ? part0 < 16384 ? part0 < 128 ? 1 : 2 : part0 < 2097152 ? 3 : 4 : part1 < 16384 ? part1 < 128 ? 5 : 6 : part1 < 2097152 ? 7 : 8 : part2 < 128 ? 9 : 10;
|
|
1518
|
+
};
|
|
1519
|
+
}
|
|
1520
|
+
});
|
|
1521
|
+
|
|
1522
|
+
// ../../node_modules/protobufjs/src/util/minimal.js
|
|
1523
|
+
var require_minimal = __commonJS({
|
|
1524
|
+
"../../node_modules/protobufjs/src/util/minimal.js"(exports2) {
|
|
1525
|
+
"use strict";
|
|
1526
|
+
var util = exports2;
|
|
1527
|
+
util.asPromise = require_aspromise();
|
|
1528
|
+
util.base64 = require_base64();
|
|
1529
|
+
util.EventEmitter = require_eventemitter();
|
|
1530
|
+
util.float = require_float();
|
|
1531
|
+
util.inquire = require_inquire();
|
|
1532
|
+
util.utf8 = require_utf8();
|
|
1533
|
+
util.pool = require_pool();
|
|
1534
|
+
util.LongBits = require_longbits();
|
|
1535
|
+
util.isNode = Boolean(typeof global !== "undefined" && global && global.process && global.process.versions && global.process.versions.node);
|
|
1536
|
+
util.global = util.isNode && global || typeof window !== "undefined" && window || typeof self !== "undefined" && self || exports2;
|
|
1537
|
+
util.emptyArray = Object.freeze ? Object.freeze([]) : (
|
|
1538
|
+
/* istanbul ignore next */
|
|
1539
|
+
[]
|
|
1540
|
+
);
|
|
1541
|
+
util.emptyObject = Object.freeze ? Object.freeze({}) : (
|
|
1542
|
+
/* istanbul ignore next */
|
|
1543
|
+
{}
|
|
1544
|
+
);
|
|
1545
|
+
util.isInteger = Number.isInteger || /* istanbul ignore next */
|
|
1546
|
+
function isInteger(value) {
|
|
1547
|
+
return typeof value === "number" && isFinite(value) && Math.floor(value) === value;
|
|
1548
|
+
};
|
|
1549
|
+
util.isString = function isString(value) {
|
|
1550
|
+
return typeof value === "string" || value instanceof String;
|
|
1551
|
+
};
|
|
1552
|
+
util.isObject = function isObject(value) {
|
|
1553
|
+
return value && typeof value === "object";
|
|
1554
|
+
};
|
|
1555
|
+
util.isset = /**
|
|
1556
|
+
* Checks if a property on a message is considered to be present.
|
|
1557
|
+
* @param {Object} obj Plain object or message instance
|
|
1558
|
+
* @param {string} prop Property name
|
|
1559
|
+
* @returns {boolean} `true` if considered to be present, otherwise `false`
|
|
1560
|
+
*/
|
|
1561
|
+
util.isSet = function isSet3(obj, prop) {
|
|
1562
|
+
var value = obj[prop];
|
|
1563
|
+
if (value != null && obj.hasOwnProperty(prop))
|
|
1564
|
+
return typeof value !== "object" || (Array.isArray(value) ? value.length : Object.keys(value).length) > 0;
|
|
1565
|
+
return false;
|
|
1566
|
+
};
|
|
1567
|
+
util.Buffer = function() {
|
|
1568
|
+
try {
|
|
1569
|
+
var Buffer2 = util.inquire("buffer").Buffer;
|
|
1570
|
+
return Buffer2.prototype.utf8Write ? Buffer2 : (
|
|
1571
|
+
/* istanbul ignore next */
|
|
1572
|
+
null
|
|
1573
|
+
);
|
|
1574
|
+
} catch (e) {
|
|
1575
|
+
return null;
|
|
1576
|
+
}
|
|
1577
|
+
}();
|
|
1578
|
+
util._Buffer_from = null;
|
|
1579
|
+
util._Buffer_allocUnsafe = null;
|
|
1580
|
+
util.newBuffer = function newBuffer(sizeOrArray) {
|
|
1581
|
+
return typeof sizeOrArray === "number" ? util.Buffer ? util._Buffer_allocUnsafe(sizeOrArray) : new util.Array(sizeOrArray) : util.Buffer ? util._Buffer_from(sizeOrArray) : typeof Uint8Array === "undefined" ? sizeOrArray : new Uint8Array(sizeOrArray);
|
|
1582
|
+
};
|
|
1583
|
+
util.Array = typeof Uint8Array !== "undefined" ? Uint8Array : Array;
|
|
1584
|
+
util.Long = /* istanbul ignore next */
|
|
1585
|
+
util.global.dcodeIO && /* istanbul ignore next */
|
|
1586
|
+
util.global.dcodeIO.Long || /* istanbul ignore next */
|
|
1587
|
+
util.global.Long || util.inquire("long");
|
|
1588
|
+
util.key2Re = /^true|false|0|1$/;
|
|
1589
|
+
util.key32Re = /^-?(?:0|[1-9][0-9]*)$/;
|
|
1590
|
+
util.key64Re = /^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/;
|
|
1591
|
+
util.longToHash = function longToHash(value) {
|
|
1592
|
+
return value ? util.LongBits.from(value).toHash() : util.LongBits.zeroHash;
|
|
1593
|
+
};
|
|
1594
|
+
util.longFromHash = function longFromHash(hash, unsigned) {
|
|
1595
|
+
var bits = util.LongBits.fromHash(hash);
|
|
1596
|
+
if (util.Long)
|
|
1597
|
+
return util.Long.fromBits(bits.lo, bits.hi, unsigned);
|
|
1598
|
+
return bits.toNumber(Boolean(unsigned));
|
|
1599
|
+
};
|
|
1600
|
+
function merge(dst, src, ifNotSet) {
|
|
1601
|
+
for (var keys = Object.keys(src), i = 0; i < keys.length; ++i)
|
|
1602
|
+
if (dst[keys[i]] === void 0 || !ifNotSet)
|
|
1603
|
+
dst[keys[i]] = src[keys[i]];
|
|
1604
|
+
return dst;
|
|
1605
|
+
}
|
|
1606
|
+
util.merge = merge;
|
|
1607
|
+
util.lcFirst = function lcFirst(str) {
|
|
1608
|
+
return str.charAt(0).toLowerCase() + str.substring(1);
|
|
1609
|
+
};
|
|
1610
|
+
function newError(name) {
|
|
1611
|
+
function CustomError(message, properties) {
|
|
1612
|
+
if (!(this instanceof CustomError))
|
|
1613
|
+
return new CustomError(message, properties);
|
|
1614
|
+
Object.defineProperty(this, "message", { get: function() {
|
|
1615
|
+
return message;
|
|
1616
|
+
} });
|
|
1617
|
+
if (Error.captureStackTrace)
|
|
1618
|
+
Error.captureStackTrace(this, CustomError);
|
|
1619
|
+
else
|
|
1620
|
+
Object.defineProperty(this, "stack", { value: new Error().stack || "" });
|
|
1621
|
+
if (properties)
|
|
1622
|
+
merge(this, properties);
|
|
1623
|
+
}
|
|
1624
|
+
(CustomError.prototype = Object.create(Error.prototype)).constructor = CustomError;
|
|
1625
|
+
Object.defineProperty(CustomError.prototype, "name", { get: function() {
|
|
1626
|
+
return name;
|
|
1627
|
+
} });
|
|
1628
|
+
CustomError.prototype.toString = function toString() {
|
|
1629
|
+
return this.name + ": " + this.message;
|
|
1630
|
+
};
|
|
1631
|
+
return CustomError;
|
|
1632
|
+
}
|
|
1633
|
+
util.newError = newError;
|
|
1634
|
+
util.ProtocolError = newError("ProtocolError");
|
|
1635
|
+
util.oneOfGetter = function getOneOf(fieldNames) {
|
|
1636
|
+
var fieldMap = {};
|
|
1637
|
+
for (var i = 0; i < fieldNames.length; ++i)
|
|
1638
|
+
fieldMap[fieldNames[i]] = 1;
|
|
1639
|
+
return function() {
|
|
1640
|
+
for (var keys = Object.keys(this), i2 = keys.length - 1; i2 > -1; --i2)
|
|
1641
|
+
if (fieldMap[keys[i2]] === 1 && this[keys[i2]] !== void 0 && this[keys[i2]] !== null)
|
|
1642
|
+
return keys[i2];
|
|
1643
|
+
};
|
|
1644
|
+
};
|
|
1645
|
+
util.oneOfSetter = function setOneOf(fieldNames) {
|
|
1646
|
+
return function(name) {
|
|
1647
|
+
for (var i = 0; i < fieldNames.length; ++i)
|
|
1648
|
+
if (fieldNames[i] !== name)
|
|
1649
|
+
delete this[fieldNames[i]];
|
|
1650
|
+
};
|
|
1651
|
+
};
|
|
1652
|
+
util.toJSONOptions = {
|
|
1653
|
+
longs: String,
|
|
1654
|
+
enums: String,
|
|
1655
|
+
bytes: String,
|
|
1656
|
+
json: true
|
|
1657
|
+
};
|
|
1658
|
+
util._configure = function() {
|
|
1659
|
+
var Buffer2 = util.Buffer;
|
|
1660
|
+
if (!Buffer2) {
|
|
1661
|
+
util._Buffer_from = util._Buffer_allocUnsafe = null;
|
|
1662
|
+
return;
|
|
1663
|
+
}
|
|
1664
|
+
util._Buffer_from = Buffer2.from !== Uint8Array.from && Buffer2.from || /* istanbul ignore next */
|
|
1665
|
+
function Buffer_from(value, encoding) {
|
|
1666
|
+
return new Buffer2(value, encoding);
|
|
1667
|
+
};
|
|
1668
|
+
util._Buffer_allocUnsafe = Buffer2.allocUnsafe || /* istanbul ignore next */
|
|
1669
|
+
function Buffer_allocUnsafe(size) {
|
|
1670
|
+
return new Buffer2(size);
|
|
1671
|
+
};
|
|
1672
|
+
};
|
|
1673
|
+
}
|
|
1674
|
+
});
|
|
1675
|
+
|
|
1676
|
+
// ../../node_modules/protobufjs/src/writer.js
|
|
1677
|
+
var require_writer = __commonJS({
|
|
1678
|
+
"../../node_modules/protobufjs/src/writer.js"(exports2, module2) {
|
|
1679
|
+
"use strict";
|
|
1680
|
+
module2.exports = Writer;
|
|
1681
|
+
var util = require_minimal();
|
|
1682
|
+
var BufferWriter;
|
|
1683
|
+
var LongBits = util.LongBits;
|
|
1684
|
+
var base64 = util.base64;
|
|
1685
|
+
var utf8 = util.utf8;
|
|
1686
|
+
function Op(fn, len, val) {
|
|
1687
|
+
this.fn = fn;
|
|
1688
|
+
this.len = len;
|
|
1689
|
+
this.next = void 0;
|
|
1690
|
+
this.val = val;
|
|
1691
|
+
}
|
|
1692
|
+
function noop() {
|
|
1693
|
+
}
|
|
1694
|
+
function State(writer) {
|
|
1695
|
+
this.head = writer.head;
|
|
1696
|
+
this.tail = writer.tail;
|
|
1697
|
+
this.len = writer.len;
|
|
1698
|
+
this.next = writer.states;
|
|
1699
|
+
}
|
|
1700
|
+
function Writer() {
|
|
1701
|
+
this.len = 0;
|
|
1702
|
+
this.head = new Op(noop, 0, 0);
|
|
1703
|
+
this.tail = this.head;
|
|
1704
|
+
this.states = null;
|
|
1705
|
+
}
|
|
1706
|
+
var create = function create2() {
|
|
1707
|
+
return util.Buffer ? function create_buffer_setup() {
|
|
1708
|
+
return (Writer.create = function create_buffer() {
|
|
1709
|
+
return new BufferWriter();
|
|
1710
|
+
})();
|
|
1711
|
+
} : function create_array() {
|
|
1712
|
+
return new Writer();
|
|
1713
|
+
};
|
|
1714
|
+
};
|
|
1715
|
+
Writer.create = create();
|
|
1716
|
+
Writer.alloc = function alloc(size) {
|
|
1717
|
+
return new util.Array(size);
|
|
1718
|
+
};
|
|
1719
|
+
if (util.Array !== Array)
|
|
1720
|
+
Writer.alloc = util.pool(Writer.alloc, util.Array.prototype.subarray);
|
|
1721
|
+
Writer.prototype._push = function push(fn, len, val) {
|
|
1722
|
+
this.tail = this.tail.next = new Op(fn, len, val);
|
|
1723
|
+
this.len += len;
|
|
1724
|
+
return this;
|
|
1725
|
+
};
|
|
1726
|
+
function writeByte(val, buf, pos) {
|
|
1727
|
+
buf[pos] = val & 255;
|
|
1728
|
+
}
|
|
1729
|
+
function writeVarint32(val, buf, pos) {
|
|
1730
|
+
while (val > 127) {
|
|
1731
|
+
buf[pos++] = val & 127 | 128;
|
|
1732
|
+
val >>>= 7;
|
|
1733
|
+
}
|
|
1734
|
+
buf[pos] = val;
|
|
1735
|
+
}
|
|
1736
|
+
function VarintOp(len, val) {
|
|
1737
|
+
this.len = len;
|
|
1738
|
+
this.next = void 0;
|
|
1739
|
+
this.val = val;
|
|
1740
|
+
}
|
|
1741
|
+
VarintOp.prototype = Object.create(Op.prototype);
|
|
1742
|
+
VarintOp.prototype.fn = writeVarint32;
|
|
1743
|
+
Writer.prototype.uint32 = function write_uint32(value) {
|
|
1744
|
+
this.len += (this.tail = this.tail.next = new VarintOp(
|
|
1745
|
+
(value = value >>> 0) < 128 ? 1 : value < 16384 ? 2 : value < 2097152 ? 3 : value < 268435456 ? 4 : 5,
|
|
1746
|
+
value
|
|
1747
|
+
)).len;
|
|
1748
|
+
return this;
|
|
1749
|
+
};
|
|
1750
|
+
Writer.prototype.int32 = function write_int32(value) {
|
|
1751
|
+
return value < 0 ? this._push(writeVarint64, 10, LongBits.fromNumber(value)) : this.uint32(value);
|
|
1752
|
+
};
|
|
1753
|
+
Writer.prototype.sint32 = function write_sint32(value) {
|
|
1754
|
+
return this.uint32((value << 1 ^ value >> 31) >>> 0);
|
|
1755
|
+
};
|
|
1756
|
+
function writeVarint64(val, buf, pos) {
|
|
1757
|
+
while (val.hi) {
|
|
1758
|
+
buf[pos++] = val.lo & 127 | 128;
|
|
1759
|
+
val.lo = (val.lo >>> 7 | val.hi << 25) >>> 0;
|
|
1760
|
+
val.hi >>>= 7;
|
|
1761
|
+
}
|
|
1762
|
+
while (val.lo > 127) {
|
|
1763
|
+
buf[pos++] = val.lo & 127 | 128;
|
|
1764
|
+
val.lo = val.lo >>> 7;
|
|
1765
|
+
}
|
|
1766
|
+
buf[pos++] = val.lo;
|
|
1767
|
+
}
|
|
1768
|
+
Writer.prototype.uint64 = function write_uint64(value) {
|
|
1769
|
+
var bits = LongBits.from(value);
|
|
1770
|
+
return this._push(writeVarint64, bits.length(), bits);
|
|
1771
|
+
};
|
|
1772
|
+
Writer.prototype.int64 = Writer.prototype.uint64;
|
|
1773
|
+
Writer.prototype.sint64 = function write_sint64(value) {
|
|
1774
|
+
var bits = LongBits.from(value).zzEncode();
|
|
1775
|
+
return this._push(writeVarint64, bits.length(), bits);
|
|
1776
|
+
};
|
|
1777
|
+
Writer.prototype.bool = function write_bool(value) {
|
|
1778
|
+
return this._push(writeByte, 1, value ? 1 : 0);
|
|
1779
|
+
};
|
|
1780
|
+
function writeFixed32(val, buf, pos) {
|
|
1781
|
+
buf[pos] = val & 255;
|
|
1782
|
+
buf[pos + 1] = val >>> 8 & 255;
|
|
1783
|
+
buf[pos + 2] = val >>> 16 & 255;
|
|
1784
|
+
buf[pos + 3] = val >>> 24;
|
|
1785
|
+
}
|
|
1786
|
+
Writer.prototype.fixed32 = function write_fixed32(value) {
|
|
1787
|
+
return this._push(writeFixed32, 4, value >>> 0);
|
|
1788
|
+
};
|
|
1789
|
+
Writer.prototype.sfixed32 = Writer.prototype.fixed32;
|
|
1790
|
+
Writer.prototype.fixed64 = function write_fixed64(value) {
|
|
1791
|
+
var bits = LongBits.from(value);
|
|
1792
|
+
return this._push(writeFixed32, 4, bits.lo)._push(writeFixed32, 4, bits.hi);
|
|
1793
|
+
};
|
|
1794
|
+
Writer.prototype.sfixed64 = Writer.prototype.fixed64;
|
|
1795
|
+
Writer.prototype.float = function write_float(value) {
|
|
1796
|
+
return this._push(util.float.writeFloatLE, 4, value);
|
|
1797
|
+
};
|
|
1798
|
+
Writer.prototype.double = function write_double(value) {
|
|
1799
|
+
return this._push(util.float.writeDoubleLE, 8, value);
|
|
1800
|
+
};
|
|
1801
|
+
var writeBytes = util.Array.prototype.set ? function writeBytes_set(val, buf, pos) {
|
|
1802
|
+
buf.set(val, pos);
|
|
1803
|
+
} : function writeBytes_for(val, buf, pos) {
|
|
1804
|
+
for (var i = 0; i < val.length; ++i)
|
|
1805
|
+
buf[pos + i] = val[i];
|
|
1806
|
+
};
|
|
1807
|
+
Writer.prototype.bytes = function write_bytes(value) {
|
|
1808
|
+
var len = value.length >>> 0;
|
|
1809
|
+
if (!len)
|
|
1810
|
+
return this._push(writeByte, 1, 0);
|
|
1811
|
+
if (util.isString(value)) {
|
|
1812
|
+
var buf = Writer.alloc(len = base64.length(value));
|
|
1813
|
+
base64.decode(value, buf, 0);
|
|
1814
|
+
value = buf;
|
|
1815
|
+
}
|
|
1816
|
+
return this.uint32(len)._push(writeBytes, len, value);
|
|
1817
|
+
};
|
|
1818
|
+
Writer.prototype.string = function write_string(value) {
|
|
1819
|
+
var len = utf8.length(value);
|
|
1820
|
+
return len ? this.uint32(len)._push(utf8.write, len, value) : this._push(writeByte, 1, 0);
|
|
1821
|
+
};
|
|
1822
|
+
Writer.prototype.fork = function fork() {
|
|
1823
|
+
this.states = new State(this);
|
|
1824
|
+
this.head = this.tail = new Op(noop, 0, 0);
|
|
1825
|
+
this.len = 0;
|
|
1826
|
+
return this;
|
|
1827
|
+
};
|
|
1828
|
+
Writer.prototype.reset = function reset() {
|
|
1829
|
+
if (this.states) {
|
|
1830
|
+
this.head = this.states.head;
|
|
1831
|
+
this.tail = this.states.tail;
|
|
1832
|
+
this.len = this.states.len;
|
|
1833
|
+
this.states = this.states.next;
|
|
1834
|
+
} else {
|
|
1835
|
+
this.head = this.tail = new Op(noop, 0, 0);
|
|
1836
|
+
this.len = 0;
|
|
1837
|
+
}
|
|
1838
|
+
return this;
|
|
1839
|
+
};
|
|
1840
|
+
Writer.prototype.ldelim = function ldelim() {
|
|
1841
|
+
var head = this.head, tail = this.tail, len = this.len;
|
|
1842
|
+
this.reset().uint32(len);
|
|
1843
|
+
if (len) {
|
|
1844
|
+
this.tail.next = head.next;
|
|
1845
|
+
this.tail = tail;
|
|
1846
|
+
this.len += len;
|
|
1847
|
+
}
|
|
1848
|
+
return this;
|
|
1849
|
+
};
|
|
1850
|
+
Writer.prototype.finish = function finish() {
|
|
1851
|
+
var head = this.head.next, buf = this.constructor.alloc(this.len), pos = 0;
|
|
1852
|
+
while (head) {
|
|
1853
|
+
head.fn(head.val, buf, pos);
|
|
1854
|
+
pos += head.len;
|
|
1855
|
+
head = head.next;
|
|
1856
|
+
}
|
|
1857
|
+
return buf;
|
|
1858
|
+
};
|
|
1859
|
+
Writer._configure = function(BufferWriter_) {
|
|
1860
|
+
BufferWriter = BufferWriter_;
|
|
1861
|
+
Writer.create = create();
|
|
1862
|
+
BufferWriter._configure();
|
|
1863
|
+
};
|
|
1864
|
+
}
|
|
1865
|
+
});
|
|
1866
|
+
|
|
1867
|
+
// ../../node_modules/protobufjs/src/writer_buffer.js
|
|
1868
|
+
var require_writer_buffer = __commonJS({
|
|
1869
|
+
"../../node_modules/protobufjs/src/writer_buffer.js"(exports2, module2) {
|
|
1870
|
+
"use strict";
|
|
1871
|
+
module2.exports = BufferWriter;
|
|
1872
|
+
var Writer = require_writer();
|
|
1873
|
+
(BufferWriter.prototype = Object.create(Writer.prototype)).constructor = BufferWriter;
|
|
1874
|
+
var util = require_minimal();
|
|
1875
|
+
function BufferWriter() {
|
|
1876
|
+
Writer.call(this);
|
|
1877
|
+
}
|
|
1878
|
+
BufferWriter._configure = function() {
|
|
1879
|
+
BufferWriter.alloc = util._Buffer_allocUnsafe;
|
|
1880
|
+
BufferWriter.writeBytesBuffer = util.Buffer && util.Buffer.prototype instanceof Uint8Array && util.Buffer.prototype.set.name === "set" ? function writeBytesBuffer_set(val, buf, pos) {
|
|
1881
|
+
buf.set(val, pos);
|
|
1882
|
+
} : function writeBytesBuffer_copy(val, buf, pos) {
|
|
1883
|
+
if (val.copy)
|
|
1884
|
+
val.copy(buf, pos, 0, val.length);
|
|
1885
|
+
else for (var i = 0; i < val.length; )
|
|
1886
|
+
buf[pos++] = val[i++];
|
|
1887
|
+
};
|
|
1888
|
+
};
|
|
1889
|
+
BufferWriter.prototype.bytes = function write_bytes_buffer(value) {
|
|
1890
|
+
if (util.isString(value))
|
|
1891
|
+
value = util._Buffer_from(value, "base64");
|
|
1892
|
+
var len = value.length >>> 0;
|
|
1893
|
+
this.uint32(len);
|
|
1894
|
+
if (len)
|
|
1895
|
+
this._push(BufferWriter.writeBytesBuffer, len, value);
|
|
1896
|
+
return this;
|
|
1897
|
+
};
|
|
1898
|
+
function writeStringBuffer(val, buf, pos) {
|
|
1899
|
+
if (val.length < 40)
|
|
1900
|
+
util.utf8.write(val, buf, pos);
|
|
1901
|
+
else if (buf.utf8Write)
|
|
1902
|
+
buf.utf8Write(val, pos);
|
|
1903
|
+
else
|
|
1904
|
+
buf.write(val, pos);
|
|
1905
|
+
}
|
|
1906
|
+
BufferWriter.prototype.string = function write_string_buffer(value) {
|
|
1907
|
+
var len = util.Buffer.byteLength(value);
|
|
1908
|
+
this.uint32(len);
|
|
1909
|
+
if (len)
|
|
1910
|
+
this._push(writeStringBuffer, len, value);
|
|
1911
|
+
return this;
|
|
1912
|
+
};
|
|
1913
|
+
BufferWriter._configure();
|
|
1914
|
+
}
|
|
1915
|
+
});
|
|
1916
|
+
|
|
1917
|
+
// ../../node_modules/protobufjs/src/reader.js
|
|
1918
|
+
var require_reader = __commonJS({
|
|
1919
|
+
"../../node_modules/protobufjs/src/reader.js"(exports2, module2) {
|
|
1920
|
+
"use strict";
|
|
1921
|
+
module2.exports = Reader;
|
|
1922
|
+
var util = require_minimal();
|
|
1923
|
+
var BufferReader;
|
|
1924
|
+
var LongBits = util.LongBits;
|
|
1925
|
+
var utf8 = util.utf8;
|
|
1926
|
+
function indexOutOfRange(reader, writeLength) {
|
|
1927
|
+
return RangeError("index out of range: " + reader.pos + " + " + (writeLength || 1) + " > " + reader.len);
|
|
1928
|
+
}
|
|
1929
|
+
function Reader(buffer) {
|
|
1930
|
+
this.buf = buffer;
|
|
1931
|
+
this.pos = 0;
|
|
1932
|
+
this.len = buffer.length;
|
|
1933
|
+
}
|
|
1934
|
+
var create_array = typeof Uint8Array !== "undefined" ? function create_typed_array(buffer) {
|
|
1935
|
+
if (buffer instanceof Uint8Array || Array.isArray(buffer))
|
|
1936
|
+
return new Reader(buffer);
|
|
1937
|
+
throw Error("illegal buffer");
|
|
1938
|
+
} : function create_array2(buffer) {
|
|
1939
|
+
if (Array.isArray(buffer))
|
|
1940
|
+
return new Reader(buffer);
|
|
1941
|
+
throw Error("illegal buffer");
|
|
1942
|
+
};
|
|
1943
|
+
var create = function create2() {
|
|
1944
|
+
return util.Buffer ? function create_buffer_setup(buffer) {
|
|
1945
|
+
return (Reader.create = function create_buffer(buffer2) {
|
|
1946
|
+
return util.Buffer.isBuffer(buffer2) ? new BufferReader(buffer2) : create_array(buffer2);
|
|
1947
|
+
})(buffer);
|
|
1948
|
+
} : create_array;
|
|
1949
|
+
};
|
|
1950
|
+
Reader.create = create();
|
|
1951
|
+
Reader.prototype._slice = util.Array.prototype.subarray || /* istanbul ignore next */
|
|
1952
|
+
util.Array.prototype.slice;
|
|
1953
|
+
Reader.prototype.uint32 = /* @__PURE__ */ function read_uint32_setup() {
|
|
1954
|
+
var value = 4294967295;
|
|
1955
|
+
return function read_uint32() {
|
|
1956
|
+
value = (this.buf[this.pos] & 127) >>> 0;
|
|
1957
|
+
if (this.buf[this.pos++] < 128) return value;
|
|
1958
|
+
value = (value | (this.buf[this.pos] & 127) << 7) >>> 0;
|
|
1959
|
+
if (this.buf[this.pos++] < 128) return value;
|
|
1960
|
+
value = (value | (this.buf[this.pos] & 127) << 14) >>> 0;
|
|
1961
|
+
if (this.buf[this.pos++] < 128) return value;
|
|
1962
|
+
value = (value | (this.buf[this.pos] & 127) << 21) >>> 0;
|
|
1963
|
+
if (this.buf[this.pos++] < 128) return value;
|
|
1964
|
+
value = (value | (this.buf[this.pos] & 15) << 28) >>> 0;
|
|
1965
|
+
if (this.buf[this.pos++] < 128) return value;
|
|
1966
|
+
if ((this.pos += 5) > this.len) {
|
|
1967
|
+
this.pos = this.len;
|
|
1968
|
+
throw indexOutOfRange(this, 10);
|
|
1969
|
+
}
|
|
1970
|
+
return value;
|
|
1971
|
+
};
|
|
1972
|
+
}();
|
|
1973
|
+
Reader.prototype.int32 = function read_int32() {
|
|
1974
|
+
return this.uint32() | 0;
|
|
1975
|
+
};
|
|
1976
|
+
Reader.prototype.sint32 = function read_sint32() {
|
|
1977
|
+
var value = this.uint32();
|
|
1978
|
+
return value >>> 1 ^ -(value & 1) | 0;
|
|
1979
|
+
};
|
|
1980
|
+
function readLongVarint() {
|
|
1981
|
+
var bits = new LongBits(0, 0);
|
|
1982
|
+
var i = 0;
|
|
1983
|
+
if (this.len - this.pos > 4) {
|
|
1984
|
+
for (; i < 4; ++i) {
|
|
1985
|
+
bits.lo = (bits.lo | (this.buf[this.pos] & 127) << i * 7) >>> 0;
|
|
1986
|
+
if (this.buf[this.pos++] < 128)
|
|
1987
|
+
return bits;
|
|
1988
|
+
}
|
|
1989
|
+
bits.lo = (bits.lo | (this.buf[this.pos] & 127) << 28) >>> 0;
|
|
1990
|
+
bits.hi = (bits.hi | (this.buf[this.pos] & 127) >> 4) >>> 0;
|
|
1991
|
+
if (this.buf[this.pos++] < 128)
|
|
1992
|
+
return bits;
|
|
1993
|
+
i = 0;
|
|
1994
|
+
} else {
|
|
1995
|
+
for (; i < 3; ++i) {
|
|
1996
|
+
if (this.pos >= this.len)
|
|
1997
|
+
throw indexOutOfRange(this);
|
|
1998
|
+
bits.lo = (bits.lo | (this.buf[this.pos] & 127) << i * 7) >>> 0;
|
|
1999
|
+
if (this.buf[this.pos++] < 128)
|
|
2000
|
+
return bits;
|
|
2001
|
+
}
|
|
2002
|
+
bits.lo = (bits.lo | (this.buf[this.pos++] & 127) << i * 7) >>> 0;
|
|
2003
|
+
return bits;
|
|
2004
|
+
}
|
|
2005
|
+
if (this.len - this.pos > 4) {
|
|
2006
|
+
for (; i < 5; ++i) {
|
|
2007
|
+
bits.hi = (bits.hi | (this.buf[this.pos] & 127) << i * 7 + 3) >>> 0;
|
|
2008
|
+
if (this.buf[this.pos++] < 128)
|
|
2009
|
+
return bits;
|
|
2010
|
+
}
|
|
2011
|
+
} else {
|
|
2012
|
+
for (; i < 5; ++i) {
|
|
2013
|
+
if (this.pos >= this.len)
|
|
2014
|
+
throw indexOutOfRange(this);
|
|
2015
|
+
bits.hi = (bits.hi | (this.buf[this.pos] & 127) << i * 7 + 3) >>> 0;
|
|
2016
|
+
if (this.buf[this.pos++] < 128)
|
|
2017
|
+
return bits;
|
|
2018
|
+
}
|
|
2019
|
+
}
|
|
2020
|
+
throw Error("invalid varint encoding");
|
|
2021
|
+
}
|
|
2022
|
+
Reader.prototype.bool = function read_bool() {
|
|
2023
|
+
return this.uint32() !== 0;
|
|
2024
|
+
};
|
|
2025
|
+
function readFixed32_end(buf, end) {
|
|
2026
|
+
return (buf[end - 4] | buf[end - 3] << 8 | buf[end - 2] << 16 | buf[end - 1] << 24) >>> 0;
|
|
2027
|
+
}
|
|
2028
|
+
Reader.prototype.fixed32 = function read_fixed32() {
|
|
2029
|
+
if (this.pos + 4 > this.len)
|
|
2030
|
+
throw indexOutOfRange(this, 4);
|
|
2031
|
+
return readFixed32_end(this.buf, this.pos += 4);
|
|
2032
|
+
};
|
|
2033
|
+
Reader.prototype.sfixed32 = function read_sfixed32() {
|
|
2034
|
+
if (this.pos + 4 > this.len)
|
|
2035
|
+
throw indexOutOfRange(this, 4);
|
|
2036
|
+
return readFixed32_end(this.buf, this.pos += 4) | 0;
|
|
2037
|
+
};
|
|
2038
|
+
function readFixed64() {
|
|
2039
|
+
if (this.pos + 8 > this.len)
|
|
2040
|
+
throw indexOutOfRange(this, 8);
|
|
2041
|
+
return new LongBits(readFixed32_end(this.buf, this.pos += 4), readFixed32_end(this.buf, this.pos += 4));
|
|
2042
|
+
}
|
|
2043
|
+
Reader.prototype.float = function read_float() {
|
|
2044
|
+
if (this.pos + 4 > this.len)
|
|
2045
|
+
throw indexOutOfRange(this, 4);
|
|
2046
|
+
var value = util.float.readFloatLE(this.buf, this.pos);
|
|
2047
|
+
this.pos += 4;
|
|
2048
|
+
return value;
|
|
2049
|
+
};
|
|
2050
|
+
Reader.prototype.double = function read_double() {
|
|
2051
|
+
if (this.pos + 8 > this.len)
|
|
2052
|
+
throw indexOutOfRange(this, 4);
|
|
2053
|
+
var value = util.float.readDoubleLE(this.buf, this.pos);
|
|
2054
|
+
this.pos += 8;
|
|
2055
|
+
return value;
|
|
2056
|
+
};
|
|
2057
|
+
Reader.prototype.bytes = function read_bytes() {
|
|
2058
|
+
var length = this.uint32(), start = this.pos, end = this.pos + length;
|
|
2059
|
+
if (end > this.len)
|
|
2060
|
+
throw indexOutOfRange(this, length);
|
|
2061
|
+
this.pos += length;
|
|
2062
|
+
if (Array.isArray(this.buf))
|
|
2063
|
+
return this.buf.slice(start, end);
|
|
2064
|
+
return start === end ? new this.buf.constructor(0) : this._slice.call(this.buf, start, end);
|
|
2065
|
+
};
|
|
2066
|
+
Reader.prototype.string = function read_string() {
|
|
2067
|
+
var bytes = this.bytes();
|
|
2068
|
+
return utf8.read(bytes, 0, bytes.length);
|
|
2069
|
+
};
|
|
2070
|
+
Reader.prototype.skip = function skip(length) {
|
|
2071
|
+
if (typeof length === "number") {
|
|
2072
|
+
if (this.pos + length > this.len)
|
|
2073
|
+
throw indexOutOfRange(this, length);
|
|
2074
|
+
this.pos += length;
|
|
2075
|
+
} else {
|
|
2076
|
+
do {
|
|
2077
|
+
if (this.pos >= this.len)
|
|
2078
|
+
throw indexOutOfRange(this);
|
|
2079
|
+
} while (this.buf[this.pos++] & 128);
|
|
2080
|
+
}
|
|
2081
|
+
return this;
|
|
2082
|
+
};
|
|
2083
|
+
Reader.prototype.skipType = function(wireType) {
|
|
2084
|
+
switch (wireType) {
|
|
2085
|
+
case 0:
|
|
2086
|
+
this.skip();
|
|
2087
|
+
break;
|
|
2088
|
+
case 1:
|
|
2089
|
+
this.skip(8);
|
|
2090
|
+
break;
|
|
2091
|
+
case 2:
|
|
2092
|
+
this.skip(this.uint32());
|
|
2093
|
+
break;
|
|
2094
|
+
case 3:
|
|
2095
|
+
while ((wireType = this.uint32() & 7) !== 4) {
|
|
2096
|
+
this.skipType(wireType);
|
|
2097
|
+
}
|
|
2098
|
+
break;
|
|
2099
|
+
case 5:
|
|
2100
|
+
this.skip(4);
|
|
2101
|
+
break;
|
|
2102
|
+
/* istanbul ignore next */
|
|
2103
|
+
default:
|
|
2104
|
+
throw Error("invalid wire type " + wireType + " at offset " + this.pos);
|
|
2105
|
+
}
|
|
2106
|
+
return this;
|
|
2107
|
+
};
|
|
2108
|
+
Reader._configure = function(BufferReader_) {
|
|
2109
|
+
BufferReader = BufferReader_;
|
|
2110
|
+
Reader.create = create();
|
|
2111
|
+
BufferReader._configure();
|
|
2112
|
+
var fn = util.Long ? "toLong" : (
|
|
2113
|
+
/* istanbul ignore next */
|
|
2114
|
+
"toNumber"
|
|
2115
|
+
);
|
|
2116
|
+
util.merge(Reader.prototype, {
|
|
2117
|
+
int64: function read_int64() {
|
|
2118
|
+
return readLongVarint.call(this)[fn](false);
|
|
2119
|
+
},
|
|
2120
|
+
uint64: function read_uint64() {
|
|
2121
|
+
return readLongVarint.call(this)[fn](true);
|
|
2122
|
+
},
|
|
2123
|
+
sint64: function read_sint64() {
|
|
2124
|
+
return readLongVarint.call(this).zzDecode()[fn](false);
|
|
2125
|
+
},
|
|
2126
|
+
fixed64: function read_fixed64() {
|
|
2127
|
+
return readFixed64.call(this)[fn](true);
|
|
2128
|
+
},
|
|
2129
|
+
sfixed64: function read_sfixed64() {
|
|
2130
|
+
return readFixed64.call(this)[fn](false);
|
|
2131
|
+
}
|
|
2132
|
+
});
|
|
2133
|
+
};
|
|
2134
|
+
}
|
|
2135
|
+
});
|
|
2136
|
+
|
|
2137
|
+
// ../../node_modules/protobufjs/src/reader_buffer.js
|
|
2138
|
+
var require_reader_buffer = __commonJS({
|
|
2139
|
+
"../../node_modules/protobufjs/src/reader_buffer.js"(exports2, module2) {
|
|
2140
|
+
"use strict";
|
|
2141
|
+
module2.exports = BufferReader;
|
|
2142
|
+
var Reader = require_reader();
|
|
2143
|
+
(BufferReader.prototype = Object.create(Reader.prototype)).constructor = BufferReader;
|
|
2144
|
+
var util = require_minimal();
|
|
2145
|
+
function BufferReader(buffer) {
|
|
2146
|
+
Reader.call(this, buffer);
|
|
2147
|
+
}
|
|
2148
|
+
BufferReader._configure = function() {
|
|
2149
|
+
if (util.Buffer)
|
|
2150
|
+
BufferReader.prototype._slice = util.Buffer.prototype.slice;
|
|
2151
|
+
};
|
|
2152
|
+
BufferReader.prototype.string = function read_string_buffer() {
|
|
2153
|
+
var len = this.uint32();
|
|
2154
|
+
return this.buf.utf8Slice ? this.buf.utf8Slice(this.pos, this.pos = Math.min(this.pos + len, this.len)) : this.buf.toString("utf-8", this.pos, this.pos = Math.min(this.pos + len, this.len));
|
|
2155
|
+
};
|
|
2156
|
+
BufferReader._configure();
|
|
2157
|
+
}
|
|
2158
|
+
});
|
|
2159
|
+
|
|
2160
|
+
// ../../node_modules/protobufjs/src/rpc/service.js
|
|
2161
|
+
var require_service = __commonJS({
|
|
2162
|
+
"../../node_modules/protobufjs/src/rpc/service.js"(exports2, module2) {
|
|
2163
|
+
"use strict";
|
|
2164
|
+
module2.exports = Service;
|
|
2165
|
+
var util = require_minimal();
|
|
2166
|
+
(Service.prototype = Object.create(util.EventEmitter.prototype)).constructor = Service;
|
|
2167
|
+
function Service(rpcImpl, requestDelimited, responseDelimited) {
|
|
2168
|
+
if (typeof rpcImpl !== "function")
|
|
2169
|
+
throw TypeError("rpcImpl must be a function");
|
|
2170
|
+
util.EventEmitter.call(this);
|
|
2171
|
+
this.rpcImpl = rpcImpl;
|
|
2172
|
+
this.requestDelimited = Boolean(requestDelimited);
|
|
2173
|
+
this.responseDelimited = Boolean(responseDelimited);
|
|
2174
|
+
}
|
|
2175
|
+
Service.prototype.rpcCall = function rpcCall(method, requestCtor, responseCtor, request, callback) {
|
|
2176
|
+
if (!request)
|
|
2177
|
+
throw TypeError("request must be specified");
|
|
2178
|
+
var self2 = this;
|
|
2179
|
+
if (!callback)
|
|
2180
|
+
return util.asPromise(rpcCall, self2, method, requestCtor, responseCtor, request);
|
|
2181
|
+
if (!self2.rpcImpl) {
|
|
2182
|
+
setTimeout(function() {
|
|
2183
|
+
callback(Error("already ended"));
|
|
2184
|
+
}, 0);
|
|
2185
|
+
return void 0;
|
|
2186
|
+
}
|
|
2187
|
+
try {
|
|
2188
|
+
return self2.rpcImpl(
|
|
2189
|
+
method,
|
|
2190
|
+
requestCtor[self2.requestDelimited ? "encodeDelimited" : "encode"](request).finish(),
|
|
2191
|
+
function rpcCallback(err, response) {
|
|
2192
|
+
if (err) {
|
|
2193
|
+
self2.emit("error", err, method);
|
|
2194
|
+
return callback(err);
|
|
2195
|
+
}
|
|
2196
|
+
if (response === null) {
|
|
2197
|
+
self2.end(
|
|
2198
|
+
/* endedByRPC */
|
|
2199
|
+
true
|
|
2200
|
+
);
|
|
2201
|
+
return void 0;
|
|
2202
|
+
}
|
|
2203
|
+
if (!(response instanceof responseCtor)) {
|
|
2204
|
+
try {
|
|
2205
|
+
response = responseCtor[self2.responseDelimited ? "decodeDelimited" : "decode"](response);
|
|
2206
|
+
} catch (err2) {
|
|
2207
|
+
self2.emit("error", err2, method);
|
|
2208
|
+
return callback(err2);
|
|
2209
|
+
}
|
|
2210
|
+
}
|
|
2211
|
+
self2.emit("data", response, method);
|
|
2212
|
+
return callback(null, response);
|
|
2213
|
+
}
|
|
2214
|
+
);
|
|
2215
|
+
} catch (err) {
|
|
2216
|
+
self2.emit("error", err, method);
|
|
2217
|
+
setTimeout(function() {
|
|
2218
|
+
callback(err);
|
|
2219
|
+
}, 0);
|
|
2220
|
+
return void 0;
|
|
2221
|
+
}
|
|
2222
|
+
};
|
|
2223
|
+
Service.prototype.end = function end(endedByRPC) {
|
|
2224
|
+
if (this.rpcImpl) {
|
|
2225
|
+
if (!endedByRPC)
|
|
2226
|
+
this.rpcImpl(null, null, null);
|
|
2227
|
+
this.rpcImpl = null;
|
|
2228
|
+
this.emit("end").off();
|
|
2229
|
+
}
|
|
2230
|
+
return this;
|
|
2231
|
+
};
|
|
2232
|
+
}
|
|
2233
|
+
});
|
|
2234
|
+
|
|
2235
|
+
// ../../node_modules/protobufjs/src/rpc.js
|
|
2236
|
+
var require_rpc = __commonJS({
|
|
2237
|
+
"../../node_modules/protobufjs/src/rpc.js"(exports2) {
|
|
2238
|
+
"use strict";
|
|
2239
|
+
var rpc = exports2;
|
|
2240
|
+
rpc.Service = require_service();
|
|
2241
|
+
}
|
|
2242
|
+
});
|
|
2243
|
+
|
|
2244
|
+
// ../../node_modules/protobufjs/src/roots.js
|
|
2245
|
+
var require_roots = __commonJS({
|
|
2246
|
+
"../../node_modules/protobufjs/src/roots.js"(exports2, module2) {
|
|
2247
|
+
"use strict";
|
|
2248
|
+
module2.exports = {};
|
|
2249
|
+
}
|
|
2250
|
+
});
|
|
2251
|
+
|
|
2252
|
+
// ../../node_modules/protobufjs/src/index-minimal.js
|
|
2253
|
+
var require_index_minimal = __commonJS({
|
|
2254
|
+
"../../node_modules/protobufjs/src/index-minimal.js"(exports2) {
|
|
2255
|
+
"use strict";
|
|
2256
|
+
var protobuf = exports2;
|
|
2257
|
+
protobuf.build = "minimal";
|
|
2258
|
+
protobuf.Writer = require_writer();
|
|
2259
|
+
protobuf.BufferWriter = require_writer_buffer();
|
|
2260
|
+
protobuf.Reader = require_reader();
|
|
2261
|
+
protobuf.BufferReader = require_reader_buffer();
|
|
2262
|
+
protobuf.util = require_minimal();
|
|
2263
|
+
protobuf.rpc = require_rpc();
|
|
2264
|
+
protobuf.roots = require_roots();
|
|
2265
|
+
protobuf.configure = configure;
|
|
2266
|
+
function configure() {
|
|
2267
|
+
protobuf.util._configure();
|
|
2268
|
+
protobuf.Writer._configure(protobuf.BufferWriter);
|
|
2269
|
+
protobuf.Reader._configure(protobuf.BufferReader);
|
|
2270
|
+
}
|
|
2271
|
+
configure();
|
|
2272
|
+
}
|
|
2273
|
+
});
|
|
2274
|
+
|
|
2275
|
+
// ../../node_modules/protobufjs/minimal.js
|
|
2276
|
+
var require_minimal2 = __commonJS({
|
|
2277
|
+
"../../node_modules/protobufjs/minimal.js"(exports2, module2) {
|
|
2278
|
+
"use strict";
|
|
2279
|
+
module2.exports = require_index_minimal();
|
|
2280
|
+
}
|
|
2281
|
+
});
|
|
2282
|
+
|
|
38
2283
|
// ../../node_modules/whatwg-fetch/fetch.js
|
|
39
2284
|
var g = typeof globalThis !== "undefined" && globalThis || typeof self !== "undefined" && self || // eslint-disable-next-line no-undef
|
|
40
2285
|
typeof global !== "undefined" && global || {};
|
|
@@ -664,36 +2909,684 @@ function buildFetchOptions(method, options, bodyJson) {
|
|
|
664
2909
|
if (bodyJson) {
|
|
665
2910
|
fetchOptions.body = bodyJson;
|
|
666
2911
|
}
|
|
667
|
-
return fetchOptions;
|
|
2912
|
+
return fetchOptions;
|
|
2913
|
+
}
|
|
2914
|
+
function b64EncodeUnicode(str) {
|
|
2915
|
+
return encode(encodeURIComponent(str).replace(
|
|
2916
|
+
/%([0-9A-F]{2})/g,
|
|
2917
|
+
function toSolidBytes(_match, p1) {
|
|
2918
|
+
return String.fromCharCode(Number("0x" + p1));
|
|
2919
|
+
}
|
|
2920
|
+
));
|
|
2921
|
+
}
|
|
2922
|
+
function b64DecodeUnicode(str) {
|
|
2923
|
+
return decodeURIComponent(decode2(str).split("").map(function(c) {
|
|
2924
|
+
return "%" + ("00" + c.charCodeAt(0).toString(16)).slice(-2);
|
|
2925
|
+
}).join(""));
|
|
2926
|
+
}
|
|
2927
|
+
function safeJSONParse(jsonStr) {
|
|
2928
|
+
try {
|
|
2929
|
+
return JSON.parse(jsonStr);
|
|
2930
|
+
} catch (error) {
|
|
2931
|
+
if (jsonStr !== "") {
|
|
2932
|
+
const fixedJsonStr = jsonStr.replace(/\n/g, "\\n");
|
|
2933
|
+
try {
|
|
2934
|
+
return JSON.parse(fixedJsonStr);
|
|
2935
|
+
} catch (e) {
|
|
2936
|
+
console.error("Error parsing JSON:", jsonStr, error);
|
|
2937
|
+
}
|
|
2938
|
+
}
|
|
2939
|
+
return { t: jsonStr };
|
|
2940
|
+
}
|
|
2941
|
+
}
|
|
2942
|
+
|
|
2943
|
+
// api/api.ts
|
|
2944
|
+
var import_long3 = __toESM(require_long());
|
|
2945
|
+
var import_minimal4 = __toESM(require_minimal2());
|
|
2946
|
+
|
|
2947
|
+
// google/protobuf/struct.ts
|
|
2948
|
+
var import_minimal = __toESM(require_minimal2());
|
|
2949
|
+
|
|
2950
|
+
// google/protobuf/timestamp.ts
|
|
2951
|
+
var import_long = __toESM(require_long());
|
|
2952
|
+
var import_minimal2 = __toESM(require_minimal2());
|
|
2953
|
+
function createBaseTimestamp() {
|
|
2954
|
+
return { seconds: 0, nanos: 0 };
|
|
2955
|
+
}
|
|
2956
|
+
var Timestamp = {
|
|
2957
|
+
encode(message, writer = import_minimal2.default.Writer.create()) {
|
|
2958
|
+
if (message.seconds !== 0) {
|
|
2959
|
+
writer.uint32(8).int64(message.seconds);
|
|
2960
|
+
}
|
|
2961
|
+
if (message.nanos !== 0) {
|
|
2962
|
+
writer.uint32(16).int32(message.nanos);
|
|
2963
|
+
}
|
|
2964
|
+
return writer;
|
|
2965
|
+
},
|
|
2966
|
+
decode(input, length) {
|
|
2967
|
+
const reader = input instanceof import_minimal2.default.Reader ? input : import_minimal2.default.Reader.create(input);
|
|
2968
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
2969
|
+
const message = createBaseTimestamp();
|
|
2970
|
+
while (reader.pos < end) {
|
|
2971
|
+
const tag = reader.uint32();
|
|
2972
|
+
switch (tag >>> 3) {
|
|
2973
|
+
case 1:
|
|
2974
|
+
if (tag !== 8) {
|
|
2975
|
+
break;
|
|
2976
|
+
}
|
|
2977
|
+
message.seconds = longToNumber(reader.int64());
|
|
2978
|
+
continue;
|
|
2979
|
+
case 2:
|
|
2980
|
+
if (tag !== 16) {
|
|
2981
|
+
break;
|
|
2982
|
+
}
|
|
2983
|
+
message.nanos = reader.int32();
|
|
2984
|
+
continue;
|
|
2985
|
+
}
|
|
2986
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2987
|
+
break;
|
|
2988
|
+
}
|
|
2989
|
+
reader.skipType(tag & 7);
|
|
2990
|
+
}
|
|
2991
|
+
return message;
|
|
2992
|
+
},
|
|
2993
|
+
fromJSON(object) {
|
|
2994
|
+
return {
|
|
2995
|
+
seconds: isSet(object.seconds) ? globalThis.Number(object.seconds) : 0,
|
|
2996
|
+
nanos: isSet(object.nanos) ? globalThis.Number(object.nanos) : 0
|
|
2997
|
+
};
|
|
2998
|
+
},
|
|
2999
|
+
toJSON(message) {
|
|
3000
|
+
const obj = {};
|
|
3001
|
+
if (message.seconds !== 0) {
|
|
3002
|
+
obj.seconds = Math.round(message.seconds);
|
|
3003
|
+
}
|
|
3004
|
+
if (message.nanos !== 0) {
|
|
3005
|
+
obj.nanos = Math.round(message.nanos);
|
|
3006
|
+
}
|
|
3007
|
+
return obj;
|
|
3008
|
+
},
|
|
3009
|
+
create(base) {
|
|
3010
|
+
return Timestamp.fromPartial(base != null ? base : {});
|
|
3011
|
+
},
|
|
3012
|
+
fromPartial(object) {
|
|
3013
|
+
var _a, _b;
|
|
3014
|
+
const message = createBaseTimestamp();
|
|
3015
|
+
message.seconds = (_a = object.seconds) != null ? _a : 0;
|
|
3016
|
+
message.nanos = (_b = object.nanos) != null ? _b : 0;
|
|
3017
|
+
return message;
|
|
3018
|
+
}
|
|
3019
|
+
};
|
|
3020
|
+
function longToNumber(long) {
|
|
3021
|
+
if (long.gt(globalThis.Number.MAX_SAFE_INTEGER)) {
|
|
3022
|
+
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
3023
|
+
}
|
|
3024
|
+
if (long.lt(globalThis.Number.MIN_SAFE_INTEGER)) {
|
|
3025
|
+
throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
|
|
3026
|
+
}
|
|
3027
|
+
return long.toNumber();
|
|
3028
|
+
}
|
|
3029
|
+
if (import_minimal2.default.util.Long !== import_long.default) {
|
|
3030
|
+
import_minimal2.default.util.Long = import_long.default;
|
|
3031
|
+
import_minimal2.default.configure();
|
|
3032
|
+
}
|
|
3033
|
+
function isSet(value) {
|
|
3034
|
+
return value !== null && value !== void 0;
|
|
3035
|
+
}
|
|
3036
|
+
|
|
3037
|
+
// google/protobuf/wrappers.ts
|
|
3038
|
+
var import_long2 = __toESM(require_long());
|
|
3039
|
+
var import_minimal3 = __toESM(require_minimal2());
|
|
3040
|
+
if (import_minimal3.default.util.Long !== import_long2.default) {
|
|
3041
|
+
import_minimal3.default.util.Long = import_long2.default;
|
|
3042
|
+
import_minimal3.default.configure();
|
|
3043
|
+
}
|
|
3044
|
+
|
|
3045
|
+
// api/api.ts
|
|
3046
|
+
function createBaseAccount() {
|
|
3047
|
+
return {
|
|
3048
|
+
user: void 0,
|
|
3049
|
+
email: "",
|
|
3050
|
+
qr_code: "",
|
|
3051
|
+
verify_time: void 0,
|
|
3052
|
+
disable_time: void 0,
|
|
3053
|
+
logo: "",
|
|
3054
|
+
splash_screen: "",
|
|
3055
|
+
encrypt_private_key: "",
|
|
3056
|
+
password_setted: false
|
|
3057
|
+
};
|
|
3058
|
+
}
|
|
3059
|
+
var Account = {
|
|
3060
|
+
encode(message, writer = import_minimal4.default.Writer.create()) {
|
|
3061
|
+
if (message.user !== void 0) {
|
|
3062
|
+
User.encode(message.user, writer.uint32(10).fork()).ldelim();
|
|
3063
|
+
}
|
|
3064
|
+
if (message.email !== void 0 && message.email !== "") {
|
|
3065
|
+
writer.uint32(18).string(message.email);
|
|
3066
|
+
}
|
|
3067
|
+
if (message.qr_code !== void 0 && message.qr_code !== "") {
|
|
3068
|
+
writer.uint32(26).string(message.qr_code);
|
|
3069
|
+
}
|
|
3070
|
+
if (message.verify_time !== void 0) {
|
|
3071
|
+
Timestamp.encode(toTimestamp(message.verify_time), writer.uint32(34).fork()).ldelim();
|
|
3072
|
+
}
|
|
3073
|
+
if (message.disable_time !== void 0) {
|
|
3074
|
+
Timestamp.encode(toTimestamp(message.disable_time), writer.uint32(42).fork()).ldelim();
|
|
3075
|
+
}
|
|
3076
|
+
if (message.logo !== void 0 && message.logo !== "") {
|
|
3077
|
+
writer.uint32(50).string(message.logo);
|
|
3078
|
+
}
|
|
3079
|
+
if (message.splash_screen !== void 0 && message.splash_screen !== "") {
|
|
3080
|
+
writer.uint32(58).string(message.splash_screen);
|
|
3081
|
+
}
|
|
3082
|
+
if (message.encrypt_private_key !== void 0 && message.encrypt_private_key !== "") {
|
|
3083
|
+
writer.uint32(66).string(message.encrypt_private_key);
|
|
3084
|
+
}
|
|
3085
|
+
if (message.password_setted !== void 0 && message.password_setted !== false) {
|
|
3086
|
+
writer.uint32(72).bool(message.password_setted);
|
|
3087
|
+
}
|
|
3088
|
+
return writer;
|
|
3089
|
+
},
|
|
3090
|
+
decode(input, length) {
|
|
3091
|
+
const reader = input instanceof import_minimal4.default.Reader ? input : import_minimal4.default.Reader.create(input);
|
|
3092
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
3093
|
+
const message = createBaseAccount();
|
|
3094
|
+
while (reader.pos < end) {
|
|
3095
|
+
const tag = reader.uint32();
|
|
3096
|
+
switch (tag >>> 3) {
|
|
3097
|
+
case 1:
|
|
3098
|
+
if (tag !== 10) {
|
|
3099
|
+
break;
|
|
3100
|
+
}
|
|
3101
|
+
message.user = User.decode(reader, reader.uint32());
|
|
3102
|
+
continue;
|
|
3103
|
+
case 2:
|
|
3104
|
+
if (tag !== 18) {
|
|
3105
|
+
break;
|
|
3106
|
+
}
|
|
3107
|
+
message.email = reader.string();
|
|
3108
|
+
continue;
|
|
3109
|
+
case 3:
|
|
3110
|
+
if (tag !== 26) {
|
|
3111
|
+
break;
|
|
3112
|
+
}
|
|
3113
|
+
message.qr_code = reader.string();
|
|
3114
|
+
continue;
|
|
3115
|
+
case 4:
|
|
3116
|
+
if (tag !== 34) {
|
|
3117
|
+
break;
|
|
3118
|
+
}
|
|
3119
|
+
message.verify_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
3120
|
+
continue;
|
|
3121
|
+
case 5:
|
|
3122
|
+
if (tag !== 42) {
|
|
3123
|
+
break;
|
|
3124
|
+
}
|
|
3125
|
+
message.disable_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
3126
|
+
continue;
|
|
3127
|
+
case 6:
|
|
3128
|
+
if (tag !== 50) {
|
|
3129
|
+
break;
|
|
3130
|
+
}
|
|
3131
|
+
message.logo = reader.string();
|
|
3132
|
+
continue;
|
|
3133
|
+
case 7:
|
|
3134
|
+
if (tag !== 58) {
|
|
3135
|
+
break;
|
|
3136
|
+
}
|
|
3137
|
+
message.splash_screen = reader.string();
|
|
3138
|
+
continue;
|
|
3139
|
+
case 8:
|
|
3140
|
+
if (tag !== 66) {
|
|
3141
|
+
break;
|
|
3142
|
+
}
|
|
3143
|
+
message.encrypt_private_key = reader.string();
|
|
3144
|
+
continue;
|
|
3145
|
+
case 9:
|
|
3146
|
+
if (tag !== 72) {
|
|
3147
|
+
break;
|
|
3148
|
+
}
|
|
3149
|
+
message.password_setted = reader.bool();
|
|
3150
|
+
continue;
|
|
3151
|
+
}
|
|
3152
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3153
|
+
break;
|
|
3154
|
+
}
|
|
3155
|
+
reader.skipType(tag & 7);
|
|
3156
|
+
}
|
|
3157
|
+
return message;
|
|
3158
|
+
},
|
|
3159
|
+
fromJSON(object) {
|
|
3160
|
+
return {
|
|
3161
|
+
user: isSet2(object.user) ? User.fromJSON(object.user) : void 0,
|
|
3162
|
+
email: isSet2(object.email) ? globalThis.String(object.email) : "",
|
|
3163
|
+
qr_code: isSet2(object.qr_code) ? globalThis.String(object.qr_code) : "",
|
|
3164
|
+
verify_time: isSet2(object.verify_time) ? fromJsonTimestamp(object.verify_time) : void 0,
|
|
3165
|
+
disable_time: isSet2(object.disable_time) ? fromJsonTimestamp(object.disable_time) : void 0,
|
|
3166
|
+
logo: isSet2(object.logo) ? globalThis.String(object.logo) : "",
|
|
3167
|
+
splash_screen: isSet2(object.splash_screen) ? globalThis.String(object.splash_screen) : "",
|
|
3168
|
+
encrypt_private_key: isSet2(object.encrypt_private_key) ? globalThis.String(object.encrypt_private_key) : "",
|
|
3169
|
+
password_setted: isSet2(object.password_setted) ? globalThis.Boolean(object.password_setted) : false
|
|
3170
|
+
};
|
|
3171
|
+
},
|
|
3172
|
+
toJSON(message) {
|
|
3173
|
+
const obj = {};
|
|
3174
|
+
if (message.user !== void 0) {
|
|
3175
|
+
obj.user = User.toJSON(message.user);
|
|
3176
|
+
}
|
|
3177
|
+
if (message.email !== void 0 && message.email !== "") {
|
|
3178
|
+
obj.email = message.email;
|
|
3179
|
+
}
|
|
3180
|
+
if (message.qr_code !== void 0 && message.qr_code !== "") {
|
|
3181
|
+
obj.qr_code = message.qr_code;
|
|
3182
|
+
}
|
|
3183
|
+
if (message.verify_time !== void 0) {
|
|
3184
|
+
obj.verify_time = message.verify_time.toISOString();
|
|
3185
|
+
}
|
|
3186
|
+
if (message.disable_time !== void 0) {
|
|
3187
|
+
obj.disable_time = message.disable_time.toISOString();
|
|
3188
|
+
}
|
|
3189
|
+
if (message.logo !== void 0 && message.logo !== "") {
|
|
3190
|
+
obj.logo = message.logo;
|
|
3191
|
+
}
|
|
3192
|
+
if (message.splash_screen !== void 0 && message.splash_screen !== "") {
|
|
3193
|
+
obj.splash_screen = message.splash_screen;
|
|
3194
|
+
}
|
|
3195
|
+
if (message.encrypt_private_key !== void 0 && message.encrypt_private_key !== "") {
|
|
3196
|
+
obj.encrypt_private_key = message.encrypt_private_key;
|
|
3197
|
+
}
|
|
3198
|
+
if (message.password_setted !== void 0 && message.password_setted !== false) {
|
|
3199
|
+
obj.password_setted = message.password_setted;
|
|
3200
|
+
}
|
|
3201
|
+
return obj;
|
|
3202
|
+
},
|
|
3203
|
+
create(base) {
|
|
3204
|
+
return Account.fromPartial(base != null ? base : {});
|
|
3205
|
+
},
|
|
3206
|
+
fromPartial(object) {
|
|
3207
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
3208
|
+
const message = createBaseAccount();
|
|
3209
|
+
message.user = object.user !== void 0 && object.user !== null ? User.fromPartial(object.user) : void 0;
|
|
3210
|
+
message.email = (_a = object.email) != null ? _a : "";
|
|
3211
|
+
message.qr_code = (_b = object.qr_code) != null ? _b : "";
|
|
3212
|
+
message.verify_time = (_c = object.verify_time) != null ? _c : void 0;
|
|
3213
|
+
message.disable_time = (_d = object.disable_time) != null ? _d : void 0;
|
|
3214
|
+
message.logo = (_e = object.logo) != null ? _e : "";
|
|
3215
|
+
message.splash_screen = (_f = object.splash_screen) != null ? _f : "";
|
|
3216
|
+
message.encrypt_private_key = (_g = object.encrypt_private_key) != null ? _g : "";
|
|
3217
|
+
message.password_setted = (_h = object.password_setted) != null ? _h : false;
|
|
3218
|
+
return message;
|
|
3219
|
+
}
|
|
3220
|
+
};
|
|
3221
|
+
function createBaseUser() {
|
|
3222
|
+
return {
|
|
3223
|
+
id: "",
|
|
3224
|
+
username: "",
|
|
3225
|
+
display_name: "",
|
|
3226
|
+
avatar_url: "",
|
|
3227
|
+
lang_tag: "",
|
|
3228
|
+
location: "",
|
|
3229
|
+
timezone: "",
|
|
3230
|
+
user_status: "",
|
|
3231
|
+
online: false,
|
|
3232
|
+
phone_number: "",
|
|
3233
|
+
edge_count: 0,
|
|
3234
|
+
create_time: void 0,
|
|
3235
|
+
update_time: void 0,
|
|
3236
|
+
about_me: "",
|
|
3237
|
+
join_time: void 0,
|
|
3238
|
+
is_mobile: false,
|
|
3239
|
+
dob: void 0,
|
|
3240
|
+
mezon_id: "",
|
|
3241
|
+
list_nick_names: [],
|
|
3242
|
+
status: ""
|
|
3243
|
+
};
|
|
668
3244
|
}
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
return String.fromCharCode(Number("0x" + p1));
|
|
3245
|
+
var User = {
|
|
3246
|
+
encode(message, writer = import_minimal4.default.Writer.create()) {
|
|
3247
|
+
if (message.id !== void 0 && message.id !== "") {
|
|
3248
|
+
writer.uint32(10).string(message.id);
|
|
674
3249
|
}
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
3250
|
+
if (message.username !== void 0 && message.username !== "") {
|
|
3251
|
+
writer.uint32(18).string(message.username);
|
|
3252
|
+
}
|
|
3253
|
+
if (message.display_name !== void 0 && message.display_name !== "") {
|
|
3254
|
+
writer.uint32(26).string(message.display_name);
|
|
3255
|
+
}
|
|
3256
|
+
if (message.avatar_url !== void 0 && message.avatar_url !== "") {
|
|
3257
|
+
writer.uint32(34).string(message.avatar_url);
|
|
3258
|
+
}
|
|
3259
|
+
if (message.lang_tag !== void 0 && message.lang_tag !== "") {
|
|
3260
|
+
writer.uint32(42).string(message.lang_tag);
|
|
3261
|
+
}
|
|
3262
|
+
if (message.location !== void 0 && message.location !== "") {
|
|
3263
|
+
writer.uint32(50).string(message.location);
|
|
3264
|
+
}
|
|
3265
|
+
if (message.timezone !== void 0 && message.timezone !== "") {
|
|
3266
|
+
writer.uint32(58).string(message.timezone);
|
|
3267
|
+
}
|
|
3268
|
+
if (message.user_status !== void 0 && message.user_status !== "") {
|
|
3269
|
+
writer.uint32(66).string(message.user_status);
|
|
3270
|
+
}
|
|
3271
|
+
if (message.online !== void 0 && message.online !== false) {
|
|
3272
|
+
writer.uint32(72).bool(message.online);
|
|
3273
|
+
}
|
|
3274
|
+
if (message.phone_number !== void 0 && message.phone_number !== "") {
|
|
3275
|
+
writer.uint32(82).string(message.phone_number);
|
|
3276
|
+
}
|
|
3277
|
+
if (message.edge_count !== void 0 && message.edge_count !== 0) {
|
|
3278
|
+
writer.uint32(88).int32(message.edge_count);
|
|
3279
|
+
}
|
|
3280
|
+
if (message.create_time !== void 0) {
|
|
3281
|
+
Timestamp.encode(toTimestamp(message.create_time), writer.uint32(98).fork()).ldelim();
|
|
3282
|
+
}
|
|
3283
|
+
if (message.update_time !== void 0) {
|
|
3284
|
+
Timestamp.encode(toTimestamp(message.update_time), writer.uint32(106).fork()).ldelim();
|
|
3285
|
+
}
|
|
3286
|
+
if (message.about_me !== void 0 && message.about_me !== "") {
|
|
3287
|
+
writer.uint32(114).string(message.about_me);
|
|
3288
|
+
}
|
|
3289
|
+
if (message.join_time !== void 0) {
|
|
3290
|
+
Timestamp.encode(toTimestamp(message.join_time), writer.uint32(122).fork()).ldelim();
|
|
3291
|
+
}
|
|
3292
|
+
if (message.is_mobile !== void 0 && message.is_mobile !== false) {
|
|
3293
|
+
writer.uint32(128).bool(message.is_mobile);
|
|
3294
|
+
}
|
|
3295
|
+
if (message.dob !== void 0) {
|
|
3296
|
+
Timestamp.encode(toTimestamp(message.dob), writer.uint32(138).fork()).ldelim();
|
|
3297
|
+
}
|
|
3298
|
+
if (message.mezon_id !== void 0 && message.mezon_id !== "") {
|
|
3299
|
+
writer.uint32(146).string(message.mezon_id);
|
|
3300
|
+
}
|
|
3301
|
+
if (message.list_nick_names !== void 0 && message.list_nick_names.length !== 0) {
|
|
3302
|
+
for (const v of message.list_nick_names) {
|
|
3303
|
+
writer.uint32(154).string(v);
|
|
692
3304
|
}
|
|
693
3305
|
}
|
|
694
|
-
|
|
3306
|
+
if (message.status !== void 0 && message.status !== "") {
|
|
3307
|
+
writer.uint32(162).string(message.status);
|
|
3308
|
+
}
|
|
3309
|
+
return writer;
|
|
3310
|
+
},
|
|
3311
|
+
decode(input, length) {
|
|
3312
|
+
const reader = input instanceof import_minimal4.default.Reader ? input : import_minimal4.default.Reader.create(input);
|
|
3313
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
3314
|
+
const message = createBaseUser();
|
|
3315
|
+
while (reader.pos < end) {
|
|
3316
|
+
const tag = reader.uint32();
|
|
3317
|
+
switch (tag >>> 3) {
|
|
3318
|
+
case 1:
|
|
3319
|
+
if (tag !== 10) {
|
|
3320
|
+
break;
|
|
3321
|
+
}
|
|
3322
|
+
message.id = reader.string();
|
|
3323
|
+
continue;
|
|
3324
|
+
case 2:
|
|
3325
|
+
if (tag !== 18) {
|
|
3326
|
+
break;
|
|
3327
|
+
}
|
|
3328
|
+
message.username = reader.string();
|
|
3329
|
+
continue;
|
|
3330
|
+
case 3:
|
|
3331
|
+
if (tag !== 26) {
|
|
3332
|
+
break;
|
|
3333
|
+
}
|
|
3334
|
+
message.display_name = reader.string();
|
|
3335
|
+
continue;
|
|
3336
|
+
case 4:
|
|
3337
|
+
if (tag !== 34) {
|
|
3338
|
+
break;
|
|
3339
|
+
}
|
|
3340
|
+
message.avatar_url = reader.string();
|
|
3341
|
+
continue;
|
|
3342
|
+
case 5:
|
|
3343
|
+
if (tag !== 42) {
|
|
3344
|
+
break;
|
|
3345
|
+
}
|
|
3346
|
+
message.lang_tag = reader.string();
|
|
3347
|
+
continue;
|
|
3348
|
+
case 6:
|
|
3349
|
+
if (tag !== 50) {
|
|
3350
|
+
break;
|
|
3351
|
+
}
|
|
3352
|
+
message.location = reader.string();
|
|
3353
|
+
continue;
|
|
3354
|
+
case 7:
|
|
3355
|
+
if (tag !== 58) {
|
|
3356
|
+
break;
|
|
3357
|
+
}
|
|
3358
|
+
message.timezone = reader.string();
|
|
3359
|
+
continue;
|
|
3360
|
+
case 8:
|
|
3361
|
+
if (tag !== 66) {
|
|
3362
|
+
break;
|
|
3363
|
+
}
|
|
3364
|
+
message.user_status = reader.string();
|
|
3365
|
+
continue;
|
|
3366
|
+
case 9:
|
|
3367
|
+
if (tag !== 72) {
|
|
3368
|
+
break;
|
|
3369
|
+
}
|
|
3370
|
+
message.online = reader.bool();
|
|
3371
|
+
continue;
|
|
3372
|
+
case 10:
|
|
3373
|
+
if (tag !== 82) {
|
|
3374
|
+
break;
|
|
3375
|
+
}
|
|
3376
|
+
message.phone_number = reader.string();
|
|
3377
|
+
continue;
|
|
3378
|
+
case 11:
|
|
3379
|
+
if (tag !== 88) {
|
|
3380
|
+
break;
|
|
3381
|
+
}
|
|
3382
|
+
message.edge_count = reader.int32();
|
|
3383
|
+
continue;
|
|
3384
|
+
case 12:
|
|
3385
|
+
if (tag !== 98) {
|
|
3386
|
+
break;
|
|
3387
|
+
}
|
|
3388
|
+
message.create_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
3389
|
+
continue;
|
|
3390
|
+
case 13:
|
|
3391
|
+
if (tag !== 106) {
|
|
3392
|
+
break;
|
|
3393
|
+
}
|
|
3394
|
+
message.update_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
3395
|
+
continue;
|
|
3396
|
+
case 14:
|
|
3397
|
+
if (tag !== 114) {
|
|
3398
|
+
break;
|
|
3399
|
+
}
|
|
3400
|
+
message.about_me = reader.string();
|
|
3401
|
+
continue;
|
|
3402
|
+
case 15:
|
|
3403
|
+
if (tag !== 122) {
|
|
3404
|
+
break;
|
|
3405
|
+
}
|
|
3406
|
+
message.join_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
3407
|
+
continue;
|
|
3408
|
+
case 16:
|
|
3409
|
+
if (tag !== 128) {
|
|
3410
|
+
break;
|
|
3411
|
+
}
|
|
3412
|
+
message.is_mobile = reader.bool();
|
|
3413
|
+
continue;
|
|
3414
|
+
case 17:
|
|
3415
|
+
if (tag !== 138) {
|
|
3416
|
+
break;
|
|
3417
|
+
}
|
|
3418
|
+
message.dob = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
3419
|
+
continue;
|
|
3420
|
+
case 18:
|
|
3421
|
+
if (tag !== 146) {
|
|
3422
|
+
break;
|
|
3423
|
+
}
|
|
3424
|
+
message.mezon_id = reader.string();
|
|
3425
|
+
continue;
|
|
3426
|
+
case 19:
|
|
3427
|
+
if (tag !== 154) {
|
|
3428
|
+
break;
|
|
3429
|
+
}
|
|
3430
|
+
message.list_nick_names.push(reader.string());
|
|
3431
|
+
continue;
|
|
3432
|
+
case 20:
|
|
3433
|
+
if (tag !== 162) {
|
|
3434
|
+
break;
|
|
3435
|
+
}
|
|
3436
|
+
message.status = reader.string();
|
|
3437
|
+
continue;
|
|
3438
|
+
}
|
|
3439
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3440
|
+
break;
|
|
3441
|
+
}
|
|
3442
|
+
reader.skipType(tag & 7);
|
|
3443
|
+
}
|
|
3444
|
+
return message;
|
|
3445
|
+
},
|
|
3446
|
+
fromJSON(object) {
|
|
3447
|
+
return {
|
|
3448
|
+
id: isSet2(object.id) ? globalThis.String(object.id) : "",
|
|
3449
|
+
username: isSet2(object.username) ? globalThis.String(object.username) : "",
|
|
3450
|
+
display_name: isSet2(object.display_name) ? globalThis.String(object.display_name) : "",
|
|
3451
|
+
avatar_url: isSet2(object.avatar_url) ? globalThis.String(object.avatar_url) : "",
|
|
3452
|
+
lang_tag: isSet2(object.lang_tag) ? globalThis.String(object.lang_tag) : "",
|
|
3453
|
+
location: isSet2(object.location) ? globalThis.String(object.location) : "",
|
|
3454
|
+
timezone: isSet2(object.timezone) ? globalThis.String(object.timezone) : "",
|
|
3455
|
+
user_status: isSet2(object.user_status) ? globalThis.String(object.user_status) : "",
|
|
3456
|
+
online: isSet2(object.online) ? globalThis.Boolean(object.online) : false,
|
|
3457
|
+
phone_number: isSet2(object.phone_number) ? globalThis.String(object.phone_number) : "",
|
|
3458
|
+
edge_count: isSet2(object.edge_count) ? globalThis.Number(object.edge_count) : 0,
|
|
3459
|
+
create_time: isSet2(object.create_time) ? fromJsonTimestamp(object.create_time) : void 0,
|
|
3460
|
+
update_time: isSet2(object.update_time) ? fromJsonTimestamp(object.update_time) : void 0,
|
|
3461
|
+
about_me: isSet2(object.about_me) ? globalThis.String(object.about_me) : "",
|
|
3462
|
+
join_time: isSet2(object.join_time) ? fromJsonTimestamp(object.join_time) : void 0,
|
|
3463
|
+
is_mobile: isSet2(object.is_mobile) ? globalThis.Boolean(object.is_mobile) : false,
|
|
3464
|
+
dob: isSet2(object.dob) ? fromJsonTimestamp(object.dob) : void 0,
|
|
3465
|
+
mezon_id: isSet2(object.mezon_id) ? globalThis.String(object.mezon_id) : "",
|
|
3466
|
+
list_nick_names: globalThis.Array.isArray(object == null ? void 0 : object.list_nick_names) ? object.list_nick_names.map((e) => globalThis.String(e)) : [],
|
|
3467
|
+
status: isSet2(object.status) ? globalThis.String(object.status) : ""
|
|
3468
|
+
};
|
|
3469
|
+
},
|
|
3470
|
+
toJSON(message) {
|
|
3471
|
+
var _a;
|
|
3472
|
+
const obj = {};
|
|
3473
|
+
if (message.id !== void 0 && message.id !== "") {
|
|
3474
|
+
obj.id = message.id;
|
|
3475
|
+
}
|
|
3476
|
+
if (message.username !== void 0 && message.username !== "") {
|
|
3477
|
+
obj.username = message.username;
|
|
3478
|
+
}
|
|
3479
|
+
if (message.display_name !== void 0 && message.display_name !== "") {
|
|
3480
|
+
obj.display_name = message.display_name;
|
|
3481
|
+
}
|
|
3482
|
+
if (message.avatar_url !== void 0 && message.avatar_url !== "") {
|
|
3483
|
+
obj.avatar_url = message.avatar_url;
|
|
3484
|
+
}
|
|
3485
|
+
if (message.lang_tag !== void 0 && message.lang_tag !== "") {
|
|
3486
|
+
obj.lang_tag = message.lang_tag;
|
|
3487
|
+
}
|
|
3488
|
+
if (message.location !== void 0 && message.location !== "") {
|
|
3489
|
+
obj.location = message.location;
|
|
3490
|
+
}
|
|
3491
|
+
if (message.timezone !== void 0 && message.timezone !== "") {
|
|
3492
|
+
obj.timezone = message.timezone;
|
|
3493
|
+
}
|
|
3494
|
+
if (message.user_status !== void 0 && message.user_status !== "") {
|
|
3495
|
+
obj.user_status = message.user_status;
|
|
3496
|
+
}
|
|
3497
|
+
if (message.online !== void 0 && message.online !== false) {
|
|
3498
|
+
obj.online = message.online;
|
|
3499
|
+
}
|
|
3500
|
+
if (message.phone_number !== void 0 && message.phone_number !== "") {
|
|
3501
|
+
obj.phone_number = message.phone_number;
|
|
3502
|
+
}
|
|
3503
|
+
if (message.edge_count !== void 0 && message.edge_count !== 0) {
|
|
3504
|
+
obj.edge_count = Math.round(message.edge_count);
|
|
3505
|
+
}
|
|
3506
|
+
if (message.create_time !== void 0) {
|
|
3507
|
+
obj.create_time = message.create_time.toISOString();
|
|
3508
|
+
}
|
|
3509
|
+
if (message.update_time !== void 0) {
|
|
3510
|
+
obj.update_time = message.update_time.toISOString();
|
|
3511
|
+
}
|
|
3512
|
+
if (message.about_me !== void 0 && message.about_me !== "") {
|
|
3513
|
+
obj.about_me = message.about_me;
|
|
3514
|
+
}
|
|
3515
|
+
if (message.join_time !== void 0) {
|
|
3516
|
+
obj.join_time = message.join_time.toISOString();
|
|
3517
|
+
}
|
|
3518
|
+
if (message.is_mobile !== void 0 && message.is_mobile !== false) {
|
|
3519
|
+
obj.is_mobile = message.is_mobile;
|
|
3520
|
+
}
|
|
3521
|
+
if (message.dob !== void 0) {
|
|
3522
|
+
obj.dob = message.dob.toISOString();
|
|
3523
|
+
}
|
|
3524
|
+
if (message.mezon_id !== void 0 && message.mezon_id !== "") {
|
|
3525
|
+
obj.mezon_id = message.mezon_id;
|
|
3526
|
+
}
|
|
3527
|
+
if ((_a = message.list_nick_names) == null ? void 0 : _a.length) {
|
|
3528
|
+
obj.list_nick_names = message.list_nick_names;
|
|
3529
|
+
}
|
|
3530
|
+
if (message.status !== void 0 && message.status !== "") {
|
|
3531
|
+
obj.status = message.status;
|
|
3532
|
+
}
|
|
3533
|
+
return obj;
|
|
3534
|
+
},
|
|
3535
|
+
create(base) {
|
|
3536
|
+
return User.fromPartial(base != null ? base : {});
|
|
3537
|
+
},
|
|
3538
|
+
fromPartial(object) {
|
|
3539
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t;
|
|
3540
|
+
const message = createBaseUser();
|
|
3541
|
+
message.id = (_a = object.id) != null ? _a : "";
|
|
3542
|
+
message.username = (_b = object.username) != null ? _b : "";
|
|
3543
|
+
message.display_name = (_c = object.display_name) != null ? _c : "";
|
|
3544
|
+
message.avatar_url = (_d = object.avatar_url) != null ? _d : "";
|
|
3545
|
+
message.lang_tag = (_e = object.lang_tag) != null ? _e : "";
|
|
3546
|
+
message.location = (_f = object.location) != null ? _f : "";
|
|
3547
|
+
message.timezone = (_g = object.timezone) != null ? _g : "";
|
|
3548
|
+
message.user_status = (_h = object.user_status) != null ? _h : "";
|
|
3549
|
+
message.online = (_i = object.online) != null ? _i : false;
|
|
3550
|
+
message.phone_number = (_j = object.phone_number) != null ? _j : "";
|
|
3551
|
+
message.edge_count = (_k = object.edge_count) != null ? _k : 0;
|
|
3552
|
+
message.create_time = (_l = object.create_time) != null ? _l : void 0;
|
|
3553
|
+
message.update_time = (_m = object.update_time) != null ? _m : void 0;
|
|
3554
|
+
message.about_me = (_n = object.about_me) != null ? _n : "";
|
|
3555
|
+
message.join_time = (_o = object.join_time) != null ? _o : void 0;
|
|
3556
|
+
message.is_mobile = (_p = object.is_mobile) != null ? _p : false;
|
|
3557
|
+
message.dob = (_q = object.dob) != null ? _q : void 0;
|
|
3558
|
+
message.mezon_id = (_r = object.mezon_id) != null ? _r : "";
|
|
3559
|
+
message.list_nick_names = ((_s = object.list_nick_names) == null ? void 0 : _s.map((e) => e)) || [];
|
|
3560
|
+
message.status = (_t = object.status) != null ? _t : "";
|
|
3561
|
+
return message;
|
|
3562
|
+
}
|
|
3563
|
+
};
|
|
3564
|
+
function toTimestamp(date) {
|
|
3565
|
+
const seconds = Math.trunc(date.getTime() / 1e3);
|
|
3566
|
+
const nanos = date.getTime() % 1e3 * 1e6;
|
|
3567
|
+
return { seconds, nanos };
|
|
3568
|
+
}
|
|
3569
|
+
function fromTimestamp(t) {
|
|
3570
|
+
let millis = (t.seconds || 0) * 1e3;
|
|
3571
|
+
millis += (t.nanos || 0) / 1e6;
|
|
3572
|
+
return new globalThis.Date(millis);
|
|
3573
|
+
}
|
|
3574
|
+
function fromJsonTimestamp(o) {
|
|
3575
|
+
if (o instanceof globalThis.Date) {
|
|
3576
|
+
return o;
|
|
3577
|
+
} else if (typeof o === "string") {
|
|
3578
|
+
return new globalThis.Date(o);
|
|
3579
|
+
} else {
|
|
3580
|
+
return fromTimestamp(Timestamp.fromJSON(o));
|
|
695
3581
|
}
|
|
696
3582
|
}
|
|
3583
|
+
if (import_minimal4.default.util.Long !== import_long3.default) {
|
|
3584
|
+
import_minimal4.default.util.Long = import_long3.default;
|
|
3585
|
+
import_minimal4.default.configure();
|
|
3586
|
+
}
|
|
3587
|
+
function isSet2(value) {
|
|
3588
|
+
return value !== null && value !== void 0;
|
|
3589
|
+
}
|
|
697
3590
|
|
|
698
3591
|
// api.gen.ts
|
|
699
3592
|
var MezonApi = class {
|
|
@@ -765,18 +3658,20 @@ var MezonApi = class {
|
|
|
765
3658
|
if (bearerToken) {
|
|
766
3659
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
767
3660
|
}
|
|
3661
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
768
3662
|
return Promise.race([
|
|
769
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
3663
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
770
3664
|
if (response.status == 204) {
|
|
771
|
-
return
|
|
3665
|
+
return {};
|
|
772
3666
|
} else if (response.status >= 200 && response.status < 300) {
|
|
773
|
-
|
|
3667
|
+
const buffer = yield response.arrayBuffer();
|
|
3668
|
+
return Account.decode(new Uint8Array(buffer));
|
|
774
3669
|
} else {
|
|
775
3670
|
throw response;
|
|
776
3671
|
}
|
|
777
|
-
}),
|
|
3672
|
+
})),
|
|
778
3673
|
new Promise(
|
|
779
|
-
(_, reject) => setTimeout(reject
|
|
3674
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
780
3675
|
)
|
|
781
3676
|
]);
|
|
782
3677
|
}
|
|
@@ -1845,18 +4740,20 @@ var MezonApi = class {
|
|
|
1845
4740
|
if (bearerToken) {
|
|
1846
4741
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
1847
4742
|
}
|
|
4743
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
1848
4744
|
return Promise.race([
|
|
1849
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
4745
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
1850
4746
|
if (response.status == 204) {
|
|
1851
|
-
return
|
|
4747
|
+
return {};
|
|
1852
4748
|
} else if (response.status >= 200 && response.status < 300) {
|
|
1853
|
-
|
|
4749
|
+
const buffer = yield response.arrayBuffer();
|
|
4750
|
+
return Account.decode(new Uint8Array(buffer));
|
|
1854
4751
|
} else {
|
|
1855
4752
|
throw response;
|
|
1856
4753
|
}
|
|
1857
|
-
}),
|
|
4754
|
+
})),
|
|
1858
4755
|
new Promise(
|
|
1859
|
-
(_, reject) => setTimeout(reject
|
|
4756
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
1860
4757
|
)
|
|
1861
4758
|
]);
|
|
1862
4759
|
}
|
|
@@ -2119,18 +5016,20 @@ var MezonApi = class {
|
|
|
2119
5016
|
if (bearerToken) {
|
|
2120
5017
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
2121
5018
|
}
|
|
5019
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
2122
5020
|
return Promise.race([
|
|
2123
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
5021
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
2124
5022
|
if (response.status == 204) {
|
|
2125
|
-
return
|
|
5023
|
+
return {};
|
|
2126
5024
|
} else if (response.status >= 200 && response.status < 300) {
|
|
2127
|
-
|
|
5025
|
+
const buffer = yield response.arrayBuffer();
|
|
5026
|
+
return Account.decode(new Uint8Array(buffer));
|
|
2128
5027
|
} else {
|
|
2129
5028
|
throw response;
|
|
2130
5029
|
}
|
|
2131
|
-
}),
|
|
5030
|
+
})),
|
|
2132
5031
|
new Promise(
|
|
2133
|
-
(_, reject) => setTimeout(reject
|
|
5032
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
2134
5033
|
)
|
|
2135
5034
|
]);
|
|
2136
5035
|
}
|
|
@@ -2177,18 +5076,20 @@ var MezonApi = class {
|
|
|
2177
5076
|
if (bearerToken) {
|
|
2178
5077
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
2179
5078
|
}
|
|
5079
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
2180
5080
|
return Promise.race([
|
|
2181
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
5081
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
2182
5082
|
if (response.status == 204) {
|
|
2183
|
-
return
|
|
5083
|
+
return {};
|
|
2184
5084
|
} else if (response.status >= 200 && response.status < 300) {
|
|
2185
|
-
|
|
5085
|
+
const buffer = yield response.arrayBuffer();
|
|
5086
|
+
return Account.decode(new Uint8Array(buffer));
|
|
2186
5087
|
} else {
|
|
2187
5088
|
throw response;
|
|
2188
5089
|
}
|
|
2189
|
-
}),
|
|
5090
|
+
})),
|
|
2190
5091
|
new Promise(
|
|
2191
|
-
(_, reject) => setTimeout(reject
|
|
5092
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
2192
5093
|
)
|
|
2193
5094
|
]);
|
|
2194
5095
|
}
|
|
@@ -2280,18 +5181,20 @@ var MezonApi = class {
|
|
|
2280
5181
|
if (bearerToken) {
|
|
2281
5182
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
2282
5183
|
}
|
|
5184
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
2283
5185
|
return Promise.race([
|
|
2284
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
5186
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
2285
5187
|
if (response.status == 204) {
|
|
2286
|
-
return
|
|
5188
|
+
return {};
|
|
2287
5189
|
} else if (response.status >= 200 && response.status < 300) {
|
|
2288
|
-
|
|
5190
|
+
const buffer = yield response.arrayBuffer();
|
|
5191
|
+
return Account.decode(new Uint8Array(buffer));
|
|
2289
5192
|
} else {
|
|
2290
5193
|
throw response;
|
|
2291
5194
|
}
|
|
2292
|
-
}),
|
|
5195
|
+
})),
|
|
2293
5196
|
new Promise(
|
|
2294
|
-
(_, reject) => setTimeout(reject
|
|
5197
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
2295
5198
|
)
|
|
2296
5199
|
]);
|
|
2297
5200
|
}
|
|
@@ -2311,18 +5214,20 @@ var MezonApi = class {
|
|
|
2311
5214
|
if (bearerToken) {
|
|
2312
5215
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
2313
5216
|
}
|
|
5217
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
2314
5218
|
return Promise.race([
|
|
2315
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
5219
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
2316
5220
|
if (response.status == 204) {
|
|
2317
|
-
return
|
|
5221
|
+
return {};
|
|
2318
5222
|
} else if (response.status >= 200 && response.status < 300) {
|
|
2319
|
-
|
|
5223
|
+
const buffer = yield response.arrayBuffer();
|
|
5224
|
+
return Account.decode(new Uint8Array(buffer));
|
|
2320
5225
|
} else {
|
|
2321
5226
|
throw response;
|
|
2322
5227
|
}
|
|
2323
|
-
}),
|
|
5228
|
+
})),
|
|
2324
5229
|
new Promise(
|
|
2325
|
-
(_, reject) => setTimeout(reject
|
|
5230
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
2326
5231
|
)
|
|
2327
5232
|
]);
|
|
2328
5233
|
}
|
|
@@ -2339,18 +5244,20 @@ var MezonApi = class {
|
|
|
2339
5244
|
if (bearerToken) {
|
|
2340
5245
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
2341
5246
|
}
|
|
5247
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
2342
5248
|
return Promise.race([
|
|
2343
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
5249
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
2344
5250
|
if (response.status == 204) {
|
|
2345
|
-
return
|
|
5251
|
+
return {};
|
|
2346
5252
|
} else if (response.status >= 200 && response.status < 300) {
|
|
2347
|
-
|
|
5253
|
+
const buffer = yield response.arrayBuffer();
|
|
5254
|
+
return Account.decode(new Uint8Array(buffer));
|
|
2348
5255
|
} else {
|
|
2349
5256
|
throw response;
|
|
2350
5257
|
}
|
|
2351
|
-
}),
|
|
5258
|
+
})),
|
|
2352
5259
|
new Promise(
|
|
2353
|
-
(_, reject) => setTimeout(reject
|
|
5260
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
2354
5261
|
)
|
|
2355
5262
|
]);
|
|
2356
5263
|
}
|
|
@@ -2367,18 +5274,20 @@ var MezonApi = class {
|
|
|
2367
5274
|
if (bearerToken) {
|
|
2368
5275
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
2369
5276
|
}
|
|
5277
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
2370
5278
|
return Promise.race([
|
|
2371
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
5279
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
2372
5280
|
if (response.status == 204) {
|
|
2373
|
-
return
|
|
5281
|
+
return {};
|
|
2374
5282
|
} else if (response.status >= 200 && response.status < 300) {
|
|
2375
|
-
|
|
5283
|
+
const buffer = yield response.arrayBuffer();
|
|
5284
|
+
return Account.decode(new Uint8Array(buffer));
|
|
2376
5285
|
} else {
|
|
2377
5286
|
throw response;
|
|
2378
5287
|
}
|
|
2379
|
-
}),
|
|
5288
|
+
})),
|
|
2380
5289
|
new Promise(
|
|
2381
|
-
(_, reject) => setTimeout(reject
|
|
5290
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
2382
5291
|
)
|
|
2383
5292
|
]);
|
|
2384
5293
|
}
|
|
@@ -2626,18 +5535,20 @@ var MezonApi = class {
|
|
|
2626
5535
|
if (bearerToken) {
|
|
2627
5536
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
2628
5537
|
}
|
|
5538
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
2629
5539
|
return Promise.race([
|
|
2630
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
5540
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
2631
5541
|
if (response.status == 204) {
|
|
2632
|
-
return
|
|
5542
|
+
return {};
|
|
2633
5543
|
} else if (response.status >= 200 && response.status < 300) {
|
|
2634
|
-
|
|
5544
|
+
const buffer = yield response.arrayBuffer();
|
|
5545
|
+
return Account.decode(new Uint8Array(buffer));
|
|
2635
5546
|
} else {
|
|
2636
5547
|
throw response;
|
|
2637
5548
|
}
|
|
2638
|
-
}),
|
|
5549
|
+
})),
|
|
2639
5550
|
new Promise(
|
|
2640
|
-
(_, reject) => setTimeout(reject
|
|
5551
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
2641
5552
|
)
|
|
2642
5553
|
]);
|
|
2643
5554
|
}
|
|
@@ -2977,18 +5888,20 @@ var MezonApi = class {
|
|
|
2977
5888
|
if (bearerToken) {
|
|
2978
5889
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
2979
5890
|
}
|
|
5891
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
2980
5892
|
return Promise.race([
|
|
2981
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
5893
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
2982
5894
|
if (response.status == 204) {
|
|
2983
|
-
return
|
|
5895
|
+
return {};
|
|
2984
5896
|
} else if (response.status >= 200 && response.status < 300) {
|
|
2985
|
-
|
|
5897
|
+
const buffer = yield response.arrayBuffer();
|
|
5898
|
+
return Account.decode(new Uint8Array(buffer));
|
|
2986
5899
|
} else {
|
|
2987
5900
|
throw response;
|
|
2988
5901
|
}
|
|
2989
|
-
}),
|
|
5902
|
+
})),
|
|
2990
5903
|
new Promise(
|
|
2991
|
-
(_, reject) => setTimeout(reject
|
|
5904
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
2992
5905
|
)
|
|
2993
5906
|
]);
|
|
2994
5907
|
}
|
|
@@ -3002,18 +5915,20 @@ var MezonApi = class {
|
|
|
3002
5915
|
if (bearerToken) {
|
|
3003
5916
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
3004
5917
|
}
|
|
5918
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
3005
5919
|
return Promise.race([
|
|
3006
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
5920
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
3007
5921
|
if (response.status == 204) {
|
|
3008
|
-
return
|
|
5922
|
+
return {};
|
|
3009
5923
|
} else if (response.status >= 200 && response.status < 300) {
|
|
3010
|
-
|
|
5924
|
+
const buffer = yield response.arrayBuffer();
|
|
5925
|
+
return Account.decode(new Uint8Array(buffer));
|
|
3011
5926
|
} else {
|
|
3012
5927
|
throw response;
|
|
3013
5928
|
}
|
|
3014
|
-
}),
|
|
5929
|
+
})),
|
|
3015
5930
|
new Promise(
|
|
3016
|
-
(_, reject) => setTimeout(reject
|
|
5931
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
3017
5932
|
)
|
|
3018
5933
|
]);
|
|
3019
5934
|
}
|
|
@@ -3090,18 +6005,20 @@ var MezonApi = class {
|
|
|
3090
6005
|
if (bearerToken) {
|
|
3091
6006
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
3092
6007
|
}
|
|
6008
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
3093
6009
|
return Promise.race([
|
|
3094
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
6010
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
3095
6011
|
if (response.status == 204) {
|
|
3096
|
-
return
|
|
6012
|
+
return {};
|
|
3097
6013
|
} else if (response.status >= 200 && response.status < 300) {
|
|
3098
|
-
|
|
6014
|
+
const buffer = yield response.arrayBuffer();
|
|
6015
|
+
return Account.decode(new Uint8Array(buffer));
|
|
3099
6016
|
} else {
|
|
3100
6017
|
throw response;
|
|
3101
6018
|
}
|
|
3102
|
-
}),
|
|
6019
|
+
})),
|
|
3103
6020
|
new Promise(
|
|
3104
|
-
(_, reject) => setTimeout(reject
|
|
6021
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
3105
6022
|
)
|
|
3106
6023
|
]);
|
|
3107
6024
|
}
|
|
@@ -3283,18 +6200,20 @@ var MezonApi = class {
|
|
|
3283
6200
|
if (bearerToken) {
|
|
3284
6201
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
3285
6202
|
}
|
|
6203
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
3286
6204
|
return Promise.race([
|
|
3287
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
6205
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
3288
6206
|
if (response.status == 204) {
|
|
3289
|
-
return
|
|
6207
|
+
return {};
|
|
3290
6208
|
} else if (response.status >= 200 && response.status < 300) {
|
|
3291
|
-
|
|
6209
|
+
const buffer = yield response.arrayBuffer();
|
|
6210
|
+
return Account.decode(new Uint8Array(buffer));
|
|
3292
6211
|
} else {
|
|
3293
6212
|
throw response;
|
|
3294
6213
|
}
|
|
3295
|
-
}),
|
|
6214
|
+
})),
|
|
3296
6215
|
new Promise(
|
|
3297
|
-
(_, reject) => setTimeout(reject
|
|
6216
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
3298
6217
|
)
|
|
3299
6218
|
]);
|
|
3300
6219
|
}
|
|
@@ -3390,18 +6309,20 @@ var MezonApi = class {
|
|
|
3390
6309
|
if (bearerToken) {
|
|
3391
6310
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
3392
6311
|
}
|
|
6312
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
3393
6313
|
return Promise.race([
|
|
3394
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
6314
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
3395
6315
|
if (response.status == 204) {
|
|
3396
|
-
return
|
|
6316
|
+
return {};
|
|
3397
6317
|
} else if (response.status >= 200 && response.status < 300) {
|
|
3398
|
-
|
|
6318
|
+
const buffer = yield response.arrayBuffer();
|
|
6319
|
+
return Account.decode(new Uint8Array(buffer));
|
|
3399
6320
|
} else {
|
|
3400
6321
|
throw response;
|
|
3401
6322
|
}
|
|
3402
|
-
}),
|
|
6323
|
+
})),
|
|
3403
6324
|
new Promise(
|
|
3404
|
-
(_, reject) => setTimeout(reject
|
|
6325
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
3405
6326
|
)
|
|
3406
6327
|
]);
|
|
3407
6328
|
}
|
|
@@ -3449,18 +6370,20 @@ var MezonApi = class {
|
|
|
3449
6370
|
if (bearerToken) {
|
|
3450
6371
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
3451
6372
|
}
|
|
6373
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
3452
6374
|
return Promise.race([
|
|
3453
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
6375
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
3454
6376
|
if (response.status == 204) {
|
|
3455
|
-
return
|
|
6377
|
+
return {};
|
|
3456
6378
|
} else if (response.status >= 200 && response.status < 300) {
|
|
3457
|
-
|
|
6379
|
+
const buffer = yield response.arrayBuffer();
|
|
6380
|
+
return Account.decode(new Uint8Array(buffer));
|
|
3458
6381
|
} else {
|
|
3459
6382
|
throw response;
|
|
3460
6383
|
}
|
|
3461
|
-
}),
|
|
6384
|
+
})),
|
|
3462
6385
|
new Promise(
|
|
3463
|
-
(_, reject) => setTimeout(reject
|
|
6386
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
3464
6387
|
)
|
|
3465
6388
|
]);
|
|
3466
6389
|
}
|
|
@@ -3475,18 +6398,20 @@ var MezonApi = class {
|
|
|
3475
6398
|
if (bearerToken) {
|
|
3476
6399
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
3477
6400
|
}
|
|
6401
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
3478
6402
|
return Promise.race([
|
|
3479
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
6403
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
3480
6404
|
if (response.status == 204) {
|
|
3481
|
-
return
|
|
6405
|
+
return {};
|
|
3482
6406
|
} else if (response.status >= 200 && response.status < 300) {
|
|
3483
|
-
|
|
6407
|
+
const buffer = yield response.arrayBuffer();
|
|
6408
|
+
return Account.decode(new Uint8Array(buffer));
|
|
3484
6409
|
} else {
|
|
3485
6410
|
throw response;
|
|
3486
6411
|
}
|
|
3487
|
-
}),
|
|
6412
|
+
})),
|
|
3488
6413
|
new Promise(
|
|
3489
|
-
(_, reject) => setTimeout(reject
|
|
6414
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
3490
6415
|
)
|
|
3491
6416
|
]);
|
|
3492
6417
|
}
|
|
@@ -3501,18 +6426,20 @@ var MezonApi = class {
|
|
|
3501
6426
|
if (bearerToken) {
|
|
3502
6427
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
3503
6428
|
}
|
|
6429
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
3504
6430
|
return Promise.race([
|
|
3505
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
6431
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
3506
6432
|
if (response.status == 204) {
|
|
3507
|
-
return
|
|
6433
|
+
return {};
|
|
3508
6434
|
} else if (response.status >= 200 && response.status < 300) {
|
|
3509
|
-
|
|
6435
|
+
const buffer = yield response.arrayBuffer();
|
|
6436
|
+
return Account.decode(new Uint8Array(buffer));
|
|
3510
6437
|
} else {
|
|
3511
6438
|
throw response;
|
|
3512
6439
|
}
|
|
3513
|
-
}),
|
|
6440
|
+
})),
|
|
3514
6441
|
new Promise(
|
|
3515
|
-
(_, reject) => setTimeout(reject
|
|
6442
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
3516
6443
|
)
|
|
3517
6444
|
]);
|
|
3518
6445
|
}
|
|
@@ -3732,18 +6659,20 @@ var MezonApi = class {
|
|
|
3732
6659
|
if (bearerToken) {
|
|
3733
6660
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
3734
6661
|
}
|
|
6662
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
3735
6663
|
return Promise.race([
|
|
3736
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
6664
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
3737
6665
|
if (response.status == 204) {
|
|
3738
|
-
return
|
|
6666
|
+
return {};
|
|
3739
6667
|
} else if (response.status >= 200 && response.status < 300) {
|
|
3740
|
-
|
|
6668
|
+
const buffer = yield response.arrayBuffer();
|
|
6669
|
+
return Account.decode(new Uint8Array(buffer));
|
|
3741
6670
|
} else {
|
|
3742
6671
|
throw response;
|
|
3743
6672
|
}
|
|
3744
|
-
}),
|
|
6673
|
+
})),
|
|
3745
6674
|
new Promise(
|
|
3746
|
-
(_, reject) => setTimeout(reject
|
|
6675
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
3747
6676
|
)
|
|
3748
6677
|
]);
|
|
3749
6678
|
}
|
|
@@ -3907,18 +6836,20 @@ var MezonApi = class {
|
|
|
3907
6836
|
if (bearerToken) {
|
|
3908
6837
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
3909
6838
|
}
|
|
6839
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
3910
6840
|
return Promise.race([
|
|
3911
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
6841
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
3912
6842
|
if (response.status == 204) {
|
|
3913
|
-
return
|
|
6843
|
+
return {};
|
|
3914
6844
|
} else if (response.status >= 200 && response.status < 300) {
|
|
3915
|
-
|
|
6845
|
+
const buffer = yield response.arrayBuffer();
|
|
6846
|
+
return Account.decode(new Uint8Array(buffer));
|
|
3916
6847
|
} else {
|
|
3917
6848
|
throw response;
|
|
3918
6849
|
}
|
|
3919
|
-
}),
|
|
6850
|
+
})),
|
|
3920
6851
|
new Promise(
|
|
3921
|
-
(_, reject) => setTimeout(reject
|
|
6852
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
3922
6853
|
)
|
|
3923
6854
|
]);
|
|
3924
6855
|
}
|
|
@@ -4196,18 +7127,20 @@ var MezonApi = class {
|
|
|
4196
7127
|
if (bearerToken) {
|
|
4197
7128
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
4198
7129
|
}
|
|
7130
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
4199
7131
|
return Promise.race([
|
|
4200
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
7132
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
4201
7133
|
if (response.status == 204) {
|
|
4202
|
-
return
|
|
7134
|
+
return {};
|
|
4203
7135
|
} else if (response.status >= 200 && response.status < 300) {
|
|
4204
|
-
|
|
7136
|
+
const buffer = yield response.arrayBuffer();
|
|
7137
|
+
return Account.decode(new Uint8Array(buffer));
|
|
4205
7138
|
} else {
|
|
4206
7139
|
throw response;
|
|
4207
7140
|
}
|
|
4208
|
-
}),
|
|
7141
|
+
})),
|
|
4209
7142
|
new Promise(
|
|
4210
|
-
(_, reject) => setTimeout(reject
|
|
7143
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
4211
7144
|
)
|
|
4212
7145
|
]);
|
|
4213
7146
|
}
|
|
@@ -4224,18 +7157,20 @@ var MezonApi = class {
|
|
|
4224
7157
|
if (bearerToken) {
|
|
4225
7158
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
4226
7159
|
}
|
|
7160
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
4227
7161
|
return Promise.race([
|
|
4228
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
7162
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
4229
7163
|
if (response.status == 204) {
|
|
4230
|
-
return
|
|
7164
|
+
return {};
|
|
4231
7165
|
} else if (response.status >= 200 && response.status < 300) {
|
|
4232
|
-
|
|
7166
|
+
const buffer = yield response.arrayBuffer();
|
|
7167
|
+
return Account.decode(new Uint8Array(buffer));
|
|
4233
7168
|
} else {
|
|
4234
7169
|
throw response;
|
|
4235
7170
|
}
|
|
4236
|
-
}),
|
|
7171
|
+
})),
|
|
4237
7172
|
new Promise(
|
|
4238
|
-
(_, reject) => setTimeout(reject
|
|
7173
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
4239
7174
|
)
|
|
4240
7175
|
]);
|
|
4241
7176
|
}
|
|
@@ -4281,18 +7216,20 @@ var MezonApi = class {
|
|
|
4281
7216
|
if (bearerToken) {
|
|
4282
7217
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
4283
7218
|
}
|
|
7219
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
4284
7220
|
return Promise.race([
|
|
4285
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
7221
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
4286
7222
|
if (response.status == 204) {
|
|
4287
|
-
return
|
|
7223
|
+
return {};
|
|
4288
7224
|
} else if (response.status >= 200 && response.status < 300) {
|
|
4289
|
-
|
|
7225
|
+
const buffer = yield response.arrayBuffer();
|
|
7226
|
+
return Account.decode(new Uint8Array(buffer));
|
|
4290
7227
|
} else {
|
|
4291
7228
|
throw response;
|
|
4292
7229
|
}
|
|
4293
|
-
}),
|
|
7230
|
+
})),
|
|
4294
7231
|
new Promise(
|
|
4295
|
-
(_, reject) => setTimeout(reject
|
|
7232
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
4296
7233
|
)
|
|
4297
7234
|
]);
|
|
4298
7235
|
}
|
|
@@ -4528,18 +7465,20 @@ var MezonApi = class {
|
|
|
4528
7465
|
if (bearerToken) {
|
|
4529
7466
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
4530
7467
|
}
|
|
7468
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
4531
7469
|
return Promise.race([
|
|
4532
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
7470
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
4533
7471
|
if (response.status == 204) {
|
|
4534
|
-
return
|
|
7472
|
+
return {};
|
|
4535
7473
|
} else if (response.status >= 200 && response.status < 300) {
|
|
4536
|
-
|
|
7474
|
+
const buffer = yield response.arrayBuffer();
|
|
7475
|
+
return Account.decode(new Uint8Array(buffer));
|
|
4537
7476
|
} else {
|
|
4538
7477
|
throw response;
|
|
4539
7478
|
}
|
|
4540
|
-
}),
|
|
7479
|
+
})),
|
|
4541
7480
|
new Promise(
|
|
4542
|
-
(_, reject) => setTimeout(reject
|
|
7481
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
4543
7482
|
)
|
|
4544
7483
|
]);
|
|
4545
7484
|
}
|
|
@@ -4706,18 +7645,20 @@ var MezonApi = class {
|
|
|
4706
7645
|
if (bearerToken) {
|
|
4707
7646
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
4708
7647
|
}
|
|
7648
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
4709
7649
|
return Promise.race([
|
|
4710
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
7650
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
4711
7651
|
if (response.status == 204) {
|
|
4712
|
-
return
|
|
7652
|
+
return {};
|
|
4713
7653
|
} else if (response.status >= 200 && response.status < 300) {
|
|
4714
|
-
|
|
7654
|
+
const buffer = yield response.arrayBuffer();
|
|
7655
|
+
return Account.decode(new Uint8Array(buffer));
|
|
4715
7656
|
} else {
|
|
4716
7657
|
throw response;
|
|
4717
7658
|
}
|
|
4718
|
-
}),
|
|
7659
|
+
})),
|
|
4719
7660
|
new Promise(
|
|
4720
|
-
(_, reject) => setTimeout(reject
|
|
7661
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
4721
7662
|
)
|
|
4722
7663
|
]);
|
|
4723
7664
|
}
|
|
@@ -4741,18 +7682,20 @@ var MezonApi = class {
|
|
|
4741
7682
|
if (bearerToken) {
|
|
4742
7683
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
4743
7684
|
}
|
|
7685
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
4744
7686
|
return Promise.race([
|
|
4745
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
7687
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
4746
7688
|
if (response.status == 204) {
|
|
4747
|
-
return
|
|
7689
|
+
return {};
|
|
4748
7690
|
} else if (response.status >= 200 && response.status < 300) {
|
|
4749
|
-
|
|
7691
|
+
const buffer = yield response.arrayBuffer();
|
|
7692
|
+
return Account.decode(new Uint8Array(buffer));
|
|
4750
7693
|
} else {
|
|
4751
7694
|
throw response;
|
|
4752
7695
|
}
|
|
4753
|
-
}),
|
|
7696
|
+
})),
|
|
4754
7697
|
new Promise(
|
|
4755
|
-
(_, reject) => setTimeout(reject
|
|
7698
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
4756
7699
|
)
|
|
4757
7700
|
]);
|
|
4758
7701
|
}
|
|
@@ -4775,18 +7718,20 @@ var MezonApi = class {
|
|
|
4775
7718
|
if (bearerToken) {
|
|
4776
7719
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
4777
7720
|
}
|
|
7721
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
4778
7722
|
return Promise.race([
|
|
4779
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
7723
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
4780
7724
|
if (response.status == 204) {
|
|
4781
|
-
return
|
|
7725
|
+
return {};
|
|
4782
7726
|
} else if (response.status >= 200 && response.status < 300) {
|
|
4783
|
-
|
|
7727
|
+
const buffer = yield response.arrayBuffer();
|
|
7728
|
+
return Account.decode(new Uint8Array(buffer));
|
|
4784
7729
|
} else {
|
|
4785
7730
|
throw response;
|
|
4786
7731
|
}
|
|
4787
|
-
}),
|
|
7732
|
+
})),
|
|
4788
7733
|
new Promise(
|
|
4789
|
-
(_, reject) => setTimeout(reject
|
|
7734
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
4790
7735
|
)
|
|
4791
7736
|
]);
|
|
4792
7737
|
}
|
|
@@ -5068,18 +8013,20 @@ var MezonApi = class {
|
|
|
5068
8013
|
if (bearerToken) {
|
|
5069
8014
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
5070
8015
|
}
|
|
8016
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
5071
8017
|
return Promise.race([
|
|
5072
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
8018
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
5073
8019
|
if (response.status == 204) {
|
|
5074
|
-
return
|
|
8020
|
+
return {};
|
|
5075
8021
|
} else if (response.status >= 200 && response.status < 300) {
|
|
5076
|
-
|
|
8022
|
+
const buffer = yield response.arrayBuffer();
|
|
8023
|
+
return Account.decode(new Uint8Array(buffer));
|
|
5077
8024
|
} else {
|
|
5078
8025
|
throw response;
|
|
5079
8026
|
}
|
|
5080
|
-
}),
|
|
8027
|
+
})),
|
|
5081
8028
|
new Promise(
|
|
5082
|
-
(_, reject) => setTimeout(reject
|
|
8029
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
5083
8030
|
)
|
|
5084
8031
|
]);
|
|
5085
8032
|
}
|
|
@@ -5094,18 +8041,20 @@ var MezonApi = class {
|
|
|
5094
8041
|
if (bearerToken) {
|
|
5095
8042
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
5096
8043
|
}
|
|
8044
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
5097
8045
|
return Promise.race([
|
|
5098
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
8046
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
5099
8047
|
if (response.status == 204) {
|
|
5100
|
-
return
|
|
8048
|
+
return {};
|
|
5101
8049
|
} else if (response.status >= 200 && response.status < 300) {
|
|
5102
|
-
|
|
8050
|
+
const buffer = yield response.arrayBuffer();
|
|
8051
|
+
return Account.decode(new Uint8Array(buffer));
|
|
5103
8052
|
} else {
|
|
5104
8053
|
throw response;
|
|
5105
8054
|
}
|
|
5106
|
-
}),
|
|
8055
|
+
})),
|
|
5107
8056
|
new Promise(
|
|
5108
|
-
(_, reject) => setTimeout(reject
|
|
8057
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
5109
8058
|
)
|
|
5110
8059
|
]);
|
|
5111
8060
|
}
|
|
@@ -5156,18 +8105,20 @@ var MezonApi = class {
|
|
|
5156
8105
|
if (bearerToken) {
|
|
5157
8106
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
5158
8107
|
}
|
|
8108
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
5159
8109
|
return Promise.race([
|
|
5160
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
8110
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
5161
8111
|
if (response.status == 204) {
|
|
5162
|
-
return
|
|
8112
|
+
return {};
|
|
5163
8113
|
} else if (response.status >= 200 && response.status < 300) {
|
|
5164
|
-
|
|
8114
|
+
const buffer = yield response.arrayBuffer();
|
|
8115
|
+
return Account.decode(new Uint8Array(buffer));
|
|
5165
8116
|
} else {
|
|
5166
8117
|
throw response;
|
|
5167
8118
|
}
|
|
5168
|
-
}),
|
|
8119
|
+
})),
|
|
5169
8120
|
new Promise(
|
|
5170
|
-
(_, reject) => setTimeout(reject
|
|
8121
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
5171
8122
|
)
|
|
5172
8123
|
]);
|
|
5173
8124
|
}
|
|
@@ -5181,18 +8132,20 @@ var MezonApi = class {
|
|
|
5181
8132
|
if (bearerToken) {
|
|
5182
8133
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
5183
8134
|
}
|
|
8135
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
5184
8136
|
return Promise.race([
|
|
5185
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
8137
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
5186
8138
|
if (response.status == 204) {
|
|
5187
|
-
return
|
|
8139
|
+
return {};
|
|
5188
8140
|
} else if (response.status >= 200 && response.status < 300) {
|
|
5189
|
-
|
|
8141
|
+
const buffer = yield response.arrayBuffer();
|
|
8142
|
+
return Account.decode(new Uint8Array(buffer));
|
|
5190
8143
|
} else {
|
|
5191
8144
|
throw response;
|
|
5192
8145
|
}
|
|
5193
|
-
}),
|
|
8146
|
+
})),
|
|
5194
8147
|
new Promise(
|
|
5195
|
-
(_, reject) => setTimeout(reject
|
|
8148
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
5196
8149
|
)
|
|
5197
8150
|
]);
|
|
5198
8151
|
}
|
|
@@ -5239,18 +8192,20 @@ var MezonApi = class {
|
|
|
5239
8192
|
if (bearerToken) {
|
|
5240
8193
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
5241
8194
|
}
|
|
8195
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
5242
8196
|
return Promise.race([
|
|
5243
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
8197
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
5244
8198
|
if (response.status == 204) {
|
|
5245
|
-
return
|
|
8199
|
+
return {};
|
|
5246
8200
|
} else if (response.status >= 200 && response.status < 300) {
|
|
5247
|
-
|
|
8201
|
+
const buffer = yield response.arrayBuffer();
|
|
8202
|
+
return Account.decode(new Uint8Array(buffer));
|
|
5248
8203
|
} else {
|
|
5249
8204
|
throw response;
|
|
5250
8205
|
}
|
|
5251
|
-
}),
|
|
8206
|
+
})),
|
|
5252
8207
|
new Promise(
|
|
5253
|
-
(_, reject) => setTimeout(reject
|
|
8208
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
5254
8209
|
)
|
|
5255
8210
|
]);
|
|
5256
8211
|
}
|
|
@@ -5413,18 +8368,20 @@ var MezonApi = class {
|
|
|
5413
8368
|
if (bearerToken) {
|
|
5414
8369
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
5415
8370
|
}
|
|
8371
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
5416
8372
|
return Promise.race([
|
|
5417
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
8373
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
5418
8374
|
if (response.status == 204) {
|
|
5419
|
-
return
|
|
8375
|
+
return {};
|
|
5420
8376
|
} else if (response.status >= 200 && response.status < 300) {
|
|
5421
|
-
|
|
8377
|
+
const buffer = yield response.arrayBuffer();
|
|
8378
|
+
return Account.decode(new Uint8Array(buffer));
|
|
5422
8379
|
} else {
|
|
5423
8380
|
throw response;
|
|
5424
8381
|
}
|
|
5425
|
-
}),
|
|
8382
|
+
})),
|
|
5426
8383
|
new Promise(
|
|
5427
|
-
(_, reject) => setTimeout(reject
|
|
8384
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
5428
8385
|
)
|
|
5429
8386
|
]);
|
|
5430
8387
|
}
|
|
@@ -5638,18 +8595,20 @@ var MezonApi = class {
|
|
|
5638
8595
|
if (bearerToken) {
|
|
5639
8596
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
5640
8597
|
}
|
|
8598
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
5641
8599
|
return Promise.race([
|
|
5642
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
8600
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
5643
8601
|
if (response.status == 204) {
|
|
5644
|
-
return
|
|
8602
|
+
return {};
|
|
5645
8603
|
} else if (response.status >= 200 && response.status < 300) {
|
|
5646
|
-
|
|
8604
|
+
const buffer = yield response.arrayBuffer();
|
|
8605
|
+
return Account.decode(new Uint8Array(buffer));
|
|
5647
8606
|
} else {
|
|
5648
8607
|
throw response;
|
|
5649
8608
|
}
|
|
5650
|
-
}),
|
|
8609
|
+
})),
|
|
5651
8610
|
new Promise(
|
|
5652
|
-
(_, reject) => setTimeout(reject
|
|
8611
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
5653
8612
|
)
|
|
5654
8613
|
]);
|
|
5655
8614
|
}
|
|
@@ -6089,18 +9048,20 @@ var MezonApi = class {
|
|
|
6089
9048
|
if (bearerToken) {
|
|
6090
9049
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
6091
9050
|
}
|
|
9051
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
6092
9052
|
return Promise.race([
|
|
6093
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
9053
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
6094
9054
|
if (response.status == 204) {
|
|
6095
|
-
return
|
|
9055
|
+
return {};
|
|
6096
9056
|
} else if (response.status >= 200 && response.status < 300) {
|
|
6097
|
-
|
|
9057
|
+
const buffer = yield response.arrayBuffer();
|
|
9058
|
+
return Account.decode(new Uint8Array(buffer));
|
|
6098
9059
|
} else {
|
|
6099
9060
|
throw response;
|
|
6100
9061
|
}
|
|
6101
|
-
}),
|
|
9062
|
+
})),
|
|
6102
9063
|
new Promise(
|
|
6103
|
-
(_, reject) => setTimeout(reject
|
|
9064
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
6104
9065
|
)
|
|
6105
9066
|
]);
|
|
6106
9067
|
}
|
|
@@ -6408,18 +9369,20 @@ var MezonApi = class {
|
|
|
6408
9369
|
if (bearerToken) {
|
|
6409
9370
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
6410
9371
|
}
|
|
9372
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
6411
9373
|
return Promise.race([
|
|
6412
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
9374
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
6413
9375
|
if (response.status == 204) {
|
|
6414
|
-
return
|
|
9376
|
+
return {};
|
|
6415
9377
|
} else if (response.status >= 200 && response.status < 300) {
|
|
6416
|
-
|
|
9378
|
+
const buffer = yield response.arrayBuffer();
|
|
9379
|
+
return Account.decode(new Uint8Array(buffer));
|
|
6417
9380
|
} else {
|
|
6418
9381
|
throw response;
|
|
6419
9382
|
}
|
|
6420
|
-
}),
|
|
9383
|
+
})),
|
|
6421
9384
|
new Promise(
|
|
6422
|
-
(_, reject) => setTimeout(reject
|
|
9385
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
6423
9386
|
)
|
|
6424
9387
|
]);
|
|
6425
9388
|
}
|
|
@@ -6930,18 +9893,20 @@ var MezonApi = class {
|
|
|
6930
9893
|
if (bearerToken) {
|
|
6931
9894
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
6932
9895
|
}
|
|
9896
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
6933
9897
|
return Promise.race([
|
|
6934
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
9898
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
6935
9899
|
if (response.status == 204) {
|
|
6936
|
-
return
|
|
9900
|
+
return {};
|
|
6937
9901
|
} else if (response.status >= 200 && response.status < 300) {
|
|
6938
|
-
|
|
9902
|
+
const buffer = yield response.arrayBuffer();
|
|
9903
|
+
return Account.decode(new Uint8Array(buffer));
|
|
6939
9904
|
} else {
|
|
6940
9905
|
throw response;
|
|
6941
9906
|
}
|
|
6942
|
-
}),
|
|
9907
|
+
})),
|
|
6943
9908
|
new Promise(
|
|
6944
|
-
(_, reject) => setTimeout(reject
|
|
9909
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
6945
9910
|
)
|
|
6946
9911
|
]);
|
|
6947
9912
|
}
|
|
@@ -9290,12 +12255,16 @@ var Client = class {
|
|
|
9290
12255
|
lang_tag: gu.user.lang_tag,
|
|
9291
12256
|
location: gu.user.location,
|
|
9292
12257
|
online: gu.user.online,
|
|
9293
|
-
is_mobile: (_a = gu.user) == null ? void 0 : _a.is_mobile,
|
|
12258
|
+
is_mobile: ((_a = gu.user) == null ? void 0 : _a.is_mobile) || false,
|
|
9294
12259
|
timezone: gu.user.timezone,
|
|
9295
12260
|
update_time: gu.user.update_time,
|
|
9296
12261
|
username: gu.user.username,
|
|
9297
12262
|
user_status: gu.user.user_status,
|
|
9298
|
-
status: gu.user.status
|
|
12263
|
+
status: gu.user.status,
|
|
12264
|
+
about_me: gu.user.about_me,
|
|
12265
|
+
mezon_id: gu.user.mezon_id,
|
|
12266
|
+
list_nick_names: gu.user.list_nick_names,
|
|
12267
|
+
phone_number: gu.user.phone_number
|
|
9299
12268
|
},
|
|
9300
12269
|
role_id: gu.role_id,
|
|
9301
12270
|
clan_nick: gu.clan_nick,
|
|
@@ -9540,9 +12509,13 @@ var Client = class {
|
|
|
9540
12509
|
timezone: f.user.timezone,
|
|
9541
12510
|
update_time: f.user.update_time,
|
|
9542
12511
|
username: f.user.username,
|
|
9543
|
-
is_mobile: (_a = f.user) == null ? void 0 : _a.is_mobile,
|
|
12512
|
+
is_mobile: ((_a = f.user) == null ? void 0 : _a.is_mobile) || false,
|
|
9544
12513
|
user_status: f.user.user_status,
|
|
9545
|
-
status: f.user.status
|
|
12514
|
+
status: f.user.status,
|
|
12515
|
+
mezon_id: f.user.mezon_id,
|
|
12516
|
+
list_nick_names: f.user.list_nick_names,
|
|
12517
|
+
phone_number: f.user.phone_number,
|
|
12518
|
+
about_me: f.user.about_me
|
|
9546
12519
|
},
|
|
9547
12520
|
state: f.state,
|
|
9548
12521
|
source_id: f.source_id
|