@ghostlytools/sdk 1.5.1 → 1.5.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.
Files changed (32) hide show
  1. package/dist/core.js +2 -2
  2. package/dist/{fakes-CD1PMHc7.js → fakes-CZXQp6lN.js} +2 -2
  3. package/dist/{fakes-CD1PMHc7.js.map → fakes-CZXQp6lN.js.map} +1 -1
  4. package/dist/fakes.js +1 -1
  5. package/dist/index.js +2 -2
  6. package/dist/{keet-identity-key-DbgcBlKV.js → keet-identity-key-rtBRcqeE.js} +2 -2
  7. package/dist/{keet-identity-key-DbgcBlKV.js.map → keet-identity-key-rtBRcqeE.js.map} +1 -1
  8. package/dist/{src-DmirvhXS.js → src-Cri2xrHC.js} +518 -123
  9. package/dist/src-Cri2xrHC.js.map +1 -0
  10. package/dist/testing.js +3 -3
  11. package/dist/types/core/src/capsRecord.d.ts +2 -0
  12. package/dist/types/core/src/catchUp.d.ts +2 -2
  13. package/dist/types/core/src/chatFiles.d.ts +44 -17
  14. package/dist/types/core/src/ghostlink.d.ts +27 -2
  15. package/dist/types/core/src/groupCommunity.d.ts +40 -7
  16. package/dist/types/core/src/groupEntry.d.ts +4 -1
  17. package/dist/types/core/src/groupFiles.d.ts +5 -1
  18. package/dist/types/core/src/groupSession.d.ts +7 -0
  19. package/dist/types/core/src/groupSignals.d.ts +1 -0
  20. package/dist/types/core/src/invite.d.ts +7 -0
  21. package/dist/types/core/src/link.d.ts +8 -1
  22. package/dist/types/core/src/pairedAppRanges.d.ts +5 -0
  23. package/dist/types/core/src/pairedSession.d.ts +2 -0
  24. package/dist/types/core/src/relay.d.ts +5 -1
  25. package/dist/types/core/src/storeForward.d.ts +3 -1
  26. package/dist/types/core/src/text.d.ts +7 -0
  27. package/dist/types/core/src/transport.d.ts +7 -0
  28. package/dist/types/core/src/transportSwitch.d.ts +7 -0
  29. package/dist/{verify-CwAcEmuz.js → verify-BEKZfwjk.js} +2 -2
  30. package/dist/{verify-CwAcEmuz.js.map → verify-BEKZfwjk.js.map} +1 -1
  31. package/package.json +1 -1
  32. package/dist/src-DmirvhXS.js.map +0 -1
@@ -237,6 +237,24 @@ function trimEndOf(text, chars) {
237
237
  while (end > 0 && chars.includes(text[end - 1])) end--;
238
238
  return end === text.length ? text : text.slice(0, end);
239
239
  }
240
+ /** What a token is copied with before it: quotes, guillemets, brackets, a backtick. */
241
+ var PASTE_OPENERS = "\"'“‘«‹<[({`";
242
+ /** What a token is copied with after it: those closed, and a sentence's marks. */
243
+ var PASTE_CLOSERS = "\"'”’»›>])}`.,!?;:…";
244
+ var PASTE_SPACES = " \n\r\xA0 ";
245
+ /**
246
+ * The token in what someone copied with the words around it: an invite, a group's link or a device code from the end
247
+ * of "Join us: <https://…#ghostly1…>!", "« ghostly1… »" or "code: ghostly1…". The last word, without the quotes,
248
+ * brackets and marks before and after it. Readers try it only once the paste itself did not read, so a bare token
249
+ * reads as it always did and a token with a character lost is still refused as one.
250
+ */
251
+ function unwrapPasted(text) {
252
+ const words = trimEndOf(text.trim(), PASTE_CLOSERS + PASTE_SPACES).split(/\s+/);
253
+ const last = words[words.length - 1] ?? "";
254
+ let start = 0;
255
+ while (start < last.length && PASTE_OPENERS.includes(last[start])) start++;
256
+ return trimEndOf(last.slice(start), PASTE_CLOSERS);
257
+ }
240
258
  //#endregion
241
259
  //#region ../core/src/avatar.ts
