@moq/net 0.4.8 → 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 -1
- package/announce.js.map +1 -1
- package/announced.d.ts +51 -47
- package/announced.d.ts.map +1 -1
- package/announced.js +183 -31
- 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 -138
- 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 -1
- package/bandwidth_api.js.map +1 -1
- package/broadcast.d.ts +62 -36
- package/broadcast.d.ts.map +1 -1
- package/broadcast.js +556 -172
- 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 +20 -12
- package/connection/accept.d.ts.map +1 -1
- package/connection/accept.js +97 -129
- package/connection/accept.js.map +1 -1
- package/connection/browser.d.ts.map +1 -1
- package/connection/browser.js +28 -19
- package/connection/browser.js.map +1 -1
- package/connection/connect.d.ts +119 -23
- package/connection/connect.d.ts.map +1 -1
- package/connection/connect.js +535 -216
- 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 -80
- 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 -108
- package/connection/goaway.js.map +1 -1
- package/connection/handshake.d.ts +32 -6
- package/connection/handshake.d.ts.map +1 -1
- package/connection/handshake.js +97 -20
- package/connection/handshake.js.map +1 -1
- package/connection/index.d.ts +3 -6
- package/connection/index.d.ts.map +1 -1
- package/connection/index.js +1 -2
- 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 +137 -58
- package/connection/pool.d.ts.map +1 -1
- package/connection/pool.js +281 -117
- 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 -233
- 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 -8
- 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 -4
- 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 -46
- 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 -1
- 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 -37
- package/error.js.map +1 -1
- package/errors.d.ts +2 -2
- package/errors.d.ts.map +1 -1
- package/errors.js +2 -2
- 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 -307
- 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 -64
- 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 -35
- package/ietf/aliases.js.map +1 -1
- package/ietf/cluster.d.ts +3 -3
- package/ietf/cluster.js +14 -62
- 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 -143
- 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 -100
- package/ietf/error.js.map +1 -1
- package/ietf/fetch.d.ts +91 -35
- package/ietf/fetch.d.ts.map +1 -1
- package/ietf/fetch.js +172 -93
- package/ietf/fetch.js.map +1 -1
- package/ietf/filter.d.ts +20 -30
- package/ietf/filter.d.ts.map +1 -1
- package/ietf/filter.js +140 -171
- package/ietf/filter.js.map +1 -1
- package/ietf/goaway.d.ts +11 -9
- package/ietf/goaway.d.ts.map +1 -1
- package/ietf/goaway.js +22 -35
- package/ietf/goaway.js.map +1 -1
- package/ietf/hidden.js +1 -1
- package/ietf/hidden.js.map +1 -1
- package/ietf/index.d.ts +2 -14
- package/ietf/index.d.ts.map +1 -1
- package/ietf/index.js +4 -14
- 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 -40
- 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 +17 -3
- package/ietf/namespace.d.ts.map +1 -1
- package/ietf/namespace.js +78 -26
- package/ietf/namespace.js.map +1 -1
- package/ietf/object.d.ts +194 -32
- package/ietf/object.d.ts.map +1 -1
- package/ietf/object.js +405 -178
- package/ietf/object.js.map +1 -1
- package/ietf/parameters.d.ts +22 -42
- package/ietf/parameters.d.ts.map +1 -1
- package/ietf/parameters.js +260 -472
- 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 -4
- package/ietf/priority.js.map +1 -1
- package/ietf/properties.d.ts +5 -4
- package/ietf/properties.d.ts.map +1 -1
- package/ietf/properties.js +78 -48
- package/ietf/properties.js.map +1 -1
- package/ietf/publish.d.ts +22 -30
- package/ietf/publish.d.ts.map +1 -1
- package/ietf/publish.js +45 -139
- package/ietf/publish.js.map +1 -1
- package/ietf/publish_namespace.d.ts +46 -69
- package/ietf/publish_namespace.d.ts.map +1 -1
- package/ietf/publish_namespace.js +66 -184
- package/ietf/publish_namespace.js.map +1 -1
- package/ietf/publisher.js +1800 -600
- 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 +3 -27
- package/ietf/request.d.ts.map +1 -1
- package/ietf/request.js +41 -78
- 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 -16
- 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 +4 -29
- package/ietf/setup.d.ts.map +1 -1
- package/ietf/setup.js +6 -117
- 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 -14
- package/ietf/solicit.js.map +1 -1
- package/ietf/subscribe.d.ts +48 -41
- package/ietf/subscribe.d.ts.map +1 -1
- package/ietf/subscribe.js +118 -239
- package/ietf/subscribe.js.map +1 -1
- package/ietf/subscribe_namespace.d.ts +13 -76
- package/ietf/subscribe_namespace.d.ts.map +1 -1
- package/ietf/subscribe_namespace.js +30 -201
- package/ietf/subscribe_namespace.js.map +1 -1
- package/ietf/subscriber.js +1839 -536
- package/ietf/subscriber.js.map +1 -1
- package/ietf/token.js +105 -27
- package/ietf/token.js.map +1 -1
- package/ietf/track.d.ts +25 -22
- package/ietf/track.d.ts.map +1 -1
- package/ietf/track.js +48 -61
- 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 -48
- 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 +25 -10
- package/index.d.ts.map +1 -1
- package/index.js +19 -6
- package/index.js.map +1 -1
- package/internal.d.ts +1512 -64
- package/internal.d.ts.map +1 -1
- package/internal.js +557 -79
- 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 +124 -63
- package/lite/announce.d.ts.map +1 -1
- package/lite/announce.js +384 -158
- 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 -77
- 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 -9
- 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 +1 -1
- package/lite/goaway.d.ts.map +1 -1
- package/lite/goaway.js +5 -13
- package/lite/goaway.js.map +1 -1
- package/lite/group.d.ts +64 -13
- package/lite/group.d.ts.map +1 -1
- package/lite/group.js +108 -30
- 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 +2 -1
- package/lite/index.d.ts.map +1 -1
- package/lite/index.js +2 -1
- package/lite/index.js.map +1 -1
- package/lite/message.d.ts +9 -1
- package/lite/message.d.ts.map +1 -1
- package/lite/message.js +28 -44
- 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 -105
- package/lite/priority.js.map +1 -1
- package/lite/probe.d.ts.map +1 -1
- package/lite/probe.js +9 -0
- 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 -437
- 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 +1 -27
- package/lite/session.d.ts.map +1 -1
- package/lite/session.js +0 -99
- package/lite/session.js.map +1 -1
- package/lite/setup.d.ts +29 -2
- package/lite/setup.d.ts.map +1 -1
- package/lite/setup.js +95 -21
- 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 -1
- package/lite/stream.js.map +1 -1
- package/lite/subscribe.d.ts +475 -75
- package/lite/subscribe.d.ts.map +1 -1
- package/lite/subscribe.js +1373 -142
- 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 -515
- package/lite/subscriber.js.map +1 -1
- package/lite/track.d.ts +24 -9
- package/lite/track.d.ts.map +1 -1
- package/lite/track.js +116 -37
- 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 -33
- 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 +392 -140
- package/origin.d.ts.map +1 -1
- package/origin.js +2533 -686
- 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 -57
- 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 +75 -37
- package/stream.d.ts.map +1 -1
- package/stream.js +236 -92
- 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 -97
- package/tail.js.map +1 -1
- package/time.d.ts +41 -102
- package/time.d.ts.map +1 -1
- package/time.js +129 -91
- 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 +577 -245
- package/track.d.ts.map +1 -1
- package/track.js +7306 -771
- 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 -1
- 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 -4
- 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 -9
- 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/utf8.d.ts +2 -0
- package/util/utf8.d.ts.map +1 -1
- package/util/utf8.js +7 -1
- package/util/utf8.js.map +1 -1
- package/util/varint.d.ts.map +1 -1
- package/util/varint.js +8 -1
- 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 -28
- 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 +145 -30
- package/wire.d.ts.map +1 -1
- package/wire.js +27 -0
- 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 -2
- 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 -699
- 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 -43
- 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 -78
- 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 -16
- package/util/log.js.map +0 -1
- package/zod.d.ts +0 -13
- package/zod.d.ts.map +0 -1
- package/zod.js +0 -18
- package/zod.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth_session.js","sourceRoot":"","sources":["../src/auth_session.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAgB,GAAG,EAAE,KAAK,EAAa,IAAI,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC3F,OAAO,EAA8C,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAE9F,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,iBAAiB,EAAE,WAAW,EAAE,YA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AAK,CAAC,gEAAgE,IAAI,EAAE,CAAC,CAAC;oBACtF,IAAI,CAAC,KAAK,CAAC;wBACV,SAAS,EAAE,WAAW,CAAC,YAAY;wBACnC,MAAM,EAAE,WAAW,CAAC,iBAAiB,IAAI,EAAE,CAAC;qBAC5C,CAAC,CAAC;oBACH,OAAO,EAAE,CAAC;oBACV,OAAO;gBACR,CAAC;gBACD,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;YAChB,CAAC;QACF,CAAC;QAED,oFAAoF;QACpF,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC;QACvC,OAAO,EAAE,CAAC;QACV,IAAI,GAAG,KAAK,QAAQ;YAAE,OAAO;IAC9B,CAAC;AACF,CAAC","sourcesContent":["import { Duration, type Instant, now, sleep, type Wall, wall, yieldNow } from \"@moq/clock\";\nimport { type Dispose, type GetPromise, type Getter, Once, race, Signal } from \"@moq/signals\";\nimport type { Credential, Grant, Issued, Request, Requests } from \"./auth.ts\";\nimport { closeReason, error, ProtocolViolation, SessionCode, SessionError, StreamCode, StreamError } from \"./error.ts\";\nimport * as Path from \"./path.ts\";\nimport type { Reader, Stream, Writer } from \"./stream.ts\";\n\n/** Write a grant's prefixes as a count and each one's text, the encoding both wires' AUTH_OK share. @internal */\nexport async function encodePrefixes(w: Writer, prefixes: Path.Prefixes) {\n\tawait w.u53(prefixes.size);\n\tfor (const prefix of prefixes) await w.string(prefix.text);\n}\n\n/** Read a grant's prefixes, refusing any that is a wildcard or not a valid path. @internal */\nexport async function decodePrefixes(r: Reader): Promise<Path.Prefixes> {\n\tconst count = await r.u53();\n\tconst prefixes: Path.Prefix[] = [];\n\tfor (let i = 0; i < count; i++) prefixes.push(Path.Prefix.parse(await r.string()));\n\t// Sort and sweep once, so a peer's count costs n log n whatever its shape.\n\treturn new Path.Prefixes(prefixes);\n}\n\n/** Whether two grants allow the same paths and lapse together. */\nfunction grantsEqual(a: Grant | undefined, b: Grant | undefined): boolean {\n\tif (a === undefined || b === undefined) return a === b;\n\tconst expires =\n\t\ta.expires === undefined || b.expires === undefined ? a.expires === b.expires : a.expires.eq(b.expires);\n\treturn a.publish.equals(b.publish) && a.subscribe.equals(b.subscribe) && expires;\n}\n\n/** The session or peer carries no AUTH exchange, or takes no tokens in band. */\nexport class Unsupported extends Error {\n\t/** The moq-lite session code for this condition. */\n\t// fallow-ignore-next-line unused-class-member\n\treadonly code = SessionCode.Unsupported;\n\tconstructor(message = \"auth unsupported\") {\n\t\tsuper(message);\n\t\tthis.name = \"Unsupported\";\n\t}\n}\n\n/** A handle already backs a session that is open and not draining, or its requests were already taken. */\nexport class Duplicate extends Error {\n\tconstructor(message = \"auth handle already backs an active session\") {\n\t\tsuper(message);\n\t\tthis.name = \"Duplicate\";\n\t}\n}\n\n/**\n * How long a token refused for a reason that may pass waits before its session presents it\n * again, doubling on each refusal up to RETRY_MAX. A moq-transport refusal that may pass asks\n * its peer to wait as long.\n *\n * @internal\n */\nexport const RETRY_INITIAL = Duration.millis(1000);\nconst RETRY_MAX = Duration.millis(30_000);\n\n// Whether a token's stream ending with `result` is the peer's verdict on it: a final refusal,\n// Unsupported, or a clean close after a grant. Anything else left the token undecided.\nfunction isVerdict(refused: Refused | undefined, granted: boolean, result: Error | null): boolean {\n\treturn refused === \"final\" || result instanceof Unsupported || (result === null && granted);\n}\n\n// How the peer refused the last attempt with a reply: \"undecided\" when its code says the acceptor\n// failed to decide, so the token is presented again, or \"final\".\ntype Refused = \"final\" | \"undecided\";\n\n/** A grant as the wire carries it: the expiry is milliseconds from now. @internal */\nexport interface WireGrant {\n\tpublish: Path.Prefixes;\n\tsubscribe: Path.Prefixes;\n\texpires?: number;\n}\n\n/**\n * One reply read off a presented token's stream. A refusal is `undecided` when its code says the\n * acceptor failed to decide, so the token is presented again after a backoff. @internal\n */\nexport type WireReply = { grant: WireGrant } | { refused: Error; undecided: boolean };\n\n/**\n * How one wire carries AUTH, AUTH_OK, and AUTH_ERROR, so moq-lite and moq-transport share\n * the token lifecycle.\n *\n * @internal\n */\nexport interface AuthWire {\n\t/** Open a stream and present the token on it. */\n\tpresent(token: Uint8Array): Promise<Stream>;\n\t/** The next reply on a presented token's stream, or undefined once the acceptor finished it. */\n\tread(stream: Stream): Promise<WireReply | undefined>;\n\t/** The token the peer presents on a stream it opened. */\n\taccept(stream: Stream): Promise<Uint8Array>;\n\t/** Wait for the presenter to withdraw while validating follow-up messages. */\n\twithdrawn(stream: Stream): Promise<void>;\n\t/** Tell the presenter a grant. Throws {@link Unsupported} when this wire cannot represent it. */\n\tgrant(stream: Stream, grant: WireGrant): Promise<void>;\n\t/** Refuse or revoke the presenter's token. */\n\trefuse(stream: Stream, code: SessionCode, reason: string): Promise<void>;\n\t/** End the stream telling the presenter its token or grant cannot be answered here. */\n\tunsupported(stream: Stream, reason: string): Promise<void>;\n}\n\n/** The paths any of `grants` allows. Reduced once over all of them, not pairwise. */\nfunction union(grants: Iterable<Grant>): Grant {\n\tconst publish: Path.Prefix[] = [];\n\tconst subscribe: Path.Prefix[] = [];\n\tlet expires: Wall | undefined;\n\tfor (const grant of grants) {\n\t\tfor (const prefix of grant.publish) publish.push(prefix);\n\t\tfor (const prefix of grant.subscribe) subscribe.push(prefix);\n\t\t// The earliest expiry is when the union next shrinks.\n\t\tif (grant.expires !== undefined && (expires === undefined || grant.expires.lt(expires)))\n\t\t\texpires = grant.expires;\n\t}\n\treturn { publish: new Path.Prefixes(publish), subscribe: new Path.Prefixes(subscribe), expires };\n}\n\n// The transport closed under the stream, which ends the whole session rather than one token.\nfunction transportClosed(err: unknown): boolean {\n\treturn typeof err === \"object\" && err !== null && \"source\" in err && err.source === \"session\";\n}\n\nfunction cancel(): StreamError {\n\treturn new StreamError(StreamCode.Cancel, { message: \"cancel\" });\n}\n/** One token as one session presents it. */\nclass Presented {\n\treadonly token: Uint8Array;\n\t/** The session's own credential, presented at setup on this session alone. */\n\treadonly setup: boolean;\n\t/** The handle's token this presents, or undefined for the session's own credential. */\n\treadonly owner?: Token;\n\n\t/** The latest grant: undefined before the first, during a retry, and once it ends here. */\n\tgrant?: Grant;\n\tstream?: Stream;\n\t/** Wakes a retry backoff early once the presentation is no longer wanted. */\n\tretry?: AbortController;\n\twithdrawn = false;\n\tisAnswered = false;\n\tended = false;\n\n\tconstructor(token: Uint8Array, setup: boolean, owner?: Token) {\n\t\tthis.token = token;\n\t\tthis.setup = setup;\n\t\tthis.owner = owner;\n\t}\n}\n\n/**\n * A token {@link Handle.present} returned, with what the connection's token rotation reads.\n *\n * @internal\n */\nexport interface Pending extends Credential {\n\treadonly answered: Promise<void>;\n\t/** Whether any session holds a grant for it now, a draining one included. */\n\treadonly held: boolean;\n\t/** Whether a peer granted it in band: false for a token only a request carries, which {@link answered} also resolves for. */\n\treadonly inband: boolean;\n}\n\n/** A token the application added to a {@link Handle}, presented on every session of it. */\nclass Token implements Pending {\n\treadonly grant = new Signal<Grant | undefined>(undefined);\n\treadonly answered: Promise<void>;\n\treadonly bytes: Uint8Array;\n\n\tisAnswered = false;\n\tended = false;\n\tinband = false;\n\n\t#state: HandleState;\n\t#closed = new Once<Error | null>();\n\t#answer!: () => void;\n\t#refuse!: (err: Error) => void;\n\n\tconstructor(bytes: Uint8Array, state: HandleState) {\n\t\tthis.bytes = bytes;\n\t\tthis.#state = state;\n\t\tthis.answered = new Promise((resolve, reject) => {\n\t\t\tthis.#answer = resolve;\n\t\t\tthis.#refuse = reject;\n\t\t});\n\t\t// A caller that never awaits the answer must not see an unhandled rejection.\n\t\tthis.answered.catch(() => void 0);\n\t}\n\n\tanswer() {\n\t\tif (this.isAnswered) return;\n\t\tthis.isAnswered = true;\n\t\tthis.#answer();\n\t}\n\n\tend(err: Error | null) {\n\t\tif (this.ended) return;\n\t\tthis.ended = true;\n\t\tthis.grant.set(undefined);\n\t\tif (!this.isAnswered) {\n\t\t\tthis.isAnswered = true;\n\t\t\tthis.#refuse(err ?? new Error(\"withdrawn\"));\n\t\t}\n\t\tthis.#closed.set(err);\n\t}\n\n\tget closed(): GetPromise<Error | null> {\n\t\treturn this.#closed;\n\t}\n\n\tget held(): boolean {\n\t\treturn this.#state.sessions.some((session) => session.grantOf(this) !== undefined);\n\t}\n\n\tclose() {\n\t\tthis.#state.withdraw(this);\n\t}\n}\n\n/** The state behind one {@link Handle}: the tokens it presents, and every session it backs. */\nclass HandleState {\n\t/** The live session's union. */\n\treadonly grant = new Signal<Grant | undefined>(undefined);\n\t/** Created by a session for itself, so it ends with that session. */\n\town = false;\n\t/** Set once the handle ends. */\n\tclosed?: Error;\n\t/** The handle's end, for a watcher that outlives its sessions. */\n\treadonly end = new Signal<Error | undefined>(undefined);\n\t/** Every token the application added that has not ended. */\n\treadonly tokens = new Set<Token>();\n\t/** Every open session built on this handle, oldest first. */\n\treadonly sessions: AuthSession[] = [];\n\tacceptor: \"undecided\" | \"default\" | RequestQueue = \"undecided\";\n\n\t/** The session the handle backs now: the newest one still open. */\n\tget live(): AuthSession | undefined {\n\t\treturn this.sessions.at(-1);\n\t}\n\n\t/** Fail unless a new session can be built on the handle. */\n\tvacant() {\n\t\tif (this.closed) throw this.closed;\n\t\tif (this.sessions.some((session) => session.active)) throw new Duplicate();\n\t}\n\n\tattach(session: AuthSession) {\n\t\tthis.vacant();\n\t\tthis.sessions.push(session);\n\t\t// The successor is live now, so its predecessor's grants no longer apply.\n\t\tthis.refresh();\n\t}\n\n\t/** A session closed: it presents nothing anymore. A handle of its own ends with it. */\n\tdetach(session: AuthSession, err: Error) {\n\t\tconst index = this.sessions.indexOf(session);\n\t\tif (index >= 0) this.sessions.splice(index, 1);\n\t\tif (this.own) this.abort(err);\n\t\tthis.refresh();\n\t}\n\n\t/** Point the handle's grant, and each token's, at the live session. */\n\trefresh() {\n\t\tconst live = this.live;\n\t\tconst union = live?.grant.peek();\n\t\tif (!grantsEqual(union, this.grant.peek())) this.grant.set(union);\n\t\tfor (const token of this.tokens) {\n\t\t\tconst grant = live?.grantOf(token);\n\t\t\tif (!grantsEqual(grant, token.grant.peek())) token.grant.set(grant);\n\t\t}\n\t}\n\n\tadd(bytes: Uint8Array): Token {\n\t\tif (this.closed) throw this.closed;\n\t\t// A draining session takes no new tokens, and a handle of its own has no successor.\n\t\tif (this.own && !this.sessions.some((session) => session.active)) {\n\t\t\tthrow new StreamError(StreamCode.GoingAway);\n\t\t}\n\t\tconst token = new Token(bytes, this);\n\t\tthis.tokens.add(token);\n\t\tfor (const session of [...this.sessions]) session.offer(token);\n\t\treturn token;\n\t}\n\n\t/** The application dropped the token: every session stops presenting it. */\n\twithdraw(token: Token) {\n\t\tif (!this.tokens.delete(token)) return;\n\t\tfor (const session of this.sessions) session.withdraw(token);\n\t\ttoken.end(null);\n\t}\n\n\t/** The peer's verdict, or the handle's end: the token ends on every session. */\n\tverdict(token: Token, err: Error | null) {\n\t\tif (!this.tokens.delete(token)) return;\n\t\ttoken.end(err);\n\t\tfor (const session of this.sessions) session.withdraw(token);\n\t}\n\n\t/** Decide who answers the peer's tokens, once: the application if it took them. */\n\tdecide(): RequestQueue | undefined {\n\t\tif (this.acceptor === \"undecided\") this.acceptor = \"default\";\n\t\treturn this.acceptor instanceof RequestQueue ? this.acceptor : undefined;\n\t}\n\n\tabort(err: Error) {\n\t\tif (this.closed) return;\n\t\tthis.closed = err;\n\t\tthis.end.set(err);\n\t\tfor (const token of [...this.tokens]) this.verdict(token, err);\n\t\tif (this.acceptor instanceof RequestQueue) this.acceptor.close();\n\t}\n}\n\nconst states = new WeakMap<Handle, HandleState>();\n\nfunction stateOf(handle: Handle): HandleState {\n\tconst state = states.get(handle);\n\tif (!state) throw new TypeError(\"not an auth handle\");\n\treturn state;\n}\n\n/**\n * Fail unless a session can be built on `handle`: it ended, or it backs an active session.\n *\n * @internal\n */\nexport function vacant(handle: Handle) {\n\tstateOf(handle).vacant();\n}\n\n/**\n * Why `handle` ended, or undefined while it can still back a session.\n *\n * @internal\n */\nexport function ended(handle: Handle): Error | undefined {\n\treturn stateOf(handle).closed;\n}\n\n/**\n * When `handle` ends, with why, for a watcher that outlives its sessions.\n *\n * @internal\n */\nexport function ending(handle: Handle): Getter<Error | undefined> {\n\treturn stateOf(handle).end;\n}\n\n/**\n * The tokens this side presents and the grant they earn, across every session built on it.\n *\n * A session made without one creates its own, returned by `Session.auth`, which ends with\n * that session. Pass one to `connect` as `auth` instead and it outlives its sessions: each\n * presents every token the handle holds, so a {@link Credential} it returned keeps riding a route's\n * announcements across a reconnect. It backs one active session at a time, plus the ones\n * draining after a GOAWAY or a `close()`. Mirrors the Rust `moq_net::auth::Handle`.\n */\nexport class Handle {\n\t/** A handle backing no session yet, for `connect`'s `auth` option. */\n\tconstructor() {\n\t\tstates.set(this, new HandleState());\n\t}\n\n\t/**\n\t * The union of every grant this side holds on the live session: undefined until its peer\n\t * first answers a token, while no session is live, and forever on a version without AUTH.\n\t */\n\tget grant(): Getter<Grant | undefined> {\n\t\treturn stateOf(this).grant;\n\t}\n\n\t/**\n\t * Present another token on every session of this handle, returning it at once; its\n\t * {@link Credential.answered} settles on the peer's first verdict, and closing it withdraws\n\t * it, answered or not.\n\t *\n\t * With no session live it waits for the next one. A refusal that may pass, such as an\n\t * unreachable auth server, is presented again after a backoff on moq-lite, and so is a token\n\t * whose stream the peer drops without a verdict. Throws once the handle ended, or while its\n\t * own session drains with no successor.\n\t */\n\tadd(token: string | Uint8Array): Credential {\n\t\treturn this.present(token);\n\t}\n\n\t/**\n\t * Present another token like {@link add}, returning what the token rotation reads.\n\t *\n\t * @internal\n\t */\n\tpresent(token: string | Uint8Array): Pending {\n\t\t// A copy, so the caller reusing its buffer never changes what a request carries.\n\t\tconst bytes = typeof token === \"string\" ? new TextEncoder().encode(token) : token.slice();\n\t\treturn stateOf(this).add(bytes);\n\t}\n\n\t/**\n\t * Answer every token the peer presents, instead of the default: granting what this side\n\t * publishes and consumes for the connection's own credential and refusing any other.\n\t *\n\t * Call it as soon as connect or accept resolves, in the same task: whoever answers is\n\t * decided once, right after. Throws {@link Duplicate} once that has happened.\n\t *\n\t * The peer's stream credit bounds how many tokens wait unanswered, since each holds its\n\t * stream open until answered or withdrawn. A withdrawn token leaves the queue.\n\t *\n\t * @internal See {@link Request}.\n\t */\n\trequests(): Requests {\n\t\tconst state = stateOf(this);\n\t\tif (state.acceptor !== \"undecided\") throw new Duplicate(\"auth requests already taken or answered by default\");\n\t\tconst queue = new RequestQueue();\n\t\t// A session of its own that carries no AUTH never receives a token.\n\t\tif (state.closed || (state.own && !state.live?.negotiated)) queue.close();\n\t\tstate.acceptor = queue;\n\t\treturn queue;\n\t}\n\n\t/**\n\t * End the handle with `err`: every token ends, its sessions stop presenting them, and the\n\t * peer's queued tokens are refused. A handle a session created for itself ends with that\n\t * session.\n\t */\n\tabort(err: Error = new Error(\"auth handle closed\")): void {\n\t\tstateOf(this).abort(err);\n\t}\n}\n\n/** A handle of a session's own, which ends with it. */\nfunction ownHandle(): Handle {\n\tconst handle = new Handle();\n\tstateOf(handle).own = true;\n\treturn handle;\n}\n\n/** The peer's token, answered by the application. */\nclass PeerRequest implements Request {\n\treadonly token: Uint8Array;\n\t#issued: IssuedGrant;\n\t#answered = false;\n\n\tconstructor(token: Uint8Array, issued: IssuedGrant) {\n\t\tthis.token = token;\n\t\tthis.#issued = issued;\n\t}\n\n\tget closed(): GetPromise<Error | null> {\n\t\treturn this.#issued.closed;\n\t}\n\n\tget ended(): boolean {\n\t\treturn this.#issued.ended;\n\t}\n\n\taccept(grant: Grant): Issued {\n\t\tif (this.#answered) throw new Error(\"already answered\");\n\t\tthis.#answered = true;\n\t\tthis.#issued.update(grant);\n\t\treturn this.#issued;\n\t}\n\n\treject(code: SessionCode, reason: string): void {\n\t\tif (this.#answered) throw new Error(\"already answered\");\n\t\tthis.#answered = true;\n\t\tthis.#issued.revoke(code, reason);\n\t}\n}\n\n/** Our side of one of the peer's tokens: the grant we issued and its stream. */\nclass IssuedGrant implements Issued {\n\treadonly #closed = new Once<Error | null>();\n\t#stream: Stream;\n\t#wire: AuthWire;\n\t#writes = Promise.resolve();\n\t/**\n\t * Open, holding the latest grant until its write starts, so a newer one replaces it rather\n\t * than queueing; or done: closed, revoked, or a reply that could not be sent.\n\t */\n\t#state: { kind: \"open\"; queued?: Grant } | { kind: \"done\" } = { kind: \"open\" };\n\n\tconstructor(stream: Stream, wire: AuthWire) {\n\t\tthis.#stream = stream;\n\t\tthis.#wire = wire;\n\t\t// The presenter withdraws by closing or cancelling its side.\n\t\tvoid wire.withdrawn(stream).then(\n\t\t\t() => this.#closed.set(null),\n\t\t\t(err: unknown) =>\n\t\t\t\tthis.#closed.set(err instanceof StreamError && err.code === StreamCode.Cancel ? null : error(err)),\n\t\t);\n\t}\n\n\tget closed(): GetPromise<Error | null> {\n\t\treturn this.#closed;\n\t}\n\n\tget ended(): boolean {\n\t\treturn this.#closed.peek() !== undefined;\n\t}\n\n\t#write(write: () => Promise<void>) {\n\t\tthis.#writes = this.#writes.then(write).catch((err: unknown) => {\n\t\t\t// The peer already closed the stream: nothing left to tell it.\n\t\t\tif (err instanceof StreamError) return;\n\t\t\t// A grant the wire cannot carry is withheld, never widened, and so is any other\n\t\t\t// reply that fails to encode. An update since then is dropped with it.\n\t\t\tif (!(err instanceof Unsupported)) console.warn(\"auth reply not sent\", err);\n\t\t\tthis.#state = { kind: \"done\" };\n\t\t\treturn this.#wire.unsupported(this.#stream, error(err).message).catch(() => void 0);\n\t\t});\n\t}\n\n\tupdate(grant: Grant): void {\n\t\tconst state = this.#state;\n\t\tif (state.kind === \"done\") return;\n\t\t// A grant still waiting to be written is replaced, so a peer withholding stream credit\n\t\t// holds at most one.\n\t\tconst queued = state.queued !== undefined;\n\t\tstate.queued = grant;\n\t\tif (queued) return;\n\t\tthis.#write(async () => {\n\t\t\t// A close since then sends the grant itself.\n\t\t\tconst state = this.#state;\n\t\t\tif (state.kind === \"done\" || state.queued === undefined) return;\n\t\t\tconst grant = state.queued;\n\t\t\tstate.queued = undefined;\n\t\t\tawait this.#send(grant);\n\t\t});\n\t}\n\n\tasync #send(grant: Grant): Promise<void> {\n\t\tconst expires = grant.expires?.since(wall()).asMillis();\n\t\tawait this.#wire.grant(this.#stream, { publish: grant.publish, subscribe: grant.subscribe, expires });\n\t}\n\n\trevoke(code: SessionCode, reason: string): void {\n\t\tif (this.#state.kind === \"done\") return;\n\t\t// The peer never saw a grant still queued, so the refusal replaces it.\n\t\tthis.#state = { kind: \"done\" };\n\t\tthis.#write(() => this.#wire.refuse(this.#stream, code, reason));\n\t\tthis.#writes = this.#writes.then(() => this.#stream.writer.close());\n\t}\n\n\tclose(): void {\n\t\tconst state = this.#state;\n\t\tif (state.kind === \"done\") return;\n\t\tthis.#state = { kind: \"done\" };\n\t\t// The grant still queued is the last thing the peer hears before the end.\n\t\tconst last = state.queued;\n\t\tif (last !== undefined) this.#write(() => this.#send(last));\n\t\tthis.#writes = this.#writes.then(() => this.#stream.writer.close());\n\t}\n}\n\n/** The peer's tokens, queued for the application. */\nclass RequestQueue implements Requests {\n\t#queue: PeerRequest[] = [];\n\t// How many requests survived the last prune: pruning again only once the queue doubles\n\t// keeps a push amortized O(1).\n\t#survivors = 0;\n\t#waiters: ((request: PeerRequest | undefined) => void)[] = [];\n\t#closed = false;\n\n\t/** Queue the token for the application, or refuse it when closed. */\n\tpush(request: PeerRequest): void {\n\t\tif (this.#closed) {\n\t\t\trequest.reject(SessionCode.Unauthorized, \"not accepting tokens\");\n\t\t\treturn;\n\t\t}\n\t\t// A withdrawn token gave its stream back, so it must not stay queued while the\n\t\t// application is busy: that would let a peer that keeps withdrawing grow the queue.\n\t\tif (this.#queue.length >= 2 * Math.max(this.#survivors, 1)) {\n\t\t\tthis.#queue = this.#queue.filter((queued) => !queued.ended);\n\t\t\tthis.#survivors = this.#queue.length;\n\t\t}\n\t\tconst waiter = this.#waiters.shift();\n\t\tif (waiter) waiter(request);\n\t\telse this.#queue.push(request);\n\t}\n\n\tnext(): Promise<Request | undefined> {\n\t\tlet next = this.#queue.shift();\n\t\twhile (next?.ended) next = this.#queue.shift();\n\t\tif (next || this.#closed) return Promise.resolve(next);\n\t\treturn new Promise((resolve) => this.#waiters.push(resolve));\n\t}\n\n\tclose(): void {\n\t\tthis.#closed = true;\n\t\tfor (const request of this.#queue.splice(0)) {\n\t\t\trequest.reject(SessionCode.Unauthorized, \"not accepting tokens\");\n\t\t}\n\t\tfor (const waiter of this.#waiters.splice(0)) waiter(undefined);\n\t}\n}\n\n/** Constructor options for {@link AuthSession}. @internal */\nexport interface AuthSessionProps {\n\t/** How this session's wire carries the exchange, or undefined when it carries none. */\n\twire?: AuthWire;\n\t/**\n\t * Whether a request can carry a token (moq-transport), so a token the wire cannot present\n\t * is kept for the announcements that name it.\n\t */\n\trequests?: boolean;\n\t/** What the default acceptor grants the peer's connection credential. */\n\tpeerGrant: Grant;\n\t/** The handle the session is built on, or undefined for one of its own that ends with it. */\n\thandle?: Handle;\n\t/** Whether the session is draining after a GOAWAY or a local close, which frees its handle for a successor. */\n\tdraining?: () => boolean;\n\t/**\n\t * Whether the peer's SETUP, still to come, is what accepts the connection credential: a\n\t * session without AUTH that is live before its peer has checked the credential.\n\t */\n\tawaiting?: boolean;\n\t/**\n\t * Whether the version never answers the connection credential (a moq-lite-03/04 client),\n\t * so the peer refuses it only by closing the session. Its credential still counts as\n\t * accepted, but {@link AuthSession.accepted} never says so.\n\t */\n\tsilent?: boolean;\n}\n\n/**\n * One session's side of a {@link Handle}: presents the handle's tokens and its own\n * credential, one stream each, and answers the peer's. The wire decides only the encoding;\n * see {@link AuthWire}.\n *\n * @internal\n */\nexport class AuthSession {\n\t/** The peer sent a malformed AUTH message; the owning connection closes the session. */\n\treadonly violated = new Once<ProtocolViolation>();\n\t/** The handle this session is built on. */\n\treadonly handle: Handle;\n\t#state: HandleState;\n\t#wire?: AuthWire;\n\t#requests: boolean;\n\t#peerGrant: Grant;\n\t#draining: () => boolean;\n\t#ended = new Signal(0);\n\n\t#union = new Signal<Grant | undefined>(undefined);\n\t// The union until the session ends, which is not a revocation: what the session covered\n\t// ends with the session's own error, not as unauthorized.\n\t#scope = new Signal<Grant | undefined>(undefined);\n\t// The peer replied to some token, so the union is known even when empty.\n\t#replied = false;\n\t#presented = new Set<Presented>();\n\t// The handle's tokens as this session presents them, so a request carries only those.\n\t#byToken = new Map<Token, Presented>();\n\t// How many presented tokens await a reply: at setup, and with bytes. Recounted from\n\t// #presented by #recount after every change to it or to an `isAnswered`.\n\t#setupPending = new Signal(0);\n\t#pending = new Signal(0);\n\t// The peer's verdict on the connection credential this session presented: null once accepted,\n\t// the refusal, or undefined while it has none.\n\t#credential = new Signal<Error | null | undefined>(undefined);\n\t// Whether the peer said it accepts the connection credential, which a silent version never does.\n\t#accepted = new Signal(false);\n\t#silent: boolean;\n\t#closed = false;\n\n\t// Whoever answers the peer's tokens is decided once, after the task that established\n\t// the session: an app that calls requests() as soon as connect/accept resolves always\n\t// wins, however quickly the peer's first token arrives.\n\t#decided = yieldNow();\n\n\t/** Throws {@link Duplicate} while `handle` backs another active session, or the handle's end. */\n\tconstructor({ wire, requests, peerGrant, handle, draining, awaiting, silent }: AuthSessionProps) {\n\t\tthis.handle = handle ?? ownHandle();\n\t\tthis.#state = stateOf(this.handle);\n\t\tthis.#wire = wire;\n\t\tthis.#requests = requests ?? false;\n\t\tthis.#peerGrant = peerGrant;\n\t\tthis.#draining = draining ?? (() => false);\n\t\tthis.#silent = silent ?? false;\n\t\tthis.#state.attach(this);\n\t\t// A session without AUTH has the peer's acceptance with its handshake, unless it awaits its SETUP.\n\t\tif (!wire && !awaiting) {\n\t\t\tthis.#credential.set(null);\n\t\t\tif (!silent) this.#accepted.set(true);\n\t\t}\n\n\t\t// Present the connection's own credential right away, so both sides learn their\n\t\t// grant without waiting on the app.\n\t\tif (wire) this.#present(wire, new Presented(new Uint8Array(), true));\n\t\tfor (const token of [...this.#state.tokens]) this.offer(token);\n\t}\n\n\t/** Whether the session still takes new work: open, neither closing nor past a GOAWAY. */\n\tget active(): boolean {\n\t\treturn !this.#closed && !this.#draining();\n\t}\n\n\t/**\n\t * The peer's verdict on the connection credential this session presented: `null` once it\n\t * accepted it, its refusal, or undefined while it has none, which the session ending leaves\n\t * to the session's own close.\n\t */\n\tget credential(): Getter<Error | null | undefined> {\n\t\treturn this.#credential;\n\t}\n\n\t/**\n\t * Whether the peer said it accepts the connection credential: with its handshake, its SETUP,\n\t * or the AUTH_OK to the connection's own credential (moq-lite-07). Never on a silent version.\n\t * The session ending leaves it as it was.\n\t */\n\tget accepted(): Getter<boolean> {\n\t\treturn this.#accepted;\n\t}\n\n\t/**\n\t * Whether the version never answers the connection credential (a moq-lite-03/04 client), so\n\t * only uptime suggests the peer took it.\n\t */\n\tget silent(): boolean {\n\t\treturn this.#silent;\n\t}\n\n\t/** The peer's SETUP arrived, so it accepted the connection credential a session without AUTH presented. */\n\taccept(): void {\n\t\tif (this.#wire) return;\n\t\tthis.#credential.set(null);\n\t\tthis.#accepted.set(true);\n\t}\n\n\t/** The union of this session's grants, undefined until its peer first answers. */\n\tget grant(): Getter<Grant | undefined> {\n\t\treturn this.#union;\n\t}\n\n\t/** The grant this session enforces: {@link grant}, kept as it was once the session ends. */\n\tget scope(): Getter<Grant | undefined> {\n\t\treturn this.#scope;\n\t}\n\n\t/** Whether this session exchanges tokens at all. */\n\tget negotiated(): boolean {\n\t\treturn this.#wire !== undefined;\n\t}\n\n\t/** The handle's `token` grant on this session. */\n\tgrantOf(token: Token): Grant | undefined {\n\t\treturn this.#byToken.get(token)?.grant;\n\t}\n\n\t/** Whether this session still presents the handle's `token`. */\n\tpresents(token: Token): boolean {\n\t\tconst presented = this.#byToken.get(token);\n\t\treturn presented !== undefined && !presented.ended && !presented.withdrawn;\n\t}\n\n\t/**\n\t * Present one of the handle's tokens on this session. A draining session takes no new\n\t * tokens, so its verdict never ends one its successor carries.\n\t */\n\toffer(token: Token) {\n\t\tif (!this.active || this.#byToken.has(token)) return;\n\t\tif (!this.#wire && !this.#requests) {\n\t\t\tthis.#state.verdict(token, new Unsupported());\n\t\t\treturn;\n\t\t}\n\t\tconst presented = new Presented(token.bytes, false, token);\n\t\tthis.#byToken.set(token, presented);\n\t\tif (this.#wire) {\n\t\t\tthis.#present(this.#wire, presented);\n\t\t\treturn;\n\t\t}\n\t\t// Only a request carries it, and the peer judges it there: no grant to wait for.\n\t\tpresented.isAnswered = true;\n\t\tthis.#presented.add(presented);\n\t\ttoken.answer();\n\t}\n\n\t/** Stop presenting one of the handle's tokens: withdrawn, or ended for good elsewhere. */\n\twithdraw(token: Token) {\n\t\tconst presented = this.#byToken.get(token);\n\t\tif (!presented || presented.withdrawn) return;\n\t\tpresented.withdrawn = true;\n\t\tpresented.grant = undefined;\n\t\t// The stream's loop notices and ends the presentation; one still opening checks on\n\t\t// arrival, and one waiting to retry wakes. One without a stream to come (carried only by\n\t\t// requests) ends here.\n\t\tif (presented.stream) presented.stream.abort(cancel());\n\t\telse if (presented.retry) presented.retry.abort();\n\t\telse if (!this.#wire) {\n\t\t\tpresented.ended = true;\n\t\t\tthis.#presented.delete(presented);\n\t\t\tthis.#byToken.delete(token);\n\t\t\tthis.#ended.update((n) => n + 1);\n\t\t}\n\t\tthis.#recompute();\n\t}\n\n\t/**\n\t * The bytes a request carries for `token`: undefined for none, for one another handle\n\t * issued, or for one that ended here.\n\t */\n\tcarried(token: Credential | undefined): Uint8Array | undefined {\n\t\tif (!this.#requests || !(token instanceof Token)) return undefined;\n\t\tconst presented = this.#byToken.get(token);\n\t\tif (!presented || presented.ended || presented.withdrawn) return undefined;\n\t\treturn presented.token;\n\t}\n\n\t/** Bumps whenever one of this session's tokens ends, so a request carrying it drops it. */\n\tget ended(): Getter<number> {\n\t\treturn this.#ended;\n\t}\n\n\t/** Resolves once every token the session presented at setup has its first reply. */\n\tasync setupAnswered(): Promise<void> {\n\t\twhile (this.#setupPending.peek() > 0) await this.#setupPending.changed();\n\t}\n\n\t/**\n\t * Wait for presented tokens that might admit this path, without delaying a covered path.\n\t * Resolves false once `until`, the request's own lifetime, settles first, so an abandoned\n\t * request never waits on a token that may never be answered. `until` is called only once\n\t * the request has to wait.\n\t */\n\tasync ready(\n\t\tpath: Path.Valid,\n\t\tdirection: \"publish\" | \"subscribe\",\n\t\t{ signal, until }: { signal?: AbortSignal; until?: () => PromiseLike<unknown> } = {},\n\t): Promise<boolean> {\n\t\tlet started: Instant | undefined;\n\t\tlet ended = false;\n\t\tlet wake: (() => void) | undefined;\n\t\tconst end = () => {\n\t\t\tended = true;\n\t\t\twake?.();\n\t\t};\n\t\ttry {\n\t\t\twhile (this.#pending.peek() > 0 && !this.#union.peek()?.[direction].matches(path)) {\n\t\t\t\tif (ended) return false;\n\t\t\t\tif (started === undefined) {\n\t\t\t\t\tstarted = now();\n\t\t\t\t\tuntil?.().then(end, end);\n\t\t\t\t}\n\t\t\t\tsignal?.throwIfAborted();\n\t\t\t\tawait new Promise<void>((resolve, reject) => {\n\t\t\t\t\tconst cleanup = () => {\n\t\t\t\t\t\tpending();\n\t\t\t\t\t\tgrant();\n\t\t\t\t\t\twake = undefined;\n\t\t\t\t\t\tsignal?.removeEventListener(\"abort\", abort);\n\t\t\t\t\t};\n\t\t\t\t\tconst done = () => {\n\t\t\t\t\t\tcleanup();\n\t\t\t\t\t\tresolve();\n\t\t\t\t\t};\n\t\t\t\t\tconst abort = () => {\n\t\t\t\t\t\tcleanup();\n\t\t\t\t\t\treject(signal?.reason);\n\t\t\t\t\t};\n\t\t\t\t\tconst pending = this.#pending.changed(done);\n\t\t\t\t\tconst grant = this.#union.changed(done);\n\t\t\t\t\twake = done;\n\t\t\t\t\tsignal?.addEventListener(\"abort\", abort, { once: true });\n\t\t\t\t});\n\t\t\t}\n\t\t\treturn true;\n\t\t} finally {\n\t\t\tif (started !== undefined) {\n\t\t\t\tconsole.debug(`request waited for authorization: path=${path} waited=${now().since(started)}`);\n\t\t\t}\n\t\t}\n\t}\n\n\t/** Answer one of the peer's token streams, for the life of its token. */\n\tasync serve(stream: Stream): Promise<void> {\n\t\tconst wire = this.#wire;\n\t\tif (!wire) throw new Error(\"auth not negotiated\");\n\n\t\tlet token: Uint8Array;\n\t\ttry {\n\t\t\ttoken = await wire.accept(stream);\n\t\t} catch (err) {\n\t\t\tif (\n\t\t\t\terr instanceof StreamError ||\n\t\t\t\terr instanceof SessionError ||\n\t\t\t\terr instanceof Unsupported ||\n\t\t\t\ttransportClosed(err)\n\t\t\t)\n\t\t\t\tthrow err;\n\t\t\tthrow new ProtocolViolation(\"malformed AUTH\", { cause: err });\n\t\t}\n\t\tawait this.#decided;\n\t\tconst acceptor = this.#state.decide();\n\n\t\tconst issued = new IssuedGrant(stream, wire);\n\t\tif (acceptor) {\n\t\t\tconst request = new PeerRequest(token, issued);\n\t\t\tacceptor.push(request);\n\t\t} else if (token.byteLength > 0) {\n\t\t\t// Only the connection's own credential has a default answer; a token needs\n\t\t\t// someone to verify it.\n\t\t\tawait wire.unsupported(stream, \"no acceptor for tokens\");\n\t\t\treturn;\n\t\t} else {\n\t\t\tissued.update(this.#peerGrant);\n\t\t}\n\n\t\tconst ended = await issued.closed;\n\t\tissued.close();\n\t\tif (ended instanceof ProtocolViolation) throw ended;\n\t}\n\n\t/**\n\t * End the session: fail every pending token here, leaving the handle's tokens for the next\n\t * session. A handle of the session's own ends with it, closing the requests.\n\t */\n\tclose(err: Error = new Error(\"session closed\")) {\n\t\tif (this.#closed) return;\n\t\tthis.#closed = true;\n\t\tfor (const presented of this.#presented) {\n\t\t\tpresented.ended = true;\n\t\t\tpresented.isAnswered = true;\n\t\t\tpresented.grant = undefined;\n\t\t\tpresented.retry?.abort();\n\t\t}\n\t\tthis.#presented.clear();\n\t\tthis.#byToken.clear();\n\t\tthis.#recompute();\n\t\tthis.#state.detach(this, err);\n\t}\n\n\t#present(wire: AuthWire, presented: Presented) {\n\t\tthis.#presented.add(presented);\n\t\tthis.#recount();\n\t\tvoid this.#run(wire, presented);\n\t}\n\n\tasync #run(wire: AuthWire, presented: Presented) {\n\t\tlet result: Error | null = null;\n\t\tlet closed = false;\n\t\t// The peer refused the last attempt with a reply, rather than losing its stream.\n\t\tlet refused: Refused | undefined;\n\t\t// The peer granted the token, so a clean close ends the grant. A retry clears it.\n\t\tlet granted = false;\n\t\t// The peer replied to an earlier attempt, so it knows AUTH.\n\t\tlet replied = false;\n\t\tlet delay: Duration | undefined;\n\t\tfor (;;) {\n\t\t\trefused = undefined;\n\t\t\t// Whether the peer answered this token, so a close is not the peer predating AUTH:\n\t\t\t// a grant on this stream, or a reply to an earlier one that this retry follows.\n\t\t\tlet answered = replied;\n\t\t\ttry {\n\t\t\t\tconst stream = await wire.present(presented.token);\n\t\t\t\tpresented.stream = stream;\n\t\t\t\tif (presented.withdrawn || presented.ended) throw cancel();\n\n\t\t\t\tfor (;;) {\n\t\t\t\t\tlet reply: WireReply | undefined;\n\t\t\t\t\ttry {\n\t\t\t\t\t\treply = await wire.read(stream);\n\t\t\t\t\t} catch (err) {\n\t\t\t\t\t\tif (\n\t\t\t\t\t\t\terr instanceof StreamError ||\n\t\t\t\t\t\t\terr instanceof SessionError ||\n\t\t\t\t\t\t\terr instanceof Unsupported ||\n\t\t\t\t\t\t\ttransportClosed(err)\n\t\t\t\t\t\t)\n\t\t\t\t\t\t\tthrow err;\n\t\t\t\t\t\tthrow new ProtocolViolation(\"malformed AUTH reply\", { cause: err });\n\t\t\t\t\t}\n\t\t\t\t\tif (!reply) {\n\t\t\t\t\t\t// The peer ended the grant without revoking it, or closed without ever\n\t\t\t\t\t\t// answering. Close our side too, which is what settles its Issued.closed.\n\t\t\t\t\t\tresult = answered ? null : new Unsupported();\n\t\t\t\t\t\tstream.close();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tif (\"grant\" in reply) {\n\t\t\t\t\t\tconst expires =\n\t\t\t\t\t\t\treply.grant.expires === undefined\n\t\t\t\t\t\t\t\t? undefined\n\t\t\t\t\t\t\t\t: wall().add(Duration.millis(reply.grant.expires));\n\t\t\t\t\t\tpresented.grant = { publish: reply.grant.publish, subscribe: reply.grant.subscribe, expires };\n\t\t\t\t\t\tanswered = granted = replied = true;\n\t\t\t\t\t\tdelay = undefined;\n\t\t\t\t\t\tthis.#replied = true;\n\t\t\t\t\t\tif (presented.setup) {\n\t\t\t\t\t\t\tthis.#credential.set(null);\n\t\t\t\t\t\t\tthis.#accepted.set(true);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tthis.#answered(presented);\n\t\t\t\t\t\tthis.#recompute();\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tconsole.warn(\"auth token refused\", reply.refused);\n\t\t\t\t\t// A refused setup token leaves an empty union, not an unknown (unrestricted)\n\t\t\t\t\t// one. A grant the acceptor could not tell is unknown, not empty.\n\t\t\t\t\tif (!(reply.refused instanceof Unsupported)) this.#replied = true;\n\t\t\t\t\tresult = reply.refused;\n\t\t\t\t\treplied = true;\n\t\t\t\t\trefused = reply.undecided ? \"undecided\" : \"final\";\n\t\t\t\t\tstream.close();\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t} catch (err: unknown) {\n\t\t\t\t// End both halves: a peer that reset only its own leaves ours open, and a retry that\n\t\t\t\t// abandoned it would hold the stream's credit until the session ends.\n\t\t\t\tpresented.stream?.abort(cancel());\n\t\t\t\tclosed = transportClosed(err);\n\t\t\t\tif (presented.withdrawn || presented.ended) {\n\t\t\t\t\tresult = null;\n\t\t\t\t} else if (!answered && err instanceof StreamError) {\n\t\t\t\t\t// A peer that predates AUTH resets a stream type it does not know.\n\t\t\t\t\tresult = new Unsupported();\n\t\t\t\t} else {\n\t\t\t\t\tresult = error(err);\n\t\t\t\t\tif (result instanceof ProtocolViolation && !this.#closed && this.violated.peek() === undefined) {\n\t\t\t\t\t\tthis.violated.set(result);\n\t\t\t\t\t}\n\t\t\t\t\tif (!this.#closed) console.warn(\"auth token ended\", result);\n\t\t\t\t}\n\t\t\t}\n\t\t\tpresented.stream = undefined;\n\n\t\t\t// Present the token again after a backoff while it is still wanted on an active\n\t\t\t// session: after a refusal that may pass, such as an unreachable auth server (only\n\t\t\t// moq-lite's AUTH_ERROR carries such a code), or, on a shared handle, after its stream\n\t\t\t// was lost without a verdict, so the session never runs on without it. A handle of the\n\t\t\t// session's own ends a lost token instead, which tells the application.\n\t\t\tif (\n\t\t\t\tisVerdict(refused, granted, result) ||\n\t\t\t\tclosed ||\n\t\t\t\t!this.active ||\n\t\t\t\tpresented.withdrawn ||\n\t\t\t\tpresented.ended ||\n\t\t\t\tresult instanceof ProtocolViolation ||\n\t\t\t\t(refused === undefined && this.#state.own)\n\t\t\t)\n\t\t\t\tbreak;\n\t\t\tpresented.grant = undefined;\n\t\t\tgranted = false;\n\t\t\t// Unanswered again, as on its first presentation: a request or publication the token\n\t\t\t// might cover waits for the retry's verdict rather than being judged without it.\n\t\t\tpresented.isAnswered = false;\n\t\t\tthis.#recompute();\n\t\t\tdelay = delay === undefined ? RETRY_INITIAL : delay.mul(2).min(RETRY_MAX);\n\t\t\tpresented.retry = new AbortController();\n\t\t\tawait sleep(delay, { signal: presented.retry.signal }).catch(() => void 0);\n\t\t\tpresented.retry = undefined;\n\t\t\tif (this.#closed || presented.withdrawn || presented.ended) {\n\t\t\t\trefused = undefined;\n\t\t\t\tresult = null;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t// After a GOAWAY the peer must not see new streams: the successor presents it.\n\t\t\tif (this.#draining()) {\n\t\t\t\trefused = undefined;\n\t\t\t\tresult = new StreamError(StreamCode.GoingAway);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\t// Already ended by the session's close.\n\t\tif (presented.ended) return;\n\t\t// The peer's verdict on the credential: Unsupported is the moq-transport SETUP that\n\t\t// carried it accepting it before the peer declined AUTH. Anything else leaves it to the close.\n\t\tif (presented.setup && !presented.withdrawn && isVerdict(refused, granted, result)) {\n\t\t\tthis.#credential.set(\n\t\t\t\tresult instanceof Unsupported ? null : (result ?? new Error(\"the peer ended the credential\")),\n\t\t\t);\n\t\t}\n\t\tpresented.ended = true;\n\t\tpresented.grant = undefined;\n\t\t// A token that ends unanswered counts as answered for enforcement: its refusal is\n\t\t// the reply.\n\t\tpresented.isAnswered = true;\n\t\tthis.#presented.delete(presented);\n\t\tconst owner = presented.owner;\n\t\tif (owner && this.#byToken.get(owner) === presented) this.#byToken.delete(owner);\n\t\tthis.#ended.update((n) => n + 1);\n\t\t// Only the peer's verdict ends one of the handle's tokens on every session: a refusal,\n\t\t// Unsupported, or a clean close after a grant. Anything else leaves it for the next\n\t\t// session, since an active one presents it again instead.\n\t\t// A draining session's verdict is stale while an active session still presents the\n\t\t// token: that session's own answer decides, even mid-retry with no grant right now.\n\t\tconst superseded =\n\t\t\t!this.active &&\n\t\t\towner !== undefined &&\n\t\t\tthis.#state.sessions.some((session) => session !== this && session.active && session.presents(owner));\n\t\t// A handle of the session's own has no next session to present it, so any end is final.\n\t\tconst settled =\n\t\t\t!this.#closed &&\n\t\t\t!presented.withdrawn &&\n\t\t\t!superseded &&\n\t\t\t(this.#state.own || isVerdict(refused, granted, result));\n\t\tif (owner && settled) this.#state.verdict(owner, result);\n\t\t// Closed before the union shrinks, so the scope never reads it as a revocation.\n\t\tif (closed) this.close();\n\t\tthis.#recompute();\n\t}\n\n\t/** The peer granted `presented`: it counts as answered, and so does the handle's token. */\n\t#answered(presented: Presented) {\n\t\tpresented.isAnswered = true;\n\t\tif (presented.owner) presented.owner.inband = true;\n\t\tpresented.owner?.answer();\n\t}\n\n\t/** Count the presented tokens still awaiting a reply, for enforcement and the setup wait. */\n\t#recount() {\n\t\tlet setup = 0;\n\t\tlet pending = 0;\n\t\tfor (const presented of this.#presented) {\n\t\t\tif (presented.isAnswered) continue;\n\t\t\tif (presented.setup) setup += 1;\n\t\t\tif (presented.token.byteLength > 0) pending += 1;\n\t\t}\n\t\tthis.#setupPending.set(setup);\n\t\tthis.#pending.set(pending);\n\t}\n\n\t#recompute() {\n\t\tthis.#recount();\n\t\tconst granted: Grant[] = [];\n\t\tfor (const presented of this.#presented) {\n\t\t\tif (presented.grant) granted.push(presented.grant);\n\t\t}\n\t\t// Undefined until the first reply; an empty union afterwards grants nothing.\n\t\tif (granted.length > 0 || this.#replied) {\n\t\t\tconst next = union(granted);\n\t\t\tif (!grantsEqual(next, this.#union.peek())) this.#union.set(next);\n\t\t\tif (!this.#closed && !grantsEqual(next, this.#scope.peek())) this.#scope.set(next);\n\t\t}\n\t\tthis.#state.refresh();\n\t}\n}\n\n/**\n * Close the session when our origin publishes a broadcast our grant does not cover,\n * instead of leaving it to wait for a subscription that never comes.\n *\n * Starts once the tokens the session presented at setup are answered, then checks each\n * broadcast when it first appears. A grant that later shrinks withdraws what it no longer\n * covers without closing anything: the grant is read before the table, so a revocation is\n * never mistaken for a new unauthorized publication. Only the dialing side enforces: a\n * server's publish origin is everything the peer may read, not what it intends to push.\n *\n * @internal\n */\nexport async function enforceGrant({\n\tquic,\n\tadvertised,\n\tgrant,\n\tsetupAnswered,\n\tauth,\n}: {\n\tquic: WebTransport;\n\t/** The broadcasts this side publishes, undefined once the origin ends. */\n\tadvertised: Getter<ReadonlyMap<Path.Valid, unknown> | undefined>;\n\tgrant: Getter<Grant | undefined>;\n\tsetupAnswered: Promise<void>;\n\tauth?: AuthSession;\n}): Promise<void> {\n\tconst closed = quic.closed.then(\n\t\t() => \"closed\" as const,\n\t\t() => \"closed\" as const,\n\t);\n\tif ((await Promise.race([setupAnswered.then(() => \"ready\" as const), closed])) === \"closed\") return;\n\t// Ends an authorization wait with the session, without adding a reaction on `closed` per wait.\n\tconst ended = new AbortController();\n\tvoid closed.then(() => ended.abort());\n\n\t// Every broadcast admitted so far that is still published.\n\tconst live = new Set<Path.Valid>();\n\tfor (;;) {\n\t\tlet dispose: Dispose = () => {};\n\t\tconst woke = new Promise<\"changed\">((resolve) => {\n\t\t\tconst table = advertised.changed(() => resolve(\"changed\"));\n\t\t\tconst granted = grant.changed(() => resolve(\"changed\"));\n\t\t\tdispose = () => {\n\t\t\t\ttable();\n\t\t\t\tgranted();\n\t\t\t};\n\t\t});\n\n\t\tconst current = grant.peek();\n\t\tconst table = advertised.peek();\n\t\tif (!table) {\n\t\t\tdispose();\n\t\t\treturn;\n\t\t}\n\t\tif (current) {\n\t\t\tfor (const path of live) {\n\t\t\t\tif (!table.has(path)) live.delete(path);\n\t\t\t}\n\t\t\tfor (const path of table.keys()) {\n\t\t\t\tif (live.has(path)) continue;\n\t\t\t\tif (!current.publish.matches(path)) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tawait auth?.ready(path, \"publish\", { signal: ended.signal });\n\t\t\t\t\t} catch (err) {\n\t\t\t\t\t\tdispose();\n\t\t\t\t\t\tif (ended.signal.aborted) return;\n\t\t\t\t\t\tthrow err;\n\t\t\t\t\t}\n\t\t\t\t\t// A broadcast withdrawn during the wait is no longer ours to judge.\n\t\t\t\t\tif (!advertised.peek()?.has(path)) continue;\n\t\t\t\t\tif (grant.peek()?.publish.matches(path)) {\n\t\t\t\t\t\tlive.add(path);\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tconsole.error(`publishing outside our grant; closing the session: broadcast=${path}`);\n\t\t\t\t\tquic.close({\n\t\t\t\t\t\tcloseCode: SessionCode.Unauthorized,\n\t\t\t\t\t\treason: closeReason(`unauthorized: ${path}`),\n\t\t\t\t\t});\n\t\t\t\t\tdispose();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tlive.add(path);\n\t\t\t}\n\t\t}\n\n\t\t// `race` drops its reaction on `closed` with the rest, which lives for the session.\n\t\tconst why = await race([woke, closed]);\n\t\tdispose();\n\t\tif (why === \"closed\") return;\n\t}\n}\n"]}
|
package/bandwidth.d.ts
CHANGED
|
@@ -5,13 +5,18 @@
|
|
|
5
5
|
* an {@link Allocator} rather than each targeting the whole thing. How a sender
|
|
6
6
|
* then follows its share is policy and lives with the sender.
|
|
7
7
|
*
|
|
8
|
+
* The receive direction mirrors it: {@link Viewers} divides the receive estimate
|
|
9
|
+
* among the broadcasts watched over one connection, and their ceilings summed are
|
|
10
|
+
* the PROBE target the connection asks its peer to probe up to.
|
|
11
|
+
*
|
|
8
12
|
* @module
|
|
9
13
|
*/
|
|
10
|
-
import { type
|
|
14
|
+
import { type Getter } from "@moq/signals";
|
|
15
|
+
import type { Demand } from "./track.ts";
|
|
11
16
|
/**
|
|
12
17
|
* One demanded track's claim, snapshotted for {@link allocate}.
|
|
13
18
|
*
|
|
14
|
-
* `id` is the allocator's, not the track's
|
|
19
|
+
* `id` is the allocator's, not the track's key: two reservations of the
|
|
15
20
|
* same track are still two claims.
|
|
16
21
|
*/
|
|
17
22
|
export interface Want {
|
|
@@ -23,7 +28,8 @@ export interface Want {
|
|
|
23
28
|
max: number;
|
|
24
29
|
}
|
|
25
30
|
/**
|
|
26
|
-
*
|
|
31
|
+
* One division of `estimate` among the demanded `wants`, computed once and read by every
|
|
32
|
+
* reservation instead of each re-dividing the whole table.
|
|
27
33
|
*
|
|
28
34
|
* Strict priority: a tier is filled to its reservations before the next one
|
|
29
35
|
* sees a bit. Within a tier the split is max-min fair, so a share asking for
|
|
@@ -33,21 +39,32 @@ export interface Want {
|
|
|
33
39
|
* A reservation is what a sender can use, so handing it more is not a reason to
|
|
34
40
|
* send more than it was configured for.
|
|
35
41
|
*
|
|
36
|
-
* `undefined` when `id` isn't among the wants, which is how an idle or closed
|
|
37
|
-
* track reports "hold your rate" instead of a grant of zero.
|
|
38
|
-
*
|
|
39
42
|
* Rates are bits per second.
|
|
40
43
|
*/
|
|
41
|
-
export declare
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
44
|
+
export declare class Plan {
|
|
45
|
+
#private;
|
|
46
|
+
constructor(estimate: number, wants: readonly Want[]);
|
|
47
|
+
/**
|
|
48
|
+
* The slice for `id`, or `undefined` when `id` isn't among the wants, which is how a
|
|
49
|
+
* released or closed reservation reports "hold your rate" instead of a grant of zero.
|
|
50
|
+
*/
|
|
51
|
+
grant(id: number): number | undefined;
|
|
52
|
+
/**
|
|
53
|
+
* What a want missing from this division would get were it demanded again.
|
|
54
|
+
*
|
|
55
|
+
* Tiers above its own are served first either way, so only its own tier is walked
|
|
56
|
+
* again, with one more want sharing it, as far as where it would be served: after
|
|
57
|
+
* every want of its tier reserving less than it, or as much but registered earlier.
|
|
58
|
+
*/
|
|
59
|
+
rejoin(want: Want): number;
|
|
50
60
|
}
|
|
61
|
+
/**
|
|
62
|
+
* Divide `estimate` among `wants`, returning the slice for `id`.
|
|
63
|
+
*
|
|
64
|
+
* `undefined` when `id` isn't among the wants. See {@link Plan}, which computes every
|
|
65
|
+
* slice at once.
|
|
66
|
+
*/
|
|
67
|
+
export declare function allocate(estimate: number, wants: readonly Want[], id: number): number | undefined;
|
|
51
68
|
/**
|
|
52
69
|
* A non-owning handle on an allocator: reserve a slice, without its lifecycle.
|
|
53
70
|
*
|
|
@@ -73,7 +90,7 @@ export interface Handle {
|
|
|
73
90
|
* all (PCM audio has a fixed bitrate), still sends what it sends; the transport
|
|
74
91
|
* sheds the excess by dropping groups.
|
|
75
92
|
*
|
|
76
|
-
* Hand the same
|
|
93
|
+
* Hand the same identity to every sender on the connection.
|
|
77
94
|
*/
|
|
78
95
|
export declare class Allocator implements Handle {
|
|
79
96
|
#private;
|
|
@@ -101,7 +118,7 @@ export declare class Allocator implements Handle {
|
|
|
101
118
|
* reservation that had followed it down would have already handed that room
|
|
102
119
|
* to somebody else.
|
|
103
120
|
*
|
|
104
|
-
* Priority comes from the track (higher served first). A tier is filled to
|
|
121
|
+
* Priority comes from the track's `Info.priority` (higher served first). A tier is filled to
|
|
105
122
|
* its reservations before the next one sees a bit; within a tier the split is
|
|
106
123
|
* max-min fair.
|
|
107
124
|
*
|
|
@@ -109,9 +126,10 @@ export declare class Allocator implements Handle {
|
|
|
109
126
|
* as the sender is publishing, change the ceiling with
|
|
110
127
|
* {@link Reservation.update}, and close it to hand the room back.
|
|
111
128
|
*
|
|
112
|
-
* {@link Reservation.peek} / {@link Reservation.
|
|
113
|
-
* while
|
|
114
|
-
*
|
|
129
|
+
* {@link Reservation.peek} / {@link Reservation.rate} report `undefined`
|
|
130
|
+
* while the connection has no estimate, telling a sender to hold its current
|
|
131
|
+
* rate rather than encode at zero. While nothing is subscribed to the track they
|
|
132
|
+
* report the slice the track would get back, without claiming it from the others.
|
|
115
133
|
*/
|
|
116
134
|
reserve(track: Demand, max: number): Reservation;
|
|
117
135
|
/**
|
|
@@ -120,6 +138,92 @@ export declare class Allocator implements Handle {
|
|
|
120
138
|
*/
|
|
121
139
|
close(): void;
|
|
122
140
|
}
|
|
141
|
+
/**
|
|
142
|
+
* Divides one connection's receive estimate among the broadcasts watched over it.
|
|
143
|
+
*
|
|
144
|
+
* The receive-side mirror of {@link Allocator}. Every player on a connection reads the
|
|
145
|
+
* same receive estimate, so N players each selecting against all of it oversubscribe
|
|
146
|
+
* the downlink N times over. {@link watch} a broadcast here and its {@link Viewer}
|
|
147
|
+
* reports only its own slice, split max-min fair by each viewer's ceiling, so the
|
|
148
|
+
* slices sum to the estimate instead of each matching it. Viewers carry no priority:
|
|
149
|
+
* a viewer asking for less than an even cut takes all it asked for and leaves the
|
|
150
|
+
* rest to the others.
|
|
151
|
+
*
|
|
152
|
+
* The viewers' ceilings summed are also the PROBE target the connection sends its
|
|
153
|
+
* peer, which probes up to it when it advertised `Increase`, so the estimate can rise
|
|
154
|
+
* to fund a larger rendition. The target never leaves this hop.
|
|
155
|
+
*
|
|
156
|
+
* The estimate is observed only while a viewer is live, since observing a
|
|
157
|
+
* connection's receive estimate is what requests PROBE.
|
|
158
|
+
*/
|
|
159
|
+
export declare class Viewers {
|
|
160
|
+
#private;
|
|
161
|
+
/**
|
|
162
|
+
* The largest PROBE target: the most the viewers' ceilings, summed, or an override may be.
|
|
163
|
+
*
|
|
164
|
+
* `Number.MAX_SAFE_INTEGER` bits per second, the largest integer the PROBE stream encodes.
|
|
165
|
+
*/
|
|
166
|
+
static readonly MAX_TARGET: number;
|
|
167
|
+
/**
|
|
168
|
+
* The PROBE target: the live viewers' ceilings summed, or the {@link setTarget} override.
|
|
169
|
+
* Zero sends no target.
|
|
170
|
+
*/
|
|
171
|
+
readonly target: Getter<number>;
|
|
172
|
+
/** Divide `estimate`, normally a connection's receive estimate from PROBE. */
|
|
173
|
+
constructor(estimate?: Getter<number | undefined>);
|
|
174
|
+
/**
|
|
175
|
+
* Watch a broadcast receiving at most `max` bits per second, returning its viewer.
|
|
176
|
+
*
|
|
177
|
+
* `max` is a ceiling: what the largest rendition the player would switch to needs,
|
|
178
|
+
* not what it happens to be receiving. The claim lasts until {@link Viewer.close}:
|
|
179
|
+
* change the ceiling with {@link Viewer.update}, and close it once the broadcast
|
|
180
|
+
* stops being watched.
|
|
181
|
+
*
|
|
182
|
+
* @throws {RangeError} watching nothing, when the ceilings would sum above {@link Viewers.MAX_TARGET}.
|
|
183
|
+
*/
|
|
184
|
+
watch(max: number): Viewer;
|
|
185
|
+
/**
|
|
186
|
+
* Send `target` as the PROBE target instead of the viewers' sum, or `undefined` to follow them again.
|
|
187
|
+
*
|
|
188
|
+
* `0` sends no target, so the peer stops probing for these viewers.
|
|
189
|
+
*
|
|
190
|
+
* @throws {RangeError} keeping the previous override, for a target above {@link Viewers.MAX_TARGET}.
|
|
191
|
+
*/
|
|
192
|
+
setTarget(target: number | undefined): void;
|
|
193
|
+
/**
|
|
194
|
+
* Stop dividing. Existing viewers report `undefined` and release their claims, and the
|
|
195
|
+
* target drops to zero for good, override included.
|
|
196
|
+
*/
|
|
197
|
+
close(): void;
|
|
198
|
+
}
|
|
199
|
+
/**
|
|
200
|
+
* One watched broadcast's standing claim on {@link Viewers}, held for as long as it is watched.
|
|
201
|
+
*
|
|
202
|
+
* Close it to release the claim and lower the PROBE target.
|
|
203
|
+
*/
|
|
204
|
+
export declare class Viewer implements Disposable {
|
|
205
|
+
#private;
|
|
206
|
+
private constructor();
|
|
207
|
+
/** This viewer's slice of the receive estimate right now; see {@link Reservation.peek}. */
|
|
208
|
+
peek(): number | undefined;
|
|
209
|
+
/**
|
|
210
|
+
* This viewer's current slice of the receive estimate.
|
|
211
|
+
*
|
|
212
|
+
* `undefined` while the connection has no receive estimate or this viewer has been
|
|
213
|
+
* closed, telling a player to hold its current selection.
|
|
214
|
+
*/
|
|
215
|
+
get rate(): Getter<number | undefined>;
|
|
216
|
+
/**
|
|
217
|
+
* Change the ceiling, keeping the same claim, as when a catalog enables or disables a rendition.
|
|
218
|
+
*
|
|
219
|
+
* @throws {RangeError} keeping the previous ceiling, when the ceilings would sum above {@link Viewers.MAX_TARGET}.
|
|
220
|
+
*/
|
|
221
|
+
update(max: number): void;
|
|
222
|
+
/** Release the claim so other viewers take the room. Idempotent. */
|
|
223
|
+
close(): void;
|
|
224
|
+
/** Calls {@link close}, so `using` releases the claim. */
|
|
225
|
+
[Symbol.dispose](): void;
|
|
226
|
+
}
|
|
123
227
|
/**
|
|
124
228
|
* One track's standing claim on an {@link Allocator}, held for as long as the
|
|
125
229
|
* sender that took it is publishing.
|
|
@@ -134,7 +238,7 @@ export declare class Reservation implements Disposable {
|
|
|
134
238
|
/**
|
|
135
239
|
* This reservation's slice right now.
|
|
136
240
|
*
|
|
137
|
-
* Stateless, unlike {@link
|
|
241
|
+
* Stateless, unlike {@link rate}, which is a signal of what was last
|
|
138
242
|
* published and so can lag a synchronous {@link update} by a microtask if
|
|
139
243
|
* something else writes the registry first. Call this after {@link update}.
|
|
140
244
|
*/
|
|
@@ -142,11 +246,11 @@ export declare class Reservation implements Disposable {
|
|
|
142
246
|
/**
|
|
143
247
|
* This reservation's current slice of the estimate.
|
|
144
248
|
*
|
|
145
|
-
* `undefined` while
|
|
146
|
-
*
|
|
147
|
-
*
|
|
249
|
+
* `undefined` while the connection has no estimate or this reservation has
|
|
250
|
+
* been closed: hold the current rate rather than encode at zero. While nothing
|
|
251
|
+
* is subscribed it is the slice the track would get back.
|
|
148
252
|
*/
|
|
149
|
-
get
|
|
253
|
+
get rate(): Getter<number | undefined>;
|
|
150
254
|
/**
|
|
151
255
|
* Change the ceiling, keeping the same claim.
|
|
152
256
|
*
|
package/bandwidth.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bandwidth.d.ts","sourceRoot":"","sources":["../src/bandwidth.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"bandwidth.d.ts","sourceRoot":"","sources":["../src/bandwidth.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,EAAmB,KAAK,MAAM,EAAU,MAAM,cAAc,CAAC;AAEpE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAEzC;;;;;GAKG;AACH,MAAM,WAAW,IAAI;IACpB,iDAAiD;IACjD,EAAE,EAAE,MAAM,CAAC;IACX,kDAAkD;IAClD,QAAQ,EAAE,MAAM,CAAC;IACjB,uEAAuE;IACvE,GAAG,EAAE,MAAM,CAAC;CACZ;AAUD;;;;;;;;;;;;;GAaG;AACH,qBAAa,IAAI;;IAUhB,YAAY,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,IAAI,EAAE,EAuBnD;IAED;;;OAGG;IACH,KAAK,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAEpC;IAED;;;;;;OAMG;IACH,MAAM,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,CAsBzB;CACD;AAED;;;;;GAKG;AACH,wBAAgB,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,IAAI,EAAE,EAAE,EAAE,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAEjG;AAwOD;;;;;;;;GAQG;AACH,MAAM,WAAW,MAAM;IACtB,sEAAsE;IACtE,OAAO,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,WAAW,CAAC;CACjD;AAgBD;;;;;;;;;;;;;GAaG;AACH,qBAAa,SAAU,YAAW,MAAM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