@moq/net 0.4.7 → 0.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -1
- package/announce.d.ts +1 -1
- package/announce.d.ts.map +1 -1
- package/announce.js +1 -2
- package/announce.js.map +1 -1
- package/announced.d.ts +51 -47
- package/announced.d.ts.map +1 -1
- package/announced.js +183 -32
- package/announced.js.map +1 -1
- package/announced.test-util.d.ts +2 -0
- package/announced.test-util.d.ts.map +1 -0
- package/announced.test-util.js +27 -0
- package/announced.test-util.js.map +1 -0
- package/auth.d.ts +64 -0
- package/auth.d.ts.map +1 -0
- package/auth.js +20 -0
- package/auth.js.map +1 -0
- package/auth_gate.d.ts +2 -0
- package/auth_gate.d.ts.map +1 -0
- package/auth_gate.js +24 -0
- package/auth_gate.js.map +1 -0
- package/auth_session.d.ts +49 -0
- package/auth_session.d.ts.map +1 -0
- package/auth_session.js +1097 -0
- package/auth_session.js.map +1 -0
- package/bandwidth.d.ts +129 -25
- package/bandwidth.d.ts.map +1 -1
- package/bandwidth.js +410 -139
- package/bandwidth.js.map +1 -1
- package/bandwidth_api.d.ts +1 -1
- package/bandwidth_api.d.ts.map +1 -1
- package/bandwidth_api.js +1 -2
- package/bandwidth_api.js.map +1 -1
- package/broadcast.d.ts +64 -38
- package/broadcast.d.ts.map +1 -1
- package/broadcast.js +556 -173
- package/broadcast.js.map +1 -1
- package/cache.d.ts +103 -0
- package/cache.d.ts.map +1 -0
- package/cache.js +254 -0
- package/cache.js.map +1 -0
- package/claim.test-util.d.ts +5 -0
- package/claim.test-util.d.ts.map +1 -0
- package/claim.test-util.js +13 -0
- package/claim.test-util.js.map +1 -0
- package/connection/accept.d.ts +21 -13
- package/connection/accept.d.ts.map +1 -1
- package/connection/accept.js +97 -130
- package/connection/accept.js.map +1 -1
- package/connection/browser.d.ts.map +1 -1
- package/connection/browser.js +28 -20
- package/connection/browser.js.map +1 -1
- package/connection/connect.d.ts +120 -24
- package/connection/connect.d.ts.map +1 -1
- package/connection/connect.js +535 -217
- package/connection/connect.js.map +1 -1
- package/connection/dials.d.ts +45 -0
- package/connection/dials.d.ts.map +1 -0
- package/connection/dials.js +109 -0
- package/connection/dials.js.map +1 -0
- package/connection/endpoint.d.ts +60 -0
- package/connection/endpoint.d.ts.map +1 -0
- package/connection/endpoint.js +114 -0
- package/connection/endpoint.js.map +1 -0
- package/connection/forward.d.ts +7 -1
- package/connection/forward.d.ts.map +1 -1
- package/connection/forward.js +265 -81
- package/connection/forward.js.map +1 -1
- package/connection/goaway.d.ts +16 -9
- package/connection/goaway.d.ts.map +1 -1
- package/connection/goaway.js +22 -95
- package/connection/goaway.js.map +1 -1
- package/connection/handshake.d.ts +34 -8
- package/connection/handshake.d.ts.map +1 -1
- package/connection/handshake.js +97 -21
- package/connection/handshake.js.map +1 -1
- package/connection/index.d.ts +4 -7
- package/connection/index.d.ts.map +1 -1
- package/connection/index.js +1 -3
- package/connection/index.js.map +1 -1
- package/connection/liveness.d.ts +14 -0
- package/connection/liveness.d.ts.map +1 -0
- package/connection/liveness.js +30 -0
- package/connection/liveness.js.map +1 -0
- package/connection/pool.d.ts +142 -63
- package/connection/pool.d.ts.map +1 -1
- package/connection/pool.js +281 -118
- package/connection/pool.js.map +1 -1
- package/connection/reload.d.ts +60 -12
- package/connection/reload.d.ts.map +1 -1
- package/connection/reload.js +859 -234
- package/connection/reload.js.map +1 -1
- package/connection/session.d.ts +91 -0
- package/connection/session.d.ts.map +1 -0
- package/connection/session.js +2 -0
- package/connection/session.js.map +1 -0
- package/connection/stats.d.ts +20 -11
- package/connection/stats.d.ts.map +1 -1
- package/connection/stats.js +64 -9
- package/connection/stats.js.map +1 -1
- package/connection/ticker.d.ts +4 -0
- package/connection/ticker.d.ts.map +1 -0
- package/connection/ticker.js +66 -0
- package/connection/ticker.js.map +1 -0
- package/connection/tokens.d.ts +2 -0
- package/connection/tokens.d.ts.map +1 -0
- package/connection/tokens.js +404 -0
- package/connection/tokens.js.map +1 -0
- package/connection/transport.d.ts.map +1 -1
- package/connection/transport.js +4 -5
- package/connection/transport.js.map +1 -1
- package/connection/withdrawal.d.ts +2 -0
- package/connection/withdrawal.d.ts.map +1 -0
- package/connection/withdrawal.js +23 -0
- package/connection/withdrawal.js.map +1 -0
- package/consume.js +213 -47
- package/consume.js.map +1 -1
- package/cover.d.ts +59 -0
- package/cover.d.ts.map +1 -0
- package/cover.js +375 -0
- package/cover.js.map +1 -0
- package/datagram.d.ts +70 -11
- package/datagram.d.ts.map +1 -1
- package/datagram.js +317 -2
- package/datagram.js.map +1 -1
- package/datagram_stream.d.ts +18 -0
- package/datagram_stream.d.ts.map +1 -0
- package/datagram_stream.js +67 -0
- package/datagram_stream.js.map +1 -0
- package/defined.test-util.d.ts +2 -0
- package/defined.test-util.d.ts.map +1 -0
- package/defined.test-util.js +7 -0
- package/defined.test-util.js.map +1 -0
- package/delivered.d.ts +75 -0
- package/delivered.d.ts.map +1 -0
- package/delivered.js +228 -0
- package/delivered.js.map +1 -0
- package/demand.d.ts +173 -0
- package/demand.d.ts.map +1 -0
- package/demand.js +582 -0
- package/demand.js.map +1 -0
- package/drops.d.ts +93 -0
- package/drops.d.ts.map +1 -0
- package/drops.js +283 -0
- package/drops.js.map +1 -0
- package/error.d.ts +120 -21
- package/error.d.ts.map +1 -1
- package/error.js +230 -38
- package/error.js.map +1 -1
- package/errors.d.ts +2 -2
- package/errors.d.ts.map +1 -1
- package/errors.js +2 -3
- package/errors.js.map +1 -1
- package/fill.d.ts +174 -0
- package/fill.d.ts.map +1 -0
- package/fill.js +760 -0
- package/fill.js.map +1 -0
- package/flate/decoder.d.ts +2 -0
- package/flate/decoder.d.ts.map +1 -0
- package/flate/decoder.js +63 -0
- package/flate/decoder.js.map +1 -0
- package/flate/encoder.d.ts +2 -0
- package/flate/encoder.d.ts.map +1 -0
- package/flate/encoder.js +64 -0
- package/flate/encoder.js.map +1 -0
- package/flate/group.d.ts +34 -0
- package/flate/group.d.ts.map +1 -0
- package/flate/group.js +140 -0
- package/flate/group.js.map +1 -0
- package/frame.d.ts +80 -0
- package/frame.d.ts.map +1 -0
- package/frame.js +296 -0
- package/frame.js.map +1 -0
- package/frame.test-util.d.ts +5 -0
- package/frame.test-util.d.ts.map +1 -0
- package/frame.test-util.js +9 -0
- package/frame.test-util.js.map +1 -0
- package/group.d.ts +108 -45
- package/group.d.ts.map +1 -1
- package/group.js +1616 -308
- package/group.js.map +1 -1
- package/group_api.d.ts +7 -0
- package/group_api.d.ts.map +1 -0
- package/group_api.js +7 -0
- package/group_api.js.map +1 -0
- package/hop.d.ts +62 -76
- package/hop.d.ts.map +1 -1
- package/hop.js +92 -65
- package/hop.js.map +1 -1
- package/identity.d.ts +39 -0
- package/identity.d.ts.map +1 -0
- package/identity.js +47 -0
- package/identity.js.map +1 -0
- package/ietf/active_count.d.ts +2 -0
- package/ietf/active_count.d.ts.map +1 -0
- package/ietf/active_count.js +30 -0
- package/ietf/active_count.js.map +1 -0
- package/ietf/aliases.js +69 -36
- package/ietf/aliases.js.map +1 -1
- package/ietf/cluster.d.ts +3 -3
- package/ietf/cluster.js +14 -55
- package/ietf/cluster.js.map +1 -1
- package/ietf/connection.d.ts +1 -31
- package/ietf/connection.d.ts.map +1 -1
- package/ietf/connection.js +305 -144
- package/ietf/connection.js.map +1 -1
- package/ietf/datagram.d.ts +60 -0
- package/ietf/datagram.d.ts.map +1 -0
- package/ietf/datagram.js +152 -0
- package/ietf/datagram.js.map +1 -0
- package/ietf/error.d.ts +3 -3
- package/ietf/error.js +82 -101
- package/ietf/error.js.map +1 -1
- package/ietf/fetch.d.ts +93 -37
- package/ietf/fetch.d.ts.map +1 -1
- package/ietf/fetch.js +172 -94
- package/ietf/fetch.js.map +1 -1
- package/ietf/filter.d.ts +21 -31
- package/ietf/filter.d.ts.map +1 -1
- package/ietf/filter.js +140 -172
- package/ietf/filter.js.map +1 -1
- package/ietf/goaway.d.ts +12 -10
- package/ietf/goaway.d.ts.map +1 -1
- package/ietf/goaway.js +22 -36
- package/ietf/goaway.js.map +1 -1
- package/ietf/hidden.js +1 -2
- package/ietf/hidden.js.map +1 -1
- package/ietf/index.d.ts +8 -20
- package/ietf/index.d.ts.map +1 -1
- package/ietf/index.js +4 -15
- package/ietf/index.js.map +1 -1
- package/ietf/join.d.ts +7 -0
- package/ietf/join.d.ts.map +1 -0
- package/ietf/join.js +234 -0
- package/ietf/join.js.map +1 -0
- package/ietf/message.d.ts +18 -2
- package/ietf/message.d.ts.map +1 -1
- package/ietf/message.js +60 -41
- package/ietf/message.js.map +1 -1
- package/ietf/message.test-util.d.ts +6 -0
- package/ietf/message.test-util.d.ts.map +1 -0
- package/ietf/message.test-util.js +13 -0
- package/ietf/message.test-util.js.map +1 -0
- package/ietf/namespace.d.ts +19 -5
- package/ietf/namespace.d.ts.map +1 -1
- package/ietf/namespace.js +78 -27
- package/ietf/namespace.js.map +1 -1
- package/ietf/object.d.ts +195 -33
- package/ietf/object.d.ts.map +1 -1
- package/ietf/object.js +405 -179
- package/ietf/object.js.map +1 -1
- package/ietf/parameters.d.ts +25 -45
- package/ietf/parameters.d.ts.map +1 -1
- package/ietf/parameters.js +260 -473
- package/ietf/parameters.js.map +1 -1
- package/ietf/priority.d.ts +17 -2
- package/ietf/priority.d.ts.map +1 -1
- package/ietf/priority.js +19 -5
- package/ietf/priority.js.map +1 -1
- package/ietf/properties.d.ts +6 -5
- package/ietf/properties.d.ts.map +1 -1
- package/ietf/properties.js +78 -49
- package/ietf/properties.js.map +1 -1
- package/ietf/publish.d.ts +25 -33
- package/ietf/publish.d.ts.map +1 -1
- package/ietf/publish.js +45 -140
- package/ietf/publish.js.map +1 -1
- package/ietf/publish_namespace.d.ts +49 -72
- package/ietf/publish_namespace.d.ts.map +1 -1
- package/ietf/publish_namespace.js +66 -185
- package/ietf/publish_namespace.js.map +1 -1
- package/ietf/publisher.js +1800 -601
- package/ietf/publisher.js.map +1 -1
- package/ietf/range.d.ts +2 -0
- package/ietf/range.d.ts.map +1 -0
- package/ietf/range.js +222 -0
- package/ietf/range.js.map +1 -0
- package/ietf/request.d.ts +6 -30
- package/ietf/request.d.ts.map +1 -1
- package/ietf/request.js +41 -79
- package/ietf/request.js.map +1 -1
- package/ietf/request_stream.d.ts +1 -6
- package/ietf/request_stream.d.ts.map +1 -1
- package/ietf/request_stream.js +306 -17
- package/ietf/request_stream.js.map +1 -1
- package/ietf/session.d.ts +41 -0
- package/ietf/session.d.ts.map +1 -0
- package/ietf/session.js +65 -0
- package/ietf/session.js.map +1 -0
- package/ietf/setup.d.ts +5 -30
- package/ietf/setup.d.ts.map +1 -1
- package/ietf/setup.js +6 -118
- package/ietf/setup.js.map +1 -1
- package/ietf/setup_options.d.ts +31 -0
- package/ietf/setup_options.d.ts.map +1 -0
- package/ietf/setup_options.js +138 -0
- package/ietf/setup_options.js.map +1 -0
- package/ietf/solicit.js +4 -15
- package/ietf/solicit.js.map +1 -1
- package/ietf/subscribe.d.ts +52 -45
- package/ietf/subscribe.d.ts.map +1 -1
- package/ietf/subscribe.js +118 -240
- package/ietf/subscribe.js.map +1 -1
- package/ietf/subscribe_namespace.d.ts +16 -79
- package/ietf/subscribe_namespace.d.ts.map +1 -1
- package/ietf/subscribe_namespace.js +30 -202
- package/ietf/subscribe_namespace.js.map +1 -1
- package/ietf/subscriber.js +1839 -537
- package/ietf/subscriber.js.map +1 -1
- package/ietf/token.js +105 -28
- package/ietf/token.js.map +1 -1
- package/ietf/track.d.ts +27 -24
- package/ietf/track.d.ts.map +1 -1
- package/ietf/track.js +48 -62
- package/ietf/track.js.map +1 -1
- package/ietf/version.d.ts +13 -42
- package/ietf/version.d.ts.map +1 -1
- package/ietf/version.js +22 -49
- package/ietf/version.js.map +1 -1
- package/implementation.d.ts +2 -0
- package/implementation.d.ts.map +1 -0
- package/implementation.js +5 -0
- package/implementation.js.map +1 -0
- package/index.d.ts +34 -19
- package/index.d.ts.map +1 -1
- package/index.js +19 -7
- package/index.js.map +1 -1
- package/internal.d.ts +1515 -67
- package/internal.d.ts.map +1 -1
- package/internal.js +557 -80
- package/internal.js.map +1 -1
- package/ledger.d.ts +23 -0
- package/ledger.d.ts.map +1 -0
- package/ledger.js +247 -0
- package/ledger.js.map +1 -0
- package/listing.d.ts +132 -0
- package/listing.d.ts.map +1 -0
- package/listing.js +486 -0
- package/listing.js.map +1 -0
- package/lite/announce.d.ts +127 -66
- package/lite/announce.d.ts.map +1 -1
- package/lite/announce.js +384 -159
- package/lite/announce.js.map +1 -1
- package/lite/announce_stream.d.ts +2 -0
- package/lite/announce_stream.d.ts.map +1 -0
- package/lite/announce_stream.js +92 -0
- package/lite/announce_stream.js.map +1 -0
- package/lite/answer.d.ts +22 -0
- package/lite/answer.d.ts.map +1 -0
- package/lite/answer.js +301 -0
- package/lite/answer.js.map +1 -0
- package/lite/auth.d.ts +45 -0
- package/lite/auth.d.ts.map +1 -0
- package/lite/auth.js +204 -0
- package/lite/auth.js.map +1 -0
- package/lite/compat.d.ts +31 -0
- package/lite/compat.d.ts.map +1 -0
- package/lite/compat.js +86 -0
- package/lite/compat.js.map +1 -0
- package/lite/connection.d.ts +1 -45
- package/lite/connection.d.ts.map +1 -1
- package/lite/connection.js +360 -78
- package/lite/connection.js.map +1 -1
- package/lite/datagram-end.d.ts +26 -0
- package/lite/datagram-end.d.ts.map +1 -0
- package/lite/datagram-end.js +30 -0
- package/lite/datagram-end.js.map +1 -0
- package/lite/datagram.d.ts +73 -8
- package/lite/datagram.d.ts.map +1 -1
- package/lite/datagram.js +144 -10
- package/lite/datagram.js.map +1 -1
- package/lite/duration.d.ts +6 -0
- package/lite/duration.d.ts.map +1 -0
- package/lite/duration.js +14 -0
- package/lite/duration.js.map +1 -0
- package/lite/error.d.ts +9 -0
- package/lite/error.d.ts.map +1 -0
- package/lite/error.js +24 -0
- package/lite/error.js.map +1 -0
- package/lite/fills.d.ts +162 -0
- package/lite/fills.d.ts.map +1 -0
- package/lite/fills.js +486 -0
- package/lite/fills.js.map +1 -0
- package/lite/fit.d.ts +49 -0
- package/lite/fit.d.ts.map +1 -0
- package/lite/fit.js +305 -0
- package/lite/fit.js.map +1 -0
- package/lite/goaway.d.ts +2 -2
- package/lite/goaway.d.ts.map +1 -1
- package/lite/goaway.js +5 -14
- package/lite/goaway.js.map +1 -1
- package/lite/group.d.ts +67 -16
- package/lite/group.d.ts.map +1 -1
- package/lite/group.js +108 -31
- package/lite/group.js.map +1 -1
- package/lite/identity.d.ts +25 -0
- package/lite/identity.d.ts.map +1 -0
- package/lite/identity.js +79 -0
- package/lite/identity.js.map +1 -0
- package/lite/index.d.ts +14 -13
- package/lite/index.d.ts.map +1 -1
- package/lite/index.js +2 -2
- package/lite/index.js.map +1 -1
- package/lite/message.d.ts +10 -2
- package/lite/message.d.ts.map +1 -1
- package/lite/message.js +28 -45
- package/lite/message.js.map +1 -1
- package/lite/priority.d.ts +9 -2
- package/lite/priority.d.ts.map +1 -1
- package/lite/priority.js +11 -106
- package/lite/priority.js.map +1 -1
- package/lite/probe.d.ts +2 -2
- package/lite/probe.d.ts.map +1 -1
- package/lite/probe.js +9 -1
- package/lite/probe.js.map +1 -1
- package/lite/publisher.d.ts +10 -1
- package/lite/publisher.d.ts.map +1 -1
- package/lite/publisher.js +2548 -438
- package/lite/publisher.js.map +1 -1
- package/lite/routed.d.ts +59 -0
- package/lite/routed.d.ts.map +1 -0
- package/lite/routed.js +564 -0
- package/lite/routed.js.map +1 -0
- package/lite/session.d.ts +2 -28
- package/lite/session.d.ts.map +1 -1
- package/lite/session.js +0 -100
- package/lite/session.js.map +1 -1
- package/lite/setup.d.ts +32 -5
- package/lite/setup.d.ts.map +1 -1
- package/lite/setup.js +95 -22
- package/lite/setup.js.map +1 -1
- package/lite/stream.d.ts +5 -11
- package/lite/stream.d.ts.map +1 -1
- package/lite/stream.js +5 -2
- package/lite/stream.js.map +1 -1
- package/lite/subscribe.d.ts +478 -78
- package/lite/subscribe.d.ts.map +1 -1
- package/lite/subscribe.js +1373 -143
- package/lite/subscribe.js.map +1 -1
- package/lite/subscriber.d.ts +7 -44
- package/lite/subscriber.d.ts.map +1 -1
- package/lite/subscriber.js +3290 -516
- package/lite/subscriber.js.map +1 -1
- package/lite/track.d.ts +27 -12
- package/lite/track.d.ts.map +1 -1
- package/lite/track.js +116 -38
- package/lite/track.js.map +1 -1
- package/lite/tracks.d.ts +55 -0
- package/lite/tracks.d.ts.map +1 -0
- package/lite/tracks.js +114 -0
- package/lite/tracks.js.map +1 -0
- package/lite/version.d.ts +132 -24
- package/lite/version.d.ts.map +1 -1
- package/lite/version.js +378 -34
- package/lite/version.js.map +1 -1
- package/meta.d.ts +77 -0
- package/meta.d.ts.map +1 -0
- package/meta.js +130 -0
- package/meta.js.map +1 -0
- package/meta_api.d.ts +7 -0
- package/meta_api.d.ts.map +1 -0
- package/meta_api.js +7 -0
- package/meta_api.js.map +1 -0
- package/mint.d.ts +28 -0
- package/mint.d.ts.map +1 -0
- package/mint.js +66 -0
- package/mint.js.map +1 -0
- package/open.d.ts +63 -0
- package/open.d.ts.map +1 -0
- package/open.js +250 -0
- package/open.js.map +1 -0
- package/origin.d.ts +394 -142
- package/origin.d.ts.map +1 -1
- package/origin.js +2533 -687
- package/origin.js.map +1 -1
- package/package.json +8 -13
- package/path.d.ts +51 -51
- package/path.d.ts.map +1 -1
- package/path.js +210 -58
- package/path.js.map +1 -1
- package/payload.d.ts +33 -0
- package/payload.d.ts.map +1 -0
- package/payload.js +65 -0
- package/payload.js.map +1 -0
- package/prefix.d.ts +152 -0
- package/prefix.d.ts.map +1 -0
- package/prefix.js +349 -0
- package/prefix.js.map +1 -0
- package/priority.d.ts +8 -0
- package/priority.d.ts.map +1 -0
- package/priority.js +185 -0
- package/priority.js.map +1 -0
- package/queue.d.ts +2 -0
- package/queue.d.ts.map +1 -0
- package/queue.js +46 -0
- package/queue.js.map +1 -0
- package/ranges.d.ts +36 -0
- package/ranges.d.ts.map +1 -0
- package/ranges.js +312 -0
- package/ranges.js.map +1 -0
- package/rescale.d.ts +24 -0
- package/rescale.d.ts.map +1 -0
- package/rescale.js +39 -0
- package/rescale.js.map +1 -0
- package/resume.d.ts +55 -0
- package/resume.d.ts.map +1 -0
- package/resume.js +4173 -0
- package/resume.js.map +1 -0
- package/resume.test-util.d.ts +2 -0
- package/resume.test-util.d.ts.map +1 -0
- package/resume.test-util.js +25 -0
- package/resume.test-util.js.map +1 -0
- package/skips.d.ts +48 -0
- package/skips.d.ts.map +1 -0
- package/skips.js +182 -0
- package/skips.js.map +1 -0
- package/stream.d.ts +78 -40
- package/stream.d.ts.map +1 -1
- package/stream.js +236 -93
- package/stream.js.map +1 -1
- package/subscription.test-util.d.ts +2 -0
- package/subscription.test-util.d.ts.map +1 -0
- package/subscription.test-util.js +49 -0
- package/subscription.test-util.js.map +1 -0
- package/tail.d.ts +23 -14
- package/tail.d.ts.map +1 -1
- package/tail.js +224 -98
- package/tail.js.map +1 -1
- package/time.d.ts +41 -102
- package/time.d.ts.map +1 -1
- package/time.js +129 -92
- package/time.js.map +1 -1
- package/timed.d.ts +21 -0
- package/timed.d.ts.map +1 -0
- package/timed.js +2 -0
- package/timed.js.map +1 -0
- package/track.d.ts +578 -246
- package/track.d.ts.map +1 -1
- package/track.js +7306 -772
- package/track.js.map +1 -1
- package/track_api.d.ts +7 -0
- package/track_api.d.ts.map +1 -0
- package/track_api.js +7 -0
- package/track_api.js.map +1 -0
- package/util/abort.d.ts +1 -0
- package/util/abort.d.ts.map +1 -1
- package/util/abort.js +23 -2
- package/util/abort.js.map +1 -1
- package/util/announce.d.ts +4 -0
- package/util/announce.d.ts.map +1 -0
- package/util/announce.js +11 -0
- package/util/announce.js.map +1 -0
- package/util/bigint.d.ts +3 -0
- package/util/bigint.d.ts.map +1 -0
- package/util/bigint.js +8 -0
- package/util/bigint.js.map +1 -0
- package/util/change.d.ts +12 -0
- package/util/change.d.ts.map +1 -0
- package/util/change.js +18 -0
- package/util/change.js.map +1 -0
- package/util/deadline.d.ts +2 -0
- package/util/deadline.d.ts.map +1 -0
- package/util/deadline.js +108 -0
- package/util/deadline.js.map +1 -0
- package/util/decode_error.d.ts +3 -0
- package/util/decode_error.d.ts.map +1 -0
- package/util/decode_error.js +11 -0
- package/util/decode_error.js.map +1 -0
- package/util/demand.d.ts +8 -0
- package/util/demand.d.ts.map +1 -0
- package/util/demand.js +24 -0
- package/util/demand.js.map +1 -0
- package/util/given_up.d.ts +2 -0
- package/util/given_up.d.ts.map +1 -0
- package/util/given_up.js +101 -0
- package/util/given_up.js.map +1 -0
- package/util/hex.d.ts +6 -0
- package/util/hex.d.ts.map +1 -1
- package/util/hex.js +19 -5
- package/util/hex.js.map +1 -1
- package/util/key.d.ts +15 -0
- package/util/key.d.ts.map +1 -0
- package/util/key.js +38 -0
- package/util/key.js.map +1 -0
- package/util/limits.d.ts +2 -0
- package/util/limits.d.ts.map +1 -0
- package/util/limits.js +76 -0
- package/util/limits.js.map +1 -0
- package/util/observed.d.ts +23 -0
- package/util/observed.d.ts.map +1 -0
- package/util/observed.js +122 -0
- package/util/observed.js.map +1 -0
- package/util/sorted.d.ts +2 -0
- package/util/sorted.d.ts.map +1 -0
- package/util/sorted.js +149 -0
- package/util/sorted.js.map +1 -0
- package/util/timeout.d.ts +2 -1
- package/util/timeout.d.ts.map +1 -1
- package/util/timeout.js +13 -10
- package/util/timeout.js.map +1 -1
- package/util/timer.d.ts +2 -0
- package/util/timer.d.ts.map +1 -0
- package/util/timer.js +19 -0
- package/util/timer.js.map +1 -0
- package/util/u64.js +0 -1
- package/util/utf8.d.ts +2 -0
- package/util/utf8.d.ts.map +1 -1
- package/util/utf8.js +7 -2
- package/util/utf8.js.map +1 -1
- package/util/varint.d.ts.map +1 -1
- package/util/varint.js +8 -2
- package/util/varint.js.map +1 -1
- package/util/watch.d.ts +8 -0
- package/util/watch.d.ts.map +1 -0
- package/util/watch.js +38 -0
- package/util/watch.js.map +1 -0
- package/util/yield.d.ts +2 -0
- package/util/yield.d.ts.map +1 -0
- package/util/yield.js +31 -0
- package/util/yield.js.map +1 -0
- package/varint.d.ts +0 -29
- package/varint.d.ts.map +1 -1
- package/varint.js +7 -29
- package/varint.js.map +1 -1
- package/varint_api.d.ts +7 -0
- package/varint_api.d.ts.map +1 -0
- package/varint_api.js +7 -0
- package/varint_api.js.map +1 -0
- package/version.d.ts +2 -0
- package/version.d.ts.map +1 -0
- package/version.js +4 -0
- package/version.js.map +1 -0
- package/window.d.ts +570 -0
- package/window.d.ts.map +1 -0
- package/window.js +1677 -0
- package/window.js.map +1 -0
- package/wire.d.ts +150 -35
- package/wire.d.ts.map +1 -1
- package/wire.js +27 -1
- package/wire.js.map +1 -1
- package/connection/established.d.ts +0 -53
- package/connection/established.d.ts.map +0 -1
- package/connection/established.js +0 -3
- package/connection/established.js.map +0 -1
- package/ietf/adapter.d.ts +0 -75
- package/ietf/adapter.d.ts.map +0 -1
- package/ietf/adapter.js +0 -700
- package/ietf/adapter.js.map +0 -1
- package/lite/datagram_stream.d.ts +0 -8
- package/lite/datagram_stream.d.ts.map +0 -1
- package/lite/datagram_stream.js +0 -44
- package/lite/datagram_stream.js.map +0 -1
- package/lite/fetch.d.ts +0 -28
- package/lite/fetch.d.ts.map +0 -1
- package/lite/fetch.js +0 -79
- package/lite/fetch.js.map +0 -1
- package/util/log.d.ts +0 -5
- package/util/log.d.ts.map +0 -1
- package/util/log.js +0 -17
- package/util/log.js.map +0 -1
- package/zod.d.ts +0 -13
- package/zod.d.ts.map +0 -1
- package/zod.js +0 -19
- package/zod.js.map +0 -1
package/track.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"track.js","sourceRoot":"","sources":["../src/track.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAA8C,IAAI,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAExF,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AACzD,OAAO,EAA8C,QAAQ,IAAI,aAAa,EAAE,MAAM,YAAY,CAAC;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P,OAAO,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;IAC5C,CAAC;IAED;;;;;;;;OAQG;IACH,YAAY;QACX,OAAO,QAAQ,CAAC,YAAY,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;IAChD,CAAC;CACD","sourcesContent":["/**\n * Track role handles: a live stream of groups (and best-effort datagrams) within a broadcast.\n *\n * @module\n */\nimport { type Dispose, type GetPromise, type Getter, Once, Signal } from \"@moq/signals\";\nimport type { Datagram } from \"./datagram.ts\";\nimport { GroupTooLarge, TooFarBehind } from \"./error.ts\";\nimport { type Frame, type Consumer as GroupConsumer, Producer as GroupProducer } from \"./group.ts\";\nimport {\n\tgroupBounds,\n\thooks,\n\ttype Recv,\n\ttype TrackRequestOptions,\n\ttype TrackSequence,\n\ttype TrackSequences,\n} from \"./internal.ts\";\nimport { Milli, Timescale, type Timestamp } from \"./time.ts\";\nimport { type Broadcast as BroadcastWire, registerTrackConsumer } from \"./wire.ts\";\n\nexport type { Datagram } from \"./datagram.ts\";\n\n// The largest delay setTimeout keeps: anything more truncates to a signed 32-bit int\n// and fires right away.\nconst MAX_TIMEOUT_MS = 2 ** 31 - 1;\n\n// The cache scans at most this many times per retention window.\nconst PRUNE_SLICES = 8;\n\n/** Default {@link Info.maxAge} window (milliseconds) when the publisher does not set one. */\nexport const DEFAULT_MAX_AGE_MS = Milli(5000);\n\n// The higher-first midpoint. IETF flips priority (lower first), so this goes out as 128, the\n// draft's usual publisher priority, while moq-lite carries 127 as written: one urgency on both.\nconst DEFAULT_PRIORITY = 127;\n\n/** Maximum buffered datagrams per subscriber; mirrors Rust's bounded send buffer. */\nconst MAX_DATAGRAMS = 64;\n\n/**\n * Sanity cap on a datagram payload: the QUIC DATAGRAM frame ceiling. The real limit is\n * per-hop (the negotiated transport datagram size minus a small header) and oversize\n * datagrams are dropped there; a payload above this cap could never fit anywhere.\n */\nconst MAX_DATAGRAM_BYTES = 65535;\n\n/** A position within a track: a group's sequence and a frame's index inside it. */\nexport interface Location {\n\t/** The group's sequence number within the track. */\n\tgroup: number;\n\t/** The frame's index within that group. */\n\tframe: number;\n}\n\n/**\n * A track's immutable publisher properties, fixed for the lifetime of the track.\n *\n * A producer declares these once (via {@link Request.accept} or\n * {@link Producer.accept}); a consumer awaits them via {@link Subscriber.info}\n * (resolved from the wire TRACK_INFO on lite-05+). They map 1:1 onto TRACK_INFO.\n */\nexport interface Info {\n\t/**\n\t * Units per second for this track's frame timestamps (reported in TRACK_INFO on\n\t * Lite05+). Defaults to milliseconds; set it finer (e.g. {@link Timescale.MICRO})\n\t * for media that needs sub-millisecond timing.\n\t */\n\ttimescale: Timescale;\n\t/**\n\t * Publisher Max Age: the maximum age (milliseconds) of a non-latest group before\n\t * the publisher evicts it. Reported in TRACK_INFO (Lite05+) so relays re-serve with the\n\t * same bound. The publisher-side half of the budget a subscriber sets for itself.\n\t * Rounded up to a whole millisecond by {@link infoDefaults}, which refuses a negative\n\t * or non-finite value and a result past `Number.MAX_SAFE_INTEGER`.\n\t */\n\tmaxAge: Milli;\n\t/** Tie-break priority between subscriptions of equal subscriber priority (`0..=255`, higher first). Defaults to `127`. */\n\tpriority: number;\n}\n\n// Normalize a latency budget for the wire, which carries it as an unsigned varint.\n//\n// Callers derive it from measurements (a jitter estimate scaled off RTT), so a fractional\n// millisecond is expected; ceil rather than round, because a budget shortened by rounding\n// skips a group the subscriber still wants. Anything that is not a duration is refused\n// here, where the field is named, rather than deep in the encoder.\nfunction maxAgeMillis(value: Milli): Milli {\n\tif (!Number.isFinite(value) || value < 0) {\n\t\tthrow new RangeError(`maxAge must be a non-negative number of milliseconds: ${value}`);\n\t}\n\tconst millis = Math.ceil(value);\n\tif (!Number.isSafeInteger(millis)) {\n\t\tthrow new RangeError(`maxAge exceeds the safe integer millisecond range: ${value}`);\n\t}\n\treturn Milli(millis);\n}\n\nfunction priorityByte(value: number): number {\n\tif (!Number.isInteger(value) || value < 0 || value > 255) {\n\t\tthrow new RangeError(`priority must be an integer in 0..=255: ${value}`);\n\t}\n\treturn value;\n}\n\n/** Fill in any unset {@link Info} fields with their defaults. */\nexport function infoDefaults(info: Partial<Info> = {}): Info {\n\treturn {\n\t\ttimescale: Timescale(info.timescale ?? Timescale.MILLI),\n\t\tmaxAge: maxAgeMillis(info.maxAge ?? DEFAULT_MAX_AGE_MS),\n\t\tpriority: priorityByte(info.priority ?? DEFAULT_PRIORITY),\n\t};\n}\n\n/** An explicitly included or excluded group sequence. */\nexport type Bound = { included: number; excluded?: never } | { excluded: number; included?: never };\n\n/** Group limits; an omitted endpoint is unbounded. */\nexport interface Groups {\n\t/** The first group boundary. */\n\tstart?: Bound;\n\t/** The last group boundary. */\n\tend?: Bound;\n}\n\n/**\n * Per-subscription options, requested when a subscription opens and adjustable later via\n * {@link Subscriber.update}. Mirrors the Rust `Subscription`.\n */\nexport interface Subscription {\n\t/** Delivery priority relative to this session's other subscriptions (`0..=255`). Defaults to `0`. */\n\tpriority?: number;\n\t/**\n\t * Maximum age (milliseconds) of a non-latest group before it is skipped. Defaults to `0`.\n\t * Rounded up to a whole millisecond, so a value derived from a measurement is never\n\t * shortened. A negative or non-finite value, or one past `Number.MAX_SAFE_INTEGER`\n\t * after rounding, is refused.\n\t */\n\tmaxAge?: Milli;\n\t/**\n\t * The lowest group the publisher may deliver (a floor), or omit for none.\n\t *\n\t * A floor, not a request: only {@link maxAge} asks for data, and the floor bounds how\n\t * far back it may reach. Omitting it and a floor of 0 mean the same thing, and a floor\n\t * above the live edge simply waits there (a resumed subscription naming where it left\n\t * off).\n\t */\n\tgroups?: Groups;\n}\n\n// Materialize the defaults at the model boundary so every layer observes a complete\n// subscription rather than interpreting an omitted field differently.\nfunction subscriptionDefaults(subscription: Subscription = {}): Subscription {\n\tconst bounds = groupBounds(subscription.groups ?? {});\n\treturn {\n\t\tpriority: priorityByte(subscription.priority ?? 0),\n\t\tmaxAge: maxAgeMillis(subscription.maxAge ?? Milli.zero),\n\t\tgroups: {\n\t\t\tstart: subscription.groups?.start === undefined ? undefined : { included: bounds.start },\n\t\t\tend: bounds.end === undefined ? undefined : { excluded: bounds.end },\n\t\t},\n\t};\n}\n\n// Aggregate the preferences of every live subscriber, matching Rust's Subscription::poll_combined.\nfunction combineSubscriptions(states: Iterable<TrackState>): Subscription | undefined {\n\tlet combined: Subscription | undefined;\n\tfor (const state of states) {\n\t\tconst subscription = state.update.peek();\n\t\tif (!subscription) continue;\n\t\tif (!combined) {\n\t\t\tcombined = { ...subscription };\n\t\t\tcontinue;\n\t\t}\n\n\t\tcombined.priority = Math.max(combined.priority ?? 0, subscription.priority ?? 0);\n\t\tcombined.maxAge = Milli(Math.max(combined.maxAge ?? Milli.zero, subscription.maxAge ?? Milli.zero));\n\n\t\t// A floor only restricts, so a subscriber without one clears the aggregate:\n\t\t// its budget may reach below any floor the others set.\n\t\tconst a = groupBounds(combined.groups ?? {});\n\t\tconst b = groupBounds(subscription.groups ?? {});\n\t\tcombined.groups = {\n\t\t\tstart:\n\t\t\t\tcombined.groups?.start === undefined || subscription.groups?.start === undefined\n\t\t\t\t\t? undefined\n\t\t\t\t\t: { included: Math.min(a.start, b.start) },\n\t\t\tend: a.end === undefined || b.end === undefined ? undefined : { excluded: Math.max(a.end, b.end) },\n\t\t};\n\t}\n\treturn combined;\n}\n\n/**\n * A request for a track the peer wants, delivered to the publishing wire layer.\n *\n * Created internally by the broadcast when a subscription (or info lookup) needs a track\n * served; answer it with {@link accept} or {@link reject}.\n *\n * @public\n */\nexport class Request {\n\t/** The requested track name. */\n\treadonly name: string;\n\n\t#producer: Producer;\n\t#sequences: TrackSequences;\n\t#pending: Set<Request>;\n\n\tprivate constructor(options: TrackRequestOptions) {\n\t\tthis.name = options.name;\n\t\tthis.#producer = options.producer;\n\t\tthis.#sequences = options.sequences;\n\t\tthis.#pending = options.pending;\n\t\tthis.#pending.add(this);\n\t}\n\n\tstatic {\n\t\thooks.makeRequest = (options) => new Request(options);\n\t\thooks.pendingTrackProducer = (request) => request.#producer;\n\t}\n\n\t/** The aggregate subscription requested for this track. */\n\tget subscription(): Readonly<Subscription> {\n\t\treturn this.#producer.subscription.peek() ?? subscriptionDefaults();\n\t}\n\n\t/** The subscriber's priority for this track. */\n\tget priority(): number {\n\t\treturn this.subscription.priority ?? 0;\n\t}\n\n\t/** Accept the request, committing the track's immutable {@link Info}. */\n\taccept(info: Partial<Info> = {}): Producer {\n\t\tthis.#pending.delete(this);\n\t\tbindProducer(this.name, this.#producer, this.#sequences);\n\t\treturn this.#producer.accept(info);\n\t}\n\n\t/** Reject the request, closing the track optionally with an error. */\n\treject(err?: Error): void {\n\t\tthis.#pending.delete(this);\n\t\tthis.#producer.close(err);\n\t}\n}\n\n/** Options for {@link Consumer.fetchGroup}. */\nexport interface FetchGroupOptions {\n\t/** Delivery priority for the fetch stream. Defaults to `0`. */\n\tpriority?: number;\n\n\t/**\n\t * Abandons this fetch, rejecting with the signal's reason. Concurrent fetches of the same\n\t * group share one stream, cancelled only once every caller has left. An already-aborted\n\t * signal rejects before anything is sent, and aborting after the group resolves has no\n\t * effect; close the group instead.\n\t */\n\tsignal?: AbortSignal;\n}\n\n/**\n * A lazy handle to a track on a consumed broadcast.\n *\n * @public\n */\nexport class Consumer {\n\t/** The track name. */\n\treadonly name: string;\n\n\t#broadcast: BroadcastWire;\n\n\tprivate constructor(name: string, broadcast: BroadcastWire) {\n\t\tthis.name = name;\n\t\tthis.#broadcast = broadcast;\n\t}\n\n\tstatic {\n\t\tregisterTrackConsumer((name, broadcast) => new Consumer(name, broadcast));\n\t}\n\n\t/**\n\t * Open a live subscription to the track.\n\t *\n\t * The cursor starts at the group the subscription named (its floor), or 0.\n\t * {@link Subscription.maxAge} is what asks for data: delivery skips everything above\n\t * the floor that the budget convicts, so the default budget of zero delivers only the\n\t * latest group and a larger one reaches back over what it can still use.\n\t */\n\tsubscribe(options?: Subscription): Subscriber {\n\t\treturn this.#broadcast.subscribe(this.name, options);\n\t}\n\n\t/** Fetch the track's immutable publisher properties without subscribing. */\n\tinfo(): Promise<Info> {\n\t\treturn this.#broadcast.resolveTrackInfo(this.name);\n\t}\n\n\t/** Fetch a single group by sequence without holding a live subscription. */\n\tfetchGroup(sequence: number, options?: FetchGroupOptions): Promise<GroupConsumer> {\n\t\treturn this.#broadcast.fetchGroup(this.name, sequence, options);\n\t}\n}\n\n// The index of the first timeline group at or after `sequence`.\nfunction timelineIndex(timeline: GroupConsumer[], sequence: number): number {\n\tlet lo = 0;\n\tlet hi = timeline.length;\n\twhile (lo < hi) {\n\t\tconst mid = (lo + hi) >>> 1;\n\t\tif (timeline[mid].sequence < sequence) lo = mid + 1;\n\t\telse hi = mid;\n\t}\n\treturn lo;\n}\n\n// Add a group to a sorted timeline, replacing any group with the same sequence. Groups\n// usually arrive in order, so the append is checked first.\nfunction timelineInsert(timeline: GroupConsumer[], group: GroupConsumer): void {\n\tconst last = timeline.at(-1);\n\tif (!last || last.sequence < group.sequence) {\n\t\ttimeline.push(group);\n\t\treturn;\n\t}\n\tconst index = timelineIndex(timeline, group.sequence);\n\tif (timeline[index]?.sequence === group.sequence) timeline[index] = group;\n\telse timeline.splice(index, 0, group);\n}\n\n// The shared state behind a Producer / Subscriber pair. Package-internal\n// wiring, unexported so it never appears in the published type declarations.\nclass TrackState {\n\t/** The producer fanning into this sink, so a subscriber can mint a sibling of itself. */\n\tproducer?: Producer;\n\tgroups = new Signal<GroupConsumer[]>([]);\n\t// Every group still in the producer's replay cache, including groups this\n\t// subscriber already consumed, sorted by sequence. Drift anchors have the same\n\t// lifetime as content. Sorted so the latency guard, evaluated per group and per\n\t// arrival, searches it instead of scanning the whole retained window.\n\ttimeline: GroupConsumer[] = [];\n\t// First timestamps mutate group state rather than track state, so held groups\n\t// watch this revision as well as arrivals when enforcing latency after handoff.\n\ttimelineChanged = new Signal(0);\n\t/** Best-effort datagram channel, parallel to {@link groups}; a bounded send buffer per subscriber. */\n\tdatagrams = new Signal<Datagram[]>([]);\n\tlatest?: number;\n\t/**\n\t * The exclusive final boundary, declared by {@link Producer.finishAt} or stamped by a\n\t * clean close as one past the highest sequence produced. Groups and datagrams share the\n\t * namespace, so this can exceed `latest + 1` (which only tracks groups). Mirrors the\n\t * Rust `final_sequence`.\n\t */\n\tfinal = new Signal<number | undefined>(undefined);\n\tclosed = new Once<Error | null>();\n\tupdate: Signal<Subscription | undefined>;\n\t/** Resolved once the producer commits the immutable properties. */\n\tinfo = new Signal<Info | undefined>(undefined);\n\n\tconstructor(subscription?: Subscription) {\n\t\tthis.update = new Signal(subscription === undefined ? undefined : subscriptionDefaults(subscription));\n\t}\n}\n\n// Settle a track state's closed Once. Idempotent: Once.set throws on a second settle, and a\n// Producer closing its sinks races the Subscriber closing itself (the sink is only removed from\n// #sinks a microtask later, via the closed subscription below).\nfunction closeTrackState(state: TrackState, abort?: Error): boolean {\n\tif (state.closed.peek() !== undefined) return false;\n\tstate.closed.set(abort ?? null);\n\treturn true;\n}\n\n// Resolve the track's immutable publisher properties, or reject if it closes first.\n// On a producer this resolves once info is committed (at accept time); on a consumer\n// once the wire layer commits the TRACK_INFO it received (lite-05+) or defaults (older\n// drafts), so awaiting it never yields a placeholder.\nasync function resolveInfo(state: TrackState): Promise<Info> {\n\tfor (;;) {\n\t\tconst info = state.info.peek();\n\t\tif (info) return info;\n\n\t\tconst closed = state.closed.peek();\n\t\tif (closed instanceof Error) throw closed;\n\t\tif (closed !== undefined) throw new Error(\"track closed before info was known\");\n\n\t\tawait Signal.race(state.info, state.closed);\n\t}\n}\n\n// A source group retained in the producer cache, with the mirror handed to each sink\n// so eviction can drop them together.\ntype CachedGroup = { group: GroupProducer; mirrors: Map<TrackState, GroupConsumer> };\n\nfunction bindProducer(name: string, producer: Producer, sequences: TrackSequences): void {\n\tlet shared = sequences.get(name);\n\tif (!shared) {\n\t\tshared = { next: 0 };\n\t\tsequences.set(name, shared);\n\t}\n\tbindProducerSequence(producer, shared);\n}\n\nlet bindProducerSequence: (producer: Producer, sequence: TrackSequence) => void;\n\n// The sequence-order cursor lives inside `Subscriber` (it shares the group buffer and the\n// drift anchor with the arrival cursor), so `Ordered` reaches it through this bridge,\n// assigned in the class's static block.\nlet makeOrdered: (subscriber: Subscriber) => Ordered;\nlet ordered_: {\n\tnextGroup(subscriber: Subscriber): Promise<GroupConsumer | undefined>;\n\treadFrame(subscriber: Subscriber): Promise<({ group: number; frame: number } & Frame) | undefined>;\n\treadString(subscriber: Subscriber): Promise<string | undefined>;\n\treadJson(subscriber: Subscriber): Promise<unknown | undefined>;\n\treadBool(subscriber: Subscriber): Promise<boolean | undefined>;\n\trecvDatagram(subscriber: Subscriber): Promise<Datagram | undefined>;\n};\n\n// Constructs a Subscriber from within this module without exposing a public\n// constructor that would leak the unexported TrackState. Assigned in the class's\n// static block.\nlet makeSubscriber: (name: string, state: TrackState) => Subscriber;\n\n/**\n * The write side of a track, mirroring the Rust `Producer`.\n *\n * A producer is a fan-out source: every {@link subscribe} (including each wire\n * subscription the publisher serves from it) gets an independent\n * {@link Subscriber} that receives a full copy of the groups, each with its own\n * read cursor. Groups are mirrored into every live subscriber and retained for the\n * track's `maxAge` window so a late subscriber replays the recent groups.\n *\n * Obtained from {@link Request.accept} (the wire asks the application for a track to\n * serve) or constructed directly for an in-process track.\n */\nexport class Producer {\n\t/** The track name. */\n\treadonly name: string;\n\n\t// The producer's own state is the source of truth (info/closed); subscribers\n\t// read mirrored sinks, never this state directly.\n\t#state = new TrackState();\n\t#sequence: TrackSequence = { next: 0 };\n\t// One past the highest group or datagram this producer received, like the Rust\n\t// `max_sequence`. The shared counter above can run ahead of it: sibling producers of\n\t// the same track advance it too.\n\t#received = 0;\n\n\t// Recently written source groups, retained for replay to late subscribers and\n\t// pruned once idle for longer than the cache window. Each entry tracks the mirror\n\t// it handed to every sink so eviction can drop them too: otherwise a slow consumer\n\t// that never reads would pin old groups (and their frame bytes) forever.\n\t#cache: CachedGroup[] = [];\n\t// The same entries by sequence, so a write finds a duplicate without a scan.\n\t#cached = new Map<number, CachedGroup>();\n\t// When the cache was last scanned. See #prune.\n\t#pruned = Number.NEGATIVE_INFINITY;\n\n\t// Wakeup for the next entry due to age out. Writes settle retention inline, but a\n\t// publisher that stalls stops writing, so without this an abandoned group (and any\n\t// reader parked in it) would wait for a write that never comes.\n\t#pruneTimer?: ReturnType<typeof setTimeout>;\n\t#pruneTimerAt = 0;\n\n\t// One independent downstream state per live subscriber.\n\t#sinks = new Set<TrackState>();\n\n\t// Whether any subscriber is currently attached. Exposed as {@link used}; the consumer wire\n\t// watches it to tear down an idle upstream, and a publisher can watch it for on-demand capture.\n\t#used = new Signal<boolean>(false);\n\n\tconstructor(name: string) {\n\t\tthis.name = name;\n\t}\n\n\tstatic {\n\t\tbindProducerSequence = (producer, sequence) => {\n\t\t\tproducer.#sequence = sequence;\n\t\t};\n\t}\n\n\t/**\n\t * Resolve this track's immutable publisher properties, committed at accept time.\n\t * Rejects if the track is closed before the properties are known.\n\t */\n\tinfo(): Promise<Info> {\n\t\treturn resolveInfo(this.#state);\n\t}\n\n\t/**\n\t * Publisher priority from the committed {@link Info}, or the default before {@link accept}.\n\t *\n\t * Higher is served first. Hang publishers set this from `Catalog.PRIORITY` so\n\t * audio outranks video on the wire and in the bandwidth allocator.\n\t */\n\tget priority(): number {\n\t\treturn this.#state.info.peek()?.priority ?? DEFAULT_PRIORITY;\n\t}\n\n\t/**\n\t * Settles once the track closes: `null` on a clean close, or the abort {@link Error}.\n\t * Peek it synchronously (`undefined` while open), observe it reactively, or `await` it.\n\t */\n\tget closed(): GetPromise<Error | null> {\n\t\treturn this.#state.closed;\n\t}\n\n\t/**\n\t * The aggregate subscription across live subscribers, or `undefined` when there are none.\n\t * The wire layer watches this to emit SUBSCRIBE_UPDATE.\n\t */\n\tget subscription(): Getter<Subscription | undefined> {\n\t\treturn this.#state.update;\n\t}\n\n\t/** Commit the immutable publisher properties, resolving {@link info}. Returns `this`. */\n\taccept(info: Partial<Info> = {}): this {\n\t\tif (this.#state.closed.peek() !== undefined) return this;\n\t\tconst resolved = infoDefaults(info);\n\t\tthis.#state.info.set(resolved);\n\t\t// Propagate to any sink handed out before accept (the on-demand path).\n\t\tfor (const sink of this.#sinks) sink.info.set(resolved);\n\t\tthis.#updateSubscription();\n\t\treturn this;\n\t}\n\n\t/**\n\t * An independent {@link Subscriber} reading this track's groups.\n\t *\n\t * Its cursor starts at the group the subscription named (its floor), or 0.\n\t * {@link Subscription.maxAge} is what asks for data: delivery skips everything above\n\t * the floor that the budget convicts, so the default budget of zero delivers only the\n\t * latest group and a larger one reaches back over what it can still use.\n\t */\n\tsubscribe(options: Subscription = {}): Subscriber {\n\t\tconst sink = new TrackState(options);\n\t\tthis.#addSink(sink);\n\t\treturn makeSubscriber(this.name, sink);\n\t}\n\n\t/**\n\t * Whether the track currently has any subscribers.\n\t *\n\t * Watch it (`effect.get` / `.peek()`) to drive on-demand work: a publisher can start and stop\n\t * capture with demand, and the consumer wire watches it to tear an idle upstream subscription\n\t * down instead of downloading to nobody. Pairs with {@link unused}. Mirrors the Rust `Demand`.\n\t */\n\tget used(): Getter<boolean> {\n\t\treturn this.#used;\n\t}\n\n\t/** Resolves once the track has no subscribers (or has closed). Await it to react to demand ending. */\n\tasync unused(): Promise<void> {\n\t\twhile (this.#used.peek() && this.#state.closed.peek() === undefined) {\n\t\t\tawait Signal.race(this.#used, this.#state.closed);\n\t\t}\n\t}\n\n\t// Register a downstream sink: seed its info, replay the retained window, and (while\n\t// the track is open) mirror future groups into it. A late subscriber to a closed\n\t// track still drains the buffered groups before seeing the end.\n\t#addSink(sink: TrackState): void {\n\t\tsink.producer = this;\n\t\tconst info = this.#state.info.peek();\n\t\tif (info) sink.info.set(info);\n\n\t\tconst closed = this.#state.closed.peek();\n\t\tif (closed === undefined) {\n\t\t\tthis.#sinks.add(sink);\n\t\t\tthis.#used.set(true);\n\n\t\t\t// Forward subscription updates from the sink's Subscriber to the producer's own\n\t\t\t// state, which the wire layer (or the serving application) watches.\n\t\t\tconst forward = sink.update.subscribe(() => this.#updateSubscription());\n\t\t\tthis.#updateSubscription();\n\n\t\t\t// Drop the sink once its consumer goes away, closing its mirrors so source\n\t\t\t// groups stop teeing into them, so a long-lived producer doesn't leak. This\n\t\t\t// covers mirrors already handed out via recvGroup (no longer in sink.groups)\n\t\t\t// by closing them through the cache's per-sink tracking.\n\t\t\tconst dispose = sink.closed.subscribe((c) => {\n\t\t\t\tif (c === undefined) return;\n\t\t\t\tconst abort = c instanceof Error ? c : undefined;\n\t\t\t\tforward();\n\t\t\t\tthis.#sinks.delete(sink);\n\t\t\t\tthis.#updateSubscription();\n\t\t\t\t// Update demand: once the last subscriber leaves, the consumer wire (watching\n\t\t\t\t// {@link unused}) tears the upstream down instead of downloading to nobody.\n\t\t\t\tthis.#used.set(this.#sinks.size > 0);\n\t\t\t\t// The producer closing every sink keeps its mirrors tracked, so what the sink\n\t\t\t\t// still buffers ages out with the cache instead of staying pinned.\n\t\t\t\tif (this.#state.closed.peek() !== undefined) {\n\t\t\t\t\tdispose();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tfor (const entry of this.#cache) {\n\t\t\t\t\tconst mirror = entry.mirrors.get(sink);\n\t\t\t\t\tif (mirror) {\n\t\t\t\t\t\tmirror.close(abort);\n\t\t\t\t\t\tentry.mirrors.delete(sink);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfor (const group of sink.groups.peek()) group.close(abort);\n\t\t\t\tdispose();\n\t\t\t});\n\t\t}\n\n\t\tthis.#prune();\n\t\tfor (const entry of this.#cache) this.#mirror(entry, sink);\n\n\t\tsink.final.set(this.#state.final.peek());\n\t\tif (closed !== undefined) closeTrackState(sink, closed instanceof Error ? closed : undefined);\n\t}\n\n\t// Recompute from every live sink because an update or close can narrow as well as widen\n\t// the aggregate. The wire layer observes this signal and emits SUBSCRIBE_UPDATE.\n\t#updateSubscription(): void {\n\t\tconst combined = combineSubscriptions(this.#sinks);\n\t\tconst retained = this.#state.info.peek()?.maxAge;\n\t\tif (combined && retained !== undefined) combined.maxAge = Milli.min(combined.maxAge ?? Milli.zero, retained);\n\t\tthis.#state.update.set(combined);\n\t}\n\n\t// Mirror a cached source group into a sink. The mirror fills synchronously as the\n\t// source is written and keeps its own read cursor; frame bytes are shared by\n\t// reference. Tracked on the entry so eviction can drop it from the sink.\n\t#mirror(entry: CachedGroup, sink: TrackState): void {\n\t\tconst dst = entry.group.mirror();\n\t\tentry.mirrors.set(sink, dst);\n\t\ttimelineInsert(sink.timeline, dst);\n\t\tvoid dst.readable().then(() => sink.timelineChanged.update((revision) => revision + 1));\n\t\tsink.latest = Math.max(sink.latest ?? 0, dst.sequence);\n\t\tsink.groups.mutate((groups) => {\n\t\t\tgroups.push(dst);\n\t\t\tgroups.sort((a, b) => a.sequence - b.sequence);\n\t\t});\n\t}\n\n\t// Drop a cached group's mirror from every sink so no consumer can pin it.\n\t#evict(entry: CachedGroup): void {\n\t\t// Reclaiming a group the publisher never closed ends it as the gap it is, before\n\t\t// the mirrors below would otherwise report a clean finish to a reader that had\n\t\t// drained it. The usual case, an already-closed group aging out, keeps its own\n\t\t// terminal state.\n\t\tif (!entry.group.isClosed) entry.group.close(new TooFarBehind());\n\t\tconst mirrors = [...entry.mirrors.values()];\n\t\tfor (const mirror of mirrors) hooks.evictGroup(mirror);\n\t\tthis.#unlink(entry);\n\t\tfor (const mirror of mirrors) mirror.close();\n\t}\n\n\t// Take a cached group's mirrors out of every sink, so a subscriber can no longer\n\t// receive them. A reader already holding one keeps it as is.\n\t#unlink(entry: CachedGroup): void {\n\t\tfor (const [sink, mirror] of entry.mirrors) {\n\t\t\tsink.groups.mutate((groups) => {\n\t\t\t\tconst i = groups.indexOf(mirror);\n\t\t\t\tif (i >= 0) groups.splice(i, 1);\n\t\t\t});\n\t\t\tconst index = timelineIndex(sink.timeline, mirror.sequence);\n\t\t\tif (sink.timeline[index] === mirror) sink.timeline.splice(index, 1);\n\t\t}\n\t\tentry.mirrors.clear();\n\t}\n\n\t// Take a cached group out of the cache lookups.\n\t#uncache(entry: CachedGroup): void {\n\t\tthis.#cache.splice(this.#cache.indexOf(entry), 1);\n\t\tthis.#cached.delete(entry.group.sequence);\n\t}\n\n\t// The one group retention never takes: the newest, while it is still open. That is\n\t// the live edge a publisher is appending to, and a track may legitimately keep it\n\t// open across a long quiet stretch (a catalog snapshot, a JSON stream). Every other\n\t// open group is an abandoned one, and ages out like a closed one.\n\t#liveEdge(): GroupProducer | undefined {\n\t\tconst latest = this.#cache.at(-1)?.group;\n\t\treturn latest?.closed.peek() === undefined ? latest : undefined;\n\t}\n\n\t// Evict cached groups idle for longer than the cache window. Idle means nothing\n\t// written, so an abandoned open group ages out instead of pinning its buffer (and\n\t// any reader parked in it) forever.\n\t//\n\t// Scans at most once per slice of the window, so a track publishing faster than that\n\t// evicts a run of groups per scan instead of scanning everything to evict one per\n\t// write. A group can outlive the window by up to one slice.\n\t#prune(): void {\n\t\tconst maxAgeMs = this.#state.info.peek()?.maxAge ?? DEFAULT_MAX_AGE_MS;\n\t\tconst now = performance.now();\n\t\tconst slice = maxAgeMs / PRUNE_SLICES;\n\t\tif (now < this.#pruned + slice) {\n\t\t\t// Something may have come due since the last scan, so make sure another follows.\n\t\t\tthis.#wake(this.#pruned + slice);\n\t\t\treturn;\n\t\t}\n\t\tthis.#pruned = now;\n\n\t\tconst cutoff = now - maxAgeMs;\n\t\tconst live = this.#liveEdge();\n\n\t\tlet oldest: number | undefined;\n\t\tconst retained: CachedGroup[] = [];\n\t\tfor (const entry of this.#cache) {\n\t\t\tif (entry.group === live) {\n\t\t\t\tretained.push(entry);\n\t\t\t} else if (entry.group.activity >= cutoff) {\n\t\t\t\tretained.push(entry);\n\t\t\t\tif (oldest === undefined || entry.group.activity < oldest) oldest = entry.group.activity;\n\t\t\t} else {\n\t\t\t\tthis.#cached.delete(entry.group.sequence);\n\t\t\t\tthis.#evict(entry);\n\t\t\t}\n\t\t}\n\t\tthis.#cache = retained;\n\n\t\t// Replace the wakeup with one for the next entry due to age out. Writes settle\n\t\t// retention inline, so this only has to cover the case no write follows. Cheap to\n\t\t// over-arm: an entry written since is retained and re-armed.\n\t\tclearTimeout(this.#pruneTimer);\n\t\tthis.#pruneTimer = undefined;\n\t\tif (oldest !== undefined) this.#wake(Math.max(oldest + maxAgeMs, now + slice));\n\t}\n\n\t// Arm the prune wakeup for `at`, unless one is already armed sooner. Kept after a close,\n\t// until the cache empties, so what the track left behind still ages out.\n\t#wake(at: number): void {\n\t\tif (this.#pruneTimer !== undefined && this.#pruneTimerAt <= at) return;\n\t\tclearTimeout(this.#pruneTimer);\n\n\t\t// setTimeout truncates its delay to a signed 32-bit int, so a longer window\n\t\t// would fire immediately and spin. Wake at the cap instead and re-arm: #prune\n\t\t// retains anything still fresh, so the extra wakeups are the only cost.\n\t\tconst delay = Math.min(MAX_TIMEOUT_MS, Math.max(0, at - performance.now()));\n\t\tconst timer = setTimeout(() => {\n\t\t\tthis.#pruneTimer = undefined;\n\t\t\tthis.#prune();\n\t\t}, delay);\n\t\t// A cache prune is never a reason to hold a Node/Bun process open.\n\t\t(timer as unknown as { unref?: () => void }).unref?.();\n\t\tthis.#pruneTimer = timer;\n\t\tthis.#pruneTimerAt = at;\n\t}\n\n\t// Retain a source group and fan it out to every live sink.\n\t#publish(group: GroupProducer): void {\n\t\tconst entry: CachedGroup = { group, mirrors: new Map<TrackState, GroupConsumer>() };\n\t\tthis.#cache.push(entry);\n\t\tthis.#cached.set(group.sequence, entry);\n\t\tthis.#received = Math.max(this.#received, group.sequence + 1);\n\t\tfor (const sink of this.#sinks) this.#mirror(entry, sink);\n\t\t// Give held mirrors the new live edge before pruning their timeline entry,\n\t\t// so their latency guard can preserve a terminal expiry verdict.\n\t\tthis.#prune();\n\t}\n\n\t// Refuse a write once the track is closed, or at or past its declared end.\n\t#writable(sequence: number): void {\n\t\tif (this.#state.closed.peek() !== undefined) throw new Error(\"track is closed\");\n\t\tconst final = this.#state.final.peek();\n\t\tif (final !== undefined && sequence >= final) {\n\t\t\tthrow new Error(`sequence ${sequence} is at or past the track's end ${final}`);\n\t\t}\n\t}\n\n\t/** Append a new group with the next sequence number. */\n\tappendGroup(): GroupProducer {\n\t\tconst sequence = this.#sequence;\n\t\tthis.#writable(sequence.next);\n\t\tconst group = new GroupProducer(sequence.next);\n\t\tsequence.next = group.sequence + 1;\n\t\tthis.#publish(group);\n\n\t\treturn group;\n\t}\n\n\t/**\n\t * Insert an existing group into the track.\n\t *\n\t * Throws on a sequence that is still cached: a live duplicate would fan out to every\n\t * subscriber twice. An aborted incarnation is evicted so a fresh group can serve the\n\t * sequence again. Best effort (mirrors Rust): nothing remembers a sequence whose cache\n\t * entry is already gone, so a long-evicted sequence is accepted as new.\n\t */\n\twriteGroup(group: GroupProducer) {\n\t\tthis.#writable(group.sequence);\n\n\t\tconst existing = this.#cached.get(group.sequence);\n\t\tif (existing) {\n\t\t\tif (!(existing.group.closed.peek() instanceof Error)) {\n\t\t\t\tthrow new Error(`duplicate group: sequence=${group.sequence}`);\n\t\t\t}\n\t\t\tthis.#evict(existing);\n\t\t\tthis.#uncache(existing);\n\t\t}\n\n\t\t// Only advance the shared counter upward (for appendGroup auto-increment).\n\t\tconst sequence = this.#sequence;\n\t\tif (group.sequence >= sequence.next) {\n\t\t\tsequence.next = group.sequence + 1;\n\t\t}\n\n\t\tthis.#publish(group);\n\t}\n\n\t// Fan a datagram out to every live subscriber, dropping the oldest once the ring is full.\n\t// Late subscribers do NOT replay old datagrams (best-effort, unlike the group cache).\n\t#publishDatagram(datagram: Datagram): void {\n\t\tthis.#received = Math.max(this.#received, datagram.sequence + 1);\n\t\tfor (const sink of this.#sinks) {\n\t\t\tsink.datagrams.mutate((list) => {\n\t\t\t\tif (list.length === MAX_DATAGRAMS) list.shift();\n\t\t\t\tlist.push(datagram);\n\t\t\t});\n\t\t}\n\t}\n\n\t/**\n\t * Append a datagram with the next sequence number, returning the assigned sequence.\n\t *\n\t * A datagram is delivered best-effort over a single QUIC datagram, parallel to the track's\n\t * groups but drawing from the same sequence namespace (interleaving with {@link appendGroup}\n\t * never reuses a number). The payload must fit the negotiated transport datagram size minus\n\t * a small header; an oversize payload is dropped at each hop (there is no group fallback), so\n\t * keep datagram payloads small (e.g. a single audio frame). Datagrams are never delivered\n\t * over IETF moq-transport or stream-only transports (the WebSocket fallback). A payload over\n\t * 65535 bytes (the QUIC datagram frame ceiling) throws. An origin publisher uses this; a\n\t * relay preserving upstream numbering uses {@link insertDatagram}.\n\t */\n\tappendDatagram(timestamp: Timestamp, payload: Uint8Array): number {\n\t\tconst counter = this.#sequence;\n\t\tconst sequence = counter.next;\n\t\tthis.#writable(sequence);\n\t\tif (payload.byteLength > MAX_DATAGRAM_BYTES) throw new Error(\"datagram payload too large\");\n\n\t\tcounter.next = sequence + 1;\n\t\tthis.#publishDatagram({ sequence, timestamp, payload });\n\t\treturn sequence;\n\t}\n\n\t/**\n\t * Insert a datagram with an explicit sequence number.\n\t *\n\t * Preserves the supplied sequence (advancing the shared counter if needed) so a relay can\n\t * forward a datagram without renumbering it. The size limits of {@link appendDatagram}\n\t * apply. Most origin publishers want {@link appendDatagram} instead.\n\t */\n\tinsertDatagram(sequence: number, timestamp: Timestamp, payload: Uint8Array) {\n\t\tthis.#writable(sequence);\n\t\tif (payload.byteLength > MAX_DATAGRAM_BYTES) throw new Error(\"datagram payload too large\");\n\n\t\tconst counter = this.#sequence;\n\t\tif (sequence >= counter.next) {\n\t\t\tcounter.next = sequence + 1;\n\t\t}\n\t\tthis.#publishDatagram({ sequence, timestamp, payload });\n\t}\n\n\t/**\n\t * Declare the track's exclusive end, possibly ahead of the live edge, mirroring the Rust\n\t * `finish_at`.\n\t *\n\t * `final` is the first sequence that will never be produced, so a track whose last group\n\t * is 89 finishes at 90. Groups and datagrams below it are still accepted; anything at or\n\t * above it is refused. Unlike {@link close} it is not terminal: call `close()` once the\n\t * remaining groups are written. Throws if the track is closed, already has an end, or\n\t * `final` is at or below a sequence already produced.\n\t */\n\tfinishAt(final: number): void {\n\t\tif (this.#state.closed.peek() !== undefined) throw new Error(\"track is closed\");\n\t\tif (!Number.isSafeInteger(final) || final < 0) throw new RangeError(`invalid track end: ${final}`);\n\t\tconst declared = this.#state.final.peek();\n\t\tif (declared !== undefined) throw new Error(`track already ends at ${declared}`);\n\t\tif (final < this.#received) {\n\t\t\tthrow new Error(`track end ${final} is below the next sequence ${this.#received}`);\n\t\t}\n\t\tthis.#declareFinal(final);\n\t}\n\n\t#declareFinal(final: number): void {\n\t\tthis.#state.final.set(final);\n\t\tfor (const sink of this.#sinks) sink.final.set(final);\n\t}\n\n\t/**\n\t * Close the track and every subscriber, mirroring the abort to their groups. Idempotent.\n\t *\n\t * A clean close keeps the end {@link finishAt} declared, or declares one past the highest\n\t * sequence produced; an abort ends without one. Subscribers still draining get the\n\t * finished groups first, then the end or the abort. An abort after the declared end\n\t * settled (reached, with every group below it finished) is a clean close. The groups\n\t * left behind still age out after the track's `maxAge`, so a stale subscriber can't pin\n\t * them.\n\t */\n\tclose(abort?: Error) {\n\t\tif (this.#state.closed.peek() !== undefined) return;\n\t\tif (abort && this.#settled()) abort = undefined;\n\t\tif (abort === undefined && this.#state.final.peek() === undefined) {\n\t\t\tthis.#declareFinal(this.#received);\n\t\t}\n\t\t// Nobody will finish these, so a subscriber that has not taken one yet never sees it.\n\t\t// Not evicted: a reader already holding one keeps its frames and sees the abort.\n\t\tconst open = abort ? this.#cache.filter((entry) => entry.group.closed.peek() === undefined) : [];\n\t\tcloseTrackState(this.#state, abort);\n\t\tfor (const { group } of this.#cache) group.close(abort);\n\t\tfor (const entry of open) {\n\t\t\tthis.#unlink(entry);\n\t\t\tthis.#uncache(entry);\n\t\t}\n\t\tfor (const sink of this.#sinks) {\n\t\t\tfor (const group of sink.groups.peek()) group.close(abort);\n\t\t\tcloseTrackState(sink, abort);\n\t\t}\n\t\tthis.#sinks.clear();\n\t\tthis.#prune();\n\t}\n\n\t// Whether the declared end was reached and every cached group below it finished, so\n\t// the track already holds everything it promised. Mirrors the Rust `is_settled`.\n\t#settled(): boolean {\n\t\tconst final = this.#state.final.peek();\n\t\tif (final === undefined || this.#received < final) return false;\n\t\treturn this.#cache.every(({ group }) => group.sequence >= final || group.closed.peek() === null);\n\t}\n\n\t/** Append a frame as its own single-frame group. */\n\twriteFrame(frame: Frame) {\n\t\tconst group = this.appendGroup();\n\t\tgroup.writeFrame(frame);\n\t\tgroup.close();\n\t}\n\n\t/** Appends a string to the track as its own single-frame group. */\n\twriteString(str: string) {\n\t\tconst group = this.appendGroup();\n\t\tgroup.writeString(str);\n\t\tgroup.close();\n\t}\n\n\t/** Appends a JSON value to the track as its own single-frame group. */\n\twriteJson(json: unknown) {\n\t\tconst group = this.appendGroup();\n\t\tgroup.writeJson(json);\n\t\tgroup.close();\n\t}\n\n\t/** Appends a boolean to the track as its own single-frame group. */\n\twriteBool(bool: boolean) {\n\t\tconst group = this.appendGroup();\n\t\tgroup.writeBool(bool);\n\t\tgroup.close();\n\t}\n}\n\n/**\n * The read side of a live track subscription, mirroring the Rust `Subscriber`.\n *\n * Obtained from `Broadcast.Consumer.subscribe` / `Track.Consumer.subscribe`, or from\n * {@link Producer.subscribe} for an in-process track. Reads the groups a\n * {@link Producer} on the same underlying state writes.\n */\nexport class Subscriber {\n\t/** The track name. */\n\treadonly name: string;\n\n\t#state: TrackState;\n\t#nextSequence = 0;\n\t#cursor = new Signal<{ start: number; end?: number }>({ start: 0 });\n\t#enforceLatency = true;\n\t// Which cursor owns this subscription. Both cursors draw from one buffer, so the\n\t// first group read commits the track to arrival order and {@link ordered} commits\n\t// it to sequence order; whichever wins is the only one allowed from here on.\n\t// Datagrams are a separate cursor and never commit.\n\t#mode?: \"arrival\" | \"ordered\";\n\t// The group the frame-level helpers are currently draining, acquired through the\n\t// sequence cursor so frame reads and {@link Ordered.nextGroup} share one floor.\n\t#frameGroup?: GroupConsumer;\n\n\t#drift(): {\n\t\tbudget: number;\n\t\tpresentation?: { sequence: number; timestamp: Timestamp };\n\t\tend?: number;\n\t} {\n\t\tconst { end } = this.#cursor.peek();\n\t\tconst timeline = this.#state.timeline;\n\t\tlet presentation: { sequence: number; timestamp: Timestamp } | undefined;\n\t\t// The edge wants the newest content that exists, so it takes the newest\n\t\t// stamped group's latest frame: walk back from the cap to the first one.\n\t\tfor (let i = (end === undefined ? timeline.length : timelineIndex(timeline, end)) - 1; i >= 0; i--) {\n\t\t\tconst group = timeline[i];\n\t\t\tif (group.closed.peek() instanceof Error) continue;\n\t\t\tconst timestamp = hooks.groupTimestamp(group);\n\t\t\tif (timestamp === undefined) continue;\n\t\t\tpresentation = { sequence: group.sequence, timestamp: hooks.groupLatest(group) ?? timestamp };\n\t\t\tbreak;\n\t\t}\n\n\t\tconst requested = this.#state.update.peek()?.maxAge ?? 0;\n\t\tconst retained = this.#state.info.peek()?.maxAge;\n\t\treturn {\n\t\t\tbudget: this.#enforceLatency\n\t\t\t\t? retained === undefined\n\t\t\t\t\t? requested\n\t\t\t\t\t: Math.min(requested, retained)\n\t\t\t\t: Number.POSITIVE_INFINITY,\n\t\t\tpresentation,\n\t\t\tend,\n\t\t};\n\t}\n\n\t// The furthest presentation time the group at `sequence` could still reach: where its\n\t// immediate servable successor begins, or undefined when nothing proves where it\n\t// stops. An upper bound, deliberately: a frame's duration is not on the wire, so a\n\t// group's own last timestamp says where it starts presenting, not where it ends.\n\t// Only the *immediate* successor counts: timestamps need not rise with sequence (a\n\t// rewind reorders them), so a later stamped group proves nothing about where an\n\t// unstamped successor will begin, and shrinking the bound is the unsafe direction.\n\t// An unstamped successor leaves the reach unbounded until it presents a frame.\n\t#reach(sequence: number, end?: number): number | undefined {\n\t\tconst timeline = this.#state.timeline;\n\t\tfor (let i = timelineIndex(timeline, sequence + 1); i < timeline.length; i++) {\n\t\t\tconst successor = timeline[i];\n\t\t\tif (end !== undefined && successor.sequence >= end) break;\n\t\t\tif (successor.closed.peek() instanceof Error) continue;\n\t\t\treturn hooks.groupTimestamp(successor)?.asMillis();\n\t\t}\n\t\treturn undefined;\n\t}\n\n\t// Whether the drift budget says to give up on `group`.\n\t//\n\t// Presentation time measures a group by how far it could still reach, not by how far\n\t// behind it started. Being behind is survivable: priority transmits newer groups first,\n\t// so a backlog bursts at whatever rate is left over and closes the gap faster than the\n\t// live edge advances. A group is abandoned only once everything it could still present\n\t// falls outside the budget.\n\t//\n\t// A group's reach is bounded by its nearest successor: it cannot present past where the\n\t// next group begins. Its own frames say nothing, since a frame's duration is not on the\n\t// wire, and the candidate needs no timestamp of its own: an empty group is bounded by\n\t// its stamped successor the same way. The bound is exclusive, so the comparison is `>=`:\n\t// the freshest frame a group could still hold sits just below its reach, so an age equal\n\t// to the budget already puts every frame in it strictly past the budget. A zero budget\n\t// falls out for free. Only timestamps drive expiry; wall-clock reclamation of idle\n\t// content is the cache's own policy, not the budget's.\n\t#isStale(\n\t\tgroup: GroupConsumer,\n\t\tdrift: {\n\t\t\tbudget: number;\n\t\t\tpresentation?: { sequence: number; timestamp: Timestamp };\n\t\t\tend?: number;\n\t\t},\n\t): boolean {\n\t\tif (this.#state.timeline[timelineIndex(this.#state.timeline, group.sequence)] !== group) return false;\n\n\t\tconst reach = this.#reach(group.sequence, drift.end);\n\t\treturn (\n\t\t\tdrift.presentation !== undefined &&\n\t\t\tdrift.presentation.sequence > group.sequence &&\n\t\t\treach !== undefined &&\n\t\t\tdrift.presentation.timestamp.asMillis() - reach >= drift.budget\n\t\t);\n\t}\n\n\t#guard(group: GroupConsumer): GroupConsumer {\n\t\tif (!this.#enforceLatency) return group;\n\t\thooks.expireGroup(group, {\n\t\t\texpired: () => this.#isStale(group, this.#drift()),\n\t\t\tchanged: [\n\t\t\t\tthis.#state.groups,\n\t\t\t\tthis.#state.timelineChanged,\n\t\t\t\tthis.#state.update,\n\t\t\t\tthis.#state.info,\n\t\t\t\tthis.#cursor,\n\t\t\t\tthis.#state.closed,\n\t\t\t],\n\t\t});\n\t\treturn group;\n\t}\n\n\tprivate constructor(name: string, state: TrackState) {\n\t\tthis.name = name;\n\t\tthis.#state = state;\n\t\t// The cursor's floor is the group the subscription named, or 0. A floor is the\n\t\t// only thing a start contributes; {@link Subscription.maxAge} is what asks for\n\t\t// data, and delivery skips everything above the floor that the budget convicts.\n\t\tthis.#cursor.set({ start: groupBounds(state.update.peek()?.groups ?? {}).start });\n\t}\n\n\tstatic {\n\t\tmakeSubscriber = (name, state) => new Subscriber(name, state);\n\t\thooks.tryRecvGroup = (subscriber) => subscriber.#tryRecvGroup();\n\t\thooks.groupChanged = (subscriber, fn) => subscriber.#groupChanged(fn);\n\t\thooks.exemptFetch = (subscriber) => {\n\t\t\tsubscriber.#enforceLatency = false;\n\t\t};\n\t\thooks.replaceGroups = (subscriber, groups) => subscriber.#replaceGroups(groups);\n\t\t// The sequence cursor lives here (it shares the buffer and the drift anchor with\n\t\t// the arrival cursor); `Ordered` is the handle that reaches it.\n\t\tordered_ = {\n\t\t\tnextGroup: (subscriber) => subscriber.#nextGroup(),\n\t\t\treadFrame: (subscriber) => subscriber.#readFrame(),\n\t\t\treadString: (subscriber) => subscriber.#readString(),\n\t\t\treadJson: (subscriber) => subscriber.#readJson(),\n\t\t\treadBool: (subscriber) => subscriber.#readBool(),\n\t\t\t// Unordered either way, so both handles reach the same cursor.\n\t\t\trecvDatagram: (subscriber) => subscriber.#recvDatagram(),\n\t\t};\n\t}\n\n\t// Refuse a read on this handle once `ordered()` has taken the subscription.\n\t#live() {\n\t\tif (this.#mode === \"ordered\") throw new Error(\"track is read in sequence order; use the Ordered handle\");\n\t}\n\n\t/**\n\t * Resolve this track's immutable publisher properties.\n\t *\n\t * Resolves once the wire layer commits the TRACK_INFO it received (lite-05+) or\n\t * defaults (older drafts), so awaiting it never yields a placeholder. Rejects if\n\t * the track is closed before the properties are known (e.g. a rejected subscription).\n\t */\n\tinfo(): Promise<Info> {\n\t\treturn resolveInfo(this.#state);\n\t}\n\n\t/** Settles once the track closes; see {@link Producer.closed}. */\n\tget closed(): GetPromise<Error | null> {\n\t\treturn this.#state.closed;\n\t}\n\n\t/** This subscriber's current options, including defaults and the last {@link update}. */\n\tget subscription(): Getter<Subscription | undefined> {\n\t\treturn this.#state.update;\n\t}\n\n\t/** Return the latest group sequence observed on this track, if any. */\n\tlatest(): number | undefined {\n\t\treturn this.#state.latest;\n\t}\n\n\t/**\n\t * The track's exclusive final boundary: the end {@link Producer.finishAt} declared, which\n\t * can be ahead of the live edge, or one past the highest sequence produced once the\n\t * producer closes cleanly (0 for a track that produced none). Groups and datagrams share\n\t * the sequence namespace, so this can exceed `latest() + 1`. Undefined until declared,\n\t * and after an abort that declared none.\n\t */\n\tfinal(): number | undefined {\n\t\treturn this.#state.final.peek();\n\t}\n\n\t/**\n\t * Resolve with the track's exclusive final boundary once it is known, mirroring the Rust\n\t * `finished`.\n\t *\n\t * Resolves as soon as the end is declared, which may be ahead of the live edge, so it\n\t * says nothing about every group having arrived: read until the cursor returns\n\t * `undefined` for that. Rejects with the abort, or if the track closes without an end.\n\t */\n\tasync finished(): Promise<number> {\n\t\tfor (;;) {\n\t\t\tconst final = this.#state.final.peek();\n\t\t\tif (final !== undefined) return final;\n\n\t\t\tconst closed = this.#state.closed.peek();\n\t\t\tif (closed instanceof Error) throw closed;\n\t\t\tif (closed !== undefined) throw new Error(\"track closed before its end was known\");\n\n\t\t\tawait Signal.race(this.#state.final, this.#state.closed);\n\t\t}\n\t}\n\n\t/**\n\t * The newest frame this track has produced, or `undefined` while it has none.\n\t *\n\t * Read from the groups buffered for this subscriber, so nothing is consumed. A newest\n\t * group that has no frames yet falls back to the newest older group that does. It\n\t * reads as `undefined` once the newest group has been evicted or received: what is\n\t * left can no longer say where the edge is.\n\t */\n\tlargest(): Location | undefined {\n\t\tconst latest = this.#state.latest;\n\t\tif (latest === undefined) return undefined;\n\n\t\tconst groups = this.#state.groups.peek();\n\t\tconst newest = groups[groups.length - 1];\n\t\tif (!newest || newest.sequence !== latest) return undefined;\n\n\t\tfor (let i = groups.length - 1; i >= 0; i--) {\n\t\t\tconst count = groups[i].frameCount;\n\t\t\tif (count > 0) return { group: groups[i].sequence, frame: count - 1 };\n\t\t}\n\t\treturn undefined;\n\t}\n\n\t/**\n\t * An independent subscriber to the same track, with its own cursor and its own replay of\n\t * the retained window.\n\t *\n\t * Reads here do not consume anything this one would deliver, which is what lets a\n\t * publisher read the cache alongside the cursor it is serving from. Resolving the track\n\t * again through the broadcast would not do: a dynamic serve is one request per peer\n\t * subscription, so that mints a second producer the application has to answer separately.\n\t *\n\t * @internal Wire layers only.\n\t */\n\tfork(options?: Subscription): Subscriber {\n\t\tconst producer = this.#state.producer;\n\t\tif (!producer) throw new Error(\"track has no producer to fork from\");\n\t\treturn producer.subscribe(options);\n\t}\n\n\t/** Limit subsequent reads to these groups and return this reader for chaining. */\n\twithGroups(groups: Groups): this {\n\t\tthis.setGroups(groups);\n\t\treturn this;\n\t}\n\n\t/**\n\t * Limit subsequent reads without rewinding read progress or changing the wire request.\n\t * An omitted start preserves the current floor; an omitted end removes the cap.\n\t * Raising the end makes unread buffered groups available again.\n\t */\n\tsetGroups(groups: Groups): void {\n\t\tconst { start, end } = groupBounds(groups);\n\t\tthis.#cursor.update((cursor) => ({ start: Math.max(cursor.start, start), end }));\n\t}\n\n\t// Serving counterpart of setGroups: a named start replaces the floor, matching\n\t// Rust `start_at`. Local readers stay monotonic; only the wire publisher lowers.\n\t#replaceGroups(groups: Groups): void {\n\t\tconst { start, end } = groupBounds(groups);\n\t\tthis.#cursor.update((cursor) => ({\n\t\t\tstart: groups.start === undefined ? cursor.start : start,\n\t\t\tend,\n\t\t}));\n\t}\n\n\t/** Close the track (optionally with an error), closing any pending groups. Idempotent. */\n\tclose(abort?: Error) {\n\t\t// Settle if we're first (the producer may already have); either way drop anything\n\t\t// still buffered. Groups parked at the setGroups cap deliberately outlive a clean\n\t\t// producer close, so the subscriber leaving is what must release them: closing\n\t\t// and clearing wakes a pending read to observe the end instead of hanging.\n\t\tcloseTrackState(this.#state, abort);\n\t\tthis.#state.groups.mutate((groups) => {\n\t\t\tfor (const group of groups) group.close(abort);\n\t\t\tgroups.length = 0;\n\t\t});\n\t\tthis.#frameGroup?.close(abort);\n\t\tthis.#frameGroup = undefined;\n\t\tthis.#state.timeline.length = 0;\n\t}\n\n\t/**\n\t * Receive every group on this track exactly once, as it becomes available.\n\t *\n\t * Groups may arrive out of order or with gaps due to network conditions; unlike\n\t * {@link Ordered.nextGroup}, one that arrives after a newer group was already returned\n\t * is still delivered. When several groups are buffered, the lowest sequence is\n\t * returned first.\n\t *\n\t * Honors the range set by {@link setGroups}: a group\n\t * beyond the cap stays buffered (not dropped) and is offered once the cap rises, even\n\t * after a clean close, without blocking in-range groups that arrive behind it.\n\t * A group whose presentation time is further behind the live edge than this\n\t * subscriber's `maxAge` is skipped. The default of zero takes the live edge.\n\t * The budget remains attached after return, so a pending frame read rejects if a stalled\n\t * group becomes stale while newer data advances.\n\t *\n\t * The first call commits this track to arrival order: {@link ordered} throws afterwards.\n\t */\n\tasync recvGroup(): Promise<GroupConsumer | undefined> {\n\t\tthis.#live();\n\t\tthis.#mode = \"arrival\";\n\t\tfor (;;) {\n\t\t\tconst recv = this.#tryRecvGroup();\n\t\t\tswitch (recv.kind) {\n\t\t\t\tcase \"group\":\n\t\t\t\t\treturn recv.group;\n\t\t\t\tcase \"done\":\n\t\t\t\t\treturn undefined;\n\t\t\t\tcase \"error\":\n\t\t\t\t\tthrow recv.error;\n\t\t\t}\n\n\t\t\t// Idle, or parked at the boundary waiting for the cap to rise.\n\t\t\tawait Signal.race(this.#state.groups, this.#cursor, this.#state.closed);\n\t\t}\n\t}\n\n\t// Package-internal synchronous half of recvGroup. The lite publisher uses this so applying\n\t// control state, popping the group, and positioning its frames are one JavaScript turn.\n\t#tryRecvGroup(): Recv {\n\t\tconst groups = this.#state.groups.peek();\n\t\tconst { start, end } = this.#cursor.peek();\n\t\twhile (groups.length > 0 && groups[0].sequence < start) groups.shift()?.close();\n\t\tconst drift = this.#drift();\n\n\t\tfor (;;) {\n\t\t\t// The buffer is sequence-sorted, so an in-range group that arrives behind a\n\t\t\t// beyond-cap one sorts in front of it and is never blocked by it.\n\t\t\tconst group = groups[0];\n\t\t\tif (!group || (end !== undefined && group.sequence >= end)) break;\n\t\t\tgroups.shift();\n\t\t\tif (this.#isStale(group, drift)) {\n\t\t\t\tgroup.close();\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\treturn { kind: \"group\", group: this.#guard(group) };\n\t\t}\n\n\t\tconst group = groups[0];\n\t\tconst closed = this.#state.closed.peek();\n\t\tif (closed instanceof Error) return { kind: \"error\", error: closed };\n\t\tif (closed === undefined) return { kind: \"idle\" };\n\t\t// A group beyond the cap outlives a clean close: it becomes deliverable if\n\t\t// the cap rises, so the track isn't over while any are held.\n\t\treturn group ? { kind: \"boundary\" } : { kind: \"done\" };\n\t}\n\n\t// Package-internal readiness half of recvGroup. Each registration fires at most once, and\n\t// the caller disposes the losers after whichever source wakes it. A declared end wakes it\n\t// too, so a publisher can forward the end before the live edge reaches it.\n\t#groupChanged(fn: () => void): Dispose {\n\t\tconst dispose = [\n\t\t\tthis.#state.groups.changed(fn),\n\t\t\tthis.#cursor.changed(fn),\n\t\t\tthis.#state.closed.changed(fn),\n\t\t\tthis.#state.final.changed(fn),\n\t\t];\n\t\treturn () => {\n\t\t\tfor (const close of dispose) close();\n\t\t};\n\t}\n\n\t/**\n\t * Take the next buffered group without blocking, honoring the same cursor bounds as\n\t * {@link recvGroup}.\n\t *\n\t * Returns `undefined` when nothing is deliverable right now, which is not by itself the\n\t * end of the track: a group may still arrive, or one may be parked beyond the\n\t * {@link setGroups} cap. Use it to drain what the retained window already holds, where\n\t * waiting for a sequence nothing will republish would park forever.\n\t */\n\ttryRecvGroup(): GroupConsumer | undefined {\n\t\tthis.#live();\n\t\tthis.#mode = \"arrival\";\n\t\tconst recv = this.#tryRecvGroup();\n\t\tif (recv.kind === \"group\") return recv.group;\n\t\tif (recv.kind === \"error\") throw recv.error;\n\t\treturn undefined;\n\t}\n\n\t/**\n\t * Receive the next datagram in arrival order.\n\t *\n\t * Datagrams are a separate best-effort channel from groups (see\n\t * {@link Producer.appendDatagram}); they share only the sequence namespace. A consumer\n\t * that falls too far behind silently loses the oldest datagrams. Read this alongside\n\t * {@link recvGroup} (e.g. in a separate loop) to receive both channels concurrently.\n\t * The two cursors are independent: a datagram never moves the group cursor.\n\t */\n\tasync recvDatagram(): Promise<Datagram | undefined> {\n\t\tthis.#live();\n\t\treturn this.#recvDatagram();\n\t}\n\n\t// The datagram cursor, reachable from either handle: unordered by construction, so the\n\t// choice of group order says nothing about it.\n\tasync #recvDatagram(): Promise<Datagram | undefined> {\n\t\tfor (;;) {\n\t\t\tconst datagrams = this.#state.datagrams.peek();\n\n\t\t\tif (datagrams.length > 0) {\n\t\t\t\treturn datagrams.shift();\n\t\t\t}\n\n\t\t\tconst closed = this.#state.closed.peek();\n\t\t\tif (closed instanceof Error) throw closed;\n\t\t\tif (closed !== undefined) return undefined;\n\n\t\t\tawait Signal.race(this.#state.datagrams, this.#state.closed);\n\t\t}\n\t}\n\n\t// The sequence cursor behind {@link Ordered}, which owns the only public door to it.\n\tasync #nextGroup(): Promise<GroupConsumer | undefined> {\n\t\tfor (;;) {\n\t\t\tconst groups = this.#state.groups.peek();\n\t\t\tconst cursor = this.#cursor.peek();\n\t\t\tconst start = Math.max(cursor.start, this.#nextSequence);\n\t\t\twhile (groups.length > 0 && groups[0].sequence < start) groups.shift()?.close();\n\t\t\t// One anchor for the whole pass, so walking a backlog off stays linear.\n\t\t\tconst drift = this.#drift();\n\n\t\t\tfor (;;) {\n\t\t\t\tconst group = groups[0];\n\t\t\t\tif (!group || (cursor.end !== undefined && group.sequence >= cursor.end)) break;\n\t\t\t\tgroups.shift();\n\t\t\t\tthis.#nextSequence = group.sequence + 1;\n\t\t\t\t// Every frame this group could still hold is past the budget, so keep\n\t\t\t\t// scanning: one pass walks a whole backlog off rather than replaying it.\n\t\t\t\tif (this.#isStale(group, drift)) {\n\t\t\t\t\tgroup.close();\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t// One cursor: the frame helpers must not keep draining a group this\n\t\t\t\t// read just moved past, or interleaved reads would run backwards.\n\t\t\t\tif (this.#frameGroup && this.#frameGroup.sequence < group.sequence) {\n\t\t\t\t\tthis.#frameGroup.close();\n\t\t\t\t\tthis.#frameGroup = undefined;\n\t\t\t\t}\n\t\t\t\treturn this.#guard(group);\n\t\t\t}\n\n\t\t\tconst closed = this.#state.closed.peek();\n\t\t\tif (closed instanceof Error) throw closed;\n\t\t\t// A group parked above the cap stays deliverable even after a clean close\n\t\t\t// (its frames remain buffered), so keep waiting for a cap raise. Only a\n\t\t\t// drained track reports finished.\n\t\t\tif (closed !== undefined && !groups[0]) return undefined;\n\n\t\t\tawait Signal.race(this.#state.groups, this.#cursor, this.#state.closed);\n\t\t}\n\t}\n\n\t/**\n\t * Reads the next frame across groups, in sequence order, with its group and frame numbers.\n\t * Treat the returned frame bytes as read-only; they are shared with other consumers.\n\t *\n\t * Groups are acquired through the same sequence cursor as {@link Ordered.nextGroup},\n\t * so frames never run backwards: a late lower-sequence group is skipped, and so is\n\t * one every frame of which `maxAge` proves is too old. A group the budget abandons\n\t * mid-stall ends cleanly and the cursor resyncs from the next group; a gap inside a\n\t * group still surfaces as {@link TooFarBehind} or {@link GroupTooLarge}.\n\t */\n\tasync #readFrame(): Promise<({ group: number; frame: number } & Frame) | undefined> {\n\t\tfor (;;) {\n\t\t\tif (!this.#frameGroup) {\n\t\t\t\tthis.#frameGroup = await this.#nextGroup();\n\t\t\t\tif (!this.#frameGroup) return undefined;\n\t\t\t}\n\t\t\tconst group = this.#frameGroup;\n\n\t\t\tlet next: ({ sequence: number } & Frame) | undefined;\n\t\t\ttry {\n\t\t\t\tnext = await group.readFrameSequence();\n\t\t\t} catch (err) {\n\t\t\t\t// The group failed underneath us: resync from the next one, surfacing\n\t\t\t\t// only what the caller can act on (a gap, or the track's own abort).\n\t\t\t\tthis.#frameGroup = undefined;\n\t\t\t\tgroup.close();\n\t\t\t\tif (err instanceof TooFarBehind || err instanceof GroupTooLarge) throw err;\n\t\t\t\tconst closed = this.#state.closed.peek();\n\t\t\t\tif (closed instanceof Error) throw closed;\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tif (next) {\n\t\t\t\treturn {\n\t\t\t\t\tgroup: group.sequence,\n\t\t\t\t\tframe: next.sequence,\n\t\t\t\t\tpayload: next.payload,\n\t\t\t\t\ttimestamp: next.timestamp,\n\t\t\t\t};\n\t\t\t}\n\n\t\t\t// The group is exhausted (or the budget abandoned its stall); move on.\n\t\t\tthis.#frameGroup = undefined;\n\t\t\tgroup.close();\n\t\t}\n\t}\n\n\t/** Reads the next frame and decodes it as a UTF-8 string. */\n\tasync #readString(): Promise<string | undefined> {\n\t\tconst next = await this.#readFrame();\n\t\tif (!next) return undefined;\n\t\treturn new TextDecoder().decode(next.payload);\n\t}\n\n\t/** Reads the next frame and parses it as JSON. */\n\tasync #readJson(): Promise<unknown | undefined> {\n\t\tconst next = await this.#readString();\n\t\tif (!next) return undefined;\n\t\treturn JSON.parse(next);\n\t}\n\n\t/** Reads the next frame and decodes it as a one-byte boolean, throwing on a malformed frame. */\n\tasync #readBool(): Promise<boolean | undefined> {\n\t\tconst next = await this.#readFrame();\n\t\tif (!next) return undefined;\n\t\tconst payload = next.payload;\n\t\tif (payload.byteLength !== 1 || !(payload[0] === 0 || payload[0] === 1)) throw new Error(\"invalid bool frame\");\n\t\treturn payload[0] === 1;\n\t}\n\n\t/**\n\t * Read this track's groups in sequence order instead of arrival order.\n\t *\n\t * Both cursors draw from the same buffer, so a track is read one way or the other: this\n\t * hands the subscription to the returned {@link Ordered} and leaves this handle inert.\n\t * {@link recvGroup} and {@link recvDatagram} throw afterwards. Throws once a\n\t * {@link recvGroup} call has already committed the track to arrival order.\n\t *\n\t * Datagrams come along: they are a separate cursor either way, so the choice of group\n\t * order says nothing about them, and reading them commits nothing.\n\t */\n\tordered(): Ordered {\n\t\tif (this.#mode === \"ordered\") throw new Error(\"track is already read in sequence order\");\n\t\tif (this.#mode === \"arrival\") throw new Error(\"track is already read in arrival order\");\n\t\tthis.#mode = \"ordered\";\n\t\treturn makeOrdered(this);\n\t}\n\n\t/**\n\t * Update this subscription's options (e.g. priority), triggering a SUBSCRIBE_UPDATE to the\n\t * publisher. Mirrors the Rust `Subscriber::update`.\n\t */\n\tupdate(options: Subscription) {\n\t\tthis.#state.update.set(subscriptionDefaults(options));\n\t}\n}\n\n/**\n * A {@link Subscriber} that reads groups in sequence order.\n *\n * Created by {@link Subscriber.ordered}, which takes the subscription over: the two\n * cursors draw from one buffer, so a track is read one way or the other and never both.\n * Every group this returns has a higher sequence than the last, so a late arrival is\n * skipped rather than delivered out of turn.\n *\n * `maxAge` applies as this cursor reads, exactly as it does on the arrival cursor: a\n * group is skipped once its reach, where its immediate successor begins, is that far\n * behind the newest frame on the track. Nothing weaker convicts it, since the reach is\n * the only proof that every frame it could still hold is past the budget, so a backlog\n * inside the budget is still delivered whole, as a burst in order. The budget follows a\n * group already handed out too: a stalled group's pending frame read rejects once newer\n * content has pulled that far ahead.\n */\nexport class Ordered {\n\t/** The track name. */\n\treadonly name: string;\n\n\t#subscriber: Subscriber;\n\n\tprivate constructor(subscriber: Subscriber) {\n\t\tthis.name = subscriber.name;\n\t\tthis.#subscriber = subscriber;\n\t}\n\n\tstatic {\n\t\tmakeOrdered = (subscriber) => new Ordered(subscriber);\n\t}\n\n\t/** Resolve this track's immutable publisher properties; see {@link Subscriber.info}. */\n\tinfo(): Promise<Info> {\n\t\treturn this.#subscriber.info();\n\t}\n\n\t/** Settles once the track closes; see {@link Producer.closed}. */\n\tget closed(): GetPromise<Error | null> {\n\t\treturn this.#subscriber.closed;\n\t}\n\n\t/** This subscriber's current options, including defaults and the last {@link update}. */\n\tget subscription(): Getter<Subscription | undefined> {\n\t\treturn this.#subscriber.subscription;\n\t}\n\n\t/** The latest group sequence observed on this track, if any. */\n\tlatest(): number | undefined {\n\t\treturn this.#subscriber.latest();\n\t}\n\n\t/** The track's exclusive final boundary; see {@link Subscriber.final}. */\n\tfinal(): number | undefined {\n\t\treturn this.#subscriber.final();\n\t}\n\n\t/** Resolve with the track's exclusive final boundary once known; see {@link Subscriber.finished}. */\n\tfinished(): Promise<number> {\n\t\treturn this.#subscriber.finished();\n\t}\n\n\t/** Limit subsequent reads to these groups and return this reader for chaining. */\n\twithGroups(groups: Groups): this {\n\t\tthis.setGroups(groups);\n\t\treturn this;\n\t}\n\n\t/** Limit subsequent reads to these groups; see {@link Subscriber.setGroups}. */\n\tsetGroups(groups: Groups): void {\n\t\tthis.#subscriber.setGroups(groups);\n\t}\n\n\t/** Update this subscription's options; see {@link Subscriber.update}. */\n\tupdate(options: Subscription) {\n\t\tthis.#subscriber.update(options);\n\t}\n\n\t/** Close the track (optionally with an error), closing any pending groups. Idempotent. */\n\tclose(abort?: Error) {\n\t\tthis.#subscriber.close(abort);\n\t}\n\n\t/**\n\t * Return the next group with a strictly-greater sequence number than the last returned.\n\t *\n\t * Late arrivals (sequence at or below the last returned) are silently skipped, as is a\n\t * group whose every frame is further behind the live edge than `maxAge` (the default of\n\t * zero keeps only what nothing newer has superseded). Honors the bounds set by\n\t * {@link setGroups}.\n\t */\n\tnextGroup(): Promise<GroupConsumer | undefined> {\n\t\treturn ordered_.nextGroup(this.#subscriber);\n\t}\n\n\t/**\n\t * Read the next frame across groups, in sequence order, with its group and frame numbers.\n\t *\n\t * Rides the same cursor as {@link nextGroup} and shares this handle's contract: a\n\t * buffered backlog is drained in full up to the point `maxAge` proves it useless.\n\t * Treat the returned frame bytes as read-only; they are shared with other consumers.\n\t */\n\treadFrame(): Promise<({ group: number; frame: number } & Frame) | undefined> {\n\t\treturn ordered_.readFrame(this.#subscriber);\n\t}\n\n\t/** Read the next frame and decode it as a UTF-8 string. */\n\treadString(): Promise<string | undefined> {\n\t\treturn ordered_.readString(this.#subscriber);\n\t}\n\n\t/** Read the next frame and parse it as JSON. */\n\treadJson(): Promise<unknown | undefined> {\n\t\treturn ordered_.readJson(this.#subscriber);\n\t}\n\n\t/** Read the next frame and decode it as a one-byte boolean, throwing on a malformed frame. */\n\treadBool(): Promise<boolean | undefined> {\n\t\treturn ordered_.readBool(this.#subscriber);\n\t}\n\n\t/**\n\t * Receive the next datagram in arrival order.\n\t *\n\t * Datagrams are a separate best-effort channel from groups (see\n\t * {@link Producer.appendDatagram}); they share only the sequence namespace, and\n\t * neither cursor moves the other. Unordered by construction, so this behaves\n\t * identically on either handle; it is here so a track carrying both channels needs\n\t * one subscription rather than two.\n\t */\n\trecvDatagram(): Promise<Datagram | undefined> {\n\t\treturn ordered_.recvDatagram(this.#subscriber);\n\t}\n}\n"]}
|
|
1
|
+
{"version":3,"file":"track.js","sourceRoot":"","sources":["../src/track.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAChE,OAAO,EAA8C,IAAI,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACxF,OAAO,KAAK,KAAK,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAwC,QAAQ,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC7G,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,EACN,aAAa,EACb,iBAAiB,EACjB,OAAO,EACP,UAAU,EACV,WAAW,EACX,iBAAiB,EACjB,YAAY,EACZ,YAAY,GACZ,MAAM,YAAY,CAAC;AACpB,OAAO,EAAc,SAAS,EAA8B,UAAU,EAAE,MAAM,WAAW,CAAC;AAC1F,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7C,OAAO,EAA8C,QAAQ,IAAI,aAAa,EAAE,MAAM,YAAY,CAAC;AAEnG,OAAO,EAGN,MAAM,EAGN,MAAM,EACN,QAAQ,EAGR,QAAQ,EACR,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*\n * @module\n */\n\nimport { Duration, Instant, now, sleepUntil } from \"@moq/clock\";\nimport { type Dispose, type GetPromise, type Getter, Once, Signal } from \"@moq/signals\";\nimport * as cache from \"./cache.ts\";\nimport { Delivered } from \"./delivered.ts\";\nimport { answered, type Change, type Edit, type JoinAsk, joinTick, Prefs, Subscriptions } from \"./demand.ts\";\nimport { DropSet, Runs } from \"./drops.ts\";\nimport {\n\tFrameTooLarge,\n\tProtocolViolation,\n\tSkipped,\n\tStreamCode,\n\tStreamError,\n\tTimestampMismatch,\n\tTooFarBehind,\n\ttoStreamCode,\n} from \"./error.ts\";\nimport { type Asker, FillState, type Lookup, type Requests, requestsOf } from \"./fill.ts\";\nimport { encodable } from \"./flate/group.ts\";\nimport type { Info as FrameInfo, Producer as FrameProducer } from \"./frame.ts\";\nimport { type Frame, type Consumer as GroupConsumer, Producer as GroupProducer } from \"./group.ts\";\nimport type { IetfVersion } from \"./ietf/version.ts\";\nimport {\n\ttype Ask,\n\ttype Coverage,\n\tcutRun,\n\ttype Dispositions,\n\ttype DropRun,\n\tdropAt,\n\tdropHole,\n\ttype FillStarts,\n\ttype FoldTerms,\n\tfinalKey,\n\tgroupBounds,\n\ttype Held,\n\ttype Hole,\n\tholeError,\n\tholeOf,\n\thooks,\n\tinsertDrop,\n\tinsertDrops,\n\tinsertRun,\n\ttype Land,\n\tNO_MAX_DELAY,\n\ttype Opening,\n\ttype Recv,\n\ttype ResumeSource,\n\ttype Run,\n\tremoveRun,\n\trunGaps,\n\trunsFrom,\n\ttype StagedTrack,\n\tsameHole,\n\tsettles,\n\tskipHole,\n\tstaleHole,\n\tsubtractRuns,\n\ttype TrackRequestOptions,\n\twireMillis,\n} from \"./internal.ts\";\nimport { grace, Ledger, MAX_RUNS } from \"./ledger.ts\";\nimport { rescale } from \"./rescale.ts\";\nimport { floorAt, Timescale, type Timestamp } from \"./time.ts\";\nimport { checkKey, max, min, UNBOUNDED } from \"./util/key.ts\";\nimport { checkName } from \"./util/utf8.ts\";\nimport {\n\tBudget,\n\tbounded,\n\ttype Containing,\n\ttype Found,\n\ttype Holdings,\n\ttype Join,\n\ttype Joining,\n\tjoinsLive,\n\tplacedAsTimes,\n\trangesEnd,\n\trangesOf,\n\trangesPolicy,\n\tUNHELD,\n\tWindow,\n\twireHeld,\n\twireSpan,\n} from \"./window.ts\";\nimport { type Broadcast as BroadcastWire, registerTrackConsumer } from \"./wire.ts\";\n\nexport { FillGroups, Requests } from \"./fill.ts\";\nexport { rescale, rescaleIn } from \"./rescale.ts\";\n\n// The group a non-blocking read takes, skipping drops and throwing the track's error;\n// `undefined` when nothing is deliverable now.\nfunction taken(read: () => Recv): GroupConsumer | undefined {\n\tfor (;;) {\n\t\tconst recv = read();\n\t\tif (recv.kind === \"group\") return recv.group;\n\t\tif (recv.kind === \"error\") throw recv.error;\n\t\tif (recv.kind !== \"drop\") return undefined;\n\t}\n}\n\n/** What {@link Ordered.nextItem} returns next. Mirrors the Rust `track::Item`. */\nexport type Item =\n\t/** A group, with a higher key than any group or gap returned before. */\n\t| { kind: \"group\"; group: GroupConsumer }\n\t/**\n\t * Groups `[start, end)` this reader gave up on, which it will not return, with what a read of\n\t * them would have ended with. `group` is absent, so `item?.group` reads a group or nothing.\n\t * `landed` is when the latest of those groups landed here, undefined when none did or the cache\n\t * has since evicted it: a reader timing arrivals learns when what it never read came in, such\n\t * as a join's backlog skipped as stale.\n\t */\n\t| { kind: \"gap\"; start: bigint; end: bigint; error: Error; landed?: Instant; group?: never };\n\n// What an ordered read found: an item, or the same idle, end, and error as a group read.\ntype ItemRecv = Item | { kind: \"idle\" } | { kind: \"done\" } | { kind: \"error\"; error: Error };\n\n// The unset priority, the midpoint of the signed range: moq-lite carries it as 128 and\n// moq-transport as 127, one urgency on both.\nconst DEFAULT_PRIORITY = 0;\n\n// The errors this cache closes a group with when it evicts it unfinished: an aged-out group,\n// not a failed one. Mirrors Rust's cache-policy aborts in `group::Handle::commit_abort`.\nconst EVICTED = new WeakSet<Error>();\n\n// Whether `successor`'s copy failed: closed with an error other than its eviction from this\n// cache. Read from the copy, since a reader's own verdict (an eviction's gap, a stale group)\n// says nothing about whether the group arrived.\nfunction failed(successor: Successor): boolean {\n\tconst abort = successor.fate();\n\treturn abort !== undefined && !EVICTED.has(abort);\n}\n\n/**\n * A position within a track: a group's key and a frame's index inside it.\n *\n * As a track's end it is exclusive: `{ group: 90, frame: 0 }` ends before group 90, and\n * `{ group: 89, frame: 5 }` ends group 89 after its frames 0 to 4. Mirrors the Rust\n * `track::Position`.\n */\nexport interface Position {\n\t/** The group's sequence number within the track. */\n\tgroup: bigint;\n\t/** The frame's index within that group. */\n\tframe: number;\n}\n\n/**\n * How a track's frames are compressed, mirroring the Rust `track::Compression`: `\"deflate\"` makes\n * each group one DEFLATE stream (draft-lcurley-moq-flate), which suits small, repetitive frames\n * like JSON.\n */\nexport type Compression = \"none\" | \"deflate\";\n\n/**\n * A track's immutable publisher properties, fixed for the lifetime of the track.\n *\n * A producer declares these once from an {@link InfoInit} (when created);\n * a consumer awaits them via {@link Subscriber.info}\n * (resolved from the wire TRACK_INFO on lite-05+). They map 1:1 onto TRACK_INFO.\n */\nexport interface Info {\n\t/** How frame payloads are compressed per group on lite-07; other sessions receive plain frames. */\n\tcompression: Compression;\n\t/**\n\t * Units per second for this track's frame timestamps, or `null` for a scale-less (untimed)\n\t * track, whose frames carry no time: each one's timestamp is {@link Timestamp.unscaled} at\n\t * its group's key.\n\t *\n\t * A timed track declares its scale, such as {@link Timescale | Timescale.MILLI}, or\n\t * {@link Timescale | Timescale.MICRO} for media that needs sub-millisecond timing. Reported in\n\t * TRACK_INFO on Lite05+ and as the ID_TIMESCALE (0x40B70) property on moq-transport. A track\n\t * received without one (moq-lite before Lite05, or moq-transport without ID_TIMESCALE) is untimed,\n\t * and stays untimed when served onward.\n\t */\n\ttimescale: Timescale | null;\n\t/**\n\t * Publisher Max Age: how long, in milliseconds, a superseded group stays fresh, or `null` for\n\t * no publisher limit. It is stale once either clock reaches the budget: the wall-clock time\n\t * since its successor arrived at this hop, or how far its successor's first timestamp trails\n\t * the live edge. The newest group is never stale, and an untimed track is judged by the wall\n\t * clock alone. Reported in TRACK_INFO (Lite05+) so relays re-serve with the same bound. A\n\t * track received without one has no limit; zero serves only the live edge.\n\t * This clamps each subscriber budget. A freshness bound, not retention: a hop's cache bounds\n\t * the bytes it keeps with its own window.\n\t */\n\tmaxAge: Duration | null;\n\t/** Tie-break priority between subscriptions of equal subscriber priority (`-128..=127`, higher first). */\n\tpriority: number;\n\t/** When a reader asks for a new group: on a live join, on a {@link Subscriber.refresh}, or both. See {@link Refresh}. */\n\trefresh: Refresh;\n\t/** The original moq-transport publisher's draft. @internal */\n\tietf?: IetfVersion;\n}\n\n/**\n * When a reader of a track asks its publisher for a new group, which TRACK_INFO carries on\n * lite-07. Mirrors the Rust `track::Refresh`.\n *\n * A track opting in starts each group with an independent frame (a snapshot or a keyframe)\n * that the frames after it build on, so a new group is something the publisher can make on\n * request. A request asks for a group starting past the newest one; every hop judges it\n * against its own cache, which holds the same group, and requests made while one is pending\n * coalesce into it. The reader still receives the cached group while the new one is pending.\n *\n * A live join asks when the newest group outweighs {@link Refresh.ratio} (any join without one).\n * {@link Subscriber.refresh} asks regardless of the ratio on a track with an {@link Refresh.interval},\n * and like a join otherwise. Either request waits out the interval: it takes effect only once\n * the newest group arrived at least that long ago, so the interval caps how often the\n * publisher makes groups however many readers ask. A track with no group asks for its first at\n * once. Both `null` (the default) asks for nothing.\n */\nexport interface Refresh {\n\t/**\n\t * How many times its first frame a group's later bytes may grow before a live join asks for\n\t * a new group, or `null` to judge no ratio: then any join asks, if the track sets an interval.\n\t * `0` asks on any join once a delta follows the first frame. An integer in `0..2^32`.\n\t */\n\tratio: number | null;\n\t/**\n\t * How long after the newest group arrived a request may ask for another, or `null` for at\n\t * once. Measured on each hop's own clock from when the group reached it (or, at the\n\t * publisher, was created), as {@link Info.maxAge} expiry measures it. A request made sooner\n\t * waits until then. Carried as milliseconds like {@link Info.maxAge}.\n\t */\n\tinterval: Duration | null;\n}\n\n/**\n * What an author supplies to create a track: any {@link Info} field. `compression` defaults to\n * `\"none\"`, `timescale` to `null`, `refresh` to never, `priority` to `0`, and `maxAge` to\n * zero. A received {@link Info} serves onward unchanged.\n */\nexport interface InfoInit extends Partial<Omit<Info, \"refresh\">> {\n\t/**\n\t * When a reader asks for a new group; see {@link Info.refresh}. An omitted field is `null`.\n\t * The interval is rounded up to a whole millisecond like {@link maxAge}.\n\t */\n\trefresh?: Partial<Refresh>;\n\t/**\n\t * The publisher max age; see {@link Info.maxAge}. Omitted is zero, so readers get only the\n\t * live edge; `null` sets no publisher limit (the wire omits it). A track whose readers reach\n\t * back for superseded groups sets it explicitly. Rounded up to a whole millisecond; a\n\t * negative or non-finite value, or one past `Number.MAX_SAFE_INTEGER`, is refused.\n\t */\n\tmaxAge?: Duration | null;\n}\n\n/**\n * Resolve an author's {@link InfoInit} into the {@link Info} a producer commits, validating each field.\n * @internal\n */\nexport function authoredInfo(init: InfoInit = {}): Info {\n\tif (init.compression !== undefined && init.compression !== \"none\" && init.compression !== \"deflate\")\n\t\tthrow new TypeError(`unknown compression: ${init.compression}`);\n\tconst maxAge = init.maxAge === undefined ? Duration.ZERO : init.maxAge;\n\treturn {\n\t\tcompression: init.compression ?? \"none\",\n\t\ttimescale: init.timescale == null ? null : Timescale(init.timescale),\n\t\tmaxAge: maxAge === null ? null : wireMillis(\"maxAge\", maxAge),\n\t\tpriority: priorityValue(init.priority ?? DEFAULT_PRIORITY),\n\t\trefresh: authoredRefresh(init.refresh),\n\t\t...(init.ietf === undefined ? {} : { ietf: init.ietf }),\n\t};\n}\n\nfunction priorityValue(value: number): number {\n\tif (!Number.isInteger(value) || value < -128 || value > 127) {\n\t\tthrow new RangeError(`priority must be an integer in -128..=127: ${value}`);\n\t}\n\treturn value;\n}\n\nfunction authoredRefresh(init: Partial<Refresh> = {}): Refresh {\n\tconst ratio = init.ratio ?? null;\n\tif (ratio !== null && (!Number.isInteger(ratio) || ratio < 0 || ratio > 0xffff_ffff)) {\n\t\tthrow new RangeError(`refresh ratio must be an integer in 0..2^32: ${ratio}`);\n\t}\n\tconst interval = init.interval == null ? null : wireMillis(\"refresh interval\", init.interval);\n\treturn { ratio, interval };\n}\n\n// Whether a track asks for new groups at all.\nfunction refreshes(refresh: Refresh): boolean {\n\treturn refresh.ratio !== null || refresh.interval !== null;\n}\n\n/** An explicitly included or excluded group key. @internal */\nexport type Bound = { included: bigint; excluded?: never } | { excluded: bigint; included?: never };\n\n/** Group limits for {@link Subscriber.withRange}; an omitted endpoint is unbounded. @internal */\nexport interface Groups {\n\t/** The first group boundary. */\n\tstart?: Bound;\n\t/** The last group boundary. */\n\tend?: Bound;\n}\n\n/**\n * A span of a track to deliver: from where {@link Range.start} places it through the group\n * containing `end`, a time in the track's timescale (a bare group start on a track without one).\n * Mirrors the Rust `Range`.\n *\n * Every range names whole groups: a subscription always starts at a group's first frame, since a\n * group is the unit of decodability, and an end includes its group. `{ start: 2n, end: 6n }`\n * delivers every group from the one containing time 2 through the one containing time 6. An end\n * before a time start is empty. Each end resolves at the hop that serves it, once, when the range\n * is placed.\n *\n * Each range carries its own priority and group order, so one subscription can ask for the live\n * edge urgently and backfill history in the background. Changing only those on a range already\n * live keeps where it started, both here and upstream.\n */\nexport interface Range {\n\t/** Where delivery starts; see {@link Start}. Omitted for the oldest group. */\n\tstart?: Start;\n\t/** Where delivery stops, as a time including its group, or onward when omitted. */\n\tend?: bigint;\n\t/**\n\t * Delivery priority relative to this session's other ranges (`-128..=127`, higher first).\n\t * Defaults to `0`.\n\t *\n\t * A group several ranges ask for goes out at the highest of their priorities. moq-lite before\n\t * 07 and moq-transport carry one priority per subscription: the highest among its ranges.\n\t */\n\tpriority?: number;\n\t/**\n\t * Which of this range's groups comes first, as the publisher sends them. Defaults to\n\t * `\"descending\"`. {@link Subscriber.recvGroup} returns the groups it holds in the order of its\n\t * most urgent ranges: newest first if any range at the highest priority asks for it.\n\t *\n\t * Carried by moq-lite 07 and moq-transport (fixed at subscribe time there, which takes the order\n\t * of the most urgent ranges); older moq-lite versions are served newest first whatever this\n\t * says. A relay serving ranges of both orders at one priority from one upstream subscription asks\n\t * newest first, keeping its live subscribers fresh, and still serves each subscriber in its own\n\t * order.\n\t */\n\torder?: Order;\n}\n\n/**\n * Where a {@link Range} starts, the `Start` Anchor on the moq-lite wire. Mirrors the Rust `Start`:\n *\n * - omitted, the oldest group the publisher still holds: a floor for history, whose groups are\n * delivered in full, bounded only by how long the publisher keeps them ({@link Info.maxAge}).\n * - a time, the group containing it: the newest one starting at or before it, unless that group\n * ended whole at or before the time ({@link GroupProducer.finishAt}): a time past a whole group's\n * span lies in a pause no group contains, so the range starts at the next group. A floor for\n * history, like an omitted start: its groups never go stale. A time resolves at the hop that\n * serves it, from the starts of the groups it holds. When none does, a hop whose fill handler\n * serves its history asks it for the group containing the time (see {@link FillGroups.floor}),\n * reading nothing until it answers; otherwise, or when the handler can't tell, it reaches back to\n * the oldest group. While no group is held at all it waits for one, reading only the groups from\n * its time meanwhile. A relay copy that can't tell which group contains a time asks its upstream\n * and waits for the answer.\n * - `{ live }`, a live join `min` behind the live edge, whose groups go stale `max` behind it; see\n * {@link Live}.\n */\nexport type Start = bigint | { live: Live };\n\n/**\n * A live join: where it starts behind the live edge, and how long its groups stay worth\n * delivering. Mirrors the fields of the Rust `Start::Live`. Each is rounded up to a whole\n * millisecond, as the wire carries it; a negative or non-finite one, or one past\n * `Number.MAX_SAFE_INTEGER` milliseconds after rounding, is refused. moq-lite before 07 and\n * moq-transport cannot carry a live join, so it goes out as an omitted start there, under the one\n * subscription-wide max age those wires carry instead.\n *\n * Only a group reached through a live join alone can go stale. A group several ranges cover takes\n * the largest `max` among them, and never goes stale while any history range covers it.\n */\nexport interface Live {\n\t/**\n\t * How far behind the live edge to join: the group containing the live edge minus this lag, so a\n\t * player's buffer arrives full instead of filling in real time, and zero starts at the latest\n\t * group; `null` sets no lag limit, so the join reaches back past every group and takes each one\n\t * `max` still allows. The hop serving it measures the live edge in media time, from the newest frame it holds,\n\t * rounded up to whole ticks, and on a scale-less track by arrival on its own clock. It resolves\n\t * that time as a time start would, so a publisher looks it up in its history; `max` does not\n\t * move it. A relay copy forwards each join to its upstream as its own range and starts it where\n\t * that range's answer does. A range resolves once, so a live edge that moves later moves nothing\n\t * already started.\n\t */\n\tmin: Duration | null;\n\t/**\n\t * How long a superseded group stays worth delivering, measured from the live edge by the same\n\t * two clocks as {@link Info.maxAge}: it is skipped once its successor arrived this long ago or\n\t * starts this far behind the live edge, and never past the publisher's {@link Info.maxAge}.\n\t * Omitted means `0`, skipping a superseded group at once, timed or not; `null` sets no\n\t * subscriber limit, so the publisher's {@link Info.maxAge} alone bounds it. A larger budget\n\t * tolerates that much reordering before giving up, and never adds delay. Read in order, see\n\t * {@link Ordered} for where a long one can block. A `max` below `min` skips the join's own\n\t * oldest groups.\n\t *\n\t * Changing only `max` on a range already live, with {@link Subscriber.update}, keeps where it\n\t * joined, both here and upstream. Enforced at both ends: the publisher skips what the most\n\t * tolerant subscriber's budget convicts, and each subscriber applies its own again as it reads.\n\t */\n\tmax?: Duration | null;\n}\n\n/**\n * Per-subscription options, requested when a subscription opens and adjustable later via\n * {@link Subscriber.update}. Mirrors the Rust `Subscription`.\n * The obsolete `delay`, `maxAge`, and `maxDelay` fields are refused at runtime: a live range's\n * {@link Live.max} replaces them.\n */\nexport interface Subscription {\n\t/**\n\t * The spans of the track to deliver; see {@link Range}.\n\t *\n\t * Defaults to one range from `{ live: { min: Duration.ZERO } }`: the latest group, skipping each\n\t * the moment a newer one arrives. An empty list asks for nothing. A range whose start is a time\n\t * or omitted is history, delivered in full; a live join's {@link Live.max} skips what inside it\n\t * has gone stale. A read whose ranges all end finishes once nothing in them is left to deliver,\n\t * as in Rust, while one left open follows the live edge.\n\t *\n\t * A request to the publisher, aggregated across every live subscriber as the union of their\n\t * ranges, and this subscriber's read filter: it reads only the groups its own ranges cover,\n\t * whatever another subscriber widens the union to.\n\t */\n\tranges?: Range[];\n\t/**\n\t * The group each live join among {@link ranges} was already placed at, by its index there: a\n\t * route switch asks a new copy for a join an earlier copy placed, which starts at that group as a\n\t * time start would and still goes stale past its max. Its lag places nothing. moq-lite-07 carries\n\t * one as a `Joined` start; older wires as a time start under the one max age, which takes its\n\t * max. Mirrors the Rust `Subscription::placed`.\n\t * @internal\n\t */\n\tplaced?: ReadonlyMap<number, bigint>;\n}\n\n/**\n * Which of a subscription's groups comes first, as the publisher sends its pending groups and\n * {@link Subscriber.recvGroup} hands out the groups it holds: `\"descending\"` (newest first, so\n * congestion sheds the backlog rather than the live edge) or `\"ascending\"` (oldest first, draining\n * a backlog in sequence order).\n *\n * An order only: it never decides whether a group is delivered. A history range\n * delivers every group it covers, and a live join skips what its {@link Live.max} judges stale, so\n * an ascending subscriber that wants a backlog drains it from a history range or a `max` that\n * covers it.\n */\nexport type Order = \"ascending\" | \"descending\";\n\n/** Constructors for {@link Subscription}. */\nexport const Subscription: {\n\t/**\n\t * The default subscription, used when none is passed: one range joining at the latest group at\n\t * priority `0`, newest first, which skips a superseded group at once. Mirrors the Rust\n\t * `Subscription::default()`.\n\t */\n\tdefault(): Subscription;\n} = {\n\tdefault: () => ({ ranges: [latest()] }),\n};\n\n// The default range: a live join at the latest group, skipping each the moment a newer one\n// arrives. Mirrors the Rust `Start::LATEST`.\nfunction latest(): Range {\n\treturn { start: { live: { min: Duration.ZERO, max: Duration.ZERO } } };\n}\n\n// Materialize the defaults at the model boundary so every layer observes a complete\n// subscription rather than interpreting an omitted field differently.\nfunction subscriptionDefaults(subscription: Subscription = Subscription.default()): Subscription {\n\tif (\"delay\" in subscription || \"maxAge\" in subscription || \"maxDelay\" in subscription) {\n\t\tthrow new TypeError(\"Subscription delay, maxAge, and maxDelay are unsupported; use a live range's max\");\n\t}\n\tif (\"groups\" in subscription) throw new TypeError(\"Subscription groups is unsupported; use ranges\");\n\t// Refused rather than ignored, so a caller still setting them learns they moved onto each range.\n\tif (\"priority\" in subscription || \"order\" in subscription)\n\t\tthrow new TypeError(\"Subscription priority and order are unsupported; set them on each range\");\n\tconst out: Subscription = {\n\t\tranges: subscription.ranges === undefined ? [latest()] : rangesOf(subscription.ranges),\n\t};\n\tif (subscription.placed !== undefined && subscription.placed.size > 0) out.placed = subscription.placed;\n\treturn out;\n}\n\n/**\n * A request for a track the peer wants, delivered to the publishing wire layer.\n *\n * Created internally by the broadcast when a subscription (or info lookup) needs a track\n * served; answer it with {@link accept} or {@link reject}.\n *\n * @internal\n */\nexport class Request {\n\t/** The requested track name. */\n\treadonly name: string;\n\t/** Whether it asks for the track's metadata copy, each frame's header alone, rather than its payload. @internal */\n\treadonly meta: boolean;\n\n\t#producer: Producer;\n\t#pending: Set<Request>;\n\t#lookups?: TrackRequestOptions[\"lookups\"];\n\n\tprivate constructor(options: TrackRequestOptions) {\n\t\tthis.name = options.name;\n\t\tthis.meta = options.meta ?? false;\n\t\tthis.#producer = options.producer;\n\t\tthis.#pending = options.pending;\n\t\tthis.#lookups = options.lookups;\n\t\tthis.#pending.add(this);\n\t}\n\n\tstatic {\n\t\thooks.makeRequest = (options) => new Request(options);\n\t\thooks.stageRequest = (request, info) => request.#stage(info);\n\t\thooks.keepRequest = (request) => {\n\t\t\tif (request.#lookups) request.#lookups.opened = false;\n\t\t};\n\t}\n\n\t/** Watch the subscribers and info lookups waiting for this request. */\n\tdemand(): Demand {\n\t\treturn this.#producer.demand();\n\t}\n\n\t/** The aggregate subscription requested for this track, one-shot fetches included. */\n\tget subscription(): Readonly<Subscription> {\n\t\treturn hooks.requested(this.#producer).peek() ?? subscriptionDefaults();\n\t}\n\n\t/** The subscriber's priority for this track: the highest any range asks. */\n\tget priority(): number {\n\t\treturn rangesPolicy(this.subscription.ranges ?? []).priority;\n\t}\n\n\t/**\n\t * Accept the request, committing the track's immutable {@link Info}; an omitted `maxAge` is\n\t * zero, the live edge only. Throws, rejecting the request, if `info` is invalid.\n\t */\n\taccept(info: InfoInit = {}): Producer {\n\t\treturn this.#stage(info).commit();\n\t}\n\n\t#stage(info: InfoInit): StagedTrack {\n\t\tthis.#pending.delete(this);\n\t\tconst producer = this.#producer;\n\t\treturn {\n\t\t\tproducer,\n\t\t\tcommit: () => {\n\t\t\t\ttry {\n\t\t\t\t\treturn producer.accept(info);\n\t\t\t\t} catch (err) {\n\t\t\t\t\t// Refused, so its subscribers see the error instead of waiting on an open request.\n\t\t\t\t\thooks.abortTrack(producer, err instanceof Error ? err : new Error(String(err)));\n\t\t\t\t\tthrow err;\n\t\t\t\t}\n\t\t\t},\n\t\t};\n\t}\n\n\t/** Reject the request with the error its subscribers receive. */\n\treject(err: Error): void {\n\t\tthis.#pending.delete(this);\n\t\thooks.abortTrack(this.#producer, err);\n\t}\n}\n\n/** Options for {@link Consumer.info}. */\nexport interface InfoOptions {\n\t/** Abandons the lookup, rejecting with the signal's reason; aborting after it resolves has no effect. */\n\tsignal?: AbortSignal;\n}\n\n/** Options for {@link Subscriber.refresh}. */\nexport interface RefreshOptions {\n\t/**\n\t * Withdraws this caller's request if it is not sent yet, rejecting with the signal's reason.\n\t * An already-aborted signal rejects before anything is asked, and aborting after it resolves\n\t * has no effect.\n\t */\n\tsignal?: AbortSignal;\n}\n\n/** Options for {@link Consumer.fetchGroup}. */\nexport interface FetchGroupOptions {\n\t/** Delivery priority for the fetch stream. Defaults to `0`. */\n\tpriority?: number;\n\n\t/**\n\t * Abandons this fetch, rejecting with the signal's reason. Concurrent fetches of the same\n\t * group share one stream, cancelled only once every caller has left. An already-aborted\n\t * signal rejects before anything is sent, and aborting after the group resolves has no\n\t * effect; close the group instead.\n\t */\n\tsignal?: AbortSignal;\n}\n\n/**\n * A lazy handle to a track on a consumed broadcast.\n *\n * @public\n */\nexport class Consumer {\n\t/** The track name. */\n\treadonly name: string;\n\n\t#broadcast: BroadcastWire;\n\n\tprivate constructor(name: string, broadcast: BroadcastWire) {\n\t\tthis.name = name;\n\t\tthis.#broadcast = broadcast;\n\t}\n\n\tstatic {\n\t\tregisterTrackConsumer((name, broadcast) => new Consumer(name, broadcast));\n\t}\n\n\t/**\n\t * Open a live subscription to the track.\n\t *\n\t * It reads only the groups its {@link Subscription.ranges} cover. A live range's\n\t * {@link Live.max} is what asks for data: delivery skips every group it reached that the max\n\t * convicts. Without options this is {@link Subscription.default}, one live range whose max of\n\t * zero delivers only the latest group; a larger max reaches back over what it can still use,\n\t * and a history range (a key start) delivers every group the publisher's {@link Info.maxAge}\n\t * still considers fresh.\n\t */\n\tsubscribe(options?: Subscription): Subscriber {\n\t\treturn this.#broadcast.subscribe(this.name, options);\n\t}\n\n\t/**\n\t * Fetch the track's immutable publisher properties without subscribing. It waits for as long\n\t * as the publisher takes to answer: abort `options.signal` to give up.\n\t */\n\tinfo(options?: InfoOptions): Promise<Info> {\n\t\tconst signal = options?.signal;\n\t\tif (!signal) return this.#broadcast.resolveTrackInfo(this.name);\n\t\tif (signal.aborted) return Promise.reject(signal.reason);\n\t\t// Held only until the answer, so the signal abandons the lookup but never keeps the track.\n\t\tconst answered = new AbortController();\n\t\treturn this.#broadcast\n\t\t\t.resolveTrackInfo(this.name, AbortSignal.any([signal, answered.signal]))\n\t\t\t.finally(() => answered.abort());\n\t}\n\n\t/** Fetch a single group by key without holding a live subscription. */\n\tfetchGroup(key: bigint, options?: FetchGroupOptions): Promise<GroupConsumer> {\n\t\ttry {\n\t\t\tcheckKey(key);\n\t\t} catch (err) {\n\t\t\treturn Promise.reject(err);\n\t\t}\n\t\tif (!this.#broadcast.fetchGroup) {\n\t\t\treturn Promise.reject(new Error(\"fetch group is not supported by this session's version\"));\n\t\t}\n\t\treturn this.#broadcast.fetchGroup(this.name, key, options);\n\t}\n}\n\n// What a subscriber asks fills about keys its reader owes but does not read: the keys asked about\n// last, the part of them a fill took, the part given up as stale with the budget each was judged\n// under, and the asker its fills know it by.\ntype KeptOut = { asker: Asker; unproven: Run[]; asked: Run[]; stale: (Run & { budget: number })[] };\n\n// Record `[start, end)` as given up under `budget` in sorted, disjoint `stale`, replacing what it\n// overlaps.\nfunction insertStale(stale: (Run & { budget: number })[], start: bigint, end: bigint, budget: number): void {\n\tconst kept = removeRun(stale, start, end);\n\tkept.splice(runsFrom(kept, start), 0, { start, end, budget });\n\tstale.splice(0, stale.length, ...kept);\n}\n\n// What `kept` needs not ask again: what a fill took, and what it gave up as stale.\nfunction keptDone(kept: KeptOut): Run[] {\n\tconst done = [...kept.asked];\n\tfor (const run of kept.stale) insertRun(done, run.start, run.end);\n\treturn done;\n}\n\n// The parts of sorted, disjoint `runs` inside `[start, end)`.\nfunction intersect(runs: readonly Run[], start: bigint, end: bigint): Run[] {\n\tconst found: Run[] = [];\n\tfor (let i = runsFrom(runs, start); i < runs.length && runs[i].start < end; i++)\n\t\tfound.push({ start: max(runs[i].start, start), end: min(runs[i].end, end) });\n\treturn found;\n}\n\n// How many runs a sink's `lost` keeps apart before folding them into one span.\nconst LOST_KEPT = 16;\n\n// Record that `sink`'s timeline lost group `key`, or gained it or saw it start below its newest, for its\n// reader's fill probe: each moves the reach of the keys below it.\nfunction lose(sink: TrackState, key: bigint, end = key + 1n): void {\n\tconst lost = sink.lost;\n\tif (!lost) return;\n\tinsertRun(lost, key, end);\n\tif (lost.length > LOST_KEPT) lost.splice(0, lost.length, { start: lost[0].start, end: (lost.at(-1) as Run).end });\n\tsink.lostChanged.update((revision) => revision + 1);\n}\n\n// Take a group's mirror out of `sink`, so its subscriber can no longer receive it.\nfunction unlinkMirror(sink: TrackState, mirror: GroupConsumer): void {\n\tsink.groups.mutate((groups) => {\n\t\tconst i = groups.indexOf(mirror);\n\t\tif (i >= 0) groups.splice(i, 1);\n\t});\n\tconst index = lowerBound(sink.timeline, mirror.start);\n\tif (sink.timeline[index] === mirror) sink.timeline.splice(index, 1);\n\tlose(sink, mirror.start);\n}\n\ntype Keyed = bigint | { start: bigint };\n\n// The index of the first of the start-sorted `items` at or after `key`.\nfunction lowerBound(items: readonly { start: bigint }[], key: bigint): number {\n\tlet lo = 0;\n\tlet hi = items.length;\n\twhile (lo < hi) {\n\t\tconst mid = (lo + hi) >>> 1;\n\t\tif (items[mid].start < key) lo = mid + 1;\n\t\telse hi = mid;\n\t}\n\treturn lo;\n}\n\n// The index of the first of the sorted `keys` at or after `key`. Kept apart from `lowerBound`\n// so each search stays monomorphic: one loop over both shapes halves its speed.\nfunction keyIndex(keys: readonly bigint[], key: bigint): number {\n\tlet lo = 0;\n\tlet hi = keys.length;\n\twhile (lo < hi) {\n\t\tconst mid = (lo + hi) >>> 1;\n\t\tif (keys[mid] < key) lo = mid + 1;\n\t\telse hi = mid;\n\t}\n\treturn lo;\n}\n\nfunction keyOf(item: Keyed): bigint {\n\treturn typeof item === \"bigint\" ? item : item.start;\n}\n\nfunction sortedIndex(items: readonly Keyed[], key: bigint): number {\n\treturn typeof items[0] === \"bigint\"\n\t\t? keyIndex(items as bigint[], key)\n\t\t: lowerBound(items as { start: bigint }[], key);\n}\n\n// Add `item` to the key-sorted `items`, replacing any with the same key. Items usually\n// arrive in order, so the append is checked first.\nfunction sortedInsert<T extends Keyed>(items: T[], item: T): void {\n\tconst key = keyOf(item);\n\tconst last = items.at(-1);\n\tif (last === undefined || keyOf(last) < key) {\n\t\titems.push(item);\n\t\treturn;\n\t}\n\tconst index = sortedIndex(items, key);\n\tif (keyOf(items[index]) === key) items[index] = item;\n\telse items.splice(index, 0, item);\n}\n\n// Remove the item with `key` from the key-sorted `items`, if there.\nfunction sortedRemove(items: Keyed[], key: bigint): void {\n\tconst index = sortedIndex(items, key);\n\tif (index < items.length && keyOf(items[index]) === key) items.splice(index, 1);\n}\n\n// Add a group to a sink's key-sorted unread buffer, after any group with the same\n// key, as a stable sort would. Checked for the usual in-order append first, so neither a\n// replayed cache nor a growing backlog re-sorts the buffer on every arrival.\nfunction bufferInsert(groups: GroupConsumer[], group: GroupConsumer): void {\n\tconst last = groups.at(-1);\n\tif (!last || last.start <= group.start) groups.push(group);\n\telse groups.splice(lowerBound(groups, group.start + 1n), 0, group);\n}\n\n// How many keys just below `key` the publisher declared it never produced: the skip run that\n// ends at `key`. Mirrors the Rust `TrackState::skipped_below`.\nfunction skippedBelow(state: TrackState, key: bigint): bigint {\n\tif (key === 0n) return 0n;\n\tconst run = state.drops.at(key - 1n);\n\treturn run?.reason === \"skip\" ? key - run.start : 0n;\n}\n\n// Where the run of keys from `key` that no group can arrive at ends: a skip, or with `dropped` a\n// drop given up for good, undefined for neither. Mirrors the Rust `TrackState::hole_end`.\nfunction holeEnd(drops: DropSet, key: bigint, dropped: boolean): bigint | undefined {\n\tconst run = drops.at(key);\n\tif (!run) return undefined;\n\treturn run.reason === \"skip\" || (dropped && run.maxAge === undefined) ? run.end : undefined;\n}\n\n// The first key of `runs`, lowest first, that `end` says no hole covers: each hole it names is\n// stepped past whole. Mirrors the Rust `first_open`.\nfunction firstOpen(runs: readonly Run[], end: (key: bigint) => bigint | undefined): bigint | undefined {\n\tlet floor = 0n;\n\tfor (const run of runs) {\n\t\tlet key = max(run.start, floor);\n\t\twhile (key < run.end) {\n\t\t\tconst past = end(key);\n\t\t\tif (past === undefined) return key;\n\t\t\tkey = past;\n\t\t}\n\t\tfloor = key;\n\t}\n\treturn undefined;\n}\n\n// The shared state behind a Producer / Subscriber pair. Package-internal\n// wiring, unexported so it never appears in the published type declarations.\nclass TrackState {\n\t/** The producer fanning into this sink, so a subscriber can mint a sibling of itself. */\n\tproducer?: Producer;\n\t/** This sink's reader as the producer's fills know it, once it asked one. */\n\tasker?: Asker;\n\t/** The same for the kept-out keys its reader asks about (see `KeptOut`), once it asked. */\n\tkeptOut: Asker[] = [];\n\t/**\n\t * Whether this sink's reader will still read group `key`: only a buffered group it will\n\t * read keeps its source wanted. Set once the reader exists.\n\t */\n\treads?: (key: bigint) => boolean;\n\tgroups = new Signal<GroupConsumer[]>([]);\n\t// How many groups were mirrored in, whatever this sink reads: one arriving after its reader\n\t// ran out is still in flight below the end.\n\tarrived = 0;\n\t// Keys the upstream publisher gave up, with why: an incoming SUBSCRIBE_SKIP or\n\t// SUBSCRIBE_DROP, or a producer cut. Kept apart from the cache so reclaim cannot\n\t// erase a disposition a downstream publisher still has to forward, and as runs so a wide\n\t// DROP costs one entry. A sink shares its producer's, which the pool's idle window forgets.\n\tdrops = new DropSet();\n\t// The runs this sink's own fills refused, which it reads as given up beside `drops`.\n\trefused = new Signal<readonly DropRun[]>([]);\n\t// Every group still in the producer's replay cache, including groups this\n\t// subscriber already consumed, sorted by key. Drift anchors have the same\n\t// lifetime as content. Sorted so the latency guard, evaluated per group and per\n\t// arrival, searches it instead of scanning the whole retained window.\n\ttimeline: GroupConsumer[] = [];\n\t// The groups `timeline` lost since this sink's reader last probed its fills (evicted, withheld,\n\t// or failed), or gained or started below its newest, which its probe judges again; undefined until\n\t// it first probes. Past LOST_KEPT runs they fold into the span covering them all, judged again whole.\n\tlost?: Run[];\n\t// Bumped whenever `lost` records a group, so a parked read probes its fills again.\n\tlostChanged = new Signal(0);\n\t// First timestamps mutate group state rather than track state, so held groups\n\t// watch this revision as well as arrivals when enforcing latency after handoff.\n\ttimelineChanged = new Signal(0);\n\t// A copy received over a wire without ranges: see `hooks.dropAnchors`.\n\tdropsAnchors = new Signal(false);\n\t// Frames wake the key cursor only while an owed hole holds it.\n\twaitingOrdered = false;\n\t// The time starts its reader waits on that it counts in the producer's demand, and the live\n\t// joins it waits on; see `countAsks`.\n\tasks: bigint[] = [];\n\tjoins: JoinAsk[] = [];\n\t// The stable callback its reader registers for each outstanding time start.\n\trefuseTime?: (time: bigint, error: Error) => void;\n\t// One-shot group reads need FETCH, even when metadata has not reported a live edge. A failed\n\t// fill answer is a fetch's outcome, as a Rust fetch hears its fill's, so it is not withheld.\n\tfetch = false;\n\t// Bumped when a wire subscription declares or resolves where its live feed starts, so a\n\t// publisher holding its first group for that answer wakes.\n\tstartChanged = new Signal(0);\n\tlatest?: bigint;\n\t// One past the highest group received, including evicted content.\n\treceived = new Signal(0n);\n\t/**\n\t * The declared end, by {@link Producer.finishAt} or a clean close at the head of the key after\n\t * the highest produced. Mirrors the Rust `End`.\n\t */\n\tend = new Signal<End | undefined>(undefined);\n\t// A wire subscription's pending tail still owes a group below the end, so reaching the\n\t// end does not end readers yet. Mirrors the Rust `awaits_tail`.\n\towed = new Signal(false);\n\tclosed = new Once<Error | null>();\n\t// The abort that closed the track after its declared end settled, which ends readers cleanly:\n\t// it still says the route failed, so a group it closed short may hold more on another route.\n\t// Mirrors the Rust `Outcome::Aborted` keeping its error past a settled end.\n\taborted?: Error;\n\t// The producer's outcome, settled by its close or by a reached and settled end, whichever\n\t// is first. Only the producer's own state uses it.\n\toutcome = new Once<Error | null>();\n\tupdate: Prefs;\n\t/** Resolved once the producer commits the immutable properties. */\n\tinfo = new Signal<Info | undefined>(undefined);\n\t/** Newest group head, frame, or location reported by the publisher. */\n\tlargest = new Signal<Position | undefined>(undefined);\n\t// The group {@link largest} first named, where a live join resolved before any group\n\t// existed starts.\n\tfirst?: bigint;\n\t// Set once {@link largest} can no longer advance while the track stays open.\n\tlargestEnded = new Signal(false);\n\t// An aborted copy stays open, since the group can be recreated or fetched.\n\tlargestGroup: \"open\" | \"finished\" | \"skipped\" = \"open\";\n\n\tconstructor(subscription?: Subscription) {\n\t\tthis.update = new Prefs(subscription === undefined ? undefined : subscriptionDefaults(subscription));\n\t}\n}\n\n// A track's declared end. Mirrors the Rust `End`.\ntype End = {\n\t// The exclusive end: no frame at or past it exists.\n\tat: Position;\n\t// A received end, declared ahead of the group streams below it that QUIC may deliver in any\n\t// order: readers wait for a hole below it to fill, or for the track to close, rather than end\n\t// at the boundary with groups still to arrive. Once the subscription feeding the copy ends\n\t// cleanly (`settled`), nothing is owed and readers end at the boundary. `local` on a local\n\t// track, which owes no tail. Mirrors the Rust `End::tail`.\n\ttail: \"local\" | \"pending\" | \"settled\";\n};\n\n// The wire subscription feeding a received copy, and what it declared. Ending the subscription\n// drops it whole, so nothing it declared outlives it.\ntype Wire = {\n\t// How its start bounds the fills readers ask below it.\n\tstarts: FillStarts;\n\t// Keys this feed gave up on its own subscription, eligible for a fill.\n\tdropped?: Run[];\n\t// The first group its live feed serves (see `hooks.startTrack`), unset until its START\n\t// resolves it, null for a resolved-empty range, and the floor its SUBSCRIBE requested.\n\t// `resolved` when the publisher placed the start itself, whatever the wire, and `restated` once\n\t// an update had it placed afresh (see `hooks.restateTrack`).\n\tserved?: {\n\t\tstart?: bigint | null;\n\t\trequested?: bigint;\n\t\tresolved?: boolean;\n\t\trestated?: boolean;\n\t\tfeed?: readonly Run[];\n\t};\n\t// Its upstream said where the live feed is (see `hooks.answerEdge`).\n\tedge?: true;\n};\n\n// Settle a track state's closed Once. Idempotent: Once.set throws on a second settle, and a\n// Producer closing its sinks races the Subscriber closing itself (the sink is only removed from\n// #sinks a microtask later, via the closed subscription below).\nfunction closeTrackState(state: TrackState, abort?: Error): boolean {\n\tif (state.closed.peek() !== undefined) return false;\n\tstate.closed.set(abort ?? null);\n\treturn true;\n}\n\n// Resolve the track's immutable publisher properties, or reject if it closes first.\n// On a producer this resolves once info is committed (at accept time); on a consumer\n// once the wire layer commits the properties it received (TRACK_INFO on lite-05+,\n// SUBSCRIBE_OK on moq-transport) or an untimed default (older lite drafts), so awaiting it\n// never yields a placeholder.\nasync function resolveInfo(state: TrackState): Promise<Info> {\n\tfor (;;) {\n\t\tconst info = state.info.peek();\n\t\tif (info) return info;\n\n\t\tconst closed = state.closed.peek();\n\t\tif (closed instanceof Error) throw closed;\n\t\tif (closed !== undefined) throw new Error(\"track closed before info was known\");\n\n\t\tawait Signal.race(state.info, state.closed);\n\t}\n}\n\n// Whether `a` is past `b`.\nfunction after(a: Position, b: Position): boolean {\n\treturn a.group > b.group || (a.group === b.group && a.frame > b.frame);\n}\n\n// A source group retained in the producer cache, with the mirror handed to each sink\n// so eviction can drop them together, and its last access, which the cache pool ages it by.\n// `arrived` is when the group joined this track, which its mirrors age a predecessor from.\n// `bound` is its first frame's timestamp once checked to fit between its neighbors', which\n// bounds theirs; `unverified` marks one accepted below the eviction watermark instead.\n// `fetched` marks one a fill answered, which the feed never promised.\ntype CachedGroup = {\n\tgroup: GroupProducer;\n\tcharge: cache.Charge;\n\tmirrors: Map<TrackState, GroupConsumer>;\n\tarrived: Instant;\n\tbound?: Timestamp;\n\tunverified?: boolean;\n\tfetched?: boolean;\n};\n\n// A live group the cache let go of, which the group below it is still judged by: when it arrived,\n// and where it started presenting. Mirrors the Rust `Departed`.\ninterface Departed {\n\tstart: bigint;\n\tarrived: Instant;\n\tfirst?: Timestamp;\n}\n\n// A group's checked start, kept by key.\ninterface CheckedStart {\n\tstart: bigint;\n\tfirst: Timestamp;\n}\n\n// A fresh read handle on a group the producer still caches; assigned in its static block.\nlet cachedMirror: (producer: Producer, key: bigint, from: number) => GroupConsumer | undefined;\nlet cachedSource: (producer: Producer, key: bigint) => GroupProducer | undefined;\n// Whether the producer still caches a group that has not failed, with `whole` only one held from\n// its first frame; assigned in its static block.\nlet cachedHolds: (producer: Producer, key: bigint, whole?: boolean) => boolean;\n// Whether the producer is a copy a session receives, whose handler fetches by group alone.\nlet receivedCopy: (producer: Producer) => boolean;\n// The keys in `[start, end)` the producer caches, unsorted, costing the smaller of the span\n// and the cache; assigned in its static block.\nlet cachedIn: (producer: Producer, start: bigint, end: bigint) => bigint[];\n// When the latest group the producer caches in `[start, end)` landed, undefined when it caches\n// none; assigned in its static block.\nlet cachedLanded: (producer: Producer, start: bigint, end: bigint) => Instant | undefined;\n// Mirror the cached groups in `[start, end)` that `offer` accepts into a sink again, cut ones\n// included as a fresh sink gets them, for a reader whose floor moved below them; assigned in\n// the producer's static block.\nlet reofferCached: (\n\tproducer: Producer,\n\tsink: TrackState,\n\tstart: bigint,\n\tend: bigint,\n\toffer: (key: bigint) => boolean,\n) => void;\n// Mirror the cached groups at `keys` into a sink again, for a reader whose budget widened\n// past the one it skipped them under; assigned in the producer's static block.\nlet reofferKeys: (producer: Producer, sink: TrackState, keys: readonly bigint[]) => void;\n// Whether a group may still land on the producer's live feed; assigned in its static block.\nlet mayLand: (producer: Producer, land: Land) => boolean;\nlet provenOf: (producer: Producer) => boolean;\n// Take a sink that just became a fetch out of the producer's live aggregate; assigned in its\n// static block.\nlet unlive: (producer: Producer, sink: TrackState) => void;\n// Count a wire fetch's sink in no demand while it reads only history, or in it again; assigned in\n// its static block.\nlet apart: (producer: Producer, sink: TrackState, history: boolean) => void;\n// Where a session's live feed starts owing groups, if known: it owes none below.\nlet feedFloor: (producer: Producer) => bigint | undefined;\nlet owedRuns: (producer: Producer, start: bigint, end: bigint) => Iterable<Run & { folds?: Instant }>;\n// What the live ranges can still deliver, even below their aggregate START when demand widened.\nlet unsettledFeedRuns: (producer: Producer, start: bigint, end: bigint) => IterableIterator<Run>;\n// Whether a wire subscription feeds the producer, so it owes every group it has not accounted for.\nlet wireFed: (producer: Producer) => boolean;\nlet owedGroup: (producer: Producer, start: bigint, end: bigint) => { key: bigint; folds?: Instant } | undefined;\n// The runs of `[start, end)` the feed has yet to account for, as #owedRuns finds them, but on a\n// local producer too, whose ledger waits for its gaps the same way: a key that arrived, was\n// evicted, or was given up and since forgotten is accounted. Mirrors the Rust `TrackState::unfed`.\nlet awaitedRuns: (producer: Producer, start: bigint, end: bigint) => Iterable<Run & { folds?: Instant }>;\nlet fillEdge: (producer: Producer) => bigint | undefined;\nlet scopedDrops: (producer: Producer) => readonly Run[];\nlet sourceStart: (producer: Producer) => bigint | \"pending\" | undefined;\n// The first group the producer's feed vouches for; see `Producer.#vouchedFeed`.\nlet vouchedFeed: (producer: Producer) => bigint | \"pending\" | undefined;\nlet knowsEdge: (producer: Producer) => boolean;\n// The lowest group a reader naming `named` asks a fill for; see `Producer.#fillFloor`.\nlet fillFloor: (producer: Producer, named: bigint | undefined) => bigint | undefined;\n// The keys of the groups the producer caches, sorted: what time starts and live joins resolve\n// against, as the Rust `TrackState::lookup` keys; assigned in its static block.\nlet keysOf: (producer: Producer) => readonly bigint[];\n// The live groups the producer's cache let go of, sorted by key, and the newest one with its newest\n// frame; assigned in its static block.\nlet departedOf: (producer: Producer) => readonly Departed[];\nlet departedEdge: (producer: Producer) => { key: bigint; latest: Timestamp } | undefined;\n// The span of the held group finished whole that holds `key` strictly past its start, undefined\n// when none does; assigned in its static block.\nlet wholeAround: (producer: Producer, key: bigint) => Run | undefined;\n// Where the held group at `key` ends, once finished whole; assigned in its static block.\nlet wholeAt: (producer: Producer, key: bigint) => bigint | undefined;\n// The runs of `[start, end)` outside every cached whole group's span; assigned in its static block.\nlet outsideSpans: (producer: Producer, start: bigint, end: bigint) => Run[];\n// The first time the held group at `key` can't place, undefined once it finished, and 0 with none\n// held. Mirrors the Rust `Slot::unplaced_from`; assigned in its static block.\nlet unplacedFromAt: (producer: Producer, key: bigint) => bigint | undefined;\n\n// The group a lookup's floor is past: the held one just below it, or a whole one ending there.\n// Assigned in its static block.\nlet belowFloor: (producer: Producer, floor: bigint) => { key: bigint; group: GroupProducer } | undefined;\n// The held group at or before `time` that doesn't place it yet: a frame past the time or the group\n// ending places it, changing only the group. Assigned in its static block.\nlet unplacingAt: (producer: Producer, time: bigint) => GroupProducer | undefined;\n\n// Whether the held group at `key` places `time`: finished, or holding a frame past it.\nfunction placesAt(producer: Producer, key: bigint, time: bigint): boolean {\n\tconst from = unplacedFromAt(producer, key);\n\treturn from === undefined || time < from;\n}\n// The first key past the group held at `key` that its own End does not give up: its End once whole,\n// even after the skip its GROUP_END recorded expired, else the next key. Mirrors the Rust\n// `TrackState::past_span`.\nfunction pastSpan(producer: Producer, key: bigint): bigint {\n\tconst end = wholeAt(producer, key);\n\treturn end === undefined ? key + 1n : max(end, key + 1n);\n}\n\n// Where a time start a reader looks up through a fill stands. Each way out places the time where the\n// origin would, whatever the cache holds meanwhile. Mirrors the Rust `Look`.\ntype Look =\n\t// The fill is out, or absent with no handler to answer. `below` is the group held just under the\n\t// floor when it was asked, the one the floor is past: should the fill find no group from the\n\t// floor, that group's span places the time.\n\t| { kind: \"asked\"; lookup?: Lookup; below?: { key: bigint; group: GroupProducer } }\n\t// Answered by a group starting below the time, or by none above `below`: that group's span places\n\t// the time, once it holds a frame past it or ends.\n\t| { kind: \"placing\"; probe: Probe };\n\n// A reader of the group whose span places a looked-up time. It takes each frame as it lands, reading\n// none, so a writer pacing on its readers goes on, and holds the group's End once the cache lets it\n// go. Mirrors the Rust `Probe`.\ninterface Probe {\n\tkey: bigint;\n\tgroup: GroupProducer;\n\treader: GroupConsumer;\n}\n\n// Where a range from `time` starts once the probed group places it, or the abort that left where it\n// ends unknown; undefined until then. Mirrors the Rust `Probe::poll`.\nfunction probed(probe: Probe, time: bigint): bigint | Error | undefined {\n\thooks.skipGroupFrames(probe.reader);\n\tconst from = hooks.groupUnplacedFrom(probe.group);\n\tif (from !== undefined && time >= from) return probe.group.closed.peek() ?? undefined;\n\treturn reached(probe.key, time, hooks.groupWholeEnd(probe.group));\n}\n\n// Stop a lookup: leave its fill, or close its probe.\nfunction leaveLook(stage: Look): void {\n\tif (stage.kind === \"asked\") stage.lookup?.leave();\n\telse stage.probe.reader.close();\n}\n\n// Where a range from `time` starts, the group at `key` being the newest starting at or before it and\n// `end` where it ended whole, if it did: there, unless it ended at or before the time, then at its\n// End, so at the next group, since no group contains a time past a whole group's span. A time at the\n// group's start names it whatever its End. Mirrors the Rust `reached`.\nfunction reached(key: bigint, time: bigint, end: bigint | undefined): bigint {\n\treturn end !== undefined && time > key && end <= time ? max(end, key + 1n) : key;\n}\n// How a received copy resolves its readers' time anchors, as its wire tells it; assigned in the\n// producer's static block. See `hooks.startsAtKeys` and `hooks.timeStarts`.\nlet timeAnchors: (producer: Producer) => {\n\tatKeys: boolean;\n\tstarts: ReadonlyMap<bigint, TimeStart>;\n\t/** How the publisher answered the newest range asking each live join, by {@link joinKey}. */\n\tjoins: ReadonlyMap<string, JoinAnswer>;\n\t/**\n\t * Whether a reader's live join places only where the publisher answered a range asking it: a\n\t * lite-07 copy, whose ranges carry each join, until its end is declared. See `hooks.answersJoins`.\n\t */\n\tanswersJoins: boolean;\n\t/** Whether the copy is final or its declared end settled, so its live edge is final. Walks the cache. */\n\tended: () => boolean;\n\t/** Bumped whenever the others, or whether the producer is a received copy, change. */\n\tplacing: number;\n};\n\n/**\n * How a received lite-07 copy's publisher answered the newest range asking one live join. Mirrors\n * the Rust `JoinAnswer`.\n */\ntype JoinAnswer = {\n\t/** The group the join starts at, undefined for nothing to deliver. */\n\tstart?: bigint;\n\t/**\n\t * The narrowest max the range was asked under before its answer, as a budget in milliseconds: a\n\t * relay answering it starts no lower than the groups its own copy's max age bound expired, a bound\n\t * that max may have set, so the start holds only for a reader within it.\n\t */\n\tbudget: number;\n\t/** When it was recorded: a reader that began waiting later takes only a newer answer, since the live edge moved on. */\n\ttick: number;\n};\n\n// A live join's lag in milliseconds, null for no lag limit, and end as one map key.\nfunction joinKey(min: number | null, end: bigint | undefined): string {\n\treturn `${min}:${end ?? \"\"}`;\n}\n\n/**\n * How a received copy's publisher answered the ranges asked from one time: `start`, the lowest\n * group one started at, and `past`, whether one was answered with no group at or before the time.\n * The publisher starts a history range at the group containing the time, or the oldest it holds\n * past it, so a start at or before the time is that group. A start past the time is where a range\n * from it starts: the time lies in the pause past a whole group, or no group at or before it is\n * left. No group to deliver says none at or before it is left. Mirrors the Rust `TimeStart`.\n */\ntype TimeStart = { start?: bigint; past: boolean };\n\n// Where `time` falls by what `reported` answered for it, undefined when no answer proves it.\n// Mirrors the Rust `TimeStart::containing`.\nfunction timeStartContaining(reported: TimeStart | undefined, time: bigint): Containing | undefined {\n\tif (reported?.start !== undefined && reported.start <= time) return { at: reported.start };\n\tif (!reported?.past) return undefined;\n\t// A start past the time is where a range from it starts: not before every group, since a whole\n\t// one before the time may end short of it, and the oldest group this copy holds says nothing.\n\treturn reported.start === undefined ? \"before\" : { at: reported.start };\n}\n\n// Whether a received copy's range asked from `time` had no group at or before it: the live feed\n// brings it none of the range's groups there. Assigned in the producer's static block. Mirrors the\n// Rust `TrackState::answered_empty`.\nlet answeredEmpty: (producer: Producer, time: bigint) => boolean;\n\n// Count `times`, each a time start a reader on a received lite-07 copy waits on, and `joins`, each\n// a live join it waits on, in the copy's demand instead of those `sink` counted: the session asks\n// its upstream to place each with a range of its own. Assigned in the producer's static block.\n// Mirrors the Rust `Asked::set`.\nlet countAsks: (producer: Producer, sink: TrackState, times: readonly bigint[], joins: readonly JoinAsk[]) => void;\n\n// The lowest key of `[start, end)` a received copy's live feed has not accounted for a reader, with\n// when its gap's grace folds; see `Producer.#unaccounted`. `settled` gives the runs of a gap that\n// reader has a verdict on. Unlike {@link mayLand}, a key below where the feed starts counts. Mirrors\n// the Rust `TrackState::unaccounted`.\nlet unaccounted: (\n\tproducer: Producer,\n\tstart: bigint,\n\tend: bigint,\n\tsettled: (start: bigint, end: bigint) => Run[],\n) => { folds?: Instant } | undefined;\n\n/** Whether two coverages hold the same groups and cap. */\nfunction sameCoverage(a: Coverage, b: Coverage): boolean {\n\tif (a === undefined || b === undefined) return a === b;\n\treturn (\n\t\ta.cap === b.cap &&\n\t\ta.runs.length === b.runs.length &&\n\t\ta.runs.every((run, i) => run.start === b.runs[i].start && run.end === b.runs[i].end)\n\t);\n}\n\n// A run of the drop set and the pool tick it outlives the idle window at.\ninterface Born extends Run {\n\texpires: number;\n}\n\n// Whether `a` and `b` give a key up alike, however each was folded in.\nfunction sameVerdict(a: DropRun, b: DropRun): boolean {\n\treturn sameHole({ ...a, received: undefined }, { ...b, received: undefined });\n}\n\n// The runs of `drops` and a reader's `refused` overlapping `[start, end)`, lowest first. A drop\n// that `settles` the reader, judged from where it meets `start`, hides the refusals it covers:\n// the track's verdict wins, as in Rust, but a stale one the reader rejects is no verdict for it.\nfunction givenUp(\n\tdrops: DropSet,\n\trefused: readonly DropRun[],\n\tstart: bigint,\n\tend: bigint,\n\tsettles: (run: DropRun) => boolean,\n): DropRun[] {\n\tconst found = drops.overlapping(start, end);\n\tif (refused.length === 0) return found;\n\tconst own = refused.filter((run) => run.start < end && start < run.end);\n\tconst hiding = found.filter((run) => settles({ ...run, start: max(run.start, start) }));\n\tfor (const run of subtractRuns(own, hiding)) found.push(run);\n\treturn found.sort((a, b) => (a.start < b.start ? -1 : a.start > b.start ? 1 : 0));\n}\n\n// Whether the live edge reached `end`, counting a gap up to it that was wholly given up, or a\n// received end's tail decides it instead: what it misses below is owed only while the feed may\n// still deliver it. Mirrors the Rust `TrackState::reaches`.\nfunction reaches(received: bigint, drops: DropSet, end: End, refused: readonly Run[] = []): boolean {\n\tif (end.tail !== \"local\") return true;\n\tconst final = finalKey(end.at);\n\tif (received >= final) return true;\n\tconst given: Run[] = [];\n\tfor (const run of [...drops.overlapping(received, final), ...refused]) insertRun(given, run.start, run.end);\n\treturn runGaps(given, received, final).length === 0;\n}\n\n// The parts of `drops` within `[start, end)`, each clipped there.\nfunction intersectDrops(drops: readonly DropRun[], start: bigint, end: bigint): DropRun[] {\n\tconst out: DropRun[] = [];\n\tfor (let i = runsFrom(drops, start); i < drops.length && drops[i].start < end; i++) {\n\t\tout.push({ ...drops[i], start: max(drops[i].start, start), end: min(drops[i].end, end) });\n\t}\n\treturn out;\n}\n\n// Actual object metadata outlives cached payloads, unlike empty group heads in model largest.\nlet objectLargest: (producer: Producer) => Position | undefined;\n// The budget a copy's upstream may judge a group too old under; see `Producer.#judging`.\nlet judgingOf: (producer: Producer) => number | undefined;\n// The fills serving the producer's misses; assigned in its static block.\nlet fillsOf: (producer: Producer) => FillState;\n\n// The key-order cursor lives inside `Subscriber` (it shares the group buffer and the\n// drift anchor with the arrival cursor), so `Ordered` reaches it through this bridge,\n// assigned in the class's static block.\nlet makeOrdered: (subscriber: Subscriber) => Ordered;\nlet ordered_: {\n\tnextGroup(subscriber: Subscriber): Promise<GroupConsumer | undefined>;\n\tnextItem(subscriber: Subscriber): Promise<Item | undefined>;\n\ttryItem(subscriber: Subscriber): ItemRecv;\n\treadFrame(subscriber: Subscriber): Promise<({ group: bigint; frame: number } & Frame) | undefined>;\n};\n\n// A pending request for a group past every key written. Mirrors the Rust `demand::Pending`.\ninterface PendingRefresh {\n\t// When it takes effect: at once, or once the track's refresh interval has passed.\n\tat: Instant;\n\t// {@link Subscriber.refresh} callers waiting for it to be sent. The last to abort before then\n\t// withdraws it, unless it is `kept`.\n\tcallers: number;\n\t// A join, a shed read, or a peer asked too, and none of those withdraws.\n\tkept: boolean;\n\t// Whatever serves the track (an upstream session or the local publisher) read it.\n\tsent: boolean;\n\t// Settles each waiting caller: resolves it, or rejects it with the track's close.\n\tsettles: Set<(err?: Error) => void>;\n}\n\n// A getter that reports each value read from it, so a pending refresh is sent once whatever\n// serves the track reads it.\nclass Read<T> implements Getter<T> {\n\t#source: Getter<T>;\n\t#read: (value: T) => void;\n\n\tconstructor(source: Getter<T>, read: (value: T) => void) {\n\t\tthis.#source = source;\n\t\tthis.#read = read;\n\t}\n\n\tpeek(): T {\n\t\tconst value = this.#source.peek();\n\t\tthis.#read(value);\n\t\treturn value;\n\t}\n\n\tchanged(): Promise<T>;\n\tchanged(fn: (value: T) => void): Dispose;\n\tchanged(fn?: (value: T) => void): Promise<T> | Dispose {\n\t\tif (!fn) {\n\t\t\treturn this.#source.changed().then((value) => {\n\t\t\t\tthis.#read(value);\n\t\t\t\treturn value;\n\t\t\t});\n\t\t}\n\t\treturn this.#source.changed((value) => {\n\t\t\tthis.#read(value);\n\t\t\tfn(value);\n\t\t});\n\t}\n\n\tsubscribe(fn: (value: T) => void): Dispose {\n\t\treturn this.#source.subscribe((value) => {\n\t\t\tthis.#read(value);\n\t\t\tfn(value);\n\t\t});\n\t}\n\n\twatch(fn: (value: T) => void): Dispose {\n\t\treturn this.#source.watch((value) => {\n\t\t\tthis.#read(value);\n\t\t\tfn(value);\n\t\t});\n\t}\n}\n\n// Constructs a Demand from within this module; assigned in the class's static block.\nlet makeDemand: (name: string, signals: DemandSignals, state: TrackState) => Demand;\n\n// What a producer reports through its {@link Demand}.\ninterface DemandSignals {\n\twanted: Getter<boolean>;\n\t// Whether a subscriber, not just an info lookup, is attached.\n\tsubscribed: () => boolean;\n\trefresh: Getter<boolean>;\n\tasked: Getter<bigint | undefined>;\n}\n\n/**\n * A watch-only view of a track's subscriber demand, from {@link Producer.demand}. Mirrors the\n * Rust `Demand`.\n *\n * Lets a publisher gate work (on-demand capture or encoding) on whether anyone is subscribed,\n * and open a group when a reader asks for one, without the ability to write groups or close the\n * track. The consumer wire watches it to tear an idle upstream subscription down instead of\n * downloading to nobody.\n */\nexport class Demand {\n\t/** The track name. */\n\treadonly name: string;\n\n\t#signals: DemandSignals;\n\t#state: TrackState;\n\n\tprivate constructor(name: string, signals: DemandSignals, state: TrackState) {\n\t\tthis.name = name;\n\t\tthis.#signals = signals;\n\t\tthis.#state = state;\n\t}\n\n\tstatic {\n\t\tmakeDemand = (name, signals, state) => new Demand(name, signals, state);\n\t\thooks.demandPriority = (demand) => demand.#state.info.peek()?.priority ?? DEFAULT_PRIORITY;\n\t\thooks.demandReleased = (demand) => demand.#state.closed;\n\t\thooks.demandAsked = (demand) => demand.#signals.asked;\n\t\thooks.demandSubscribed = (demand) => demand.#signals.subscribed();\n\t}\n\n\t/**\n\t * Whether anyone subscribes to the open track, or holds an info lookup on it, such as a relay\n\t * answering a downstream TRACK. Watch it (`effect.get` / `.peek()`) to follow demand.\n\t */\n\tget wanted(): Getter<boolean> {\n\t\treturn this.#signals.wanted;\n\t}\n\n\t/**\n\t * Whether a subscriber asks for a new group: the first group of a track with none written, or\n\t * a live join or {@link Subscriber.refresh} judged by {@link Info.refresh}, once its interval\n\t * has passed. The next group appended clears it, so a publisher waits for it to turn true,\n\t * opens a group (a keyframe or a snapshot), and waits again.\n\t */\n\tget refresh(): Getter<boolean> {\n\t\treturn this.#signals.refresh;\n\t}\n\n\t/**\n\t * Settles once the track's outcome is final: `null` once its declared end is reached and\n\t * settled, or on a clean release, else the abort {@link Error}. Never because readers left.\n\t */\n\tget closed(): GetPromise<Error | null> {\n\t\treturn this.#state.outcome;\n\t}\n}\n\n// Constructs a Subscriber from within this module without exposing a public\n// constructor that would leak the unexported TrackState. Assigned in the class's\n// static block.\nlet makeSubscriber: (name: string, state: TrackState) => Subscriber;\n\n// The info a producer is built with while its info waits on a request's acceptance or the wire.\n// Not exported, so only this package builds a producer without its info.\nconst PENDING: InfoInit = Object.freeze({});\n\n/**\n * The write side of a track, mirroring the Rust `Producer`.\n *\n * A producer is a fan-out source: every {@link subscribe} (including each wire\n * subscription the publisher serves from it) gets an independent\n * {@link Subscriber} that receives a full copy of the groups, each with its own\n * read cursor. Groups are mirrored into every live subscriber and retained for the\n * idle cache window so a late subscriber can replay groups within its media budget.\n *\n * Obtained from `Broadcast.Producer.createTrack`, or constructed directly for an in-process\n * track.\n */\nexport class Producer {\n\t/** The track name. */\n\treadonly name: string;\n\n\t// The producer's own state is the source of truth (info/closed); subscribers\n\t// read mirrored sinks, never this state directly.\n\t#state = new TrackState();\n\t// One past the highest group this producer received, like the Rust\n\t// `max_sequence`, and where the next append lands.\n\t#received = 0n;\n\t#subscribing = new Signal(false);\n\t// The aggregate across every subscriber, fetches included: what the wire asks for.\n\t#requested = new Subscriptions();\n\t// The aggregate across live subscribers only. A fetch's preferences judge just the group it\n\t// asks for, so a publisher sizing what it serves (such as how much retained media to replay)\n\t// must not see them. The wire's aggregate, `#requested`, keeps them.\n\t#live = new Subscriptions();\n\t// The sinks counted in `#live`.\n\t#counted = new Set<TrackState>();\n\t// The sinks of wire fetches reading only history this track reached, which count in no demand, as\n\t// an in-process fetch is never seen live. Mirrors the Rust `Registration::Apart`.\n\t#apart = new Set<TrackState>();\n\n\t// Recently written source groups, in arrival order, retained for replay to late subscribers\n\t// until the cache pool evicts them once idle. A set, so evicting a run of\n\t// them is linear. Each entry tracks the mirror it handed to every sink so eviction can drop\n\t// them too: otherwise a slow consumer that never reads would pin old groups (and their frame\n\t// bytes) forever.\n\t#cache = new Set<CachedGroup>();\n\t// The same entries by key, so a write finds a duplicate without a scan.\n\t#cached = new Map<bigint, CachedGroup>();\n\t// Groups a newer copy replaced while still open, for a teardown to end: the readers draining\n\t// one keep it after it leaves the cache. Pruned of closed ones as it doubles. Mirrors the Rust\n\t// `detach`.\n\t#detached = new Set<GroupProducer>();\n\t#detachedKept = 0;\n\t// The keys from the lowest through the highest whose live copy failed unfinished for now and left\n\t// the cache: an end above an unresolved one never settles clean, leaving the outcome to the\n\t// track's own abort or close, as the entry would have had it stayed. A key resolves once a copy of\n\t// it finishes or it is given up for good, which retires the low end past it while the record still\n\t// shows it (#retireCut). One span, so nothing grows with the groups given up. The cost: a key\n\t// inside it that resolved and left the cache before the low end reached it, as when two cuts\n\t// resolve out of key order, still holds the end, so a later track abort reports its error rather\n\t// than a clean end. Mirrors the Rust `TrackState::cut`.\n\t#cut: Run | undefined;\n\t// The cached groups' checked starts, sorted by key, so a first frame finds its\n\t// neighbors' with a search.\n\t#bounds: CheckedStart[] = [];\n\t// The keys of the cached groups, sorted: what time starts and live joins resolve against, as\n\t// the Rust `TrackState::lookup` keys them.\n\t#keys: bigint[] = [];\n\t// A received copy's readers start a time anchor at the group starting there, held or not:\n\t// its wire's publisher starts one at the first group at or after it, and a copy holding part\n\t// of the track cannot tell which earlier group contains the time. Mirrors the Rust\n\t// `TrackState::starts_at_keys`.\n\t#startsAtKeys = false;\n\t// Where the upstream publisher started each of a lite-07 copy's live wire ranges, by the time\n\t// it asked from. Mirrors the Rust `TrackState::time_starts`.\n\t#timeStarts = new Map<bigint, TimeStart>();\n\t// How the upstream publisher answered the newest of a lite-07 copy's live wire ranges asking each\n\t// live join, by `joinKey`: only that answer places a reader's join, the live edge being the\n\t// upstream's. Holds only the joins its live ranges still ask. Mirrors the Rust\n\t// `TrackState::join_answers`.\n\t#joinAnswers = new Map<string, JoinAnswer>();\n\t// Whether a reader's live join places only where `#joinAnswers` does: a lite-07 copy, whose wire's\n\t// ranges carry each join and report where each starts. Another copy measures the join from the\n\t// groups it holds. Mirrors the Rust `TrackState::answers_joins`.\n\t#answersJoins = false;\n\t// Counts changes to how a time start is placed other than by groups arriving or drops: the wire,\n\t// `#timeStarts`, and `#startsAtKeys`. Mirrors the Rust `TrackState::placing`.\n\t#placing = 0;\n\t// The highest-key checked start evicted. Eviction is not a key prefix, so a\n\t// group above it is checked against it as well as its cached neighbors; one at or below\n\t// it may have lost its lower bound. One entry, so nothing grows with the cache.\n\t#evicted?: CheckedStart;\n\t// The live groups the cache let go of, sorted by key: only the lowest between two cached groups,\n\t// still the immediate successor of the group below it, which a read judges by and a time start\n\t// past it is not placed in. Mirrors the Rust `TrackState::departed`.\n\t#departed: Departed[] = [];\n\t// The newest live group the cache let go of, and its newest frame: the live edge a join measures\n\t// stays where its publisher reached. Mirrors the Rust `TrackState::departed_edge`.\n\t#departedEdge?: { key: bigint; latest: Timestamp };\n\t// This track's account against its broadcast's cache pool (a pool of its own when it has no\n\t// broadcast), which evicts the cached groups once idle.\n\t#account: cache.Track<CachedGroup>;\n\t// The pool tick past which each run of the drop set outlives the pool's idle window, as of when\n\t// it was last given up; empty when the pool has no idle window. See `#setDrops`.\n\t#dropsBorn = new Runs<Born>((a, b) => a.expires === b.expires);\n\t// At most the lowest tick in `#dropsBorn`, so an idle scan finds nothing to forget without\n\t// walking it.\n\t#dropsOldest?: number;\n\n\t// One independent downstream state per live subscriber.\n\t#sinks = new Set<TrackState>();\n\n\t// Whether any subscriber or held info lookup is attached, watched through {@link demand}.\n\t#wanted = new Signal(false);\n\t// The info lookups holding the track, which count as demand as subscribers do.\n\t#holds = 0;\n\t// Whether one asks for a new group now; see {@link Demand.refresh}.\n\t#refreshing = new Signal(false);\n\t// The group start asked for while it is past every key written; see `hooks.demandAsked`.\n\t#asked = new Signal<bigint | undefined>(undefined);\n\t// The lowest group they want while no refresh is pending, never lowered.\n\t#floor = 0n;\n\t// A request for a group past every key written, until a group answers it or its callers\n\t// withdraw it. Read against `#received` rather than stored as a key, so a key written\n\t// without answering it can never leave the ask behind.\n\t#pending?: PendingRefresh;\n\t// The last pending refresh {@link #refreshing} notified as due.\n\t#announced?: PendingRefresh;\n\t// Wakes a deferred refresh once it comes due.\n\t#refreshTimer?: { at: Instant; abort: AbortController };\n\t#demand: Demand;\n\t// Only real objects or upstream metadata advance this, never the head of an empty group.\n\t#objectLargest?: Position;\n\n\t// The wire subscription feeding this copy, from `hooks.receiveTrack` until `hooks.cacheTrack`\n\t// ends it: only a copy one feeds owes missing groups. Unset on a track's own publisher.\n\t#wire?: Wire;\n\t// Lite-07: the wire names every start, so a gap waits for it however long that takes.\n\t#proven = false;\n\t// Told as this producer is released, before its track closes; see `hooks.onTrackRelease`.\n\t#onRelease: ((finished: boolean) => void)[] = [];\n\t// A copy some wire subscription fed, which knows the live feed only from its upstream's answer,\n\t// even between feeds; never set on a track's own publisher.\n\t#copy = false;\n\t// The narrowest budget in milliseconds any upstream subscription feeding this copy asked,\n\t// undefined while none asked one: a group whose stream that upstream reset as too old may have\n\t// been judged under it, so the verdict stands only for a reader no wider (see `hooks.judgeUnder`).\n\t#judging?: number;\n\t// The misses its readers asked of a {@link Requests} handle.\n\t#fills: FillState;\n\t// The keys the live feed delivered as a group, and the drops a reclaim forgot, which `drops`\n\t// no longer holds: what a pending tail is judged by. Eviction never touches it. A gap folds away a\n\t// subscription's grace after a later arrival opened it, as the session's tail does, so this\n\t// holds only the gaps still worth waiting for.\n\t#arrivals = new Ledger();\n\t// What this track's own publisher produced since its last append, which skips every\n\t// key below it that never arrived and was not given up: the producer moved on. The\n\t// arrivals cannot say so, since a gap folds into them once nobody waits for it. Only\n\t// keys at or above `#appended` are kept. Mirrors the Rust `produced`.\n\t#produced: Run[] = [];\n\t// One past the last append: every key below it arrived, was given up, or was skipped.\n\t#appended?: bigint;\n\t// The span of keys at or above `#appended` this track's own publisher dropped through a fill,\n\t// kept as one span so readers asking disjoint keys cost no state: settling reports what in it\n\t// nothing produced or gave up not found rather than skipped. Mirrors the Rust `dropped_span`.\n\t#droppedSpan?: Run;\n\t// A metadata copy, whose groups hold each frame's header alone: a broadcast entry apart from\n\t// the payload copy, which no payload reader is ever handed. Fixed before any group.\n\t#meta = false;\n\n\t/**\n\t * An in-process track named `name`, committing its immutable {@link Info} from `info`; an\n\t * omitted `maxAge` is zero, the live edge only (see {@link InfoInit.maxAge}), so `{}` takes\n\t * every default.\n\t */\n\tconstructor(name: string, info: InfoInit) {\n\t\t// Plain JavaScript can still omit it, which would otherwise commit the defaults unasked.\n\t\tif (info === undefined) throw new TypeError(\"Track.Producer needs its info: pass {} for the defaults\");\n\t\tcheckName(name);\n\t\tthis.name = name;\n\t\t// Whatever serves the track reading a request sends it.\n\t\tthis.#demand = makeDemand(\n\t\t\tname,\n\t\t\t{\n\t\t\t\twanted: this.#wanted,\n\t\t\t\tsubscribed: () => this.#sinks.size > this.#apart.size,\n\t\t\t\trefresh: new Read(this.#refreshing, (asking) => asking && this.#sent()),\n\t\t\t\tasked: new Read(this.#asked, (asked) => asked !== undefined && this.#sent()),\n\t\t\t},\n\t\t\tthis.#state,\n\t\t);\n\t\tthis.#fills = new FillState({\n\t\t\tname,\n\t\t\taccept: (key, info) => {\n\t\t\t\tif (info !== undefined && this.#state.info.peek() === undefined) this.accept(info);\n\t\t\t\treturn this.#createGroup(key, 0, { fetched: true });\n\t\t\t},\n\t\t\tdrop: (start, end) => {\n\t\t\t\t// A drop the publisher's own fill gave is never later called a skip, even once the\n\t\t\t\t// cache forgets it.\n\t\t\t\tfor (const run of this.#drop(start, end, dropHole())) this.#recordLost(run.start, run.end);\n\t\t\t},\n\t\t\tholds: (key) => {\n\t\t\t\tconst entry = this.#cached.get(key);\n\t\t\t\tif (entry === undefined || entry.group.closed.peek() instanceof Error) return false;\n\t\t\t\treturn hooks.groupHeadless(entry.group) ? \"headless\" : true;\n\t\t\t},\n\t\t\tcached: (key) => this.#cached.get(key)?.group,\n\t\t\tclosed: () => this.#state.closed.peek() !== undefined,\n\t\t\treleased: this.#state.closed,\n\t\t\tcreateGroup: (frame) => this.#create(frame),\n\t\t\tcreateFrame: (info) => {\n\t\t\t\tthis.#checkFirst(info.size);\n\t\t\t\tconst group = this.#createGroup(this.#keyOf(info.timestamp), 0, { replace: true });\n\t\t\t\treturn opened(group, () => group.createFrame(info));\n\t\t\t},\n\t\t\tdropGroups: (start, end) => {\n\t\t\t\t// Nothing at or past the declared end exists to give up, refused as a write there is. A\n\t\t\t\t// copy forgets a wire verdict there instead (see `#drop`), since refusing it would fail the\n\t\t\t\t// session every broadcast on it shares.\n\t\t\t\tconst declared = this.#state.end.peek();\n\t\t\t\tif (start < end && declared !== undefined && end > finalKey(declared.at)) {\n\t\t\t\t\tthrow new Error(\n\t\t\t\t\t\t`groups ${start}..${end} reach past the track's end ${declared.at.group}/${declared.at.frame}`,\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t\t// A closed track records nothing, as the Rust `drop_local`, so readers still draining it\n\t\t\t\t// see no new gap.\n\t\t\t\tif (this.#state.closed.peek() !== undefined) return;\n\t\t\t\tthis.#keepSettled(start, end);\n\t\t\t\tthis.#drop(start, end, dropHole(), true);\n\t\t\t},\n\t\t\tskipGroups: (start, end) => {\n\t\t\t\tthis.#skipReceived(start, end, true);\n\t\t\t},\n\t\t\tskipUnclaimed: (taken) => this.#skipUnclaimed(taken),\n\t\t});\n\t\tthis.#account = this.#openAccount(new cache.Pool({ expiry: cache.DEFAULT_EXPIRY }));\n\t\tif (info !== PENDING) this.accept(info);\n\t}\n\n\t// Open this track's account against `pool`, evicting through this producer's cache.\n\t#openAccount(pool: cache.Pool): cache.Track<CachedGroup> {\n\t\treturn new cache.Track(pool, {\n\t\t\tprotects: (entry) => this.#protects(entry),\n\t\t\tevict: (entry) => {\n\t\t\t\tconst span = hooks.groupSpan(entry.group);\n\t\t\t\tconst wholeEnd = hooks.groupWholeEnd(entry.group);\n\t\t\t\tthis.#evict(entry);\n\t\t\t\tthis.#uncache(entry, true);\n\t\t\t\tif (wholeEnd !== undefined && wholeEnd > entry.group.start + 1n)\n\t\t\t\t\tthis.#skipReceived(entry.group.start + 1n, wholeEnd);\n\t\t\t\tif (!entry.fetched && span.started && !span.failed) this.#depart(entry, span);\n\t\t\t},\n\t\t\tsettle: () => this.#settle(),\n\t\t\texpireDrops: (now) => this.#expireDrops(now),\n\t\t\tholdsDrops: () => (this.#state.drops.all[0]?.start ?? UNBOUNDED) < this.#keptDrops(),\n\t\t});\n\t}\n\n\t// Give up `[start, end)` as `hole` says, or forget it without one, dating each run against the\n\t// pool's idle window. Mirrors the Rust\n\t// `TrackState::change_drops`.\n\t#setDrops(start: bigint, end: bigint, hole?: Hole): void {\n\t\tthis.#state.drops.set(start, end, hole);\n\t\tthis.#retireCut();\n\t\tif (hole?.reason === \"skip\") {\n\t\t\tconst largest = this.#state.largest.peek()?.group;\n\t\t\tif (largest !== undefined && start <= largest && largest < end && this.#state.largestGroup === \"open\") {\n\t\t\t\tfor (const state of [this.#state, ...this.#sinks]) state.largestGroup = \"skipped\";\n\t\t\t}\n\t\t}\n\t\tconst pool = this.#account.pool;\n\t\tconst window = pool.expiryTicks;\n\t\tif (!hole) this.#dropsBorn.set(start, end);\n\t\telse if (window !== undefined) {\n\t\t\t// Rounded up to a quarter of the window, so runs given up together stay one entry and a\n\t\t\t// run is forgotten no sooner than the window after it was given up.\n\t\t\tconst quarter = Math.max(1, Math.floor(window / 4));\n\t\t\tconst expires = (Math.floor(pool.now() / quarter) + 1) * quarter + window;\n\t\t\tthis.#dropsBorn.set(start, end, { start, end, expires });\n\t\t\tthis.#dropsOldest = Math.min(this.#dropsOldest ?? expires, expires);\n\t\t}\n\t\tthis.#account.dropsChanged();\n\t}\n\n\t// Forget the runs given up longer than the pool's idle window before tick `now`; walks the set\n\t// only once its oldest run is due, which a quarter of the window separates from the next.\n\t#expireDrops(now: number): boolean {\n\t\tif (this.#dropsOldest === undefined || now < this.#dropsOldest) return false;\n\t\tconst kept = this.#keptDrops();\n\t\tconst expired = this.#dropsBorn.all\n\t\t\t.filter((run) => now >= run.expires && run.start < kept && !this.#pinsDrops(run.start))\n\t\t\t.map(({ start, end }) => ({ start, end: min(end, kept) }));\n\t\t// In one pass: runs given up in the same quarter of the window expire together.\n\t\tif (expired.length > 0) {\n\t\t\t// Read before the drop set forgets which keys were skipped.\n\t\t\tconst forgotten = expired.map((run) => ({\n\t\t\t\t...run,\n\t\t\t\tskipped: this.#proven\n\t\t\t\t\t? this.#state.drops\n\t\t\t\t\t\t\t.overlapping(run.start, run.end)\n\t\t\t\t\t\t\t.filter((held) => held.reason === \"skip\")\n\t\t\t\t\t\t\t.map((held) => ({ start: max(held.start, run.start), end: min(held.end, run.end) }))\n\t\t\t\t\t: [],\n\t\t\t}));\n\t\t\tthis.#state.drops.clear(expired);\n\t\t\tthis.#dropsBorn.clear(expired);\n\t\t\tthis.#forgot(forgotten);\n\t\t}\n\t\tthis.#dropsOldest = undefined;\n\t\tfor (const run of this.#dropsBorn.all) {\n\t\t\tif (run.start < kept && !this.#pinsDrops(run.start))\n\t\t\t\tthis.#dropsOldest = Math.min(this.#dropsOldest ?? run.expires, run.expires);\n\t\t}\n\t\treturn expired.length > 0;\n\t}\n\n\t// Whether the dropped run holding `key` lies directly above a group a local track still caches,\n\t// which keeps it: forgetting it would read like evicted groups between two held ones, a gap its\n\t// publisher never left. Each cached group keeps at most one run, until it leaves (see\n\t// `#uncache`). A received copy keeps none, since upstream answers for what it forgets. Mirrors\n\t// the Rust `TrackState::pins_drops`.\n\t#pinsDrops(key: bigint): boolean {\n\t\tif (this.#wire) return false;\n\t\tconst run = this.#state.drops.keysAt(key);\n\t\treturn run !== undefined && run.start > 0n && this.#cached.has(run.start - 1n);\n\t}\n\n\t// Account `forgotten`, runs a reclaim took out of the drop set, in the arrivals as an evicted\n\t// group stays: the publisher accounted for them, so neither the tail nor a reader waits on\n\t// them again, and a reader that wants one asks a fill or judges it by its budget. On a copy\n\t// whose wire names every start the run alone is accounted, since a gap below it is still owed.\n\t// Otherwise a reclaim never adds a run to the arrivals: a run touching no accounted one takes\n\t// the gap below it too, given up early as a fold would. Nothing below the tail's floor is\n\t// accounted, since accounting it would lower the floor onto gaps nobody waited for. Without a\n\t// declared start the lowest arrival stands in for that floor, which a lower one still moves\n\t// down, so a run reaching it extends it down instead: that opens no gap. A proven copy accounts\n\t// the keys of each run's `skipped`, its skips, under its floor too, leaving the lowest arrival where\n\t// the feed began: a start moved below them owes the live feed none of them, since the publisher\n\t// reported them already. Only a skip, which is final: a newer upstream subscription\n\t// judges a drop there afresh. Mirrors the Rust `TrackState::forget_drops`.\n\t#forgot(forgotten: readonly (Run & { skipped: readonly Run[] })[]): void {\n\t\tconst at = now();\n\t\tlet accounted = false;\n\t\tfor (const run of forgotten) {\n\t\t\tconst floor = this.#tailFloor();\n\t\t\tconst lowest = this.#arrivals.lowest();\n\t\t\tconst reaches =\n\t\t\t\tthis.#feedStart() === undefined && lowest !== undefined && run.start < lowest && lowest <= run.end;\n\t\t\tlet start = reaches ? run.start : max(run.start, floor);\n\t\t\tif (start < run.end) {\n\t\t\t\t// The highest run starting at or below the run's end touches it when it ends at or past\n\t\t\t\t// its start; otherwise it is the run below.\n\t\t\t\tconst below = this.#arrivals.endBelow(run.end);\n\t\t\t\tif (!this.#proven && (below === undefined || below < start))\n\t\t\t\t\tstart = below === undefined ? floor : max(below, floor);\n\t\t\t}\n\t\t\tconst cut = min(run.end, floor);\n\t\t\tconst under = run.skipped\n\t\t\t\t.filter((skip) => skip.start < cut)\n\t\t\t\t.map((skip) => ({ start: skip.start, end: min(skip.end, cut) }));\n\t\t\t// A skip reaching the run joins it in one insertion: inserted alone at the arrivals' bound,\n\t\t\t// it would be the lowest run, forgotten at once with every key under it.\n\t\t\tlet joined = start;\n\t\t\tfor (let last = under.at(-1); start < run.end && last && last.end >= joined; last = under.at(-1)) {\n\t\t\t\tjoined = min(joined, last.start);\n\t\t\t\tunder.pop();\n\t\t\t}\n\t\t\tif (start < run.end) under.push({ start: joined, end: run.end });\n\t\t\t// Only the keys from the start of the run itself move the lowest arrival.\n\t\t\tfor (const keys of under) this.#arrivals.accountUnder(keys.start, keys.end, start, at);\n\t\t\taccounted ||= under.length > 0;\n\t\t}\n\t\tif (!accounted) return;\n\t\t// Only a gap folds, so an in-order feed never reads the subscription.\n\t\tif (this.#arrivals.hasGaps()) this.#arrivals.expire(at, this.#grace());\n\t\tthis.#owe();\n\t}\n\n\t// Where the runs a reclaim may forget end: every run on a received copy, but only those below an\n\t// open local track's edge, since one above it is what lets its declared end be reached (see\n\t// `reaches`). A local producer gives up only what it chose to. Mirrors the Rust `kept_drops`,\n\t// except that a closed track's runs all go here too: Rust frees them with the state's last\n\t// handle, but here the pool holds the account until the sweep forgets them.\n\t#keptDrops(): bigint {\n\t\treturn this.#wire || this.#state.closed.peek() !== undefined ? UNBOUNDED : this.#received;\n\t}\n\n\t// The runs in `[from, to)` below `#keptDrops` were kept and are now reclaimable: date the oldest\n\t// so the next idle scan finds it, and have the sweep visit the track for them.\n\t#rearmDrops(from: bigint, to = UNBOUNDED): void {\n\t\tconst end = min(to, this.#keptDrops());\n\t\tif (from >= end) return;\n\t\tconst runs = this.#dropsBorn.overlapping(from, end);\n\t\tfor (const run of runs) this.#dropsOldest = Math.min(this.#dropsOldest ?? run.expires, run.expires);\n\t\tif (this.#state.drops.overlapping(from, end).length > 0) this.#account.pool.register(this.#account);\n\t}\n\n\tstatic {\n\t\thooks.pendingTrack = (name) => new Producer(name, PENDING);\n\t\thooks.poolTrack = (producer, pool) => {\n\t\t\tif (!producer.#account.empty || producer.#state.drops.size > 0)\n\t\t\t\tthrow new Error(\"track already caches groups\");\n\t\t\tproducer.#account = producer.#openAccount(pool);\n\t\t};\n\t\thooks.metaTrack = (producer) => {\n\t\t\tif (producer.#cache.size > 0 || producer.#received > 0n) throw new Error(\"track already holds groups\");\n\t\t\tproducer.#meta = true;\n\t\t};\n\t\thooks.subscribing = (producer) => producer.#subscribing;\n\t\thooks.requested = (producer) => producer.#requested;\n\t\tunlive = (producer, sink) => producer.#unlive(sink);\n\t\tapart = (producer, sink, history) => producer.#history(sink, history);\n\t\thooks.cacheTrack = (producer) => {\n\t\t\tproducer.#wire = undefined;\n\t\t\tproducer.#placing++;\n\t\t\t// Nothing feeds the tail anymore, so it owes nothing and readers end at the boundary.\n\t\t\tfor (const state of [producer.#state, ...producer.#sinks]) {\n\t\t\t\tstate.owed.set(false);\n\t\t\t\tstate.startChanged.update((rev) => rev + 1);\n\t\t\t}\n\t\t\tproducer.#endLargest();\n\t\t};\n\t\thooks.refuseLive = (producer, edge, error) => {\n\t\t\tfor (const sink of producer.#sinks) {\n\t\t\t\tif (sink.fetch) continue;\n\t\t\t\tconst ranges = sink.update.peek()?.ranges ?? [{}];\n\t\t\t\tconst span = wireSpan(ranges);\n\t\t\t\tif (bounded(ranges) && span.end !== undefined && span.end <= edge) continue;\n\t\t\t\tcloseTrackState(sink, error);\n\t\t\t}\n\t\t};\n\t\tfillEdge = (producer) =>\n\t\t\t!producer.#wire && producer.#state.info.peek()?.ietf !== undefined\n\t\t\t\t? producer.#state.largest.peek()?.group\n\t\t\t\t: undefined;\n\t\tscopedDrops = (producer) => producer.#wire?.dropped ?? [];\n\t\thooks.receiveTrack = (producer, starts = {}) => {\n\t\t\t// A new feed's answer says afresh where the live feed is.\n\t\t\tproducer.#wire = { starts, served: producer.#wire?.served };\n\t\t\tproducer.#copy = true;\n\t\t\tproducer.#placing++;\n\t\t};\n\t\thooks.judgeUnder = (producer, budget) => {\n\t\t\tproducer.#judging = Math.min(producer.#judging ?? budget, budget);\n\t\t};\n\t\tjudgingOf = (producer) => producer.#judging;\n\t\thooks.answerEdge = (producer) => {\n\t\t\tif (!producer.#wire || producer.#wire.edge) return;\n\t\t\tproducer.#wire.edge = true;\n\t\t\tfor (const state of [producer.#state, ...producer.#sinks]) state.startChanged.update((rev) => rev + 1);\n\t\t};\n\t\tknowsEdge = (producer) =>\n\t\t\t!producer.#copy ||\n\t\t\tproducer.#wire?.edge === true ||\n\t\t\tproducer.#state.closed.peek() !== undefined ||\n\t\t\tproducer.#state.end.peek() !== undefined;\n\t\thooks.receiveGroup = (producer, { start: sequence, offset: start, fill }) =>\n\t\t\tproducer.#createGroup(sequence, start, { fetched: fill });\n\t\thooks.arrivingGroup = (producer, key) => {\n\t\t\tconst group = producer.#cached.get(key)?.group;\n\t\t\tif (!group || group.closed.peek() !== undefined) return undefined;\n\t\t\treturn { settled: group.closed, release: hooks.holdGroup(group) };\n\t\t};\n\t\thooks.arrivingIn = (producer, start, end) =>\n\t\t\tcachedIn(producer, start, end).filter(\n\t\t\t\t(key) => producer.#cached.get(key)?.group.closed.peek() === undefined,\n\t\t\t);\n\t\tsourceStart = (producer) => producer.#wire?.served && producer.#feedStart();\n\t\tvouchedFeed = (producer) => producer.#wire?.served && producer.#vouchedFeed();\n\t\tfillFloor = (producer, named) => producer.#fillFloor(named);\n\t\tkeysOf = (producer) => producer.#keys;\n\t\tdepartedOf = (producer) => producer.#departed;\n\t\tdepartedEdge = (producer) => producer.#departedEdge;\n\t\twholeAt = (producer, key) => {\n\t\t\tconst entry = producer.#cached.get(key);\n\t\t\treturn entry && hooks.groupWholeEnd(entry.group);\n\t\t};\n\t\tbelowFloor = (producer, floor) => {\n\t\t\tconst keys = producer.#keys;\n\t\t\tconst key = keys[keyIndex(keys, floor) - 1];\n\t\t\tconst entry = key === undefined ? undefined : producer.#cached.get(key);\n\t\t\tif (key === undefined || entry === undefined) return undefined;\n\t\t\tif (key + 1n !== floor && hooks.groupWholeEnd(entry.group) !== floor) return undefined;\n\t\t\treturn { key, group: entry.group };\n\t\t};\n\t\tunplacingAt = (producer, time) => {\n\t\t\tconst keys = producer.#keys;\n\t\t\tconst key = keys[keyIndex(keys, time + 1n) - 1];\n\t\t\tconst entry = key === undefined ? undefined : producer.#cached.get(key);\n\t\t\treturn entry && !placesAt(producer, entry.group.start, time) ? entry.group : undefined;\n\t\t};\n\t\tunplacedFromAt = (producer, key) => {\n\t\t\tconst entry = producer.#cached.get(key);\n\t\t\treturn entry === undefined ? 0n : hooks.groupUnplacedFrom(entry.group);\n\t\t};\n\t\twholeAround = (producer, key) => {\n\t\t\tconst keys = producer.#keys;\n\t\t\tconst index = keyIndex(keys, key);\n\t\t\tif (index === 0 || keys[index] === key) return undefined;\n\t\t\tconst start = keys[index - 1];\n\t\t\tconst end = wholeAt(producer, start);\n\t\t\treturn end !== undefined && key < end ? { start, end } : undefined;\n\t\t};\n\t\toutsideSpans = (producer, start, end) => producer.#outsideSpans(start, end);\n\t\ttimeAnchors = (producer) => ({\n\t\t\tatKeys: producer.#startsAtKeys,\n\t\t\tstarts: producer.#timeStarts,\n\t\t\tjoins: producer.#joinAnswers,\n\t\t\t// Until the end is reached with its tail settled, the session may still ask, and a publisher may\n\t\t\t// answer a range as late as the end: a join waits on its answer for exactly as long as the read\n\t\t\t// cannot end. Mirrors the Rust `TrackState::joins_answered`.\n\t\t\tanswersJoins:\n\t\t\t\tproducer.#answersJoins && producer.#state.outcome.peek() === undefined && !producer.#complete(),\n\t\t\t// Judged now rather than by the outcome latch, which a group's close callback sets later.\n\t\t\t// Mirrors the Rust `is_final() || is_settled()`.\n\t\t\tended: () => producer.#state.outcome.peek() !== undefined || producer.#settled(),\n\t\t\tplacing: producer.#placing,\n\t\t});\n\t\thooks.startsAtKeys = (producer) => {\n\t\t\tproducer.#startsAtKeys = true;\n\t\t\tproducer.#placing++;\n\t\t};\n\t\thooks.timeStarts = (producer, starts) => {\n\t\t\tconst merged = new Map<bigint, TimeStart>();\n\t\t\tfor (const [time, start] of starts) {\n\t\t\t\tconst held = merged.get(time) ?? { past: false };\n\t\t\t\tmerged.set(time, held);\n\t\t\t\tif (start !== undefined) held.start = held.start === undefined ? start : min(held.start, start);\n\t\t\t\tif (start === undefined || start > time) held.past = true;\n\t\t\t}\n\t\t\tconst last = producer.#timeStarts;\n\t\t\tconst same =\n\t\t\t\tmerged.size === last.size &&\n\t\t\t\t[...merged].every(([time, held]) => {\n\t\t\t\t\tconst was = last.get(time);\n\t\t\t\t\treturn was?.start === held.start && was?.past === held.past;\n\t\t\t\t});\n\t\t\tif (same) return;\n\t\t\tproducer.#timeStarts = merged;\n\t\t\tproducer.#placing++;\n\t\t\t// The answer may place a time start an ordered read waits at.\n\t\t\tfor (const state of [producer.#state, ...producer.#sinks]) state.timelineChanged.update((rev) => rev + 1);\n\t\t};\n\t\tansweredEmpty = (producer, time) => timeStartContaining(producer.#timeStarts.get(time), time) === \"before\";\n\t\tcountAsks = (producer, sink, times, joins) => producer.#countAsks(sink, times, joins);\n\t\thooks.answersJoins = (producer) => {\n\t\t\tproducer.#answersJoins = true;\n\t\t\tproducer.#placing++;\n\t\t};\n\t\thooks.answerJoin = (producer, min, end, start, budget) => {\n\t\t\t// Every range added before now within `budget` takes this answer.\n\t\t\tconst tick = answered();\n\t\t\tproducer.#joinAnswers.set(joinKey(min, end), { start, budget, tick });\n\t\t\tproducer.#placing++;\n\t\t\t// A reader's join waiting on the upstream's answer places now.\n\t\t\tfor (const state of [producer.#state, ...producer.#sinks]) state.startChanged.update((rev) => rev + 1);\n\t\t\treturn tick;\n\t\t};\n\t\thooks.retainJoins = (producer, keep) => {\n\t\t\tfor (const key of producer.#joinAnswers.keys()) {\n\t\t\t\t// The key's parts as `joinKey` writes them.\n\t\t\t\tconst [min, end] = key.split(\":\");\n\t\t\t\tconst lag = min === \"null\" ? null : Number(min);\n\t\t\t\tif (!keep(lag, end === \"\" ? undefined : BigInt(end))) producer.#joinAnswers.delete(key);\n\t\t\t}\n\t\t};\n\t\thooks.producerLargest = (producer) => producer.#state.largest;\n\t\thooks.askProducer = (producer, ask) => producer.#ask(ask);\n\t\thooks.requestProducer = (producer, signal) => producer.#request(signal);\n\t\thooks.endTrack = (producer, end) => producer.#endPending(end);\n\t\thooks.settleTail = (producer) => producer.#settleTail();\n\t\thooks.tailGrace = (producer) => producer.#grace();\n\t\thooks.proveTrack = (producer) => {\n\t\t\tproducer.#proven = true;\n\t\t\tproducer.#arrivals.prove();\n\t\t};\n\t\tprovenOf = (producer) => producer.#proven;\n\t\thooks.releaseTrack = (producer) => producer.#close(undefined);\n\t\thooks.abortTrack = (producer, error) => producer.#close(error);\n\t\thooks.trackReleased = (producer) => producer.#state.closed;\n\t\thooks.trackFinished = (producer) => producer.#state.end.peek() !== undefined;\n\t\thooks.onTrackRelease = (producer, listener) => producer.#onRelease.push(listener);\n\t\thooks.dropTrackGroups = (producer, start, end, hole) => producer.#drop(start, end, hole, true);\n\t\thooks.skipTrackGroups = (producer, start, end) => producer.#skipReceived(start, end, true);\n\t\thooks.loseTrackGroups = (producer, start, end) => producer.#lose(start, end);\n\t\thooks.fillsOwe = (producer, start, end) => producer.#fills.owing(start, end);\n\t\thooks.hasScopedDrops = (producer) => scopedDrops(producer).length > 0;\n\t\thooks.appendNext = (producer) => producer.#appendAt(producer.#received);\n\t\thooks.createEmpty = (producer, key) => producer.#createGroup(key, 0, { replace: true });\n\t\thooks.createGroup = (producer, frame) => producer.#create(frame);\n\t\thooks.appendEmpty = (producer, start) => producer.#appendAt(producer.#keyOf(start));\n\t\thooks.supersedeStale = (producer) => {\n\t\t\tconst held = producer.#state.drops.all.filter((run) => run.maxAge !== undefined);\n\t\t\tfor (const run of held) producer.#setDrops(run.start, run.end);\n\t\t};\n\t\thooks.dropAnchors = (producer) => {\n\t\t\tfor (const state of [producer.#state, ...producer.#sinks]) state.dropsAnchors.set(true);\n\t\t};\n\t\thooks.startTrack = (producer, served) => {\n\t\t\tif (!producer.#wire) throw new Error(\"only a wire subscription declares a start\");\n\t\t\tproducer.#settle();\n\t\t\tproducer.#wire.served = served;\n\t\t\tproducer.#owe();\n\t\t\tfor (const state of [producer.#state, ...producer.#sinks]) state.startChanged.update((rev) => rev + 1);\n\t\t};\n\t\thooks.restateTrack = (producer) => {\n\t\t\tconst served = producer.#wire?.served;\n\t\t\tif (!served || served.restated) return;\n\t\t\t// The feed now reaches below the old START, so its gaps there are waited for afresh.\n\t\t\tif (typeof served.start === \"bigint\") producer.#arrivals.demand(0n, served.start, now());\n\t\t\thooks.startTrack(producer, { ...served, restated: true });\n\t\t};\n\t\thooks.cachedLargest = (producer, timescale) => producer.#cachedLargest(timescale);\n\t\thooks.finishedTimedFrame = (producer, key, id, timescale) => {\n\t\t\tconst group = producer.#cached.get(key)?.group;\n\t\t\tif (!group || group.closed.peek() !== null) return undefined;\n\t\t\treturn hooks.groupTimedFrame(group, id, timescale) ?? hooks.groupFrameCount(group);\n\t\t};\n\t\thooks.acceptedInfo = (producer) => producer.#state.info.peek();\n\t\thooks.holdTrack = (producer) => {\n\t\t\tproducer.#holds++;\n\t\t\tproducer.#reportWanted();\n\t\t\treturn () => {\n\t\t\t\tproducer.#holds--;\n\t\t\t\tproducer.#reportWanted();\n\t\t\t};\n\t\t};\n\t\thooks.reportedLargest = (producer, largest, finished) => {\n\t\t\tproducer.#advanceObject(largest);\n\t\t\tconst current = producer.#state.largest.peek();\n\t\t\tif (finished && current && current.group === largest?.group && current.frame === largest.frame)\n\t\t\t\tproducer.#finishLargest(largest.group);\n\t\t\telse if (producer.#state.largestGroup === \"skipped\") producer.#endLargest();\n\t\t};\n\t\thooks.reportedGroup = (producer, group) => producer.#advanceLargest({ group, frame: 0 });\n\t\tobjectLargest = (producer) => producer.#objectLargest;\n\t\tfillsOf = (producer) => producer.#fills;\n\t\tcachedHolds = (producer, key, whole = false) => {\n\t\t\tconst entry = producer.#cached.get(key);\n\t\t\tif (entry === undefined || entry.group.closed.peek() instanceof Error) return false;\n\t\t\treturn !whole || !hooks.groupHeadless(entry.group);\n\t\t};\n\t\treceivedCopy = (producer) => producer.#wire !== undefined;\n\t\tcachedIn = (producer, start, end) => {\n\t\t\tif (end - start <= BigInt(producer.#cached.size)) {\n\t\t\t\tconst found: bigint[] = [];\n\t\t\t\tfor (let key = start; key < end; key++) if (producer.#cached.has(key)) found.push(key);\n\t\t\t\treturn found;\n\t\t\t}\n\t\t\treturn [...producer.#cached.keys()].filter((key) => key >= start && key < end);\n\t\t};\n\t\tcachedLanded = (producer, start, end) => {\n\t\t\tlet landed: Instant | undefined;\n\t\t\tfor (const key of cachedIn(producer, start, end)) {\n\t\t\t\tconst arrived = producer.#cached.get(key)?.arrived;\n\t\t\t\tif (arrived && (!landed || arrived.gt(landed))) landed = arrived;\n\t\t\t}\n\t\t\treturn landed;\n\t\t};\n\t\tcachedSource = (producer, key) => {\n\t\t\tconst entry = producer.#cached.get(key);\n\t\t\treturn entry && !(entry.group.closed.peek() instanceof Error) ? entry.group : undefined;\n\t\t};\n\t\tcachedMirror = (producer, key, from) => {\n\t\t\tconst entry = producer.#cached.get(key);\n\t\t\tif (!entry || entry.group.closed.peek() instanceof Error) return undefined;\n\t\t\tconst mirror = entry.group.mirror();\n\t\t\tif (hooks.groupIndex(mirror) > from) {\n\t\t\t\tmirror.close();\n\t\t\t\treturn undefined;\n\t\t\t}\n\t\t\thooks.arriveGroup(mirror, entry.arrived);\n\t\t\t// A cache hit is an access, restarting the group's idle window.\n\t\t\tentry.charge.touch();\n\t\t\treturn mirror;\n\t\t};\n\t\treofferCached = (producer, sink, start, end, offer) => {\n\t\t\tconst held = new Set(sink.groups.peek().map((group) => group.start));\n\t\t\tfor (const entry of producer.#cache) {\n\t\t\t\tconst key = entry.group.start;\n\t\t\t\tif (key < start || key >= end || held.has(key) || !offer(key)) continue;\n\t\t\t\tproducer.#mirror(entry, sink);\n\t\t\t}\n\t\t};\n\t\treofferKeys = (producer, sink, keys) => {\n\t\t\tconst held = new Set(sink.groups.peek().map((group) => group.start));\n\t\t\tfor (const key of keys) {\n\t\t\t\tconst entry = producer.#cached.get(key);\n\t\t\t\tif (entry && !held.has(key)) producer.#mirror(entry, sink);\n\t\t\t}\n\t\t};\n\t\tmayLand = (producer, land) => producer.#landable(land) !== undefined;\n\t\tunaccounted = (producer, start, end, settled) => producer.#unaccounted(start, end, settled);\n\t\twireFed = (producer) => producer.#wire !== undefined;\n\t\tfeedFloor = (producer) => {\n\t\t\tif (!producer.#wire) return undefined;\n\t\t\tconst feed = producer.#feedStart();\n\t\t\treturn feed === \"pending\" ? producer.#wire.served?.requested : feed;\n\t\t};\n\t\towedRuns = (producer, start, end) => {\n\t\t\tif (!producer.#wire) return [];\n\t\t\tconst floor = feedFloor(producer);\n\t\t\treturn producer.#landing({\n\t\t\t\tstart: max(start, floor ?? 0n),\n\t\t\t\tend,\n\t\t\t\tfloor: floor !== undefined,\n\t\t\t\tgrace: producer.#grace(),\n\t\t\t});\n\t\t};\n\t\tunsettledFeedRuns = function* (producer, start, end) {\n\t\t\tconst feed = producer.#wire?.served?.feed;\n\t\t\tif (feed === undefined) {\n\t\t\t\tyield* producer.#landing({ start, end, floor: true, grace: undefined });\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tfor (const run of intersect(feed, start, end))\n\t\t\t\tyield* producer.#landing({ ...run, floor: true, grace: undefined }, true);\n\t\t};\n\t\tawaitedRuns = (producer, start, end) =>\n\t\t\tproducer.#wire\n\t\t\t\t? owedRuns(producer, start, end)\n\t\t\t\t: producer.#landing({ start, end, floor: true, grace: producer.#grace() });\n\t\towedGroup = (producer, start, end) => {\n\t\t\tif (!producer.#wire) return undefined;\n\t\t\tconst floor = feedFloor(producer);\n\t\t\tconst runs = producer.#landing({\n\t\t\t\tstart: max(start, floor ?? 0n),\n\t\t\t\tend,\n\t\t\t\t// A START still pending at no floor is waited on: groups arrive newest first, so the\n\t\t\t\t// feed may start below the first to arrive. Mirrors the Rust `TrackState::owed`.\n\t\t\t\tfloor: floor !== undefined || producer.#feedStart() === \"pending\",\n\t\t\t\tgrace: producer.#grace(),\n\t\t\t});\n\t\t\tfor (const run of runs) return { key: run.start, folds: run.folds };\n\t\t\treturn undefined;\n\t\t};\n\t}\n\n\t// The first group that may still land from the live feed, by the rule a pending tail is judged\n\t// by; see {@link Land}. Mirrors the Rust `TrackState::may_land`.\n\t#landable(land: Land): { key: bigint; folds?: Instant } | undefined {\n\t\tfor (const run of this.#landing(land)) {\n\t\t\tif (!land.delivered?.covers(run.start, run.end)) return { key: run.start, folds: run.folds };\n\t\t}\n\t\treturn undefined;\n\t}\n\n\t// The runs of `[start, end)` outside every cached whole group's span, where a group may still\n\t// start: none starts strictly inside one. Mirrors the Rust `TrackState::outside_spans`.\n\t#outsideSpans(start: bigint, end: bigint): Run[] {\n\t\tconst runs: Run[] = [];\n\t\tconst keys = this.#keys;\n\t\tlet at = start;\n\t\twhile (at < end) {\n\t\t\tconst idx = keyIndex(keys, at);\n\t\t\tif (idx > 0) {\n\t\t\t\tconst prev = keys[idx - 1];\n\t\t\t\tconst prevEnd = wholeAt(this, prev);\n\t\t\t\tif (prevEnd !== undefined && prevEnd > at) at = prevEnd;\n\t\t\t}\n\t\t\tif (at >= end) break;\n\t\t\tlet next = end;\n\t\t\tfor (let i = keyIndex(keys, at); i < keys.length && keys[i] < end; i++) {\n\t\t\t\tconst key = keys[i];\n\t\t\t\tconst keyEnd = wholeAt(this, key);\n\t\t\t\tif (keyEnd !== undefined && keyEnd > key + 1n) {\n\t\t\t\t\tnext = key + 1n;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (at < next) runs.push({ start: at, end: next });\n\t\t\tat = next;\n\t\t}\n\t\treturn runs;\n\t}\n\n\t*#landing(land: Land, belowStart = false): Generator<Run & { folds?: Instant }> {\n\t\tif (this.#state.closed.peek() !== undefined) return;\n\t\tlet start = land.start;\n\t\tif (!land.floor) {\n\t\t\tconst lowest = this.#arrivals.lowest();\n\t\t\tif (lowest === undefined) return;\n\t\t\tstart = max(start, lowest);\n\t\t}\n\t\t// A START bounds the feed only while the demand keeps the floor it answered: a lowered floor\n\t\t// asks the feed for the groups below it, which a fill must not duplicate.\n\t\tconst feed = belowStart ? undefined : this.#feedStart();\n\t\tif (typeof feed === \"bigint\") start = max(start, feed);\n\t\t// Below what the arrivals forgot, a group may have arrived already: asked, never waited on.\n\t\tstart = max(start, this.#arrivals.forgotten ?? 0n);\n\t\tconst declared = this.#state.end.peek()?.at;\n\t\tconst end = declared === undefined ? land.end : min(land.end, finalKey(declared));\n\t\tconst at = now();\n\t\tconst limit = this.#proven ? undefined : land.grace;\n\t\tconst drops = this.#state.drops;\n\t\tfor (const gap of this.#arrivals.gaps(start, end)) {\n\t\t\tconst folds = limit && gap.since?.saturatingAdd(limit);\n\t\t\tif (folds !== undefined && at.ge(folds)) continue;\n\t\t\tfor (const open of runGaps(drops.overlapping(gap.start, gap.end), gap.start, gap.end)) {\n\t\t\t\tfor (const part of this.#outsideSpans(open.start, open.end)) yield { ...part, folds };\n\t\t\t}\n\t\t}\n\t}\n\n\t// The lowest key of `[start, end)` the live feed has not accounted for a reader: not arrived,\n\t// outside the runs `settled` gives it a verdict on, before the track's end, and in a gap whose\n\t// grace has not folded. Unlike #landing, a key below where the feed starts counts. Mirrors the\n\t// Rust `TrackState::unaccounted`.\n\t#unaccounted(\n\t\tstart: bigint,\n\t\tend: bigint,\n\t\tsettled: (start: bigint, end: bigint) => Run[],\n\t): { folds?: Instant } | undefined {\n\t\tif (this.#state.closed.peek() !== undefined) return undefined;\n\t\tconst declared = this.#state.end.peek()?.at;\n\t\tif (declared !== undefined) end = min(end, finalKey(declared));\n\t\tconst at = now();\n\t\tconst limit = this.#grace();\n\t\tstart = max(start, this.#arrivals.forgotten ?? 0n);\n\t\tfor (const gap of this.#arrivals.gaps(start, end)) {\n\t\t\tconst folds = limit && gap.since?.saturatingAdd(limit);\n\t\t\tif (folds !== undefined && at.ge(folds)) continue;\n\t\t\tif (runGaps(settled(gap.start, gap.end), gap.start, gap.end).length > 0) return { folds };\n\t\t}\n\t\treturn undefined;\n\t}\n\n\t// Record `[start, end)` given up as `hole` says, returning the runs recorded. A skip is final\n\t// and the most authoritative verdict, so a drop never replaces one. An upstream drop (`open`)\n\t// also ends the groups still arriving in it with its error, so their readers settle now\n\t// rather than once the stream's reset lands. A skip names nothing produced.\n\t#drop(start: bigint, end: bigint, hole: Hole, open = false): Run[] {\n\t\t// Nothing at or past the end exists to give up, and a reader would ask for it again.\n\t\tconst declared = this.#state.end.peek()?.at;\n\t\tif (hole.reason !== \"skip\" && declared !== undefined) end = min(end, finalKey(declared));\n\t\tif (start >= end) return [];\n\t\tconst skipped =\n\t\t\thole.reason === \"skip\"\n\t\t\t\t? []\n\t\t\t\t: this.#state.drops.overlapping(start, end).filter((run) => run.reason === \"skip\");\n\t\tlet runs = runGaps(skipped, start, end);\n\t\tconst arriving: GroupProducer[] = [];\n\t\tif (open && hole.reason !== \"skip\") {\n\t\t\tfor (const [key, entry] of this.#cached) {\n\t\t\t\tconst closed = entry.group.closed.peek();\n\t\t\t\tif (key < start || key >= end || closed instanceof Error) continue;\n\t\t\t\t// A final drop ends a group still arriving, but one that finished here stays whole, as a\n\t\t\t\t// re-sent copy the subscriber refused leaves it: naming it given up would hide it from\n\t\t\t\t// every reader. A stale drop settles only the readers its budget covers, so it leaves a\n\t\t\t\t// group arriving too, which another subscription sharing the copy may be delivering.\n\t\t\t\tif (hole.maxAge === undefined && closed === undefined) arriving.push(entry.group);\n\t\t\t\telse runs = removeRun(runs, key, key + 1n);\n\t\t\t}\n\t\t}\n\t\t// A fill no longer owes what the track gave up for good. A stale verdict settles only\n\t\t// the readers it covers, so a fill asked by any other is still owed.\n\t\tif (hole.maxAge === undefined) this.#fills.dropped(start, end);\n\t\tfor (const run of runs) this.#setDrops(run.start, run.end, hole);\n\t\tfor (const group of arriving) hooks.abortGroup(group, holeError(hole));\n\t\t// A pending tail owes nothing the publisher gave up (see `#owes`). The arrivals leave the\n\t\t// run out while it is held, as in Rust: arriving it would open a gap below it, dated now,\n\t\t// which folds before a group still landing there arrives.\n\t\tthis.#owe();\n\t\t// Giving up the last keys below the end reaches it, as writing them would.\n\t\tthis.#endLargest();\n\t\treturn runs;\n\t}\n\n\t// The upstream subscription dropped `[start, end)` for itself: not delivered on it, which says\n\t// nothing of whether the groups exist, so the track records no drop. A copy of one still\n\t// arriving on it is given up for now, as `GroupProducer.abort` gives one up, unless it finished;\n\t// each key counts as arrived and not cached, as an evicted group does, so a reader that still\n\t// wants one asks a fill, which another request or route may answer. Mirrors the Rust\n\t// `Producer::drop_received`.\n\t#lose(start: bigint, end: bigint): void {\n\t\tif (start >= end || this.#state.closed.peek() !== undefined) return;\n\t\tfor (const [key, entry] of this.#cached) {\n\t\t\tif (key < start || key >= end || entry.fetched) continue;\n\t\t\tif (entry.group.closed.peek() === undefined)\n\t\t\t\thooks.abortGroup(entry.group, new StreamError(StreamCode.Cancel));\n\t\t}\n\t\t// Nothing at or past the end exists to ask for.\n\t\tconst declared = this.#state.end.peek()?.at;\n\t\tconst lost = declared === undefined ? end : min(end, finalKey(declared));\n\t\tif (this.#wire && start < lost) {\n\t\t\tthis.#wire.dropped ??= [];\n\t\t\tconst dropped = this.#wire.dropped;\n\t\t\tinsertRun(dropped, start, lost);\n\t\t\tif (dropped.length > MAX_RUNS) dropped.shift();\n\t\t}\n\t\tthis.#arrive(start, end);\n\t\t// Each reader still missing a key there asks a fill for it now, and an ordered read waiting on\n\t\t// the feed for one looks again, rather than on its next change.\n\t\tfor (const sink of start < lost ? this.#sinks : []) {\n\t\t\tlose(sink, start, lost);\n\t\t\tif (sink.waitingOrdered) sink.timelineChanged.update((revision) => revision + 1);\n\t\t}\n\t\tthis.#endLargest();\n\t}\n\n\t// A publisher may re-create a group it cut, and a group a reader's fill refused may still\n\t// arrive; the key is no longer given up.\n\t#undrop(key: bigint): void {\n\t\tif (this.#state.drops.at(key)) this.#setDrops(key, key + 1n);\n\t\tfor (const sink of this.#sinks) {\n\t\t\tconst refused = sink.refused.peek();\n\t\t\tif (dropAt(refused, key)) sink.refused.set(removeRun(refused, key, key + 1n));\n\t\t}\n\t}\n\n\t/**\n\t * Resolve this track's immutable publisher properties, committed at accept time.\n\t * Rejects if the track is closed before the properties are known.\n\t */\n\tinfo(): Promise<Info> {\n\t\treturn resolveInfo(this.#state);\n\t}\n\n\t/**\n\t * Publisher priority from the committed {@link Info}, or the default while its info is pending.\n\t *\n\t * Higher is served first. Hang publishers set this from `Catalog.PRIORITY` so\n\t * audio outranks video on the wire and in the bandwidth allocator.\n\t */\n\tget priority(): number {\n\t\treturn this.#state.info.peek()?.priority ?? DEFAULT_PRIORITY;\n\t}\n\n\t/** The timescale from the committed {@link Info}: `null` when scale-less, undefined while its info is pending. */\n\t// Read through `Track.Producer`-typed parameters in @moq/hang and @moq/json, which fallow does not link.\n\t// fallow-ignore-next-line unused-class-member\n\tget timescale(): Timescale | null | undefined {\n\t\treturn this.#state.info.peek()?.timescale;\n\t}\n\n\t/**\n\t * Settles once the track's outcome is final: `null` once its declared end is reached and\n\t * settled (every group below it finished) or on a clean\n\t * release, else the abort {@link Error}. The producer stays open after a settled end, serving its cache.\n\t * Peek it synchronously (`undefined` while open), observe it reactively, or `await` it.\n\t */\n\tget closed(): GetPromise<Error | null> {\n\t\treturn this.#state.outcome;\n\t}\n\n\t/** The aggregate subscription across live subscribers, or `undefined` when there are none. */\n\tget subscription(): Getter<Subscription | undefined> {\n\t\treturn this.#live;\n\t}\n\n\t/**\n\t * Commit the immutable publisher properties, resolving {@link info}. An omitted `maxAge` is\n\t * zero, the live edge only; see {@link InfoInit.maxAge}. Returns `this`.\n\t *\n\t * @internal Only for a producer made by `hooks.pendingTrack`: every other one commits its\n\t * info when constructed.\n\t */\n\taccept(info: InfoInit = {}): this {\n\t\tif (this.#state.closed.peek() !== undefined) return this;\n\t\tconst resolved = authoredInfo(info);\n\t\t// Anything written before accept() must match too. A mismatch closes the track, so\n\t\t// nothing waiting on info() hangs on a half-bound cache.\n\t\ttry {\n\t\t\tfor (const { group } of this.#cache) {\n\t\t\t\thooks.bindGroupTimed(group, resolved);\n\t\t\t\thooks.bindGroupCompression(group, resolved.compression === \"deflate\");\n\t\t\t}\n\t\t} catch (err) {\n\t\t\tthis.#close(err instanceof Error ? err : new Error(String(err)));\n\t\t\tthrow err;\n\t\t}\n\t\tthis.#state.info.set(resolved);\n\t\t// Propagate to any sink handed out before accept (the on-demand path).\n\t\tfor (const sink of this.#sinks) {\n\t\t\tsink.info.set(resolved);\n\t\t}\n\t\t// The info bounds the tail's grace, which judges what it still owes.\n\t\tthis.#settle();\n\t\tthis.#owe();\n\t\treturn this;\n\t}\n\n\t/**\n\t * An independent {@link Subscriber} reading this track's groups.\n\t *\n\t * It reads only the groups its {@link Subscription.ranges} cover. A live range's\n\t * {@link Live.max} is what asks for data: delivery skips every group it reached that the max\n\t * convicts. Without options this is {@link Subscription.default}, one live range whose max of\n\t * zero delivers only the latest group; a larger max reaches back over what it can still use,\n\t * and a history range (a key start) delivers every group the publisher's {@link Info.maxAge}\n\t * still considers fresh.\n\t */\n\tsubscribe(options: Subscription = Subscription.default()): Subscriber {\n\t\tconst sink = new TrackState(options);\n\t\tthis.#addSink(sink);\n\t\treturn makeSubscriber(this.name, sink);\n\t}\n\n\t/** A watch-only view of this track's subscriber demand. */\n\tdemand(): Demand {\n\t\treturn this.#demand;\n\t}\n\n\t/**\n\t * Open a {@link Requests} handle serving the groups readers miss: ones their ranges name that\n\t * the cache no longer holds, or never did, below the newest group written, and the groups a\n\t * fetch ({@link Consumer.fetchGroup}, or a peer's bounded read of named groups) asks for past\n\t * it. A handler that may still produce such a group leaves it unanswered while keeping the\n\t * fill: the group written answers it. Most producers never need one; a publisher backed by\n\t * storage opens one to serve its history. Mirrors the Rust `Producer::requests`.\n\t *\n\t * While one is open, each run of misses queues a {@link FillGroups}, which readers missing the same\n\t * groups share; with none open, a miss is given up and {@link Consumer.fetchGroup} of an\n\t * uncached group fails with `NotFound`. A reader only asks for what its budget still wants,\n\t * so a reader at the live edge never asks. The track stays one track: answered groups land\n\t * in its cache, and every reader of it sees them.\n\t *\n\t * A handle is also the only way to create a group below the newest one\n\t * ({@link Requests.createGroup}), so the last one closing skips every start below the newest\n\t * group this producer never produced, except those a fill already handed out still answers.\n\t */\n\trequests(): Requests {\n\t\treturn requestsOf(this.#fills);\n\t}\n\n\t// Ask for a group past every key written, judged by the track's refresh: a live join only\n\t// when the newest group outweighs the ratio, and any request only once the newest group is\n\t// at least the interval old. A request made sooner is deferred until then, and one made\n\t// while a request is pending coalesces into it, the earliest taking effect.\n\t#ask(ask: Ask): void {\n\t\tconst at = this.#asks(ask);\n\t\tif (at !== undefined) this.#pend(at, true);\n\t}\n\n\t// {@link #ask} for a {@link Subscriber.refresh} caller, resolving once the request is sent or\n\t// a group answers it. Aborting `signal` before then withdraws this caller's request.\n\t#request(signal?: AbortSignal): Promise<void> {\n\t\tif (signal?.aborted) return Promise.reject(signal.reason);\n\t\t// A closed track never sends another request, so the caller ends as a pending one would.\n\t\tconst closed = this.#state.closed.peek();\n\t\tif (closed !== undefined) return Promise.reject(closed ?? this.#closedBeforeSent());\n\t\t// A caller joining a request already sent has nothing left to wait for.\n\t\tif (this.#pending?.sent) return Promise.resolve();\n\t\tconst at = this.#asks(\"refresh\");\n\t\tif (at === undefined) return Promise.resolve();\n\t\tconst pending = this.#pend(at, false);\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tconst abort = () => {\n\t\t\t\tpending.settles.delete(settle);\n\t\t\t\tthis.#withdraw(pending);\n\t\t\t\treject(signal?.reason);\n\t\t\t};\n\t\t\tconst settle = (err?: Error) => {\n\t\t\t\tsignal?.removeEventListener(\"abort\", abort);\n\t\t\t\tif (err) reject(err);\n\t\t\t\telse resolve();\n\t\t\t};\n\t\t\tpending.settles.add(settle);\n\t\t\tsignal?.addEventListener(\"abort\", abort, { once: true });\n\t\t});\n\t}\n\n\t// Coalesce a request taking effect at `at` into the pending one, the earliest taking effect.\n\t#pend(at: Instant, kept: boolean): PendingRefresh {\n\t\tconst current = this.#pending;\n\t\tconst pending = current ?? { at, callers: 0, kept: false, sent: false, settles: new Set() };\n\t\tthis.#pending = pending;\n\t\tpending.kept ||= kept;\n\t\tif (!kept) pending.callers++;\n\t\t// Only a new request, or an earlier one, changes what is asked for.\n\t\tif (current?.at.le(at)) return pending;\n\t\tpending.at = at;\n\t\tthis.#reportWanted();\n\t\treturn pending;\n\t}\n\n\t// A caller of `pending` gave up: the last caller withdraws a request not yet sent, unless\n\t// something else that never withdraws asked too.\n\t#withdraw(pending: PendingRefresh): void {\n\t\tif (this.#pending !== pending || pending.sent) return;\n\t\tpending.callers--;\n\t\tif (pending.callers > 0 || pending.kept) return;\n\t\tthis.#endRefresh();\n\t\tthis.#reportWanted();\n\t}\n\n\t// Whatever serves the track read the group asked for: a due refresh is sent, resolving its\n\t// callers.\n\t#sent(): void {\n\t\tconst pending = this.#pending;\n\t\tif (!pending || pending.sent || !pending.at.le(now())) return;\n\t\tpending.sent = true;\n\t\tfor (const settle of pending.settles) settle();\n\t\tpending.settles.clear();\n\t}\n\n\t// The pending refresh ended, answered or withdrawn, or the track closed with `err`.\n\t#endRefresh(err?: Error): void {\n\t\tconst pending = this.#pending;\n\t\tthis.#pending = undefined;\n\t\tfor (const settle of pending?.settles ?? []) settle(err);\n\t}\n\n\t// What a refresh caller sees when the track closes cleanly before its request is sent.\n\t#closedBeforeSent(): Error {\n\t\treturn new StreamError(StreamCode.Cancel, { message: `track ${this.name} closed before the refresh was sent` });\n\t}\n\n\t// When a request as `ask` takes effect, if the track's refresh lets it ask at all.\n\t#asks(ask: Ask): Instant | undefined {\n\t\tconst refresh = this.#state.info.peek()?.refresh;\n\t\tconst latest = this.#state.latest;\n\t\tif (!refresh || !refreshes(refresh) || latest === undefined) return undefined;\n\t\tconst entry = this.#cached.get(latest);\n\t\t// The interval alone judges a refresh on a track that declares one, and a shed read\n\t\t// cannot decode on whatever the ratio says.\n\t\tconst ratio = ask === \"join\" || (ask === \"refresh\" && refresh.interval === null) ? refresh.ratio : null;\n\t\tif (ratio !== null && !(entry && hooks.overRefresh(entry.group, ratio))) return undefined;\n\t\tconst current = now();\n\t\tif (refresh.interval === null || !entry) return current;\n\t\t// `undefined` when no instant reaches it.\n\t\treturn entry.arrived.checkedAdd(refresh.interval)?.max(current);\n\t}\n\n\t// Report the demand: whether anyone subscribes to or holds the open track, and the group start\n\t// asked for while it is past every key written, which is the next free key once a pending\n\t// refresh is due. A deferred one arms a wakeup to report again when it comes due.\n\t#reportWanted(): void {\n\t\tconst current = now();\n\t\tconst request = this.#pending;\n\t\tconst pending = request?.at;\n\t\tconst due = pending?.le(current) === true;\n\t\tconst start = due ? max(this.#received, this.#floor) : this.#floor;\n\t\tconst asked = start >= this.#received ? start : undefined;\n\t\tthis.#asked.set(asked);\n\t\t// A closed track wants nothing, though a lookup still holds it.\n\t\tconst open = this.#state.closed.peek() === undefined;\n\t\tconst subscribed = this.#sinks.size > this.#apart.size;\n\t\tthis.#wanted.set(open && (subscribed || this.#holds > 0));\n\t\t// Only a subscriber reads the group a refresh asks for.\n\t\tconst refreshing = subscribed && asked !== undefined;\n\t\t// A request due in the batch that ended the last one leaves the level unchanged, so it\n\t\t// notifies anyway: the publisher must read it to send it.\n\t\tif (refreshing && request !== undefined && due && request !== this.#announced) {\n\t\t\tthis.#announced = request;\n\t\t\tthis.#refreshing.set(true, true);\n\t\t} else {\n\t\t\tthis.#refreshing.set(refreshing);\n\t\t}\n\n\t\tconst armed = this.#refreshTimer;\n\t\tif (pending !== undefined && !due && armed?.at.eq(pending)) return;\n\t\tarmed?.abort.abort();\n\t\tthis.#refreshTimer = undefined;\n\t\tif (pending === undefined || due || this.#state.closed.peek() !== undefined) return;\n\t\tconst timer = { at: pending, abort: new AbortController() };\n\t\tthis.#refreshTimer = timer;\n\t\t// A deferred refresh is never a reason to hold a Node/Bun process open.\n\t\tvoid sleepUntil(pending, { signal: timer.abort.signal, ref: false }).then(\n\t\t\t() => {\n\t\t\t\tif (this.#refreshTimer !== timer) return;\n\t\t\t\tthis.#refreshTimer = undefined;\n\t\t\t\tthis.#reportWanted();\n\t\t\t},\n\t\t\t() => {},\n\t\t);\n\t}\n\n\t// Register a downstream sink: seed its info, replay the retained window, and (while\n\t// the track is open) mirror future groups into it. A late subscriber to a closed\n\t// track still drains the buffered groups before seeing the end.\n\t#addSink(sink: TrackState): void {\n\t\tsink.producer = this;\n\t\tsink.drops = this.#state.drops;\n\t\tconst info = this.#state.info.peek();\n\t\tif (info) sink.info.set(info);\n\t\tsink.largest.set(this.#state.largest.peek());\n\t\tsink.first = this.#state.largest.peek()?.group;\n\t\tsink.largestEnded.set(this.#state.largestEnded.peek());\n\t\tsink.largestGroup = this.#state.largestGroup;\n\t\tsink.dropsAnchors.set(this.#state.dropsAnchors.peek());\n\n\t\tconst closed = this.#state.closed.peek();\n\t\tif (closed === undefined) {\n\t\t\tif (joinsLive(sink.update.peek()?.ranges ?? [])) this.#ask(\"join\");\n\t\t\tthis.#sinks.add(sink);\n\t\t\tthis.#reportWanted();\n\n\t\t\t// Count the sink's preferences into the aggregates, which the wire layer (or the serving\n\t\t\t// application) watches, and move them by each change it makes.\n\t\t\tthis.#join(sink);\n\n\t\t\t// Drop the sink once its consumer goes away, closing its mirrors so source\n\t\t\t// groups stop teeing into them, so a long-lived producer doesn't leak. This\n\t\t\t// covers mirrors already handed out via recvGroup (no longer in sink.groups)\n\t\t\t// by closing them through the cache's per-sink tracking.\n\t\t\tconst dispose = sink.closed.subscribe((c) => {\n\t\t\t\tif (c === undefined) return;\n\t\t\t\tconst abort = c instanceof Error ? c : undefined;\n\t\t\t\tthis.#sinks.delete(sink);\n\t\t\t\tthis.#apart.delete(sink);\n\t\t\t\tif (sink.asker) this.#fills.leave(sink.asker);\n\t\t\t\tfor (const asker of sink.keptOut) this.#fills.leave(asker);\n\t\t\t\tthis.#leave(sink);\n\t\t\t\t// Update demand: once the last subscriber leaves, the consumer wire (watching\n\t\t\t\t// {@link Demand.wanted}) tears the upstream down instead of downloading to nobody.\n\t\t\t\tthis.#reportWanted();\n\t\t\t\t// A closed track leaves a sink's buffered mirrors readable; they age out\n\t\t\t\t// with the cache, so a stale consumer can't pin them.\n\t\t\t\tif (this.#state.closed.peek() !== undefined) {\n\t\t\t\t\tdispose();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tfor (const entry of this.#cache) {\n\t\t\t\t\tconst mirror = entry.mirrors.get(sink);\n\t\t\t\t\tif (mirror) {\n\t\t\t\t\t\t// A group its recovery moved to another copy no longer reads this one.\n\t\t\t\t\t\tif (hooks.readsMirrored(mirror)) hooks.releaseGroupReader(mirror, abort);\n\t\t\t\t\t\tentry.mirrors.delete(sink);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfor (const group of sink.groups.peek()) hooks.releaseGroupReader(group, abort);\n\t\t\t\tdispose();\n\t\t\t});\n\t\t}\n\n\t\t// Full, unlike a write's bounded scan, so the subscriber gets no group already idled out.\n\t\tthis.#evictExpired(true);\n\t\tif (sink.closed.peek() === undefined) for (const entry of this.#cache) this.#mirror(entry, sink);\n\n\t\tsink.received.set(this.#received);\n\t\tsink.end.set(this.#state.end.peek());\n\t\tsink.owed.set(this.#state.owed.peek());\n\t\tif (closed !== undefined) {\n\t\t\tsink.aborted = this.#state.aborted;\n\t\t\tcloseTrackState(sink, closed instanceof Error ? closed : undefined);\n\t\t}\n\t}\n\n\t// Count `sink`'s preferences into the aggregates, then move them by each change it makes, so a\n\t// change costs what it moved rather than every subscriber's ranges. The wire layer observes\n\t// `#requested` and emits SUBSCRIBE_UPDATE.\n\t//\n\t// Each live join's max is the subscribers' own, not clamped to the track's maxAge: the\n\t// publisher applies its own, as each reader's budget does, so the demand asked upstream is the\n\t// same before and after the info lands.\n\t#join(sink: TrackState): void {\n\t\tthis.#moved(sink, { after: sink.update.given(), gone: [], came: sink.update.held() }, true);\n\t\tsink.update.onChange = (change) => this.#moved(sink, change);\n\t\tthis.#subscribed();\n\t}\n\n\t// Take `sink` out of the aggregates.\n\t#leave(sink: TrackState): void {\n\t\tsink.update.onChange = undefined;\n\t\tthis.#countAsks(sink, [], []);\n\t\tthis.#moved(sink, { before: sink.update.given(), gone: sink.update.held(), came: [] });\n\t\tthis.#counted.delete(sink);\n\t\tthis.#subscribed();\n\t}\n\n\t// Count `times` and `joins` in the wire's aggregate instead of those `sink` counted; see\n\t// {@link countAsks}.\n\t// Each counts once however many of the sink's ranges wait on it: the aggregate counts\n\t// readers, so a count added once is taken once.\n\t#countAsks(sink: TrackState, asked: readonly bigint[], asking: readonly JoinAsk[]): void {\n\t\tconst sameJoin = (a: JoinAsk, b: JoinAsk) =>\n\t\t\ta.min === b.min && a.end === b.end && a.budget === b.budget && a.since === b.since;\n\t\tconst times = [...new Set(asked)];\n\t\tconst joins = asking.filter((join, i) => asking.findIndex((other) => sameJoin(other, join)) === i);\n\t\tconst held = sink.asks;\n\t\tconst refuse = sink.refuseTime;\n\t\tif (refuse && (times.length !== held.length || !times.every((ask, i) => ask === held[i]))) {\n\t\t\tfor (const ask of times) if (!held.includes(ask)) this.#requested.ask(ask, refuse, true);\n\t\t\tfor (const ask of held) if (!times.includes(ask)) this.#requested.ask(ask, refuse, false);\n\t\t\tsink.asks = [...times];\n\t\t}\n\t\tconst waiting = sink.joins;\n\t\tif (joins.length === waiting.length && joins.every((join, i) => sameJoin(join, waiting[i]))) return;\n\t\tfor (const join of joins) if (!waiting.some((w) => sameJoin(w, join))) this.#requested.join(join, true);\n\t\tfor (const join of waiting) if (!joins.some((j) => sameJoin(j, join))) this.#requested.join(join, false);\n\t\tsink.joins = [...joins];\n\t}\n\n\t// Take a sink that became a fetch out of the live aggregate, before anyone sees it there.\n\t#unlive(sink: TrackState): void {\n\t\tif (!this.#counted.delete(sink)) return;\n\t\tthis.#live.replace({ before: sink.update.given(), gone: sink.update.held(), came: [] });\n\t\tthis.#subscribed();\n\t}\n\n\t// Count `sink`, a wire fetch's, in no demand when `history` says it registers reading only\n\t// history, and this track reached all of it. Any later change counts it in again for good.\n\t// Mirrors the Rust `Preferences::register`.\n\t#history(sink: TrackState, history: boolean): void {\n\t\tif (history) {\n\t\t\tif (sink.closed.peek() !== undefined || !this.#reached(sink.update.peek()?.ranges ?? [{}])) return;\n\t\t\tthis.#apart.add(sink);\n\t\t\tthis.#unlive(sink);\n\t\t\tthis.#reportWanted();\n\t\t\treturn;\n\t\t}\n\t\tif (!this.#apart.delete(sink)) return;\n\t\tthis.#counted.add(sink);\n\t\tthis.#live.replace({ after: sink.update.given(), gone: [], came: sink.update.held() });\n\t\tthis.#subscribed();\n\t\tthis.#reportWanted();\n\t}\n\n\t// Whether `ranges`, a fetch's, read only history this track's own publisher reached: below its\n\t// newest group, and that group too once it is whole, or any group while a handler serves fills,\n\t// which answers a fetch past the live edge too. Mirrors the Rust `TrackState::reached`.\n\t#reached(ranges: readonly Range[]): boolean {\n\t\tif (this.#copy) return false;\n\t\tconst end = rangesEnd(ranges);\n\t\tif (end === undefined || end === 0n) return false;\n\t\tif (this.#fills.serving) return true;\n\t\tif (this.#received === 0n) return false;\n\t\tconst newest = this.#received - 1n;\n\t\tconst entry = this.#cached.get(newest);\n\t\tconst whole = entry !== undefined && entry.group.closed.peek() === null && !hooks.groupHeadless(entry.group);\n\t\treturn end <= (whole ? this.#received : newest);\n\t}\n\n\t// Move the aggregates by `sink`'s `change`, counting it live when `joining` a live sink.\n\t#moved(sink: TrackState, change: Change, joining = false): void {\n\t\t// Settled before the demand moves, which may reopen the outcome.\n\t\tthis.#settle();\n\t\tconst requested = this.#requested.replace(change);\n\t\tif (joining && !sink.fetch) this.#counted.add(sink);\n\t\tconst live = this.#counted.has(sink) && this.#live.replace(change);\n\t\t// The requested floor bounds what a pending tail owes.\n\t\tif (requested || live) this.#owe();\n\t}\n\n\t// Whether a reader beyond one-shot fetches subscribes.\n\t#subscribed(): void {\n\t\tthis.#subscribing.set([...this.#counted].some((sink) => sink.closed.peek() === undefined));\n\t}\n\n\t// Mirror a cached source group into a sink. The mirror fills synchronously as the\n\t// source is written and keeps its own read cursor; frame bytes are shared by\n\t// reference. Tracked on the entry so eviction can drop it from the sink.\n\t#mirror(entry: CachedGroup, sink: TrackState): void {\n\t\t// A failed copy, a fill answer or an aborted live group, is no new reader's: like an evicted\n\t\t// group it holds nothing to read, so the reader misses the key and asks a fill for it.\n\t\tif (entry.group.closed.peek() instanceof Error) return;\n\t\tconst dst = entry.group.mirror();\n\t\thooks.arriveGroup(dst, entry.arrived);\n\t\tif (entry.unverified) hooks.unverifyGroup(dst);\n\t\tentry.mirrors.set(sink, dst);\n\t\tif (sink.reads?.(dst.start) === false) hooks.groupReads(dst, false);\n\t\tif ((sink.timeline.at(-1)?.start ?? -1n) >= dst.start) lose(sink, dst.start);\n\t\tsortedInsert(sink.timeline, dst);\n\t\tsink.arrived++;\n\t\tvoid dst.readable().then(() => {\n\t\t\t// Starting, or ending empty, below the newest moves the reach of the keys below it.\n\t\t\tif ((sink.timeline.at(-1)?.start ?? -1n) > dst.start) lose(sink, dst.start);\n\t\t\tsink.timelineChanged.update((revision) => revision + 1);\n\t\t});\n\t\tsink.latest = max(sink.latest ?? 0n, dst.start);\n\t\tsink.received.set(max(sink.received.peek(), dst.start + 1n));\n\t\tsink.groups.mutate((groups) => bufferInsert(groups, dst));\n\t}\n\n\t// Drop a cached group's mirror from every sink so no consumer can pin it, the cache pool\n\t// having reclaimed it for idling, or a new copy having replaced it.\n\t#evict(entry: CachedGroup): void {\n\t\tconst closed = entry.group.closed.peek();\n\t\tconst start = entry.group.start;\n\t\tif (\n\t\t\t!entry.fetched &&\n\t\t\tclosed instanceof Error &&\n\t\t\t!EVICTED.has(closed) &&\n\t\t\tholeEnd(this.#state.drops, start, true) === undefined\n\t\t)\n\t\t\tthis.#cut = this.#cut\n\t\t\t\t? { start: min(this.#cut.start, start), end: max(this.#cut.end, start + 1n) }\n\t\t\t\t: { start, end: start + 1n };\n\t\t// Reclaiming a group the publisher never closed ends it as the gap it is, before\n\t\t// the mirrors below would otherwise report a clean finish to a reader that had\n\t\t// drained it. The usual case, an already-closed group aging out, keeps its own\n\t\t// terminal state.\n\t\tconst lost = new TooFarBehind();\n\t\tEVICTED.add(lost);\n\t\tif (entry.group.closed.peek() === undefined) hooks.abortGroup(entry.group, lost);\n\t\tconst mirrors = [...entry.mirrors.values()].filter((mirror) => hooks.evictGroup(mirror, lost));\n\t\tthis.#unlink(entry);\n\t\tfor (const mirror of mirrors) mirror.close();\n\t}\n\n\t// Take a failed fill answer out of every sink that has not read it, as Rust serves no failed\n\t// fetch-only slot; #mirror gives it to no new sink either. The entry stays cached and\n\t// reclaimable, as Rust keeps a spent slot until its scan reclaims it, so a reader already\n\t// holding it keeps its frames and the fill's own failure.\n\t#withhold(entry: CachedGroup): void {\n\t\tfor (const [sink, mirror] of entry.mirrors) {\n\t\t\t// A fetch's own outcome.\n\t\t\tif (sink.fetch) continue;\n\t\t\tconst index = sink.groups.peek().indexOf(mirror);\n\t\t\tif (index < 0) continue;\n\t\t\tsink.groups.mutate((groups) => {\n\t\t\t\tgroups.splice(index, 1);\n\t\t\t});\n\t\t\tconst at = lowerBound(sink.timeline, mirror.start);\n\t\t\tif (sink.timeline[at] === mirror) sink.timeline.splice(at, 1);\n\t\t\tlose(sink, mirror.start);\n\t\t\tentry.mirrors.delete(sink);\n\t\t\thooks.releaseGroupReader(mirror, undefined);\n\t\t}\n\t}\n\n\t// A cached copy skipped: no sink is handed it, the cache lets it go, and the key is recorded\n\t// skipped for good. A reader already holding it reads the skip. Mirrors the Rust\n\t// `TrackState::skip_copy`.\n\t#skipCopy(entry: CachedGroup): void {\n\t\tconst key = entry.group.start;\n\t\tthis.#withhold(entry);\n\t\tthis.#uncache(entry);\n\t\tthis.#drop(key, key + 1n, skipHole());\n\t}\n\n\t// Take a cached group's mirrors out of every sink, so a subscriber can no longer\n\t// receive them. A reader already holding one keeps it as is.\n\t#unlink(entry: CachedGroup): void {\n\t\tfor (const [sink, mirror] of entry.mirrors) unlinkMirror(sink, mirror);\n\t\tentry.mirrors.clear();\n\t}\n\n\t// Take a cached group out of the cache lookups and its track's account.\n\t#uncache(entry: CachedGroup, evicted = false): void {\n\t\t// Judged while the entry still shows whether it finished.\n\t\tthis.#retireCut();\n\t\tthis.#cache.delete(entry);\n\t\tconst key = entry.group.start;\n\t\tif (this.#cached.get(key) === entry) {\n\t\t\tthis.#cached.delete(key);\n\t\t\tsortedRemove(this.#keys, key);\n\t\t\t// The groups gone on either side of it now lie between the same two cached groups.\n\t\t\t// At `key` too: a fetched copy keeps the departure of the live group it stands in for.\n\t\t\tconst below = this.#departed[lowerBound(this.#departed, key + 1n) - 1];\n\t\t\tconst held = this.#keys[keyIndex(this.#keys, key) - 1];\n\t\t\tif (below && (held === undefined || below.start > held)) this.#forgetDepartedAbove(key);\n\t\t\t// The run it kept above it may expire now.\n\t\t\tconst above = this.#state.drops.keysAt(key + 1n);\n\t\t\tif (above?.start === key + 1n) this.#rearmDrops(above.start, above.end);\n\t\t}\n\t\tthis.#unbound(entry, evicted);\n\t\tthis.#account.remove(entry);\n\t\thooks.chargeGroup(entry.group, undefined);\n\t}\n\n\t// Record live group `entry`, which the cache let go of, for the groups below it: the lowest one\n\t// gone between two cached groups shadows any above it. Mirrors the Rust `TrackState::depart`.\n\t#depart(entry: CachedGroup, span: { first?: Timestamp; latest?: Timestamp }): void {\n\t\tconst key = entry.group.start;\n\t\tconst edge = this.#departedEdge;\n\t\tif (span.latest && (!edge || key > edge.key || (key === edge.key && edge.latest.isBefore(span.latest))))\n\t\t\tthis.#departedEdge = { key, latest: span.latest };\n\t\tconst held = this.#keys[keyIndex(this.#keys, key) - 1];\n\t\tconst departed = this.#departed;\n\t\tconst at = lowerBound(departed, key);\n\t\tif (at > 0 && (held === undefined || departed[at - 1].start > held)) return;\n\t\tthis.#forgetDepartedAbove(key);\n\t\tdeparted.splice(at, 0, { start: key, arrived: entry.arrived, first: span.first });\n\t}\n\n\t// Forget the group gone between `key` and the next cached group: one at or below `key` shadows\n\t// it now. Mirrors the Rust `TrackState::forget_departed_above`.\n\t#forgetDepartedAbove(key: bigint): void {\n\t\tconst departed = this.#departed;\n\t\tconst at = lowerBound(departed, key + 1n);\n\t\tconst above = this.#keys[keyIndex(this.#keys, key + 1n)];\n\t\tif (at < departed.length && (above === undefined || departed[at].start < above)) departed.splice(at, 1);\n\t}\n\n\t// The starts a first frame of group `key` must fall between: the nearest checked\n\t// starts cached on either side, since groups land out of key order, and the eviction\n\t// watermark. Throws {@link TimestampMismatch} on a rewind or a tie: starts strictly increase.\n\t// Returns whether the group is late, at or below the watermark, where its floor may be gone,\n\t// so the watermark caps it instead and it is accepted unverified. Mirrors the Rust\n\t// `Neighbors::admit`.\n\t#admit(key: bigint, start: Timestamp): boolean {\n\t\tconst bounds = this.#bounds;\n\t\tconst index = lowerBound(bounds, key);\n\t\tlet floor = bounds[index - 1]?.first;\n\t\tlet ceiling = bounds[bounds[index]?.start === key ? index + 1 : index]?.first;\n\t\tconst evicted = this.#evicted;\n\t\tconst late = evicted !== undefined && key <= evicted.start;\n\t\t// The evicted group itself, fetched again, starts where it did: only its neighbors bound it.\n\t\tif (evicted && key < evicted.start) {\n\t\t\tif (ceiling === undefined || evicted.first.isBefore(ceiling)) ceiling = evicted.first;\n\t\t} else if (evicted && !late) {\n\t\t\tif (floor === undefined || floor.isBefore(evicted.first)) floor = evicted.first;\n\t\t}\n\t\tif ((floor && !floor.isBefore(start)) || (ceiling && !start.isBefore(ceiling))) throw new TimestampMismatch();\n\t\treturn late;\n\t}\n\n\t// Record a cached group's checked start: a bound for its neighbors, or unverified. Either\n\t// indexes where it starts, an unverified one only where a local handler serves the history,\n\t// as the Rust `index_start` does.\n\t#record(entry: CachedGroup, start: Timestamp, late: boolean): void {\n\t\tconst key = entry.group.start;\n\t\tif (late) {\n\t\t\tentry.unverified = true;\n\t\t\tfor (const mirror of entry.mirrors.values()) hooks.unverifyGroup(mirror);\n\t\t\treturn;\n\t\t}\n\t\tentry.bound = start;\n\t\tsortedInsert(this.#bounds, { start: key, first: start });\n\t}\n\n\t// Drop a group's checked start as it leaves the cache, raising the watermark to it when\n\t// it was evicted.\n\t#unbound(entry: CachedGroup, evicted = false): void {\n\t\tconst key = entry.group.start;\n\t\tconst start = entry.bound;\n\t\tif (start === undefined) return;\n\t\tsortedRemove(this.#bounds, key);\n\t\tif (evicted && (this.#evicted === undefined || key > this.#evicted.start)) {\n\t\t\tthis.#evicted = { start: key, first: start };\n\t\t}\n\t}\n\n\t// The cached group at the newest key written, if still cached.\n\t#edgeEntry(): CachedGroup | undefined {\n\t\tconst latest = this.#state.latest;\n\t\treturn latest === undefined ? undefined : this.#cached.get(latest);\n\t}\n\n\t// The newest group remains replayable while the track is live, even after the group\n\t// closes: a catalog can publish one snapshot for the broadcast's whole lifetime. An\n\t// aborted one holds nothing worth replaying, so it ages out like any other.\n\t#protects(entry: CachedGroup): boolean {\n\t\treturn (\n\t\t\tthis.#state.closed.peek() === undefined &&\n\t\t\tentry.group.start === this.#state.latest &&\n\t\t\t!(entry.group.closed.peek() instanceof Error)\n\t\t);\n\t}\n\n\t// The newest frame in the cache, as {@link Subscriber.largest} reads it from a sink:\n\t// unknown once the newest group is evicted, since what is left cannot say where the edge is.\n\t// With `timescale`, its frame is the last frame's moq-timestamp Object ID at that scale.\n\t#cachedLargest(timescale?: Timescale): Position | undefined {\n\t\tconst latest = this.#state.latest;\n\t\tif (latest === undefined || !this.#cached.has(latest)) return undefined;\n\n\t\tlet largest: Position | undefined;\n\t\tfor (const { group } of this.#cache) {\n\t\t\tconst count = hooks.groupFrameCount(group);\n\t\t\tif (count > hooks.groupOffset(group) && (largest === undefined || group.start > largest.group)) {\n\t\t\t\tconst timed = timescale && hooks.groupLastTimedId(group, timescale);\n\t\t\t\tlargest = { group: group.start, frame: timed === undefined ? count - 1 : Number(timed) };\n\t\t\t}\n\t\t}\n\t\treturn largest;\n\t}\n\n\t#advanceLargest(largest: Position | undefined): void {\n\t\tif (!largest) return;\n\t\tconst current = this.#state.largest.peek();\n\t\tif (current && !after(largest, current)) return;\n\t\t// A later report about a skipped group cannot reopen it.\n\t\tconst skipped =\n\t\t\tcurrent?.group === largest.group\n\t\t\t\t? this.#state.largestGroup === \"skipped\"\n\t\t\t\t: this.#state.drops.at(largest.group)?.reason === \"skip\";\n\t\tfor (const state of [this.#state, ...this.#sinks]) {\n\t\t\tstate.first ??= largest.group;\n\t\t\tstate.largest.set(largest);\n\t\t\tstate.largestGroup = skipped ? \"skipped\" : \"open\";\n\t\t}\n\t}\n\n\t#advanceObject(largest: Position | undefined): void {\n\t\tif (largest && (!this.#objectLargest || after(largest, this.#objectLargest))) this.#objectLargest = largest;\n\t\tthis.#advanceLargest(largest);\n\t}\n\n\t/** The track's largest location: its newest group at the newest frame, or undefined before any. */\n\tlargest(): Position | undefined {\n\t\treturn this.#state.largest.peek();\n\t}\n\n\t// Evict the groups idle past the pool's window: every one when `full`, else a bounded scan.\n\t#evictExpired(full: boolean): void {\n\t\tif (this.#account.evictExpired(full)) this.#settle();\n\t}\n\n\t// Retain a source group and fan it out to every live sink; its frame 0 is checked\n\t// against this track when it lands.\n\t// `fetched` marks a group a fill answered, which the live feed never delivered: it accounts\n\t// for nothing the feed owes, as the Rust `insert` records arrivals only for visible groups.\n\t// `succeeds` is a failed copy of the same key this one takes over: its mirrors held open\n\t// for a duplicate continue on this one, and each sink in `kept` keeps its mirror.\n\t#publish(\n\t\tgroup: GroupProducer,\n\t\tfetched = false,\n\t\tsucceeds?: { failed: GroupProducer; kept?: Map<TrackState, GroupConsumer> },\n\t): void {\n\t\tthis.#settle();\n\t\tconst entry: CachedGroup = {\n\t\t\tgroup,\n\t\t\tcharge: this.#account.charge(),\n\t\t\tmirrors: new Map<TrackState, GroupConsumer>(),\n\t\t\tarrived: now(),\n\t\t\tfetched: fetched || undefined,\n\t\t};\n\t\thooks.chargeGroup(group, entry.charge);\n\t\tif (succeeds) hooks.succeedGroup(group, succeeds.failed);\n\t\tthis.#undrop(group.start);\n\t\thooks.onGroupAbort(group, (error) => {\n\t\t\t// An eviction takes the mirrors out itself, and a replaced copy is no longer the key's.\n\t\t\tif (EVICTED.has(error) || this.#cached.get(group.start) !== entry) return;\n\t\t\t// Skipped, by its producer or a relay's upstream: the key never existed, for good, which\n\t\t\t// any copy says.\n\t\t\tif (toStreamCode(error) === StreamCode.Skip) this.#skipCopy(entry);\n\t\t\t// No reader is handed a failed fill answer (see #withhold), withheld as it aborts so a\n\t\t\t// read that follows at once cannot take it: its key is unknown again, owed while the\n\t\t\t// feed owes it, else judged by budget or filled again.\n\t\t\telse if (fetched) this.#withhold(entry);\n\t\t});\n\t\tgroup.closed.then((closed) => {\n\t\t\t// An aborted live edge is no longer protected, so it may expire like any other.\n\t\t\tif (closed instanceof Error) this.#account.demote(entry);\n\t\t\tif (closed === null) {\n\t\t\t\t// A group the feed delivered whole accounts for its span: no other group starts\n\t\t\t\t// strictly inside it, so a pending tail owes none of them.\n\t\t\t\tconst end = hooks.groupWholeEnd(group);\n\t\t\t\tif (!fetched && end !== undefined && end > group.start + 1n) this.#arrive(group.start + 1n, end);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t// A re-created group already replaced this one.\n\t\t\tconst current = this.#cached.get(group.start);\n\t\t\tif (current && current.group !== group) return;\n\t\t\t// A failed copy holds nothing to read, so each reader's probe misses it again.\n\t\t\tfor (const sink of entry.mirrors.keys()) lose(sink, group.start);\n\t\t\t// Any abort but a skip is the copy's own, never the track's: like an evicted group it\n\t\t\t// records nothing, so a reader that still wants the key asks a fill for it again.\n\t\t});\n\t\tconst key = group.start;\n\t\thooks.admitGroupStart(group, (start) => {\n\t\t\tconst late = this.#admit(key, start);\n\t\t\treturn () => this.#record(entry, start, late);\n\t\t});\n\t\tthis.#cache.add(entry);\n\t\tthis.#cached.set(group.start, entry);\n\t\tsortedInsert(this.#keys, group.start);\n\t\t// Held again, so it is no longer gone.\n\t\tconst gone = lowerBound(this.#departed, key);\n\t\tif (!fetched && this.#departed[gone]?.start === key) this.#departed.splice(gone, 1);\n\t\tthis.#fills.arrived(group.start);\n\t\tthis.#advance(group.start, !fetched);\n\t\tif (!fetched) {\n\t\t\tthis.#arrive(group.start);\n\t\t}\n\t\tthis.#produce(group.start);\n\t\t// A newer group demotes the live edge to an evictable one.\n\t\tconst edge = this.#edgeEntry();\n\t\tthis.#state.latest = max(this.#state.latest ?? 0n, group.start);\n\t\tif (edge && edge !== entry && !this.#protects(edge)) this.#account.demote(edge);\n\t\tthis.#account.insert(entry);\n\t\tfor (const sink of this.#sinks) {\n\t\t\tconst mirror = succeeds?.kept?.get(sink);\n\t\t\t// Continued, it stays the sink's copy of the group, so the sink never holds two.\n\t\t\tif (mirror && mirror.closed.peek() === undefined) {\n\t\t\t\tentry.mirrors.set(sink, mirror);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (mirror) unlinkMirror(sink, mirror);\n\t\t\tthis.#mirror(entry, sink);\n\t\t}\n\t\t// Follow the group's frames as they land, past the head `#advance` already named.\n\t\tconst stop = hooks.groupProgress(group, (total) => {\n\t\t\tif (total > hooks.groupOffset(group)) this.#advanceObject({ group: group.start, frame: total - 1 });\n\t\t\t// A frame can change an owed hole's reach or drift edge without adding a group.\n\t\t\tfor (const sink of this.#sinks)\n\t\t\t\tif (sink.waitingOrdered) sink.timelineChanged.update((revision) => revision + 1);\n\t\t});\n\t\tvoid group.closed.then((closed) => {\n\t\t\tstop();\n\t\t\tfor (const sink of this.#sinks)\n\t\t\t\tif (sink.waitingOrdered) sink.timelineChanged.update((revision) => revision + 1);\n\t\t\tif (closed === null) this.#finishLargest(group.start);\n\t\t\t// A failed fill answer holds no end open (see #settled), so the end may settle now, as the\n\t\t\t// Rust `poll_outcome` judges again once any copy closes.\n\t\t\telse if (fetched) this.#settle();\n\t\t});\n\t\t// Give held mirrors the new live edge before pruning their timeline entry,\n\t\t// so their latency guard can preserve a terminal expiry verdict.\n\t\tthis.#evictExpired(false);\n\t}\n\n\t// Record a written key. It raises the largest too, at the head of an empty group, so\n\t// a later group below it never changes it. A group (`answers`) at or past the next free\n\t// key answers a pending refresh; anything else written there moves the key it\n\t// asks for.\n\t#advance(key: bigint, answers: boolean): void {\n\t\tconst next = this.#received;\n\t\tconst kept = this.#keptDrops();\n\t\tthis.#received = max(next, key + 1n);\n\t\tif (this.#keptDrops() > kept) this.#rearmDrops(kept);\n\t\tthis.#advanceLargest({ group: key, frame: 0 });\n\t\tthis.#endLargest();\n\t\tif (this.#pending && key >= next && answers) {\n\t\t\tthis.#endRefresh();\n\t\t\tthis.#floor = max(this.#floor, key);\n\t\t}\n\t\t// Even unanswered, the first key written ends the ask for the first group.\n\t\tthis.#reportWanted();\n\t}\n\n\t// `start` as a group key: its value at the track's timescale, rounded down, or the key of an\n\t// unscaled timestamp on a scale-less track. A timed start before the track's info is accepted\n\t// has no timescale to key it in.\n\t#keyOf(start: Timestamp): bigint {\n\t\tconst info = this.#state.info.peek();\n\t\tif (info === undefined && start.scale !== undefined)\n\t\t\tthrow new Error(\"a timed group start needs the track's timescale: accept() it first\");\n\t\tconst rescaled = info === undefined ? start : rescale(info, start);\n\t\treturn BigInt(rescaled.value);\n\t}\n\n\t// A new group of this track: a metadata copy's holds each frame's header alone.\n\t#newGroup(key: bigint): GroupProducer {\n\t\tconst group = new GroupProducer(key);\n\t\tif (this.#meta) hooks.metaGroup(group);\n\t\treturn group;\n\t}\n\n\t// Hold a group to this track's timedness, once the track has committed it.\n\t#bind(group: GroupProducer): void {\n\t\tconst info = this.#state.info.peek();\n\t\tif (info) {\n\t\t\thooks.bindGroupTimed(group, info);\n\t\t\thooks.bindGroupCompression(group, info.compression === \"deflate\");\n\t\t}\n\t}\n\n\t// Refuse a write once the track is closed, or at or past its declared end.\n\t#writable(key: bigint): void {\n\t\tif (this.#state.closed.peek() !== undefined) throw new Error(\"track is closed\");\n\t\tconst end = this.#state.end.peek()?.at;\n\t\tif (end !== undefined && key >= finalKey(end)) {\n\t\t\tthrow new Error(`sequence ${key} is at or past the track's end ${end.group}/${end.frame}`);\n\t\t}\n\t}\n\n\t// Cap a group the end cuts, so it never holds a frame past the end.\n\t#cap(group: GroupProducer): void {\n\t\tconst end = this.#state.end.peek()?.at;\n\t\tif (end !== undefined && end.frame !== 0 && end.group === group.start) hooks.limitGroup(group, end.frame);\n\t}\n\n\t/**\n\t * Create the next group, after every group this track holds, whose first frame is `frame`: the\n\t * group starts at its timestamp. Mirrors the Rust `append_group`.\n\t *\n\t * A timed track converts the timestamp into its timescale, rounding down, as {@link writeFrame}\n\t * does; a scale-less track takes {@link Timestamp.unscaled} at the group's key. A timestamp that\n\t * doesn't match the track, or at or before a group this track holds, throws\n\t * {@link TimestampMismatch}, like a rewound frame, before any group exists.\n\t *\n\t * Appending says the producer will not go back, so it skips every start below the new group\n\t * that it never produced or dropped, from just past its previous append (from 0 before the\n\t * first, even after {@link Requests.createGroup}): consecutive appends name the span between\n\t * their starts. A drop given there stays a drop. The skipped starts are then final: creating one\n\t * throws {@link Skipped}.\n\t *\n\t * The same broadcast, track, and group start always name the same content, and nothing\n\t * checks it: the broadcast remembers nothing of an earlier producer of the name. A recreated\n\t * track, or a restarted publisher keeping its identity, keeps its starts moving forward, as\n\t * its media time does, or uses a new track name or identity. Reusing a start only corrupts\n\t * this broadcast for its readers. Datagram keys name no cached content and are exempt.\n\t *\n\t * Its later frames must match the track's {@link Info.timescale}: a scaled timestamp on every\n\t * frame of a timed track, and on a scale-less one {@link Timestamp.unscaled} at the group's\n\t * start, or the write throws {@link TimestampMismatch}.\n\t */\n\tappendGroup(frame: Frame): GroupProducer {\n\t\tthis.#checkFirst(frame.payload.byteLength);\n\t\tconst group = this.#appendAt(this.#keyOf(frame.timestamp));\n\t\treturn opened(group, () => {\n\t\t\tgroup.writeFrame(frame);\n\t\t\treturn group;\n\t\t});\n\t}\n\n\t/**\n\t * {@link appendGroup} with its first frame streamed: the group exists once this returns, and\n\t * {@link FrameProducer.finish} hands it back to write the rest. Mirrors the Rust `append_frame`.\n\t */\n\tappendFrame(info: FrameInfo): FrameProducer {\n\t\tthis.#checkFirst(info.size);\n\t\tconst group = this.#appendAt(this.#keyOf(info.timestamp));\n\t\treturn opened(group, () => group.createFrame(info));\n\t}\n\n\t// Refuse a first frame of `size` bytes its group would refuse, before the group exists and\n\t// skips what it leaves below, as Rust's `first_frame` does: the caller can retry at its time.\n\t#checkFirst(size: number): void {\n\t\tif (this.#meta) throw new Error(\"a metadata group holds no payload\");\n\t\tif (!Number.isSafeInteger(size) || size < 0) throw new RangeError(\"invalid frame size\");\n\t\t// A compressed frame is sent whole, so it has to encode.\n\t\tif (this.#state.info.peek()?.compression === \"deflate\" && !encodable(size)) throw new FrameTooLarge();\n\t}\n\n\t// Append a group at `key`, past every group held, skipping what it leaves below.\n\t#appendAt(key: bigint): GroupProducer {\n\t\tif (key < this.#received) throw new TimestampMismatch();\n\t\tthis.#writable(key);\n\t\tthis.#refuseSkipped(key);\n\t\tconst group = this.#newGroup(key);\n\t\tthis.#bind(group);\n\t\tthis.#cap(group);\n\t\tthis.#publish(group);\n\t\tthis.#settleAppend(key);\n\n\t\treturn group;\n\t}\n\n\t// Skip any `[start, end)`, returning the cached keys it left alone. A skip from a publisher's\n\t// `Requests` or from upstream (`supersede`) supersedes a copy that has not finished the original\n\t// group, open or aborted, as the publisher retracting it mid-group leaves it; only a finished\n\t// copy contradicts it, which a subscriber reports. A group end's inner starts leave every cached\n\t// group. Mirrors the Rust `TrackState::skip_groups`.\n\t#skipReceived(start: bigint, end: bigint, supersede = false): Run[] {\n\t\tif (this.#state.closed.peek() !== undefined) return [];\n\t\tconst cached: Run[] = [];\n\t\tconst superseded: CachedGroup[] = [];\n\t\tfor (const [key, entry] of this.#cached) {\n\t\t\tif (key < start || key >= end) continue;\n\t\t\t// This port marks no copy closed at a transport bound, so any clean close is a finish.\n\t\t\tif (supersede && entry.group.closed.peek() !== null) superseded.push(entry);\n\t\t\telse insertRun(cached, key, key + 1n);\n\t\t}\n\t\tfor (const entry of superseded) {\n\t\t\t// An open copy ends with the skip, which takes it out as it aborts; one already ended is\n\t\t\t// taken out here.\n\t\t\tif (entry.group.closed.peek() === undefined)\n\t\t\t\thooks.abortGroup(entry.group, new StreamError(StreamCode.Skip, { message: \"group skipped\" }));\n\t\t\tif (this.#cached.get(entry.group.start) === entry) this.#skipCopy(entry);\n\t\t}\n\t\tthis.#skipGaps(cached, start, end);\n\t\treturn cached;\n\t}\n\n\t// Skip what of `[start, end)` neither `kept` nor an earlier skip names, replacing any drop.\n\t#skipGaps(kept: readonly Run[], start: bigint, end: bigint): void {\n\t\tconst skipped = this.#state.drops.overlapping(start, end).filter((run) => run.reason === \"skip\");\n\t\tfor (const gap of runGaps(kept, start, end)) {\n\t\t\tfor (const open of runGaps(skipped, gap.start, gap.end)) {\n\t\t\t\tthis.#drop(open.start, open.end, skipHole());\n\t\t\t}\n\t\t}\n\t}\n\n\t// Record a key this track's own publisher produced, for the next append to skip around.\n\t#produce(key: bigint): void {\n\t\tthis.#keepSettled(key, key + 1n);\n\t}\n\n\t// Record `[start, end)` this track's own publisher produced or dropped, so a later append,\n\t// skip, or closed handle never skips it, even once the cache forgets the drop.\n\t#keepSettled(start: bigint, end: bigint): void {\n\t\tif (this.#wire) return;\n\t\tconst from = this.#appended !== undefined && start < this.#appended ? this.#appended : start;\n\t\tif (from < end) insertRun(this.#produced, from, end);\n\t}\n\n\t// Settle an append at `key`: skip what below it this track's own publisher never produced or\n\t// dropped, since appending says it will not go back. From 0, a reader asking from the oldest\n\t// group of a time-keyed track never waits on keys below its first group's wall-clock start.\n\t#settleAppend(key: bigint): void {\n\t\t// The append's own group is among the produced already.\n\t\tthis.#settleHead(key);\n\t\tthis.#appended = key + 1n;\n\t\tthis.#produced = removeRun(this.#produced, 0n, key + 1n);\n\t}\n\n\t// Skip every key below `end` this track's own publisher never produced, skipped, or dropped,\n\t// from just past its previous append (or 0 before the first, even when groups were created\n\t// earlier). A drop given there keeps its verdict. A group created at or past `end` stays\n\t// produced, for an append that must pass it. Mirrors the Rust `TrackState::skip_to`.\n\t#settleHead(end: bigint): void {\n\t\t// A received copy records nothing it produced, so it settles nothing before its first append.\n\t\tconst from = this.#appended ?? (this.#wire ? undefined : 0n);\n\t\tif (from === undefined || from >= end) return;\n\t\tconst kept = this.#kept(from, end);\n\t\tfor (const run of this.#state.drops.overlapping(from, end)) insertRun(kept, run.start, run.end);\n\t\tfor (const gap of runGaps(kept, from, end)) this.#settleRun(gap.start, gap.end, skipHole());\n\t\tthis.#produced = removeRun(this.#produced, 0n, end);\n\t\tthis.#appended = end;\n\t\tconst span = this.#droppedSpan;\n\t\tif (span) this.#droppedSpan = span.end > end ? { start: max(span.start, end), end: span.end } : undefined;\n\t}\n\n\t// Give up `[start, end)` with `hole`, except inside `#droppedSpan`, where it is a not-found\n\t// drop whatever `hole` says. Mirrors the Rust `TrackState::settle_run`.\n\t#settleRun(start: bigint, end: bigint, hole: Hole): void {\n\t\tconst span = this.#droppedSpan;\n\t\tconst lost = span ? { start: max(span.start, start), end: min(span.end, end) } : undefined;\n\t\tif (lost === undefined || lost.start >= lost.end) {\n\t\t\tthis.#drop(start, end, hole);\n\t\t\treturn;\n\t\t}\n\t\tthis.#drop(start, lost.start, hole);\n\t\tthis.#drop(lost.start, lost.end, dropHole());\n\t\tthis.#drop(lost.end, end, hole);\n\t}\n\n\t// Widen `#droppedSpan` over `[start, end)`, which this track's own publisher dropped through a\n\t// fill. Mirrors the Rust `TrackState::record_lost`.\n\t#recordLost(start: bigint, end: bigint): void {\n\t\tif (this.#wire) return;\n\t\tconst from = this.#appended !== undefined && start < this.#appended ? this.#appended : start;\n\t\tif (from >= end) return;\n\t\tconst span = this.#droppedSpan;\n\t\tthis.#droppedSpan = span ? { start: min(span.start, from), end: max(span.end, end) } : { start: from, end };\n\t}\n\n\t// The keys of `[from, end)` this track's own publisher produced, or still caches.\n\t#kept(from: bigint, end: bigint): Run[] {\n\t\tconst kept = [...this.#produced];\n\t\tfor (const cached of this.#cached.keys()) {\n\t\t\tif (cached >= from && cached < end) insertRun(kept, cached, cached + 1n);\n\t\t}\n\t\treturn kept;\n\t}\n\n\t// Once no {@link Requests} handle is left to create them, skip the keys below the newest group\n\t// this track's own publisher never produced, skipped, or gave up, from just past its previous\n\t// append or skip (or 0), except `taken`, which a fill already handed out still answers: its\n\t// close does this again. A declared end changes nothing: no writer is left to create below the\n\t// newest group. Mirrors the Rust `TrackState::skip_unclaimed`.\n\t#skipUnclaimed(taken: readonly Run[]): void {\n\t\tif (this.#copy || this.#state.closed.peek() !== undefined) return;\n\t\tconst from = this.#appended ?? 0n;\n\t\tconst newest = this.#received - 1n;\n\t\tif (from >= newest) return;\n\t\tconst kept = this.#kept(from, newest);\n\t\tfor (const run of taken) insertRun(kept, run.start, run.end);\n\t\tfor (const run of this.#state.drops.overlapping(from, newest)) insertRun(kept, run.start, run.end);\n\t\tfor (const gap of runGaps(kept, from, newest)) this.#settleRun(gap.start, gap.end, skipHole());\n\t}\n\n\t// Refuse a key the publisher declared skipped: a skip is final.\n\t#refuseSkipped(key: bigint): void {\n\t\tif (this.#state.drops.at(key)?.reason === \"skip\") throw new Skipped(key);\n\t}\n\n\t// A group whose first frame is `frame` at its key, below the newest group or not, replacing any\n\t// group there: what {@link Requests.createGroup} writes.\n\t#create(frame: Frame): GroupProducer {\n\t\tthis.#checkFirst(frame.payload.byteLength);\n\t\tconst group = this.#createGroup(this.#keyOf(frame.timestamp), 0, { replace: true });\n\t\treturn opened(group, () => {\n\t\t\tgroup.writeFrame(frame);\n\t\t\treturn group;\n\t\t});\n\t}\n\n\t// `replace` lets a live copy of the key go; without it only a copy that failed, or one a\n\t// copy from frame 0 can serve better, gives way, and any other throws.\n\t#createGroup(\n\t\tkey: bigint,\n\t\tstart: number,\n\t\t{ fetched = false, replace = false }: { fetched?: boolean; replace?: boolean } = {},\n\t): GroupProducer {\n\t\tthis.#writable(key);\n\t\t// A skip says the key will never be produced, so it is final. A drop is not: a\n\t\t// publisher may re-create a group it cut or aborted.\n\t\tthis.#refuseSkipped(key);\n\t\tconst existing = this.#cached.get(key);\n\t\tlet kept: Map<TrackState, GroupConsumer> | undefined;\n\t\tconst failed = existing?.group.closed.peek() instanceof Error ? existing.group : undefined;\n\t\tif (existing && !failed && (replace || (start === 0 && hooks.groupHeadless(existing.group)))) {\n\t\t\t// The producer's own replacement, or a copy from frame 0 (a fill a bounded reader asked or\n\t\t\t// the feed's own) replacing one that can't serve its head. One still arriving keeps\n\t\t\t// arriving for the readers already holding it, outside the cache.\n\t\t\tthis.#unlink(existing);\n\t\t\tthis.#uncache(existing);\n\t\t\tthis.#detach(existing.group);\n\t\t} else if (existing) {\n\t\t\tif (!failed) {\n\t\t\t\tthrow new Error(`duplicate group: key=${key}`);\n\t\t\t}\n\t\t\t// A mirror the failed copy kept open, held for a duplicate, is the new copy's to continue.\n\t\t\tfor (const [sink, mirror] of existing.mirrors) {\n\t\t\t\tif (mirror.closed.peek() !== undefined || !hooks.readsMirrored(mirror)) continue;\n\t\t\t\tkept ??= new Map();\n\t\t\t\tkept.set(sink, mirror);\n\t\t\t\texisting.mirrors.delete(sink);\n\t\t\t}\n\t\t\t// Subscribers may have seen the aborted incarnation's start, so it stays a watermark.\n\t\t\tthis.#evict(existing);\n\t\t\tthis.#uncache(existing, true);\n\t\t}\n\n\t\tconst group = this.#newGroup(key);\n\t\t// Mirrors copy the absolute indices, so set them before publishing to any sink.\n\t\thooks.startGroup(group, start);\n\t\tthis.#bind(group);\n\t\tthis.#cap(group);\n\t\tthis.#publish(group, fetched, failed && { failed, kept });\n\t\treturn group;\n\t}\n\n\t// Keep a replaced `group` for the teardown to end, though the cache no longer holds it.\n\t#detach(group: GroupProducer): void {\n\t\tthis.#detached.add(group);\n\t\tif (this.#detached.size <= 2 * this.#detachedKept) return;\n\t\tfor (const kept of this.#detached) {\n\t\t\tif (kept.closed.peek() !== undefined) this.#detached.delete(kept);\n\t\t}\n\t\tthis.#detachedKept = this.#detached.size;\n\t}\n\n\t/**\n\t * Declare the track's exclusive end, possibly ahead of the live edge, mirroring the Rust\n\t * `finish_at`.\n\t *\n\t * `end` is the first position that will never be produced: a track whose last group is\n\t * 89 finishes at `{ group: 90, frame: 0 }`, and `{ group: 89, frame: 5 }` also caps group\n\t * 89 at frames 0 to 4. Groups and frames below it are still accepted; anything\n\t * at or past it is refused. Unlike {@link close} it is not terminal: call `close()` once\n\t * the remaining groups are written. Readers end once the live edge reaches the end's\n\t * group, independently of closure. Throws if the track is closed, already has an end, or\n\t * `end` would orphan a group or frame already produced or sit at or below a group\n\t * {@link Requests.dropGroups} gave up. Use {@link finish} to end at the live edge, or past it\n\t * when {@link Requests.dropGroups} gave up a higher group.\n\t */\n\tfinishAt(end: Position): void {\n\t\tif (this.#state.closed.peek() !== undefined) throw new Error(\"track is closed\");\n\t\tconst declared = this.#state.end.peek()?.at;\n\t\tif (declared !== undefined) throw new Error(`track already ends at ${declared.group}/${declared.frame}`);\n\t\tthis.#refuseDropsPast(end);\n\t\tthis.#declareEnd(end, \"local\");\n\t}\n\n\t// This track's own publisher gave up a group at or past `end` with `Requests.dropGroups`, so\n\t// the end contradicts it. Every other drop there is forgotten instead (see `#declareEnd`): a\n\t// copy's wire verdict, since refusing it would fail the session every broadcast on it shares,\n\t// and a fill's miss, which answers a reader that asked past what the source had. The\n\t// publisher's own drops at or past an end above the newest group are in `#produced` (see\n\t// `#keepSettled`), while a fill's are not. Mirrors the Rust `refuse_dropped_past`.\n\t#refuseDropsPast(end: Position): void {\n\t\tif (this.#copy) return;\n\t\tconst final = finalKey(end);\n\t\tconst own = (start: bigint, end: bigint) => this.#produced.some((run) => run.start < end && start < run.end);\n\t\tconst past = this.#state.drops.overlapping(final, UNBOUNDED);\n\t\tif (past.some((run) => run.reason !== \"skip\" && own(max(run.start, final), run.end))) {\n\t\t\tthrow new ProtocolViolation(`track end ${end.group}/${end.frame} is below a group the publisher dropped`);\n\t\t}\n\t}\n\n\t// The wire's end: repeating it is a no-op, and a mid-group end may refine the group\n\t// boundary it falls just before. Mirrors the Rust\n\t// `finish_at` on a `received()` copy. Only a wire subscription owes a tail below the end: a\n\t// FETCH's end leaves nothing in flight, as the Rust `set_end` a fill declares. An end that\n\t// lands after the track closed, such as a viewer releasing it while the marker was in\n\t// flight, has nothing left to end.\n\t#endPending(end: Position): void {\n\t\tconst declared = this.#state.end.peek();\n\t\tconst tail = this.#wire !== undefined ? \"pending\" : \"local\";\n\t\tif (declared === undefined) {\n\t\t\tif (this.#state.closed.peek() !== undefined) return;\n\t\t\tthis.#declareEnd(end, tail);\n\t\t} else if (declared.at.group !== end.group || declared.at.frame !== end.frame) {\n\t\t\tif (declared.at.frame !== 0 || end.frame === 0 || finalKey(end) !== declared.at.group) {\n\t\t\t\tthrow new ProtocolViolation(`conflicting track end: ${end.group}/${end.frame}`);\n\t\t\t}\n\t\t\tthis.#declareEnd(end, declared.tail === \"local\" ? tail : declared.tail);\n\t\t}\n\t\tthis.#owe();\n\t}\n\n\t// Settle a received copy's pending tail once its subscription finishes cleanly, preserving the\n\t// declared end even when trailing keys were skipped, dropped, or never asked.\n\t#settleTail(): void {\n\t\tconst declared = this.#state.end.peek();\n\t\tif (declared?.tail !== \"pending\") return;\n\t\tconst settled: End = { ...declared, tail: \"settled\" };\n\t\tfor (const state of [this.#state, ...this.#sinks]) {\n\t\t\tstate.end.set(settled);\n\t\t\tstate.owed.set(false);\n\t\t}\n\t\tthis.#endLargest();\n\t}\n\n\t// Record that the live feed accounted for `[start, end)`, then fold the gaps that aged out.\n\t#arrive(start: bigint, end = start + 1n): void {\n\t\tconst at = now();\n\t\tthis.#arrivals.account(start, end, at);\n\t\t// Only a gap folds, so an in-order feed never reads the subscription.\n\t\tif (this.#arrivals.hasGaps()) this.#arrivals.expire(at, this.#grace());\n\t\tthis.#owe();\n\t}\n\n\t// The grace the session's tail uses, from the widest budget the track's subscribers ask for,\n\t// bounded by how long the publisher keeps a superseded group fresh. The demand asked upstream is\n\t// not. None on a local track or a copy whose wire names every start.\n\t#grace(): Duration | undefined {\n\t\tif (this.#proven || !this.#wire) return undefined;\n\t\tconst maxDelay = Duration.millis(this.#requested.maxDelay());\n\t\tconst maxAge = this.#state.info.peek()?.maxAge;\n\t\treturn grace(maxAge == null ? maxDelay : maxDelay.min(maxAge));\n\t}\n\n\t// Tell every reader whether the pending tail still owes a group below the end.\n\t#owe(): void {\n\t\tconst end = this.#state.end.peek();\n\t\tif (end?.tail !== \"pending\") return;\n\t\tconst owed = this.#owes(finalKey(end.at));\n\t\tfor (const state of [this.#state, ...this.#sinks]) state.owed.set(owed);\n\t\tthis.#endLargest();\n\t}\n\n\t// Settle the outcome cleanly once the declared end is reached and settled. Also run before a\n\t// write that could reopen it (a late group below the end, a fresh grace for the tail): that\n\t// write is still served, but the clean outcome stays final. Mirrors the Rust `latch_settled`.\n\t#settle(): void {\n\t\tif (this.#state.outcome.peek() === undefined && this.#settled()) this.#state.outcome.set(null);\n\t}\n\n\t// Whether the pending tail misses a key from where the feed starts up to `final`: one\n\t// no live group delivered, in a gap younger than the grace. Judged by the\n\t// arrivals, not the cache, so an evicted group counts as delivered.\n\t//\n\t// The feed starts at the declared start while the demand keeps the floor its SUBSCRIBE asked\n\t// for, since an update gets no fresh START: a moved floor stands on its own, and moving\n\t// back restores the START. Without either, the lowest arrival ever stands in for it.\n\t// Until the START arrives, the feed start is pending; the requested floor still bounds it.\n\t// A local track has no feed, so what its subscribers ask bounds nothing, as in Rust.\n\t// The floor the wire asks below which nothing is requested, a placed join from its group, as\n\t// the subscriber sends it. Mirrors the Rust `Subscription::start`.\n\t#requestedStart(): bigint | undefined {\n\t\tconst requested = this.#requested.peek();\n\t\tif (requested === undefined) return undefined;\n\t\tconst { ranges, placed } = wireHeld(requested);\n\t\treturn wireSpan(placedAsTimes(ranges, placed)).start;\n\t}\n\n\t#feedStart(): bigint | \"pending\" | undefined {\n\t\tif (!this.#wire) return undefined;\n\t\tconst requested = this.#requestedStart();\n\t\tconst served = this.#wire?.served;\n\t\tif (!served || served.requested !== requested) return requested;\n\t\t// Placed afresh by an update, which gets no new START, so the feed may reach any group.\n\t\tif (served.restated) return 0n;\n\t\tif (served.start === null) return requested;\n\t\tif (served.start !== undefined) return served.start;\n\t\t// A closed track never gets its START.\n\t\treturn this.#state.closed.peek() === undefined ? \"pending\" : requested;\n\t}\n\n\t// The first group this copy's feed vouches for. A restated feed reaches below the START, whose\n\t// publisher re-offers what lies there, which may still be on its way: it vouches only from the\n\t// START, so a fill still asks nothing below it. As the Rust feed start, which an update leaves.\n\t#vouchedFeed(): bigint | \"pending\" | undefined {\n\t\tconst restated = this.#wire?.served?.restated ? this.#wire.served : undefined;\n\t\tif (restated) return typeof restated.start === \"bigint\" ? restated.start : restated.requested;\n\t\treturn this.#feedStart();\n\t}\n\n\t// The lowest group a reader whose ranges name `named` (undefined for one reaching back to\n\t// the oldest group) asks a fill for, or undefined for no bound. Below a start resolved from\n\t// the budget, each reader fills what its own budget reaches; otherwise only what its ranges\n\t// name; and never on a wire whose fills cannot judge a group by that budget. Mirrors the\n\t// Rust `Misses::judge`. Fetches are never bounded by it.\n\t#fillFloor(named: bigint | undefined): bigint | undefined {\n\t\tconst wire = this.#wire;\n\t\tif (!wire) return undefined;\n\t\tconst feed = this.#vouchedFeed();\n\t\tconst start = feed === \"pending\" ? wire.served?.requested : feed;\n\t\tif (start === undefined || start === 0n) return undefined;\n\t\tif (wire.starts.fillsFromStart) return start;\n\t\t// The START applies only while the demand keeps the floor it answered, as `#feedStart`.\n\t\tconst served = wire.served;\n\t\tconst resolved =\n\t\t\t(wire.starts.resolvesStart === true || served?.resolved === true) &&\n\t\t\ttypeof served?.start === \"bigint\" &&\n\t\t\tserved.requested === this.#requestedStart();\n\t\tif (resolved) return undefined;\n\t\treturn named === undefined || named >= start ? start : undefined;\n\t}\n\n\t// A copy whose wire names every start owes its tail until its session settles it: that\n\t// session's own tail waits for every group it owes and every range's start, which only it knows\n\t// were asked, so the copy never ends on what it happens to hold. Mirrors the Rust `tail_deadline`.\n\t#owes(final: bigint): boolean {\n\t\tif (!this.#wire || this.#state.end.peek()?.tail !== \"pending\") return false;\n\t\tif (this.#proven) return true;\n\t\tconst floor = this.#tailFloor();\n\t\t// A key the publisher gave up is owed no more. A stale verdict is not receipt: a new\n\t\t// upstream subscription supersedes it, leaving those groups unknown again, as in Rust.\n\t\tconst drops = this.#state.drops;\n\t\tconst missing = (start: bigint, end: bigint): boolean =>\n\t\t\tthis.#arrivals.gaps(start, end).some((gap) => {\n\t\t\t\tconst given = drops.overlapping(gap.start, gap.end).filter((run) => run.maxAge === undefined);\n\t\t\t\treturn runGaps(given, gap.start, gap.end).length > 0;\n\t\t\t});\n\t\treturn missing(min(floor, final), final);\n\t}\n\n\t// The lowest key a received copy's tail owes: where the feed starts, everything while a pending\n\t// start names no floor, or before a start is declared, the lowest arrival ever, which no group\n\t// leaving the arrivals raises. Mirrors the Rust `TrackState::tail_floor`.\n\t#tailFloor(): bigint {\n\t\tconst feed = this.#feedStart();\n\t\tif (feed === \"pending\") return this.#wire?.served?.requested ?? 0n;\n\t\treturn feed ?? this.#arrivals.lowest() ?? 0n;\n\t}\n\n\t// Whether the declared end is reached and the pending tail owes nothing below it: no group\n\t// below the end arrives any longer. Mirrors the Rust `TrackState::is_complete`.\n\t#complete(): boolean {\n\t\tconst end = this.#state.end.peek();\n\t\treturn end !== undefined && reaches(this.#received, this.#state.drops, end) && !this.#owes(finalKey(end.at));\n\t}\n\n\t#declareEnd(end: Position, tail: End[\"tail\"]): void {\n\t\tconst { group, frame } = end;\n\t\tif (typeof group !== \"bigint\" || group < 0n || !Number.isSafeInteger(frame) || frame < 0) {\n\t\t\tthrow new RangeError(`invalid track end: ${group}/${frame}`);\n\t\t}\n\t\tconst final = finalKey(end);\n\t\tif (final < this.#received) {\n\t\t\tthrow new ProtocolViolation(`track end ${group}/${frame} is below the next sequence ${this.#received}`);\n\t\t}\n\t\tconst cut = frame === 0 ? undefined : this.#cached.get(group)?.group;\n\t\tif (cut) hooks.limitGroup(cut, frame);\n\t\tconst declared: End = { at: { group, frame }, tail };\n\t\t// Nothing at or past the end exists: a copy's drop or stale verdict recorded there before the\n\t\t// end was known is forgotten, or a reader would ask for what can never arrive.\n\t\tif (this.#wire?.dropped) this.#wire.dropped = removeRun(this.#wire.dropped, final, UNBOUNDED);\n\t\tfor (const run of [...this.#state.drops.overlapping(final, UNBOUNDED)]) {\n\t\t\tif (run.reason !== \"skip\") this.#setDrops(max(run.start, final), run.end);\n\t\t}\n\t\tfor (const state of [this.#state, ...this.#sinks]) state.end.set(declared);\n\t\tthis.#endLargest();\n\t}\n\n\t// Group `key` holds every frame it will have: it closed cleanly, its stream finished.\n\t// A group name fixes its content, so no legal write raises the largest past it.\n\t#finishLargest(key: bigint): void {\n\t\tif (this.#state.largest.peek()?.group === key && this.#largestOpen)\n\t\t\tfor (const state of [this.#state, ...this.#sinks]) state.largestGroup = \"finished\";\n\t\tthis.#endLargest();\n\t}\n\n\t// The largest group may still grow until it closes cleanly or is skipped.\n\tget #largestOpen(): boolean {\n\t\treturn this.#state.largest.peek() !== undefined && this.#state.largestGroup === \"open\";\n\t}\n\n\t// End the largest stream while the track stays open, once it can no longer advance: the\n\t// declared end is reached, and the largest group's content is final. Every key below\n\t// the end raised it already, so neither a late group below it nor a recreated copy of it\n\t// moves it after this.\n\t#endLargest(): void {\n\t\tthis.#settle();\n\t\tif (this.#state.largestEnded.peek() || this.#largestOpen) return;\n\t\tconst end = this.#state.end.peek();\n\t\tif (end === undefined || !reaches(this.#received, this.#state.drops, end) || this.#owes(finalKey(end.at)))\n\t\t\treturn;\n\t\tfor (const state of [this.#state, ...this.#sinks]) state.largestEnded.set(true);\n\t}\n\n\t/**\n\t * Declare the track's end after the highest key written, or after the highest group\n\t * {@link Requests.dropGroups} gave up above it, returning it as {@link Finished}. The keys\n\t * between the highest key written and that drop that were never produced are skipped, so a\n\t * track that wrote groups 0 to 5 and dropped 8 and 9 ends at 10, with 6 and 7 skipped. A\n\t * no-op once an end is declared or the track closed, so a cleanup path can finish whatever\n\t * the track's state. A track that closed first keeps its outcome and declares no end, so its\n\t * readers' `finished()` rejects.\n\t *\n\t * Not terminal: groups below the end may still be written. Readers end once the live edge\n\t * reaches it.\n\t */\n\tfinish(): Finished {\n\t\tif (this.#state.end.peek() !== undefined || this.#state.closed.peek() !== undefined) return this;\n\t\t// Past the publisher's own drop above the newest group, so it stays a gap before the end at\n\t\t// every hop. The keys up to it the publisher never produced are skipped, as an append past\n\t\t// them would, or a reader would wait on them while the producer is held. Mirrors the Rust\n\t\t// `TrackState::finish_local`.\n\t\tconst next = this.#received;\n\t\tconst end = max(next, this.#ownDroppedEnd(next) ?? next);\n\t\tthis.finishAt({ group: end, frame: 0 });\n\t\tif (end > next) {\n\t\t\tconst kept = this.#kept(next, end);\n\t\t\tfor (const run of this.#state.drops.overlapping(next, end)) insertRun(kept, run.start, run.end);\n\t\t\t// Skipped outright, not through `#settleRun`: a local track keeps every drop at or above its\n\t\t\t// edge, so widening `#droppedSpan` over these keys would report them lost.\n\t\t\tfor (const gap of runGaps(kept, next, end)) this.#drop(gap.start, gap.end, skipHole());\n\t\t}\n\t\treturn this;\n\t}\n\n\t// One past the highest group at or past `from` this track's own publisher gave up with\n\t// `Requests.dropGroups`: those at or above `#appended` are in `#produced` (see\n\t// `#keepSettled`). Mirrors the Rust `TrackState::own_dropped_end`.\n\t#ownDroppedEnd(from: bigint): bigint | undefined {\n\t\tif (this.#copy) return undefined;\n\t\tfor (let i = this.#produced.length - 1; i >= 0; i--) {\n\t\t\tconst run = this.#produced[i];\n\t\t\tif (run.end <= from) return undefined;\n\t\t\tconst own = this.#state.drops\n\t\t\t\t.overlapping(max(run.start, from), run.end)\n\t\t\t\t.filter((drop) => drop.reason !== \"skip\");\n\t\t\tconst last = own.at(-1);\n\t\t\tif (last) return min(last.end, run.end);\n\t\t}\n\t\treturn undefined;\n\t}\n\n\t/**\n\t * Release this producer. Idempotent.\n\t *\n\t * With an end declared ({@link finish} or {@link finishAt}), the track ends\n\t * there and its subscribers drain to it. Without one, subscribers end with a `Cancel`\n\t * {@link StreamError}: nothing finished it. The only way to stop a track, mirroring a dropped\n\t * Rust `track::Producer`; refuse a request with an error through `Request.reject` instead.\n\t */\n\tclose(): void {\n\t\tif (this.#state.end.peek() !== undefined) this.#close(undefined);\n\t\telse this.#close(new StreamError(StreamCode.Cancel, { message: `track ${this.name} closed without finish` }));\n\t}\n\n\t// `abort` is undefined for a clean close, which keeps whatever end was declared. A received\n\t// copy released because nobody wants it closes cleanly without one: a dead route, not finished\n\t// content.\n\t#close(abort: Error | undefined) {\n\t\tif (this.#state.closed.peek() !== undefined) return;\n\t\t// Told first, as a dropped Rust producer unlists before its track closes: it finished only\n\t\t// when released cleanly at a declared end, and an abort never did.\n\t\tconst finished = abort === undefined && this.#state.end.peek() !== undefined;\n\t\tfor (const listener of this.#onRelease.splice(0)) listener(finished);\n\t\t// A gap past the grace was lost before the abort rather than cut off by it.\n\t\tif (abort && this.#state.end.peek()?.tail === \"pending\") this.#arrivals.expire(now(), this.#grace());\n\t\tlet hidden: Error | undefined;\n\t\tif (abort && (this.#state.outcome.peek() === null || this.#settled())) {\n\t\t\thidden = abort;\n\t\t\tabort = undefined;\n\t\t}\n\t\t// Nobody will finish these, so a subscriber that has not taken one yet never sees it.\n\t\t// Not evicted: a reader already holding one keeps its frames and sees the abort.\n\t\tconst open = [...this.#cache].filter((entry) => entry.group.closed.peek() === undefined);\n\t\tconst kept = this.#keptDrops();\n\t\tthis.#refreshTimer?.abort.abort();\n\t\tthis.#refreshTimer = undefined;\n\t\tthis.#endRefresh(abort ?? this.#closedBeforeSent());\n\t\tthis.#state.aborted = hidden;\n\t\tcloseTrackState(this.#state, abort);\n\t\tif (this.#keptDrops() > kept) this.#rearmDrops(kept);\n\t\tif (this.#state.outcome.peek() === undefined) this.#state.outcome.set(abort ?? null);\n\t\t// Closing a copy never supplies the missing tail of a group. Already finished groups\n\t\t// ignore the abort and stay readable; unfinished ones retain their truncation cause.\n\t\tconst groupError =\n\t\t\tabort ??\n\t\t\tnew StreamError(StreamCode.Cancel, { message: `track ${this.name} closed with unfinished groups` });\n\t\tfor (const { group } of this.#cache) hooks.abortGroup(group, groupError);\n\t\tfor (const group of this.#detached) hooks.abortGroup(group, groupError);\n\t\tthis.#detached.clear();\n\t\tfor (const entry of open) {\n\t\t\tthis.#unlink(entry);\n\t\t\tthis.#uncache(entry);\n\t\t}\n\t\t// A group still buffered for a subscriber is left to it: the abort above already ended an\n\t\t// unfinished one, a finished one stays readable, and a front that takes either continues it\n\t\t// from another copy. Releasing it here would end that continuation at its next short close.\n\t\tfor (const sink of this.#sinks) {\n\t\t\t// Only a sink this close ends records why: one already closed keeps its own end.\n\t\t\tif (sink.closed.peek() === undefined) sink.aborted = hidden;\n\t\t\tcloseTrackState(sink, abort);\n\t\t}\n\t\tthis.#sinks.clear();\n\t\tthis.#reportWanted();\n\t\t// The former live edge becomes evictable too, its idle window restarted, so the close\n\t\t// never reclaims a group its subscribers have yet to drain.\n\t\tconst edge = this.#edgeEntry();\n\t\tif (edge) {\n\t\t\tedge.charge.touch();\n\t\t\tthis.#account.demote(edge);\n\t\t}\n\t\tthis.#evictExpired(true);\n\t}\n\n\t// The lowest key in #cut still unresolved: no copy of it since restored every frame the track\n\t// promised (#restores), and it was not given up for good. Each step passes a cached group or a\n\t// hole's run. Mirrors the Rust `TrackState::cut_from`.\n\t#cutFrom(): bigint | undefined {\n\t\tif (!this.#cut) return undefined;\n\t\tlet key = this.#cut.start;\n\t\twhile (key < this.#cut.end) {\n\t\t\tconst hole = holeEnd(this.#state.drops, key, true);\n\t\t\tif (hole !== undefined) key = hole;\n\t\t\telse if (this.#restores(key)) key += 1n;\n\t\t\telse return key;\n\t\t}\n\t\treturn undefined;\n\t}\n\n\t// Whether the cached copy of group `key` finished holding every frame the track promised of it:\n\t// from frame 0, through the group's end or, written, through the declared end inside it. Mirrors\n\t// the Rust `TrackState::restores`.\n\t#restores(key: bigint): boolean {\n\t\tconst group = this.#cached.get(key)?.group;\n\t\tif (!group || group.closed.peek() !== null || hooks.groupOffset(group) !== 0) return false;\n\t\tconst at = this.#state.end.peek()?.at;\n\t\treturn at === undefined || at.group !== key || hooks.groupFrameCount(group) >= at.frame;\n\t}\n\n\t// Move #cut's low end past the keys resolved now, before the cache or the drops forget what\n\t// resolved them. Mirrors the Rust `TrackState::retire_cut`.\n\t#retireCut(): void {\n\t\tconst from = this.#cutFrom();\n\t\tthis.#cut = from === undefined || !this.#cut ? undefined : { start: from, end: this.#cut.end };\n\t}\n\n\t// Whether the declared end was reached, the pending tail owes nothing below it, and every\n\t// cached group below it finished, so the track already holds everything it promised. An\n\t// abort over a group the tail still owed cut it off, so readers get the error rather than\n\t// a clean end without it. A failed fill answer holds nothing open, since the feed never\n\t// promised it. Mirrors the Rust `is_settled`.\n\t#settled(): boolean {\n\t\tconst end = this.#state.end.peek();\n\t\tif (end === undefined) return false;\n\t\tconst final = finalKey(end.at);\n\t\tconst cut = this.#cutFrom();\n\t\tif (cut !== undefined && cut < final) return false;\n\t\tif (!reaches(this.#received, this.#state.drops, end) || this.#owes(final)) return false;\n\t\tfor (const { group, fetched } of this.#cache) {\n\t\t\t// The end does not wait for a key given up for good, whatever copy of it failed.\n\t\t\tif (group.start >= final || holeEnd(this.#state.drops, group.start, true) !== undefined) continue;\n\t\t\tconst closed = group.closed.peek();\n\t\t\tif (closed !== null && !(fetched && closed instanceof Error)) return false;\n\t\t}\n\t\treturn true;\n\t}\n\n\t/**\n\t * Append a group holding one frame at its timestamp, which is where the group starts, as\n\t * {@link appendGroup} does: on a scale-less track, {@link Timestamp.unscaled} at the group's\n\t * key. A timestamp at or before a group this track holds, or that doesn't match the track,\n\t * throws {@link TimestampMismatch} before any group exists. The group closes after its\n\t * frame, since nothing says where it ends. Mirrors the Rust `write_frame`.\n\t */\n\twriteFrame(frame: Frame) {\n\t\tthis.appendGroup(frame).finish();\n\t}\n}\n\n// Write a group's first frame with `write`, aborting the group if it is refused so no reader\n// waits on a group that will never get it.\nfunction opened<T>(group: GroupProducer, write: () => T): T {\n\ttry {\n\t\treturn write();\n\t} catch (err) {\n\t\thooks.abortGroup(group, err instanceof Error ? err : new Error(String(err)));\n\t\tthrow err;\n\t}\n}\n\n// Why a reader gives up a group: past its own budget, which a wider one may overturn, or past\n// the track's max age, the publisher's, which none does. Mirrors the Rust `Stale`.\ntype Stale = \"budget\" | \"maxAge\";\n\n// One read pass's view of the budget and the live edge; see Subscriber.#drift.\ntype Drift = {\n\t// How long each group stays worth delivering, clamped to the track's max age.\n\tbudget: Budget;\n\t// The reader's own budget, which it names when it gives up a group.\n\tnamed: Budget;\n\t// The track's max age in milliseconds, which no widening passes: a verdict at it is final.\n\tbound?: number;\n\t// The live edge: its group, and the newest time it presents, in milliseconds. A scale-less\n\t// track has none: its bare starts are no time, so it ages by arrival alone.\n\tpresentation?: { key: bigint; at: number };\n\tend?: bigint;\n\t// Judged within these groups rather than this reader's window, as a fetch is (every group).\n\tscope?: Scope;\n\t// Where the run reaching past every group starts, undefined when none does. Past a cap, or\n\t// below a gap before that run, these groups stop short of the whole track, and the max age\n\t// judges against the whole track too; see `Subscriber.#maxAgePast`.\n\topenFrom?: bigint;\n\t// The whole track's drift, resolved on the first candidate that needs it, so one walk answers\n\t// a whole read, as the Rust `WholeEdge` does.\n\twhole?: Drift;\n};\n\n// The budget `drift` names for group `key`, given up for `stale`: one past the track's max age\n// names at least that bound, so the verdict settles every reader, however wide. Mirrors the Rust\n// `Drift::named_for`.\nfunction namedFor(drift: Drift, key: bigint, stale: Stale): number {\n\tconst named = drift.named.at(key);\n\treturn stale === \"maxAge\" && drift.bound !== undefined ? Math.max(named, drift.bound) : named;\n}\n\n// Where a reader's fill floor walked (see `Subscriber.#pastBudget`): each step a key every key below\n// which, down to the floor it walked from and not handed out, media time put past the widest budget,\n// with the furthest reach it judged there and how many pieces it walked since the step below. The\n// steps hold only under the terms they were walked under.\ntype Passed = {\n\tproducer: Producer;\n\t// The floor it last walked from, which never falls under the steps it keeps.\n\tfloor: bigint;\n\tcoverage: Coverage;\n\tend?: bigint;\n\tscope?: Scope;\n\tremovals: number;\n\tsteps: { key: bigint; reach: number; pieces: number }[];\n};\n\n// The groups a drift is judged within when not this reader's own window: every group, as for a\n// fetch, or a logical reader's window for a group moved onto this copy.\ntype Scope = (key: bigint) => boolean;\n\nconst WHOLE: Scope = () => true;\n\n// An ordered read's state, mirroring the Rust `Ordered`: a group read and held back because a gap\n// below it goes first, the gaps found and not returned yet (sorted and disjoint), and one past\n// the highest key returned, as a group or the end of a gap.\ntype Items = { held?: GroupConsumer; gaps: DropRun[]; at: bigint };\n\n// A group that landed after an ordered read passed its key: superseded, under no budget of its own.\nfunction late(): Hole {\n\treturn { reason: \"old\" };\n}\n\n// A group missing its head that no fill could serve.\nfunction headless(): Hole {\n\treturn dropHole();\n}\n\n// The successor a handed-out group was last judged by, so the group stays judgeable once the\n// cache evicts both. Each reader keeps its own, so the memory is bounded by the groups held.\ntype Superseded = { successor?: Successor };\n\n// What lies above a key and bounds it, found by a walk over keys lowest first: each group a search\n// found above one key serves every later key below it. Mirrors the Rust `Walk`.\ntype Walk = {\n\tarrival(key: bigint): GroupConsumer | undefined;\n\tsuccessor(key: bigint): GroupConsumer | undefined;\n\tdeparted(key: bigint, held: bigint | undefined): Departed | undefined;\n};\n\n// How a key is judged within a walk: `own` counts its own end, which a key the track does not hold\n// lacks.\ntype Walked = { own: boolean; walk: Walk };\n\n// A successor, when it arrived, and its copy's fate (see `hooks.groupFate`). Not the consumer:\n// a handed-out successor's own record would retain the next one, chaining every later group to\n// the oldest held.\ntype Successor = { key: bigint; arrived: Instant; fate: () => Error | undefined };\n\n/**\n * What a lite publisher told its wire about a reader's keys, kept in the reader's own\n * record so the cursor's drops and the publisher's groups consult one map. Mirrors the\n * publisher half of the Rust `record::Record`.\n *\n * @internal\n */\nexport interface WireRecord {\n\t/** Whether the wire was told of `key`: served, or given up. */\n\ttold(key: bigint): boolean;\n\t/** The parts of `[start, end)` the wire was told nothing of. */\n\tuntold(start: bigint, end: bigint): Run[];\n\t/** The first run of `[start, end)` the wire was told nothing of, found by a seek. */\n\tfirstUntold(start: bigint, end: bigint): Run | undefined;\n\t/** Record that the wire was told of `[start, end)`. */\n\ttell(start: bigint, end: bigint): void;\n\t/** Forget what was recorded of `[start, end)` without going out on the wire. */\n\tuntell(start: bigint, end: bigint): void;\n}\n\n/**\n * A track its producer finished: its end is declared unless it closed first, and it can still\n * take an older group below that end through {@link Finished.requests}, be read, or be closed,\n * but not append. {@link Producer.finish} returns it,\n * mirroring the Rust `track::Finished`; the producer itself still refuses a group at or past the\n * end.\n *\n * @public\n */\nexport interface Finished {\n\t/** The track name. */\n\treadonly name: string;\n\t/** Settles once the track's outcome is final; see {@link Producer.closed}. */\n\treadonly closed: GetPromise<Error | null>;\n\t/** The track's info, once accepted. */\n\tinfo(): Promise<Info>;\n\t/**\n\t * Serve the groups readers miss below the end, or create an older one that arrived late with\n\t * {@link Requests.createGroup}; see {@link Producer.requests}.\n\t */\n\trequests(): Requests;\n\t/** Subscribe to this in-process track; see {@link Producer.subscribe}. */\n\tsubscribe(options?: Subscription): Subscriber;\n\t/** Release the track; see {@link Producer.close}. */\n\tclose(): void;\n}\n\n/**\n * The read side of a live track subscription, mirroring the Rust `Subscriber`.\n *\n * Obtained from `Broadcast.Consumer.subscribe` / `Track.Consumer.subscribe`, or from\n * {@link Producer.subscribe} for an in-process track. Reads the groups a\n * {@link Producer} on the same underlying state writes.\n */\nexport class Subscriber {\n\t/** The track name. */\n\treadonly name: string;\n\n\t#state: TrackState;\n\t// Reads its routes' copies instead of `#state`'s buffer: the counterpart of the Rust\n\t// `Inner::Resume`. `#state` then only carries the reader's own preferences, info, and close.\n\t#resume?: ResumeSource;\n\t// Every group key this reader handed out, so a re-created group or one a second route\n\t// delivers is handed out once.\n\t#delivered = new Delivered();\n\t// Cached groups the arrival cursor skipped as stale, each with the budget it was judged\n\t// under, so a wider budget offers them again. Only a widening reverses a stale verdict, and\n\t// an entry is kept only while its group is cached, since nothing could offer it again.\n\t#skipped = new Map<bigint, number>();\n\t// At most the narrowest budget in #skipped, so a read whose widest budget did not pass it skips the scan.\n\t#narrowest = Number.POSITIVE_INFINITY;\n\t// The budget #reoffer last judged #skipped under, so a read under an equal one skips the scan.\n\t#reofferedUnder: Budget | undefined;\n\t// This reader closed itself, so lowering its floor offers nothing: a producer's clean close\n\t// alone leaves the cache readable, but the reader leaving must stay terminal. Leaving also\n\t// settles the shared `#state.closed`, so a guard for either close reads that alone.\n\t#left = false;\n\t// What {@link largest} last reported, and whether it ended: moving the bounds afterwards\n\t// does not bring it back.\n\t#largestSeen?: Position;\n\t#largestDone = false;\n\t#nextKey = 0n;\n\t// A wire publisher's reader parks past the end of a bounded window rather than end there:\n\t// its peer would read the end of the stream as the track's. Set through `hooks.parked`.\n\t#parks = false;\n\t// The local bounds {@link withRange} set.\n\t#local: { start: bigint; end?: bigint } = { start: 0n };\n\t// This reader's own ranges resolved to the groups it reads, whatever another subscriber\n\t// widens the aggregate to. Assigned in the constructor.\n\t#window!: Window;\n\t// Bumped whenever the window moves, so the drop scan knows to look again.\n\t#revision = 0;\n\t// The hull of what this reader reads now: its local bounds narrowed to the window's floor\n\t// and end. A group inside it is read only if the window contains it too.\n\t#cursor = new Signal<{ start: bigint; end?: bigint }>({ start: 0n });\n\t// Whether this reads one group for a FETCH, which has no budget of its own: the publisher's\n\t// maxAge alone bounds it.\n\t#fetch = false;\n\t// Whether a lite-07 publisher reads only named groups for its peer, a fetch, undefined until it\n\t// says: see `hooks.fetches`.\n\t#wireFetch?: boolean;\n\t// The first frame a wire publisher serves of each group, which it reads whole from there. Set\n\t// through `hooks.wholeGroups`.\n\t#whole?: (key: bigint) => number | undefined;\n\t// Which cursor owns this subscription. Both cursors draw from one buffer, so the\n\t// first group read commits the track to arrival order and {@link ordered} commits\n\t// it to sequence order; whichever wins is the only one allowed from here on.\n\t#mode?: \"arrival\" | \"ordered\";\n\t// What this cursor reports as drops: keys given up and not reported yet,\n\t// the track's drops last folded in, and every key already reported. Drops are\n\t// persistent track state, so they are tracked here rather than removed for everyone.\n\t#pending: DropRun[] = [];\n\t#dropsSeen?: {\n\t\t// The track's drops revision folded in: later changes fold in alone.\n\t\tdrops: number;\n\t\trefused: readonly DropRun[];\n\t\trefusalFeed?: Producer;\n\t\trefusalEnd?: End;\n\t\trefusalStart?: number;\n\t\tstart: bigint;\n\t\tend?: bigint;\n\t\trevision: number;\n\t\tbudget: Budget;\n\t\tcoverage?: Coverage;\n\t};\n\t// Whether a publisher polled a resumed reader's drops: only then does it report what it\n\t// hands out. A debt fold raising #floor is no sign of it. Mirrors the Rust `Logical::dropping`.\n\t#resumeDropping = false;\n\t#reported = new Runs<Run>(() => true);\n\t// Everything below was settled for good and folded out of #reported: handed out, told, or\n\t// passed, so nothing there is reported again. Mirrors the Rust `Record::floor`, which folds\n\t// under pool pressure; a key-order read folds at where it is instead (see #fold).\n\t#floor = 0n;\n\t// A wire publisher reads #reported as what its wire was told, so it never folds.\n\t#wired = false;\n\t// What an ordered read owes before its next group; unset before its first read. See #tryItem.\n\t#items?: Items;\n\t// The group the frame-level helpers are currently draining, acquired through the\n\t// key cursor so frame reads and {@link Ordered.nextGroup} share one floor.\n\t#frameGroup?: GroupConsumer;\n\t// The earliest wall deadline a held read armed, and its timer, which bumps `revision`\n\t// when it comes due. See #wakeAt. Kept apart from the subscriber so a pending timer\n\t// retains only this, never the subscriber or its track state, once no read waits.\n\t#wall: { revision: Signal<number>; at: number; timer?: AbortController } = {\n\t\trevision: new Signal(0),\n\t\tat: Number.POSITIVE_INFINITY,\n\t};\n\t// When each group the timeline held at close arrived, failed ones left out. A group handed\n\t// out earlier can outlive this subscriber, as one a resumed reader still writes from a copy\n\t// it let go of, and its budget still runs from its successor's arrival.\n\t#arrivals?: { start: bigint; arrived: Instant }[];\n\t// The misses this reader asked a fill for, each judged once, and asked again however often\n\t// the answer is evicted before this reader takes it: a key a reader is owed is never lost\n\t// to the cache. Mirrors the Rust `Misses`.\n\t#asked: Run[] = [];\n\t// Fill-owed runs this reader gave up once its budget convicted them: never wanted again, so\n\t// the fills withdraw them and their handlers hear, as the Rust `Misses` gives up a stale run.\n\t#givenUp: Run[] = [];\n\t// The track's drops that settled a hole this reader judged, taken as its own verdicts, stale ones\n\t// under the budget the upstream judged them by: the track forgets its drop set under pool pressure\n\t// or once it expires, which must not reopen what this reader already gave up. Only a wider budget\n\t// takes a stale one back, and the read passing it forgets it. Mirrors the Rust `Misses::adopt_drops`.\n\t#adopted: DropRun[] = [];\n\t// How far the fill floor walked past the hand-out floor, and the terms it walked under; see #pastBudget.\n\t#passed?: Passed;\n\t// The heads this reader asked a fill for, each once: one met again with no fill bringing it\n\t// is given up, as the Rust `Heads` gives up a head whose fetch ended without one. Clipped to\n\t// what it still reads, so a widening back over one asks it afresh.\n\t#heads: Run[] = [];\n\t// The keys the fill probe has yet to judge, and the terms it last judged under: each is\n\t// judged once, then again only once a change reopens it (see #reopen), as the Rust `Misses`\n\t// keeps `judged`. A run the live feed still owes stays unjudged until the feed gives it up.\n\t#unjudged: Run[] = [{ start: 0n, end: UNBOUNDED }];\n\t#judgedAt?: {\n\t\tproducer: Producer;\n\t\tbudget: Budget;\n\t\tcoverage: Coverage;\n\t\topened: number;\n\t\tdrops: number;\n\t\tedge: bigint;\n\t};\n\t// The received stale runs that do not settle this reader, and the terms they were judged\n\t// under; see #unknownRuns.\n\t#unknown?: {\n\t\tdrops: number;\n\t\tbudget: Budget;\n\t\tcoverage: Coverage;\n\t\truns: DropRun[];\n\t};\n\t// The last read waited on a fill, so the staleness deadline it armed wakes the next one: a\n\t// fill that never answers cannot pin a reader in either order.\n\t#fillWait = false;\n\t// The kept-out keys this reader asks fills about; see #askKeptOut.\n\t#keptOut?: KeptOut;\n\t// The same for the keys a front's resumed reader owes and asks this route copy about, apart so\n\t// neither moves what the other asks; see `hooks.askUnproven`.\n\t#routedOut?: KeptOut;\n\t// Bumped whenever the fills this reader joined are rejudged, which may withdraw groups it reads\n\t// again by the time it looks (a narrowing undone in one turn moves no signal), so it asks anew.\n\t#fillMoves = new Signal(0);\n\t// The time starts this reader asked its fills to look up, each with the floor it asked from and\n\t// where it stands.\n\t#lookups: { time: bigint; floor: bigint; stage: Look }[] = [];\n\t// A time start's refusal, which every read fails with until the ranges change. Mirrors the Rust\n\t// `Filter::refused`.\n\t#refusal?: Error;\n\n\t// A fetch has no budget of its own. The publisher's Max Age can still expire it.\n\t#expiryBudget(): Budget {\n\t\treturn this.#fetch ? Budget.uniform(NO_MAX_DELAY) : this.#window.budget();\n\t}\n\n\t#drift(\n\t\tscope = this.#fetch ? WHOLE : undefined,\n\t\tend = scope ? undefined : this.#cursor.peek().end,\n\t\t// Where the run reaching past every group starts: a scope's caller names its own, which may\n\t\t// be none, so it is wrapped rather than defaulted when undefined.\n\t\topen: { from: bigint | undefined } = { from: scope === undefined ? this.#window.openFrom() : 0n },\n\t): Drift {\n\t\t// A fetch judges its group against the whole track, as the Rust `fetch_group` does: a\n\t\t// newer group outside its one-group window still supersedes it. A moved group's scope\n\t\t// brings its own end, unbounded when its logical reader's is.\n\t\tconst timeline = this.#state.timeline;\n\t\tlet presentation: Drift[\"presentation\"];\n\t\tconst info = this.#state.info.peek();\n\t\t// The edge wants the newest content that exists, so it takes the newest stamped group's\n\t\t// latest frame: walk back from the cap to the first one. A scale-less track has none, so it\n\t\t// walks nothing.\n\t\tconst scaleless = info !== undefined && info.timescale == null;\n\t\tconst top = scaleless ? 0 : end === undefined ? timeline.length : lowerBound(timeline, end);\n\t\tfor (let i = top - 1; i >= 0; i--) {\n\t\t\tconst group = timeline[i];\n\t\t\tif (hooks.groupFailed(group) || !this.#judges(group.start, scope)) continue;\n\t\t\tconst timestamp = hooks.groupTimestamp(group);\n\t\t\tif (timestamp === undefined) continue;\n\t\t\tpresentation = { key: group.start, at: (hooks.groupLatest(group) ?? timestamp).asMillis() };\n\t\t\tbreak;\n\t\t}\n\n\t\tconst bound = info?.maxAge?.asMillis();\n\t\tconst named = this.#expiryBudget();\n\t\treturn {\n\t\t\tbudget: named.clamped(bound),\n\t\t\tnamed,\n\t\t\tbound,\n\t\t\tpresentation,\n\t\t\tend,\n\t\t\tscope,\n\t\t\topenFrom: open.from,\n\t\t};\n\t}\n\n\t// {@link #drift} as a fetch judges its group, against the whole track, bounded by the track's\n\t// max age alone.\n\t#driftFetched(): Drift {\n\t\tconst bound = this.#state.info.peek()?.maxAge?.asMillis();\n\t\tconst named = Budget.uniform(NO_MAX_DELAY);\n\t\treturn { ...this.#drift(WHOLE), budget: named.clamped(bound), named, bound };\n\t}\n\n\t// The group after `key` that bounds it: the first servable one below `end` that\n\t// counts as content (its first frame landed, or it ended), stamped or not.\n\t//\n\t// Its first timestamp is the furthest presentation time `key` could still reach.\n\t// An upper bound, deliberately: a frame's duration is not on the wire, so a group's own\n\t// last timestamp says where it starts presenting, not where it ends. A group whose header\n\t// landed without a frame is not content yet, so the next one is the bound; an unstamped\n\t// successor leaves the reach unbounded.\n\t#successor(key: bigint, end?: bigint, scope?: Scope): GroupConsumer | undefined {\n\t\treturn this.#after(key, end, hooks.groupStarted, scope);\n\t}\n\n\t// The group after `key` that starts its wall clock: like {@link #successor}, but\n\t// counting a group before its first frame. Its header arrived, so a relay ages the group\n\t// before it as the origin does, even if its first frame never comes.\n\t#arrival(key: bigint, end?: bigint, scope?: Scope): GroupConsumer | undefined {\n\t\treturn this.#after(key, end, () => true, scope);\n\t}\n\n\t// The live group gone just above `key` below `end` within `scope`, when the cache let it go\n\t// below `held`, the next one this reader holds there: still `key`'s immediate successor.\n\t// Mirrors the Rust `TrackState::departed_above`.\n\t#departedAbove(\n\t\tkey: bigint,\n\t\tend: bigint | undefined,\n\t\theld: bigint | undefined,\n\t\tscope?: Scope,\n\t): Departed | undefined {\n\t\tconst producer = this.#state.producer;\n\t\tif (!producer) return undefined;\n\t\tconst departed = departedOf(producer);\n\t\tfor (let i = lowerBound(departed, key + 1n); i < departed.length; i++) {\n\t\t\tconst gone = departed[i];\n\t\t\tif ((held !== undefined && gone.start >= held) || (end !== undefined && gone.start >= end))\n\t\t\t\treturn undefined;\n\t\t\tif (this.#judges(gone.start, scope)) return gone;\n\t\t}\n\t\treturn undefined;\n\t}\n\n\t// Whether group `key` counts toward the drift edge: inside the window, or the `scope` judged\n\t// within instead, every group for a fetch.\n\t#judges(key: bigint, scope = this.#fetch ? WHOLE : undefined): boolean {\n\t\treturn scope ? scope(key) : this.#window.contains(key);\n\t}\n\n\t// The first servable group after `key` below `end` that `counts`.\n\t#after(\n\t\tkey: bigint,\n\t\tend: bigint | undefined,\n\t\tcounts: (group: GroupConsumer) => boolean,\n\t\tscope?: Scope,\n\t): GroupConsumer | undefined {\n\t\tconst timeline = this.#state.timeline;\n\t\tfor (let i = lowerBound(timeline, key + 1n); i < timeline.length; i++) {\n\t\t\tconst successor = timeline[i];\n\t\t\tif (end !== undefined && successor.start >= end) break;\n\t\t\tif (hooks.groupFailed(successor) || !this.#judges(successor.start, scope)) continue;\n\t\t\tif (counts(successor)) return successor;\n\t\t}\n\t\treturn undefined;\n\t}\n\n\t// Whether the drift budget says to give up on `group`.\n\t//\n\t// Presentation time measures a group by how far it could still reach, not by how far\n\t// behind it started. Being behind is survivable: priority transmits newer groups first,\n\t// so a backlog bursts at whatever rate is left over and closes the gap faster than the\n\t// live edge advances. A group is abandoned only once everything it could still present\n\t// falls outside the budget.\n\t//\n\t// A group's reach is bounded by its nearest successor: it cannot present past where the\n\t// next group begins. Its own frames say nothing, since a frame's duration is not on the\n\t// wire, and the candidate needs no timestamp of its own: an empty group is bounded by\n\t// its stamped successor the same way. The bound is exclusive, so the comparison is `>=`:\n\t// the freshest frame a group could still hold sits just below its reach, so an age equal\n\t// to the budget already puts every frame in it strictly past the budget. A zero budget\n\t// falls out for free.\n\t//\n\t// The wall clock judges it too: a group is also stale once its successor arrived a full\n\t// budget ago, so a peer whose timestamps stop advancing or an empty successor that never\n\t// presents cannot pin a superseded group. A scale-less track has no presentation time, so\n\t// only the wall clock judges it. The successor is re-read, not latched, like the reach,\n\t// except by a reader holding the group: it passes `held`, so\n\t// the wall clock outlives the successor's eviction (see {@link #supersededAt}). The newest\n\t// group has no successor, so neither clock ever convicts it. `wake` arms a timer for the\n\t// wall deadline, for a held read that waits on it.\n\t//\n\t// Judged by its successor alone, so the group need not be in this track: evicted, held\n\t// from another copy, or outliving this subscriber. Once closed, only the wall clock judges\n\t// it, from the arrivals kept at close. `walked` finds what lies above `key` along a walk, and\n\t// without its `own`, judges it as a key this track does not hold, so its own end bounds nothing.\n\t//\n\t// A group past the track's max age is stale too, judged against the whole track as a fetch\n\t// judges it wherever this reader's drift stops short of it (see {@link #maxAgePast}), unless\n\t// `walked` judges it along a walk.\n\t#staleAt(key: bigint, drift: Drift, wake = false, held?: Superseded, walked?: Walked): boolean {\n\t\treturn this.#stale(key, drift, wake, held, walked) !== undefined;\n\t}\n\n\t// {@link #staleAt}, saying why: the max age first, whose verdict no wider budget overturns.\n\t// Mirrors the Rust `TrackState::stale`.\n\t#stale(key: bigint, drift: Drift, wake = false, held?: Superseded, walked?: Walked): Stale | undefined {\n\t\tconst whole = walked ? undefined : this.#maxAgePast(key, drift);\n\t\tif (whole !== undefined && this.#driftedAt(key, whole, wake)) return \"maxAge\";\n\t\treturn this.#driftedAt(key, drift, wake, held, walked) ? \"budget\" : undefined;\n\t}\n\n\t// The track's max age against the whole track, as {@link #driftFetched} judges it, when `drift`\n\t// stops short of it past `key`: a cap, a window that ends, such as a bounded range, or a gap\n\t// between `key` and the run reaching past every group. Its own budget only\n\t// ever judges within its window; the max age is the publisher's, and holds whatever follows the\n\t// window. Within it, the reader's budget, never wider than the max age, already judges what this\n\t// would. Mirrors the Rust `TrackState::aged_past`.\n\t#maxAgePast(key: bigint, drift: Drift): Drift | undefined {\n\t\tif (drift.bound === undefined) return undefined;\n\t\tconst short = drift.end !== undefined || drift.openFrom === undefined || key + 1n < drift.openFrom;\n\t\tif (!short) return undefined;\n\t\tdrift.whole ??= this.#driftFetched();\n\t\treturn drift.whole;\n\t}\n\n\t// {@link #staleAt} within `drift` alone. A fill's stretches judge only this: a stretch shares\n\t// one successor within the reader's window. Mirrors the Rust `TrackState::poll_drifted_wall`.\n\t#driftedAt(key: bigint, drift: Drift, wake = false, held?: Superseded, walked?: Walked): boolean {\n\t\tconst walk = walked?.walk;\n\t\tconst arrival = this.#arrivals\n\t\t\t? undefined\n\t\t\t: walk\n\t\t\t\t? walk.arrival(key)\n\t\t\t\t: this.#arrival(key, drift.end, drift.scope);\n\t\tconst gone = this.#arrivals\n\t\t\t? undefined\n\t\t\t: walk\n\t\t\t\t? walk.departed(key, arrival?.start)\n\t\t\t\t: this.#departedAbove(key, drift.end, arrival?.start, drift.scope);\n\t\tlet arrived = this.#arrivals\n\t\t\t? this.#keptSupersededAt(key, drift, held)\n\t\t\t: (gone?.arrived ?? this.#supersededAt(arrival, drift, held));\n\t\t// A group finished whole ages from its own end without a successor.\n\t\tif (arrived === undefined && walked?.own !== false && !this.#arrivals) arrived = this.#endedAt(key);\n\t\tif (arrived === undefined) return false;\n\t\tconst budget = drift.budget.at(key);\n\t\t// Plain arithmetic: an unenforced budget is infinite, which no duration brand holds.\n\t\tconst deadline = arrived.since(Instant.ZERO).asNanos() + budget * 1_000_000;\n\t\tif (now().since(Instant.ZERO).asNanos() >= deadline) return true;\n\t\tif (wake) this.#wakeAt(deadline);\n\t\treturn this.#staleByMedia(key, drift, walked);\n\t}\n\n\t// Whether the live edge presents a full budget past where group `key` could still reach. Unlike\n\t// the wall clock, which judges a key by when its successor arrived, this only grows with the key's\n\t// age, since timestamps never rewind: a key past it has every key below past it too. A closed\n\t// subscriber keeps no timeline to bound the reach with, and only a live edge above `key` convicts.\n\t#staleByMedia(key: bigint, drift: Drift, walked?: Walked): boolean {\n\t\tif (this.#arrivals || drift.presentation === undefined || drift.presentation.key <= key) return false;\n\t\tconst reach = this.#reach(key, drift.end, drift.scope, walked);\n\t\treturn reach !== undefined && drift.presentation.at - reach >= drift.budget.at(key);\n\t}\n\n\t// Where a live join this reader placed at `placed` starts for a reader within `budget`\n\t// milliseconds, as its publisher reports it: past the groups held there and after that the budget\n\t// expired, as delivery starts at the first group it serves.\n\t//\n\t// A copy whose upstream answers joins reports the answer that placed it, given under a max at\n\t// least as wide: its upstream judged the groups, and those owed from there may not have arrived\n\t// yet. Any other copy starts no lower than where its upstream said its feed starts, that wire's\n\t// answer for the whole subscription unless an update placed it afresh since (`vouch` keeps that\n\t// answer, for what the copy vouches for), and skips a stale\n\t// group only once every key below it is given up for the reader, since a group still on its way\n\t// there may be fresh. Mirrors the Rust `TrackState::join_start`.\n\t#joinStart(placed: bigint, budget: number, vouch = false): bigint {\n\t\tif (this.#resume) return this.#resume.joinStart(placed, budget, vouch);\n\t\tconst producer = this.#state.producer;\n\t\tif (producer === undefined || timeAnchors(producer).answersJoins) return placed;\n\t\tconst whole = this.#drift(WHOLE);\n\t\tconst drift = { ...whole, budget: Budget.uniform(budget).clamped(whole.bound) };\n\t\tconst received = receivedCopy(producer);\n\t\tconst feed = received ? (vouch ? vouchedFeed(producer) : sourceStart(producer)) : undefined;\n\t\tlet from = typeof feed === \"bigint\" ? max(placed, feed) : placed;\n\t\tconst timeline = this.#state.timeline;\n\t\tfor (let i = lowerBound(timeline, from); i < timeline.length; i++) {\n\t\t\tconst group = timeline[i];\n\t\t\t// An aborted group cannot start a join.\n\t\t\tif (hooks.groupFailed(group)) continue;\n\t\t\tif (received && !this.#state.drops.givenUp(from, group.start, budget)) break;\n\t\t\tif (!this.#staleAt(group.start, drift)) return group.start;\n\t\t\tfrom = group.start + 1n;\n\t\t}\n\t\treturn from;\n\t}\n\n\t// The first group held from `placed` up that `budget` milliseconds leave fresh, past every one\n\t// stale: where a join reading only what this copy holds now starts. Unlike `#joinStart`, a key\n\t// this copy has not accounted for does not stop it, since a group arriving there later is not yet\n\t// owed. Mirrors the Rust `TrackState::fresh_start`.\n\t// A copy whose upstream answers joins defers to that answer, as `#joinStart` does. `cap` is the\n\t// reader's exclusive end, the edge its drift is judged against.\n\t#freshStart(placed: bigint, budget: number, cap: bigint | undefined): bigint {\n\t\tif (this.#resume) return this.#resume.freshStart(placed, budget, cap);\n\t\tconst producer = this.#state.producer;\n\t\tif (producer === undefined || timeAnchors(producer).answersJoins) return placed;\n\t\tconst whole = this.#drift(WHOLE, cap);\n\t\tconst drift = { ...whole, budget: Budget.uniform(budget).clamped(whole.bound) };\n\t\tlet from = placed;\n\t\tconst timeline = this.#state.timeline;\n\t\tfor (let i = lowerBound(timeline, from); i < timeline.length; i++) {\n\t\t\tconst group = timeline[i];\n\t\t\tif (cap !== undefined && group.start >= cap) break;\n\t\t\t// An aborted group cannot start a join.\n\t\t\tif (hooks.groupFailed(group)) continue;\n\t\t\tif (!this.#staleAt(group.start, drift)) return group.start;\n\t\t\tfrom = group.start + 1n;\n\t\t}\n\t\treturn from;\n\t}\n\n\t// The first drop of `[start, end)` this track holds that settles this reader, with why, which a\n\t// start lowered to it owes once untold: a stale one only under the budget and coverage its drop\n\t// scan judges by. A front's reader reads a skip it kept or its serving copy's drop, less what\n\t// another copy may still deliver. Looked up one at a time, so a caller walking a long history\n\t// holds none of it. Mirrors the Rust `Subscriber::next_settled_drop`.\n\t#nextSettledDrop(start: bigint, end: bigint): DropRun | undefined | \"pending\" {\n\t\tif (this.#resume) return this.#resume.nextSettledDrop(start, end);\n\t\t// The budget alone: the drift's live edge plays no part in whether a verdict settles.\n\t\tconst budget = this.#window.budget().clamped(this.#state.info.peek()?.maxAge?.asMillis());\n\t\tconst coverage = this.#coverage();\n\t\tfor (const held of this.#state.drops.walk(start, end)) {\n\t\t\tconst run = { ...held, start: max(held.start, start), end: min(held.end, end) };\n\t\t\tif (settles(run, budget, coverage)) return run;\n\t\t}\n\t\treturn undefined;\n\t}\n\n\t// The cached group starting at `key`, failed or not.\n\t#held(key: bigint): GroupConsumer | undefined {\n\t\tconst timeline = this.#state.timeline;\n\t\tconst group = timeline[lowerBound(timeline, key)];\n\t\treturn group?.start === key ? group : undefined;\n\t}\n\n\t// A start or a group's end, in milliseconds of presentation time, or undefined on a\n\t// scale-less track, whose bare numbers are no time. Mirrors the Rust `TrackState::presented`.\n\t#presented(value: bigint): number | undefined {\n\t\tconst scale = this.#state.info.peek()?.timescale;\n\t\treturn scale == null ? undefined : (Number(value) * 1000) / scale;\n\t}\n\n\t// The furthest presentation time, in milliseconds, group `key` could still reach: its own\n\t// end once finished whole, unless `walked` judges it as a key this track does not hold, else where\n\t// its immediate successor below `end` begins, undefined when nothing proves where it stops. Mirrors\n\t// the Rust `TrackState::reach`.\n\t#reach(key: bigint, end: bigint | undefined, scope?: Scope, walked?: Walked): number | undefined {\n\t\tconst ended = walked?.own === false ? undefined : this.#held(key)?.end;\n\t\tif (ended !== undefined) return this.#presented(ended);\n\t\tconst walk = walked?.walk;\n\t\tconst successor = walk ? walk.successor(key) : this.#successor(key, end, scope);\n\t\tconst gone = walk\n\t\t\t? walk.departed(key, successor?.start)\n\t\t\t: this.#departedAbove(key, end, successor?.start, scope);\n\t\tif (gone) return gone.first?.asMillis();\n\t\tif (!successor) return undefined;\n\t\treturn hooks.groupTimestamp(successor)?.asMillis();\n\t}\n\n\t// When group `key`, finished whole, stops presenting on the wall clock: its arrival plus\n\t// its span, which stands in for a successor arriving, so the last group of a paused or\n\t// finished track ages out without one. A scale-less group's span is no time, so it waits\n\t// for a successor. Mirrors the Rust `TrackState::ended_at`.\n\t#endedAt(key: bigint): Instant | undefined {\n\t\tconst group = this.#held(key);\n\t\tconst end = group?.end;\n\t\tif (group === undefined || end === undefined || end <= key) return undefined;\n\t\tconst span = this.#presented(end - key);\n\t\treturn span === undefined ? undefined : hooks.groupArrived(group).checkedAdd(Duration.millis(span));\n\t}\n\n\t// When the wall clock starts: the cached `arrival`'s arrival, or that of the one `held`\n\t// recorded, unless a group landed between them since. The record outlives the successor's\n\t// eviction: otherwise an evicted successor restarts the clock at whichever newer group the\n\t// cache still holds, which a budget past the cache window never reaches. A recorded\n\t// successor that failed hands the clock on, as a re-read does, whether or not the cache\n\t// has evicted it yet.\n\t#supersededAt(arrival: GroupConsumer | undefined, drift: Drift, held?: Superseded): Instant | undefined {\n\t\tconst arrived = arrival && hooks.groupArrived(arrival);\n\t\tif (!held) return arrived;\n\t\tconst recorded = held.successor;\n\t\tif (\n\t\t\trecorded &&\n\t\t\t!failed(recorded) &&\n\t\t\t(drift.end === undefined || recorded.key < drift.end) &&\n\t\t\t(!arrival || arrival.start > recorded.key)\n\t\t) {\n\t\t\treturn recorded.arrived;\n\t\t}\n\t\tif (!arrival || arrived === undefined) {\n\t\t\theld.successor = undefined;\n\t\t} else if (recorded?.key !== arrival.start || !recorded.arrived.eq(arrived) || failed(recorded)) {\n\t\t\t// Re-recorded only on a change, so judging the same successor again allocates nothing.\n\t\t\theld.successor = { key: arrival.start, arrived, fate: hooks.groupFate(arrival) };\n\t\t}\n\t\treturn arrived;\n\t}\n\n\t// {@link #supersededAt} for a closed subscriber, with the arrivals kept at close standing in\n\t// for the timeline it cleared.\n\t#keptSupersededAt(key: bigint, drift: Drift, held?: Superseded): Instant | undefined {\n\t\tconst covered = (candidate: bigint) => drift.end === undefined || candidate < drift.end;\n\t\tconst arrivals = this.#arrivals ?? [];\n\t\tconst next = arrivals[lowerBound(arrivals, key + 1n)];\n\t\tconst kept = next && covered(next.start) ? next : undefined;\n\t\tconst recorded = held?.successor;\n\t\tif (recorded && !failed(recorded) && covered(recorded.key) && (!kept || kept.start > recorded.key)) {\n\t\t\treturn recorded.arrived;\n\t\t}\n\t\treturn kept?.arrived;\n\t}\n\n\t// Bump {@link #wall} at `at`, unless a wakeup is already armed sooner. Each held read\n\t// re-arms on the bump, so one timer covers every deadline this subscriber waits on.\n\t#wakeAt(at: number): void {\n\t\tconst wall = this.#wall;\n\t\tif (!Number.isFinite(at) || at >= wall.at) return;\n\t\twall.timer?.abort();\n\t\tconst timer = new AbortController();\n\t\t// A staleness wakeup is never a reason to hold a Node/Bun process open.\n\t\tvoid sleepUntil(Instant.ZERO.saturatingAdd(Duration.nanos(at)), { signal: timer.signal, ref: false }).then(\n\t\t\t() => {\n\t\t\t\tif (timer.signal.aborted) return;\n\t\t\t\twall.timer = undefined;\n\t\t\t\twall.at = Number.POSITIVE_INFINITY;\n\t\t\t\twall.revision.update((revision) => revision + 1);\n\t\t\t},\n\t\t\t() => {},\n\t\t);\n\t\twall.timer = timer;\n\t\twall.at = at;\n\t}\n\n\t#guard(group: GroupConsumer): GroupConsumer {\n\t\t// Handed out, it is read, whatever this reader judged it while buffered. Taking it is the\n\t\t// cache access buffering it is not, as in Rust: it restarts the group's idle window.\n\t\thooks.groupReads(group, true);\n\t\thooks.refreshGroup(group);\n\t\tconst held: Superseded = {};\n\t\thooks.onShedRead(group, () => {\n\t\t\tif (this.#state.latest === group.start && this.#state.producer)\n\t\t\t\thooks.askProducer(this.#state.producer, \"shed\");\n\t\t});\n\t\thooks.expireGroup(group, {\n\t\t\texpired: () => this.#staleAt(group.start, this.#drift(), true, held),\n\t\t\t// Only the subscription's budget is named, even when the publisher's limit\n\t\t\t// decided when to expire the group.\n\t\t\tbudget: () => this.#expiryBudget().at(group.start),\n\t\t\taged: (budget) => this.#agedPast(group.start, this.#drift(), budget, held),\n\t\t\tchanged: this.#expiryChanged(),\n\t\t});\n\t\treturn group;\n\t}\n\n\t// Whether group `key` aged past `budget` milliseconds, held to the track's max age, as `drift`\n\t// judges it otherwise. Mirrors the Rust `GroupExpiry::aged`.\n\t#agedPast(key: bigint, drift: Drift, budget: number, held: Superseded): boolean {\n\t\treturn this.#staleAt(key, { ...drift, budget: Budget.uniform(budget).clamped(drift.bound) }, true, held);\n\t}\n\n\t// What can change a drift verdict.\n\t#expiryChanged(): Getter<unknown>[] {\n\t\treturn [\n\t\t\tthis.#state.groups,\n\t\t\tthis.#state.timelineChanged,\n\t\t\tthis.#wall.revision,\n\t\t\tthis.#state.update.revision,\n\t\t\tthis.#state.info,\n\t\t\tthis.#cursor,\n\t\t\tthis.#state.closed,\n\t\t];\n\t}\n\n\t// Record `key` as handed out. An ordered read never goes back, and any reader stops\n\t// expecting what is past its budget, so only the gaps within it cost memory.\n\t#handOut(key: bigint, ordered: boolean): void {\n\t\tconst floor = this.#delivered.runEnd(0n) ?? 0n;\n\t\tif (ordered) this.#delivered.forgetBelow(key);\n\t\tthis.#delivered.add(key);\n\t\tthis.#skipped.delete(key);\n\t\t// Another copy of it buffered here is never handed out.\n\t\tthis.#judge(key, key + 1n);\n\t\tif (this.#resume) this.#resume.forgetPastBudget(this.#delivered);\n\t\telse this.#forgetPastBudget(this.#delivered);\n\t\t// What it hands out, and forgets below it, it no longer wants from a fill: tell the fills\n\t\t// owing it there, so their handlers stop serving it.\n\t\tconst forgot = this.#delivered.runEnd(0n) ?? 0n;\n\t\tif (forgot > floor) this.#stoppedReading(floor, forgot);\n\t\tif (key >= forgot) this.#stoppedReading(key, key + 1n);\n\t\tif (ordered) this.#fold(forgot);\n\t}\n\n\t// This reader stopped reading `[start, end)` for good: clip what it asked there, and judge\n\t// again only the fills owing it there, so a hand-out costs what it touches, not every fill.\n\t#stoppedReading(start: bigint, end: bigint): void {\n\t\tconst asker = this.#state.asker;\n\t\tconst producer = this.#state.producer;\n\t\tif (!asker || !producer) return;\n\t\tthis.#reclip(this.#givenUp, start, end, (run) => this.#reads(run.start, run.end));\n\t\tthis.#reclip(this.#heads, start, end, (run) => this.#reads(run.start, run.end));\n\t\tthis.#reclip(this.#asked, start, end, (run) => this.#wants(run.start, run.end));\n\t\tfillsOf(producer).moved(asker, start, end);\n\t\tthis.#fillMoves.update((moves) => moves + 1);\n\t}\n\n\t// Replace the `runs` overlapping `[start, end)` with what `keep` leaves of them.\n\t#reclip(runs: Run[], start: bigint, end: bigint, keep: (run: Run) => Run[]): void {\n\t\tconst from = runsFrom(runs, start);\n\t\tlet to = from;\n\t\twhile (to < runs.length && runs[to].start < end) to++;\n\t\tif (from < to) runs.splice(from, to - from, ...runs.slice(from, to).flatMap(keep));\n\t}\n\n\t// What this reader wants from the fills it joined may have narrowed: rejudge them, so their\n\t// handlers hear it.\n\t#fillsMoved(given?: readonly Run[]): void {\n\t\tconst producer = this.#state.producer;\n\t\tif (!this.#state.asker || !producer) return;\n\t\tconst fills = fillsOf(producer);\n\t\t// Runs given up are never wanted again, unless an update retries them, which asks afresh:\n\t\t// only the fills owing them are judged again.\n\t\tif (given) {\n\t\t\tfor (const run of given) fills.moved(this.#state.asker, run.start, run.end);\n\t\t} else {\n\t\t\t// At once, before the fills withdraw what it no longer reads: a widening back asks those\n\t\t\t// groups afresh.\n\t\t\tthis.#clipAsked();\n\t\t\tfills.moved(this.#state.asker);\n\t\t}\n\t\tthis.#fillMoves.update((moves) => moves + 1);\n\t}\n\n\t// Keep what this reader asked within what it still reads, as the Rust `Misses` clips what it\n\t// judged to the window: a group outside the window is never asked again, so these stay within the live span. A window moving back over a\n\t// clipped group asks it once more, as in Rust.\n\t#clipAsked(): void {\n\t\tif (this.#givenUp.length > 0) this.#givenUp = this.#givenUp.flatMap((run) => this.#reads(run.start, run.end));\n\t\tif (this.#heads.length > 0) this.#heads = this.#heads.flatMap((run) => this.#reads(run.start, run.end));\n\t\tif (this.#asked.length > 0) this.#asked = this.#asked.flatMap((run) => this.#wants(run.start, run.end));\n\t}\n\n\t// Raise the key cursor to `floor`: what lies below it is passed for good.\n\t#raiseNext(floor: bigint | undefined): void {\n\t\tif (floor === undefined || floor <= this.#nextKey) return;\n\t\tconst passed = this.#nextKey;\n\t\tthis.#nextKey = floor;\n\t\tthis.#judge(passed, floor);\n\t\tthis.#stoppedReading(passed, floor);\n\t}\n\n\t// Forget the gaps in `delivered` below each group past the budget of `terms` now whose every key\n\t// is past it too, as its own successor judges it, whether this track holds it or not: one landing\n\t// there would be written off. A group skipped as stale is not forgotten, since a wider budget\n\t// offers it again, and neither is one still buffered unread: it may have arrived after a newer\n\t// one, so its own successor may be fresh. A gap no range of `terms` holds, which the budget never\n\t// judged, a range added later owes again (see `Delivered.foldBelow`). Mirrors the Rust\n\t// `Cursor::forget_past_budget` keeping what the arrivals still owe. No gap at or above `keep` is\n\t// forgotten either.\n\t#forgetPastBudget(delivered: Delivered, terms = this.#foldTerms(), keep?: bigint): void {\n\t\tconst end = delivered.end();\n\t\tif (delivered.aboveGap() === undefined || end === undefined) return;\n\t\t// One edge for every gap judged, and one split for every gap forgotten.\n\t\tconst own = this.#drift();\n\t\tconst drift = { ...own, budget: terms.budget.clamped(own.bound) };\n\t\t// Found once a gap's group above is stale, so a hand-out that forgets nothing never scans\n\t\t// #skipped. A skip whose group left the cache can never be offered again, so it is forgotten\n\t\t// here rather than holding the gaps above it forever.\n\t\tlet kept: bigint | undefined;\n\t\tlet scanned = false;\n\t\tlet forget: bigint | undefined;\n\t\tfor (const gap of delivered.gaps(delivered.runEnd(0n) ?? 0n, end)) {\n\t\t\t// Judged under a budget at least as wide as any its keys or the group above get.\n\t\t\tlet widest = 0;\n\t\t\tfor (const [, budget] of drift.budget.runs(gap.start, gap.end + 1n)) widest = Math.max(widest, budget);\n\t\t\tconst judged = { ...drift, budget: Budget.uniform(widest) };\n\t\t\t// The group above must be stale too: keys stale only by the newest group's arrival stay\n\t\t\t// owed, so a group landing late below it still restarts their clock for a fill to ask. Its\n\t\t\t// verdict bounds none of theirs, though, so each is judged by its own.\n\t\t\tif (!this.#driftedAt(gap.end, judged)) break;\n\t\t\tif (!scanned) {\n\t\t\t\tscanned = true;\n\t\t\t\tconst producer = this.#state.producer;\n\t\t\t\tfor (const key of this.#skipped.keys()) {\n\t\t\t\t\tif (producer && !cachedHolds(producer, key)) this.#skipped.delete(key);\n\t\t\t\t\telse kept = min(kept ?? key, key);\n\t\t\t\t}\n\t\t\t\tconst owed = this.#lowestBuffered(delivered);\n\t\t\t\tif (owed !== undefined) kept = min(kept ?? owed, owed);\n\t\t\t\tif (keep !== undefined) kept = min(kept ?? keep, keep);\n\t\t\t}\n\t\t\tconst until = kept === undefined ? gap.end : min(kept, gap.end);\n\t\t\tif (until <= gap.start || !this.#allStale(gap.start, until, judged)) break;\n\t\t\tforget = until;\n\t\t\tif (until < gap.end) break;\n\t\t}\n\t\tif (forget === undefined) return;\n\t\tdelivered.foldBelow(forget, terms.ranges);\n\t\t// A buffered group in a gap forgotten here is never handed out.\n\t\tif (delivered === this.#delivered) this.#judge(0n, forget);\n\t}\n\n\t// A walk over keys under `drift`, lowest first. A departed search stops at the group held above\n\t// the key, as {@link #departedAbove} does, and resumes where it stopped, so groups out of reach\n\t// cost no scan.\n\t#walk(drift: Drift): Walk {\n\t\t// The group a search found above the key it was asked from, which holds for any key from there\n\t\t// up to just below that group.\n\t\tconst reuse = (find: (key: bigint) => GroupConsumer | undefined) => {\n\t\t\tlet seen: { from: bigint; found?: GroupConsumer } | undefined;\n\t\t\treturn (key: bigint) => {\n\t\t\t\tif (!seen || seen.from > key || (seen.found && key >= seen.found.start)) {\n\t\t\t\t\tseen = { from: key, found: find(key) };\n\t\t\t\t}\n\t\t\t\treturn seen.found;\n\t\t\t};\n\t\t};\n\t\t// The first departed group a search found above `from`, among those below `until`.\n\t\tlet gone: { from: bigint; until?: bigint; found?: Departed } | undefined;\n\t\tconst departed = (key: bigint, held: bigint | undefined): Departed | undefined => {\n\t\t\tif (gone && gone.from <= key) {\n\t\t\t\tconst { until, found } = gone;\n\t\t\t\tif (found && key < found.start) return held === undefined || found.start < held ? found : undefined;\n\t\t\t\t// None between `from` and `until`, so only past `until` is new.\n\t\t\t\tif (!found) {\n\t\t\t\t\tif (until === undefined || (held !== undefined && held <= until)) return undefined;\n\t\t\t\t\tconst from = max(until, key + 1n) - 1n;\n\t\t\t\t\tgone = { from: key, until: held, found: this.#departedAbove(from, drift.end, held, drift.scope) };\n\t\t\t\t\treturn gone.found;\n\t\t\t\t}\n\t\t\t}\n\t\t\tgone = { from: key, until: held, found: this.#departedAbove(key, drift.end, held, drift.scope) };\n\t\t\treturn gone.found;\n\t\t};\n\t\treturn {\n\t\t\tarrival: reuse((key) => this.#arrival(key, drift.end, drift.scope)),\n\t\t\tsuccessor: reuse((key) => this.#successor(key, drift.end, drift.scope)),\n\t\t\tdeparted,\n\t\t};\n\t}\n\n\t// Whether every key in `[start, end)`, cached or not, is stale under `drift`. Keys between two\n\t// groups that bound them, which the track caches or let go of within this reader's window, or a\n\t// closed reader kept the arrivals of, share a successor, so a verdict: it judges the newest key and\n\t// the key just below each such group, as one the track does not hold, never key by key. A group the\n\t// track holds without an end of its own is judged exactly so. One with an explicit end is judged by\n\t// it too, since its successor's leading frames may start presenting before that end. A group\n\t// landing late restarts the clock of the keys below it, and an unstamped one leaves their reach\n\t// unbounded, so no group above them stands in for their own. Mirrors the Rust\n\t// `TrackState::drifted_through`.\n\t#allStale(start: bigint, end: bigint, drift: Drift): boolean {\n\t\tif (start >= end) return true;\n\t\t// The keys just below group `key`, which it bounds. A failed group, or one outside the window,\n\t\t// bounds nothing (see #after), so judges no keys below it, though an explicit end still judges\n\t\t// the group itself.\n\t\tconst walk = this.#walk(drift);\n\t\tconst missing = { own: false, walk };\n\t\tconst stale = (key: bigint) => key <= start || this.#staleAt(key - 1n, drift, false, undefined, missing);\n\t\tif (!stale(end)) return false;\n\t\tif (this.#arrivals) {\n\t\t\tconst arrivals = this.#arrivals;\n\t\t\tfor (let i = lowerBound(arrivals, start + 1n); i < arrivals.length && arrivals[i].start < end; i++)\n\t\t\t\tif (!stale(arrivals[i].start)) return false;\n\t\t\treturn true;\n\t\t}\n\t\t// Each pass judges its keys lowest first, so the walk finds each group above them once a pass.\n\t\tconst ended = { own: true, walk };\n\t\tconst timeline = this.#state.timeline;\n\t\tfor (let i = lowerBound(timeline, start); i < timeline.length && timeline[i].start < end; i++) {\n\t\t\tconst group = timeline[i];\n\t\t\tif (!hooks.groupFailed(group) && this.#judges(group.start, drift.scope) && !stale(group.start))\n\t\t\t\treturn false;\n\t\t\tif (group.end !== undefined && !this.#staleAt(group.start, drift, false, undefined, ended)) return false;\n\t\t}\n\t\tconst producer = this.#state.producer;\n\t\tconst departed = producer ? departedOf(producer) : [];\n\t\tfor (let i = lowerBound(departed, start + 1n); i < departed.length && departed[i].start < end; i++) {\n\t\t\tif (this.#judges(departed[i].start, drift.scope) && !stale(departed[i].start)) return false;\n\t\t}\n\t\treturn true;\n\t}\n\n\t// The lowest group buffered unread within this reader's range and window, not in `delivered`. With\n\t// `fresh`, only one not stale even at the track's max age, which bounds every budget.\n\t#lowestBuffered(delivered: Delivered, fresh = false): bigint | undefined {\n\t\tconst groups = this.#state.groups.peek();\n\t\tconst { start, end } = this.#cursor.peek();\n\t\t// Judged within this read's own window and cap, at the max age alone.\n\t\tconst own = fresh ? this.#drift() : undefined;\n\t\tconst drift = own && { ...own, budget: Budget.uniform(NO_MAX_DELAY).clamped(own.bound) };\n\t\tfor (let index = lowerBound(groups, start); index < groups.length; index++) {\n\t\t\tconst key = groups[index].start;\n\t\t\tif (end !== undefined && key >= end) return undefined;\n\t\t\tif (!this.#window.contains(key) || delivered.has(key)) continue;\n\t\t\tif (!drift || !this.#staleAt(key, drift)) return key;\n\t\t}\n\t\treturn undefined;\n\t}\n\n\t// This subscriber's own fold terms: its budget, and its window once nothing waits on a first group.\n\t#foldTerms(): FoldTerms {\n\t\treturn { budget: this.#window.budget(), ranges: this.#window.pending ? undefined : this.#window };\n\t}\n\n\t// Take back what a fold counted as handed out before any range held it, which the ranges placed\n\t// so far now owe. A front's reader does so on each read, as its copies place its ranges.\n\t#reopenFolded(): void {\n\t\tif (!this.#resume) this.#delivered.reopen(this.#window);\n\t}\n\n\t// Record `key` as skipped stale under `budget`, so a wider one offers it again.\n\t#skip(key: bigint, budget: number): void {\n\t\tthis.#skipped.set(key, budget);\n\t\tthis.#narrowest = Math.min(this.#narrowest, budget);\n\t\t// Each kept entry holds a distinct cached group, so pruning once they outnumber the\n\t\t// cache twice over costs O(1) per skip amortized.\n\t\tconst producer = this.#state.producer;\n\t\tif (!producer || this.#skipped.size <= 2 * this.#state.timeline.length) return;\n\t\tfor (const skipped of this.#skipped.keys()) {\n\t\t\tif (!cachedHolds(producer, skipped)) this.#skipped.delete(skipped);\n\t\t}\n\t}\n\n\t// Offer again the cached groups skipped as stale under a budget narrower than `budget` gives\n\t// them, now that it widened. Each stays recorded, judged under what it gives now, until it is\n\t// handed out or skipped again, so a newer one handed out first never folds it into #delivered.\n\t// Costs the skipped groups, never the cache. Mirrors the Rust `Skipped::widened`.\n\t#reoffer(budget: Budget): void {\n\t\t// A skip is judged under the budget current then, so an equal one offers nothing again.\n\t\tif (this.#reofferedUnder?.equals(budget)) return;\n\t\tthis.#reofferedUnder = budget;\n\t\tif (this.#skipped.size === 0 || budget.widest() <= this.#narrowest) return;\n\t\tconst keys: bigint[] = [];\n\t\tlet narrowest = Number.POSITIVE_INFINITY;\n\t\tfor (const [key, judged] of this.#skipped) {\n\t\t\tconst now = budget.at(key);\n\t\t\tif (judged >= now) {\n\t\t\t\tnarrowest = Math.min(narrowest, judged);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tthis.#skipped.set(key, now);\n\t\t\tnarrowest = Math.min(narrowest, now);\n\t\t\tkeys.push(key);\n\t\t\t// Judged again, so a stale drop not reported yet is withdrawn.\n\t\t\tif (dropAt(this.#pending, key)?.maxAge !== undefined) {\n\t\t\t\tthis.#pending = this.#pending.flatMap((run) =>\n\t\t\t\t\trun.start <= key && key < run.end && run.maxAge !== undefined\n\t\t\t\t\t\t? removeRun([run], key, key + 1n)\n\t\t\t\t\t\t: [run],\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\t\tthis.#narrowest = narrowest;\n\t\tconst producer = this.#state.producer;\n\t\tif (producer && !this.#left && keys.length > 0) reofferKeys(producer, this.#state, keys);\n\t}\n\n\t// The publisher's view of this reader's record.\n\t#wireRecord(): WireRecord {\n\t\tthis.#wired = true;\n\t\tconst reported = this.#reported;\n\t\treturn {\n\t\t\ttold: (key) => reported.at(key) !== undefined,\n\t\t\tuntold: (start, end) => (start < end ? runGaps(reported.overlapping(start, end), start, end) : []),\n\t\t\tfirstUntold: (start, end) => {\n\t\t\t\tlet next = start;\n\t\t\t\tfor (const run of reported.walk(start, end)) {\n\t\t\t\t\tif (run.start > next) return { start: next, end: min(run.start, end) };\n\t\t\t\t\tnext = max(next, run.end);\n\t\t\t\t}\n\t\t\t\treturn next < end ? { start: next, end } : undefined;\n\t\t\t},\n\t\t\ttell: (start, end) => {\n\t\t\t\tif (start < end) reported.set(start, end, { start, end });\n\t\t\t},\n\t\t\t// A front's copies forget it too, so ranges that later ask for it report it again.\n\t\t\tuntell: (start, end) => {\n\t\t\t\tif (start >= end) return;\n\t\t\t\treported.set(start, end);\n\t\t\t\tthis.#resume?.untell(start, end);\n\t\t\t},\n\t\t};\n\t}\n\n\tprivate constructor(name: string, state: TrackState) {\n\t\tthis.name = name;\n\t\tthis.#state = state;\n\t\tstate.reads = (key) => this.#reading(key);\n\t\tstate.refuseTime = (time, error) => {\n\t\t\t// Another recovery may have placed this start since the reader last polled.\n\t\t\tthis.#settle();\n\t\t\tif (!state.asks.includes(time)) return;\n\t\t\tthis.#refusal = error;\n\t\t\tthis.#ask();\n\t\t\tstate.timelineChanged.update((revision) => revision + 1);\n\t\t};\n\t\t// Each reader filters locally even when another reader widens upstream demand.\n\t\tthis.#resolve();\n\t}\n\n\t// The latest group, which a range waiting on a first group resolves against. A reader following route copies\n\t// leaves them to the copies, which hold the groups.\n\t#latestGroup(): bigint | undefined {\n\t\treturn this.#resume ? undefined : this.#state.largest.peek()?.group;\n\t}\n\n\t// Resolve this reader's ranges again, as when they are replaced.\n\t#resolve(): void {\n\t\tconst update = this.#state.update;\n\t\tthis.#refusal = undefined;\n\t\t// By the keys the ranges hold, which an edit's Range IDs set, as the Rust `Change::All` has it.\n\t\tthis.#window = Window.keyed(\n\t\t\tupdate.given() ? update.entries() : [[0n, {}]],\n\t\t\tthis.#latestGroup(),\n\t\t\tthis.#holdings(),\n\t\t\t(key) => update.joining(key),\n\t\t);\n\t\t// Leaves the lookups the old ranges asked, which a settled window never reads again.\n\t\tif (this.#lookups.length > 0) this.#lookUp();\n\t\tthis.#moved();\n\t}\n\n\t// The window moved: narrow the bounds to it.\n\t#moved(): void {\n\t\tthis.#revision++;\n\t\tthis.#reopenFolded();\n\t\tthis.#bound();\n\t\tthis.#ask();\n\t}\n\n\t// Count the time starts and live joins the window waits on in the producer's demand, on a\n\t// received lite-07 copy, whose session asks its upstream to place each (see `countAsks`). Mirrors\n\t// the Rust `Cursor::ask`.\n\t#ask(): void {\n\t\tconst producer = this.#state.producer;\n\t\tif (!producer) return;\n\t\tconst wire = !this.#resume && receivedCopy(producer) && !this.#state.dropsAnchors.peek();\n\t\tconst times = wire && !this.#refusal ? this.#window.asks() : [];\n\t\tconst joins = !this.#resume && !this.#refusal && timeAnchors(producer).answersJoins ? this.#window.joins() : [];\n\t\tif (times.length === 0 && joins.length === 0 && this.#state.asks.length === 0 && this.#state.joins.length === 0)\n\t\t\treturn;\n\t\tcountAsks(\n\t\t\tproducer,\n\t\t\tthis.#state,\n\t\t\ttimes,\n\t\t\tjoins.map(([min, end, budget, since]) => ({ min, end, budget, since })),\n\t\t);\n\t}\n\n\t// A settled wire feed can still recover the group containing an unresolved time.\n\t#awaitsTimeAnswer(): boolean {\n\t\tconst producer = this.#state.producer;\n\t\treturn (\n\t\t\tproducer !== undefined &&\n\t\t\treceivedCopy(producer) &&\n\t\t\t!this.#state.dropsAnchors.peek() &&\n\t\t\tthis.#window.asks().length > 0 &&\n\t\t\tfillsOf(producer).serving\n\t\t);\n\t}\n\n\t// The groups this reader's track holds, by start, for resolving its time starts and live joins:\n\t// the producer's cache. A reader following route copies leaves them to the copies, which hold\n\t// the groups. Mirrors the Rust `Holdings for TrackState`.\n\t#holdings(): Holdings {\n\t\tconst state = this.#state;\n\t\tconst producer = state.producer;\n\t\tif (this.#resume || !producer) return UNHELD;\n\t\tconst keys = keysOf(producer);\n\t\tconst drops = state.drops;\n\t\tconst anchors = timeAnchors(producer);\n\t\t// A lite-07 copy holds only part of the track: a group held before a time contains it only\n\t\t// once nothing between them is still to arrive.\n\t\tconst wire = receivedCopy(producer) && !state.dropsAnchors.peek();\n\t\t// A lite-07 copy places a live join only where its upstream answered a range asking the same\n\t\t// join, recorded after the reader's range was added: the live edge is the upstream's, which no\n\t\t// group held here measures. Mirrors the Rust `Holdings::answers_joins for TrackState`.\n\t\tconst answers = anchors.answersJoins;\n\t\t// The upstream's answer to a live join, recorded after the reader's range was added, under a\n\t\t// budget at least as wide as the reader's. Mirrors the Rust `TrackState::join_answer`.\n\t\t// The upstream's answer to a live join, recorded after `since` under a budget at least as wide\n\t\t// as the reader's: a start past groups a narrower max expired would skip groups it still wants.\n\t\tconst joinAnswer = (min: Duration | null, end: bigint | undefined, budget: number, since: number) => {\n\t\t\tconst answer = anchors.joins.get(joinKey(min && Math.ceil(min.asMillis()), end));\n\t\t\treturn answer && answer.tick > since && budget <= answer.budget ? answer : undefined;\n\t\t};\n\t\t// The times from `from` on that the drops from there leave open.\n\t\tconst uncovered = (from: bigint): Run | undefined => {\n\t\t\tconst start = drops.coveredFrom(from);\n\t\t\treturn start < UNBOUNDED ? { start, end: UNBOUNDED } : undefined;\n\t\t};\n\t\tconst holdings: Holdings = {\n\t\t\tresolves: () => true,\n\t\t\tcontaining: (time, budget) => {\n\t\t\t\t// A fetch names its group by start: the one starting there, never an earlier one\n\t\t\t\t// containing it, as a Rust fetch reads by key.\n\t\t\t\tif (anchors.atKeys || state.fetch) return { at: time };\n\t\t\t\tconst index = keyIndex(keys, time + 1n);\n\t\t\t\tconst below = index > 0 ? keys[index - 1] : undefined;\n\t\t\t\t// No group contains a time past a whole group's span, so one there starts at its End.\n\t\t\t\tconst at = (below: bigint): { at: bigint } => ({ at: reached(below, time, wholeAt(producer, below)) });\n\t\t\t\t// A lite-07 copy holds only part of the track, so it places a time only where it can prove\n\t\t\t\t// what its upstream would answer: at a group held before it once every key between is\n\t\t\t\t// given up for this reader (a whole group's GROUP_END gives up the starts inside its span,\n\t\t\t\t// so it alone proves every time there), or at its End once the time is past that span,\n\t\t\t\t// before every group once every key through it is, or where its\n\t\t\t\t// upstream answered a range asked from that time. Anything else waits, and the reader asks\n\t\t\t\t// its upstream for it (see `askTimes`): a group held after the time says nothing of one\n\t\t\t\t// between, nor does a stale drop of a reader wider than the budget it was judged under.\n\t\t\t\t// Mirrors the Rust `TrackState::containing_received`.\n\t\t\t\tif (wire) {\n\t\t\t\t\t// An open group's End may yet land at or before the time, so only a frame past it, or the\n\t\t\t\t\t// group finishing, proves the group reaches it: an aborted copy may have lost its End.\n\t\t\t\t\tif (\n\t\t\t\t\t\tbelow !== undefined &&\n\t\t\t\t\t\t(below === time || placesAt(producer, below, time)) &&\n\t\t\t\t\t\tdrops.givenUp(pastSpan(producer, below), time + 1n, budget)\n\t\t\t\t\t)\n\t\t\t\t\t\treturn at(below);\n\t\t\t\t\tconst reported = timeStartContaining(anchors.starts.get(time), time);\n\t\t\t\t\tif (reported !== undefined) return reported;\n\t\t\t\t\tif (below === undefined && drops.givenUp(0n, time + 1n, budget)) return \"before\";\n\t\t\t\t\treturn \"unknown\";\n\t\t\t\t}\n\t\t\t\t// A live group the cache let go of between them starts after it, so this one does not\n\t\t\t\t// contain the time: a range from it starts there, though nothing is held. A handler that\n\t\t\t\t// looks it up finds it from the group held instead, as for any group the cache let go of.\n\t\t\t\tconst departed = departedOf(producer);\n\t\t\t\tconst gone =\n\t\t\t\t\tbelow === undefined || holdings.looksUp?.()\n\t\t\t\t\t\t? undefined\n\t\t\t\t\t\t: departed[lowerBound(departed, below + 1n)];\n\t\t\t\tif (gone && gone.start <= time) return { at: gone.start };\n\t\t\t\tif (below !== undefined) return at(below);\n\t\t\t\t// Every key at or before it is gone, so whichever group held it will never arrive.\n\t\t\t\tif (drops.covers(0n, time + 1n)) return \"before\";\n\t\t\t\treturn keys.length === 0 ? \"unknown\" : \"before\";\n\t\t\t},\n\t\t\t// The \"unknown\" times of `containing`, apart from those `anchors.starts` places, which the\n\t\t\t// mark covers. Mirrors the Rust `Holdings::unplaced for TrackState`.\n\t\t\tunplaced: () => {\n\t\t\t\tconst mark = anchors.placing * 4 + (state.dropsAnchors.peek() ? 2 : 0) + (state.fetch ? 1 : 0);\n\t\t\t\tconst runs: Run[] = [];\n\t\t\t\tconst first = keys[0];\n\t\t\t\tconst last = keys.at(-1);\n\t\t\t\tif (anchors.atKeys || state.fetch) {\n\t\t\t\t\t// Every time starts a group.\n\t\t\t\t} else if (first === undefined || last === undefined) {\n\t\t\t\t\tconst open = uncovered(0n);\n\t\t\t\t\tif (open) runs.push(open);\n\t\t\t\t} else if (wire) {\n\t\t\t\t\t// Below every group, up to the first, and above the last, past the drops after it.\n\t\t\t\t\tconst below = uncovered(0n);\n\t\t\t\t\tif (below && below.start < first) runs.push({ start: below.start, end: first });\n\t\t\t\t\t// Past the newest group, a time is unplaced until the drops reach it, and past that\n\t\t\t\t\t// group's newest frame until it finishes.\n\t\t\t\t\tconst above = uncovered(pastSpan(producer, last));\n\t\t\t\t\tconst from = unplacedFromAt(producer, last);\n\t\t\t\t\tif (from === undefined) {\n\t\t\t\t\t\tif (above) runs.push(above);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tconst start = max(from, last + 1n);\n\t\t\t\t\t\truns.push({ start: above ? min(above.start, start) : start, end: UNBOUNDED });\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn { runs, mark };\n\t\t\t},\n\t\t\tnextStart: (from) => keys[keyIndex(keys, from)],\n\t\t\t// Only once the producer is gone: a group held below a reached end may still start.\n\t\t\tcomplete: () => state.closed.peek() !== undefined,\n\t\t\t// A received copy's handler is its session, which fetches by group alone.\n\t\t\tlooksUp: () => !receivedCopy(producer) && fillsOf(producer).serving,\n\t\t\tjoin: (min, end, budget, since) => {\n\t\t\t\tif (!answers)\n\t\t\t\t\treturn this.#join(\n\t\t\t\t\t\tmin,\n\t\t\t\t\t\t(time) => holdings.containing(time, budget),\n\t\t\t\t\t\twire && !anchors.atKeys,\n\t\t\t\t\t\tanchors.ended,\n\t\t\t\t\t);\n\t\t\t\tconst answer = joinAnswer(min, end, budget, since);\n\t\t\t\tif (answer === undefined) return undefined;\n\t\t\t\treturn answer.start === undefined ? \"empty\" : { group: answer.start };\n\t\t\t},\n\t\t\tanswersJoins: () => answers,\n\t\t\tansweredJoin: joinAnswer,\n\t\t\t// Skip runs coalesce, so a gap between two held groups is one run unless the cache\n\t\t\t// evicted a group inside it.\n\t\t\tneverProduced: (start, end) => {\n\t\t\t\tif (start >= end) return true;\n\t\t\t\tlet at = start;\n\t\t\t\tfor (const run of drops.overlapping(start, end)) {\n\t\t\t\t\tif (run.reason !== \"skip\" || run.start > at) return false;\n\t\t\t\t\tat = run.end;\n\t\t\t\t}\n\t\t\t\treturn at >= end;\n\t\t\t},\n\t\t};\n\t\treturn holdings;\n\t}\n\n\t// Where a live join holding `min` behind the live edge starts on a hop that measures it, as\n\t// {@link Holdings.join} says: in media time from the newest frame held, or on a scale-less track,\n\t// by arrival on this hop's clock, as expiry measures it. Undefined while it can't tell.\n\t//\n\t// A hop serving its own track starts a timed one as a time start at the live edge minus `min`,\n\t// which a fill handler looks up in its history, and a scale-less one at the newest group that\n\t// arrived at least `min` ago, or the oldest held. A `wire` copy (whose publisher reports where its\n\t// ranges start, but not where each join does) places it only where the groups it holds prove, and\n\t// waits otherwise. A copy whose wire keys groups otherwise starts at a group held, by when each\n\t// one's first frame presented, as its publisher resolved the join already. A lite-07 copy places\n\t// none itself until its end is declared (see {@link Holdings.answersJoins}). A `wire` copy whose declared end settled\n\t// (`ended`) gets no more groups to prove it by, so it leaves an unproven join to a time start,\n\t// which asks its upstream.\n\t// Mirrors the Rust `TrackState::join`.\n\t#join(\n\t\tmin: Duration | null,\n\t\tcontaining: (time: bigint) => Containing,\n\t\twire: boolean,\n\t\tended: () => boolean,\n\t): Join | undefined {\n\t\tconst timeline = this.#state.timeline;\n\t\t// The newest group held for which `f` holds, failed ones aside.\n\t\tconst newest = (f: (group: GroupConsumer) => boolean) =>\n\t\t\ttimeline.findLast((g) => !hooks.groupFailed(g) && f(g));\n\t\tconst oldest = () => timeline.find((g) => !hooks.groupFailed(g));\n\t\tconst info = this.#state.info.peek();\n\t\t// Until the track is accepted, whether it is timed at all is unknown.\n\t\tif (info === undefined) return undefined;\n\t\tconst scale = info.timescale;\n\t\tif (scale == null) {\n\t\t\tconst at = now();\n\t\t\tconst group = min && newest((group) => at.since(hooks.groupArrived(group)).ge(min));\n\t\t\tif (group) return { group: group.start };\n\t\t\t// This copy's arrivals don't reach back that far yet, but its upstream's may.\n\t\t\tif (wire && min !== null) return undefined;\n\t\t\t// It reaches back past every arrival, so it starts where a time start from 0 does, taking a\n\t\t\t// lower group that arrives late as the oldest group would. One with no lag limit never\n\t\t\t// waits: no arrival reaches back that far, and on a copy it asks upstream for any lower\n\t\t\t// group the copy lacks, as on a timed track.\n\t\t\treturn { time: 0n };\n\t\t}\n\t\tconst stamped = newest((group) => hooks.groupTimestamp(group) !== undefined);\n\t\t// In the track's own scale, which holds every timestamp it accepted. Floored exactly, as\n\t\t// Rust's `Timestamp::convert`: an accepted timestamp may sit between ticks.\n\t\tconst reach = (group: GroupConsumer | undefined) => {\n\t\t\tconst latest = group && (hooks.groupLatest(group) ?? hooks.groupTimestamp(group));\n\t\t\treturn latest && BigInt(floorAt(latest, scale));\n\t\t};\n\t\t// The newest group's newest frame, held or let go of by the cache: its publisher reached it.\n\t\t// An older group's later frames don't move it, held or not.\n\t\tconst producer = this.#state.producer;\n\t\tconst gone = producer && departedEdge(producer);\n\t\tconst departed = gone && BigInt(floorAt(gone.latest, scale));\n\t\tconst held = reach(stamped);\n\t\tconst newer =\n\t\t\tgone &&\n\t\t\t(!stamped ||\n\t\t\t\tgone.key > stamped.start ||\n\t\t\t\t(gone.key === stamped.start && (held === undefined || (departed !== undefined && departed > held))));\n\t\tconst edge = held === undefined || newer ? departed : held;\n\t\t// The lag rounds up to whole ticks, so the start is never newer than it allows; with no lag\n\t\t// limit it reaches back past every timestamp.\n\t\tconst back =\n\t\t\tmin === null\n\t\t\t\t? undefined\n\t\t\t\t: (BigInt(Math.ceil(min.asNanos())) * BigInt(scale) + 999_999_999n) / 1_000_000_000n;\n\t\tif (!this.#state.dropsAnchors.peek() && !(producer && timeAnchors(producer).atKeys)) {\n\t\t\t// Keys are group starts, so the newest group held starts no later than the edge. A copy's\n\t\t\t// feed may still be bringing older groups, which its own newest then trails: the largest\n\t\t\t// its upstream reported puts the live edge no lower.\n\t\t\tconst largest = wire ? this.#state.largest.peek()?.group : undefined;\n\t\t\tlet top: bigint | undefined;\n\t\t\tfor (const at of [edge, newest(() => true)?.start, largest]) {\n\t\t\t\tif (at !== undefined && (top === undefined || at > top)) top = at;\n\t\t\t}\n\t\t\tif (top === undefined) return undefined;\n\t\t\tconst target = back !== undefined && top > back ? top - back : 0n;\n\t\t\tif (target === 0n || !wire || containing(target) !== \"unknown\") return { time: target };\n\t\t\t// Groups never overlap in time, so one held starting by the target with a frame at or past\n\t\t\t// it contains it: every later group starts after that frame.\n\t\t\tconst holder = newest((group) => group.start <= target);\n\t\t\tconst through = reach(holder);\n\t\t\tif (holder && through !== undefined && through >= target) return { group: holder.start };\n\t\t\treturn ended() ? { time: target } : undefined;\n\t\t}\n\t\t// Keys that aren't times: by when each group's first frame presented. No group presents\n\t\t// before time 0, so a join reaching back that far starts as the oldest group does, taking a\n\t\t// lower group that arrives late rather than starting at the oldest group this hop happens to\n\t\t// hold. One with no lag limit needs no frame to measure it by, so groups whose frames are\n\t\t// still on their way place it all the same.\n\t\tlet target: bigint;\n\t\tif (back === undefined) target = 0n;\n\t\telse if (edge === undefined) return undefined;\n\t\telse target = edge > back ? edge - back : 0n;\n\t\tif (target === 0n) return \"oldest\";\n\t\tconst group =\n\t\t\tnewest((group) => {\n\t\t\t\tconst start = hooks.groupTimestamp(group);\n\t\t\t\treturn start !== undefined && BigInt(floorAt(start, scale)) <= target;\n\t\t\t}) ?? oldest();\n\t\treturn group && { group: group.start };\n\t}\n\n\t// Resolve what the groups now held settle: a live join waiting on a first group once one\n\t// exists, and a time start as groups arrive. Returns the refusal of ranges this copy cannot\n\t// resolve, which every read reports.\n\t#settle(): Error | undefined {\n\t\tif (this.#refusal || this.#resume || this.#window.settled) return this.#refusal;\n\t\t// The live feed had no group when the ranges resolved, so the newest one then was the first.\n\t\tconst latest = this.#window.pending ? this.#state.first : this.#latestGroup();\n\t\tconst looked = this.#lookUp();\n\t\tconst placed = this.#window.settle(latest, this.#holdings());\n\t\tif (placed || looked) this.#moved();\n\t\t// Whether the copy is fed over a lite-07 wire may have changed since the window last moved.\n\t\telse this.#ask();\n\t\treturn this.#refusal;\n\t}\n\n\t// Ask a fill for the group containing each time start the window can't resolve from the cache,\n\t// once, and take in the answers. A refused one fails the reads until the ranges change. Returns\n\t// whether the groups in range moved. Mirrors the Rust `Cursor::look_up`.\n\t#lookUp(): boolean {\n\t\tif (this.#refusal || this.#left) return false;\n\t\tlet moved = false;\n\t\t// An answer the window takes in may look its time up again from lower down.\n\t\tfor (let again = true; again; ) {\n\t\t\tconst pass = this.#lookUpPass();\n\t\t\tmoved ||= pass.moved;\n\t\t\tagain = pass.again;\n\t\t}\n\t\treturn moved;\n\t}\n\n\t// One pass of `#lookUp`, which says whether the window looks up a time again.\n\t#lookUpPass(): { moved: boolean; again: boolean } {\n\t\tconst wanted = this.#window.lookups();\n\t\tif (wanted.length === 0 && this.#lookups.length === 0) return { moved: false, again: false };\n\t\tconst producer = this.#state.producer;\n\t\t// The window stops looking once replaced, or looks again from lower down.\n\t\tthis.#lookups = this.#lookups.filter((lookup) => {\n\t\t\tif (wanted.some((want) => want.time === lookup.time && want.floor === lookup.floor)) return true;\n\t\t\tleaveLook(lookup.stage);\n\t\t\treturn false;\n\t\t});\n\t\tfor (const { time, floor } of wanted) {\n\t\t\tif (this.#lookups.some((lookup) => lookup.time === time)) continue;\n\t\t\t// With no handler open any more, nothing can answer.\n\t\t\tconst lookup = producer && fillsOf(producer).timeStart(time, floor, this.#askerOf());\n\t\t\tconst below = producer && belowFloor(producer, floor);\n\t\t\tthis.#lookups.push({ time, floor, stage: { kind: \"asked\", lookup, below } });\n\t\t}\n\t\tlet moved = false;\n\t\tlet again = false;\n\t\tfor (const lookup of [...this.#lookups]) {\n\t\t\tconst { time, stage } = lookup;\n\t\t\tlet found: Found = { kind: \"unanswered\" };\n\t\t\tlet start: bigint | Error | undefined;\n\t\t\tif (stage.kind === \"placing\") {\n\t\t\t\tstart = probed(stage.probe, time);\n\t\t\t\tif (start === undefined) continue;\n\t\t\t} else {\n\t\t\t\tconst answer = stage.lookup?.answer();\n\t\t\t\tif (answer === undefined && stage.lookup && !stage.lookup.done()) continue;\n\t\t\t\tstage.lookup?.leave();\n\t\t\t\t// A group answered below the time, or the one below a floor no group starts from, may end\n\t\t\t\t// whole before the time, which then lies in the pause past it: its span places the time,\n\t\t\t\t// read through a probe of the lookup's own. Mirrors the Rust `Cursor::look_up_pass`.\n\t\t\t\tconst placing =\n\t\t\t\t\tanswer?.kind === \"group\" && answer.group < time\n\t\t\t\t\t\t? answer.answer && { key: answer.group, group: answer.answer }\n\t\t\t\t\t\t: answer?.kind === \"dropped\"\n\t\t\t\t\t\t\t? stage.below\n\t\t\t\t\t\t\t: undefined;\n\t\t\t\tif (placing) {\n\t\t\t\t\tconst probe = { ...placing, reader: placing.group.consume() };\n\t\t\t\t\tlookup.stage = { kind: \"placing\", probe };\n\t\t\t\t\tstart = probed(probe, time);\n\t\t\t\t\tif (start === undefined) continue;\n\t\t\t\t} else if (answer?.kind === \"refused\") start = answer.error;\n\t\t\t\telse if (answer?.kind === \"group\") start = answer.group;\n\t\t\t\t// No group from the floor and none held below it: from 0, before every group; otherwise\n\t\t\t\t// the group the floor was past is gone, so look again from lower down rather than guess.\n\t\t\t\telse if (answer?.kind === \"dropped\" && lookup.floor === 0n) found = { kind: \"dropped\", floor: 0n };\n\t\t\t}\n\t\t\tthis.#lookups.splice(this.#lookups.indexOf(lookup), 1);\n\t\t\tleaveLook(lookup.stage);\n\t\t\t// Refused, or the group placing it aborted first: where the time falls is unknown, so the\n\t\t\t// reads fail rather than guess from the cache. The ranges resolve afresh once they change,\n\t\t\t// asking again.\n\t\t\tif (start instanceof Error) {\n\t\t\t\tthis.#refusal = start;\n\t\t\t\treturn { moved: true, again: false };\n\t\t\t}\n\t\t\tif (start !== undefined) found = { kind: \"group\", group: start };\n\t\t\tif (this.#window.found(time, found, this.#holdings())) moved = true;\n\t\t\tif (this.#window.lookups().some((want) => want.time === time)) again = true;\n\t\t}\n\t\treturn { moved, again };\n\t}\n\n\t// Narrow the local bounds to the window into the hull every read starts from.\n\t#bound(): void {\n\t\tconst end = this.#window.end();\n\t\tconst local = this.#local;\n\t\tthis.#cursor.set({\n\t\t\tstart: max(local.start, this.#window.floor() ?? 0n),\n\t\t\tend: end === undefined ? local.end : min(local.end ?? end, end),\n\t\t});\n\t\tthis.#judge(0n, UNBOUNDED);\n\t\t// What it reads changed, so its fill probe judges everything again.\n\t\tthis.#judgedAt = undefined;\n\t\t// A fill this reader alone waited on for a group it no longer reads is withdrawn.\n\t\tthis.#fillsMoved();\n\t\tthis.#letGoKeptOut();\n\t}\n\n\t// The parts of `[start, end)` this reader still reads: inside its cursor and window, not\n\t// handed out, and not passed by the key cursor, which never goes back.\n\t#reads(start: bigint, end: bigint): Run[] {\n\t\tif (this.#state.closed.peek() !== undefined) return [];\n\t\treturn this.#unread(start, end);\n\t}\n\n\t// The parts of `[start, end)` this reader's bounds and cursor still leave unread, even once\n\t// the track closed, since what it buffered stays readable.\n\t#unread(start: bigint, end: bigint): Run[] {\n\t\tconst cursor = this.#cursor.peek();\n\t\tconst from = max(max(start, cursor.start), this.#nextKey);\n\t\tconst to = cursor.end === undefined ? end : min(end, cursor.end);\n\t\treturn this.#window.runs(from, to).flatMap((run) => [...this.#delivered.gaps(run.start, run.end)]);\n\t}\n\n\t// Tell each group buffered in `[start, end)` whether this reader will still read it, as the\n\t// Rust `Join` holds a run until its reader takes it, passes it, or stops reading it. A budget\n\t// judges a group only once a read reaches it, as there.\n\t#judge(start: bigint, end: bigint): void {\n\t\tconst groups = this.#state.groups.peek();\n\t\tfor (let i = lowerBound(groups, start); i < groups.length && groups[i].start < end; i++) {\n\t\t\thooks.groupReads(groups[i], this.#reading(groups[i].start));\n\t\t}\n\t}\n\n\t// Whether this reader will still read group `key` once buffered: what it wants from a\n\t// fill, judged even once the track closed.\n\t#reading(key: bigint): boolean {\n\t\tif (this.#left) return false;\n\t\tconst unread = this.#unread(key, key + 1n);\n\t\treturn unread.length > 0 && runGaps(this.#givenUp, key, key + 1n).length > 0;\n\t}\n\n\t// What this reader still wants from a fill: what it reads, less what it gave up as stale.\n\t#wants(start: bigint, end: bigint): Run[] {\n\t\tconst reads = this.#reads(start, end);\n\t\tif (this.#givenUp.length === 0) return reads;\n\t\treturn reads.flatMap((run) => runGaps(this.#givenUp, run.start, run.end));\n\t}\n\n\t// This reader as the producer's fills know it.\n\t#askerOf(): Asker {\n\t\tthis.#state.asker ??= {\n\t\t\twants: (start, end) => this.#wants(start, end),\n\t\t\tpriority: () => this.#state.update.policy().priority,\n\t\t\torder: () => this.#state.update.policy().order,\n\t\t\trefuse: (start, end, error) => {\n\t\t\t\tthis.#state.refused.update((runs) =>\n\t\t\t\t\tinsertDrop(runs, start, end, {\n\t\t\t\t\t\t...holeOf(error),\n\t\t\t\t\t\town: true,\n\t\t\t\t\t\trefusal: this.#fetch ? error : undefined,\n\t\t\t\t\t}),\n\t\t\t\t);\n\t\t\t},\n\t\t};\n\t\treturn this.#state.asker;\n\t}\n\n\t// Ask the producer's fills for the misses in `[start, end)`: groups this reader reads below\n\t// the newest one received that the cache does not hold and nobody gave up. A run whose newest\n\t// group the budget already convicts is not asked, so a reader at the live edge never asks.\n\t// Only what is still unjudged is looked at (see #unjudged), so a probe costs what changed\n\t// since the last. Returns the first key a fill still owes this reader whose budget still\n\t// wants it, arming the wakeup for when that changes. Mirrors the Rust `Misses::judge`.\n\t#askFills(start: bigint, end: bigint, drift?: Drift): bigint | undefined {\n\t\tconst producer = this.#state.producer;\n\t\tif (this.#resume || !producer || this.#left) return undefined;\n\t\tconst fills = fillsOf(producer);\n\t\t// A wire fetch from a track's own publisher judges its holes with no handler open too, as\n\t\t// a FETCH does: see #askRun.\n\t\tconst own = this.#wireFetch && !receivedCopy(producer);\n\t\t// A fill already out can be joined even once its handler's handle closed.\n\t\tif (fills.serving || fills.active || own) {\n\t\t\tdrift ??= this.#drift();\n\t\t\tconst asker = this.#askerOf();\n\t\t\t// A moving read floor retires only its prefix: what lies above it stays asked.\n\t\t\tconst read = max(this.#cursor.peek().start, this.#nextKey);\n\t\t\tfor (const runs of [this.#asked, this.#givenUp, this.#heads]) cutRun(runs, 0n, read);\n\t\t\t// Below where the budget passed, no fill is judged again, so no verdict is needed there. What\n\t\t\t// this reader asked or gave up stays until its read passes it: a bounded read ends on those.\n\t\t\tconst { floor: walked, passed } = this.#pastBudget(drift, read);\n\t\t\t// Above the floor the walk started from, only the verdicts it judged: one in a range it sought\n\t\t\t// past outside the window stays, for a range restored there later.\n\t\t\tcutRun(this.#adopted, 0n, walked);\n\t\t\tif (drift.scope) cutRun(this.#adopted, walked, passed);\n\t\t\telse {\n\t\t\t\t// Only when a window run meets a verdict, and then in one pass over the verdicts the span\n\t\t\t\t// touches: a probe costs the window's runs, not the verdicts kept outside them.\n\t\t\t\tconst adopted = this.#adopted;\n\t\t\t\tconst runs = this.#window.runs(walked, passed);\n\t\t\t\tconst meets = (run: Run) => {\n\t\t\t\t\tconst at = runsFrom(adopted, run.start);\n\t\t\t\t\treturn at < adopted.length && adopted[at].start < run.end;\n\t\t\t\t};\n\t\t\t\tif (runs.some(meets)) {\n\t\t\t\t\tconst from = runsFrom(adopted, walked);\n\t\t\t\t\tlet to = from;\n\t\t\t\t\twhile (to < adopted.length && adopted[to].start < passed) to++;\n\t\t\t\t\tconst kept = subtractRuns(adopted.slice(from, to), runs);\n\t\t\t\t\tthis.#adopted = [...adopted.slice(0, from), ...kept, ...adopted.slice(to)];\n\t\t\t\t}\n\t\t\t}\n\t\t\tconst budget = drift.budget;\n\t\t\tconst coverage = this.#coverage();\n\t\t\tthis.#reopen(producer, fills, budget, coverage);\n\t\t\tconst scoped = scopedDrops(producer);\n\t\t\tconst timeline = this.#state.timeline;\n\t\t\t// Below where the feed starts, only the history the copy's start rule leaves fillable.\n\t\t\tconst floor = fillFloor(producer, this.#window.start());\n\t\t\tconst { drops, refused } = this.#state;\n\t\t\tconst low = max(floor === undefined ? start : max(start, floor), passed);\n\t\t\t// A track's own publisher whose fills serve history answers every hole of a wire fetch past\n\t\t\t// its live edge too. Mirrors the Rust `TrackState::fills_fetches`.\n\t\t\tconst fetches = own && fills.serving;\n\t\t\tconst edge = fetches ? end : min(end, max(this.#state.received.peek(), (fillEdge(producer) ?? -1n) + 1n));\n\t\t\tconst above = max(low, edge);\n\t\t\tconst unknown = this.#unknownRuns(budget, coverage);\n\t\t\tconst seen: Run[] = [];\n\t\t\tconst unjudged = this.#unjudged;\n\t\t\tfor (let at = runsFrom(unjudged, low); at < unjudged.length && unjudged[at].start < end; at++) {\n\t\t\t\tconst from = max(unjudged[at].start, low);\n\t\t\t\tconst to = min(unjudged[at].end, end);\n\t\t\t\t// Reordered streams still owed by the live feed are not cache misses, and stay unjudged\n\t\t\t\t// until the feed gives them up.\n\t\t\t\tconst accounted: Run[] = [];\n\t\t\t\tfor (const run of owedRuns(producer, from, to)) {\n\t\t\t\t\tinsertRun(accounted, run.start, run.end);\n\t\t\t\t\tif (run.folds !== undefined) this.#wakeAt(run.folds.since(Instant.ZERO).asNanos());\n\t\t\t\t}\n\t\t\t\tfor (const run of runGaps(accounted, from, to)) seen.push(run);\n\t\t\t\tconst spans: Run[] = from < min(to, edge) ? [{ start: from, end: min(to, edge) }] : [];\n\t\t\t\t// A received stale run that does not settle this reader is unknown to it, so it is\n\t\t\t\t// still asked for, as the Rust `Misses::unclaimed` judges it: the upstream accounted\n\t\t\t\t// for it, so the live feed brings none of it unless an update supersedes it. Only the\n\t\t\t\t// unknown runs overlapping what is unjudged are walked.\n\t\t\t\tconst over = max(from, above);\n\t\t\t\tconst recovery = over < to ? intersect(scoped, over, to) : [];\n\t\t\t\tfor (let i = runsFrom(unknown, over); i < unknown.length && unknown[i].start < to; i++) {\n\t\t\t\t\tconst dropped = unknown[i];\n\t\t\t\t\tconst span = { ...dropped, start: max(dropped.start, over), end: min(dropped.end, to) };\n\t\t\t\t\tif (span.start < span.end && !settles(span, budget, coverage))\n\t\t\t\t\t\tinsertRun(recovery, span.start, span.end);\n\t\t\t\t}\n\t\t\t\tfor (const run of recovery) spans.push(run);\n\t\t\t\t// Only what the window lets a miss ask for: none below the oldest group held for a time\n\t\t\t\t// start reaching back past it.\n\t\t\t\tconst missable = spans.flatMap((span) => this.#window.missable(span.start, span.end));\n\t\t\t\tfor (const run of missable.flatMap((span) => this.#wants(span.start, span.end))) {\n\t\t\t\t\tconst gone = [...accounted];\n\t\t\t\t\tfor (const dropped of givenUp(drops, refused.peek(), run.start, run.end, (run) =>\n\t\t\t\t\t\tsettles(run, budget, coverage),\n\t\t\t\t\t)) {\n\t\t\t\t\t\t// Judged from where it meets the asked run, as the reader would read it.\n\t\t\t\t\t\tconst clipped = { ...dropped, start: max(dropped.start, run.start) };\n\t\t\t\t\t\tif (!settles(clipped, budget, coverage)) continue;\n\t\t\t\t\t\tinsertRun(gone, clipped.start, dropped.end);\n\t\t\t\t\t\t// The track's drop, kept as this reader's own verdict; its own fill's refusal is one already.\n\t\t\t\t\t\tif (!dropped.own) this.#adopt(clipped.start, min(dropped.end, run.end), dropped);\n\t\t\t\t\t}\n\t\t\t\t\t// What this reader gave up before, though the track forgot the drop that settled it.\n\t\t\t\t\tfor (const verdict of intersectDrops(this.#adopted, run.start, run.end)) {\n\t\t\t\t\t\tif (settles(verdict, budget, coverage)) insertRun(gone, verdict.start, verdict.end);\n\t\t\t\t\t}\n\t\t\t\t\tfor (const open of runGaps(gone, run.start, run.end).flatMap((part) =>\n\t\t\t\t\t\toutsideSpans(producer, part.start, part.end),\n\t\t\t\t\t)) {\n\t\t\t\t\t\tlet next = open.start;\n\t\t\t\t\t\tfor (let i = lowerBound(timeline, open.start); i < timeline.length; i++) {\n\t\t\t\t\t\t\tconst group = timeline[i];\n\t\t\t\t\t\t\tif (group.start >= open.end) break;\n\t\t\t\t\t\t\t// A failed copy holds nothing to read, so it is missed like an evicted one.\n\t\t\t\t\t\t\tif (hooks.groupFailed(group)) continue;\n\t\t\t\t\t\t\tthis.#askMiss(next, group.start, drift, asker);\n\t\t\t\t\t\t\tnext = group.start + 1n;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tthis.#askMiss(next, open.end, drift, asker);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor (const run of seen) cutRun(this.#unjudged, run.start, run.end);\n\t\t}\n\t\tconst asker = this.#state.asker;\n\t\tif (!asker) return undefined;\n\t\t// Every group of an owed run waits on the same successor, so its newest judges the run;\n\t\t// a stale run is given up, and gives way to a later one the budget still wants.\n\t\tlet owed: bigint | undefined;\n\t\tconst stale: Run[] = [];\n\t\tfor (const covered of fills.covered(start, end, asker)) {\n\t\t\tdrift ??= this.#drift();\n\t\t\t// Under no budget nothing expires, so the first run still owed ends the look.\n\t\t\tif (drift.budget.isUniform() && drift.budget.widest() === NO_MAX_DELAY) {\n\t\t\t\towed = covered.start;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t// A stretch under one budget with no group the cache let go of inside it shares one\n\t\t\t// successor, so its newest key judges it. One that landed late restarts the clock of the\n\t\t\t// keys below it, so each piece cut at such a group is judged by its own newest key.\n\t\t\tfor (const [stretch] of drift.budget.runs(covered.start, covered.end)) {\n\t\t\t\tfor (const run of this.#splitRun(stretch.start, stretch.end, drift)) {\n\t\t\t\t\tif (this.#driftedAt(run.end - 1n, drift, true)) stale.push(run);\n\t\t\t\t\telse owed ??= run.start;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (owed !== undefined) this.#fillWait = true;\n\t\tif (stale.length > 0) {\n\t\t\tfor (const run of stale) {\n\t\t\t\tinsertRun(this.#givenUp, run.start, run.end);\n\t\t\t\tthis.#judge(run.start, run.end);\n\t\t\t}\n\t\t\tthis.#fillsMoved(stale);\n\t\t}\n\t\treturn owed;\n\t}\n\n\t// The lowest key a fill could still bring this reader (`passed`, beside the `floor` it walked\n\t// from): its hand-out floor, or its read floor `read` where higher, raised past every key above it\n\t// that media time puts past the widest budget (see #staleByMedia), each judged by its own reach as\n\t// the track holds it now, so a reader that walked here judges no key otherwise than one that did\n\t// not. That floor holds below a cached group no range covers, and an arrival read never raises its\n\t// key cursor, so without this its fill verdicts since the join pile up and are judged again on\n\t// every change. A scale-less track has no media time, so its floor stays.\n\t//\n\t// The walk goes piece by piece, each a run of keys judged by the same reach: a cached group alone,\n\t// or the keys up to the next group cached or gone, skipping what was handed out. So it costs what\n\t// the cache holds, never the history since the join. It keeps steps to resume from, popped by what\n\t// moves a reach under them: a wider budget or an edge moved back, and a group the timeline lost or\n\t// gained below them (see `TrackState.lost`). It stops below a group yet to start, which may start\n\t// with no timestamp and leave the keys below it unbounded. Steps merge as a skew binary counter\n\t// does, so they number the log of the pieces walked, and a pop walks again at most about twice what\n\t// it took back.\n\t#pastBudget(drift: Drift, read: bigint): { floor: bigint; passed: bigint } {\n\t\tconst delivered = this.#delivered;\n\t\t// Below the read floor nothing is read, so the walk never visits the history a join left below it.\n\t\tconst floor = max(delivered.runEnd(0n) ?? 0n, read);\n\t\tconst producer = this.#state.producer;\n\t\tconst edge = this.#arrivals ? undefined : drift.presentation;\n\t\tif (!producer || edge === undefined) {\n\t\t\t// Nothing pops the steps meanwhile, and the changes that would are not kept for later.\n\t\t\tthis.#passed = undefined;\n\t\t\treturn { floor, passed: floor };\n\t\t}\n\t\tconst widest = drift.budget.widest();\n\t\tconst coverage = this.#coverage();\n\t\tlet passed = this.#passed;\n\t\tif (\n\t\t\tpassed?.producer !== producer ||\n\t\t\tfloor < passed.floor ||\n\t\t\tpassed.end !== drift.end ||\n\t\t\tpassed.scope !== drift.scope ||\n\t\t\tpassed.removals !== delivered.removals ||\n\t\t\t!sameCoverage(passed.coverage, coverage)\n\t\t) {\n\t\t\tpassed = {\n\t\t\t\tproducer,\n\t\t\t\tfloor,\n\t\t\t\tcoverage,\n\t\t\t\tend: drift.end,\n\t\t\t\tscope: drift.scope,\n\t\t\t\tremovals: delivered.removals,\n\t\t\t\tsteps: [],\n\t\t\t};\n\t\t\tthis.#passed = passed;\n\t\t}\n\t\tpassed.floor = floor;\n\t\tconst steps = passed.steps;\n\t\tconst timeline = this.#state.timeline;\n\t\tconst moved = this.#movedFrom(floor, drift.scope);\n\t\twhile (steps.length > 0) {\n\t\t\tconst top = steps[steps.length - 1];\n\t\t\tif (top.key <= moved && top.key <= edge.key && edge.at - top.reach >= widest) break;\n\t\t\tsteps.pop();\n\t\t}\n\t\tlet below = 0;\n\t\twhile (below < steps.length && steps[below].key <= floor) below++;\n\t\tif (below > 0) steps.splice(0, below);\n\n\t\tconst departed = departedOf(producer);\n\t\tlet at = max(steps[steps.length - 1]?.key ?? floor, floor);\n\t\tlet reach = steps[steps.length - 1]?.reach ?? Number.NEGATIVE_INFINITY;\n\t\tfor (;;) {\n\t\t\tat = delivered.runEnd(at) ?? at;\n\t\t\tif (at >= edge.key) return { floor, passed: at };\n\t\t\t// No fill is asked outside the window, so the walk seeks to its next range.\n\t\t\tif (!this.#judges(at, drift.scope)) {\n\t\t\t\tconst next = drift.scope ? undefined : this.#window.next(at);\n\t\t\t\tif (next === undefined) return { floor, passed: at };\n\t\t\t\tat = next;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tconst here = this.#reach(at, drift.end, drift.scope);\n\t\t\tif (here === undefined || edge.at - here < widest || this.#awaitsStart(at, drift))\n\t\t\t\treturn { floor, passed: at };\n\t\t\t// The keys sharing its reach: a cached group alone, else up to the next group cached or gone.\n\t\t\tconst index = lowerBound(timeline, at);\n\t\t\tlet next = timeline[index]?.start === at ? at + 1n : (timeline[index]?.start ?? edge.key);\n\t\t\tconst gone = departed[lowerBound(departed, at + 1n)];\n\t\t\tif (gone && gone.start < next) next = gone.start;\n\t\t\treach = Math.max(reach, here);\n\t\t\tsteps.push({ key: min(next, edge.key), reach, pieces: 1 });\n\t\t\t// Three steps of a size merge the lower two, so the newest stay fine.\n\t\t\tfor (let i = steps.length - 1; i >= 2; i -= 2) {\n\t\t\t\tconst [low, mid, high] = [steps[i - 2], steps[i - 1], steps[i]];\n\t\t\t\tif (low.pieces !== mid.pieces || mid.pieces !== high.pieces) break;\n\t\t\t\tsteps.splice(i - 2, 2, { key: mid.key, reach: mid.reach, pieces: low.pieces + mid.pieces });\n\t\t\t}\n\t\t\tat = min(next, edge.key);\n\t\t}\n\t}\n\n\t// The lowest key above `floor` whose reach the groups the timeline lost or gained since the last\n\t// probe may have moved: from the group below the lowest one that #after would count, which it may\n\t// have bounded too, up to the next group cached, below which a group gone may have shadowed another.\n\t// Unbounded when none.\n\t#movedFrom(floor: bigint, scope?: Scope): bigint {\n\t\tconst timeline = this.#state.timeline;\n\t\tfor (const run of this.#state.lost ?? []) {\n\t\t\t// Only the keys below the next group cached move, and below the floor none matter.\n\t\t\tif ((timeline[lowerBound(timeline, run.end)]?.start ?? UNBOUNDED) <= floor) continue;\n\t\t\tlet i = lowerBound(timeline, run.start) - 1;\n\t\t\twhile (\n\t\t\t\ti >= 0 &&\n\t\t\t\t(hooks.groupFailed(timeline[i]) ||\n\t\t\t\t\t!this.#judges(timeline[i].start, scope) ||\n\t\t\t\t\t!hooks.groupStarted(timeline[i]))\n\t\t\t)\n\t\t\t\ti--;\n\t\t\treturn i < 0 ? 0n : timeline[i].start;\n\t\t}\n\t\treturn UNBOUNDED;\n\t}\n\n\t// Whether the first group after `key` that #after would count, failed and out-of-scope ones\n\t// skipped, has yet to start: one that starts with no timestamp leaves `key` unbounded.\n\t#awaitsStart(key: bigint, drift: Drift): boolean {\n\t\tconst timeline = this.#state.timeline;\n\t\tfor (let i = lowerBound(timeline, key + 1n); i < timeline.length; i++) {\n\t\t\tconst group = timeline[i];\n\t\t\tif (drift.end !== undefined && group.start >= drift.end) return false;\n\t\t\tif (hooks.groupFailed(group) || !this.#judges(group.start, drift.scope)) continue;\n\t\t\treturn !hooks.groupStarted(group);\n\t\t}\n\t\treturn false;\n\t}\n\n\t// Take what changed since the last probe as unjudged again: every key once the terms it\n\t// was judged under change, else the drop runs changed or forgotten, the groups the timeline\n\t// lost or gained with the gaps they bound, and what the received edge rose over, which\n\t// arrives live no more.\n\t#reopen(producer: Producer, fills: FillState, budget: Budget, coverage: Coverage): void {\n\t\tconst state = this.#state;\n\t\tconst at = this.#judgedAt;\n\t\tconst edge = max(state.received.peek(), (fillEdge(producer) ?? -1n) + 1n);\n\t\tconst opened = fills.opened.peek();\n\t\tconst removed = at && state.drops.removedSince(at.drops);\n\t\tif (\n\t\t\t!at ||\n\t\t\t!removed ||\n\t\t\t!state.lost ||\n\t\t\tat.producer !== producer ||\n\t\t\t!budget.equals(at.budget) ||\n\t\t\t!sameCoverage(at.coverage, coverage) ||\n\t\t\tat.opened !== opened\n\t\t) {\n\t\t\tthis.#unjudged = [{ start: 0n, end: UNBOUNDED }];\n\t\t} else {\n\t\t\tfor (const run of [...removed, ...state.drops.since(at.drops)])\n\t\t\t\tinsertRun(this.#unjudged, run.start, run.end);\n\t\t\t// A group lost or gained was or is the successor the gap below it is judged by, back to\n\t\t\t// the group below that #after would count.\n\t\t\tconst timeline = state.timeline;\n\t\t\tfor (const run of state.lost) {\n\t\t\t\tlet i = lowerBound(timeline, run.start) - 1;\n\t\t\t\twhile (\n\t\t\t\t\ti >= 0 &&\n\t\t\t\t\t(hooks.groupFailed(timeline[i]) ||\n\t\t\t\t\t\t!this.#judges(timeline[i].start) ||\n\t\t\t\t\t\t!hooks.groupStarted(timeline[i]))\n\t\t\t\t)\n\t\t\t\t\ti--;\n\t\t\t\tinsertRun(this.#unjudged, i < 0 ? 0n : timeline[i].start + 1n, run.end);\n\t\t\t}\n\t\t\tif (edge > at.edge) insertRun(this.#unjudged, at.edge, edge);\n\t\t}\n\t\tstate.lost = [];\n\t\tthis.#judgedAt = {\n\t\t\tproducer,\n\t\t\tbudget,\n\t\t\tcoverage,\n\t\t\topened,\n\t\t\tdrops: state.drops.revision,\n\t\t\tedge,\n\t\t};\n\t}\n\n\t// The received stale runs that do not settle this reader under `budget` and `coverage`,\n\t// lowest first. While the terms hold, only what changed since is judged again: a run the\n\t// track replaced or forgot leaves the memo, and the runs the change left are judged anew, so a\n\t// drop costs the memo the runs it touches. Once the set no longer remembers what it removed\n\t// that far back, the memo is rebuilt, at most once per a live set's worth of removals. A later start only narrows what a run asks the\n\t// reader to read, so a run that settles here settles clipped too. Mirrors the Rust\n\t// `Misses::unknown`.\n\t#unknownRuns(budget: Budget, coverage: Coverage): readonly DropRun[] {\n\t\tconst { drops } = this.#state;\n\t\tconst unsettled = (run: DropRun) => !settles(run, budget, coverage);\n\t\tconst memo = this.#unknown;\n\t\tconst removed =\n\t\t\tmemo &&\n\t\t\tbudget.equals(memo.budget) &&\n\t\t\tsameCoverage(memo.coverage, coverage) &&\n\t\t\tdrops.removedSince(memo.drops);\n\t\tif (memo && removed) {\n\t\t\tif (memo.drops === drops.revision) return memo.runs;\n\t\t\t// Updated in place: its one caller is done with the last answer.\n\t\t\tconst runs = memo.runs;\n\t\t\tfor (const gone of removed) {\n\t\t\t\tconst from = runsFrom(runs, gone.start);\n\t\t\t\tlet to = from;\n\t\t\t\twhile (to < runs.length && runs[to].start < gone.end) to++;\n\t\t\t\truns.splice(from, to - from);\n\t\t\t}\n\t\t\tfor (const changed of drops.since(memo.drops)) {\n\t\t\t\tfor (const run of drops.overlapping(changed.start, changed.end)) {\n\t\t\t\t\tconst at = runsFrom(runs, run.start);\n\t\t\t\t\tif (unsettled(run) && runs[at] !== run) runs.splice(at, 0, run);\n\t\t\t\t}\n\t\t\t}\n\t\t\tmemo.drops = drops.revision;\n\t\t\treturn runs;\n\t\t}\n\t\tconst runs = drops.all.filter(unsettled);\n\t\tthis.#unknown = { drops: drops.revision, budget, coverage, runs };\n\t\treturn runs;\n\t}\n\n\t// Ask a fill for a fetch's group at once, written yet or not, as the Rust `fetch_group` queues\n\t// one; a group the live feed writes meanwhile answers it. `false` with no handler to ask; `\"pending\"` until the track is accepted.\n\t#askFetch(key: bigint): boolean | \"pending\" {\n\t\tconst producer = this.#state.producer;\n\t\tif (!producer) return false;\n\t\tif (this.#state.info.peek() === undefined && this.#state.closed.peek() === undefined) return \"pending\";\n\t\tif (cachedHolds(producer, key)) return true;\n\t\t// Joins a fill already bringing it, handler or not; asks a new one only while one is open.\n\t\tconst asked = fillsOf(producer).ask(key, key + 1n, this.#askerOf());\n\t\tif (asked.length === 0) return false;\n\t\tinsertRun(this.#asked, key, key + 1n);\n\t\treturn true;\n\t}\n\n\t// The lowest group a fill still brings this reader, asking for what it misses first.\n\t#filling(): bigint | undefined {\n\t\tconst producer = this.#state.producer;\n\t\tif (this.#resume || !producer) return undefined;\n\t\tconst fills = fillsOf(producer);\n\t\tif (!fills.serving && !fills.active) return undefined;\n\t\tconst drift = this.#drift();\n\t\treturn this.#askFills(this.#cursor.peek().start, UNBOUNDED, drift);\n\t}\n\n\t// `[start, end)` cut below each live group the cache let go of inside it: a group that landed\n\t// late bounds the keys below it by its own arrival, so each piece shares one successor and its\n\t// newest key judges it. A cached group inside that can be a successor cuts below it, and one with an\n\t// explicit end, whose head a fill may still be bringing, is a piece of its own, judged by that end,\n\t// which bounds none of the keys around it. One piece when none lies inside. Mirrors the Rust\n\t// `TrackState::split_at_departed` and `Misses::stretches`.\n\t#splitRun(start: bigint, end: bigint, drift: Drift): Run[] {\n\t\tconst cuts = new Set<bigint>();\n\t\tconst producer = this.#state.producer;\n\t\tif (producer && !this.#arrivals) {\n\t\t\tconst departed = departedOf(producer);\n\t\t\tfor (let i = lowerBound(departed, start + 1n); i < departed.length && departed[i].start < end; i++) {\n\t\t\t\tconst gone = departed[i].start;\n\t\t\t\tif (drift.end !== undefined && gone >= drift.end) break;\n\t\t\t\tif (this.#judges(gone, drift.scope)) cuts.add(gone);\n\t\t\t}\n\t\t}\n\t\tconst timeline = this.#state.timeline;\n\t\tfor (let i = lowerBound(timeline, start); i < timeline.length && timeline[i].start < end; i++) {\n\t\t\tconst group = timeline[i];\n\t\t\tconst held = group.start;\n\t\t\t// A failed group, or one outside the window, bounds nothing below it, though an explicit end\n\t\t\t// still judges the group itself.\n\t\t\tif (!hooks.groupFailed(group) && this.#judges(held, drift.scope) && held > start) cuts.add(held);\n\t\t\tif (group.end !== undefined) {\n\t\t\t\tif (held > start) cuts.add(held);\n\t\t\t\tif (held + 1n < end) cuts.add(held + 1n);\n\t\t\t}\n\t\t}\n\t\tconst pieces: Run[] = [];\n\t\tlet from = start;\n\t\tfor (const cut of [...cuts].sort((a, b) => (a < b ? -1 : a > b ? 1 : 0))) {\n\t\t\tpieces.push({ start: from, end: cut });\n\t\t\tfrom = cut;\n\t\t}\n\t\tpieces.push({ start: from, end });\n\t\treturn pieces;\n\t}\n\n\t// Ask a fill for the missed run `[start, end)`, but for each stretch under one budget, cut below\n\t// each group the cache let go of, whose newest group is stale: what was never asked, and again\n\t// what was asked but is missed again.\n\t#askMiss(start: bigint, end: bigint, drift: Drift, asker: Asker): void {\n\t\tfor (const [stretch] of drift.budget.runs(start, end)) {\n\t\t\tfor (const run of this.#splitRun(stretch.start, stretch.end, drift)) {\n\t\t\t\tif (!this.#driftedAt(run.end - 1n, drift)) this.#askRun(run.start, run.end, asker);\n\t\t\t}\n\t\t}\n\t}\n\n\t// Ask a fill for the missed run `[start, end)`: what was never asked, and again what was asked\n\t// but is missed again.\n\t#askRun(start: bigint, end: bigint, asker: Asker): void {\n\t\tconst producer = this.#state.producer as Producer;\n\t\tconst fills = fillsOf(producer);\n\t\t// With no handler open, a wire fetch from a track's own publisher finds a group it skipped\n\t\t// below its newest one not found, as a FETCH does, rather than wait on a group its producer\n\t\t// moved past. A fill already out still brings what it covers. Mirrors the Rust\n\t\t// `TrackState::unfed`.\n\t\tif (!fills.serving && this.#wireFetch && !receivedCopy(producer)) {\n\t\t\tconst skipped: Run[] = [];\n\t\t\tfor (const gap of runGaps(this.#asked, start, end)) {\n\t\t\t\tconst joined = fills.ask(gap.start, gap.end, asker);\n\t\t\t\tfor (const run of joined) insertRun(this.#asked, run.start, run.end);\n\t\t\t\tskipped.push(...runGaps(joined, gap.start, gap.end));\n\t\t\t}\n\t\t\tfor (const run of skipped) {\n\t\t\t\tinsertRun(this.#givenUp, run.start, run.end);\n\t\t\t\tasker.refuse(run.start, run.end, new StreamError(StreamCode.NotFound, { message: \"group not found\" }));\n\t\t\t}\n\t\t\tif (skipped.length > 0) this.#fillsMoved(skipped);\n\t\t\treturn;\n\t\t}\n\t\t// Asked before and missed again, unless a fill still brings it.\n\t\tconst again = intersect(this.#asked, start, end).flatMap((run) =>\n\t\t\trunGaps([...fills.covered(run.start, run.end, asker)], run.start, run.end),\n\t\t);\n\t\t// Only what a fill took counts as asked: with no handler open, a miss no fill covers is\n\t\t// left to ask once one opens.\n\t\tfor (const gap of runGaps(this.#asked, start, end)) {\n\t\t\tfor (const run of fills.ask(gap.start, gap.end, asker)) insertRun(this.#asked, run.start, run.end);\n\t\t}\n\t\t// An answer that failed is still cached, failed, and given up: asking again would repeat a\n\t\t// source's failure without end. One evicted before this reader took it is asked again however\n\t\t// often. Mirrors the Rust `Misses::next_filled`.\n\t\tconst failed: Run[] = [];\n\t\tfor (const run of again) {\n\t\t\tfor (const key of cachedIn(producer, run.start, run.end)) {\n\t\t\t\tif (!cachedHolds(producer, key)) insertRun(failed, key, key + 1n);\n\t\t\t}\n\t\t\tfor (const lost of runGaps(failed, run.start, run.end)) fills.ask(lost.start, lost.end, asker);\n\t\t}\n\t\tfor (const run of failed) {\n\t\t\tinsertRun(this.#givenUp, run.start, run.end);\n\t\t\tasker.refuse(run.start, run.end, new StreamError(StreamCode.NotFound, { message: \"fill answer failed\" }));\n\t\t}\n\t\tif (failed.length > 0) this.#fillsMoved(failed);\n\t}\n\n\t// Whether `group` is one this reader hands out only from its first frame, which it lacks: the\n\t// window is bounded, so it reads whole groups as a fetch would, or a wire publisher reads it\n\t// whole from the frame it serves. Mirrors the Rust\n\t// `Cursor::lacks_head`, a fetch's `poll_fetch_cached` frame bounds, and `position_group`.\n\t#lacksHead(group: GroupConsumer): boolean {\n\t\tconst whole = this.#whole?.(group.start);\n\t\tif (whole !== undefined) return hooks.groupFirstFrame(group) > whole;\n\t\treturn this.#window.end() !== undefined && hooks.groupFirstFrame(group) > 0;\n\t}\n\n\t// Ask a fill for the head of group `key` once, as a fetch from frame 0 would, unless one\n\t// is already out. Returns whether one still owes it; false once it is given up, as with no\n\t// handler to ask, or a fill that ended without a copy from frame 0 (dropped, or closed\n\t// unanswered), which refuses it to this reader as a miss no fill can serve. Mirrors the Rust\n\t// `Cursor::ask_head` and `give_up_heads`.\n\t#askHead(key: bigint): boolean {\n\t\tconst end = key + 1n;\n\t\tif (dropAt(this.#state.refused.peek(), key) || runGaps(this.#givenUp, key, end).length === 0) return false;\n\t\tconst producer = this.#state.producer;\n\t\tif (!producer) return false;\n\t\tconst fills = fillsOf(producer);\n\t\tconst asker = this.#askerOf();\n\t\tif (!fills.covered(key, end, asker).next().done) return true;\n\t\tif (runGaps(this.#heads, key, end).length > 0 && fills.ask(key, end, asker).length > 0) {\n\t\t\tinsertRun(this.#heads, key, end);\n\t\t\treturn true;\n\t\t}\n\t\t// A head the reader found missing belonged to a group that existed.\n\t\tasker.refuse(key, end, new StreamError(StreamCode.NotFound, { message: `group ${key} has no head` }));\n\t\treturn false;\n\t}\n\n\t// Whether a held group waits on the local cap rising: one past it may still be read. A\n\t// group outside the window alone never holds a finished track open.\n\t#parked(groups: readonly GroupConsumer[]): boolean {\n\t\tconst cap = this.#local.end;\n\t\treturn cap !== undefined && (groups.at(-1)?.start ?? -1n) >= cap;\n\t}\n\n\t// Whether a held group from `from` on may still start, and so settle a time anchor the window\n\t// waits on, which a reached end does not decide: until it starts or the track closes, as\n\t// {@link Holdings.complete} says, the window may still take it in.\n\t#starting(groups: readonly GroupConsumer[], from = 0n): boolean {\n\t\tif (this.#window.settled || this.#state.closed.peek() !== undefined) return false;\n\t\treturn groups.some((group) => group.start >= from && !hooks.groupStarted(group));\n\t}\n\n\t// Take the group at `index` off the ordered buffer, closing the out-of-range ones below it,\n\t// which sequence order passes for good.\n\t#pass(groups: GroupConsumer[], index: number): void {\n\t\tconst [group] = groups.splice(index, 1);\n\t\tfor (const passed of groups.splice(0, index)) passed.close();\n\t\tthis.#nextKey = group.start + 1n;\n\t\tthis.#judge(group.start, this.#nextKey);\n\t}\n\n\t// Whether this read ends because its bounded window has nothing left to deliver; see\n\t// {@link #drained}. A wire publisher's reader never ends there.\n\t#exhausted(): boolean {\n\t\tif (this.#parks) return false;\n\t\tconst ordered = this.#mode === \"ordered\";\n\t\tif (this.#resume) return this.#resume.exhausted(this.#delivered, ordered);\n\t\treturn this.#drained(ordered);\n\t}\n\n\t// Whether a bounded window has nothing left to deliver: every group in its ranges was handed\n\t// out or is accounted for (see #accounts). Mirrors the Rust `Cursor::is_exhausted`.\n\t#drained(ordered: boolean): boolean {\n\t\tconst end = this.#window.end();\n\t\tif (end === undefined || this.#awaitsTimeAnswer()) return false;\n\t\tconst gaps = this.#window\n\t\t\t.runs(this.#window.floor() ?? 0n, end)\n\t\t\t.flatMap((run) => [...this.#delivered.gaps(run.start, run.end)]);\n\t\treturn this.#accounts(gaps, ordered);\n\t}\n\n\t// Whether this reader accounts for every key of `gaps` it did not hand out itself: each was\n\t// dropped, or never will be, as one skipped as stale, one below where the feed started, or a\n\t// hole the feed no longer owes, or lies outside its window, which it never reads. An open\n\t// window, or one with a fill still out, accounts for nothing yet, and a key the local floor or\n\t// cap keeps out stays owed, since the reader may move them again, until the track proves it\n\t// gone: one the feed no longer owes and nothing proves is asked of a fill (see #askKeptOut).\n\t// A local producer may still create any group it did not skip, so only an `ordered` read,\n\t// which hands out the group it created above a hole before any created later below, passes\n\t// that hole. Mirrors the Rust `Cursor::accounts`.\n\t#accounts(gaps: readonly Run[], ordered: boolean): boolean {\n\t\tconst end = this.#window.end();\n\t\tif (end === undefined) return false;\n\t\t// A fill still owes a group it reads.\n\t\tif (this.#askFills(this.#window.floor() ?? 0n, end) !== undefined) return false;\n\t\tconst held = this.#state.groups.peek();\n\t\tconst cursor = this.#cursor.peek();\n\t\tconst producer = this.#state.producer;\n\t\tconst received = max(this.#state.received.peek(), ((producer && fillEdge(producer)) ?? -1n) + 1n);\n\t\tconst scoped = producer ? scopedDrops(producer) : [];\n\t\tconst local = producer !== undefined && !wireFed(producer);\n\t\t// A received stale run that does not settle this reader is unknown to it (see `settles`):\n\t\t// the reader still wants those groups, however the feed accounted for them.\n\t\tconst drift = this.#drift();\n\t\tconst budget = drift.budget;\n\t\tconst coverage = this.#coverage();\n\t\tconst { drops: all } = this.#state;\n\t\tconst refusalFeed = this.#refusalFeed();\n\t\tconst unproven: Run[] = [];\n\t\tconst lacking = gaps\n\t\t\t.flatMap((gap) => this.#window.runs(gap.start, min(gap.end, end)))\n\t\t\t.flatMap((gap) => [...this.#delivered.gaps(gap.start, gap.end)]);\n\t\tfor (const gap of lacking) {\n\t\t\tif (refusalFeed && this.#ageRefusals(refusalFeed, gap.start, gap.end, drift)) return false;\n\t\t\t// Each run judged from where it meets the gap, as the reader would read it.\n\t\t\tconst own = this.#confirmedRefusals(gap.start, gap.end, refusalFeed);\n\t\t\tconst overlapping = givenUp(all, own, gap.start, gap.end, (run) => settles(run, budget, coverage)).map(\n\t\t\t\t(run) => ({\n\t\t\t\t\t...run,\n\t\t\t\t\tstart: max(run.start, gap.start),\n\t\t\t\t\tend: min(run.end, gap.end),\n\t\t\t\t}),\n\t\t\t);\n\t\t\tconst drops = overlapping.filter((run) => settles(run, budget, coverage));\n\t\t\tconst unknown = overlapping.filter((run) => !settles(run, budget, coverage));\n\t\t\t// A miss this reader gave up on is never wanted again.\n\t\t\tconst opens = runGaps(drops, gap.start, gap.end)\n\t\t\t\t.flatMap((run) => runGaps(this.#givenUp, run.start, run.end))\n\t\t\t\t.flatMap((run) => (producer ? outsideSpans(producer, run.start, run.end) : [run]));\n\t\t\tfor (const open of opens) {\n\t\t\t\tif (unknown.some((run) => run.start < open.end && open.start < run.end)) return false;\n\t\t\t\t// Cached under the local floor, which lowering offers again, unless a key-order read\n\t\t\t\t// already passed it: an ordered take let go of it, so it is not held.\n\t\t\t\tconst under = { start: max(open.start, this.#nextKey), end: min(open.end, cursor.start) };\n\t\t\t\tif (producer && under.start < under.end && cachedIn(producer, under.start, under.end).length > 0)\n\t\t\t\t\treturn false;\n\t\t\t\t// Not received yet, so it may still arrive.\n\t\t\t\tif (open.end > received && runGaps(scoped, max(open.start, received), open.end).length) return false;\n\t\t\t\t// Held, so a read still hands it out, skips it, or waits for the cap to rise.\n\t\t\t\tconst index = lowerBound(held, open.start);\n\t\t\t\tif (held[index] && held[index].start < open.end) return false;\n\t\t\t\tconst owed = producer && owedGroup(producer, open.start, open.end);\n\t\t\t\tif (owed) {\n\t\t\t\t\tif (owed.folds !== undefined) this.#wakeAt(owed.folds.since(Instant.ZERO).asNanos());\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\t// A local producer may still create a key this reader reads.\n\t\t\t\tconst read = { start: max(open.start, cursor.start), end: min(open.end, cursor.end ?? UNBOUNDED) };\n\t\t\t\tif (local && !ordered && read.start < read.end) return false;\n\t\t\t\t// One the cursor keeps out is unknown to it once the feed no longer waits for it,\n\t\t\t\t// however the track came to forget it.\n\t\t\t\tfor (const out of runGaps([read], open.start, open.end)) {\n\t\t\t\t\t// A local producer's ledger may still wait for it, as a wire feed's owes it above.\n\t\t\t\t\tfor (const awaited of local && producer ? awaitedRuns(producer, out.start, out.end) : []) {\n\t\t\t\t\t\tif (awaited.folds !== undefined) this.#wakeAt(awaited.folds.since(Instant.ZERO).asNanos());\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t\tinsertRun(unproven, out.start, out.end);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn this.#askKeptOut(unproven);\n\t}\n\n\t// Whether nothing of `unproven`, the kept-out keys #accounts found nothing to prove, is still\n\t// owed. The rest is asked of a fill once, as for any key the cache cannot answer: its upstream's\n\t// skip accounts for it, and a group it brings stays owed, held. One no fill takes, or that a\n\t// fill refused or ended without proving, is given up, as a read under a lowered floor or raised\n\t// cap would give it up. A key the track proved and later forgot, as its expiry window does, is\n\t// asked again. Mirrors the Rust `Cursor::ask_kept_out`.\n\t#askKeptOut(unproven: Run[]): boolean {\n\t\tif (unproven.length === 0 && !this.#keptOut) return true;\n\t\tthis.#keptOut ??= this.#keptOutOf();\n\t\treturn this.#askUnproven(this.#keptOut, unproven).length === 0;\n\t}\n\n\t// Ask `kept`'s fills for the keys of `unproven` it has not asked yet, withdrawing what it no\n\t// longer wants, and return the keys still out: the rest is given up.\n\t#askUnproven(kept: KeptOut, unproven: Run[]): Run[] {\n\t\tconst producer = this.#state.producer;\n\t\tif (!producer) return [];\n\t\tconst fills = fillsOf(producer);\n\t\tconst drift = this.#drift();\n\t\t// A wider budget asks again what a narrower one gave up as stale.\n\t\tconst stale = kept.stale.length;\n\t\tkept.stale = kept.stale.filter((run) =>\n\t\t\tdrift.budget.runs(run.start, run.end).every(([, budget]) => budget <= run.budget),\n\t\t);\n\t\t// What was proved since leaves what was asked, so a key forgotten again asks afresh.\n\t\tconst moved =\n\t\t\tstale !== kept.stale.length ||\n\t\t\tunproven.length !== kept.unproven.length ||\n\t\t\tunproven.some((run, i) => run.start !== kept.unproven[i].start || run.end !== kept.unproven[i].end);\n\t\tkept.asked = unproven.flatMap((run) => intersect(kept.asked, run.start, run.end));\n\t\tkept.unproven = unproven;\n\t\t// A fill nobody wants any more is withdrawn.\n\t\tif (moved) fills.moved(kept.asker);\n\t\t// A stretch under one budget, cut below each group the cache let go of, whose newest group is\n\t\t// stale under it is given up whole: unasked, or withdrawn from the fill still out for it, as\n\t\t// `#askFills` gives up an owed run.\n\t\tconst giveUp = (run: Run, budget: number) => {\n\t\t\tkept.asked = removeRun(kept.asked, run.start, run.end);\n\t\t\tinsertStale(kept.stale, run.start, run.end, budget);\n\t\t\tfills.moved(kept.asker, run.start, run.end);\n\t\t};\n\t\tfor (const run of unproven) {\n\t\t\tfor (const gap of runGaps(keptDone(kept), run.start, run.end)) {\n\t\t\t\tfor (const [stretch, budget] of drift.budget.runs(gap.start, gap.end)) {\n\t\t\t\t\tfor (const part of this.#splitRun(stretch.start, stretch.end, drift)) {\n\t\t\t\t\t\tif (this.#driftedAt(part.end - 1n, drift, true)) {\n\t\t\t\t\t\t\tgiveUp(part, budget);\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfor (const asked of fills.ask(part.start, part.end, kept.asker))\n\t\t\t\t\t\t\tinsertRun(kept.asked, asked.start, asked.end);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tconst out: Run[] = [];\n\t\tfor (const run of unproven) {\n\t\t\tfor (const covered of [...fills.covered(run.start, run.end, kept.asker)]) {\n\t\t\t\tfor (const [stretch, budget] of drift.budget.runs(covered.start, covered.end)) {\n\t\t\t\t\tfor (const part of this.#splitRun(stretch.start, stretch.end, drift)) {\n\t\t\t\t\t\tif (this.#driftedAt(part.end - 1n, drift, true)) giveUp(part, budget);\n\t\t\t\t\t\telse insertRun(out, part.start, part.end);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn out;\n\t}\n\n\t// The end of this read: nothing reads the kept-out keys now, so their fills are withdrawn, and a\n\t// read polled again asks anew. Mirrors the Rust cursor dropping `kept_out` as its feed ends.\n\t#done(): Recv {\n\t\tthis.#withdraw(this.#keptOut);\n\t\treturn { kind: \"done\" };\n\t}\n\n\t// Let go of the kept-out keys asked about, withdrawing the fills nobody else waits on, once what\n\t// this reader reads moved: what is still owed is found and asked again once the read would\n\t// otherwise end, and a window no longer bounded owes none. Mirrors the Rust\n\t// `Cursor::let_go_kept_out`.\n\t#letGoKeptOut(): void {\n\t\tthis.#withdraw(this.#keptOut);\n\t\tthis.#withdraw(this.#routedOut);\n\t}\n\n\t// Forget what `kept` asked about, withdrawing the fills nobody else waits on.\n\t#withdraw(kept: KeptOut | undefined): void {\n\t\tconst producer = this.#state.producer;\n\t\tif (!kept || !producer) return;\n\t\tkept.unproven = [];\n\t\tkept.asked = [];\n\t\tkept.stale = [];\n\t\tfillsOf(producer).moved(kept.asker);\n\t}\n\n\t// The parts of `runs` the cache holds nothing for and the feed no longer waits for, waking this\n\t// reader when the next gap it waits for folds: what a fill may be asked, as the Rust\n\t// `Misses::judge` asks a miss.\n\t#unfed(producer: Producer, runs: readonly Run[]): Run[] {\n\t\tconst unfed: Run[] = [];\n\t\tfor (const run of runs) {\n\t\t\tconst fed: Run[] = cachedIn(producer, run.start, run.end).map((key) => ({ start: key, end: key + 1n }));\n\t\t\tfor (const awaited of awaitedRuns(producer, run.start, run.end)) {\n\t\t\t\tif (awaited.folds !== undefined) this.#wakeAt(awaited.folds.since(Instant.ZERO).asNanos());\n\t\t\t\tinsertRun(fed, awaited.start, awaited.end);\n\t\t\t}\n\t\t\tfor (const gap of runGaps(fed, run.start, run.end)) insertRun(unfed, gap.start, gap.end);\n\t\t}\n\t\treturn unfed;\n\t}\n\n\t// A `KeptOut` whose asker wants only the keys it was asked about last that it has not given up\n\t// as stale, and whose refusal wakes the read to give them up.\n\t#keptOutOf(): KeptOut {\n\t\tconst main = this.#askerOf();\n\t\tconst kept: KeptOut = {\n\t\t\tasker: {\n\t\t\t\twants: (start, end) =>\n\t\t\t\t\tintersect(kept.unproven, start, end).flatMap((run) => runGaps(kept.stale, run.start, run.end)),\n\t\t\t\tpriority: () => main.priority(),\n\t\t\t\torder: () => main.order(),\n\t\t\t\trefuse: () => this.#fillMoves.update((moves) => moves + 1),\n\t\t\t},\n\t\t\tunproven: [],\n\t\t\tasked: [],\n\t\t\tstale: [],\n\t\t};\n\t\tthis.#state.keptOut.push(kept.asker);\n\t\treturn kept;\n\t}\n\n\tstatic {\n\t\tmakeSubscriber = (name, state) => new Subscriber(name, state);\n\t\thooks.subscriberEnd = (subscriber) =>\n\t\t\tsubscriber.#resume ? subscriber.#resume.end() : subscriber.#state.end.peek()?.at;\n\t\thooks.subscriberHoldings = (subscriber) => subscriber.#holdings();\n\t\thooks.askSubscriber = (subscriber, ask) => {\n\t\t\tif (subscriber.#resume) subscriber.#resume.ask(ask);\n\t\t\telse if (subscriber.#state.producer) hooks.askProducer(subscriber.#state.producer, ask);\n\t\t};\n\t\thooks.skippedBelow = (subscriber, key) =>\n\t\t\tsubscriber.#resume ? subscriber.#resume.skippedBelow(key) : skippedBelow(subscriber.#state, key);\n\t\thooks.knowsEdge = (subscriber) => {\n\t\t\tif (subscriber.#resume) return subscriber.#resume.knowsEdge();\n\t\t\tconst producer = subscriber.#state.producer;\n\t\t\treturn !producer || knowsEdge(producer);\n\t\t};\n\t\thooks.sourceStart = (subscriber) => {\n\t\t\tif (subscriber.#resume) return subscriber.#resume.start();\n\t\t\t// A live join still pending reads every group, so a fill asked below would claim\n\t\t\t// the history it never names. Mirrors the Rust `cursor.sync()` in `poll_start`.\n\t\t\tsubscriber.#settle();\n\t\t\t// A live join still waiting to be placed has no start yet, and a start answered before it\n\t\t\t// names none for it for good. A closed track places it at once, as nothing more arrives.\n\t\t\t// Mirrors the Rust `poll_start`.\n\t\t\tif (subscriber.#window.reaching && subscriber.#state.closed.peek() === undefined) return \"pending\";\n\t\t\tconst producer = subscriber.#state.producer;\n\t\t\tconst start = producer && sourceStart(producer);\n\t\t\tif (start === \"pending\") return start;\n\t\t\tconst floor = start === undefined ? undefined : max(start, subscriber.#cursor.peek().start);\n\t\t\t// The lowest group a fill brings this reader starts it too, as the Rust `poll_start`\n\t\t\t// has it: a group arriving first must not give up the history being filled below it.\n\t\t\tconst filling = subscriber.#filling();\n\t\t\tif (filling === undefined) return floor;\n\t\t\treturn floor === undefined ? filling : min(floor, filling);\n\t\t};\n\t\thooks.placesAsUpstream = (subscriber) => {\n\t\t\tif (subscriber.#resume) return subscriber.#resume.placesAsUpstream();\n\t\t\tconst producer = subscriber.#state.producer;\n\t\t\treturn producer !== undefined && receivedCopy(producer) && !subscriber.#state.dropsAnchors.peek();\n\t\t};\n\t\thooks.tryRecvGroup = (subscriber, dispositions) => subscriber.#tryRecvGroup(dispositions);\n\t\thooks.parked = (subscriber) => {\n\t\t\tsubscriber.#parks = true;\n\t\t\treturn subscriber;\n\t\t};\n\t\thooks.fetches = (subscriber, fetches) => {\n\t\t\t// Judged as it registers, as the Rust `Subscription::history` is: a fetch marked again\n\t\t\t// changed, which counts it in the demand.\n\t\t\tconst registers = subscriber.#wireFetch === undefined;\n\t\t\tsubscriber.#wireFetch = fetches;\n\t\t\tconst producer = subscriber.#state.producer;\n\t\t\tif (producer && !subscriber.#resume) apart(producer, subscriber.#state, registers && fetches);\n\t\t};\n\t\thooks.wholeGroups = (subscriber, frameOf) => {\n\t\t\tsubscriber.#whole = frameOf;\n\t\t\tsubscriber.#resume?.wholeGroups(frameOf);\n\t\t\treturn subscriber;\n\t\t};\n\t\t// A route copy judged for the logical reader that handed out `delivered`: what the copy\n\t\t// handed out itself counts too. A copy that is itself a front judges across its own copies.\n\t\thooks.accountsFor = (subscriber, delivered, gaps, ordered) => {\n\t\t\tif (!subscriber.#resume) return subscriber.#accounts(gaps, ordered);\n\t\t\tconst own = subscriber.#delivered;\n\t\t\tconst left = gaps.flatMap((gap) => [...own.gaps(gap.start, gap.end)]);\n\t\t\treturn subscriber.#resume.accounts(own.union(delivered), left, ordered);\n\t\t};\n\t\thooks.skippedIn = (subscriber, start, end) =>\n\t\t\tsubscriber.#resume?.skippedIn(start, end) ??\n\t\t\tsubscriber.#state.drops\n\t\t\t\t.overlapping(start, end)\n\t\t\t\t.filter((run) => run.reason === \"skip\")\n\t\t\t\t.map((run) => ({ start: max(run.start, start), end: min(run.end, end) }));\n\t\thooks.tryDrop = (subscriber) => subscriber.#tryDrop();\n\t\thooks.fillRuns = (subscriber) =>\n\t\t\tsubscriber.#asked.length +\n\t\t\tsubscriber.#givenUp.length +\n\t\t\tsubscriber.#heads.length +\n\t\t\tsubscriber.#adopted.length;\n\t\thooks.fillFloorSteps = (subscriber) => subscriber.#passed?.steps.length ?? 0;\n\t\thooks.fillFloor = (subscriber) => {\n\t\t\tconst drift = subscriber.#drift();\n\t\t\tconst read = max(subscriber.#cursor.peek().start, subscriber.#nextKey);\n\t\t\tconst walked = subscriber.#pastBudget(drift, read).passed;\n\t\t\tconst delivered = subscriber.#delivered;\n\t\t\tconst edge = drift.presentation;\n\t\t\tlet live = max(delivered.runEnd(0n) ?? 0n, read);\n\t\t\tif (edge !== undefined) {\n\t\t\t\tfor (; live < edge.key; live++) {\n\t\t\t\t\tif (delivered.has(live) || !subscriber.#judges(live, drift.scope)) continue;\n\t\t\t\t\tconst reach = subscriber.#reach(live, drift.end, drift.scope);\n\t\t\t\t\tif (reach === undefined || edge.at - reach < drift.budget.widest()) break;\n\t\t\t\t}\n\t\t\t\twhile (delivered.has(live)) live++;\n\t\t\t}\n\t\t\tconst unstarted = subscriber.#state.timeline.some(\n\t\t\t\t(group) => !hooks.groupFailed(group) && !hooks.groupStarted(group),\n\t\t\t);\n\t\t\treturn { walked, live, unstarted };\n\t\t};\n\t\t// Mirrors the Rust `Subscriber::ask_unproven`: a copy that is another front's logical track\n\t\t// asks its serving copy the same way, one level per nesting.\n\t\thooks.askUnproven = (subscriber, unproven) => {\n\t\t\tif (subscriber.#resume) return subscriber.#resume.askUnproven(unproven);\n\t\t\tconst producer = subscriber.#state.producer;\n\t\t\tif (!producer) return [];\n\t\t\tsubscriber.#routedOut ??= subscriber.#keptOutOf();\n\t\t\tconst unfed = subscriber.#unfed(producer, unproven);\n\t\t\tconst out = subscriber.#askUnproven(subscriber.#routedOut, unfed);\n\t\t\treturn unfed.flatMap((run) => runGaps(out, run.start, run.end));\n\t\t};\n\t\t// A reader following route copies leaves its ranges to the serving copy, which resolves\n\t\t// their anchors against the groups it holds, then narrows them to its own local bounds.\n\t\thooks.gapHeld = (subscriber, at, end) => subscriber.#gapHeld(at, end);\n\t\thooks.servingRuns = (subscriber, start, end) => {\n\t\t\tconst cursor = subscriber.#cursor.peek();\n\t\t\tconst from = max(start, cursor.start);\n\t\t\tconst to = min(end, cursor.end ?? end);\n\t\t\treturn subscriber.#resume?.runs(from, to) ?? subscriber.#window.runs(from, to);\n\t\t};\n\t\thooks.servingEnd = (subscriber) => {\n\t\t\tconst cursor = subscriber.#cursor.peek();\n\t\t\tif (!subscriber.#resume) return subscriber.#window.end() === undefined ? undefined : cursor.end;\n\t\t\tconst end = subscriber.#resume.servingEnd();\n\t\t\treturn end === undefined ? undefined : min(end, cursor.end ?? end);\n\t\t};\n\t\thooks.joinStart = (subscriber, placed, budget, vouch) => subscriber.#joinStart(placed, budget, vouch);\n\t\thooks.freshStart = (subscriber, placed, budget, cap) => subscriber.#freshStart(placed, budget, cap);\n\t\thooks.nextSettledDrop = (subscriber, start, end) => subscriber.#nextSettledDrop(start, end);\n\t\thooks.servingStarts = (subscriber, from) => {\n\t\t\tconst resumed = subscriber.#resume?.starts(from);\n\t\t\tif (resumed) return resumed;\n\t\t\tsubscriber.#settle();\n\t\t\treturn subscriber.#window.starts(from);\n\t\t};\n\t\thooks.servingResolved = (subscriber) => {\n\t\t\tif (subscriber.#resume) return subscriber.#resume.resolved();\n\t\t\tsubscriber.#settle();\n\t\t\treturn subscriber.#window.resolved();\n\t\t};\n\t\thooks.servingResolvedKeys = (subscriber, keys) => {\n\t\t\tif (keys.length === 0) return [];\n\t\t\tconst resumed = subscriber.#resume?.resolved();\n\t\t\tif (resumed) {\n\t\t\t\t// A reader following route copies resolves its ranges by position, in key order, so\n\t\t\t\t// they are built and walked once for every key asked.\n\t\t\t\tconst at = new Map<bigint, number>();\n\t\t\t\tlet index = 0;\n\t\t\t\tfor (const [held] of subscriber.#state.update.entries()) at.set(held, index++);\n\t\t\t\treturn keys.map((key) => {\n\t\t\t\t\tconst index = at.get(key);\n\t\t\t\t\treturn index === undefined ? undefined : resumed[index];\n\t\t\t\t});\n\t\t\t}\n\t\t\tsubscriber.#settle();\n\t\t\treturn keys.map((key) => subscriber.#window.resolvedKey(key));\n\t\t};\n\t\thooks.servingCovering = (subscriber, key) => {\n\t\t\tconst resumed = subscriber.#resume?.covering(key);\n\t\t\tif (resumed) {\n\t\t\t\t// A reader following route copies keys its ranges by position, in key order.\n\t\t\t\tconst keys = [...subscriber.#state.update.entries()].map(([held]) => held);\n\t\t\t\treturn resumed.flatMap(([index, budget]) => {\n\t\t\t\t\tconst held = keys[Number(index)];\n\t\t\t\t\treturn held === undefined ? [] : [[held, budget] as [bigint, number]];\n\t\t\t\t});\n\t\t\t}\n\t\t\tsubscriber.#settle();\n\t\t\treturn subscriber.#window.covering(key);\n\t\t};\n\t\thooks.editSubscriber = (subscriber, edit) => subscriber.#edit(edit);\n\t\thooks.restateSubscriber = (subscriber, subscription) => subscriber.#update(subscription, false);\n\t\thooks.stampSubscriber = (subscriber, since) => subscriber.#stamp(since);\n\t\thooks.preferences = (subscriber) => subscriber.#state.update;\n\t\thooks.resolveRanges = (subscriber, subscription) => {\n\t\t\t// A preview never takes an answer recorded before it: the live edge has moved since.\n\t\t\tconst tick = joinTick();\n\t\t\tconst ranges = (subscription.ranges ?? [{}]).map((range, index) => [BigInt(index), range] as const);\n\t\t\tconst joining = (key: bigint): Joining => {\n\t\t\t\tconst at = subscription.placed?.get(Number(key));\n\t\t\t\treturn at === undefined ? { since: tick } : { at };\n\t\t\t};\n\t\t\treturn Window.keyed(ranges, subscriber.#latestGroup(), subscriber.#holdings(), joining).resolved();\n\t\t};\n\t\thooks.tryNextGroup = (subscriber, floor, admit) => {\n\t\t\tsubscriber.#raiseNext(floor);\n\t\t\treturn subscriber.#tryNextGroup(admit);\n\t\t};\n\t\thooks.peekGroup = (subscriber, ordered, floor) => {\n\t\t\tif (ordered) subscriber.#raiseNext(floor);\n\t\t\treturn subscriber.#peekGroup(ordered);\n\t\t};\n\t\thooks.forgetPastBudget = (subscriber, delivered, terms, keep) => {\n\t\t\tif (subscriber.#resume) subscriber.#resume.forgetPast(delivered, terms, keep);\n\t\t\telse subscriber.#forgetPastBudget(delivered, terms, keep);\n\t\t};\n\t\thooks.keyAfter = (subscriber, key) => subscriber.#keyAfter(key);\n\t\thooks.refused = (subscriber) => subscriber.#settle() ?? subscriber.#resume?.refused();\n\t\thooks.lowestBuffered = (subscriber, delivered, fresh) =>\n\t\t\tsubscriber.#resume\n\t\t\t\t? subscriber.#resume.lowestBuffered(delivered, fresh)\n\t\t\t\t: subscriber.#lowestBuffered(delivered, fresh);\n\t\thooks.fold = (subscriber, at) => subscriber.#fold(at);\n\t\thooks.untell = (subscriber, start, end) => {\n\t\t\tif (start >= end) return;\n\t\t\tsubscriber.#reported.set(start, end);\n\t\t\t// A copy that is itself a front has copies of its own that reported it.\n\t\t\tsubscriber.#resume?.untell(start, end);\n\t\t};\n\t\thooks.wire = (subscriber) => subscriber.#wireRecord();\n\t\thooks.deliveredRuns = (subscriber) => subscriber.#delivered.runs;\n\t\thooks.reportedRuns = (subscriber) => subscriber.#reported.size;\n\t\thooks.settleIfDropping = (subscriber, key) => {\n\t\t\tif (subscriber.#resume !== undefined ? subscriber.#resumeDropping : subscriber.#dropsSeen !== undefined) {\n\t\t\t\tsubscriber.#settled(key, key + 1n);\n\t\t\t}\n\t\t};\n\t\thooks.handedOut = (subscriber, key) => subscriber.#delivered.has(key);\n\t\thooks.taking = (subscriber) => {\n\t\t\t// One staleness verdict for the whole walk, as the Rust `Subscriber::taking` takes.\n\t\t\tconst drift = subscriber.#resume ? undefined : subscriber.#drift();\n\t\t\treturn (key) => {\n\t\t\t\tif (drift) {\n\t\t\t\t\tif (key < subscriber.#nextKey) return false;\n\t\t\t\t\t// Stale under the current budget, it is skipped when reached or already was, which\n\t\t\t\t\t// stays so after the groups that convicted it leave: only a wider budget offers it\n\t\t\t\t\t// again, and at the track's max age bound none does.\n\t\t\t\t\tconst judged = subscriber.#skipped.get(key);\n\t\t\t\t\tif (judged !== undefined && judged >= drift.budget.at(key)) return false;\n\t\t\t\t\tif (subscriber.#staleAt(key, drift)) return false;\n\t\t\t\t}\n\t\t\t\treturn subscriber.#nextInRange(key) === key && !subscriber.#delivered.has(key);\n\t\t\t};\n\t\t};\n\t\t// A front's subscriber buffers nothing itself: its copies hold the groups.\n\t\thooks.hasUnreadGroup = (subscriber, start, end, delivered) =>\n\t\t\tsubscriber.#resume\n\t\t\t\t? subscriber.#resume.hasUnreadGroup(start, end, delivered)\n\t\t\t\t: subscriber.#state.groups\n\t\t\t\t\t\t.peek()\n\t\t\t\t\t\t.some(\n\t\t\t\t\t\t\t(group) =>\n\t\t\t\t\t\t\t\tgroup.start >= start &&\n\t\t\t\t\t\t\t\t(end === undefined || group.start < end) &&\n\t\t\t\t\t\t\t\t!delivered.has(group.start) &&\n\t\t\t\t\t\t\t\t!hooks.groupFailed(group),\n\t\t\t\t\t\t);\n\t\thooks.spent = (subscriber, start, end, delivered) =>\n\t\t\t(subscriber.#state.closed.peek() !== undefined || subscriber.#complete()) &&\n\t\t\t!hooks.hasUnreadGroup(subscriber, start, end, delivered);\n\t\thooks.awaitsFill = (subscriber) => subscriber.#fillWait;\n\t\thooks.staleAt = (subscriber, key, fetched, within) => {\n\t\t\tconst held: Superseded = {};\n\t\t\tlet drift = fetched ? () => subscriber.#driftFetched() : () => subscriber.#drift();\n\t\t\tlet changed = subscriber.#expiryChanged();\n\t\t\tif (within) {\n\t\t\t\t// Judged under the logical reader's budget, as the Rust `Recover::poll_budget` gives it.\n\t\t\t\tdrift = () => {\n\t\t\t\t\tconst own = subscriber.#drift(within.contains, within.end(), { from: within.openFrom() });\n\t\t\t\t\tconst named = within.budget();\n\t\t\t\t\treturn { ...own, budget: named.clamped(own.bound), named };\n\t\t\t\t};\n\t\t\t\tchanged = [...changed, ...within.changed];\n\t\t\t}\n\t\t\treturn {\n\t\t\t\texpired: () => subscriber.#staleAt(key, drift(), true, held),\n\t\t\t\tbudget: () =>\n\t\t\t\t\twithin ? within.budget().at(key) : fetched ? NO_MAX_DELAY : subscriber.#expiryBudget().at(key),\n\t\t\t\taged: (budget) => subscriber.#agedPast(key, drift(), budget, held),\n\t\t\t\tchanged,\n\t\t\t};\n\t\t};\n\t\thooks.cachedGroup = (subscriber, key, from = 0) => {\n\t\t\tif (subscriber.#resume) return subscriber.#resume.cachedGroup(key, from);\n\t\t\tconst producer = subscriber.#state.producer;\n\t\t\treturn producer && cachedMirror(producer, key, from);\n\t\t};\n\t\thooks.cachedTimedId = (subscriber, key, index, timescale) => {\n\t\t\tif (subscriber.#resume) return subscriber.#resume.cachedTimedId(key, index, timescale);\n\t\t\t// The group itself, not a mirror of it: mirroring replays every frame it holds.\n\t\t\tconst producer = subscriber.#state.producer;\n\t\t\tconst group = producer && cachedSource(producer, key);\n\t\t\treturn group && hooks.groupSourceTimedId(group, index, timescale);\n\t\t};\n\t\thooks.judgedGroup = (subscriber, key) => {\n\t\t\tif (subscriber.#resume) return subscriber.#resume.judgedGroup(key);\n\t\t\tconst group = hooks.cachedGroup(subscriber, key);\n\t\t\tif (group) hooks.expireGroup(group, hooks.staleAt(subscriber, key));\n\t\t\treturn group;\n\t\t};\n\t\thooks.landed = (subscriber, start, end) => {\n\t\t\tif (subscriber.#resume) return subscriber.#resume.landed(start, end);\n\t\t\tconst producer = subscriber.#state.producer;\n\t\t\treturn producer && cachedLanded(producer, start, end);\n\t\t};\n\t\thooks.holdsGroup = (subscriber, key, whole) => {\n\t\t\tconst producer = subscriber.#state.producer;\n\t\t\treturn producer !== undefined && cachedHolds(producer, key, whole);\n\t\t};\n\t\thooks.producerHoldsGroup = (producer, key, whole) => cachedHolds(producer, key, whole);\n\t\thooks.holeEnd = (subscriber, key, dropped) =>\n\t\t\tsubscriber.#resume\n\t\t\t\t? subscriber.#resume.holeEnd(key, dropped)\n\t\t\t\t: holeEnd(subscriber.#state.drops, key, dropped);\n\t\thooks.wholeEnd = (subscriber, key) => {\n\t\t\t// A reader following route copies knows what the serving copy holds, as the Rust\n\t\t\t// `Subscriber::span_end` asks it.\n\t\t\tif (subscriber.#resume) return subscriber.#resume.wholeEnd(key);\n\t\t\tconst producer = subscriber.#state.producer;\n\t\t\treturn producer && wholeAt(producer, key);\n\t\t};\n\t\thooks.wholeAround = (subscriber, key) => {\n\t\t\tif (subscriber.#resume) return subscriber.#resume.wholeAround(key);\n\t\t\tconst producer = subscriber.#state.producer;\n\t\t\treturn producer && wholeAround(producer, key);\n\t\t};\n\t\thooks.staleHeld = (subscriber, start, end) => {\n\t\t\tconst held: Run[] = [];\n\t\t\tfor (const run of subscriber.#state.drops.overlapping(start, end)) {\n\t\t\t\tif (run.maxAge !== undefined) insertRun(held, max(run.start, start), min(run.end, end));\n\t\t\t}\n\t\t\treturn held;\n\t\t};\n\t\thooks.trackAborted = (subscriber) => subscriber.#state.aborted;\n\t\thooks.judgedUnder = (subscriber) => {\n\t\t\tconst producer = subscriber.#state.producer;\n\t\t\treturn producer && judgingOf(producer);\n\t\t};\n\t\thooks.givenUp = (subscriber, key) => {\n\t\t\tconst { drops, refused } = subscriber.#state;\n\t\t\tconst drop = drops.at(key);\n\t\t\tconst own =\n\t\t\t\tsubscriber.#unconfirmedRefusal(key, key + 1n) === undefined ? dropAt(refused.peek(), key) : undefined;\n\t\t\t// As in `givenUp`: only a drop that settles the reader hides its own refusal.\n\t\t\tconst wins =\n\t\t\t\tdrop &&\n\t\t\t\t(own === undefined ||\n\t\t\t\t\tsettles({ ...drop, start: key }, subscriber.#drift().budget, subscriber.#coverage()));\n\t\t\treturn {\n\t\t\t\terror: wins ? holeError(drop) : own && holeError(own),\n\t\t\t\tchanged: [\n\t\t\t\t\tdrops.version,\n\t\t\t\t\trefused,\n\t\t\t\t\tsubscriber.#state.end,\n\t\t\t\t\tsubscriber.#state.closed,\n\t\t\t\t\tsubscriber.#state.startChanged,\n\t\t\t\t],\n\t\t\t};\n\t\t};\n\t\thooks.mayLand = (subscriber, land) => {\n\t\t\tif (subscriber.#resume) return subscriber.#resume.mayLand(land);\n\t\t\tconst producer = subscriber.#state.producer;\n\t\t\treturn producer !== undefined && mayLand(producer, land);\n\t\t};\n\t\thooks.owes = (subscriber, start, end) => {\n\t\t\tif (subscriber.#resume) return subscriber.#resume.owes(start, end);\n\t\t\treturn subscriber.#waitOwed(start, end, subscriber.#drift());\n\t\t};\n\t\thooks.provenTrack = (subscriber) => {\n\t\t\tif (subscriber.#resume) return subscriber.#resume.proven();\n\t\t\tconst producer = subscriber.#state.producer;\n\t\t\treturn producer !== undefined && provenOf(producer);\n\t\t};\n\t\thooks.resumeSubscriber = (name, subscription, source) => {\n\t\t\tconst state = new TrackState(subscription ?? Subscription.default());\n\t\t\tconst subscriber = new Subscriber(name, state);\n\t\t\tsubscriber.#resume = source({\n\t\t\t\tsubscription: state.update,\n\t\t\t\tsince: () => Array.from(state.update.entries(), ([key]) => state.update.since(key)),\n\t\t\t\tretuned: () => state.update.retuned,\n\t\t\t\tcursor: subscriber.#cursor,\n\t\t\t\tclosed: state.closed,\n\t\t\t\tinfo: () => state.info.peek(),\n\t\t\t\tcommit: (info) => {\n\t\t\t\t\tif (state.info.peek() === undefined) state.info.set(info);\n\t\t\t\t},\n\t\t\t\tclose: (abort) => {\n\t\t\t\t\tcloseTrackState(state, abort);\n\t\t\t\t},\n\t\t\t});\n\t\t\treturn subscriber;\n\t\t};\n\t\thooks.watchSubscriberError = (subscriber, fn) => {\n\t\t\tif (subscriber.#resume) return subscriber.#resume.watchError(fn);\n\t\t\tconst check = (error: Error | null | undefined) => {\n\t\t\t\tif (error instanceof Error) fn(error);\n\t\t\t};\n\t\t\tconst stop = subscriber.closed.subscribe(check);\n\t\t\tcheck(subscriber.closed.peek());\n\t\t\treturn stop;\n\t\t};\n\t\thooks.latestKey = (subscriber) => (subscriber.#resume ? subscriber.#resume.latest() : subscriber.#state.latest);\n\t\thooks.arrived = (subscriber) => (subscriber.#resume ? 0 : subscriber.#state.arrived);\n\t\thooks.bufferedLargest = (subscriber) => subscriber.#bufferedLargest();\n\t\thooks.deliveryStart = (subscriber, opening) => subscriber.#deliveryStart(opening);\n\t\thooks.lowestHeld = (subscriber, from, below, servable) => subscriber.#lowestHeld(from, below, servable);\n\t\thooks.objectLargest = (subscriber) => {\n\t\t\tif (subscriber.#resume) return subscriber.#resume.objectLargest();\n\t\t\tconst producer = subscriber.#state.producer;\n\t\t\treturn producer && objectLargest(producer);\n\t\t};\n\t\thooks.largestFinished = (subscriber, position) => {\n\t\t\tif (subscriber.#resume) return subscriber.#resume.largestFinished(position);\n\t\t\tconst state = subscriber.#state;\n\t\t\tconst largest = state.largest.peek();\n\t\t\treturn (\n\t\t\t\tstate.largestGroup === \"finished\" &&\n\t\t\t\tlargest?.group === position.group &&\n\t\t\t\tlargest.frame === position.frame\n\t\t\t);\n\t\t};\n\t\thooks.peekLargest = (subscriber) => {\n\t\t\tif (subscriber.#resume) return subscriber.#resume.peekLargest();\n\t\t\tconst state = subscriber.#state;\n\t\t\treturn {\n\t\t\t\tlargest: state.largest.peek(),\n\t\t\t\tended: state.closed.peek() !== undefined || state.largestEnded.peek(),\n\t\t\t};\n\t\t};\n\t\thooks.largestChanged = (subscriber, fn) => {\n\t\t\tconst state = subscriber.#state;\n\t\t\tlet fired = false;\n\t\t\tconst once = () => {\n\t\t\t\tif (fired) return;\n\t\t\t\tdispose();\n\t\t\t\tfn();\n\t\t\t};\n\t\t\tconst disposes = [\n\t\t\t\tstate.largest.changed(once),\n\t\t\t\tstate.largestEnded.changed(once),\n\t\t\t\tstate.closed.changed(once),\n\t\t\t];\n\t\t\tconst dispose = () => {\n\t\t\t\tfired = true;\n\t\t\t\tfor (const close of disposes) close();\n\t\t\t};\n\t\t\treturn dispose;\n\t\t};\n\t\thooks.groupChanged = (subscriber, fn) => subscriber.#groupChanged(fn);\n\t\thooks.askFetch = (subscriber, key) => subscriber.#askFetch(key);\n\t\thooks.asFetch = (subscriber) => {\n\t\t\tsubscriber.#fetch = true;\n\t\t\tsubscriber.#state.fetch = true;\n\t\t\t// Its group resolves by start now; see `#holdings`.\n\t\t\tsubscriber.#resolve();\n\t\t\t// The sink joined as a live subscriber; leave the live aggregate before anyone sees it.\n\t\t\tif (subscriber.#state.producer) unlive(subscriber.#state.producer, subscriber.#state);\n\t\t\tif (subscriber.#state.update.given()) subscriber.#state.update.touch();\n\t\t};\n\t\t// The key cursor lives here (it shares the buffer and the drift anchor with\n\t\t// the arrival cursor); `Ordered` is the handle that reaches it.\n\t\tordered_ = {\n\t\t\tnextGroup: (subscriber) => subscriber.#nextGroup(),\n\t\t\tnextItem: (subscriber) => subscriber.#nextItem(),\n\t\t\ttryItem: (subscriber) => subscriber.#tryItem(),\n\t\t\treadFrame: (subscriber) => subscriber.#readFrame(),\n\t\t};\n\t}\n\n\t// Refuse a read on this handle once `ordered()` has taken the subscription.\n\t#live() {\n\t\tif (this.#mode === \"ordered\") throw new Error(\"track is read in sequence order; use the Ordered handle\");\n\t}\n\n\t/**\n\t * Resolve this track's immutable publisher properties.\n\t *\n\t * Resolves once the wire layer commits the properties it received (TRACK_INFO on\n\t * lite-05+, SUBSCRIBE_OK on moq-transport) or an untimed default (older lite drafts),\n\t * so awaiting it never yields a placeholder. Rejects if\n\t * the track is closed before the properties are known (e.g. a rejected subscription).\n\t */\n\tinfo(): Promise<Info> {\n\t\treturn resolveInfo(this.#state);\n\t}\n\n\t/** Settles once the track closes; see {@link Producer.closed}. */\n\tget closed(): GetPromise<Error | null> {\n\t\treturn this.#state.closed;\n\t}\n\n\t/** This subscriber's current options, including defaults and the last {@link update}. */\n\tget subscription(): Getter<Subscription | undefined> {\n\t\treturn this.#state.update;\n\t}\n\n\t/**\n\t * Resolve with the track's exclusive end once it is known, mirroring the Rust `finished`.\n\t *\n\t * Resolves as soon as the end is declared, which may be ahead of the live edge, so it\n\t * says nothing about every group having arrived: read until the cursor returns\n\t * `undefined` for that. Rejects with the abort, or if the track closes without an end.\n\t */\n\tasync finished(): Promise<Position> {\n\t\tif (this.#resume) return this.#resume.finished();\n\t\tfor (;;) {\n\t\t\tconst end = this.#state.end.peek()?.at;\n\t\t\tif (end !== undefined) return end;\n\n\t\t\tconst closed = this.#state.closed.peek();\n\t\t\tif (closed instanceof Error) throw closed;\n\t\t\tif (closed !== undefined) throw new Error(\"track closed before its end was known\");\n\n\t\t\tawait Signal.race(this.#state.end, this.#state.closed);\n\t\t}\n\t}\n\n\t/**\n\t * The lowest group this subscriber's ranges name, as resolved here: undefined while one reaches back to the oldest group still around, or a\n\t * live join still waits on the first group from the live feed.\n\t *\n\t * Where a reader that waits on each group in key starts, rather than at whatever arrives\n\t * first, which newest-first delivery makes the latest. Mirrors the Rust `Subscriber::floor`.\n\t */\n\tfloor(): bigint | undefined {\n\t\tlet start: bigint | undefined;\n\t\tif (this.#resume) {\n\t\t\tfor (const range of this.#resume.resolved()) {\n\t\t\t\tif (!range?.floored) return undefined;\n\t\t\t\tstart = start === undefined ? range.start : min(start, range.start);\n\t\t\t}\n\t\t} else {\n\t\t\tthis.#settle();\n\t\t\tstart = this.#window.start();\n\t\t}\n\t\treturn start === undefined ? undefined : max(start, this.#local.start);\n\t}\n\n\t/**\n\t * The lowest group at or above `from` this subscriber's ranges\n\t * cover, past the starts the publisher declared skipped (see {@link Producer.appendGroup}) and\n\t * those given up for good, undefined when none does: the groups between are never read, so a\n\t * reader waiting on each group in key need not wait for them. A wire before lite-07 forwards\n\t * a skip as such a drop. `from` itself while a live join waits on the first group, which\n\t * can't say yet. Mirrors the Rust `Subscriber::next_in_range`.\n\t */\n\t#nextInRange(from: bigint): bigint | undefined {\n\t\tfrom = max(from, this.#local.start);\n\t\tif (this.#resume) {\n\t\t\tconst resume = this.#resume;\n\t\t\treturn firstOpen(resume.runs(from, UNBOUNDED), (key) => resume.holeEnd(key, true));\n\t\t}\n\t\tthis.#settle();\n\t\tconst drops = this.#state.drops;\n\t\treturn firstOpen(this.#window.runs(from), (key) => holeEnd(drops, key, true));\n\t}\n\n\t/**\n\t * Whether the publisher declared every start in `[start, end)` skipped, never to be produced,\n\t * so no group can arrive there; see {@link Ordered.isSkipped}. Mirrors the Rust\n\t * `Subscriber::is_skipped`.\n\t */\n\tisSkipped(start: bigint, end: bigint): boolean {\n\t\tif (end <= start) return true;\n\t\tconst run = [{ start, end }];\n\t\tif (this.#resume) {\n\t\t\tconst resume = this.#resume;\n\t\t\treturn firstOpen(run, (key) => resume.holeEnd(key, false)) === undefined;\n\t\t}\n\t\tconst drops = this.#state.drops;\n\t\treturn firstOpen(run, (key) => holeEnd(drops, key, false)) === undefined;\n\t}\n\n\t/**\n\t * The largest location: the current one at first, then each newer\n\t * one (skipping any in between), and `undefined` once the track ends.\n\t *\n\t * The largest is the track's newest group at the newest frame (0 while empty), as\n\t * the publisher reported it and its feed delivered since, so it can name a frame before its\n\t * group arrives. A largest past the cap or below the floor reports nothing: the cache does not\n\t * stand in for it, so a cap moved below the largest stays pending. Moving the bounds wakes a\n\t * pending read, which reports the largest once it is within them and newer than the last report.\n\t */\n\tasync largest(): Promise<Position | undefined> {\n\t\tif (this.#largestDone) return undefined;\n\t\tif (this.#resume) {\n\t\t\tconst largest = await this.#resume.largest(this.#largestSeen);\n\t\t\tif (largest) this.#largestSeen = largest;\n\t\t\telse this.#largestDone = true;\n\t\t\treturn largest;\n\t\t}\n\t\tfor (;;) {\n\t\t\tconst { start, end } = this.#cursor.peek();\n\t\t\tconst largest = this.#state.largest.peek();\n\t\t\tconst within =\n\t\t\t\tlargest && largest.group >= start && (end === undefined || largest.group < end) ? largest : undefined;\n\t\t\tconst seen = this.#largestSeen;\n\t\t\tif (within && (!seen || after(within, seen))) {\n\t\t\t\tthis.#largestSeen = within;\n\t\t\t\treturn within;\n\t\t\t}\n\t\t\tif (this.#state.closed.peek() !== undefined || this.#state.largestEnded.peek()) {\n\t\t\t\tthis.#largestDone = true;\n\t\t\t\treturn undefined;\n\t\t\t}\n\t\t\tawait Signal.race(this.#state.largest, this.#state.closed, this.#state.largestEnded, this.#cursor);\n\t\t}\n\t}\n\n\t// Where delivery starts once `first` goes out first: the lowest group below it this read holds\n\t// unread and serves, or no higher than `source`, where the source's feed starts, passing every\n\t// group from there that was given up or is held and can't be served. Never above `first`. A\n\t// newest-first read has yet to deliver what it holds below the first out, and a newer group's\n\t// stream can beat where the source's feed starts. Mirrors the Rust\n\t// `track::Subscriber::delivery_start`.\n\t#deliveryStart({ first, source, givenUp }: Opening): bigint {\n\t\tconst lowest = this.#lowestHeld(0n, first, true)?.key ?? first;\n\t\tlet start = source === undefined ? lowest : min(source, lowest);\n\t\t// This stops at the lowest servable group at the latest. Adjacent runs given up with\n\t\t// different errors stay separate, so walk them all.\n\t\twhile (start < first) {\n\t\t\tconst held = this.#lowestHeld(start, start + 1n, false);\n\t\t\tconst end = givenUp.at(start)?.end ?? (held?.servable === false ? start + 1n : undefined);\n\t\t\tif (end === undefined) break;\n\t\t\tstart = min(end, first);\n\t\t}\n\t\treturn start;\n\t}\n\n\t// The lowest group at or above `from` and below `below` this read holds unread in its window,\n\t// only one whole from the frame asked when `servable`, and whether it is, on any copy it reads.\n\t// Mirrors the Rust `track::Subscriber::lowest_unread` and the publisher's `servable`.\n\t#lowestHeld(from: bigint, below: bigint, servable: boolean): Held | undefined {\n\t\tif (this.#resume) return this.#resume.lowestHeld(from, below, servable);\n\t\tconst groups = this.#state.groups.peek();\n\t\tfor (let index = lowerBound(groups, max(from, this.#cursor.peek().start)); index < groups.length; index++) {\n\t\t\tconst group = groups[index];\n\t\t\tif (group.start >= below) return undefined;\n\t\t\tif (!this.#window.contains(group.start) || this.#delivered.has(group.start)) continue;\n\t\t\tconst whole = !this.#lacksHead(group) || this.#fetchesHead(group.start);\n\t\t\tif (whole || !servable) return { key: group.start, servable: whole };\n\t\t}\n\t\treturn undefined;\n\t}\n\n\t// Whether the head of held group `key` can still come from a fill, which {@link #askHead}\n\t// would ask. Mirrors the Rust `group::Consumer::fetches_from`.\n\t#fetchesHead(key: bigint): boolean {\n\t\tconst end = key + 1n;\n\t\tif (dropAt(this.#state.refused.peek(), key) || runGaps(this.#givenUp, key, end).length === 0) return false;\n\t\tconst producer = this.#state.producer;\n\t\tif (!producer) return false;\n\t\tconst fills = fillsOf(producer);\n\t\treturn fills.serving || !fills.covered(key, end, this.#askerOf()).next().done;\n\t}\n\n\t// The newest frame buffered for this subscriber, which a wire answer names as its edge:\n\t// a newest group with no frames yet falls back to the newest older group that does, and it\n\t// reads as undefined once the newest group was evicted or received, since what is left can\n\t// no longer say where the edge is.\n\t#bufferedLargest(): Position | undefined {\n\t\tif (this.#resume) return this.#resume.bufferedLargest();\n\t\tconst latest = this.#state.latest;\n\t\tif (latest === undefined) return undefined;\n\n\t\tconst groups = this.#state.groups.peek();\n\t\tconst newest = groups[groups.length - 1];\n\t\tif (!newest || newest.start !== latest) return undefined;\n\n\t\tfor (let i = groups.length - 1; i >= 0; i--) {\n\t\t\tconst count = groups[i].frameCount;\n\t\t\tif (count > 0) return { group: groups[i].start, frame: count - 1 };\n\t\t}\n\t\treturn undefined;\n\t}\n\n\t/**\n\t * An independent subscriber to the same track, with its own cursor and its own replay of\n\t * the retained window.\n\t *\n\t * Reads here do not consume anything this one would deliver, which is what lets a\n\t * publisher read the cache alongside the cursor it is serving from. Resolving the track\n\t * again through the broadcast would not do: a dynamic serve is one request per peer\n\t * subscription, so that mints a second producer the application has to answer separately.\n\t * A routed track's fork follows the same logical track across route swaps.\n\t *\n\t * @internal Wire layers only.\n\t */\n\tfork(options?: Subscription): Subscriber {\n\t\tif (this.#resume) return this.#resume.fork(options);\n\t\tconst producer = this.#state.producer;\n\t\tif (!producer) throw new Error(\"track has no producer to fork from\");\n\t\treturn producer.subscribe(options);\n\t}\n\n\t/**\n\t * Limit subsequent reads to these groups and return this reader for chaining. Mirrors the\n\t * Rust `with_range`.\n\t *\n\t * Both bounds are assigned, in either direction: an omitted start is group 0 and an\n\t * omitted end removes the cap. They narrow the subscription's ranges, never widen them.\n\t * Lowering the floor or raising the cap offers the groups it newly covers that the track\n\t * still caches and this reader never handed out; a group is never handed out twice while the\n\t * subscription's ranges hold it (see {@link update}). A local\n\t * filter, not a request: it leaves the wire subscription alone, so to change what is asked\n\t * for, replace {@link Subscription.ranges} with {@link update}. One exception: on a track\n\t * served across route changes, lowering the floor asks the serving route again for the groups\n\t * it newly covers within the subscription's ranges, since the route that delivered them may\n\t * be gone. {@link largest} reports within these bounds.\n\t *\n\t * @internal Wire layers only: a local filter wastes the bandwidth of what it drops.\n\t */\n\twithRange(groups: Groups): this {\n\t\tconst before = this.#cursor.peek();\n\t\tthis.#local = groupBounds(groups);\n\t\tthis.#bound();\n\t\tconst { start } = this.#cursor.peek();\n\t\tconst producer = this.#state.producer;\n\t\tif (!this.#resume && !this.#left && producer && start < before.start) {\n\t\t\t// The ordered cursor let go of what it passed below the old floor; the arrival\n\t\t\t// cursor keeps it buffered, which this skips.\n\t\t\treofferCached(\n\t\t\t\tproducer,\n\t\t\t\tthis.#state,\n\t\t\t\tstart,\n\t\t\t\tbefore.start,\n\t\t\t\t(key) => !this.#delivered.has(key) && this.#window.contains(key),\n\t\t\t);\n\t\t}\n\t\treturn this;\n\t}\n\n\t/** Close the track (optionally with an error), closing any pending groups. Idempotent. */\n\tclose(abort?: Error) {\n\t\tif (!this.#left) {\n\t\t\tconst arrivals = this.#state.timeline.filter((group) => !hooks.groupFailed(group));\n\t\t\tthis.#arrivals = arrivals.map((group) => ({\n\t\t\t\tstart: group.start,\n\t\t\t\tarrived: hooks.groupArrived(group),\n\t\t\t}));\n\t\t}\n\t\tthis.#left = true;\n\t\tthis.#state.waitingOrdered = false;\n\t\t// Settle if we're first (the producer may already have); either way drop anything\n\t\t// still buffered. Groups parked at the withRange cap deliberately outlive a clean\n\t\t// producer close, so the subscriber leaving is what must release them: closing\n\t\t// and clearing wakes a pending read to observe the end instead of hanging.\n\t\tcloseTrackState(this.#state, abort);\n\t\tthis.#resume?.close(abort);\n\t\tthis.#state.groups.mutate((groups) => {\n\t\t\tfor (const group of groups) hooks.releaseGroupReader(group, abort);\n\t\t\tgroups.length = 0;\n\t\t});\n\t\tif (this.#frameGroup) hooks.releaseGroupReader(this.#frameGroup, abort);\n\t\tthis.#frameGroup = undefined;\n\t\t// A group an ordered read holds behind a gap is buffered too, so the read ends without it.\n\t\tif (this.#items?.held) hooks.releaseGroupReader(this.#items.held, abort);\n\t\tif (this.#items) this.#items.held = undefined;\n\t\tthis.#state.timeline.length = 0;\n\t\t// A lookup still out holds a fill, or a probe whose reader keeps its group wanted.\n\t\tfor (const { stage } of this.#lookups) leaveLook(stage);\n\t\tthis.#lookups = [];\n\t\tthis.#wall.timer?.abort();\n\t\tthis.#wall.timer = undefined;\n\t\t// A deadline kept in #arrivals may still arm a wakeup.\n\t\tthis.#wall.at = Number.POSITIVE_INFINITY;\n\t}\n\n\t/**\n\t * Receive every group on this track exactly once, as it becomes available.\n\t *\n\t * Groups may arrive out of order or with gaps due to network conditions; unlike\n\t * {@link Ordered.nextGroup}, one that arrives after a newer group was already returned\n\t * is still delivered. When several groups are buffered, a backlog or a replayed cache,\n\t * they come in the subscription's {@link Order}: newest first unless `\"ascending\"`, which\n\t * reads them oldest first.\n\t *\n\t * Once the track closes cleanly, a reader with nothing left in range finishes. So does a\n\t * read whose {@link Subscription.ranges} all end, once every group in them was handed out,\n\t * dropped, skipped as stale, or will never arrive, while the track goes on, as in Rust;\n\t * later reads return `undefined` immediately too, and widening the ranges with {@link update}\n\t * reads on without replaying groups already returned.\n\t * A group a live range reached whose presentation time is further behind the live edge than\n\t * that range's {@link Live.max} is skipped. The default subscription's zero takes the live edge.\n\t * The budget remains attached after return, so a pending frame read rejects if a stalled\n\t * group becomes stale while newer data advances.\n\t *\n\t * The first call commits this track to arrival order: {@link ordered} throws afterwards.\n\t */\n\tasync recvGroup(): Promise<GroupConsumer | undefined> {\n\t\tthis.#live();\n\t\tthis.#mode = \"arrival\";\n\t\tfor (;;) {\n\t\t\tconst recv = this.#tryRecvGroup();\n\t\t\tswitch (recv.kind) {\n\t\t\t\tcase \"group\":\n\t\t\t\t\treturn recv.group;\n\t\t\t\tcase \"drop\":\n\t\t\t\t\tcontinue;\n\t\t\t\tcase \"done\":\n\t\t\t\t\treturn undefined;\n\t\t\t\tcase \"error\":\n\t\t\t\t\tthrow recv.error;\n\t\t\t}\n\n\t\t\t// While open, wait for more groups or a cap raise.\n\t\t\tawait this.#wait();\n\t\t}\n\t}\n\n\t// Park until a group read may go differently.\n\t#wait(): Promise<void> {\n\t\treturn new Promise((resolve) => {\n\t\t\tconst dispose = this.#groupChanged(() => {\n\t\t\t\tdispose();\n\t\t\t\tresolve();\n\t\t\t});\n\t\t});\n\t}\n\n\t// Package-internal synchronous half of recvGroup. The lite publisher uses this so applying\n\t// control state, popping the group, and positioning its frames are one JavaScript turn.\n\t#tryRecvGroup(dispositions: Dispositions = false): Recv {\n\t\t// A front never reports a failed group as a drop, whatever the mode: it reads its own copies\n\t\t// for budget skips only, and continues a failed group through its recovery.\n\t\tif (this.#resume) return this.#tryResumed(false, dispositions !== false);\n\t\tconst refused = this.#settle();\n\t\tif (refused) return { kind: \"error\", error: refused, refused: true };\n\t\tthis.#fillWait = false;\n\t\tconst groups = this.#state.groups.peek();\n\t\tconst { start, end } = this.#cursor.peek();\n\n\t\tif (dispositions) {\n\t\t\tconst dropped = this.#tryDrop();\n\t\t\tif (dropped) return dropped;\n\t\t}\n\t\tconst drift = this.#drift();\n\t\tthis.#reoffer(drift.budget);\n\t\t// Newest first, the stale groups at the oldest end are written off before one is picked,\n\t\t// as the Rust `write_off_oldest` does, so their verdicts settle first.\n\t\tconst ascending = this.#state.update.policy().order === \"ascending\";\n\t\tif (!ascending) {\n\t\t\tconst dropped = this.#writeOffOldest(groups, start, end, drift, dispositions);\n\t\t\tif (dropped) return dropped;\n\t\t}\n\t\t// Keep unread groups below the floor until cache eviction: replacing the\n\t\t// subscription can lower it, just as raising the cap re-offers held groups. Found\n\t\t// after the re-offer, which may insert below the floor.\n\t\tconst floor = lowerBound(groups, start);\n\t\t// The buffer is key-sorted, so it is walked in the subscription's Group Order: up from the\n\t\t// floor, or down from below the cap. A beyond-cap group stays held without blocking an\n\t\t// in-range one, which sorts in front of it.\n\t\tlet index = ascending ? floor : lowerBound(groups, end ?? UNBOUNDED) - 1;\n\n\t\tfor (;;) {\n\t\t\tif (index < floor) break;\n\t\t\tconst group = groups[index];\n\t\t\tif (!group || (end !== undefined && group.start >= end)) break;\n\t\t\t// Kept, like a group below the floor: replacing the ranges can take it in.\n\t\t\tif (!this.#window.contains(group.start)) {\n\t\t\t\tindex = this.#pastExcluded(groups, group.start, ascending);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tgroups.splice(index, 1);\n\t\t\t// What lies below moved down into this slot, so a descending walk steps past it.\n\t\t\tif (!ascending) index--;\n\t\t\tconst failed = hooks.groupFailed(group);\n\t\t\tif (dispositions === true && failed) {\n\t\t\t\t// A reset supplies no verdict unless this reader judged the group itself.\n\t\t\t\tconst hole = holeOf(failed);\n\t\t\t\tconst maxAge = hole.reason === \"old\" ? group.staleUnder : undefined;\n\t\t\t\tconst dropped = this.#report(group.start, group.start + 1n, { ...hole, maxAge, failed: true });\n\t\t\t\tif (dropped) return dropped;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (this.#delivered.has(group.start)) {\n\t\t\t\tgroup.close();\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tconst stale = this.#stale(group.start, drift);\n\t\t\tif (stale) {\n\t\t\t\tconst dropped = this.#writeOff(group, drift, stale, dispositions);\n\t\t\t\tif (dropped) return dropped;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t// A group missing its head comes from the fill asked for it, in its turn.\n\t\t\tif (this.#lacksHead(group)) {\n\t\t\t\tif (this.#askHead(group.start)) {\n\t\t\t\t\t// Back in its slot, and the walk moves past it.\n\t\t\t\t\tif (ascending) groups.splice(index++, 0, group);\n\t\t\t\t\telse groups.splice(index + 1, 0, group);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tgroup.close();\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tthis.#handOut(group.start, false);\n\t\t\treturn { kind: \"group\", group: this.#guard(group) };\n\t\t}\n\n\t\tconst closed = this.#state.closed.peek();\n\t\tif (closed instanceof Error) return { kind: \"error\", error: closed };\n\t\t// A clean close completes this range, retaining groups a later cap raise can read.\n\t\tif (closed !== undefined) return this.#done();\n\t\t// Nothing buffered: ask a fill for what this reader misses, and wait while one owes it.\n\t\tif (this.#askFills(start, end ?? UNBOUNDED, drift) !== undefined) return { kind: \"idle\" };\n\t\t// A time start still looked up may yet take in a group held already.\n\t\tif (this.#window.lookups().length > 0 || this.#awaitsTimeAnswer()) return { kind: \"idle\" };\n\t\t// A bounded window ends once nothing in it is left to deliver, as in Rust.\n\t\t// Exhausted, nothing kept out is still asked, and what was given up stays given up.\n\t\tif (this.#exhausted()) return (dispositions && this.#tryDrop()) || { kind: \"done\" };\n\t\tif (!this.#complete() || this.#starting(groups)) return { kind: \"idle\" };\n\t\t// An open track can still raise the cap. Keep the groups beyond it.\n\t\treturn this.#parked(groups) ? { kind: \"boundary\" } : this.#done();\n\t}\n\n\t// Where a walk of the key-sorted `groups` resumes past `key`, which the window leaves out: the\n\t// next group the window admits in the walk's direction, or past either end. One seek over the\n\t// excluded groups, which stay buffered for a widening, rather than a step per group.\n\t#pastExcluded(groups: readonly GroupConsumer[], key: bigint, ascending: boolean): number {\n\t\tif (ascending) {\n\t\t\tconst next = this.#window.next(key);\n\t\t\treturn next === undefined ? groups.length : lowerBound(groups, next);\n\t\t}\n\t\tconst below = this.#window.prev(key);\n\t\treturn below === undefined ? -1 : lowerBound(groups, below + 1n) - 1;\n\t}\n\n\t// Write off the stale groups at the oldest end of `groups` within `[start, end)`, up to the first\n\t// one still fresh. Mirrors the Rust `Cursor::write_off_oldest`.\n\t#writeOffOldest(\n\t\tgroups: GroupConsumer[],\n\t\tstart: bigint,\n\t\tend: bigint | undefined,\n\t\tdrift: Drift,\n\t\tdispositions: Dispositions,\n\t): (Recv & { kind: \"drop\" }) | undefined {\n\t\tlet index = lowerBound(groups, start);\n\t\tfor (;;) {\n\t\t\tconst group = groups[index];\n\t\t\tif (!group || (end !== undefined && group.start >= end)) return undefined;\n\t\t\tif (!this.#window.contains(group.start)) {\n\t\t\t\tindex = this.#pastExcluded(groups, group.start, true);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (this.#delivered.has(group.start)) {\n\t\t\t\tgroups.splice(index, 1);\n\t\t\t\tgroup.close();\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tconst stale = hooks.groupFailed(group) ? undefined : this.#stale(group.start, drift);\n\t\t\tif (!stale) return undefined;\n\t\t\tgroups.splice(index, 1);\n\t\t\tconst dropped = this.#writeOff(group, drift, stale, dispositions);\n\t\t\tif (dropped) return dropped;\n\t\t}\n\t}\n\n\t// Skip `group`, stale under `drift` for `stale`'s reason, and report it as this read reports\n\t// what it gives up.\n\t#writeOff(\n\t\tgroup: GroupConsumer,\n\t\tdrift: Drift,\n\t\tstale: Stale,\n\t\tdispositions: Dispositions,\n\t): (Recv & { kind: \"drop\" }) | undefined {\n\t\tgroup.close();\n\t\tconst budget = drift.budget.at(group.start);\n\t\tconst named = namedFor(drift, group.start, stale);\n\t\tlet dropped: (Recv & { kind: \"drop\" }) | undefined;\n\t\tif (dispositions) {\n\t\t\tdropped = this.#report(group.start, group.start + 1n, staleHole(named));\n\t\t} else if (this.#dropsSeen) {\n\t\t\t// A cursor #tryDrop reads reports it there.\n\t\t\tthis.#pending = insertDrop(this.#pending, group.start, group.start + 1n, staleHole(named));\n\t\t}\n\t\t// Stale at the bound, or past the track's max age, is final: settled as handed out,\n\t\t// compacted the same way, as the Rust `retire_written_off` does, so nothing counts on this\n\t\t// reader to hand it out once what convicted it leaves.\n\t\tif (stale === \"maxAge\" || (drift.bound !== undefined && budget >= drift.bound))\n\t\t\tthis.#handOut(group.start, false);\n\t\telse this.#skip(group.start, budget);\n\t\treturn dropped;\n\t}\n\n\t// The first part of `[from, to)` this cursor has not reported yet within its window, now\n\t// reported, with why.\n\t#report(\n\t\tfrom: bigint,\n\t\tto: bigint,\n\t\thole: Hole & { failed?: boolean; refusal?: Error },\n\t): (Recv & { kind: \"drop\" }) | undefined {\n\t\tconst { start, end } = this.#cursor.peek();\n\t\tconst low = max(from, start);\n\t\tconst high = min(to, end ?? to);\n\t\tconst runs = hole.reason === \"skip\" ? this.#window.runs(low, high) : this.#window.missable(low, high);\n\t\tfor (const run of runs) {\n\t\t\tconst dropped = this.#reportRun(run.start, run.end, hole);\n\t\t\tif (dropped) return dropped;\n\t\t}\n\t\treturn undefined;\n\t}\n\n\t// The first part of `[from, to)` nothing reported already, now reported, with why. Mirrors the\n\t// Rust `Record::report`.\n\t#reportRun(\n\t\tfrom: bigint,\n\t\tto: bigint,\n\t\thole: Hole & { failed?: boolean; refusal?: Error },\n\t): (Recv & { kind: \"drop\" }) | undefined {\n\t\tconst start = max(from, this.#floor);\n\t\tif (start >= to) return undefined;\n\t\tconst [gap] = runGaps(this.#reported.overlapping(start, to), start, to);\n\t\tif (!gap) return undefined;\n\t\tthis.#reported.set(gap.start, gap.end, { start: gap.start, end: gap.end });\n\t\tconst dropped: Recv & { kind: \"drop\" } = { kind: \"drop\", ...gap, reason: hole.reason, maxAge: hole.maxAge };\n\t\tif (hole.failed) dropped.failed = true;\n\t\tif (hole.refusal) dropped.refusal = hole.refusal;\n\t\treturn dropped;\n\t}\n\n\t// The next run this cursor gave up and has not reported, without taking a group. From the\n\t// first call on, a read without dispositions keeps its budget skips for it too. A resumed\n\t// one reports what its routes' copies gave up.\n\t#tryDrop(): (Recv & { kind: \"drop\" }) | undefined {\n\t\tif (this.#resume) {\n\t\t\tthis.#resumeDropping = true;\n\t\t\tfor (;;) {\n\t\t\t\t// What any copy declared skipped, one the front served before too, goes first: a skip\n\t\t\t\t// is the most authoritative verdict, so a copy's drop of the same keys, such as the\n\t\t\t\t// serving copy giving up a gap it never received, goes out over none of it.\n\t\t\t\tconst skipped = this.#resume.trySkip((start, end) => this.#reportRun(start, end, skipHole()));\n\t\t\t\tif (skipped) return skipped;\n\t\t\t\tconst queued = this.#nextResumedDrop();\n\t\t\t\tif (queued) return queued;\n\t\t\t\tconst next = this.#resume.tryDrop(this.#delivered);\n\t\t\t\tif (!next) return undefined;\n\t\t\t\tthis.#queueResumedDrop(next);\n\t\t\t}\n\t\t}\n\t\tthis.#settle();\n\t\tconst { start, end } = this.#cursor.peek();\n\t\t// The whole span is folded in again only after the window, the budget, or what settles a\n\t\t// stale run moved, since out-of-window and unsettling runs were skipped and may be owed\n\t\t// now; otherwise only the runs that changed are, so a drop costs each reader the runs it\n\t\t// touches.\n\t\tconst { drops, refused } = this.#state;\n\t\tconst refusals = refused.peek();\n\t\tconst refusalFeed = refusals.length > 0 ? this.#refusalFeed() : undefined;\n\t\tconst refusalEnd = refusalFeed && this.#state.end.peek();\n\t\tconst refusalStart = refusalFeed && this.#state.startChanged.peek();\n\t\tconst revision = this.#revision;\n\t\tconst { budget } = this.#drift();\n\t\tconst coverage = this.#coverage();\n\t\tconst seen = this.#dropsSeen;\n\t\tconst full =\n\t\t\t!seen ||\n\t\t\tseen.refused !== refusals ||\n\t\t\tseen.refusalFeed !== refusalFeed ||\n\t\t\tseen.refusalEnd !== refusalEnd ||\n\t\t\tseen.refusalStart !== refusalStart ||\n\t\t\tseen.start !== start ||\n\t\t\tseen.end !== end ||\n\t\t\tseen.revision !== revision ||\n\t\t\t!budget.equals(seen.budget) ||\n\t\t\t!sameCoverage(seen.coverage, coverage);\n\t\tconst changed: Run[] = full ? [{ start, end: end ?? UNBOUNDED }] : drops.since(seen.drops);\n\t\tif (full) this.#pending = this.#pending.filter((run) => !run.received);\n\t\tthis.#dropsSeen = {\n\t\t\tdrops: drops.revision,\n\t\t\trefused: refusals,\n\t\t\trefusalFeed,\n\t\t\trefusalEnd,\n\t\t\trefusalStart,\n\t\t\tstart,\n\t\t\tend,\n\t\t\trevision,\n\t\t\tbudget,\n\t\t\tcoverage,\n\t\t};\n\t\tfor (const span of changed) {\n\t\t\tconst from = max(span.start, start);\n\t\t\tconst to = end === undefined ? span.end : min(span.end, end);\n\t\t\tif (from >= to) continue;\n\t\t\tif (!full) {\n\t\t\t\tthis.#pending = this.#pending.flatMap((run) => (run.received ? removeRun([run], from, to) : [run]));\n\t\t\t}\n\t\t\t// The reader's own refusals too: clearing the span above took out those it covered.\n\t\t\tconst own = this.#confirmedRefusals(from, to, refusalFeed);\n\t\t\tconst folded = givenUp(drops, own, from, to, (run) => settles(run, budget, coverage));\n\t\t\tconst received: DropRun[] = [];\n\t\t\tfor (const dropped of folded) {\n\t\t\t\t// Judged from where it meets this cursor's span, as Rust clips it.\n\t\t\t\tconst run = { ...dropped, start: max(dropped.start, from), end: min(dropped.end, to) };\n\t\t\t\tif (run.start >= run.end) continue;\n\t\t\t\t// A received stale run that does not settle this reader is unknown to it.\n\t\t\t\tif (!settles(run, budget, coverage)) continue;\n\t\t\t\treceived.push({ ...run, received: true });\n\t\t\t}\n\t\t\t// Sorted and disjoint: the settling drops and the refusals they leave never overlap.\n\t\t\tthis.#pending = insertDrops(this.#pending, received);\n\t\t}\n\t\tfor (let run = this.#pending.shift(); run; run = this.#pending.shift()) {\n\t\t\t// A received run the track has since forgotten, expired or superseded, is unknown again:\n\t\t\t// only the part it still holds as it was folded in is owed.\n\t\t\tif (run.received) {\n\t\t\t\tconst folded = run;\n\t\t\t\tconst own = this.#confirmedRefusals(run.start, run.end, refusalFeed);\n\t\t\t\tconst held = givenUp(drops, own, run.start, run.end, (run) => settles(run, budget, coverage)).find(\n\t\t\t\t\t(given) => sameVerdict(given, folded),\n\t\t\t\t);\n\t\t\t\tif (!held) continue;\n\t\t\t\tif (held.end < run.end) this.#pending.unshift({ ...run, start: held.end });\n\t\t\t\trun = { ...run, start: max(run.start, held.start), end: min(run.end, held.end) };\n\t\t\t}\n\t\t\tconst dropped = this.#report(run.start, run.end, run);\n\t\t\tif (!dropped) continue;\n\t\t\tif (dropped.end < run.end) this.#pending.unshift({ ...run, start: dropped.end });\n\t\t\treturn dropped;\n\t\t}\n\t\treturn undefined;\n\t}\n\n\t// A fill can answer before the live feed catches up with widened demand. A range START says\n\t// where that range begins, so it cannot account for a group another range may still deliver.\n\t// While a demand range can still deliver the group, wait for the feed to account for it.\n\t#refusalFeed(): Producer | undefined {\n\t\tconst state = this.#state;\n\t\tconst producer = state.producer;\n\t\tif (!producer || !wireFed(producer) || !provenOf(producer)) return undefined;\n\t\tif (state.closed.peek() !== undefined || state.end.peek()?.tail === \"settled\") return undefined;\n\t\treturn producer;\n\t}\n\n\t#confirmedRefusals(start: bigint, end: bigint, feed: Producer | undefined): readonly DropRun[] {\n\t\tconst runs = this.#state.refused.peek();\n\t\tif (!feed || runs.length === 0) return runs;\n\t\treturn intersectDrops(runs, start, end).flatMap((run) =>\n\t\t\trunGaps([...unsettledFeedRuns(feed, run.start, run.end)], run.start, run.end).map((part) => ({\n\t\t\t\t...run,\n\t\t\t\t...part,\n\t\t\t})),\n\t\t);\n\t}\n\n\t#unconfirmedRefusal(start: bigint, end: bigint): bigint | undefined {\n\t\tconst runs = this.#state.refused.peek();\n\t\tif (runs.length === 0) return undefined;\n\t\tconst feed = this.#refusalFeed();\n\t\tif (!feed) return undefined;\n\t\tfor (const run of this.#deferredRefusals(feed, start, end)) return run.start;\n\t\treturn undefined;\n\t}\n\n\t*#deferredRefusals(feed: Producer, start: bigint, end: bigint): Iterable<Run> {\n\t\tfor (const refused of intersect(this.#state.refused.peek(), start, end))\n\t\t\tyield* unsettledFeedRuns(feed, refused.start, refused.end);\n\t}\n\n\t// A bounded read still waits on a deferred refusal within budget. Age each stretch by its\n\t// own successor, as for an active fill, even though the fill's handle has closed.\n\t#ageRefusals(feed: Producer, start: bigint, end: bigint, drift: Drift): boolean {\n\t\tlet waiting = false;\n\t\tconst wanted = [...this.#deferredRefusals(feed, start, end)].flatMap((run) =>\n\t\t\trunGaps(this.#givenUp, run.start, run.end),\n\t\t);\n\t\tfor (const open of wanted) {\n\t\t\tfor (const [stretch, budget] of drift.budget.runs(open.start, open.end)) {\n\t\t\t\tif (budget === NO_MAX_DELAY) {\n\t\t\t\t\twaiting = true;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tfor (const run of this.#splitRun(stretch.start, stretch.end, drift)) {\n\t\t\t\t\tif (this.#driftedAt(run.end - 1n, drift, true)) {\n\t\t\t\t\t\tinsertRun(this.#givenUp, run.start, run.end);\n\t\t\t\t\t\tthis.#giveUp(run, staleHole(budget));\n\t\t\t\t\t} else waiting = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn waiting;\n\t}\n\n\t// The groups this reader reads, and its cap; see `Coverage`.\n\t#coverage(): Coverage {\n\t\tif (this.#window.pending) return undefined;\n\t\treturn { runs: this.#window.runs(), cap: this.#cursor.peek().end };\n\t}\n\n\t// A group from the routes' copies; see #resume.\n\t#tryResumed(ordered: boolean, dispositions = false, admit?: bigint): Recv {\n\t\tconst resume = this.#resume as ResumeSource;\n\t\t// A clean end leaves what the copies hold readable, as a direct reader's buffer is.\n\t\tconst closed = this.#state.closed.peek();\n\t\tif (closed instanceof Error) return { kind: \"error\", error: closed };\n\t\tfor (;;) {\n\t\t\tif (dispositions) {\n\t\t\t\t// The skips any copy declared go first, as in #tryDrop: a lite publisher reads its drops here.\n\t\t\t\tconst skipped = resume.trySkip((start, end) => this.#reportRun(start, end, skipHole()));\n\t\t\t\tif (skipped) return skipped;\n\t\t\t\tconst queued = this.#nextResumedDrop();\n\t\t\t\tif (queued) return queued;\n\t\t\t}\n\t\t\tconst recv = resume.tryGroup(ordered, this.#delivered, dispositions, admit);\n\t\t\tif (recv.kind === \"drop\") {\n\t\t\t\tthis.#queueResumedDrop(recv);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (recv.kind === \"group\") {\n\t\t\t\t// Passing the keys below it hands them out as far as #delivered knows, so first take what\n\t\t\t\t// the copies gave up there: a session-fed copy reports a key it passed to take this group.\n\t\t\t\tif (ordered) {\n\t\t\t\t\tconst key = recv.group.start;\n\t\t\t\t\tfor (\n\t\t\t\t\t\tlet drop = resume.tryDrop(this.#delivered, key);\n\t\t\t\t\t\tdrop;\n\t\t\t\t\t\tdrop = resume.tryDrop(this.#delivered, key)\n\t\t\t\t\t) {\n\t\t\t\t\t\tthis.#queueResumedDrop(drop);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tthis.#handOut(recv.group.start, ordered);\n\t\t\t} else if (recv.kind === \"done\" || (recv.kind === \"idle\" && this.#exhausted())) {\n\t\t\t\t// The read may have let go of a copy on its way here, keeping a skip it declared: that goes\n\t\t\t\t// out before the end, as the Rust publisher drains drops on `Recv::Finished`.\n\t\t\t\tif (dispositions) {\n\t\t\t\t\tconst skipped = resume.trySkip((start, end) => this.#reportRun(start, end, skipHole()));\n\t\t\t\t\tif (skipped) return skipped;\n\t\t\t\t\tconst queued = this.#nextResumedDrop();\n\t\t\t\t\tif (queued) return queued;\n\t\t\t\t}\n\t\t\t\t// As the Rust front's reader: whatever ended it, an ordered read passed its range.\n\t\t\t\tif (ordered) this.#passEnd();\n\t\t\t\treturn { kind: \"done\" };\n\t\t\t}\n\t\t\treturn recv;\n\t\t}\n\t}\n\n\t// Queue a run a resumed reader's copy gave up. Each copy reports to its own route; this\n\t// reader's record keeps one route's run from going out over what another's already settled.\n\t#queueResumedDrop(dropped: Recv & { kind: \"drop\" }): void {\n\t\tconst { start, end, reason, maxAge } = dropped;\n\t\tthis.#pending.push({ start, end, reason, maxAge });\n\t}\n\n\t// The lowest queued run's first part nothing already reported blocks, now reported; the rest\n\t// of that run waits its turn. Mirrors the Rust `Record::next_pending`.\n\t#nextResumedDrop(): (Recv & { kind: \"drop\" }) | undefined {\n\t\tfor (let run = this.#pending.shift(); run; run = this.#pending.shift()) {\n\t\t\tconst dropped = this.#reportRun(run.start, run.end, run);\n\t\t\tif (!dropped) continue;\n\t\t\tif (dropped.end < run.end) this.#pending.unshift({ ...run, start: dropped.end });\n\t\t\treturn dropped;\n\t\t}\n\t\treturn undefined;\n\t}\n\n\t// The live edge reached the end, with no hole a wire subscription's pending tail still\n\t// owes below it. Reader completion does not settle the tail: open streams remain\n\t// accounted for by the wire layer, and an abort still wins on the next read.\n\t#complete(): boolean {\n\t\tconst end = this.#state.end.peek();\n\t\treturn (\n\t\t\tend !== undefined &&\n\t\t\treaches(this.#state.received.peek(), this.#state.drops, end, this.#state.refused.peek()) &&\n\t\t\t!this.#state.owed.peek()\n\t\t);\n\t}\n\n\t// Package-internal readiness half of recvGroup. Each registration fires at most once, and\n\t// the caller disposes the losers after whichever source wakes it. A declared end wakes it\n\t// too, so a publisher can forward the end before the live edge reaches it.\n\t#groupChanged(fn: () => void): Dispose {\n\t\t// A group an ordered read holds finishing may rule out the range it waits on.\n\t\tconst held = this.#items?.held;\n\t\tconst finished = held ? [hooks.groupFinished(held).changed(fn)] : [];\n\t\tif (this.#resume) {\n\t\t\tconst resumed = [\n\t\t\t\tthis.#resume.changed(fn),\n\t\t\t\tthis.#cursor.changed(fn),\n\t\t\t\tthis.#state.closed.changed(fn),\n\t\t\t\t...finished,\n\t\t\t];\n\t\t\treturn () => {\n\t\t\t\tfor (const close of resumed) close();\n\t\t\t};\n\t\t}\n\t\tconst producer = this.#state.producer;\n\t\tconst dispose = [\n\t\t\tthis.#state.groups.changed(fn),\n\t\t\tthis.#state.drops.version.changed(fn),\n\t\t\tthis.#state.refused.changed(fn),\n\t\t\tthis.#fillMoves.changed(fn),\n\t\t\t...this.#lookups.flatMap(({ stage }) =>\n\t\t\t\tstage.kind === \"asked\"\n\t\t\t\t\t? stage.lookup\n\t\t\t\t\t\t? [stage.lookup.changed.changed(fn)]\n\t\t\t\t\t\t: []\n\t\t\t\t\t: [stage.probe.group.closed.changed(fn), hooks.groupWrites(stage.probe.group).changed(fn)],\n\t\t\t),\n\t\t\t// A handler opening takes a miss nobody could ask before.\n\t\t\t...(producer ? [fillsOf(producer).opened.changed(fn)] : []),\n\t\t\t// A frame past a time start a received copy waits on, or its group ending, places it with\n\t\t\t// no change to the track. Mirrors the Rust `TrackState::watch_places`.\n\t\t\t...(producer && receivedCopy(producer) && !this.#state.dropsAnchors.peek()\n\t\t\t\t? this.#window.asks().flatMap((time) => {\n\t\t\t\t\t\tconst group = unplacingAt(producer, time);\n\t\t\t\t\t\treturn group ? [group.closed.changed(fn), hooks.groupWrites(group).changed(fn)] : [];\n\t\t\t\t\t})\n\t\t\t\t: []),\n\t\t\tthis.#state.startChanged.changed(fn),\n\t\t\t// A group lost, gained, or started below the newest may make a gap below it fillable.\n\t\t\tthis.#state.lostChanged.changed(fn),\n\t\t\t// A group starting may settle a time end, or move the cap it holds reads back with.\n\t\t\t...(this.#window.settled ? [] : [this.#state.timelineChanged.changed(fn)]),\n\t\t\t// Accepting the track may refuse a time anchor, with no group arriving to say so.\n\t\t\tthis.#state.info.changed(fn),\n\t\t\tthis.#state.dropsAnchors.changed(fn),\n\t\t\tthis.#cursor.changed(fn),\n\t\t\t// A widened budget re-offers the groups it skipped as stale.\n\t\t\tthis.#state.update.revision.changed(fn),\n\t\t\tthis.#state.closed.changed(fn),\n\t\t\tthis.#state.end.changed(fn),\n\t\t\tthis.#state.received.changed(fn),\n\t\t\tthis.#state.owed.changed(fn),\n\t\t\t...finished,\n\t\t];\n\t\tif (this.#state.waitingOrdered)\n\t\t\tdispose.push(this.#state.timelineChanged.changed(fn), this.#wall.revision.changed(fn));\n\t\t// A bounded window ends once the feed stops owing its last hole, which only time decides,\n\t\t// and a fill's hole stops holding a read once the budget convicts it.\n\t\telse if (this.#window.end() !== undefined || this.#fillWait) dispose.push(this.#wall.revision.changed(fn));\n\t\treturn () => {\n\t\t\tfor (const close of dispose) close();\n\t\t};\n\t}\n\n\t/**\n\t * Take the next buffered group without blocking, honoring the same cursor bounds as\n\t * {@link recvGroup}.\n\t *\n\t * Returns `undefined` when nothing is deliverable right now, which is not by itself the\n\t * end of the track: a group may still arrive. Use it to drain what the retained window already holds, where\n\t * waiting for a key nothing will republish would park forever.\n\t *\n\t * @internal\n\t */\n\ttryRecvGroup(): GroupConsumer | undefined {\n\t\tthis.#live();\n\t\tthis.#mode = \"arrival\";\n\t\treturn taken(() => this.#tryRecvGroup());\n\t}\n\n\t// The key cursor behind {@link Ordered}, which owns the only public door to it.\n\tasync #nextItem(): Promise<Item | undefined> {\n\t\tfor (;;) {\n\t\t\tconst recv = this.#tryItem();\n\t\t\tswitch (recv.kind) {\n\t\t\t\tcase \"group\":\n\t\t\t\tcase \"gap\":\n\t\t\t\t\treturn recv;\n\t\t\t\tcase \"done\":\n\t\t\t\t\treturn undefined;\n\t\t\t\tcase \"error\":\n\t\t\t\t\tthrow recv.error;\n\t\t\t}\n\t\t\tawait this.#wait();\n\t\t}\n\t}\n\n\t// The next group in key order, past any gap.\n\tasync #nextGroup(): Promise<GroupConsumer | undefined> {\n\t\tfor (;;) {\n\t\t\tconst item = await this.#nextItem();\n\t\t\tif (!item || item.kind === \"group\") return item?.group;\n\t\t}\n\t}\n\n\t// The first group the track's declared end excludes whole, undefined while it is open ended.\n\t#finalKey(): bigint | undefined {\n\t\tif (this.#resume) return this.#resume.finalKey();\n\t\tconst end = this.#state.end.peek()?.at;\n\t\treturn end && finalKey(end);\n\t}\n\n\t// The synchronous half of #nextItem: the next group, or a gap the read gave up on below it,\n\t// as the Rust `Ordered::poll_item` merges them. Every gap below the declared end goes out\n\t// before the end.\n\t#tryItem(): ItemRecv {\n\t\tlet items = this.#items;\n\t\tif (!items) {\n\t\t\titems = this.#items = { gaps: [], at: 0n };\n\t\t\t// The drop record starts before the first read, so the cursor keeps what it gives up.\n\t\t\tthis.#findGaps(items);\n\t\t}\n\t\tconst read = this.#readHeld(items);\n\t\tthis.#findGaps(items);\n\t\t// No group exists at or past the declared end, so no gap there is owed: a drop the publisher\n\t\t// recorded there before it finished goes unreported, as a peer past its SUBSCRIBE_END never\n\t\t// names one.\n\t\tconst final = items.gaps.length > 0 ? this.#finalKey() : undefined;\n\t\tif (final !== undefined) cutRun(items.gaps, final, UNBOUNDED);\n\t\tswitch (read.kind) {\n\t\t\tcase \"group\": {\n\t\t\t\tconst key = read.group.start;\n\t\t\t\tconst lowest = this.#lowestGap(items);\n\t\t\t\t// The gap lies wholly below it, or around it: the part below goes first.\n\t\t\t\tif (lowest && lowest.span.start < key) {\n\t\t\t\t\t// What lies above the group, or above the run when it ends before it, waits.\n\t\t\t\t\tconst resume = lowest.span.end <= key ? lowest.span.end : key + 1n;\n\t\t\t\t\tconst below = { start: lowest.span.start, end: min(lowest.span.end, key) };\n\t\t\t\t\titems.held = read.group;\n\t\t\t\t\treturn this.#takeGap(items, lowest.index, below, resume);\n\t\t\t\t}\n\t\t\t\t// A group handed out is no gap, even one a drop also named, as a cut group is.\n\t\t\t\tif (lowest && lowest.span.start === key) this.#cutGap(items, lowest.index, key, key + 1n);\n\t\t\t\titems.at = max(items.at, key + 1n);\n\t\t\t\tthis.#fold(this.#delivered.runEnd(0n) ?? 0n);\n\t\t\t\treturn read;\n\t\t\t}\n\t\t\t// Every gap below the declared end goes out before the end, but none past a group still\n\t\t\t// held.\n\t\t\tcase \"done\":\n\t\t\tcase \"error\": {\n\t\t\t\tconst lowest = this.#lowestGap(items);\n\t\t\t\tif (lowest && !(items.held && items.held.start < lowest.span.start)) {\n\t\t\t\t\treturn this.#takeGap(items, lowest.index, lowest.span, lowest.span.end);\n\t\t\t\t}\n\t\t\t\treturn read;\n\t\t\t}\n\t\t\tcase \"drop\":\n\t\t\t\t// Only a read with dispositions reports a drop, which this one finds through the record.\n\t\t\t\tthrow new Error(\"an ordered read took a drop\");\n\t\t\tdefault: {\n\t\t\t\t// What the read still owes lies above the gap, so the gap goes first. A group still held\n\t\t\t\t// lies below it, as handing it out or passing it settles.\n\t\t\t\tconst lowest = this.#lowestGap(items);\n\t\t\t\tif (!lowest || (items.held && items.held.start < lowest.span.start)) return { kind: \"idle\" };\n\t\t\t\tconst owed = this.#nextInRange(items.at);\n\t\t\t\tconst ready = lowest.span.start <= items.at || owed === undefined || owed >= lowest.span.start;\n\t\t\t\tif (!ready || this.#gapHeld(items.at, lowest.span.end)) return { kind: \"idle\" };\n\t\t\t\treturn this.#takeGap(items, lowest.index, lowest.span, lowest.span.end);\n\t\t\t}\n\t\t}\n\t}\n\n\t// Whether a time start still waiting below `end` holds back a gap an ordered read at `at` would\n\t// return, as #waitTimeStart holds a group: the group containing it may lie below the gap, and an\n\t// ordered read never goes back. A resumed reader asks its serving copy, whose runs it reads. Mirrors\n\t// the Rust `Cursor::poll_gap_held`.\n\t#gapHeld(at: bigint, end: bigint): boolean {\n\t\tif (this.#resume) return this.#resume.gapHeld(at, end);\n\t\tthis.#settle();\n\t\tconst start = max(max(this.#cursor.peek().start, this.#nextKey), at);\n\t\treturn this.#waitTimeStart(start, end, this.#drift());\n\t}\n\n\t// The group held behind a gap, while the bounds still cover it, else the cursor's next. A group\n\t// read is settled, so no later cut or drop of it is a gap.\n\t#readHeld(items: Items): Recv {\n\t\tconst held = items.held;\n\t\tif (held) {\n\t\t\titems.held = undefined;\n\t\t\t// One step: the cursor runs first, refusing every group past this one, then the group is\n\t\t\t// judged. A group below goes first, as the read never goes back, and a front's backfill is\n\t\t\t// asked. A closed track skips the run, draining what it holds before its abort. A failure\n\t\t\t// the run meets waits for the judgment: a group the ranges cover goes out first, and the\n\t\t\t// next read runs into it again. Mirrors the Rust `Ordered::read`.\n\t\t\tlet failed: Recv | undefined;\n\t\t\tif (this.#state.closed.peek() === undefined) {\n\t\t\t\tconst read = this.#tryNextGroup(held.start);\n\t\t\t\tif (read.kind === \"group\") {\n\t\t\t\t\titems.held = held;\n\t\t\t\t\tthis.#settled(read.group.start, read.group.start + 1n);\n\t\t\t\t\treturn read;\n\t\t\t\t}\n\t\t\t\tif (read.kind === \"error\") failed = read;\n\t\t\t}\n\t\t\t// Settled, so a range the groups or an upstream answer placed since counts where it placed.\n\t\t\t// A refusal fails every read until the ranges change, this one included, keeping the group\n\t\t\t// for them to judge afresh.\n\t\t\tconst refused = this.#settle() ?? this.#resume?.refused();\n\t\t\tif (refused) {\n\t\t\t\titems.held = held;\n\t\t\t\treturn { kind: \"error\", error: refused };\n\t\t\t}\n\t\t\t// Only placed ranges count: a live join still waiting on a first group names every key.\n\t\t\tif (this.#placed(held.start)) return { kind: \"group\", group: held };\n\t\t\t// A range still to be placed may come to hold it: neither handed out nor passed until it\n\t\t\t// places, since it may or may not name it and the read never goes back. The cap or a declared\n\t\t\t// end does not end the wait, as an upstream still answers where the start lies; the track\n\t\t\t// closing does, as nothing places it any more. Whatever places it moves the window, and the\n\t\t\t// group finishing may rule it out, either waking the read. Without an end of its own, the\n\t\t\t// next key held past it bounds it.\n\t\t\tif (this.#mayHold(held.start, held.end ?? this.#keyAfter(held.start))) {\n\t\t\t\titems.held = held;\n\t\t\t\treturn failed ?? { kind: \"idle\" };\n\t\t\t}\n\t\t\t// The bounds moved off it. With nothing the placed ranges cover above, it waits for them to\n\t\t\t// widen again, still polling the cursor so the read sees the track or itself end; otherwise the\n\t\t\t// read passes it. Mirrors the Rust `Subscriber::held`.\n\t\t\tif (this.#placedIn(held.start, UNBOUNDED).length === 0) {\n\t\t\t\tconst read = failed ?? this.#tryNextGroup();\n\t\t\t\t// A clean end keeps it, as the buffer keeps a group past the cap, for a raise to read.\n\t\t\t\tif (read.kind === \"error\") held.close();\n\t\t\t\telse items.held = held;\n\t\t\t\treturn read.kind === \"done\" || read.kind === \"error\" ? read : { kind: \"idle\" };\n\t\t\t}\n\t\t\theld.close();\n\t\t\tif (failed) return failed;\n\t\t}\n\t\tconst read = this.#tryNextGroup();\n\t\tif (read.kind === \"group\") this.#settled(read.group.start, read.group.start + 1n);\n\t\treturn read;\n\t}\n\n\t// Whether a range not yet placed may still come to hold `key`, which ends at time `end` if known,\n\t// within the bounds. A resumed reader asks its own window, which places a range once a copy does.\n\t// Mirrors the Rust `Subscriber::held`.\n\t#mayHold(key: bigint, end: bigint | undefined): boolean {\n\t\tconst cursor = this.#cursor.peek();\n\t\tif (key < cursor.start || (cursor.end !== undefined && key >= cursor.end)) return false;\n\t\t// Once the track closed, nothing places a range any more.\n\t\tif (this.#state.closed.peek() !== undefined) return false;\n\t\treturn (this.#resume ? this.#resume.window() : this.#window).mayHold(key, end);\n\t}\n\n\t// The first key buffered past `key`, on any copy for a resumed reader. Time starts resolve against\n\t// group keys, and no group spans another's start, so group `key` holds no time at or past it.\n\t// Mirrors the Rust `TrackState::key_after`.\n\t#keyAfter(key: bigint): bigint | undefined {\n\t\tif (this.#resume) return this.#resume.keyAfter(key);\n\t\t// Buffered in key order, and every one past the held group, so this stops at the first.\n\t\tfor (const group of this.#state.groups.peek()) if (group.start > key) return group.start;\n\t\treturn undefined;\n\t}\n\n\t// Whether the placed ranges and the bounds name group `key`. Mirrors the Rust `Subscriber::held`.\n\t#placed(key: bigint): boolean {\n\t\tconst cursor = this.#cursor.peek();\n\t\tif (key < cursor.start || (cursor.end !== undefined && key >= cursor.end)) return false;\n\t\treturn (this.#resume ? this.#resume.window() : this.#window).placed(key, key + 1n).length > 0;\n\t}\n\n\t// The parts of `[start, end)` this reader's placed ranges and bounds cover now. Mirrors the Rust\n\t// `Subscriber::placed_in_range`.\n\t#placedIn(start: bigint, end: bigint): Run[] {\n\t\tconst cursor = this.#cursor.peek();\n\t\tconst from = max(start, cursor.start);\n\t\tconst to = cursor.end === undefined ? end : min(end, cursor.end);\n\t\tif (from >= to) return [];\n\t\treturn (this.#resume ? this.#resume.window() : this.#window).placed(from, to);\n\t}\n\n\t// Take every run the record gave up into the gaps waiting, in whatever order they come. A drop\n\t// replaces what it overlaps, and a skip was never a group, so it removes them. Runs come lowest\n\t// first, so one past every gap waiting is appended without copying the rest.\n\t#findGaps(items: Items): void {\n\t\tfor (let dropped = this.#tryDrop(); dropped; dropped = this.#tryDrop()) {\n\t\t\tconst last = items.gaps.at(-1);\n\t\t\tif (!last || last.end <= dropped.start) {\n\t\t\t\tif (dropped.reason === \"skip\") continue;\n\t\t\t\tconst gap: DropRun = { start: dropped.start, end: dropped.end, reason: dropped.reason };\n\t\t\t\tif (last && last.end === gap.start && sameHole(last, gap)) last.end = gap.end;\n\t\t\t\telse items.gaps.push(gap);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\titems.gaps =\n\t\t\t\tdropped.reason === \"skip\"\n\t\t\t\t\t? removeRun(items.gaps, dropped.start, dropped.end)\n\t\t\t\t\t: insertDrop(items.gaps, dropped.start, dropped.end, { reason: dropped.reason });\n\t\t}\n\t}\n\n\t// The lowest gap waiting that the placed ranges and the bounds cover, as its index and the first\n\t// part of it they cover, since they may have moved since it was found. A gap they exclude waits, in\n\t// case they widen, and so does one only a range still to be placed may name, as a held group does.\n\t// Mirrors the Rust `Ordered::lowest_gap`.\n\t#lowestGap(items: Items): { index: number; span: Run } | undefined {\n\t\tfor (let index = 0; index < items.gaps.length; index++) {\n\t\t\tconst gap = items.gaps[index];\n\t\t\tconst [span] = this.#placedIn(gap.start, gap.end);\n\t\t\tif (span) return { index, span };\n\t\t}\n\t\treturn undefined;\n\t}\n\n\t// Pass every key below the bounded window's end for good, as an ordered read that ran out of it:\n\t// a group created there later is late, so later reads end at once too. Only below the cap: a read\n\t// that ran out under a lowered cap still owes what lies above it. Mirrors the Rust\n\t// `Cursor::pass_end`.\n\t#passEnd(): void {\n\t\t// A resumed reader's ranges resolve on the copy serving it.\n\t\tconst window = this.#resume ? this.#resume.servingEnd() : this.#window.end();\n\t\tif (window === undefined) return;\n\t\tconst cap = this.#cursor.peek().end;\n\t\tconst end = cap === undefined ? window : min(cap, window);\n\t\t// Passing the keys hands them out as far as #delivered knows, so first take what the copies\n\t\t// gave up there, as a group handed out does.\n\t\tif (this.#resume) {\n\t\t\tfor (\n\t\t\t\tlet drop = this.#resume.tryDrop(this.#delivered, end);\n\t\t\t\tdrop;\n\t\t\t\tdrop = this.#resume.tryDrop(this.#delivered, end)\n\t\t\t) {\n\t\t\t\tthis.#queueResumedDrop(drop);\n\t\t\t}\n\t\t}\n\t\tconst floor = this.#delivered.runEnd(0n) ?? 0n;\n\t\tthis.#delivered.forgetBelow(end);\n\t\tconst forgot = this.#delivered.runEnd(0n) ?? 0n;\n\t\tif (forgot > floor) this.#stoppedReading(floor, forgot);\n\t\tif (!this.#resume) this.#nextKey = max(this.#nextKey, end);\n\t\tthis.#fold(forgot);\n\t}\n\n\t// Take `given` from the gap at `index` as an item, which the read has now moved past. What lies\n\t// below `given`, which the bounds leave out, and from `resume` on stay gaps.\n\t#takeGap(items: Items, index: number, given: Run, resume: bigint): Item {\n\t\tconst error = this.#cutGap(items, index, given.start, resume);\n\t\titems.at = max(items.at, given.end);\n\t\t// Told once: no later drop of these keys is a gap again.\n\t\tthis.#settled(given.start, given.end);\n\t\t// Passed for good, as a group handed out is: an ordered read never goes back, so no group\n\t\t// below its end is handed out after it, whether it lands late here or on a resumed\n\t\t// reader's copy, and a fill no longer owes it there.\n\t\tconst floor = this.#delivered.runEnd(0n) ?? 0n;\n\t\tthis.#delivered.forgetBelow(given.end);\n\t\tconst forgot = this.#delivered.runEnd(0n) ?? 0n;\n\t\tif (forgot > floor) this.#stoppedReading(floor, forgot);\n\t\tif (!this.#resume) this.#nextKey = max(this.#nextKey, given.end);\n\t\tthis.#fold(forgot);\n\t\tconst landed = hooks.landed(this, given.start, given.end);\n\t\treturn { kind: \"gap\", start: given.start, end: given.end, error, landed };\n\t}\n\n\t// Remove `[from, resume)` from the gap at `index`, returning its error.\n\t#cutGap(items: Items, index: number, from: bigint, resume: bigint): Error {\n\t\tconst gap = items.gaps[index];\n\t\tconst kept: DropRun[] = [];\n\t\tif (gap.start < from) kept.push({ ...gap, end: from });\n\t\tif (gap.end > resume) kept.push({ ...gap, start: resume });\n\t\titems.gaps.splice(index, 1, ...kept);\n\t\treturn holeError(gap);\n\t}\n\n\t// Record `[start, end)` as settled: handed out, or told as a gap.\n\t#settled(start: bigint, end: bigint): void {\n\t\tstart = max(start, this.#floor);\n\t\tif (start < end) this.#reported.set(start, end, { start, end });\n\t}\n\n\t// Fold the record below `at`, where a key-order read is, into the floor, held below every run\n\t// still to report there: a run given up and not reported yet, and a gap found and not returned\n\t// that the read may still reach.\n\t// The record then holds only what lies ahead of the read, bounded however long it plays. A\n\t// session-fed read loses nothing, since every key it passed was handed out or reported; a group\n\t// a local track produces below the floor is told as nothing, where Rust, folding only under pool\n\t// pressure, would report it Old. A wire publisher's record is what its wire was told, which it\n\t// keeps.\n\t#fold(at: bigint): void {\n\t\tif (this.#wired) return;\n\t\tconst items = this.#items;\n\t\tif (items) {\n\t\t\t// A gap the bounds left out below where the read is can never come in key order, and an\n\t\t\t// ordered read never goes back, so it is dropped rather than held for a widening.\n\t\t\tif ((items.gaps[0]?.start ?? items.at) < items.at) items.gaps = removeRun(items.gaps, 0n, items.at);\n\t\t\tat = min(at, items.at);\n\t\t\tfor (const gap of items.gaps) at = min(at, gap.start);\n\t\t}\n\t\tfor (const run of this.#pending) if (run.end > this.#floor) at = min(at, run.start);\n\t\tif (at <= this.#floor) return;\n\t\tthis.#floor = at;\n\t\tthis.#reported.set(0n, at);\n\t}\n\n\t// The key cursor passes `[start, end)` to hand out the group at `end`. Each key there that the\n\t// track owed and no group or drop accounts for was given up, whether the budget convicted it or\n\t// the tail's grace folded it, so it is stale. A wire-fed copy's feed owes every key from where it\n\t// starts, and a fill what this reader asked it for. Below the first group passed is where the\n\t// read joined, which is no gap.\n\t#passOwed(start: bigint, end: bigint, drift: Drift): void {\n\t\tconst producer = this.#state.producer;\n\t\tif (start >= end || this.#nextKey === 0n || !this.#dropsSeen || !producer) return;\n\t\tconst owed = [...intersect(this.#asked, start, end), ...intersect(this.#givenUp, start, end)];\n\t\tif (wireFed(producer)) owed.push(...this.#window.runs(max(start, feedFloor(producer) ?? 0n), end));\n\t\t// Only a drop that settles this reader reports the key; a stale verdict under a tighter budget\n\t\t// does not, so the key is still this reader's to give up.\n\t\tconst { drops } = this.#state;\n\t\tconst coverage = this.#coverage();\n\t\tconst refusalFeed = this.#refusalFeed();\n\t\tif (refusalFeed) {\n\t\t\t// A widened feed under the old start can owe keys an ordered reader is aging out.\n\t\t\tfor (const run of this.#deferredRefusals(refusalFeed, start, end))\n\t\t\t\towed.push(...this.#window.runs(run.start, run.end));\n\t\t}\n\t\tfor (const run of owed) {\n\t\t\tconst own = this.#confirmedRefusals(run.start, run.end, refusalFeed);\n\t\t\tconst settled = givenUp(drops, own, run.start, run.end, (drop) =>\n\t\t\t\tsettles(drop, drift.budget, coverage),\n\t\t\t).filter((drop) => settles({ ...drop, start: max(drop.start, run.start) }, drift.budget, coverage));\n\t\t\tfor (const passed of runGaps(settled, run.start, run.end)) {\n\t\t\t\tfor (const [part, budget] of drift.budget.runs(passed.start, passed.end)) {\n\t\t\t\t\tthis.#giveUp(part, staleHole(budget));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t// Hold `[start, end)` as given up by `drop`, its stale budget included, so it is never asked again\n\t// unless a budget wider than that takes it back. Mirrors the Rust `Misses::hold_verdict`.\n\t#adopt(start: bigint, end: bigint, drop: Hole): void {\n\t\tif (start >= end) return;\n\t\tconst hole: Hole = { reason: drop.reason };\n\t\tif (drop.maxAge !== undefined) hole.maxAge = drop.maxAge;\n\t\tif (drop.cap !== undefined) hole.cap = drop.cap;\n\t\tthis.#adopted = insertDrop(this.#adopted, start, end, hole);\n\t}\n\n\t// Keep a run the key cursor gave up, once the drop record started, so a read reports it.\n\t#giveUp(run: Run, hole: Hole): void {\n\t\tif (this.#dropsSeen) this.#pending = insertDrop(this.#pending, run.start, run.end, hole);\n\t}\n\n\t// The runs of `[start, end)` this reader has a verdict on: a drop that settles it, or what its\n\t// own fills answered, a group or a refusal within its budget, or it gave up. A stale verdict that does not settle it\n\t// is none: the reader asks the group again, and only that answer counts. Mirrors the Rust\n\t// `Misses::unanswered`.\n\t#verdicts(start: bigint, end: bigint, drift: Drift, coverage: Coverage): Run[] {\n\t\tconst runs: Run[] = [];\n\t\tfor (const drop of this.#state.drops.overlapping(start, end)) {\n\t\t\tif (settles({ ...drop, start: max(drop.start, start) }, drift.budget, coverage)) {\n\t\t\t\tinsertRun(runs, drop.start, drop.end);\n\t\t\t}\n\t\t}\n\t\tfor (const run of this.#confirmedRefusals(start, end, this.#refusalFeed())) {\n\t\t\tif (run.start < end && start < run.end) insertRun(runs, run.start, run.end);\n\t\t}\n\t\tfor (const run of intersect(this.#givenUp, start, end)) insertRun(runs, run.start, run.end);\n\t\tfor (const verdict of intersectDrops(this.#adopted, start, end)) {\n\t\t\tif (settles(verdict, drift.budget, coverage)) insertRun(runs, verdict.start, verdict.end);\n\t\t}\n\t\tconst timeline = this.#state.timeline;\n\t\tfor (let i = lowerBound(timeline, start); i < timeline.length && timeline[i].start < end; i++) {\n\t\t\tconst group = timeline[i];\n\t\t\tif (!hooks.groupFailed(group)) insertRun(runs, group.start, group.start + 1n);\n\t\t}\n\t\treturn runs;\n\t}\n\n\t// In order, the group an unresolved time start resolves to comes first: it starts at or before that\n\t// time, below `key`, and may still land at or past the read's floor `start`, until the budget\n\t// gives up on it as on an owed group. Its landing, the answer placing the start, or that verdict\n\t// wakes the read; a closed track places the start.\n\t// Mirrors the Rust `Cursor::poll_time_start`.\n\t#waitTimeStart(start: bigint, key: bigint, drift: Drift): boolean {\n\t\tconst producer = this.#state.producer;\n\t\tlet waits = false;\n\t\tconst coverage = this.#coverage();\n\t\tfor (const time of this.#window.unresolvedIn(start, key)) {\n\t\t\tif (producer && wireFed(producer)) {\n\t\t\t\t// With every key from the floor through the time accounted for, a group still to come\n\t\t\t\t// containing it lies below the floor, which the read never hands out.\n\t\t\t\tconst open = unaccounted(producer, start, time + 1n, (from, to) =>\n\t\t\t\t\tthis.#verdicts(from, to, drift, coverage),\n\t\t\t\t);\n\t\t\t\tif (open === undefined) continue;\n\t\t\t\tif (open.folds !== undefined) this.#wakeAt(open.folds.since(Instant.ZERO).asNanos());\n\t\t\t}\n\t\t\t// Its range had no group to deliver, so the feed lands none of it. Its successor is this\n\t\t\t// group's or one below: the group containing the time is judged as an owed group at it would be.\n\t\t\tif (producer && answeredEmpty(producer, time)) continue;\n\t\t\tif (this.#staleAt(time, drift, true)) continue;\n\t\t\twaits = true;\n\t\t}\n\t\tif (waits) this.#state.waitingOrdered = true;\n\t\treturn waits;\n\t}\n\n\t// A missing group the subscription still owes holds sequence order until it lands,\n\t// is accounted for, or the same drift budget as a buffered group gives up on it.\n\t#waitOwed(start: bigint, end: bigint, drift: Drift): boolean {\n\t\tconst producer = this.#state.producer;\n\t\tif (start >= end || !producer) return false;\n\t\tlet owes = false;\n\t\t// The gap's first owed group stands for the rest only under its own budget, so each stretch\n\t\t// under another is judged by its own first.\n\t\tfor (const [part] of drift.budget.runs(start, end)) {\n\t\t\tconst owed = this.#firstOwed(producer, part.start, part.end);\n\t\t\tif (!owed) continue;\n\t\t\towes = true;\n\t\t\tif (this.#holdsOrder(owed, drift)) return true;\n\t\t}\n\t\tif (owes) return false;\n\t\t// A fill still owes a group below, which lands as a group does. Its staleness deadline wakes\n\t\t// the cursor too, so a fill that never answers cannot pin it.\n\t\tif (this.#askFills(start, end, drift) === undefined) return false;\n\t\tthis.#state.waitingOrdered = true;\n\t\treturn true;\n\t}\n\n\t// Whether a missing group the subscription owes in `[start, end)` under a budget wider than\n\t// `than` still holds sequence order: a stale group above it passes only the owed groups its own\n\t// budget gives up.\n\t#waitWider(start: bigint, end: bigint, drift: Drift, than: number): boolean {\n\t\tconst producer = this.#state.producer;\n\t\tif (!producer) return false;\n\t\tfor (const [part, budget] of drift.budget.runs(start, end)) {\n\t\t\tif (budget <= than) continue;\n\t\t\tconst owed = this.#firstOwed(producer, part.start, part.end);\n\t\t\tif (owed && this.#holdsOrder(owed, drift)) return true;\n\t\t}\n\t\treturn false;\n\t}\n\n\t// The first missing group in `[start, end)` the live feed still owes this reader: only a hole in\n\t// its ranges is owed to it.\n\t#firstOwed(producer: Producer, start: bigint, end: bigint): { key: bigint; folds?: Instant } | undefined {\n\t\tfor (const run of this.#window.runs(start, end)) {\n\t\t\tconst owed = owedGroup(producer, run.start, run.end);\n\t\t\tconst unconfirmed = this.#unconfirmedRefusal(run.start, owed?.key ?? run.end);\n\t\t\tif (unconfirmed !== undefined) return { key: unconfirmed };\n\t\t\tif (owed) return owed;\n\t\t}\n\t\treturn undefined;\n\t}\n\n\t// Whether the owed group `owed` still holds sequence order within its budget, waking the read\n\t// when that may change.\n\t#holdsOrder(owed: { key: bigint; folds?: Instant }, drift: Drift): boolean {\n\t\tif (this.#staleAt(owed.key, drift, true)) return false;\n\t\tif (owed.folds !== undefined) this.#wakeAt(owed.folds.since(Instant.ZERO).asNanos());\n\t\tthis.#state.waitingOrdered = true;\n\t\treturn true;\n\t}\n\n\t// The first buffered candidate in range that the budget spares: the lowest for an ordered\n\t// take, else the first in the subscription's Group Order, as #tryRecvGroup picks it. An ordered\n\t// take may still wait on an owed hole below it, so a resumed reader must keep its place. An\n\t// arrival take passes a group missing its head, so its peek does too: a resumed reader picks\n\t// across copies by what each offers.\n\t#peekGroup(ordered: boolean): bigint | undefined {\n\t\tif (this.#resume) return this.#resume.peek(ordered, this.#delivered);\n\t\tthis.#settle();\n\t\tconst cursor = this.#cursor.peek();\n\t\tconst start = ordered ? max(cursor.start, this.#nextKey) : cursor.start;\n\t\tconst drift = this.#drift();\n\t\t// What a widened budget offers again, as the arrival take does first.\n\t\tif (!ordered) this.#reoffer(drift.budget);\n\t\tconst groups = this.#state.groups.peek();\n\t\tconst offers = (group: GroupConsumer) =>\n\t\t\t!this.#delivered.has(group.start) &&\n\t\t\t!this.#staleAt(group.start, drift) &&\n\t\t\t(ordered || !this.#lacksHead(group));\n\t\tif (!ordered && this.#state.update.policy().order !== \"ascending\") {\n\t\t\tlet index = lowerBound(groups, cursor.end ?? UNBOUNDED) - 1;\n\t\t\twhile (index >= 0 && groups[index].start >= start) {\n\t\t\t\tconst group = groups[index];\n\t\t\t\tif (!this.#window.contains(group.start)) {\n\t\t\t\t\tindex = this.#pastExcluded(groups, group.start, false);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (offers(group)) return group.start;\n\t\t\t\tindex--;\n\t\t\t}\n\t\t\treturn undefined;\n\t\t}\n\t\tlet index = lowerBound(groups, start);\n\t\twhile (index < groups.length) {\n\t\t\tconst group = groups[index];\n\t\t\tif (cursor.end !== undefined && group.start >= cursor.end) return undefined;\n\t\t\tif (!this.#window.contains(group.start)) {\n\t\t\t\tindex = this.#pastExcluded(groups, group.start, true);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (offers(group)) {\n\t\t\t\tif (ordered && this.#waitTimeStart(start, group.start, drift)) return undefined;\n\t\t\t\treturn group.start;\n\t\t\t}\n\t\t\tindex++;\n\t\t}\n\t\treturn undefined;\n\t}\n\n\t// The synchronous half of #nextGroup. A group at or past `admit` stays next, and the read reports\n\t// idle, as the Rust `Subscriber::poll_group_in` refuses one outside its bounds.\n\t#tryNextGroup(admit?: bigint): Recv {\n\t\tconst recv = this.#resume ? this.#tryResumed(true, false, admit) : this.#tryNextBuffered(admit);\n\t\t// One cursor: the frame helpers must not keep draining a group this read just\n\t\t// moved past, or interleaved reads would run backwards.\n\t\tif (recv.kind === \"group\" && this.#frameGroup && this.#frameGroup.start < recv.group.start) {\n\t\t\tthis.#frameGroup.close();\n\t\t\tthis.#frameGroup = undefined;\n\t\t}\n\t\treturn recv;\n\t}\n\n\t#tryNextBuffered(admit?: bigint): Recv {\n\t\tconst refused = this.#settle();\n\t\tif (refused) return { kind: \"error\", error: refused, refused: true };\n\t\tthis.#state.waitingOrdered = false;\n\t\tthis.#fillWait = false;\n\t\tconst groups = this.#state.groups.peek();\n\t\tconst cursor = this.#cursor.peek();\n\t\tlet start = max(cursor.start, this.#nextKey);\n\t\t// A group landing after the read passed its key is old: the read never goes back.\n\t\tfor (let group = groups[0]; group && group.start < start; group = groups[0]) {\n\t\t\tgroups.shift();\n\t\t\tgroup.close();\n\t\t\t// The record tells nothing twice, so a key already handed out or given up stays told.\n\t\t\tthis.#giveUp({ start: group.start, end: group.start + 1n }, late());\n\t\t}\n\t\t// One anchor for the whole pass, so walking a backlog off stays linear.\n\t\tconst drift = this.#drift();\n\n\t\tfor (let index = 0; ; ) {\n\t\t\tconst group = groups[index];\n\t\t\tif (!group || (cursor.end !== undefined && group.start >= cursor.end)) break;\n\t\t\t// Refused: it stays next, unjudged, so nothing behind it is passed either, not even as\n\t\t\t// stale or headless.\n\t\t\tif (admit !== undefined && group.start >= admit) return { kind: \"idle\" };\n\t\t\t// Out of range for now, but kept until the cursor passes it: an anchor still\n\t\t\t// resolving, or an update widening the ranges, may take it in.\n\t\t\tif (!this.#window.contains(group.start)) {\n\t\t\t\tindex++;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t// Every frame this group could still hold is past the budget, so keep\n\t\t\t// scanning: one pass walks a whole backlog off rather than replaying it.\n\t\t\tconst stale = this.#stale(group.start, drift);\n\t\t\tif (stale) {\n\t\t\t\t// Passing it passes the owed keys below it too, which the budget gives up with it, but\n\t\t\t\t// for one a wider budget still holds, and for the group a time start below it resolves\n\t\t\t\t// to, judged by its own budget.\n\t\t\t\tif (this.#waitTimeStart(start, group.start, drift)) return { kind: \"idle\" };\n\t\t\t\tif (this.#waitWider(start, group.start, drift, drift.budget.at(group.start))) return { kind: \"idle\" };\n\t\t\t\tthis.#passOwed(start, group.start, drift);\n\t\t\t\tthis.#giveUp(\n\t\t\t\t\t{ start: group.start, end: group.start + 1n },\n\t\t\t\t\tstaleHole(namedFor(drift, group.start, stale)),\n\t\t\t\t);\n\t\t\t\tconst passed = this.#nextKey;\n\t\t\t\tthis.#pass(groups, index);\n\t\t\t\t// The cursor passed what lies below it, which a fill no longer owes this reader.\n\t\t\t\tthis.#stoppedReading(passed, this.#nextKey);\n\t\t\t\t// Holes below a skipped group are undeliverable, even ones the wall clock\n\t\t\t\t// still spares because their successor arrived late.\n\t\t\t\tstart = this.#nextKey;\n\t\t\t\tindex = 0;\n\t\t\t\tgroup.close();\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (this.#waitTimeStart(start, group.start, drift)) return { kind: \"idle\" };\n\t\t\tif (this.#waitOwed(start, group.start, drift)) return { kind: \"idle\" };\n\t\t\t// A group missing its head comes from the fill asked for it, in its turn.\n\t\t\tif (this.#lacksHead(group)) {\n\t\t\t\tif (this.#askHead(group.start)) {\n\t\t\t\t\t// Its staleness deadline wakes the cursor, as for any owed hole.\n\t\t\t\t\tthis.#fillWait = true;\n\t\t\t\t\treturn { kind: \"idle\" };\n\t\t\t\t}\n\t\t\t\t// Given up: past it, as past any group no fill can serve, and the owed keys below it.\n\t\t\t\tthis.#passOwed(start, group.start, drift);\n\t\t\t\tthis.#giveUp({ start: group.start, end: group.start + 1n }, headless());\n\t\t\t\tconst passed = this.#nextKey;\n\t\t\t\tthis.#pass(groups, index);\n\t\t\t\tthis.#stoppedReading(passed, this.#nextKey);\n\t\t\t\tstart = this.#nextKey;\n\t\t\t\tindex = 0;\n\t\t\t\tgroup.close();\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tthis.#passOwed(start, group.start, drift);\n\t\t\tthis.#pass(groups, index);\n\t\t\tthis.#handOut(group.start, true);\n\t\t\treturn { kind: \"group\", group: this.#guard(group) };\n\t\t}\n\n\t\tconst closed = this.#state.closed.peek();\n\t\tif (closed instanceof Error) return { kind: \"error\", error: closed };\n\t\t// A clean close completes this range, retaining groups a later cap raise can read.\n\t\tif (closed !== undefined) return this.#done();\n\t\t// Nothing buffered: ask a fill for what this reader misses, and wait while one owes it.\n\t\tif (this.#askFills(start, cursor.end ?? UNBOUNDED, drift) !== undefined) {\n\t\t\t// Its staleness deadline wakes the cursor, as for any owed hole.\n\t\t\tthis.#state.waitingOrdered = true;\n\t\t\treturn { kind: \"idle\" };\n\t\t}\n\t\tconst end = this.#state.end.peek()?.at;\n\t\t// A time start still looked up may yet take in a group held already.\n\t\tif (this.#window.lookups().length > 0 || this.#awaitsTimeAnswer()) return { kind: \"idle\" };\n\t\tif (this.#exhausted()) {\n\t\t\tthis.#passEnd();\n\t\t\treturn { kind: \"done\" };\n\t\t}\n\t\tif (\n\t\t\t!this.#parked(groups) &&\n\t\t\t!this.#starting(groups, start) &&\n\t\t\t(this.#complete() || (end !== undefined && start >= finalKey(end)))\n\t\t) {\n\t\t\treturn this.#done();\n\t\t}\n\t\treturn { kind: \"idle\" };\n\t}\n\n\t/**\n\t * Reads the next frame across groups, in sequence order, with its group and frame numbers.\n\t * Treat the returned frame bytes as read-only; they are shared with other consumers.\n\t *\n\t * Groups are acquired through the same key cursor as {@link Ordered.nextGroup},\n\t * so frames never run backwards: a late lower-key group is skipped, and so is\n\t * one every frame of which its live range's {@link Live.max} proves is too old. A group that\n\t * fails, for any reason, is a gap the cursor reads past, resyncing from the next group; only\n\t * the track's own end throws.\n\t */\n\tasync #readFrame(): Promise<({ group: bigint; frame: number } & Frame) | undefined> {\n\t\tfor (;;) {\n\t\t\tif (!this.#frameGroup) {\n\t\t\t\tthis.#frameGroup = await this.#nextGroup();\n\t\t\t\tif (!this.#frameGroup) return undefined;\n\t\t\t}\n\t\t\tconst group = this.#frameGroup;\n\n\t\t\tlet next: ({ index: number } & Frame) | undefined;\n\t\t\ttry {\n\t\t\t\tnext = await group.readFrameIndex();\n\t\t\t} catch {\n\t\t\t\t// A failed group is that group's gap: resync from the next one. Only the track's\n\t\t\t\t// own abort ends the read.\n\t\t\t\tthis.#frameGroup = undefined;\n\t\t\t\tgroup.close();\n\t\t\t\tconst closed = this.#state.closed.peek();\n\t\t\t\tif (closed instanceof Error) throw closed;\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tif (next) {\n\t\t\t\treturn {\n\t\t\t\t\tgroup: group.start,\n\t\t\t\t\tframe: next.index,\n\t\t\t\t\tpayload: next.payload,\n\t\t\t\t\ttimestamp: next.timestamp,\n\t\t\t\t};\n\t\t\t}\n\n\t\t\t// The group is exhausted (or the budget abandoned its stall); move on.\n\t\t\tthis.#frameGroup = undefined;\n\t\t\tgroup.close();\n\t\t}\n\t}\n\n\t/**\n\t * Read this track's groups in sequence order instead of arrival order.\n\t *\n\t * Both cursors draw from the same buffer, so a track is read one way or the other: this\n\t * hands the subscription to the returned {@link Ordered} and leaves this handle inert.\n\t * {@link recvGroup} throw afterwards. Throws once a\n\t * {@link recvGroup} call has already committed the track to arrival order.\n\t *\n\t */\n\tordered(): Ordered {\n\t\tif (this.#mode === \"ordered\") throw new Error(\"track is already read in sequence order\");\n\t\tif (this.#mode === \"arrival\") throw new Error(\"track is already read in arrival order\");\n\t\tthis.#mode = \"ordered\";\n\t\treturn makeOrdered(this);\n\t}\n\n\t/**\n\t * Ask the publisher for a group starting after the newest one this node holds, judged by the\n\t * track's {@link Info.refresh}, resolving once the request is sent. Mirrors the Rust\n\t * `Subscriber::refresh`.\n\t *\n\t * The request is made now. It is sent once the newest group is old enough, when whatever\n\t * serves this node's copy reads it: the session forwarding it upstream, or a local publisher\n\t * watching {@link Demand.refresh}. Concurrent requests coalesce into one, and all of them\n\t * resolve when it is sent. Aborting `options.signal` before then withdraws this caller's\n\t * request and rejects with the signal's reason; one already sent stays sent. It resolves at\n\t * once when there is nothing to send: a track that does not refresh, a ratio the newest group\n\t * is under, a track with no group yet (whose first is already asked for), or a request\n\t * already sent. It also resolves when a newer group lands first, which answers it. It rejects\n\t * if the track closes before then. A resumed reader asks the copy serving it, and asks the next\n\t * one if that copy closes first.\n\t *\n\t * The answer arrives like any other group: the first group this subscriber receives that\n\t * starts after the newest held when it was called. A group already on its way when the\n\t * request reached the publisher answers it, so across hops \"made after this call\" is best\n\t * effort; a reader that needs that puts its own marker in the frame.\n\t */\n\trefresh(options?: RefreshOptions): Promise<void> {\n\t\tif (this.#resume) return this.#resume.refresh(options?.signal);\n\t\tconst producer = this.#state.producer;\n\t\tif (options?.signal?.aborted) return Promise.reject(options.signal.reason);\n\t\treturn producer ? hooks.requestProducer(producer, options?.signal) : Promise.resolve();\n\t}\n\n\t// Note each live join range keyed in `since` as added at its tick instead, as a front's reader\n\t// stamps the copy it asks with the tick it added the range at, so an answer the copy recorded\n\t// since then places it, even one recorded before this subscription. Mirrors the Rust\n\t// `Preferences::stamp`.\n\t#stamp(since: Iterable<readonly [bigint, number]>): void {\n\t\tif (this.#resume) return;\n\t\tconst update = this.#state.update;\n\t\tconst moved = update.stamp(since);\n\t\tif (moved.length === 0 || this.#refusal) return;\n\t\tconst stamped = moved.map((key) => [key, update.since(key)] as const);\n\t\tif (this.#window.stamp(stamped, this.#latestGroup(), this.#holdings())) this.#moved();\n\t\telse this.#ask();\n\t}\n\n\t// Edit the ranges by key, as `hooks.editSubscriber` does: only the ranges it adds resolve, and\n\t// every other stays where it resolved. Mirrors the Rust `Subscriber::edit`.\n\t#edit(edit: Edit): void {\n\t\tconst add = edit.add.map(([key, range]) => [key, rangesOf([range])[0]] as const);\n\t\tconst order = this.#state.update.policy().order;\n\t\tconst moved = this.#state.update.edit({ retire: edit.retire, add, placed: edit.placed });\n\t\tconst reordered = order !== this.#state.update.policy().order;\n\t\t// A refused time start resolves every range again, as the Rust `Filter::stale` has it.\n\t\tif (moved && this.#refusal) this.#resolve();\n\t\telse if (\n\t\t\tmoved &&\n\t\t\tthis.#window.edit(edit.retire, add, this.#latestGroup(), this.#holdings(), (key) =>\n\t\t\t\tthis.#state.update.joining(key),\n\t\t\t)\n\t\t) {\n\t\t\t// Leaves the lookups the retired ranges asked, which a settled window never reads again.\n\t\t\tif (this.#lookups.length > 0) this.#lookUp();\n\t\t\tthis.#moved();\n\t\t} else this.#ask();\n\t\t// A fill's order follows its readers, so its handler wakes to serve the new first group.\n\t\tif (reordered) this.#fillsMoved();\n\t}\n\n\t/**\n\t * Update this subscription's options (e.g. a range's priority), triggering a SUBSCRIBE_UPDATE to the\n\t * publisher. Replacing the ranges resolves them again, without redelivering a group read\n\t * while they held it throughout; ranges replaced off a group may forget it, so ranges holding\n\t * it again may hand it out again, as a new subscription would. An arrival reader can receive\n\t * the unread groups it still holds that the new ranges take in. Changing only a live join's {@link Live.max} keeps where it joined.\n\t * Mirrors the Rust `Subscriber::update`.\n\t */\n\tupdate(options: Subscription) {\n\t\tthis.#update(options, true);\n\t}\n\n\t// {@link update}, keeping a live join whose max alone changed where it joined only with `retune`;\n\t// without, as a subscription restated whole, every range is placed afresh. Mirrors the Rust\n\t// `Subscriber::replace`.\n\t#update(options: Subscription, retune: boolean): void {\n\t\tconst subscription = subscriptionDefaults(options);\n\t\tconst order = this.#state.update.policy().order;\n\t\tconst replaced = this.#state.update.set(subscription, retune);\n\t\tconst reordered = order !== this.#state.update.policy().order;\n\t\tif (replaced === \"replaced\" || (replaced && this.#refusal)) this.#resolve();\n\t\telse if (\n\t\t\t// Only a policy or a live join's max changed: each keeps where it resolved.\n\t\t\treplaced &&\n\t\t\tthis.#window.edit([], replaced, this.#latestGroup(), this.#holdings(), (key) =>\n\t\t\t\tthis.#state.update.joining(key),\n\t\t\t)\n\t\t)\n\t\t\tthis.#moved();\n\t\telse this.#ask();\n\t\t// A fill's order follows its readers, so its handler wakes to serve the new first group.\n\t\tif (reordered) this.#fillsMoved();\n\t}\n}\n\n/**\n * A {@link Subscriber} that reads groups in sequence order.\n *\n * Created by {@link Subscriber.ordered}, which takes the subscription over: the two\n * cursors draw from one buffer, so a track is read one way or the other and never both.\n * Every group this returns has a higher key than the last, so a late arrival is\n * reported as a gap rather than delivered out of turn, as is every group the read gives up on\n * (see {@link Ordered.nextGroup}).\n *\n * A live range's {@link Live.max} applies as this cursor reads, exactly as it does on the arrival cursor: a\n * group is skipped once its reach, where its immediate successor begins, is that far\n * behind the newest frame on the track. Nothing weaker convicts it, since the reach is\n * the only proof that every frame it could still hold is past the budget, so a backlog\n * inside the budget is still delivered whole, as a burst in order. The budget follows a\n * group already handed out too: a stalled group's pending frame read rejects once newer\n * content has pulled that far ahead.\n *\n * A history or VOD read asks a key range, which never goes stale. A subscribed track waits for a\n * missing group the feed still owes, within the budget, or until it resolves without one.\n * Local tracks skip missing groups. An unlimited or long budget\n * only avoids blocking where the feed signals its gaps: moq-lite, whose publisher sends\n * `SUBSCRIBE_DROP` for every group it won't deliver, or an ordered moq-transport FETCH.\n * Over a moq-transport SUBSCRIBE, which signals no gaps, that wait can last until the\n * track ends.\n */\nexport class Ordered {\n\t/** The track name. */\n\treadonly name: string;\n\n\t#subscriber: Subscriber;\n\n\tprivate constructor(subscriber: Subscriber) {\n\t\tthis.name = subscriber.name;\n\t\tthis.#subscriber = subscriber;\n\t}\n\n\tstatic {\n\t\tmakeOrdered = (subscriber) => new Ordered(subscriber);\n\t}\n\n\t/** Resolve this track's immutable publisher properties; see {@link Subscriber.info}. */\n\t// fallow-ignore-next-line unused-class-member\n\tinfo(): Promise<Info> {\n\t\treturn this.#subscriber.info();\n\t}\n\n\t/** Settles once the track closes; see {@link Producer.closed}. */\n\tget closed(): GetPromise<Error | null> {\n\t\treturn this.#subscriber.closed;\n\t}\n\n\t/** This subscriber's current options, including defaults and the last {@link update}. */\n\tget subscription(): Getter<Subscription | undefined> {\n\t\treturn this.#subscriber.subscription;\n\t}\n\n\t/** The largest location; see {@link Subscriber.largest}. */\n\tlargest(): Promise<Position | undefined> {\n\t\treturn this.#subscriber.largest();\n\t}\n\n\t/** Resolve with the track's exclusive end once known; see {@link Subscriber.finished}. */\n\tfinished(): Promise<Position> {\n\t\treturn this.#subscriber.finished();\n\t}\n\n\t/**\n\t * Whether the publisher declared every start in `[start, end)` skipped, never to be produced\n\t * (which {@link Producer.appendGroup} does between groups), so no group can arrive there: true\n\t * for an empty range. Unlike the gaps, this ignores the ranges. A copy knows only the skips its\n\t * wire forwarded.\n\t *\n\t * What tells a reader that nothing lies between two groups, or before a track's first. It\n\t * knows only the skips recorded so far, so `false` means \"not known skipped\": a skip still in\n\t * flight reads `false`, as does one a local producer's cache expired below its edge. Mirrors\n\t * the Rust `Ordered::is_skipped`.\n\t */\n\tisSkipped(start: bigint, end: bigint): boolean {\n\t\treturn this.#subscriber.isSkipped(start, end);\n\t}\n\n\t/**\n\t * Limit subsequent reads to these groups and return this reader for chaining; see\n\t * {@link Subscriber.withRange}. An ordered read never goes back, so lowering the floor\n\t * below a group it already returned offers nothing, not even a gap it passed while the\n\t * range left it out.\n\t *\n\t * @internal Wire layers only: a local filter wastes the bandwidth of what it drops.\n\t */\n\twithRange(groups: Groups): this {\n\t\tthis.#subscriber.withRange(groups);\n\t\treturn this;\n\t}\n\n\t/** Update this subscription's options; see {@link Subscriber.update}. */\n\tupdate(options: Subscription) {\n\t\tthis.#subscriber.update(options);\n\t}\n\n\t/** Ask for a group newer than the newest held; see {@link Subscriber.refresh}. */\n\trefresh(options?: RefreshOptions): Promise<void> {\n\t\treturn this.#subscriber.refresh(options);\n\t}\n\n\t/** Close the track (optionally with an error), closing any pending groups. Idempotent. */\n\tclose(abort?: Error) {\n\t\tthis.#subscriber.close(abort);\n\t}\n\n\t/**\n\t * Return the next group with a strictly-greater sequence number than the last returned,\n\t * passing any gap {@link nextItem} would report below it. Mirrors the Rust `next_group`.\n\t *\n\t * Late arrivals (key at or below the last returned) are silently skipped, as is a\n\t * group a live range reached whose every frame is further behind the live edge than its\n\t * {@link Live.max} (the default\n\t * subscription's zero keeps only what nothing newer has superseded). Like {@link Subscriber.recvGroup}, a read whose ranges all end\n\t * finishes once nothing in them is left to deliver; on a local track that includes a key\n\t * below a group the producer created, which this read hands out first. Later reads return `undefined`\n\t * immediately too; widening the ranges with {@link update} reads on above the end the read\n\t * passed (or the cap, when that was lower), so a group created below that end afterward is\n\t * never handed out.\n\t */\n\tnextGroup(): Promise<GroupConsumer | undefined> {\n\t\treturn ordered_.nextGroup(this.#subscriber);\n\t}\n\n\t/**\n\t * Take the next group as {@link nextGroup} would, without waiting: `undefined` when nothing\n\t * is deliverable right now, which is not by itself the end of the track. Mirrors the Rust\n\t * `poll_next_group`.\n\t */\n\ttryNextGroup(): GroupConsumer | undefined {\n\t\tfor (;;) {\n\t\t\tconst item = this.tryNextItem();\n\t\t\tif (item?.kind !== \"gap\") return item?.group;\n\t\t}\n\t}\n\n\t/**\n\t * The next group, as {@link nextGroup} returns it, or a gap this reader gave up on below it.\n\t * Mirrors the Rust `next_item` and its `Item`.\n\t *\n\t * A gap is every group the publisher or a relay dropped, the transport evicted, a {@link Live.max}\n\t * aged out, a fill could not find, or that landed after the read passed its key. It carries\n\t * the keys it spans and is returned once, after any group the read still owes below it and\n\t * before the next group above it, or when the track ends. Keys the publisher declared skipped\n\t * were never groups, so they are no gap, and nor is a key a local track never produced.\n\t * Unlike Rust, nor is a group a local track produces after the read moved past its key: the\n\t * read keeps no record below where it is, so its memory stays bounded. A session-fed track\n\t * reports such a key at the latest when the read passes it.\n\t */\n\tnextItem(): Promise<Item | undefined> {\n\t\treturn ordered_.nextItem(this.#subscriber);\n\t}\n\n\t/**\n\t * Take the next item as {@link nextItem} would, without waiting: `undefined` when nothing\n\t * is ready right now, which is not by itself the end of the track. Mirrors the Rust\n\t * `poll_next_item`.\n\t */\n\ttryNextItem(): Item | undefined {\n\t\tconst recv = ordered_.tryItem(this.#subscriber);\n\t\tswitch (recv.kind) {\n\t\t\tcase \"group\":\n\t\t\tcase \"gap\":\n\t\t\t\treturn recv;\n\t\t\tcase \"error\":\n\t\t\t\tthrow recv.error;\n\t\t\tcase \"done\":\n\t\t\t\treturn undefined;\n\t\t\tdefault:\n\t\t\t\treturn undefined;\n\t\t}\n\t}\n\n\t/**\n\t * Read the next frame across groups, in sequence order, with its group and frame numbers.\n\t *\n\t * Rides the same cursor as {@link nextGroup} and shares this handle's contract: a\n\t * buffered backlog is drained in full up to the point a {@link Live.max} proves it useless.\n\t * A group that fails is a gap this read continues past, so it throws only once the track\n\t * itself ends with an error; read with {@link nextItem} and each group's own `readFrame` to\n\t * learn why a group failed. Treat the returned frame bytes as read-only; they are shared with\n\t * other consumers.\n\t */\n\treadFrame(): Promise<({ group: bigint; frame: number } & Frame) | undefined> {\n\t\treturn ordered_.readFrame(this.#subscriber);\n\t}\n}\n"]}
|