242
260
  /**
@@ -691,6 +709,10 @@ function withRequestOptions(transport, extra) {
691
709
  if (transport.networkChanged) wrapped.networkChanged = () => transport.networkChanged();
692
710
  if (transport.readAnsweredAt) wrapped.readAnsweredAt = (pubKeyZ32) => transport.readAnsweredAt(pubKeyZ32);
693
711
  if (transport.readHeldBackFor) wrapped.readHeldBackFor = (pubKeyZ32) => transport.readHeldBackFor(pubKeyZ32);
712
+ if (transport.publishHeld) wrapped.publishHeld = (pubKeyZ32, options) => transport.publishHeld(pubKeyZ32, {
713
+ ...options,
714
+ ...extra
715
+ });
694
716
  if (transport.onServerTime) wrapped.onServerTime = (listener) => transport.onServerTime(listener);
695
717
  if (transport.configure) wrapped.configure = (options) => transport.configure(options);
696
718
  if (transport.turnRead) wrapped.turnRead = (pubKeyZ32, options) => transport.turnRead(pubKeyZ32, options);
@@ -1522,6 +1544,12 @@ var RelayTransport = class {
1522
1544
  if (!pending || !await pending) throw error;
1523
1545
  }
1524
1546
  }
1547
+ /** `PkarrTransport.publishHeld`: `publishDated`'s check before signing, for a payload signed elsewhere in this process. */
1548
+ publishHeld(pubKeyZ32, options = {}) {
1549
+ if (this.relays.length === 0) return null;
1550
+ const held = this.publishWait(pubKeyZ32, asker(options, true));
1551
+ return held ? new DiscoveryBudgetError(held.wait, `Publish held back on every relay: ${held.reasons.join("; ")}`) : null;
1552
+ }
1525
1553
  /**
1526
1554
  * How long until some relay takes a publish of this asker, and why each holds it back; null when one would now. Walks the relays as `put` does,
1527
1555
  * without asking any: a relay the budget holds back gets its refused `take` (the asker's write then waits first in
@@ -1950,6 +1978,10 @@ var RelayTransport = class {
1950
1978
  readAnsweredAt(pubKeyZ32) {
1951
1979
  return this.readAt.get(pubKeyZ32);
1952
1980
  }
1981
+ /** The last read of this key was answered 404 (`HEDGE_MISSING_MS`): a relay takes seconds to say so. */
1982
+ lastReadMissing(pubKeyZ32) {
1983
+ return this.missing.has(pubKeyZ32);
1984
+ }
1953
1985
  readHeldBackFor(pubKeyZ32) {
1954
1986
  const held = this.heldBack.get(pubKeyZ32);
1955
1987
  const left = held === void 0 ? 0 : held.until - Date.now();
@@ -3528,11 +3560,14 @@ function readSlashForm(code) {
3528
3560
  function readInviteCode(input) {
3529
3561
  const reading = readInviteForm(input);
3530
3562
  if (reading.ok) return reading;
3531
- const bare = trimEndOf(input.trim(), ".,)!");
3532
- if (bare !== input.trim()) {
3533
- const again = readInviteForm(bare);
3534
- if (again.ok) return again;
3535
- }
3563
+ return pastedAgain(input, reading, readInviteForm);
3564
+ }
3565
+ /** `reading` of `input`, or the reading of the token in it (`unwrapPasted`) when that reads or says more. */
3566
+ function pastedAgain(input, reading, read) {
3567
+ const bare = unwrapPasted(input);
3568
+ if (bare === input.trim() || !bare) return reading;
3569
+ const again = read(bare);
3570
+ if (again.ok || !reading.ok && reading.reason === "not-ghostly") return again;
3536
3571
  return reading;
3537
3572
  }
3538
3573
  function readInviteForm(input) {
@@ -3653,8 +3688,8 @@ function encodeDeviceInvite(invite) {
3653
3688
  new DataView(payload.buffer).setUint32(129, invite.expires);
3654
3689
  return bech32m.encode(INVITE_HRP, [2, ...bech32m.toWords(payload)], false);
3655
3690
  }
3656
- /** The code inside whatever was pasted or scanned: after the last `#`, trimmed. */
3657
- var body$1 = (input) => trimEndOf(input.trim().replace(/^.*#/, ""), ".,)!");
3691
+ /** The code inside whatever was pasted or scanned: the token in it (`unwrapPasted`), after its last `#`. */
3692
+ var body$1 = (input) => unwrapPasted(input).replace(/^.*#/, "");
3658
3693
  /**
3659
3694
  * Reads a device code, pasted or scanned (bare, in capitals from a QR code, or after a `#`). `now` is in UNIX
3660
3695
  * seconds: a code past its expiry is refused here already, though only the inviter's word counts.
@@ -3852,12 +3887,7 @@ function read(input) {
3852
3887
  function readContactLink(input) {
3853
3888
  const reading = read(input);
3854
3889
  if (reading.ok) return reading;
3855
- const bare = trimEndOf(input.trim(), ".,)!");
3856
- if (bare !== input.trim()) {
3857
- const again = read(bare);
3858
- if (again.ok) return again;
3859
- }
3860
- return reading;
3890
+ return pastedAgain(input, reading, read);
3861
3891
  }
3862
3892
  /** A new contact link: the owner keeps `seedB64` in its profile and hands out `code`. */
3863
3893
  function createContactLink() {
@@ -8291,6 +8321,13 @@ var LinkSession = class {
8291
8321
  fastStepsAfter = 0;
8292
8322
  /** When the last `expectPeer` window ends (or ended): the pace slows down from there step by step. */
8293
8323
  expectUntil = 0;
8324
+ /**
8325
+ * Until when this link's reads go as a resume's (`PkarrRequestOptions.resume`: a group edge's on the relays' floor):
8326
+ * the peer is due now and nothing reaches it until its packet is read (`expectPeer(true)`: the edge to a member a hub
8327
+ * just let in). As plain fast reads, a hub's admissions in a row spent the budget and the newcomer's edge waited for it:
8328
+ * 22-39 s before it could send, receive or leave (agents#1740). Ends once a read finds the peer's packet.
8329
+ */
8330
+ awaitedUntil = 0;
8294
8331
  watchUntil = 0;
8295
8332
  /** The time of the peer's packet read last when it went away (`watchPeer`): a newer one that advertises says it is back. */
8296
8333
  watchFrom = 0;
@@ -8440,9 +8477,10 @@ var LinkSession = class {
8440
8477
  * The peer, or its offer, is due any moment: poll fast for `EXPECT_PEER_MS` (never cutting a longer fast window short),
8441
8478
  * then slow down step by step (`nextInterval`) rather than at once.
8442
8479
  */
8443
- expectPeer() {
8480
+ expectPeer(awaited = false) {
8444
8481
  const until = Date.now() + EXPECT_PEER_MS;
8445
8482
  this.expectUntil = Math.max(this.expectUntil, until);
8483
+ if (awaited) this.awaitedUntil = Math.max(this.awaitedUntil, until);
8446
8484
  const stepping = this.fastStepsAfter > 0 && Date.now() >= this.fastStepsAfter;
8447
8485
  if (this.fastStepsAfter) this.fastStepsAfter = Math.max(this.fastStepsAfter, until);
8448
8486
  if (until <= this.fastPollUntil) {
@@ -8759,7 +8797,7 @@ var LinkSession = class {
8759
8797
  const watch = !signal && this.watching();
8760
8798
  const departed = !signal && Date.now() < this.departedUntil;
8761
8799
  const background = pace === "background" || pace === "connected";
8762
- const resume = !signal && !watch && this.resumeReads;
8800
+ const resume = !signal && !watch && (this.resumeReads || Date.now() < this.awaitedUntil);
8763
8801
  const packet = await this.transport.resolve(this.peerPubKeyZ32, {
8764
8802
  background,
8765
8803
  urgent: pace === "fast",
@@ -8777,6 +8815,7 @@ var LinkSession = class {
8777
8815
  const read = answered !== void 0 && answered >= started;
8778
8816
  if (read) this.lastReadAt = started;
8779
8817
  if (read || !this.transport.readAnsweredAt) this.resumeReads = false;
8818
+ if (packet && (read || !this.transport.readAnsweredAt)) this.awaitedUntil = 0;
8780
8819
  this.readMissed = !!this.transport.readAnsweredAt && !read;
8781
8820
  if (this.readMissed) heldBackMs = this.transport.readHeldBackFor?.(this.peerPubKeyZ32);
8782
8821
  let receivedNew = false;
@@ -11321,6 +11360,11 @@ var INVISIBLE = /[\p{Cc}\p{Cf}\p{Zl}\p{Zp}]/gu;
11321
11360
  */
11322
11361
  var BLANK = /[\u034F\u115F\u1160\u2800\u3164\uFFA0]/gu;
11323
11362
  /**
11363
+ * A run of whitespace, with the marks that sit on it: a mark that draws nothing (a variation selector, a Mongolian or
11364
+ * Khmer one) between two spaces must not keep them apart, or " \uFE0F" repeated is a blank run again.
11365
+ */
11366
+ var SPACE_RUN = /(?:\s\p{M}*)+/gu;
11367
+ /**
11324
11368
  * Names Windows keeps for devices, whatever the case, with any extension, and with spaces before the dot:
11325
11369
  * "CON", "nul.txt", "COM1 .log" open a device there, not a file.
11326
11370
  */
@@ -11337,7 +11381,7 @@ function shorten(name) {
11337
11381
  }
11338
11382
  /** A file name is display text and a download suggestion, never a path. */
11339
11383
  function sanitizeFileName(name) {
11340
- const clean = shorten(name.replace(INVISIBLE, "").replace(BLANK, "").replace(/[/\\:]/g, "").replace(/\s+/gu, " ").replace(/^[\s.]+/, "").trim());
11384
+ const clean = shorten(name.replace(INVISIBLE, "").replace(BLANK, "").replace(/[/\\:]/g, "").replace(SPACE_RUN, " ").replace(/^[\s.]+/, "").trim());
11341
11385
  if (WINDOWS_DEVICE.test(clean)) return shorten("_" + clean);
11342
11386
  return clean || "file";
11343
11387
  }
@@ -12288,7 +12332,7 @@ var DhtDelivery = class DhtDelivery {
12288
12332
  const receiptDue = !!receipt && !receipt.settled && (receipt.next ?? 0) <= now;
12289
12333
  const reseal = this.resealDue;
12290
12334
  const keepAlive = !force && (!pending || pending.next > now) && !receiptDue && !this.reactionsDue && !reseal;
12291
- if (keepAlive && (this.controlDue > now || this.state.inviteTaken && !this.options.credentials.peerKey)) return;
12335
+ if (keepAlive && (this.controlDue > now || this.state.inviteTaken)) return;
12292
12336
  const expires = pending?.expires ?? now - 12e4 + CONTROL_TTL;
12293
12337
  const issued = Math.min(now, Math.max(now - DHT_ISSUED_BACK_MS, expires - (pending ? DHT_MESSAGE_TTL : CONTROL_TTL), (pending?.message[1] ?? 0) - 3e4));
12294
12338
  const { body, records, reactions } = this.fitted(this.sequence + 1, issued, expires, pending?.message ?? null, receipt?.id ?? null, pending?.reply, pending?.edit, pending?.forwarded, pending?.file);
@@ -13103,8 +13147,7 @@ function transportOrder(available, preferred, fallback) {
13103
13147
  const rest = TRANSPORTS.filter((t) => available.includes(t) && t !== preferred);
13104
13148
  return [...available.includes(preferred) ? [preferred] : [], ...fallback ? rest : []];
13105
13149
  }
13106
- //#endregion
13107
- //#region ../core/src/transportSwitch.ts
13150
+ var POLICY_RECEIVE_WINDOW_MS = 6e4;
13108
13151
  var allowedTransports = (policy) => transportOrder(policy.available, policy.preferred, policy.fallback);
13109
13152
  function parsePolicy(raw) {
13110
13153
  if (!raw || typeof raw !== "object") return null;
@@ -13146,6 +13189,8 @@ var TransportSwitch = class {
13146
13189
  remoteReplaces = false;
13147
13190
  /** This side chose while no session was open: the next one begins with it as a choice. */
13148
13191
  apart = false;
13192
+ policiesRead = new RateWindow(10, POLICY_RECEIVE_WINDOW_MS);
13193
+ policyHeld = null;
13149
13194
  constructor(options) {
13150
13195
  this.options = options;
13151
13196
  }
@@ -13303,6 +13348,8 @@ var TransportSwitch = class {
13303
13348
  this.reconcile();
13304
13349
  }
13305
13350
  stop() {
13351
+ if (this.policyHeld) clearTimeout(this.policyHeld.timer);
13352
+ this.policyHeld = null;
13306
13353
  this.clearPlan();
13307
13354
  this.context = "";
13308
13355
  this.remote = null;
@@ -13457,6 +13504,18 @@ var TransportSwitch = class {
13457
13504
  if (frame.t === "paired-policy") {
13458
13505
  const policy = parsePolicy(frame.policy);
13459
13506
  if (!policy || this.remote && (policy.revision < this.remote.revision || policy.revision === this.remote.revision && JSON.stringify(policy) !== JSON.stringify(this.remote))) return true;
13507
+ if (!this.policiesRead.take()) {
13508
+ if (this.policyHeld) this.policyHeld.frame = frame;
13509
+ else this.policyHeld = {
13510
+ frame,
13511
+ timer: setTimeout(() => {
13512
+ const held = this.policyHeld;
13513
+ this.policyHeld = null;
13514
+ if (held) this.handle(held.frame);
13515
+ }, this.policiesRead.wait())
13516
+ };
13517
+ return true;
13518
+ }
13460
13519
  const changed = !this.remote || policy.revision !== this.remote.revision;
13461
13520
  this.remote = this.lastRemote = policy;
13462
13521
  this.remoteReplaces = frame.replaces === true;
@@ -13736,7 +13795,7 @@ async function verifyPeerProof(event, c, readStorage) {
13736
13795
  if (sig.length !== 64 || !verify(sig, data, fromZ32(c.externalKey))) throw new Error("Invalid Pubky signature");
13737
13796
  } else if (c.adapter === "keet-import") {
13738
13797
  if (sig.length !== 107 || sig[0] !== 1 || sig[41] !== 0 || sig[42] !== 1) throw new Error("Unsupported Keet attestation");
13739
- const { default: IdentityKey } = await import("./keet-identity-key-DbgcBlKV.js").then((m) => /* @__PURE__ */ __toESM(m.default, 1));
13798
+ const { default: IdentityKey } = await import("./keet-identity-key-rtBRcqeE.js").then((m) => /* @__PURE__ */ __toESM(m.default, 1));
13740
13799
  if (!IdentityKey.verify(b4a.from(sig), b4a.from(data), { expectedIdentity: b4a.from(unhex(c.externalKey)) })) throw new Error("Invalid Keet attestation");
13741
13800
  } else throw new Error("Unsupported proof adapter");
13742
13801
  }
@@ -14858,9 +14917,17 @@ var CapsKeys = class {
14858
14917
  this.peerAddress = identityFromSeed(derive(`caps:${this.to}`)).pubKeyZ32;
14859
14918
  this.inviteKey = derive("envelope");
14860
14919
  }
14920
+ /** The key sealed for each pinned contact: one X25519 per contact and link, not one per seal and open (agents#1087). */
14921
+ pinned = /* @__PURE__ */ new Map();
14861
14922
  pinnedKey(peer) {
14862
- const shared = x25519.getSharedSecret(ed25519.utils.toMontgomerySecret(this.seed), ed25519.utils.toMontgomery(publicKeyFromZ32(peer)));
14863
- return hkdf(sha256, shared, this.inviteKey, utf8Encode("ghostly-caps-participation/1"), 32);
14923
+ let key = this.pinned.get(peer);
14924
+ if (!key) {
14925
+ const shared = x25519.getSharedSecret(ed25519.utils.toMontgomerySecret(this.seed), ed25519.utils.toMontgomery(publicKeyFromZ32(peer)));
14926
+ key = hkdf(sha256, shared, this.inviteKey, utf8Encode("ghostly-caps-participation/1"), 32);
14927
+ if (this.pinned.size >= 4) this.pinned.delete(this.pinned.keys().next().value);
14928
+ this.pinned.set(peer, key);
14929
+ }
14930
+ return key;
14864
14931
  }
14865
14932
  signable(from, to, body) {
14866
14933
  return utf8Encode(JSON.stringify([
@@ -15796,9 +15863,23 @@ var HoldKeys = class {
15796
15863
  };
15797
15864
  }
15798
15865
  };
15866
+ /** Names only a local network answers (RFC 6762, RFC 8375, ICANN's .internal, and the usual router ones). */
15867
+ var LOCAL_SUFFIXES = [
15868
+ "localhost",
15869
+ "local",
15870
+ "internal",
15871
+ "lan",
15872
+ "home",
15873
+ "home.arpa",
15874
+ "localdomain",
15875
+ "intranet",
15876
+ "corp"
15877
+ ];
15799
15878
  /**
15800
15879
  * A URL a bundle or manifest may be fetched from. The contact chose it and this device fetches it on its own, so it
15801
- * is HTTPS, without a user or password, at a name or a public IPv4 address: never this machine or its network.
15880
+ * is HTTPS, without a user or password, at a public name or a public IPv4 address: never this machine or its network.
15881
+ * A name with no dot or under a local suffix is a local one. A public name may still resolve to a local address:
15882
+ * where the host can resolve, its `fetch` refuses that too (the CLI's, packages/cli/src/runtime/holdFetch.ts).
15802
15883
  * `loopback` adds plain HTTP to this machine, for a test against a local server; no shipped app passes it.
15803
15884
  */
15804
15885
  function isHoldUrl(value, loopback = false) {
@@ -15816,7 +15897,7 @@ function isHoldUrl(value, loopback = false) {
15816
15897
  "127.0.0.1",
15817
15898
  "[::1]"
15818
15899
  ].includes(host)) return true;
15819
- if (url.protocol !== "https:" || !host || host.startsWith("[") || host === "localhost" || host.endsWith(".localhost")) return false;
15900
+ if (url.protocol !== "https:" || !host.includes(".") || host.startsWith("[") || LOCAL_SUFFIXES.some((s) => host === s || host.endsWith(`.${s}`))) return false;
15820
15901
  return !/^\d+\.\d+\.\d+\.\d+$/.test(host) || isPublicAddress(Uint8Array.from(host.split("."), Number));
15821
15902
  }
15822
15903
  /** The limits of each kind, on the way in. */
@@ -16031,6 +16112,10 @@ var PairedSession = class {
16031
16112
  get peerAllowsFallback() {
16032
16113
  return this.peer?.capabilities.includes("transport-fallback/1") ?? false;
16033
16114
  }
16115
+ /** Frames received from the peer and not handled yet (the one being handled included). */
16116
+ get waiting() {
16117
+ return this.pending;
16118
+ }
16034
16119
  start() {
16035
16120
  const binding = this.options.binding;
16036
16121
  if (!(binding ? (binding.transport === "hyperdht/1" ? /^[a-f0-9]{128}$/.test(binding.context) : FINGERPRINT.test(binding.context)) && binding.identities.length === 2 && binding.identities.every((k) => FINGERPRINT.test(k)) && binding.identities[0] !== binding.identities[1] : this.options.fingerprints?.length === 2 && this.options.fingerprints.every((f) => FINGERPRINT.test(f))) || !this.offer.transports.includes(this.transport) || this.options.rendezvousKeys.some((k) => !isZ32Key(k))) return this.fail("Invalid connection binding or unavailable transport");
@@ -17043,6 +17128,13 @@ var AppRanges = class {
17043
17128
  release(task) {
17044
17129
  this.take(task);
17045
17130
  }
17131
+ /**
17132
+ * Whether `task` is still this session's: serving, or cancelled and draining until it is settled. False once it was
17133
+ * settled, or its app closed or the session ended, which free its place: an answer to it sends and frees nothing.
17134
+ */
17135
+ holds(task) {
17136
+ return this.draining.has(task) || this.serving.get(slot(task.app, task.request)) === task;
17137
+ }
17046
17138
  /** Reads `length` bytes at `offset` of what the contact's `app` serves as `serve`: the bytes (fewer at the end) and the file's size. */
17047
17139
  read(app, serve, offset, length) {
17048
17140
  appRangeGetFrame(app, serve, 0, offset, length);
@@ -17896,6 +17988,109 @@ function transferStalled(record, movedAt, restored, now) {
17896
17988
  if (record.direction === "in" && record.state === "verifying") return false;
17897
17989
  return restored || now - movedAt >= FILE_LIMITS.stallMs;
17898
17990
  }
17991
+ /**
17992
+ * The uplink several chats' files leave the device by. Each chat paces its files by its own path (`FilePace`), down to
17993
+ * a floor of `FILE_LIMITS.minWindowBytes`; on one uplink, that floor is shared out among the chats sending at once.
17994
+ * Each with a floor of its own, a member serving a file to three members on a 1 Mbit/s uplink kept 192 KiB in flight,
17995
+ * and everything else it sent (texts, a ring, a call's voice) waited 1-2 s behind them, up to 5.8 s (agents#1569). A
17996
+ * chat whose receiver barely confirms holds only its share, never the others' bytes. Each chat also reads the queue
17997
+ * against the lowest round trip of the uplink's chats, not its own alone (`lowestBase`).
17998
+ */
17999
+ var FileUplink = class {
18000
+ members = /* @__PURE__ */ new Set();
18001
+ join(member) {
18002
+ this.members.add(member);
18003
+ }
18004
+ leave(member) {
18005
+ this.members.delete(member);
18006
+ }
18007
+ /**
18008
+ * The floor of one chat's window: its share of `minWindowBytes` among the chats sending, in whole chunks, a chunk at
18009
+ * least (a window sends chunks while what is in flight is under it: 21 KiB would let two go).
18010
+ */
18011
+ floor() {
18012
+ let sending = 0;
18013
+ for (const member of this.members) if (member.sending()) sending++;
18014
+ const share = FILE_LIMITS.minWindowBytes / Math.max(1, sending);
18015
+ return Math.max(FILE_LIMITS.chunkBytes, Math.floor(share / FILE_LIMITS.chunkBytes) * FILE_LIMITS.chunkBytes);
18016
+ }
18017
+ /**
18018
+ * The shortest round trip any chat on the uplink saw: its path with the least queue. Each chat's own counts the
18019
+ * others' queue on the shared uplink as its path (428-637 ms read on a 1-10 ms path), and so never sees one.
18020
+ */
18021
+ lowestBase() {
18022
+ let lowest = Infinity;
18023
+ for (const member of this.members) lowest = Math.min(lowest, member.baseRtt());
18024
+ return lowest;
18025
+ }
18026
+ };
18027
+ /** How much one chat's files may have in flight on its session, sized by the path (delay-based, as LEDBAT: `paced`). */
18028
+ var FilePace = class {
18029
+ /** Bytes the files may have in flight together: sized by the path, from the confirms (`paced`). */
18030
+ window = FILE_LIMITS.minWindowBytes;
18031
+ /** The shortest round trip of a chunk to its confirm: the path without a queue. */
18032
+ baseRtt = Infinity;
18033
+ /** When a confirm last came close to `baseRtt`, or a probe measured it. */
18034
+ baseAt = 0;
18035
+ /** The path's own round trip is being measured: one chunk in flight from `since`, until one sent then is confirmed. */
18036
+ probe;
18037
+ /** A confirm has sized the window on this path. */
18038
+ sized = false;
18039
+ /** Another path (a session of its own opened): what was learnt of the old one goes. */
18040
+ reset() {
18041
+ this.window = FILE_LIMITS.minWindowBytes;
18042
+ this.baseRtt = Infinity;
18043
+ this.baseAt = 0;
18044
+ this.probe = void 0;
18045
+ this.sized = false;
18046
+ }
18047
+ /** The shortest round trip seen on this path. */
18048
+ get base() {
18049
+ return this.baseRtt;
18050
+ }
18051
+ /**
18052
+ * What may be in flight now: one chunk while the path's own round trip is measured, else the window; before any
18053
+ * confirm sized it, no more than `floor` (the chat's share of an uplink it shares: three edges starting at once each
18054
+ * sent their whole 64 KiB, 1.5 s of queue at 1 Mbit/s).
18055
+ */
18056
+ limit(floor) {
18057
+ return this.probe ? FILE_LIMITS.chunkBytes : this.sized ? this.window : Math.min(this.window, floor);
18058
+ }
18059
+ /**
18060
+ * A confirm came for a chunk sent at `sentAt` with `flight` bytes in flight then: the window becomes what keeps the path
18061
+ * busy with no more than `FILE_LIMITS.queueMs` of queue on it (delay-based, as LEDBAT). Throughput is about
18062
+ * flight / rtt, so flight × (base + queueMs) / rtt: it grows while confirms come about as fast as they can, and shrinks
18063
+ * when they slow down because the files queue on a slow uplink, ahead of everything else the sender says there.
18064
+ * The base is measured again once no confirm has come close to it for `FILE_LIMITS.baseProbeMs`: with one chunk in
18065
+ * flight, so the queue drains first and a slow link's own queue never passes for a longer path. `floor`: the least
18066
+ * the window is, `minWindowBytes` or the chat's share of an uplink it shares (`FileUplink.floor`).
18067
+ */
18068
+ paced(sentAt, flight, now, floor = FILE_LIMITS.minWindowBytes, lowest = Infinity) {
18069
+ const rtt = Math.max(1, now - sentAt);
18070
+ this.sized = true;
18071
+ if (this.probe) {
18072
+ if (sentAt < this.probe.since) return;
18073
+ this.baseRtt = rtt;
18074
+ this.baseAt = now;
18075
+ this.window = this.probe.window;
18076
+ this.probe = void 0;
18077
+ return;
18078
+ }
18079
+ if (rtt - this.baseRtt < FILE_LIMITS.queueMs / 2) this.baseAt = now;
18080
+ this.baseRtt = Math.min(this.baseRtt, rtt);
18081
+ if (now - this.baseAt > FILE_LIMITS.baseProbeMs) {
18082
+ this.probe = {
18083
+ since: now,
18084
+ window: this.window
18085
+ };
18086
+ return;
18087
+ }
18088
+ const base = Math.min(this.baseRtt, lowest);
18089
+ const fits = Math.max(flight * (base + FILE_LIMITS.queueMs) / rtt, rtt - base < FILE_LIMITS.queueMs / 2 ? 2 * flight : 0);
18090
+ const window = flight < this.window / 2 ? Math.max(this.window, fits) : fits;
18091
+ this.window = Math.min(FILE_LIMITS.chatWindowBytes, Math.max(floor, Math.round(window)));
18092
+ }
18093
+ };
17899
18094
  var key = (direction, id) => `${direction}:${id}`;
17900
18095
  var isInt$1 = (value, max = Number.MAX_SAFE_INTEGER) => typeof value === "number" && Number.isSafeInteger(value) && value >= 0 && value <= max;
17901
18096
  /**
@@ -17978,17 +18173,23 @@ var ChatFiles = class {
17978
18173
  held = /* @__PURE__ */ new Set();
17979
18174
  attached = false;
17980
18175
  peerRoomValue = null;
17981
- /** Bytes the chat's files may have in flight on this session: sized by the path, from the confirms (`paced`). */
17982
- window = FILE_LIMITS.minWindowBytes;
17983
- /** The shortest round trip of a chunk to its confirm on this session: the path without a queue. */
17984
- baseRtt = Infinity;
17985
- /** When a confirm last came close to `baseRtt`, or a probe measured it. */
17986
- baseAt = 0;
17987
- /** The path's own round trip is being measured: one chunk in flight from `since`, until one sent then is confirmed. */
17988
- probe;
18176
+ /** What the chat's files may have in flight, sized by the path. */
18177
+ pace = new FilePace();
17989
18178
  constructor(host) {
17990
18179
  this.host = host;
17991
18180
  }
18181
+ /** The floor of this chat's window: all of `minWindowBytes`, or its share of an uplink it shares (`FileUplink`). */
18182
+ floor() {
18183
+ return this.host.uplink?.floor() ?? FILE_LIMITS.minWindowBytes;
18184
+ }
18185
+ /** Its files are sending: bytes in flight, or held for the window (`FileUplink`). */
18186
+ sending() {
18187
+ return this.attached && (this.inFlight() > 0 || this.held.size > 0);
18188
+ }
18189
+ /** The shortest round trip this chat's files saw on its session (`FileUplink.lowestBase`). */
18190
+ baseRtt() {
18191
+ return this.pace.base;
18192
+ }
17992
18193
  now() {
17993
18194
  return this.host.now?.() ?? Date.now();
17994
18195
  }
@@ -18057,10 +18258,8 @@ var ChatFiles = class {
18057
18258
  attach() {
18058
18259
  this.attached = true;
18059
18260
  this.peerRoomValue = null;
18060
- this.window = FILE_LIMITS.minWindowBytes;
18061
- this.baseRtt = Infinity;
18062
- this.baseAt = 0;
18063
- this.probe = void 0;
18261
+ this.pace.reset();
18262
+ this.host.uplink?.join(this);
18064
18263
  this.sayRoom();
18065
18264
  this.sweep();
18066
18265
  for (const entry of this.entries.values()) {
@@ -18077,6 +18276,7 @@ var ChatFiles = class {
18077
18276
  this.peerRoomValue = null;
18078
18277
  this.moving.clear();
18079
18278
  this.held.clear();
18279
+ this.host.uplink?.leave(this);
18080
18280
  for (const entry of this.entries.values()) {
18081
18281
  if (entry.out) {
18082
18282
  entry.out.generation++;
@@ -18207,38 +18407,7 @@ var ChatFiles = class {
18207
18407
  return this.attached && record.state === "active" && out.next < record.file.size && out.next - record.confirmed < FILE_LIMITS.windowBytes;
18208
18408
  }
18209
18409
  shouldPump(entry) {
18210
- return this.fileMayPump(entry) && this.inFlight() < (this.probe ? FILE_LIMITS.chunkBytes : this.window);
18211
- }
18212
- /**
18213
- * A confirm came for a chunk sent at `sentAt` with `flight` bytes in flight then: the window becomes what keeps the path
18214
- * busy with no more than `FILE_LIMITS.queueMs` of queue on it (delay-based, as LEDBAT). Throughput is about
18215
- * flight / rtt, so flight × (base + queueMs) / rtt: it grows while confirms come about as fast as they can, and shrinks
18216
- * when they slow down because the files queue on a slow uplink, ahead of everything else the sender says there.
18217
- * The base is measured again once no confirm has come close to it for `FILE_LIMITS.baseProbeMs`: with one chunk in
18218
- * flight, so the queue drains first and a slow link's own queue never passes for a longer path.
18219
- */
18220
- paced(sentAt, flight) {
18221
- const now = this.now(), rtt = Math.max(1, now - sentAt);
18222
- if (this.probe) {
18223
- if (sentAt < this.probe.since) return;
18224
- this.baseRtt = rtt;
18225
- this.baseAt = now;
18226
- this.window = this.probe.window;
18227
- this.probe = void 0;
18228
- return;
18229
- }
18230
- if (rtt - this.baseRtt < FILE_LIMITS.queueMs / 2) this.baseAt = now;
18231
- this.baseRtt = Math.min(this.baseRtt, rtt);
18232
- if (now - this.baseAt > FILE_LIMITS.baseProbeMs) {
18233
- this.probe = {
18234
- since: now,
18235
- window: this.window
18236
- };
18237
- return;
18238
- }
18239
- const fits = Math.max(flight * (this.baseRtt + FILE_LIMITS.queueMs) / rtt, rtt - this.baseRtt < FILE_LIMITS.queueMs / 2 ? 2 * flight : 0);
18240
- const window = flight < this.window / 2 ? Math.max(this.window, fits) : fits;
18241
- this.window = Math.min(FILE_LIMITS.chatWindowBytes, Math.max(FILE_LIMITS.minWindowBytes, Math.round(window)));
18410
+ return this.fileMayPump(entry) && this.inFlight() < this.pace.limit(this.floor());
18242
18411
  }
18243
18412
  /** Bytes this chat's files sent and have not seen confirmed. */
18244
18413
  inFlight() {
@@ -18897,7 +19066,7 @@ var ChatFiles = class {
18897
19066
  record.confirmed = frame.offset;
18898
19067
  let sample;
18899
19068
  while (out.sends.length && out.sends[0].end <= frame.offset) sample = out.sends.shift();
18900
- if (sample?.generation === out.generation) this.paced(sample.at, sample.flight);
19069
+ if (sample?.generation === out.generation) this.pace.paced(sample.at, sample.flight, this.now(), this.floor(), this.host.uplink?.lowestBase());
18901
19070
  this.changed(outgoing, true);
18902
19071
  this.wakeHeld();
18903
19072
  if (record.confirmed === record.file.size) this.sendSum(outgoing);
@@ -19683,6 +19852,7 @@ var CarriedTransport = class {
19683
19852
  subscribe;
19684
19853
  networkChanged;
19685
19854
  configure;
19855
+ publishHeld;
19686
19856
  constructor(inner, myKey, peerKey, hooks) {
19687
19857
  this.inner = inner;
19688
19858
  this.myKey = myKey;
@@ -19694,6 +19864,7 @@ var CarriedTransport = class {
19694
19864
  if (inner.subscribe) this.subscribe = (listener) => inner.subscribe(listener);
19695
19865
  if (inner.networkChanged) this.networkChanged = () => inner.networkChanged();
19696
19866
  if (inner.configure) this.configure = (options) => inner.configure(options);
19867
+ if (inner.publishHeld) this.publishHeld = (key, options) => inner.publishHeld(key, options);
19697
19868
  }
19698
19869
  describe() {
19699
19870
  return this.inner.describe();
@@ -19701,16 +19872,20 @@ var CarriedTransport = class {
19701
19872
  async publish(identity, records, options) {
19702
19873
  if (this.stopped || identity.pubKeyZ32 !== this.myKey) return this.inner.publish(identity, records, options);
19703
19874
  this.drop();
19704
- const payload = this.newest = this.stamp(identity, records);
19705
19875
  if (this.hooks.open()) {
19706
- this.mine = null;
19707
- const published = this.toRelays(identity, records, payload, options?.signal ? options : {
19876
+ const relayOptions = options?.signal ? options : {
19708
19877
  ...options,
19709
19878
  background: true
19710
- });
19879
+ };
19880
+ const held = this.inner.publishHeld?.(identity.pubKeyZ32, relayOptions);
19881
+ if (held) throw held;
19882
+ this.mine = null;
19883
+ const payload = this.newest = this.stamp(identity, records);
19884
+ const published = this.toRelays(identity, records, payload, relayOptions);
19711
19885
  if (this.hooks.direct && this.inner.publishPayload) published.then(() => this.handDirect(payload), () => {});
19712
19886
  return published;
19713
19887
  }
19888
+ const payload = this.newest = this.stamp(identity, records);
19714
19889
  this.mine = payload;
19715
19890
  let carried = {
19716
19891
  taken: 0,
@@ -19979,7 +20154,8 @@ var GROUP_HAVE_FRAME = "group-have";
19979
20154
  var REFUSALS = [
19980
20155
  "gone",
19981
20156
  "busy",
19982
- "refused"
20157
+ "refused",
20158
+ "day"
19983
20159
  ];
19984
20160
  /** A group message's id, as a private group (`<s>:<e>:<n>`) or a community (`<s>:<e>:<h>:<n>`) names it. */
19985
20161
  var MESSAGE_ID = /^[a-z0-9]{52}:\d{1,15}(:[A-Za-z0-9_-]{1,64})?:\d{1,15}$/;
@@ -20480,6 +20656,11 @@ var ANSWERS_REFUSED_PAUSE_MS = 2e3;
20480
20656
  var PAIRING_ATTEMPT_MS = 15e3;
20481
20657
  var PAIRING_RETRY_MS = 3e3;
20482
20658
  var PAIRING_MAX_RETRY_MS = 3e4;
20659
+ /**
20660
+ * How long a first pairing that has not gone live keeps a first pairing's dials (`firstPairing`): both sides, at
20661
+ * `PAIRING_RETRY_MS`. Past it, a chat that only ever ran on the DHT dials as a saved contact's does.
20662
+ */
20663
+ var FIRST_PAIRING_PACE_MS = 6e5;
20483
20664
  /** A packet published this recently is fresh enough for whoever comes back to the chat. */
20484
20665
  var RECENTLY_PUBLISHED_MS = 5e3;
20485
20666
  /** An inviter that sees the joiner without its offer waits this long for one before offering itself. */
@@ -20686,6 +20867,8 @@ var GhostLink = class {
20686
20867
  /** `plan`: a switch both sides agreed; without one, a replacement the contact dialled (`attachReplacement`). */
20687
20868
  candidate = null;
20688
20869
  candidateEpoch = 0;
20870
+ /** The native dial a transport change has in flight, per transport (`prepareSwitch`). */
20871
+ switchDials = /* @__PURE__ */ new Map();
20689
20872
  /** Channels a switch replaced, closed after `SWITCH_RETIRE_MS` (or at once on disconnect). */
20690
20873
  retiring = /* @__PURE__ */ new Map();
20691
20874
  rtcCandidateWaiter = null;
@@ -22877,7 +23060,7 @@ var GhostLink = class {
22877
23060
  * anyway holds (a first pairing's role, a restart, WebRTC set aside). Its own dial, chosen by hand, is not retried.
22878
23061
  */
22879
23062
  awaitsContactDial() {
22880
- return !(!!this.tracker && !this.tracker.done && this.tracker.progress.stage !== "on-dht" ? this.options.pairingProgress?.role : void 0) && this.myPubKeyZ32 > this.options.params.peerPubKeyZ32 && !this.resuming && !this.dialsPastRtc();
23063
+ return !(this.firstPairing() ? this.options.pairingProgress?.role : void 0) && this.myPubKeyZ32 > this.options.params.peerPubKeyZ32 && !this.resuming && !this.dialsPastRtc();
22881
23064
  }
22882
23065
  /** A transport of the attempt under way did not connect. */
22883
23066
  attemptFailed(transport, error) {
@@ -23234,10 +23417,26 @@ var GhostLink = class {
23234
23417
  this.lastAutoConnectAt = 0;
23235
23418
  this.maybeAutoConnect(this.presence);
23236
23419
  }
23420
+ /**
23421
+ * Still a first pairing, for its dials (`dialWait`, `awaitsContactDial`): not live yet (nor stopped for good), and
23422
+ * not on the DHT, or on it only because a native stream dial failed, within `FIRST_PAIRING_PACE_MS`. That dial was
23423
+ * the first contact between two apps that just read each other's records, and one that aborts in milliseconds (a
23424
+ * hole punch on a lossy network) dropped the pairing to a saved contact's pace, the lower key alone dialling 20 s,
23425
+ * 40 s, 80 s later: two first dials failing went live after 40 s, and not in 180 s at 15% loss (agents#1657). A
23426
+ * WebRTC offer that connected nothing keeps the saved contact's pace: the other side answers each one, and offers at
23427
+ * a pairing's pace kept it answering, never shown on the DHT.
23428
+ */
23429
+ firstPairing() {
23430
+ const progress = this.tracker && !this.tracker.done ? this.tracker.progress : void 0;
23431
+ if (!progress) return false;
23432
+ if (progress.stage !== "on-dht") return true;
23433
+ if (progress.retryable === false || Date.now() - progress.startedAt > 6e5) return false;
23434
+ return !!(this.attempt ?? this.lastAttempt)?.failed.some((f) => f.transport !== "webrtc/1");
23435
+ }
23237
23436
  /** How long after the last automatic dial the next one may go. A first pairing tries again sooner: the contact just read the invite and is waiting. */
23238
23437
  dialWait() {
23239
23438
  if (this.instantRetry) return INSTANT_FAIL_RETRY_MS;
23240
- return !!this.tracker && !this.tracker.done && this.tracker.progress.stage !== "on-dht" ? Math.min(PAIRING_RETRY_MS * 2 ** this.autoConnectFailures, PAIRING_MAX_RETRY_MS) : Math.min(AUTO_CONNECT_RETRY_MS * 2 ** this.autoConnectFailures, AUTO_CONNECT_MAX_RETRY_MS);
23439
+ return this.firstPairing() ? Math.min(PAIRING_RETRY_MS * 2 ** this.autoConnectFailures, PAIRING_MAX_RETRY_MS) : Math.min(AUTO_CONNECT_RETRY_MS * 2 ** this.autoConnectFailures, AUTO_CONNECT_MAX_RETRY_MS);
23241
23440
  }
23242
23441
  /** The name this side shows, told to a paired peer directly. */
23243
23442
  setNick(nick) {
@@ -23775,6 +23974,10 @@ var GhostLink = class {
23775
23974
  failAppRange(task, error) {
23776
23975
  this.appRanges.fail(task, error);
23777
23976
  }
23977
+ /** Whether `task` still waits for an answer on this session (`AppRanges.holds`): one that does not needs none. */
23978
+ holdsAppRange(task) {
23979
+ return this.appRanges.holds(task);
23980
+ }
23778
23981
  /** An `ar-*` frame from the contact, on a session that agreed `app-ranges/1`. */
23779
23982
  receiveAppRange(frame) {
23780
23983
  const read = readAppRangeFrame(frame);
@@ -24099,14 +24302,24 @@ var GhostLink = class {
24099
24302
  done.reject(/* @__PURE__ */ new Error("Peer native address unavailable"));
24100
24303
  return;
24101
24304
  }
24102
- this.switcher.dialing(plan);
24103
- endpoint.connect(descriptor).then(({ channel, binding }) => {
24104
- if (!active || epoch !== this.candidateEpoch || this.switcher.pending !== plan) {
24105
- channel.close();
24106
- return;
24305
+ const turn = (this.switchDials.get(transport) ?? Promise.resolve()).then(async () => {
24306
+ if (!active || epoch !== this.candidateEpoch || this.switcher.pending !== plan) return;
24307
+ this.switcher.dialing(plan);
24308
+ try {
24309
+ const { channel, binding } = await endpoint.connect(descriptor);
24310
+ if (!active || epoch !== this.candidateEpoch || this.switcher.pending !== plan) {
24311
+ channel.close();
24312
+ return;
24313
+ }
24314
+ this.attachCandidate(channel, binding, plan).then(done.resolve, done.reject);
24315
+ } catch (error) {
24316
+ done.reject(error instanceof Error ? error : new Error(String(error)));
24107
24317
  }
24108
- return this.attachCandidate(channel, binding, plan).then(done.resolve, done.reject);
24109
- }).catch(done.reject);
24318
+ });
24319
+ this.switchDials.set(transport, turn);
24320
+ turn.then(() => {
24321
+ if (this.switchDials.get(transport) === turn) this.switchDials.delete(transport);
24322
+ });
24110
24323
  }
24111
24324
  });
24112
24325
  return;
@@ -24954,6 +25167,10 @@ var GhostLink = class {
24954
25167
  this.handledWaiters.push(waiter);
24955
25168
  });
24956
25169
  }
25170
+ /** Frames the contact sent on this session that this app received and has not handled yet: 0 without a session. */
25171
+ framesWaiting() {
25172
+ return this.paired?.waiting ?? 0;
25173
+ }
24957
25174
  /** Something came back on the session: the ping's wait is over. */
24958
25175
  heardFromPeer() {
24959
25176
  if (this.pongWait) clearTimeout(this.pongWait);
@@ -25069,9 +25286,13 @@ var GhostLink = class {
25069
25286
  this.channel.send(JSON.stringify({ t: "paired-bye" }));
25070
25287
  } catch {}
25071
25288
  }
25072
- /** A link made just now for a peer that is about to show up (a group's entry session): look fast for a while. */
25073
- expectPeer() {
25074
- this.session.expectPeer();
25289
+ /**
25290
+ * A link made just now for a peer that is about to show up (a group's entry session): look fast for a while.
25291
+ * `awaited`: nothing reaches the peer until this link reads it (the edge to a member just let in): its reads go on the
25292
+ * relays' floor meanwhile (`LinkSession.expectPeer`).
25293
+ */
25294
+ expectPeer(awaited = false) {
25295
+ this.session.expectPeer(awaited);
25075
25296
  }
25076
25297
  /** The peer's packet is at hand without a relay (a member of the group carried it, `CarriedTransport`): read it now. */
25077
25298
  look() {
@@ -25495,12 +25716,16 @@ function decodeBolt11(text) {
25495
25716
  let description;
25496
25717
  let paymentHash;
25497
25718
  let descriptionHash;
25719
+ const seen = /* @__PURE__ */ new Set();
25498
25720
  for (let at = TIMESTAMP_WORDS; at + 3 <= data.length;) {
25499
25721
  const tag = CHARSET[data[at]];
25500
25722
  const length = data[at + 1] * 32 + data[at + 2];
25501
25723
  const field = data.slice(at + 3, at + 3 + length);
25502
25724
  if (field.length < length) return null;
25503
25725
  at += 3 + length;
25726
+ const counted = tag === "d" || tag === "x" || (tag === "p" || tag === "h") && length === 52;
25727
+ if (counted && seen.has(tag)) return null;
25728
+ if (counted) seen.add(tag);
25504
25729
  if (tag === "d") description = new TextDecoder().decode(wordsToBytes(field)).trim() || void 0;
25505
25730
  else if (tag === "x") expiry = wordsToInt(field);
25506
25731
  else if (tag === "p" && length === 52) paymentHash = [...wordsToBytes(field)].map((byte) => byte.toString(16).padStart(2, "0")).join("");
@@ -29294,8 +29519,8 @@ var CatchUpAnswers = class {
29294
29519
  }
29295
29520
  /**
29296
29521
  * The first two slices go now, the rest without holding the group's other frames back. A newer answer to the same
29297
- * member goes after what is left of the last, without the frames still queued there (the same objects: a store's)
29298
- * nor those still on their way (`onTheirWay`); it took their place before, and left out what the member's `have`
29522
+ * member goes after what is left of the last, without the frames still queued there (the same objects: a store's, or
29523
+ * the same `key`) nor those still on their way (`onTheirWay`); it took their place before, and left out what the member's `have`
29299
29524
  * said it held: a live frame of an author raises it above that author's frames still queued, which were lost for
29300
29525
  * good. A frame the edge did not take ends the answer (the member asks again when its edge opens).
29301
29526
  */
@@ -29312,8 +29537,12 @@ var CatchUpAnswers = class {
29312
29537
  });
29313
29538
  const going = this.going.get(to);
29314
29539
  if (going) {
29315
- const queued = new Set(going);
29316
- going.push(...frames.filter((frame) => !queued.has(frame)));
29540
+ const queued = new Set(going), queuedKeys = new Set(key ? going.map(key) : []);
29541
+ const isQueued = (frame) => {
29542
+ const k = key?.(frame);
29543
+ return queued.has(frame) || k !== void 0 && queuedKeys.has(k);
29544
+ };
29545
+ going.push(...frames.filter((frame) => !isQueued(frame)));
29317
29546
  return;
29318
29547
  }
29319
29548
  const rest = [...frames], told = [];
@@ -30539,6 +30768,7 @@ var GroupSession = class {
30539
30768
  for (const f of [...this.state.sent]) {
30540
30769
  if (!alone.has(ownKey(f)) || f.e >= this.epoch) continue;
30541
30770
  looked.add(ownKey(f));
30771
+ if (this.isRemoved(f)) continue;
30542
30772
  const target = this.saidAgainEpoch(f);
30543
30773
  if (target === void 0) continue;
30544
30774
  const before = this.state.chain[f.e], key = epochKeys(this.secret(f.e), this.id, f.e).message;
@@ -30898,7 +31128,8 @@ var GroupSession = class {
30898
31128
  if (answer) this.answering.set(from, now + ANSWER_WINDOW_MS);
30899
31129
  if (relayed && (!rosterHas(this.roster, from) || !this.handsOn(raw.s, raw.e))) return;
30900
31130
  if (this.isDuplicate(raw)) return;
30901
- if (!verify(fromBase64Url(raw.sig), messageSigned$1(raw), publicKeyFromZ32(raw.s))) return;
31131
+ const signedWhole = relayed && this.wholeSigned(raw);
31132
+ if (!signedWhole && !verify(fromBase64Url(raw.sig), messageSigned$1(raw), publicKeyFromZ32(raw.s))) return;
30902
31133
  if (raw.e > this.epoch) {
30903
31134
  this.park(from, raw);
30904
31135
  return;
@@ -30907,7 +31138,7 @@ var GroupSession = class {
30907
31138
  const commit = this.state.chain[raw.e];
30908
31139
  if (!commit || !rosterHas(commit.m, raw.s) || !rosterHas(commit.m, this.myKey)) return;
30909
31140
  const own = groupMessageId(raw.s, raw.e, raw.n);
30910
- const whole = !relayed || this.wholeSigned(raw);
31141
+ const whole = !relayed || signedWhole;
30911
31142
  if (!whole) {
30912
31143
  if (this.provisional.has(own)) return;
30913
31144
  delete raw.m;
@@ -30929,6 +31160,13 @@ var GroupSession = class {
30929
31160
  const text = decryptText(key, messageAad$1(raw), raw.nn, raw.c);
30930
31161
  if (text === null) return;
30931
31162
  if (this.heardName(key, raw)) this.hooks.changed();
31163
+ if (this.isRemoved(raw)) {
31164
+ if (whole) {
31165
+ this.markSeen(raw);
31166
+ this.persistSoon();
31167
+ }
31168
+ return;
31169
+ }
30932
31170
  const firstFrame = first && {
30933
31171
  ...raw,
30934
31172
  e: first.e,
@@ -31318,7 +31556,7 @@ var GroupSession = class {
31318
31556
  const asked = new Set(Array.isArray(frame.ask) ? frame.ask.filter((k) => typeof k === "string" && k !== from && k !== this.myKey && rosterHas(this.roster, k)) : []);
31319
31557
  const handed = this.leaversHanded.get(from);
31320
31558
  const kept = !asked.size && !this.state.leftMarks ? [] : this.kept().filter((f) => {
31321
- if (!this.state.chain[f.e] || !rosterHas(this.state.chain[f.e].m, from) || !lacks(f)) return false;
31559
+ if (!this.state.chain[f.e] || !rosterHas(this.state.chain[f.e].m, from) || !lacks(f) || this.isRemoved(f)) return false;
31322
31560
  if (asked.has(f.s)) return true;
31323
31561
  return !rosterHas(this.roster, f.s) && !handed?.has(frameKey$1(f)) && this.handsOn(f.s, f.e);
31324
31562
  });
@@ -31352,7 +31590,11 @@ var GroupSession = class {
31352
31590
  }
31353
31591
  ownLacked(to, frame) {
31354
31592
  const lacks = missingIn(frame, to);
31355
- return this.state.sent.filter((sent) => this.state.chain[sent.e] && rosterHas(this.state.chain[sent.e].m, to) && lacks(sent));
31593
+ return this.state.sent.filter((sent) => this.state.chain[sent.e] && rosterHas(this.state.chain[sent.e].m, to) && lacks(sent) && !this.isRemoved(sent));
31594
+ }
31595
+ /** A frame of a message deleted for everyone (`hooks.removed`): handed to nobody, its removal is what they get. */
31596
+ isRemoved(f) {
31597
+ return !!this.hooks.removed?.(this.messageIdOf(f));
31356
31598
  }
31357
31599
  /** Sets (or, with null, removes) the group's picture: only the admin, signed under the current commit. */
31358
31600
  setPicture(picture, now = Date.now()) {
@@ -31637,8 +31879,14 @@ function encodeGroupEntryLink(link) {
31637
31879
  function groupEntryUrl(origin, link) {
31638
31880
  return `${trimEndOf(origin, "/")}/#/join/${encodeGroupEntryLink(link)}`;
31639
31881
  }
31640
- /** A pasted link, a `/join/…` path or the bare code; null when it is none of them. */
31882
+ /**
31883
+ * A pasted link, a `/join/…` path or the bare code; null when it is none of them. Copied with the words around it
31884
+ * ("Join our group: <https://…/join/group1/…>."), it is read as the token in it (`unwrapPasted`).
31885
+ */
31641
31886
  function decodeGroupEntryLink(input) {
31887
+ return readGroupEntryLink(input) ?? readGroupEntryLink(unwrapPasted(input));
31888
+ }
31889
+ function readGroupEntryLink(input) {
31642
31890
  const parts = input.trim().replace(/^.*#/, "").replace(/^.*?\/join\//, "").replace(/^\/+/, "").split("/");
31643
31891
  if (parts.length !== 3 || parts[0] !== PREFIX) return null;
31644
31892
  const [, g, host] = parts;
@@ -31785,8 +32033,11 @@ var GROUP_READ_NOTE_COMMUNITY = `Anyone with the group's link can join, and any
31785
32033
  function encodeCommunityLink(link) {
31786
32034
  return `group2/${link.g}/${link.host}`;
31787
32035
  }
31788
- /** A pasted link, a `/join/…` path or the bare code; null when it is not a community group's link. */
32036
+ /** A pasted link, a `/join/…` path or the bare code (or one in words: `unwrapPasted`); null when it is not a community group's link. */
31789
32037
  function decodeCommunityLink(input) {
32038
+ return readCommunityLink(input) ?? readCommunityLink(unwrapPasted(input));
32039
+ }
32040
+ function readCommunityLink(input) {
31790
32041
  const parts = input.trim().replace(/^.*#/, "").replace(/^.*?\/join\//, "").replace(/^\/+/, "").split("/");
31791
32042
  if (parts.length !== 3 || parts[0] !== "group2" || !GROUP_ID.test(parts[1]) || !MEMBER_KEY.test(parts[2])) return null;
31792
32043
  try {
@@ -32138,8 +32389,16 @@ var CommunitySession = class {
32138
32389
  known = /* @__PURE__ */ new Map();
32139
32390
  /** Commit hash → roster after it, for the window of the main branch and the side commits. */
32140
32391
  rosters = /* @__PURE__ */ new Map();
32141
- /** Commit hash → roster after it, for a few main-branch commits older than the window that `couldRead` was asked about. */
32142
- pastRosters = /* @__PURE__ */ new Map();
32392
+ /**
32393
+ * Who was in the roster after each main-branch commit, from one replay of the branch: key → the places where it came in
32394
+ * and went out, in turn (an open last span while it is in). `through` commits are counted, the last one `top`.
32395
+ */
32396
+ spans = {
32397
+ through: 0,
32398
+ top: "",
32399
+ roster: null,
32400
+ byKey: /* @__PURE__ */ new Map()
32401
+ };
32143
32402
  mainIndex = /* @__PURE__ */ new Map();
32144
32403
  pendingCommits = /* @__PURE__ */ new Map();
32145
32404
  pendingSecrets = /* @__PURE__ */ new Map();
@@ -32167,7 +32426,8 @@ var CommunitySession = class {
32167
32426
  this.answers = new CatchUpAnswers({
32168
32427
  send: (to, frame) => hooks.direct(to, frame),
32169
32428
  ...hooks.handled && { handled: (to) => hooks.handled(to) },
32170
- active: () => this.state.status === "active"
32429
+ active: () => this.state.status === "active",
32430
+ key: (frame) => frame.t === "group-msg" ? communityMessageId(frame.s, frame.e, frame.h, frame.n) : frame.t === "group-commit" ? `commit:${communityCommitHash(frame.commit)}` : frame.t === "group-secret" ? `secret:${frame.h}` : void 0
32171
32431
  });
32172
32432
  this.rebuild();
32173
32433
  if ((state.status === "active" || state.status === "lost") && this.bestBranch().tip !== this.topHash) this.serialize(() => this.chooseBranch());
@@ -32299,9 +32559,19 @@ var CommunitySession = class {
32299
32559
  get top() {
32300
32560
  return this.state.chain[this.state.chain.length - 1];
32301
32561
  }
32562
+ /**
32563
+ * The top commit's hash, kept for the commit it was taken from: a view reads it for each member (its roster, what
32564
+ * each member's lines are missing), and hashing it every time cost tens of milliseconds per state in big communities.
32565
+ */
32302
32566
  get topHash() {
32303
- return communityCommitHash(this.top);
32567
+ const top = this.top;
32568
+ if (this.topHashOf?.commit !== top) this.topHashOf = {
32569
+ commit: top,
32570
+ hash: communityCommitHash(top)
32571
+ };
32572
+ return this.topHashOf.hash;
32304
32573
  }
32574
+ topHashOf;
32305
32575
  get epoch() {
32306
32576
  return this.top.e;
32307
32577
  }
@@ -32354,20 +32624,33 @@ var CommunitySession = class {
32354
32624
  const i = this.state.chain.length - 1 - (this.epoch - Number(e));
32355
32625
  const commit = Number.isSafeInteger(i) && i >= 0 ? this.state.chain[i] : void 0;
32356
32626
  const hash = commit && communityCommitHash(commit);
32357
- return !!hash && hash.startsWith(h) && rosterHas(this.pastRoster(i, hash), key);
32627
+ return !!hash && hash.startsWith(h) && this.wasInAt(key, i);
32358
32628
  }
32359
- /** The roster after an old commit of the main branch, replayed and kept apart from the window's (a few, the latest asked). */
32360
- pastRoster(i, hash) {
32361
- const known = this.pastRosters.get(hash);
32362
- if (known) return known;
32363
- let roster = null;
32364
- for (let j = 0; j <= i && (j === 0 || roster); j++) roster = communityRoster(roster, this.state.chain[j]);
32365
- this.pastRosters.set(hash, roster ?? []);
32366
- for (const old of this.pastRosters.keys()) {
32367
- if (this.pastRosters.size <= 8) break;
32368
- this.pastRosters.delete(old);
32629
+ /**
32630
+ * Whether `key` was in the roster after the main branch's commit `i`. The branch is replayed once, as `rebuild` does (its
32631
+ * leaves were checked when they were taken), and only further as it grows: again from the start only once it changed.
32632
+ */
32633
+ wasInAt(key, i) {
32634
+ let s = this.spans;
32635
+ if (s.through > 0 && this.mainIndex.get(s.top) !== s.through - 1) s = this.spans = {
32636
+ through: 0,
32637
+ top: "",
32638
+ roster: null,
32639
+ byKey: /* @__PURE__ */ new Map()
32640
+ };
32641
+ if (s.through <= i) {
32642
+ for (; s.through <= i; s.through++) {
32643
+ const before = new Set((s.roster ?? []).map(([k]) => k));
32644
+ s.roster = s.through === 0 || s.roster ? communityRoster(s.roster, this.state.chain[s.through], true) : null;
32645
+ const after = new Set((s.roster ?? []).map(([k]) => k));
32646
+ for (const k of after) if (!before.has(k)) s.byKey.set(k, [...s.byKey.get(k) ?? [], s.through]);
32647
+ for (const k of before) if (!after.has(k)) s.byKey.get(k).push(s.through);
32648
+ }
32649
+ s.top = communityCommitHash(this.state.chain[s.through - 1]);
32369
32650
  }
32370
- return roster ?? [];
32651
+ const at = s.byKey.get(key) ?? [];
32652
+ for (let j = 0; j < at.length; j += 2) if (at[j] <= i && (j + 1 >= at.length || i < at[j + 1])) return true;
32653
+ return false;
32371
32654
  }
32372
32655
  /** Someone the chain took out (removed or left) and who is not back in. */
32373
32656
  wasRemoved(key) {
@@ -32696,6 +32979,7 @@ var CommunitySession = class {
32696
32979
  * within the window.
32697
32980
  */
32698
32981
  async chooseBranch() {
32982
+ const status = this.state.status;
32699
32983
  const best = this.bestBranch();
32700
32984
  if (best.tip !== this.topHash) await this.adopt(best.tip);
32701
32985
  if (this.state.status === "lost" && rosterHas(this.roster, this.myKey)) {
@@ -32704,9 +32988,11 @@ var CommunitySession = class {
32704
32988
  }
32705
32989
  this.followEntry();
32706
32990
  this.pruneSide();
32707
- await this.persist();
32991
+ if (this.state.status !== status) await this.persist();
32992
+ else this.persistSoon();
32708
32993
  this.hooks.changed();
32709
32994
  await this.replayWaiting();
32995
+ await this.renewLasting();
32710
32996
  }
32711
32997
  bestBranch() {
32712
32998
  const counts = this.adminCounts();
@@ -32908,6 +33194,7 @@ var CommunitySession = class {
32908
33194
  });
32909
33195
  }
32910
33196
  this.hooks.changed();
33197
+ await this.renewLasting();
32911
33198
  return {
32912
33199
  commit,
32913
33200
  hash,
@@ -33176,15 +33463,15 @@ var CommunitySession = class {
33176
33463
  }
33177
33464
  /**
33178
33465
  * An application frame that says the group's state (`CommunitySessionHooks.lasting`) in place of the one of its
33179
- * kind kept now, unless that one is newer (by the author's time, then the frame's identity, so every member keeps
33180
- * the same one).
33466
+ * kind kept now, unless that one is newer (by the author's time, then its epoch, so one said again under a newer
33467
+ * commit takes the first's place, then the frame's identity, so every member keeps the same one).
33181
33468
  */
33182
33469
  keepLasting(message, frame) {
33183
33470
  const kind = this.hooks.lasting?.(message);
33184
33471
  if (typeof kind !== "string" || !kind) return;
33185
33472
  const kept = { ...this.state.lasting };
33186
33473
  const now = kept[kind];
33187
- if (now && (now.ts > frame.ts || now.ts === frame.ts && frameKey(now) >= frameKey(frame))) return;
33474
+ if (now && (now.ts > frame.ts || now.ts === frame.ts && (now.e > frame.e || now.e === frame.e && frameKey(now) >= frameKey(frame)))) return;
33188
33475
  if (!now && Object.keys(kept).length >= COMMUNITY_LIMITS.lasting) return;
33189
33476
  kept[kind] = frame;
33190
33477
  this.state.lasting = kept;
@@ -33304,6 +33591,29 @@ var CommunitySession = class {
33304
33591
  this.state.unheard = this.state.unheard.filter((key) => key !== frameKey(frame));
33305
33592
  this.persistSoon();
33306
33593
  }
33594
+ /**
33595
+ * Message `id` was deleted for everyone (WISP 400 § Delete for everyone), by its author or here: its frame goes from
33596
+ * the store, so no catch-up hands it to a member who was away (they get the removal, which stays). A frame said again
33597
+ * (`reseal`) carries the first one's place inside: its author's are opened to tell.
33598
+ */
33599
+ forget(id) {
33600
+ const author = id.slice(0, id.indexOf(":"));
33601
+ const kept = this.state.store.filter((f) => f.s !== author || this.storedId(f) !== id);
33602
+ if (kept.length === this.state.store.length) return;
33603
+ this.state.store = kept;
33604
+ this.persistSoon();
33605
+ }
33606
+ /** The id of the message a stored frame is, by its first place when it was said again (and I can open it). */
33607
+ storedId(f) {
33608
+ const found = this.commitByShort(f.e, f.h), secret = found && this.state.secrets[found.hash];
33609
+ const plain = secret ? decryptText(epochKeys(fromBase64Url(secret), this.id, f.e).message, messageAad(f), f.nn, f.c) : null;
33610
+ let parsed = null;
33611
+ try {
33612
+ parsed = plain === null ? null : JSON.parse(plain);
33613
+ } catch {}
33614
+ const original = isObject$5(parsed) && parsed.o !== void 0 ? readOriginal(parsed.o, f) : null;
33615
+ return original ? communityMessageId(f.s, original.e, original.h, original.n) : communityMessageId(f.s, f.e, f.h, f.n);
33616
+ }
33307
33617
  keep(frame) {
33308
33618
  this.state.store.push(frame);
33309
33619
  let bytes = this.state.store.reduce((sum, f) => sum + f.c.length, 0);
@@ -33371,6 +33681,78 @@ var CommunitySession = class {
33371
33681
  this.state.alone = (this.state.alone ?? []).filter((key) => !looked.includes(key));
33372
33682
  this.persistSoon();
33373
33683
  }
33684
+ /**
33685
+ * My lasting frames (`keepLasting`), said again under the current commit once theirs is half the window behind: past
33686
+ * the window no member finds that commit or holds its secret, and a member back from away after more commits than
33687
+ * that was never handed the group's state. With the same content and time and `o` naming the first, as
33688
+ * `resealBehind` says one, so it stays one message, and in the place of the one kept, everywhere.
33689
+ */
33690
+ async renewLasting() {
33691
+ if (!this.isMember || !this.state.secrets[this.topHash]) return;
33692
+ for (const [kind, f] of Object.entries(this.state.lasting ?? {})) {
33693
+ if (f.s !== this.myKey || this.epoch - f.e < COMMUNITY_LIMITS.window / 2) continue;
33694
+ const found = this.commitByShort(f.e, f.h), secret = found && this.state.secrets[found.hash];
33695
+ if (!secret) continue;
33696
+ const plain = decryptText(epochKeys(fromBase64Url(secret), this.id, f.e).message, messageAad(f), f.nn, f.c);
33697
+ let parsed = null;
33698
+ try {
33699
+ parsed = plain === null ? null : JSON.parse(plain);
33700
+ } catch {}
33701
+ if (!isObject$5(parsed) || !isObject$5(parsed.x)) continue;
33702
+ const o = readOriginal(parsed.o, f) ?? {
33703
+ e: f.e,
33704
+ h: f.h,
33705
+ n: f.n
33706
+ };
33707
+ const id = communityMessageId(this.myKey, o.e, o.h, o.n);
33708
+ if (this.hooks.lasting?.({
33709
+ id,
33710
+ sender: this.myKey,
33711
+ epoch: this.epoch,
33712
+ timestamp: f.ts,
33713
+ frame: parsed.x
33714
+ }) !== kind) continue;
33715
+ const { nick, o: _first, ...body } = parsed;
33716
+ const name = typeof nick === "string" ? nick : void 0;
33717
+ const fits = (withNick) => Math.ceil((utf8Encode(JSON.stringify({
33718
+ ...body,
33719
+ o,
33720
+ ...withNick && name ? { nick: name } : {}
33721
+ })).length + 16) * 4 / 3) + 4 <= MAX_TEXT_BOX;
33722
+ if (!fits(false)) continue;
33723
+ const sent = await this.sendPayload(() => ({
33724
+ ...body,
33725
+ o
33726
+ }), fits(true) ? name : void 0, f.ts);
33727
+ if ("error" in sent) continue;
33728
+ this.resealedFrom.set(frameKey(sent.frame), id);
33729
+ this.keepLasting({
33730
+ id,
33731
+ sender: this.myKey,
33732
+ epoch: sent.frame.e,
33733
+ timestamp: f.ts,
33734
+ frame: parsed.x
33735
+ }, sent.frame);
33736
+ await this.say(sent.frame);
33737
+ }
33738
+ }
33739
+ /** Whether a lasting frame kept here is `f`'s author's, said at its time, and is the message `id` (the first's, said again). */
33740
+ keepsLasting(f, id) {
33741
+ return Object.values(this.state.lasting ?? {}).some((kept) => {
33742
+ if (kept.s !== f.s || kept.ts !== f.ts || frameKey(kept) === frameKey(f)) return false;
33743
+ const found = this.commitByShort(kept.e, kept.h), secret = found && this.state.secrets[found.hash];
33744
+ const plain = secret ? decryptText(epochKeys(fromBase64Url(secret), this.id, kept.e).message, messageAad(kept), kept.nn, kept.c) : null;
33745
+ let parsed;
33746
+ try {
33747
+ parsed = plain === null ? null : JSON.parse(plain);
33748
+ } catch {
33749
+ return false;
33750
+ }
33751
+ if (!isObject$5(parsed)) return false;
33752
+ const o = readOriginal(parsed.o, kept) ?? kept;
33753
+ return communityMessageId(kept.s, o.e, o.h, o.n) === id;
33754
+ });
33755
+ }
33374
33756
  /** The message a frame of mine is: the first one's id for a frame said again (`resealBehind`), else its own. */
33375
33757
  messageIdOf(f) {
33376
33758
  return f.s === this.myKey && this.resealedFrom.get(frameKey(f)) || communityMessageId(f.s, f.e, f.h, f.n);
@@ -33424,7 +33806,7 @@ var CommunitySession = class {
33424
33806
  if (frame.to !== this.myKey || typeof frame.h !== "string") return false;
33425
33807
  const took = this.takeSecret(frame.h, frame.s);
33426
33808
  if (took) {
33427
- await this.persist();
33809
+ this.persistSoon();
33428
33810
  this.hooks.changed();
33429
33811
  await this.replayWaiting();
33430
33812
  }
@@ -33435,7 +33817,7 @@ var CommunitySession = class {
33435
33817
  let took = false;
33436
33818
  for (const entry of frame.secrets) if (entry && typeof entry.h === "string") took = this.takeSecret(entry.h, entry.s) || took;
33437
33819
  if (took) {
33438
- await this.persist();
33820
+ this.persistSoon();
33439
33821
  this.hooks.changed();
33440
33822
  await this.replayWaiting();
33441
33823
  }
@@ -33528,7 +33910,20 @@ var CommunitySession = class {
33528
33910
  } : raw;
33529
33911
  const firstAt = original && this.commitByShort(original.e, original.h);
33530
33912
  const readFirst = !!firstAt && rosterHas(this.rosterOf(firstAt.hash) ?? [], this.myKey);
33531
- if (original && readFirst && this.isDuplicate(first)) {
33913
+ const id = communityMessageId(raw.s, first.e, first.h, first.n);
33914
+ if (this.hooks.removed?.(id)) {
33915
+ this.markSeen(raw);
33916
+ this.persistSoon();
33917
+ return false;
33918
+ }
33919
+ if (original && (readFirst && this.isDuplicate(first) || this.keepsLasting(raw, id))) {
33920
+ if (isObject$5(parsed.x)) this.keepLasting({
33921
+ id,
33922
+ sender: raw.s,
33923
+ epoch: raw.e,
33924
+ timestamp: raw.ts,
33925
+ frame: parsed.x
33926
+ }, raw);
33532
33927
  this.markSeen(raw);
33533
33928
  this.keep(raw);
33534
33929
  this.persistSoon();
@@ -33545,7 +33940,6 @@ var CommunitySession = class {
33545
33940
  this.state.nicks[raw.s] = nick;
33546
33941
  this.hooks.changed();
33547
33942
  }
33548
- const id = communityMessageId(raw.s, first.e, first.h, first.n);
33549
33943
  if (text !== void 0) {
33550
33944
  const mentions = validMentions(parsed.m, text, false);
33551
33945
  const reply = parsed.r === void 0 ? void 0 : readReply(parsed.r, groupReplyAuthor);
@@ -33594,7 +33988,7 @@ var CommunitySession = class {
33594
33988
  }
33595
33989
  }
33596
33990
  this.markSeen(raw);
33597
- if (original) this.markSeen({
33991
+ if (original && firstAt) this.markSeen({
33598
33992
  ...raw,
33599
33993
  ...original
33600
33994
  });
@@ -33742,6 +34136,7 @@ var CommunitySession = class {
33742
34136
  if (stored.s === from) continue;
33743
34137
  const high = have[stored.s]?.[seenKey(stored.e, stored.h)];
33744
34138
  if (Number.isSafeInteger(high) && high >= stored.n) continue;
34139
+ if (this.hooks.removed?.(communityMessageId(stored.s, stored.e, stored.h, stored.n))) continue;
33745
34140
  if (!this.heardAfterOut(stored)) continue;
33746
34141
  const found = this.commitByShort(stored.e, stored.h);
33747
34142
  if (!found) continue;
@@ -35228,6 +35623,6 @@ function x401ApprovalDigest(subject) {
35228
35623
  return toBase64Url(sha256(utf8Encode(canonical)));
35229
35624
  }
35230
35625
  //#endregion
35231
- export { COMMUNITY_LIMITS as $, toZ32 as $C, BREAKER_MAX_MS as $S, readHandoffDone as $_, MAX_PAIRED_MESSAGE_FRAME as $a, encodeGhostlyInvite as $b, APP_DATA_MAX_BYTES as $c, dhtFileElements as $d, linksIn as $f, HANDOFF_DONE as $g, DATA_CHANNEL_ID as $h, sparkAddressKind as $i, DOMAIN_TXT_MAX_BYTES as $l, GATHER_STALL_MS as $m, bip322MessageHash as $n, parseHubPolicy as $o, checkStatusCard as $p, checkDidJws as $r, PIN_FRAME as $s, carryMentions as $t, isIdentityBinding as $u, CONTACT_RECORD_TTL as $v, nextTurnPosition as $x, yieldThread as $y, readX401ProofResponseHeader as A, encrypt as AC, GROUP_SIGNALING_ALLOWANCE_SHARE as AS, handoffDoneFrame as A_, ENDPOINT as Aa, readCanonicalJson as Ab, checkPushEndpoint as Ac, validRingKey as Ad, EDITED_FRAME as Af, buildLinkRecords as Ag, unusedInviteWait as Ah, openDidDhtPayload as Ai, SessionCapabilities as Al, signCommit as Am, parseGroupMetaFrame as An, isGroupMessageId as Ao, pairedReplyAuthor as Ap, shortAtprotoDid as Ar, refusalText as As, mergeKnocks as At, parsePacketTransports as Au, enrollDoneFrame as Av, TURN_RAISE_READ_TIMEOUT_MS as Ax, stampHolds as Ay, APP_STORE_KINDS as B, sanitizeDisplayText as BC, SLOW_DEMOTE_MS as BS, handoffRequestFrame as B_, CROSSED_FRESH_MS as Ba, deviceInviteJoinerKeyZ32 as Bb, APP_RANGE_LIMITS as Bc, relayedTransports as Bd, RateWindow as Bf, isValidServiceId as Bg, viewerResponseHeaders as Bh, USDT_PUBLIC_RPC as Bi, HOLD_CAPABILITY as Bl, encryptText as Bm, SshSigError as Bn, SIGNAL_CARRIERS as Bo, PR_STATES as Bp, parseAtprotoVerificationKey as Br, TYPING_TIMEOUT_MS as Bs, mentionedMembers as Bt, IDENTITY_PROOF_CAPABILITY as Bu, MAX_DONE as Bv, TURN_LAST_SEQUENCE as Bx, appDigest as By, buildX401TokenObject as C, createIdentity as CC, DEFAULT_RELAYS as CS, handoffAttemptSucceeded as C_, parseLightningDestination as Ca, imageSize as Cb, readWakePayload as Cc, validExternalKey as Cd, voicePeaksOf as Cf, pickCallCandidates as Cg, STALLED_LOOK_MS as Ch, didDhtDocument as Ci, FILES_CAPABILITY as Cl, commitHash as Cm, groupMetaTag as Cn, GROUP_FILE_LIMITS as Co, readReaction as Cp, atprotoDidMethod as Cr, parsePairedCallFrame as Cs, MAX_KNOCKS as Ct, CapsKeys as Cu, ENROLL_DONE as Cv, newDeviceSetSecret as Cx, mergeContactKnocks as Cy, readX401ProofRequest as D, sign as DC, GROUP_BURST_ONE_LINK as DS, handoffContextProof as D_, BOLT11_PATTERN as Da, readImageMeta as Db, wakeRequest as Dc, ringAuthorization as Dd, isPlayableVideoType as Df, LABEL$1 as Dg, WATCH_PEER_MS as Dh, encodeDidDhtDeactivated as Di, SERVICES_CAPABILITY as Dl, rememberAlone as Dm, nextGroupMetaRevision as Dn, GROUP_WANT_NO_FRAME as Do, REPLY_ID as Dp, isAtprotoDid as Dr, FILE_LIMITS as Ds, groupEntryUrl as Dt, dialDescriptors as Du, enrollCancelFrame as Dv, seedSigner as Dx, requestPlaintextBytes as Dy, isX401Protocol as E, publicKeyFromZ32 as EC, GROUP_BURST_MS as ES, handoffContext as E_, resolveLightningDestination as Ea, previewable as Eb, wakePayload as Ec, RING_LIFETIME as Ed, formatVideoDuration as Ef, waitForIceGathering as Eg, UNUSED_INVITE_WAIT_MAX_MS as Eh, didDhtRecords as Ei, REACTIONS_CAPABILITY as El, parseGroupCommit as Em, keepPastGroupMeta as En, GROUP_WANT_FRAME as Eo, PAIRED_REPLY_AUTHORS as Ep, checkAtprotoProofRecord as Er, FILE_FRAMES as Es, entryParams as Et, capsDescriptors as Eu, ENROLL_PROOF as Ev, verifyDeviceTransports as Ex, readLinkRecord as Ey, appRevocationFor as F, MAX_AVATAR_SIDE as FC, REQUESTS_PER_MINUTE as FS, handoffHelloFrame as F_, parseCashuRequestPayload as Fa, readContactLink as Fb, vapidAuthorization as Fc, automaticTransport as Fd, EDIT_RECEIVE_LIMIT as Ff, LEGACY_SERVICES as Fg, parseLocalTarget as Fh, ONCHAIN_PROVIDER as Fi, sessionCapabilitiesFrame as Fl, GROUP_PROFILE as Fm, wrapGroupMeta as Fn, CARRIED_DEFER_MS as Fo, BUTTON_ID as Fp, decodeDagCbor as Fr, TYPING_RATE_LIMIT as Fs, GROUP_WAKE_MEMBER_INTERVAL_MS as Ft, IDENTITY_FRAME_WINDOW_MS as Fu, formatEnrollDigits as Fv, turnPutSummary as Fx, APP_FORBIDDEN_KEYS as Fy, readAppStore as G, concatBytes as GC, WRITE_FIRST_MS as GS, handoffVersions as G_, DHT_PIN_GRACE_MS as Ga, INVITE_HRP as Gb, appRangeEndFrame as Gc, DHT_MESSAGE_TTL as Gd, parseEditedFrame as Gf, viewerTag as Gg, MAX_CHUNK_PAYLOAD_BYTES as Gh, formatPaymentAmount as Gi, isHoldUrl as Gl, sealPair as Gm, sshKeyDigestHex as Gn, groupSignalFrame as Go, TASK_STATUSES as Gp, DID_DOCUMENT_MAX_BYTES as Gr, sanitizeTypingStatus as Gs, GroupSession as Gt, IdentityCheckUnavailable as Gu, clearMissed as Gv, TURN_SEALED_BYTES as Gx, findAppForbiddenKey as Gy, checkAppListing as H, stripHidden as HC, TURN_SOURCE_TIMEOUT_MS as HS, handoffStreamKey as H_, CROSSED_WAIT_MS as Ha, encodeDeviceInvite as Hb, appRangeCancelFrame as Hc, ACTIVE_DHT_POLL_MS as Hd, editFrame as Hf, serviceIdFromName as Hg, CHUNK_FLAG_END as Hh, arkAddressPrefix as Hi, HOLD_LIMITS as Hl, newEpochSecret as Hm, parseSshSignature as Hn, SIGNAL_HOLD_MS as Ho, ROUTINE_STATES as Hp, unsignedCommitBytes as Hr, TypingSender as Hs, GROUP_LIMITS as Ht, IDENTITY_REVOCATION_LABEL as Hu, MAX_WAITING as Hv, TURN_NAME_BYTES as Hx, assembleAppBundle as Hy, appStoreDecision as I, jpegSize$1 as IC, RelayTransport as IS, handoffManifestFrames as I_, parseFedimintRequestPayload as Ia, DEVICE_INVITE_BYTES as Ib, vapidKeysMatch as Ic, checkedDescriptors as Id, EDIT_SEND_LIMIT as If, MAX_SERVICES as Ig, relativizeLocation as Ih, PaymentPreflightError as Ii, PAIRED_PROFILE as Il, confirmationMatches as Im, SSHSIG_MAX_ARMOR as In, CarriedTransport as Io, BUTTON_STYLES as Ip, encodeDagCbor as Ir, TYPING_RATE_WINDOW_MS as Is, GROUP_WAKE_RECEIVE_LIMIT as It, IDENTITY_MAX_EVIDENCE as Iu, readEnrollGrant as Iv, TOMBSTONE_SEQUENCE as Ix, APP_ICON_PATH as Iy, GROUP_TYPING_FRAME as J, fromZ32 as JC, readRelayBody as JS, openHandoffPiece as J_, HANDLED_WAIT_MS as Ja, INVITE_VERSION as Jb, decodeAppRangeData as Jc, DhtDelivery as Jd, validRemovalNumber as Jf, HANDOFF_BUSY as Jg, decodeControl as Jh, validatePaymentTarget as Ji, DNS_LABEL as Jl, ANSWER_REFUSED_REDIALS as Jm, isLegacySignature as Jn, MESH_HUBS as Jo, cardEditNumber as Jp, DID_JWS_ALGS as Jr, typingKindOf as Js, frameBytes as Jt, emptyIdentityLedger as Ju, newInbox as Jv, TURN_TTL as Jx, isAppUrl as Jy, readAppStoreSteps as K, fromBase64 as KC, currentRelays as KS, isHandoffPartName as K_, EARLY_DIAL_JOIN_MS as Ka, INVITE_LINK_ORIGIN as Kb, appRangeErrorFrame as Kc, DHT_TEXT_BYTES as Kd, validEditMessage as Kf, HANDOFF_ACK as Kg, PROTOCOL_VERSION as Kh, isWalletNetwork as Ki, newMailbox as Kl, sealSecret as Km, sshSignCommand as Kn, readGroupSignal as Ko, appCardId as Kp, DID_FILE_MAX_BYTES as Kr, typingActivity as Ks, asWritten as Kt, IdentityExchange as Ku, endedRequests as Kv, TURN_SIGNED_BYTES as Kx, isAppLicense as Ky, appUpdateDecision as L, sanitizeAvatar as LC, RelaysFailedError as LS, handoffOfferFrame as L_, ANSWERS_REFUSED_PAUSES as La, DEVICE_INVITE_LIFETIME_S as Lb, APP_RANGE_DATA_KIND as Lc, irohDescriptor as Ld, MAX_EDITS_PER_MESSAGE as Lf, SERVICES_VERSION as Lg, resolveTargetUrl as Lh, SEPOLIA_TEST_USDT as Li, PairedSession as Ll, confirmationTag as Lm, SSHSIG_NAMESPACE as Ln, GROUP_SIGNAL_FRAME as Lo, CRON_LINE as Lp, findInMst as Lr, TYPING_REFRESH_MS as Ls, GroupWakeLimiter as Lt, IDENTITY_MAX_FRAME as Lu, readEnrollHello as Lv, TOMBSTONE_TURN as Lx, APP_PERMISSIONS as Ly, readX401ProofResultHeader as M, sealedLength as MC, HEDGE_MS as MS, handoffFileMissingFrame as M_, fedimintRequestPayload as Ma, CONTACT_LINK_VERSION as Mb, encryptPushPayload as Mc, verifyRingEvidence as Md, EDIT_BUFFER_MS as Mf, isEmptyLinkPacket as Mg, HttpClient as Mh, signDidDhtPacket as Mi, UPGRADE_CAPABILITY as Ml, verifyChain as Mm, parseGroupMetaTag as Mn, readGroupHave as Mo, replySnippet as Mp, AtprotoProofError as Mr, transferStalled as Ms, GROUP_WAKE_FRAME as Mt, IDENTITY_CHECK_UNAVAILABLE as Mu, enrollHelloFrame as Mv, TURN_VISIBLE_MS as Mx, APP_BUNDLE_MAGIC as My, x401AnswerableRequests as N, tryDecrypt as NC, PREVIOUS_DEFAULT_RELAYS as NS, handoffFileRequestFrame as N_, findEndpoint as Na, createContactLink as Nb, generateVapidKeys as Nc, RELAY_URL as Nd, EDIT_FRAME as Nf, parseLinkRecords as Ng, HttpHost as Nh, ETHEREUM_USDT as Ni, WAKE_SESSION_CAPABILITY as Nl, verifyCommit as Nm, signGroupMeta as Nn, readGroupWant as No, wireReply as Np, atprotoCidFor as Nr, TYPING_FRAME as Ns, GROUP_WAKE_GROUP_LIMIT as Nt, IDENTITY_CLOCK_SKEW as Nu, enrollMessage as Nv, classifyTurnRead as Nx, APP_CLIENTS as Ny, readX401ProofRequestHeader as O, verify as OC, GROUP_OVER_PACE_MS as OS, handoffDataFrame as O_, decodeBolt11 as Oa, canonicalJson as Ob, PUSH_SERVICE_HOSTS as Oc, ringClaims as Od, isVideoMime as Of, MAX_MSGS_PAYLOAD_B64 as Og, countUnusedInvite as Oh, encodeDidDhtPacket as Oi, SESSION_CAPABILITIES_FRAME as Ol, rosterAdmin as Om, openGroupMeta as On, fetchesByItself as Oo, REPLY_LIMITS as Op, normalizeAtprotoHandle as Or, decodeFileData as Os, knockIdentity as Ot, emptyCapsState as Ou, enrollCancelReason as Ov, webCryptoSigner as Ox, requestRecords as Oy, addedAppPermissions as P, MAX_AVATAR_LENGTH as PC, RELAY_REQUESTS_PER_MINUTE as PS, handoffHaveFrames as P_, isFederationId as Pa, encodeContactLink as Pb, pushRequest as Pc, TRANSPORTS as Pd, EDIT_RATE_WINDOW_MS as Pf, HTTP_SERVICE_PROTO as Pg, formatLocalTarget as Ph, EVM_TEST_CHAINS as Pi, parseSessionCapabilities as Pl, verifyCommitSignature as Pm, verifyGroupMetaSignature as Pn, readGroupWantNo as Po, ACTIVE_TASK_STATUSES as Pp, decodeAtprotoCommit as Pr, TYPING_KINDS as Ps, GROUP_WAKE_GROUP_WINDOW_MS as Pt, IDENTITY_FRAME_LIMIT as Pu, enrollProofFrame as Pv, keptAtEqualSequence as Px, APP_CLIENT_NAME as Py, sealGroupTyping as Q, toBase64Url as QC, BREAKER_BASE_MS as QS, readHandoffData as Q_, LIVENESS_PING_MS as Qa, decodeInviteCode as Qb, readAppRangeFrame as Qc, DHT_FILE_CAPABILITY as Qd, linkEnd as Qf, HANDOFF_DATA as Qg, wrapDataChannel as Qh, isSparkAddress as Qi, DOMAIN_METHODS as Ql, GATHER_ATTEMPTS as Qm, MessageRefusal as Qn, meshRendezvous as Qo, cardUrl as Qp, DidError as Qr, PIN_CLOCK_SKEW_MS as Qs, GROUP_EDIT_TEXT_BYTES as Qt, identityStatementText as Qu, turnOff as Qv, firstDeviceSetSecret as Qx, sha256Paced as Qy, checkAppBeforeRun as R, MAX_NICK_LENGTH as RC, SIGNALING_ALLOWANCE_SHARE as RS, handoffPakeFrame as R_, ANSWERS_REFUSED_PAUSE_MS as Ra, DEVICE_INVITE_OWN_DEVICE as Rb, APP_RANGE_ERRORS as Rc, irohRelayUrl as Rd, MAX_REMOVAL_NUMBER as Rf, decodeServices as Rg, sanitizeRequestHeaders as Rh, SEPOLIA_TEST_USDT_FAUCET as Ri, SESSION_FRAME_MAX as Rl, decryptText as Rm, SSH_KEY_TYPES as Rn, GROUP_VERSION_SIGNALS as Ro, ITEM_STATES as Rp, parseAtprotoCar as Rr, TYPING_SEND_LIMIT as Rs, groupWakeFrame as Rt, IDENTITY_MAX_RECEIVED as Ru, verifyEnrollProof as Rv, TURN_BODY_BYTES as Rx, APP_SCREENSHOTS_DIR as Ry, buildX401ResultArtifact as S, IDENTITY_MEMO_SIZE as SC, CHAT_WATCH_SHARE as SS, handoffAttemptFailed as S_, parseInvoiceCallback as Sa, IMAGE_LIMITS as Sb, readWake as Sc, storageProofPath as Sd, voiceLevelsOf as Sf, parseCallSignal as Sg, RELAY_POLL_INTERVALS as Sh, decodeDidDhtPacket as Si, FILES_BINARY_CAPABILITY as Sl, SAID_AGAIN as Sm, groupMetaPicture as Sn, PairingTracker as So, readDhtReactions as Sp, ATPROTO_PROOF_SCOPE as Sr, PairedCalls as Ss, KNOCK_TTL_MS as St, CapsExchange as Su, ENROLL_CANCEL_REASONS as Sv, devicePingFrame as Sx, makeStampPaced as Sy, encodeX401Header as T, identityFromSeedB64 as TC, FRESH_READ_MS as TS, handoffCancelFrame as T_, requestLnurlInvoice as Ta, parseImageMeta as Tb, wakeFrame as Tc, verifyPeerProof as Td, VIDEO_LIMITS as Tf, signalHasVideo as Tg, UNUSED_INVITE_READS_PER_MINUTE as Th, didDhtKey as Ti, PIN_CAPABILITY as Tl, expectedRoster as Tm, groupName as Tn, GROUP_VERSION_FILES as To, wireReaction as Tp, atprotoProofRkey as Tr, FILE_DATA_KIND as Ts, encodeGroupEntryLink as Tt, DHT_TEXT_CAPABILITY as Tu, ENROLL_HELLO as Tv, unsignedDeviceTransports as Tx, readKnockSlot as Ty, checkAppStoreIndex as U, trimEndOf as UC, WATCH_SHARE as US, handoffVerifiedFrame as U_, DEMOTE_AFTER_FAILURES as Ua, readDeviceInvite as Ub, appRangeChunk as Uc, DHT_FILE_REFUSED as Ud, editedFrame as Uf, servicesFromWire as Ug, CHUNK_KIND as Uh, assertTokenUnits as Ui, HoldKeys as Ul, openPair as Um, sameSshKey as Un, SIGNAL_PROVEN_MS as Uo, RUN_RESULTS as Up, verifyAtprotoRecordProof as Ur, parseTypingActivity as Us, GROUP_REACTED_FRAME as Ut, IDENTITY_STATEMENT_PREFIX as Uu, NEW_PER_HOUR as Uv, TURN_NO_ACTIVE as Ux, buildAppBundle as Uy, APP_STORE_LIMITS as V, sanitizeNick as VC, SLOW_MS as VS, handoffRetryAfter as V_, CROSSED_PROBE_MS as Va, deviceInviteJoinerParams as Vb, AppRanges as Vc, transportOrder as Vd, dhtEditId as Vf, isViewerTag as Vg, webLocalFetch as Vh, WALLET_NETWORKS as Vi, HOLD_DATED_BACK_MS as Vl, epochKeys as Vm, parseSshPublicKey as Vn, SIGNAL_FRESH_MS as Vo, REMOVABLE_KINDS as Vp, readAtprotoCid as Vr, TypingReceiver as Vs, parseGroupWakeFrame as Vt, IDENTITY_PROVIDER_ID as Vu, MAX_MISSED as Vv, TURN_MAX as Vx, appViewOf as Vy, readAppListing as W, bytesEqual as WC, WAY_BACK_SHARE as WS, handoffVerifiedMessage as W_, DEMOTE_MS as Wa, DEVICE_INVITE_VERSION as Wb, appRangeDataFrame as Wc, DHT_FILE_TOO_LARGE as Wd, parseEditFrame as Wf, servicesToWire as Wg, LIMITS as Wh, assertWholeSats as Wi, HoldRefusedError as Wl, openSecret as Wm, sshFingerprint as Wn, SIGNAL_REPLY_MS as Wo, STATUS_CARD_LIMITS as Wp, verifyAtprotoSignature as Wr, parseTypingFrame as Ws, GROUP_READ_NOTE as Wt, IDENTITY_SUBJECT as Wu, REOPEN_BELOW as Wv, TURN_REV_LIMIT as Wx, checkAppManifest as Wy, groupTypingEpoch as X, randomBytes as XC, traceLink as XS, readHandoffBusy as X_, INVITE_TAKEN as Xa, createChatInvite as Xb, isServeId as Xc, emptyDhtDeliveryState as Xd, LINK_PREVIEW_LIMITS as Xf, HANDOFF_CANCEL as Xg, encodeControl as Xh, SPARK_NETWORKS as Xi, DOMAIN_FILE_MAX_BYTES as Xl, DATA_SETTLE_MS as Xm, verifyBitcoinMessage as Xn, mayBeHub as Xo, cardLinkHost as Xp, DID_MAX_LENGTH as Xr, GROUP_PIN_FRAME as Xs, COMMUNITY_EDIT_FRAME as Xt, identityRevocationValue as Xu, settleRequest as Xv, TurnRecordError as Xx, readAppBundle as Xy, GroupTypingBoard as Y, isZ32Key as YC, setLinkTraceSink as YS, readHandoffAck as Y_, INVITER_DIAL_GRACE_MS as Ya, OwnInviteError as Yb, encodeAppRangeData as Yc, LIVE_POLL_MS as Yd, LINK_MAX_CHARS as Yf, HANDOFF_BUSY_REASONS as Yg, encodeChunk as Yh, walletNetworkOf as Yi, DNS_TYPE as Yl, CONNECT_TIMEOUT_MS as Ym, legacyMessageHash as Yn, NO_HUB_POLICY as Yo, cardLine as Yp, DID_JWS_MAX_LENGTH as Yr, COMMUNITY_PIN_FRAME as Ys, groupMessageId as Yt, identityPresentationBytes as Yu, planKnocks as Yv, TURN_VERSION as Yx, pacer as Yy, openGroupTyping as Z, toBase64 as ZC, BREAKER_ALL_DOWN_PROBE_MS as ZS, readHandoffCancel as Z_, LIVENESS_MISSED_PINGS as Za, createLink as Zb, parseAppRangeFrame as Zc, peekDhtMailbox as Zd, canonicalUrl as Zf, HANDOFF_CANCEL_REASONS as Zg, sendBody as Zh, SPARK_PROVIDER as Zi, DOMAIN_MAX_RECORDS as Zl, DataLink as Zm, BIP322_REVISION as Zn, meshHubs as Zo, cardTimeUtc as Zp, DID_METHODS as Zr, PINNED_FRAME as Zs, GROUP_EDIT_FRAME as Zt, identityStatement as Zu, takeRequest as Zv, encodeTurnFields as Zx, readAppBundleAsync as Zy, X401_PROTOCOLS as _, signRelayPayload as _C, BACKGROUND_REQUESTS_PER_MINUTE as _S, NO_ATTEMPTS as __, LIGHTNING_DESTINATION_PATTERN as _a, signAppObject as _b, WAKE_TTL_SECONDS as _c, proofCapability as _d, parseVoiceMeta as _f, decompressSdp as _g, OFFER_FAST_MS as _h, DID_DHT_MAX_PAYLOAD as _i, APPS_CAPABILITY as _l, LEGACY_GROUP_MEMBERS as _m, encodeGroupMetaBody as _n, ENGINE_ERRORS as _o, queueReaction as _p, u64 as _r, readLobby as _s, shortHash as _t, CAPS_ISSUED_BACK_MS as _u, setUpdateMessage as _v, deviceLinkPairing as _x, knockSlotIdentity as _y, X401_DCQL_LIMITS as a, isDiscoveryBudgetError as aC, signTurnPacket as aS, HANDOFF_LIST_PER_FRAME as a_, PUBKY_PROOF_ROOT as aa, appRefPublisher as ab, pinFrame as ac, IDENTITY_TIMELINE_MAX as ad, safeBlobType as af, offerIsFresh as ag, DIRECT_PEERS as ah, didWebFile as ai, APP_SEND_LIMIT as al, taskProgress as am, MENTION_EVERYONE as an, RACE_DIRECT_MS as ao, forwardedMany as ap, ByteReader as ar, doorHubs as as, communityHasFrame as at, domainWellKnownFile as au, readHandoffRelease as av, __require as aw, ownInviteRefusal as ax, MAX_SLOT_KNOCKS as ay, buildX401ProofRequest as b, encodeTxtPacket as bC, CHAT_RESERVE_MOST_SHARE as bS, handoffAckFrame as b_, findLightningDestination as ba, verifyAppSignature as bb, newWakeToken as bc, storageProof as bd, voiceFileName as bf, isGlobalIpv4Host as bg, PRESENCE_HEARTBEAT as bh, DID_DHT_VERSION as bi, CALLS_CAPABILITY as bl, MEMBER_KEY as bm, groupMetaChange as bn, engineText as bo, reactionFrame as bp, ATPROTO_FULL_SCOPE as br, MAX_PAIRED_CALL_SIGNAL as bs, verifyCommunityCommit as bt, CAPS_PUBLISH_SPACING_MS as bu, DEVICE_KINDS as bv, deviceLinkSealKey as bx, linkRecords as by, readX401DcqlQuery as c, PKARR_FUTURE_SKEW_MS as cC, turnKeys as cS, HANDOFF_PAKE as c_, newPubkyProofFolder as ca, checkAppRevokeStatement as cb, pinnedFrame as cc, PROOF_ADAPTERS as cd, PLAYABLE_AUDIO as cf, CALL_SIGNAL_MAX_AGE_MS as cg, symmetricNat as ch, didWebHost as ci, appCloseFrame as cl, arrivalKey as cm, mentionsMember as cn, RESUME_WAIT_MS as co, GROUP_REACTION_FRAME as cp, decodeBitcoinAddress as cr, lobbyKeys as cs, communityUntaggedHash as ct, nip05RootKey as cu, sameDigest as cv, DEVICE_CAPABILITIES as cx, REQUEST_LIFETIME_MS as cy, newX401HolderKey as d, createRelayPayload as dC, turnPayloadSequence as dS, HANDOFF_RELEASE as d_, pubkyProofFile as da, isAppRef as db, WAKE_CALL_INTERVAL_MS as dc, STORAGE_LIFETIME as dd, VOICE_METER as df, answersOffer as dg, DHT_POLL_INTERVALS as dh, parseDidDocument as di, appOpenFrame as dl, receivedTimestamp as dm, GROUP_META_PAST as dn, UNPROVEN_AUTH_MS as do, REACTION_FRAME as dp, encodeTx as dr, mergeLobby as ds, encodeCommunityLink as dt, recordsFromTxt as du, SET_ACK as dv, ENROLL_CAPABILITY as dx, REQUEST_TEXT_BYTES as dy, BREAKER_THRESHOLD as eC, openTurnValue as eS, HANDOFF_FILE_MISSING as e_, sparkInvoiceDetails as ea, APP_NAME as eb, PIN_LIMITS as ec, newIdentityBinding as ed, dhtFileId as ef, DATA_CHANNEL_LABEL as eg, OFFER_HOST_GATHER_MS as eh, checkDidSignature as ei, APP_FRAME as el, readStatusCard as em, communityEditFrame as en, PAIRED_FRAME_TOO_LARGE as eo, parseLinkPreview as ep, bip322ToSign as er, pickMeshHubs as es, COMMUNITY_PROFILE as et, NIP05_PATH as eu, readHandoffFileFrame as ev, utf8Decode as ew, encodeInviteCode as ex, ContactRequestError as ey, readX401SdJwtVc as f, measureRecords as fC, turnReleaseMessage as fS, HANDOFF_REQUEST as f_, pubkyProofPath as fa, isAppSignature as fb, WAKE_CALL_TTL_SECONDS as fc, STORAGE_ROOT as fd, baseMime as ff, buildSdpFromSignal as fg, EXPECT_PEER_MS as fh, parseDidJws as fi, chatAppId as fl, shownTime as fm, GROUP_META_PAST_CHARS as fn, WAKE_LOST_MS as fo, REACTION_LIMITS as fp, encodeWitness as fr, newerHead as fs, leaveStands as ft, recordsFromWellKnown as fu, SET_UPDATE as fv, HANDOFF_CAPABILITY as fx, STAMP_BITS_DEFAULT as fy, X401_LIMITS as g, readOwnRelayPayload as gC, turnVerifierMark as gS, HANDOFF_WINDOW as g_, pubkyHomeserverOf as ga, readAppSignature as gb, WAKE_SUBJECT as gc, nostrProofTemplate as gd, isPlayableAudioType as gf, contactRtcConfig as gg, MAX_DHT_TEXT_BYTES as gh, strictBase64Url as gi, readAppFrame as gl, GROUP_VERSION_LARGE as gm, MAX_GROUP_PICTURE_LENGTH as gn, publishFailure as go, parseReactionFrame as gp, u32$1 as gr, readBeaconHead as gs, rosterHash as gt, wellKnownUrl as gu, setUpdateFrame as gv, deviceKeyZ32 as gx, knockHolds as gy, X401_HEADERS as h, parseRelayPayload as hC, turnStatedVerifier as hS, HANDOFF_VERSION as h_, homeserverWebEndpoint as ha, readAppRevocations as hb, WAKE_INTERVAL_MS as hc, isProofAdapter as hd, formatVoiceDuration as hf, compressSdp as hg, LinkSession as hh, staticDidDocument as hi, parseAppFrame as hl, GROUP_MEMBER_CAP as hm, MAX_GROUP_NAME_LENGTH as hn, parsePaymentNetworks as ho, parseReactedFrame as hp, txHash as hr, readBeacon as hs, leftStatement as ht, validDomainRecord as hu, setAckFrame as hv, deviceFrameCapability as hx, contactDay as hy, x401ApprovalDigest as i, heldBackError as iC, signTurnBody as iS, HANDOFF_LATER_BYTES as i_, PUBKY_PROOF_MAX_BYTES as ia, appRef as ib, parsePinnedFrame as ic, verifyIdentityPresentation as id, formatFileSize as if, extractRtcParams as ig, DIRECT_OWN_ATTEMPTS as ih, didWebDocumentUrl as ii, APP_RESUME_GRACE_MS as il, statusCardText as im, validEditText as in, RACE_ANSWERED_MS as io, forwardedAgain as ip, BitcoinAddressError as ir, beaconRecords as is, communityGroupId as it, domainTxtRecord as iu, readHandoffPake as iv, __exportAll as iw, inviteQrText as ix, MAX_SEEN as iy, readX401ProofResult as j, generateEncryptionKey as jC, HEDGE_MISSING_MS as jS, handoffEphemeral as j_, cashuRequestPayload as ja, CONTACT_LINK_BYTES as jb, decryptPushPayload as jc, verifyRingAuthorization as jd, EDIT_BUFFER_MAX as jf, emptyLinkRecords as jg, GhostlyHttpError as jh, resolveDidDht as ji, TYPING_CAPABILITY as jl, sortRoster as jm, parseGroupMetaStatement as jn, readGroupFileMeta as jo, readReply as jp, AtprotoCid as jr, transferEnded as js, readKnocks as jt, IDENTITY_CHALLENGE_WINDOW as ju, enrollGrantFrame as jv, TURN_SETTLE_MS as jx, APP_BUNDLE_LIMITS as jy, readX401ProofResponse as k, decrypt as kC, GROUP_RATION_WINDOW_MS as kS, handoffDigest as k_, findBolt11 as ka, canonicalJsonBytes as kb, WebPushError as kc, ringEvidence as kd, parseVideoMeta as kf, RECORD_TTL as kg, presenceSeenAt as kh, jwkThumbprint as ki, STATUS_CARD_CAPABILITY as kl, rosterHas as km, parseGroupMetaBody as kn, groupFileFallback as ko, groupReplyAuthor as kp, parseAtprotoDidDocument as kr, encodeFileData as ks, knockRecords as kt, encodePacketTransports as ku, enrollDigits as kv, TURN_PUT_WINDOW_MS as kx, seenEntry as ky, x401VpToken as l, PacketTooLargeError as lC, turnName as lS, HANDOFF_PIECE_BYTES as l_, normalizePubkyKey as la, isAppHash as lb, readPin as lc, PROOF_CAPABILITY as ld, RECORDING_TYPES as lf, PAIRED_CALL_CANDIDATES as lg, AWAITING_PEER_MS as lh, normalizeDid as li, appDataBytes as ll, claimedTime as lm, validMentions as ln, RTC_UNSTARTED_MS as lo, QUICK_REACTIONS as lp, decodeTx as lr, lobbyRecords as ls, decodeCommunityLink as lt, normalizeDomain as lu, sealHandoffPiece as lv, DEVICE_ECHO_FRAME as lx, REQUEST_NAME_UNITS as ly, x401HolderJwk as m, openRelayPayload as mC, turnSignedMessage as mS, HANDOFF_VERIFIED as m_, encodeSvcbPacket as ma, readAppRevocationShape as mb, WAKE_FRAME as mc, importedProof as md, fileMessageText as mf, callSignalHeardAt as mg, IDLE_THRESHOLD as mh, signingKeys as mi, isChatAppId as ml, GROUP_ID as mm, MAX_GROUP_NAME_BYTES as mn, pairedMessageFrame as mo, nextReactionNumber as mp, sha256d as mr, rankHubs as ms, leaveStatement3 as mt, txtValue as mu, readSetUpdate as mv, deviceEchoNonce as mx, STAMP_BITS_MIN as my, X401_RESPONSE_MODES as n, DiscoveryBudgetError as nC, readTurnPacket as nS, HANDOFF_HAVE as n_, BITCOIN_NETWORKS as na, APP_STATEMENT_LIMITS as nb, nextPinNumber as nc, revokesIdentity as nd, FileTransfers as nf, RTC_SIGNAL_MAX_AGE_MS as ng, STALLED_EVIDENCE_MS as nh, didJwsAlg as ni, APP_RATE_LIMIT as nl, sameButtonText as nm, meshMessageRef as nn, PAIRING_RETRY_MS as no, sanitizePreviewImage as np, decodeBase64 as nr, COMMUNITY_TOPOLOGY as ns, GROUP_READ_NOTE_COMMUNITY as nt, decodeDnsResponse as nu, readHandoffHello as nv, __commonJSMin as nw, inviteOwnership as nx, KNOCK_SLOT_LABEL as ny, matchX401Dcql as o, withRequestOptions as oC, signTurnRelease as oS, HANDOFF_MANIFEST as o_, isPubkyKey as oa, appRevocationId as ob, pinIsNewer as oc, applyIdentityEvent as od, sanitizeFileName as of, parseRtcSignal as og, DirectPathWatch as oh, didWebFileNames as oi, APP_VERSION_MAX as ol, usageLeft as om, MENTION_LIMITS as on, RACE_RELAYED_MS as oo, readForwarded as op, compactSize as or, freshHubs as os, communityMessageId as ot, encodeDnsQuery as ou, readHandoffTurnFrame as ov, __toCommonJS as ow, readInviteCode as ox, REQUEST_CLOCK_SKEW_MS as oy, sameX401HolderJwk as p, newerPacket as pC, turnSequence as pS, HANDOFF_TIMINGS as p_, decodeSvcbRecords as pa, readAppRevocation as pb, WAKE_CALL_WAIT_MS as pc, emptyProofLedger as pd, downsamplePeaks as pf, callRtcConfig as pg, FIRST_PUBLISH_MAX_MS as ph, parseDidSignaturePaste as pi, isAppVersion as pl, GROUP_ADMIN_OFF_ERROR as pm, MAX_GROUP_META_BODY as pn, pairedMessageFits as po, ReactionWindow as pp, hash160 as pr, pickHubs as ps, leaveStatement as pt, recordsName as pu, encodeSetSlots as pv, deviceEchoFrame as px, STAMP_BITS_MAX as py, signAppStore as q, fromBase64Url as qC, normalizeRelayUrl as qS, newHandoffId as q_, GhostLink as qa, INVITE_MAX_LENGTH as qb, appRangeGetFrame as qc, DHT_TEXT_REFUSED as qd, validEditNumber as qf, HANDOFF_ATTEMPTS as qg, decodeChunk as qh, parsePaymentAmount as qi, readManifest as ql, sha256Hex as qm, verifySshSignature as qn, GROUP_VERSION_HUBS as qo, buttonLabelClash as qp, DID_GHOSTLY_SERVICE as qr, typingFrame as qs, chainPieces as qt, boundVerifiedIdentity as qu, inboxRecord as qv, TURN_SLOTS as qx, isAppPath as qy, readX401OpenId4VpRequest as r, budgetRetryMs as rC, sealTurnBody as rS, HANDOFF_HELLO as r_, isBitcoinAddress as ra, appFingerprint as rb, parsePinFrame as rc, signIdentityPresentation as rd, PREVIEWABLE_IMAGE as rf, buildDataSdp as rg, DIRECT_EVIDENCE_MS as rh, didSignedMessages as ri, APP_RATE_WINDOW_MS as rl, statusCardBytes as rm, parseCommunityEdit as rn, PONG_WAIT_MS as ro, FORWARD_LIMITS as rp, verifyBip322 as rr, beaconKeys as rs, communityCommitHash as rt, dnsProofName as ru, readHandoffManifest as rv, __esmMin as rw, inviteQrSegments as rx, LINK_RECORD_LABEL as ry, presentX401SdJwtVc as s, MAX_DNS_PACKET_BYTES as sC, turnInstance as sS, HANDOFF_OFFER as s_, isPubkyProofFolder as sa, appSignedBytes as sb, pinNumberHolds as sc, lastSharedWithMe as sd, sanitizeMime as sf, CALL_SIGNAL_FUTURE_MS as sg, directBlocked as sh, didWebFileUrl as si, AppSessions as sl, MESSAGE_CLOCK_SKEW_MS as sm, mentionsBytes as sn, REDESCRIBED_GRACE_MS as so, COMMUNITY_REACTION_FRAME as sp, decodeAnyBitcoinAddress as sr, hubRank as ss, communityRoster as st, isPublicAddress as su, readHandoffVerified as sv, DEVICES_CAPABILITY as sx, REQUEST_LABEL as sy, X401_REQUEST_LIMITS as t, RelayBreaker as tC, readTurnBody as tS, HANDOFF_FILE_REQUEST as t_, sparkNetworkOf as ta, APP_PREFIXES as tb, mayPin as tc, receivedIdentityStatus as td, readDhtFile as tf, RTC_SIGNAL_FUTURE_MS as tg, REANSWERS as th, didGhostlyServiceEntry as ti, APP_PEER_OPEN_MAX as tl, removedCardText as tm, communityMessageAuthor as tn, PAIRING_ATTEMPT_MS as to, previewImageSize as tp, bip322ToSpend as tr, wireHubPolicy as ts, CommunitySession as tt, WELL_KNOWN_PATH as tu, readHandoffHave as tv, utf8Encode as tw, inviteLink as tx, KNOCK_SLOTS as ty, X401_CREDENTIAL_LIMITS as u, RELAY_PAYLOAD_MAX_BYTES as uC, turnPacket as uS, HANDOFF_PIECE_OVERHEAD as u_, pubkyProofCapability as ua, isAppKey as ub, DEVICE_WAKE_TTL_SECONDS as uc, PeerProofs as ud, VOICE_LIMITS as uf, RTC_CONFIG as ug, DEPARTED_READ_MS as uh, parseDid as ui, appDataFrame as ul, heardTime as um, wireMentions as un, SWITCH_RETIRE_MS as uo, REACTED_FRAME as up, decodeWitness as ur, mergeBeacon as us, derivedSecret as ut, parseDomainTxt as uu, sortParts as uv, DEVICE_PING_FRAME as ux, REQUEST_PACKET_BYTES as uy, X401_SCHEME as v, decodeDnsAnswers as vC, BACKGROUND_WHILE_SIGNALING as vS, filePartDigest as v_, LNURL_LIMITS as va, signAppRevocation as vb, WakeLimiter as vc, proofHash as vd, recordingMime as vf, extractParamsFromSdp as vg, OFFER_LOOK_MS as vh, DID_DHT_PREFIX as vi, APP_RANGES_CAPABILITY as vl, MAX_GROUP_CHAIN as vm, groupDisplayName as vn, EngineError as vo, reactedFrame as vp, varBytes as vr, shouldBeHub as vs, signCommunity as vt, CAPS_LABEL as vu, signTombstone as vv, deviceLinkParams as vx, knockSlotOf as vy, decodeX401Header as w, identityFromSeed as wC, DEPARTED_READS as wS, handoffBusyFrame as w_, parsePayParams as wa, isImageMime as wb, relayRequest as wc, verifyNostrProof as wd, PLAYABLE_VIDEO as wf, sdpHasCandidates as wg, TRANSPORTS_GONE_MS as wh, didDhtFromPublicKey as wi, KNOWN_SESSION_CAPABILITIES as wl, commitUntaggedHash as wm, groupMetaToHand as wn, GROUP_HAVE_FRAME as wo, validReactionNumber as wp, atprotoProofRecord as wr, ChatFiles as ws, decodeGroupEntryLink as wt, CapsRefusedError as wu, ENROLL_GRANT as wv, signDeviceTransports as wx, openRequest as wy, buildX401ProofResult as x, readDnsName as xC, CHAT_RESERVE_PER_CHAT as xS, handoffAttemptAllowed as x_, invoiceCallbackUrl as xa, verifyAppStatementBytes as xb, parseWakeFrame as xc, storageProofBody as xd, voiceLevel as xf, keepsToRelays as xg, PRESENCE_WINDOW as xh, DidDhtError as xi, EDIT_CAPABILITY as xl, OWN_FRAME_LIMIT as xm, groupMetaNewer as xn, parseEngineError as xo, reactionIsNewer as xp, ATPROTO_PROOF_COLLECTION as xr, PAIRED_CALL_FRAME as xs, GROUP_ENTRY_PROFILE as xt, CAPS_REFRESH_MS as xu, ENROLL_CANCEL as xv, deviceLinkSecret as xx, makeStamp as xy, X401_VERSION as y, decodeTxtPacket as yC, CHAT_RESERVE as yS, filePartName as y_, fetchLnurlJson as ya, verifyAppRevocation as yb, deviceWakeRequest as yc, proofStatement as yd, voiceDownloadName as yf, heardCallSignal as yg, OFFER_STEP_MAX as yh, DID_DHT_TTL as yi, BUTTONS_CAPABILITY as yl, MAX_GROUP_MEMBERS as ym, groupMetaBody as yn, engineError as yo, reactionEmoji as yp, ATPROTO_DECLARED_SCOPE as yr, validHead as ys, verifyCommunityChain as yt, CAPS_LIMITS as yu, verifySetUpdate as yv, deviceLinkRendezvousSeed as yx, knockSlotRecords as yy, planAppUpdate as z, hasVisible as zC, SIGNALING_WINDOW_MS as zS, handoffReleaseFrame as z_, BLOCKED_DIAL_WAIT_MS as za, createDeviceInvite as zb, APP_RANGE_FRAMES as zc, rankTransports as zd, REMOVED_TEXT as zf, encodeServices as zg, sanitizeResponseHeaders as zh, TEST_USDT_FAUCET_AMOUNT as zi, SESSION_RECEIVE_PENDING as zl, edgeParams as zm, SSH_PUBLIC_KEY_MAX as zn, SIGNALS_PER_MINUTE as zo, PR_CHECKS as zp, parseAtprotoDidKey as zr, TYPING_STATUS_MAX as zs, groupWakes as zt, IDENTITY_MAX_VALIDITY as zu, FLOOD_PER_DAY as zv, TURN_LABEL as zx, APP_VIEWS as zy };
35626
+ export { COMMUNITY_LIMITS as $, isZ32Key as $C, traceLink as $S, readHandoffCancel as $_, LIVENESS_PING_MS as $a, createLink as $b, parseAppRangeFrame as $c, peekDhtMailbox as $d, canonicalUrl as $f, HANDOFF_CANCEL_REASONS as $g, sendBody as $h, sparkAddressKind as $i, DOMAIN_MAX_RECORDS as $l, DataLink as $m, bip322MessageHash as $n, meshRendezvous as $o, cardTimeUtc as $p, checkDidJws as $r, PINNED_FRAME as $s, carryMentions as $t, identityStatement as $u, takeRequest as $v, TurnRecordError as $x, readAppBundleAsync as $y, readX401ProofResponseHeader as A, sign as AC, GROUP_BURST_ONE_LINK as AS, handoffDataFrame as A_, ENDPOINT as Aa, canonicalJson as Ab, PUSH_SERVICE_HOSTS as Ac, ringClaims as Ad, isVideoMime as Af, MAX_MSGS_PAYLOAD_B64 as Ag, countUnusedInvite as Ah, openDidDhtPayload as Ai, SESSION_CAPABILITIES_FRAME as Al, rosterAdmin as Am, parseGroupMetaFrame as An, groupFileFallback as Ao, REPLY_LIMITS as Ap, shortAtprotoDid as Ar, decodeFileData as As, mergeKnocks as At, emptyCapsState as Au, enrollCancelReason as Av, seedSigner as Ax, requestRecords as Ay, APP_STORE_KINDS as B, sanitizeAvatar as BC, RelaysFailedError as BS, handoffPakeFrame as B_, CROSSED_FRESH_MS as Ba, DEVICE_INVITE_OWN_DEVICE as Bb, APP_RANGE_ERRORS as Bc, irohRelayUrl as Bd, MAX_REMOVAL_NUMBER as Bf, decodeServices as Bg, sanitizeRequestHeaders as Bh, USDT_PUBLIC_RPC as Bi, SESSION_FRAME_MAX as Bl, decryptText as Bm, SshSigError as Bn, SIGNALS_PER_MINUTE as Bo, ITEM_STATES as Bp, parseAtprotoVerificationKey as Br, TYPING_SEND_LIMIT as Bs, mentionedMembers as Bt, IDENTITY_MAX_RECEIVED as Bu, verifyEnrollProof as Bv, TOMBSTONE_TURN as Bx, APP_SCREENSHOTS_DIR as By, buildX401TokenObject as C, encodeTxtPacket as CC, CHAT_RESERVE_MOST_SHARE as CS, handoffAttemptAllowed as C_, parseLightningDestination as Ca, verifyAppStatementBytes as Cb, parseWakeFrame as Cc, storageProofBody as Cd, voiceLevel as Cf, keepsToRelays as Cg, PRESENCE_WINDOW as Ch, didDhtDocument as Ci, EDIT_CAPABILITY as Cl, OWN_FRAME_LIMIT as Cm, groupMetaTag as Cn, PairingTracker as Co, reactionIsNewer as Cp, atprotoDidMethod as Cr, PairedCalls as Cs, MAX_KNOCKS as Ct, CAPS_REFRESH_MS as Cu, ENROLL_CANCEL as Cv, deviceLinkSealKey as Cx, makeStamp as Cy, readX401ProofRequest as D, identityFromSeed as DC, DEPARTED_READS as DS, handoffCancelFrame as D_, BOLT11_PATTERN as Da, parseImageMeta as Db, wakeFrame as Dc, verifyPeerProof as Dd, VIDEO_LIMITS as Df, signalHasVideo as Dg, UNUSED_INVITE_READS_PER_MINUTE as Dh, encodeDidDhtDeactivated as Di, PIN_CAPABILITY as Dl, expectedRoster as Dm, nextGroupMetaRevision as Dn, GROUP_WANT_FRAME as Do, wireReaction as Dp, isAtprotoDid as Dr, FILE_FRAMES as Ds, groupEntryUrl as Dt, DHT_TEXT_CAPABILITY as Du, ENROLL_HELLO as Dv, signDeviceTransports as Dx, readKnockSlot as Dy, isX401Protocol as E, createIdentity as EC, DEFAULT_RELAYS as ES, handoffBusyFrame as E_, resolveLightningDestination as Ea, isImageMime as Eb, relayRequest as Ec, verifyNostrProof as Ed, PLAYABLE_VIDEO as Ef, sdpHasCandidates as Eg, TRANSPORTS_GONE_MS as Eh, didDhtRecords as Ei, KNOWN_SESSION_CAPABILITIES as El, commitUntaggedHash as Em, keepPastGroupMeta as En, GROUP_VERSION_FILES as Eo, validReactionNumber as Ep, checkAtprotoProofRecord as Er, FILE_DATA_KIND as Es, entryParams as Et, CapsRefusedError as Eu, ENROLL_GRANT as Ev, newDeviceSetSecret as Ex, openRequest as Ey, appRevocationFor as F, sealedLength as FC, HEDGE_MS as FS, handoffFileRequestFrame as F_, parseCashuRequestPayload as Fa, createContactLink as Fb, generateVapidKeys as Fc, RELAY_URL as Fd, EDIT_FRAME as Ff, parseLinkRecords as Fg, HttpHost as Fh, ONCHAIN_PROVIDER as Fi, WAKE_SESSION_CAPABILITY as Fl, verifyCommit as Fm, wrapGroupMeta as Fn, readGroupWantNo as Fo, wireReply as Fp, decodeDagCbor as Fr, TYPING_FRAME as Fs, GROUP_WAKE_MEMBER_INTERVAL_MS as Ft, IDENTITY_CLOCK_SKEW as Fu, enrollMessage as Fv, TURN_VISIBLE_MS as Fx, APP_CLIENTS as Fy, readAppStore as G, stripHidden as GC, TURN_SOURCE_TIMEOUT_MS as GS, handoffVerifiedFrame as G_, DHT_PIN_GRACE_MS as Ga, readDeviceInvite as Gb, appRangeChunk as Gc, DHT_FILE_REFUSED as Gd, editedFrame as Gf, servicesFromWire as Gg, CHUNK_KIND as Gh, formatPaymentAmount as Gi, HoldKeys as Gl, openPair as Gm, sshKeyDigestHex as Gn, SIGNAL_REPLY_MS as Go, RUN_RESULTS as Gp, DID_DOCUMENT_MAX_BYTES as Gr, parseTypingActivity as Gs, GroupSession as Gt, IDENTITY_STATEMENT_PREFIX as Gu, NEW_PER_HOUR as Gv, TURN_NAME_BYTES as Gx, buildAppBundle as Gy, checkAppListing as H, hasVisible as HC, SIGNALING_WINDOW_MS as HS, handoffRequestFrame as H_, CROSSED_WAIT_MS as Ha, deviceInviteJoinerKeyZ32 as Hb, APP_RANGE_LIMITS as Hc, relayedTransports as Hd, RateWindow as Hf, isValidServiceId as Hg, viewerResponseHeaders as Hh, arkAddressPrefix as Hi, HOLD_CAPABILITY as Hl, encryptText as Hm, parseSshSignature as Hn, SIGNAL_FRESH_MS as Ho, PR_STATES as Hp, unsignedCommitBytes as Hr, TYPING_TIMEOUT_MS as Hs, GROUP_LIMITS as Ht, IDENTITY_PROOF_CAPABILITY as Hu, MAX_DONE as Hv, TURN_LABEL as Hx, appDigest as Hy, appStoreDecision as I, tryDecrypt as IC, PREVIOUS_DEFAULT_RELAYS as IS, handoffHaveFrames as I_, parseFedimintRequestPayload as Ia, encodeContactLink as Ib, pushRequest as Ic, TRANSPORTS as Id, EDIT_RATE_WINDOW_MS as If, HTTP_SERVICE_PROTO as Ig, formatLocalTarget as Ih, PaymentPreflightError as Ii, parseSessionCapabilities as Il, verifyCommitSignature as Im, SSHSIG_MAX_ARMOR as In, CARRIED_DEFER_MS as Io, ACTIVE_TASK_STATUSES as Ip, encodeDagCbor as Ir, TYPING_KINDS as Is, GROUP_WAKE_RECEIVE_LIMIT as It, IDENTITY_FRAME_LIMIT as Iu, enrollProofFrame as Iv, classifyTurnRead as Ix, APP_CLIENT_NAME as Iy, GROUP_TYPING_FRAME as J, bytesEqual as JC, WRITE_FIRST_MS as JS, isHandoffPartName as J_, GhostLink as Ja, INVITE_LINK_ORIGIN as Jb, appRangeErrorFrame as Jc, DHT_TEXT_BYTES as Jd, validEditMessage as Jf, HANDOFF_ACK as Jg, PROTOCOL_VERSION as Jh, validatePaymentTarget as Ji, newMailbox as Jl, sealSecret as Jm, isLegacySignature as Jn, GROUP_VERSION_HUBS as Jo, appCardId as Jp, DID_JWS_ALGS as Jr, typingActivity as Js, frameBytes as Jt, IdentityExchange as Ju, endedRequests as Jv, TURN_SEALED_BYTES as Jx, isAppLicense as Jy, readAppStoreSteps as K, trimEndOf as KC, WATCH_SHARE as KS, handoffVerifiedMessage as K_, EARLY_DIAL_JOIN_MS as Ka, DEVICE_INVITE_VERSION as Kb, appRangeDataFrame as Kc, DHT_FILE_TOO_LARGE as Kd, parseEditFrame as Kf, servicesToWire as Kg, LIMITS as Kh, isWalletNetwork as Ki, HoldRefusedError as Kl, openSecret as Km, sshSignCommand as Kn, groupSignalFrame as Ko, STATUS_CARD_LIMITS as Kp, DID_FILE_MAX_BYTES as Kr, parseTypingFrame as Ks, asWritten as Kt, IDENTITY_SUBJECT as Ku, REOPEN_BELOW as Kv, TURN_NO_ACTIVE as Kx, checkAppManifest as Ky, appUpdateDecision as L, MAX_AVATAR_LENGTH as LC, RELAY_REQUESTS_PER_MINUTE as LS, handoffHelloFrame as L_, ANSWERS_REFUSED_PAUSES as La, readContactLink as Lb, vapidAuthorization as Lc, automaticTransport as Ld, EDIT_RECEIVE_LIMIT as Lf, LEGACY_SERVICES as Lg, parseLocalTarget as Lh, SEPOLIA_TEST_USDT as Li, sessionCapabilitiesFrame as Ll, GROUP_PROFILE as Lm, SSHSIG_NAMESPACE as Ln, CarriedTransport as Lo, BUTTON_ID as Lp, findInMst as Lr, TYPING_RATE_LIMIT as Ls, GroupWakeLimiter as Lt, IDENTITY_FRAME_WINDOW_MS as Lu, formatEnrollDigits as Lv, keptAtEqualSequence as Lx, APP_FORBIDDEN_KEYS as Ly, readX401ProofResultHeader as M, decrypt as MC, GROUP_RATION_WINDOW_MS as MS, handoffDoneFrame as M_, fedimintRequestPayload as Ma, readCanonicalJson as Mb, checkPushEndpoint as Mc, validRingKey as Md, EDITED_FRAME as Mf, buildLinkRecords as Mg, unusedInviteWait as Mh, signDidDhtPacket as Mi, SessionCapabilities as Ml, signCommit as Mm, parseGroupMetaTag as Mn, readGroupFileMeta as Mo, pairedReplyAuthor as Mp, AtprotoProofError as Mr, refusalText as Ms, GROUP_WAKE_FRAME as Mt, parsePacketTransports as Mu, enrollDoneFrame as Mv, TURN_PUT_WINDOW_MS as Mx, stampHolds as My, x401AnswerableRequests as N, encrypt as NC, GROUP_SIGNALING_ALLOWANCE_SHARE as NS, handoffEphemeral as N_, findEndpoint as Na, CONTACT_LINK_BYTES as Nb, decryptPushPayload as Nc, verifyRingAuthorization as Nd, EDIT_BUFFER_MAX as Nf, emptyLinkRecords as Ng, GhostlyHttpError as Nh, ETHEREUM_USDT as Ni, TYPING_CAPABILITY as Nl, sortRoster as Nm, signGroupMeta as Nn, readGroupHave as No, readReply as Np, atprotoCidFor as Nr, transferEnded as Ns, GROUP_WAKE_GROUP_LIMIT as Nt, IDENTITY_CHALLENGE_WINDOW as Nu, enrollGrantFrame as Nv, TURN_RAISE_READ_TIMEOUT_MS as Nx, APP_BUNDLE_LIMITS as Ny, readX401ProofRequestHeader as O, identityFromSeedB64 as OC, FRESH_READ_MS as OS, handoffContext as O_, decodeBolt11 as Oa, previewable as Ob, wakePayload as Oc, RING_LIFETIME as Od, formatVideoDuration as Of, waitForIceGathering as Og, UNUSED_INVITE_WAIT_MAX_MS as Oh, encodeDidDhtPacket as Oi, REACTIONS_CAPABILITY as Ol, parseGroupCommit as Om, openGroupMeta as On, GROUP_WANT_NO_FRAME as Oo, PAIRED_REPLY_AUTHORS as Op, normalizeAtprotoHandle as Or, FILE_LIMITS as Os, knockIdentity as Ot, capsDescriptors as Ou, ENROLL_PROOF as Ov, unsignedDeviceTransports as Ox, readLinkRecord as Oy, addedAppPermissions as P, generateEncryptionKey as PC, HEDGE_MISSING_MS as PS, handoffFileMissingFrame as P_, isFederationId as Pa, CONTACT_LINK_VERSION as Pb, encryptPushPayload as Pc, verifyRingEvidence as Pd, EDIT_BUFFER_MS as Pf, isEmptyLinkPacket as Pg, HttpClient as Ph, EVM_TEST_CHAINS as Pi, UPGRADE_CAPABILITY as Pl, verifyChain as Pm, verifyGroupMetaSignature as Pn, readGroupWant as Po, replySnippet as Pp, decodeAtprotoCommit as Pr, transferStalled as Ps, GROUP_WAKE_GROUP_WINDOW_MS as Pt, IDENTITY_CHECK_UNAVAILABLE as Pu, enrollHelloFrame as Pv, TURN_SETTLE_MS as Px, APP_BUNDLE_MAGIC as Py, sealGroupTyping as Q, fromZ32 as QC, setLinkTraceSink as QS, readHandoffBusy as Q_, LIVENESS_MISSED_PINGS as Qa, createChatInvite as Qb, isServeId as Qc, emptyDhtDeliveryState as Qd, LINK_PREVIEW_LIMITS as Qf, HANDOFF_CANCEL as Qg, encodeControl as Qh, isSparkAddress as Qi, DOMAIN_FILE_MAX_BYTES as Ql, DATA_SETTLE_MS as Qm, MessageRefusal as Qn, meshHubs as Qo, cardLinkHost as Qp, DidError as Qr, GROUP_PIN_FRAME as Qs, GROUP_EDIT_TEXT_BYTES as Qt, identityRevocationValue as Qu, settleRequest as Qv, TURN_VERSION as Qx, readAppBundle as Qy, checkAppBeforeRun as R, MAX_AVATAR_SIDE as RC, REQUESTS_PER_MINUTE as RS, handoffManifestFrames as R_, ANSWERS_REFUSED_PAUSE_MS as Ra, DEVICE_INVITE_BYTES as Rb, vapidKeysMatch as Rc, checkedDescriptors as Rd, EDIT_SEND_LIMIT as Rf, MAX_SERVICES as Rg, relativizeLocation as Rh, SEPOLIA_TEST_USDT_FAUCET as Ri, PAIRED_PROFILE as Rl, confirmationMatches as Rm, SSH_KEY_TYPES as Rn, GROUP_SIGNAL_FRAME as Ro, BUTTON_STYLES as Rp, parseAtprotoCar as Rr, TYPING_RATE_WINDOW_MS as Rs, groupWakeFrame as Rt, IDENTITY_MAX_EVIDENCE as Ru, readEnrollGrant as Rv, turnPutSummary as Rx, APP_ICON_PATH as Ry, buildX401ResultArtifact as S, decodeTxtPacket as SC, CHAT_RESERVE as SS, handoffAckFrame as S_, parseInvoiceCallback as Sa, verifyAppSignature as Sb, newWakeToken as Sc, storageProof as Sd, voiceFileName as Sf, isGlobalIpv4Host as Sg, PRESENCE_HEARTBEAT as Sh, decodeDidDhtPacket as Si, CALLS_CAPABILITY as Sl, MEMBER_KEY as Sm, groupMetaPicture as Sn, parseEngineError as So, reactionFrame as Sp, ATPROTO_PROOF_SCOPE as Sr, PAIRED_CALL_FRAME as Ss, KNOCK_TTL_MS as St, CAPS_PUBLISH_SPACING_MS as Su, DEVICE_KINDS as Sv, deviceLinkRendezvousSeed as Sx, linkRecords as Sy, encodeX401Header as T, IDENTITY_MEMO_SIZE as TC, CHAT_WATCH_SHARE as TS, handoffAttemptSucceeded as T_, requestLnurlInvoice as Ta, imageSize as Tb, readWakePayload as Tc, validExternalKey as Td, voicePeaksOf as Tf, pickCallCandidates as Tg, STALLED_LOOK_MS as Th, didDhtKey as Ti, FILES_CAPABILITY as Tl, commitHash as Tm, groupName as Tn, GROUP_HAVE_FRAME as To, readReaction as Tp, atprotoProofRkey as Tr, ChatFiles as Ts, encodeGroupEntryLink as Tt, CapsKeys as Tu, ENROLL_DONE as Tv, devicePingFrame as Tx, mergeContactKnocks as Ty, checkAppStoreIndex as U, sanitizeDisplayText as UC, SLOW_DEMOTE_MS as US, handoffRetryAfter as U_, DEMOTE_AFTER_FAILURES as Ua, deviceInviteJoinerParams as Ub, AppRanges as Uc, transportOrder as Ud, dhtEditId as Uf, isViewerTag as Ug, webLocalFetch as Uh, assertTokenUnits as Ui, HOLD_DATED_BACK_MS as Ul, epochKeys as Um, sameSshKey as Un, SIGNAL_HOLD_MS as Uo, REMOVABLE_KINDS as Up, verifyAtprotoRecordProof as Ur, TypingReceiver as Us, GROUP_REACTED_FRAME as Ut, IDENTITY_PROVIDER_ID as Uu, MAX_MISSED as Uv, TURN_LAST_SEQUENCE as Ux, appViewOf as Uy, APP_STORE_LIMITS as V, MAX_NICK_LENGTH as VC, SIGNALING_ALLOWANCE_SHARE as VS, handoffReleaseFrame as V_, CROSSED_PROBE_MS as Va, createDeviceInvite as Vb, APP_RANGE_FRAMES as Vc, rankTransports as Vd, REMOVED_TEXT as Vf, encodeServices as Vg, sanitizeResponseHeaders as Vh, WALLET_NETWORKS as Vi, SESSION_RECEIVE_PENDING as Vl, edgeParams as Vm, parseSshPublicKey as Vn, SIGNAL_CARRIERS as Vo, PR_CHECKS as Vp, readAtprotoCid as Vr, TYPING_STATUS_MAX as Vs, parseGroupWakeFrame as Vt, IDENTITY_MAX_VALIDITY as Vu, FLOOD_PER_DAY as Vv, TURN_BODY_BYTES as Vx, APP_VIEWS as Vy, readAppListing as W, sanitizeNick as WC, SLOW_MS as WS, handoffStreamKey as W_, DEMOTE_MS as Wa, encodeDeviceInvite as Wb, appRangeCancelFrame as Wc, ACTIVE_DHT_POLL_MS as Wd, editFrame as Wf, serviceIdFromName as Wg, CHUNK_FLAG_END as Wh, assertWholeSats as Wi, HOLD_LIMITS as Wl, newEpochSecret as Wm, sshFingerprint as Wn, SIGNAL_PROVEN_MS as Wo, ROUTINE_STATES as Wp, verifyAtprotoSignature as Wr, TypingSender as Ws, GROUP_READ_NOTE as Wt, IDENTITY_REVOCATION_LABEL as Wu, MAX_WAITING as Wv, TURN_MAX as Wx, assembleAppBundle as Wy, groupTypingEpoch as X, fromBase64 as XC, normalizeRelayUrl as XS, openHandoffPiece as X_, INVITER_DIAL_GRACE_MS as Xa, INVITE_VERSION as Xb, decodeAppRangeData as Xc, DhtDelivery as Xd, validRemovalNumber as Xf, HANDOFF_BUSY as Xg, decodeControl as Xh, SPARK_NETWORKS as Xi, DNS_LABEL as Xl, ANSWER_REFUSED_REDIALS as Xm, verifyBitcoinMessage as Xn, NO_HUB_POLICY as Xo, cardEditNumber as Xp, DID_MAX_LENGTH as Xr, typingKindOf as Xs, COMMUNITY_EDIT_FRAME as Xt, emptyIdentityLedger as Xu, newInbox as Xv, TURN_SLOTS as Xx, isAppUrl as Xy, GroupTypingBoard as Y, concatBytes as YC, currentRelays as YS, newHandoffId as Y_, HANDLED_WAIT_MS as Ya, INVITE_MAX_LENGTH as Yb, appRangeGetFrame as Yc, DHT_TEXT_REFUSED as Yd, validEditNumber as Yf, HANDOFF_ATTEMPTS as Yg, decodeChunk as Yh, walletNetworkOf as Yi, readManifest as Yl, sha256Hex as Ym, legacyMessageHash as Yn, MESH_HUBS as Yo, buttonLabelClash as Yp, DID_JWS_MAX_LENGTH as Yr, typingFrame as Ys, groupMessageId as Yt, boundVerifiedIdentity as Yu, inboxRecord as Yv, TURN_SIGNED_BYTES as Yx, isAppPath as Yy, openGroupTyping as Z, fromBase64Url as ZC, readRelayBody as ZS, readHandoffAck as Z_, INVITE_TAKEN as Za, OwnInviteError as Zb, encodeAppRangeData as Zc, LIVE_POLL_MS as Zd, LINK_MAX_CHARS as Zf, HANDOFF_BUSY_REASONS as Zg, encodeChunk as Zh, SPARK_PROVIDER as Zi, DNS_TYPE as Zl, CONNECT_TIMEOUT_MS as Zm, BIP322_REVISION as Zn, mayBeHub as Zo, cardLine as Zp, DID_METHODS as Zr, COMMUNITY_PIN_FRAME as Zs, GROUP_EDIT_FRAME as Zt, identityPresentationBytes as Zu, planKnocks as Zv, TURN_TTL as Zx, pacer as Zy, X401_PROTOCOLS as _, openRelayPayload as _C, turnSignedMessage as _S, HANDOFF_VERSION as __, LIGHTNING_DESTINATION_PATTERN as _a, readAppRevocations as _b, WAKE_INTERVAL_MS as _c, isProofAdapter as _d, formatVoiceDuration as _f, compressSdp as _g, LinkSession as _h, DID_DHT_MAX_PAYLOAD as _i, parseAppFrame as _l, GROUP_MEMBER_CAP as _m, encodeGroupMetaBody as _n, publishFailure as _o, parseReactedFrame as _p, u64 as _r, readBeaconHead as _s, shortHash as _t, validDomainRecord as _u, setAckFrame as _v, deviceEchoNonce as _x, contactDay as _y, X401_DCQL_LIMITS as a, DiscoveryBudgetError as aC, readTurnPacket as aS, HANDOFF_HELLO as a_, PUBKY_PROOF_ROOT as aa, appFingerprint as ab, parsePinFrame as ac, signIdentityPresentation as ad, PREVIEWABLE_IMAGE as af, buildDataSdp as ag, DIRECT_EVIDENCE_MS as ah, didWebFile as ai, APP_RATE_WINDOW_MS as al, statusCardBytes as am, MENTION_EVERYONE as an, RACE_ANSWERED_MS as ao, FORWARD_LIMITS as ap, ByteReader as ar, beaconRecords as as, communityHasFrame as at, dnsProofName as au, readHandoffManifest as av, utf8Encode as aw, inviteQrSegments as ax, LINK_RECORD_LABEL as ay, buildX401ProofRequest as b, signRelayPayload as bC, BACKGROUND_REQUESTS_PER_MINUTE as bS, filePartDigest as b_, findLightningDestination as ba, signAppRevocation as bb, WakeLimiter as bc, proofHash as bd, recordingMime as bf, extractParamsFromSdp as bg, OFFER_LOOK_MS as bh, DID_DHT_VERSION as bi, APP_RANGES_CAPABILITY as bl, MAX_GROUP_CHAIN as bm, groupMetaChange as bn, engineError as bo, reactedFrame as bp, ATPROTO_FULL_SCOPE as br, validHead as bs, verifyCommunityCommit as bt, CAPS_LABEL as bu, signTombstone as bv, deviceLinkPairing as bx, knockSlotOf as by, readX401DcqlQuery as c, isDiscoveryBudgetError as cC, signTurnPacket as cS, HANDOFF_MANIFEST as c_, newPubkyProofFolder as ca, appRevocationId as cb, pinIsNewer as cc, applyIdentityEvent as cd, sanitizeFileName as cf, parseRtcSignal as cg, DirectPathWatch as ch, didWebHost as ci, APP_VERSION_MAX as cl, usageLeft as cm, mentionsMember as cn, REDESCRIBED_GRACE_MS as co, readForwarded as cp, decodeBitcoinAddress as cr, hubRank as cs, communityUntaggedHash as ct, encodeDnsQuery as cu, readHandoffTurnFrame as cv, __exportAll as cw, pastedAgain as cx, REQUEST_CLOCK_SKEW_MS as cy, newX401HolderKey as d, PKARR_FUTURE_SKEW_MS as dC, turnKeys as dS, HANDOFF_PIECE_BYTES as d_, pubkyProofFile as da, isAppHash as db, readPin as dc, PROOF_CAPABILITY as dd, RECORDING_TYPES as df, PAIRED_CALL_CANDIDATES as dg, AWAITING_PEER_MS as dh, parseDidDocument as di, appDataBytes as dl, claimedTime as dm, GROUP_META_PAST as dn, SWITCH_RETIRE_MS as do, QUICK_REACTIONS as dp, encodeTx as dr, mergeBeacon as ds, encodeCommunityLink as dt, normalizeDomain as du, sealHandoffPiece as dv, DEVICE_CAPABILITIES as dx, REQUEST_NAME_UNITS as dy, BREAKER_ALL_DOWN_PROBE_MS as eC, encodeTurnFields as eS, HANDOFF_DATA as e_, sparkInvoiceDetails as ea, sha256Paced as eb, PIN_CLOCK_SKEW_MS as ec, identityStatementText as ed, DHT_FILE_CAPABILITY as ef, wrapDataChannel as eg, GATHER_ATTEMPTS as eh, checkDidSignature as ei, readAppRangeFrame as el, cardUrl as em, communityEditFrame as en, MAX_PAIRED_MESSAGE_FRAME as eo, linkEnd as ep, bip322ToSign as er, parseHubPolicy as es, COMMUNITY_PROFILE as et, DOMAIN_METHODS as eu, readHandoffData as ev, randomBytes as ew, decodeInviteCode as ex, turnOff as ey, readX401SdJwtVc as f, PacketTooLargeError as fC, turnName as fS, HANDOFF_PIECE_OVERHEAD as f_, pubkyProofPath as fa, isAppKey as fb, DEVICE_WAKE_TTL_SECONDS as fc, PeerProofs as fd, VOICE_LIMITS as ff, RTC_CONFIG as fg, DEPARTED_READ_MS as fh, parseDidJws as fi, appDataFrame as fl, heardTime as fm, GROUP_META_PAST_CHARS as fn, UNPROVEN_AUTH_MS as fo, REACTED_FRAME as fp, encodeWitness as fr, mergeLobby as fs, leaveStands as ft, parseDomainTxt as fu, sortParts as fv, DEVICE_ECHO_FRAME as fx, REQUEST_PACKET_BYTES as fy, X401_LIMITS as g, newerPacket as gC, turnSequence as gS, HANDOFF_VERIFIED as g_, pubkyHomeserverOf as ga, readAppRevocationShape as gb, WAKE_FRAME as gc, importedProof as gd, fileMessageText as gf, callSignalHeardAt as gg, IDLE_THRESHOLD as gh, strictBase64Url as gi, isChatAppId as gl, GROUP_ID as gm, MAX_GROUP_PICTURE_LENGTH as gn, parsePaymentNetworks as go, nextReactionNumber as gp, u32$1 as gr, readBeacon as gs, rosterHash as gt, txtValue as gu, readSetUpdate as gv, deviceEchoFrame as gx, STAMP_BITS_MIN as gy, X401_HEADERS as h, measureRecords as hC, turnReleaseMessage as hS, HANDOFF_TIMINGS as h_, homeserverWebEndpoint as ha, readAppRevocation as hb, WAKE_CALL_WAIT_MS as hc, emptyProofLedger as hd, downsamplePeaks as hf, callRtcConfig as hg, FIRST_PUBLISH_MAX_MS as hh, staticDidDocument as hi, isAppVersion as hl, GROUP_ADMIN_OFF_ERROR as hm, MAX_GROUP_NAME_LENGTH as hn, pairedMessageFrame as ho, ReactionWindow as hp, txHash as hr, rankHubs as hs, leftStatement as ht, recordsName as hu, encodeSetSlots as hv, HANDOFF_CAPABILITY as hx, STAMP_BITS_MAX as hy, x401ApprovalDigest as i, RelayBreaker as iC, readTurnBody as iS, HANDOFF_HAVE as i_, PUBKY_PROOF_MAX_BYTES as ia, APP_STATEMENT_LIMITS as ib, nextPinNumber as ic, revokesIdentity as id, FileTransfers as if, RTC_SIGNAL_MAX_AGE_MS as ig, STALLED_EVIDENCE_MS as ih, didWebDocumentUrl as ii, APP_RATE_LIMIT as il, sameButtonText as im, validEditText as in, PONG_WAIT_MS as io, sanitizePreviewImage as ip, BitcoinAddressError as ir, beaconKeys as is, communityGroupId as it, decodeDnsResponse as iu, readHandoffHello as iv, utf8Decode as iw, inviteOwnership as ix, KNOCK_SLOT_LABEL as iy, readX401ProofResult as j, verify as jC, GROUP_OVER_PACE_MS as jS, handoffDigest as j_, cashuRequestPayload as ja, canonicalJsonBytes as jb, WebPushError as jc, ringEvidence as jd, parseVideoMeta as jf, RECORD_TTL as jg, presenceSeenAt as jh, resolveDidDht as ji, STATUS_CARD_CAPABILITY as jl, rosterHas as jm, parseGroupMetaStatement as jn, isGroupMessageId as jo, groupReplyAuthor as jp, AtprotoCid as jr, encodeFileData as js, readKnocks as jt, encodePacketTransports as ju, enrollDigits as jv, webCryptoSigner as jx, seenEntry as jy, readX401ProofResponse as k, publicKeyFromZ32 as kC, GROUP_BURST_MS as kS, handoffContextProof as k_, findBolt11 as ka, readImageMeta as kb, wakeRequest as kc, ringAuthorization as kd, isPlayableVideoType as kf, LABEL$1 as kg, WATCH_PEER_MS as kh, jwkThumbprint as ki, SERVICES_CAPABILITY as kl, rememberAlone as km, parseGroupMetaBody as kn, fetchesByItself as ko, REPLY_ID as kp, parseAtprotoDidDocument as kr, FileUplink as ks, knockRecords as kt, dialDescriptors as ku, enrollCancelFrame as kv, verifyDeviceTransports as kx, requestPlaintextBytes as ky, x401VpToken as l, withRequestOptions as lC, signTurnRelease as lS, HANDOFF_OFFER as l_, normalizePubkyKey as la, appSignedBytes as lb, pinNumberHolds as lc, lastSharedWithMe as ld, sanitizeMime as lf, CALL_SIGNAL_FUTURE_MS as lg, directBlocked as lh, normalizeDid as li, AppSessions as ll, MESSAGE_CLOCK_SKEW_MS as lm, validMentions as ln, RESUME_WAIT_MS as lo, COMMUNITY_REACTION_FRAME as lp, decodeTx as lr, lobbyKeys as ls, decodeCommunityLink as lt, isPublicAddress as lu, readHandoffVerified as lv, __require as lw, readInviteCode as lx, REQUEST_LABEL as ly, x401HolderJwk as m, createRelayPayload as mC, turnPayloadSequence as mS, HANDOFF_REQUEST as m_, encodeSvcbPacket as ma, isAppSignature as mb, WAKE_CALL_TTL_SECONDS as mc, STORAGE_ROOT as md, baseMime as mf, buildSdpFromSignal as mg, EXPECT_PEER_MS as mh, signingKeys as mi, chatAppId as ml, shownTime as mm, MAX_GROUP_NAME_BYTES as mn, pairedMessageFits as mo, REACTION_LIMITS as mp, sha256d as mr, pickHubs as ms, leaveStatement3 as mt, recordsFromWellKnown as mu, SET_UPDATE as mv, ENROLL_CAPABILITY as mx, STAMP_BITS_DEFAULT as my, X401_RESPONSE_MODES as n, BREAKER_MAX_MS as nC, nextTurnPosition as nS, HANDOFF_FILE_MISSING as n_, BITCOIN_NETWORKS as na, APP_NAME as nb, PIN_LIMITS as nc, newIdentityBinding as nd, dhtFileId as nf, DATA_CHANNEL_LABEL as ng, OFFER_HOST_GATHER_MS as nh, didJwsAlg as ni, APP_FRAME as nl, readStatusCard as nm, meshMessageRef as nn, PAIRING_ATTEMPT_MS as no, parseLinkPreview as np, decodeBase64 as nr, wireHubPolicy as ns, GROUP_READ_NOTE_COMMUNITY as nt, NIP05_PATH as nu, readHandoffFileFrame as nv, toBase64Url as nw, encodeInviteCode as nx, ContactRequestError as ny, matchX401Dcql as o, budgetRetryMs as oC, sealTurnBody as oS, HANDOFF_LATER_BYTES as o_, isPubkyKey as oa, appRef as ob, parsePinnedFrame as oc, verifyIdentityPresentation as od, formatFileSize as of, extractRtcParams as og, DIRECT_OWN_ATTEMPTS as oh, didWebFileNames as oi, APP_RESUME_GRACE_MS as ol, statusCardText as om, MENTION_LIMITS as on, RACE_DIRECT_MS as oo, forwardedAgain as op, compactSize as or, doorHubs as os, communityMessageId as ot, domainTxtRecord as ou, readHandoffPake as ov, __commonJSMin as ow, inviteQrText as ox, MAX_SEEN as oy, sameX401HolderJwk as p, RELAY_PAYLOAD_MAX_BYTES as pC, turnPacket as pS, HANDOFF_RELEASE as p_, decodeSvcbRecords as pa, isAppRef as pb, WAKE_CALL_INTERVAL_MS as pc, STORAGE_LIFETIME as pd, VOICE_METER as pf, answersOffer as pg, DHT_POLL_INTERVALS as ph, parseDidSignaturePaste as pi, appOpenFrame as pl, receivedTimestamp as pm, MAX_GROUP_META_BODY as pn, WAKE_LOST_MS as po, REACTION_FRAME as pp, hash160 as pr, newerHead as ps, leaveStatement as pt, recordsFromTxt as pu, SET_ACK as pv, DEVICE_PING_FRAME as px, REQUEST_TEXT_BYTES as py, signAppStore as q, unwrapPasted as qC, WAY_BACK_SHARE as qS, handoffVersions as q_, FIRST_PAIRING_PACE_MS as qa, INVITE_HRP as qb, appRangeEndFrame as qc, DHT_MESSAGE_TTL as qd, parseEditedFrame as qf, viewerTag as qg, MAX_CHUNK_PAYLOAD_BYTES as qh, parsePaymentAmount as qi, isHoldUrl as ql, sealPair as qm, verifySshSignature as qn, readGroupSignal as qo, TASK_STATUSES as qp, DID_GHOSTLY_SERVICE as qr, sanitizeTypingStatus as qs, chainPieces as qt, IdentityCheckUnavailable as qu, clearMissed as qv, TURN_REV_LIMIT as qx, findAppForbiddenKey as qy, readX401OpenId4VpRequest as r, BREAKER_THRESHOLD as rC, openTurnValue as rS, HANDOFF_FILE_REQUEST as r_, isBitcoinAddress as ra, APP_PREFIXES as rb, mayPin as rc, receivedIdentityStatus as rd, readDhtFile as rf, RTC_SIGNAL_FUTURE_MS as rg, REANSWERS as rh, didSignedMessages as ri, APP_PEER_OPEN_MAX as rl, removedCardText as rm, parseCommunityEdit as rn, PAIRING_RETRY_MS as ro, previewImageSize as rp, verifyBip322 as rr, COMMUNITY_TOPOLOGY as rs, communityCommitHash as rt, WELL_KNOWN_PATH as ru, readHandoffHave as rv, toZ32 as rw, inviteLink as rx, KNOCK_SLOTS as ry, presentX401SdJwtVc as s, heldBackError as sC, signTurnBody as sS, HANDOFF_LIST_PER_FRAME as s_, isPubkyProofFolder as sa, appRefPublisher as sb, pinFrame as sc, IDENTITY_TIMELINE_MAX as sd, safeBlobType as sf, offerIsFresh as sg, DIRECT_PEERS as sh, didWebFileUrl as si, APP_SEND_LIMIT as sl, taskProgress as sm, mentionsBytes as sn, RACE_RELAYED_MS as so, forwardedMany as sp, decodeAnyBitcoinAddress as sr, freshHubs as ss, communityRoster as st, domainWellKnownFile as su, readHandoffRelease as sv, __esmMin as sw, ownInviteRefusal as sx, MAX_SLOT_KNOCKS as sy, X401_REQUEST_LIMITS as t, BREAKER_BASE_MS as tC, firstDeviceSetSecret as tS, HANDOFF_DONE as t_, sparkNetworkOf as ta, yieldThread as tb, PIN_FRAME as tc, isIdentityBinding as td, dhtFileElements as tf, DATA_CHANNEL_ID as tg, GATHER_STALL_MS as th, didGhostlyServiceEntry as ti, APP_DATA_MAX_BYTES as tl, checkStatusCard as tm, communityMessageAuthor as tn, PAIRED_FRAME_TOO_LARGE as to, linksIn as tp, bip322ToSpend as tr, pickMeshHubs as ts, CommunitySession as tt, DOMAIN_TXT_MAX_BYTES as tu, readHandoffDone as tv, toBase64 as tw, encodeGhostlyInvite as tx, CONTACT_RECORD_TTL as ty, X401_CREDENTIAL_LIMITS as u, MAX_DNS_PACKET_BYTES as uC, turnInstance as uS, HANDOFF_PAKE as u_, pubkyProofCapability as ua, checkAppRevokeStatement as ub, pinnedFrame as uc, PROOF_ADAPTERS as ud, PLAYABLE_AUDIO as uf, CALL_SIGNAL_MAX_AGE_MS as ug, symmetricNat as uh, parseDid as ui, appCloseFrame as ul, arrivalKey as um, wireMentions as un, RTC_UNSTARTED_MS as uo, GROUP_REACTION_FRAME as up, decodeWitness as ur, lobbyRecords as us, derivedSecret as ut, nip05RootKey as uu, sameDigest as uv, __toCommonJS as uw, DEVICES_CAPABILITY as ux, REQUEST_LIFETIME_MS as uy, X401_SCHEME as v, parseRelayPayload as vC, turnStatedVerifier as vS, HANDOFF_WINDOW as v_, LNURL_LIMITS as va, readAppSignature as vb, WAKE_SUBJECT as vc, nostrProofTemplate as vd, isPlayableAudioType as vf, contactRtcConfig as vg, MAX_DHT_TEXT_BYTES as vh, DID_DHT_PREFIX as vi, readAppFrame as vl, GROUP_VERSION_LARGE as vm, groupDisplayName as vn, ENGINE_ERRORS as vo, parseReactionFrame as vp, varBytes as vr, readLobby as vs, signCommunity as vt, wellKnownUrl as vu, setUpdateFrame as vv, deviceFrameCapability as vx, knockHolds as vy, decodeX401Header as w, readDnsName as wC, CHAT_RESERVE_PER_CHAT as wS, handoffAttemptFailed as w_, parsePayParams as wa, IMAGE_LIMITS as wb, readWake as wc, storageProofPath as wd, voiceLevelsOf as wf, parseCallSignal as wg, RELAY_POLL_INTERVALS as wh, didDhtFromPublicKey as wi, FILES_BINARY_CAPABILITY as wl, SAID_AGAIN as wm, groupMetaToHand as wn, GROUP_FILE_LIMITS as wo, readDhtReactions as wp, atprotoProofRecord as wr, parsePairedCallFrame as ws, decodeGroupEntryLink as wt, CapsExchange as wu, ENROLL_CANCEL_REASONS as wv, deviceLinkSecret as wx, makeStampPaced as wy, buildX401ProofResult as x, decodeDnsAnswers as xC, BACKGROUND_WHILE_SIGNALING as xS, filePartName as x_, invoiceCallbackUrl as xa, verifyAppRevocation as xb, deviceWakeRequest as xc, proofStatement as xd, voiceDownloadName as xf, heardCallSignal as xg, OFFER_STEP_MAX as xh, DidDhtError as xi, BUTTONS_CAPABILITY as xl, MAX_GROUP_MEMBERS as xm, groupMetaNewer as xn, engineText as xo, reactionEmoji as xp, ATPROTO_PROOF_COLLECTION as xr, MAX_PAIRED_CALL_SIGNAL as xs, GROUP_ENTRY_PROFILE as xt, CAPS_LIMITS as xu, verifySetUpdate as xv, deviceLinkParams as xx, knockSlotRecords as xy, X401_VERSION as y, readOwnRelayPayload as yC, turnVerifierMark as yS, NO_ATTEMPTS as y_, fetchLnurlJson as ya, signAppObject as yb, WAKE_TTL_SECONDS as yc, proofCapability as yd, parseVoiceMeta as yf, decompressSdp as yg, OFFER_FAST_MS as yh, DID_DHT_TTL as yi, APPS_CAPABILITY as yl, LEGACY_GROUP_MEMBERS as ym, groupMetaBody as yn, EngineError as yo, queueReaction as yp, ATPROTO_DECLARED_SCOPE as yr, shouldBeHub as ys, verifyCommunityChain as yt, CAPS_ISSUED_BACK_MS as yu, setUpdateMessage as yv, deviceKeyZ32 as yx, knockSlotIdentity as yy, planAppUpdate as z, jpegSize$1 as zC, RelayTransport as zS, handoffOfferFrame as z_, BLOCKED_DIAL_WAIT_MS as za, DEVICE_INVITE_LIFETIME_S as zb, APP_RANGE_DATA_KIND as zc, irohDescriptor as zd, MAX_EDITS_PER_MESSAGE as zf, SERVICES_VERSION as zg, resolveTargetUrl as zh, TEST_USDT_FAUCET_AMOUNT as zi, PairedSession as zl, confirmationTag as zm, SSH_PUBLIC_KEY_MAX as zn, GROUP_VERSION_SIGNALS as zo, CRON_LINE as zp, parseAtprotoDidKey as zr, TYPING_REFRESH_MS as zs, groupWakes as zt, IDENTITY_MAX_FRAME as zu, readEnrollHello as zv, TOMBSTONE_SEQUENCE as zx, APP_PERMISSIONS as zy };
35232
35627
 
35233
- //# sourceMappingURL=src-DmirvhXS.js.map
35628
+ //# sourceMappingURL=src-Cri2xrHC.js.map