@ghostlytools/sdk 1.10.1 → 1.10.3
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/core.js +2 -2
- package/dist/{fakes-83bCOBaf.js → fakes-Dbw01Dk9.js} +2 -2
- package/dist/{fakes-83bCOBaf.js.map → fakes-Dbw01Dk9.js.map} +1 -1
- package/dist/fakes.js +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/{keet-identity-key-DyvuvnRO.js → keet-identity-key-BT3p-YEj.js} +2 -2
- package/dist/{keet-identity-key-DyvuvnRO.js.map → keet-identity-key-BT3p-YEj.js.map} +1 -1
- package/dist/{src-CEgQHzFr.js → src-CCGK1Q_h.js} +690 -135
- package/dist/src-CCGK1Q_h.js.map +1 -0
- package/dist/testing.js +3 -3
- package/dist/types/browser/src/proofs/contract.d.ts +18 -2
- package/dist/types/core/src/callSignal.d.ts +6 -0
- package/dist/types/core/src/chatFiles.d.ts +6 -0
- package/dist/types/core/src/datalink.d.ts +37 -0
- package/dist/types/core/src/dhtDelivery.d.ts +5 -0
- package/dist/types/core/src/ghostlink.d.ts +16 -1
- package/dist/types/core/src/groupCommunity.d.ts +3 -1
- package/dist/types/core/src/groupSession.d.ts +33 -2
- package/dist/types/core/src/identityProofs.d.ts +10 -0
- package/dist/types/core/src/link.d.ts +27 -2
- package/dist/types/core/src/relay.d.ts +54 -7
- package/dist/types/core/src/transport.d.ts +5 -2
- package/dist/types/core/src/videoMetadata.d.ts +3 -1
- package/dist/{verify-BWOWTWmV.js → verify-DXMSqZzR.js} +2 -2
- package/dist/{verify-BWOWTWmV.js.map → verify-DXMSqZzR.js.map} +1 -1
- package/package.json +1 -1
- package/dist/src-CEgQHzFr.js.map +0 -1
|
@@ -1021,6 +1021,22 @@ var isChatWatch = (who) => who.watch && isChat(who);
|
|
|
1021
1021
|
* So may its reads of a member that was live when this app last ran, until one is answered (`resume`): its offer waits on them.
|
|
1022
1022
|
*/
|
|
1023
1023
|
var isGroupSignal = (who) => who.group && !who.background && (who.signal || isWatch(who) || who.watchWrite || who.resume);
|
|
1024
|
+
/** A group edge's read for the signal it waits for, the answer to its offer (`signal`): first on the floor (`ANSWER_READ_FIRST_MS`). */
|
|
1025
|
+
var isGroupAnswerRead = (who) => isGroupSignal(who) && who.signal && !who.write;
|
|
1026
|
+
/** Such a read, as the budget weighs it (`ANSWER_READ_FIRST_MS`). */
|
|
1027
|
+
var ANSWER_READER = {
|
|
1028
|
+
background: false,
|
|
1029
|
+
group: true,
|
|
1030
|
+
urgent: true,
|
|
1031
|
+
door: false,
|
|
1032
|
+
write: false,
|
|
1033
|
+
signal: true,
|
|
1034
|
+
watch: false,
|
|
1035
|
+
watchWrite: false,
|
|
1036
|
+
departed: false,
|
|
1037
|
+
resume: false,
|
|
1038
|
+
back: false
|
|
1039
|
+
};
|
|
1024
1040
|
/** A community member's way back to its group while it has no edge up: it may use its own allowance (`WAY_BACK_SHARE`). */
|
|
1025
1041
|
var isWayBack = (who) => who.back && who.group && !who.background;
|
|
1026
1042
|
/** Watch reads that the same other limits hold take turns together: urgent or not, background or not; the chats' on their own. */
|
|
@@ -1037,6 +1053,13 @@ var firstWriter = (who) => !who.write || who.background ? null : who.group ? "gr
|
|
|
1037
1053
|
/** A key's turn neither asked nor read in the last minute: it is dropped, and asking again starts a new one (`TURNS_PRUNE_MS`). */
|
|
1038
1054
|
var staleTurn = (turn, now) => now - Math.max(turn.askedAt, turn.servedAt) >= 6e4;
|
|
1039
1055
|
/**
|
|
1056
|
+
* The times of `list` (oldest first) within the last `ms`. One dated after now, the device clock gone back since (an NTP
|
|
1057
|
+
* step, a clock that ran ahead fixed by hand), counts as of now: as just spent, not for as long as the clock went back.
|
|
1058
|
+
* Counted as they were, an hour's step back held every background read for 59 minutes, and a daemon with 50 contacts
|
|
1059
|
+
* away read 4 of them in the next 15 (bug hunt, 2026-11-07).
|
|
1060
|
+
*/
|
|
1061
|
+
var within = (list, now, ms) => list.map((at) => Math.min(at, now)).filter((at) => now - at < ms);
|
|
1062
|
+
/**
|
|
1040
1063
|
* Keys and when each was last set, those of the last minute: how many and the latest, without walking them all (the
|
|
1041
1064
|
* chats that need a relay, `chatNeeds`). Each is set at the time it is set, so the sets come oldest first; a clock
|
|
1042
1065
|
* gone back makes the later ones as of now.
|
|
@@ -1225,15 +1248,45 @@ var GROUP_SIGNALING_ALLOWANCE_SHARE = 2 / 15;
|
|
|
1225
1248
|
* in the first minute on the default relays: a reading of each beacon, and a read and a write in a hub's lobby (a write
|
|
1226
1249
|
* goes to every relay). A member asks it only while it has no edge up in that community.
|
|
1227
1250
|
*
|
|
1228
|
-
* At worst a relay then sees, in one minute, its limit, the chats' allowance past it, the edges'
|
|
1229
|
-
* relay of 30 (pkarr.pubky.org allows 50 an address,
|
|
1230
|
-
* and 7 on a relay of 5 (relay.pkarr.org and
|
|
1231
|
-
* 429s (docs/TRANSPORTS.md, "The default list").
|
|
1251
|
+
* At worst a relay then sees, in one minute, its limit, the chats' allowance past it, the edges', this one and the edges'
|
|
1252
|
+
* answer reads' (`ANSWER_READ_ALLOWANCE`): 49 on a relay of 30 (pkarr.pubky.org allows 50 an address,
|
|
1253
|
+
* `x-ratelimit-limit`), 95 on pkarr.pubky.app's 60 (it allows 1000) and 7 on a relay of 5 (relay.pkarr.org and
|
|
1254
|
+
* pkarr.miguelmedeiros.dev allow 10). A share raised past those limits gets 429s (docs/TRANSPORTS.md, "The default list").
|
|
1232
1255
|
*/
|
|
1233
1256
|
var WAY_BACK_SHARE = 1 / 5;
|
|
1234
1257
|
/** Past the limit, a group's reads within its allowance go no more often than this on a relay. */
|
|
1235
1258
|
var GROUP_OVER_PACE_MS = 5e3;
|
|
1236
1259
|
/**
|
|
1260
|
+
* A group edge's read for the answer to its offer (`signal`) that the budget refused on a relay goes first there among
|
|
1261
|
+
* the groups' signaling (`GROUP_SIGNALING_ALLOWANCE_SHARE`): the edges' offers and answers, their reads back after a
|
|
1262
|
+
* restart (`resume`) and their watch reads wait this long after the refusal, while it is not read, for what it could
|
|
1263
|
+
* take then. It waits for no group write the budget refused (`WRITE_FIRST_MS`), nor for the turn of a group's key that
|
|
1264
|
+
* is not read for an answer (`GROUP_RATION_WINDOW_MS`), and the groups' other urgent reads do not spend its burst
|
|
1265
|
+
* (`GROUP_BURST_MS`): it has one of its own. Of everything on the floor it is the closest to a member back: the
|
|
1266
|
+
* offer is out, and the member has often answered already. A daemon back after a restart had its edges' offers and
|
|
1267
|
+
* reads back spend the floor in its first seconds, and read the answers to offers it had out at 0.4 s only once the
|
|
1268
|
+
* minute freed: 66 to 97 s on, and an answer read that late often found the member's attempt over (agents#971, CLI lab,
|
|
1269
|
+
* 2026-11-03).
|
|
1270
|
+
*/
|
|
1271
|
+
var ANSWER_READ_FIRST_MS = 5e3;
|
|
1272
|
+
/**
|
|
1273
|
+
* A group edge's read for the answer to its offer (`signal`) that everything else holds back (the limit, the groups'
|
|
1274
|
+
* allowance, the chats' reserve, a write the budget refused) goes within an allowance of its own on that relay: this
|
|
1275
|
+
* many in a minute, never more than the groups' allowance there (`GROUP_SIGNALING_ALLOWANCE_SHARE`: none on a relay of
|
|
1276
|
+
* 5), one at a time (`ANSWER_READ_SPACING_MS`). What it takes counts there alone, as a way back's (`WAY_BACK_SHARE`),
|
|
1277
|
+
* so it shortens no one else's minute. Going first on the floor (`ANSWER_READ_FIRST_MS`) was not enough: a daemon back
|
|
1278
|
+
* after a restart had its edges' reads back and offers spend its whole minute on each relay 6 s on, before any member
|
|
1279
|
+
* had answered (7 to 19 s on), and read the answers when the minute freed: from an answer going out to the hub
|
|
1280
|
+
* reading it, 60 to 66 s at the median in each of four runs. With this allowance, 2 to 60 s (14 s over the four runs,
|
|
1281
|
+
* against 63 s), and all 18 members were back 77 to 108 s on, against 102 to 153 s (agents#971, CLI lab, 2026-11-05).
|
|
1282
|
+
*
|
|
1283
|
+
* At worst it adds 3 to a relay's minute: 49 on a relay of 30 (pkarr.pubky.org allows 50), 95 on pkarr.pubky.app's 60,
|
|
1284
|
+
* and nothing on a relay of 5.
|
|
1285
|
+
*/
|
|
1286
|
+
var ANSWER_READ_ALLOWANCE = 3;
|
|
1287
|
+
/** Within that allowance, an edge's read for its answer goes no more often than this on a relay (`ANSWER_READ_ALLOWANCE`). */
|
|
1288
|
+
var ANSWER_READ_SPACING_MS = 2e4;
|
|
1289
|
+
/**
|
|
1237
1290
|
* Groups' urgent reads (their edges looking fast for a signal) take at most a quarter of a relay's minute in any this
|
|
1238
1291
|
* long, so that they never spend it in a burst. An app back after a restart has every edge offering and looking fast at
|
|
1239
1292
|
* once; the members at the other end answer only once they notice its old sessions went (about 20 s with
|
|
@@ -1471,8 +1524,9 @@ var RelayTransport = class {
|
|
|
1471
1524
|
spentBackground = /* @__PURE__ */ new Map();
|
|
1472
1525
|
/** Background writes on each relay in the last minute (`BACKGROUND_WRITES_SHARE`). */
|
|
1473
1526
|
spentBackgroundWrites = /* @__PURE__ */ new Map();
|
|
1474
|
-
/** Groups' urgent reads on each relay in the last `GROUP_BURST_MS
|
|
1527
|
+
/** Groups' urgent reads on each relay in the last `GROUP_BURST_MS`: edges' reads for an answer apart (`ANSWER_READ_FIRST_MS`). */
|
|
1475
1528
|
spentGroupUrgent = /* @__PURE__ */ new Map();
|
|
1529
|
+
spentAnswerUrgent = /* @__PURE__ */ new Map();
|
|
1476
1530
|
/** Watch reads on each relay in the last `GROUP_RATION_WINDOW_MS` (`WATCH_SHARE`). */
|
|
1477
1531
|
spentWatch = /* @__PURE__ */ new Map();
|
|
1478
1532
|
/** 1:1 chats' watch reads on each relay in the last `GROUP_RATION_WINDOW_MS` (`CHAT_WATCH_SHARE`). */
|
|
@@ -1483,6 +1537,8 @@ var RelayTransport = class {
|
|
|
1483
1537
|
spentGroupSignal = /* @__PURE__ */ new Map();
|
|
1484
1538
|
/** Community members' ways back on each relay in the last minute: their allowance (`WAY_BACK_SHARE`). */
|
|
1485
1539
|
spentWayBack = /* @__PURE__ */ new Map();
|
|
1540
|
+
/** Edges' reads for an answer that only their own allowance let through, on each relay in the last minute (`ANSWER_READ_ALLOWANCE`). */
|
|
1541
|
+
spentAnswerAllowance = /* @__PURE__ */ new Map();
|
|
1486
1542
|
/** Per contact, its departed reads past the limit in the last minute, every relay together (`DEPARTED_READS`). */
|
|
1487
1543
|
departedOver = /* @__PURE__ */ new Map();
|
|
1488
1544
|
/**
|
|
@@ -1501,6 +1557,8 @@ var RelayTransport = class {
|
|
|
1501
1557
|
groupsFullAt = /* @__PURE__ */ new Map();
|
|
1502
1558
|
/** When a link's write was last refused on each relay (`chat <relay>`, `group <relay>`), while it waits for the budget. */
|
|
1503
1559
|
writeWaiting = /* @__PURE__ */ new Map();
|
|
1560
|
+
/** Per relay, the keys whose edges' reads for an answer it last refused, and when, until one is read (`ANSWER_READ_FIRST_MS`). */
|
|
1561
|
+
answerReadWaiting = /* @__PURE__ */ new Map();
|
|
1504
1562
|
/**
|
|
1505
1563
|
* Per key a 1:1 chat asks for: when it last read urgently (for the next minute, groups leave it `CHAT_RESERVE` on
|
|
1506
1564
|
* every relay) and when the budget last refused it on each relay (the same, on that relay). A read of the key at a
|
|
@@ -1916,8 +1974,8 @@ var RelayTransport = class {
|
|
|
1916
1974
|
async resolve(pubKeyZ32, options = {}, keptOnFailure = true) {
|
|
1917
1975
|
if (this.relays.length === 0) throw new Error("No Pkarr relays configured");
|
|
1918
1976
|
if (options.background && !options.urgent && !options.group) this.chatNeedLapsed(pubKeyZ32);
|
|
1919
|
-
const readAt = this.readAt.get(pubKeyZ32);
|
|
1920
|
-
if (
|
|
1977
|
+
const readAt = this.readAt.get(pubKeyZ32), age = readAt === void 0 ? Infinity : Date.now() - readAt;
|
|
1978
|
+
if (age >= 0 && age < this.freshReadMs) return this.newest.get(pubKeyZ32) ?? null;
|
|
1921
1979
|
const order = this.readOrder(pubKeyZ32);
|
|
1922
1980
|
const probe = this.breaker.allDownProbe(this.relays);
|
|
1923
1981
|
let budgetWait = Infinity, down = false;
|
|
@@ -2125,7 +2183,7 @@ var RelayTransport = class {
|
|
|
2125
2183
|
*/
|
|
2126
2184
|
hedgeRoom(relay) {
|
|
2127
2185
|
const now = Date.now();
|
|
2128
|
-
return (this.spent.get(relay) ?? []
|
|
2186
|
+
return within(this.spent.get(relay) ?? [], now, 6e4).length < this.limitOf(relay) - this.reserveOf(relay);
|
|
2129
2187
|
}
|
|
2130
2188
|
readAnsweredAt(pubKeyZ32) {
|
|
2131
2189
|
return this.readAt.get(pubKeyZ32);
|
|
@@ -2279,9 +2337,14 @@ var RelayTransport = class {
|
|
|
2279
2337
|
if (isGroupRead(who) && (this.spent.get(relay)?.length ?? 0) >= this.limitOf(relay)) this.groupsFullAt.set(relay, now);
|
|
2280
2338
|
if (isChat(who)) this.chatNeed(key, now, relay);
|
|
2281
2339
|
if (writer) this.writeWaiting.set(`${writer} ${relay}`, now);
|
|
2340
|
+
if (isGroupAnswerRead(who)) {
|
|
2341
|
+
const waiting = this.answerReadWaiting.get(relay) ?? /* @__PURE__ */ new Map();
|
|
2342
|
+
this.answerReadWaiting.set(relay, waiting.set(key, now));
|
|
2343
|
+
}
|
|
2282
2344
|
return false;
|
|
2283
2345
|
}
|
|
2284
2346
|
if (writer) this.writeWaiting.delete(`${writer} ${relay}`);
|
|
2347
|
+
if (isGroupAnswerRead(who)) this.answerReadWaiting.get(relay)?.delete(key);
|
|
2285
2348
|
if (isWayBack(who) && this.heldFor(relay, {
|
|
2286
2349
|
...who,
|
|
2287
2350
|
back: false
|
|
@@ -2296,6 +2359,18 @@ var RelayTransport = class {
|
|
|
2296
2359
|
});
|
|
2297
2360
|
return true;
|
|
2298
2361
|
}
|
|
2362
|
+
if (isGroupAnswerRead(who) && this.heldFor(relay, who, now, key, false, false) > 0) {
|
|
2363
|
+
this.spentAnswerAllowance.set(relay, [...this.spentAnswerAllowance.get(relay) ?? [], now]);
|
|
2364
|
+
this.readTurns.set(key, {
|
|
2365
|
+
servedAt: now,
|
|
2366
|
+
askedAt: now,
|
|
2367
|
+
waiting: false,
|
|
2368
|
+
watch: false,
|
|
2369
|
+
lane: watchLane(who),
|
|
2370
|
+
answer: true
|
|
2371
|
+
});
|
|
2372
|
+
return true;
|
|
2373
|
+
}
|
|
2299
2374
|
if (isGroupSignal(who) && !who.write && this.spent.get(relay).length >= this.limitOf(relay)) this.spentGroupOver.get(relay).push(now);
|
|
2300
2375
|
if (isGroupSignal(who)) this.spentGroupSignal.get(relay).push(now);
|
|
2301
2376
|
const departedOver = isDepartedRead(who) && this.spent.get(relay).length >= this.limitOf(relay);
|
|
@@ -2303,7 +2378,8 @@ var RelayTransport = class {
|
|
|
2303
2378
|
this.spent.get(relay).push(now);
|
|
2304
2379
|
if (who.background) this.spentBackground.get(relay).push(now);
|
|
2305
2380
|
if (who.background && who.write) this.spentBackgroundWrites.get(relay).push(now);
|
|
2306
|
-
if (isGroupUrgentRead(who)) this.
|
|
2381
|
+
if (isGroupUrgentRead(who) && isGroupAnswerRead(who)) this.spentAnswerUrgent.set(relay, [...this.spentAnswerUrgent.get(relay) ?? [], now]);
|
|
2382
|
+
else if (isGroupUrgentRead(who)) this.spentGroupUrgent.get(relay).push(now);
|
|
2307
2383
|
if (isWatch(who)) this.spentWatch.get(relay).push(now);
|
|
2308
2384
|
if (isChatWatch(who) && !departedOver) this.spentChatWatch.get(relay).push(now);
|
|
2309
2385
|
if (isGroupRead(who)) this.spentGroupReads.get(relay).push(now);
|
|
@@ -2329,26 +2405,27 @@ var RelayTransport = class {
|
|
|
2329
2405
|
* Who goes first: a chat's refused write holds back everything but chat writes; a group's refused write holds back
|
|
2330
2406
|
* group reads and background requests, never a chat's. Background requests yield to a link that signals. A chat's
|
|
2331
2407
|
* signaling goes over the limit by its allowance (`SIGNALING_ALLOWANCE_SHARE`), and so do a few of its reads of a
|
|
2332
|
-
* contact that just went away (`DEPARTED_READS`).
|
|
2408
|
+
* contact that just went away (`DEPARTED_READS`). `ownAllowance` false: what holds an edge's read for its answer
|
|
2409
|
+
* without its own allowance (`ANSWER_READ_ALLOWANCE`).
|
|
2333
2410
|
*/
|
|
2334
|
-
heldFor(relay, who, now = Date.now(), key, turns = true) {
|
|
2335
|
-
const recent = (this.spent.get(relay) ?? []
|
|
2336
|
-
const recentBackground = (this.spentBackground.get(relay) ?? []
|
|
2411
|
+
heldFor(relay, who, now = Date.now(), key, turns = true, ownAllowance = true) {
|
|
2412
|
+
const recent = within(this.spent.get(relay) ?? [], now, 6e4);
|
|
2413
|
+
const recentBackground = within(this.spentBackground.get(relay) ?? [], now, 6e4);
|
|
2337
2414
|
this.spent.set(relay, recent);
|
|
2338
2415
|
this.spentBackground.set(relay, recentBackground);
|
|
2339
|
-
const recentBackgroundWrites = (this.spentBackgroundWrites.get(relay) ?? []
|
|
2416
|
+
const recentBackgroundWrites = within(this.spentBackgroundWrites.get(relay) ?? [], now, 6e4);
|
|
2340
2417
|
this.spentBackgroundWrites.set(relay, recentBackgroundWrites);
|
|
2341
2418
|
const over = (list, limit) => list.length >= limit ? list[list.length - limit] + 6e4 - now : 0;
|
|
2342
2419
|
const limit = this.limitOf(relay);
|
|
2343
2420
|
const departed = isDepartedRead(who) && key !== void 0 && recent.length >= limit && this.departedReads(key, now) < 6;
|
|
2344
2421
|
const share = isChatSignal(who) || departed ? SIGNALING_ALLOWANCE_SHARE : isGroupSignal(who) ? GROUP_SIGNALING_ALLOWANCE_SHARE : 0;
|
|
2345
2422
|
const allowance = share ? Math.max(0, Math.floor(limit * share) - (who.write ? 0 : 1)) : 0;
|
|
2346
|
-
const groupSignaled = (this.spentGroupSignal.get(relay) ?? []
|
|
2423
|
+
const groupSignaled = within(this.spentGroupSignal.get(relay) ?? [], now, 6e4);
|
|
2347
2424
|
this.spentGroupSignal.set(relay, groupSignaled);
|
|
2348
2425
|
const groupFloor = isGroupSignal(who) && groupSignaled.length < allowance;
|
|
2349
2426
|
let wait = groupFloor ? 0 : over(recent, limit + allowance);
|
|
2350
2427
|
const starved = key !== void 0 && this.starved(key, who, now);
|
|
2351
|
-
const groupOver = (this.spentGroupOver.get(relay) ?? []
|
|
2428
|
+
const groupOver = within(this.spentGroupOver.get(relay) ?? [], now, GROUP_OVER_PACE_MS);
|
|
2352
2429
|
this.spentGroupOver.set(relay, groupOver);
|
|
2353
2430
|
if (isGroupSignal(who) && !who.write && recent.length >= limit && groupOver.length > 0) wait = Math.max(wait, groupOver[groupOver.length - 1] + GROUP_OVER_PACE_MS - now);
|
|
2354
2431
|
if (who.background && !starved) {
|
|
@@ -2358,13 +2435,16 @@ var RelayTransport = class {
|
|
|
2358
2435
|
const signaling = this.urgentAt + SIGNALING_WINDOW_MS - now;
|
|
2359
2436
|
if (signaling > 0 && !who.door) wait = Math.max(wait, Math.min(signaling, over(recentBackground, Math.min(this.backgroundWhileSignaling, Math.ceil(limit / 6)))));
|
|
2360
2437
|
}
|
|
2361
|
-
const burst = (this.spentGroupUrgent.get(relay) ?? []
|
|
2438
|
+
const burst = within(this.spentGroupUrgent.get(relay) ?? [], now, GROUP_BURST_MS);
|
|
2362
2439
|
this.spentGroupUrgent.set(relay, burst);
|
|
2440
|
+
const answerBurst = within(this.spentAnswerUrgent.get(relay) ?? [], now, GROUP_BURST_MS);
|
|
2441
|
+
this.spentAnswerUrgent.set(relay, answerBurst);
|
|
2363
2442
|
if (isGroupUrgentRead(who)) {
|
|
2364
2443
|
const most = Math.max(8, Math.floor(limit * GROUP_BURST_MS / 6e4));
|
|
2365
|
-
|
|
2444
|
+
const spent = isGroupAnswerRead(who) ? answerBurst : burst;
|
|
2445
|
+
if (spent.length >= most) wait = Math.max(wait, spent[spent.length - most] + GROUP_BURST_MS - now);
|
|
2366
2446
|
}
|
|
2367
|
-
const watched = (this.spentWatch.get(relay) ?? []
|
|
2447
|
+
const watched = within(this.spentWatch.get(relay) ?? [], now, GROUP_RATION_WINDOW_MS);
|
|
2368
2448
|
this.spentWatch.set(relay, watched);
|
|
2369
2449
|
let turn = 0;
|
|
2370
2450
|
if (isWatch(who)) {
|
|
@@ -2372,20 +2452,20 @@ var RelayTransport = class {
|
|
|
2372
2452
|
if (watched.length >= most) wait = Math.max(wait, watched[watched.length - most] + GROUP_RATION_WINDOW_MS - now);
|
|
2373
2453
|
if (this.readsAhead(key, now, watchLane(who)) > 0) turn = TURN_WAIT_MS;
|
|
2374
2454
|
}
|
|
2375
|
-
const chatWatched = (this.spentChatWatch.get(relay) ?? []
|
|
2455
|
+
const chatWatched = within(this.spentChatWatch.get(relay) ?? [], now, GROUP_RATION_WINDOW_MS);
|
|
2376
2456
|
this.spentChatWatch.set(relay, chatWatched);
|
|
2377
2457
|
if (isChatWatch(who) && !departed) {
|
|
2378
2458
|
const most = Math.max(1, Math.ceil(limit * CHAT_WATCH_SHARE * GROUP_RATION_WINDOW_MS / 6e4));
|
|
2379
2459
|
if (chatWatched.length >= most) wait = Math.max(wait, chatWatched[chatWatched.length - most] + GROUP_RATION_WINDOW_MS - now);
|
|
2380
2460
|
if (this.readsAhead(key, now, watchLane(who)) > 0) turn = TURN_WAIT_MS;
|
|
2381
2461
|
}
|
|
2382
|
-
const rationed = (this.spentGroupReads.get(relay) ?? []
|
|
2462
|
+
const rationed = within(this.spentGroupReads.get(relay) ?? [], now, GROUP_RATION_WINDOW_MS);
|
|
2383
2463
|
this.spentGroupReads.set(relay, rationed);
|
|
2384
2464
|
const pastLimit = isGroupSignal(who) && recent.length >= limit;
|
|
2385
2465
|
if (isGroupRead(who) && !pastLimit && now - (this.groupsFullAt.get(relay) ?? -Infinity) < GROUP_RATION_MS) {
|
|
2386
2466
|
const most = Math.max(1, Math.ceil(limit * GROUP_RATION_WINDOW_MS / 6e4));
|
|
2387
2467
|
if (rationed.length >= most) wait = Math.max(wait, rationed[rationed.length - most] + GROUP_RATION_WINDOW_MS - now);
|
|
2388
|
-
if (this.readsAhead(key, now) > 0) turn = TURN_WAIT_MS;
|
|
2468
|
+
if (this.readsAhead(key, now, void 0, isGroupAnswerRead(who)) > 0) turn = TURN_WAIT_MS;
|
|
2389
2469
|
}
|
|
2390
2470
|
if (who.group && !groupFloor || who.background) {
|
|
2391
2471
|
const reserved = this.chatReservedFor(relay, now);
|
|
@@ -2397,14 +2477,47 @@ var RelayTransport = class {
|
|
|
2397
2477
|
return at !== void 0 && now - at < 5e3 ? at + WRITE_FIRST_MS - now : 0;
|
|
2398
2478
|
};
|
|
2399
2479
|
if (writer !== "chat" && !departed && !starved) wait = Math.max(wait, waiting("chat"));
|
|
2400
|
-
if ((writer === null && who.group && !pastLimit || who.background) && !starved) wait = Math.max(wait, waiting("group"));
|
|
2480
|
+
if ((writer === null && who.group && !pastLimit && !isGroupAnswerRead(who) || who.background) && !starved) wait = Math.max(wait, waiting("group"));
|
|
2481
|
+
if (isGroupSignal(who) && !isGroupAnswerRead(who)) {
|
|
2482
|
+
const ahead = this.answerReadAhead(relay, now);
|
|
2483
|
+
if (ahead && this.heldFor(relay, ANSWER_READER, now, ahead.key, false, false) <= 0) wait = Math.max(wait, ahead.ms);
|
|
2484
|
+
}
|
|
2401
2485
|
if (turns && wait <= 0 && isTurnRead(who) && this.turnAhead(relay, key, who, now)) turn = TURN_WAIT_MS;
|
|
2402
2486
|
if (wait > 0 && isWayBack(who) && this.wayBackLeft(relay, who, now) > 0) return 0;
|
|
2487
|
+
if (wait > 0 && ownAllowance && isGroupAnswerRead(who) && this.answerAllowanceFree(relay, now)) return 0;
|
|
2403
2488
|
return Math.max(wait, turn, 0);
|
|
2404
2489
|
}
|
|
2490
|
+
/**
|
|
2491
|
+
* The edges' reads for their answers may take their own allowance on this relay now (`ANSWER_READ_ALLOWANCE`): fewer
|
|
2492
|
+
* than it in the last minute, and none within `ANSWER_READ_SPACING_MS`. None where the groups have no allowance.
|
|
2493
|
+
*/
|
|
2494
|
+
answerAllowanceFree(relay, now) {
|
|
2495
|
+
const spent = within(this.spentAnswerAllowance.get(relay) ?? [], now, 6e4);
|
|
2496
|
+
this.spentAnswerAllowance.set(relay, spent);
|
|
2497
|
+
const most = Math.min(3, Math.floor(this.limitOf(relay) * GROUP_SIGNALING_ALLOWANCE_SHARE));
|
|
2498
|
+
return spent.length < most && (spent.length === 0 || now - spent[spent.length - 1] >= 2e4);
|
|
2499
|
+
}
|
|
2500
|
+
/**
|
|
2501
|
+
* The edges' reads for their answers the budget refused on this relay within `ANSWER_READ_FIRST_MS`, still not read:
|
|
2502
|
+
* the key refused last, and how long the groups' other signaling waits for them there. Undefined when there is none.
|
|
2503
|
+
*/
|
|
2504
|
+
answerReadAhead(relay, now) {
|
|
2505
|
+
const waiting = this.answerReadWaiting.get(relay);
|
|
2506
|
+
if (!waiting) return void 0;
|
|
2507
|
+
let last;
|
|
2508
|
+
for (const [key, at] of waiting) if (now - at >= 5e3) waiting.delete(key);
|
|
2509
|
+
else if (!last || at > last.at) last = {
|
|
2510
|
+
key,
|
|
2511
|
+
at
|
|
2512
|
+
};
|
|
2513
|
+
return last && {
|
|
2514
|
+
key: last.key,
|
|
2515
|
+
ms: last.at + 5e3 - now
|
|
2516
|
+
};
|
|
2517
|
+
}
|
|
2405
2518
|
/** What is left of the community members' way back allowance on this relay (`WAY_BACK_SHARE`); its reads leave a write the last of it. */
|
|
2406
2519
|
wayBackLeft(relay, who, now) {
|
|
2407
|
-
const spent = (this.spentWayBack.get(relay) ?? []
|
|
2520
|
+
const spent = within(this.spentWayBack.get(relay) ?? [], now, 6e4);
|
|
2408
2521
|
this.spentWayBack.set(relay, spent);
|
|
2409
2522
|
return Math.floor(this.limitOf(relay) * WAY_BACK_SHARE) - (who.write ? 0 : 1) - spent.length;
|
|
2410
2523
|
}
|
|
@@ -2417,20 +2530,23 @@ var RelayTransport = class {
|
|
|
2417
2530
|
askedAt: now,
|
|
2418
2531
|
waiting: true,
|
|
2419
2532
|
watch: isWatch(who) || isChatWatch(who),
|
|
2420
|
-
lane: watchLane(who)
|
|
2533
|
+
lane: watchLane(who),
|
|
2534
|
+
answer: isGroupAnswerRead(who)
|
|
2421
2535
|
});
|
|
2422
2536
|
}
|
|
2423
2537
|
/**
|
|
2424
2538
|
* Keys a group reads, still asking (within `WATCH_TURN_MS`), that were read longer ago than `key`: a share keeps a
|
|
2425
2539
|
* request for each. With `watchLane`, only watched keys the same other limits hold: one the groups' burst holds back
|
|
2426
|
-
* would keep a turn it cannot take. The chats' watched keys only in their own lane (`CHAT_WATCH_SHARE`).
|
|
2540
|
+
* would keep a turn it cannot take. The chats' watched keys only in their own lane (`CHAT_WATCH_SHARE`). `answer`: an
|
|
2541
|
+
* edge's read for its answer, which waits only for the others' (`ANSWER_READ_FIRST_MS`).
|
|
2427
2542
|
*/
|
|
2428
|
-
readsAhead(key, now, watchLane) {
|
|
2543
|
+
readsAhead(key, now, watchLane, answer = false) {
|
|
2429
2544
|
const mine = key === void 0 ? -Infinity : this.readTurns.get(key)?.servedAt ?? -Infinity;
|
|
2430
2545
|
let ahead = 0;
|
|
2431
2546
|
for (const [other, turn] of this.readTurns) {
|
|
2432
2547
|
if (other === key || !turn.waiting || now - turn.askedAt >= WATCH_TURN_MS) continue;
|
|
2433
2548
|
if (watchLane !== void 0 ? !turn.watch || turn.lane !== watchLane : turn.lane === "chat") continue;
|
|
2549
|
+
if (answer && !turn.answer) continue;
|
|
2434
2550
|
if (turn.servedAt < mine) ahead++;
|
|
2435
2551
|
}
|
|
2436
2552
|
return ahead;
|
|
@@ -2448,9 +2564,17 @@ var RelayTransport = class {
|
|
|
2448
2564
|
}
|
|
2449
2565
|
/** Drops the turns asked and read over a minute ago, at most once in `TURNS_PRUNE_MS` (or when the clock went back). */
|
|
2450
2566
|
pruneTurns(turns, now) {
|
|
2451
|
-
|
|
2567
|
+
const prunedAt = this.turnsPrunedAt.get(turns) ?? -Infinity;
|
|
2568
|
+
if (Math.abs(now - prunedAt) < TURNS_PRUNE_MS) return;
|
|
2452
2569
|
this.turnsPrunedAt.set(turns, now);
|
|
2453
|
-
|
|
2570
|
+
const back = now < prunedAt;
|
|
2571
|
+
for (const [key, turn] of turns) {
|
|
2572
|
+
if (back) {
|
|
2573
|
+
turn.servedAt = Math.min(turn.servedAt, now);
|
|
2574
|
+
turn.askedAt = Math.min(turn.askedAt, now);
|
|
2575
|
+
}
|
|
2576
|
+
if (staleTurn(turn, now)) turns.delete(key);
|
|
2577
|
+
}
|
|
2454
2578
|
}
|
|
2455
2579
|
/**
|
|
2456
2580
|
* Whether a key read in turn longer ago than `key`, still asking, would take this relay's next request: one read in the
|
|
@@ -2477,7 +2601,7 @@ var RelayTransport = class {
|
|
|
2477
2601
|
}
|
|
2478
2602
|
/** This contact's departed reads past the limit in the last minute (`DEPARTED_READS`). */
|
|
2479
2603
|
departedReads(key, now) {
|
|
2480
|
-
const reads = (this.departedOver.get(key) ?? []
|
|
2604
|
+
const reads = within(this.departedOver.get(key) ?? [], now, 6e4);
|
|
2481
2605
|
if (reads.length) this.departedOver.set(key, reads);
|
|
2482
2606
|
else this.departedOver.delete(key);
|
|
2483
2607
|
return reads.length;
|
|
@@ -2525,7 +2649,7 @@ var RelayTransport = class {
|
|
|
2525
2649
|
spareHeldFor(relay, now) {
|
|
2526
2650
|
const reserved = this.chatReservedFor(relay, now);
|
|
2527
2651
|
if (reserved <= 0) return 0;
|
|
2528
|
-
const recent = (this.spent.get(relay) ?? []
|
|
2652
|
+
const recent = within(this.spent.get(relay) ?? [], now, 6e4);
|
|
2529
2653
|
const keep = this.limitOf(relay) - this.chatReserveOf(relay, now);
|
|
2530
2654
|
return recent.length >= keep ? Math.min(reserved, recent[recent.length - keep] + 6e4 - now) : 0;
|
|
2531
2655
|
}
|
|
@@ -7050,6 +7174,8 @@ var ICE_UFRAG = /^[A-Za-z0-9+/]{4,256}$/;
|
|
|
7050
7174
|
var ICE_PWD = /^[A-Za-z0-9+/]{22,256}$/;
|
|
7051
7175
|
var ICE_FOUNDATION = /^[A-Za-z0-9+/]{1,32}$/;
|
|
7052
7176
|
var CANDIDATE_ADDRESS = /^[A-Za-z0-9.:-]{1,64}$/;
|
|
7177
|
+
var IPV4 = /^(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}$/;
|
|
7178
|
+
var MDNS_NAME = /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}\.local$/;
|
|
7053
7179
|
var CANDIDATE_TYPES$1 = /* @__PURE__ */ new Set([
|
|
7054
7180
|
"host",
|
|
7055
7181
|
"srflx",
|
|
@@ -7059,6 +7185,24 @@ var CANDIDATE_TYPES$1 = /* @__PURE__ */ new Set([
|
|
|
7059
7185
|
var EXTENSION_TOKEN = /^[A-Za-z0-9+/._-]{1,64}$/;
|
|
7060
7186
|
var DIGITS = /^\d{1,10}$/;
|
|
7061
7187
|
var MAX_CANDIDATES = 8;
|
|
7188
|
+
function isIpv6(text) {
|
|
7189
|
+
const halves = text.split("::");
|
|
7190
|
+
if (halves.length > 2) return false;
|
|
7191
|
+
const groups = halves.flatMap((half) => half ? half.split(":") : []);
|
|
7192
|
+
const v4 = groups.length > 0 && IPV4.test(groups[groups.length - 1]);
|
|
7193
|
+
if (v4) groups.pop();
|
|
7194
|
+
if (!groups.every((group) => /^[0-9a-fA-F]{1,4}$/.test(group))) return false;
|
|
7195
|
+
const count = groups.length + (v4 ? 2 : 0);
|
|
7196
|
+
return halves.length === 2 ? count < 8 : count === 8;
|
|
7197
|
+
}
|
|
7198
|
+
/**
|
|
7199
|
+
* Whether a contact's candidate address may go into this device's remote description: an IPv4 or IPv6 literal, or the
|
|
7200
|
+
* `<uuid>.local` name a browser gives its host candidate. Any other name would have this side's ICE agent look it up in
|
|
7201
|
+
* DNS, a request the contact chose, whatever the relay policy says.
|
|
7202
|
+
*/
|
|
7203
|
+
function isCandidateAddress(address) {
|
|
7204
|
+
return IPV4.test(address) || MDNS_NAME.test(address) || address.includes(":") && isIpv6(address);
|
|
7205
|
+
}
|
|
7062
7206
|
function uint(value, max) {
|
|
7063
7207
|
if (!DIGITS.test(value)) return null;
|
|
7064
7208
|
const n = Number(value);
|
|
@@ -7068,7 +7212,8 @@ function uint(value, max) {
|
|
|
7068
7212
|
* Parses the part of an `a=candidate:` line that the signal carries
|
|
7069
7213
|
* (`foundation component transport priority address port typ type [raddr a rport p] [ext value]...`)
|
|
7070
7214
|
* and serializes it again from the validated parts. Returns `undefined` for a
|
|
7071
|
-
* well-formed candidate that is not UDP (
|
|
7215
|
+
* well-formed candidate that is not UDP or not on an address (`isCandidateAddress`), skipped, and `null` for anything
|
|
7216
|
+
* malformed.
|
|
7072
7217
|
*/
|
|
7073
7218
|
function normalizeCandidate(candidate) {
|
|
7074
7219
|
if (typeof candidate !== "string" || candidate.length > 512) return null;
|
|
@@ -7097,6 +7242,7 @@ function normalizeCandidate(candidate) {
|
|
|
7097
7242
|
} else if (!EXTENSION_TOKEN.test(value)) return null;
|
|
7098
7243
|
}
|
|
7099
7244
|
if (transport.toLowerCase() !== "udp") return void 0;
|
|
7245
|
+
if (!isCandidateAddress(address) || raddr !== null && !isCandidateAddress(raddr)) return void 0;
|
|
7100
7246
|
let line = `${foundation} ${component} udp ${priority} ${address} ${port} typ ${type}`;
|
|
7101
7247
|
if (raddr !== null && rport !== null) line += ` raddr ${raddr} rport ${rport}`;
|
|
7102
7248
|
return line;
|
|
@@ -7542,6 +7688,7 @@ function parseRtcSignal(json) {
|
|
|
7542
7688
|
const [type, address, port] = c.split(",");
|
|
7543
7689
|
if (!CANDIDATE_TYPE_NAME[type] || !SAFE_ADDRESS.test(address ?? "") || !/^\d{1,5}$/.test(port ?? "")) return null;
|
|
7544
7690
|
}
|
|
7691
|
+
const c = raw.c.filter((candidate) => isCandidateAddress(candidate.split(",")[1]));
|
|
7545
7692
|
return {
|
|
7546
7693
|
t: raw.t,
|
|
7547
7694
|
ts: raw.ts,
|
|
@@ -7550,7 +7697,7 @@ function parseRtcSignal(json) {
|
|
|
7550
7697
|
p: raw.p,
|
|
7551
7698
|
f: raw.f,
|
|
7552
7699
|
s: raw.s,
|
|
7553
|
-
c
|
|
7700
|
+
c
|
|
7554
7701
|
};
|
|
7555
7702
|
}
|
|
7556
7703
|
function buildDataSdp(signal) {
|
|
@@ -8541,6 +8688,14 @@ var OFFER_LOOK_MS = 9e4;
|
|
|
8541
8688
|
*/
|
|
8542
8689
|
var SIGNAL_OUT_READS = 3;
|
|
8543
8690
|
/**
|
|
8691
|
+
* The first fast reads once the contact's offer is due now (`expectPeer(…, true)`: the chat just left DHT only, on
|
|
8692
|
+
* both sides) are signaling too, as many as after an answer, until one finds a new signal of the contact's. As plain
|
|
8693
|
+
* reads, an extension whose relay minute was spent read its contact once as it came back from DHT only, and the next
|
|
8694
|
+
* read waited 41 s: the offer out since then was never read, and the matrix's chat stayed "On DHT · retrying live" for
|
|
8695
|
+
* 45 s (E2E full, 2026-11-05).
|
|
8696
|
+
*/
|
|
8697
|
+
var SIGNAL_DUE_READS = 3;
|
|
8698
|
+
/**
|
|
8544
8699
|
* How long a link looks fast when its peer, or the peer's offer, is due any moment. The peer that
|
|
8545
8700
|
* dials does so as soon as it sees the other one here, and its offer lands in its packet a moment
|
|
8546
8701
|
* after its presence did: without this the side that answers left the offer to a background poll
|
|
@@ -8665,6 +8820,10 @@ var LinkSession = class {
|
|
|
8665
8820
|
lastCallSignalIn = null;
|
|
8666
8821
|
/** The `_rtc` signal the last packet that went out carried. */
|
|
8667
8822
|
rtcSignalOut = null;
|
|
8823
|
+
/** Counts the signals taken back (`setRtcSignal(null)`): each ends an attempt. */
|
|
8824
|
+
rtcAttempt = 0;
|
|
8825
|
+
/** A publish that went out carried a signal of this attempt (since the last take-back). */
|
|
8826
|
+
rtcAttemptOut = false;
|
|
8668
8827
|
lastRtcSignalIn = null;
|
|
8669
8828
|
/** The `_rtc` signal the peer's packet carried as last read (null: none), whether or not it was new. */
|
|
8670
8829
|
peerRtcSignal = null;
|
|
@@ -8674,6 +8833,8 @@ var LinkSession = class {
|
|
|
8674
8833
|
/** When a read first found the peer's packet advertising with no `_tr` (0: the last packet that said carried one). */
|
|
8675
8834
|
transportsAbsentSince = 0;
|
|
8676
8835
|
transportsGone = false;
|
|
8836
|
+
/** The peer's packet carried a `_tr` and the last read found none (`onPeerTransportsUnsaid`). */
|
|
8837
|
+
transportsUnsaid = false;
|
|
8677
8838
|
running = false;
|
|
8678
8839
|
/** Stopped without a last packet (`stop(false)`): nothing more goes out. */
|
|
8679
8840
|
silent = false;
|
|
@@ -8702,6 +8863,8 @@ var LinkSession = class {
|
|
|
8702
8863
|
fastStepsAfter = 0;
|
|
8703
8864
|
/** Fast reads still signaling since this side's last new offer or answer went out (`SIGNAL_OUT_READS`). */
|
|
8704
8865
|
signalReadsLeft = 0;
|
|
8866
|
+
/** Fast reads still signaling while the contact's offer is due (`SIGNAL_DUE_READS`). */
|
|
8867
|
+
dueSignalReadsLeft = 0;
|
|
8705
8868
|
/** When the last `expectPeer` window ends (or ended): the pace slows down from there step by step. */
|
|
8706
8869
|
expectUntil = 0;
|
|
8707
8870
|
/**
|
|
@@ -8771,6 +8934,13 @@ var LinkSession = class {
|
|
|
8771
8934
|
get peerPresence() {
|
|
8772
8935
|
return this.presence;
|
|
8773
8936
|
}
|
|
8937
|
+
/**
|
|
8938
|
+
* The relays took a WebRTC signal of this attempt: its answer, or an earlier one of it. Not an earlier attempt's still
|
|
8939
|
+
* in the packet out: its take-back, a background write, is the first the relays' budget holds back.
|
|
8940
|
+
*/
|
|
8941
|
+
get rtcSignalPublished() {
|
|
8942
|
+
return this.rtcAttemptOut;
|
|
8943
|
+
}
|
|
8774
8944
|
/** The `_rtc` signal the peer's packet carries, as last read: null when it carries none. */
|
|
8775
8945
|
get peerSignal() {
|
|
8776
8946
|
return this.peerRtcSignal;
|
|
@@ -8857,21 +9027,24 @@ var LinkSession = class {
|
|
|
8857
9027
|
setFastPoll(fast, offer = false) {
|
|
8858
9028
|
this.fastPollUntil = fast ? Date.now() + (offer ? OFFER_LOOK_MS : FAST_POLL_MAX_MS) : 0;
|
|
8859
9029
|
this.fastStepsAfter = fast && offer ? Date.now() + OFFER_FAST_MS : 0;
|
|
8860
|
-
this.signalReadsLeft = 0;
|
|
9030
|
+
this.signalReadsLeft = this.dueSignalReadsLeft = 0;
|
|
8861
9031
|
if (fast) this.pollNow();
|
|
8862
9032
|
}
|
|
8863
9033
|
/**
|
|
8864
9034
|
* The peer, or its offer, is due any moment: poll fast for `EXPECT_PEER_MS` (never cutting a longer fast window short),
|
|
8865
|
-
* then slow down step by step (`nextInterval`) rather than at once.
|
|
9035
|
+
* then slow down step by step (`nextInterval`) rather than at once. `signal`: its offer is due now (it may be out
|
|
9036
|
+
* already): a read goes at once, even inside a window already looking fast, and the first reads that look for it are
|
|
9037
|
+
* signaling (`SIGNAL_DUE_READS`).
|
|
8866
9038
|
*/
|
|
8867
|
-
expectPeer(awaited = false) {
|
|
9039
|
+
expectPeer(awaited = false, signal = false) {
|
|
8868
9040
|
const until = Date.now() + EXPECT_PEER_MS;
|
|
8869
9041
|
this.expectUntil = Math.max(this.expectUntil, until);
|
|
8870
9042
|
if (awaited) this.awaitedUntil = Math.max(this.awaitedUntil, until);
|
|
9043
|
+
if (signal) this.dueSignalReadsLeft = 3;
|
|
8871
9044
|
const stepping = this.fastStepsAfter > 0 && Date.now() >= this.fastStepsAfter;
|
|
8872
9045
|
if (this.fastStepsAfter) this.fastStepsAfter = Math.max(this.fastStepsAfter, until);
|
|
8873
9046
|
if (until <= this.fastPollUntil) {
|
|
8874
|
-
if (stepping) this.pollNow();
|
|
9047
|
+
if (stepping || signal) this.pollNow();
|
|
8875
9048
|
return;
|
|
8876
9049
|
}
|
|
8877
9050
|
this.fastPollUntil = until;
|
|
@@ -8896,7 +9069,7 @@ var LinkSession = class {
|
|
|
8896
9069
|
*/
|
|
8897
9070
|
calm() {
|
|
8898
9071
|
if (this.rtcSignal !== null) return;
|
|
8899
|
-
this.fastPollUntil = this.fastStepsAfter = this.expectUntil = this.watchUntil = this.lingerUntil = 0;
|
|
9072
|
+
this.fastPollUntil = this.fastStepsAfter = this.expectUntil = this.watchUntil = this.lingerUntil = this.dueSignalReadsLeft = 0;
|
|
8900
9073
|
}
|
|
8901
9074
|
/** The data link carries chat and services while it is up. */
|
|
8902
9075
|
setDataLinkOpen(open) {
|
|
@@ -8954,6 +9127,10 @@ var LinkSession = class {
|
|
|
8954
9127
|
async setRtcSignal(signal, reportFailure = false) {
|
|
8955
9128
|
if (this.rtcSignal === signal) return;
|
|
8956
9129
|
this.rtcSignal = signal;
|
|
9130
|
+
if (signal === null) {
|
|
9131
|
+
this.rtcAttempt++;
|
|
9132
|
+
this.rtcAttemptOut = false;
|
|
9133
|
+
}
|
|
8957
9134
|
if (reportFailure) await this.publish(signal === null);
|
|
8958
9135
|
else await this.publish(signal === null).catch(() => {});
|
|
8959
9136
|
if (signal) this.pollNow();
|
|
@@ -9103,6 +9280,7 @@ var LinkSession = class {
|
|
|
9103
9280
|
}
|
|
9104
9281
|
async publishOnce(advertise, upkeep = false) {
|
|
9105
9282
|
const rtcSignal = advertise ? this.rtcSignal : null;
|
|
9283
|
+
const attempt = this.rtcAttempt;
|
|
9106
9284
|
const started = Date.now();
|
|
9107
9285
|
let keptMessages;
|
|
9108
9286
|
try {
|
|
@@ -9156,6 +9334,7 @@ var LinkSession = class {
|
|
|
9156
9334
|
if (lapsed) this.pollNow();
|
|
9157
9335
|
}
|
|
9158
9336
|
this.rtcSignalOut = rtcSignal;
|
|
9337
|
+
if (rtcSignal && attempt === this.rtcAttempt) this.rtcAttemptOut = true;
|
|
9159
9338
|
traceLink(this.identity.pubKeyZ32, "publish", {
|
|
9160
9339
|
ms,
|
|
9161
9340
|
rtc: !!rtcSignal,
|
|
@@ -9191,14 +9370,23 @@ var LinkSession = class {
|
|
|
9191
9370
|
});
|
|
9192
9371
|
const started = Date.now();
|
|
9193
9372
|
let heldBackMs;
|
|
9373
|
+
/** This read is one of `SIGNAL_DUE_READS`: one the budget held back asked nothing of the relays, and is not counted. */
|
|
9374
|
+
let dueRead = false;
|
|
9194
9375
|
try {
|
|
9195
9376
|
const pace = this.pace();
|
|
9196
|
-
const
|
|
9197
|
-
|
|
9377
|
+
const signalOut = pace === "fast" && this.rtcSignalOut !== null && (this.fastStepsAfter > 0 || this.signalReadsLeft > 0);
|
|
9378
|
+
const signal = signalOut || pace === "fast" && this.dueSignalReadsLeft > 0;
|
|
9379
|
+
if (signalOut) {
|
|
9380
|
+
if (!this.fastStepsAfter) this.signalReadsLeft--;
|
|
9381
|
+
} else if (signal) {
|
|
9382
|
+
this.dueSignalReadsLeft--;
|
|
9383
|
+
dueRead = true;
|
|
9384
|
+
}
|
|
9198
9385
|
const watch = !signal && this.watching();
|
|
9199
9386
|
const departed = !signal && Date.now() < this.departedUntil;
|
|
9200
9387
|
const background = pace === "background" || pace === "connected" || pace === "idle" && !this.active;
|
|
9201
9388
|
const resume = !signal && !watch && (this.resumeReads || Date.now() < this.awaitedUntil);
|
|
9389
|
+
let unread;
|
|
9202
9390
|
const packet = await this.transport.resolve(this.peerPubKeyZ32, {
|
|
9203
9391
|
background,
|
|
9204
9392
|
urgent: pace === "fast",
|
|
@@ -9206,9 +9394,13 @@ var LinkSession = class {
|
|
|
9206
9394
|
...watch && { watch },
|
|
9207
9395
|
...departed && { departed },
|
|
9208
9396
|
...resume && { resume }
|
|
9397
|
+
}, false).catch((error) => {
|
|
9398
|
+
if (!(error instanceof RelaysFailedError)) throw error;
|
|
9399
|
+
unread = error;
|
|
9400
|
+
return error.kept;
|
|
9209
9401
|
});
|
|
9210
9402
|
if (!this.running) return;
|
|
9211
|
-
this.discoveryResult("read");
|
|
9403
|
+
this.discoveryResult("read", unread);
|
|
9212
9404
|
const ms = Date.now() - started;
|
|
9213
9405
|
const wasOnline = this.presence.online, wasSeen = this.presence.lastPacketAt;
|
|
9214
9406
|
const readBefore = this.lastReadAt, peerPacketBefore = this.peerPacketAt;
|
|
@@ -9257,8 +9449,16 @@ var LinkSession = class {
|
|
|
9257
9449
|
this.lastTransportsIn = batch.transports;
|
|
9258
9450
|
this.events.onPeerTransports?.(batch.transports);
|
|
9259
9451
|
}
|
|
9452
|
+
if (this.transportsUnsaid) {
|
|
9453
|
+
this.transportsUnsaid = false;
|
|
9454
|
+
this.events.onPeerTransportsUnsaid?.(false);
|
|
9455
|
+
}
|
|
9260
9456
|
} else if (batch.services !== null && !this.transportsGone) {
|
|
9261
9457
|
this.transportsAbsentSince ||= Date.now();
|
|
9458
|
+
if (!this.transportsUnsaid && this.lastTransportsIn !== null) {
|
|
9459
|
+
this.transportsUnsaid = true;
|
|
9460
|
+
this.events.onPeerTransportsUnsaid?.(true);
|
|
9461
|
+
}
|
|
9262
9462
|
if (Date.now() - this.transportsAbsentSince >= 12e4) {
|
|
9263
9463
|
this.transportsGone = true;
|
|
9264
9464
|
this.lastTransportsIn = null;
|
|
@@ -9283,6 +9483,7 @@ var LinkSession = class {
|
|
|
9283
9483
|
first: wasSeen === 0
|
|
9284
9484
|
});
|
|
9285
9485
|
if (newSignal) {
|
|
9486
|
+
this.dueSignalReadsLeft = 0;
|
|
9286
9487
|
this.lastRtcSignalIn = batch.rtcSignal;
|
|
9287
9488
|
this.events.onRtcSignal?.(batch.rtcSignal, readBefore ? {
|
|
9288
9489
|
since: readBefore,
|
|
@@ -9319,6 +9520,7 @@ var LinkSession = class {
|
|
|
9319
9520
|
}
|
|
9320
9521
|
} finally {
|
|
9321
9522
|
this.polling = false;
|
|
9523
|
+
if (dueRead && heldBackMs !== void 0) this.dueSignalReadsLeft++;
|
|
9322
9524
|
if (this.running && this.pollAgain) {
|
|
9323
9525
|
this.pollAgain = false;
|
|
9324
9526
|
if (this.pollTimer) clearTimeout(this.pollTimer);
|
|
@@ -9484,6 +9686,17 @@ var ANSWER_REFUSED_AFTER_MS = 1e3;
|
|
|
9484
9686
|
/** An offer this close to the end of the offerer's attempt is not answered again: the new answer would come too late. */
|
|
9485
9687
|
var REANSWER_MARGIN_MS = 15e3;
|
|
9486
9688
|
/**
|
|
9689
|
+
* An answer to this side's offer that comes this long or more after the offer reached the relays was read late (the
|
|
9690
|
+
* relays' request budget held the read back, a restart's first minute), and an attempt that ends after this side made
|
|
9691
|
+
* its answer again (`REANSWERS`) this long after it took an offer that still stands answered one the offerer has not
|
|
9692
|
+
* read yet. Neither says anything about direct connections (`DirectEvidence`): the answering side's ICE gives up about
|
|
9693
|
+
* 30 s after its answer with no reply, so the answer that went in late found nobody there, and the offerer gives up on
|
|
9694
|
+
* the attempt and offers again. Taken for a network that lets nothing through, a group's edge went native on both
|
|
9695
|
+
* sides, and past the native slots members stayed unreachable for the rest of a restart lab (agents#971, 2026-11-03):
|
|
9696
|
+
* of 38 answers read 60 s or more after their offer, 13 connected nothing; of 78 read within 20 s, none failed.
|
|
9697
|
+
*/
|
|
9698
|
+
var LATE_ANSWER_MS = 2e4;
|
|
9699
|
+
/**
|
|
9487
9700
|
* Traces the candidate pair an opened data link uses, by type only (host, srflx, prflx, relay; never an address): two
|
|
9488
9701
|
* devices on one network should meet host to host. A connection without stats (a test's fake) traces nothing.
|
|
9489
9702
|
*/
|
|
@@ -9513,6 +9726,10 @@ var DataLink = class {
|
|
|
9513
9726
|
/** Each connection's listeners, and its data channel's (`wrapDataChannel`), dropped once it is closed. */
|
|
9514
9727
|
ends = /* @__PURE__ */ new WeakMap();
|
|
9515
9728
|
myOfferTs = 0;
|
|
9729
|
+
/** When this side's offer reached the relays, as far as this link knows (`signalWentOut`). */
|
|
9730
|
+
myOfferOutAt = 0;
|
|
9731
|
+
/** The answer to this side's offer came `LATE_ANSWER_MS` or more after the offer went out. */
|
|
9732
|
+
answerCameLate = false;
|
|
9516
9733
|
/**
|
|
9517
9734
|
* An offer or answer of this side's that went without a public candidate came to nothing (both descriptions were
|
|
9518
9735
|
* exchanged, and no path connected): the next one waits for its STUN servers as long as it takes
|
|
@@ -9565,7 +9782,8 @@ var DataLink = class {
|
|
|
9565
9782
|
this.setState("offering");
|
|
9566
9783
|
this.options.setFastPoll(true, true);
|
|
9567
9784
|
}
|
|
9568
|
-
this.myOfferTs = Date.now();
|
|
9785
|
+
this.myOfferTs = this.myOfferOutAt = Date.now();
|
|
9786
|
+
this.answerCameLate = false;
|
|
9569
9787
|
this.sentLacksPublic = !PUBLIC_CANDIDATE.test(pc.localDescription?.sdp ?? "");
|
|
9570
9788
|
const signal = {
|
|
9571
9789
|
t: "o",
|
|
@@ -9632,6 +9850,9 @@ var DataLink = class {
|
|
|
9632
9850
|
} else if (this.state === "offering" && signal.o === this.myOfferTs && this.pc) {
|
|
9633
9851
|
this.lastSignalTs = signal.ts;
|
|
9634
9852
|
const pc = this.pc;
|
|
9853
|
+
const sinceOffer = Date.now() - this.myOfferOutAt;
|
|
9854
|
+
this.answerCameLate = sinceOffer >= LATE_ANSWER_MS;
|
|
9855
|
+
if (this.answerCameLate) traceLink(this.options.myPubKeyZ32, "answer-late", { ms: sinceOffer });
|
|
9635
9856
|
try {
|
|
9636
9857
|
this.remoteSdp = buildDataSdp(signal);
|
|
9637
9858
|
await pc.setRemoteDescription({
|
|
@@ -9664,6 +9885,28 @@ var DataLink = class {
|
|
|
9664
9885
|
return null;
|
|
9665
9886
|
}
|
|
9666
9887
|
}
|
|
9888
|
+
/**
|
|
9889
|
+
* The answer this side's offer is connecting on came `LATE_ANSWER_MS` or more after the offer went out: if it connects
|
|
9890
|
+
* nothing, that says nothing about direct connections, and the link offers again (`GhostLink`'s stall of a group link).
|
|
9891
|
+
*/
|
|
9892
|
+
get answerLate() {
|
|
9893
|
+
return this.state === "connecting" && !!this.myOfferTs && this.answerCameLate;
|
|
9894
|
+
}
|
|
9895
|
+
/**
|
|
9896
|
+
* This side answered, and no answer of its went out in this attempt (`signalOut`: the relays' budget held every one
|
|
9897
|
+
* back): the offerer never had one to try (agents#1637). The answering side's twin of `answerLate`.
|
|
9898
|
+
*/
|
|
9899
|
+
get answerNotOut() {
|
|
9900
|
+
return this.state === "connecting" && !this.myOfferTs && this.options.signalOut?.() === false;
|
|
9901
|
+
}
|
|
9902
|
+
/**
|
|
9903
|
+
* This attempt, if it ends now without opening, says nothing about direct connections: the answer to this side's offer
|
|
9904
|
+
* was read late (`answerLate`), or this side's answer never went out (`answerNotOut`). An answer made again and still
|
|
9905
|
+
* unread `LATE_ANSWER_MS` on (`failed`) is the same case, seen from the offer that still stands.
|
|
9906
|
+
*/
|
|
9907
|
+
get saysNothing() {
|
|
9908
|
+
return this.answerLate || this.answerNotOut;
|
|
9909
|
+
}
|
|
9667
9910
|
/** The peer connection this link holds now (null when idle): a later one is another attempt. */
|
|
9668
9911
|
get connection() {
|
|
9669
9912
|
return this.pc;
|
|
@@ -9689,7 +9932,7 @@ var DataLink = class {
|
|
|
9689
9932
|
* nothing: the next offer or answer gathers for as long as it takes.
|
|
9690
9933
|
*/
|
|
9691
9934
|
noteNoPublic(ended) {
|
|
9692
|
-
if (ended && (this.myOfferTs || this.answered) && this.sentLacksPublic && this.state === "connecting") this.fullGather = true;
|
|
9935
|
+
if (ended && !this.saysNothing && (this.myOfferTs || this.answered) && this.sentLacksPublic && this.state === "connecting") this.fullGather = true;
|
|
9693
9936
|
}
|
|
9694
9937
|
/**
|
|
9695
9938
|
* What this attempt says about direct connections if it ends now without opening: nothing unless both descriptions
|
|
@@ -9697,7 +9940,7 @@ var DataLink = class {
|
|
|
9697
9940
|
* candidate, a public port per STUN server, or (for the side that offered) candidates that read as reachable.
|
|
9698
9941
|
*/
|
|
9699
9942
|
directEvidence() {
|
|
9700
|
-
if (this.state !== "connecting" || !this.pc) return null;
|
|
9943
|
+
if (this.state !== "connecting" || !this.pc || this.saysNothing) return null;
|
|
9701
9944
|
const local = this.pc.localDescription?.sdp ?? "";
|
|
9702
9945
|
return !PUBLIC_CANDIDATE.test(local) ? "no-public" : symmetricNat(local) ? "symmetric" : this.myOfferTs ? "no-path" : null;
|
|
9703
9946
|
}
|
|
@@ -9718,8 +9961,13 @@ var DataLink = class {
|
|
|
9718
9961
|
const answered = this.state === "connecting" ? this.answered : null;
|
|
9719
9962
|
const left = answered ? CONNECT_TIMEOUT_MS - (Date.now() - answered.at) : 0;
|
|
9720
9963
|
const givenUp = !!answered && this.options.offerStanding?.(answered.offer.ts) === false;
|
|
9721
|
-
const
|
|
9722
|
-
this.
|
|
9964
|
+
const unread = !!answered && answered.again > 0 && Date.now() - answered.at >= 2e4 && this.options.offerStanding?.(answered.offer.ts) === true;
|
|
9965
|
+
if (unread) traceLink(this.options.myPubKeyZ32, "answer-unread", {
|
|
9966
|
+
again: answered.again,
|
|
9967
|
+
sinceMs: Date.now() - answered.at
|
|
9968
|
+
});
|
|
9969
|
+
const evidence = givenUp || unread ? null : this.directEvidence();
|
|
9970
|
+
this.noteNoPublic(!givenUp && !unread);
|
|
9723
9971
|
if (answered && answered.again < 2 && left > REANSWER_MARGIN_MS && this.options.offerStanding?.(answered.offer.ts)) {
|
|
9724
9972
|
answered.again++;
|
|
9725
9973
|
traceLink(this.options.myPubKeyZ32, "reanswer", {
|
|
@@ -9875,6 +10123,7 @@ var DataLink = class {
|
|
|
9875
10123
|
* counts from here, so the other side has as long to read it as if it had gone out at once.
|
|
9876
10124
|
*/
|
|
9877
10125
|
signalWentOut() {
|
|
10126
|
+
if (this.state === "offering" && this.myOfferTs) this.myOfferOutAt = Date.now();
|
|
9878
10127
|
if (this.pc && this.connectTimer && this.state !== "open" && this.state !== "idle") this.startAttemptTimer(this.pc);
|
|
9879
10128
|
}
|
|
9880
10129
|
clearTimers() {
|
|
@@ -9886,7 +10135,8 @@ var DataLink = class {
|
|
|
9886
10135
|
this.clearTimers();
|
|
9887
10136
|
const pc = this.pc;
|
|
9888
10137
|
this.pc = null;
|
|
9889
|
-
this.myOfferTs = 0;
|
|
10138
|
+
this.myOfferTs = this.myOfferOutAt = 0;
|
|
10139
|
+
this.answerCameLate = false;
|
|
9890
10140
|
this.remoteSdp = null;
|
|
9891
10141
|
if (!pc) return false;
|
|
9892
10142
|
this.closeConnection(pc);
|
|
@@ -12597,7 +12847,10 @@ var MAX_ATTEMPTS = 8;
|
|
|
12597
12847
|
var SEQUENCE_BLOCK = 64;
|
|
12598
12848
|
/** The wait before publication attempt `attempts + 1` of a text, or of a receipt the contact still asks for. */
|
|
12599
12849
|
var backoff = (attempts) => Math.min(6e4, 4e3 * 2 ** attempts);
|
|
12600
|
-
/**
|
|
12850
|
+
/**
|
|
12851
|
+
* The contact's mailbox is read this often while this side is DHT-only (a contact that chose it is read at the chat's
|
|
12852
|
+
* pace: `ACTIVE_DHT_POLL_MS` open, or on a daemon, `peerDhtPollMs`), and otherwise…
|
|
12853
|
+
*/
|
|
12601
12854
|
var DHT_POLL_MS = 4e3;
|
|
12602
12855
|
var STREAM_POLL_MS = 3e4;
|
|
12603
12856
|
/**
|
|
@@ -12956,6 +13209,7 @@ var DhtDelivery = class DhtDelivery {
|
|
|
12956
13209
|
this.lastPublish = 0;
|
|
12957
13210
|
this.leavingUntil = mode === "stream" ? Date.now() + LEAVING_DHT_FAST_MS : 0;
|
|
12958
13211
|
if (mode === "dht") this.signalReads = 0;
|
|
13212
|
+
else if (this.state.peerMode === "dht") this.signalReads = 3;
|
|
12959
13213
|
this.changed();
|
|
12960
13214
|
});
|
|
12961
13215
|
this.tick();
|
|
@@ -13755,6 +14009,7 @@ var DhtDelivery = class DhtDelivery {
|
|
|
13755
14009
|
if (isDiscoveryBudgetError(error)) this.readHeld(error.retryInMs);
|
|
13756
14010
|
else if (readAt >= this.networkBackAt) this.errors.read = `Could not read DHT delivery: ${error instanceof Error ? error.message : String(error)}`;
|
|
13757
14011
|
}
|
|
14012
|
+
if (signal && this.readHeldUntil > 0) this.signalReads++;
|
|
13758
14013
|
if (this.state.peerMode !== "dht") this.signalReads = 0;
|
|
13759
14014
|
await this.publishOnTick();
|
|
13760
14015
|
this.changed();
|
|
@@ -13795,7 +14050,8 @@ var DhtDelivery = class DhtDelivery {
|
|
|
13795
14050
|
if (this.mode === "dht" || this.state.peerMode === "dht" && now < this.leavingUntil || now < this.fastUntil) return DHT_POLL_MS;
|
|
13796
14051
|
if (this.live) return LIVE_POLL_MS;
|
|
13797
14052
|
if (this.state.pending && this.state.pending.expires > now) return DHT_POLL_MS;
|
|
13798
|
-
|
|
14053
|
+
if (this.active) return ACTIVE_DHT_POLL_MS;
|
|
14054
|
+
return this.state.peerMode === "dht" && this.options.peerDhtPollMs ? Math.min(this.options.peerDhtPollMs, STREAM_POLL_MS) : STREAM_POLL_MS;
|
|
13799
14055
|
}
|
|
13800
14056
|
/**
|
|
13801
14057
|
* How long ago this side's invite was made (or joined), while nobody used it (or its inviter never answered,
|
|
@@ -15600,7 +15856,7 @@ async function verifyPeerProof(event, c, readStorage) {
|
|
|
15600
15856
|
if (sig.length !== 64 || !verify(sig, data, fromZ32(c.externalKey))) throw new Error("Invalid Pubky signature");
|
|
15601
15857
|
} else if (c.adapter === "keet-import") {
|
|
15602
15858
|
if (sig.length !== 107 || sig[0] !== 1 || sig[41] !== 0 || sig[42] !== 1) throw new Error("Unsupported Keet attestation");
|
|
15603
|
-
const { default: IdentityKey } = await import("./keet-identity-key-
|
|
15859
|
+
const { default: IdentityKey } = await import("./keet-identity-key-BT3p-YEj.js").then((m) => /* @__PURE__ */ __toESM(m.default, 1));
|
|
15604
15860
|
if (!IdentityKey.verify(b4a.from(sig), b4a.from(data), { expectedIdentity: b4a.from(unhex(c.externalKey)) })) throw new Error("Invalid Keet attestation");
|
|
15605
15861
|
} else throw new Error("Unsupported proof adapter");
|
|
15606
15862
|
}
|
|
@@ -16058,23 +16314,24 @@ function boundVerifiedIdentity(v) {
|
|
|
16058
16314
|
if (!isInt$2(v.expiresAt)) throw new Error("Provider returned an invalid expiry");
|
|
16059
16315
|
out.expiresAt = v.expiresAt;
|
|
16060
16316
|
}
|
|
16061
|
-
if (v.display)
|
|
16062
|
-
const d = v.display;
|
|
16063
|
-
const display = {
|
|
16064
|
-
source: clean$1(d.source, 120) ?? "Self-described",
|
|
16065
|
-
fetchedAt: isInt$2(d.fetchedAt) ? d.fetchedAt : nowSeconds()
|
|
16066
|
-
};
|
|
16067
|
-
const name = clean$1(d.name, 64);
|
|
16068
|
-
if (name) display.name = name;
|
|
16069
|
-
if (typeof d.avatar === "string" && d.avatar.length <= 49152 && /^data:image\/(png|jpeg);base64,[A-Za-z0-9+/=]+$/.test(d.avatar)) display.avatar = d.avatar;
|
|
16070
|
-
if (typeof d.url === "string" && d.url.length <= 512) try {
|
|
16071
|
-
const u = new URL(d.url);
|
|
16072
|
-
if (u.protocol === "https:" && !u.username && !u.password) display.url = u.href;
|
|
16073
|
-
} catch {}
|
|
16074
|
-
out.display = display;
|
|
16075
|
-
}
|
|
16317
|
+
if (v.display) out.display = boundIdentityDisplay(v.display);
|
|
16076
16318
|
return out;
|
|
16077
16319
|
}
|
|
16320
|
+
/** Bounds a provider's public name/picture (from a proof or `lookupDisplay`): a name with nothing visible left is dropped. */
|
|
16321
|
+
function boundIdentityDisplay(d) {
|
|
16322
|
+
const display = {
|
|
16323
|
+
source: clean$1(d.source, 120) ?? "Self-described",
|
|
16324
|
+
fetchedAt: isInt$2(d.fetchedAt) ? d.fetchedAt : nowSeconds()
|
|
16325
|
+
};
|
|
16326
|
+
const name = clean$1(d.name, 64);
|
|
16327
|
+
if (name) display.name = name;
|
|
16328
|
+
if (typeof d.avatar === "string" && d.avatar.length <= 49152 && /^data:image\/(png|jpeg);base64,[A-Za-z0-9+/=]+$/.test(d.avatar)) display.avatar = d.avatar;
|
|
16329
|
+
if (typeof d.url === "string" && d.url.length <= 512) try {
|
|
16330
|
+
const u = new URL(d.url);
|
|
16331
|
+
if (u.protocol === "https:" && !u.username && !u.password) display.url = u.href;
|
|
16332
|
+
} catch {}
|
|
16333
|
+
return display;
|
|
16334
|
+
}
|
|
16078
16335
|
var emptyIdentityLedger = () => ({
|
|
16079
16336
|
challenges: [],
|
|
16080
16337
|
shared: [],
|
|
@@ -16120,6 +16377,24 @@ var IdentityCheckUnavailable = class extends Error {
|
|
|
16120
16377
|
var IDENTITY_CHECK_UNAVAILABLE = "Your contact's app could not check it. Try again later.";
|
|
16121
16378
|
var TOO_MANY_RECEIVED = "Your contact keeps too many identities from you already";
|
|
16122
16379
|
var peerError = (e) => e instanceof IdentityCheckUnavailable ? IDENTITY_CHECK_UNAVAILABLE : shortError(e);
|
|
16380
|
+
var UNSUPPORTED_KIND = "Your contact's app cannot verify this kind of identity yet";
|
|
16381
|
+
var NOT_IN_PROFILE = "That identity is no longer in your profile";
|
|
16382
|
+
var CONTACT_REFUSED = "Your contact could not verify it";
|
|
16383
|
+
var EXPIRED = "The proof has expired";
|
|
16384
|
+
/** The refusals a contact's app writes itself (onRequest, onPresent): the only words of its `idp-result` kept as they came. */
|
|
16385
|
+
var CONTACT_REFUSALS = /* @__PURE__ */ new Set([
|
|
16386
|
+
UNSUPPORTED_KIND,
|
|
16387
|
+
IDENTITY_CHECK_UNAVAILABLE,
|
|
16388
|
+
TOO_MANY_RECEIVED,
|
|
16389
|
+
REVOKED,
|
|
16390
|
+
EXPIRED
|
|
16391
|
+
]);
|
|
16392
|
+
/**
|
|
16393
|
+
* Why a share of mine was not accepted, as this app may say it under my identity: one of the refusals above or my own
|
|
16394
|
+
* app's line; else nothing past "not verified". Any other words came from the contact (a ledger kept before this check)
|
|
16395
|
+
* and would read as this app's own notice.
|
|
16396
|
+
*/
|
|
16397
|
+
var identityRefusal = (error) => typeof error === "string" && (CONTACT_REFUSALS.has(error) || error === NOT_IN_PROFILE) ? error : void 0;
|
|
16123
16398
|
/**
|
|
16124
16399
|
* The `idp-*` exchange of one conversation. Frames (all JSON, additive, over the paired channel,
|
|
16125
16400
|
* only when both offers carry `identity-proof/1`):
|
|
@@ -16135,6 +16410,8 @@ var IdentityExchange = class {
|
|
|
16135
16410
|
options;
|
|
16136
16411
|
peerProviders;
|
|
16137
16412
|
requested = /* @__PURE__ */ new Set();
|
|
16413
|
+
/** The nonces of the presentations in their provider's check now. */
|
|
16414
|
+
checking = /* @__PURE__ */ new Set();
|
|
16138
16415
|
constructor(options) {
|
|
16139
16416
|
this.options = options;
|
|
16140
16417
|
}
|
|
@@ -16224,19 +16501,24 @@ var IdentityExchange = class {
|
|
|
16224
16501
|
}
|
|
16225
16502
|
/** Stop sharing here. The contact is told (now or on reconnect); a copy it kept cannot be erased. */
|
|
16226
16503
|
async withdraw(id, connected) {
|
|
16227
|
-
|
|
16504
|
+
let s = this.shared(id);
|
|
16228
16505
|
if (!s || s.status === "withdrawn") return;
|
|
16229
16506
|
this.requested.delete(id);
|
|
16230
16507
|
if (s.status === "queued") {
|
|
16231
|
-
|
|
16232
|
-
|
|
16233
|
-
|
|
16234
|
-
|
|
16235
|
-
|
|
16236
|
-
|
|
16237
|
-
|
|
16238
|
-
|
|
16239
|
-
|
|
16508
|
+
let answered;
|
|
16509
|
+
await this.options.storage.update((l) => {
|
|
16510
|
+
answered = l.shared.find((x) => x.id === id && x.status === "pending");
|
|
16511
|
+
return answered ? l : this.log({
|
|
16512
|
+
...l,
|
|
16513
|
+
shared: l.shared.filter((x) => x.id !== id)
|
|
16514
|
+
}, {
|
|
16515
|
+
type: "unsent",
|
|
16516
|
+
side: "mine",
|
|
16517
|
+
proof: id
|
|
16518
|
+
});
|
|
16519
|
+
});
|
|
16520
|
+
if (!answered) return;
|
|
16521
|
+
s = answered;
|
|
16240
16522
|
}
|
|
16241
16523
|
await this.setShared({
|
|
16242
16524
|
...s,
|
|
@@ -16334,12 +16616,21 @@ var IdentityExchange = class {
|
|
|
16334
16616
|
return;
|
|
16335
16617
|
case "idp-request": return await this.onRequest(id, frame.provider);
|
|
16336
16618
|
case "idp-challenge": return await this.onChallenge(id, frame.nonce, frame.issuedAt);
|
|
16337
|
-
case "idp-present":
|
|
16619
|
+
case "idp-present": {
|
|
16620
|
+
const nonce = typeof frame.nonce === "string" ? frame.nonce : "";
|
|
16621
|
+
if (this.checking.has(nonce)) throw new Error("Unknown or reused identity challenge");
|
|
16622
|
+
this.checking.add(nonce);
|
|
16623
|
+
try {
|
|
16624
|
+
return await this.onPresent(frame);
|
|
16625
|
+
} finally {
|
|
16626
|
+
this.checking.delete(nonce);
|
|
16627
|
+
}
|
|
16628
|
+
}
|
|
16338
16629
|
case "idp-result": {
|
|
16339
16630
|
const s = id ? this.shared(id) : void 0;
|
|
16340
16631
|
if (!s || s.status !== "pending") return;
|
|
16341
16632
|
const ok = frame.ok === true;
|
|
16342
|
-
const error = ok ? void 0 :
|
|
16633
|
+
const error = ok ? void 0 : typeof frame.error === "string" && CONTACT_REFUSALS.has(frame.error) ? frame.error : CONTACT_REFUSED;
|
|
16343
16634
|
const entry = {
|
|
16344
16635
|
...s,
|
|
16345
16636
|
status: ok ? "accepted" : "rejected",
|
|
@@ -16347,7 +16638,14 @@ var IdentityExchange = class {
|
|
|
16347
16638
|
error
|
|
16348
16639
|
};
|
|
16349
16640
|
const replaced = (x) => ok && x.status === "accepted" && x.provider === s.provider && x.subject === s.subject;
|
|
16350
|
-
await this.options.storage.update((l) => this.log({
|
|
16641
|
+
await this.options.storage.update((l) => l.shared.filter((x) => x.id !== s.id && replaced(x)).reduce((out, x) => this.log(out, {
|
|
16642
|
+
type: "stopped",
|
|
16643
|
+
side: "mine",
|
|
16644
|
+
proof: x.id,
|
|
16645
|
+
provider: x.provider,
|
|
16646
|
+
subject: x.subject,
|
|
16647
|
+
reason: "withdrawn"
|
|
16648
|
+
}), this.log({
|
|
16351
16649
|
...l,
|
|
16352
16650
|
shared: [...l.shared.filter((x) => x.id !== s.id).map((x) => replaced(x) ? {
|
|
16353
16651
|
...x,
|
|
@@ -16360,7 +16658,7 @@ var IdentityExchange = class {
|
|
|
16360
16658
|
proof: s.id,
|
|
16361
16659
|
ok,
|
|
16362
16660
|
error
|
|
16363
|
-
}));
|
|
16661
|
+
})));
|
|
16364
16662
|
return;
|
|
16365
16663
|
}
|
|
16366
16664
|
case "idp-withdraw": {
|
|
@@ -16410,11 +16708,12 @@ var IdentityExchange = class {
|
|
|
16410
16708
|
async onRequest(id, provider) {
|
|
16411
16709
|
if (!id) return;
|
|
16412
16710
|
if (typeof provider !== "string" || !this.options.providers().includes(provider)) {
|
|
16711
|
+
const error = UNSUPPORTED_KIND;
|
|
16413
16712
|
this.send({
|
|
16414
16713
|
t: "idp-result",
|
|
16415
16714
|
id,
|
|
16416
16715
|
ok: false,
|
|
16417
|
-
error
|
|
16716
|
+
error
|
|
16418
16717
|
});
|
|
16419
16718
|
return;
|
|
16420
16719
|
}
|
|
@@ -16453,7 +16752,7 @@ var IdentityExchange = class {
|
|
|
16453
16752
|
this.requested.delete(id);
|
|
16454
16753
|
const local = await this.options.localProof(id);
|
|
16455
16754
|
if (!local) {
|
|
16456
|
-
const error =
|
|
16755
|
+
const error = NOT_IN_PROFILE;
|
|
16457
16756
|
await this.setShared({
|
|
16458
16757
|
...s,
|
|
16459
16758
|
status: "rejected",
|
|
@@ -16470,12 +16769,24 @@ var IdentityExchange = class {
|
|
|
16470
16769
|
}
|
|
16471
16770
|
const scope = this.options.scope();
|
|
16472
16771
|
const sig = signIdentityPresentation(local.seed, id, scope, nonce, issuedAt);
|
|
16473
|
-
|
|
16474
|
-
|
|
16475
|
-
|
|
16476
|
-
|
|
16477
|
-
|
|
16772
|
+
let stopped = false;
|
|
16773
|
+
await this.options.storage.update((l) => {
|
|
16774
|
+
const x = l.shared.find((y) => y.id === id);
|
|
16775
|
+
if (!x || x.status !== "queued" && x.status !== "pending") {
|
|
16776
|
+
stopped = true;
|
|
16777
|
+
return l;
|
|
16778
|
+
}
|
|
16779
|
+
return {
|
|
16780
|
+
...l,
|
|
16781
|
+
shared: [...l.shared.filter((y) => y.id !== id), {
|
|
16782
|
+
...x,
|
|
16783
|
+
status: "pending",
|
|
16784
|
+
at: this.now(),
|
|
16785
|
+
error: void 0
|
|
16786
|
+
}]
|
|
16787
|
+
};
|
|
16478
16788
|
});
|
|
16789
|
+
if (stopped) return;
|
|
16479
16790
|
this.send({
|
|
16480
16791
|
t: "idp-present",
|
|
16481
16792
|
nonce,
|
|
@@ -16499,6 +16810,7 @@ var IdentityExchange = class {
|
|
|
16499
16810
|
let error;
|
|
16500
16811
|
/** The same, as this side's own timeline says it. */
|
|
16501
16812
|
let reason;
|
|
16813
|
+
/** Its owner withdrew the proof while this check ran: no result goes out (see below). */
|
|
16502
16814
|
let withdrawn = false;
|
|
16503
16815
|
try {
|
|
16504
16816
|
const mayReplace = (r) => r.binding.provider === binding.provider && (r.binding.subject === binding.subject || r.verified.subject === binding.subject);
|
|
@@ -16508,7 +16820,7 @@ var IdentityExchange = class {
|
|
|
16508
16820
|
if (!verifyIdentityPresentation(binding.key, sig, id, scope, nonce, issuedAt)) throw new Error("The proof key did not sign this conversation's challenge");
|
|
16509
16821
|
if (binding.issuedAt > now + 300) throw new Error("The proof is dated in the future");
|
|
16510
16822
|
const result = boundVerifiedIdentity(await this.options.verify(statement, evidence));
|
|
16511
|
-
if (Math.min(binding.expiresAt, result.expiresAt ?? Infinity) <= now) throw new Error(
|
|
16823
|
+
if (Math.min(binding.expiresAt, result.expiresAt ?? Infinity) <= now) throw new Error(EXPIRED);
|
|
16512
16824
|
if (await this.options.revoked?.(statement).catch(() => false)) throw new Error(REVOKED);
|
|
16513
16825
|
verified = result;
|
|
16514
16826
|
} catch (e) {
|
|
@@ -16519,6 +16831,11 @@ var IdentityExchange = class {
|
|
|
16519
16831
|
const challenge = challengeOf(l);
|
|
16520
16832
|
if (!challenge) throw new Error("Unknown or reused identity challenge");
|
|
16521
16833
|
const challenges = l.challenges.filter((c) => c.nonce !== nonce);
|
|
16834
|
+
withdrawn = !!challenge.withdrawn;
|
|
16835
|
+
if (withdrawn && (challenges.some((c) => c.id === challenge.id && !c.withdrawn) || l.received.some((r) => r.id === challenge.id && r.status !== "withdrawn" && r.status !== "revoked"))) return {
|
|
16836
|
+
...l,
|
|
16837
|
+
challenges
|
|
16838
|
+
};
|
|
16522
16839
|
const subject = verified?.subject;
|
|
16523
16840
|
if (verified && revokedHere(l.received, id)) {
|
|
16524
16841
|
verified = void 0;
|
|
@@ -16543,7 +16860,6 @@ var IdentityExchange = class {
|
|
|
16543
16860
|
...logged,
|
|
16544
16861
|
challenges
|
|
16545
16862
|
};
|
|
16546
|
-
withdrawn = !!challenge.withdrawn;
|
|
16547
16863
|
const record = {
|
|
16548
16864
|
id,
|
|
16549
16865
|
binding,
|
|
@@ -16556,11 +16872,18 @@ var IdentityExchange = class {
|
|
|
16556
16872
|
checkedAt: now,
|
|
16557
16873
|
status: withdrawn ? "withdrawn" : "verified"
|
|
16558
16874
|
};
|
|
16559
|
-
const kept = {
|
|
16875
|
+
const kept = l.received.filter((r) => r.id !== id && !received.includes(r) && r.binding.provider === binding.provider && r.verified.subject === subject && r.status !== "withdrawn" && r.status !== "revoked").reduce((out, r) => this.log(out, {
|
|
16876
|
+
type: "stopped",
|
|
16877
|
+
side: "theirs",
|
|
16878
|
+
proof: r.id,
|
|
16879
|
+
provider: r.binding.provider,
|
|
16880
|
+
subject: r.verified.subject,
|
|
16881
|
+
reason: "withdrawn"
|
|
16882
|
+
}), {
|
|
16560
16883
|
...logged,
|
|
16561
16884
|
challenges,
|
|
16562
16885
|
received: [...received, record]
|
|
16563
|
-
};
|
|
16886
|
+
});
|
|
16564
16887
|
return withdrawn ? this.log(kept, {
|
|
16565
16888
|
type: "stopped",
|
|
16566
16889
|
side: "theirs",
|
|
@@ -19594,6 +19917,15 @@ function decodeFileData(message) {
|
|
|
19594
19917
|
data: message.subarray(body)
|
|
19595
19918
|
};
|
|
19596
19919
|
}
|
|
19920
|
+
/**
|
|
19921
|
+
* Why a received file could not be stored, as its record says it. A storage with no room left is told by the error's
|
|
19922
|
+
* name, `QuotaExceededError` (IndexedDB's, the OPFS worker's, the CLI's), never by its words: each storage words it
|
|
19923
|
+
* its own way, and Chromium's own has no message at all. The app reads that name as "no room here" (errorText.ts).
|
|
19924
|
+
*/
|
|
19925
|
+
function storeFailure(error) {
|
|
19926
|
+
const message = (error instanceof Error ? error.message : String(error)).trim();
|
|
19927
|
+
return `Could not store the file: ${error?.name === "QuotaExceededError" && !message.startsWith("QuotaExceededError") ? `QuotaExceededError${message ? `: ${message}` : ""}` : message}`;
|
|
19928
|
+
}
|
|
19597
19929
|
/** What a refusal means to the sender's person. */
|
|
19598
19930
|
function refusalText(why, room) {
|
|
19599
19931
|
switch (why) {
|
|
@@ -20083,7 +20415,7 @@ var ChatFiles = class {
|
|
|
20083
20415
|
this.armNudge(entry);
|
|
20084
20416
|
}, (error) => {
|
|
20085
20417
|
incoming.starting = false;
|
|
20086
|
-
this.end(entry, "failed",
|
|
20418
|
+
this.end(entry, "failed", storeFailure(error));
|
|
20087
20419
|
this.send({
|
|
20088
20420
|
t: "pf-refuse",
|
|
20089
20421
|
id: entry.record.id,
|
|
@@ -20377,7 +20709,7 @@ var ChatFiles = class {
|
|
|
20377
20709
|
if (incoming.stored - incoming.checkpointed >= FILE_LIMITS.checkpointBytes) await this.checkpointNow(entry);
|
|
20378
20710
|
}).catch((error) => {
|
|
20379
20711
|
if (transferEnded(record)) return;
|
|
20380
|
-
this.end(entry, "failed",
|
|
20712
|
+
this.end(entry, "failed", storeFailure(error));
|
|
20381
20713
|
target.then((t) => t.discard()).catch(() => {});
|
|
20382
20714
|
this.send({
|
|
20383
20715
|
t: "pf-refuse",
|
|
@@ -20676,6 +21008,28 @@ var ChatFiles = class {
|
|
|
20676
21008
|
});
|
|
20677
21009
|
this.startNext();
|
|
20678
21010
|
}
|
|
21011
|
+
/**
|
|
21012
|
+
* An offer taken here whose record or message the host could not store: refused, so its sender does not count it
|
|
21013
|
+
* delivered and keeps its Retry, and forgotten, so that retry is a new offer here. Nothing of it is reported changed
|
|
21014
|
+
* (there is nothing to write it to); what was stored of it is removed.
|
|
21015
|
+
*/
|
|
21016
|
+
refuse(id, why) {
|
|
21017
|
+
const entry = this.entries.get(key("in", id));
|
|
21018
|
+
if (!entry || transferEnded(entry.record)) return;
|
|
21019
|
+
this.entries.delete(key("in", id));
|
|
21020
|
+
const incoming = entry.in;
|
|
21021
|
+
entry.record.state = "failed";
|
|
21022
|
+
clearTimeout(incoming.timer);
|
|
21023
|
+
clearTimeout(incoming.ackTimer);
|
|
21024
|
+
incoming.dropped = true;
|
|
21025
|
+
incoming.writing.then(() => incoming.target?.then((t) => t.discard())).catch(() => {});
|
|
21026
|
+
this.send({
|
|
21027
|
+
t: "pf-refuse",
|
|
21028
|
+
id,
|
|
21029
|
+
why
|
|
21030
|
+
});
|
|
21031
|
+
this.startNext();
|
|
21032
|
+
}
|
|
20679
21033
|
pause(direction, id) {
|
|
20680
21034
|
const entry = this.entry(direction, id), { record } = entry;
|
|
20681
21035
|
if (transferEnded(record) || record.state === "verifying" || record.state === "paused" && record.pausedBy === "me") return;
|
|
@@ -22418,6 +22772,13 @@ function pairedMessageFits(ts, m, reply, forwarded, card) {
|
|
|
22418
22772
|
return pairedMessageFrame("A".repeat(22), ts, m, void 0, reply, forwarded, card).length <= SESSION_FRAME_MAX;
|
|
22419
22773
|
}
|
|
22420
22774
|
/**
|
|
22775
|
+
* The `paired-edit` frame of this edit fits a session, as `pairedMessageFits` says of a text's: an edit within 16 KiB
|
|
22776
|
+
* can pass it the same way, and the contact's session ends on it each time it is said again.
|
|
22777
|
+
*/
|
|
22778
|
+
function pairedEditFits(edit) {
|
|
22779
|
+
return editFrame(edit).length <= SESSION_FRAME_MAX;
|
|
22780
|
+
}
|
|
22781
|
+
/**
|
|
22421
22782
|
* A native descriptor from the contact's capability record against the one known (a session's, or an older record's).
|
|
22422
22783
|
* The record carries only how to dial, never an address: the Iroh endpoint id and the relay it is homed on, the
|
|
22423
22784
|
* HyperDHT key and the relay a browser's goes through. For the same endpoint, a known Iroh descriptor keeps its
|
|
@@ -22745,14 +23106,20 @@ var GhostLink = class {
|
|
|
22745
23106
|
/** A signal ready to go: on the live session during a switch to WebRTC, in this side's packet otherwise. */
|
|
22746
23107
|
signalOut(signed, report) {
|
|
22747
23108
|
if (this.switcher?.pending?.choices.includes("webrtc/1") && this.channel && this.paired?.state.status === "ready") {
|
|
22748
|
-
if (signed)
|
|
22749
|
-
|
|
22750
|
-
|
|
22751
|
-
|
|
23109
|
+
if (signed) {
|
|
23110
|
+
this.channel.send(JSON.stringify({
|
|
23111
|
+
t: "paired-rtc",
|
|
23112
|
+
signal: signed
|
|
23113
|
+
}));
|
|
23114
|
+
this.rtcViaChannel = true;
|
|
23115
|
+
}
|
|
22752
23116
|
return;
|
|
22753
23117
|
}
|
|
23118
|
+
if (!signed) this.rtcViaChannel = false;
|
|
22754
23119
|
this.session.setRtcSignal(signed, !!this.options.params.profile).catch(report);
|
|
22755
23120
|
}
|
|
23121
|
+
/** A WebRTC signal of this attempt went over the authenticated channel (a migration), not the relays. */
|
|
23122
|
+
rtcViaChannel = false;
|
|
22756
23123
|
/** This app is going away (`depart`): no more dials. */
|
|
22757
23124
|
leaving = false;
|
|
22758
23125
|
/** `resume` still to act on: the first dial after the start goes to it, and a native one is knocked on. */
|
|
@@ -22807,6 +23174,7 @@ var GhostLink = class {
|
|
|
22807
23174
|
save: options.dht.save,
|
|
22808
23175
|
pollMs: options.dht.pollMs,
|
|
22809
23176
|
firstControlAfterMs: options.dht.firstControlAfterMs,
|
|
23177
|
+
...options.dht.peerDhtPollMs && { peerDhtPollMs: options.dht.peerDhtPollMs },
|
|
22810
23178
|
...backsOff && { inviteMadeAt: options.madeAt ?? Date.now() },
|
|
22811
23179
|
capsRev: options.dht.capsRev,
|
|
22812
23180
|
peerCapsRev: options.dht.peerCapsRev,
|
|
@@ -22971,6 +23339,9 @@ var GhostLink = class {
|
|
|
22971
23339
|
onPeerClock: (packetAt, readBefore, readAt) => events.onPeerClock?.(packetAt, readBefore, readAt),
|
|
22972
23340
|
onPeerTransports: (value) => this.peerPacketTransports(value),
|
|
22973
23341
|
onPeerTransportsGone: () => this.peerPacketTransportsGone(),
|
|
23342
|
+
onPeerTransportsUnsaid: (unsaid) => {
|
|
23343
|
+
if (options.packetTransports && !this.stopped) events.onPacketTransportsUnsaid?.(unsaid);
|
|
23344
|
+
},
|
|
22974
23345
|
onDiscoveryError: (error) => events.onDiscoveryError?.(error),
|
|
22975
23346
|
onStatus: (status) => events.onStatus?.(status),
|
|
22976
23347
|
onPoll: (poll) => events.onPoll?.(poll)
|
|
@@ -23022,6 +23393,7 @@ var GhostLink = class {
|
|
|
23022
23393
|
offerStanding: (ts) => !this.leaving && !this.stopped && !this.streamBlocked && this.peerOfferTs() === ts,
|
|
23023
23394
|
onAnswerReplaced: () => this.redial(),
|
|
23024
23395
|
onDirect: (evidence) => events.onDirectEvidence?.(evidence),
|
|
23396
|
+
signalOut: () => this.rtcViaChannel || this.session.rtcSignalPublished,
|
|
23025
23397
|
onAnswersRefused: () => this.answersRefused(),
|
|
23026
23398
|
onOpen: (channel) => {
|
|
23027
23399
|
if (this.streamBlocked || this.keyStopped) {
|
|
@@ -23038,7 +23410,9 @@ var GhostLink = class {
|
|
|
23038
23410
|
if (this.activeBinding) return;
|
|
23039
23411
|
const wasLive = !!this.channel && this.paired?.state.status === "ready";
|
|
23040
23412
|
this.detach();
|
|
23041
|
-
if (wasLive)
|
|
23413
|
+
if (!wasLive) return;
|
|
23414
|
+
if (this.dataLink.state === "idle" && this.awaitsContactDial()) this.resumeAfterAbsence();
|
|
23415
|
+
this.peerLost("closed");
|
|
23042
23416
|
},
|
|
23043
23417
|
onState: (state) => {
|
|
23044
23418
|
const was = this.lastDataLinkState;
|
|
@@ -23069,6 +23443,12 @@ var GhostLink = class {
|
|
|
23069
23443
|
if (this.offered?.epoch === this.connectionEpoch) this.scheduleRace(this.offered.epoch, this.offered.at);
|
|
23070
23444
|
if (options.packetTransports) setTimeout(() => {
|
|
23071
23445
|
if (this.answeredAt !== answeredAt || this.channel || this.stopped || this.dataLink.state !== "connecting") return;
|
|
23446
|
+
if (this.dataLink.answerLate) {
|
|
23447
|
+
traceLink(this.myPubKeyZ32, "rtc-stalled", { late: true });
|
|
23448
|
+
this.dataLink.abandon();
|
|
23449
|
+
this.redial();
|
|
23450
|
+
return;
|
|
23451
|
+
}
|
|
23072
23452
|
traceLink(this.myPubKeyZ32, "rtc-stalled", {});
|
|
23073
23453
|
events.onRtcStalled?.();
|
|
23074
23454
|
}, RACE_ANSWERED_MS);
|
|
@@ -23180,7 +23560,7 @@ var GhostLink = class {
|
|
|
23180
23560
|
const tracker = this.tracker;
|
|
23181
23561
|
if (!tracker || tracker.done) return;
|
|
23182
23562
|
if (state === "answering") tracker.offerReceived();
|
|
23183
|
-
else if (state === "connecting" && was === "offering") tracker.answerReceived();
|
|
23563
|
+
else if ((state === "connecting" || state === "open") && was === "offering") tracker.answerReceived();
|
|
23184
23564
|
else if (state === "idle") {
|
|
23185
23565
|
if (was === "offering") tracker.failed("timeout", true);
|
|
23186
23566
|
else if (was === "answering" || was === "connecting") tracker.failed("transport", true);
|
|
@@ -23255,7 +23635,7 @@ var GhostLink = class {
|
|
|
23255
23635
|
traceLink(this.myPubKeyZ32, "unblocked", { held: !!this.heldSignal });
|
|
23256
23636
|
this.autoConnectFailures = 0;
|
|
23257
23637
|
this.lastAutoConnectAt = 0;
|
|
23258
|
-
this.session.expectPeer();
|
|
23638
|
+
this.session.expectPeer(false, true);
|
|
23259
23639
|
const held = this.heldSignal;
|
|
23260
23640
|
this.heldSignal = null;
|
|
23261
23641
|
if (held) this.handleRtcSignal(held.signal, held.sight);
|
|
@@ -25559,6 +25939,7 @@ var GhostLink = class {
|
|
|
25559
25939
|
if (this.channel && this.isDataLinkOpen) {
|
|
25560
25940
|
if (!this.supportsEdits) return "Your contact's app does not show edits yet";
|
|
25561
25941
|
if (!edit.rm && !validEditNumber(edit.e) && !(edit.sc && this.supportsStatusCards)) return "Your contact's app takes no more edits of this message";
|
|
25942
|
+
if (!pairedEditFits(edit)) return PAIRED_FRAME_TOO_LARGE;
|
|
25562
25943
|
try {
|
|
25563
25944
|
this.channel.send(editFrame(edit));
|
|
25564
25945
|
return null;
|
|
@@ -27260,6 +27641,7 @@ var GhostLink = class {
|
|
|
27260
27641
|
if (!this.candidate) {
|
|
27261
27642
|
this.cancelCandidate();
|
|
27262
27643
|
this.switcher.stop();
|
|
27644
|
+
this.transitionTarget = this.transitionError = void 0;
|
|
27263
27645
|
}
|
|
27264
27646
|
this.activeBinding = void 0;
|
|
27265
27647
|
this.paired?.stop();
|
|
@@ -27668,6 +28050,54 @@ var HEIF_METADATA_ITEMS = /* @__PURE__ */ new Set([
|
|
|
27668
28050
|
"mime",
|
|
27669
28051
|
"uri "
|
|
27670
28052
|
]);
|
|
28053
|
+
/**
|
|
28054
|
+
* Item properties that only draw the picture: the codec's configuration (HEVC, AV1, AVC, VVC, JPEG, JPEG 2000,
|
|
28055
|
+
* uncompressed and its components, layered HEVC with its operating points and layers), the size (`ispe`), the bits
|
|
28056
|
+
* per channel (`pixi`), colour (`colr`, its light levels and display volumes `clli`, `mdcv`, `cclv`, `amve`), geometry
|
|
28057
|
+
* (`irot`, `imir`, `clap`, `pasp`, `rloc`, `iscl`), what an auxiliary image is (`auxC`: alpha, depth, a gain map), and
|
|
28058
|
+
* AV1's operating point and layers (`a1op`, `a1lx`).
|
|
28059
|
+
*/
|
|
28060
|
+
var HEIF_DRAWS = /* @__PURE__ */ new Set([
|
|
28061
|
+
"hvcC",
|
|
28062
|
+
"av1C",
|
|
28063
|
+
"avcC",
|
|
28064
|
+
"vvcC",
|
|
28065
|
+
"jpgC",
|
|
28066
|
+
"j2kH",
|
|
28067
|
+
"uncC",
|
|
28068
|
+
"cmpd",
|
|
28069
|
+
"lhvC",
|
|
28070
|
+
"oinf",
|
|
28071
|
+
"tols",
|
|
28072
|
+
"lsel",
|
|
28073
|
+
"ispe",
|
|
28074
|
+
"pixi",
|
|
28075
|
+
"colr",
|
|
28076
|
+
"clli",
|
|
28077
|
+
"mdcv",
|
|
28078
|
+
"cclv",
|
|
28079
|
+
"amve",
|
|
28080
|
+
"irot",
|
|
28081
|
+
"imir",
|
|
28082
|
+
"clap",
|
|
28083
|
+
"pasp",
|
|
28084
|
+
"rloc",
|
|
28085
|
+
"iscl",
|
|
28086
|
+
"auxC",
|
|
28087
|
+
"a1op",
|
|
28088
|
+
"a1lx"
|
|
28089
|
+
]);
|
|
28090
|
+
/** Item properties about the picture: its user description (name, description, tags), accessibility text, creation and modification times, TAI clock and timestamp; and `free`, `skip`. */
|
|
28091
|
+
var HEIF_ABOUT = /* @__PURE__ */ new Set([
|
|
28092
|
+
"udes",
|
|
28093
|
+
"altt",
|
|
28094
|
+
"crtt",
|
|
28095
|
+
"mdft",
|
|
28096
|
+
"taic",
|
|
28097
|
+
"itai",
|
|
28098
|
+
"free",
|
|
28099
|
+
"skip"
|
|
28100
|
+
]);
|
|
27671
28101
|
function boxes$1(b, start, end) {
|
|
27672
28102
|
const found = [];
|
|
27673
28103
|
for (let at = start; at < end;) {
|
|
@@ -27719,8 +28149,16 @@ function stripHeif(b) {
|
|
|
27719
28149
|
check$1(at + 6 <= infe.end);
|
|
27720
28150
|
if (HEIF_METADATA_ITEMS.has(text$1(b, at + 2, 4))) metadata.add(id);
|
|
27721
28151
|
}
|
|
27722
|
-
|
|
27723
|
-
|
|
28152
|
+
const iprp = one("iprp"), properties = [];
|
|
28153
|
+
if (iprp) {
|
|
28154
|
+
const held = boxes$1(b, iprp.body, iprp.end);
|
|
28155
|
+
const ipco = held.filter((box) => box.type === "ipco");
|
|
28156
|
+
check$1(ipco.length === 1 && held.every((box) => box.type === "ipco" || box.type === "ipma"));
|
|
28157
|
+
properties.push(...boxes$1(b, ipco[0].body, ipco[0].end));
|
|
28158
|
+
check$1(properties.every((box) => HEIF_DRAWS.has(box.type) || HEIF_ABOUT.has(box.type)));
|
|
28159
|
+
}
|
|
28160
|
+
/** `free` and `skip` boxes, at the top and in `meta`, and the properties about the picture: their bodies go as zeros. */
|
|
28161
|
+
const space = [...[...top, ...children].filter((box) => box.type === "free" || box.type === "skip"), ...properties.filter((box) => HEIF_ABOUT.has(box.type))];
|
|
27724
28162
|
const out = b.slice();
|
|
27725
28163
|
const version = b[iloc.body];
|
|
27726
28164
|
check$1(version <= 2);
|
|
@@ -28058,7 +28496,9 @@ var VIDEO_METADATA_LIMITS = {
|
|
|
28058
28496
|
/** The most top-level boxes walked (a fragmented MP4 has two per fragment). */
|
|
28059
28497
|
maxBoxes: 1e5,
|
|
28060
28498
|
/** Bytes read first to tell a video from another file. */
|
|
28061
|
-
headBytes: 64
|
|
28499
|
+
headBytes: 64,
|
|
28500
|
+
/** Bytes read at once for a box's header or a small box, so the next headers and `moof`s are read with it. */
|
|
28501
|
+
readAhead: 65536
|
|
28062
28502
|
};
|
|
28063
28503
|
/** Why a video is refused: its metadata could not be removed, so it does not go at all. */
|
|
28064
28504
|
var NO_VIDEO_METADATA = "This video cannot be sent: Ghostly could not remove the details saved in it, like where it was recorded";
|
|
@@ -28399,8 +28839,8 @@ function selfContained(b, minf) {
|
|
|
28399
28839
|
}
|
|
28400
28840
|
/**
|
|
28401
28841
|
* `moov` with its metadata boxes emptied and its headers' times zeroed, read whole: whether it has a video track, the
|
|
28402
|
-
* byte ranges of its metadata and timecode tracks' samples (zeroed by the caller where they are), whether a
|
|
28403
|
-
*
|
|
28842
|
+
* byte ranges of its metadata and timecode tracks' samples (zeroed by the caller where they are), whether it has a
|
|
28843
|
+
* metadata or timecode track, and every track's sample table.
|
|
28404
28844
|
*/
|
|
28405
28845
|
function stripMoov(b) {
|
|
28406
28846
|
let video = false, fragmented = false, metadata = false;
|
|
@@ -28441,11 +28881,12 @@ function stripMoov(b) {
|
|
|
28441
28881
|
tables.push(stbl);
|
|
28442
28882
|
if (handler === "meta") {
|
|
28443
28883
|
check(selfContained(b, minf));
|
|
28444
|
-
|
|
28445
|
-
|
|
28446
|
-
|
|
28447
|
-
|
|
28448
|
-
|
|
28884
|
+
metadata = true;
|
|
28885
|
+
for (const range of sampleRanges(b, stbl)) zeroed.push(range);
|
|
28886
|
+
} else if (handler === "tmcd" && selfContained(b, minf)) {
|
|
28887
|
+
metadata = true;
|
|
28888
|
+
for (const range of sampleRanges(b, stbl)) zeroed.push(range);
|
|
28889
|
+
} else check(HANDLERS.has(handler));
|
|
28449
28890
|
if (handler === "vide") video = true;
|
|
28450
28891
|
if (VISUAL.has(handler)) zeroCompressorNames(b, stbl);
|
|
28451
28892
|
emptyWithin(b, box.body, box.end);
|
|
@@ -28471,6 +28912,26 @@ function meets(ranges, start, end) {
|
|
|
28471
28912
|
}
|
|
28472
28913
|
return low < ranges.length && ranges[low][0] < end;
|
|
28473
28914
|
}
|
|
28915
|
+
/**
|
|
28916
|
+
* `source` read a window at a time: a read that fits in `readAhead` bytes reads that many from where it starts, and
|
|
28917
|
+
* the reads after it within them (the next boxes' headers, a fragment's `moof`) are served from it, as copies (they
|
|
28918
|
+
* are changed in place). A Blob's read costs about the same whatever its size, so a fragment costs one, not three.
|
|
28919
|
+
*/
|
|
28920
|
+
function readingAhead(source) {
|
|
28921
|
+
let start = 0, window = /* @__PURE__ */ new Uint8Array(0);
|
|
28922
|
+
return {
|
|
28923
|
+
size: source.size,
|
|
28924
|
+
async read(offset, length) {
|
|
28925
|
+
const end = start + window.length;
|
|
28926
|
+
if (offset < start || offset + length > end && end < source.size) {
|
|
28927
|
+
if (length > VIDEO_METADATA_LIMITS.readAhead) return source.read(offset, length);
|
|
28928
|
+
start = offset;
|
|
28929
|
+
window = await source.read(offset, VIDEO_METADATA_LIMITS.readAhead);
|
|
28930
|
+
}
|
|
28931
|
+
return window.slice(offset - start, offset - start + length);
|
|
28932
|
+
}
|
|
28933
|
+
};
|
|
28934
|
+
}
|
|
28474
28935
|
/** A whole box's header in the file at `at`, read from it; undefined where none fits (bytes after the last box). */
|
|
28475
28936
|
async function headerAt(source, at) {
|
|
28476
28937
|
const head = await source.read(at, 16);
|
|
@@ -28525,7 +28986,8 @@ async function withoutVideoMetadata(source, mime) {
|
|
|
28525
28986
|
* the parts replaced, in order and apart, the rest of its bytes going as they are; undefined when it goes as it is.
|
|
28526
28987
|
* Throws `NO_VIDEO_METADATA` as it does.
|
|
28527
28988
|
*/
|
|
28528
|
-
async function videoMetadataPatches(
|
|
28989
|
+
async function videoMetadataPatches(file, mime) {
|
|
28990
|
+
const source = readingAhead(file);
|
|
28529
28991
|
const head = await source.read(0, VIDEO_METADATA_LIMITS.headBytes);
|
|
28530
28992
|
const typed = STRIPPED_TYPES.has(mime.split(";")[0].trim().toLowerCase());
|
|
28531
28993
|
const container = containerOf(head, mime);
|
|
@@ -32758,7 +33220,16 @@ var GROUP_LIMITS = {
|
|
|
32758
33220
|
/** A received message is in the saved state within this long (`persistSoon`): a burst of them is one save, not one each. */
|
|
32759
33221
|
saveWithinMs: 1e3,
|
|
32760
33222
|
/** New name records of one member taken in `syncWindowMs` (WISP 902 § Messages, "The name record"): one a rename. */
|
|
32761
|
-
namesPerMember: 4
|
|
33223
|
+
namesPerMember: 4,
|
|
33224
|
+
/**
|
|
33225
|
+
* Messages of one member taken per `messageWindowMs`, and the bytes of their frames, past a burst of twice its whole
|
|
33226
|
+
* log (`AuthorPace`); its edits the same, counted apart. As a community's (`COMMUNITY_LIMITS.messagesPerAuthor`): each
|
|
33227
|
+
* one taken is a row in every member's app and a frame each hub passes on. The rest are not taken now and come again
|
|
33228
|
+
* in a catch-up.
|
|
33229
|
+
*/
|
|
33230
|
+
messagesPerAuthor: 30,
|
|
33231
|
+
messageBytesPerAuthor: 131072,
|
|
33232
|
+
messageWindowMs: 1e4
|
|
32762
33233
|
};
|
|
32763
33234
|
/** What every member should know about who can read what, in the words the apps show. */
|
|
32764
33235
|
var GROUP_READ_NOTE = `Everyone in the group can read everything sent while they are a member. Someone removed keeps what they already received and cannot read what comes after; someone who joins later cannot read what came before. Messages go to each member; whoever was away gets what they missed from any member who has it (the group's last ${GROUP_LIMITS.relay} messages) when they meet again.`;
|
|
@@ -32767,6 +33238,33 @@ var GROUP_READ_NOTE = `Everyone in the group can read everything sent while they
|
|
|
32767
33238
|
* answer: slices go one after another, each once my app handled the last (`CATCH_UP_PAUSE_MS` at most between them).
|
|
32768
33239
|
*/
|
|
32769
33240
|
var ANSWER_WINDOW_MS$1 = 5e3;
|
|
33241
|
+
/**
|
|
33242
|
+
* One member's messages (or edits) taken: its whole log handed back at once twice over (`AUTHOR_BURST`: an edge opening
|
|
33243
|
+
* hears it, with what the member says live beside it, and the edits its app says again), then
|
|
33244
|
+
* `GROUP_LIMITS.messagesPerAuthor` and `messageBytesPerAuthor` per `messageWindowMs`, as a community's `MessagePace`.
|
|
33245
|
+
* One not taken is neither seen nor kept nor passed on, so a sync still names it (`miss`) and a catch-up hands it again.
|
|
33246
|
+
* What another member hands on in its answer to my sync is not counted: it took each at its author's pace already, and
|
|
33247
|
+
* a catch-up holds many.
|
|
33248
|
+
*/
|
|
33249
|
+
var AUTHOR_BURST = {
|
|
33250
|
+
frames: 2 * GROUP_LIMITS.outlog,
|
|
33251
|
+
bytes: 2 * GROUP_LIMITS.outlogBytes
|
|
33252
|
+
};
|
|
33253
|
+
var AuthorPace = class {
|
|
33254
|
+
frames = AUTHOR_BURST.frames;
|
|
33255
|
+
bytes = AUTHOR_BURST.bytes;
|
|
33256
|
+
at;
|
|
33257
|
+
take(bytes, now) {
|
|
33258
|
+
const elapsed = Math.max(0, now - (this.at ?? now)) / GROUP_LIMITS.messageWindowMs;
|
|
33259
|
+
this.at = now;
|
|
33260
|
+
this.frames = Math.min(AUTHOR_BURST.frames, this.frames + elapsed * GROUP_LIMITS.messagesPerAuthor);
|
|
33261
|
+
this.bytes = Math.min(AUTHOR_BURST.bytes, this.bytes + elapsed * GROUP_LIMITS.messageBytesPerAuthor);
|
|
33262
|
+
if (this.frames < 1 || this.bytes < bytes) return false;
|
|
33263
|
+
this.frames -= 1;
|
|
33264
|
+
this.bytes -= bytes;
|
|
33265
|
+
return true;
|
|
33266
|
+
}
|
|
33267
|
+
};
|
|
32770
33268
|
var MAX_TEXT_BOX$1 = Math.ceil((GROUP_LIMITS.textBytes + 16) * 4 / 3) + 4;
|
|
32771
33269
|
/** Sixteen mentions as JSON, each a key and two offsets, with room to spare, sealed. */
|
|
32772
33270
|
var MAX_MENTIONS_BOX = Math.ceil((MENTION_LIMITS.count * 96 + 16) * 4 / 3) + 4;
|
|
@@ -33137,6 +33635,9 @@ var GroupSession = class {
|
|
|
33137
33635
|
nameSaid;
|
|
33138
33636
|
/** New name records taken per member, a few a minute (`GROUP_LIMITS.namesPerMember`). In memory only. */
|
|
33139
33637
|
namesTaken = /* @__PURE__ */ new Map();
|
|
33638
|
+
/** Messages, and apart from them edits, taken per author (`AuthorPace`). In memory only. */
|
|
33639
|
+
messagePace = /* @__PURE__ */ new Map();
|
|
33640
|
+
editPace = /* @__PURE__ */ new Map();
|
|
33140
33641
|
queue = Promise.resolve();
|
|
33141
33642
|
/** One metadata frame that names a commit or an epoch I do not have yet: tried again when the chain moves. */
|
|
33142
33643
|
pendingMeta;
|
|
@@ -33318,6 +33819,24 @@ var GroupSession = class {
|
|
|
33318
33819
|
get admin() {
|
|
33319
33820
|
return rosterAdmin(this.roster);
|
|
33320
33821
|
}
|
|
33822
|
+
/**
|
|
33823
|
+
* The roster in the order its members were last admitted, the creator first (WISP 902 § Transports, the edge a
|
|
33824
|
+
* member keeps): every member holding the same chain reads the same order, and a member reads everyone admitted
|
|
33825
|
+
* before it from its welcome. Kept for the current top commit.
|
|
33826
|
+
*/
|
|
33827
|
+
get admissionOrder() {
|
|
33828
|
+
const top = this.top;
|
|
33829
|
+
if (this.admissionCache?.top === top) return this.admissionCache.order;
|
|
33830
|
+
const chain = this.state.chain, at = /* @__PURE__ */ new Map();
|
|
33831
|
+
for (let e = 1; e < chain.length; e++) if (chain[e].k === "add" && chain[e].s) at.set(chain[e].s, e);
|
|
33832
|
+
const order = this.roster.map(([key]) => key).sort((a, b) => (at.get(a) ?? 0) - (at.get(b) ?? 0) || (a < b ? -1 : a > b ? 1 : 0));
|
|
33833
|
+
this.admissionCache = {
|
|
33834
|
+
top,
|
|
33835
|
+
order
|
|
33836
|
+
};
|
|
33837
|
+
return order;
|
|
33838
|
+
}
|
|
33839
|
+
admissionCache;
|
|
33321
33840
|
get isAdmin() {
|
|
33322
33841
|
return this.admin === this.myKey && this.state.status === "active";
|
|
33323
33842
|
}
|
|
@@ -33677,16 +34196,29 @@ var GroupSession = class {
|
|
|
33677
34196
|
return false;
|
|
33678
34197
|
}
|
|
33679
34198
|
}
|
|
33680
|
-
/**
|
|
34199
|
+
/**
|
|
34200
|
+
* Another member's edit, kept to hand on: the latest per message. Full (in count or in bytes), the oldest of the author
|
|
34201
|
+
* who holds the most of it goes (the one just kept's own on a tie): an author's edits of messages that are not there,
|
|
34202
|
+
* which no keeper can tell (a hub cannot even open them), as many as it likes, push out only its own. False: one as
|
|
34203
|
+
* new was kept, or this one went.
|
|
34204
|
+
*/
|
|
33681
34205
|
keepEdit(frame) {
|
|
33682
34206
|
const same = (f) => f.s === frame.s && f.e === frame.e && f.n === frame.n;
|
|
33683
34207
|
const log = this.state.relayEdits ?? [];
|
|
33684
34208
|
if (log.some((f) => same(f) && f.v >= frame.v)) return false;
|
|
33685
|
-
const
|
|
34209
|
+
const kept = cleanEdit(frame);
|
|
34210
|
+
const next = [...log.filter((f) => !same(f)), kept];
|
|
33686
34211
|
let bytes = next.reduce((sum, f) => sum + f.c.length, 0);
|
|
33687
|
-
while (next.length > GROUP_LIMITS.relayEdits || bytes > GROUP_LIMITS.relayEditBytes)
|
|
34212
|
+
while (next.length > GROUP_LIMITS.relayEdits || bytes > GROUP_LIMITS.relayEditBytes) {
|
|
34213
|
+
const byCount = next.length > GROUP_LIMITS.relayEdits;
|
|
34214
|
+
const held = /* @__PURE__ */ new Map();
|
|
34215
|
+
for (const f of next) held.set(f.s, (held.get(f.s) ?? 0) + (byCount ? 1 : f.c.length));
|
|
34216
|
+
let most = frame.s;
|
|
34217
|
+
for (const [author, amount] of held) if (amount > held.get(most)) most = author;
|
|
34218
|
+
bytes -= next.splice(next.findIndex((f) => f.s === most), 1)[0].c.length;
|
|
34219
|
+
}
|
|
33688
34220
|
this.state.relayEdits = next;
|
|
33689
|
-
return
|
|
34221
|
+
return next.includes(kept);
|
|
33690
34222
|
}
|
|
33691
34223
|
/** A frame of another member, kept to hand on; the oldest go once the log is full. */
|
|
33692
34224
|
keep(frame) {
|
|
@@ -34084,7 +34616,8 @@ var GroupSession = class {
|
|
|
34084
34616
|
/**
|
|
34085
34617
|
* Says an edit of one of my messages (WISP 902 § Edits): edit `v`, the whole new text and its mentions, sealed under
|
|
34086
34618
|
* the key of the message's epoch and signed, to every member of that epoch still in the group, or to `to` alone (an
|
|
34087
|
-
* edge that just opened). Someone admitted after the message cannot open it and is not sent it
|
|
34619
|
+
* edge that just opened). Someone admitted after the message cannot open it and is not sent it, but a hub I count on
|
|
34620
|
+
* (`hooks.carriers`), which carries it on to the members who can. The message's
|
|
34088
34621
|
* epoch key must still be here: past `GROUP_LIMITS.secrets` epochs a message cannot be edited.
|
|
34089
34622
|
*/
|
|
34090
34623
|
sendEdit(messageId, edit, to) {
|
|
@@ -34109,6 +34642,7 @@ var GroupSession = class {
|
|
|
34109
34642
|
if (utf8Encode(plain).length > MAX_EDIT_PLAIN) return { error: "Message exceeds 16 KiB" };
|
|
34110
34643
|
const copies = [ref, ...this.state.sent.filter((f) => f.o && f.o.e === ref.e && f.o.n === ref.n)];
|
|
34111
34644
|
const told = /* @__PURE__ */ new Set();
|
|
34645
|
+
const carriers = this.hooks.carriers?.() ?? [];
|
|
34112
34646
|
for (const copy of copies) {
|
|
34113
34647
|
const readers = this.state.chain[copy.e]?.m, key = this.secret(copy.e);
|
|
34114
34648
|
if (!readers || !key) continue;
|
|
@@ -34131,11 +34665,12 @@ var GroupSession = class {
|
|
|
34131
34665
|
...unsigned,
|
|
34132
34666
|
sig: toBase64Url(sign(editSigned(unsigned), this.identity.seed))
|
|
34133
34667
|
};
|
|
34134
|
-
const
|
|
34135
|
-
for (const k of
|
|
34668
|
+
const targets = (to === void 0 ? this.others : [to]).filter((k) => k !== this.myKey && rosterHas(this.roster, k));
|
|
34669
|
+
for (const k of targets.filter((k) => !told.has(k) && rosterHas(readers, k))) {
|
|
34136
34670
|
this.hooks.send(k, frame);
|
|
34137
34671
|
told.add(k);
|
|
34138
34672
|
}
|
|
34673
|
+
for (const k of targets.filter((k) => carriers.includes(k) && !rosterHas(readers, k))) this.hooks.send(k, frame);
|
|
34139
34674
|
}
|
|
34140
34675
|
return { sent: told.size };
|
|
34141
34676
|
});
|
|
@@ -34558,6 +35093,7 @@ var GroupSession = class {
|
|
|
34558
35093
|
delete raw.o;
|
|
34559
35094
|
delete raw.xs;
|
|
34560
35095
|
}
|
|
35096
|
+
if (!(relayed && (answer || waited)) && !this.paced(this.messagePace, raw.s, frameBytes(raw))) return;
|
|
34561
35097
|
const first = raw.o === void 0 ? null : readFirstPlace(raw.o, raw.e);
|
|
34562
35098
|
if (raw.o !== void 0 && !first) return;
|
|
34563
35099
|
const secret = this.secret(raw.e);
|
|
@@ -34634,7 +35170,7 @@ var GroupSession = class {
|
|
|
34634
35170
|
* in, and a member away when it was said would keep the message for good. One for an epoch or a secret not here yet
|
|
34635
35171
|
* waits, as a message does. Taken, it is kept to hand on in turn.
|
|
34636
35172
|
*/
|
|
34637
|
-
async receiveEdit(from, raw) {
|
|
35173
|
+
async receiveEdit(from, raw, waited = false) {
|
|
34638
35174
|
if (!isEditFrame(raw) || raw.s === this.myKey || !rosterHas(this.roster, from)) return;
|
|
34639
35175
|
const member = rosterHas(this.roster, raw.s);
|
|
34640
35176
|
if (!verify(fromBase64Url(raw.sig), editSigned(raw), publicKeyFromZ32(raw.s))) return;
|
|
@@ -34643,7 +35179,15 @@ var GroupSession = class {
|
|
|
34643
35179
|
return;
|
|
34644
35180
|
}
|
|
34645
35181
|
const commit = this.state.chain[raw.e];
|
|
34646
|
-
if (!commit || !rosterHas(commit.m, raw.s)
|
|
35182
|
+
if (!commit || !rosterHas(commit.m, raw.s)) return;
|
|
35183
|
+
if (!(this.state.relayEdits ?? []).some((f) => f.s === raw.s && f.e === raw.e && f.n === raw.n && f.v >= raw.v) && !(raw.s !== from && (this.awaitsAnswer(from) || waited)) && !this.paced(this.editPace, raw.s, raw.c.length + 400)) return;
|
|
35184
|
+
if (!rosterHas(commit.m, this.myKey)) {
|
|
35185
|
+
if (member && this.keepEdit(raw)) {
|
|
35186
|
+
this.persistSoon();
|
|
35187
|
+
this.took(cleanEdit(raw));
|
|
35188
|
+
}
|
|
35189
|
+
return;
|
|
35190
|
+
}
|
|
34647
35191
|
const secret = this.secret(raw.e);
|
|
34648
35192
|
if (!secret) {
|
|
34649
35193
|
if (raw.e >= this.epoch - GROUP_LIMITS.secrets) this.parkEdit(from, raw);
|
|
@@ -34678,7 +35222,7 @@ var GroupSession = class {
|
|
|
34678
35222
|
...rm ? { rm: true } : {}
|
|
34679
35223
|
});
|
|
34680
35224
|
if (this.keepEdit(raw)) {
|
|
34681
|
-
|
|
35225
|
+
this.persistSoon();
|
|
34682
35226
|
this.took(cleanEdit(raw));
|
|
34683
35227
|
}
|
|
34684
35228
|
}
|
|
@@ -34690,6 +35234,11 @@ var GroupSession = class {
|
|
|
34690
35234
|
}].slice(-GROUP_LIMITS.outlog);
|
|
34691
35235
|
this.ask(from);
|
|
34692
35236
|
}
|
|
35237
|
+
paced(paces, author, bytes) {
|
|
35238
|
+
let pace = paces.get(author);
|
|
35239
|
+
if (!pace) paces.set(author, pace = new AuthorPace());
|
|
35240
|
+
return pace.take(bytes, this.now());
|
|
35241
|
+
}
|
|
34693
35242
|
wholeSigned(raw) {
|
|
34694
35243
|
if (typeof raw.xs !== "string" || raw.xs.length !== 86 || !B64$1.test(raw.xs)) return false;
|
|
34695
35244
|
try {
|
|
@@ -34830,7 +35379,7 @@ var GroupSession = class {
|
|
|
34830
35379
|
for (const { from, frame } of ready) await this.receiveMessage(from, frame, true);
|
|
34831
35380
|
const edits = this.waitingEdits.filter((w) => w.frame.e <= this.epoch && !!this.state.secrets[w.frame.e]);
|
|
34832
35381
|
this.waitingEdits = this.waitingEdits.filter((w) => !edits.includes(w));
|
|
34833
|
-
for (const { from, frame } of edits) await this.receiveEdit(from, frame);
|
|
35382
|
+
for (const { from, frame } of edits) await this.receiveEdit(from, frame, true);
|
|
34834
35383
|
}
|
|
34835
35384
|
async receiveCommit(from, frame) {
|
|
34836
35385
|
const raw = frame.commit;
|
|
@@ -36340,11 +36889,12 @@ var CommunitySession = class CommunitySession {
|
|
|
36340
36889
|
* it was in. What one who left wrote while in the group is taken and handed on, its goodbye included, up to what the
|
|
36341
36890
|
* member who committed the leave had heard of it then (its `group-left` mark), never past it: the leaver still holds
|
|
36342
36891
|
* those epochs' secrets, and anything it signs later is not heard (WISP 903 § Leaving and removal). No mark here
|
|
36343
|
-
* (one not come yet, or a committer's app before it) and nothing of it is heard.
|
|
36892
|
+
* (one not come yet, or a committer's app before it) and nothing of it is heard. A key let in only on a branch that
|
|
36893
|
+
* lost is heard no more either, as one removed, once this member knows it lost.
|
|
36344
36894
|
*/
|
|
36345
36895
|
heardAfterOut(f) {
|
|
36346
36896
|
const i = this.outIndex(f.s);
|
|
36347
|
-
if (i < 0) return
|
|
36897
|
+
if (i < 0) return rosterHas(this.roster, f.s) || this.isRecentMember(f.s) || !this.lostAt(f.s);
|
|
36348
36898
|
const commit = this.state.chain[i];
|
|
36349
36899
|
if (commit.k !== "leave") return false;
|
|
36350
36900
|
const high = this.state.left?.[communityCommitHash(commit)]?.hi[seenKey(f.e, f.h)];
|
|
@@ -36706,6 +37256,7 @@ var CommunitySession = class CommunitySession {
|
|
|
36706
37256
|
}
|
|
36707
37257
|
this.followEntry();
|
|
36708
37258
|
this.pruneSide();
|
|
37259
|
+
this.state.pendingLeaves = this.state.pendingLeaves.filter((r) => rosterHas(this.roster, r.s));
|
|
36709
37260
|
if (this.state.status !== status) await this.persist();
|
|
36710
37261
|
else this.persistSoon();
|
|
36711
37262
|
this.hooks.changed();
|
|
@@ -36903,7 +37454,8 @@ var CommunitySession = class CommunitySession {
|
|
|
36903
37454
|
this.requireMember();
|
|
36904
37455
|
if (!this.isAdmin) throw new Error("Only the admin can do that");
|
|
36905
37456
|
}
|
|
36906
|
-
|
|
37457
|
+
/** `alongside`: what else the commit changes in the state, saved in the same write (only once the commit is signed). */
|
|
37458
|
+
async commit(kind, fields, now, alongside) {
|
|
36907
37459
|
if (!this.adminWork) throw new Error(GROUP_ADMIN_OFF_ERROR);
|
|
36908
37460
|
if (this.hooks.adminTurn && !await this.hooks.adminTurn()) throw engineError("groupTurnUnconfirmed");
|
|
36909
37461
|
if (this.state.chain.length >= COMMUNITY_LIMITS.chain) throw new Error("This group has reached its membership history limit. Create a new group.");
|
|
@@ -36947,6 +37499,7 @@ var CommunitySession = class CommunitySession {
|
|
|
36947
37499
|
this.state.seq = 0;
|
|
36948
37500
|
this.state.seqH = hash;
|
|
36949
37501
|
this.pruneSide();
|
|
37502
|
+
alongside?.();
|
|
36950
37503
|
await this.persist();
|
|
36951
37504
|
this.hooks.broadcast({
|
|
36952
37505
|
t: "group-commit",
|
|
@@ -37108,12 +37661,12 @@ var CommunitySession = class CommunitySession {
|
|
|
37108
37661
|
return this.serialize(async () => {
|
|
37109
37662
|
this.requireAdmin();
|
|
37110
37663
|
const entry = off ? null : identityFromSeedB64(toBase64Url(randomBytes(32)));
|
|
37111
|
-
await this.commit("link", { x: entry?.pubKeyZ32 ?? "" }, now)
|
|
37112
|
-
|
|
37113
|
-
|
|
37114
|
-
|
|
37115
|
-
|
|
37116
|
-
|
|
37664
|
+
await this.commit("link", { x: entry?.pubKeyZ32 ?? "" }, now, () => {
|
|
37665
|
+
this.state.entry = {
|
|
37666
|
+
key: entry?.pubKeyZ32 ?? "",
|
|
37667
|
+
seedB64: entry?.seedB64 ?? ""
|
|
37668
|
+
};
|
|
37669
|
+
});
|
|
37117
37670
|
if (entry) {
|
|
37118
37671
|
const pause = pacer(ENTRY_SLICE_MS);
|
|
37119
37672
|
for (const key of this.others) {
|
|
@@ -38114,7 +38667,9 @@ var CommunitySession = class CommunitySession {
|
|
|
38114
38667
|
if (!answered.take()) return;
|
|
38115
38668
|
if (lost) {
|
|
38116
38669
|
const at = this.mainIndex.get(frame.h);
|
|
38117
|
-
|
|
38670
|
+
let commits = this.state.chain.slice(at !== void 0 ? at + 1 : lost.fork + 1, lost.end + 1);
|
|
38671
|
+
const link = commits.findIndex((c) => c.k === "link" && !!c.x);
|
|
38672
|
+
if (link >= 0) commits = commits.slice(0, link);
|
|
38118
38673
|
if (commits.length) this.answers.handOut(from, commits.map((commit) => ({
|
|
38119
38674
|
t: "group-commit",
|
|
38120
38675
|
v: 2,
|
|
@@ -38203,7 +38758,7 @@ var CommunitySession = class CommunitySession {
|
|
|
38203
38758
|
const entry = this.entryFrame(from);
|
|
38204
38759
|
if (entry) answer.push(entry);
|
|
38205
38760
|
}
|
|
38206
|
-
for (const request of this.state.pendingLeaves) answer.push({
|
|
38761
|
+
for (const request of this.state.pendingLeaves) if (rosterHas(this.roster, request.s)) answer.push({
|
|
38207
38762
|
t: "group-leave",
|
|
38208
38763
|
v: 2,
|
|
38209
38764
|
g: this.id,
|
|
@@ -39719,6 +40274,6 @@ function x401ApprovalDigest(subject) {
|
|
|
39719
40274
|
return toBase64Url(sha256(utf8Encode(canonical)));
|
|
39720
40275
|
}
|
|
39721
40276
|
//#endregion
|
|
39722
|
-
export { COMMUNITY_LIMITS as $, BREAKER_MAX_MS as $C, readTurnBody as $S, HANDOFF_PAKE as $_, DEMOTE_AFTER_FAILURES as $a, appRefPublisher as $b, APP_RANGE_ERRORS as $c, parseDomainTxt as $d, EDIT_RECEIVE_LIMIT as $f, PAIRED_CALL_CANDIDATES as $g, IDLE_THRESHOLD as $h, isSparkAddress as $i, SESSION_FRAME_MAX as $l, verifyChain as $m, MessageRefusal as $n, SIGNAL_FRESH_MS as $o, wireReply as $p, DidError as $r, TYPING_STATUS_MAX as $s, GROUP_EDIT_TEXT_BYTES as $t, isProofAdapter as $u, sameDigest as $v, toBase64 as $w, inviteOwnership as $x, REQUEST_LABEL as $y, readX401ProofResponseHeader as A, HEDGE_MISSING_MS as AC, TURN_VISIBLE_MS as AS, encodeServices as A_, findBolt11 as Aa, APP_ICON_PATH as Ab, WAKE_SUBJECT as Ac, HOLD_DATED_BACK_MS as Ad, baseMime as Af, withViewerPolicy as Ag, ratchetSessionOf as Ah, jwkThumbprint as Ai, parseAppFrame as Al, claimedTime as Am, parseGroupMetaBody as An, EngineError as Ao, REACTED_FRAME as Ap, parseAtprotoDidDocument as Ar, shouldBeHub as As, knockRecords as At, IdentityExchange as Au, handoffReleaseFrame as Av, encrypt as Aw, createContactLink as Ax, FLOOD_PER_DAY as Ay, APP_STORE_KINDS as B, SLOW_MS as BC, TURN_NAME_BYTES as BS, HANDOFF_BUSY_REASONS as B_, videoMetadataPatches as Ba, isAppLicense as Bb, wakePayload as Bc, DOMAIN_MAX_RECORDS as Bd, voiceLevelsOf as Bf, sendBody as Bg, STALLED_EVIDENCE_MS as Bh, TEST_USDT_FAUCET_AMOUNT as Bi, PIN_CAPABILITY as Bl, MAX_GROUP_MEMBERS as Bm, SSH_PUBLIC_KEY_MAX as Bn, fetchesByItself as Bo, reactionFrame as Bp, parseAtprotoDidKey as Br, FileUplink as Bs, groupWakes as Bt, revokesIdentity as Bu, readHandoffAck as Bv, hasVisible as Bw, readDeviceInvite as Bx, planKnocks as By, buildX401TokenObject as C, DEPARTED_READS as CC, unsignedDeviceTransports as CS, isEmptyLinkPacket as C_, parseInvoiceCallback as Ca, seenEntry as Cb, readPin as Cc, irohDescriptor as Cd, safeBlobType as Cf, parseLocalTarget as Cg, emptyRatchetState as Ch, decodeDidDhtPacket as Ci, appCloseFrame as Cl, sameButtonText as Cm, groupMetaPicture as Cn, WAKE_ANSWER_GRACE_MS as Co, FORWARD_LIMITS as Cp, ATPROTO_PROOF_SCOPE as Cr, mergeLobby as Cs, KNOCK_TTL_MS as Ct, IDENTITY_MAX_VALIDITY as Cu, handoffFileMissingFrame as Cv, createIdentity as Cw, previewable as Cx, enrollHelloFrame as Cy, readX401ProofRequest as D, GROUP_OVER_PACE_MS as DC, TURN_PUT_WINDOW_MS as DS, MAX_SERVICES as D_, resolveLightningDestination as Da, APP_CLIENTS as Db, WAKE_CALL_WAIT_MS as Dc, relayedTransports as Dd, RECORDING_TYPES as Df, sanitizeResponseHeaders as Dg, ratchetOpen as Dh, didDhtRecords as Di, chatAppId as Dl, usageLeft as Dm, keepPastGroupMeta as Dn, parsePaymentNetworks as Do, COMMUNITY_REACTION_FRAME as Dp, checkAtprotoProofRecord as Dr, readBeacon as Ds, entryParams as Dt, IDENTITY_STATEMENT_PREFIX as Du, handoffManifestFrames as Dv, sign as Dw, readCanonicalJson as Dx, readEnrollGrant as Dy, isX401Protocol as E, GROUP_BURST_ONE_LINK as EC, webCryptoSigner as ES, LEGACY_SERVICES as E_, requestLnurlInvoice as Ea, APP_BUNDLE_MAGIC as Eb, WAKE_CALL_TTL_SECONDS as Ec, relayUrl as Ed, PLAYABLE_AUDIO as Ef, sanitizeRequestHeaders as Eg, ratchetOn as Eh, didDhtKey as Ei, appOpenFrame as El, taskProgress as Em, groupName as En, pairedMessageFrame as Eo, readForwarded as Ep, atprotoProofRkey as Er, rankHubs as Es, encodeGroupEntryLink as Et, IDENTITY_REVOCATION_LABEL as Eu, handoffHelloFrame as Ev, publicKeyFromZ32 as Ew, canonicalJsonBytes as Ex, formatEnrollDigits as Ey, appRevocationFor as F, RelayTransport as FC, TOMBSTONE_TURN as FS, servicesToWire as F_, isFederationId as Fa, appViewOf as Fb, parseWakeFrame as Fc, newMailbox as Fd, parseVoiceMeta as Ff, PROTOCOL_VERSION as Fg, DataLink as Fh, EVM_TEST_CHAINS as Fi, CALLS_CAPABILITY as Fl, GROUP_ID as Fm, verifyGroupMetaSignature as Fn, GROUP_FILE_LIMITS as Fo, parseReactedFrame as Fp, decodeAtprotoCommit as Fr, parsePairedCallFrame as Fs, GROUP_WAKE_GROUP_WINDOW_MS as Ft, identityStatement as Fu, handoffVerifiedMessage as Fv, MAX_AVATAR_SIDE as Fw, DEVICE_INVITE_OWN_DEVICE as Fx, REOPEN_BELOW as Fy, readAppStore as G, currentRelays as GC, TURN_SLOTS as GS, HANDOFF_FILE_MISSING as G_, stripPictureMetadata as Ga, readAppBundleAsync as Gb, checkPushEndpoint as Gc, decodeDnsResponse as Gd, isPlayableVideoType as Gf, RTC_SIGNAL_MAX_AGE_MS as Gg, directBlocked as Gh, assertWholeSats as Gi, SessionCapabilities as Gl, commitUntaggedHash as Gm, sshFingerprint as Gn, readGroupWant as Go, wireReaction as Gp, verifyAtprotoSignature as Gr, transferEnded as Gs, GROUP_READ_NOTE as Gt, lastSharedWithMe as Gu, readHandoffFileFrame as Gv, unwrapPasted as Gw, INVITE_VERSION as Gx, CONTACT_RECORD_TTL as Gy, checkAppListing as H, WATCH_SHARE as HC, TURN_REV_LIMIT as HS, HANDOFF_CANCEL_REASONS as H_, NO_PICTURE_METADATA as Ha, isAppUrl as Hb, PUSH_PAD_BYTES as Hc, DOMAIN_TXT_MAX_BYTES as Hd, PLAYABLE_VIDEO as Hf, DATA_CHANNEL_ID as Hg, DIRECT_OWN_ATTEMPTS as Hh, WALLET_NETWORKS as Hi, SERVICES_CAPABILITY as Hl, OWN_FRAME_LIMIT as Hm, parseSshPublicKey as Hn, isGroupMessageId as Ho, readDhtReactions as Hp, readAtprotoCid as Hr, encodeFileData as Hs, parseGroupWakeFrame as Ht, verifyIdentityPresentation as Hu, readHandoffCancel as Hv, sanitizeNick as Hw, INVITE_HRP as Hx, takeRequest as Hy, appStoreDecision as I, RelaysFailedError as IC, TURN_BODY_BYTES as IS, viewerTag as I_, parseCashuRequestPayload as Ia, assembleAppBundle as Ib, readWake as Ic, readManifest as Id, recordingMime as If, decodeChunk as Ig, GATHER_ATTEMPTS as Ih, ONCHAIN_PROVIDER as Ii, EDIT_CAPABILITY as Il, GROUP_MEMBER_CAP as Im, wrapGroupMeta as In, GROUP_HAVE_FRAME as Io, parseReactionFrame as Ip, decodeDagCbor as Ir, ChatFiles as Is, GROUP_WAKE_MEMBER_INTERVAL_MS as It, identityStatementText as Iu, handoffVersions as Iv, jpegSize$1 as Iw, createDeviceInvite as Ix, clearMissed as Iy, GROUP_TYPING_FRAME as J, relayUrlProblem as JC, TurnRecordError as JS, HANDOFF_HELLO as J_, ANSWERS_REFUSED_PAUSE_MS as Ja, APP_NAME as Jb, generateVapidKeys as Jc, domainWellKnownFile as Jd, EDITED_FRAME as Jf, offerIsFresh as Jg, DAEMON_WATCH_PEER_IDLE_MS as Jh, parsePaymentAmount as Ji, WAKE_SESSION_CAPABILITY as Jl, rememberAlone as Jm, verifySshSignature as Jn, CarriedTransport as Jo, REPLY_LIMITS as Jp, DID_GHOSTLY_SERVICE as Jr, TYPING_KINDS as Js, chainPieces as Jt, PeerProofs as Ju, readHandoffManifest as Jv, fromBase64 as Jw, createLink as Jx, KNOCK_SLOT_LABEL as Jy, readAppStoreSteps as K, normalizeRelayUrl as KC, TURN_TTL as KS, HANDOFF_FILE_REQUEST as K_, withoutPictureMetadata as Ka, sha256Paced as Kb, decryptPushPayload as Kc, dnsProofName as Kd, isVideoMime as Kf, buildDataSdp as Kg, symmetricNat as Kh, formatPaymentAmount as Ki, TYPING_CAPABILITY as Kl, expectedRoster as Km, sshKeyDigestHex as Kn, readGroupWantNo as Ko, PAIRED_REPLY_AUTHORS as Kp, DID_DOCUMENT_MAX_BYTES as Kr, transferStalled as Ks, GroupSession as Kt, PROOF_ADAPTERS as Ku, readHandoffHave as Kv, bytesEqual as Kw, OwnInviteError as Kx, ContactRequestError as Ky, appUpdateDecision as L, SIGNALING_ALLOWANCE_SHARE as LC, TURN_LABEL as LS, HANDOFF_ACK as L_, parseFedimintRequestPayload as La, buildAppBundle as Lb, readWakePayload as Lc, DNS_LABEL as Ld, voiceDownloadName as Lf, decodeControl as Lg, GATHER_STALL_MS as Lh, PaymentPreflightError as Li, FILES_BINARY_CAPABILITY as Ll, GROUP_VERSION_LARGE as Lm, SSHSIG_MAX_ARMOR as Ln, GROUP_VERSION_FILES as Lo, queueReaction as Lp, encodeDagCbor as Lr, FILE_DATA_KIND as Ls, GROUP_WAKE_RECEIVE_LIMIT as Lt, isIdentityBinding as Lu, isHandoffPartName as Lv, sanitizeAvatar as Lw, deviceInviteJoinerKeyZ32 as Lx, endedRequests as Ly, readX401ProofResultHeader as M, PREVIOUS_DEFAULT_RELAYS as MC, keptAtEqualSequence as MS, isViewerTag as M_, cashuRequestPayload as Ma, APP_SCREENSHOTS_DIR as Mb, WakeLimiter as Mc, HoldKeys as Md, fileMessageText as Mf, CHUNK_KIND as Mg, ANSWER_REFUSED_REDIALS as Mh, resolveDidDht as Mi, APPS_CAPABILITY as Ml, receivedTimestamp as Mm, parseGroupMetaStatement as Mn, engineText as Mo, REACTION_LIMITS as Mp, AtprotoCid as Mr, MAX_PAIRED_CALL_SIGNAL as Ms, readKnocks as Mt, emptyIdentityLedger as Mu, handoffRetryAfter as Mv, sealedLength as Mw, readContactLink as Mx, MAX_MISSED as My, x401AnswerableRequests as N, RELAY_REQUESTS_PER_MINUTE as NC, turnPutSummary as NS, serviceIdFromName as N_, fedimintRequestPayload as Na, APP_VIEWS as Nb, deviceWakeRequest as Nc, HoldRefusedError as Nd, formatVoiceDuration as Nf, LIMITS as Ng, CONNECT_TIMEOUT_MS as Nh, signDidDhtPacket as Ni, APP_RANGES_CAPABILITY as Nl, shownTime as Nm, parseGroupMetaTag as Nn, parseEngineError as No, ReactionWindow as Np, AtprotoProofError as Nr, PAIRED_CALL_FRAME as Ns, GROUP_WAKE_FRAME as Nt, identityPresentationBytes as Nu, handoffStreamKey as Nv, tryDecrypt as Nw, DEVICE_INVITE_BYTES as Nx, MAX_WAITING as Ny, readX401ProofRequestHeader as O, GROUP_RATION_WINDOW_MS as OC, TURN_RAISE_READ_TIMEOUT_MS as OS, SERVICES_VERSION as O_, BOLT11_PATTERN as Oa, APP_CLIENT_NAME as Ob, WAKE_FRAME as Oc, transportOrder as Od, VOICE_LIMITS as Of, viewerResponseHeaders as Og, ratchetRoot as Oh, encodeDidDhtDeactivated as Oi, isAppVersion as Ol, MESSAGE_CLOCK_SKEW_MS as Om, nextGroupMetaRevision as On, publishFailure as Oo, GROUP_REACTION_FRAME as Op, isAtprotoDid as Or, readBeaconHead as Os, groupEntryUrl as Ot, IDENTITY_SUBJECT as Ou, handoffOfferFrame as Ov, verify as Ow, CONTACT_LINK_BYTES as Ox, readEnrollHello as Oy, addedAppPermissions as P, REQUESTS_PER_MINUTE as PC, TOMBSTONE_SEQUENCE as PS, servicesFromWire as P_, findEndpoint as Pa, appDigest as Pb, newWakeToken as Pc, isHoldUrl as Pd, isPlayableAudioType as Pf, MAX_CHUNK_PAYLOAD_BYTES as Pg, DATA_SETTLE_MS as Ph, ETHEREUM_USDT as Pi, BUTTONS_CAPABILITY as Pl, GROUP_ADMIN_OFF_ERROR as Pm, signGroupMeta as Pn, PairingTracker as Po, nextReactionNumber as Pp, atprotoCidFor as Pr, PairedCalls as Ps, GROUP_WAKE_GROUP_LIMIT as Pt, identityRevocationValue as Pu, handoffVerifiedFrame as Pv, MAX_AVATAR_LENGTH as Pw, DEVICE_INVITE_LIFETIME_S as Px, NEW_PER_HOUR as Py, sealGroupTyping as Q, BREAKER_BASE_MS as QC, openTurnValue as QS, HANDOFF_OFFER as Q_, CROSSED_WAIT_MS as Qa, appRef as Qb, APP_RANGE_DATA_KIND as Qc, normalizeDomain as Qd, EDIT_RATE_WINDOW_MS as Qf, CALL_SIGNAL_MAX_AGE_MS as Qg, FIRST_PUBLISH_MAX_MS as Qh, SPARK_PROVIDER as Qi, PairedSession as Ql, sortRoster as Qm, BIP322_REVISION as Qn, SIGNAL_CARRIERS as Qo, replySnippet as Qp, DID_METHODS as Qr, TYPING_SEND_LIMIT as Qs, GROUP_EDIT_FRAME as Qt, importedProof as Qu, readHandoffVerified as Qv, randomBytes as Qw, inviteLink as Qx, REQUEST_CLOCK_SKEW_MS as Qy, checkAppBeforeRun as R, SIGNALING_WINDOW_MS as RC, TURN_LAST_SEQUENCE as RS, HANDOFF_ATTEMPTS as R_, NO_VIDEO_METADATA as Ra, checkAppManifest as Rb, relayRequest as Rc, DNS_TYPE as Rd, voiceFileName as Rf, encodeChunk as Rg, OFFER_HOST_GATHER_MS as Rh, SEPOLIA_TEST_USDT as Ri, FILES_CAPABILITY as Rl, LEGACY_GROUP_MEMBERS as Rm, SSHSIG_NAMESPACE as Rn, GROUP_WANT_FRAME as Ro, reactedFrame as Rp, findInMst as Rr, FILE_FRAMES as Rs, GroupWakeLimiter as Rt, newIdentityBinding as Ru, newHandoffId as Rv, MAX_NICK_LENGTH as Rw, deviceInviteJoinerParams as Rx, inboxRecord as Ry, buildX401ResultArtifact as S, DEFAULT_RELAYS as SC, signDeviceTransports as SS, emptyLinkRecords as S_, invoiceCallbackUrl as Sa, requestRecords as Sb, pinnedFrame as Sc, dialableIrohRelay as Sd, formatFileSize as Sf, formatLocalTarget as Sg, RatchetBox as Sh, DidDhtError as Si, AppSessions as Sl, removedCardText as Sm, groupMetaNewer as Sn, UNPROVEN_AUTH_MS as So, sanitizePreviewImage as Sp, ATPROTO_PROOF_COLLECTION as Sr, mergeBeacon as Ss, GROUP_ENTRY_PROFILE as St, IDENTITY_MAX_RECEIVED as Su, handoffEphemeral as Sv, IDENTITY_MEMO_SIZE as Sw, parseImageMeta as Sx, enrollGrantFrame as Sy, encodeX401Header as T, GROUP_BURST_MS as TC, seedSigner as TS, HTTP_SERVICE_PROTO as T_, parsePayParams as Ta, APP_BUNDLE_LIMITS as Tb, WAKE_CALL_INTERVAL_MS as Tc, rankTransports as Td, sanitizeMime as Tf, resolveTargetUrl as Tg, ratchetHeard as Th, didDhtFromPublicKey as Ti, appDataFrame as Tl, statusCardText as Tm, groupMetaToHand as Tn, pairedMessageFits as To, forwardedMany as Tp, atprotoProofRecord as Tr, pickHubs as Ts, decodeGroupEntryLink as Tt, IDENTITY_PROVIDER_ID as Tu, handoffHaveFrames as Tv, identityFromSeedB64 as Tw, canonicalJson as Tx, enrollProofFrame as Ty, checkAppStoreIndex as U, WAY_BACK_SHARE as UC, TURN_SEALED_BYTES as US, HANDOFF_DATA as U_, PICTURE_METADATA_LIMITS as Ua, pacer as Ub, PUSH_SERVICE_HOSTS as Uc, NIP05_PATH as Ud, VIDEO_LIMITS as Uf, DATA_CHANNEL_LABEL as Ug, DIRECT_PEERS as Uh, arkAddressPrefix as Ui, SESSION_CAPABILITIES_FRAME as Ul, SAID_AGAIN as Um, parseSshSignature as Un, readGroupFileMeta as Uo, readReaction as Up, unsignedCommitBytes as Ur, refusalText as Us, GROUP_LIMITS as Ut, IDENTITY_TIMELINE_MAX as Uu, readHandoffData as Uv, stripHidden as Uw, INVITE_LINK_ORIGIN as Ux, turnOff as Uy, APP_STORE_LIMITS as V, TURN_SOURCE_TIMEOUT_MS as VC, TURN_NO_ACTIVE as VS, HANDOFF_CANCEL as V_, withoutVideoMetadata as Va, isAppPath as Vb, wakeRequest as Vc, DOMAIN_METHODS as Vd, voicePeaksOf as Vf, wrapDataChannel as Vg, DIRECT_EVIDENCE_MS as Vh, USDT_PUBLIC_RPC as Vi, REACTIONS_CAPABILITY as Vl, MEMBER_KEY as Vm, SshSigError as Vn, groupFileFallback as Vo, reactionIsNewer as Vp, parseAtprotoVerificationKey as Vr, decodeFileData as Vs, mentionedMembers as Vt, signIdentityPresentation as Vu, readHandoffBusy as Vv, sanitizeDisplayText as Vw, DEVICE_INVITE_VERSION as Vx, settleRequest as Vy, readAppListing as W, WRITE_FIRST_MS as WC, TURN_SIGNED_BYTES as WS, HANDOFF_DONE as W_, isStrippedPicture as Wa, readAppBundle as Wb, WebPushError as Wc, WELL_KNOWN_PATH as Wd, formatVideoDuration as Wf, RTC_SIGNAL_FUTURE_MS as Wg, DirectPathWatch as Wh, assertTokenUnits as Wi, STATUS_CARD_CAPABILITY as Wl, commitHash as Wm, sameSshKey as Wn, readGroupHave as Wo, validReactionNumber as Wp, verifyAtprotoRecordProof as Wr, sentWhole as Ws, GROUP_REACTED_FRAME as Wt, applyIdentityEvent as Wu, readHandoffDone as Wv, trimEndOf as Ww, INVITE_MAX_LENGTH as Wx, CONTACT_ASKER_FRAME as Wy, groupTypingEpoch as X, traceLink as XC, firstDeviceSetSecret as XS, HANDOFF_LIST_PER_FRAME as X_, CROSSED_FRESH_MS as Xa, APP_STATEMENT_LIMITS as Xb, vapidAuthorization as Xc, isPublicAddress as Xd, EDIT_BUFFER_MS as Xf, BURST_RING_MS as Xg, DHT_POLL_INTERVALS as Xh, walletNetworkOf as Xi, sessionCapabilitiesFrame as Xl, rosterHas as Xm, legacyMessageHash as Xn, GROUP_VERSION_SIGNALS as Xo, pairedReplyAuthor as Xp, DID_JWS_MAX_LENGTH as Xr, TYPING_RATE_WINDOW_MS as Xs, groupMessageId as Xt, STORAGE_ROOT as Xu, readHandoffRelease as Xv, fromZ32 as Xw, encodeGhostlyInvite as Xx, MAX_SEEN as Xy, GroupTypingBoard as Y, setLinkTraceSink as YC, encodeTurnFields as YS, HANDOFF_LATER_BYTES as Y_, BLOCKED_DIAL_WAIT_MS as Ya, APP_PREFIXES as Yb, pushRequest as Yc, encodeDnsQuery as Yd, EDIT_BUFFER_MAX as Yf, parseRtcSignal as Yg, DEPARTED_READ_MS as Yh, validatePaymentTarget as Yi, parseSessionCapabilities as Yl, rosterAdmin as Ym, isLegacySignature as Yn, GROUP_SIGNAL_FRAME as Yo, groupReplyAuthor as Yp, DID_JWS_ALGS as Yr, TYPING_RATE_LIMIT as Ys, frameBytes as Yt, STORAGE_LIFETIME as Yu, readHandoffPake as Yv, fromBase64Url as Yw, decodeInviteCode as Yx, LINK_RECORD_LABEL as Yy, openGroupTyping as Z, BREAKER_ALL_DOWN_PROBE_MS as ZC, nextTurnPosition as ZS, HANDOFF_MANIFEST as Z_, CROSSED_PROBE_MS as Za, appFingerprint as Zb, vapidKeysMatch as Zc, nip05RootKey as Zd, EDIT_FRAME as Zf, CALL_SIGNAL_FUTURE_MS as Zg, EXPECT_PEER_MS as Zh, SPARK_NETWORKS as Zi, PAIRED_PROFILE as Zl, signCommit as Zm, verifyBitcoinMessage as Zn, SIGNALS_PER_MINUTE as Zo, readReply as Zp, DID_MAX_LENGTH as Zr, TYPING_REFRESH_MS as Zs, COMMUNITY_EDIT_FRAME as Zt, emptyProofLedger as Zu, readHandoffTurnFrame as Zv, isZ32Key as Zw, encodeInviteCode as Zx, MAX_SLOT_KNOCKS as Zy, X401_PROTOCOLS as _, BACKGROUND_WRITES_SHARE as _C, deviceLinkRendezvousSeed as _S, waitForIceGathering as __, pubkyHomeserverOf as _a, mergeContactKnocks as _b, parsePinFrame as _c, RELAY_URL as _d, dhtFileElements as _f, unusedInviteWait as _g, MAX_SKIPPED_KEYS as _h, strictBase64Url as _i, APP_RATE_LIMIT as _l, cardLinkHost as _m, MAX_GROUP_PICTURE_LENGTH as _n, RACE_RELAYED_MS as _o, linkEnd as _p, u32$1 as _r, doorHubs as _s, shortHash as _t, IDENTITY_CLOCK_SKEW as _u, handoffContext as _v, signRelayPayload as _w, verifyAppStatementBytes as _x, ENROLL_PROOF as _y, X401_DCQL_LIMITS as a, turnInstance as aC, DEVICES_CAPABILITY as aS, __esmMin as aT, callSignalHeardAt as a_, PUBKY_PROOF_MAX_BYTES as aa, STAMP_BITS_MAX as ab, sanitizeTypingStatus as ac, storageProofBody as ad, wellKnownUrl as af, PRESENCE_HEARTBEAT as ag, decryptText as ah, didWebDocumentUrl as ai, appRangeDataFrame as al, PR_CHECKS as am, validEditText as an, HANDLED_WAIT_MS as ao, dhtEditId as ap, BitcoinAddressError as ar, GROUP_VERSION_HUBS as as, communityHasFrame as at, CAPS_REFRESH_MS as au, HANDOFF_VERIFIED as av, isDiscoveryBudgetError as aw, isAppLine as ax, readSetUpdate as ay, buildX401ProofRequest as b, CHAT_RESERVE_PER_CHAT as bC, devicePingFrame as bS, RECORD_TTL as b_, fetchLnurlJson as ba, readLinkRecord as bb, pinIsNewer as bc, automaticTransport as bd, FileTransfers as bf, HttpHost as bg, RATCHET_KEEP_MS as bh, DID_DHT_TTL as bi, APP_SEND_LIMIT as bl, checkStatusCard as bm, groupMetaBody as bn, RTC_UNSTARTED_MS as bo, parseLinkPreview as bp, ATPROTO_DECLARED_SCOPE as br, lobbyKeys as bs, verifyCommunityChainPaced as bt, IDENTITY_MAX_EVIDENCE as bu, handoffDigest as bv, encodeTxtPacket as bw, imageSize as bx, enrollDigits as by, readX401DcqlQuery as c, turnPacket as cC, DEVICE_PING_FRAME as cS, __toCommonJS as cT, decompressSdp as c_, isPubkyProofFolder as ca, contactAskerHolds as cb, typingKindOf as cc, verifyNostrProof as cd, DHT_FILE_TOO_LARGE as cf, SIGNAL_OUT_READS as cg, epochKeys as ch, didWebFileUrl as ci, appRangeGetFrame as cl, ROUTINE_STATES as cm, mentionsBytes as cn, LIVENESS_MISSED_PINGS as co, parseEditFrame as cp, decodeAnyBitcoinAddress as cr, mayBeHub as cs, communityUntaggedHash as ct, CapsRefusedError as cu, NO_ATTEMPTS as cv, PKARR_FUTURE_SKEW_MS as cw, readAppRevocation as cx, setUpdateMessage as cy, newX401HolderKey as d, turnSequence as dC, deviceEchoFrame as dS, isGlobalIpv4Host as d_, pubkyProofCapability as da, knockSlotIdentity as db, PINNED_FRAME as dc, ringAuthorization as dd, DHT_TEXT_REFUSED as df, UNUSED_INVITE_READS_PER_MINUTE as dg, openSecret as dh, parseDid as di, isServeId as dl, TASK_STATUSES as dm, wireMentions as dn, PAIRED_FRAME_TOO_LARGE as do, validEditNumber as dp, decodeWitness as dr, parseHubPolicy as ds, encodeCommunityLink as dt, dialDescriptors as du, handoffAckFrame as dv, createRelayPayload as dw, readAppSignature as dx, DEVICE_KINDS as dy, readTurnPacket as eC, inviteQrSegments as eS, toBase64Url as eT, QUICK_REDIAL_MS as e_, sparkAddressKind as ea, REQUEST_LIFETIME_MS as eb, TYPING_TIMEOUT_MS as ec, nostrProofTemplate as ed, recordsFromTxt as ef, LinkSession as eg, verifyCommit as eh, checkDidJws as ei, APP_RANGE_FRAMES as el, ACTIVE_TASK_STATUSES as em, carryMentions as en, DEMOTE_MS as eo, EDIT_SEND_LIMIT as ep, bip322MessageHash as er, SIGNAL_HOLD_MS as es, COMMUNITY_PROFILE as et, SESSION_RECEIVE_PENDING as eu, HANDOFF_PIECE_BYTES as ev, BREAKER_THRESHOLD as ew, appRevocationId as ex, sealHandoffPiece as ey, readX401SdJwtVc as f, turnSignedMessage as fC, deviceEchoNonce as fS, keepsToRelays as f_, pubkyProofFile as fa, knockSlotOf as fb, PIN_CLOCK_SKEW_MS as fc, ringClaims as fd, DhtDelivery as ff, UNUSED_INVITE_UPKEEP_MS as fg, sealPair as fh, parseDidDocument as fi, parseAppRangeFrame as fl, appCardId as fm, GROUP_META_PAST as fn, PAIRING_ATTEMPT_MS as fo, validRemovalNumber as fp, encodeTx as fr, pickMeshHubs as fs, leaveStands as ft, emptyCapsState as fu, handoffAttemptAllowed as fv, measureRecords as fw, setAppSignatureFastPath as fx, ENROLL_CANCEL as fy, X401_LIMITS as g, BACKGROUND_WHILE_SIGNALING as gC, deviceLinkParams as gS, signalHasVideo as g_, homeserverWebEndpoint as ga, makeStampPaced as gb, nextPinNumber as gc, verifyRingEvidence as gd, DHT_FILE_CAPABILITY as gf, presenceSeenAt as gg, MAX_SKIP as gh, staticDidDocument as gi, APP_PEER_OPEN_MAX as gl, cardLine as gm, MAX_GROUP_NAME_LENGTH as gn, RACE_DIRECT_MS as go, canonicalUrl as gp, txHash as gr, beaconRecords as gs, rosterHash as gt, IDENTITY_CHECK_UNAVAILABLE as gu, handoffCancelFrame as gv, readOwnRelayPayload as gw, verifyAppSignature as gx, ENROLL_HELLO as gy, X401_HEADERS as h, BACKGROUND_REQUESTS_PER_MINUTE as hC, deviceLinkPairing as hS, sdpHasCandidates as h_, encodeSvcbPacket as ha, makeStamp as hb, mayPin as hc, verifyRingAuthorization as hd, peekDhtMailbox as hf, countUnusedInvite as hg, FOLLOW_MS as hh, signingKeys as hi, APP_FRAME as hl, cardEditNumber as hm, MAX_GROUP_NAME_BYTES as hn, RACE_ANSWERED_MS as ho, LINK_TRAILING as hp, sha256d as hr, beaconKeys as hs, leftStatement as ht, IDENTITY_CHALLENGE_WINDOW as hu, handoffBusyFrame as hv, parseRelayPayload as hw, verifyAppRevocation as hx, ENROLL_GRANT as hy, x401ApprovalDigest as i, signTurnRelease as iC, readInviteCode as iS, __commonJSMin as iT, callRtcConfig as i_, isBitcoinAddress as ia, STAMP_BITS_DEFAULT as ib, parseTypingFrame as ic, storageProof as id, validDomainRecord as if, OFFER_STEP_MAX as ig, confirmationTag as ih, didSignedMessages as ii, appRangeChunk as il, ITEM_STATES as im, parseCommunityEdit as in, GhostLink as io, RateWindow as ip, verifyBip322 as ir, readGroupSignal as is, communityGroupId as it, CAPS_PUBLISH_SPACING_MS as iu, HANDOFF_TIMINGS as iv, heldBackError as iw, isAppKey as ix, encodeSetSlots as iy, readX401ProofResult as j, HEDGE_MS as jC, classifyTurnRead as jS, isValidServiceId as j_, ENDPOINT as ja, APP_PERMISSIONS as jb, WAKE_TTL_SECONDS as jc, HOLD_LIMITS as jd, downsamplePeaks as jf, CHUNK_FLAG_END as jg, ratchetUnknownSession as jh, openDidDhtPayload as ji, readAppFrame as jl, heardTime as jm, parseGroupMetaFrame as jn, engineError as jo, REACTION_FRAME as jp, shortAtprotoDid as jr, validHead as js, mergeKnocks as jt, boundVerifiedIdentity as ju, handoffRequestFrame as jv, generateEncryptionKey as jw, encodeContactLink as jx, MAX_DONE as jy, readX401ProofResponse as k, GROUP_SIGNALING_ALLOWANCE_SHARE as kC, TURN_SETTLE_MS as kS, decodeServices as k_, decodeBolt11 as ka, APP_FORBIDDEN_KEYS as kb, WAKE_INTERVAL_MS as kc, HOLD_CAPABILITY as kd, VOICE_METER as kf, webLocalFetch as kg, ratchetSeal as kh, encodeDidDhtPacket as ki, isChatAppId as kl, arrivalKey as km, openGroupMeta as kn, ENGINE_ERRORS as ko, QUICK_REACTIONS as kp, normalizeAtprotoHandle as kr, readLobby as ks, knockIdentity as kt, IdentityCheckUnavailable as ku, handoffPakeFrame as kv, decrypt as kw, CONTACT_LINK_VERSION as kx, verifyEnrollProof as ky, x401VpToken as l, turnPayloadSequence as lC, ENROLL_CAPABILITY as lS, extractParamsFromSdp as l_, newPubkyProofFolder as la, contactDay as lb, COMMUNITY_PIN_FRAME as lc, verifyPeerProof as ld, DHT_MESSAGE_TTL as lf, STALLED_LOOK_MS as lg, newEpochSecret as lh, didWebHost as li, decodeAppRangeData as ll, RUN_RESULTS as lm, mentionsMember as ln, LIVENESS_PING_MS as lo, parseEditedFrame as lp, decodeBitcoinAddress as lr, meshHubs as ls, decodeCommunityLink as lt, DHT_TEXT_CAPABILITY as lu, filePartDigest as lv, PacketTooLargeError as lw, readAppRevocationShape as lx, signTombstone as ly, x401HolderJwk as m, turnVerifierMark as mC, deviceKeyZ32 as mS, pickCallCandidates as m_, decodeSvcbRecords as ma, linkRecords as mb, PIN_LIMITS as mc, validRingKey as md, emptyDhtDeliveryState as mf, WATCH_PEER_MS as mg, sha256Hex as mh, parseDidSignaturePaste as mi, APP_DATA_MAX_BYTES as ml, buttonLabelClash as mm, MAX_GROUP_META_BODY as mn, PONG_WAIT_MS as mo, LINK_PREVIEW_LIMITS as mp, hash160 as mr, COMMUNITY_TOPOLOGY as ms, leaveStatement3 as mt, parsePacketTransports as mu, handoffAttemptSucceeded as mv, openRelayPayload as mw, signAppRevocation as mx, ENROLL_DONE as my, X401_RESPONSE_MODES as n, signTurnBody as nC, ownInviteRefusal as nS, utf8Decode as nT, answersOffer as n_, sparkNetworkOf as na, REQUEST_PACKET_BYTES as nb, TypingSender as nc, proofHash as nd, recordsName as nf, OFFER_FAST_MS as ng, GROUP_PROFILE as nh, didGhostlyServiceEntry as ni, AppRanges as nl, BUTTON_STYLES as nm, communityMessageAuthor as nn, EARLY_DIAL_JOIN_MS as no, MAX_REMOVAL_NUMBER as np, bip322ToSpend as nr, SIGNAL_REPLY_MS as ns, GROUP_READ_NOTE_COMMUNITY as nt, CAPS_LABEL as nu, HANDOFF_RELEASE as nv, DiscoveryBudgetError as nw, checkAppRevokeStatement as nx, SET_ACK as ny, matchX401Dcql as o, turnKeys as oC, DEVICE_CAPABILITIES as oS, __exportAll as oT, compressSdp as o_, PUBKY_PROOF_ROOT as oa, STAMP_BITS_MIN as ob, typingActivity as oc, storageProofPath as od, ACTIVE_DHT_POLL_MS as of, PRESENCE_WINDOW as og, edgeParams as oh, didWebFile as oi, appRangeEndFrame as ol, PR_STATES as om, MENTION_EVERYONE as on, INVITER_DIAL_GRACE_MS as oo, editFrame as op, ByteReader as or, MESH_HUBS as os, communityMessageId as ot, CapsExchange as ou, HANDOFF_VERSION as ov, withRequestOptions as ow, isAppRef as ox, setAckFrame as oy, sameX401HolderJwk as p, turnStatedVerifier as pC, deviceFrameCapability as pS, parseCallSignal as p_, pubkyProofPath as pa, knockSlotRecords as pb, PIN_FRAME as pc, ringEvidence as pd, LIVE_POLL_MS as pf, UNUSED_INVITE_WAIT_MAX_MS as pg, sealSecret as ph, parseDidJws as pi, readAppRangeFrame as pl, appCardUrl as pm, GROUP_META_PAST_CHARS as pn, PAIRING_RETRY_MS as po, LINK_MAX_CHARS as pp, encodeWitness as pr, wireHubPolicy as ps, leaveStatement as pt, encodePacketTransports as pu, handoffAttemptFailed as pv, newerPacket as pw, signAppObject as px, ENROLL_CANCEL_REASONS as py, signAppStore as q, readRelayBody as qC, TURN_VERSION as qS, HANDOFF_HAVE as q_, ANSWERS_REFUSED_PAUSES as qa, yieldThread as qb, encryptPushPayload as qc, domainTxtRecord as qd, parseVideoMeta as qf, extractRtcParams as qg, AWAITING_PEER_MS as qh, isWalletNetwork as qi, UPGRADE_CAPABILITY as ql, parseGroupCommit as qm, sshSignCommand as qn, CARRIED_DEFER_MS as qo, REPLY_ID as qp, DID_FILE_MAX_BYTES as qr, TYPING_FRAME as qs, asWritten as qt, PROOF_CAPABILITY as qu, readHandoffHello as qv, concatBytes as qw, createChatInvite as qx, KNOCK_SLOTS as qy, readX401OpenId4VpRequest as r, signTurnPacket as rC, pastedAgain as rS, utf8Encode as rT, buildSdpFromSignal as r_, BITCOIN_NETWORKS as ra, REQUEST_TEXT_BYTES as rb, parseTypingActivity as rc, proofStatement as rd, txtValue as rf, OFFER_LOOK_MS as rg, confirmationMatches as rh, didJwsAlg as ri, appRangeCancelFrame as rl, CRON_LINE as rm, meshMessageRef as rn, FIRST_PAIRING_PACE_MS as ro, REMOVED_TEXT as rp, decodeBase64 as rr, groupSignalFrame as rs, communityCommitHash as rt, CAPS_LIMITS as ru, HANDOFF_REQUEST as rv, budgetRetryMs as rw, isAppHash as rx, SET_UPDATE as ry, presentX401SdJwtVc as s, turnName as sC, DEVICE_ECHO_FRAME as sS, __require as sT, contactRtcConfig as s_, isPubkyKey as sa, contactAskerFrame as sb, typingFrame as sc, validExternalKey as sd, DHT_FILE_REFUSED as sf, RELAY_POLL_INTERVALS as sg, encryptText as sh, didWebFileNames as si, appRangeErrorFrame as sl, REMOVABLE_KINDS as sm, MENTION_LIMITS as sn, INVITE_TAKEN as so, editedFrame as sp, compactSize as sr, NO_HUB_POLICY as ss, communityRoster as st, CapsKeys as su, HANDOFF_WINDOW as sv, MAX_DNS_PACKET_BYTES as sw, isAppSignature as sx, setUpdateFrame as sy, X401_REQUEST_LIMITS as t, sealTurnBody as tC, inviteQrText as tS, toZ32 as tT, RTC_CONFIG as t_, sparkInvoiceDetails as ta, REQUEST_NAME_UNITS as tb, TypingReceiver as tc, proofCapability as td, recordsFromWellKnown as tf, MAX_DHT_TEXT_BYTES as tg, verifyCommitSignature as th, checkDidSignature as ti, APP_RANGE_LIMITS as tl, BUTTON_ID as tm, communityEditFrame as tn, DHT_PIN_GRACE_MS as to, MAX_EDITS_PER_MESSAGE as tp, bip322ToSign as tr, SIGNAL_PROVEN_MS as ts, CommunitySession as tt, CAPS_ISSUED_BACK_MS as tu, HANDOFF_PIECE_OVERHEAD as tv, RelayBreaker as tw, appSignedBytes as tx, sortParts as ty, X401_CREDENTIAL_LIMITS as u, turnReleaseMessage as uC, HANDOFF_CAPABILITY as uS, heardCallSignal as u_, normalizePubkyKey as ua, knockHolds as ub, GROUP_PIN_FRAME as uc, RING_LIFETIME as ud, DHT_TEXT_BYTES as uf, TRANSPORTS_GONE_MS as ug, openPair as uh, normalizeDid as ui, encodeAppRangeData as ul, STATUS_CARD_LIMITS as um, validMentions as un, MAX_PAIRED_MESSAGE_FRAME as uo, validEditMessage as up, decodeTx as ur, meshRendezvous as us, derivedSecret as ut, capsDescriptors as uu, filePartName as uv, RELAY_PAYLOAD_MAX_BYTES as uw, readAppRevocations as ux, verifySetUpdate as uy, X401_SCHEME as v, CHAT_RESERVE as vC, deviceLinkSealKey as vS, LABEL$1 as v_, LIGHTNING_DESTINATION_PATTERN as va, openRequest as vb, parsePinnedFrame as vc, RELAY_WITH_SECRETS as vd, dhtFileId as vf, GhostlyHttpError as vg, RATCHET_CAPABILITY as vh, DID_DHT_MAX_PAYLOAD as vi, APP_RATE_WINDOW_MS as vl, cardTimeUtc as vm, encodeGroupMetaBody as vn, REDESCRIBED_GRACE_MS as vo, linkStop as vp, u64 as vr, freshHubs as vs, signCommunity as vt, IDENTITY_FRAME_LIMIT as vu, handoffContextProof as vv, decodeDnsAnswers as vw, IMAGE_LIMITS as vx, enrollCancelFrame as vy, decodeX401Header as w, FRESH_READ_MS as wC, verifyDeviceTransports as wS, parseLinkRecords as w_, parseLightningDestination as wa, stampHolds as wb, DEVICE_WAKE_TTL_SECONDS as wc, irohRelayUrl as wd, sanitizeFileName as wf, relativizeLocation as wg, isRatcheted as wh, didDhtDocument as wi, appDataBytes as wl, statusCardBytes as wm, groupMetaTag as wn, WAKE_LOST_MS as wo, forwardedAgain as wp, atprotoDidMethod as wr, newerHead as ws, MAX_KNOCKS as wt, IDENTITY_PROOF_CAPABILITY as wu, handoffFileRequestFrame as wv, identityFromSeed as ww, readImageMeta as wx, enrollMessage as wy, buildX401ProofResult as x, CHAT_WATCH_SHARE as xC, newDeviceSetSecret as xS, buildLinkRecords as x_, findLightningDestination as xa, requestPlaintextBytes as xb, pinNumberHolds as xc, checkedDescriptors as xd, PREVIEWABLE_IMAGE as xf, VIEWER_SERVICE_CSP as xg, RATCHET_OVERHEAD as xh, DID_DHT_VERSION as xi, APP_VERSION_MAX as xl, readStatusCard as xm, groupMetaChange as xn, SWITCH_RETIRE_MS as xo, previewImageSize as xp, ATPROTO_FULL_SCOPE as xr, lobbyRecords as xs, verifyCommunityCommit as xt, IDENTITY_MAX_FRAME as xu, handoffDoneFrame as xv, readDnsName as xw, isImageMime as xx, enrollDoneFrame as xy, X401_VERSION as y, CHAT_RESERVE_MOST_SHARE as yC, deviceLinkSecret as yS, MAX_MSGS_PAYLOAD_B64 as y_, LNURL_LIMITS as ya, readKnockSlot as yb, pinFrame as yc, TRANSPORTS as yd, readDhtFile as yf, HttpClient as yg, RATCHET_HEADER_BYTES as yh, DID_DHT_PREFIX as yi, APP_RESUME_GRACE_MS as yl, cardUrl as ym, groupDisplayName as yn, RESUME_WAIT_MS as yo, linksIn as yp, varBytes as yr, hubRank as ys, verifyCommunityChain as yt, IDENTITY_FRAME_WINDOW_MS as yu, handoffDataFrame as yv, decodeTxtPacket as yw, exifOrientation as yx, enrollCancelReason as yy, planAppUpdate as z, SLOW_DEMOTE_MS as zC, TURN_MAX as zS, HANDOFF_BUSY as z_, VIDEO_METADATA_LIMITS as za, findAppForbiddenKey as zb, wakeFrame as zc, DOMAIN_FILE_MAX_BYTES as zd, voiceLevel as zf, encodeControl as zg, REANSWERS as zh, SEPOLIA_TEST_USDT_FAUCET as zi, KNOWN_SESSION_CAPABILITIES as zl, MAX_GROUP_CHAIN as zm, SSH_KEY_TYPES as zn, GROUP_WANT_NO_FRAME as zo, reactionEmoji as zp, parseAtprotoCar as zr, FILE_LIMITS as zs, groupWakeFrame as zt, receivedIdentityStatus as zu, openHandoffPiece as zv, dropLoneJoiners as zw, encodeDeviceInvite as zx, newInbox as zy };
|
|
40277
|
+
export { COMMUNITY_LIMITS as $, WRITE_FIRST_MS as $C, TURN_VERSION as $S, HANDOFF_HAVE as $_, DEMOTE_AFTER_FAILURES as $a, yieldThread as $b, APP_RANGE_DATA_KIND as $c, isPublicAddress as $d, EDIT_BUFFER_MS as $f, offerIsFresh as $g, DEPARTED_READ_MS as $h, isSparkAddress as $i, PairedSession as $l, rosterHas as $m, MessageRefusal as $n, SIGNAL_CARRIERS as $o, pairedReplyAuthor as $p, DidError as $r, TYPING_SEND_LIMIT as $s, GROUP_EDIT_TEXT_BYTES as $t, STORAGE_ROOT as $u, readHandoffHello as $v, trimEndOf as $w, createChatInvite as $x, KNOCK_SLOTS as $y, readX401ProofResponseHeader as A, CHAT_WATCH_SHARE as AC, verifyDeviceTransports as AS, parseLinkRecords as A_, findBolt11 as Aa, stampHolds as Ab, WAKE_INTERVAL_MS as Ac, relayedTransports as Ad, RECORDING_TYPES as Af, resolveTargetUrl as Ag, ratchetOpen as Ah, jwkThumbprint as Ai, isChatAppId as Al, usageLeft as Am, parseGroupMetaBody as An, ENGINE_ERRORS as Ao, COMMUNITY_REACTION_FRAME as Ap, parseAtprotoDidDocument as Ar, readLobby as As, knockRecords as At, IdentityCheckUnavailable as Au, handoffFileRequestFrame as Av, readDnsName as Aw, readImageMeta as Ax, enrollMessage as Ay, APP_STORE_KINDS as B, HEDGE_MS as BC, TOMBSTONE_SEQUENCE as BS, servicesFromWire as B_, videoMetadataPatches as Ba, appDigest as Bb, wakeFrame as Bc, DNS_LABEL as Bd, voiceDownloadName as Bf, PROTOCOL_VERSION as Bg, GATHER_STALL_MS as Bh, TEST_USDT_FAUCET_AMOUNT as Bi, KNOWN_SESSION_CAPABILITIES as Bl, GROUP_VERSION_LARGE as Bm, SSH_PUBLIC_KEY_MAX as Bn, GROUP_WANT_NO_FRAME as Bo, queueReaction as Bp, parseAtprotoDidKey as Br, FILE_LIMITS as Bs, groupWakes as Bt, isIdentityBinding as Bu, handoffVerifiedFrame as Bv, generateEncryptionKey as Bw, DEVICE_INVITE_LIFETIME_S as Bx, NEW_PER_HOUR as By, buildX401TokenObject as C, ANSWER_READ_SPACING_MS as CC, deviceLinkRendezvousSeed as CS, waitForIceGathering as C_, parseInvoiceCallback as Ca, mergeContactKnocks as Cb, pinnedFrame as Cc, automaticTransport as Cd, FileTransfers as Cf, GhostlyHttpError as Cg, RATCHET_KEEP_MS as Ch, decodeDidDhtPacket as Ci, AppSessions as Cl, checkStatusCard as Cm, groupMetaPicture as Cn, WAKE_ANSWER_GRACE_MS as Co, parseLinkPreview as Cp, ATPROTO_PROOF_SCOPE as Cr, mergeBeacon as Cs, KNOCK_TTL_MS as Ct, IDENTITY_MAX_RECEIVED as Cu, handoffContext as Cv, openRelayPayload as Cw, verifyAppStatementBytes as Cx, ENROLL_PROOF as Cy, readX401ProofRequest as D, CHAT_RESERVE as DC, newDeviceSetSecret as DS, buildLinkRecords as D_, resolveLightningDestination as Da, requestPlaintextBytes as Db, WAKE_CALL_TTL_SECONDS as Dc, irohRelayUrl as Dd, sanitizeFileName as Df, formatLocalTarget as Dg, isRatcheted as Dh, didDhtRecords as Di, appOpenFrame as Dl, statusCardBytes as Dm, keepPastGroupMeta as Dn, pairedMessageFrame as Do, forwardedAgain as Dp, checkAtprotoProofRecord as Dr, rankHubs as Ds, entryParams as Dt, IDENTITY_REVOCATION_LABEL as Du, handoffDoneFrame as Dv, decodeDnsAnswers as Dw, isImageMime as Dx, enrollDoneFrame as Dy, isX401Protocol as E, BACKGROUND_WRITES_SHARE as EC, devicePingFrame as ES, RECORD_TTL as E_, requestLnurlInvoice as Ea, readLinkRecord as Eb, WAKE_CALL_INTERVAL_MS as Ec, irohDescriptor as Ed, safeBlobType as Ef, VIEWER_SERVICE_CSP as Eg, emptyRatchetState as Eh, didDhtKey as Ei, appDataFrame as El, sameButtonText as Em, groupName as En, pairedMessageFits as Eo, FORWARD_LIMITS as Ep, atprotoProofRkey as Er, pickHubs as Es, encodeGroupEntryLink as Et, IDENTITY_PROVIDER_ID as Eu, handoffDigest as Ev, signRelayPayload as Ew, imageSize as Ex, enrollDigits as Ey, appRevocationFor as F, GROUP_BURST_ONE_LINK as FC, TURN_SETTLE_MS as FS, decodeServices as F_, isFederationId as Fa, APP_FORBIDDEN_KEYS as Fb, newWakeToken as Fc, HoldKeys as Fd, fileMessageText as Ff, withViewerPolicy as Fg, ANSWER_REFUSED_REDIALS as Fh, EVM_TEST_CHAINS as Fi, BUTTONS_CAPABILITY as Fl, receivedTimestamp as Fm, verifyGroupMetaSignature as Fn, PairingTracker as Fo, REACTION_LIMITS as Fp, decodeAtprotoCommit as Fr, PairedCalls as Fs, GROUP_WAKE_GROUP_WINDOW_MS as Ft, identityPresentationBytes as Fu, handoffPakeFrame as Fv, publicKeyFromZ32 as Fw, CONTACT_LINK_VERSION as Fx, verifyEnrollProof as Fy, readAppStore as G, RelaysFailedError as GC, TURN_MAX as GS, HANDOFF_BUSY as G_, stripPictureMetadata as Ga, findAppForbiddenKey as Gb, WebPushError as Gc, DOMAIN_TXT_MAX_BYTES as Gd, PLAYABLE_VIDEO as Gf, sendBody as Gg, DIRECT_EVIDENCE_MS as Gh, assertWholeSats as Gi, STATUS_CARD_CAPABILITY as Gl, OWN_FRAME_LIMIT as Gm, sshFingerprint as Gn, readGroupHave as Go, readDhtReactions as Gp, verifyAtprotoSignature as Gr, sentWhole as Gs, GROUP_READ_NOTE as Gt, verifyIdentityPresentation as Gu, openHandoffPiece as Gv, jpegSize$1 as Gw, encodeDeviceInvite as Gx, newInbox as Gy, checkAppListing as H, RELAY_REQUESTS_PER_MINUTE as HC, TURN_BODY_BYTES as HS, viewerTag as H_, NO_PICTURE_METADATA as Ha, assembleAppBundle as Hb, wakeRequest as Hc, DOMAIN_FILE_MAX_BYTES as Hd, voiceLevel as Hf, decodeControl as Hg, OFFER_HOST_GATHER_MS as Hh, WALLET_NETWORKS as Hi, REACTIONS_CAPABILITY as Hl, MAX_GROUP_CHAIN as Hm, parseSshPublicKey as Hn, groupFileFallback as Ho, reactionEmoji as Hp, readAtprotoCid as Hr, decodeFileData as Hs, parseGroupWakeFrame as Ht, receivedIdentityStatus as Hu, handoffVersions as Hv, tryDecrypt as Hw, createDeviceInvite as Hx, clearMissed as Hy, appStoreDecision as I, GROUP_OVER_PACE_MS as IC, TURN_VISIBLE_MS as IS, encodeServices as I_, parseCashuRequestPayload as Ia, APP_ICON_PATH as Ib, parseWakeFrame as Ic, HoldRefusedError as Id, formatVoiceDuration as If, CHUNK_FLAG_END as Ig, CONNECT_TIMEOUT_MS as Ih, ONCHAIN_PROVIDER as Ii, CALLS_CAPABILITY as Il, shownTime as Im, wrapGroupMeta as In, GROUP_FILE_LIMITS as Io, ReactionWindow as Ip, decodeDagCbor as Ir, parsePairedCallFrame as Is, GROUP_WAKE_MEMBER_INTERVAL_MS as It, identityRefusal as Iu, handoffReleaseFrame as Iv, sign as Iw, createContactLink as Ix, FLOOD_PER_DAY as Iy, GROUP_TYPING_FRAME as J, SLOW_DEMOTE_MS as JC, TURN_REV_LIMIT as JS, HANDOFF_CANCEL_REASONS as J_, ANSWERS_REFUSED_PAUSE_MS as Ja, isAppUrl as Jb, encryptPushPayload as Jc, decodeDnsResponse as Jd, isPlayableVideoType as Jf, DATA_CHANNEL_LABEL as Jg, DirectPathWatch as Jh, parsePaymentAmount as Ji, UPGRADE_CAPABILITY as Jl, commitUntaggedHash as Jm, verifySshSignature as Jn, CARRIED_DEFER_MS as Jo, wireReaction as Jp, DID_GHOSTLY_SERVICE as Jr, TYPING_FRAME as Js, chainPieces as Jt, lastSharedWithMe as Ju, readHandoffCancel as Jv, dropLoneJoiners as Jw, INVITE_HRP as Jx, takeRequest as Jy, readAppStoreSteps as K, SIGNALING_ALLOWANCE_SHARE as KC, TURN_NAME_BYTES as KS, HANDOFF_BUSY_REASONS as K_, withoutPictureMetadata as Ka, isAppLicense as Kb, checkPushEndpoint as Kc, NIP05_PATH as Kd, VIDEO_LIMITS as Kf, wrapDataChannel as Kg, DIRECT_OWN_ATTEMPTS as Kh, formatPaymentAmount as Ki, SessionCapabilities as Kl, SAID_AGAIN as Km, sshKeyDigestHex as Kn, readGroupWant as Ko, readReaction as Kp, DID_DOCUMENT_MAX_BYTES as Kr, transferEnded as Ks, GroupSession as Kt, IDENTITY_TIMELINE_MAX as Ku, readHandoffAck as Kv, sanitizeAvatar as Kw, readDeviceInvite as Kx, planKnocks as Ky, appUpdateDecision as L, GROUP_RATION_WINDOW_MS as LC, classifyTurnRead as LS, isValidServiceId as L_, parseFedimintRequestPayload as La, APP_PERMISSIONS as Lb, readWake as Lc, isHoldUrl as Ld, isPlayableAudioType as Lf, CHUNK_KIND as Lg, DATA_SETTLE_MS as Lh, PaymentPreflightError as Li, EDIT_CAPABILITY as Ll, GROUP_ADMIN_OFF_ERROR as Lm, SSHSIG_MAX_ARMOR as Ln, GROUP_HAVE_FRAME as Lo, nextReactionNumber as Lp, encodeDagCbor as Lr, ChatFiles as Ls, GROUP_WAKE_RECEIVE_LIMIT as Lt, identityRevocationValue as Lu, handoffRequestFrame as Lv, verify as Lw, encodeContactLink as Lx, MAX_DONE as Ly, readX401ProofResultHeader as M, DEPARTED_READS as MC, webCryptoSigner as MS, LEGACY_SERVICES as M_, cashuRequestPayload as Ma, APP_BUNDLE_MAGIC as Mb, WAKE_TTL_SECONDS as Mc, HOLD_CAPABILITY as Md, VOICE_METER as Mf, sanitizeResponseHeaders as Mg, ratchetSeal as Mh, resolveDidDht as Mi, readAppFrame as Ml, arrivalKey as Mm, parseGroupMetaStatement as Mn, engineError as Mo, QUICK_REACTIONS as Mp, AtprotoCid as Mr, validHead as Ms, readKnocks as Mt, boundIdentityDisplay as Mu, handoffHelloFrame as Mv, createIdentity as Mw, canonicalJsonBytes as Mx, formatEnrollDigits as My, x401AnswerableRequests as N, FRESH_READ_MS as NC, TURN_PUT_WINDOW_MS as NS, MAX_SERVICES as N_, fedimintRequestPayload as Na, APP_CLIENTS as Nb, WakeLimiter as Nc, HOLD_DATED_BACK_MS as Nd, baseMime as Nf, viewerResponseHeaders as Ng, ratchetSessionOf as Nh, signDidDhtPacket as Ni, APPS_CAPABILITY as Nl, claimedTime as Nm, parseGroupMetaTag as Nn, engineText as No, REACTED_FRAME as Np, AtprotoProofError as Nr, MAX_PAIRED_CALL_SIGNAL as Ns, GROUP_WAKE_FRAME as Nt, boundVerifiedIdentity as Nu, handoffManifestFrames as Nv, identityFromSeed as Nw, readCanonicalJson as Nx, readEnrollGrant as Ny, readX401ProofRequestHeader as O, CHAT_RESERVE_MOST_SHARE as OC, signDeviceTransports as OS, emptyLinkRecords as O_, BOLT11_PATTERN as Oa, requestRecords as Ob, WAKE_CALL_WAIT_MS as Oc, rankTransports as Od, sanitizeMime as Of, parseLocalTarget as Og, ratchetHeard as Oh, encodeDidDhtDeactivated as Oi, chatAppId as Ol, statusCardText as Om, nextGroupMetaRevision as On, parsePaymentNetworks as Oo, forwardedMany as Op, isAtprotoDid as Or, readBeacon as Os, groupEntryUrl as Ot, IDENTITY_STATEMENT_PREFIX as Ou, handoffEphemeral as Ov, decodeTxtPacket as Ow, parseImageMeta as Ox, enrollGrantFrame as Oy, addedAppPermissions as P, GROUP_BURST_MS as PC, TURN_RAISE_READ_TIMEOUT_MS as PS, SERVICES_VERSION as P_, findEndpoint as Pa, APP_CLIENT_NAME as Pb, deviceWakeRequest as Pc, HOLD_LIMITS as Pd, downsamplePeaks as Pf, webLocalFetch as Pg, ratchetUnknownSession as Ph, ETHEREUM_USDT as Pi, APP_RANGES_CAPABILITY as Pl, heardTime as Pm, signGroupMeta as Pn, parseEngineError as Po, REACTION_FRAME as Pp, atprotoCidFor as Pr, PAIRED_CALL_FRAME as Ps, GROUP_WAKE_GROUP_LIMIT as Pt, emptyIdentityLedger as Pu, handoffOfferFrame as Pv, identityFromSeedB64 as Pw, CONTACT_LINK_BYTES as Px, readEnrollHello as Py, sealGroupTyping as Q, WAY_BACK_SHARE as QC, TURN_TTL as QS, HANDOFF_FILE_REQUEST as Q_, CROSSED_WAIT_MS as Qa, sha256Paced as Qb, vapidKeysMatch as Qc, encodeDnsQuery as Qd, EDIT_BUFFER_MAX as Qf, extractRtcParams as Qg, DAEMON_WATCH_PEER_IDLE_MS as Qh, SPARK_PROVIDER as Qi, PAIRED_PROFILE as Ql, rosterAdmin as Qm, BIP322_REVISION as Qn, SIGNALS_PER_MINUTE as Qo, groupReplyAuthor as Qp, DID_METHODS as Qr, TYPING_REFRESH_MS as Qs, GROUP_EDIT_FRAME as Qt, STORAGE_LIFETIME as Qu, readHandoffHave as Qv, stripHidden as Qw, OwnInviteError as Qx, ContactRequestError as Qy, checkAppBeforeRun as R, GROUP_SIGNALING_ALLOWANCE_SHARE as RC, keptAtEqualSequence as RS, isViewerTag as R_, NO_VIDEO_METADATA as Ra, APP_SCREENSHOTS_DIR as Rb, readWakePayload as Rc, newMailbox as Rd, parseVoiceMeta as Rf, LIMITS as Rg, DataLink as Rh, SEPOLIA_TEST_USDT as Ri, FILES_BINARY_CAPABILITY as Rl, GROUP_ID as Rm, SSHSIG_NAMESPACE as Rn, GROUP_VERSION_FILES as Ro, parseReactedFrame as Rp, findInMst as Rr, FILE_DATA_KIND as Rs, GroupWakeLimiter as Rt, identityStatement as Ru, handoffRetryAfter as Rv, decrypt as Rw, readContactLink as Rx, MAX_MISSED as Ry, buildX401ResultArtifact as S, ANSWER_READ_FIRST_MS as SC, deviceLinkParams as SS, signalHasVideo as S_, invoiceCallbackUrl as Sa, makeStampPaced as Sb, pinNumberHolds as Sc, TRANSPORTS as Sd, readDhtFile as Sf, unusedInviteWait as Sg, RATCHET_HEADER_BYTES as Sh, DidDhtError as Si, APP_VERSION_MAX as Sl, cardUrl as Sm, groupMetaNewer as Sn, UNPROVEN_AUTH_MS as So, linksIn as Sp, ATPROTO_PROOF_COLLECTION as Sr, lobbyRecords as Ss, GROUP_ENTRY_PROFILE as St, IDENTITY_MAX_FRAME as Su, handoffCancelFrame as Sv, newerPacket as Sw, verifyAppSignature as Sx, ENROLL_HELLO as Sy, encodeX401Header as T, BACKGROUND_WHILE_SIGNALING as TC, deviceLinkSecret as TS, MAX_MSGS_PAYLOAD_B64 as T_, parsePayParams as Ta, readKnockSlot as Tb, DEVICE_WAKE_TTL_SECONDS as Tc, dialableIrohRelay as Td, formatFileSize as Tf, HttpHost as Tg, RatchetBox as Th, didDhtFromPublicKey as Ti, appDataBytes as Tl, removedCardText as Tm, groupMetaToHand as Tn, pairedEditFits as To, sanitizePreviewImage as Tp, atprotoProofRecord as Tr, newerHead as Ts, decodeGroupEntryLink as Tt, IDENTITY_PROOF_CAPABILITY as Tu, handoffDataFrame as Tv, readOwnRelayPayload as Tw, exifOrientation as Tx, enrollCancelReason as Ty, checkAppStoreIndex as U, REQUESTS_PER_MINUTE as UC, TURN_LABEL as US, HANDOFF_ACK as U_, PICTURE_METADATA_LIMITS as Ua, buildAppBundle as Ub, PUSH_PAD_BYTES as Uc, DOMAIN_MAX_RECORDS as Ud, voiceLevelsOf as Uf, encodeChunk as Ug, REANSWERS as Uh, arkAddressPrefix as Ui, SERVICES_CAPABILITY as Ul, MAX_GROUP_MEMBERS as Um, parseSshSignature as Un, isGroupMessageId as Uo, reactionFrame as Up, unsignedCommitBytes as Ur, encodeFileData as Us, GROUP_LIMITS as Ut, revokesIdentity as Uu, isHandoffPartName as Uv, MAX_AVATAR_LENGTH as Uw, deviceInviteJoinerKeyZ32 as Ux, endedRequests as Uy, APP_STORE_LIMITS as V, PREVIOUS_DEFAULT_RELAYS as VC, TOMBSTONE_TURN as VS, servicesToWire as V_, withoutVideoMetadata as Va, appViewOf as Vb, wakePayload as Vc, DNS_TYPE as Vd, voiceFileName as Vf, decodeChunk as Vg, LATE_ANSWER_MS as Vh, USDT_PUBLIC_RPC as Vi, PIN_CAPABILITY as Vl, LEGACY_GROUP_MEMBERS as Vm, SshSigError as Vn, fetchesByItself as Vo, reactedFrame as Vp, parseAtprotoVerificationKey as Vr, FileUplink as Vs, mentionedMembers as Vt, newIdentityBinding as Vu, handoffVerifiedMessage as Vv, sealedLength as Vw, DEVICE_INVITE_OWN_DEVICE as Vx, REOPEN_BELOW as Vy, readAppListing as W, RelayTransport as WC, TURN_LAST_SEQUENCE as WS, HANDOFF_ATTEMPTS as W_, isStrippedPicture as Wa, checkAppManifest as Wb, PUSH_SERVICE_HOSTS as Wc, DOMAIN_METHODS as Wd, voicePeaksOf as Wf, encodeControl as Wg, STALLED_EVIDENCE_MS as Wh, assertTokenUnits as Wi, SESSION_CAPABILITIES_FRAME as Wl, MEMBER_KEY as Wm, sameSshKey as Wn, readGroupFileMeta as Wo, reactionIsNewer as Wp, verifyAtprotoRecordProof as Wr, refusalText as Ws, GROUP_REACTED_FRAME as Wt, signIdentityPresentation as Wu, newHandoffId as Wv, MAX_AVATAR_SIDE as Ww, deviceInviteJoinerParams as Wx, inboxRecord as Wy, groupTypingEpoch as X, TURN_SOURCE_TIMEOUT_MS as XC, TURN_SIGNED_BYTES as XS, HANDOFF_DONE as X_, CROSSED_FRESH_MS as Xa, readAppBundle as Xb, pushRequest as Xc, domainTxtRecord as Xd, parseVideoMeta as Xf, RTC_SIGNAL_MAX_AGE_MS as Xg, symmetricNat as Xh, walletNetworkOf as Xi, parseSessionCapabilities as Xl, parseGroupCommit as Xm, legacyMessageHash as Xn, GROUP_SIGNAL_FRAME as Xo, REPLY_ID as Xp, DID_JWS_MAX_LENGTH as Xr, TYPING_RATE_LIMIT as Xs, groupMessageId as Xt, PROOF_CAPABILITY as Xu, readHandoffDone as Xv, sanitizeDisplayText as Xw, INVITE_MAX_LENGTH as Xx, CONTACT_ASKER_FRAME as Xy, GroupTypingBoard as Y, SLOW_MS as YC, TURN_SEALED_BYTES as YS, HANDOFF_DATA as Y_, BLOCKED_DIAL_WAIT_MS as Ya, pacer as Yb, generateVapidKeys as Yc, dnsProofName as Yd, isVideoMime as Yf, RTC_SIGNAL_FUTURE_MS as Yg, directBlocked as Yh, validatePaymentTarget as Yi, WAKE_SESSION_CAPABILITY as Yl, expectedRoster as Ym, isLegacySignature as Yn, CarriedTransport as Yo, PAIRED_REPLY_AUTHORS as Yp, DID_JWS_ALGS as Yr, TYPING_KINDS as Ys, frameBytes as Yt, PROOF_ADAPTERS as Yu, readHandoffData as Yv, hasVisible as Yw, INVITE_LINK_ORIGIN as Yx, turnOff as Yy, openGroupTyping as Z, WATCH_SHARE as ZC, TURN_SLOTS as ZS, HANDOFF_FILE_MISSING as Z_, CROSSED_PROBE_MS as Za, readAppBundleAsync as Zb, vapidAuthorization as Zc, domainWellKnownFile as Zd, EDITED_FRAME as Zf, buildDataSdp as Zg, AWAITING_PEER_MS as Zh, SPARK_NETWORKS as Zi, sessionCapabilitiesFrame as Zl, rememberAlone as Zm, verifyBitcoinMessage as Zn, GROUP_VERSION_SIGNALS as Zo, REPLY_LIMITS as Zp, DID_MAX_LENGTH as Zr, TYPING_RATE_WINDOW_MS as Zs, COMMUNITY_EDIT_FRAME as Zt, PeerProofs as Zu, readHandoffFileFrame as Zv, sanitizeNick as Zw, INVITE_VERSION as Zx, CONTACT_RECORD_TTL as Zy, X401_PROTOCOLS as _, turnSequence as _C, deviceEchoFrame as _S, __toCommonJS as _T, isGlobalIpv4Host as __, pubkyHomeserverOf as _a, knockSlotIdentity as _b, nextPinNumber as _c, validRingKey as _d, emptyDhtDeliveryState as _f, UNUSED_INVITE_UPKEEP_MS as _g, sha256Hex as _h, strictBase64Url as _i, APP_PEER_OPEN_MAX as _l, buttonLabelClash as _m, MAX_GROUP_PICTURE_LENGTH as _n, RACE_RELAYED_MS as _o, LINK_PREVIEW_LIMITS as _p, u32$1 as _r, beaconRecords as _s, shortHash as _t, IDENTITY_CHECK_UNAVAILABLE as _u, handoffAckFrame as _v, PKARR_FUTURE_SKEW_MS as _w, readAppSignature as _x, DEVICE_KINDS as _y, X401_DCQL_LIMITS as a, readTurnBody as aC, inviteOwnership as aS, fromZ32 as aT, QUICK_REDIAL_MS as a_, PUBKY_PROOF_MAX_BYTES as aa, REQUEST_LABEL as ab, parseTypingFrame as ac, proofHash as ad, recordsName as af, MAX_DHT_TEXT_BYTES as ag, GROUP_PROFILE as ah, didWebDocumentUrl as ai, appRangeChunk as al, BUTTON_STYLES as am, validEditText as an, HANDLED_WAIT_MS as ao, MAX_REMOVAL_NUMBER as ap, BitcoinAddressError as ar, readGroupSignal as as, communityHasFrame as at, CAPS_PUBLISH_SPACING_MS as au, HANDOFF_PAKE as av, traceLink as aw, appRefPublisher as ax, sameDigest as ay, buildX401ProofRequest as b, turnVerifierMark as bC, deviceKeyZ32 as bS, pickCallCandidates as b_, fetchLnurlJson as ba, linkRecords as bb, pinFrame as bc, RELAY_URL as bd, dhtFileElements as bf, countUnusedInvite as bg, MAX_SKIPPED_KEYS as bh, DID_DHT_TTL as bi, APP_RESUME_GRACE_MS as bl, cardLinkHost as bm, groupMetaBody as bn, RTC_UNSTARTED_MS as bo, linkEnd as bp, ATPROTO_DECLARED_SCOPE as br, hubRank as bs, verifyCommunityChainPaced as bt, IDENTITY_FRAME_WINDOW_MS as bu, handoffAttemptSucceeded as bv, createRelayPayload as bw, signAppRevocation as bx, ENROLL_DONE as by, readX401DcqlQuery as c, signTurnBody as cC, ownInviteRefusal as cS, toBase64 as cT, buildSdpFromSignal as c_, isPubkyProofFolder as ca, REQUEST_PACKET_BYTES as cb, typingFrame as cc, storageProofBody as cd, wellKnownUrl as cf, OFFER_STEP_MAX as cg, decryptText as ch, didWebFileUrl as ci, appRangeErrorFrame as cl, PR_CHECKS as cm, mentionsBytes as cn, LIVENESS_MISSED_PINGS as co, dhtEditId as cp, decodeAnyBitcoinAddress as cr, NO_HUB_POLICY as cs, communityUntaggedHash as ct, CapsKeys as cu, HANDOFF_RELEASE as cv, BREAKER_MAX_MS as cw, checkAppRevokeStatement as cx, SET_ACK as cy, newX401HolderKey as d, turnInstance as dC, DEVICES_CAPABILITY as dS, utf8Decode as dT, compressSdp as d_, pubkyProofCapability as da, STAMP_BITS_MAX as db, GROUP_PIN_FRAME as dc, verifyNostrProof as dd, DHT_FILE_TOO_LARGE as df, RELAY_POLL_INTERVALS as dg, epochKeys as dh, parseDid as di, encodeAppRangeData as dl, ROUTINE_STATES as dm, wireMentions as dn, PAIRED_FRAME_TOO_LARGE as do, parseEditFrame as dp, decodeWitness as dr, meshRendezvous as ds, encodeCommunityLink as dt, capsDescriptors as du, HANDOFF_VERIFIED as dv, DiscoveryBudgetError as dw, isAppLine as dx, readSetUpdate as dy, TurnRecordError as eC, createLink as eS, unwrapPasted as eT, parseRtcSignal as e_, sparkAddressKind as ea, KNOCK_SLOT_LABEL as eb, TYPING_STATUS_MAX as ec, emptyProofLedger as ed, nip05RootKey as ef, DHT_POLL_INTERVALS as eg, signCommit as eh, checkDidJws as ei, APP_RANGE_ERRORS as el, readReply as em, carryMentions as en, DEMOTE_MS as eo, EDIT_FRAME as ep, bip322MessageHash as er, SIGNAL_FRESH_MS as es, COMMUNITY_PROFILE as et, SESSION_FRAME_MAX as eu, HANDOFF_HELLO as ev, currentRelays as ew, APP_NAME as ex, readHandoffManifest as ey, readX401SdJwtVc as f, turnKeys as fC, DEVICE_CAPABILITIES as fS, utf8Encode as fT, contactRtcConfig as f_, pubkyProofFile as fa, STAMP_BITS_MIN as fb, PINNED_FRAME as fc, verifyPeerProof as fd, DHT_MESSAGE_TTL as ff, SIGNAL_DUE_READS as fg, newEpochSecret as fh, parseDidDocument as fi, isServeId as fl, RUN_RESULTS as fm, GROUP_META_PAST as fn, PAIRING_ATTEMPT_MS as fo, parseEditedFrame as fp, encodeTx as fr, parseHubPolicy as fs, leaveStands as ft, dialDescriptors as fu, HANDOFF_VERSION as fv, budgetRetryMs as fw, isAppRef as fx, setAckFrame as fy, X401_LIMITS as g, turnReleaseMessage as gC, HANDOFF_CAPABILITY as gS, __require as gT, isCandidateAddress as g_, homeserverWebEndpoint as ga, knockHolds as gb, mayPin as gc, ringEvidence as gd, LIVE_POLL_MS as gf, UNUSED_INVITE_READS_PER_MINUTE as gg, sealSecret as gh, staticDidDocument as gi, APP_FRAME as gl, appCardUrl as gm, MAX_GROUP_NAME_LENGTH as gn, RACE_DIRECT_MS as go, LINK_MAX_CHARS as gp, txHash as gr, beaconKeys as gs, rosterHash as gt, IDENTITY_CHALLENGE_WINDOW as gu, filePartName as gv, MAX_DNS_PACKET_BYTES as gw, readAppRevocations as gx, verifySetUpdate as gy, X401_HEADERS as h, turnPayloadSequence as hC, ENROLL_CAPABILITY as hS, __exportAll as hT, heardCallSignal as h_, encodeSvcbPacket as ha, contactDay as hb, PIN_LIMITS as hc, ringClaims as hd, DhtDelivery as hf, TRANSPORTS_GONE_MS as hg, sealPair as hh, signingKeys as hi, APP_DATA_MAX_BYTES as hl, appCardId as hm, MAX_GROUP_NAME_BYTES as hn, RACE_ANSWERED_MS as ho, validRemovalNumber as hp, sha256d as hr, COMMUNITY_TOPOLOGY as hs, leftStatement as ht, parsePacketTransports as hu, filePartDigest as hv, withRequestOptions as hw, readAppRevocationShape as hx, signTombstone as hy, x401ApprovalDigest as i, openTurnValue as iC, inviteLink as iS, fromBase64Url as iT, PAIRED_CALL_CANDIDATES as i_, isBitcoinAddress as ia, REQUEST_CLOCK_SKEW_MS as ib, parseTypingActivity as ic, proofCapability as id, recordsFromWellKnown as if, LinkSession as ig, verifyCommitSignature as ih, didSignedMessages as ii, appRangeCancelFrame as il, BUTTON_ID as im, parseCommunityEdit as in, GhostLink as io, MAX_EDITS_PER_MESSAGE as ip, verifyBip322 as ir, groupSignalFrame as is, communityGroupId as it, CAPS_LIMITS as iu, HANDOFF_OFFER as iv, setLinkTraceSink as iw, appRef as ix, readHandoffVerified as iy, readX401ProofResult as j, DEFAULT_RELAYS as jC, seedSigner as jS, HTTP_SERVICE_PROTO as j_, ENDPOINT as ja, APP_BUNDLE_LIMITS as jb, WAKE_SUBJECT as jc, transportOrder as jd, VOICE_LIMITS as jf, sanitizeRequestHeaders as jg, ratchetRoot as jh, openDidDhtPayload as ji, parseAppFrame as jl, MESSAGE_CLOCK_SKEW_MS as jm, parseGroupMetaFrame as jn, EngineError as jo, GROUP_REACTION_FRAME as jp, shortAtprotoDid as jr, shouldBeHub as js, mergeKnocks as jt, IdentityExchange as ju, handoffHaveFrames as jv, IDENTITY_MEMO_SIZE as jw, canonicalJson as jx, enrollProofFrame as jy, readX401ProofResponse as k, CHAT_RESERVE_PER_CHAT as kC, unsignedDeviceTransports as kS, isEmptyLinkPacket as k_, decodeBolt11 as ka, seenEntry as kb, WAKE_FRAME as kc, relayUrl as kd, PLAYABLE_AUDIO as kf, relativizeLocation as kg, ratchetOn as kh, encodeDidDhtPacket as ki, isAppVersion as kl, taskProgress as km, openGroupMeta as kn, publishFailure as ko, readForwarded as kp, normalizeAtprotoHandle as kr, readBeaconHead as ks, knockIdentity as kt, IDENTITY_SUBJECT as ku, handoffFileMissingFrame as kv, encodeTxtPacket as kw, previewable as kx, enrollHelloFrame as ky, x401VpToken as l, signTurnPacket as lC, pastedAgain as lS, toBase64Url as lT, callRtcConfig as l_, newPubkyProofFolder as la, REQUEST_TEXT_BYTES as lb, typingKindOf as lc, storageProofPath as ld, ACTIVE_DHT_POLL_MS as lf, PRESENCE_HEARTBEAT as lg, edgeParams as lh, didWebHost as li, appRangeGetFrame as ll, PR_STATES as lm, mentionsMember as ln, LIVENESS_PING_MS as lo, editFrame as lp, decodeBitcoinAddress as lr, mayBeHub as ls, decodeCommunityLink as lt, CapsRefusedError as lu, HANDOFF_REQUEST as lv, BREAKER_THRESHOLD as lw, isAppHash as lx, SET_UPDATE as ly, x401HolderJwk as m, turnPacket as mC, DEVICE_PING_FRAME as mS, __esmMin as mT, extractParamsFromSdp as m_, decodeSvcbRecords as ma, contactAskerHolds as mb, PIN_FRAME as mc, ringAuthorization as md, DHT_TEXT_REFUSED as mf, STALLED_LOOK_MS as mg, openSecret as mh, parseDidSignaturePaste as mi, readAppRangeFrame as ml, TASK_STATUSES as mm, MAX_GROUP_META_BODY as mn, PONG_WAIT_MS as mo, validEditNumber as mp, hash160 as mr, wireHubPolicy as ms, leaveStatement3 as mt, encodePacketTransports as mu, NO_ATTEMPTS as mv, isDiscoveryBudgetError as mw, readAppRevocation as mx, setUpdateMessage as my, X401_RESPONSE_MODES as n, firstDeviceSetSecret as nC, encodeGhostlyInvite as nS, concatBytes as nT, CALL_SIGNAL_FUTURE_MS as n_, sparkNetworkOf as na, MAX_SEEN as nb, TypingReceiver as nc, isProofAdapter as nd, parseDomainTxt as nf, FIRST_PUBLISH_MAX_MS as ng, verifyChain as nh, didGhostlyServiceEntry as ni, APP_RANGE_LIMITS as nl, wireReply as nm, communityMessageAuthor as nn, EARLY_DIAL_JOIN_MS as no, EDIT_RECEIVE_LIMIT as np, bip322ToSpend as nr, SIGNAL_PROVEN_MS as ns, GROUP_READ_NOTE_COMMUNITY as nt, CAPS_ISSUED_BACK_MS as nu, HANDOFF_LIST_PER_FRAME as nv, readRelayBody as nw, APP_STATEMENT_LIMITS as nx, readHandoffRelease as ny, matchX401Dcql as o, readTurnPacket as oC, inviteQrSegments as oS, isZ32Key as oT, RTC_CONFIG as o_, PUBKY_PROOF_ROOT as oa, REQUEST_LIFETIME_MS as ob, sanitizeTypingStatus as oc, proofStatement as od, txtValue as of, OFFER_FAST_MS as og, confirmationMatches as oh, didWebFile as oi, appRangeDataFrame as ol, CRON_LINE as om, MENTION_EVERYONE as on, INVITER_DIAL_GRACE_MS as oo, REMOVED_TEXT as op, ByteReader as or, GROUP_VERSION_HUBS as os, communityMessageId as ot, CAPS_REFRESH_MS as ou, HANDOFF_PIECE_BYTES as ov, BREAKER_ALL_DOWN_PROBE_MS as ow, appRevocationId as ox, sealHandoffPiece as oy, sameX401HolderJwk as p, turnName as pC, DEVICE_ECHO_FRAME as pS, __commonJSMin as pT, decompressSdp as p_, pubkyProofPath as pa, contactAskerFrame as pb, PIN_CLOCK_SKEW_MS as pc, RING_LIFETIME as pd, DHT_TEXT_BYTES as pf, SIGNAL_OUT_READS as pg, openPair as ph, parseDidJws as pi, parseAppRangeFrame as pl, STATUS_CARD_LIMITS as pm, GROUP_META_PAST_CHARS as pn, PAIRING_RETRY_MS as po, validEditMessage as pp, encodeWitness as pr, pickMeshHubs as ps, leaveStatement as pt, emptyCapsState as pu, HANDOFF_WINDOW as pv, heldBackError as pw, isAppSignature as px, setUpdateFrame as py, signAppStore as q, SIGNALING_WINDOW_MS as qC, TURN_NO_ACTIVE as qS, HANDOFF_CANCEL as q_, ANSWERS_REFUSED_PAUSES as qa, isAppPath as qb, decryptPushPayload as qc, WELL_KNOWN_PATH as qd, formatVideoDuration as qf, DATA_CHANNEL_ID as qg, DIRECT_PEERS as qh, isWalletNetwork as qi, TYPING_CAPABILITY as ql, commitHash as qm, sshSignCommand as qn, readGroupWantNo as qo, validReactionNumber as qp, DID_FILE_MAX_BYTES as qr, transferStalled as qs, asWritten as qt, applyIdentityEvent as qu, readHandoffBusy as qv, MAX_NICK_LENGTH as qw, DEVICE_INVITE_VERSION as qx, settleRequest as qy, readX401OpenId4VpRequest as r, nextTurnPosition as rC, encodeInviteCode as rS, fromBase64 as rT, CALL_SIGNAL_MAX_AGE_MS as r_, BITCOIN_NETWORKS as ra, MAX_SLOT_KNOCKS as rb, TypingSender as rc, nostrProofTemplate as rd, recordsFromTxt as rf, IDLE_THRESHOLD as rg, verifyCommit as rh, didJwsAlg as ri, AppRanges as rl, ACTIVE_TASK_STATUSES as rm, meshMessageRef as rn, FIRST_PAIRING_PACE_MS as ro, EDIT_SEND_LIMIT as rp, decodeBase64 as rr, SIGNAL_REPLY_MS as rs, communityCommitHash as rt, CAPS_LABEL as ru, HANDOFF_MANIFEST as rv, relayUrlProblem as rw, appFingerprint as rx, readHandoffTurnFrame as ry, presentX401SdJwtVc as s, sealTurnBody as sC, inviteQrText as sS, randomBytes as sT, answersOffer as s_, isPubkyKey as sa, REQUEST_NAME_UNITS as sb, typingActivity as sc, storageProof as sd, validDomainRecord as sf, OFFER_LOOK_MS as sg, confirmationTag as sh, didWebFileNames as si, appRangeEndFrame as sl, ITEM_STATES as sm, MENTION_LIMITS as sn, INVITE_TAKEN as so, RateWindow as sp, compactSize as sr, MESH_HUBS as ss, communityRoster as st, CapsExchange as su, HANDOFF_PIECE_OVERHEAD as sv, BREAKER_BASE_MS as sw, appSignedBytes as sx, sortParts as sy, X401_REQUEST_LIMITS as t, encodeTurnFields as tC, decodeInviteCode as tS, bytesEqual as tT, BURST_RING_MS as t_, sparkInvoiceDetails as ta, LINK_RECORD_LABEL as tb, TYPING_TIMEOUT_MS as tc, importedProof as td, normalizeDomain as tf, EXPECT_PEER_MS as tg, sortRoster as th, checkDidSignature as ti, APP_RANGE_FRAMES as tl, replySnippet as tm, communityEditFrame as tn, DHT_PIN_GRACE_MS as to, EDIT_RATE_WINDOW_MS as tp, bip322ToSign as tr, SIGNAL_HOLD_MS as ts, CommunitySession as tt, SESSION_RECEIVE_PENDING as tu, HANDOFF_LATER_BYTES as tv, normalizeRelayUrl as tw, APP_PREFIXES as tx, readHandoffPake as ty, X401_CREDENTIAL_LIMITS as u, signTurnRelease as uC, readInviteCode as uS, toZ32 as uT, callSignalHeardAt as u_, normalizePubkyKey as ua, STAMP_BITS_DEFAULT as ub, COMMUNITY_PIN_FRAME as uc, validExternalKey as ud, DHT_FILE_REFUSED as uf, PRESENCE_WINDOW as ug, encryptText as uh, normalizeDid as ui, decodeAppRangeData as ul, REMOVABLE_KINDS as um, validMentions as un, MAX_PAIRED_MESSAGE_FRAME as uo, editedFrame as up, decodeTx as ur, meshHubs as us, derivedSecret as ut, DHT_TEXT_CAPABILITY as uu, HANDOFF_TIMINGS as uv, RelayBreaker as uw, isAppKey as ux, encodeSetSlots as uy, X401_SCHEME as v, turnSignedMessage as vC, deviceEchoNonce as vS, keepsToRelays as v_, LIGHTNING_DESTINATION_PATTERN as va, knockSlotOf as vb, parsePinFrame as vc, verifyRingAuthorization as vd, peekDhtMailbox as vf, UNUSED_INVITE_WAIT_MAX_MS as vg, FOLLOW_MS as vh, DID_DHT_MAX_PAYLOAD as vi, APP_RATE_LIMIT as vl, cardEditNumber as vm, encodeGroupMetaBody as vn, REDESCRIBED_GRACE_MS as vo, LINK_TRAILING as vp, u64 as vr, doorHubs as vs, signCommunity as vt, IDENTITY_CLOCK_SKEW as vu, handoffAttemptAllowed as vv, PacketTooLargeError as vw, setAppSignatureFastPath as vx, ENROLL_CANCEL as vy, decodeX401Header as w, BACKGROUND_REQUESTS_PER_MINUTE as wC, deviceLinkSealKey as wS, LABEL$1 as w_, parseLightningDestination as wa, openRequest as wb, readPin as wc, checkedDescriptors as wd, PREVIEWABLE_IMAGE as wf, HttpClient as wg, RATCHET_OVERHEAD as wh, didDhtDocument as wi, appCloseFrame as wl, readStatusCard as wm, groupMetaTag as wn, WAKE_LOST_MS as wo, previewImageSize as wp, atprotoDidMethod as wr, mergeLobby as ws, MAX_KNOCKS as wt, IDENTITY_MAX_VALIDITY as wu, handoffContextProof as wv, parseRelayPayload as ww, IMAGE_LIMITS as wx, enrollCancelFrame as wy, buildX401ProofResult as x, ANSWER_READ_ALLOWANCE as xC, deviceLinkPairing as xS, sdpHasCandidates as x_, findLightningDestination as xa, makeStamp as xb, pinIsNewer as xc, RELAY_WITH_SECRETS as xd, dhtFileId as xf, presenceSeenAt as xg, RATCHET_CAPABILITY as xh, DID_DHT_VERSION as xi, APP_SEND_LIMIT as xl, cardTimeUtc as xm, groupMetaChange as xn, SWITCH_RETIRE_MS as xo, linkStop as xp, ATPROTO_FULL_SCOPE as xr, lobbyKeys as xs, verifyCommunityCommit as xt, IDENTITY_MAX_EVIDENCE as xu, handoffBusyFrame as xv, measureRecords as xw, verifyAppRevocation as xx, ENROLL_GRANT as xy, X401_VERSION as y, turnStatedVerifier as yC, deviceFrameCapability as yS, parseCallSignal as y_, LNURL_LIMITS as ya, knockSlotRecords as yb, parsePinnedFrame as yc, verifyRingEvidence as yd, DHT_FILE_CAPABILITY as yf, WATCH_PEER_MS as yg, MAX_SKIP as yh, DID_DHT_PREFIX as yi, APP_RATE_WINDOW_MS as yl, cardLine as ym, groupDisplayName as yn, RESUME_WAIT_MS as yo, canonicalUrl as yp, varBytes as yr, freshHubs as ys, verifyCommunityChain as yt, IDENTITY_FRAME_LIMIT as yu, handoffAttemptFailed as yv, RELAY_PAYLOAD_MAX_BYTES as yw, signAppObject as yx, ENROLL_CANCEL_REASONS as yy, planAppUpdate as z, HEDGE_MISSING_MS as zC, turnPutSummary as zS, serviceIdFromName as z_, VIDEO_METADATA_LIMITS as za, APP_VIEWS as zb, relayRequest as zc, readManifest as zd, recordingMime as zf, MAX_CHUNK_PAYLOAD_BYTES as zg, GATHER_ATTEMPTS as zh, SEPOLIA_TEST_USDT_FAUCET as zi, FILES_CAPABILITY as zl, GROUP_MEMBER_CAP as zm, SSH_KEY_TYPES as zn, GROUP_WANT_FRAME as zo, parseReactionFrame as zp, parseAtprotoCar as zr, FILE_FRAMES as zs, groupWakeFrame as zt, identityStatementText as zu, handoffStreamKey as zv, encrypt as zw, DEVICE_INVITE_BYTES as zx, MAX_WAITING as zy };
|
|
39723
40278
|
|
|
39724
|
-
//# sourceMappingURL=src-
|
|
40279
|
+
//# sourceMappingURL=src-CCGK1Q_h.js.map
|