@candypoets/nipworker 0.94.0 → 0.95.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/NarrowTypes.js +91 -87
- package/dist/cache/index.js +53 -53
- package/dist/cache/pkg/cache.d.ts +2 -2
- package/dist/cache/pkg/cache_bg.wasm.d.ts +2 -2
- package/dist/connections/index.js +13 -13
- package/dist/connections/pkg/connections.d.ts +5 -5
- package/dist/connections/pkg/connections_bg.wasm.d.ts +5 -5
- package/dist/connections/proxy.js +1 -1
- package/dist/connections/proxy.js.map +4 -4
- package/dist/crypto/index.js +40 -40
- package/dist/generated/nostr/fb/content-block.d.ts +3 -2
- package/dist/generated/nostr/fb/content-block.d.ts.map +1 -1
- package/dist/generated/nostr/fb/content-data.d.ts +5 -3
- package/dist/generated/nostr/fb/content-data.d.ts.map +1 -1
- package/dist/generated/nostr/fb/emoji-data.d.ts +30 -0
- package/dist/generated/nostr/fb/emoji-data.d.ts.map +1 -0
- package/dist/generated/nostr/fb/kind1018-parsed.d.ts +37 -0
- package/dist/generated/nostr/fb/kind1018-parsed.d.ts.map +1 -0
- package/dist/generated/nostr/fb/kind1068-parsed.d.ts +58 -0
- package/dist/generated/nostr/fb/kind1068-parsed.d.ts.map +1 -0
- package/dist/generated/nostr/fb/parsed-data-union.d.ts +2 -0
- package/dist/generated/nostr/fb/parsed-data-union.d.ts.map +1 -1
- package/dist/generated/nostr/fb/parsed-data.d.ts +17 -13
- package/dist/generated/nostr/fb/parsed-data.d.ts.map +1 -1
- package/dist/generated/nostr/fb/parsed-event.d.ts +4 -2
- package/dist/generated/nostr/fb/parsed-event.d.ts.map +1 -1
- package/dist/generated/nostr/fb/poll-option.d.ts +26 -0
- package/dist/generated/nostr/fb/poll-option.d.ts.map +1 -0
- package/dist/generated/nostr/fb/poll-type.d.ts +5 -0
- package/dist/generated/nostr/fb/poll-type.d.ts.map +1 -0
- package/dist/generated/nostr/fb.d.ts +5 -0
- package/dist/generated/nostr/fb.d.ts.map +1 -1
- package/dist/index.js +159 -150
- package/dist/index2.js +31 -31
- package/dist/lib/ConnectionTracker.d.ts +2 -0
- package/dist/lib/ConnectionTracker.d.ts.map +1 -1
- package/dist/lib/NarrowTypes.d.ts +2 -1
- package/dist/lib/NarrowTypes.d.ts.map +1 -1
- package/dist/parser/index.js +305 -305
- package/dist/relayProxyServer.js +298 -352
- package/dist/utils.js +91 -86
- package/dist/worker-message.js +1148 -759
- package/package.json +1 -1
package/dist/worker-message.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as c from "flatbuffers";
|
|
2
|
-
class
|
|
2
|
+
class Tt {
|
|
3
3
|
constructor() {
|
|
4
4
|
this.bb = null, this.bb_pos = 0;
|
|
5
5
|
}
|
|
@@ -7,10 +7,10 @@ class St {
|
|
|
7
7
|
return this.bb_pos = t, this.bb = s, this;
|
|
8
8
|
}
|
|
9
9
|
static getRootAsBufferFull(t, s) {
|
|
10
|
-
return (s || new
|
|
10
|
+
return (s || new Tt()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
11
11
|
}
|
|
12
12
|
static getSizePrefixedRootAsBufferFull(t, s) {
|
|
13
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
13
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new Tt()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
14
14
|
}
|
|
15
15
|
droppedEvents() {
|
|
16
16
|
const t = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -26,10 +26,10 @@ class St {
|
|
|
26
26
|
return t.endObject();
|
|
27
27
|
}
|
|
28
28
|
static createBufferFull(t, s) {
|
|
29
|
-
return
|
|
29
|
+
return Tt.startBufferFull(t), Tt.addDroppedEvents(t, s), Tt.endBufferFull(t);
|
|
30
30
|
}
|
|
31
31
|
unpack() {
|
|
32
|
-
return new
|
|
32
|
+
return new is(
|
|
33
33
|
this.droppedEvents()
|
|
34
34
|
);
|
|
35
35
|
}
|
|
@@ -37,18 +37,18 @@ class St {
|
|
|
37
37
|
t.droppedEvents = this.droppedEvents();
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
|
-
class
|
|
40
|
+
class is {
|
|
41
41
|
constructor(t = 0) {
|
|
42
42
|
this.droppedEvents = t;
|
|
43
43
|
}
|
|
44
44
|
pack(t) {
|
|
45
|
-
return
|
|
45
|
+
return Tt.createBufferFull(
|
|
46
46
|
t,
|
|
47
47
|
this.droppedEvents
|
|
48
48
|
);
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
|
-
class
|
|
51
|
+
class X {
|
|
52
52
|
constructor() {
|
|
53
53
|
this.bb = null, this.bb_pos = 0;
|
|
54
54
|
}
|
|
@@ -56,10 +56,10 @@ class Z {
|
|
|
56
56
|
return this.bb_pos = t, this.bb = s, this;
|
|
57
57
|
}
|
|
58
58
|
static getRootAsStringVec(t, s) {
|
|
59
|
-
return (s || new
|
|
59
|
+
return (s || new X()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
60
60
|
}
|
|
61
61
|
static getSizePrefixedRootAsStringVec(t, s) {
|
|
62
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
62
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new X()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
63
63
|
}
|
|
64
64
|
items(t, s) {
|
|
65
65
|
const e = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -88,10 +88,10 @@ class Z {
|
|
|
88
88
|
return t.endObject();
|
|
89
89
|
}
|
|
90
90
|
static createStringVec(t, s) {
|
|
91
|
-
return
|
|
91
|
+
return X.startStringVec(t), X.addItems(t, s), X.endStringVec(t);
|
|
92
92
|
}
|
|
93
93
|
unpack() {
|
|
94
|
-
return new
|
|
94
|
+
return new ns(
|
|
95
95
|
this.bb.createScalarList(this.items.bind(this), this.itemsLength())
|
|
96
96
|
);
|
|
97
97
|
}
|
|
@@ -99,19 +99,19 @@ class Z {
|
|
|
99
99
|
t.items = this.bb.createScalarList(this.items.bind(this), this.itemsLength());
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
|
-
class
|
|
102
|
+
class ns {
|
|
103
103
|
constructor(t = []) {
|
|
104
104
|
this.items = t;
|
|
105
105
|
}
|
|
106
106
|
pack(t) {
|
|
107
|
-
const s =
|
|
108
|
-
return
|
|
107
|
+
const s = X.createItemsVector(t, t.createObjectOffsetList(this.items));
|
|
108
|
+
return X.createStringVec(
|
|
109
109
|
t,
|
|
110
110
|
s
|
|
111
111
|
);
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
|
-
class
|
|
114
|
+
class j {
|
|
115
115
|
constructor() {
|
|
116
116
|
this.bb = null, this.bb_pos = 0;
|
|
117
117
|
}
|
|
@@ -119,10 +119,10 @@ class w {
|
|
|
119
119
|
return this.bb_pos = t, this.bb = s, this;
|
|
120
120
|
}
|
|
121
121
|
static getRootAsNostrEvent(t, s) {
|
|
122
|
-
return (s || new
|
|
122
|
+
return (s || new j()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
123
123
|
}
|
|
124
124
|
static getSizePrefixedRootAsNostrEvent(t, s) {
|
|
125
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
125
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new j()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
126
126
|
}
|
|
127
127
|
id(t) {
|
|
128
128
|
const s = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -142,7 +142,7 @@ class w {
|
|
|
142
142
|
}
|
|
143
143
|
tags(t, s) {
|
|
144
144
|
const e = this.bb.__offset(this.bb_pos, 12);
|
|
145
|
-
return e ? (s || new
|
|
145
|
+
return e ? (s || new X()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + e) + t * 4), this.bb) : null;
|
|
146
146
|
}
|
|
147
147
|
tagsLength() {
|
|
148
148
|
const t = this.bb.__offset(this.bb_pos, 12);
|
|
@@ -194,10 +194,10 @@ class w {
|
|
|
194
194
|
return t.requiredField(s, 4), t.requiredField(s, 6), t.requiredField(s, 10), t.requiredField(s, 12), t.requiredField(s, 16), s;
|
|
195
195
|
}
|
|
196
196
|
static createNostrEvent(t, s, e, i, o, r, a, h) {
|
|
197
|
-
return
|
|
197
|
+
return j.startNostrEvent(t), j.addId(t, s), j.addPubkey(t, e), j.addKind(t, i), j.addContent(t, o), j.addTags(t, r), j.addCreatedAt(t, a), j.addSig(t, h), j.endNostrEvent(t);
|
|
198
198
|
}
|
|
199
199
|
unpack() {
|
|
200
|
-
return new
|
|
200
|
+
return new os(
|
|
201
201
|
this.id(),
|
|
202
202
|
this.pubkey(),
|
|
203
203
|
this.kind(),
|
|
@@ -211,13 +211,13 @@ class w {
|
|
|
211
211
|
t.id = this.id(), t.pubkey = this.pubkey(), t.kind = this.kind(), t.content = this.content(), t.tags = this.bb.createObjList(this.tags.bind(this), this.tagsLength()), t.createdAt = this.createdAt(), t.sig = this.sig();
|
|
212
212
|
}
|
|
213
213
|
}
|
|
214
|
-
class
|
|
214
|
+
class os {
|
|
215
215
|
constructor(t = null, s = null, e = 0, i = null, o = [], r = 0, a = null) {
|
|
216
216
|
this.id = t, this.pubkey = s, this.kind = e, this.content = i, this.tags = o, this.createdAt = r, this.sig = a;
|
|
217
217
|
}
|
|
218
218
|
pack(t) {
|
|
219
|
-
const s = this.id !== null ? t.createString(this.id) : 0, e = this.pubkey !== null ? t.createString(this.pubkey) : 0, i = this.content !== null ? t.createString(this.content) : 0, o =
|
|
220
|
-
return
|
|
219
|
+
const s = this.id !== null ? t.createString(this.id) : 0, e = this.pubkey !== null ? t.createString(this.pubkey) : 0, i = this.content !== null ? t.createString(this.content) : 0, o = j.createTagsVector(t, t.createObjectOffsetList(this.tags)), r = this.sig !== null ? t.createString(this.sig) : 0;
|
|
220
|
+
return j.createNostrEvent(
|
|
221
221
|
t,
|
|
222
222
|
s,
|
|
223
223
|
e,
|
|
@@ -388,11 +388,11 @@ class p {
|
|
|
388
388
|
static endKind0Parsed(t) {
|
|
389
389
|
return t.endObject();
|
|
390
390
|
}
|
|
391
|
-
static createKind0Parsed(t, s, e, i, o, r, a, h, d, b, l, u, y,
|
|
392
|
-
return p.startKind0Parsed(t), p.addPubkey(t, s), p.addName(t, e), p.addDisplayName(t, i), p.addPicture(t, o), p.addBanner(t, r), p.addAbout(t, a), p.addWebsite(t, h), p.addNip05(t, d), p.addLud06(t, b), p.addLud16(t, l), p.addGithub(t, u), p.addTwitter(t, y), p.addMastodon(t,
|
|
391
|
+
static createKind0Parsed(t, s, e, i, o, r, a, h, d, b, l, u, y, I, V, K, U, J, $, tt, It) {
|
|
392
|
+
return p.startKind0Parsed(t), p.addPubkey(t, s), p.addName(t, e), p.addDisplayName(t, i), p.addPicture(t, o), p.addBanner(t, r), p.addAbout(t, a), p.addWebsite(t, h), p.addNip05(t, d), p.addLud06(t, b), p.addLud16(t, l), p.addGithub(t, u), p.addTwitter(t, y), p.addMastodon(t, I), p.addNostr(t, V), p.addDisplayNameAlt(t, K), p.addUsername(t, U), p.addBio(t, J), p.addImage(t, $), p.addAvatar(t, tt), p.addBackground(t, It), p.endKind0Parsed(t);
|
|
393
393
|
}
|
|
394
394
|
unpack() {
|
|
395
|
-
return new
|
|
395
|
+
return new rs(
|
|
396
396
|
this.pubkey(),
|
|
397
397
|
this.name(),
|
|
398
398
|
this.displayName(),
|
|
@@ -419,12 +419,12 @@ class p {
|
|
|
419
419
|
t.pubkey = this.pubkey(), t.name = this.name(), t.displayName = this.displayName(), t.picture = this.picture(), t.banner = this.banner(), t.about = this.about(), t.website = this.website(), t.nip05 = this.nip05(), t.lud06 = this.lud06(), t.lud16 = this.lud16(), t.github = this.github(), t.twitter = this.twitter(), t.mastodon = this.mastodon(), t.nostr = this.nostr(), t.displayNameAlt = this.displayNameAlt(), t.username = this.username(), t.bio = this.bio(), t.image = this.image(), t.avatar = this.avatar(), t.background = this.background();
|
|
420
420
|
}
|
|
421
421
|
}
|
|
422
|
-
class
|
|
423
|
-
constructor(t = null, s = null, e = null, i = null, o = null, r = null, a = null, h = null, d = null, b = null, l = null, u = null, y = null,
|
|
424
|
-
this.pubkey = t, this.name = s, this.displayName = e, this.picture = i, this.banner = o, this.about = r, this.website = a, this.nip05 = h, this.lud06 = d, this.lud16 = b, this.github = l, this.twitter = u, this.mastodon = y, this.nostr =
|
|
422
|
+
class rs {
|
|
423
|
+
constructor(t = null, s = null, e = null, i = null, o = null, r = null, a = null, h = null, d = null, b = null, l = null, u = null, y = null, I = null, V = null, K = null, U = null, J = null, $ = null, tt = null) {
|
|
424
|
+
this.pubkey = t, this.name = s, this.displayName = e, this.picture = i, this.banner = o, this.about = r, this.website = a, this.nip05 = h, this.lud06 = d, this.lud16 = b, this.github = l, this.twitter = u, this.mastodon = y, this.nostr = I, this.displayNameAlt = V, this.username = K, this.bio = U, this.image = J, this.avatar = $, this.background = tt;
|
|
425
425
|
}
|
|
426
426
|
pack(t) {
|
|
427
|
-
const s = this.pubkey !== null ? t.createString(this.pubkey) : 0, e = this.name !== null ? t.createString(this.name) : 0, i = this.displayName !== null ? t.createString(this.displayName) : 0, o = this.picture !== null ? t.createString(this.picture) : 0, r = this.banner !== null ? t.createString(this.banner) : 0, a = this.about !== null ? t.createString(this.about) : 0, h = this.website !== null ? t.createString(this.website) : 0, d = this.nip05 !== null ? t.createString(this.nip05) : 0, b = this.lud06 !== null ? t.createString(this.lud06) : 0, l = this.lud16 !== null ? t.createString(this.lud16) : 0, u = this.github !== null ? t.createString(this.github) : 0, y = this.twitter !== null ? t.createString(this.twitter) : 0,
|
|
427
|
+
const s = this.pubkey !== null ? t.createString(this.pubkey) : 0, e = this.name !== null ? t.createString(this.name) : 0, i = this.displayName !== null ? t.createString(this.displayName) : 0, o = this.picture !== null ? t.createString(this.picture) : 0, r = this.banner !== null ? t.createString(this.banner) : 0, a = this.about !== null ? t.createString(this.about) : 0, h = this.website !== null ? t.createString(this.website) : 0, d = this.nip05 !== null ? t.createString(this.nip05) : 0, b = this.lud06 !== null ? t.createString(this.lud06) : 0, l = this.lud16 !== null ? t.createString(this.lud16) : 0, u = this.github !== null ? t.createString(this.github) : 0, y = this.twitter !== null ? t.createString(this.twitter) : 0, I = this.mastodon !== null ? t.createString(this.mastodon) : 0, V = this.nostr !== null ? t.createString(this.nostr) : 0, K = this.displayNameAlt !== null ? t.createString(this.displayNameAlt) : 0, U = this.username !== null ? t.createString(this.username) : 0, J = this.bio !== null ? t.createString(this.bio) : 0, $ = this.image !== null ? t.createString(this.image) : 0, tt = this.avatar !== null ? t.createString(this.avatar) : 0, It = this.background !== null ? t.createString(this.background) : 0;
|
|
428
428
|
return p.createKind0Parsed(
|
|
429
429
|
t,
|
|
430
430
|
s,
|
|
@@ -439,18 +439,18 @@ class ss {
|
|
|
439
439
|
l,
|
|
440
440
|
u,
|
|
441
441
|
y,
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
Q,
|
|
447
|
-
Y,
|
|
442
|
+
I,
|
|
443
|
+
V,
|
|
444
|
+
K,
|
|
445
|
+
U,
|
|
448
446
|
J,
|
|
449
|
-
|
|
447
|
+
$,
|
|
448
|
+
tt,
|
|
449
|
+
It
|
|
450
450
|
);
|
|
451
451
|
}
|
|
452
452
|
}
|
|
453
|
-
class
|
|
453
|
+
class ct {
|
|
454
454
|
constructor() {
|
|
455
455
|
this.bb = null, this.bb_pos = 0;
|
|
456
456
|
}
|
|
@@ -458,10 +458,10 @@ class at {
|
|
|
458
458
|
return this.bb_pos = t, this.bb = s, this;
|
|
459
459
|
}
|
|
460
460
|
static getRootAsRelayInfo(t, s) {
|
|
461
|
-
return (s || new
|
|
461
|
+
return (s || new ct()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
462
462
|
}
|
|
463
463
|
static getSizePrefixedRootAsRelayInfo(t, s) {
|
|
464
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
464
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new ct()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
465
465
|
}
|
|
466
466
|
url(t) {
|
|
467
467
|
const s = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -492,10 +492,10 @@ class at {
|
|
|
492
492
|
return t.requiredField(s, 4), s;
|
|
493
493
|
}
|
|
494
494
|
static createRelayInfo(t, s, e, i) {
|
|
495
|
-
return
|
|
495
|
+
return ct.startRelayInfo(t), ct.addUrl(t, s), ct.addRead(t, e), ct.addWrite(t, i), ct.endRelayInfo(t);
|
|
496
496
|
}
|
|
497
497
|
unpack() {
|
|
498
|
-
return new
|
|
498
|
+
return new as(
|
|
499
499
|
this.url(),
|
|
500
500
|
this.read(),
|
|
501
501
|
this.write()
|
|
@@ -505,13 +505,13 @@ class at {
|
|
|
505
505
|
t.url = this.url(), t.read = this.read(), t.write = this.write();
|
|
506
506
|
}
|
|
507
507
|
}
|
|
508
|
-
class
|
|
508
|
+
class as {
|
|
509
509
|
constructor(t = null, s = false, e = false) {
|
|
510
510
|
this.url = t, this.read = s, this.write = e;
|
|
511
511
|
}
|
|
512
512
|
pack(t) {
|
|
513
513
|
const s = this.url !== null ? t.createString(this.url) : 0;
|
|
514
|
-
return
|
|
514
|
+
return ct.createRelayInfo(
|
|
515
515
|
t,
|
|
516
516
|
s,
|
|
517
517
|
this.read,
|
|
@@ -519,7 +519,7 @@ class es {
|
|
|
519
519
|
);
|
|
520
520
|
}
|
|
521
521
|
}
|
|
522
|
-
class
|
|
522
|
+
class Pt {
|
|
523
523
|
constructor() {
|
|
524
524
|
this.bb = null, this.bb_pos = 0;
|
|
525
525
|
}
|
|
@@ -527,14 +527,14 @@ class It {
|
|
|
527
527
|
return this.bb_pos = t, this.bb = s, this;
|
|
528
528
|
}
|
|
529
529
|
static getRootAsKind10002Parsed(t, s) {
|
|
530
|
-
return (s || new
|
|
530
|
+
return (s || new Pt()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
531
531
|
}
|
|
532
532
|
static getSizePrefixedRootAsKind10002Parsed(t, s) {
|
|
533
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
533
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new Pt()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
534
534
|
}
|
|
535
535
|
relays(t, s) {
|
|
536
536
|
const e = this.bb.__offset(this.bb_pos, 4);
|
|
537
|
-
return e ? (s || new
|
|
537
|
+
return e ? (s || new ct()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + e) + t * 4), this.bb) : null;
|
|
538
538
|
}
|
|
539
539
|
relaysLength() {
|
|
540
540
|
const t = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -560,10 +560,10 @@ class It {
|
|
|
560
560
|
return t.requiredField(s, 4), s;
|
|
561
561
|
}
|
|
562
562
|
static createKind10002Parsed(t, s) {
|
|
563
|
-
return
|
|
563
|
+
return Pt.startKind10002Parsed(t), Pt.addRelays(t, s), Pt.endKind10002Parsed(t);
|
|
564
564
|
}
|
|
565
565
|
unpack() {
|
|
566
|
-
return new
|
|
566
|
+
return new hs(
|
|
567
567
|
this.bb.createObjList(this.relays.bind(this), this.relaysLength())
|
|
568
568
|
);
|
|
569
569
|
}
|
|
@@ -571,19 +571,19 @@ class It {
|
|
|
571
571
|
t.relays = this.bb.createObjList(this.relays.bind(this), this.relaysLength());
|
|
572
572
|
}
|
|
573
573
|
}
|
|
574
|
-
class
|
|
574
|
+
class hs {
|
|
575
575
|
constructor(t = []) {
|
|
576
576
|
this.relays = t;
|
|
577
577
|
}
|
|
578
578
|
pack(t) {
|
|
579
|
-
const s =
|
|
580
|
-
return
|
|
579
|
+
const s = Pt.createRelaysVector(t, t.createObjectOffsetList(this.relays));
|
|
580
|
+
return Pt.createKind10002Parsed(
|
|
581
581
|
t,
|
|
582
582
|
s
|
|
583
583
|
);
|
|
584
584
|
}
|
|
585
585
|
}
|
|
586
|
-
class
|
|
586
|
+
class ut {
|
|
587
587
|
constructor() {
|
|
588
588
|
this.bb = null, this.bb_pos = 0;
|
|
589
589
|
}
|
|
@@ -591,10 +591,10 @@ class lt {
|
|
|
591
591
|
return this.bb_pos = t, this.bb = s, this;
|
|
592
592
|
}
|
|
593
593
|
static getRootAsMintInfo(t, s) {
|
|
594
|
-
return (s || new
|
|
594
|
+
return (s || new ut()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
595
595
|
}
|
|
596
596
|
static getSizePrefixedRootAsMintInfo(t, s) {
|
|
597
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
597
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new ut()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
598
598
|
}
|
|
599
599
|
url(t) {
|
|
600
600
|
const s = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -631,10 +631,10 @@ class lt {
|
|
|
631
631
|
return t.requiredField(s, 4), t.requiredField(s, 6), s;
|
|
632
632
|
}
|
|
633
633
|
static createMintInfo(t, s, e) {
|
|
634
|
-
return
|
|
634
|
+
return ut.startMintInfo(t), ut.addUrl(t, s), ut.addBaseUnits(t, e), ut.endMintInfo(t);
|
|
635
635
|
}
|
|
636
636
|
unpack() {
|
|
637
|
-
return new
|
|
637
|
+
return new cs(
|
|
638
638
|
this.url(),
|
|
639
639
|
this.bb.createScalarList(this.baseUnits.bind(this), this.baseUnitsLength())
|
|
640
640
|
);
|
|
@@ -643,20 +643,20 @@ class lt {
|
|
|
643
643
|
t.url = this.url(), t.baseUnits = this.bb.createScalarList(this.baseUnits.bind(this), this.baseUnitsLength());
|
|
644
644
|
}
|
|
645
645
|
}
|
|
646
|
-
class
|
|
646
|
+
class cs {
|
|
647
647
|
constructor(t = null, s = []) {
|
|
648
648
|
this.url = t, this.baseUnits = s;
|
|
649
649
|
}
|
|
650
650
|
pack(t) {
|
|
651
|
-
const s = this.url !== null ? t.createString(this.url) : 0, e =
|
|
652
|
-
return
|
|
651
|
+
const s = this.url !== null ? t.createString(this.url) : 0, e = ut.createBaseUnitsVector(t, t.createObjectOffsetList(this.baseUnits));
|
|
652
|
+
return ut.createMintInfo(
|
|
653
653
|
t,
|
|
654
654
|
s,
|
|
655
655
|
e
|
|
656
656
|
);
|
|
657
657
|
}
|
|
658
658
|
}
|
|
659
|
-
class
|
|
659
|
+
class Y {
|
|
660
660
|
constructor() {
|
|
661
661
|
this.bb = null, this.bb_pos = 0;
|
|
662
662
|
}
|
|
@@ -664,14 +664,14 @@ class W {
|
|
|
664
664
|
return this.bb_pos = t, this.bb = s, this;
|
|
665
665
|
}
|
|
666
666
|
static getRootAsKind10019Parsed(t, s) {
|
|
667
|
-
return (s || new
|
|
667
|
+
return (s || new Y()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
668
668
|
}
|
|
669
669
|
static getSizePrefixedRootAsKind10019Parsed(t, s) {
|
|
670
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
670
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new Y()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
671
671
|
}
|
|
672
672
|
trustedMints(t, s) {
|
|
673
673
|
const e = this.bb.__offset(this.bb_pos, 4);
|
|
674
|
-
return e ? (s || new
|
|
674
|
+
return e ? (s || new ut()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + e) + t * 4), this.bb) : null;
|
|
675
675
|
}
|
|
676
676
|
trustedMintsLength() {
|
|
677
677
|
const t = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -723,10 +723,10 @@ class W {
|
|
|
723
723
|
return t.endObject();
|
|
724
724
|
}
|
|
725
725
|
static createKind10019Parsed(t, s, e, i) {
|
|
726
|
-
return
|
|
726
|
+
return Y.startKind10019Parsed(t), Y.addTrustedMints(t, s), Y.addP2pkPubkey(t, e), Y.addReadRelays(t, i), Y.endKind10019Parsed(t);
|
|
727
727
|
}
|
|
728
728
|
unpack() {
|
|
729
|
-
return new
|
|
729
|
+
return new ds(
|
|
730
730
|
this.bb.createObjList(this.trustedMints.bind(this), this.trustedMintsLength()),
|
|
731
731
|
this.p2pkPubkey(),
|
|
732
732
|
this.bb.createScalarList(this.readRelays.bind(this), this.readRelaysLength())
|
|
@@ -736,13 +736,13 @@ class W {
|
|
|
736
736
|
t.trustedMints = this.bb.createObjList(this.trustedMints.bind(this), this.trustedMintsLength()), t.p2pkPubkey = this.p2pkPubkey(), t.readRelays = this.bb.createScalarList(this.readRelays.bind(this), this.readRelaysLength());
|
|
737
737
|
}
|
|
738
738
|
}
|
|
739
|
-
class
|
|
739
|
+
class ds {
|
|
740
740
|
constructor(t = [], s = null, e = []) {
|
|
741
741
|
this.trustedMints = t, this.p2pkPubkey = s, this.readRelays = e;
|
|
742
742
|
}
|
|
743
743
|
pack(t) {
|
|
744
|
-
const s =
|
|
745
|
-
return
|
|
744
|
+
const s = Y.createTrustedMintsVector(t, t.createObjectOffsetList(this.trustedMints)), e = this.p2pkPubkey !== null ? t.createString(this.p2pkPubkey) : 0, i = Y.createReadRelaysVector(t, t.createObjectOffsetList(this.readRelays));
|
|
745
|
+
return Y.createKind10019Parsed(
|
|
746
746
|
t,
|
|
747
747
|
s,
|
|
748
748
|
e,
|
|
@@ -750,7 +750,98 @@ class os {
|
|
|
750
750
|
);
|
|
751
751
|
}
|
|
752
752
|
}
|
|
753
|
-
class
|
|
753
|
+
class G {
|
|
754
|
+
constructor() {
|
|
755
|
+
this.bb = null, this.bb_pos = 0;
|
|
756
|
+
}
|
|
757
|
+
__init(t, s) {
|
|
758
|
+
return this.bb_pos = t, this.bb = s, this;
|
|
759
|
+
}
|
|
760
|
+
static getRootAsKind1018Parsed(t, s) {
|
|
761
|
+
return (s || new G()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
762
|
+
}
|
|
763
|
+
static getSizePrefixedRootAsKind1018Parsed(t, s) {
|
|
764
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new G()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
765
|
+
}
|
|
766
|
+
id(t) {
|
|
767
|
+
const s = this.bb.__offset(this.bb_pos, 4);
|
|
768
|
+
return s ? this.bb.__string(this.bb_pos + s, t) : null;
|
|
769
|
+
}
|
|
770
|
+
pubkey(t) {
|
|
771
|
+
const s = this.bb.__offset(this.bb_pos, 6);
|
|
772
|
+
return s ? this.bb.__string(this.bb_pos + s, t) : null;
|
|
773
|
+
}
|
|
774
|
+
pollEventId(t) {
|
|
775
|
+
const s = this.bb.__offset(this.bb_pos, 8);
|
|
776
|
+
return s ? this.bb.__string(this.bb_pos + s, t) : null;
|
|
777
|
+
}
|
|
778
|
+
selectedOptions(t, s) {
|
|
779
|
+
const e = this.bb.__offset(this.bb_pos, 10);
|
|
780
|
+
return e ? this.bb.__string(this.bb.__vector(this.bb_pos + e) + t * 4, s) : null;
|
|
781
|
+
}
|
|
782
|
+
selectedOptionsLength() {
|
|
783
|
+
const t = this.bb.__offset(this.bb_pos, 10);
|
|
784
|
+
return t ? this.bb.__vector_len(this.bb_pos + t) : 0;
|
|
785
|
+
}
|
|
786
|
+
static startKind1018Parsed(t) {
|
|
787
|
+
t.startObject(4);
|
|
788
|
+
}
|
|
789
|
+
static addId(t, s) {
|
|
790
|
+
t.addFieldOffset(0, s, 0);
|
|
791
|
+
}
|
|
792
|
+
static addPubkey(t, s) {
|
|
793
|
+
t.addFieldOffset(1, s, 0);
|
|
794
|
+
}
|
|
795
|
+
static addPollEventId(t, s) {
|
|
796
|
+
t.addFieldOffset(2, s, 0);
|
|
797
|
+
}
|
|
798
|
+
static addSelectedOptions(t, s) {
|
|
799
|
+
t.addFieldOffset(3, s, 0);
|
|
800
|
+
}
|
|
801
|
+
static createSelectedOptionsVector(t, s) {
|
|
802
|
+
t.startVector(4, s.length, 4);
|
|
803
|
+
for (let e = s.length - 1; e >= 0; e--)
|
|
804
|
+
t.addOffset(s[e]);
|
|
805
|
+
return t.endVector();
|
|
806
|
+
}
|
|
807
|
+
static startSelectedOptionsVector(t, s) {
|
|
808
|
+
t.startVector(4, s, 4);
|
|
809
|
+
}
|
|
810
|
+
static endKind1018Parsed(t) {
|
|
811
|
+
const s = t.endObject();
|
|
812
|
+
return t.requiredField(s, 4), t.requiredField(s, 6), t.requiredField(s, 8), t.requiredField(s, 10), s;
|
|
813
|
+
}
|
|
814
|
+
static createKind1018Parsed(t, s, e, i, o) {
|
|
815
|
+
return G.startKind1018Parsed(t), G.addId(t, s), G.addPubkey(t, e), G.addPollEventId(t, i), G.addSelectedOptions(t, o), G.endKind1018Parsed(t);
|
|
816
|
+
}
|
|
817
|
+
unpack() {
|
|
818
|
+
return new bs(
|
|
819
|
+
this.id(),
|
|
820
|
+
this.pubkey(),
|
|
821
|
+
this.pollEventId(),
|
|
822
|
+
this.bb.createScalarList(this.selectedOptions.bind(this), this.selectedOptionsLength())
|
|
823
|
+
);
|
|
824
|
+
}
|
|
825
|
+
unpackTo(t) {
|
|
826
|
+
t.id = this.id(), t.pubkey = this.pubkey(), t.pollEventId = this.pollEventId(), t.selectedOptions = this.bb.createScalarList(this.selectedOptions.bind(this), this.selectedOptionsLength());
|
|
827
|
+
}
|
|
828
|
+
}
|
|
829
|
+
class bs {
|
|
830
|
+
constructor(t = null, s = null, e = null, i = []) {
|
|
831
|
+
this.id = t, this.pubkey = s, this.pollEventId = e, this.selectedOptions = i;
|
|
832
|
+
}
|
|
833
|
+
pack(t) {
|
|
834
|
+
const s = this.id !== null ? t.createString(this.id) : 0, e = this.pubkey !== null ? t.createString(this.pubkey) : 0, i = this.pollEventId !== null ? t.createString(this.pollEventId) : 0, o = G.createSelectedOptionsVector(t, t.createObjectOffsetList(this.selectedOptions));
|
|
835
|
+
return G.createKind1018Parsed(
|
|
836
|
+
t,
|
|
837
|
+
s,
|
|
838
|
+
e,
|
|
839
|
+
i,
|
|
840
|
+
o
|
|
841
|
+
);
|
|
842
|
+
}
|
|
843
|
+
}
|
|
844
|
+
class wt {
|
|
754
845
|
constructor() {
|
|
755
846
|
this.bb = null, this.bb_pos = 0;
|
|
756
847
|
}
|
|
@@ -758,10 +849,10 @@ class Vt {
|
|
|
758
849
|
return this.bb_pos = t, this.bb = s, this;
|
|
759
850
|
}
|
|
760
851
|
static getRootAsCashuData(t, s) {
|
|
761
|
-
return (s || new
|
|
852
|
+
return (s || new wt()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
762
853
|
}
|
|
763
854
|
static getSizePrefixedRootAsCashuData(t, s) {
|
|
764
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
855
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new wt()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
765
856
|
}
|
|
766
857
|
token(t) {
|
|
767
858
|
const s = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -778,10 +869,10 @@ class Vt {
|
|
|
778
869
|
return t.requiredField(s, 4), s;
|
|
779
870
|
}
|
|
780
871
|
static createCashuData(t, s) {
|
|
781
|
-
return
|
|
872
|
+
return wt.startCashuData(t), wt.addToken(t, s), wt.endCashuData(t);
|
|
782
873
|
}
|
|
783
874
|
unpack() {
|
|
784
|
-
return new
|
|
875
|
+
return new fs(
|
|
785
876
|
this.token()
|
|
786
877
|
);
|
|
787
878
|
}
|
|
@@ -789,19 +880,19 @@ class Vt {
|
|
|
789
880
|
t.token = this.token();
|
|
790
881
|
}
|
|
791
882
|
}
|
|
792
|
-
class
|
|
883
|
+
class fs {
|
|
793
884
|
constructor(t = null) {
|
|
794
885
|
this.token = t;
|
|
795
886
|
}
|
|
796
887
|
pack(t) {
|
|
797
888
|
const s = this.token !== null ? t.createString(this.token) : 0;
|
|
798
|
-
return
|
|
889
|
+
return wt.createCashuData(
|
|
799
890
|
t,
|
|
800
891
|
s
|
|
801
892
|
);
|
|
802
893
|
}
|
|
803
894
|
}
|
|
804
|
-
class
|
|
895
|
+
class mt {
|
|
805
896
|
constructor() {
|
|
806
897
|
this.bb = null, this.bb_pos = 0;
|
|
807
898
|
}
|
|
@@ -809,10 +900,10 @@ class yt {
|
|
|
809
900
|
return this.bb_pos = t, this.bb = s, this;
|
|
810
901
|
}
|
|
811
902
|
static getRootAsCodeData(t, s) {
|
|
812
|
-
return (s || new
|
|
903
|
+
return (s || new mt()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
813
904
|
}
|
|
814
905
|
static getSizePrefixedRootAsCodeData(t, s) {
|
|
815
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
906
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new mt()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
816
907
|
}
|
|
817
908
|
language(t) {
|
|
818
909
|
const s = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -836,10 +927,10 @@ class yt {
|
|
|
836
927
|
return t.requiredField(s, 6), s;
|
|
837
928
|
}
|
|
838
929
|
static createCodeData(t, s, e) {
|
|
839
|
-
return
|
|
930
|
+
return mt.startCodeData(t), mt.addLanguage(t, s), mt.addCode(t, e), mt.endCodeData(t);
|
|
840
931
|
}
|
|
841
932
|
unpack() {
|
|
842
|
-
return new
|
|
933
|
+
return new ls(
|
|
843
934
|
this.language(),
|
|
844
935
|
this.code()
|
|
845
936
|
);
|
|
@@ -848,20 +939,89 @@ class yt {
|
|
|
848
939
|
t.language = this.language(), t.code = this.code();
|
|
849
940
|
}
|
|
850
941
|
}
|
|
851
|
-
class
|
|
942
|
+
class ls {
|
|
852
943
|
constructor(t = null, s = null) {
|
|
853
944
|
this.language = t, this.code = s;
|
|
854
945
|
}
|
|
855
946
|
pack(t) {
|
|
856
947
|
const s = this.language !== null ? t.createString(this.language) : 0, e = this.code !== null ? t.createString(this.code) : 0;
|
|
857
|
-
return
|
|
948
|
+
return mt.createCodeData(
|
|
858
949
|
t,
|
|
859
950
|
s,
|
|
860
951
|
e
|
|
861
952
|
);
|
|
862
953
|
}
|
|
863
954
|
}
|
|
864
|
-
class
|
|
955
|
+
class dt {
|
|
956
|
+
constructor() {
|
|
957
|
+
this.bb = null, this.bb_pos = 0;
|
|
958
|
+
}
|
|
959
|
+
__init(t, s) {
|
|
960
|
+
return this.bb_pos = t, this.bb = s, this;
|
|
961
|
+
}
|
|
962
|
+
static getRootAsEmojiData(t, s) {
|
|
963
|
+
return (s || new dt()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
964
|
+
}
|
|
965
|
+
static getSizePrefixedRootAsEmojiData(t, s) {
|
|
966
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new dt()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
967
|
+
}
|
|
968
|
+
shortcode(t) {
|
|
969
|
+
const s = this.bb.__offset(this.bb_pos, 4);
|
|
970
|
+
return s ? this.bb.__string(this.bb_pos + s, t) : null;
|
|
971
|
+
}
|
|
972
|
+
url(t) {
|
|
973
|
+
const s = this.bb.__offset(this.bb_pos, 6);
|
|
974
|
+
return s ? this.bb.__string(this.bb_pos + s, t) : null;
|
|
975
|
+
}
|
|
976
|
+
emojiSet(t) {
|
|
977
|
+
const s = this.bb.__offset(this.bb_pos, 8);
|
|
978
|
+
return s ? this.bb.__string(this.bb_pos + s, t) : null;
|
|
979
|
+
}
|
|
980
|
+
static startEmojiData(t) {
|
|
981
|
+
t.startObject(3);
|
|
982
|
+
}
|
|
983
|
+
static addShortcode(t, s) {
|
|
984
|
+
t.addFieldOffset(0, s, 0);
|
|
985
|
+
}
|
|
986
|
+
static addUrl(t, s) {
|
|
987
|
+
t.addFieldOffset(1, s, 0);
|
|
988
|
+
}
|
|
989
|
+
static addEmojiSet(t, s) {
|
|
990
|
+
t.addFieldOffset(2, s, 0);
|
|
991
|
+
}
|
|
992
|
+
static endEmojiData(t) {
|
|
993
|
+
const s = t.endObject();
|
|
994
|
+
return t.requiredField(s, 4), t.requiredField(s, 6), s;
|
|
995
|
+
}
|
|
996
|
+
static createEmojiData(t, s, e, i) {
|
|
997
|
+
return dt.startEmojiData(t), dt.addShortcode(t, s), dt.addUrl(t, e), dt.addEmojiSet(t, i), dt.endEmojiData(t);
|
|
998
|
+
}
|
|
999
|
+
unpack() {
|
|
1000
|
+
return new _s(
|
|
1001
|
+
this.shortcode(),
|
|
1002
|
+
this.url(),
|
|
1003
|
+
this.emojiSet()
|
|
1004
|
+
);
|
|
1005
|
+
}
|
|
1006
|
+
unpackTo(t) {
|
|
1007
|
+
t.shortcode = this.shortcode(), t.url = this.url(), t.emojiSet = this.emojiSet();
|
|
1008
|
+
}
|
|
1009
|
+
}
|
|
1010
|
+
class _s {
|
|
1011
|
+
constructor(t = null, s = null, e = null) {
|
|
1012
|
+
this.shortcode = t, this.url = s, this.emojiSet = e;
|
|
1013
|
+
}
|
|
1014
|
+
pack(t) {
|
|
1015
|
+
const s = this.shortcode !== null ? t.createString(this.shortcode) : 0, e = this.url !== null ? t.createString(this.url) : 0, i = this.emojiSet !== null ? t.createString(this.emojiSet) : 0;
|
|
1016
|
+
return dt.createEmojiData(
|
|
1017
|
+
t,
|
|
1018
|
+
s,
|
|
1019
|
+
e,
|
|
1020
|
+
i
|
|
1021
|
+
);
|
|
1022
|
+
}
|
|
1023
|
+
}
|
|
1024
|
+
class jt {
|
|
865
1025
|
constructor() {
|
|
866
1026
|
this.bb = null, this.bb_pos = 0;
|
|
867
1027
|
}
|
|
@@ -869,10 +1029,10 @@ class Rt {
|
|
|
869
1029
|
return this.bb_pos = t, this.bb = s, this;
|
|
870
1030
|
}
|
|
871
1031
|
static getRootAsHashtagData(t, s) {
|
|
872
|
-
return (s || new
|
|
1032
|
+
return (s || new jt()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
873
1033
|
}
|
|
874
1034
|
static getSizePrefixedRootAsHashtagData(t, s) {
|
|
875
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
1035
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new jt()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
876
1036
|
}
|
|
877
1037
|
tag(t) {
|
|
878
1038
|
const s = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -889,10 +1049,10 @@ class Rt {
|
|
|
889
1049
|
return t.requiredField(s, 4), s;
|
|
890
1050
|
}
|
|
891
1051
|
static createHashtagData(t, s) {
|
|
892
|
-
return
|
|
1052
|
+
return jt.startHashtagData(t), jt.addTag(t, s), jt.endHashtagData(t);
|
|
893
1053
|
}
|
|
894
1054
|
unpack() {
|
|
895
|
-
return new
|
|
1055
|
+
return new ps(
|
|
896
1056
|
this.tag()
|
|
897
1057
|
);
|
|
898
1058
|
}
|
|
@@ -900,19 +1060,19 @@ class Rt {
|
|
|
900
1060
|
t.tag = this.tag();
|
|
901
1061
|
}
|
|
902
1062
|
}
|
|
903
|
-
class
|
|
1063
|
+
class ps {
|
|
904
1064
|
constructor(t = null) {
|
|
905
1065
|
this.tag = t;
|
|
906
1066
|
}
|
|
907
1067
|
pack(t) {
|
|
908
1068
|
const s = this.tag !== null ? t.createString(this.tag) : 0;
|
|
909
|
-
return
|
|
1069
|
+
return jt.createHashtagData(
|
|
910
1070
|
t,
|
|
911
1071
|
s
|
|
912
1072
|
);
|
|
913
1073
|
}
|
|
914
1074
|
}
|
|
915
|
-
class
|
|
1075
|
+
class rt {
|
|
916
1076
|
constructor() {
|
|
917
1077
|
this.bb = null, this.bb_pos = 0;
|
|
918
1078
|
}
|
|
@@ -920,10 +1080,10 @@ class nt {
|
|
|
920
1080
|
return this.bb_pos = t, this.bb = s, this;
|
|
921
1081
|
}
|
|
922
1082
|
static getRootAsImageData(t, s) {
|
|
923
|
-
return (s || new
|
|
1083
|
+
return (s || new rt()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
924
1084
|
}
|
|
925
1085
|
static getSizePrefixedRootAsImageData(t, s) {
|
|
926
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
1086
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new rt()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
927
1087
|
}
|
|
928
1088
|
url(t) {
|
|
929
1089
|
const s = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -954,10 +1114,10 @@ class nt {
|
|
|
954
1114
|
return t.requiredField(s, 4), s;
|
|
955
1115
|
}
|
|
956
1116
|
static createImageData(t, s, e, i) {
|
|
957
|
-
return
|
|
1117
|
+
return rt.startImageData(t), rt.addUrl(t, s), rt.addAlt(t, e), rt.addDim(t, i), rt.endImageData(t);
|
|
958
1118
|
}
|
|
959
1119
|
unpack() {
|
|
960
|
-
return new
|
|
1120
|
+
return new us(
|
|
961
1121
|
this.url(),
|
|
962
1122
|
this.alt(),
|
|
963
1123
|
this.dim()
|
|
@@ -967,13 +1127,13 @@ class nt {
|
|
|
967
1127
|
t.url = this.url(), t.alt = this.alt(), t.dim = this.dim();
|
|
968
1128
|
}
|
|
969
1129
|
}
|
|
970
|
-
class
|
|
1130
|
+
class us {
|
|
971
1131
|
constructor(t = null, s = null, e = null) {
|
|
972
1132
|
this.url = t, this.alt = s, this.dim = e;
|
|
973
1133
|
}
|
|
974
1134
|
pack(t) {
|
|
975
1135
|
const s = this.url !== null ? t.createString(this.url) : 0, e = this.alt !== null ? t.createString(this.alt) : 0, i = this.dim !== null ? t.createString(this.dim) : 0;
|
|
976
|
-
return
|
|
1136
|
+
return rt.createImageData(
|
|
977
1137
|
t,
|
|
978
1138
|
s,
|
|
979
1139
|
e,
|
|
@@ -981,7 +1141,7 @@ class cs {
|
|
|
981
1141
|
);
|
|
982
1142
|
}
|
|
983
1143
|
}
|
|
984
|
-
class
|
|
1144
|
+
class et {
|
|
985
1145
|
constructor() {
|
|
986
1146
|
this.bb = null, this.bb_pos = 0;
|
|
987
1147
|
}
|
|
@@ -989,10 +1149,10 @@ class tt {
|
|
|
989
1149
|
return this.bb_pos = t, this.bb = s, this;
|
|
990
1150
|
}
|
|
991
1151
|
static getRootAsLinkPreviewData(t, s) {
|
|
992
|
-
return (s || new
|
|
1152
|
+
return (s || new et()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
993
1153
|
}
|
|
994
1154
|
static getSizePrefixedRootAsLinkPreviewData(t, s) {
|
|
995
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
1155
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new et()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
996
1156
|
}
|
|
997
1157
|
url(t) {
|
|
998
1158
|
const s = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -1030,10 +1190,10 @@ class tt {
|
|
|
1030
1190
|
return t.requiredField(s, 4), s;
|
|
1031
1191
|
}
|
|
1032
1192
|
static createLinkPreviewData(t, s, e, i, o) {
|
|
1033
|
-
return
|
|
1193
|
+
return et.startLinkPreviewData(t), et.addUrl(t, s), et.addTitle(t, e), et.addDescription(t, i), et.addImage(t, o), et.endLinkPreviewData(t);
|
|
1034
1194
|
}
|
|
1035
1195
|
unpack() {
|
|
1036
|
-
return new
|
|
1196
|
+
return new gs(
|
|
1037
1197
|
this.url(),
|
|
1038
1198
|
this.title(),
|
|
1039
1199
|
this.description(),
|
|
@@ -1044,13 +1204,13 @@ class tt {
|
|
|
1044
1204
|
t.url = this.url(), t.title = this.title(), t.description = this.description(), t.image = this.image();
|
|
1045
1205
|
}
|
|
1046
1206
|
}
|
|
1047
|
-
class
|
|
1207
|
+
class gs {
|
|
1048
1208
|
constructor(t = null, s = null, e = null, i = null) {
|
|
1049
1209
|
this.url = t, this.title = s, this.description = e, this.image = i;
|
|
1050
1210
|
}
|
|
1051
1211
|
pack(t) {
|
|
1052
1212
|
const s = this.url !== null ? t.createString(this.url) : 0, e = this.title !== null ? t.createString(this.title) : 0, i = this.description !== null ? t.createString(this.description) : 0, o = this.image !== null ? t.createString(this.image) : 0;
|
|
1053
|
-
return
|
|
1213
|
+
return et.createLinkPreviewData(
|
|
1054
1214
|
t,
|
|
1055
1215
|
s,
|
|
1056
1216
|
e,
|
|
@@ -1059,7 +1219,7 @@ class ds {
|
|
|
1059
1219
|
);
|
|
1060
1220
|
}
|
|
1061
1221
|
}
|
|
1062
|
-
class
|
|
1222
|
+
class at {
|
|
1063
1223
|
constructor() {
|
|
1064
1224
|
this.bb = null, this.bb_pos = 0;
|
|
1065
1225
|
}
|
|
@@ -1067,10 +1227,10 @@ class ot {
|
|
|
1067
1227
|
return this.bb_pos = t, this.bb = s, this;
|
|
1068
1228
|
}
|
|
1069
1229
|
static getRootAsVideoData(t, s) {
|
|
1070
|
-
return (s || new
|
|
1230
|
+
return (s || new at()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1071
1231
|
}
|
|
1072
1232
|
static getSizePrefixedRootAsVideoData(t, s) {
|
|
1073
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
1233
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new at()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1074
1234
|
}
|
|
1075
1235
|
url(t) {
|
|
1076
1236
|
const s = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -1101,10 +1261,10 @@ class ot {
|
|
|
1101
1261
|
return t.requiredField(s, 4), s;
|
|
1102
1262
|
}
|
|
1103
1263
|
static createVideoData(t, s, e, i) {
|
|
1104
|
-
return
|
|
1264
|
+
return at.startVideoData(t), at.addUrl(t, s), at.addThumbnail(t, e), at.addDim(t, i), at.endVideoData(t);
|
|
1105
1265
|
}
|
|
1106
1266
|
unpack() {
|
|
1107
|
-
return new
|
|
1267
|
+
return new Os(
|
|
1108
1268
|
this.url(),
|
|
1109
1269
|
this.thumbnail(),
|
|
1110
1270
|
this.dim()
|
|
@@ -1114,13 +1274,13 @@ class ot {
|
|
|
1114
1274
|
t.url = this.url(), t.thumbnail = this.thumbnail(), t.dim = this.dim();
|
|
1115
1275
|
}
|
|
1116
1276
|
}
|
|
1117
|
-
class
|
|
1277
|
+
class Os {
|
|
1118
1278
|
constructor(t = null, s = null, e = null) {
|
|
1119
1279
|
this.url = t, this.thumbnail = s, this.dim = e;
|
|
1120
1280
|
}
|
|
1121
1281
|
pack(t) {
|
|
1122
1282
|
const s = this.url !== null ? t.createString(this.url) : 0, e = this.thumbnail !== null ? t.createString(this.thumbnail) : 0, i = this.dim !== null ? t.createString(this.dim) : 0;
|
|
1123
|
-
return
|
|
1283
|
+
return at.createVideoData(
|
|
1124
1284
|
t,
|
|
1125
1285
|
s,
|
|
1126
1286
|
e,
|
|
@@ -1128,7 +1288,7 @@ class bs {
|
|
|
1128
1288
|
);
|
|
1129
1289
|
}
|
|
1130
1290
|
}
|
|
1131
|
-
class
|
|
1291
|
+
class xt {
|
|
1132
1292
|
constructor() {
|
|
1133
1293
|
this.bb = null, this.bb_pos = 0;
|
|
1134
1294
|
}
|
|
@@ -1136,18 +1296,18 @@ class Kt {
|
|
|
1136
1296
|
return this.bb_pos = t, this.bb = s, this;
|
|
1137
1297
|
}
|
|
1138
1298
|
static getRootAsMediaItem(t, s) {
|
|
1139
|
-
return (s || new
|
|
1299
|
+
return (s || new xt()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1140
1300
|
}
|
|
1141
1301
|
static getSizePrefixedRootAsMediaItem(t, s) {
|
|
1142
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
1302
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new xt()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1143
1303
|
}
|
|
1144
1304
|
image(t) {
|
|
1145
1305
|
const s = this.bb.__offset(this.bb_pos, 4);
|
|
1146
|
-
return s ? (t || new
|
|
1306
|
+
return s ? (t || new rt()).__init(this.bb.__indirect(this.bb_pos + s), this.bb) : null;
|
|
1147
1307
|
}
|
|
1148
1308
|
video(t) {
|
|
1149
1309
|
const s = this.bb.__offset(this.bb_pos, 6);
|
|
1150
|
-
return s ? (t || new
|
|
1310
|
+
return s ? (t || new at()).__init(this.bb.__indirect(this.bb_pos + s), this.bb) : null;
|
|
1151
1311
|
}
|
|
1152
1312
|
static startMediaItem(t) {
|
|
1153
1313
|
t.startObject(2);
|
|
@@ -1162,7 +1322,7 @@ class Kt {
|
|
|
1162
1322
|
return t.endObject();
|
|
1163
1323
|
}
|
|
1164
1324
|
unpack() {
|
|
1165
|
-
return new
|
|
1325
|
+
return new ys(
|
|
1166
1326
|
this.image() !== null ? this.image().unpack() : null,
|
|
1167
1327
|
this.video() !== null ? this.video().unpack() : null
|
|
1168
1328
|
);
|
|
@@ -1171,16 +1331,16 @@ class Kt {
|
|
|
1171
1331
|
t.image = this.image() !== null ? this.image().unpack() : null, t.video = this.video() !== null ? this.video().unpack() : null;
|
|
1172
1332
|
}
|
|
1173
1333
|
}
|
|
1174
|
-
class
|
|
1334
|
+
class ys {
|
|
1175
1335
|
constructor(t = null, s = null) {
|
|
1176
1336
|
this.image = t, this.video = s;
|
|
1177
1337
|
}
|
|
1178
1338
|
pack(t) {
|
|
1179
1339
|
const s = this.image !== null ? this.image.pack(t) : 0, e = this.video !== null ? this.video.pack(t) : 0;
|
|
1180
|
-
return
|
|
1340
|
+
return xt.startMediaItem(t), xt.addImage(t, s), xt.addVideo(t, e), xt.endMediaItem(t);
|
|
1181
1341
|
}
|
|
1182
1342
|
}
|
|
1183
|
-
class
|
|
1343
|
+
class vt {
|
|
1184
1344
|
constructor() {
|
|
1185
1345
|
this.bb = null, this.bb_pos = 0;
|
|
1186
1346
|
}
|
|
@@ -1188,14 +1348,14 @@ class Lt {
|
|
|
1188
1348
|
return this.bb_pos = t, this.bb = s, this;
|
|
1189
1349
|
}
|
|
1190
1350
|
static getRootAsMediaGroupData(t, s) {
|
|
1191
|
-
return (s || new
|
|
1351
|
+
return (s || new vt()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1192
1352
|
}
|
|
1193
1353
|
static getSizePrefixedRootAsMediaGroupData(t, s) {
|
|
1194
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
1354
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new vt()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1195
1355
|
}
|
|
1196
1356
|
items(t, s) {
|
|
1197
1357
|
const e = this.bb.__offset(this.bb_pos, 4);
|
|
1198
|
-
return e ? (s || new
|
|
1358
|
+
return e ? (s || new xt()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + e) + t * 4), this.bb) : null;
|
|
1199
1359
|
}
|
|
1200
1360
|
itemsLength() {
|
|
1201
1361
|
const t = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -1220,10 +1380,10 @@ class Lt {
|
|
|
1220
1380
|
return t.endObject();
|
|
1221
1381
|
}
|
|
1222
1382
|
static createMediaGroupData(t, s) {
|
|
1223
|
-
return
|
|
1383
|
+
return vt.startMediaGroupData(t), vt.addItems(t, s), vt.endMediaGroupData(t);
|
|
1224
1384
|
}
|
|
1225
1385
|
unpack() {
|
|
1226
|
-
return new
|
|
1386
|
+
return new ks(
|
|
1227
1387
|
this.bb.createObjList(this.items.bind(this), this.itemsLength())
|
|
1228
1388
|
);
|
|
1229
1389
|
}
|
|
@@ -1231,19 +1391,19 @@ class Lt {
|
|
|
1231
1391
|
t.items = this.bb.createObjList(this.items.bind(this), this.itemsLength());
|
|
1232
1392
|
}
|
|
1233
1393
|
}
|
|
1234
|
-
class
|
|
1394
|
+
class ks {
|
|
1235
1395
|
constructor(t = []) {
|
|
1236
1396
|
this.items = t;
|
|
1237
1397
|
}
|
|
1238
1398
|
pack(t) {
|
|
1239
|
-
const s =
|
|
1240
|
-
return
|
|
1399
|
+
const s = vt.createItemsVector(t, t.createObjectOffsetList(this.items));
|
|
1400
|
+
return vt.createMediaGroupData(
|
|
1241
1401
|
t,
|
|
1242
1402
|
s
|
|
1243
1403
|
);
|
|
1244
1404
|
}
|
|
1245
1405
|
}
|
|
1246
|
-
class
|
|
1406
|
+
class x {
|
|
1247
1407
|
constructor() {
|
|
1248
1408
|
this.bb = null, this.bb_pos = 0;
|
|
1249
1409
|
}
|
|
@@ -1251,10 +1411,10 @@ class U {
|
|
|
1251
1411
|
return this.bb_pos = t, this.bb = s, this;
|
|
1252
1412
|
}
|
|
1253
1413
|
static getRootAsNostrData(t, s) {
|
|
1254
|
-
return (s || new
|
|
1414
|
+
return (s || new x()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1255
1415
|
}
|
|
1256
1416
|
static getSizePrefixedRootAsNostrData(t, s) {
|
|
1257
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
1417
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new x()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1258
1418
|
}
|
|
1259
1419
|
id(t) {
|
|
1260
1420
|
const s = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -1312,10 +1472,10 @@ class U {
|
|
|
1312
1472
|
return t.requiredField(s, 4), t.requiredField(s, 6), s;
|
|
1313
1473
|
}
|
|
1314
1474
|
static createNostrData(t, s, e, i, o, r) {
|
|
1315
|
-
return
|
|
1475
|
+
return x.startNostrData(t), x.addId(t, s), x.addEntity(t, e), x.addRelays(t, i), x.addAuthor(t, o), x.addKind(t, r), x.endNostrData(t);
|
|
1316
1476
|
}
|
|
1317
1477
|
unpack() {
|
|
1318
|
-
return new
|
|
1478
|
+
return new Is(
|
|
1319
1479
|
this.id(),
|
|
1320
1480
|
this.entity(),
|
|
1321
1481
|
this.bb.createScalarList(this.relays.bind(this), this.relaysLength()),
|
|
@@ -1327,13 +1487,13 @@ class U {
|
|
|
1327
1487
|
t.id = this.id(), t.entity = this.entity(), t.relays = this.bb.createScalarList(this.relays.bind(this), this.relaysLength()), t.author = this.author(), t.kind = this.kind();
|
|
1328
1488
|
}
|
|
1329
1489
|
}
|
|
1330
|
-
class
|
|
1490
|
+
class Is {
|
|
1331
1491
|
constructor(t = null, s = null, e = [], i = null, o = BigInt("0")) {
|
|
1332
1492
|
this.id = t, this.entity = s, this.relays = e, this.author = i, this.kind = o;
|
|
1333
1493
|
}
|
|
1334
1494
|
pack(t) {
|
|
1335
|
-
const s = this.id !== null ? t.createString(this.id) : 0, e = this.entity !== null ? t.createString(this.entity) : 0, i =
|
|
1336
|
-
return
|
|
1495
|
+
const s = this.id !== null ? t.createString(this.id) : 0, e = this.entity !== null ? t.createString(this.entity) : 0, i = x.createRelaysVector(t, t.createObjectOffsetList(this.relays)), o = this.author !== null ? t.createString(this.author) : 0;
|
|
1496
|
+
return x.createNostrData(
|
|
1337
1497
|
t,
|
|
1338
1498
|
s,
|
|
1339
1499
|
e,
|
|
@@ -1343,116 +1503,332 @@ class _s {
|
|
|
1343
1503
|
);
|
|
1344
1504
|
}
|
|
1345
1505
|
}
|
|
1346
|
-
var
|
|
1347
|
-
function
|
|
1348
|
-
switch (
|
|
1506
|
+
var Bt = /* @__PURE__ */ ((n) => (n[n.NONE = 0] = "NONE", n[n.CodeData = 1] = "CodeData", n[n.HashtagData = 2] = "HashtagData", n[n.CashuData = 3] = "CashuData", n[n.ImageData = 4] = "ImageData", n[n.VideoData = 5] = "VideoData", n[n.MediaGroupData = 6] = "MediaGroupData", n[n.NostrData = 7] = "NostrData", n[n.LinkPreviewData = 8] = "LinkPreviewData", n[n.EmojiData = 9] = "EmojiData", n))(Bt || {});
|
|
1507
|
+
function Jt(n, t) {
|
|
1508
|
+
switch (Bt[n]) {
|
|
1349
1509
|
case "NONE":
|
|
1350
1510
|
return null;
|
|
1351
1511
|
case "CodeData":
|
|
1352
|
-
return t(new
|
|
1512
|
+
return t(new mt());
|
|
1353
1513
|
case "HashtagData":
|
|
1354
|
-
return t(new
|
|
1514
|
+
return t(new jt());
|
|
1355
1515
|
case "CashuData":
|
|
1356
|
-
return t(new
|
|
1516
|
+
return t(new wt());
|
|
1357
1517
|
case "ImageData":
|
|
1358
|
-
return t(new
|
|
1518
|
+
return t(new rt());
|
|
1359
1519
|
case "VideoData":
|
|
1360
|
-
return t(new
|
|
1520
|
+
return t(new at());
|
|
1361
1521
|
case "MediaGroupData":
|
|
1362
|
-
return t(new
|
|
1522
|
+
return t(new vt());
|
|
1363
1523
|
case "NostrData":
|
|
1364
|
-
return t(new
|
|
1524
|
+
return t(new x());
|
|
1365
1525
|
case "LinkPreviewData":
|
|
1366
|
-
return t(new
|
|
1526
|
+
return t(new et());
|
|
1527
|
+
case "EmojiData":
|
|
1528
|
+
return t(new dt());
|
|
1367
1529
|
default:
|
|
1368
1530
|
return null;
|
|
1369
1531
|
}
|
|
1370
|
-
}
|
|
1371
|
-
class C {
|
|
1372
|
-
constructor() {
|
|
1373
|
-
this.bb = null, this.bb_pos = 0;
|
|
1532
|
+
}
|
|
1533
|
+
class C {
|
|
1534
|
+
constructor() {
|
|
1535
|
+
this.bb = null, this.bb_pos = 0;
|
|
1536
|
+
}
|
|
1537
|
+
__init(t, s) {
|
|
1538
|
+
return this.bb_pos = t, this.bb = s, this;
|
|
1539
|
+
}
|
|
1540
|
+
static getRootAsContentBlock(t, s) {
|
|
1541
|
+
return (s || new C()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1542
|
+
}
|
|
1543
|
+
static getSizePrefixedRootAsContentBlock(t, s) {
|
|
1544
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new C()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1545
|
+
}
|
|
1546
|
+
type(t) {
|
|
1547
|
+
const s = this.bb.__offset(this.bb_pos, 4);
|
|
1548
|
+
return s ? this.bb.__string(this.bb_pos + s, t) : null;
|
|
1549
|
+
}
|
|
1550
|
+
text(t) {
|
|
1551
|
+
const s = this.bb.__offset(this.bb_pos, 6);
|
|
1552
|
+
return s ? this.bb.__string(this.bb_pos + s, t) : null;
|
|
1553
|
+
}
|
|
1554
|
+
dataType() {
|
|
1555
|
+
const t = this.bb.__offset(this.bb_pos, 8);
|
|
1556
|
+
return t ? this.bb.readUint8(this.bb_pos + t) : Bt.NONE;
|
|
1557
|
+
}
|
|
1558
|
+
data(t) {
|
|
1559
|
+
const s = this.bb.__offset(this.bb_pos, 10);
|
|
1560
|
+
return s ? this.bb.__union(t, this.bb_pos + s) : null;
|
|
1561
|
+
}
|
|
1562
|
+
static startContentBlock(t) {
|
|
1563
|
+
t.startObject(4);
|
|
1564
|
+
}
|
|
1565
|
+
static addType(t, s) {
|
|
1566
|
+
t.addFieldOffset(0, s, 0);
|
|
1567
|
+
}
|
|
1568
|
+
static addText(t, s) {
|
|
1569
|
+
t.addFieldOffset(1, s, 0);
|
|
1570
|
+
}
|
|
1571
|
+
static addDataType(t, s) {
|
|
1572
|
+
t.addFieldInt8(2, s, Bt.NONE);
|
|
1573
|
+
}
|
|
1574
|
+
static addData(t, s) {
|
|
1575
|
+
t.addFieldOffset(3, s, 0);
|
|
1576
|
+
}
|
|
1577
|
+
static endContentBlock(t) {
|
|
1578
|
+
const s = t.endObject();
|
|
1579
|
+
return t.requiredField(s, 4), t.requiredField(s, 6), s;
|
|
1580
|
+
}
|
|
1581
|
+
static createContentBlock(t, s, e, i, o) {
|
|
1582
|
+
return C.startContentBlock(t), C.addType(t, s), C.addText(t, e), C.addDataType(t, i), C.addData(t, o), C.endContentBlock(t);
|
|
1583
|
+
}
|
|
1584
|
+
unpack() {
|
|
1585
|
+
return new ms(
|
|
1586
|
+
this.type(),
|
|
1587
|
+
this.text(),
|
|
1588
|
+
this.dataType(),
|
|
1589
|
+
(() => {
|
|
1590
|
+
const t = Jt(this.dataType(), this.data.bind(this));
|
|
1591
|
+
return t === null ? null : t.unpack();
|
|
1592
|
+
})()
|
|
1593
|
+
);
|
|
1594
|
+
}
|
|
1595
|
+
unpackTo(t) {
|
|
1596
|
+
t.type = this.type(), t.text = this.text(), t.dataType = this.dataType(), t.data = (() => {
|
|
1597
|
+
const s = Jt(this.dataType(), this.data.bind(this));
|
|
1598
|
+
return s === null ? null : s.unpack();
|
|
1599
|
+
})();
|
|
1600
|
+
}
|
|
1601
|
+
}
|
|
1602
|
+
class ms {
|
|
1603
|
+
constructor(t = null, s = null, e = Bt.NONE, i = null) {
|
|
1604
|
+
this.type = t, this.text = s, this.dataType = e, this.data = i;
|
|
1605
|
+
}
|
|
1606
|
+
pack(t) {
|
|
1607
|
+
const s = this.type !== null ? t.createString(this.type) : 0, e = this.text !== null ? t.createString(this.text) : 0, i = t.createObjectOffset(this.data);
|
|
1608
|
+
return C.createContentBlock(
|
|
1609
|
+
t,
|
|
1610
|
+
s,
|
|
1611
|
+
e,
|
|
1612
|
+
this.dataType,
|
|
1613
|
+
i
|
|
1614
|
+
);
|
|
1615
|
+
}
|
|
1616
|
+
}
|
|
1617
|
+
class Lt {
|
|
1618
|
+
constructor() {
|
|
1619
|
+
this.bb = null, this.bb_pos = 0;
|
|
1620
|
+
}
|
|
1621
|
+
__init(t, s) {
|
|
1622
|
+
return this.bb_pos = t, this.bb = s, this;
|
|
1623
|
+
}
|
|
1624
|
+
static getRootAsPollOption(t, s) {
|
|
1625
|
+
return (s || new Lt()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1626
|
+
}
|
|
1627
|
+
static getSizePrefixedRootAsPollOption(t, s) {
|
|
1628
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new Lt()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1629
|
+
}
|
|
1630
|
+
id(t) {
|
|
1631
|
+
const s = this.bb.__offset(this.bb_pos, 4);
|
|
1632
|
+
return s ? this.bb.__string(this.bb_pos + s, t) : null;
|
|
1633
|
+
}
|
|
1634
|
+
label(t) {
|
|
1635
|
+
const s = this.bb.__offset(this.bb_pos, 6);
|
|
1636
|
+
return s ? this.bb.__string(this.bb_pos + s, t) : null;
|
|
1637
|
+
}
|
|
1638
|
+
static startPollOption(t) {
|
|
1639
|
+
t.startObject(2);
|
|
1640
|
+
}
|
|
1641
|
+
static addId(t, s) {
|
|
1642
|
+
t.addFieldOffset(0, s, 0);
|
|
1643
|
+
}
|
|
1644
|
+
static addLabel(t, s) {
|
|
1645
|
+
t.addFieldOffset(1, s, 0);
|
|
1646
|
+
}
|
|
1647
|
+
static endPollOption(t) {
|
|
1648
|
+
const s = t.endObject();
|
|
1649
|
+
return t.requiredField(s, 4), t.requiredField(s, 6), s;
|
|
1650
|
+
}
|
|
1651
|
+
static createPollOption(t, s, e) {
|
|
1652
|
+
return Lt.startPollOption(t), Lt.addId(t, s), Lt.addLabel(t, e), Lt.endPollOption(t);
|
|
1653
|
+
}
|
|
1654
|
+
unpack() {
|
|
1655
|
+
return new Ls(
|
|
1656
|
+
this.id(),
|
|
1657
|
+
this.label()
|
|
1658
|
+
);
|
|
1659
|
+
}
|
|
1660
|
+
unpackTo(t) {
|
|
1661
|
+
t.id = this.id(), t.label = this.label();
|
|
1662
|
+
}
|
|
1663
|
+
}
|
|
1664
|
+
class Ls {
|
|
1665
|
+
constructor(t = null, s = null) {
|
|
1666
|
+
this.id = t, this.label = s;
|
|
1667
|
+
}
|
|
1668
|
+
pack(t) {
|
|
1669
|
+
const s = this.id !== null ? t.createString(this.id) : 0, e = this.label !== null ? t.createString(this.label) : 0;
|
|
1670
|
+
return Lt.createPollOption(
|
|
1671
|
+
t,
|
|
1672
|
+
s,
|
|
1673
|
+
e
|
|
1674
|
+
);
|
|
1675
|
+
}
|
|
1676
|
+
}
|
|
1677
|
+
var Gt = /* @__PURE__ */ ((n) => (n[n.SingleChoice = 0] = "SingleChoice", n[n.MultipleChoice = 1] = "MultipleChoice", n))(Gt || {});
|
|
1678
|
+
class S {
|
|
1679
|
+
constructor() {
|
|
1680
|
+
this.bb = null, this.bb_pos = 0;
|
|
1681
|
+
}
|
|
1682
|
+
__init(t, s) {
|
|
1683
|
+
return this.bb_pos = t, this.bb = s, this;
|
|
1684
|
+
}
|
|
1685
|
+
static getRootAsKind1068Parsed(t, s) {
|
|
1686
|
+
return (s || new S()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1687
|
+
}
|
|
1688
|
+
static getSizePrefixedRootAsKind1068Parsed(t, s) {
|
|
1689
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new S()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1690
|
+
}
|
|
1691
|
+
id(t) {
|
|
1692
|
+
const s = this.bb.__offset(this.bb_pos, 4);
|
|
1693
|
+
return s ? this.bb.__string(this.bb_pos + s, t) : null;
|
|
1694
|
+
}
|
|
1695
|
+
pubkey(t) {
|
|
1696
|
+
const s = this.bb.__offset(this.bb_pos, 6);
|
|
1697
|
+
return s ? this.bb.__string(this.bb_pos + s, t) : null;
|
|
1698
|
+
}
|
|
1699
|
+
question(t) {
|
|
1700
|
+
const s = this.bb.__offset(this.bb_pos, 8);
|
|
1701
|
+
return s ? this.bb.__string(this.bb_pos + s, t) : null;
|
|
1702
|
+
}
|
|
1703
|
+
contentBlocks(t, s) {
|
|
1704
|
+
const e = this.bb.__offset(this.bb_pos, 10);
|
|
1705
|
+
return e ? (s || new C()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + e) + t * 4), this.bb) : null;
|
|
1706
|
+
}
|
|
1707
|
+
contentBlocksLength() {
|
|
1708
|
+
const t = this.bb.__offset(this.bb_pos, 10);
|
|
1709
|
+
return t ? this.bb.__vector_len(this.bb_pos + t) : 0;
|
|
1710
|
+
}
|
|
1711
|
+
options(t, s) {
|
|
1712
|
+
const e = this.bb.__offset(this.bb_pos, 12);
|
|
1713
|
+
return e ? (s || new Lt()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + e) + t * 4), this.bb) : null;
|
|
1714
|
+
}
|
|
1715
|
+
optionsLength() {
|
|
1716
|
+
const t = this.bb.__offset(this.bb_pos, 12);
|
|
1717
|
+
return t ? this.bb.__vector_len(this.bb_pos + t) : 0;
|
|
1718
|
+
}
|
|
1719
|
+
pollType() {
|
|
1720
|
+
const t = this.bb.__offset(this.bb_pos, 14);
|
|
1721
|
+
return t ? this.bb.readInt8(this.bb_pos + t) : Gt.SingleChoice;
|
|
1722
|
+
}
|
|
1723
|
+
endsAt() {
|
|
1724
|
+
const t = this.bb.__offset(this.bb_pos, 16);
|
|
1725
|
+
return t ? this.bb.readUint64(this.bb_pos + t) : BigInt("0");
|
|
1726
|
+
}
|
|
1727
|
+
relayUrls(t, s) {
|
|
1728
|
+
const e = this.bb.__offset(this.bb_pos, 18);
|
|
1729
|
+
return e ? this.bb.__string(this.bb.__vector(this.bb_pos + e) + t * 4, s) : null;
|
|
1730
|
+
}
|
|
1731
|
+
relayUrlsLength() {
|
|
1732
|
+
const t = this.bb.__offset(this.bb_pos, 18);
|
|
1733
|
+
return t ? this.bb.__vector_len(this.bb_pos + t) : 0;
|
|
1734
|
+
}
|
|
1735
|
+
static startKind1068Parsed(t) {
|
|
1736
|
+
t.startObject(8);
|
|
1737
|
+
}
|
|
1738
|
+
static addId(t, s) {
|
|
1739
|
+
t.addFieldOffset(0, s, 0);
|
|
1740
|
+
}
|
|
1741
|
+
static addPubkey(t, s) {
|
|
1742
|
+
t.addFieldOffset(1, s, 0);
|
|
1374
1743
|
}
|
|
1375
|
-
|
|
1376
|
-
|
|
1744
|
+
static addQuestion(t, s) {
|
|
1745
|
+
t.addFieldOffset(2, s, 0);
|
|
1377
1746
|
}
|
|
1378
|
-
static
|
|
1379
|
-
|
|
1747
|
+
static addContentBlocks(t, s) {
|
|
1748
|
+
t.addFieldOffset(3, s, 0);
|
|
1380
1749
|
}
|
|
1381
|
-
static
|
|
1382
|
-
|
|
1750
|
+
static createContentBlocksVector(t, s) {
|
|
1751
|
+
t.startVector(4, s.length, 4);
|
|
1752
|
+
for (let e = s.length - 1; e >= 0; e--)
|
|
1753
|
+
t.addOffset(s[e]);
|
|
1754
|
+
return t.endVector();
|
|
1383
1755
|
}
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
return s ? this.bb.__string(this.bb_pos + s, t) : null;
|
|
1756
|
+
static startContentBlocksVector(t, s) {
|
|
1757
|
+
t.startVector(4, s, 4);
|
|
1387
1758
|
}
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
return s ? this.bb.__string(this.bb_pos + s, t) : null;
|
|
1759
|
+
static addOptions(t, s) {
|
|
1760
|
+
t.addFieldOffset(4, s, 0);
|
|
1391
1761
|
}
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1762
|
+
static createOptionsVector(t, s) {
|
|
1763
|
+
t.startVector(4, s.length, 4);
|
|
1764
|
+
for (let e = s.length - 1; e >= 0; e--)
|
|
1765
|
+
t.addOffset(s[e]);
|
|
1766
|
+
return t.endVector();
|
|
1395
1767
|
}
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
return s ? this.bb.__union(t, this.bb_pos + s) : null;
|
|
1768
|
+
static startOptionsVector(t, s) {
|
|
1769
|
+
t.startVector(4, s, 4);
|
|
1399
1770
|
}
|
|
1400
|
-
static
|
|
1401
|
-
t.
|
|
1771
|
+
static addPollType(t, s) {
|
|
1772
|
+
t.addFieldInt8(5, s, Gt.SingleChoice);
|
|
1402
1773
|
}
|
|
1403
|
-
static
|
|
1404
|
-
t.
|
|
1774
|
+
static addEndsAt(t, s) {
|
|
1775
|
+
t.addFieldInt64(6, s, BigInt("0"));
|
|
1405
1776
|
}
|
|
1406
|
-
static
|
|
1407
|
-
t.addFieldOffset(
|
|
1777
|
+
static addRelayUrls(t, s) {
|
|
1778
|
+
t.addFieldOffset(7, s, 0);
|
|
1408
1779
|
}
|
|
1409
|
-
static
|
|
1410
|
-
t.
|
|
1780
|
+
static createRelayUrlsVector(t, s) {
|
|
1781
|
+
t.startVector(4, s.length, 4);
|
|
1782
|
+
for (let e = s.length - 1; e >= 0; e--)
|
|
1783
|
+
t.addOffset(s[e]);
|
|
1784
|
+
return t.endVector();
|
|
1411
1785
|
}
|
|
1412
|
-
static
|
|
1413
|
-
t.
|
|
1786
|
+
static startRelayUrlsVector(t, s) {
|
|
1787
|
+
t.startVector(4, s, 4);
|
|
1414
1788
|
}
|
|
1415
|
-
static
|
|
1789
|
+
static endKind1068Parsed(t) {
|
|
1416
1790
|
const s = t.endObject();
|
|
1417
|
-
return t.requiredField(s, 4), t.requiredField(s, 6), s;
|
|
1791
|
+
return t.requiredField(s, 4), t.requiredField(s, 6), t.requiredField(s, 8), t.requiredField(s, 12), s;
|
|
1418
1792
|
}
|
|
1419
|
-
static
|
|
1420
|
-
return
|
|
1793
|
+
static createKind1068Parsed(t, s, e, i, o, r, a, h, d) {
|
|
1794
|
+
return S.startKind1068Parsed(t), S.addId(t, s), S.addPubkey(t, e), S.addQuestion(t, i), S.addContentBlocks(t, o), S.addOptions(t, r), S.addPollType(t, a), S.addEndsAt(t, h), S.addRelayUrls(t, d), S.endKind1068Parsed(t);
|
|
1421
1795
|
}
|
|
1422
1796
|
unpack() {
|
|
1423
|
-
return new
|
|
1424
|
-
this.
|
|
1425
|
-
this.
|
|
1426
|
-
this.
|
|
1427
|
-
(()
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1797
|
+
return new Fs(
|
|
1798
|
+
this.id(),
|
|
1799
|
+
this.pubkey(),
|
|
1800
|
+
this.question(),
|
|
1801
|
+
this.bb.createObjList(this.contentBlocks.bind(this), this.contentBlocksLength()),
|
|
1802
|
+
this.bb.createObjList(this.options.bind(this), this.optionsLength()),
|
|
1803
|
+
this.pollType(),
|
|
1804
|
+
this.endsAt(),
|
|
1805
|
+
this.bb.createScalarList(this.relayUrls.bind(this), this.relayUrlsLength())
|
|
1431
1806
|
);
|
|
1432
1807
|
}
|
|
1433
1808
|
unpackTo(t) {
|
|
1434
|
-
t.
|
|
1435
|
-
const s = Dt(this.dataType(), this.data.bind(this));
|
|
1436
|
-
return s === null ? null : s.unpack();
|
|
1437
|
-
})();
|
|
1809
|
+
t.id = this.id(), t.pubkey = this.pubkey(), t.question = this.question(), t.contentBlocks = this.bb.createObjList(this.contentBlocks.bind(this), this.contentBlocksLength()), t.options = this.bb.createObjList(this.options.bind(this), this.optionsLength()), t.pollType = this.pollType(), t.endsAt = this.endsAt(), t.relayUrls = this.bb.createScalarList(this.relayUrls.bind(this), this.relayUrlsLength());
|
|
1438
1810
|
}
|
|
1439
1811
|
}
|
|
1440
|
-
class
|
|
1441
|
-
constructor(t = null, s = null, e =
|
|
1442
|
-
this.
|
|
1812
|
+
class Fs {
|
|
1813
|
+
constructor(t = null, s = null, e = null, i = [], o = [], r = Gt.SingleChoice, a = BigInt("0"), h = []) {
|
|
1814
|
+
this.id = t, this.pubkey = s, this.question = e, this.contentBlocks = i, this.options = o, this.pollType = r, this.endsAt = a, this.relayUrls = h;
|
|
1443
1815
|
}
|
|
1444
1816
|
pack(t) {
|
|
1445
|
-
const s = this.
|
|
1446
|
-
return
|
|
1817
|
+
const s = this.id !== null ? t.createString(this.id) : 0, e = this.pubkey !== null ? t.createString(this.pubkey) : 0, i = this.question !== null ? t.createString(this.question) : 0, o = S.createContentBlocksVector(t, t.createObjectOffsetList(this.contentBlocks)), r = S.createOptionsVector(t, t.createObjectOffsetList(this.options)), a = S.createRelayUrlsVector(t, t.createObjectOffsetList(this.relayUrls));
|
|
1818
|
+
return S.createKind1068Parsed(
|
|
1447
1819
|
t,
|
|
1448
1820
|
s,
|
|
1449
1821
|
e,
|
|
1450
|
-
|
|
1451
|
-
|
|
1822
|
+
i,
|
|
1823
|
+
o,
|
|
1824
|
+
r,
|
|
1825
|
+
this.pollType,
|
|
1826
|
+
this.endsAt,
|
|
1827
|
+
a
|
|
1452
1828
|
);
|
|
1453
1829
|
}
|
|
1454
1830
|
}
|
|
1455
|
-
class
|
|
1831
|
+
class N {
|
|
1456
1832
|
constructor() {
|
|
1457
1833
|
this.bb = null, this.bb_pos = 0;
|
|
1458
1834
|
}
|
|
@@ -1460,10 +1836,10 @@ class K {
|
|
|
1460
1836
|
return this.bb_pos = t, this.bb = s, this;
|
|
1461
1837
|
}
|
|
1462
1838
|
static getRootAsEventPointer(t, s) {
|
|
1463
|
-
return (s || new
|
|
1839
|
+
return (s || new N()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1464
1840
|
}
|
|
1465
1841
|
static getSizePrefixedRootAsEventPointer(t, s) {
|
|
1466
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
1842
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new N()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1467
1843
|
}
|
|
1468
1844
|
id(t) {
|
|
1469
1845
|
const s = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -1514,10 +1890,10 @@ class K {
|
|
|
1514
1890
|
return t.requiredField(s, 4), s;
|
|
1515
1891
|
}
|
|
1516
1892
|
static createEventPointer(t, s, e, i, o) {
|
|
1517
|
-
return
|
|
1893
|
+
return N.startEventPointer(t), N.addId(t, s), N.addRelays(t, e), N.addAuthor(t, i), N.addKind(t, o), N.endEventPointer(t);
|
|
1518
1894
|
}
|
|
1519
1895
|
unpack() {
|
|
1520
|
-
return new
|
|
1896
|
+
return new Ss(
|
|
1521
1897
|
this.id(),
|
|
1522
1898
|
this.bb.createScalarList(this.relays.bind(this), this.relaysLength()),
|
|
1523
1899
|
this.author(),
|
|
@@ -1528,13 +1904,13 @@ class K {
|
|
|
1528
1904
|
t.id = this.id(), t.relays = this.bb.createScalarList(this.relays.bind(this), this.relaysLength()), t.author = this.author(), t.kind = this.kind();
|
|
1529
1905
|
}
|
|
1530
1906
|
}
|
|
1531
|
-
class
|
|
1907
|
+
class Ss {
|
|
1532
1908
|
constructor(t = null, s = [], e = null, i = BigInt("0")) {
|
|
1533
1909
|
this.id = t, this.relays = s, this.author = e, this.kind = i;
|
|
1534
1910
|
}
|
|
1535
1911
|
pack(t) {
|
|
1536
|
-
const s = this.id !== null ? t.createString(this.id) : 0, e =
|
|
1537
|
-
return
|
|
1912
|
+
const s = this.id !== null ? t.createString(this.id) : 0, e = N.createRelaysVector(t, t.createObjectOffsetList(this.relays)), i = this.author !== null ? t.createString(this.author) : 0;
|
|
1913
|
+
return N.createEventPointer(
|
|
1538
1914
|
t,
|
|
1539
1915
|
s,
|
|
1540
1916
|
e,
|
|
@@ -1543,7 +1919,7 @@ class us {
|
|
|
1543
1919
|
);
|
|
1544
1920
|
}
|
|
1545
1921
|
}
|
|
1546
|
-
class
|
|
1922
|
+
class Z {
|
|
1547
1923
|
constructor() {
|
|
1548
1924
|
this.bb = null, this.bb_pos = 0;
|
|
1549
1925
|
}
|
|
@@ -1551,10 +1927,10 @@ class z {
|
|
|
1551
1927
|
return this.bb_pos = t, this.bb = s, this;
|
|
1552
1928
|
}
|
|
1553
1929
|
static getRootAsProfilePointer(t, s) {
|
|
1554
|
-
return (s || new
|
|
1930
|
+
return (s || new Z()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1555
1931
|
}
|
|
1556
1932
|
static getSizePrefixedRootAsProfilePointer(t, s) {
|
|
1557
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
1933
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new Z()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1558
1934
|
}
|
|
1559
1935
|
publicKey(t) {
|
|
1560
1936
|
const s = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -1591,10 +1967,10 @@ class z {
|
|
|
1591
1967
|
return t.requiredField(s, 4), s;
|
|
1592
1968
|
}
|
|
1593
1969
|
static createProfilePointer(t, s, e) {
|
|
1594
|
-
return
|
|
1970
|
+
return Z.startProfilePointer(t), Z.addPublicKey(t, s), Z.addRelays(t, e), Z.endProfilePointer(t);
|
|
1595
1971
|
}
|
|
1596
1972
|
unpack() {
|
|
1597
|
-
return new
|
|
1973
|
+
return new Ps(
|
|
1598
1974
|
this.publicKey(),
|
|
1599
1975
|
this.bb.createScalarList(this.relays.bind(this), this.relaysLength())
|
|
1600
1976
|
);
|
|
@@ -1603,13 +1979,13 @@ class z {
|
|
|
1603
1979
|
t.publicKey = this.publicKey(), t.relays = this.bb.createScalarList(this.relays.bind(this), this.relaysLength());
|
|
1604
1980
|
}
|
|
1605
1981
|
}
|
|
1606
|
-
class
|
|
1982
|
+
class Ps {
|
|
1607
1983
|
constructor(t = null, s = []) {
|
|
1608
1984
|
this.publicKey = t, this.relays = s;
|
|
1609
1985
|
}
|
|
1610
1986
|
pack(t) {
|
|
1611
|
-
const s = this.publicKey !== null ? t.createString(this.publicKey) : 0, e =
|
|
1612
|
-
return
|
|
1987
|
+
const s = this.publicKey !== null ? t.createString(this.publicKey) : 0, e = Z.createRelaysVector(t, t.createObjectOffsetList(this.relays));
|
|
1988
|
+
return Z.createProfilePointer(
|
|
1613
1989
|
t,
|
|
1614
1990
|
s,
|
|
1615
1991
|
e
|
|
@@ -1699,7 +2075,7 @@ class _ {
|
|
|
1699
2075
|
}
|
|
1700
2076
|
citations(t, s) {
|
|
1701
2077
|
const e = this.bb.__offset(this.bb_pos, 32);
|
|
1702
|
-
return e ? (s || new
|
|
2078
|
+
return e ? (s || new N()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + e) + t * 4), this.bb) : null;
|
|
1703
2079
|
}
|
|
1704
2080
|
citationsLength() {
|
|
1705
2081
|
const t = this.bb.__offset(this.bb_pos, 32);
|
|
@@ -1707,7 +2083,7 @@ class _ {
|
|
|
1707
2083
|
}
|
|
1708
2084
|
mentions(t, s) {
|
|
1709
2085
|
const e = this.bb.__offset(this.bb_pos, 34);
|
|
1710
|
-
return e ? (s || new
|
|
2086
|
+
return e ? (s || new Z()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + e) + t * 4), this.bb) : null;
|
|
1711
2087
|
}
|
|
1712
2088
|
mentionsLength() {
|
|
1713
2089
|
const t = this.bb.__offset(this.bb_pos, 34);
|
|
@@ -1813,11 +2189,11 @@ class _ {
|
|
|
1813
2189
|
const s = t.endObject();
|
|
1814
2190
|
return t.requiredField(s, 4), s;
|
|
1815
2191
|
}
|
|
1816
|
-
static createKind1111Parsed(t, s, e, i, o, r, a, h, d, b, l, u, y,
|
|
1817
|
-
return _.startKind1111Parsed(t), _.addContent(t, s), _.addParsedContent(t, e), _.addRootId(t, i), _.addRootCoordinate(t, o), _.addRootExternal(t, r), _.addRootKind(t, a), _.addRootAuthor(t, h), _.addRootRelays(t, d), _.addParentId(t, b), _.addParentCoordinate(t, l), _.addParentExternal(t, u), _.addParentKind(t, y), _.addParentAuthor(t,
|
|
2192
|
+
static createKind1111Parsed(t, s, e, i, o, r, a, h, d, b, l, u, y, I, V, K, U) {
|
|
2193
|
+
return _.startKind1111Parsed(t), _.addContent(t, s), _.addParsedContent(t, e), _.addRootId(t, i), _.addRootCoordinate(t, o), _.addRootExternal(t, r), _.addRootKind(t, a), _.addRootAuthor(t, h), _.addRootRelays(t, d), _.addParentId(t, b), _.addParentCoordinate(t, l), _.addParentExternal(t, u), _.addParentKind(t, y), _.addParentAuthor(t, I), _.addParentRelays(t, V), _.addCitations(t, K), _.addMentions(t, U), _.endKind1111Parsed(t);
|
|
1818
2194
|
}
|
|
1819
2195
|
unpack() {
|
|
1820
|
-
return new
|
|
2196
|
+
return new vs(
|
|
1821
2197
|
this.content(),
|
|
1822
2198
|
this.bb.createObjList(this.parsedContent.bind(this), this.parsedContentLength()),
|
|
1823
2199
|
this.rootId(),
|
|
@@ -1840,12 +2216,12 @@ class _ {
|
|
|
1840
2216
|
t.content = this.content(), t.parsedContent = this.bb.createObjList(this.parsedContent.bind(this), this.parsedContentLength()), t.rootId = this.rootId(), t.rootCoordinate = this.rootCoordinate(), t.rootExternal = this.rootExternal(), t.rootKind = this.rootKind(), t.rootAuthor = this.rootAuthor(), t.rootRelays = this.bb.createScalarList(this.rootRelays.bind(this), this.rootRelaysLength()), t.parentId = this.parentId(), t.parentCoordinate = this.parentCoordinate(), t.parentExternal = this.parentExternal(), t.parentKind = this.parentKind(), t.parentAuthor = this.parentAuthor(), t.parentRelays = this.bb.createScalarList(this.parentRelays.bind(this), this.parentRelaysLength()), t.citations = this.bb.createObjList(this.citations.bind(this), this.citationsLength()), t.mentions = this.bb.createObjList(this.mentions.bind(this), this.mentionsLength());
|
|
1841
2217
|
}
|
|
1842
2218
|
}
|
|
1843
|
-
class
|
|
1844
|
-
constructor(t = null, s = [], e = null, i = null, o = null, r = 0, a = null, h = [], d = null, b = null, l = null, u = 0, y = null,
|
|
1845
|
-
this.content = t, this.parsedContent = s, this.rootId = e, this.rootCoordinate = i, this.rootExternal = o, this.rootKind = r, this.rootAuthor = a, this.rootRelays = h, this.parentId = d, this.parentCoordinate = b, this.parentExternal = l, this.parentKind = u, this.parentAuthor = y, this.parentRelays =
|
|
2219
|
+
class vs {
|
|
2220
|
+
constructor(t = null, s = [], e = null, i = null, o = null, r = 0, a = null, h = [], d = null, b = null, l = null, u = 0, y = null, I = [], V = [], K = []) {
|
|
2221
|
+
this.content = t, this.parsedContent = s, this.rootId = e, this.rootCoordinate = i, this.rootExternal = o, this.rootKind = r, this.rootAuthor = a, this.rootRelays = h, this.parentId = d, this.parentCoordinate = b, this.parentExternal = l, this.parentKind = u, this.parentAuthor = y, this.parentRelays = I, this.citations = V, this.mentions = K;
|
|
1846
2222
|
}
|
|
1847
2223
|
pack(t) {
|
|
1848
|
-
const s = this.content !== null ? t.createString(this.content) : 0, e = _.createParsedContentVector(t, t.createObjectOffsetList(this.parsedContent)), i = this.rootId !== null ? t.createString(this.rootId) : 0, o = this.rootCoordinate !== null ? t.createString(this.rootCoordinate) : 0, r = this.rootExternal !== null ? t.createString(this.rootExternal) : 0, a = this.rootAuthor !== null ? t.createString(this.rootAuthor) : 0, h = _.createRootRelaysVector(t, t.createObjectOffsetList(this.rootRelays)), d = this.parentId !== null ? t.createString(this.parentId) : 0, b = this.parentCoordinate !== null ? t.createString(this.parentCoordinate) : 0, l = this.parentExternal !== null ? t.createString(this.parentExternal) : 0, u = this.parentAuthor !== null ? t.createString(this.parentAuthor) : 0, y = _.createParentRelaysVector(t, t.createObjectOffsetList(this.parentRelays)),
|
|
2224
|
+
const s = this.content !== null ? t.createString(this.content) : 0, e = _.createParsedContentVector(t, t.createObjectOffsetList(this.parsedContent)), i = this.rootId !== null ? t.createString(this.rootId) : 0, o = this.rootCoordinate !== null ? t.createString(this.rootCoordinate) : 0, r = this.rootExternal !== null ? t.createString(this.rootExternal) : 0, a = this.rootAuthor !== null ? t.createString(this.rootAuthor) : 0, h = _.createRootRelaysVector(t, t.createObjectOffsetList(this.rootRelays)), d = this.parentId !== null ? t.createString(this.parentId) : 0, b = this.parentCoordinate !== null ? t.createString(this.parentCoordinate) : 0, l = this.parentExternal !== null ? t.createString(this.parentExternal) : 0, u = this.parentAuthor !== null ? t.createString(this.parentAuthor) : 0, y = _.createParentRelaysVector(t, t.createObjectOffsetList(this.parentRelays)), I = _.createCitationsVector(t, t.createObjectOffsetList(this.citations)), V = _.createMentionsVector(t, t.createObjectOffsetList(this.mentions));
|
|
1849
2225
|
return _.createKind1111Parsed(
|
|
1850
2226
|
t,
|
|
1851
2227
|
s,
|
|
@@ -1862,12 +2238,12 @@ class Os {
|
|
|
1862
2238
|
this.parentKind,
|
|
1863
2239
|
u,
|
|
1864
2240
|
y,
|
|
1865
|
-
|
|
1866
|
-
|
|
2241
|
+
I,
|
|
2242
|
+
V
|
|
1867
2243
|
);
|
|
1868
2244
|
}
|
|
1869
2245
|
}
|
|
1870
|
-
class
|
|
2246
|
+
class it {
|
|
1871
2247
|
constructor() {
|
|
1872
2248
|
this.bb = null, this.bb_pos = 0;
|
|
1873
2249
|
}
|
|
@@ -1875,10 +2251,10 @@ class st {
|
|
|
1875
2251
|
return this.bb_pos = t, this.bb = s, this;
|
|
1876
2252
|
}
|
|
1877
2253
|
static getRootAsLiveActivityRef(t, s) {
|
|
1878
|
-
return (s || new
|
|
2254
|
+
return (s || new it()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1879
2255
|
}
|
|
1880
2256
|
static getSizePrefixedRootAsLiveActivityRef(t, s) {
|
|
1881
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
2257
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new it()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1882
2258
|
}
|
|
1883
2259
|
kind() {
|
|
1884
2260
|
const t = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -1916,10 +2292,10 @@ class st {
|
|
|
1916
2292
|
return t.requiredField(s, 6), t.requiredField(s, 8), s;
|
|
1917
2293
|
}
|
|
1918
2294
|
static createLiveActivityRef(t, s, e, i, o) {
|
|
1919
|
-
return
|
|
2295
|
+
return it.startLiveActivityRef(t), it.addKind(t, s), it.addPubkey(t, e), it.addIdentifier(t, i), it.addRelay(t, o), it.endLiveActivityRef(t);
|
|
1920
2296
|
}
|
|
1921
2297
|
unpack() {
|
|
1922
|
-
return new
|
|
2298
|
+
return new Vs(
|
|
1923
2299
|
this.kind(),
|
|
1924
2300
|
this.pubkey(),
|
|
1925
2301
|
this.identifier(),
|
|
@@ -1930,13 +2306,13 @@ class st {
|
|
|
1930
2306
|
t.kind = this.kind(), t.pubkey = this.pubkey(), t.identifier = this.identifier(), t.relay = this.relay();
|
|
1931
2307
|
}
|
|
1932
2308
|
}
|
|
1933
|
-
class
|
|
2309
|
+
class Vs {
|
|
1934
2310
|
constructor(t = 0, s = null, e = null, i = null) {
|
|
1935
2311
|
this.kind = t, this.pubkey = s, this.identifier = e, this.relay = i;
|
|
1936
2312
|
}
|
|
1937
2313
|
pack(t) {
|
|
1938
2314
|
const s = this.pubkey !== null ? t.createString(this.pubkey) : 0, e = this.identifier !== null ? t.createString(this.identifier) : 0, i = this.relay !== null ? t.createString(this.relay) : 0;
|
|
1939
|
-
return
|
|
2315
|
+
return it.createLiveActivityRef(
|
|
1940
2316
|
t,
|
|
1941
2317
|
this.kind,
|
|
1942
2318
|
s,
|
|
@@ -1945,7 +2321,7 @@ class ys {
|
|
|
1945
2321
|
);
|
|
1946
2322
|
}
|
|
1947
2323
|
}
|
|
1948
|
-
class
|
|
2324
|
+
class Ft {
|
|
1949
2325
|
constructor() {
|
|
1950
2326
|
this.bb = null, this.bb_pos = 0;
|
|
1951
2327
|
}
|
|
@@ -1953,10 +2329,10 @@ class kt {
|
|
|
1953
2329
|
return this.bb_pos = t, this.bb = s, this;
|
|
1954
2330
|
}
|
|
1955
2331
|
static getRootAsLiveChatParticipant(t, s) {
|
|
1956
|
-
return (s || new
|
|
2332
|
+
return (s || new Ft()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1957
2333
|
}
|
|
1958
2334
|
static getSizePrefixedRootAsLiveChatParticipant(t, s) {
|
|
1959
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
2335
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new Ft()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1960
2336
|
}
|
|
1961
2337
|
pubkey(t) {
|
|
1962
2338
|
const s = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -1980,10 +2356,10 @@ class kt {
|
|
|
1980
2356
|
return t.requiredField(s, 4), s;
|
|
1981
2357
|
}
|
|
1982
2358
|
static createLiveChatParticipant(t, s, e) {
|
|
1983
|
-
return
|
|
2359
|
+
return Ft.startLiveChatParticipant(t), Ft.addPubkey(t, s), Ft.addRelay(t, e), Ft.endLiveChatParticipant(t);
|
|
1984
2360
|
}
|
|
1985
2361
|
unpack() {
|
|
1986
|
-
return new
|
|
2362
|
+
return new Es(
|
|
1987
2363
|
this.pubkey(),
|
|
1988
2364
|
this.relay()
|
|
1989
2365
|
);
|
|
@@ -1992,20 +2368,20 @@ class kt {
|
|
|
1992
2368
|
t.pubkey = this.pubkey(), t.relay = this.relay();
|
|
1993
2369
|
}
|
|
1994
2370
|
}
|
|
1995
|
-
class
|
|
2371
|
+
class Es {
|
|
1996
2372
|
constructor(t = null, s = null) {
|
|
1997
2373
|
this.pubkey = t, this.relay = s;
|
|
1998
2374
|
}
|
|
1999
2375
|
pack(t) {
|
|
2000
2376
|
const s = this.pubkey !== null ? t.createString(this.pubkey) : 0, e = this.relay !== null ? t.createString(this.relay) : 0;
|
|
2001
|
-
return
|
|
2377
|
+
return Ft.createLiveChatParticipant(
|
|
2002
2378
|
t,
|
|
2003
2379
|
s,
|
|
2004
2380
|
e
|
|
2005
2381
|
);
|
|
2006
2382
|
}
|
|
2007
2383
|
}
|
|
2008
|
-
class
|
|
2384
|
+
class St {
|
|
2009
2385
|
constructor() {
|
|
2010
2386
|
this.bb = null, this.bb_pos = 0;
|
|
2011
2387
|
}
|
|
@@ -2013,10 +2389,10 @@ class mt {
|
|
|
2013
2389
|
return this.bb_pos = t, this.bb = s, this;
|
|
2014
2390
|
}
|
|
2015
2391
|
static getRootAsLiveChatThreadRef(t, s) {
|
|
2016
|
-
return (s || new
|
|
2392
|
+
return (s || new St()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
2017
2393
|
}
|
|
2018
2394
|
static getSizePrefixedRootAsLiveChatThreadRef(t, s) {
|
|
2019
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
2395
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new St()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
2020
2396
|
}
|
|
2021
2397
|
eventId(t) {
|
|
2022
2398
|
const s = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -2040,10 +2416,10 @@ class mt {
|
|
|
2040
2416
|
return t.requiredField(s, 4), s;
|
|
2041
2417
|
}
|
|
2042
2418
|
static createLiveChatThreadRef(t, s, e) {
|
|
2043
|
-
return
|
|
2419
|
+
return St.startLiveChatThreadRef(t), St.addEventId(t, s), St.addRelay(t, e), St.endLiveChatThreadRef(t);
|
|
2044
2420
|
}
|
|
2045
2421
|
unpack() {
|
|
2046
|
-
return new
|
|
2422
|
+
return new Rs(
|
|
2047
2423
|
this.eventId(),
|
|
2048
2424
|
this.relay()
|
|
2049
2425
|
);
|
|
@@ -2052,20 +2428,20 @@ class mt {
|
|
|
2052
2428
|
t.eventId = this.eventId(), t.relay = this.relay();
|
|
2053
2429
|
}
|
|
2054
2430
|
}
|
|
2055
|
-
class
|
|
2431
|
+
class Rs {
|
|
2056
2432
|
constructor(t = null, s = null) {
|
|
2057
2433
|
this.eventId = t, this.relay = s;
|
|
2058
2434
|
}
|
|
2059
2435
|
pack(t) {
|
|
2060
2436
|
const s = this.eventId !== null ? t.createString(this.eventId) : 0, e = this.relay !== null ? t.createString(this.relay) : 0;
|
|
2061
|
-
return
|
|
2437
|
+
return St.createLiveChatThreadRef(
|
|
2062
2438
|
t,
|
|
2063
2439
|
s,
|
|
2064
2440
|
e
|
|
2065
2441
|
);
|
|
2066
2442
|
}
|
|
2067
2443
|
}
|
|
2068
|
-
class
|
|
2444
|
+
class q {
|
|
2069
2445
|
constructor() {
|
|
2070
2446
|
this.bb = null, this.bb_pos = 0;
|
|
2071
2447
|
}
|
|
@@ -2073,10 +2449,10 @@ class N {
|
|
|
2073
2449
|
return this.bb_pos = t, this.bb = s, this;
|
|
2074
2450
|
}
|
|
2075
2451
|
static getRootAsKind1311Parsed(t, s) {
|
|
2076
|
-
return (s || new
|
|
2452
|
+
return (s || new q()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
2077
2453
|
}
|
|
2078
2454
|
static getSizePrefixedRootAsKind1311Parsed(t, s) {
|
|
2079
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
2455
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new q()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
2080
2456
|
}
|
|
2081
2457
|
content(t) {
|
|
2082
2458
|
const s = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -2092,11 +2468,11 @@ class N {
|
|
|
2092
2468
|
}
|
|
2093
2469
|
activity(t) {
|
|
2094
2470
|
const s = this.bb.__offset(this.bb_pos, 8);
|
|
2095
|
-
return s ? (t || new
|
|
2471
|
+
return s ? (t || new it()).__init(this.bb.__indirect(this.bb_pos + s), this.bb) : null;
|
|
2096
2472
|
}
|
|
2097
2473
|
threadRefs(t, s) {
|
|
2098
2474
|
const e = this.bb.__offset(this.bb_pos, 10);
|
|
2099
|
-
return e ? (s || new
|
|
2475
|
+
return e ? (s || new St()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + e) + t * 4), this.bb) : null;
|
|
2100
2476
|
}
|
|
2101
2477
|
threadRefsLength() {
|
|
2102
2478
|
const t = this.bb.__offset(this.bb_pos, 10);
|
|
@@ -2104,7 +2480,7 @@ class N {
|
|
|
2104
2480
|
}
|
|
2105
2481
|
mentions(t, s) {
|
|
2106
2482
|
const e = this.bb.__offset(this.bb_pos, 12);
|
|
2107
|
-
return e ? (s || new
|
|
2483
|
+
return e ? (s || new Ft()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + e) + t * 4), this.bb) : null;
|
|
2108
2484
|
}
|
|
2109
2485
|
mentionsLength() {
|
|
2110
2486
|
const t = this.bb.__offset(this.bb_pos, 12);
|
|
@@ -2160,7 +2536,7 @@ class N {
|
|
|
2160
2536
|
return t.requiredField(s, 4), t.requiredField(s, 8), s;
|
|
2161
2537
|
}
|
|
2162
2538
|
unpack() {
|
|
2163
|
-
return new
|
|
2539
|
+
return new Ts(
|
|
2164
2540
|
this.content(),
|
|
2165
2541
|
this.bb.createObjList(this.parsedContent.bind(this), this.parsedContentLength()),
|
|
2166
2542
|
this.activity() !== null ? this.activity().unpack() : null,
|
|
@@ -2172,16 +2548,16 @@ class N {
|
|
|
2172
2548
|
t.content = this.content(), t.parsedContent = this.bb.createObjList(this.parsedContent.bind(this), this.parsedContentLength()), t.activity = this.activity() !== null ? this.activity().unpack() : null, t.threadRefs = this.bb.createObjList(this.threadRefs.bind(this), this.threadRefsLength()), t.mentions = this.bb.createObjList(this.mentions.bind(this), this.mentionsLength());
|
|
2173
2549
|
}
|
|
2174
2550
|
}
|
|
2175
|
-
class
|
|
2551
|
+
class Ts {
|
|
2176
2552
|
constructor(t = null, s = [], e = null, i = [], o = []) {
|
|
2177
2553
|
this.content = t, this.parsedContent = s, this.activity = e, this.threadRefs = i, this.mentions = o;
|
|
2178
2554
|
}
|
|
2179
2555
|
pack(t) {
|
|
2180
|
-
const s = this.content !== null ? t.createString(this.content) : 0, e =
|
|
2181
|
-
return
|
|
2556
|
+
const s = this.content !== null ? t.createString(this.content) : 0, e = q.createParsedContentVector(t, t.createObjectOffsetList(this.parsedContent)), i = this.activity !== null ? this.activity.pack(t) : 0, o = q.createThreadRefsVector(t, t.createObjectOffsetList(this.threadRefs)), r = q.createMentionsVector(t, t.createObjectOffsetList(this.mentions));
|
|
2557
|
+
return q.startKind1311Parsed(t), q.addContent(t, s), q.addParsedContent(t, e), q.addActivity(t, i), q.addThreadRefs(t, o), q.addMentions(t, r), q.endKind1311Parsed(t);
|
|
2182
2558
|
}
|
|
2183
2559
|
}
|
|
2184
|
-
class
|
|
2560
|
+
class D {
|
|
2185
2561
|
constructor() {
|
|
2186
2562
|
this.bb = null, this.bb_pos = 0;
|
|
2187
2563
|
}
|
|
@@ -2189,10 +2565,10 @@ class X {
|
|
|
2189
2565
|
return this.bb_pos = t, this.bb = s, this;
|
|
2190
2566
|
}
|
|
2191
2567
|
static getRootAsKind17375Parsed(t, s) {
|
|
2192
|
-
return (s || new
|
|
2568
|
+
return (s || new D()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
2193
2569
|
}
|
|
2194
2570
|
static getSizePrefixedRootAsKind17375Parsed(t, s) {
|
|
2195
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
2571
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new D()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
2196
2572
|
}
|
|
2197
2573
|
mints(t, s) {
|
|
2198
2574
|
const e = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -2243,10 +2619,10 @@ class X {
|
|
|
2243
2619
|
return t.requiredField(s, 4), s;
|
|
2244
2620
|
}
|
|
2245
2621
|
static createKind17375Parsed(t, s, e, i, o) {
|
|
2246
|
-
return
|
|
2622
|
+
return D.startKind17375Parsed(t), D.addMints(t, s), D.addP2pkPrivKey(t, e), D.addP2pkPubKey(t, i), D.addDecrypted(t, o), D.endKind17375Parsed(t);
|
|
2247
2623
|
}
|
|
2248
2624
|
unpack() {
|
|
2249
|
-
return new
|
|
2625
|
+
return new ws(
|
|
2250
2626
|
this.bb.createScalarList(this.mints.bind(this), this.mintsLength()),
|
|
2251
2627
|
this.p2pkPrivKey(),
|
|
2252
2628
|
this.p2pkPubKey(),
|
|
@@ -2257,13 +2633,13 @@ class X {
|
|
|
2257
2633
|
t.mints = this.bb.createScalarList(this.mints.bind(this), this.mintsLength()), t.p2pkPrivKey = this.p2pkPrivKey(), t.p2pkPubKey = this.p2pkPubKey(), t.decrypted = this.decrypted();
|
|
2258
2634
|
}
|
|
2259
2635
|
}
|
|
2260
|
-
class
|
|
2636
|
+
class ws {
|
|
2261
2637
|
constructor(t = [], s = null, e = null, i = false) {
|
|
2262
2638
|
this.mints = t, this.p2pkPrivKey = s, this.p2pkPubKey = e, this.decrypted = i;
|
|
2263
2639
|
}
|
|
2264
2640
|
pack(t) {
|
|
2265
|
-
const s =
|
|
2266
|
-
return
|
|
2641
|
+
const s = D.createMintsVector(t, t.createObjectOffsetList(this.mints)), e = this.p2pkPrivKey !== null ? t.createString(this.p2pkPrivKey) : 0, i = this.p2pkPubKey !== null ? t.createString(this.p2pkPubKey) : 0;
|
|
2642
|
+
return D.createKind17375Parsed(
|
|
2267
2643
|
t,
|
|
2268
2644
|
s,
|
|
2269
2645
|
e,
|
|
@@ -2272,7 +2648,7 @@ class Ls {
|
|
|
2272
2648
|
);
|
|
2273
2649
|
}
|
|
2274
2650
|
}
|
|
2275
|
-
class
|
|
2651
|
+
class gt {
|
|
2276
2652
|
constructor() {
|
|
2277
2653
|
this.bb = null, this.bb_pos = 0;
|
|
2278
2654
|
}
|
|
@@ -2280,10 +2656,10 @@ class _t {
|
|
|
2280
2656
|
return this.bb_pos = t, this.bb = s, this;
|
|
2281
2657
|
}
|
|
2282
2658
|
static getRootAsEmoji(t, s) {
|
|
2283
|
-
return (s || new
|
|
2659
|
+
return (s || new gt()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
2284
2660
|
}
|
|
2285
2661
|
static getSizePrefixedRootAsEmoji(t, s) {
|
|
2286
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
2662
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new gt()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
2287
2663
|
}
|
|
2288
2664
|
shortcode(t) {
|
|
2289
2665
|
const s = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -2307,10 +2683,10 @@ class _t {
|
|
|
2307
2683
|
return t.requiredField(s, 4), t.requiredField(s, 6), s;
|
|
2308
2684
|
}
|
|
2309
2685
|
static createEmoji(t, s, e) {
|
|
2310
|
-
return
|
|
2686
|
+
return gt.startEmoji(t), gt.addShortcode(t, s), gt.addUrl(t, e), gt.endEmoji(t);
|
|
2311
2687
|
}
|
|
2312
2688
|
unpack() {
|
|
2313
|
-
return new
|
|
2689
|
+
return new js(
|
|
2314
2690
|
this.shortcode(),
|
|
2315
2691
|
this.url()
|
|
2316
2692
|
);
|
|
@@ -2319,21 +2695,21 @@ class _t {
|
|
|
2319
2695
|
t.shortcode = this.shortcode(), t.url = this.url();
|
|
2320
2696
|
}
|
|
2321
2697
|
}
|
|
2322
|
-
class
|
|
2698
|
+
class js {
|
|
2323
2699
|
constructor(t = null, s = null) {
|
|
2324
2700
|
this.shortcode = t, this.url = s;
|
|
2325
2701
|
}
|
|
2326
2702
|
pack(t) {
|
|
2327
2703
|
const s = this.shortcode !== null ? t.createString(this.shortcode) : 0, e = this.url !== null ? t.createString(this.url) : 0;
|
|
2328
|
-
return
|
|
2704
|
+
return gt.createEmoji(
|
|
2329
2705
|
t,
|
|
2330
2706
|
s,
|
|
2331
2707
|
e
|
|
2332
2708
|
);
|
|
2333
2709
|
}
|
|
2334
2710
|
}
|
|
2335
|
-
var
|
|
2336
|
-
class
|
|
2711
|
+
var Ht = /* @__PURE__ */ ((n) => (n[n.Like = 0] = "Like", n[n.Dislike = 1] = "Dislike", n[n.Emoji = 2] = "Emoji", n[n.Custom = 3] = "Custom", n))(Ht || {});
|
|
2712
|
+
class M {
|
|
2337
2713
|
constructor() {
|
|
2338
2714
|
this.bb = null, this.bb_pos = 0;
|
|
2339
2715
|
}
|
|
@@ -2341,14 +2717,14 @@ class G {
|
|
|
2341
2717
|
return this.bb_pos = t, this.bb = s, this;
|
|
2342
2718
|
}
|
|
2343
2719
|
static getRootAsKind17Parsed(t, s) {
|
|
2344
|
-
return (s || new
|
|
2720
|
+
return (s || new M()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
2345
2721
|
}
|
|
2346
2722
|
static getSizePrefixedRootAsKind17Parsed(t, s) {
|
|
2347
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
2723
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new M()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
2348
2724
|
}
|
|
2349
2725
|
reactionType() {
|
|
2350
2726
|
const t = this.bb.__offset(this.bb_pos, 4);
|
|
2351
|
-
return t ? this.bb.readInt8(this.bb_pos + t) :
|
|
2727
|
+
return t ? this.bb.readInt8(this.bb_pos + t) : Ht.Like;
|
|
2352
2728
|
}
|
|
2353
2729
|
eventId(t) {
|
|
2354
2730
|
const s = this.bb.__offset(this.bb_pos, 6);
|
|
@@ -2364,7 +2740,7 @@ class G {
|
|
|
2364
2740
|
}
|
|
2365
2741
|
emoji(t) {
|
|
2366
2742
|
const s = this.bb.__offset(this.bb_pos, 12);
|
|
2367
|
-
return s ? (t || new
|
|
2743
|
+
return s ? (t || new gt()).__init(this.bb.__indirect(this.bb_pos + s), this.bb) : null;
|
|
2368
2744
|
}
|
|
2369
2745
|
targetCoordinates(t) {
|
|
2370
2746
|
const s = this.bb.__offset(this.bb_pos, 14);
|
|
@@ -2374,7 +2750,7 @@ class G {
|
|
|
2374
2750
|
t.startObject(6);
|
|
2375
2751
|
}
|
|
2376
2752
|
static addReactionType(t, s) {
|
|
2377
|
-
t.addFieldInt8(0, s,
|
|
2753
|
+
t.addFieldInt8(0, s, Ht.Like);
|
|
2378
2754
|
}
|
|
2379
2755
|
static addEventId(t, s) {
|
|
2380
2756
|
t.addFieldOffset(1, s, 0);
|
|
@@ -2396,7 +2772,7 @@ class G {
|
|
|
2396
2772
|
return t.requiredField(s, 6), t.requiredField(s, 8), s;
|
|
2397
2773
|
}
|
|
2398
2774
|
unpack() {
|
|
2399
|
-
return new
|
|
2775
|
+
return new As(
|
|
2400
2776
|
this.reactionType(),
|
|
2401
2777
|
this.eventId(),
|
|
2402
2778
|
this.pubkey(),
|
|
@@ -2409,16 +2785,16 @@ class G {
|
|
|
2409
2785
|
t.reactionType = this.reactionType(), t.eventId = this.eventId(), t.pubkey = this.pubkey(), t.eventKind = this.eventKind(), t.emoji = this.emoji() !== null ? this.emoji().unpack() : null, t.targetCoordinates = this.targetCoordinates();
|
|
2410
2786
|
}
|
|
2411
2787
|
}
|
|
2412
|
-
class
|
|
2413
|
-
constructor(t =
|
|
2788
|
+
class As {
|
|
2789
|
+
constructor(t = Ht.Like, s = null, e = null, i = BigInt("0"), o = null, r = null) {
|
|
2414
2790
|
this.reactionType = t, this.eventId = s, this.pubkey = e, this.eventKind = i, this.emoji = o, this.targetCoordinates = r;
|
|
2415
2791
|
}
|
|
2416
2792
|
pack(t) {
|
|
2417
2793
|
const s = this.eventId !== null ? t.createString(this.eventId) : 0, e = this.pubkey !== null ? t.createString(this.pubkey) : 0, i = this.emoji !== null ? this.emoji.pack(t) : 0, o = this.targetCoordinates !== null ? t.createString(this.targetCoordinates) : 0;
|
|
2418
|
-
return
|
|
2794
|
+
return M.startKind17Parsed(t), M.addReactionType(t, this.reactionType), M.addEventId(t, s), M.addPubkey(t, e), M.addEventKind(t, this.eventKind), M.addEmoji(t, i), M.addTargetCoordinates(t, o), M.endKind17Parsed(t);
|
|
2419
2795
|
}
|
|
2420
2796
|
}
|
|
2421
|
-
class
|
|
2797
|
+
class T {
|
|
2422
2798
|
constructor() {
|
|
2423
2799
|
this.bb = null, this.bb_pos = 0;
|
|
2424
2800
|
}
|
|
@@ -2426,10 +2802,10 @@ class E {
|
|
|
2426
2802
|
return this.bb_pos = t, this.bb = s, this;
|
|
2427
2803
|
}
|
|
2428
2804
|
static getRootAsKind1Parsed(t, s) {
|
|
2429
|
-
return (s || new
|
|
2805
|
+
return (s || new T()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
2430
2806
|
}
|
|
2431
2807
|
static getSizePrefixedRootAsKind1Parsed(t, s) {
|
|
2432
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
2808
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new T()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
2433
2809
|
}
|
|
2434
2810
|
parsedContent(t, s) {
|
|
2435
2811
|
const e = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -2449,7 +2825,7 @@ class E {
|
|
|
2449
2825
|
}
|
|
2450
2826
|
quotes(t, s) {
|
|
2451
2827
|
const e = this.bb.__offset(this.bb_pos, 8);
|
|
2452
|
-
return e ? (s || new
|
|
2828
|
+
return e ? (s || new Z()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + e) + t * 4), this.bb) : null;
|
|
2453
2829
|
}
|
|
2454
2830
|
quotesLength() {
|
|
2455
2831
|
const t = this.bb.__offset(this.bb_pos, 8);
|
|
@@ -2457,7 +2833,7 @@ class E {
|
|
|
2457
2833
|
}
|
|
2458
2834
|
mentions(t, s) {
|
|
2459
2835
|
const e = this.bb.__offset(this.bb_pos, 10);
|
|
2460
|
-
return e ? (s || new
|
|
2836
|
+
return e ? (s || new N()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + e) + t * 4), this.bb) : null;
|
|
2461
2837
|
}
|
|
2462
2838
|
mentionsLength() {
|
|
2463
2839
|
const t = this.bb.__offset(this.bb_pos, 10);
|
|
@@ -2465,11 +2841,11 @@ class E {
|
|
|
2465
2841
|
}
|
|
2466
2842
|
reply(t) {
|
|
2467
2843
|
const s = this.bb.__offset(this.bb_pos, 12);
|
|
2468
|
-
return s ? (t || new
|
|
2844
|
+
return s ? (t || new N()).__init(this.bb.__indirect(this.bb_pos + s), this.bb) : null;
|
|
2469
2845
|
}
|
|
2470
2846
|
root(t) {
|
|
2471
2847
|
const s = this.bb.__offset(this.bb_pos, 14);
|
|
2472
|
-
return s ? (t || new
|
|
2848
|
+
return s ? (t || new N()).__init(this.bb.__indirect(this.bb_pos + s), this.bb) : null;
|
|
2473
2849
|
}
|
|
2474
2850
|
static startKind1Parsed(t) {
|
|
2475
2851
|
t.startObject(6);
|
|
@@ -2533,7 +2909,7 @@ class E {
|
|
|
2533
2909
|
return t.requiredField(s, 4), s;
|
|
2534
2910
|
}
|
|
2535
2911
|
unpack() {
|
|
2536
|
-
return new
|
|
2912
|
+
return new Cs(
|
|
2537
2913
|
this.bb.createObjList(this.parsedContent.bind(this), this.parsedContentLength()),
|
|
2538
2914
|
this.bb.createObjList(this.shortenedContent.bind(this), this.shortenedContentLength()),
|
|
2539
2915
|
this.bb.createObjList(this.quotes.bind(this), this.quotesLength()),
|
|
@@ -2546,16 +2922,16 @@ class E {
|
|
|
2546
2922
|
t.parsedContent = this.bb.createObjList(this.parsedContent.bind(this), this.parsedContentLength()), t.shortenedContent = this.bb.createObjList(this.shortenedContent.bind(this), this.shortenedContentLength()), t.quotes = this.bb.createObjList(this.quotes.bind(this), this.quotesLength()), t.mentions = this.bb.createObjList(this.mentions.bind(this), this.mentionsLength()), t.reply = this.reply() !== null ? this.reply().unpack() : null, t.root = this.root() !== null ? this.root().unpack() : null;
|
|
2547
2923
|
}
|
|
2548
2924
|
}
|
|
2549
|
-
class
|
|
2925
|
+
class Cs {
|
|
2550
2926
|
constructor(t = [], s = [], e = [], i = [], o = null, r = null) {
|
|
2551
2927
|
this.parsedContent = t, this.shortenedContent = s, this.quotes = e, this.mentions = i, this.reply = o, this.root = r;
|
|
2552
2928
|
}
|
|
2553
2929
|
pack(t) {
|
|
2554
|
-
const s =
|
|
2555
|
-
return
|
|
2930
|
+
const s = T.createParsedContentVector(t, t.createObjectOffsetList(this.parsedContent)), e = T.createShortenedContentVector(t, t.createObjectOffsetList(this.shortenedContent)), i = T.createQuotesVector(t, t.createObjectOffsetList(this.quotes)), o = T.createMentionsVector(t, t.createObjectOffsetList(this.mentions)), r = this.reply !== null ? this.reply.pack(t) : 0, a = this.root !== null ? this.root.pack(t) : 0;
|
|
2931
|
+
return T.startKind1Parsed(t), T.addParsedContent(t, s), T.addShortenedContent(t, e), T.addQuotes(t, i), T.addMentions(t, o), T.addReply(t, r), T.addRoot(t, a), T.endKind1Parsed(t);
|
|
2556
2932
|
}
|
|
2557
2933
|
}
|
|
2558
|
-
class
|
|
2934
|
+
class w {
|
|
2559
2935
|
constructor() {
|
|
2560
2936
|
this.bb = null, this.bb_pos = 0;
|
|
2561
2937
|
}
|
|
@@ -2563,10 +2939,10 @@ class T {
|
|
|
2563
2939
|
return this.bb_pos = t, this.bb = s, this;
|
|
2564
2940
|
}
|
|
2565
2941
|
static getRootAsImetaTag(t, s) {
|
|
2566
|
-
return (s || new
|
|
2942
|
+
return (s || new w()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
2567
2943
|
}
|
|
2568
2944
|
static getSizePrefixedRootAsImetaTag(t, s) {
|
|
2569
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
2945
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new w()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
2570
2946
|
}
|
|
2571
2947
|
url(t) {
|
|
2572
2948
|
const s = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -2645,10 +3021,10 @@ class T {
|
|
|
2645
3021
|
return t.requiredField(s, 4), s;
|
|
2646
3022
|
}
|
|
2647
3023
|
static createImetaTag(t, s, e, i, o, r, a, h, d) {
|
|
2648
|
-
return
|
|
3024
|
+
return w.startImetaTag(t), w.addUrl(t, s), w.addMimeType(t, e), w.addDim(t, i), w.addAlt(t, o), w.addBlurhash(t, r), w.addHash(t, a), w.addFallback(t, h), w.addAnnotateUser(t, d), w.endImetaTag(t);
|
|
2649
3025
|
}
|
|
2650
3026
|
unpack() {
|
|
2651
|
-
return new
|
|
3027
|
+
return new Ks(
|
|
2652
3028
|
this.url(),
|
|
2653
3029
|
this.mimeType(),
|
|
2654
3030
|
this.dim(),
|
|
@@ -2663,13 +3039,13 @@ class T {
|
|
|
2663
3039
|
t.url = this.url(), t.mimeType = this.mimeType(), t.dim = this.dim(), t.alt = this.alt(), t.blurhash = this.blurhash(), t.hash = this.hash(), t.fallback = this.bb.createScalarList(this.fallback.bind(this), this.fallbackLength()), t.annotateUser = this.annotateUser();
|
|
2664
3040
|
}
|
|
2665
3041
|
}
|
|
2666
|
-
class
|
|
3042
|
+
class Ks {
|
|
2667
3043
|
constructor(t = null, s = null, e = null, i = null, o = null, r = null, a = [], h = null) {
|
|
2668
3044
|
this.url = t, this.mimeType = s, this.dim = e, this.alt = i, this.blurhash = o, this.hash = r, this.fallback = a, this.annotateUser = h;
|
|
2669
3045
|
}
|
|
2670
3046
|
pack(t) {
|
|
2671
|
-
const s = this.url !== null ? t.createString(this.url) : 0, e = this.mimeType !== null ? t.createString(this.mimeType) : 0, i = this.dim !== null ? t.createString(this.dim) : 0, o = this.alt !== null ? t.createString(this.alt) : 0, r = this.blurhash !== null ? t.createString(this.blurhash) : 0, a = this.hash !== null ? t.createString(this.hash) : 0, h =
|
|
2672
|
-
return
|
|
3047
|
+
const s = this.url !== null ? t.createString(this.url) : 0, e = this.mimeType !== null ? t.createString(this.mimeType) : 0, i = this.dim !== null ? t.createString(this.dim) : 0, o = this.alt !== null ? t.createString(this.alt) : 0, r = this.blurhash !== null ? t.createString(this.blurhash) : 0, a = this.hash !== null ? t.createString(this.hash) : 0, h = w.createFallbackVector(t, t.createObjectOffsetList(this.fallback)), d = this.annotateUser !== null ? t.createString(this.annotateUser) : 0;
|
|
3048
|
+
return w.createImetaTag(
|
|
2673
3049
|
t,
|
|
2674
3050
|
s,
|
|
2675
3051
|
e,
|
|
@@ -2705,7 +3081,7 @@ class P {
|
|
|
2705
3081
|
}
|
|
2706
3082
|
images(t, s) {
|
|
2707
3083
|
const e = this.bb.__offset(this.bb_pos, 8);
|
|
2708
|
-
return e ? (s || new
|
|
3084
|
+
return e ? (s || new w()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + e) + t * 4), this.bb) : null;
|
|
2709
3085
|
}
|
|
2710
3086
|
imagesLength() {
|
|
2711
3087
|
const t = this.bb.__offset(this.bb_pos, 8);
|
|
@@ -2733,7 +3109,7 @@ class P {
|
|
|
2733
3109
|
}
|
|
2734
3110
|
mentions(t, s) {
|
|
2735
3111
|
const e = this.bb.__offset(this.bb_pos, 18);
|
|
2736
|
-
return e ? (s || new
|
|
3112
|
+
return e ? (s || new Z()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + e) + t * 4), this.bb) : null;
|
|
2737
3113
|
}
|
|
2738
3114
|
mentionsLength() {
|
|
2739
3115
|
const t = this.bb.__offset(this.bb_pos, 18);
|
|
@@ -2800,7 +3176,7 @@ class P {
|
|
|
2800
3176
|
return P.startKind20Parsed(t), P.addTitle(t, s), P.addDescription(t, e), P.addImages(t, i), P.addContentWarning(t, o), P.addLocation(t, r), P.addGeohash(t, a), P.addHashtags(t, h), P.addMentions(t, d), P.endKind20Parsed(t);
|
|
2801
3177
|
}
|
|
2802
3178
|
unpack() {
|
|
2803
|
-
return new
|
|
3179
|
+
return new Ns(
|
|
2804
3180
|
this.title(),
|
|
2805
3181
|
this.description(),
|
|
2806
3182
|
this.bb.createObjList(this.images.bind(this), this.imagesLength()),
|
|
@@ -2815,7 +3191,7 @@ class P {
|
|
|
2815
3191
|
t.title = this.title(), t.description = this.description(), t.images = this.bb.createObjList(this.images.bind(this), this.imagesLength()), t.contentWarning = this.contentWarning(), t.location = this.location(), t.geohash = this.geohash(), t.hashtags = this.bb.createScalarList(this.hashtags.bind(this), this.hashtagsLength()), t.mentions = this.bb.createObjList(this.mentions.bind(this), this.mentionsLength());
|
|
2816
3192
|
}
|
|
2817
3193
|
}
|
|
2818
|
-
class
|
|
3194
|
+
class Ns {
|
|
2819
3195
|
constructor(t = null, s = null, e = [], i = null, o = null, r = null, a = [], h = []) {
|
|
2820
3196
|
this.title = t, this.description = s, this.images = e, this.contentWarning = i, this.location = o, this.geohash = r, this.hashtags = a, this.mentions = h;
|
|
2821
3197
|
}
|
|
@@ -2834,7 +3210,7 @@ class Vs {
|
|
|
2834
3210
|
);
|
|
2835
3211
|
}
|
|
2836
3212
|
}
|
|
2837
|
-
class
|
|
3213
|
+
class E {
|
|
2838
3214
|
constructor() {
|
|
2839
3215
|
this.bb = null, this.bb_pos = 0;
|
|
2840
3216
|
}
|
|
@@ -2842,10 +3218,10 @@ class V {
|
|
|
2842
3218
|
return this.bb_pos = t, this.bb = s, this;
|
|
2843
3219
|
}
|
|
2844
3220
|
static getRootAsVideoVariant(t, s) {
|
|
2845
|
-
return (s || new
|
|
3221
|
+
return (s || new E()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
2846
3222
|
}
|
|
2847
3223
|
static getSizePrefixedRootAsVideoVariant(t, s) {
|
|
2848
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
3224
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new E()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
2849
3225
|
}
|
|
2850
3226
|
url(t) {
|
|
2851
3227
|
const s = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -2931,10 +3307,10 @@ class V {
|
|
|
2931
3307
|
return t.requiredField(s, 4), s;
|
|
2932
3308
|
}
|
|
2933
3309
|
static createVideoVariant(t, s, e, i, o, r, a, h, d, b) {
|
|
2934
|
-
return
|
|
3310
|
+
return E.startVideoVariant(t), E.addUrl(t, s), E.addMimeType(t, e), E.addDim(t, i), E.addBlurhash(t, o), E.addHash(t, r), E.addDuration(t, a), E.addBitrate(t, h), E.addImage(t, d), E.addFallback(t, b), E.endVideoVariant(t);
|
|
2935
3311
|
}
|
|
2936
3312
|
unpack() {
|
|
2937
|
-
return new
|
|
3313
|
+
return new qs(
|
|
2938
3314
|
this.url(),
|
|
2939
3315
|
this.mimeType(),
|
|
2940
3316
|
this.dim(),
|
|
@@ -2950,13 +3326,13 @@ class V {
|
|
|
2950
3326
|
t.url = this.url(), t.mimeType = this.mimeType(), t.dim = this.dim(), t.blurhash = this.blurhash(), t.hash = this.hash(), t.duration = this.duration(), t.bitrate = this.bitrate(), t.image = this.image(), t.fallback = this.bb.createScalarList(this.fallback.bind(this), this.fallbackLength());
|
|
2951
3327
|
}
|
|
2952
3328
|
}
|
|
2953
|
-
class
|
|
3329
|
+
class qs {
|
|
2954
3330
|
constructor(t = null, s = null, e = null, i = null, o = null, r = 0, a = BigInt("0"), h = null, d = []) {
|
|
2955
3331
|
this.url = t, this.mimeType = s, this.dim = e, this.blurhash = i, this.hash = o, this.duration = r, this.bitrate = a, this.image = h, this.fallback = d;
|
|
2956
3332
|
}
|
|
2957
3333
|
pack(t) {
|
|
2958
|
-
const s = this.url !== null ? t.createString(this.url) : 0, e = this.mimeType !== null ? t.createString(this.mimeType) : 0, i = this.dim !== null ? t.createString(this.dim) : 0, o = this.blurhash !== null ? t.createString(this.blurhash) : 0, r = this.hash !== null ? t.createString(this.hash) : 0, a = this.image !== null ? t.createString(this.image) : 0, h =
|
|
2959
|
-
return
|
|
3334
|
+
const s = this.url !== null ? t.createString(this.url) : 0, e = this.mimeType !== null ? t.createString(this.mimeType) : 0, i = this.dim !== null ? t.createString(this.dim) : 0, o = this.blurhash !== null ? t.createString(this.blurhash) : 0, r = this.hash !== null ? t.createString(this.hash) : 0, a = this.image !== null ? t.createString(this.image) : 0, h = E.createFallbackVector(t, t.createObjectOffsetList(this.fallback));
|
|
3335
|
+
return E.createVideoVariant(
|
|
2960
3336
|
t,
|
|
2961
3337
|
s,
|
|
2962
3338
|
e,
|
|
@@ -2993,7 +3369,7 @@ class L {
|
|
|
2993
3369
|
}
|
|
2994
3370
|
videos(t, s) {
|
|
2995
3371
|
const e = this.bb.__offset(this.bb_pos, 8);
|
|
2996
|
-
return e ? (s || new
|
|
3372
|
+
return e ? (s || new E()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + e) + t * 4), this.bb) : null;
|
|
2997
3373
|
}
|
|
2998
3374
|
videosLength() {
|
|
2999
3375
|
const t = this.bb.__offset(this.bb_pos, 8);
|
|
@@ -3025,7 +3401,7 @@ class L {
|
|
|
3025
3401
|
}
|
|
3026
3402
|
participants(t, s) {
|
|
3027
3403
|
const e = this.bb.__offset(this.bb_pos, 20);
|
|
3028
|
-
return e ? (s || new
|
|
3404
|
+
return e ? (s || new Z()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + e) + t * 4), this.bb) : null;
|
|
3029
3405
|
}
|
|
3030
3406
|
participantsLength() {
|
|
3031
3407
|
const t = this.bb.__offset(this.bb_pos, 20);
|
|
@@ -3096,7 +3472,7 @@ class L {
|
|
|
3096
3472
|
return L.startKind22Parsed(t), L.addTitle(t, s), L.addDescription(t, e), L.addVideos(t, i), L.addAlt(t, o), L.addContentWarning(t, r), L.addDuration(t, a), L.addPublishedAt(t, h), L.addHashtags(t, d), L.addParticipants(t, b), L.endKind22Parsed(t);
|
|
3097
3473
|
}
|
|
3098
3474
|
unpack() {
|
|
3099
|
-
return new
|
|
3475
|
+
return new Us(
|
|
3100
3476
|
this.title(),
|
|
3101
3477
|
this.description(),
|
|
3102
3478
|
this.bb.createObjList(this.videos.bind(this), this.videosLength()),
|
|
@@ -3112,7 +3488,7 @@ class L {
|
|
|
3112
3488
|
t.title = this.title(), t.description = this.description(), t.videos = this.bb.createObjList(this.videos.bind(this), this.videosLength()), t.alt = this.alt(), t.contentWarning = this.contentWarning(), t.duration = this.duration(), t.publishedAt = this.publishedAt(), t.hashtags = this.bb.createScalarList(this.hashtags.bind(this), this.hashtagsLength()), t.participants = this.bb.createObjList(this.participants.bind(this), this.participantsLength());
|
|
3113
3489
|
}
|
|
3114
3490
|
}
|
|
3115
|
-
class
|
|
3491
|
+
class Us {
|
|
3116
3492
|
constructor(t = null, s = null, e = [], i = null, o = null, r = 0, a = BigInt("0"), h = [], d = []) {
|
|
3117
3493
|
this.title = t, this.description = s, this.videos = e, this.alt = i, this.contentWarning = o, this.duration = r, this.publishedAt = a, this.hashtags = h, this.participants = d;
|
|
3118
3494
|
}
|
|
@@ -3231,7 +3607,7 @@ class R {
|
|
|
3231
3607
|
return R.startKind30023Parsed(t), R.addSlug(t, s), R.addTitle(t, e), R.addSummary(t, i), R.addImage(t, o), R.addCanonical(t, r), R.addTopics(t, a), R.addPublishedAt(t, h), R.addNaddr(t, d), R.addContent(t, b), R.endKind30023Parsed(t);
|
|
3232
3608
|
}
|
|
3233
3609
|
unpack() {
|
|
3234
|
-
return new
|
|
3610
|
+
return new xs(
|
|
3235
3611
|
this.slug(),
|
|
3236
3612
|
this.title(),
|
|
3237
3613
|
this.summary(),
|
|
@@ -3247,7 +3623,7 @@ class R {
|
|
|
3247
3623
|
t.slug = this.slug(), t.title = this.title(), t.summary = this.summary(), t.image = this.image(), t.canonical = this.canonical(), t.topics = this.bb.createScalarList(this.topics.bind(this), this.topicsLength()), t.publishedAt = this.publishedAt(), t.naddr = this.naddr(), t.content = this.content();
|
|
3248
3624
|
}
|
|
3249
3625
|
}
|
|
3250
|
-
class
|
|
3626
|
+
class xs {
|
|
3251
3627
|
constructor(t = null, s = null, e = null, i = null, o = null, r = [], a = BigInt("0"), h = null, d = null) {
|
|
3252
3628
|
this.slug = t, this.title = s, this.summary = e, this.image = i, this.canonical = o, this.topics = r, this.publishedAt = a, this.naddr = h, this.content = d;
|
|
3253
3629
|
}
|
|
@@ -3267,7 +3643,7 @@ class Ts {
|
|
|
3267
3643
|
);
|
|
3268
3644
|
}
|
|
3269
3645
|
}
|
|
3270
|
-
class
|
|
3646
|
+
class ht {
|
|
3271
3647
|
constructor() {
|
|
3272
3648
|
this.bb = null, this.bb_pos = 0;
|
|
3273
3649
|
}
|
|
@@ -3275,10 +3651,10 @@ class rt {
|
|
|
3275
3651
|
return this.bb_pos = t, this.bb = s, this;
|
|
3276
3652
|
}
|
|
3277
3653
|
static getRootAsContact(t, s) {
|
|
3278
|
-
return (s || new
|
|
3654
|
+
return (s || new ht()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
3279
3655
|
}
|
|
3280
3656
|
static getSizePrefixedRootAsContact(t, s) {
|
|
3281
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
3657
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new ht()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
3282
3658
|
}
|
|
3283
3659
|
pubkey(t) {
|
|
3284
3660
|
const s = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -3322,10 +3698,10 @@ class rt {
|
|
|
3322
3698
|
return t.requiredField(s, 4), s;
|
|
3323
3699
|
}
|
|
3324
3700
|
static createContact(t, s, e, i) {
|
|
3325
|
-
return
|
|
3701
|
+
return ht.startContact(t), ht.addPubkey(t, s), ht.addRelays(t, e), ht.addPetname(t, i), ht.endContact(t);
|
|
3326
3702
|
}
|
|
3327
3703
|
unpack() {
|
|
3328
|
-
return new
|
|
3704
|
+
return new Hs(
|
|
3329
3705
|
this.pubkey(),
|
|
3330
3706
|
this.bb.createScalarList(this.relays.bind(this), this.relaysLength()),
|
|
3331
3707
|
this.petname()
|
|
@@ -3335,13 +3711,13 @@ class rt {
|
|
|
3335
3711
|
t.pubkey = this.pubkey(), t.relays = this.bb.createScalarList(this.relays.bind(this), this.relaysLength()), t.petname = this.petname();
|
|
3336
3712
|
}
|
|
3337
3713
|
}
|
|
3338
|
-
class
|
|
3714
|
+
class Hs {
|
|
3339
3715
|
constructor(t = null, s = [], e = null) {
|
|
3340
3716
|
this.pubkey = t, this.relays = s, this.petname = e;
|
|
3341
3717
|
}
|
|
3342
3718
|
pack(t) {
|
|
3343
|
-
const s = this.pubkey !== null ? t.createString(this.pubkey) : 0, e =
|
|
3344
|
-
return
|
|
3719
|
+
const s = this.pubkey !== null ? t.createString(this.pubkey) : 0, e = ht.createRelaysVector(t, t.createObjectOffsetList(this.relays)), i = this.petname !== null ? t.createString(this.petname) : 0;
|
|
3720
|
+
return ht.createContact(
|
|
3345
3721
|
t,
|
|
3346
3722
|
s,
|
|
3347
3723
|
e,
|
|
@@ -3349,7 +3725,7 @@ class ws {
|
|
|
3349
3725
|
);
|
|
3350
3726
|
}
|
|
3351
3727
|
}
|
|
3352
|
-
class
|
|
3728
|
+
class Vt {
|
|
3353
3729
|
constructor() {
|
|
3354
3730
|
this.bb = null, this.bb_pos = 0;
|
|
3355
3731
|
}
|
|
@@ -3357,14 +3733,14 @@ class Ft {
|
|
|
3357
3733
|
return this.bb_pos = t, this.bb = s, this;
|
|
3358
3734
|
}
|
|
3359
3735
|
static getRootAsKind3Parsed(t, s) {
|
|
3360
|
-
return (s || new
|
|
3736
|
+
return (s || new Vt()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
3361
3737
|
}
|
|
3362
3738
|
static getSizePrefixedRootAsKind3Parsed(t, s) {
|
|
3363
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
3739
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new Vt()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
3364
3740
|
}
|
|
3365
3741
|
contacts(t, s) {
|
|
3366
3742
|
const e = this.bb.__offset(this.bb_pos, 4);
|
|
3367
|
-
return e ? (s || new
|
|
3743
|
+
return e ? (s || new ht()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + e) + t * 4), this.bb) : null;
|
|
3368
3744
|
}
|
|
3369
3745
|
contactsLength() {
|
|
3370
3746
|
const t = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -3390,10 +3766,10 @@ class Ft {
|
|
|
3390
3766
|
return t.requiredField(s, 4), s;
|
|
3391
3767
|
}
|
|
3392
3768
|
static createKind3Parsed(t, s) {
|
|
3393
|
-
return
|
|
3769
|
+
return Vt.startKind3Parsed(t), Vt.addContacts(t, s), Vt.endKind3Parsed(t);
|
|
3394
3770
|
}
|
|
3395
3771
|
unpack() {
|
|
3396
|
-
return new
|
|
3772
|
+
return new Bs(
|
|
3397
3773
|
this.bb.createObjList(this.contacts.bind(this), this.contactsLength())
|
|
3398
3774
|
);
|
|
3399
3775
|
}
|
|
@@ -3401,19 +3777,19 @@ class Ft {
|
|
|
3401
3777
|
t.contacts = this.bb.createObjList(this.contacts.bind(this), this.contactsLength());
|
|
3402
3778
|
}
|
|
3403
3779
|
}
|
|
3404
|
-
class
|
|
3780
|
+
class Bs {
|
|
3405
3781
|
constructor(t = []) {
|
|
3406
3782
|
this.contacts = t;
|
|
3407
3783
|
}
|
|
3408
3784
|
pack(t) {
|
|
3409
|
-
const s =
|
|
3410
|
-
return
|
|
3785
|
+
const s = Vt.createContactsVector(t, t.createObjectOffsetList(this.contacts));
|
|
3786
|
+
return Vt.createKind3Parsed(
|
|
3411
3787
|
t,
|
|
3412
3788
|
s
|
|
3413
3789
|
);
|
|
3414
3790
|
}
|
|
3415
3791
|
}
|
|
3416
|
-
class
|
|
3792
|
+
class W {
|
|
3417
3793
|
constructor() {
|
|
3418
3794
|
this.bb = null, this.bb_pos = 0;
|
|
3419
3795
|
}
|
|
@@ -3421,10 +3797,10 @@ class D {
|
|
|
3421
3797
|
return this.bb_pos = t, this.bb = s, this;
|
|
3422
3798
|
}
|
|
3423
3799
|
static getRootAsKind4Parsed(t, s) {
|
|
3424
|
-
return (s || new
|
|
3800
|
+
return (s || new W()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
3425
3801
|
}
|
|
3426
3802
|
static getSizePrefixedRootAsKind4Parsed(t, s) {
|
|
3427
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
3803
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new W()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
3428
3804
|
}
|
|
3429
3805
|
parsedContent(t, s) {
|
|
3430
3806
|
const e = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -3475,10 +3851,10 @@ class D {
|
|
|
3475
3851
|
return t.requiredField(s, 8), t.requiredField(s, 10), s;
|
|
3476
3852
|
}
|
|
3477
3853
|
static createKind4Parsed(t, s, e, i, o) {
|
|
3478
|
-
return
|
|
3854
|
+
return W.startKind4Parsed(t), W.addParsedContent(t, s), W.addDecryptedContent(t, e), W.addChatId(t, i), W.addRecipient(t, o), W.endKind4Parsed(t);
|
|
3479
3855
|
}
|
|
3480
3856
|
unpack() {
|
|
3481
|
-
return new
|
|
3857
|
+
return new zs(
|
|
3482
3858
|
this.bb.createObjList(this.parsedContent.bind(this), this.parsedContentLength()),
|
|
3483
3859
|
this.decryptedContent(),
|
|
3484
3860
|
this.chatId(),
|
|
@@ -3489,13 +3865,13 @@ class D {
|
|
|
3489
3865
|
t.parsedContent = this.bb.createObjList(this.parsedContent.bind(this), this.parsedContentLength()), t.decryptedContent = this.decryptedContent(), t.chatId = this.chatId(), t.recipient = this.recipient();
|
|
3490
3866
|
}
|
|
3491
3867
|
}
|
|
3492
|
-
class
|
|
3868
|
+
class zs {
|
|
3493
3869
|
constructor(t = [], s = null, e = null, i = null) {
|
|
3494
3870
|
this.parsedContent = t, this.decryptedContent = s, this.chatId = e, this.recipient = i;
|
|
3495
3871
|
}
|
|
3496
3872
|
pack(t) {
|
|
3497
|
-
const s =
|
|
3498
|
-
return
|
|
3873
|
+
const s = W.createParsedContentVector(t, t.createObjectOffsetList(this.parsedContent)), e = this.decryptedContent !== null ? t.createString(this.decryptedContent) : 0, i = this.chatId !== null ? t.createString(this.chatId) : 0, o = this.recipient !== null ? t.createString(this.recipient) : 0;
|
|
3874
|
+
return W.createKind4Parsed(
|
|
3499
3875
|
t,
|
|
3500
3876
|
s,
|
|
3501
3877
|
e,
|
|
@@ -3504,7 +3880,7 @@ class As {
|
|
|
3504
3880
|
);
|
|
3505
3881
|
}
|
|
3506
3882
|
}
|
|
3507
|
-
class
|
|
3883
|
+
class At {
|
|
3508
3884
|
constructor() {
|
|
3509
3885
|
this.bb = null, this.bb_pos = 0;
|
|
3510
3886
|
}
|
|
@@ -3512,10 +3888,10 @@ class Et {
|
|
|
3512
3888
|
return this.bb_pos = t, this.bb = s, this;
|
|
3513
3889
|
}
|
|
3514
3890
|
static getRootAsKind6Parsed(t, s) {
|
|
3515
|
-
return (s || new
|
|
3891
|
+
return (s || new At()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
3516
3892
|
}
|
|
3517
3893
|
static getSizePrefixedRootAsKind6Parsed(t, s) {
|
|
3518
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
3894
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new At()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
3519
3895
|
}
|
|
3520
3896
|
repostedEvent(t) {
|
|
3521
3897
|
const s = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -3531,10 +3907,10 @@ class Et {
|
|
|
3531
3907
|
return t.endObject();
|
|
3532
3908
|
}
|
|
3533
3909
|
static createKind6Parsed(t, s) {
|
|
3534
|
-
return
|
|
3910
|
+
return At.startKind6Parsed(t), At.addRepostedEvent(t, s), At.endKind6Parsed(t);
|
|
3535
3911
|
}
|
|
3536
3912
|
unpack() {
|
|
3537
|
-
return new
|
|
3913
|
+
return new Zs(
|
|
3538
3914
|
this.repostedEvent() !== null ? this.repostedEvent().unpack() : null
|
|
3539
3915
|
);
|
|
3540
3916
|
}
|
|
@@ -3542,19 +3918,19 @@ class Et {
|
|
|
3542
3918
|
t.repostedEvent = this.repostedEvent() !== null ? this.repostedEvent().unpack() : null;
|
|
3543
3919
|
}
|
|
3544
3920
|
}
|
|
3545
|
-
class
|
|
3921
|
+
class Zs {
|
|
3546
3922
|
constructor(t = null) {
|
|
3547
3923
|
this.repostedEvent = t;
|
|
3548
3924
|
}
|
|
3549
3925
|
pack(t) {
|
|
3550
3926
|
const s = this.repostedEvent !== null ? this.repostedEvent.pack(t) : 0;
|
|
3551
|
-
return
|
|
3927
|
+
return At.createKind6Parsed(
|
|
3552
3928
|
t,
|
|
3553
3929
|
s
|
|
3554
3930
|
);
|
|
3555
3931
|
}
|
|
3556
3932
|
}
|
|
3557
|
-
class
|
|
3933
|
+
class bt {
|
|
3558
3934
|
constructor() {
|
|
3559
3935
|
this.bb = null, this.bb_pos = 0;
|
|
3560
3936
|
}
|
|
@@ -3562,10 +3938,10 @@ class ht {
|
|
|
3562
3938
|
return this.bb_pos = t, this.bb = s, this;
|
|
3563
3939
|
}
|
|
3564
3940
|
static getRootAsKind7374Parsed(t, s) {
|
|
3565
|
-
return (s || new
|
|
3941
|
+
return (s || new bt()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
3566
3942
|
}
|
|
3567
3943
|
static getSizePrefixedRootAsKind7374Parsed(t, s) {
|
|
3568
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
3944
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new bt()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
3569
3945
|
}
|
|
3570
3946
|
quoteId(t) {
|
|
3571
3947
|
const s = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -3596,10 +3972,10 @@ class ht {
|
|
|
3596
3972
|
return t.requiredField(s, 4), t.requiredField(s, 6), s;
|
|
3597
3973
|
}
|
|
3598
3974
|
static createKind7374Parsed(t, s, e, i) {
|
|
3599
|
-
return
|
|
3975
|
+
return bt.startKind7374Parsed(t), bt.addQuoteId(t, s), bt.addMintUrl(t, e), bt.addExpiration(t, i), bt.endKind7374Parsed(t);
|
|
3600
3976
|
}
|
|
3601
3977
|
unpack() {
|
|
3602
|
-
return new
|
|
3978
|
+
return new Xs(
|
|
3603
3979
|
this.quoteId(),
|
|
3604
3980
|
this.mintUrl(),
|
|
3605
3981
|
this.expiration()
|
|
@@ -3609,13 +3985,13 @@ class ht {
|
|
|
3609
3985
|
t.quoteId = this.quoteId(), t.mintUrl = this.mintUrl(), t.expiration = this.expiration();
|
|
3610
3986
|
}
|
|
3611
3987
|
}
|
|
3612
|
-
class
|
|
3988
|
+
class Xs {
|
|
3613
3989
|
constructor(t = null, s = null, e = BigInt("0")) {
|
|
3614
3990
|
this.quoteId = t, this.mintUrl = s, this.expiration = e;
|
|
3615
3991
|
}
|
|
3616
3992
|
pack(t) {
|
|
3617
3993
|
const s = this.quoteId !== null ? t.createString(this.quoteId) : 0, e = this.mintUrl !== null ? t.createString(this.mintUrl) : 0;
|
|
3618
|
-
return
|
|
3994
|
+
return bt.createKind7374Parsed(
|
|
3619
3995
|
t,
|
|
3620
3996
|
s,
|
|
3621
3997
|
e,
|
|
@@ -3623,7 +3999,7 @@ class Ks {
|
|
|
3623
3999
|
);
|
|
3624
4000
|
}
|
|
3625
4001
|
}
|
|
3626
|
-
class
|
|
4002
|
+
class ft {
|
|
3627
4003
|
constructor() {
|
|
3628
4004
|
this.bb = null, this.bb_pos = 0;
|
|
3629
4005
|
}
|
|
@@ -3631,10 +4007,10 @@ class ct {
|
|
|
3631
4007
|
return this.bb_pos = t, this.bb = s, this;
|
|
3632
4008
|
}
|
|
3633
4009
|
static getRootAsDLEQProof(t, s) {
|
|
3634
|
-
return (s || new
|
|
4010
|
+
return (s || new ft()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
3635
4011
|
}
|
|
3636
4012
|
static getSizePrefixedRootAsDLEQProof(t, s) {
|
|
3637
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
4013
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new ft()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
3638
4014
|
}
|
|
3639
4015
|
e(t) {
|
|
3640
4016
|
const s = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -3665,10 +4041,10 @@ class ct {
|
|
|
3665
4041
|
return t.requiredField(s, 4), t.requiredField(s, 6), t.requiredField(s, 8), s;
|
|
3666
4042
|
}
|
|
3667
4043
|
static createDLEQProof(t, s, e, i) {
|
|
3668
|
-
return
|
|
4044
|
+
return ft.startDLEQProof(t), ft.addE(t, s), ft.addS(t, e), ft.addR(t, i), ft.endDLEQProof(t);
|
|
3669
4045
|
}
|
|
3670
4046
|
unpack() {
|
|
3671
|
-
return new
|
|
4047
|
+
return new Gs(
|
|
3672
4048
|
this.e(),
|
|
3673
4049
|
this.s(),
|
|
3674
4050
|
this.r()
|
|
@@ -3678,13 +4054,13 @@ class ct {
|
|
|
3678
4054
|
t.e = this.e(), t.s = this.s(), t.r = this.r();
|
|
3679
4055
|
}
|
|
3680
4056
|
}
|
|
3681
|
-
class
|
|
4057
|
+
class Gs {
|
|
3682
4058
|
constructor(t = null, s = null, e = null) {
|
|
3683
4059
|
this.e = t, this.s = s, this.r = e;
|
|
3684
4060
|
}
|
|
3685
4061
|
pack(t) {
|
|
3686
4062
|
const s = this.e !== null ? t.createString(this.e) : 0, e = this.s !== null ? t.createString(this.s) : 0, i = this.r !== null ? t.createString(this.r) : 0;
|
|
3687
|
-
return
|
|
4063
|
+
return ft.createDLEQProof(
|
|
3688
4064
|
t,
|
|
3689
4065
|
s,
|
|
3690
4066
|
e,
|
|
@@ -3692,7 +4068,7 @@ class Ns {
|
|
|
3692
4068
|
);
|
|
3693
4069
|
}
|
|
3694
4070
|
}
|
|
3695
|
-
class
|
|
4071
|
+
class Ot {
|
|
3696
4072
|
constructor() {
|
|
3697
4073
|
this.bb = null, this.bb_pos = 0;
|
|
3698
4074
|
}
|
|
@@ -3700,10 +4076,10 @@ class pt {
|
|
|
3700
4076
|
return this.bb_pos = t, this.bb = s, this;
|
|
3701
4077
|
}
|
|
3702
4078
|
static getRootAsHTLCWitness(t, s) {
|
|
3703
|
-
return (s || new
|
|
4079
|
+
return (s || new Ot()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
3704
4080
|
}
|
|
3705
4081
|
static getSizePrefixedRootAsHTLCWitness(t, s) {
|
|
3706
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
4082
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new Ot()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
3707
4083
|
}
|
|
3708
4084
|
preimage(t) {
|
|
3709
4085
|
const s = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -3740,10 +4116,10 @@ class pt {
|
|
|
3740
4116
|
return t.requiredField(s, 4), s;
|
|
3741
4117
|
}
|
|
3742
4118
|
static createHTLCWitness(t, s, e) {
|
|
3743
|
-
return
|
|
4119
|
+
return Ot.startHTLCWitness(t), Ot.addPreimage(t, s), Ot.addSignatures(t, e), Ot.endHTLCWitness(t);
|
|
3744
4120
|
}
|
|
3745
4121
|
unpack() {
|
|
3746
|
-
return new
|
|
4122
|
+
return new Ds(
|
|
3747
4123
|
this.preimage(),
|
|
3748
4124
|
this.bb.createScalarList(this.signatures.bind(this), this.signaturesLength())
|
|
3749
4125
|
);
|
|
@@ -3752,20 +4128,20 @@ class pt {
|
|
|
3752
4128
|
t.preimage = this.preimage(), t.signatures = this.bb.createScalarList(this.signatures.bind(this), this.signaturesLength());
|
|
3753
4129
|
}
|
|
3754
4130
|
}
|
|
3755
|
-
class
|
|
4131
|
+
class Ds {
|
|
3756
4132
|
constructor(t = null, s = []) {
|
|
3757
4133
|
this.preimage = t, this.signatures = s;
|
|
3758
4134
|
}
|
|
3759
4135
|
pack(t) {
|
|
3760
|
-
const s = this.preimage !== null ? t.createString(this.preimage) : 0, e =
|
|
3761
|
-
return
|
|
4136
|
+
const s = this.preimage !== null ? t.createString(this.preimage) : 0, e = Ot.createSignaturesVector(t, t.createObjectOffsetList(this.signatures));
|
|
4137
|
+
return Ot.createHTLCWitness(
|
|
3762
4138
|
t,
|
|
3763
4139
|
s,
|
|
3764
4140
|
e
|
|
3765
4141
|
);
|
|
3766
4142
|
}
|
|
3767
4143
|
}
|
|
3768
|
-
class
|
|
4144
|
+
class Et {
|
|
3769
4145
|
constructor() {
|
|
3770
4146
|
this.bb = null, this.bb_pos = 0;
|
|
3771
4147
|
}
|
|
@@ -3773,10 +4149,10 @@ class Pt {
|
|
|
3773
4149
|
return this.bb_pos = t, this.bb = s, this;
|
|
3774
4150
|
}
|
|
3775
4151
|
static getRootAsP2PKWitness(t, s) {
|
|
3776
|
-
return (s || new
|
|
4152
|
+
return (s || new Et()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
3777
4153
|
}
|
|
3778
4154
|
static getSizePrefixedRootAsP2PKWitness(t, s) {
|
|
3779
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
4155
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new Et()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
3780
4156
|
}
|
|
3781
4157
|
signatures(t, s) {
|
|
3782
4158
|
const e = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -3805,10 +4181,10 @@ class Pt {
|
|
|
3805
4181
|
return t.endObject();
|
|
3806
4182
|
}
|
|
3807
4183
|
static createP2PKWitness(t, s) {
|
|
3808
|
-
return
|
|
4184
|
+
return Et.startP2PKWitness(t), Et.addSignatures(t, s), Et.endP2PKWitness(t);
|
|
3809
4185
|
}
|
|
3810
4186
|
unpack() {
|
|
3811
|
-
return new
|
|
4187
|
+
return new Ms(
|
|
3812
4188
|
this.bb.createScalarList(this.signatures.bind(this), this.signaturesLength())
|
|
3813
4189
|
);
|
|
3814
4190
|
}
|
|
@@ -3816,19 +4192,19 @@ class Pt {
|
|
|
3816
4192
|
t.signatures = this.bb.createScalarList(this.signatures.bind(this), this.signaturesLength());
|
|
3817
4193
|
}
|
|
3818
4194
|
}
|
|
3819
|
-
class
|
|
4195
|
+
class Ms {
|
|
3820
4196
|
constructor(t = []) {
|
|
3821
4197
|
this.signatures = t;
|
|
3822
4198
|
}
|
|
3823
4199
|
pack(t) {
|
|
3824
|
-
const s =
|
|
3825
|
-
return
|
|
4200
|
+
const s = Et.createSignaturesVector(t, t.createObjectOffsetList(this.signatures));
|
|
4201
|
+
return Et.createP2PKWitness(
|
|
3826
4202
|
t,
|
|
3827
4203
|
s
|
|
3828
4204
|
);
|
|
3829
4205
|
}
|
|
3830
4206
|
}
|
|
3831
|
-
class
|
|
4207
|
+
class Ct {
|
|
3832
4208
|
constructor() {
|
|
3833
4209
|
this.bb = null, this.bb_pos = 0;
|
|
3834
4210
|
}
|
|
@@ -3836,10 +4212,10 @@ class Tt {
|
|
|
3836
4212
|
return this.bb_pos = t, this.bb = s, this;
|
|
3837
4213
|
}
|
|
3838
4214
|
static getRootAsWitnessString(t, s) {
|
|
3839
|
-
return (s || new
|
|
4215
|
+
return (s || new Ct()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
3840
4216
|
}
|
|
3841
4217
|
static getSizePrefixedRootAsWitnessString(t, s) {
|
|
3842
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
4218
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new Ct()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
3843
4219
|
}
|
|
3844
4220
|
value(t) {
|
|
3845
4221
|
const s = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -3855,10 +4231,10 @@ class Tt {
|
|
|
3855
4231
|
return t.endObject();
|
|
3856
4232
|
}
|
|
3857
4233
|
static createWitnessString(t, s) {
|
|
3858
|
-
return
|
|
4234
|
+
return Ct.startWitnessString(t), Ct.addValue(t, s), Ct.endWitnessString(t);
|
|
3859
4235
|
}
|
|
3860
4236
|
unpack() {
|
|
3861
|
-
return new
|
|
4237
|
+
return new Ws(
|
|
3862
4238
|
this.value()
|
|
3863
4239
|
);
|
|
3864
4240
|
}
|
|
@@ -3866,34 +4242,34 @@ class Tt {
|
|
|
3866
4242
|
t.value = this.value();
|
|
3867
4243
|
}
|
|
3868
4244
|
}
|
|
3869
|
-
class
|
|
4245
|
+
class Ws {
|
|
3870
4246
|
constructor(t = null) {
|
|
3871
4247
|
this.value = t;
|
|
3872
4248
|
}
|
|
3873
4249
|
pack(t) {
|
|
3874
4250
|
const s = this.value !== null ? t.createString(this.value) : 0;
|
|
3875
|
-
return
|
|
4251
|
+
return Ct.createWitnessString(
|
|
3876
4252
|
t,
|
|
3877
4253
|
s
|
|
3878
4254
|
);
|
|
3879
4255
|
}
|
|
3880
4256
|
}
|
|
3881
|
-
var
|
|
3882
|
-
function
|
|
3883
|
-
switch (
|
|
4257
|
+
var zt = /* @__PURE__ */ ((n) => (n[n.NONE = 0] = "NONE", n[n.WitnessString = 1] = "WitnessString", n[n.P2PKWitness = 2] = "P2PKWitness", n[n.HTLCWitness = 3] = "HTLCWitness", n))(zt || {});
|
|
4258
|
+
function $t(n, t) {
|
|
4259
|
+
switch (zt[n]) {
|
|
3884
4260
|
case "NONE":
|
|
3885
4261
|
return null;
|
|
3886
4262
|
case "WitnessString":
|
|
3887
|
-
return t(new
|
|
4263
|
+
return t(new Ct());
|
|
3888
4264
|
case "P2PKWitness":
|
|
3889
|
-
return t(new
|
|
4265
|
+
return t(new Et());
|
|
3890
4266
|
case "HTLCWitness":
|
|
3891
|
-
return t(new
|
|
4267
|
+
return t(new Ot());
|
|
3892
4268
|
default:
|
|
3893
4269
|
return null;
|
|
3894
4270
|
}
|
|
3895
4271
|
}
|
|
3896
|
-
class
|
|
4272
|
+
class A {
|
|
3897
4273
|
constructor() {
|
|
3898
4274
|
this.bb = null, this.bb_pos = 0;
|
|
3899
4275
|
}
|
|
@@ -3901,10 +4277,10 @@ class j {
|
|
|
3901
4277
|
return this.bb_pos = t, this.bb = s, this;
|
|
3902
4278
|
}
|
|
3903
4279
|
static getRootAsProof(t, s) {
|
|
3904
|
-
return (s || new
|
|
4280
|
+
return (s || new A()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
3905
4281
|
}
|
|
3906
4282
|
static getSizePrefixedRootAsProof(t, s) {
|
|
3907
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
4283
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new A()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
3908
4284
|
}
|
|
3909
4285
|
amount() {
|
|
3910
4286
|
const t = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -3924,11 +4300,11 @@ class j {
|
|
|
3924
4300
|
}
|
|
3925
4301
|
dleq(t) {
|
|
3926
4302
|
const s = this.bb.__offset(this.bb_pos, 12);
|
|
3927
|
-
return s ? (t || new
|
|
4303
|
+
return s ? (t || new ft()).__init(this.bb.__indirect(this.bb_pos + s), this.bb) : null;
|
|
3928
4304
|
}
|
|
3929
4305
|
witnessType() {
|
|
3930
4306
|
const t = this.bb.__offset(this.bb_pos, 14);
|
|
3931
|
-
return t ? this.bb.readUint8(this.bb_pos + t) :
|
|
4307
|
+
return t ? this.bb.readUint8(this.bb_pos + t) : zt.NONE;
|
|
3932
4308
|
}
|
|
3933
4309
|
witness(t) {
|
|
3934
4310
|
const s = this.bb.__offset(this.bb_pos, 16);
|
|
@@ -3957,7 +4333,7 @@ class j {
|
|
|
3957
4333
|
t.addFieldOffset(4, s, 0);
|
|
3958
4334
|
}
|
|
3959
4335
|
static addWitnessType(t, s) {
|
|
3960
|
-
t.addFieldInt8(5, s,
|
|
4336
|
+
t.addFieldInt8(5, s, zt.NONE);
|
|
3961
4337
|
}
|
|
3962
4338
|
static addWitness(t, s) {
|
|
3963
4339
|
t.addFieldOffset(6, s, 0);
|
|
@@ -3970,7 +4346,7 @@ class j {
|
|
|
3970
4346
|
return t.requiredField(s, 6), t.requiredField(s, 8), t.requiredField(s, 10), s;
|
|
3971
4347
|
}
|
|
3972
4348
|
unpack() {
|
|
3973
|
-
return new
|
|
4349
|
+
return new Qs(
|
|
3974
4350
|
this.amount(),
|
|
3975
4351
|
this.id(),
|
|
3976
4352
|
this.secret(),
|
|
@@ -3978,7 +4354,7 @@ class j {
|
|
|
3978
4354
|
this.dleq() !== null ? this.dleq().unpack() : null,
|
|
3979
4355
|
this.witnessType(),
|
|
3980
4356
|
(() => {
|
|
3981
|
-
const t =
|
|
4357
|
+
const t = $t(this.witnessType(), this.witness.bind(this));
|
|
3982
4358
|
return t === null ? null : t.unpack();
|
|
3983
4359
|
})(),
|
|
3984
4360
|
this.version()
|
|
@@ -3986,21 +4362,21 @@ class j {
|
|
|
3986
4362
|
}
|
|
3987
4363
|
unpackTo(t) {
|
|
3988
4364
|
t.amount = this.amount(), t.id = this.id(), t.secret = this.secret(), t.c = this.c(), t.dleq = this.dleq() !== null ? this.dleq().unpack() : null, t.witnessType = this.witnessType(), t.witness = (() => {
|
|
3989
|
-
const s =
|
|
4365
|
+
const s = $t(this.witnessType(), this.witness.bind(this));
|
|
3990
4366
|
return s === null ? null : s.unpack();
|
|
3991
4367
|
})(), t.version = this.version();
|
|
3992
4368
|
}
|
|
3993
4369
|
}
|
|
3994
|
-
class
|
|
3995
|
-
constructor(t = BigInt("0"), s = null, e = null, i = null, o = null, r =
|
|
4370
|
+
class Qs {
|
|
4371
|
+
constructor(t = BigInt("0"), s = null, e = null, i = null, o = null, r = zt.NONE, a = null, h = 0) {
|
|
3996
4372
|
this.amount = t, this.id = s, this.secret = e, this.c = i, this.dleq = o, this.witnessType = r, this.witness = a, this.version = h;
|
|
3997
4373
|
}
|
|
3998
4374
|
pack(t) {
|
|
3999
4375
|
const s = this.id !== null ? t.createString(this.id) : 0, e = this.secret !== null ? t.createString(this.secret) : 0, i = this.c !== null ? t.createString(this.c) : 0, o = this.dleq !== null ? this.dleq.pack(t) : 0, r = t.createObjectOffset(this.witness);
|
|
4000
|
-
return
|
|
4376
|
+
return A.startProof(t), A.addAmount(t, this.amount), A.addId(t, s), A.addSecret(t, e), A.addC(t, i), A.addDleq(t, o), A.addWitnessType(t, this.witnessType), A.addWitness(t, r), A.addVersion(t, this.version), A.endProof(t);
|
|
4001
4377
|
}
|
|
4002
4378
|
}
|
|
4003
|
-
class
|
|
4379
|
+
class B {
|
|
4004
4380
|
constructor() {
|
|
4005
4381
|
this.bb = null, this.bb_pos = 0;
|
|
4006
4382
|
}
|
|
@@ -4008,10 +4384,10 @@ class H {
|
|
|
4008
4384
|
return this.bb_pos = t, this.bb = s, this;
|
|
4009
4385
|
}
|
|
4010
4386
|
static getRootAsKind7375Parsed(t, s) {
|
|
4011
|
-
return (s || new
|
|
4387
|
+
return (s || new B()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
4012
4388
|
}
|
|
4013
4389
|
static getSizePrefixedRootAsKind7375Parsed(t, s) {
|
|
4014
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
4390
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new B()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
4015
4391
|
}
|
|
4016
4392
|
mintUrl(t) {
|
|
4017
4393
|
const s = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -4019,7 +4395,7 @@ class H {
|
|
|
4019
4395
|
}
|
|
4020
4396
|
proofs(t, s) {
|
|
4021
4397
|
const e = this.bb.__offset(this.bb_pos, 6);
|
|
4022
|
-
return e ? (s || new
|
|
4398
|
+
return e ? (s || new A()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + e) + t * 4), this.bb) : null;
|
|
4023
4399
|
}
|
|
4024
4400
|
proofsLength() {
|
|
4025
4401
|
const t = this.bb.__offset(this.bb_pos, 6);
|
|
@@ -4075,10 +4451,10 @@ class H {
|
|
|
4075
4451
|
return t.requiredField(s, 4), t.requiredField(s, 6), s;
|
|
4076
4452
|
}
|
|
4077
4453
|
static createKind7375Parsed(t, s, e, i, o) {
|
|
4078
|
-
return
|
|
4454
|
+
return B.startKind7375Parsed(t), B.addMintUrl(t, s), B.addProofs(t, e), B.addDeletedIds(t, i), B.addDecrypted(t, o), B.endKind7375Parsed(t);
|
|
4079
4455
|
}
|
|
4080
4456
|
unpack() {
|
|
4081
|
-
return new
|
|
4457
|
+
return new Ys(
|
|
4082
4458
|
this.mintUrl(),
|
|
4083
4459
|
this.bb.createObjList(this.proofs.bind(this), this.proofsLength()),
|
|
4084
4460
|
this.bb.createScalarList(this.deletedIds.bind(this), this.deletedIdsLength()),
|
|
@@ -4089,13 +4465,13 @@ class H {
|
|
|
4089
4465
|
t.mintUrl = this.mintUrl(), t.proofs = this.bb.createObjList(this.proofs.bind(this), this.proofsLength()), t.deletedIds = this.bb.createScalarList(this.deletedIds.bind(this), this.deletedIdsLength()), t.decrypted = this.decrypted();
|
|
4090
4466
|
}
|
|
4091
4467
|
}
|
|
4092
|
-
class
|
|
4468
|
+
class Ys {
|
|
4093
4469
|
constructor(t = null, s = [], e = [], i = false) {
|
|
4094
4470
|
this.mintUrl = t, this.proofs = s, this.deletedIds = e, this.decrypted = i;
|
|
4095
4471
|
}
|
|
4096
4472
|
pack(t) {
|
|
4097
|
-
const s = this.mintUrl !== null ? t.createString(this.mintUrl) : 0, e =
|
|
4098
|
-
return
|
|
4473
|
+
const s = this.mintUrl !== null ? t.createString(this.mintUrl) : 0, e = B.createProofsVector(t, t.createObjectOffsetList(this.proofs)), i = B.createDeletedIdsVector(t, t.createObjectOffsetList(this.deletedIds));
|
|
4474
|
+
return B.createKind7375Parsed(
|
|
4099
4475
|
t,
|
|
4100
4476
|
s,
|
|
4101
4477
|
e,
|
|
@@ -4104,7 +4480,7 @@ class Bs {
|
|
|
4104
4480
|
);
|
|
4105
4481
|
}
|
|
4106
4482
|
}
|
|
4107
|
-
class
|
|
4483
|
+
class nt {
|
|
4108
4484
|
constructor() {
|
|
4109
4485
|
this.bb = null, this.bb_pos = 0;
|
|
4110
4486
|
}
|
|
@@ -4112,10 +4488,10 @@ class et {
|
|
|
4112
4488
|
return this.bb_pos = t, this.bb = s, this;
|
|
4113
4489
|
}
|
|
4114
4490
|
static getRootAsHistoryTag(t, s) {
|
|
4115
|
-
return (s || new
|
|
4491
|
+
return (s || new nt()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
4116
4492
|
}
|
|
4117
4493
|
static getSizePrefixedRootAsHistoryTag(t, s) {
|
|
4118
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
4494
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new nt()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
4119
4495
|
}
|
|
4120
4496
|
name(t) {
|
|
4121
4497
|
const s = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -4153,10 +4529,10 @@ class et {
|
|
|
4153
4529
|
return t.requiredField(s, 4), t.requiredField(s, 6), s;
|
|
4154
4530
|
}
|
|
4155
4531
|
static createHistoryTag(t, s, e, i, o) {
|
|
4156
|
-
return
|
|
4532
|
+
return nt.startHistoryTag(t), nt.addName(t, s), nt.addValue(t, e), nt.addRelay(t, i), nt.addMarker(t, o), nt.endHistoryTag(t);
|
|
4157
4533
|
}
|
|
4158
4534
|
unpack() {
|
|
4159
|
-
return new
|
|
4535
|
+
return new Js(
|
|
4160
4536
|
this.name(),
|
|
4161
4537
|
this.value(),
|
|
4162
4538
|
this.relay(),
|
|
@@ -4167,13 +4543,13 @@ class et {
|
|
|
4167
4543
|
t.name = this.name(), t.value = this.value(), t.relay = this.relay(), t.marker = this.marker();
|
|
4168
4544
|
}
|
|
4169
4545
|
}
|
|
4170
|
-
class
|
|
4546
|
+
class Js {
|
|
4171
4547
|
constructor(t = null, s = null, e = null, i = null) {
|
|
4172
4548
|
this.name = t, this.value = s, this.relay = e, this.marker = i;
|
|
4173
4549
|
}
|
|
4174
4550
|
pack(t) {
|
|
4175
4551
|
const s = this.name !== null ? t.createString(this.name) : 0, e = this.value !== null ? t.createString(this.value) : 0, i = this.relay !== null ? t.createString(this.relay) : 0, o = this.marker !== null ? t.createString(this.marker) : 0;
|
|
4176
|
-
return
|
|
4552
|
+
return nt.createHistoryTag(
|
|
4177
4553
|
t,
|
|
4178
4554
|
s,
|
|
4179
4555
|
e,
|
|
@@ -4229,7 +4605,7 @@ class v {
|
|
|
4229
4605
|
}
|
|
4230
4606
|
tags(t, s) {
|
|
4231
4607
|
const e = this.bb.__offset(this.bb_pos, 14);
|
|
4232
|
-
return e ? (s || new
|
|
4608
|
+
return e ? (s || new nt()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + e) + t * 4), this.bb) : null;
|
|
4233
4609
|
}
|
|
4234
4610
|
tagsLength() {
|
|
4235
4611
|
const t = this.bb.__offset(this.bb_pos, 14);
|
|
@@ -4307,7 +4683,7 @@ class v {
|
|
|
4307
4683
|
return v.startKind7376Parsed(t), v.addDirection(t, s), v.addAmount(t, e), v.addCreatedEvents(t, i), v.addDestroyedEvents(t, o), v.addRedeemedEvents(t, r), v.addTags(t, a), v.addDecrypted(t, h), v.endKind7376Parsed(t);
|
|
4308
4684
|
}
|
|
4309
4685
|
unpack() {
|
|
4310
|
-
return new
|
|
4686
|
+
return new $s(
|
|
4311
4687
|
this.direction(),
|
|
4312
4688
|
this.amount(),
|
|
4313
4689
|
this.bb.createScalarList(this.createdEvents.bind(this), this.createdEventsLength()),
|
|
@@ -4321,7 +4697,7 @@ class v {
|
|
|
4321
4697
|
t.direction = this.direction(), t.amount = this.amount(), t.createdEvents = this.bb.createScalarList(this.createdEvents.bind(this), this.createdEventsLength()), t.destroyedEvents = this.bb.createScalarList(this.destroyedEvents.bind(this), this.destroyedEventsLength()), t.redeemedEvents = this.bb.createScalarList(this.redeemedEvents.bind(this), this.redeemedEventsLength()), t.tags = this.bb.createObjList(this.tags.bind(this), this.tagsLength()), t.decrypted = this.decrypted();
|
|
4322
4698
|
}
|
|
4323
4699
|
}
|
|
4324
|
-
class
|
|
4700
|
+
class $s {
|
|
4325
4701
|
constructor(t = null, s = 0, e = [], i = [], o = [], r = [], a = false) {
|
|
4326
4702
|
this.direction = t, this.amount = s, this.createdEvents = e, this.destroyedEvents = i, this.redeemedEvents = o, this.tags = r, this.decrypted = a;
|
|
4327
4703
|
}
|
|
@@ -4339,7 +4715,7 @@ class Zs {
|
|
|
4339
4715
|
);
|
|
4340
4716
|
}
|
|
4341
4717
|
}
|
|
4342
|
-
class
|
|
4718
|
+
class Q {
|
|
4343
4719
|
constructor() {
|
|
4344
4720
|
this.bb = null, this.bb_pos = 0;
|
|
4345
4721
|
}
|
|
@@ -4347,14 +4723,14 @@ class M {
|
|
|
4347
4723
|
return this.bb_pos = t, this.bb = s, this;
|
|
4348
4724
|
}
|
|
4349
4725
|
static getRootAsKind7Parsed(t, s) {
|
|
4350
|
-
return (s || new
|
|
4726
|
+
return (s || new Q()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
4351
4727
|
}
|
|
4352
4728
|
static getSizePrefixedRootAsKind7Parsed(t, s) {
|
|
4353
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
4729
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new Q()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
4354
4730
|
}
|
|
4355
4731
|
reactionType() {
|
|
4356
4732
|
const t = this.bb.__offset(this.bb_pos, 4);
|
|
4357
|
-
return t ? this.bb.readInt8(this.bb_pos + t) :
|
|
4733
|
+
return t ? this.bb.readInt8(this.bb_pos + t) : Ht.Like;
|
|
4358
4734
|
}
|
|
4359
4735
|
eventId(t) {
|
|
4360
4736
|
const s = this.bb.__offset(this.bb_pos, 6);
|
|
@@ -4370,7 +4746,7 @@ class M {
|
|
|
4370
4746
|
}
|
|
4371
4747
|
emoji(t) {
|
|
4372
4748
|
const s = this.bb.__offset(this.bb_pos, 12);
|
|
4373
|
-
return s ? (t || new
|
|
4749
|
+
return s ? (t || new gt()).__init(this.bb.__indirect(this.bb_pos + s), this.bb) : null;
|
|
4374
4750
|
}
|
|
4375
4751
|
targetCoordinates(t) {
|
|
4376
4752
|
const s = this.bb.__offset(this.bb_pos, 14);
|
|
@@ -4380,7 +4756,7 @@ class M {
|
|
|
4380
4756
|
t.startObject(6);
|
|
4381
4757
|
}
|
|
4382
4758
|
static addReactionType(t, s) {
|
|
4383
|
-
t.addFieldInt8(0, s,
|
|
4759
|
+
t.addFieldInt8(0, s, Ht.Like);
|
|
4384
4760
|
}
|
|
4385
4761
|
static addEventId(t, s) {
|
|
4386
4762
|
t.addFieldOffset(1, s, 0);
|
|
@@ -4402,7 +4778,7 @@ class M {
|
|
|
4402
4778
|
return t.requiredField(s, 6), t.requiredField(s, 8), s;
|
|
4403
4779
|
}
|
|
4404
4780
|
unpack() {
|
|
4405
|
-
return new
|
|
4781
|
+
return new te(
|
|
4406
4782
|
this.reactionType(),
|
|
4407
4783
|
this.eventId(),
|
|
4408
4784
|
this.pubkey(),
|
|
@@ -4415,16 +4791,16 @@ class M {
|
|
|
4415
4791
|
t.reactionType = this.reactionType(), t.eventId = this.eventId(), t.pubkey = this.pubkey(), t.eventKind = this.eventKind(), t.emoji = this.emoji() !== null ? this.emoji().unpack() : null, t.targetCoordinates = this.targetCoordinates();
|
|
4416
4792
|
}
|
|
4417
4793
|
}
|
|
4418
|
-
class
|
|
4419
|
-
constructor(t =
|
|
4794
|
+
class te {
|
|
4795
|
+
constructor(t = Ht.Like, s = null, e = null, i = BigInt("0"), o = null, r = null) {
|
|
4420
4796
|
this.reactionType = t, this.eventId = s, this.pubkey = e, this.eventKind = i, this.emoji = o, this.targetCoordinates = r;
|
|
4421
4797
|
}
|
|
4422
4798
|
pack(t) {
|
|
4423
4799
|
const s = this.eventId !== null ? t.createString(this.eventId) : 0, e = this.pubkey !== null ? t.createString(this.pubkey) : 0, i = this.emoji !== null ? this.emoji.pack(t) : 0, o = this.targetCoordinates !== null ? t.createString(this.targetCoordinates) : 0;
|
|
4424
|
-
return
|
|
4800
|
+
return Q.startKind7Parsed(t), Q.addReactionType(t, this.reactionType), Q.addEventId(t, s), Q.addPubkey(t, e), Q.addEventKind(t, this.eventKind), Q.addEmoji(t, i), Q.addTargetCoordinates(t, o), Q.endKind7Parsed(t);
|
|
4425
4801
|
}
|
|
4426
4802
|
}
|
|
4427
|
-
class
|
|
4803
|
+
class m {
|
|
4428
4804
|
constructor() {
|
|
4429
4805
|
this.bb = null, this.bb_pos = 0;
|
|
4430
4806
|
}
|
|
@@ -4432,10 +4808,10 @@ class I {
|
|
|
4432
4808
|
return this.bb_pos = t, this.bb = s, this;
|
|
4433
4809
|
}
|
|
4434
4810
|
static getRootAsKind9321Parsed(t, s) {
|
|
4435
|
-
return (s || new
|
|
4811
|
+
return (s || new m()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
4436
4812
|
}
|
|
4437
4813
|
static getSizePrefixedRootAsKind9321Parsed(t, s) {
|
|
4438
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
4814
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new m()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
4439
4815
|
}
|
|
4440
4816
|
id(t) {
|
|
4441
4817
|
const s = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -4467,7 +4843,7 @@ class I {
|
|
|
4467
4843
|
}
|
|
4468
4844
|
proofs(t, s) {
|
|
4469
4845
|
const e = this.bb.__offset(this.bb_pos, 18);
|
|
4470
|
-
return e ? (s || new
|
|
4846
|
+
return e ? (s || new A()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + e) + t * 4), this.bb) : null;
|
|
4471
4847
|
}
|
|
4472
4848
|
proofsLength() {
|
|
4473
4849
|
const t = this.bb.__offset(this.bb_pos, 18);
|
|
@@ -4535,10 +4911,10 @@ class I {
|
|
|
4535
4911
|
return t.requiredField(s, 4), t.requiredField(s, 8), t.requiredField(s, 10), t.requiredField(s, 14), t.requiredField(s, 18), s;
|
|
4536
4912
|
}
|
|
4537
4913
|
static createKind9321Parsed(t, s, e, i, o, r, a, h, d, b, l, u) {
|
|
4538
|
-
return
|
|
4914
|
+
return m.startKind9321Parsed(t), m.addId(t, s), m.addAmount(t, e), m.addRecipient(t, i), m.addSender(t, o), m.addEventId(t, r), m.addMintUrl(t, a), m.addRedeemed(t, h), m.addProofs(t, d), m.addComment(t, b), m.addIsP2pkLocked(t, l), m.addP2pkPubkey(t, u), m.endKind9321Parsed(t);
|
|
4539
4915
|
}
|
|
4540
4916
|
unpack() {
|
|
4541
|
-
return new
|
|
4917
|
+
return new se(
|
|
4542
4918
|
this.id(),
|
|
4543
4919
|
this.amount(),
|
|
4544
4920
|
this.recipient(),
|
|
@@ -4556,13 +4932,13 @@ class I {
|
|
|
4556
4932
|
t.id = this.id(), t.amount = this.amount(), t.recipient = this.recipient(), t.sender = this.sender(), t.eventId = this.eventId(), t.mintUrl = this.mintUrl(), t.redeemed = this.redeemed(), t.proofs = this.bb.createObjList(this.proofs.bind(this), this.proofsLength()), t.comment = this.comment(), t.isP2pkLocked = this.isP2pkLocked(), t.p2pkPubkey = this.p2pkPubkey();
|
|
4557
4933
|
}
|
|
4558
4934
|
}
|
|
4559
|
-
class
|
|
4935
|
+
class se {
|
|
4560
4936
|
constructor(t = null, s = 0, e = null, i = null, o = null, r = null, a = false, h = [], d = null, b = false, l = null) {
|
|
4561
4937
|
this.id = t, this.amount = s, this.recipient = e, this.sender = i, this.eventId = o, this.mintUrl = r, this.redeemed = a, this.proofs = h, this.comment = d, this.isP2pkLocked = b, this.p2pkPubkey = l;
|
|
4562
4938
|
}
|
|
4563
4939
|
pack(t) {
|
|
4564
|
-
const s = this.id !== null ? t.createString(this.id) : 0, e = this.recipient !== null ? t.createString(this.recipient) : 0, i = this.sender !== null ? t.createString(this.sender) : 0, o = this.eventId !== null ? t.createString(this.eventId) : 0, r = this.mintUrl !== null ? t.createString(this.mintUrl) : 0, a =
|
|
4565
|
-
return
|
|
4940
|
+
const s = this.id !== null ? t.createString(this.id) : 0, e = this.recipient !== null ? t.createString(this.recipient) : 0, i = this.sender !== null ? t.createString(this.sender) : 0, o = this.eventId !== null ? t.createString(this.eventId) : 0, r = this.mintUrl !== null ? t.createString(this.mintUrl) : 0, a = m.createProofsVector(t, t.createObjectOffsetList(this.proofs)), h = this.comment !== null ? t.createString(this.comment) : 0, d = this.p2pkPubkey !== null ? t.createString(this.p2pkPubkey) : 0;
|
|
4941
|
+
return m.createKind9321Parsed(
|
|
4566
4942
|
t,
|
|
4567
4943
|
s,
|
|
4568
4944
|
this.amount,
|
|
@@ -4578,7 +4954,7 @@ class Gs {
|
|
|
4578
4954
|
);
|
|
4579
4955
|
}
|
|
4580
4956
|
}
|
|
4581
|
-
class
|
|
4957
|
+
class H {
|
|
4582
4958
|
constructor() {
|
|
4583
4959
|
this.bb = null, this.bb_pos = 0;
|
|
4584
4960
|
}
|
|
@@ -4586,10 +4962,10 @@ class x {
|
|
|
4586
4962
|
return this.bb_pos = t, this.bb = s, this;
|
|
4587
4963
|
}
|
|
4588
4964
|
static getRootAsZapRequest(t, s) {
|
|
4589
|
-
return (s || new
|
|
4965
|
+
return (s || new H()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
4590
4966
|
}
|
|
4591
4967
|
static getSizePrefixedRootAsZapRequest(t, s) {
|
|
4592
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
4968
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new H()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
4593
4969
|
}
|
|
4594
4970
|
kind() {
|
|
4595
4971
|
const t = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -4605,7 +4981,7 @@ class x {
|
|
|
4605
4981
|
}
|
|
4606
4982
|
tags(t, s) {
|
|
4607
4983
|
const e = this.bb.__offset(this.bb_pos, 10);
|
|
4608
|
-
return e ? (s || new
|
|
4984
|
+
return e ? (s || new X()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + e) + t * 4), this.bb) : null;
|
|
4609
4985
|
}
|
|
4610
4986
|
tagsLength() {
|
|
4611
4987
|
const t = this.bb.__offset(this.bb_pos, 10);
|
|
@@ -4647,10 +5023,10 @@ class x {
|
|
|
4647
5023
|
return t.requiredField(s, 6), t.requiredField(s, 8), t.requiredField(s, 10), s;
|
|
4648
5024
|
}
|
|
4649
5025
|
static createZapRequest(t, s, e, i, o, r) {
|
|
4650
|
-
return
|
|
5026
|
+
return H.startZapRequest(t), H.addKind(t, s), H.addPubkey(t, e), H.addContent(t, i), H.addTags(t, o), H.addSignature(t, r), H.endZapRequest(t);
|
|
4651
5027
|
}
|
|
4652
5028
|
unpack() {
|
|
4653
|
-
return new
|
|
5029
|
+
return new ee(
|
|
4654
5030
|
this.kind(),
|
|
4655
5031
|
this.pubkey(),
|
|
4656
5032
|
this.content(),
|
|
@@ -4662,13 +5038,13 @@ class x {
|
|
|
4662
5038
|
t.kind = this.kind(), t.pubkey = this.pubkey(), t.content = this.content(), t.tags = this.bb.createObjList(this.tags.bind(this), this.tagsLength()), t.signature = this.signature();
|
|
4663
5039
|
}
|
|
4664
5040
|
}
|
|
4665
|
-
class
|
|
5041
|
+
class ee {
|
|
4666
5042
|
constructor(t = 0, s = null, e = null, i = [], o = null) {
|
|
4667
5043
|
this.kind = t, this.pubkey = s, this.content = e, this.tags = i, this.signature = o;
|
|
4668
5044
|
}
|
|
4669
5045
|
pack(t) {
|
|
4670
|
-
const s = this.pubkey !== null ? t.createString(this.pubkey) : 0, e = this.content !== null ? t.createString(this.content) : 0, i =
|
|
4671
|
-
return
|
|
5046
|
+
const s = this.pubkey !== null ? t.createString(this.pubkey) : 0, e = this.content !== null ? t.createString(this.content) : 0, i = H.createTagsVector(t, t.createObjectOffsetList(this.tags)), o = this.signature !== null ? t.createString(this.signature) : 0;
|
|
5047
|
+
return H.createZapRequest(
|
|
4672
5048
|
t,
|
|
4673
5049
|
this.kind,
|
|
4674
5050
|
s,
|
|
@@ -4737,7 +5113,7 @@ class F {
|
|
|
4737
5113
|
}
|
|
4738
5114
|
description(t) {
|
|
4739
5115
|
const s = this.bb.__offset(this.bb_pos, 26);
|
|
4740
|
-
return s ? (t || new
|
|
5116
|
+
return s ? (t || new H()).__init(this.bb.__indirect(this.bb_pos + s), this.bb) : null;
|
|
4741
5117
|
}
|
|
4742
5118
|
static startKind9735Parsed(t) {
|
|
4743
5119
|
t.startObject(12);
|
|
@@ -4783,7 +5159,7 @@ class F {
|
|
|
4783
5159
|
return t.requiredField(s, 4), t.requiredField(s, 8), t.requiredField(s, 10), t.requiredField(s, 14), t.requiredField(s, 16), t.requiredField(s, 26), s;
|
|
4784
5160
|
}
|
|
4785
5161
|
unpack() {
|
|
4786
|
-
return new
|
|
5162
|
+
return new ie(
|
|
4787
5163
|
this.id(),
|
|
4788
5164
|
this.amount(),
|
|
4789
5165
|
this.content(),
|
|
@@ -4802,7 +5178,7 @@ class F {
|
|
|
4802
5178
|
t.id = this.id(), t.amount = this.amount(), t.content = this.content(), t.bolt11 = this.bolt11(), t.preimage = this.preimage(), t.sender = this.sender(), t.recipient = this.recipient(), t.event = this.event(), t.eventCoordinate = this.eventCoordinate(), t.timestamp = this.timestamp(), t.valid = this.valid(), t.description = this.description() !== null ? this.description().unpack() : null;
|
|
4803
5179
|
}
|
|
4804
5180
|
}
|
|
4805
|
-
class
|
|
5181
|
+
class ie {
|
|
4806
5182
|
constructor(t = null, s = 0, e = null, i = null, o = null, r = null, a = null, h = null, d = null, b = BigInt("0"), l = false, u = null) {
|
|
4807
5183
|
this.id = t, this.amount = s, this.content = e, this.bolt11 = i, this.preimage = o, this.sender = r, this.recipient = a, this.event = h, this.eventCoordinate = d, this.timestamp = b, this.valid = l, this.description = u;
|
|
4808
5184
|
}
|
|
@@ -4811,7 +5187,7 @@ class Ms {
|
|
|
4811
5187
|
return F.startKind9735Parsed(t), F.addId(t, s), F.addAmount(t, this.amount), F.addContent(t, e), F.addBolt11(t, i), F.addPreimage(t, o), F.addSender(t, r), F.addRecipient(t, a), F.addEvent(t, h), F.addEventCoordinate(t, d), F.addTimestamp(t, this.timestamp), F.addValid(t, this.valid), F.addDescription(t, b), F.endKind9735Parsed(t);
|
|
4812
5188
|
}
|
|
4813
5189
|
}
|
|
4814
|
-
class
|
|
5190
|
+
class z {
|
|
4815
5191
|
constructor() {
|
|
4816
5192
|
this.bb = null, this.bb_pos = 0;
|
|
4817
5193
|
}
|
|
@@ -4819,10 +5195,10 @@ class B {
|
|
|
4819
5195
|
return this.bb_pos = t, this.bb = s, this;
|
|
4820
5196
|
}
|
|
4821
5197
|
static getRootAsCoordinate(t, s) {
|
|
4822
|
-
return (s || new
|
|
5198
|
+
return (s || new z()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
4823
5199
|
}
|
|
4824
5200
|
static getSizePrefixedRootAsCoordinate(t, s) {
|
|
4825
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
5201
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new z()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
4826
5202
|
}
|
|
4827
5203
|
kind() {
|
|
4828
5204
|
const t = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -4873,10 +5249,10 @@ class B {
|
|
|
4873
5249
|
return t.requiredField(s, 6), t.requiredField(s, 8), s;
|
|
4874
5250
|
}
|
|
4875
5251
|
static createCoordinate(t, s, e, i, o) {
|
|
4876
|
-
return
|
|
5252
|
+
return z.startCoordinate(t), z.addKind(t, s), z.addPubkey(t, e), z.addD(t, i), z.addRelays(t, o), z.endCoordinate(t);
|
|
4877
5253
|
}
|
|
4878
5254
|
unpack() {
|
|
4879
|
-
return new
|
|
5255
|
+
return new ne(
|
|
4880
5256
|
this.kind(),
|
|
4881
5257
|
this.pubkey(),
|
|
4882
5258
|
this.d(),
|
|
@@ -4887,13 +5263,13 @@ class B {
|
|
|
4887
5263
|
t.kind = this.kind(), t.pubkey = this.pubkey(), t.d = this.d(), t.relays = this.bb.createScalarList(this.relays.bind(this), this.relaysLength());
|
|
4888
5264
|
}
|
|
4889
5265
|
}
|
|
4890
|
-
class
|
|
5266
|
+
class ne {
|
|
4891
5267
|
constructor(t = BigInt("0"), s = null, e = null, i = []) {
|
|
4892
5268
|
this.kind = t, this.pubkey = s, this.d = e, this.relays = i;
|
|
4893
5269
|
}
|
|
4894
5270
|
pack(t) {
|
|
4895
|
-
const s = this.pubkey !== null ? t.createString(this.pubkey) : 0, e = this.d !== null ? t.createString(this.d) : 0, i =
|
|
4896
|
-
return
|
|
5271
|
+
const s = this.pubkey !== null ? t.createString(this.pubkey) : 0, e = this.d !== null ? t.createString(this.d) : 0, i = z.createRelaysVector(t, t.createObjectOffsetList(this.relays));
|
|
5272
|
+
return z.createCoordinate(
|
|
4897
5273
|
t,
|
|
4898
5274
|
this.kind,
|
|
4899
5275
|
s,
|
|
@@ -4902,7 +5278,7 @@ class Ws {
|
|
|
4902
5278
|
);
|
|
4903
5279
|
}
|
|
4904
5280
|
}
|
|
4905
|
-
class
|
|
5281
|
+
class yt {
|
|
4906
5282
|
constructor() {
|
|
4907
5283
|
this.bb = null, this.bb_pos = 0;
|
|
4908
5284
|
}
|
|
@@ -4910,10 +5286,10 @@ class ut {
|
|
|
4910
5286
|
return this.bb_pos = t, this.bb = s, this;
|
|
4911
5287
|
}
|
|
4912
5288
|
static getRootAsTag(t, s) {
|
|
4913
|
-
return (s || new
|
|
5289
|
+
return (s || new yt()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
4914
5290
|
}
|
|
4915
5291
|
static getSizePrefixedRootAsTag(t, s) {
|
|
4916
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
5292
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new yt()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
4917
5293
|
}
|
|
4918
5294
|
key(t) {
|
|
4919
5295
|
const s = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -4950,10 +5326,10 @@ class ut {
|
|
|
4950
5326
|
return t.requiredField(s, 4), s;
|
|
4951
5327
|
}
|
|
4952
5328
|
static createTag(t, s, e) {
|
|
4953
|
-
return
|
|
5329
|
+
return yt.startTag(t), yt.addKey(t, s), yt.addValues(t, e), yt.endTag(t);
|
|
4954
5330
|
}
|
|
4955
5331
|
unpack() {
|
|
4956
|
-
return new
|
|
5332
|
+
return new oe(
|
|
4957
5333
|
this.key(),
|
|
4958
5334
|
this.bb.createScalarList(this.values.bind(this), this.valuesLength())
|
|
4959
5335
|
);
|
|
@@ -4962,13 +5338,13 @@ class ut {
|
|
|
4962
5338
|
t.key = this.key(), t.values = this.bb.createScalarList(this.values.bind(this), this.valuesLength());
|
|
4963
5339
|
}
|
|
4964
5340
|
}
|
|
4965
|
-
class
|
|
5341
|
+
class oe {
|
|
4966
5342
|
constructor(t = null, s = []) {
|
|
4967
5343
|
this.key = t, this.values = s;
|
|
4968
5344
|
}
|
|
4969
5345
|
pack(t) {
|
|
4970
|
-
const s = this.key !== null ? t.createString(this.key) : 0, e =
|
|
4971
|
-
return
|
|
5346
|
+
const s = this.key !== null ? t.createString(this.key) : 0, e = yt.createValuesVector(t, t.createObjectOffsetList(this.values));
|
|
5347
|
+
return yt.createTag(
|
|
4972
5348
|
t,
|
|
4973
5349
|
s,
|
|
4974
5350
|
e
|
|
@@ -5034,7 +5410,7 @@ class O {
|
|
|
5034
5410
|
}
|
|
5035
5411
|
addresses(t, s) {
|
|
5036
5412
|
const e = this.bb.__offset(this.bb_pos, 20);
|
|
5037
|
-
return e ? (s || new
|
|
5413
|
+
return e ? (s || new z()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + e) + t * 4), this.bb) : null;
|
|
5038
5414
|
}
|
|
5039
5415
|
addressesLength() {
|
|
5040
5416
|
const t = this.bb.__offset(this.bb_pos, 20);
|
|
@@ -5042,7 +5418,7 @@ class O {
|
|
|
5042
5418
|
}
|
|
5043
5419
|
otherTags(t, s) {
|
|
5044
5420
|
const e = this.bb.__offset(this.bb_pos, 22);
|
|
5045
|
-
return e ? (s || new
|
|
5421
|
+
return e ? (s || new yt()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + e) + t * 4), this.bb) : null;
|
|
5046
5422
|
}
|
|
5047
5423
|
otherTagsLength() {
|
|
5048
5424
|
const t = this.bb.__offset(this.bb_pos, 22);
|
|
@@ -5133,7 +5509,7 @@ class O {
|
|
|
5133
5509
|
return O.startListParsed(t), O.addListKind(t, s), O.addD(t, e), O.addTitle(t, i), O.addDescription(t, o), O.addImage(t, r), O.addTopics(t, a), O.addPeople(t, h), O.addEvents(t, d), O.addAddresses(t, b), O.addOtherTags(t, l), O.endListParsed(t);
|
|
5134
5510
|
}
|
|
5135
5511
|
unpack() {
|
|
5136
|
-
return new
|
|
5512
|
+
return new re(
|
|
5137
5513
|
this.listKind(),
|
|
5138
5514
|
this.d(),
|
|
5139
5515
|
this.title(),
|
|
@@ -5150,7 +5526,7 @@ class O {
|
|
|
5150
5526
|
t.listKind = this.listKind(), t.d = this.d(), t.title = this.title(), t.description = this.description(), t.image = this.image(), t.topics = this.bb.createScalarList(this.topics.bind(this), this.topicsLength()), t.people = this.bb.createScalarList(this.people.bind(this), this.peopleLength()), t.events = this.bb.createScalarList(this.events.bind(this), this.eventsLength()), t.addresses = this.bb.createObjList(this.addresses.bind(this), this.addressesLength()), t.otherTags = this.bb.createObjList(this.otherTags.bind(this), this.otherTagsLength());
|
|
5151
5527
|
}
|
|
5152
5528
|
}
|
|
5153
|
-
class
|
|
5529
|
+
class re {
|
|
5154
5530
|
constructor(t = 0, s = null, e = null, i = null, o = null, r = [], a = [], h = [], d = [], b = []) {
|
|
5155
5531
|
this.listKind = t, this.d = s, this.title = e, this.description = i, this.image = o, this.topics = r, this.people = a, this.events = h, this.addresses = d, this.otherTags = b;
|
|
5156
5532
|
}
|
|
@@ -5171,7 +5547,7 @@ class Ys {
|
|
|
5171
5547
|
);
|
|
5172
5548
|
}
|
|
5173
5549
|
}
|
|
5174
|
-
class
|
|
5550
|
+
class ot {
|
|
5175
5551
|
constructor() {
|
|
5176
5552
|
this.bb = null, this.bb_pos = 0;
|
|
5177
5553
|
}
|
|
@@ -5179,10 +5555,10 @@ class it {
|
|
|
5179
5555
|
return this.bb_pos = t, this.bb = s, this;
|
|
5180
5556
|
}
|
|
5181
5557
|
static getRootAsPreParticipant(t, s) {
|
|
5182
|
-
return (s || new
|
|
5558
|
+
return (s || new ot()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
5183
5559
|
}
|
|
5184
5560
|
static getSizePrefixedRootAsPreParticipant(t, s) {
|
|
5185
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
5561
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new ot()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
5186
5562
|
}
|
|
5187
5563
|
pubkey(t) {
|
|
5188
5564
|
const s = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -5220,10 +5596,10 @@ class it {
|
|
|
5220
5596
|
return t.requiredField(s, 4), s;
|
|
5221
5597
|
}
|
|
5222
5598
|
static createPreParticipant(t, s, e, i, o) {
|
|
5223
|
-
return
|
|
5599
|
+
return ot.startPreParticipant(t), ot.addPubkey(t, s), ot.addRelay(t, e), ot.addRole(t, i), ot.addProof(t, o), ot.endPreParticipant(t);
|
|
5224
5600
|
}
|
|
5225
5601
|
unpack() {
|
|
5226
|
-
return new
|
|
5602
|
+
return new ae(
|
|
5227
5603
|
this.pubkey(),
|
|
5228
5604
|
this.relay(),
|
|
5229
5605
|
this.role(),
|
|
@@ -5234,13 +5610,13 @@ class it {
|
|
|
5234
5610
|
t.pubkey = this.pubkey(), t.relay = this.relay(), t.role = this.role(), t.proof = this.proof();
|
|
5235
5611
|
}
|
|
5236
5612
|
}
|
|
5237
|
-
class
|
|
5613
|
+
class ae {
|
|
5238
5614
|
constructor(t = null, s = null, e = null, i = null) {
|
|
5239
5615
|
this.pubkey = t, this.relay = s, this.role = e, this.proof = i;
|
|
5240
5616
|
}
|
|
5241
5617
|
pack(t) {
|
|
5242
5618
|
const s = this.pubkey !== null ? t.createString(this.pubkey) : 0, e = this.relay !== null ? t.createString(this.relay) : 0, i = this.role !== null ? t.createString(this.role) : 0, o = this.proof !== null ? t.createString(this.proof) : 0;
|
|
5243
|
-
return
|
|
5619
|
+
return ot.createPreParticipant(
|
|
5244
5620
|
t,
|
|
5245
5621
|
s,
|
|
5246
5622
|
e,
|
|
@@ -5249,7 +5625,7 @@ class Js {
|
|
|
5249
5625
|
);
|
|
5250
5626
|
}
|
|
5251
5627
|
}
|
|
5252
|
-
class
|
|
5628
|
+
class lt {
|
|
5253
5629
|
constructor() {
|
|
5254
5630
|
this.bb = null, this.bb_pos = 0;
|
|
5255
5631
|
}
|
|
@@ -5257,10 +5633,10 @@ class dt {
|
|
|
5257
5633
|
return this.bb_pos = t, this.bb = s, this;
|
|
5258
5634
|
}
|
|
5259
5635
|
static getRootAsPreRefEvent(t, s) {
|
|
5260
|
-
return (s || new
|
|
5636
|
+
return (s || new lt()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
5261
5637
|
}
|
|
5262
5638
|
static getSizePrefixedRootAsPreRefEvent(t, s) {
|
|
5263
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
5639
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new lt()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
5264
5640
|
}
|
|
5265
5641
|
id(t) {
|
|
5266
5642
|
const s = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -5291,10 +5667,10 @@ class dt {
|
|
|
5291
5667
|
return t.requiredField(s, 4), s;
|
|
5292
5668
|
}
|
|
5293
5669
|
static createPreRefEvent(t, s, e, i) {
|
|
5294
|
-
return
|
|
5670
|
+
return lt.startPreRefEvent(t), lt.addId(t, s), lt.addRelay(t, e), lt.addMarker(t, i), lt.endPreRefEvent(t);
|
|
5295
5671
|
}
|
|
5296
5672
|
unpack() {
|
|
5297
|
-
return new
|
|
5673
|
+
return new he(
|
|
5298
5674
|
this.id(),
|
|
5299
5675
|
this.relay(),
|
|
5300
5676
|
this.marker()
|
|
@@ -5304,13 +5680,13 @@ class dt {
|
|
|
5304
5680
|
t.id = this.id(), t.relay = this.relay(), t.marker = this.marker();
|
|
5305
5681
|
}
|
|
5306
5682
|
}
|
|
5307
|
-
class
|
|
5683
|
+
class he {
|
|
5308
5684
|
constructor(t = null, s = null, e = null) {
|
|
5309
5685
|
this.id = t, this.relay = s, this.marker = e;
|
|
5310
5686
|
}
|
|
5311
5687
|
pack(t) {
|
|
5312
5688
|
const s = this.id !== null ? t.createString(this.id) : 0, e = this.relay !== null ? t.createString(this.relay) : 0, i = this.marker !== null ? t.createString(this.marker) : 0;
|
|
5313
|
-
return
|
|
5689
|
+
return lt.createPreRefEvent(
|
|
5314
5690
|
t,
|
|
5315
5691
|
s,
|
|
5316
5692
|
e,
|
|
@@ -5429,7 +5805,7 @@ class f {
|
|
|
5429
5805
|
}
|
|
5430
5806
|
participants(t, s) {
|
|
5431
5807
|
const e = this.bb.__offset(this.bb_pos, 46);
|
|
5432
|
-
return e ? (s || new
|
|
5808
|
+
return e ? (s || new ot()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + e) + t * 4), this.bb) : null;
|
|
5433
5809
|
}
|
|
5434
5810
|
participantsLength() {
|
|
5435
5811
|
const t = this.bb.__offset(this.bb_pos, 46);
|
|
@@ -5437,7 +5813,7 @@ class f {
|
|
|
5437
5813
|
}
|
|
5438
5814
|
events(t, s) {
|
|
5439
5815
|
const e = this.bb.__offset(this.bb_pos, 48);
|
|
5440
|
-
return e ? (s || new
|
|
5816
|
+
return e ? (s || new lt()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + e) + t * 4), this.bb) : null;
|
|
5441
5817
|
}
|
|
5442
5818
|
eventsLength() {
|
|
5443
5819
|
const t = this.bb.__offset(this.bb_pos, 48);
|
|
@@ -5445,7 +5821,7 @@ class f {
|
|
|
5445
5821
|
}
|
|
5446
5822
|
addresses(t, s) {
|
|
5447
5823
|
const e = this.bb.__offset(this.bb_pos, 50);
|
|
5448
|
-
return e ? (s || new
|
|
5824
|
+
return e ? (s || new z()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + e) + t * 4), this.bb) : null;
|
|
5449
5825
|
}
|
|
5450
5826
|
addressesLength() {
|
|
5451
5827
|
const t = this.bb.__offset(this.bb_pos, 50);
|
|
@@ -5453,7 +5829,7 @@ class f {
|
|
|
5453
5829
|
}
|
|
5454
5830
|
tags(t, s) {
|
|
5455
5831
|
const e = this.bb.__offset(this.bb_pos, 52);
|
|
5456
|
-
return e ? (s || new
|
|
5832
|
+
return e ? (s || new X()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + e) + t * 4), this.bb) : null;
|
|
5457
5833
|
}
|
|
5458
5834
|
tagsLength() {
|
|
5459
5835
|
const t = this.bb.__offset(this.bb_pos, 52);
|
|
@@ -5603,11 +5979,11 @@ class f {
|
|
|
5603
5979
|
static endPreGenericParsed(t) {
|
|
5604
5980
|
return t.endObject();
|
|
5605
5981
|
}
|
|
5606
|
-
static createPreGenericParsed(t, s, e, i, o, r, a, h, d, b, l, u, y,
|
|
5607
|
-
return f.startPreGenericParsed(t), f.addKind(t, s), f.addD(t, e), f.addContent(t, i), f.addTitle(t, o), f.addDescription(t, r), f.addImage(t, a), f.addStreaming(t, h), f.addRecording(t, d), f.addService(t, b), f.addEndpoint(t, l), f.addRoom(t, u), f.addStatus(t, y), f.addStarts(t,
|
|
5982
|
+
static createPreGenericParsed(t, s, e, i, o, r, a, h, d, b, l, u, y, I, V, K, U, J, $, tt, It, Mt, Wt, Qt, Yt, es) {
|
|
5983
|
+
return f.startPreGenericParsed(t), f.addKind(t, s), f.addD(t, e), f.addContent(t, i), f.addTitle(t, o), f.addDescription(t, r), f.addImage(t, a), f.addStreaming(t, h), f.addRecording(t, d), f.addService(t, b), f.addEndpoint(t, l), f.addRoom(t, u), f.addStatus(t, y), f.addStarts(t, I), f.addEnds(t, V), f.addLocation(t, K), f.addCurrentParticipants(t, U), f.addTotalParticipants(t, J), f.addPinned(t, $), f.addTopics(t, tt), f.addLinks(t, It), f.addRelays(t, Mt), f.addParticipants(t, Wt), f.addEvents(t, Qt), f.addAddresses(t, Yt), f.addTags(t, es), f.endPreGenericParsed(t);
|
|
5608
5984
|
}
|
|
5609
5985
|
unpack() {
|
|
5610
|
-
return new
|
|
5986
|
+
return new ce(
|
|
5611
5987
|
this.kind(),
|
|
5612
5988
|
this.d(),
|
|
5613
5989
|
this.content(),
|
|
@@ -5639,12 +6015,12 @@ class f {
|
|
|
5639
6015
|
t.kind = this.kind(), t.d = this.d(), t.content = this.content(), t.title = this.title(), t.description = this.description(), t.image = this.image(), t.streaming = this.streaming(), t.recording = this.recording(), t.service = this.service(), t.endpoint = this.endpoint(), t.room = this.room(), t.status = this.status(), t.starts = this.starts(), t.ends = this.ends(), t.location = this.location(), t.currentParticipants = this.currentParticipants(), t.totalParticipants = this.totalParticipants(), t.pinned = this.pinned(), t.topics = this.bb.createScalarList(this.topics.bind(this), this.topicsLength()), t.links = this.bb.createScalarList(this.links.bind(this), this.linksLength()), t.relays = this.bb.createScalarList(this.relays.bind(this), this.relaysLength()), t.participants = this.bb.createObjList(this.participants.bind(this), this.participantsLength()), t.events = this.bb.createObjList(this.events.bind(this), this.eventsLength()), t.addresses = this.bb.createObjList(this.addresses.bind(this), this.addressesLength()), t.tags = this.bb.createObjList(this.tags.bind(this), this.tagsLength());
|
|
5640
6016
|
}
|
|
5641
6017
|
}
|
|
5642
|
-
class
|
|
5643
|
-
constructor(t = 0, s = null, e = null, i = null, o = null, r = null, a = null, h = null, d = null, b = null, l = null, u = null, y = BigInt("0"),
|
|
5644
|
-
this.kind = t, this.d = s, this.content = e, this.title = i, this.description = o, this.image = r, this.streaming = a, this.recording = h, this.service = d, this.endpoint = b, this.room = l, this.status = u, this.starts = y, this.ends =
|
|
6018
|
+
class ce {
|
|
6019
|
+
constructor(t = 0, s = null, e = null, i = null, o = null, r = null, a = null, h = null, d = null, b = null, l = null, u = null, y = BigInt("0"), I = BigInt("0"), V = null, K = BigInt("0"), U = BigInt("0"), J = null, $ = [], tt = [], It = [], Mt = [], Wt = [], Qt = [], Yt = []) {
|
|
6020
|
+
this.kind = t, this.d = s, this.content = e, this.title = i, this.description = o, this.image = r, this.streaming = a, this.recording = h, this.service = d, this.endpoint = b, this.room = l, this.status = u, this.starts = y, this.ends = I, this.location = V, this.currentParticipants = K, this.totalParticipants = U, this.pinned = J, this.topics = $, this.links = tt, this.relays = It, this.participants = Mt, this.events = Wt, this.addresses = Qt, this.tags = Yt;
|
|
5645
6021
|
}
|
|
5646
6022
|
pack(t) {
|
|
5647
|
-
const s = this.d !== null ? t.createString(this.d) : 0, e = this.content !== null ? t.createString(this.content) : 0, i = this.title !== null ? t.createString(this.title) : 0, o = this.description !== null ? t.createString(this.description) : 0, r = this.image !== null ? t.createString(this.image) : 0, a = this.streaming !== null ? t.createString(this.streaming) : 0, h = this.recording !== null ? t.createString(this.recording) : 0, d = this.service !== null ? t.createString(this.service) : 0, b = this.endpoint !== null ? t.createString(this.endpoint) : 0, l = this.room !== null ? t.createString(this.room) : 0, u = this.status !== null ? t.createString(this.status) : 0, y = this.location !== null ? t.createString(this.location) : 0,
|
|
6023
|
+
const s = this.d !== null ? t.createString(this.d) : 0, e = this.content !== null ? t.createString(this.content) : 0, i = this.title !== null ? t.createString(this.title) : 0, o = this.description !== null ? t.createString(this.description) : 0, r = this.image !== null ? t.createString(this.image) : 0, a = this.streaming !== null ? t.createString(this.streaming) : 0, h = this.recording !== null ? t.createString(this.recording) : 0, d = this.service !== null ? t.createString(this.service) : 0, b = this.endpoint !== null ? t.createString(this.endpoint) : 0, l = this.room !== null ? t.createString(this.room) : 0, u = this.status !== null ? t.createString(this.status) : 0, y = this.location !== null ? t.createString(this.location) : 0, I = this.pinned !== null ? t.createString(this.pinned) : 0, V = f.createTopicsVector(t, t.createObjectOffsetList(this.topics)), K = f.createLinksVector(t, t.createObjectOffsetList(this.links)), U = f.createRelaysVector(t, t.createObjectOffsetList(this.relays)), J = f.createParticipantsVector(t, t.createObjectOffsetList(this.participants)), $ = f.createEventsVector(t, t.createObjectOffsetList(this.events)), tt = f.createAddressesVector(t, t.createObjectOffsetList(this.addresses)), It = f.createTagsVector(t, t.createObjectOffsetList(this.tags));
|
|
5648
6024
|
return f.createPreGenericParsed(
|
|
5649
6025
|
t,
|
|
5650
6026
|
this.kind,
|
|
@@ -5664,36 +6040,36 @@ class te {
|
|
|
5664
6040
|
y,
|
|
5665
6041
|
this.currentParticipants,
|
|
5666
6042
|
this.totalParticipants,
|
|
5667
|
-
|
|
5668
|
-
|
|
5669
|
-
|
|
5670
|
-
|
|
5671
|
-
Q,
|
|
5672
|
-
Y,
|
|
6043
|
+
I,
|
|
6044
|
+
V,
|
|
6045
|
+
K,
|
|
6046
|
+
U,
|
|
5673
6047
|
J,
|
|
5674
|
-
|
|
6048
|
+
$,
|
|
6049
|
+
tt,
|
|
6050
|
+
It
|
|
5675
6051
|
);
|
|
5676
6052
|
}
|
|
5677
6053
|
}
|
|
5678
|
-
var
|
|
5679
|
-
function
|
|
5680
|
-
switch (
|
|
6054
|
+
var Zt = /* @__PURE__ */ ((n) => (n[n.NONE = 0] = "NONE", n[n.Kind0Parsed = 1] = "Kind0Parsed", n[n.Kind1Parsed = 2] = "Kind1Parsed", n[n.Kind3Parsed = 3] = "Kind3Parsed", n[n.Kind4Parsed = 4] = "Kind4Parsed", n[n.Kind6Parsed = 5] = "Kind6Parsed", n[n.Kind7Parsed = 6] = "Kind7Parsed", n[n.Kind17Parsed = 7] = "Kind17Parsed", n[n.Kind20Parsed = 8] = "Kind20Parsed", n[n.Kind22Parsed = 9] = "Kind22Parsed", n[n.Kind1111Parsed = 10] = "Kind1111Parsed", n[n.Kind1311Parsed = 11] = "Kind1311Parsed", n[n.Kind1068Parsed = 12] = "Kind1068Parsed", n[n.Kind1018Parsed = 13] = "Kind1018Parsed", n[n.Kind10002Parsed = 14] = "Kind10002Parsed", n[n.Kind10019Parsed = 15] = "Kind10019Parsed", n[n.Kind17375Parsed = 16] = "Kind17375Parsed", n[n.Kind7374Parsed = 17] = "Kind7374Parsed", n[n.Kind7375Parsed = 18] = "Kind7375Parsed", n[n.Kind7376Parsed = 19] = "Kind7376Parsed", n[n.Kind9321Parsed = 20] = "Kind9321Parsed", n[n.Kind9735Parsed = 21] = "Kind9735Parsed", n[n.Kind30023Parsed = 22] = "Kind30023Parsed", n[n.ListParsed = 23] = "ListParsed", n[n.PreGenericParsed = 24] = "PreGenericParsed", n))(Zt || {});
|
|
6055
|
+
function ts(n, t) {
|
|
6056
|
+
switch (Zt[n]) {
|
|
5681
6057
|
case "NONE":
|
|
5682
6058
|
return null;
|
|
5683
6059
|
case "Kind0Parsed":
|
|
5684
6060
|
return t(new p());
|
|
5685
6061
|
case "Kind1Parsed":
|
|
5686
|
-
return t(new
|
|
6062
|
+
return t(new T());
|
|
5687
6063
|
case "Kind3Parsed":
|
|
5688
|
-
return t(new
|
|
6064
|
+
return t(new Vt());
|
|
5689
6065
|
case "Kind4Parsed":
|
|
5690
|
-
return t(new
|
|
6066
|
+
return t(new W());
|
|
5691
6067
|
case "Kind6Parsed":
|
|
5692
|
-
return t(new
|
|
6068
|
+
return t(new At());
|
|
5693
6069
|
case "Kind7Parsed":
|
|
5694
|
-
return t(new
|
|
6070
|
+
return t(new Q());
|
|
5695
6071
|
case "Kind17Parsed":
|
|
5696
|
-
return t(new
|
|
6072
|
+
return t(new M());
|
|
5697
6073
|
case "Kind20Parsed":
|
|
5698
6074
|
return t(new P());
|
|
5699
6075
|
case "Kind22Parsed":
|
|
@@ -5701,21 +6077,25 @@ function Wt(n, t) {
|
|
|
5701
6077
|
case "Kind1111Parsed":
|
|
5702
6078
|
return t(new _());
|
|
5703
6079
|
case "Kind1311Parsed":
|
|
5704
|
-
return t(new
|
|
6080
|
+
return t(new q());
|
|
6081
|
+
case "Kind1068Parsed":
|
|
6082
|
+
return t(new S());
|
|
6083
|
+
case "Kind1018Parsed":
|
|
6084
|
+
return t(new G());
|
|
5705
6085
|
case "Kind10002Parsed":
|
|
5706
|
-
return t(new
|
|
6086
|
+
return t(new Pt());
|
|
5707
6087
|
case "Kind10019Parsed":
|
|
5708
|
-
return t(new
|
|
6088
|
+
return t(new Y());
|
|
5709
6089
|
case "Kind17375Parsed":
|
|
5710
|
-
return t(new
|
|
6090
|
+
return t(new D());
|
|
5711
6091
|
case "Kind7374Parsed":
|
|
5712
|
-
return t(new
|
|
6092
|
+
return t(new bt());
|
|
5713
6093
|
case "Kind7375Parsed":
|
|
5714
|
-
return t(new
|
|
6094
|
+
return t(new B());
|
|
5715
6095
|
case "Kind7376Parsed":
|
|
5716
6096
|
return t(new v());
|
|
5717
6097
|
case "Kind9321Parsed":
|
|
5718
|
-
return t(new
|
|
6098
|
+
return t(new m());
|
|
5719
6099
|
case "Kind9735Parsed":
|
|
5720
6100
|
return t(new F());
|
|
5721
6101
|
case "Kind30023Parsed":
|
|
@@ -5771,7 +6151,7 @@ class g {
|
|
|
5771
6151
|
}
|
|
5772
6152
|
tags(t, s) {
|
|
5773
6153
|
const e = this.bb.__offset(this.bb_pos, 10);
|
|
5774
|
-
return e ? (s || new
|
|
6154
|
+
return e ? (s || new X()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + e) + t * 4), this.bb) : null;
|
|
5775
6155
|
}
|
|
5776
6156
|
tagsLength() {
|
|
5777
6157
|
const t = this.bb.__offset(this.bb_pos, 10);
|
|
@@ -5907,11 +6287,11 @@ class g {
|
|
|
5907
6287
|
static endRequest(t) {
|
|
5908
6288
|
return t.endObject();
|
|
5909
6289
|
}
|
|
5910
|
-
static createRequest(t, s, e, i, o, r, a, h, d, b, l, u, y,
|
|
5911
|
-
return g.startRequest(t), g.addIds(t, s), g.addAuthors(t, e), g.addKinds(t, i), g.addTags(t, o), g.addLimit(t, r), g.addSince(t, a), g.addUntil(t, h), g.addSearch(t, d), g.addRelays(t, b), g.addCloseOnEose(t, l), g.addCacheFirst(t, u), g.addNoCache(t, y), g.addMaxRelays(t,
|
|
6290
|
+
static createRequest(t, s, e, i, o, r, a, h, d, b, l, u, y, I) {
|
|
6291
|
+
return g.startRequest(t), g.addIds(t, s), g.addAuthors(t, e), g.addKinds(t, i), g.addTags(t, o), g.addLimit(t, r), g.addSince(t, a), g.addUntil(t, h), g.addSearch(t, d), g.addRelays(t, b), g.addCloseOnEose(t, l), g.addCacheFirst(t, u), g.addNoCache(t, y), g.addMaxRelays(t, I), g.endRequest(t);
|
|
5912
6292
|
}
|
|
5913
6293
|
unpack() {
|
|
5914
|
-
return new
|
|
6294
|
+
return new de(
|
|
5915
6295
|
this.bb.createScalarList(this.ids.bind(this), this.idsLength()),
|
|
5916
6296
|
this.bb.createScalarList(this.authors.bind(this), this.authorsLength()),
|
|
5917
6297
|
this.bb.createScalarList(this.kinds.bind(this), this.kindsLength()),
|
|
@@ -5931,7 +6311,7 @@ class g {
|
|
|
5931
6311
|
t.ids = this.bb.createScalarList(this.ids.bind(this), this.idsLength()), t.authors = this.bb.createScalarList(this.authors.bind(this), this.authorsLength()), t.kinds = this.bb.createScalarList(this.kinds.bind(this), this.kindsLength()), t.tags = this.bb.createObjList(this.tags.bind(this), this.tagsLength()), t.limit = this.limit(), t.since = this.since(), t.until = this.until(), t.search = this.search(), t.relays = this.bb.createScalarList(this.relays.bind(this), this.relaysLength()), t.closeOnEose = this.closeOnEose(), t.cacheFirst = this.cacheFirst(), t.noCache = this.noCache(), t.maxRelays = this.maxRelays();
|
|
5932
6312
|
}
|
|
5933
6313
|
}
|
|
5934
|
-
class
|
|
6314
|
+
class de {
|
|
5935
6315
|
constructor(t = [], s = [], e = [], i = [], o = 0, r = 0, a = 0, h = null, d = [], b = false, l = false, u = false, y = 0) {
|
|
5936
6316
|
this.ids = t, this.authors = s, this.kinds = e, this.tags = i, this.limit = o, this.since = r, this.until = a, this.search = h, this.relays = d, this.closeOnEose = b, this.cacheFirst = l, this.noCache = u, this.maxRelays = y;
|
|
5937
6317
|
}
|
|
@@ -5986,7 +6366,7 @@ class k {
|
|
|
5986
6366
|
}
|
|
5987
6367
|
parsedType() {
|
|
5988
6368
|
const t = this.bb.__offset(this.bb_pos, 12);
|
|
5989
|
-
return t ? this.bb.readUint8(this.bb_pos + t) :
|
|
6369
|
+
return t ? this.bb.readUint8(this.bb_pos + t) : Zt.NONE;
|
|
5990
6370
|
}
|
|
5991
6371
|
parsed(t) {
|
|
5992
6372
|
const s = this.bb.__offset(this.bb_pos, 14);
|
|
@@ -6010,7 +6390,7 @@ class k {
|
|
|
6010
6390
|
}
|
|
6011
6391
|
tags(t, s) {
|
|
6012
6392
|
const e = this.bb.__offset(this.bb_pos, 20);
|
|
6013
|
-
return e ? (s || new
|
|
6393
|
+
return e ? (s || new X()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + e) + t * 4), this.bb) : null;
|
|
6014
6394
|
}
|
|
6015
6395
|
tagsLength() {
|
|
6016
6396
|
const t = this.bb.__offset(this.bb_pos, 20);
|
|
@@ -6032,7 +6412,7 @@ class k {
|
|
|
6032
6412
|
t.addFieldInt32(3, s, 0);
|
|
6033
6413
|
}
|
|
6034
6414
|
static addParsedType(t, s) {
|
|
6035
|
-
t.addFieldInt8(4, s,
|
|
6415
|
+
t.addFieldInt8(4, s, Zt.NONE);
|
|
6036
6416
|
}
|
|
6037
6417
|
static addParsed(t, s) {
|
|
6038
6418
|
t.addFieldOffset(5, s, 0);
|
|
@@ -6081,14 +6461,14 @@ class k {
|
|
|
6081
6461
|
return k.startParsedEvent(t), k.addId(t, s), k.addPubkey(t, e), k.addKind(t, i), k.addCreatedAt(t, o), k.addParsedType(t, r), k.addParsed(t, a), k.addRequests(t, h), k.addRelays(t, d), k.addTags(t, b), k.endParsedEvent(t);
|
|
6082
6462
|
}
|
|
6083
6463
|
unpack() {
|
|
6084
|
-
return new
|
|
6464
|
+
return new be(
|
|
6085
6465
|
this.id(),
|
|
6086
6466
|
this.pubkey(),
|
|
6087
6467
|
this.kind(),
|
|
6088
6468
|
this.createdAt(),
|
|
6089
6469
|
this.parsedType(),
|
|
6090
6470
|
(() => {
|
|
6091
|
-
const t =
|
|
6471
|
+
const t = ts(this.parsedType(), this.parsed.bind(this));
|
|
6092
6472
|
return t === null ? null : t.unpack();
|
|
6093
6473
|
})(),
|
|
6094
6474
|
this.bb.createObjList(this.requests.bind(this), this.requestsLength()),
|
|
@@ -6098,13 +6478,13 @@ class k {
|
|
|
6098
6478
|
}
|
|
6099
6479
|
unpackTo(t) {
|
|
6100
6480
|
t.id = this.id(), t.pubkey = this.pubkey(), t.kind = this.kind(), t.createdAt = this.createdAt(), t.parsedType = this.parsedType(), t.parsed = (() => {
|
|
6101
|
-
const s =
|
|
6481
|
+
const s = ts(this.parsedType(), this.parsed.bind(this));
|
|
6102
6482
|
return s === null ? null : s.unpack();
|
|
6103
6483
|
})(), t.requests = this.bb.createObjList(this.requests.bind(this), this.requestsLength()), t.relays = this.bb.createScalarList(this.relays.bind(this), this.relaysLength()), t.tags = this.bb.createObjList(this.tags.bind(this), this.tagsLength());
|
|
6104
6484
|
}
|
|
6105
6485
|
}
|
|
6106
|
-
class
|
|
6107
|
-
constructor(t = null, s = null, e = 0, i = 0, o =
|
|
6486
|
+
class be {
|
|
6487
|
+
constructor(t = null, s = null, e = 0, i = 0, o = Zt.NONE, r = null, a = [], h = [], d = []) {
|
|
6108
6488
|
this.id = t, this.pubkey = s, this.kind = e, this.createdAt = i, this.parsedType = o, this.parsed = r, this.requests = a, this.relays = h, this.tags = d;
|
|
6109
6489
|
}
|
|
6110
6490
|
pack(t) {
|
|
@@ -6123,7 +6503,7 @@ class ee {
|
|
|
6123
6503
|
);
|
|
6124
6504
|
}
|
|
6125
6505
|
}
|
|
6126
|
-
class
|
|
6506
|
+
class _t {
|
|
6127
6507
|
constructor() {
|
|
6128
6508
|
this.bb = null, this.bb_pos = 0;
|
|
6129
6509
|
}
|
|
@@ -6131,10 +6511,10 @@ class bt {
|
|
|
6131
6511
|
return this.bb_pos = t, this.bb = s, this;
|
|
6132
6512
|
}
|
|
6133
6513
|
static getRootAsConnectionStatus(t, s) {
|
|
6134
|
-
return (s || new
|
|
6514
|
+
return (s || new _t()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
6135
6515
|
}
|
|
6136
6516
|
static getSizePrefixedRootAsConnectionStatus(t, s) {
|
|
6137
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
6517
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new _t()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
6138
6518
|
}
|
|
6139
6519
|
relayUrl(t) {
|
|
6140
6520
|
const s = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -6165,10 +6545,10 @@ class bt {
|
|
|
6165
6545
|
return t.requiredField(s, 4), t.requiredField(s, 6), s;
|
|
6166
6546
|
}
|
|
6167
6547
|
static createConnectionStatus(t, s, e, i) {
|
|
6168
|
-
return
|
|
6548
|
+
return _t.startConnectionStatus(t), _t.addRelayUrl(t, s), _t.addStatus(t, e), _t.addMessage(t, i), _t.endConnectionStatus(t);
|
|
6169
6549
|
}
|
|
6170
6550
|
unpack() {
|
|
6171
|
-
return new
|
|
6551
|
+
return new fe(
|
|
6172
6552
|
this.relayUrl(),
|
|
6173
6553
|
this.status(),
|
|
6174
6554
|
this.message()
|
|
@@ -6178,13 +6558,13 @@ class bt {
|
|
|
6178
6558
|
t.relayUrl = this.relayUrl(), t.status = this.status(), t.message = this.message();
|
|
6179
6559
|
}
|
|
6180
6560
|
}
|
|
6181
|
-
class
|
|
6561
|
+
class fe {
|
|
6182
6562
|
constructor(t = null, s = null, e = null) {
|
|
6183
6563
|
this.relayUrl = t, this.status = s, this.message = e;
|
|
6184
6564
|
}
|
|
6185
6565
|
pack(t) {
|
|
6186
6566
|
const s = this.relayUrl !== null ? t.createString(this.relayUrl) : 0, e = this.status !== null ? t.createString(this.status) : 0, i = this.message !== null ? t.createString(this.message) : 0;
|
|
6187
|
-
return
|
|
6567
|
+
return _t.createConnectionStatus(
|
|
6188
6568
|
t,
|
|
6189
6569
|
s,
|
|
6190
6570
|
e,
|
|
@@ -6192,7 +6572,7 @@ class ie {
|
|
|
6192
6572
|
);
|
|
6193
6573
|
}
|
|
6194
6574
|
}
|
|
6195
|
-
class
|
|
6575
|
+
class pt {
|
|
6196
6576
|
constructor() {
|
|
6197
6577
|
this.bb = null, this.bb_pos = 0;
|
|
6198
6578
|
}
|
|
@@ -6200,10 +6580,10 @@ class ft {
|
|
|
6200
6580
|
return this.bb_pos = t, this.bb = s, this;
|
|
6201
6581
|
}
|
|
6202
6582
|
static getRootAsCountResponse(t, s) {
|
|
6203
|
-
return (s || new
|
|
6583
|
+
return (s || new pt()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
6204
6584
|
}
|
|
6205
6585
|
static getSizePrefixedRootAsCountResponse(t, s) {
|
|
6206
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
6586
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new pt()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
6207
6587
|
}
|
|
6208
6588
|
count() {
|
|
6209
6589
|
const t = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -6233,10 +6613,10 @@ class ft {
|
|
|
6233
6613
|
return t.endObject();
|
|
6234
6614
|
}
|
|
6235
6615
|
static createCountResponse(t, s, e, i) {
|
|
6236
|
-
return
|
|
6616
|
+
return pt.startCountResponse(t), pt.addCount(t, s), pt.addKind(t, e), pt.addYou(t, i), pt.endCountResponse(t);
|
|
6237
6617
|
}
|
|
6238
6618
|
unpack() {
|
|
6239
|
-
return new
|
|
6619
|
+
return new le(
|
|
6240
6620
|
this.count(),
|
|
6241
6621
|
this.kind(),
|
|
6242
6622
|
this.you()
|
|
@@ -6246,12 +6626,12 @@ class ft {
|
|
|
6246
6626
|
t.count = this.count(), t.kind = this.kind(), t.you = this.you();
|
|
6247
6627
|
}
|
|
6248
6628
|
}
|
|
6249
|
-
class
|
|
6629
|
+
class le {
|
|
6250
6630
|
constructor(t = 0, s = 0, e = false) {
|
|
6251
6631
|
this.count = t, this.kind = s, this.you = e;
|
|
6252
6632
|
}
|
|
6253
6633
|
pack(t) {
|
|
6254
|
-
return
|
|
6634
|
+
return pt.createCountResponse(
|
|
6255
6635
|
t,
|
|
6256
6636
|
this.count,
|
|
6257
6637
|
this.kind,
|
|
@@ -6259,7 +6639,7 @@ class ne {
|
|
|
6259
6639
|
);
|
|
6260
6640
|
}
|
|
6261
6641
|
}
|
|
6262
|
-
class
|
|
6642
|
+
class Kt {
|
|
6263
6643
|
constructor() {
|
|
6264
6644
|
this.bb = null, this.bb_pos = 0;
|
|
6265
6645
|
}
|
|
@@ -6267,10 +6647,10 @@ class wt {
|
|
|
6267
6647
|
return this.bb_pos = t, this.bb = s, this;
|
|
6268
6648
|
}
|
|
6269
6649
|
static getRootAsEoce(t, s) {
|
|
6270
|
-
return (s || new
|
|
6650
|
+
return (s || new Kt()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
6271
6651
|
}
|
|
6272
6652
|
static getSizePrefixedRootAsEoce(t, s) {
|
|
6273
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
6653
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new Kt()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
6274
6654
|
}
|
|
6275
6655
|
subscriptionId(t) {
|
|
6276
6656
|
const s = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -6287,10 +6667,10 @@ class wt {
|
|
|
6287
6667
|
return t.requiredField(s, 4), s;
|
|
6288
6668
|
}
|
|
6289
6669
|
static createEoce(t, s) {
|
|
6290
|
-
return
|
|
6670
|
+
return Kt.startEoce(t), Kt.addSubscriptionId(t, s), Kt.endEoce(t);
|
|
6291
6671
|
}
|
|
6292
6672
|
unpack() {
|
|
6293
|
-
return new
|
|
6673
|
+
return new _e(
|
|
6294
6674
|
this.subscriptionId()
|
|
6295
6675
|
);
|
|
6296
6676
|
}
|
|
@@ -6298,19 +6678,19 @@ class wt {
|
|
|
6298
6678
|
t.subscriptionId = this.subscriptionId();
|
|
6299
6679
|
}
|
|
6300
6680
|
}
|
|
6301
|
-
class
|
|
6681
|
+
class _e {
|
|
6302
6682
|
constructor(t = null) {
|
|
6303
6683
|
this.subscriptionId = t;
|
|
6304
6684
|
}
|
|
6305
6685
|
pack(t) {
|
|
6306
6686
|
const s = this.subscriptionId !== null ? t.createString(this.subscriptionId) : 0;
|
|
6307
|
-
return
|
|
6687
|
+
return Kt.createEoce(
|
|
6308
6688
|
t,
|
|
6309
6689
|
s
|
|
6310
6690
|
);
|
|
6311
6691
|
}
|
|
6312
6692
|
}
|
|
6313
|
-
class
|
|
6693
|
+
class Nt {
|
|
6314
6694
|
constructor() {
|
|
6315
6695
|
this.bb = null, this.bb_pos = 0;
|
|
6316
6696
|
}
|
|
@@ -6318,10 +6698,10 @@ class jt {
|
|
|
6318
6698
|
return this.bb_pos = t, this.bb = s, this;
|
|
6319
6699
|
}
|
|
6320
6700
|
static getRootAsPubkey(t, s) {
|
|
6321
|
-
return (s || new
|
|
6701
|
+
return (s || new Nt()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
6322
6702
|
}
|
|
6323
6703
|
static getSizePrefixedRootAsPubkey(t, s) {
|
|
6324
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
6704
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new Nt()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
6325
6705
|
}
|
|
6326
6706
|
pubkey(t) {
|
|
6327
6707
|
const s = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -6338,10 +6718,10 @@ class jt {
|
|
|
6338
6718
|
return t.requiredField(s, 4), s;
|
|
6339
6719
|
}
|
|
6340
6720
|
static createPubkey(t, s) {
|
|
6341
|
-
return
|
|
6721
|
+
return Nt.startPubkey(t), Nt.addPubkey(t, s), Nt.endPubkey(t);
|
|
6342
6722
|
}
|
|
6343
6723
|
unpack() {
|
|
6344
|
-
return new
|
|
6724
|
+
return new pe(
|
|
6345
6725
|
this.pubkey()
|
|
6346
6726
|
);
|
|
6347
6727
|
}
|
|
@@ -6349,19 +6729,19 @@ class jt {
|
|
|
6349
6729
|
t.pubkey = this.pubkey();
|
|
6350
6730
|
}
|
|
6351
6731
|
}
|
|
6352
|
-
class
|
|
6732
|
+
class pe {
|
|
6353
6733
|
constructor(t = null) {
|
|
6354
6734
|
this.pubkey = t;
|
|
6355
6735
|
}
|
|
6356
6736
|
pack(t) {
|
|
6357
6737
|
const s = this.pubkey !== null ? t.createString(this.pubkey) : 0;
|
|
6358
|
-
return
|
|
6738
|
+
return Nt.createPubkey(
|
|
6359
6739
|
t,
|
|
6360
6740
|
s
|
|
6361
6741
|
);
|
|
6362
6742
|
}
|
|
6363
6743
|
}
|
|
6364
|
-
class
|
|
6744
|
+
class qt {
|
|
6365
6745
|
constructor() {
|
|
6366
6746
|
this.bb = null, this.bb_pos = 0;
|
|
6367
6747
|
}
|
|
@@ -6369,10 +6749,10 @@ class At {
|
|
|
6369
6749
|
return this.bb_pos = t, this.bb = s, this;
|
|
6370
6750
|
}
|
|
6371
6751
|
static getRootAsRaw(t, s) {
|
|
6372
|
-
return (s || new
|
|
6752
|
+
return (s || new qt()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
6373
6753
|
}
|
|
6374
6754
|
static getSizePrefixedRootAsRaw(t, s) {
|
|
6375
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
6755
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new qt()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
6376
6756
|
}
|
|
6377
6757
|
raw(t) {
|
|
6378
6758
|
const s = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -6389,10 +6769,10 @@ class At {
|
|
|
6389
6769
|
return t.requiredField(s, 4), s;
|
|
6390
6770
|
}
|
|
6391
6771
|
static createRaw(t, s) {
|
|
6392
|
-
return
|
|
6772
|
+
return qt.startRaw(t), qt.addRaw(t, s), qt.endRaw(t);
|
|
6393
6773
|
}
|
|
6394
6774
|
unpack() {
|
|
6395
|
-
return new
|
|
6775
|
+
return new ue(
|
|
6396
6776
|
this.raw()
|
|
6397
6777
|
);
|
|
6398
6778
|
}
|
|
@@ -6400,19 +6780,19 @@ class At {
|
|
|
6400
6780
|
t.raw = this.raw();
|
|
6401
6781
|
}
|
|
6402
6782
|
}
|
|
6403
|
-
class
|
|
6783
|
+
class ue {
|
|
6404
6784
|
constructor(t = null) {
|
|
6405
6785
|
this.raw = t;
|
|
6406
6786
|
}
|
|
6407
6787
|
pack(t) {
|
|
6408
6788
|
const s = this.raw !== null ? t.createString(this.raw) : 0;
|
|
6409
|
-
return
|
|
6789
|
+
return qt.createRaw(
|
|
6410
6790
|
t,
|
|
6411
6791
|
s
|
|
6412
6792
|
);
|
|
6413
6793
|
}
|
|
6414
6794
|
}
|
|
6415
|
-
class
|
|
6795
|
+
class Ut {
|
|
6416
6796
|
constructor() {
|
|
6417
6797
|
this.bb = null, this.bb_pos = 0;
|
|
6418
6798
|
}
|
|
@@ -6420,14 +6800,14 @@ class Ct {
|
|
|
6420
6800
|
return this.bb_pos = t, this.bb = s, this;
|
|
6421
6801
|
}
|
|
6422
6802
|
static getRootAsSignedEvent(t, s) {
|
|
6423
|
-
return (s || new
|
|
6803
|
+
return (s || new Ut()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
6424
6804
|
}
|
|
6425
6805
|
static getSizePrefixedRootAsSignedEvent(t, s) {
|
|
6426
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
6806
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new Ut()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
6427
6807
|
}
|
|
6428
6808
|
event(t) {
|
|
6429
6809
|
const s = this.bb.__offset(this.bb_pos, 4);
|
|
6430
|
-
return s ? (t || new
|
|
6810
|
+
return s ? (t || new j()).__init(this.bb.__indirect(this.bb_pos + s), this.bb) : null;
|
|
6431
6811
|
}
|
|
6432
6812
|
static startSignedEvent(t) {
|
|
6433
6813
|
t.startObject(1);
|
|
@@ -6440,10 +6820,10 @@ class Ct {
|
|
|
6440
6820
|
return t.requiredField(s, 4), s;
|
|
6441
6821
|
}
|
|
6442
6822
|
static createSignedEvent(t, s) {
|
|
6443
|
-
return
|
|
6823
|
+
return Ut.startSignedEvent(t), Ut.addEvent(t, s), Ut.endSignedEvent(t);
|
|
6444
6824
|
}
|
|
6445
6825
|
unpack() {
|
|
6446
|
-
return new
|
|
6826
|
+
return new ge(
|
|
6447
6827
|
this.event() !== null ? this.event().unpack() : null
|
|
6448
6828
|
);
|
|
6449
6829
|
}
|
|
@@ -6451,19 +6831,19 @@ class Ct {
|
|
|
6451
6831
|
t.event = this.event() !== null ? this.event().unpack() : null;
|
|
6452
6832
|
}
|
|
6453
6833
|
}
|
|
6454
|
-
class
|
|
6834
|
+
class ge {
|
|
6455
6835
|
constructor(t = null) {
|
|
6456
6836
|
this.event = t;
|
|
6457
6837
|
}
|
|
6458
6838
|
pack(t) {
|
|
6459
6839
|
const s = this.event !== null ? this.event.pack(t) : 0;
|
|
6460
|
-
return
|
|
6840
|
+
return Ut.createSignedEvent(
|
|
6461
6841
|
t,
|
|
6462
6842
|
s
|
|
6463
6843
|
);
|
|
6464
6844
|
}
|
|
6465
6845
|
}
|
|
6466
|
-
class
|
|
6846
|
+
class kt {
|
|
6467
6847
|
constructor() {
|
|
6468
6848
|
this.bb = null, this.bb_pos = 0;
|
|
6469
6849
|
}
|
|
@@ -6471,10 +6851,10 @@ class gt {
|
|
|
6471
6851
|
return this.bb_pos = t, this.bb = s, this;
|
|
6472
6852
|
}
|
|
6473
6853
|
static getRootAsMintProofs(t, s) {
|
|
6474
|
-
return (s || new
|
|
6854
|
+
return (s || new kt()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
6475
6855
|
}
|
|
6476
6856
|
static getSizePrefixedRootAsMintProofs(t, s) {
|
|
6477
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
6857
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new kt()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
6478
6858
|
}
|
|
6479
6859
|
mint(t) {
|
|
6480
6860
|
const s = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -6482,7 +6862,7 @@ class gt {
|
|
|
6482
6862
|
}
|
|
6483
6863
|
proofs(t, s) {
|
|
6484
6864
|
const e = this.bb.__offset(this.bb_pos, 6);
|
|
6485
|
-
return e ? (s || new
|
|
6865
|
+
return e ? (s || new A()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + e) + t * 4), this.bb) : null;
|
|
6486
6866
|
}
|
|
6487
6867
|
proofsLength() {
|
|
6488
6868
|
const t = this.bb.__offset(this.bb_pos, 6);
|
|
@@ -6511,10 +6891,10 @@ class gt {
|
|
|
6511
6891
|
return t.requiredField(s, 4), t.requiredField(s, 6), s;
|
|
6512
6892
|
}
|
|
6513
6893
|
static createMintProofs(t, s, e) {
|
|
6514
|
-
return
|
|
6894
|
+
return kt.startMintProofs(t), kt.addMint(t, s), kt.addProofs(t, e), kt.endMintProofs(t);
|
|
6515
6895
|
}
|
|
6516
6896
|
unpack() {
|
|
6517
|
-
return new
|
|
6897
|
+
return new Oe(
|
|
6518
6898
|
this.mint(),
|
|
6519
6899
|
this.bb.createObjList(this.proofs.bind(this), this.proofsLength())
|
|
6520
6900
|
);
|
|
@@ -6523,20 +6903,20 @@ class gt {
|
|
|
6523
6903
|
t.mint = this.mint(), t.proofs = this.bb.createObjList(this.proofs.bind(this), this.proofsLength());
|
|
6524
6904
|
}
|
|
6525
6905
|
}
|
|
6526
|
-
class
|
|
6906
|
+
class Oe {
|
|
6527
6907
|
constructor(t = null, s = []) {
|
|
6528
6908
|
this.mint = t, this.proofs = s;
|
|
6529
6909
|
}
|
|
6530
6910
|
pack(t) {
|
|
6531
|
-
const s = this.mint !== null ? t.createString(this.mint) : 0, e =
|
|
6532
|
-
return
|
|
6911
|
+
const s = this.mint !== null ? t.createString(this.mint) : 0, e = kt.createProofsVector(t, t.createObjectOffsetList(this.proofs));
|
|
6912
|
+
return kt.createMintProofs(
|
|
6533
6913
|
t,
|
|
6534
6914
|
s,
|
|
6535
6915
|
e
|
|
6536
6916
|
);
|
|
6537
6917
|
}
|
|
6538
6918
|
}
|
|
6539
|
-
class
|
|
6919
|
+
class Rt {
|
|
6540
6920
|
constructor() {
|
|
6541
6921
|
this.bb = null, this.bb_pos = 0;
|
|
6542
6922
|
}
|
|
@@ -6544,14 +6924,14 @@ class vt {
|
|
|
6544
6924
|
return this.bb_pos = t, this.bb = s, this;
|
|
6545
6925
|
}
|
|
6546
6926
|
static getRootAsValidProofs(t, s) {
|
|
6547
|
-
return (s || new
|
|
6927
|
+
return (s || new Rt()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
6548
6928
|
}
|
|
6549
6929
|
static getSizePrefixedRootAsValidProofs(t, s) {
|
|
6550
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
6930
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new Rt()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
6551
6931
|
}
|
|
6552
6932
|
proofs(t, s) {
|
|
6553
6933
|
const e = this.bb.__offset(this.bb_pos, 4);
|
|
6554
|
-
return e ? (s || new
|
|
6934
|
+
return e ? (s || new kt()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + e) + t * 4), this.bb) : null;
|
|
6555
6935
|
}
|
|
6556
6936
|
proofsLength() {
|
|
6557
6937
|
const t = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -6577,10 +6957,10 @@ class vt {
|
|
|
6577
6957
|
return t.requiredField(s, 4), s;
|
|
6578
6958
|
}
|
|
6579
6959
|
static createValidProofs(t, s) {
|
|
6580
|
-
return
|
|
6960
|
+
return Rt.startValidProofs(t), Rt.addProofs(t, s), Rt.endValidProofs(t);
|
|
6581
6961
|
}
|
|
6582
6962
|
unpack() {
|
|
6583
|
-
return new
|
|
6963
|
+
return new ye(
|
|
6584
6964
|
this.bb.createObjList(this.proofs.bind(this), this.proofsLength())
|
|
6585
6965
|
);
|
|
6586
6966
|
}
|
|
@@ -6588,49 +6968,49 @@ class vt {
|
|
|
6588
6968
|
t.proofs = this.bb.createObjList(this.proofs.bind(this), this.proofsLength());
|
|
6589
6969
|
}
|
|
6590
6970
|
}
|
|
6591
|
-
class
|
|
6971
|
+
class ye {
|
|
6592
6972
|
constructor(t = []) {
|
|
6593
6973
|
this.proofs = t;
|
|
6594
6974
|
}
|
|
6595
6975
|
pack(t) {
|
|
6596
|
-
const s =
|
|
6597
|
-
return
|
|
6976
|
+
const s = Rt.createProofsVector(t, t.createObjectOffsetList(this.proofs));
|
|
6977
|
+
return Rt.createValidProofs(
|
|
6598
6978
|
t,
|
|
6599
6979
|
s
|
|
6600
6980
|
);
|
|
6601
6981
|
}
|
|
6602
6982
|
}
|
|
6603
|
-
var
|
|
6604
|
-
function
|
|
6605
|
-
switch (
|
|
6983
|
+
var Xt = /* @__PURE__ */ ((n) => (n[n.NONE = 0] = "NONE", n[n.ParsedEvent = 1] = "ParsedEvent", n[n.NostrEvent = 2] = "NostrEvent", n[n.ConnectionStatus = 3] = "ConnectionStatus", n[n.CountResponse = 4] = "CountResponse", n[n.Eoce = 5] = "Eoce", n[n.BufferFull = 6] = "BufferFull", n[n.ValidProofs = 7] = "ValidProofs", n[n.SignedEvent = 8] = "SignedEvent", n[n.Pubkey = 9] = "Pubkey", n[n.Raw = 10] = "Raw", n))(Xt || {});
|
|
6984
|
+
function ss(n, t) {
|
|
6985
|
+
switch (Xt[n]) {
|
|
6606
6986
|
case "NONE":
|
|
6607
6987
|
return null;
|
|
6608
6988
|
case "ParsedEvent":
|
|
6609
6989
|
return t(new k());
|
|
6610
6990
|
case "NostrEvent":
|
|
6611
|
-
return t(new
|
|
6991
|
+
return t(new j());
|
|
6612
6992
|
case "ConnectionStatus":
|
|
6613
|
-
return t(new
|
|
6993
|
+
return t(new _t());
|
|
6614
6994
|
case "CountResponse":
|
|
6615
|
-
return t(new
|
|
6995
|
+
return t(new pt());
|
|
6616
6996
|
case "Eoce":
|
|
6617
|
-
return t(new
|
|
6997
|
+
return t(new Kt());
|
|
6618
6998
|
case "BufferFull":
|
|
6619
|
-
return t(new
|
|
6999
|
+
return t(new Tt());
|
|
6620
7000
|
case "ValidProofs":
|
|
6621
|
-
return t(new
|
|
7001
|
+
return t(new Rt());
|
|
6622
7002
|
case "SignedEvent":
|
|
6623
|
-
return t(new
|
|
7003
|
+
return t(new Ut());
|
|
6624
7004
|
case "Pubkey":
|
|
6625
|
-
return t(new
|
|
7005
|
+
return t(new Nt());
|
|
6626
7006
|
case "Raw":
|
|
6627
|
-
return t(new
|
|
7007
|
+
return t(new qt());
|
|
6628
7008
|
default:
|
|
6629
7009
|
return null;
|
|
6630
7010
|
}
|
|
6631
7011
|
}
|
|
6632
|
-
var
|
|
6633
|
-
class
|
|
7012
|
+
var Dt = /* @__PURE__ */ ((n) => (n[n.ParsedNostrEvent = 0] = "ParsedNostrEvent", n[n.ConnectionStatus = 1] = "ConnectionStatus", n[n.CountResponse = 2] = "CountResponse", n[n.Eoce = 3] = "Eoce", n[n.BufferFull = 4] = "BufferFull", n[n.ValidProofs = 5] = "ValidProofs", n[n.SignedEvent = 6] = "SignedEvent", n[n.Pubkey = 7] = "Pubkey", n[n.Raw = 8] = "Raw", n[n.NostrEvent = 9] = "NostrEvent", n))(Dt || {});
|
|
7013
|
+
class st {
|
|
6634
7014
|
constructor() {
|
|
6635
7015
|
this.bb = null, this.bb_pos = 0;
|
|
6636
7016
|
}
|
|
@@ -6638,10 +7018,10 @@ class $ {
|
|
|
6638
7018
|
return this.bb_pos = t, this.bb = s, this;
|
|
6639
7019
|
}
|
|
6640
7020
|
static getRootAsWorkerMessage(t, s) {
|
|
6641
|
-
return (s || new
|
|
7021
|
+
return (s || new st()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
6642
7022
|
}
|
|
6643
7023
|
static getSizePrefixedRootAsWorkerMessage(t, s) {
|
|
6644
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
7024
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new st()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
6645
7025
|
}
|
|
6646
7026
|
subId(t) {
|
|
6647
7027
|
const s = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -6653,11 +7033,11 @@ class $ {
|
|
|
6653
7033
|
}
|
|
6654
7034
|
type() {
|
|
6655
7035
|
const t = this.bb.__offset(this.bb_pos, 8);
|
|
6656
|
-
return t ? this.bb.readUint32(this.bb_pos + t) :
|
|
7036
|
+
return t ? this.bb.readUint32(this.bb_pos + t) : Dt.ParsedNostrEvent;
|
|
6657
7037
|
}
|
|
6658
7038
|
contentType() {
|
|
6659
7039
|
const t = this.bb.__offset(this.bb_pos, 10);
|
|
6660
|
-
return t ? this.bb.readUint8(this.bb_pos + t) :
|
|
7040
|
+
return t ? this.bb.readUint8(this.bb_pos + t) : Xt.NONE;
|
|
6661
7041
|
}
|
|
6662
7042
|
content(t) {
|
|
6663
7043
|
const s = this.bb.__offset(this.bb_pos, 12);
|
|
@@ -6673,10 +7053,10 @@ class $ {
|
|
|
6673
7053
|
t.addFieldOffset(1, s, 0);
|
|
6674
7054
|
}
|
|
6675
7055
|
static addType(t, s) {
|
|
6676
|
-
t.addFieldInt32(2, s,
|
|
7056
|
+
t.addFieldInt32(2, s, Dt.ParsedNostrEvent);
|
|
6677
7057
|
}
|
|
6678
7058
|
static addContentType(t, s) {
|
|
6679
|
-
t.addFieldInt8(3, s,
|
|
7059
|
+
t.addFieldInt8(3, s, Xt.NONE);
|
|
6680
7060
|
}
|
|
6681
7061
|
static addContent(t, s) {
|
|
6682
7062
|
t.addFieldOffset(4, s, 0);
|
|
@@ -6691,34 +7071,34 @@ class $ {
|
|
|
6691
7071
|
t.finish(s, void 0, true);
|
|
6692
7072
|
}
|
|
6693
7073
|
static createWorkerMessage(t, s, e, i, o, r) {
|
|
6694
|
-
return
|
|
7074
|
+
return st.startWorkerMessage(t), st.addSubId(t, s), st.addUrl(t, e), st.addType(t, i), st.addContentType(t, o), st.addContent(t, r), st.endWorkerMessage(t);
|
|
6695
7075
|
}
|
|
6696
7076
|
unpack() {
|
|
6697
|
-
return new
|
|
7077
|
+
return new ke(
|
|
6698
7078
|
this.subId(),
|
|
6699
7079
|
this.url(),
|
|
6700
7080
|
this.type(),
|
|
6701
7081
|
this.contentType(),
|
|
6702
7082
|
(() => {
|
|
6703
|
-
const t =
|
|
7083
|
+
const t = ss(this.contentType(), this.content.bind(this));
|
|
6704
7084
|
return t === null ? null : t.unpack();
|
|
6705
7085
|
})()
|
|
6706
7086
|
);
|
|
6707
7087
|
}
|
|
6708
7088
|
unpackTo(t) {
|
|
6709
7089
|
t.subId = this.subId(), t.url = this.url(), t.type = this.type(), t.contentType = this.contentType(), t.content = (() => {
|
|
6710
|
-
const s =
|
|
7090
|
+
const s = ss(this.contentType(), this.content.bind(this));
|
|
6711
7091
|
return s === null ? null : s.unpack();
|
|
6712
7092
|
})();
|
|
6713
7093
|
}
|
|
6714
7094
|
}
|
|
6715
|
-
class
|
|
6716
|
-
constructor(t = null, s = null, e =
|
|
7095
|
+
class ke {
|
|
7096
|
+
constructor(t = null, s = null, e = Dt.ParsedNostrEvent, i = Xt.NONE, o = null) {
|
|
6717
7097
|
this.subId = t, this.url = s, this.type = e, this.contentType = i, this.content = o;
|
|
6718
7098
|
}
|
|
6719
7099
|
pack(t) {
|
|
6720
7100
|
const s = this.subId !== null ? t.createString(this.subId) : 0, e = this.url !== null ? t.createString(this.url) : 0, i = t.createObjectOffset(this.content);
|
|
6721
|
-
return
|
|
7101
|
+
return st.createWorkerMessage(
|
|
6722
7102
|
t,
|
|
6723
7103
|
s,
|
|
6724
7104
|
e,
|
|
@@ -6729,146 +7109,155 @@ class be {
|
|
|
6729
7109
|
}
|
|
6730
7110
|
}
|
|
6731
7111
|
export {
|
|
6732
|
-
|
|
6733
|
-
|
|
6734
|
-
|
|
6735
|
-
|
|
6736
|
-
|
|
6737
|
-
|
|
6738
|
-
|
|
6739
|
-
|
|
6740
|
-
|
|
6741
|
-
|
|
6742
|
-
|
|
7112
|
+
gs as $,
|
|
7113
|
+
x as A,
|
|
7114
|
+
Tt as B,
|
|
7115
|
+
_t as C,
|
|
7116
|
+
et as D,
|
|
7117
|
+
Kt as E,
|
|
7118
|
+
dt as F,
|
|
7119
|
+
R as G,
|
|
7120
|
+
jt as H,
|
|
7121
|
+
rt as I,
|
|
7122
|
+
Xt as J,
|
|
6743
7123
|
p as K,
|
|
6744
7124
|
O as L,
|
|
6745
|
-
|
|
6746
|
-
|
|
6747
|
-
|
|
7125
|
+
Dt as M,
|
|
7126
|
+
j as N,
|
|
7127
|
+
ms as O,
|
|
6748
7128
|
k as P,
|
|
6749
|
-
|
|
6750
|
-
|
|
6751
|
-
|
|
6752
|
-
|
|
6753
|
-
|
|
6754
|
-
|
|
6755
|
-
|
|
6756
|
-
|
|
6757
|
-
|
|
6758
|
-
|
|
6759
|
-
|
|
6760
|
-
|
|
6761
|
-
|
|
6762
|
-
|
|
6763
|
-
|
|
6764
|
-
|
|
6765
|
-
|
|
6766
|
-
|
|
6767
|
-
|
|
6768
|
-
|
|
6769
|
-
|
|
6770
|
-
|
|
6771
|
-
|
|
7129
|
+
ys as Q,
|
|
7130
|
+
qt as R,
|
|
7131
|
+
X as S,
|
|
7132
|
+
us as T,
|
|
7133
|
+
Os as U,
|
|
7134
|
+
Rt as V,
|
|
7135
|
+
st as W,
|
|
7136
|
+
ks as X,
|
|
7137
|
+
ls as Y,
|
|
7138
|
+
fs as Z,
|
|
7139
|
+
ps as _,
|
|
7140
|
+
pt as a,
|
|
7141
|
+
Et as a$,
|
|
7142
|
+
Is as a0,
|
|
7143
|
+
g as a1,
|
|
7144
|
+
de as a2,
|
|
7145
|
+
ns as a3,
|
|
7146
|
+
is as a4,
|
|
7147
|
+
fe as a5,
|
|
7148
|
+
ht as a6,
|
|
7149
|
+
Hs as a7,
|
|
7150
|
+
C as a8,
|
|
7151
|
+
z as a9,
|
|
6772
7152
|
As as aA,
|
|
6773
7153
|
Cs as aB,
|
|
6774
|
-
|
|
6775
|
-
|
|
6776
|
-
|
|
6777
|
-
|
|
6778
|
-
|
|
6779
|
-
|
|
6780
|
-
|
|
6781
|
-
|
|
6782
|
-
|
|
6783
|
-
|
|
6784
|
-
|
|
6785
|
-
|
|
6786
|
-
|
|
6787
|
-
|
|
6788
|
-
|
|
6789
|
-
|
|
6790
|
-
|
|
6791
|
-
|
|
6792
|
-
|
|
6793
|
-
|
|
6794
|
-
|
|
6795
|
-
|
|
6796
|
-
|
|
6797
|
-
|
|
6798
|
-
|
|
7154
|
+
Ns as aC,
|
|
7155
|
+
Us as aD,
|
|
7156
|
+
xs as aE,
|
|
7157
|
+
Bs as aF,
|
|
7158
|
+
zs as aG,
|
|
7159
|
+
Zs as aH,
|
|
7160
|
+
Xs as aI,
|
|
7161
|
+
Ys as aJ,
|
|
7162
|
+
$s as aK,
|
|
7163
|
+
te as aL,
|
|
7164
|
+
se as aM,
|
|
7165
|
+
ie as aN,
|
|
7166
|
+
re as aO,
|
|
7167
|
+
it as aP,
|
|
7168
|
+
Vs as aQ,
|
|
7169
|
+
Ft as aR,
|
|
7170
|
+
Es as aS,
|
|
7171
|
+
St as aT,
|
|
7172
|
+
Rs as aU,
|
|
7173
|
+
xt as aV,
|
|
7174
|
+
ut as aW,
|
|
7175
|
+
cs as aX,
|
|
7176
|
+
kt as aY,
|
|
7177
|
+
Oe as aZ,
|
|
7178
|
+
os as a_,
|
|
6799
7179
|
ne as aa,
|
|
6800
|
-
|
|
6801
|
-
|
|
6802
|
-
|
|
6803
|
-
|
|
6804
|
-
|
|
6805
|
-
|
|
6806
|
-
|
|
6807
|
-
|
|
6808
|
-
|
|
6809
|
-
|
|
6810
|
-
|
|
6811
|
-
|
|
6812
|
-
|
|
6813
|
-
|
|
6814
|
-
|
|
6815
|
-
|
|
6816
|
-
|
|
6817
|
-
|
|
6818
|
-
|
|
6819
|
-
|
|
6820
|
-
|
|
6821
|
-
|
|
6822
|
-
|
|
7180
|
+
le as ab,
|
|
7181
|
+
ft as ac,
|
|
7182
|
+
Gs as ad,
|
|
7183
|
+
gt as ae,
|
|
7184
|
+
js as af,
|
|
7185
|
+
_s as ag,
|
|
7186
|
+
_e as ah,
|
|
7187
|
+
N as ai,
|
|
7188
|
+
Ss as aj,
|
|
7189
|
+
Ot as ak,
|
|
7190
|
+
Ds as al,
|
|
7191
|
+
nt as am,
|
|
7192
|
+
Js as an,
|
|
7193
|
+
w as ao,
|
|
7194
|
+
Ks as ap,
|
|
7195
|
+
rs as aq,
|
|
7196
|
+
hs as ar,
|
|
7197
|
+
ds as as,
|
|
7198
|
+
G as at,
|
|
7199
|
+
bs as au,
|
|
7200
|
+
S as av,
|
|
7201
|
+
Fs as aw,
|
|
7202
|
+
vs as ax,
|
|
6823
7203
|
Ts as ay,
|
|
6824
|
-
|
|
6825
|
-
|
|
6826
|
-
|
|
6827
|
-
|
|
6828
|
-
|
|
6829
|
-
|
|
6830
|
-
|
|
6831
|
-
|
|
6832
|
-
|
|
7204
|
+
ws as az,
|
|
7205
|
+
Zt as b,
|
|
7206
|
+
Ms as b0,
|
|
7207
|
+
be as b1,
|
|
7208
|
+
Lt as b2,
|
|
7209
|
+
Ls as b3,
|
|
7210
|
+
Gt as b4,
|
|
7211
|
+
ce as b5,
|
|
7212
|
+
ot as b6,
|
|
6833
7213
|
ae as b7,
|
|
6834
|
-
|
|
6835
|
-
|
|
6836
|
-
|
|
6837
|
-
|
|
6838
|
-
|
|
6839
|
-
|
|
6840
|
-
|
|
6841
|
-
|
|
6842
|
-
|
|
6843
|
-
|
|
6844
|
-
|
|
6845
|
-
|
|
6846
|
-
|
|
6847
|
-
|
|
6848
|
-
|
|
6849
|
-
|
|
6850
|
-
|
|
6851
|
-
|
|
6852
|
-
|
|
6853
|
-
|
|
6854
|
-
|
|
6855
|
-
|
|
7214
|
+
lt as b8,
|
|
7215
|
+
he as b9,
|
|
7216
|
+
Z as ba,
|
|
7217
|
+
Ps as bb,
|
|
7218
|
+
A as bc,
|
|
7219
|
+
Qs as bd,
|
|
7220
|
+
Nt as be,
|
|
7221
|
+
pe as bf,
|
|
7222
|
+
ue as bg,
|
|
7223
|
+
Ht as bh,
|
|
7224
|
+
ct as bi,
|
|
7225
|
+
as as bj,
|
|
7226
|
+
Ut as bk,
|
|
7227
|
+
ge as bl,
|
|
7228
|
+
yt as bm,
|
|
7229
|
+
oe as bn,
|
|
7230
|
+
ye as bo,
|
|
7231
|
+
E as bp,
|
|
7232
|
+
qs as bq,
|
|
7233
|
+
zt as br,
|
|
7234
|
+
Ct as bs,
|
|
7235
|
+
Ws as bt,
|
|
7236
|
+
ke as bu,
|
|
7237
|
+
H as bv,
|
|
7238
|
+
ee as bw,
|
|
7239
|
+
T as c,
|
|
7240
|
+
Vt as d,
|
|
7241
|
+
W as e,
|
|
7242
|
+
At as f,
|
|
7243
|
+
Q as g,
|
|
7244
|
+
M as h,
|
|
6856
7245
|
P as i,
|
|
6857
7246
|
L as j,
|
|
6858
7247
|
_ as k,
|
|
6859
|
-
|
|
6860
|
-
|
|
6861
|
-
|
|
6862
|
-
|
|
6863
|
-
|
|
6864
|
-
|
|
7248
|
+
q as l,
|
|
7249
|
+
Pt as m,
|
|
7250
|
+
Y as n,
|
|
7251
|
+
D as o,
|
|
7252
|
+
bt as p,
|
|
7253
|
+
B as q,
|
|
6865
7254
|
v as r,
|
|
6866
|
-
|
|
7255
|
+
m as s,
|
|
6867
7256
|
F as t,
|
|
6868
7257
|
f as u,
|
|
6869
|
-
|
|
6870
|
-
|
|
6871
|
-
|
|
6872
|
-
|
|
6873
|
-
|
|
7258
|
+
Bt as v,
|
|
7259
|
+
mt as w,
|
|
7260
|
+
wt as x,
|
|
7261
|
+
at as y,
|
|
7262
|
+
vt as z
|
|
6874
7263
|
};
|