@graphrefly/graphrefly 0.39.0 → 0.41.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{cascading-g2_rhhaM.d.ts → cascading-BNfxffgc.d.ts} +1 -1
- package/dist/{cascading-BzuxW0_w.d.cts → cascading-Cxs1eztH.d.cts} +1 -1
- package/dist/chunk-2W553JJC.js +1 -0
- package/dist/{chunk-5LK7XMEV.js → chunk-33N4TU3X.js} +1 -1
- package/dist/chunk-4MKL6Q3K.js +1 -0
- package/dist/chunk-5B3JDG5F.js +1 -0
- package/dist/chunk-5QSXEMXG.js +1 -0
- package/dist/{chunk-R75BMDLA.js → chunk-5TEFC2ZX.js} +1 -1
- package/dist/chunk-5TOPVRN6.js +1 -0
- package/dist/{chunk-INHC33EH.js → chunk-5VEZLQFN.js} +1 -1
- package/dist/{chunk-NQI2C36M.js → chunk-7PQLZMOG.js} +1 -1
- package/dist/{chunk-7NZMZJMW.js → chunk-AI7QC7J6.js} +1 -1
- package/dist/{chunk-L7WY6TZS.js → chunk-AK5RHMC5.js} +1 -1
- package/dist/{chunk-ZOX3LBRV.js → chunk-CGNOWGV6.js} +1 -1
- package/dist/{chunk-INH6FS2G.js → chunk-CYOSWFT2.js} +1 -1
- package/dist/{chunk-GX5LSSRE.js → chunk-EC2WNSZ7.js} +1 -1
- package/dist/{chunk-HAWKGIXM.js → chunk-ELAASRBT.js} +1 -1
- package/dist/{chunk-7QFRK3N3.js → chunk-F7VUYPP6.js} +1 -1
- package/dist/{chunk-LQNOXGET.js → chunk-G3M3IMEV.js} +1 -1
- package/dist/{chunk-HX3EGQ5Z.js → chunk-GI4Q7PNY.js} +1 -1
- package/dist/{chunk-XQ55HO5N.js → chunk-H5SCWHWP.js} +1 -1
- package/dist/{chunk-CGDMTXSY.js → chunk-KNVCCBIU.js} +1 -1
- package/dist/{chunk-IA7DUNGB.js → chunk-L77I47VU.js} +1 -1
- package/dist/{chunk-JNMC2WJ6.js → chunk-M3FQSXEW.js} +1 -1
- package/dist/{chunk-D47YVDR5.js → chunk-OLIKJUKI.js} +1 -1
- package/dist/{chunk-SC7BQDNP.js → chunk-OV5AA6HJ.js} +1 -1
- package/dist/{chunk-7JRF5YEK.js → chunk-POXANAJ6.js} +1 -1
- package/dist/chunk-RSMEXK53.js +43 -0
- package/dist/{chunk-KD4NHLMU.js → chunk-SC27WTSG.js} +1 -1
- package/dist/chunk-TSOYJ743.js +1 -0
- package/dist/{chunk-AU7YTQX7.js → chunk-TT4C7DXW.js} +1 -1
- package/dist/{chunk-TFPZLQ5H.js → chunk-UISPDFJ3.js} +1 -1
- package/dist/{chunk-N7UIBZCW.js → chunk-URJ2VFNC.js} +1 -1
- package/dist/{chunk-GEAO3TL3.js → chunk-VV62MIG4.js} +1 -1
- package/dist/{chunk-VJJLIEAL.js → chunk-VXPLLA4P.js} +1 -1
- package/dist/{chunk-WHIZM6JV.js → chunk-WZYB3JQS.js} +1 -1
- package/dist/{chunk-S2U57TFC.js → chunk-X7QKTXXC.js} +1 -1
- package/dist/{chunk-7SD73DS6.js → chunk-YQRN4CIV.js} +1 -1
- package/dist/chunk-Z6X7B6A4.js +61 -0
- package/dist/{chunk-RF3QZP6D.js → chunk-ZAJ7J7TO.js} +1 -1
- package/dist/compat/index.d.cts +6 -6
- package/dist/compat/index.d.ts +6 -6
- package/dist/compat/index.js +1 -1
- package/dist/compat/nestjs/index.d.cts +4 -4
- package/dist/compat/nestjs/index.d.ts +4 -4
- package/dist/compat/nestjs/index.js +1 -1
- package/dist/compat/zustand/index.d.cts +2 -2
- package/dist/compat/zustand/index.d.ts +2 -2
- package/dist/compat/zustand/index.js +1 -1
- package/dist/{composite-DGatA-JK.d.ts → decay-BnrlbxSv.d.ts} +38 -2
- package/dist/{composite-CKd0e2vz.d.cts → decay-C25AyNAj.d.cts} +38 -2
- package/dist/extra/index.cjs +15 -15
- package/dist/extra/index.d.cts +6 -6
- package/dist/extra/index.d.ts +6 -6
- package/dist/extra/index.js +1 -1
- package/dist/extra/node.js +1 -1
- package/dist/extra/operators.js +1 -1
- package/dist/extra/reactive.d.cts +1 -1
- package/dist/extra/reactive.d.ts +1 -1
- package/dist/extra/reactive.js +1 -1
- package/dist/extra/render/index.d.cts +1 -1
- package/dist/extra/render/index.d.ts +1 -1
- package/dist/extra/sources.cjs +1 -1
- package/dist/extra/sources.js +1 -1
- package/dist/graph/index.d.cts +3 -3
- package/dist/graph/index.d.ts +3 -3
- package/dist/graph/index.js +1 -1
- package/dist/{graph-30XSgtVX.d.ts → graph-BkIkog4h.d.ts} +1 -1
- package/dist/{graph-BUwMAxJI.d.cts → graph-E6likq7w.d.cts} +1 -1
- package/dist/{index-BXd6OMEy.d.ts → index-3k4Gg6-n.d.ts} +2 -2
- package/dist/{index-DszPlZzK.d.ts → index-40ZT4MHj.d.ts} +1 -1
- package/dist/index-8s-Qm-gz.d.ts +218 -0
- package/dist/{index-K-vl_c6A.d.cts → index-A3U3CSve.d.cts} +1 -1
- package/dist/{index-jKLph6cu.d.ts → index-B6iTqKtJ.d.ts} +1 -1
- package/dist/{index-WyFKER-c.d.ts → index-B72TQQHd.d.cts} +3 -3
- package/dist/{index-CmqiJZKM.d.ts → index-BAQrjuZF.d.ts} +64 -6
- package/dist/{index-CusEP3Sv.d.ts → index-BQ1fR4li.d.ts} +1 -1
- package/dist/{index-jr6PuSBt.d.ts → index-BaA-xpSw.d.ts} +2 -2
- package/dist/{index-FVoPvhAu.d.cts → index-Bd91Nmf4.d.cts} +2 -2
- package/dist/{index-PqbnoScQ.d.ts → index-BgjS2b8N.d.ts} +2 -2
- package/dist/{index-DCbE8fFM.d.cts → index-BiHUBEKq.d.cts} +2 -2
- package/dist/{index-DlgHqQxW.d.cts → index-BilOa6AE.d.cts} +6 -32
- package/dist/{index-DoYc8BWK.d.cts → index-BmSQLAZo.d.cts} +2 -2
- package/dist/{index-DlrWu9Hs.d.cts → index-C-dkXOpB.d.cts} +1 -1
- package/dist/{index-C7VV_qOs.d.ts → index-C5cQ7Gfx.d.ts} +2 -2
- package/dist/{index-CPhBvRJU.d.ts → index-C6ZUaos7.d.ts} +1 -1
- package/dist/{index-PlJ3MraE.d.ts → index-CAP3UGsq.d.ts} +1 -1
- package/dist/{index-B41Asm7D.d.ts → index-CD2dBMet.d.ts} +2 -2
- package/dist/{index-C19qqa38.d.ts → index-CG33HeBW.d.ts} +19 -4
- package/dist/index-CGhMJNHb.d.cts +128 -0
- package/dist/{index-BAlaVimV.d.ts → index-CQtWm7jS.d.ts} +2 -2
- package/dist/{index-8R1vzNOx.d.cts → index-CRm0YIzC.d.cts} +2 -2
- package/dist/index-CUIkE1l9.d.cts +230 -0
- package/dist/{index-KlZ_ZUip.d.cts → index-Cczxgd2D.d.ts} +3 -3
- package/dist/{index-DIHcMLr6.d.cts → index-CgnCFhr2.d.cts} +1 -1
- package/dist/{index-BC9VybQs.d.ts → index-Ck35nA-T.d.ts} +2 -2
- package/dist/{index-BndG0cpK.d.cts → index-Cnr1WrlX.d.cts} +1 -1
- package/dist/{index-H_I66pav.d.cts → index-CtFNGe-m.d.cts} +2 -2
- package/dist/index-CuPUehFa.d.cts +218 -0
- package/dist/index-D1Gc7wV5.d.ts +230 -0
- package/dist/{index-CWHtYmSh.d.cts → index-D4uimgee.d.cts} +1 -1
- package/dist/{index-xZYcDqFH.d.cts → index-DGD4_fj6.d.cts} +19 -4
- package/dist/{index-CwP_KAMS.d.cts → index-DGTo1yka.d.cts} +64 -6
- package/dist/{index-BUPVld1w.d.ts → index-DH4fm2Ck.d.ts} +2 -2
- package/dist/{index-DyM4tFAe.d.cts → index-DQQCOIt8.d.cts} +2 -2
- package/dist/{index-BJ26eEjs.d.cts → index-DVAlsmEU.d.cts} +2 -2
- package/dist/{index-DINuaZlJ.d.cts → index-DVDapw2k.d.cts} +1 -1
- package/dist/{index-iTX5IqSP.d.ts → index-DfOK_oL5.d.ts} +208 -203
- package/dist/{index-DTtBpuQy.d.cts → index-DgJc8Zgc.d.cts} +5 -3
- package/dist/{index-BKMdnYnk.d.ts → index-DhLyOHYZ.d.ts} +1 -1
- package/dist/{index-89FczVZ_.d.ts → index-DhnsQfa3.d.ts} +77 -51
- package/dist/{index-L8XI8Zql.d.cts → index-DktLSZOc.d.cts} +2 -2
- package/dist/{index-pVDQcbar.d.cts → index-DpiGqtrs.d.cts} +77 -51
- package/dist/{index-mNwgxC21.d.cts → index-DuRsN9ae.d.cts} +208 -203
- package/dist/{index-B9fmw5n2.d.ts → index-I1cCY3ZI.d.ts} +5 -3
- package/dist/index-N2MAxt7_.d.ts +128 -0
- package/dist/{index-Br3WnqEn.d.ts → index-WSlcjhQF.d.ts} +6 -32
- package/dist/{index-DQUVq1_d.d.ts → index-bXXLSvor.d.ts} +2 -2
- package/dist/{index-BhUaMYm_.d.ts → index-da2V5vPy.d.ts} +1 -1
- package/dist/{index-PsVHpPwP.d.cts → index-t6L2qpHh.d.cts} +2 -2
- package/dist/{index-IwFqHxCs.d.cts → index-tV3AA9hI.d.cts} +1 -1
- package/dist/index.cjs +48 -48
- package/dist/index.d.cts +33 -33
- package/dist/index.d.ts +33 -33
- package/dist/index.js +1 -1
- package/dist/patterns/ai/browser.cjs +5 -5
- package/dist/patterns/ai/browser.d.cts +2 -2
- package/dist/patterns/ai/browser.d.ts +2 -2
- package/dist/patterns/ai/browser.js +1 -1
- package/dist/patterns/ai/index.cjs +14 -14
- package/dist/patterns/ai/index.d.cts +11 -11
- package/dist/patterns/ai/index.d.ts +11 -11
- package/dist/patterns/ai/index.js +1 -1
- package/dist/patterns/ai/node.js +1 -1
- package/dist/patterns/audit/index.d.cts +3 -3
- package/dist/patterns/audit/index.d.ts +3 -3
- package/dist/patterns/audit/index.js +1 -1
- package/dist/patterns/cqrs/index.d.cts +3 -3
- package/dist/patterns/cqrs/index.d.ts +3 -3
- package/dist/patterns/cqrs/index.js +1 -1
- package/dist/patterns/demo-shell/index.d.cts +3 -3
- package/dist/patterns/demo-shell/index.d.ts +3 -3
- package/dist/patterns/demo-shell/index.js +1 -1
- package/dist/patterns/domain-templates/index.d.cts +2 -2
- package/dist/patterns/domain-templates/index.d.ts +2 -2
- package/dist/patterns/domain-templates/index.js +1 -1
- package/dist/patterns/graphspec/index.d.cts +2 -2
- package/dist/patterns/graphspec/index.d.ts +2 -2
- package/dist/patterns/graphspec/index.js +1 -1
- package/dist/patterns/guarded-execution/index.cjs +3 -3
- package/dist/patterns/guarded-execution/index.d.cts +4 -4
- package/dist/patterns/guarded-execution/index.d.ts +4 -4
- package/dist/patterns/guarded-execution/index.js +1 -1
- package/dist/patterns/harness/index.cjs +8 -8
- package/dist/patterns/harness/index.d.cts +7 -7
- package/dist/patterns/harness/index.d.ts +7 -7
- package/dist/patterns/harness/index.js +1 -1
- package/dist/patterns/job-queue/index.cjs +3 -3
- package/dist/patterns/job-queue/index.d.cts +3 -3
- package/dist/patterns/job-queue/index.d.ts +3 -3
- package/dist/patterns/job-queue/index.js +1 -1
- package/dist/patterns/lens/index.cjs +3 -3
- package/dist/patterns/lens/index.d.cts +3 -4
- package/dist/patterns/lens/index.d.ts +3 -4
- package/dist/patterns/lens/index.js +1 -1
- package/dist/patterns/memory/index.cjs +1 -1
- package/dist/patterns/memory/index.d.cts +3 -3
- package/dist/patterns/memory/index.d.ts +3 -3
- package/dist/patterns/memory/index.js +1 -1
- package/dist/patterns/messaging/index.d.cts +2 -2
- package/dist/patterns/messaging/index.d.ts +2 -2
- package/dist/patterns/messaging/index.js +1 -1
- package/dist/patterns/orchestration/index.d.cts +3 -3
- package/dist/patterns/orchestration/index.d.ts +3 -3
- package/dist/patterns/orchestration/index.js +1 -1
- package/dist/patterns/process/index.d.cts +4 -4
- package/dist/patterns/process/index.d.ts +4 -4
- package/dist/patterns/process/index.js +1 -1
- package/dist/patterns/reactive-layout/index.d.cts +3 -3
- package/dist/patterns/reactive-layout/index.d.ts +3 -3
- package/dist/patterns/reactive-layout/index.js +1 -1
- package/dist/patterns/reduction/index.d.cts +2 -2
- package/dist/patterns/reduction/index.d.ts +2 -2
- package/dist/patterns/reduction/index.js +1 -1
- package/dist/patterns/refine-loop/index.d.cts +3 -3
- package/dist/patterns/refine-loop/index.d.ts +3 -3
- package/dist/patterns/refine-loop/index.js +1 -1
- package/dist/patterns/resilient-pipeline/index.cjs +3 -1
- package/dist/patterns/resilient-pipeline/index.d.cts +7 -3
- package/dist/patterns/resilient-pipeline/index.d.ts +7 -3
- package/dist/patterns/resilient-pipeline/index.js +1 -1
- package/dist/patterns/surface/index.d.cts +3 -3
- package/dist/patterns/surface/index.d.ts +3 -3
- package/dist/patterns/surface/index.js +1 -1
- package/dist/{pipeline-graph-D8vKcO_p.d.ts → pipeline-graph-CB4La-UW.d.ts} +2 -2
- package/dist/{pipeline-graph-BQPr2Lqs.d.cts → pipeline-graph-MWrQZXCq.d.cts} +2 -2
- package/dist/{reactive-layout-8CSc0tiA.d.cts → reactive-layout-BtZfUKuL.d.cts} +1 -1
- package/dist/{reactive-layout-DkTXxtSy.d.ts → reactive-layout-KJj4E2dT.d.ts} +1 -1
- package/dist/{reactive-map-B2qfD3hb.d.cts → reactive-map-6P_k3AQM.d.cts} +1 -1
- package/dist/{reactive-map-jFIsE6Kt.d.ts → reactive-map-CjXByDV-.d.ts} +1 -1
- package/dist/{resilience-HTF2LBRS.js → resilience-JISHQD2F.js} +1 -1
- package/dist/{topology-tree-B5Ngw3j0.d.cts → topology-tree-3LBKFsUo.d.cts} +1 -1
- package/dist/{topology-tree-BtvbgMXJ.d.ts → topology-tree-mF7Emqzm.d.ts} +1 -1
- package/package.json +1 -1
- package/dist/chunk-5XRI6RM3.js +0 -1
- package/dist/chunk-73PBQNST.js +0 -1
- package/dist/chunk-A6ZSKGUG.js +0 -1
- package/dist/chunk-EWF7KCDJ.js +0 -61
- package/dist/chunk-IUB4NYI2.js +0 -1
- package/dist/chunk-MC4UYY2X.js +0 -1
- package/dist/chunk-XEUANKBO.js +0 -43
- package/dist/chunk-ZJ7SM3G2.js +0 -1
- package/dist/index-BEHmxORq.d.ts +0 -135
- package/dist/index-BM9szD8n.d.cts +0 -113
- package/dist/index-BskfDoZ_.d.ts +0 -113
- package/dist/index-CIRG8Hxp.d.cts +0 -135
- package/dist/index-Cey6VTnX.d.ts +0 -166
- package/dist/index-CpLpJb6A.d.cts +0 -166
package/dist/extra/index.d.cts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export { A as AckableMessage, a as AdapterHandlers, B as BatchMessage, b as BridgeMessage, c as BufferedSinkHandle, d as BundleTriad, C as CSVRow, e as CacheEvictionPolicy, f as CascadingCache, g as CascadingCacheOptions, h as CheckpointToRedisOptions, i as CheckpointToS3Options, j as ClickHouseClientLike, k as ClickHouseInsertClientLike, l as ClickHouseRow, m as CronSchedule, D as DrizzleQueryLike, E as EmitTriad, n as ErrorMessage, o as ExternalBundleOptions, p as ExternalRegister, F as FileWriterLike, q as FromCSVOptions, r as FromClickHouseWatchOptions, s as FromDrizzleOptions, t as FromHTTPOptions, u as FromHTTPPollOptions, v as FromHTTPStreamOptions, w as FromKafkaOptions, x as FromKyselyOptions, y as FromMCPOptions, z as FromNATSOptions, G as FromNDJSONOptions, H as FromOTelOptions, I as FromPrismaOptions, J as FromPrometheusOptions, K as FromPulsarOptions, L as FromRabbitMQOptions, M as FromRedisStreamOptions, N as FromSSEOptions, O as FromSqliteOptions, P as FromStatsDOptions, Q as FromSyslogOptions, R as FromWebSocketReconnectOptions, S as HTTPBundle, T as InitMessage, U as KafkaConsumerLike, V as KafkaMessage, W as KafkaProducerLike, X as KyselyQueryLike, Y as LokiClientLike, Z as LokiStream, _ as MCPClientLike, $ as MongoCollectionLike, a0 as NATSClientLike, a1 as NATSMessage, a2 as NATSSubscriptionLike, a3 as NativePubSubBackend, a4 as OTelBundle, a5 as OTelLog, a6 as OTelMetric, a7 as OTelRegister, a8 as OTelSpan, a9 as ParseSSEStreamOptions, aa as PostgresClientLike, ab as PrismaModelLike, ac as PrometheusMetric, ad as PubSubBackend, ae as PubSubHub, af as PubSubHubOptions, ag as PulsarConsumerLike, ah as PulsarMessage, ai as PulsarProducerLike, aj as RabbitMQChannelLike, ak as RabbitMQMessage, al as ReactiveSinkBackpressureOptions, am as ReactiveSinkConfig, an as ReactiveSinkHandle, ao as ReactiveSinkOptions, ap as ReactiveSinkRetryOptions, aq as ReadyMessage, ar as RedisCheckpointClientLike, as as RedisClientLike, at as RedisStreamEntry, au as ResettableTimer, av as S3ClientLike, aw as SSEEvent, ax as SignalMessage, ay as SingleFromAnyOptions, az as SinkFailure, aA as SinkHandle, aB as SinkTransportError, aC as SqliteDbLike, aD as SqliteIterableDbLike, aE as StatsDMetric, aF as StatsDRegister, aG as StratifyOptions, aH as StratifyRule, aI as SyslogMessage, aJ as SyslogRegister, aK as TempoClientLike, aL as ToCSVOptions, aM as ToClickHouseOptions, aN as ToFileOptions, aO as ToHTTPOptions, aP as ToKafkaOptions, aQ as ToLokiOptions, aR as ToMongoOptions, aS as ToNATSOptions, aT as ToPostgresOptions, aU as ToPulsarOptions, aV as ToRabbitMQOptions, aW as ToRedisStreamOptions, aX as ToS3Options, aY as ToSSEOptions, aZ as ToSqliteOptions, a_ as ToTempoOptions, a$ as ToWebSocketOptions, b0 as ValueMessage, b1 as WatermarkController, b2 as WatermarkOptions, b3 as WebSocketLike, b4 as WebSocketMessageEventLike, b5 as WebSocketRegister, b6 as WebhookRegister, b7 as WorkerBridge, b8 as WorkerBridgeOptions, b9 as WorkerSelfHandle, ba as WorkerSelfOptions, bb as WorkerTransport, bc as cascadingCache, bd as checkpointToRedis, be as checkpointToS3, bf as createTransport, bg as createWatermarkController, bh as csvRows, bi as
|
|
2
|
-
export { B as BackoffPreset,
|
|
3
|
-
export { D as DistillBundle, a as DistillOptions, E as Extraction, V as VerifiableBundle, b as VerifiableOptions, c as VerifyValue, d as distill, v as verifiable } from '../
|
|
4
|
-
export { f as DescribeChangeset, g as DescribeEvent, M as DescribeNodeMeta,
|
|
1
|
+
export { A as AckableMessage, a as AdapterHandlers, B as BatchMessage, b as BridgeMessage, c as BufferedSinkHandle, d as BundleTriad, C as CSVRow, e as CacheEvictionPolicy, f as CascadingCache, g as CascadingCacheOptions, h as CheckpointToRedisOptions, i as CheckpointToS3Options, j as ClickHouseClientLike, k as ClickHouseInsertClientLike, l as ClickHouseRow, m as CronSchedule, D as DrizzleQueryLike, E as EmitTriad, n as ErrorMessage, o as ExternalBundleOptions, p as ExternalRegister, F as FileWriterLike, q as FromCSVOptions, r as FromClickHouseWatchOptions, s as FromDrizzleOptions, t as FromHTTPOptions, u as FromHTTPPollOptions, v as FromHTTPStreamOptions, w as FromKafkaOptions, x as FromKyselyOptions, y as FromMCPOptions, z as FromNATSOptions, G as FromNDJSONOptions, H as FromOTelOptions, I as FromPrismaOptions, J as FromPrometheusOptions, K as FromPulsarOptions, L as FromRabbitMQOptions, M as FromRedisStreamOptions, N as FromSSEOptions, O as FromSqliteOptions, P as FromStatsDOptions, Q as FromSyslogOptions, R as FromWebSocketReconnectOptions, S as HTTPBundle, T as InitMessage, U as KafkaConsumerLike, V as KafkaMessage, W as KafkaProducerLike, X as KyselyQueryLike, Y as LokiClientLike, Z as LokiStream, _ as MCPClientLike, $ as MongoCollectionLike, a0 as NATSClientLike, a1 as NATSMessage, a2 as NATSSubscriptionLike, a3 as NativePubSubBackend, a4 as OTelBundle, a5 as OTelLog, a6 as OTelMetric, a7 as OTelRegister, a8 as OTelSpan, a9 as ParseSSEStreamOptions, aa as PostgresClientLike, ab as PrismaModelLike, ac as PrometheusMetric, ad as PubSubBackend, ae as PubSubHub, af as PubSubHubOptions, ag as PulsarConsumerLike, ah as PulsarMessage, ai as PulsarProducerLike, aj as RabbitMQChannelLike, ak as RabbitMQMessage, al as ReactiveSinkBackpressureOptions, am as ReactiveSinkConfig, an as ReactiveSinkHandle, ao as ReactiveSinkOptions, ap as ReactiveSinkRetryOptions, aq as ReadyMessage, ar as RedisCheckpointClientLike, as as RedisClientLike, at as RedisStreamEntry, au as ResettableTimer, av as S3ClientLike, aw as SSEEvent, ax as SignalMessage, ay as SingleFromAnyOptions, az as SinkFailure, aA as SinkHandle, aB as SinkTransportError, aC as SqliteDbLike, aD as SqliteIterableDbLike, aE as StatsDMetric, aF as StatsDRegister, aG as StratifyOptions, aH as StratifyRule, aI as SyslogMessage, aJ as SyslogRegister, aK as TempoClientLike, aL as ToCSVOptions, aM as ToClickHouseOptions, aN as ToFileOptions, aO as ToHTTPOptions, aP as ToKafkaOptions, aQ as ToLokiOptions, aR as ToMongoOptions, aS as ToNATSOptions, aT as ToPostgresOptions, aU as ToPulsarOptions, aV as ToRabbitMQOptions, aW as ToRedisStreamOptions, aX as ToS3Options, aY as ToSSEOptions, aZ as ToSqliteOptions, a_ as ToTempoOptions, a$ as ToWebSocketOptions, b0 as ValueMessage, b1 as WatermarkController, b2 as WatermarkOptions, b3 as WebSocketLike, b4 as WebSocketMessageEventLike, b5 as WebSocketRegister, b6 as WebhookRegister, b7 as WorkerBridge, b8 as WorkerBridgeOptions, b9 as WorkerSelfHandle, ba as WorkerSelfOptions, bb as WorkerTransport, bc as cascadingCache, bd as checkpointToRedis, be as checkpointToS3, bf as createTransport, bg as createWatermarkController, bh as csvRows, bi as deserializeError, bj as domainMeta, bk as externalBundle, bl as externalProducer, bn as fromCSV, bo as fromClickHouseWatch, bp as fromDrizzle, bq as fromHTTP, br as fromHTTPPoll, bs as fromHTTPStream, bt as fromKafka, bu as fromKysely, bv as fromMCP, bw as fromNATS, bx as fromNDJSON, by as fromOTel, bz as fromPrisma, bA as fromPrometheus, bB as fromPulsar, bC as fromRabbitMQ, bD as fromRedisStream, bE as fromSSE, bF as fromSqlite, bG as fromSqliteCursor, bH as fromStatsD, bI as fromSyslog, bJ as fromWebSocket, bK as fromWebSocketReconnect, bL as fromWebhook, bM as lru, bN as makeHttpError, bO as matchesCron, bP as nameToSignal, bQ as ndjsonRows, bR as parseCron, bS as parsePrometheusText, bT as parseSSEStream, bU as parseStatsD, bV as parseSyslog, bW as pubsub, bX as reactiveSink, bY as serializeError, bZ as signalToName, b_ as singleFromAny, b$ as singleNodeFromAny, c0 as stratify, c1 as toCSV, c2 as toClickHouse, c3 as toFile, c4 as toHTTP, c5 as toKafka, c6 as toLoki, c7 as toMongo, c8 as toNATS, c9 as toPostgres, ca as toPulsar, cb as toRabbitMQ, cc as toReadableStream, cd as toRedisStream, ce as toS3, cf as toSSE, cg as toSSEBytes, ch as toSqlite, ci as toTempo, cj as toWebSocket, ck as workerBridge, cl as workerSelf } from '../index-BilOa6AE.cjs';
|
|
2
|
+
export { B as BackoffPreset, e as BackoffStrategy, f as CircuitBreaker, b as CircuitBreakerOptions, g as CircuitOpenError, C as CircuitState, E as ExponentialBackoffOptions, F as FallbackInput, J as JitterMode, N as NS_PER_MS, d as NS_PER_SEC, a as RateLimiterOptions, h as RateLimiterOverflowError, i as RateLimiterOverflowPolicy, c as RetryOptions, S as StatusValue, T as TimeoutError, j as TokenBucket, W as WithBreakerBundle, k as WithStatusBundle, l as circuitBreaker, m as constant, n as decorrelatedJitter, o as exponential, p as fallback, q as fibonacci, r as linear, s as rateLimiter, t as resolveBackoffPreset, u as retry, v as timeout, w as tokenBucket, x as withBreaker, y as withMaxAttempts, z as withStatus } from '../index-DGTo1yka.cjs';
|
|
3
|
+
export { D as DistillBundle, a as DistillOptions, E as Extraction, V as VerifiableBundle, b as VerifiableOptions, c as VerifyValue, d as decay, e as distill, v as verifiable } from '../decay-C25AyNAj.cjs';
|
|
4
|
+
export { f as DescribeChangeset, g as DescribeEvent, M as DescribeNodeMeta, Q as topologyDiff } from '../graph-E6likq7w.cjs';
|
|
5
5
|
export { C as ContentAddressedMissError, a as ContentAddressedMode, b as ContentAddressedStorage, c as ContentAddressedStorageOptions, d as canonicalJson, e as contentAddressedStorage } from '../content-addressed-storage-4-ST1tYk.cjs';
|
|
6
|
-
export { A as AuditLogOpts, B as BaseAuditRecord, D as DEFAULT_AUDIT_GUARD, F as FailureMeta, L as LightMutationOpts, M as MutationOpts, S as SuccessMeta, W as WrapMutationOpts, a as appendAudit, b as bumpCursor, c as createAuditLog, l as lightMutation, r as registerCursor, d as registerCursorMap, t as tryIncrementBounded, w as wrapMutation } from '../index-
|
|
6
|
+
export { A as AuditLogOpts, B as BaseAuditRecord, D as DEFAULT_AUDIT_GUARD, F as FailureMeta, L as LightMutationOpts, M as MutationOpts, S as SuccessMeta, W as WrapMutationOpts, a as appendAudit, b as bumpCursor, c as createAuditLog, l as lightMutation, r as registerCursor, d as registerCursorMap, t as tryIncrementBounded, w as wrapMutation } from '../index-DVDapw2k.cjs';
|
|
7
7
|
export { T as ToObservableOptions, t as toObservable } from '../observable-DMIlYJV1.cjs';
|
|
8
8
|
export { MergeMapOptions, TapObserver, ThrottleOptions, audit, buffer, bufferCount, bufferTime, catchError, combine, combineLatest, concat, concatMap, debounce, debounceTime, delay, distinctUntilChanged, elementAt, exhaustMap, filter, find, first, flatMap, interval, last, map, merge, mergeMap, onFirstData, pairwise, pausable, race, reduce, repeat, rescue, sample, scan, skip, switchMap, take, takeUntil, takeWhile, tap, tapFirst, throttle, throttleTime, valve, window, windowCount, windowTime, withLatestFrom, zip } from './operators.cjs';
|
|
9
9
|
export { IndexBackend, IndexRow, ListBackend, NativeIndexBackend, NativeListBackend, ReactiveIndexBundle, ReactiveIndexOptions, ReactiveListBundle, ReactiveListOptions, UpsertOptions, reactiveIndex, reactiveList } from './reactive.cjs';
|
|
10
10
|
export { L as LogBackend, M as MergedReactiveLog, N as NativeLogBackend, a as ReactiveLogBundle, R as ReactiveLogOptions, V as ViewSpec, m as mergeReactiveLogs, r as reactiveLog } from '../reactive-log-_zeEnB9H.cjs';
|
|
11
|
-
export { M as MapBackend, N as NativeMapBackend,
|
|
11
|
+
export { M as MapBackend, N as NativeMapBackend, a as NativeMapBackendOptions, R as ReactiveMapBundle, b as ReactiveMapOptions, c as ReactiveMapRetention, r as reactiveMap } from '../reactive-map-6P_k3AQM.cjs';
|
|
12
12
|
export { AsyncSourceOpts, EventTargetLike, FromCronOptions, NodeInput, ReactiveCounterBundle, awaitSettled, cached, defer, empty, escapeRegexChar, firstValueFrom, firstWhere, forEach, fromAny, fromAsyncIter, fromCron, fromEvent, fromIter, fromPromise, fromRaf, fromTimer, globToRegExp, keepalive, matchesAnyPattern, never, nodeSignal, of, reactiveCounter, replay, share, shareReplay, throwError, toArray } from './sources.cjs';
|
|
13
13
|
export { StorageHandle, sortJsonValue, stableJsonString } from './storage-core.cjs';
|
|
14
14
|
export { AppendCursor, AppendLoadResult, AppendLogStorageOptions, AppendLogStorageTier, BaseStorageTier, Codec, KvStorageOptions, KvStorageTier, SnapshotStorageOptions, SnapshotStorageTier, StorageBackend, appendLogStorage, dictKv, dictSnapshot, jsonCodec, jsonCodecFor, kvStorage, memoryAppendLog, memoryBackend, memoryKv, memorySnapshot, snapshotStorage } from './storage-tiers.cjs';
|
package/dist/extra/index.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export { A as AckableMessage, a as AdapterHandlers, B as BatchMessage, b as BridgeMessage, c as BufferedSinkHandle, d as BundleTriad, C as CSVRow, e as CacheEvictionPolicy, f as CascadingCache, g as CascadingCacheOptions, h as CheckpointToRedisOptions, i as CheckpointToS3Options, j as ClickHouseClientLike, k as ClickHouseInsertClientLike, l as ClickHouseRow, m as CronSchedule, D as DrizzleQueryLike, E as EmitTriad, n as ErrorMessage, o as ExternalBundleOptions, p as ExternalRegister, F as FileWriterLike, q as FromCSVOptions, r as FromClickHouseWatchOptions, s as FromDrizzleOptions, t as FromHTTPOptions, u as FromHTTPPollOptions, v as FromHTTPStreamOptions, w as FromKafkaOptions, x as FromKyselyOptions, y as FromMCPOptions, z as FromNATSOptions, G as FromNDJSONOptions, H as FromOTelOptions, I as FromPrismaOptions, J as FromPrometheusOptions, K as FromPulsarOptions, L as FromRabbitMQOptions, M as FromRedisStreamOptions, N as FromSSEOptions, O as FromSqliteOptions, P as FromStatsDOptions, Q as FromSyslogOptions, R as FromWebSocketReconnectOptions, S as HTTPBundle, T as InitMessage, U as KafkaConsumerLike, V as KafkaMessage, W as KafkaProducerLike, X as KyselyQueryLike, Y as LokiClientLike, Z as LokiStream, _ as MCPClientLike, $ as MongoCollectionLike, a0 as NATSClientLike, a1 as NATSMessage, a2 as NATSSubscriptionLike, a3 as NativePubSubBackend, a4 as OTelBundle, a5 as OTelLog, a6 as OTelMetric, a7 as OTelRegister, a8 as OTelSpan, a9 as ParseSSEStreamOptions, aa as PostgresClientLike, ab as PrismaModelLike, ac as PrometheusMetric, ad as PubSubBackend, ae as PubSubHub, af as PubSubHubOptions, ag as PulsarConsumerLike, ah as PulsarMessage, ai as PulsarProducerLike, aj as RabbitMQChannelLike, ak as RabbitMQMessage, al as ReactiveSinkBackpressureOptions, am as ReactiveSinkConfig, an as ReactiveSinkHandle, ao as ReactiveSinkOptions, ap as ReactiveSinkRetryOptions, aq as ReadyMessage, ar as RedisCheckpointClientLike, as as RedisClientLike, at as RedisStreamEntry, au as ResettableTimer, av as S3ClientLike, aw as SSEEvent, ax as SignalMessage, ay as SingleFromAnyOptions, az as SinkFailure, aA as SinkHandle, aB as SinkTransportError, aC as SqliteDbLike, aD as SqliteIterableDbLike, aE as StatsDMetric, aF as StatsDRegister, aG as StratifyOptions, aH as StratifyRule, aI as SyslogMessage, aJ as SyslogRegister, aK as TempoClientLike, aL as ToCSVOptions, aM as ToClickHouseOptions, aN as ToFileOptions, aO as ToHTTPOptions, aP as ToKafkaOptions, aQ as ToLokiOptions, aR as ToMongoOptions, aS as ToNATSOptions, aT as ToPostgresOptions, aU as ToPulsarOptions, aV as ToRabbitMQOptions, aW as ToRedisStreamOptions, aX as ToS3Options, aY as ToSSEOptions, aZ as ToSqliteOptions, a_ as ToTempoOptions, a$ as ToWebSocketOptions, b0 as ValueMessage, b1 as WatermarkController, b2 as WatermarkOptions, b3 as WebSocketLike, b4 as WebSocketMessageEventLike, b5 as WebSocketRegister, b6 as WebhookRegister, b7 as WorkerBridge, b8 as WorkerBridgeOptions, b9 as WorkerSelfHandle, ba as WorkerSelfOptions, bb as WorkerTransport, bc as cascadingCache, bd as checkpointToRedis, be as checkpointToS3, bf as createTransport, bg as createWatermarkController, bh as csvRows, bi as
|
|
2
|
-
export { B as BackoffPreset,
|
|
3
|
-
export { D as DistillBundle, a as DistillOptions, E as Extraction, V as VerifiableBundle, b as VerifiableOptions, c as VerifyValue, d as distill, v as verifiable } from '../
|
|
4
|
-
export { f as DescribeChangeset, g as DescribeEvent, M as DescribeNodeMeta,
|
|
1
|
+
export { A as AckableMessage, a as AdapterHandlers, B as BatchMessage, b as BridgeMessage, c as BufferedSinkHandle, d as BundleTriad, C as CSVRow, e as CacheEvictionPolicy, f as CascadingCache, g as CascadingCacheOptions, h as CheckpointToRedisOptions, i as CheckpointToS3Options, j as ClickHouseClientLike, k as ClickHouseInsertClientLike, l as ClickHouseRow, m as CronSchedule, D as DrizzleQueryLike, E as EmitTriad, n as ErrorMessage, o as ExternalBundleOptions, p as ExternalRegister, F as FileWriterLike, q as FromCSVOptions, r as FromClickHouseWatchOptions, s as FromDrizzleOptions, t as FromHTTPOptions, u as FromHTTPPollOptions, v as FromHTTPStreamOptions, w as FromKafkaOptions, x as FromKyselyOptions, y as FromMCPOptions, z as FromNATSOptions, G as FromNDJSONOptions, H as FromOTelOptions, I as FromPrismaOptions, J as FromPrometheusOptions, K as FromPulsarOptions, L as FromRabbitMQOptions, M as FromRedisStreamOptions, N as FromSSEOptions, O as FromSqliteOptions, P as FromStatsDOptions, Q as FromSyslogOptions, R as FromWebSocketReconnectOptions, S as HTTPBundle, T as InitMessage, U as KafkaConsumerLike, V as KafkaMessage, W as KafkaProducerLike, X as KyselyQueryLike, Y as LokiClientLike, Z as LokiStream, _ as MCPClientLike, $ as MongoCollectionLike, a0 as NATSClientLike, a1 as NATSMessage, a2 as NATSSubscriptionLike, a3 as NativePubSubBackend, a4 as OTelBundle, a5 as OTelLog, a6 as OTelMetric, a7 as OTelRegister, a8 as OTelSpan, a9 as ParseSSEStreamOptions, aa as PostgresClientLike, ab as PrismaModelLike, ac as PrometheusMetric, ad as PubSubBackend, ae as PubSubHub, af as PubSubHubOptions, ag as PulsarConsumerLike, ah as PulsarMessage, ai as PulsarProducerLike, aj as RabbitMQChannelLike, ak as RabbitMQMessage, al as ReactiveSinkBackpressureOptions, am as ReactiveSinkConfig, an as ReactiveSinkHandle, ao as ReactiveSinkOptions, ap as ReactiveSinkRetryOptions, aq as ReadyMessage, ar as RedisCheckpointClientLike, as as RedisClientLike, at as RedisStreamEntry, au as ResettableTimer, av as S3ClientLike, aw as SSEEvent, ax as SignalMessage, ay as SingleFromAnyOptions, az as SinkFailure, aA as SinkHandle, aB as SinkTransportError, aC as SqliteDbLike, aD as SqliteIterableDbLike, aE as StatsDMetric, aF as StatsDRegister, aG as StratifyOptions, aH as StratifyRule, aI as SyslogMessage, aJ as SyslogRegister, aK as TempoClientLike, aL as ToCSVOptions, aM as ToClickHouseOptions, aN as ToFileOptions, aO as ToHTTPOptions, aP as ToKafkaOptions, aQ as ToLokiOptions, aR as ToMongoOptions, aS as ToNATSOptions, aT as ToPostgresOptions, aU as ToPulsarOptions, aV as ToRabbitMQOptions, aW as ToRedisStreamOptions, aX as ToS3Options, aY as ToSSEOptions, aZ as ToSqliteOptions, a_ as ToTempoOptions, a$ as ToWebSocketOptions, b0 as ValueMessage, b1 as WatermarkController, b2 as WatermarkOptions, b3 as WebSocketLike, b4 as WebSocketMessageEventLike, b5 as WebSocketRegister, b6 as WebhookRegister, b7 as WorkerBridge, b8 as WorkerBridgeOptions, b9 as WorkerSelfHandle, ba as WorkerSelfOptions, bb as WorkerTransport, bc as cascadingCache, bd as checkpointToRedis, be as checkpointToS3, bf as createTransport, bg as createWatermarkController, bh as csvRows, bi as deserializeError, bj as domainMeta, bk as externalBundle, bl as externalProducer, bn as fromCSV, bo as fromClickHouseWatch, bp as fromDrizzle, bq as fromHTTP, br as fromHTTPPoll, bs as fromHTTPStream, bt as fromKafka, bu as fromKysely, bv as fromMCP, bw as fromNATS, bx as fromNDJSON, by as fromOTel, bz as fromPrisma, bA as fromPrometheus, bB as fromPulsar, bC as fromRabbitMQ, bD as fromRedisStream, bE as fromSSE, bF as fromSqlite, bG as fromSqliteCursor, bH as fromStatsD, bI as fromSyslog, bJ as fromWebSocket, bK as fromWebSocketReconnect, bL as fromWebhook, bM as lru, bN as makeHttpError, bO as matchesCron, bP as nameToSignal, bQ as ndjsonRows, bR as parseCron, bS as parsePrometheusText, bT as parseSSEStream, bU as parseStatsD, bV as parseSyslog, bW as pubsub, bX as reactiveSink, bY as serializeError, bZ as signalToName, b_ as singleFromAny, b$ as singleNodeFromAny, c0 as stratify, c1 as toCSV, c2 as toClickHouse, c3 as toFile, c4 as toHTTP, c5 as toKafka, c6 as toLoki, c7 as toMongo, c8 as toNATS, c9 as toPostgres, ca as toPulsar, cb as toRabbitMQ, cc as toReadableStream, cd as toRedisStream, ce as toS3, cf as toSSE, cg as toSSEBytes, ch as toSqlite, ci as toTempo, cj as toWebSocket, ck as workerBridge, cl as workerSelf } from '../index-WSlcjhQF.js';
|
|
2
|
+
export { B as BackoffPreset, e as BackoffStrategy, f as CircuitBreaker, b as CircuitBreakerOptions, g as CircuitOpenError, C as CircuitState, E as ExponentialBackoffOptions, F as FallbackInput, J as JitterMode, N as NS_PER_MS, d as NS_PER_SEC, a as RateLimiterOptions, h as RateLimiterOverflowError, i as RateLimiterOverflowPolicy, c as RetryOptions, S as StatusValue, T as TimeoutError, j as TokenBucket, W as WithBreakerBundle, k as WithStatusBundle, l as circuitBreaker, m as constant, n as decorrelatedJitter, o as exponential, p as fallback, q as fibonacci, r as linear, s as rateLimiter, t as resolveBackoffPreset, u as retry, v as timeout, w as tokenBucket, x as withBreaker, y as withMaxAttempts, z as withStatus } from '../index-BAQrjuZF.js';
|
|
3
|
+
export { D as DistillBundle, a as DistillOptions, E as Extraction, V as VerifiableBundle, b as VerifiableOptions, c as VerifyValue, d as decay, e as distill, v as verifiable } from '../decay-BnrlbxSv.js';
|
|
4
|
+
export { f as DescribeChangeset, g as DescribeEvent, M as DescribeNodeMeta, Q as topologyDiff } from '../graph-BkIkog4h.js';
|
|
5
5
|
export { C as ContentAddressedMissError, a as ContentAddressedMode, b as ContentAddressedStorage, c as ContentAddressedStorageOptions, d as canonicalJson, e as contentAddressedStorage } from '../content-addressed-storage-DuYMjV7o.js';
|
|
6
|
-
export { A as AuditLogOpts, B as BaseAuditRecord, D as DEFAULT_AUDIT_GUARD, F as FailureMeta, L as LightMutationOpts, M as MutationOpts, S as SuccessMeta, W as WrapMutationOpts, a as appendAudit, b as bumpCursor, c as createAuditLog, l as lightMutation, r as registerCursor, d as registerCursorMap, t as tryIncrementBounded, w as wrapMutation } from '../index-
|
|
6
|
+
export { A as AuditLogOpts, B as BaseAuditRecord, D as DEFAULT_AUDIT_GUARD, F as FailureMeta, L as LightMutationOpts, M as MutationOpts, S as SuccessMeta, W as WrapMutationOpts, a as appendAudit, b as bumpCursor, c as createAuditLog, l as lightMutation, r as registerCursor, d as registerCursorMap, t as tryIncrementBounded, w as wrapMutation } from '../index-BQ1fR4li.js';
|
|
7
7
|
export { T as ToObservableOptions, t as toObservable } from '../observable-DO8DDEzv.js';
|
|
8
8
|
export { MergeMapOptions, TapObserver, ThrottleOptions, audit, buffer, bufferCount, bufferTime, catchError, combine, combineLatest, concat, concatMap, debounce, debounceTime, delay, distinctUntilChanged, elementAt, exhaustMap, filter, find, first, flatMap, interval, last, map, merge, mergeMap, onFirstData, pairwise, pausable, race, reduce, repeat, rescue, sample, scan, skip, switchMap, take, takeUntil, takeWhile, tap, tapFirst, throttle, throttleTime, valve, window, windowCount, windowTime, withLatestFrom, zip } from './operators.js';
|
|
9
9
|
export { IndexBackend, IndexRow, ListBackend, NativeIndexBackend, NativeListBackend, ReactiveIndexBundle, ReactiveIndexOptions, ReactiveListBundle, ReactiveListOptions, UpsertOptions, reactiveIndex, reactiveList } from './reactive.js';
|
|
10
10
|
export { L as LogBackend, M as MergedReactiveLog, N as NativeLogBackend, a as ReactiveLogBundle, R as ReactiveLogOptions, V as ViewSpec, m as mergeReactiveLogs, r as reactiveLog } from '../reactive-log-BlAsPLl2.js';
|
|
11
|
-
export { M as MapBackend, N as NativeMapBackend,
|
|
11
|
+
export { M as MapBackend, N as NativeMapBackend, a as NativeMapBackendOptions, R as ReactiveMapBundle, b as ReactiveMapOptions, c as ReactiveMapRetention, r as reactiveMap } from '../reactive-map-CjXByDV-.js';
|
|
12
12
|
export { AsyncSourceOpts, EventTargetLike, FromCronOptions, NodeInput, ReactiveCounterBundle, awaitSettled, cached, defer, empty, escapeRegexChar, firstValueFrom, firstWhere, forEach, fromAny, fromAsyncIter, fromCron, fromEvent, fromIter, fromPromise, fromRaf, fromTimer, globToRegExp, keepalive, matchesAnyPattern, never, nodeSignal, of, reactiveCounter, replay, share, shareReplay, throwError, toArray } from './sources.js';
|
|
13
13
|
export { StorageHandle, sortJsonValue, stableJsonString } from './storage-core.js';
|
|
14
14
|
export { AppendCursor, AppendLoadResult, AppendLogStorageOptions, AppendLogStorageTier, BaseStorageTier, Codec, KvStorageOptions, KvStorageTier, SnapshotStorageOptions, SnapshotStorageTier, StorageBackend, appendLogStorage, dictKv, dictSnapshot, jsonCodec, jsonCodecFor, kvStorage, memoryAppendLog, memoryBackend, memoryKv, memorySnapshot, snapshotStorage } from './storage-tiers.js';
|
package/dist/extra/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as jc,b as kc,c as tc,d as uc,e as Qc,f as Rc,g as Sc,h as Tc,i as Uc,j as Vc,k as Wc}from"../chunk-
|
|
1
|
+
import{a as jc,b as kc,c as tc,d as uc,e as Qc,f as Rc,g as Sc,h as Tc,i as Uc,j as Vc,k as Wc}from"../chunk-ZAJ7J7TO.js";import{a as nc,b as oc}from"../chunk-WZYB3JQS.js";import{b as Pc}from"../chunk-TSOYJ743.js";import{$ as hc,A as Ib,B as Jb,C as Kb,D as Lb,E as Mb,F as Nb,G as Ob,H as Pb,I as Qb,J as Rb,K as Sb,L as Tb,M as Ub,N as Vb,O as Wb,P as Xb,Q as Yb,R as Zb,S as _b,T as $b,U as ac,V as bc,W as cc,X as dc,Y as ec,Z as fc,_ as gc,a as oa,aa as ic,b as pa,ba as sc,c as kb,d as lb,e as mb,f as nb,g as ob,h as pb,i as qb,j as rb,k as sb,l as tb,m as ub,n as vb,o as wb,p as xb,q as yb,r as zb,s as Ab,t as Bb,u as Cb,v as Db,w as Eb,x as Fb,y as Gb,z as Hb}from"../chunk-CYOSWFT2.js";import{a as e,b as p,c as q,d as r,e as s,f as t,g as u,h as v,i as w,j as x,k as y,l as z}from"../chunk-4MKL6Q3K.js";import{b as pc,c as qc,d as rc,e as zc,f as Ac}from"../chunk-KNVCCBIU.js";import{a as Oc}from"../chunk-AI7QC7J6.js";import{a as vc,b as wc}from"../chunk-NNKJUORL.js";import{a as xc,b as yc}from"../chunk-KGKJCHEK.js";import{a as lc,b as mc}from"../chunk-TZQPPQEQ.js";import{a,b as aa}from"../chunk-5QDBSZBV.js";import{a as fa,b as ga,c as ha,d as ia,e as ja,f as ka,g as la,h as ma,i as na}from"../chunk-VXPLLA4P.js";import{a as d}from"../chunk-L6NSJVJZ.js";import{a as ca,b as da,c as ea}from"../chunk-TT4C7DXW.js";import{a as ba}from"../chunk-POXANAJ6.js";import"../chunk-SGS4OJGS.js";import{a as o}from"../chunk-ESMPEKEV.js";import{a as Dc,b as Ec,c as Fc,d as Gc,e as Hc,f as Ic,g as Jc,h as Kc,i as Lc,j as Mc,k as Nc}from"../chunk-D5RFJOZ2.js";import{a as Bc,b as Cc}from"../chunk-CE72X3WO.js";import{A as Qa,B as Ra,C as Sa,D as Ta,E as Ua,F as Va,G as Wa,I as Xa,J as Ya,K as Za,L as _a,M as $a,N as ab,O as bb,P as cb,Q as db,R as eb,S as fb,T as gb,U as hb,V as ib,W as jb,a as qa,b as ra,c as sa,d as ta,e as ua,f as va,g as wa,h as xa,i as ya,j as za,k as Aa,l as Ba,m as Ca,n as Da,o as Ea,p as Fa,q as Ga,r as Ha,s as Ia,t as Ja,u as Ka,v as La,w as Ma,x as Na,y as Oa,z as Pa}from"../chunk-AK5RHMC5.js";import{a as f,b as g,c as h,d as i,e as j,f as k,g as l,h as m,i as n}from"../chunk-4VVTGLXJ.js";import{A as Y,B as Z,C as _,D as $,a as b,b as c,c as A,d as B,e as C,f as D,g as E,h as F,i as G,j as H,k as I,l as J,m as K,n as L,o as M,p as N,q as O,r as P,s as Q,t as R,u as S,v as T,w as U,x as V,y as W,z as X}from"../chunk-L77I47VU.js";import"../chunk-35JTVPOX.js";import"../chunk-LYCLF26R.js";import"../chunk-CK2E7BTU.js";import"../chunk-QYADASLV.js";export{q as CircuitOpenError,pc as ContentAddressedMissError,ga as DEFAULT_AUDIT_GUARD,f as NS_PER_MS,g as NS_PER_SEC,vc as NativeIndexBackend,xc as NativeListBackend,ca as NativeLogBackend,lc as NativeMapBackend,tc as NativePubSubBackend,u as RateLimiterOverflowError,o as ResettableTimer,x as TimeoutError,ja as appendAudit,Hc as appendLogStorage,Wa as audit,X as awaitSettled,e as budgetGate,Xa as buffer,Ya as bufferCount,_a as bufferTime,ia as bumpCursor,U as cached,qc as canonicalJson,kc as cascadingCache,jb as catchError,cc as checkpointToRedis,bc as checkpointToS3,r as circuitBreaker,Ha as combine,gb as combineLatest,La as concat,Pa as concatMap,h as constant,rc as contentAddressedStorage,ha as createAuditLog,Uc as createTransport,aa as createWatermarkController,Lb as csvRows,Ta as debounce,hb as debounceTime,Pc as decay,l as decorrelatedJitter,P as defer,Sa as delay,Tc as deserializeError,Mc as dictKv,Nc as dictSnapshot,oc as distill,Fa as distinctUntilChanged,d as domainMeta,Ba as elementAt,M as empty,A as escapeRegexChar,Oa as exhaustMap,j as exponential,pa as externalBundle,oa as externalProducer,y as fallback,k as fibonacci,ra as filter,Aa as find,ya as first,V as firstValueFrom,W as firstWhere,Ra as flatMap,Q as forEach,K as fromAny,J as fromAsyncIter,Kb as fromCSV,Ob as fromClickHouseWatch,F as fromCron,hc as fromDrizzle,G as fromEvent,nb as fromHTTP,vb as fromHTTPPoll,ub as fromHTTPStream,H as fromIter,Gb as fromKafka,ic as fromKysely,yb as fromMCP,Rb as fromNATS,Nb as fromNDJSON,zb as fromOTel,gc as fromPrisma,Eb as fromPrometheus,I as fromPromise,Pb as fromPulsar,Tb as fromRabbitMQ,E as fromRaf,Ib as fromRedisStream,tb as fromSSE,dc as fromSqlite,ec as fromSqliteCursor,Cb as fromStatsD,Ab as fromSyslog,D as fromTimer,lb as fromWebSocket,xb as fromWebSocketReconnect,mb as fromWebhook,B as globToRegExp,bb as interval,Dc as jsonCodec,Ec as jsonCodecFor,_ as keepalive,Ic as kvStorage,za as last,ka as lightMutation,i as linear,jc as lru,sc as makeHttpError,qa as map,C as matchesAnyPattern,c as matchesCron,Kc as memoryAppendLog,Fc as memoryBackend,Lc as memoryKv,Jc as memorySnapshot,Ja as merge,Qa as mergeMap,ea as mergeReactiveLogs,Rc as nameToSignal,Mb as ndjsonRows,N as never,Y as nodeSignal,L as of,Da as onFirstData,Ga as pairwise,b as parseCron,Fb as parsePrometheusText,sb as parseSSEStream,Db as parseStatsD,Bb as parseSyslog,db as pausable,uc as pubsub,Ma as race,v as rateLimiter,$ as reactiveCounter,wc as reactiveIndex,yc as reactiveList,da as reactiveLog,mc as reactiveMap,kb as reactiveSink,ta as reduce,ma as registerCursor,na as registerCursorMap,cb as repeat,T as replay,eb as rescue,n as resolveBackoffPreset,p as retry,Va as sample,sa as scan,Sc as serializeError,S as share,Z as shareReplay,Qc as signalToName,zc as singleFromAny,Ac as singleNodeFromAny,va as skip,Gc as snapshotStorage,Bc as sortJsonValue,Cc as stableJsonString,Oc as stratify,Na as switchMap,ua as take,xa as takeUntil,wa as takeWhile,Ca as tap,Ea as tapFirst,Ua as throttle,ib as throttleTime,O as throwError,z as timeout,R as toArray,Wb as toCSV,Xb as toClickHouse,Vb as toFile,ob as toHTTP,Hb as toKafka,$b as toLoki,_b as toMongo,Sb as toNATS,a as toObservable,Zb as toPostgres,Qb as toPulsar,Ub as toRabbitMQ,rb as toReadableStream,Jb as toRedisStream,Yb as toS3,pb as toSSE,qb as toSSEBytes,fc as toSqlite,ac as toTempo,wb as toWebSocket,t as tokenBucket,ba as topologyDiff,fa as tryIncrementBounded,fb as valve,nc as verifiable,ab as window,Za as windowCount,$a as windowTime,s as withBreaker,Ia as withLatestFrom,m as withMaxAttempts,w as withStatus,Vc as workerBridge,Wc as workerSelf,la as wrapMutation,Ka as zip};
|
package/dist/extra/node.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as K,b as j,c as I,d as D,e as z,f as $,g as Q,h as U}from"../chunk-VN6RDSK2.js";import"../chunk-D5RFJOZ2.js";import"../chunk-CE72X3WO.js";import{x as P}from"../chunk-
|
|
1
|
+
import{a as K,b as j,c as I,d as D,e as z,f as $,g as Q,h as U}from"../chunk-VN6RDSK2.js";import"../chunk-D5RFJOZ2.js";import"../chunk-CE72X3WO.js";import{x as P}from"../chunk-AK5RHMC5.js";import"../chunk-4VVTGLXJ.js";import{d as E,e as g,f as L}from"../chunk-L77I47VU.js";import"../chunk-35JTVPOX.js";import{F as v,p as F}from"../chunk-LYCLF26R.js";import{b as y,i as B,j as x}from"../chunk-CK2E7BTU.js";import{a as q}from"../chunk-QYADASLV.js";function V(a,h){let{pollMs:o=5e3,include:c,exclude:e,maxConsecutiveErrors:t=1}=h??{},u=c?.map(E)??[],n=e?.map(E)??[],{execFileSync:d}=q("child_process"),r=S=>d("git",S,{cwd:a,encoding:"utf-8"}).trim(),l,i=0;return P(L(0,{period:o}),()=>v(S=>{try{let s=r(["rev-parse","HEAD"]);if(!s)return i=0,()=>{};if(l===void 0)return l=s,i=0,()=>{};if(s===l)return i=0,()=>{};let p=r(["diff","--name-only",`${l}..${s}`]).split(`
|
|
2
2
|
`).filter(Boolean);u.length>0&&(p=p.filter(w=>g(w,u))),n.length>0&&(p=p.filter(w=>!g(w,n)));let k=r(["log","-1","--format=%s",s]),T=r(["log","-1","--format=%an",s]);S.emit({hook:"post-commit",commit:s,files:p,message:k,author:T,timestamp_ns:F()}),l=s,i=0}catch(s){i+=1,i>=t&&S.down([[x,s]])}return()=>{}}))}import{existsSync as X,watch as Y}from"fs";import{resolve as _}from"path";function Z(a){return{describeKind:"producer",...a}}function Se(a,h){let o=Array.isArray(a)?a:[a];if(o.length===0)throw new RangeError("fromFSWatch expects at least one path");let{recursive:c=!0,debounce:e=100,include:t,exclude:u,...n}=h??{},d=t?.map(E)??[],r=(u??["**/node_modules/**","**/.git/**","**/dist/**"]).map(E);return v(l=>{let i=new Map,S=[],s=!1,p=!1,k=0,T=()=>{for(let f of S.splice(0))f.close()},w=f=>{p||(p=!0,s=!0,m!==void 0&&clearTimeout(m),m=void 0,i.clear(),T(),l.down([[x,f]]))},m,H=f=>{if(m=void 0,s||p||i.size===0)return;let O=[];for(let b of i.values())O.push([y,b]);i.clear(),!(s||p||f!==k)&&l.down(O)};try{for(let f of o){let O=Y(f,{recursive:c},(b,N)=>{if(s||p||N==null)return;let M=String(N).replaceAll("\\","/"),A=_(f,String(N)).replaceAll("\\","/"),J=_(f).replaceAll("\\","/"),R=M.startsWith("./")?M.slice(2):M;if(!(d.length===0||g(A,d)||g(R,d))||g(A,r)||g(R,r))return;let G="change";if(b==="rename")try{G=X(A)?"create":"delete"}catch{G="rename"}i.set(A,{type:G,path:A,root:J,relative_path:R,timestamp_ns:F()}),m!==void 0&&clearTimeout(m);let W=k;m=setTimeout(()=>H(W),e)});O.on("error",b=>w(b)),S.push(O)}}catch(f){w(f)}return()=>{s=!0,k+=1,m!==void 0&&clearTimeout(m),m=void 0,T(),i.clear()}},Z(n))}import{spawn as C}from"child_process";function ee(a,h,o){return v(c=>{let e=C(a,h,{cwd:o?.cwd,env:o?.env,shell:o?.shell,signal:o?.signal,stdio:o?.stdio??"pipe"}),t=!0,u=null;return e.stdout?.on("data",n=>{t&&c.down([[y,{kind:"stdout",chunk:n}]])}),e.stderr?.on("data",n=>{t&&c.down([[y,{kind:"stderr",chunk:n}]])}),e.on("error",n=>{t&&(t=!1,c.down([[x,n]]))}),e.on("exit",(n,d)=>{u==null&&(u={code:n,signal:d})}),e.on("close",()=>{if(!t)return;t=!1;let n=u??{code:null,signal:null};c.down([[y,{kind:"exit",code:n.code,signal:n.signal}],[B]])}),()=>{if(t){t=!1,e.stdout?.removeAllListeners(),e.stderr?.removeAllListeners(),e.removeAllListeners("error"),e.removeAllListeners("exit"),e.removeAllListeners("close");try{e.kill("SIGTERM")}catch{}}}},{name:"from_spawn"})}function te(a,h,o){return v(c=>{let e=C(a,h,{cwd:o?.cwd,env:o?.env,shell:o?.shell,signal:o?.signal,stdio:o?.stdio??"pipe"}),t=!0,u=[],n=[],d=null;return e.stdout?.on("data",r=>{t&&u.push(r)}),e.stderr?.on("data",r=>{t&&n.push(r)}),e.on("error",r=>{t&&(t=!1,c.down([[x,r]]))}),e.on("exit",(r,l)=>{d==null&&(d={code:r,signal:l})}),e.on("close",()=>{if(!t)return;t=!1;let r=d??{code:null,signal:null},l=Buffer.concat(u).toString("utf8"),i=Buffer.concat(n).toString("utf8");c.down([[y,{stdout:l,stderr:i,exitCode:r.code,signal:r.signal}],[B]])}),()=>{if(t){t=!1,e.stdout?.removeAllListeners(),e.stderr?.removeAllListeners(),e.removeAllListeners("error"),e.removeAllListeners("exit"),e.removeAllListeners("close");try{e.kill("SIGTERM")}catch{}}}},{name:"run_process"})}export{D as fileAppendLog,K as fileBackend,Q as fileKv,I as fileSnapshot,Se as fromFSWatch,V as fromGitHook,ee as fromSpawn,te as runProcess,$ as sqliteAppendLog,j as sqliteBackend,U as sqliteKv,z as sqliteSnapshot};
|
package/dist/extra/operators.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z}from"../chunk-
|
|
1
|
+
import{A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z}from"../chunk-AK5RHMC5.js";import"../chunk-4VVTGLXJ.js";import"../chunk-L77I47VU.js";import"../chunk-35JTVPOX.js";import"../chunk-LYCLF26R.js";import"../chunk-CK2E7BTU.js";import"../chunk-QYADASLV.js";export{G as audit,I as buffer,J as bufferCount,L as bufferTime,W as catchError,r as combine,T as combineLatest,v as concat,z as concatMap,D as debounce,U as debounceTime,C as delay,p as distinctUntilChanged,l as elementAt,y as exhaustMap,b as filter,k as find,i as first,B as flatMap,O as interval,j as last,a as map,t as merge,A as mergeMap,n as onFirstData,q as pairwise,Q as pausable,w as race,d as reduce,P as repeat,R as rescue,F as sample,c as scan,f as skip,x as switchMap,e as take,h as takeUntil,g as takeWhile,m as tap,o as tapFirst,E as throttle,V as throttleTime,H as timeout,S as valve,N as window,K as windowCount,M as windowTime,s as withLatestFrom,u as zip};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { N as Node, V as VersioningLevel } from '../node-BYInONRr.cjs';
|
|
2
2
|
export { L as LogBackend, M as MergedReactiveLog, N as NativeLogBackend, a as ReactiveLogBundle, R as ReactiveLogOptions, V as ViewSpec, m as mergeReactiveLogs, r as reactiveLog } from '../reactive-log-_zeEnB9H.cjs';
|
|
3
|
-
export { M as MapBackend, N as NativeMapBackend,
|
|
3
|
+
export { M as MapBackend, N as NativeMapBackend, a as NativeMapBackendOptions, R as ReactiveMapBundle, b as ReactiveMapOptions, c as ReactiveMapRetention, r as reactiveMap } from '../reactive-map-6P_k3AQM.cjs';
|
|
4
4
|
import './storage-tiers.cjs';
|
|
5
5
|
|
|
6
6
|
type IndexRow<K, V = unknown> = {
|
package/dist/extra/reactive.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { N as Node, V as VersioningLevel } from '../node-BYInONRr.js';
|
|
2
2
|
export { L as LogBackend, M as MergedReactiveLog, N as NativeLogBackend, a as ReactiveLogBundle, R as ReactiveLogOptions, V as ViewSpec, m as mergeReactiveLogs, r as reactiveLog } from '../reactive-log-BlAsPLl2.js';
|
|
3
|
-
export { M as MapBackend, N as NativeMapBackend,
|
|
3
|
+
export { M as MapBackend, N as NativeMapBackend, a as NativeMapBackendOptions, R as ReactiveMapBundle, b as ReactiveMapOptions, c as ReactiveMapRetention, r as reactiveMap } from '../reactive-map-CjXByDV-.js';
|
|
4
4
|
import './storage-tiers.js';
|
|
5
5
|
|
|
6
6
|
type IndexRow<K, V = unknown> = {
|
package/dist/extra/reactive.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as p,b as t}from"../chunk-NNKJUORL.js";import{a as x,b as a}from"../chunk-KGKJCHEK.js";import{a as f,b as m}from"../chunk-TZQPPQEQ.js";import{a as o,b as r,c as e}from"../chunk-
|
|
1
|
+
import{a as p,b as t}from"../chunk-NNKJUORL.js";import{a as x,b as a}from"../chunk-KGKJCHEK.js";import{a as f,b as m}from"../chunk-TZQPPQEQ.js";import{a as o,b as r,c as e}from"../chunk-TT4C7DXW.js";import"../chunk-L77I47VU.js";import"../chunk-LYCLF26R.js";import"../chunk-CK2E7BTU.js";import"../chunk-QYADASLV.js";export{p as NativeIndexBackend,x as NativeListBackend,o as NativeLogBackend,f as NativeMapBackend,e as mergeReactiveLogs,t as reactiveIndex,a as reactiveList,r as reactiveLog,m as reactiveMap};
|
package/dist/extra/sources.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var Te=Object.defineProperty;var zt=Object.getOwnPropertyDescriptor;var Ut=Object.getOwnPropertyNames;var Wt=Object.prototype.hasOwnProperty;var v=(t,e)=>()=>(t&&(e=t(t=0)),e);var ve=(t,e)=>{for(var n in e)Te(t,n,{get:e[n],enumerable:!0})},$t=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of Ut(e))!Wt.call(t,o)&&o!==n&&Te(t,o,{get:()=>e[o],enumerable:!(r=zt(e,o))||r.enumerable});return t};var jt=t=>$t(Te({},"__esModule",{value:!0}),t);function xe(){return Math.trunc(performance.now()*1e6)}function ae(){return Date.now()*1e6}var ue=v(()=>{"use strict"});var P,g,T,w,G,I,F,R,y,h,W,Ne,Kt,ke,qt,Yt,Ee,$e,je,Ke,Se,$=v(()=>{"use strict";P=Symbol.for("graphrefly/START"),g=Symbol.for("graphrefly/DATA"),T=Symbol.for("graphrefly/DIRTY"),w=Symbol.for("graphrefly/RESOLVED"),G=Symbol.for("graphrefly/INVALIDATE"),I=Symbol.for("graphrefly/PAUSE"),F=Symbol.for("graphrefly/RESUME"),R=Symbol.for("graphrefly/TEARDOWN"),y=Symbol.for("graphrefly/COMPLETE"),h=Symbol.for("graphrefly/ERROR"),W=Object.freeze([T]),Ne=Object.freeze([w]),Kt=Object.freeze([G]),ke=Object.freeze([P]),qt=Object.freeze([y]),Yt=Object.freeze([R]),Ee=Object.freeze([W]),$e=Object.freeze([Ne]),je=Object.freeze([Kt]),Ke=Object.freeze([qt]),Se=Object.freeze([Yt])});function qe(t){t.registerCodec(Jt)}var Jt,Ye=v(()=>{"use strict";Jt={name:"json",version:1,contentType:"application/json",encode(t){let e=JSON.stringify(t);return new TextEncoder().encode(e)},decode(t,e){let n=new TextDecoder().decode(t);return JSON.parse(n)}}});function de(t){if(t==null)return Xt;let{type:e,id:n,...r}=t;return{type:e??"system",id:n??"",...r}}var Xt,Je=v(()=>{"use strict";Xt={type:"system",id:""}});function Xe(){return j>0||te}function Qe(){return j>0}function Ze(t){j>0?ne.push(t):t()}function Ae(t){j+=1;let e=!1;try{t()}catch(n){throw e=!0,n}finally{if(j-=1,j===0)if(e){if(!te){let n=ne.splice(0);for(let r of n)try{r()}catch{}V.length=0,H.length=0,K.length=0}}else Qt()}}function Qt(){let t=!te;t&&(te=!0);let e=[],n=0;try{for(;V.length>0||H.length>0||K.length>0||t&&ne.length>0;){if(t&&ne.length>0){let i=ne.splice(0);for(let s of i)try{s()}catch(a){e.push(a)}continue}if(n+=1,n>1e3)throw V.length=0,H.length=0,K.length=0,new Error("batch drain exceeded 1000 iterations \u2014 likely a reactive cycle");let o=(V.length>0?V:H.length>0?H:K).splice(0);for(let i of o)try{i()}catch(s){e.push(s)}}}finally{t&&(te=!1)}if(e.length===1)throw e[0];if(e.length>1)throw new AggregateError(e,"batch drain: multiple callbacks threw")}function ce(t,e,n){if(e.length===0)return;if(e.length===1){let d=n(e[0][0]);if(d<3||!Xe()){t(e);return}(d>=5?K:d===4?H:V).push(()=>t(e));return}let r=e.length,o=r,i=r,s=r,a=0;for(;a<r&&n(e[a][0])<3;)a++;for(o=a;a<r&&n(e[a][0])===3;)a++;for(i=a;a<r&&n(e[a][0])===4;)a++;s=a;let u=Xe();if(o>0){let d=e.slice(0,o);t(d)}if(i>o){let d=e.slice(o,i);u?V.push(()=>t(d)):t(d)}if(s>i){let d=e.slice(i,s);u?H.push(()=>t(d)):t(d)}if(r>s){let d=e.slice(s,r);u?K.push(()=>t(d)):t(d)}}var j,te,V,H,K,ne,Re=v(()=>{"use strict";j=0,te=!1,V=[],H=[],K=[],ne=[]});function et(t){t.registerMessageType(P,{tier:0,wireCrossing:!1}),t.registerMessageType(T,{tier:1,wireCrossing:!1}),t.registerMessageType(G,{tier:1,wireCrossing:!1,metaPassthrough:!1}),t.registerMessageType(I,{tier:2,wireCrossing:!1}),t.registerMessageType(F,{tier:2,wireCrossing:!1}),t.registerMessageType(g,{tier:3,wireCrossing:!0}),t.registerMessageType(w,{tier:3,wireCrossing:!0}),t.registerMessageType(y,{tier:4,wireCrossing:!0,metaPassthrough:!1}),t.registerMessageType(h,{tier:4,wireCrossing:!0,metaPassthrough:!1}),t.registerMessageType(R,{tier:5,wireCrossing:!0,metaPassthrough:!1})}var le,tt=v(()=>{"use strict";$();le=class{_messageTypes=new Map;_codecs=new Map;_onMessage;_onSubscribe;_defaultVersioning;_defaultHashFn;_inspectorEnabled=!(typeof process<"u"&&process.env?.NODE_ENV==="production");_globalInspector;_rigorRecorder;_frozen=!1;tierOf;constructor(e){this._onMessage=e.onMessage,this._onSubscribe=e.onSubscribe,this._defaultVersioning=e.defaultVersioning,this._defaultHashFn=e.defaultHashFn,this.tierOf=n=>{let r=this._messageTypes.get(n);return r!=null?r.tier:1}}get onMessage(){return this._frozen=!0,this._onMessage}get onSubscribe(){return this._frozen=!0,this._onSubscribe}set onMessage(e){this._assertUnfrozen(),this._onMessage=e}set onSubscribe(e){this._assertUnfrozen(),this._onSubscribe=e}get defaultVersioning(){return this._defaultVersioning}set defaultVersioning(e){this._assertUnfrozen(),this._defaultVersioning=e}get defaultHashFn(){return this._defaultHashFn}set defaultHashFn(e){this._assertUnfrozen(),this._defaultHashFn=e}get inspectorEnabled(){return this._inspectorEnabled}set inspectorEnabled(e){this._inspectorEnabled=e}get globalInspector(){return this._globalInspector}set globalInspector(e){this._globalInspector=e}get rigorRecorder(){return this._rigorRecorder}set rigorRecorder(e){this._rigorRecorder=e}registerMessageType(e,n){return this._assertUnfrozen(),this._messageTypes.set(e,{tier:n.tier,wireCrossing:n.wireCrossing??n.tier>=3,metaPassthrough:n.metaPassthrough??!0}),this}messageTier(e){let n=this._messageTypes.get(e);return n!=null?n.tier:1}isWireCrossing(e){let n=this._messageTypes.get(e);return n!=null?n.wireCrossing:!0}isLocalOnly(e){return!this.isWireCrossing(e)}isMetaPassthrough(e){let n=this._messageTypes.get(e);return n!=null?n.metaPassthrough:!0}isKnownMessageType(e){return this._messageTypes.has(e)}registerCodec(e){return this._assertUnfrozen(),this._codecs.set(e.name,e),this}lookupCodec(e){return this._codecs.get(e)}_isFrozen(){return this._frozen}_assertUnfrozen(){if(this._frozen)throw new Error("GraphReFlyConfig is frozen: a node has already captured this config. Register custom types and set hooks before creating any node.")}}});var q,nt=v(()=>{"use strict";q=class extends Error{actor;action;nodeName;constructor(e,n){super(n??`GuardDenied: action "${String(e.action)}" denied for actor type "${String(e.actor.type)}"`),this.name="GuardDenied",this.actor=e.actor,this.action=e.action,this.nodeName=e.nodeName}get node(){return this.nodeName}}});function Oe(t){if(t===void 0)return null;if(typeof t=="number"){if(!Number.isFinite(t))throw new TypeError(`Cannot hash non-finite number: ${t}`);if(Number.isInteger(t)&&!Number.isSafeInteger(t))throw new TypeError(`Cannot hash integer outside safe range (|n| > 2^53-1): ${t}. Cross-language cid parity is not guaranteed for unsafe integers.`);return t}if(typeof t=="string"||typeof t=="boolean"||t===null)return t;if(Array.isArray(t))return t.map(Oe);if(typeof t=="object"&&t!==null){let e={};for(let n of Object.keys(t).sort())e[n]=Oe(t[n]);return e}return null}function tn(t){let e=en.encode(t),n=e.length,r=n*8,o=n+9+63&-64,i=new Uint8Array(o);i.set(e),i[n]=128;let s=new DataView(i.buffer);s.setUint32(o-4,r>>>0,!1),s.setUint32(o-8,Math.floor(r/4294967296)>>>0,!1);let a=1779033703,u=3144134277,d=1013904242,c=2773480762,l=1359893119,p=2600822924,f=528734635,b=1541459225,_=new Uint32Array(64),m=(S,k)=>S>>>k|S<<32-k;for(let S=0;S<o;S+=64){for(let E=0;E<16;E++)_[E]=s.getUint32(S+E*4,!1);for(let E=16;E<64;E++){let Z=_[E-15],ee=_[E-2],ie=m(Z,7)^m(Z,18)^Z>>>3,we=m(ee,17)^m(ee,19)^ee>>>10;_[E]=_[E-16]+ie+_[E-7]+we>>>0}let k=a,D=u,B=d,Q=c,A=l,C=p,se=f,_e=b;for(let E=0;E<64;E++){let Z=m(A,6)^m(A,11)^m(A,25),ee=A&C^~A&se,ie=_e+Z+ee+Zt[E]+_[E]>>>0,we=m(k,2)^m(k,13)^m(k,22),Vt=k&D^k&B^D&B,Ht=we+Vt>>>0;_e=se,se=C,C=A,A=Q+ie>>>0,Q=B,B=D,D=k,k=ie+Ht>>>0}a=a+k>>>0,u=u+D>>>0,d=d+B>>>0,c=c+Q>>>0,l=l+A>>>0,p=p+C>>>0,f=f+se>>>0,b=b+_e>>>0}let N=S=>S.toString(16).padStart(8,"0");return N(a)+N(u)+N(d)+N(c)+N(l)+N(p)+N(f)+N(b)}function Me(t){let e=Oe(t??null),n=JSON.stringify(e);return tn(n).slice(0,16)}function nn(){let t=globalThis.crypto;if(t?.randomUUID)return t.randomUUID();let e=()=>Math.floor(Math.random()*4294967296).toString(16).padStart(8,"0"),n=e()+e()+e()+e();return`${n.slice(0,8)}-${n.slice(8,12)}-4${n.slice(13,16)}-${(parseInt(n.slice(16,17),16)&3|8).toString(16)}${n.slice(17,20)}-${n.slice(20,32)}`}function Ce(t,e,n){let r=n?.id??nn();if(t===0)return{id:r,version:0};let i=(n?.hash??Me)(e);return{id:r,version:0,cid:i,prev:null}}function rt(t,e,n){t.version+=1,"cid"in t&&(t.prev=t.cid,t.cid=n(e))}var Zt,en,ot=v(()=>{"use strict";Zt=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),en=new TextEncoder});function at(t){return{node:t,unsub:null,prevData:void 0,dirty:!1,involvedThisWave:!1,dataBatch:[],terminal:void 0}}function De(t){t.prevData=void 0,t.dirty=!1,t.involvedThisWave=!1,t.dataBatch.length=0,t.terminal=void 0}function fe(t){return t.length===0?t:typeof t[0]=="symbol"?[t]:t}function M(t,e,n){let r=ut(t)?t:[],o=typeof t=="function"?t:typeof e=="function"?e:void 0,i={};return ut(t)?i=(Ie(e)?e:n)??{}:Ie(t)?i=t:i=(Ie(e)?e:n)??{},new pe(r,o,i)}var st,it,rn,on,Fe,pe,ut,Ie,re=v(()=>{"use strict";Ye();Je();Re();ue();tt();nt();$();ot();st=()=>{},it=100;rn=(t,e,n,r)=>{n.direction==="down-in"&&t._onDepMessage(n.depIndex,e)},on=(t,e,n,r)=>{let o=t;if(o._status==="completed"||o._status==="errored")return;let i=o._cached,s=i===void 0?[ke]:[ke,[g,i]];o._status==="dirty"&&s.push(W),ce(e,s,o._config.tierOf)},Fe=new le({onMessage:rn,onSubscribe:on});et(Fe);qe(Fe);pe=class t{_optsName;_describeKind;meta;_hasMeta;_config;_deps;_sinks=null;_sinkCount=0;_cached;_status;_cleanup;_store={};_waveHasNewData=!1;_hasNewTerminal=!1;_hasCalledFnOnce=!1;_paused=!1;_pendingWave=!1;_isExecutingFn=!1;_pendingRerun=!1;_rerunDepth=0;_dirtyDepCount=0;_batchPendingMessages=null;_pauseLocks=null;_pauseBuffer=null;_fn;_equals;_resubscribable;_resetOnTeardown;_autoComplete;_autoError;_pausable;_partial;_guard;_extraGuards;_hashFn;_versioning;_versioningLevel;_lastMutation;_inspectorHooks;_actions;constructor(e,n,r){this._config=r.config??Fe,this._config.onMessage,this._optsName=r.name,this._describeKind=r.describeKind,this._equals=r.equals??Object.is,this._resubscribable=r.resubscribable??!1,this._resetOnTeardown=r.resetOnTeardown??!1,this._autoComplete=r.completeWhenDepsComplete??!0,this._autoError=r.errorWhenDepsError??!0,this._pausable=r.pausable??!0,this._guard=r.guard,this._fn=n,this._partial=r.partial??!1,this._cached=r.initial!==void 0?r.initial:void 0,this._status=e.length===0&&n==null&&this._cached!==void 0?"settled":"sentinel",this._hashFn=r.versioningHash??this._config.defaultHashFn??Me;let o=r.versioning??this._config.defaultVersioning;this._versioningLevel=o,this._versioning=o!=null?Ce(o,this._cached===void 0?void 0:this._cached,{id:r.versioningId,hash:this._hashFn}):void 0,this._deps=e.map(at);let i={};for(let[a,u]of Object.entries(r.meta??{})){let d={initial:u,name:`${r.name??"node"}:meta:${a}`,describeKind:"state",config:this._config};r.guard!=null&&(d.guard=r.guard),i[a]=new t([],void 0,d)}Object.freeze(i),this.meta=i,this._hasMeta=Object.keys(i).length>0;let s=this;this._actions={emit(a){s._emit([[g,a]])},down(a){s._emit(fe(a))},up(a){s._emitUp(fe(a))}},this.down=this.down.bind(this),this.up=this.up.bind(this)}get _isTerminal(){return this._status==="completed"||this._status==="errored"}get name(){return this._optsName}get status(){return this._status}get cache(){return this._cached===void 0?void 0:this._cached}get lastMutation(){return this._lastMutation}get v(){return this._versioning}hasGuard(){return this._guard!=null}_applyVersioning(e,n){if(this._isExecutingFn)throw new Error(`Node "${this.name}": _applyVersioning cannot run mid-fn \u2014 call it outside of \`_execFn\` (typically at graph setup time before the first subscribe).`);let r=this._versioningLevel;if(r!=null&&e<=r)return;let o=n?.hash??this._hashFn;o!==this._hashFn&&(this._hashFn=o);let i=this._cached===void 0?void 0:this._cached,s=this._versioning,a=s?.id??n?.id,u=s?.version??0,d=Ce(e,i,{id:a,hash:o});d.version=u,this._versioning=d,this._versioningLevel=e}_setInspectorHook(e){return e==null?()=>{}:(this._inspectorHooks==null&&(this._inspectorHooks=new Set),this._inspectorHooks.add(e),()=>{this._inspectorHooks?.delete(e),this._inspectorHooks?.size===0&&(this._inspectorHooks=void 0)})}_pushGuard(e){return this._extraGuards==null&&(this._extraGuards=new Set),this._extraGuards.add(e),()=>{this._extraGuards?.delete(e),this._extraGuards?.size===0&&(this._extraGuards=void 0)}}allowsObserve(e){if(this._guard==null&&this._extraGuards==null)return!0;let n=de(e);if(this._guard!=null&&!this._guard(n,"observe"))return!1;if(this._extraGuards!=null){for(let r of this._extraGuards)if(!r(n,"observe"))return!1}return!0}_checkGuard(e){if(e?.internal)return;let n=this._guard!=null||this._extraGuards!=null,r=e?.actor!=null;if(!n&&!r)return;let o=de(e?.actor),i=e?.delivery==="signal"?"signal":"write";if(this._guard!=null&&!this._guard(o,i))throw new q({actor:o,action:i,nodeName:this.name});if(this._extraGuards!=null){for(let s of this._extraGuards)if(!s(o,i))throw new q({actor:o,action:i,nodeName:this.name})}this._lastMutation={actor:o,timestamp_ns:ae()}}down(e,n){let r=fe(e);r.length!==0&&(this._checkGuard(n),this._emit(r))}emit(e,n){this._checkGuard(n),this._emit([[g,e]])}up(e,n){if(this._deps.length===0)return;let r=fe(e);if(r.length===0)return;this._checkGuard(n);let o=n??{internal:!0};this._validateUpTiers(r);for(let i of this._deps)i.node.up?.(r,o)}_emitUp(e){if(this._deps.length!==0&&e.length!==0){this._validateUpTiers(e);for(let n of this._deps)n.node.up?.(e,{internal:!0})}}_validateUpTiers(e){let n=this._config.tierOf;for(let r of e){let o=n(r[0]);if(o===3||o===4)throw new Error(`Node "${this.name}": tier-${o} messages cannot flow up \u2014 DATA/RESOLVED/COMPLETE/ERROR are downstream-only. Use \`down(...)\` for value delivery; \`up(...)\` is for control signals (DIRTY, INVALIDATE, PAUSE, RESUME, TEARDOWN).`)}}subscribe(e,n){if(n!=null&&this._guard!=null){let u=de(n);if(!this._guard(u,"observe"))throw new q({actor:u,action:"observe",nodeName:this.name})}let o=this._isTerminal&&this._resubscribable;if(o){this._cached=void 0,this._status="sentinel",this._store={},this._hasCalledFnOnce=!1,this._waveHasNewData=!1,this._hasNewTerminal=!1,this._paused=!1,this._pendingWave=!1,this._pendingRerun=!1,this._isExecutingFn=!1,this._rerunDepth=0,this._dirtyDepCount=0,this._pauseLocks=null,this._pauseBuffer=null;for(let u of this._deps)De(u);if(this._partial===!1){for(let u of this._deps)if(u.prevData!==void 0||u.dataBatch.length!==0||u.terminal!==void 0||u.dirty)throw new Error(`resubscribable-reset invariant: DepRecord not fully reset for node ${this._optsName??"(anonymous)"}`)}}this._sinkCount+=1;let i;try{i=this._config.onSubscribe(this,e,{sinkCount:this._sinkCount,afterTerminalReset:o},this._actions)}catch(u){throw this._sinkCount-=1,u}this._sinks==null?this._sinks=e:typeof this._sinks=="function"?this._sinks=new Set([this._sinks,e]):this._sinks.add(e);let s=this._isTerminal;if(this._sinkCount===1&&!s)try{this._activate()}catch(u){if(this._sinkCount-=1,this._removeSink(e),this._sinkCount===0&&(this._status="sentinel"),typeof i=="function")try{i()}catch{}throw u}this._status==="sentinel"&&this._cached===void 0&&(this._status="pending");let a=!1;return()=>{a||(a=!0,this._sinkCount-=1,this._removeSink(e),typeof i=="function"&&i(),this._sinks==null&&this._deactivate())}}_removeSink(e){if(this._sinks===e)this._sinks=null;else if(this._sinks!=null&&typeof this._sinks!="function")if(this._sinks.delete(e),this._sinks.size===1){let[n]=this._sinks;this._sinks=n}else this._sinks.size===0&&(this._sinks=null)}_activate(){if(this._deps.length===0){this._fn&&this._execFn();return}this._dirtyDepCount=0;let e=this._deps.length,n=0;try{for(let r=0;r<e;r++){let o=r,i=this._deps[r];i.unsub=st,i.unsub=i.node.subscribe(s=>{if(i.unsub===null)return;let a=this._config.tierOf,u=!1;for(let d of s)a(d[0])>=3&&(u=!0),this._config.onMessage(this,d,{direction:"down-in",depIndex:o},this._actions);u&&this._maybeRunFnOnSettlement()}),n++}}catch(r){this._deps[n].unsub=null;for(let o=0;o<n;o++){let i=this._deps[o];if(i.unsub!=null){let s=i.unsub;i.unsub=null;try{s()}catch{}De(i)}}throw this._dirtyDepCount=0,r}}_addDep(e){for(let o=0;o<this._deps.length;o++)if(this._deps[o].node===e)return o;let n=this._deps.length,r=at(e);if(this._deps.push(r),this._sinks==null)return n;r.dirty=!0,this._dirtyDepCount++,this._status!=="dirty"&&this._emit(Ee),r.unsub=st;try{r.unsub=e.subscribe(o=>{if(r.unsub===null)return;let i=this._config.tierOf,s=!1;for(let a of o)i(a[0])>=3&&(s=!0),this._config.onMessage(this,a,{direction:"down-in",depIndex:n},this._actions);s&&this._maybeRunFnOnSettlement()})}catch(o){throw r.unsub=null,this._deps.pop(),this._dirtyDepCount--,o}return n}_deactivate(e=!1){let n=this._cleanup;if(this._cleanup=void 0,typeof n=="function")try{n()}catch(r){this._emit([[h,this._wrapFnError("cleanup threw",r)]])}else if(n!=null&&typeof n=="object"){let r=n.deactivate;if(typeof r=="function")try{r()}catch(o){this._emit([[h,this._wrapFnError("cleanup.deactivate threw",o)]])}}for(let r of this._deps){if(r.unsub!=null){let o=r.unsub;r.unsub=null;try{o()}catch{}}De(r)}this._waveHasNewData=!1,this._hasNewTerminal=!1,this._hasCalledFnOnce=!1,this._paused=!1,this._pendingWave=!1,this._pendingRerun=!1,this._rerunDepth=0,this._store={},this._dirtyDepCount=0,this._pauseLocks=null,this._pauseBuffer=null,this._fn!=null&&(this._cached=void 0),e||(this._fn!=null||this._deps.length>0)&&(!this._isTerminal||this._resubscribable)&&(this._status="sentinel")}_onDepMessage(e,n){let r=this._deps[e],o=n[0];if(this._inspectorHooks!=null){let i={kind:"dep_message",depIndex:e,message:n};for(let s of this._inspectorHooks)s(i)}if(o!==P){if(o===T){this._depDirtied(r);return}if(o===G){if(this._depInvalidated(r),this._cached===void 0)return;this._emit(je);return}if(o===I||o===F){this._emit([n]);return}if(o===R){this._emit(Se);return}if(o===g)this._depSettledAsData(r,n[1]);else if(o===w)this._depSettledAsResolved(r);else if(o===y)this._depSettledAsTerminal(r,!0);else if(o===h)this._depSettledAsTerminal(r,n[1]);else{this._emit([n]);return}if(!this._fn){(o===g||o===w)&&this._emit([n]),(o===y||o===h)&&this._maybeAutoTerminalAfterWave();return}}}_depDirtied(e){e.dirty||(e.dirty=!0,e.involvedThisWave=!0,this._dirtyDepCount++,this._status!=="dirty"&&this._emit(Ee))}_depSettledAsData(e,n){e.dirty&&(e.dirty=!1,this._dirtyDepCount--),e.involvedThisWave=!0,e.dataBatch.push(n),this._waveHasNewData=!0}_depSettledAsResolved(e){e.dirty&&(e.dirty=!1,this._dirtyDepCount--)}_depSettledAsTerminal(e,n){e.dirty&&(e.dirty=!1,this._dirtyDepCount--),e.terminal=n,e.involvedThisWave=!0,this._hasNewTerminal=!0}_depInvalidated(e){e.prevData=void 0,e.terminal=void 0,e.dataBatch.length=0,e.dirty?e.involvedThisWave=!1:(e.dirty=!0,e.involvedThisWave=!0,this._dirtyDepCount++)}_maybeRunFnOnSettlement(){if(!(this._isTerminal&&!this._resubscribable)&&!(this._dirtyDepCount>0)){if(!this._partial&&!this._hasCalledFnOnce)for(let e=0;e<this._deps.length;e++){let n=this._deps[e];if(n.dataBatch.length===0&&n.prevData===void 0&&n.terminal===void 0){this._maybeAutoTerminalAfterWave();return}}if(this._paused){this._pendingWave=!0;return}if(!this._waveHasNewData&&!this._hasNewTerminal&&this._hasCalledFnOnce){this._clearWaveFlags(),this._emit($e),this._maybeAutoTerminalAfterWave();return}this._fn&&this._execFn(),this._maybeAutoTerminalAfterWave()}}_maybeAutoTerminalAfterWave(){if(this._deps.length===0||this._isTerminal)return;let e=this._deps.find(n=>n.terminal!==void 0&&n.terminal!==!0);if(e!=null){this._autoError&&this._emit([[h,e.terminal]]);return}this._autoComplete&&this._deps.every(n=>n.terminal!==void 0)&&this._emit(Ke)}_execFn(){if(!this._fn||this._isTerminal&&!this._resubscribable)return;if(this._isExecutingFn){this._pendingRerun=!0;return}let e=this._cleanup;if(typeof e=="function"){this._cleanup=void 0;try{e()}catch(s){this._emit([[h,this._wrapFnError("cleanup threw",s)]]);return}}else if(e!=null&&typeof e=="object"){let s=e.beforeRun;if(typeof s=="function"){e.beforeRun=void 0;try{s()}catch(a){this._emit([[h,this._wrapFnError("cleanup.beforeRun threw",a)]]);return}}}let n=this._deps.map(s=>s.involvedThisWave?s.dataBatch.length>0?[...s.dataBatch]:[]:void 0),r=this._deps.map(s=>s.prevData);for(let s=0;s<this._deps.length;s++){let a=n[s];a!=null&&a.length>0&&(this._deps[s].prevData=a[a.length-1])}let o=this._deps.map(s=>s.terminal),i={prevData:r,terminalDeps:o,store:this._store};if(this._hasCalledFnOnce=!0,this._clearWaveFlags(),this._inspectorHooks!=null){let s={kind:"run",batchData:n,prevData:r};for(let a of this._inspectorHooks)a(s)}this._isExecutingFn=!0;try{let s=this._fn(n,this._actions,i);if(typeof s=="function")this._cleanup=s;else if(s!=null&&typeof s=="object"){let a=s;(typeof a.beforeRun=="function"||typeof a.deactivate=="function"||typeof a.invalidate=="function")&&(this._cleanup=s)}}catch(s){this._emit([[h,this._wrapFnError("fn threw",s)]])}finally{this._isExecutingFn=!1,this._pendingRerun?(this._pendingRerun=!1,this._rerunDepth+=1,this._rerunDepth>it?(this._rerunDepth=0,this._emit([[h,new Error(`Node "${this.name}": _pendingRerun depth exceeded ${it} \u2014 likely a reactive cycle`)]])):this._maybeRunFnOnSettlement()):this._rerunDepth=0,this._clearWaveFlags()}}_clearWaveFlags(){this._waveHasNewData=!1,this._hasNewTerminal=!1;for(let e of this._deps)e.involvedThisWave=!1,e.dataBatch.length=0}_wrapFnError(e,n){let r=n instanceof Error?n.message:String(n);return new Error(`Node "${this.name}": ${e}: ${r}`,{cause:n})}_frameBatch(e){let n=this._config.tierOf;if(e.length===1)return n(e[0][0])===3&&this._status!=="dirty"?[W,e[0]]:e;let r=!0,o=!1,i=!1,s=-1;for(let u of e){let d=n(u[0]);d<s&&(r=!1),d===3&&(o=!0),u[0]===T&&(i=!0),s=d}let a=e;if(!r){let u=e.map((d,c)=>({m:d,i:c,tier:n(d[0])}));u.sort((d,c)=>d.tier-c.tier||d.i-c.i),a=u.map(d=>d.m)}if(o&&!i&&this._status!=="dirty"){let u=0;for(;u<a.length&&n(a[u][0])===0;)u++;return u===0?[W,...a]:[...a.slice(0,u),W,...a.slice(u)]}return a}_emit(e){if(e.length===0)return;for(let a=0;a<e.length;a++){let u=e[a];if(u[0]===h&&u[1]===void 0)throw new TypeError('[ERROR, payload] requires a non-undefined payload (spec \xA71.2). Pass an Error object or domain tag instead \u2014 e.g. node.down([[ERROR, new Error("reason")]])')}let n=e;if(this._isTerminal&&!this._resubscribable){let a=e.filter(u=>u[0]===R||u[0]===G);if(a.length===0)return;n=a}n=this._frameBatch(n);let o=null;for(let a=0;a<n.length;a++){let u=n[a],d=u[0];if(d!==I&&d!==F){o?.push(u);continue}if(u.length<2)throw new Error(`Node "${this.name}": [[${d===I?"PAUSE":"RESUME"}]] must carry a lockId payload \u2014 bare PAUSE/RESUME is a protocol violation (C0 rule). Use \`[[PAUSE, lockId]]\` / \`[[RESUME, lockId]]\`.`);let c=!0;if(this._pausable!==!1){let l=u[1];if(d===I)this._pauseLocks==null&&(this._pauseLocks=new Set),this._pauseLocks.add(l),this._paused=!0,this._pausable==="resumeAll"&&this._pauseBuffer==null&&(this._pauseBuffer=[]);else if(this._pauseLocks==null||!this._pauseLocks.has(l))c=!1;else if(this._pauseLocks.delete(l),this._pauseLocks.size===0){if(this._paused=!1,this._pauseBuffer!=null&&this._pauseBuffer.length>0){let p=this._pauseBuffer;this._pauseBuffer=[],this._emit(p)}this._pendingWave&&(this._pendingWave=!1,this._maybeRunFnOnSettlement())}}c?o?.push(u):o==null&&(o=n.slice(0,a))}if(o!=null){if(o.length===0)return;n=o}if(this._hasMeta&&n.some(a=>a[0]===R))for(let a of Object.keys(this.meta))try{this.meta[a]._emit(Se)}catch{}let{finalMessages:i,equalsError:s}=this._updateState(n);if(i.length>0&&this._config.inspectorEnabled){let a=this._config.globalInspector;if(a!=null)try{a({kind:"emit",node:this,messages:i})}catch{}}if(i.length>0)if(this._paused&&this._pausable==="resumeAll"&&this._pauseBuffer!=null){let a=this._config.tierOf,u=[];for(let d of i)a(d[0])===3?this._pauseBuffer.push(d):u.push(d);u.length>0&&this._dispatchOrAccumulate(u)}else this._dispatchOrAccumulate(i);s!=null&&this._emit([[h,s]])}_updateState(e){let n=this._config.tierOf,r,o,i=-1,s=0;for(let c of e)n(c[0])===3&&s++;let a=s<=1,u=-1;if(this._versioning!=null&&s>1){for(let c=e.length-1;c>=0;c--)if(e[c][0]===g){u=c;break}}for(let c=0;c<e.length;c++){let l=e[c],p=l[0];if(p===g){if(l.length>=2){let f=!1;if(a&&this._cached!==void 0)try{f=this._equals(this._cached,l[1])}catch(b){o=this._wrapFnError("equals threw",b),i=c;break}if(f){r==null&&(r=e.slice(0,c)),r.push(Ne),this._status="resolved";continue}this._cached=l[1],this._versioning!=null&&(u<0||c===u)&&rt(this._versioning,l[1],this._hashFn)}this._status="settled",r?.push(l)}else if(r?.push(l),p===T)this._status="dirty";else if(p===w)this._status="resolved";else if(p===y){this._status="completed";{let f=this._config.rigorRecorder;if(f!=null)try{f.onTerminalTransition(this,"completed",this._autoComplete,this._autoError,this._deps.length>0)}catch{}}}else if(p===h){this._status="errored";{let f=this._config.rigorRecorder;if(f!=null)try{f.onTerminalTransition(this,"errored",this._autoComplete,this._autoError,this._deps.length>0)}catch{}}}else if(p===G){if(this._cached!==void 0){let b=this._config.rigorRecorder;if(b!=null)try{b.onNonVacuousInvalidate(this,this._cached)}catch{}}this._cached=void 0,this._status="dirty";let f=this._cleanup;if(typeof f=="function"){this._cleanup=void 0;try{f()}catch{}}else if(f!=null&&typeof f=="object"){let b=f.invalidate;if(typeof b=="function")try{b()}catch{}}}else p===R&&(this._resetOnTeardown&&(this._cached=void 0),this._deactivate(!0),this._status="sentinel")}let d=i>=0?r??e.slice(0,i):r??e;return o!=null?{finalMessages:d,equalsError:o}:{finalMessages:d}}_deliverToSinks=e=>{if(this._sinks==null)return;if(typeof this._sinks=="function"){this._sinks(e);return}let n=[...this._sinks];for(let r of n)r(e)};_dispatchOrAccumulate(e){if(Qe()){this._batchPendingMessages===null&&(this._batchPendingMessages=[],Ze(()=>this._flushBatchPending()));for(let n of e)this._batchPendingMessages.push(n);return}ce(this._deliverToSinks,e,this._config.tierOf)}_flushBatchPending(){let e=this._batchPendingMessages;if(e===null||(this._batchPendingMessages=null,e.length===0))return;let n=this._frameBatch(e);ce(this._deliverToSinks,n,this._config.tierOf)}},ut=t=>Array.isArray(t),Ie=t=>typeof t=="object"&&t!=null&&!Array.isArray(t)});function dt(t,e){return M([],{...e,initial:t})}function x(t,e){return M((r,o,i)=>t(o,i)??void 0,{describeKind:"producer",...e})}var Le=v(()=>{"use strict";re()});function oe(t,e,n){let r=new Set;for(let o of t.split(",")){let[i,s]=o.split("/"),a=s?Number.parseInt(s,10):1;if(Number.isNaN(a)||a<1)throw new Error(`Invalid cron step: ${o}`);let u,d;if(i==="*")u=e,d=n;else if(i.includes("-")){let[c,l]=i.split("-");u=Number.parseInt(c,10),d=Number.parseInt(l,10)}else u=Number.parseInt(i,10),d=u;if(Number.isNaN(u)||Number.isNaN(d))throw new Error(`Invalid cron field: ${t}`);if(u<e||d>n)throw new Error(`Cron field out of range: ${t} (${e}-${n})`);if(u>d)throw new Error(`Invalid cron range: ${u}-${d} in ${t}`);for(let c=u;c<=d;c+=a)r.add(c)}return r}function ct(t){let e=t.trim().split(/\s+/);if(e.length!==5)throw new Error(`Invalid cron: expected 5 fields, got ${e.length}`);return{minutes:oe(e[0],0,59),hours:oe(e[1],0,23),daysOfMonth:oe(e[2],1,31),months:oe(e[3],1,12),daysOfWeek:oe(e[4],0,6)}}function lt(t,e){return t.minutes.has(e.getMinutes())&&t.hours.has(e.getHours())&&t.daysOfMonth.has(e.getDate())&&t.months.has(e.getMonth()+1)&&t.daysOfWeek.has(e.getDay())}var ft=v(()=>{"use strict"});function pt(t,e,n){return{[t]:!0,[`${t}_type`]:e,...n??{}}}var ht=v(()=>{"use strict"});function mt(t,e,n){if(e.length===0)throw new RangeError("budgetGate requires at least one constraint");let r=e.map(f=>f.node),o=[t,...r],i=new Be,s=!1,a=!1,u=Symbol("budget-gate"),d=new Array(e.length);function c(){return e.every((f,b)=>f.check(d[b]))}function l(f){for(;i.size>0&&c();){let b=i.shift();f.emit(b)}i.size===0&&a&&(a=!1,f.down([[w]]))}return M([],(f,b)=>{for(let m=0;m<e.length;m++)d[m]=e[m].node.cache;let _=[];for(let m=0;m<o.length;m++){let N=o[m];_.push(N.subscribe(S=>{for(let k of S)p(k,m,b)}))}return()=>{for(let m of _)m()}},{...n,describeKind:"derived",meta:pt("resilience","budget_gate",n?.meta)});function p(f,b,_){let m=f[0];if(b===0){if(m===g)return c()&&i.size===0?_.emit(f[1]):(i.push(f[1]),s||(s=!0,_.up([[I,u]]))),!0;if(m===T)return _.down([[T]]),!0;if(m===w)return i.size===0?_.down([[w]]):a=!0,!0;if(m===y||m===h){for(;i.size>0;)_.emit(i.shift());return a=!1,s&&(s=!1,_.up([[F,u]])),_.down([f]),!0}return!1}if(m===g&&(d[b-1]=f[1]),m===g||m===w){let N=c();return N&&i.size>0?(l(_),i.size===0&&s&&(s=!1,_.up([[F,u]]))):!N&&!s&&i.size>0&&(s=!0,_.up([[I,u]])),!0}return m===T?!0:m===h?(_.down([f]),!0):m===y}}var Be,gt=v(()=>{"use strict";$();re();ht();Be=class{buf=[];head=0;get size(){return this.buf.length-this.head}push(e){this.buf.push(e)}shift(){if(this.head>=this.buf.length)return;let e=this.buf[this.head];return this.buf[this.head]=void 0,this.head++,this.head>32&&this.head*2>this.buf.length&&(this.buf=this.buf.slice(this.head),this.head=0),e}clear(){this.buf=[],this.head=0}}});function L(t,e){let n={factory:t};return e!==void 0&&(n.factoryArgs=e),n}var bt=v(()=>{"use strict"});var xt={};ve(xt,{NS_PER_MS:()=>Y,NS_PER_SEC:()=>J,constant:()=>yt,decorrelatedJitter:()=>vt,exponential:()=>wt,fibonacci:()=>Tt,linear:()=>_t,resolveBackoffPreset:()=>Pe,withMaxAttempts:()=>un});function z(t){return t<0?0:t}function sn(t,e){return e==="none"?t:e==="full"?Math.random()*t:t/2+Math.random()*(t/2)}function an(t,e){return t+Math.random()*(e-t)}function yt(t){let e=z(t);return()=>e}function _t(t,e){let n=z(t),r=e===void 0?n:z(e);return o=>n+r*Math.max(0,o)}function wt(t){let e=z(t?.baseNs??1e8),n=t?.factor!==void 0&&t.factor<1?1:t?.factor??2,r=z(t?.maxDelayNs??30*1e9),o=t?.jitter??"none";return i=>{let s;if(e===0)s=0;else if(n===1)s=e;else{let a=r/e,u=1;for(let d=0;d<Math.max(0,i);d++){if(u>=a){u=a;break}u*=n}s=e*u,s>r&&(s=r)}return sn(s,o)}}function Tt(t=100*1e6,e=30*1e9){let n=z(t),r=z(e);function o(i){if(i<=0)return 1;let s=1,a=2;for(let u=1;u<i;u++){let d=s+a;s=a,a=d}return a}return i=>{let s=o(i)*n;return s<=r?s:r}}function vt(t=100*1e6,e=30*1e9){return(n,r,o)=>{let s=Math.min(e,(o??t)*3);return an(t,s)}}function un(t,e){return(n,r,o)=>n>=e?null:t(n,r,o)}function Pe(t){if(t==="constant")return yt(1*1e9);if(t==="linear")return _t(1*1e9);if(t==="exponential")return wt();if(t==="fibonacci")return Tt();if(t==="decorrelatedJitter")return vt();throw new Error(`Unknown backoff preset: "${String(t)}". Use one of: constant, linear, exponential, fibonacci, decorrelatedJitter`)}var Y,J,Ge=v(()=>{"use strict";Y=1e6,J=1e9});var X,Nt=v(()=>{"use strict";X=class{_timer;_gen=0;start(e,n){this.cancel(),this._gen+=1;let r=this._gen;this._timer=setTimeout(()=>{this._timer=void 0,r===this._gen&&n()},e)}cancel(){this._timer!==void 0&&(clearTimeout(this._timer),this._timer=void 0)}get pending(){return this._timer!==void 0}}});var he,kt=v(()=>{"use strict";he=class{constructor(e){this.capacity=e;if(!Number.isInteger(e)||e<=0)throw new Error(`RingBuffer capacity must be a positive integer (got ${e})`);this.buf=new Array(e)}buf;head=0;_size=0;get size(){return this._size}get maxSize(){return this.capacity}push(e){let n=(this.head+this._size)%this.capacity;this.buf[n]=e,this._size<this.capacity?this._size++:this.head=(this.head+1)%this.capacity}shift(){if(this._size===0)return;let e=this.buf[this.head];return this.buf[this.head]=void 0,this.head=(this.head+1)%this.capacity,this._size--,e}at(e){if(this._size===0)return;let n=e<0?this._size+e:e;if(!(n<0||n>=this._size))return this.buf[(this.head+n)%this.capacity]}toArray(){let e=new Array(this._size);for(let n=0;n<this._size;n++)e[n]=this.buf[(this.head+n)%this.capacity];return e}clear(){for(let e=0;e<this._size;e++)this.buf[(this.head+e)%this.capacity]=void 0;this.head=0,this._size=0}}});function U(t){return{describeKind:"derived",...t}}function dn(t){return t<0?0:t}function Ve(t){return t[1]}function cn(t){if(typeof t!="number"||!Number.isFinite(t))throw new TypeError("backoff strategy must return a finite number");return t<0?0:t}function Et(t){let e=t?.count,n=t?.backoff;if(n!==void 0&&e===void 0)throw new RangeError("retry({ backoff }) requires explicit count to prevent unbounded retries; pass { count: <n>, backoff: ... }");let r=e!==void 0?e:0;if(r<0)throw new RangeError("retry count must be >= 0");let o=n===void 0?null:typeof n=="string"?Pe(n):n;return{maxRetries:r,strategy:o}}function St(t){let e={};return t?.count!==void 0&&(e.count=t.count),typeof t?.backoff=="string"&&(e.backoff=t.backoff),Object.keys(e).length>0?e:void 0}function At(t,e,n){let r=0,o=!1,i=null,s,a=new X;function u(){s?.(),s=void 0}function d(l){if(o)return;if(r>=t.maxRetries){u(),n.down([[h,l]]);return}let p=t.strategy===null?0:t.strategy(r,l,i);if(p==null){u(),n.down([[h,l]]);return}let f;try{f=cn(p)}catch{u(),n.down([[h,l]]);return}i=f,r+=1,u();let b=f>0?f/1e6:1;a.start(b,()=>{o||c()})}function c(){a.cancel(),u();let l;try{l=e()}catch(p){d(p);return}s=l.subscribe(p=>{if(!o)for(let f of p){let b=f[0];if(b===T)n.down([[T]]);else if(b===g)r=0,i=null,n.emit(f[1]);else if(b===w)n.down([[w]]);else if(b===y)u(),n.down([[y]]);else if(b===h){d(Ve(f));return}else n.down([f])}})}return c(),()=>{o=!0,a.cancel(),u()}}function ln(t,e){return typeof t=="function"?pn(t,e):fn(t,e)}function fn(t,e){let n=Et(e);return x(r=>At(n,()=>t,r),{...U(),initial:t.cache,meta:{...L("retry",St(e))}})}function pn(t,e){let n=Et(e);return x(r=>At(n,t,r),{...U(),initial:e?.initial,meta:{...L("retry",St(e))}})}function hn(t){let e=Math.max(1,t?.failureThreshold??5),n=dn(t?.cooldownNs??30*1e9),r=t?.cooldown??null,o=Math.max(1,t?.halfOpenMax??1),i=t?.now??xe,s="closed",a=0,u=0,d=0,c=n,l=0;function p(){if(!r)return n;let _=r(u);return _!==null?_:n}function f(){s="open",c=p(),d=i(),l=0}return{canExecute(){return s==="closed"?!0:s==="open"?i()-d>=c?(s="half-open",l=1,!0):!1:l<o?(l++,!0):!1},recordSuccess(){s==="half-open"?(s="closed",a=0,u=0):s==="closed"&&(a=0)},recordFailure(_){if(s==="half-open"){u++,f();return}s==="closed"&&(a++,a>=e&&f())},get state(){return s},get failureCount(){return a},reset(){s="closed",a=0,u=0,l=0}}}function mn(t,e){let n=e?.onOpen??"skip";return r=>{let o=M([],(i,s)=>{function a(){o.meta.breakerState.down([[g,t.state]])}let u=r.subscribe(d=>{for(let c of d){let l=c[0];l===T?s.down([[T]]):l===g?t.canExecute()?(a(),s.emit(c[1])):(a(),n==="error"?s.down([[h,new me]]):s.down([[w]])):l===w?s.down([[w]]):l===y?(t.recordSuccess(),a(),s.down([[y]])):l===h?(t.recordFailure(Ve(c)),a(),s.down([c])):s.down([c])}});return a(),u},{...U(),meta:{breakerState:t.state,...L("withBreaker",{onOpen:n})},completeWhenDepsComplete:!1,initial:r.cache});return{node:o,breakerState:o.meta.breakerState}}}function Rt(t,e,n){if(t<=0)throw new RangeError("capacity must be > 0");if(e<0)throw new RangeError("refillPerSecond must be >= 0");let r=n?.clock??xe,o=t,i=r();function s(a){if(e>0){let u=a-i;o=Math.min(t,o+u/1e9*e)}i=a}return{available(){return s(r()),o},tryConsume(a=1){if(a<=0)return!0;let u=r();return s(u),o>=a?(o-=a,!0):!1},putBack(a=1){a<=0||(s(r()),o=Math.min(t,o+a))}}}function gn(t,e){let{maxEvents:n,windowNs:r}=e;if(n<=0)throw new RangeError("maxEvents must be > 0");if(r<=0)throw new RangeError("windowNs must be > 0");let o=e.maxBuffer;if(o===void 0)throw new RangeError("rateLimiter requires explicit maxBuffer (use Infinity to opt in to unbounded)");let i=o===1/0;if(!i&&(!Number.isInteger(o)||o<1))throw new RangeError("maxBuffer must be a positive integer (or Infinity for unbounded)");let s=e.onOverflow??"drop-newest",a=n*1e9/r,u=x(d=>{let c=Rt(n,a),l=i?yn():bn(o),p=new X,f=!1,b=0,_=1e9/a,m=u.meta.droppedCount;function N(){m.emit(b)}m.cache!==0&&N();function S(){for(;l.size>0;)if(c.tryConsume(1))d.emit(l.shift());else{p.start(Math.max(1,_/1e6),S);return}}function k(){b+=1,N()}function D(){for(f=!0,p.cancel();l.size>0;)l.shift();b=0}let B=t.subscribe(Q=>{for(let A of Q){if(f)return;let C=A[0];if(C===T)d.down([[T]]);else if(C===g){if(!i&&l.size>=o)if(s==="drop-newest")k();else if(s==="drop-oldest")l.shift(),l.push(A[1]),k();else{k(),D(),d.down([[h,new ge(o)]]);return}else l.push(A[1]);S()}else if(C===w)d.down([[w]]);else if(C===y)D(),d.down([[y]]);else if(C===h)D(),d.down([A]);else if(C===R){D(),d.down([A]);return}else d.down([A])}});return()=>{f=!0,p.cancel(),B()}},{...U(),initial:t.cache,meta:{droppedCount:0,...L("rateLimiter",e)}});return{node:u,droppedCount:u.meta.droppedCount}}function bn(t){let e=new he(t);return{push:n=>e.push(n),shift:()=>e.shift(),get size(){return e.size}}}function yn(){let t=[];return{push:e=>{t.push(e)},shift:()=>t.shift(),get size(){return t.length}}}function _n(t,e){let n=e?.initialStatus??"pending",r=M([],(o,i)=>{let s=n;return r.meta.status.down([[g,n]]),r.meta.error.down([[g,null]]),t.subscribe(u=>{for(let d of u){let c=d[0];if(c===T)i.down([[T]]);else if(c===g)s==="errored"?Ae(()=>{r.meta.error.down([[g,null]]),r.meta.status.down([[g,"running"]])}):r.meta.status.down([[g,"running"]]),s="running",i.emit(d[1]);else if(c===w)i.down([[w]]);else if(c===y)r.meta.status.down([[g,"completed"]]),s="completed",i.down([[y]]);else if(c===h){let l=Ve(d);Ae(()=>{r.meta.error.down([[g,l]]),r.meta.status.down([[g,"errored"]])}),s="errored",i.down([d])}else i.down([d])}})},{...U(),meta:{status:n,error:null,...L("withStatus",{initialStatus:n})},completeWhenDepsComplete:!1,resubscribable:!0,initial:t.cache});return{node:r,status:r.meta.status,error:r.meta.error}}function wn(t){return t!=null&&typeof t=="object"&&"cache"in t&&typeof t.subscribe=="function"}function Tn(t){return t!=null&&typeof t.then=="function"}function vn(t){return t!=null&&typeof t=="object"&&typeof t[Symbol.asyncIterator]=="function"}function xn(t,e){return x(n=>{let r,o;function i(){o?.(),o=void 0,wn(e)||Tn(e)||vn(e)?r=ye(e).subscribe(a=>{n.down(a);for(let u of a){let d=u[0];if(d===y||d===h||d===R){r=void 0;return}}}):(n.emit(e),n.down([[y]]))}return o=t.subscribe(s=>{for(let a of s){let u=a[0];if(u===T)n.down([[T]]);else if(u===g)n.emit(a[1]);else if(u===w)n.down([[w]]);else if(u===y)n.down([[y]]);else if(u===h){i();return}else if(u===R){r?.(),n.down([a]);return}else n.down([a])}}),()=>{o?.(),r?.()}},{...U(),initial:t.cache,meta:{...L("fallback")}})}function Nn(t,e){if(e<=0)throw new RangeError("timeoutNs must be > 0");return x(n=>{let r=!1,o=new X;function i(){let a=e/1e6;o.start(a,()=>{r||(r=!0,s(),n.down([[h,new be(e)]]))})}let s=t.subscribe(a=>{for(let u of a){if(r)return;let d=u[0];if(d===T)n.down([[T]]);else if(d===g)i(),n.emit(u[1]);else if(d===w)n.down([[w]]);else if(d===y){o.cancel(),r=!0,n.down([[y]]);return}else if(d===h){o.cancel(),r=!0,n.down([u]);return}else if(d===R){o.cancel(),r=!0,n.down([u]);return}else n.down([u])}});return i(),()=>{r=!0,o.cancel(),s()}},{...U(),initial:t.cache,meta:{...L("timeout",{timeoutNs:e})}})}var me,ge,be,Ot=v(()=>{"use strict";gt();Re();ue();$();bt();re();Le();Ge();Mt();Nt();kt();me=class extends Error{name="CircuitOpenError";constructor(){super("Circuit breaker is open")}};ge=class extends Error{name="RateLimiterOverflowError";constructor(e){super(`rateLimiter buffer overflow (maxBuffer=${e})`)}};be=class extends Error{name="TimeoutError";constructor(e){super(`Timed out after ${e/1e6}ms`)}}});var Ct={};ve(Ct,{CircuitOpenError:()=>me,RateLimiterOverflowError:()=>ge,TimeoutError:()=>be,budgetGate:()=>mt,circuitBreaker:()=>hn,fallback:()=>xn,rateLimiter:()=>gn,retry:()=>ln,timeout:()=>Nn,tokenBucket:()=>Rt,withBreaker:()=>mn,withStatus:()=>_n});var Dt=v(()=>{"use strict";Ot()});function O(t){return{describeKind:"producer",...t}}function Ft(t){return/[\\^$+?.()|[\]{}]/.test(t)?`\\${t}`:t}function kn(t){let e="^";for(let n=0;n<t.length;n+=1){let r=t[n];if(r==="*"){t[n+1]==="*"?(e+=".*",n+=1):e+="[^/]*";continue}e+=Ft(r)}return e+="$",new RegExp(e)}function En(t,e){for(let n of e)if(n.test(t))return!0;return!1}function Sn(t,e){let n=M([t],(o,i)=>{let s=o[0];if(s==null||s.length===0){i.down([[w]]);return}for(let a of s)i.emit(a)},{describeKind:"derived",initial:t.cache}),r=n.subscribe.bind(n);return n.subscribe=(o,i)=>(e(o),r(o,i)),n}function An(t,e){let{signal:n,period:r,...o}=e??{};return x(i=>{let s=!1,a=0,u,d,c=()=>{s=!0,u!==void 0&&clearTimeout(u),d!==void 0&&clearInterval(d),n?.removeEventListener("abort",p)},l=()=>{s||(r!=null?(i.emit(a++),d=setInterval(()=>{s||i.emit(a++)},r)):(s=!0,n?.removeEventListener("abort",p),i.emit(a++),i.down([[y]])))},p=()=>{s||(c(),i.down([[h,n.reason]]))};if(n?.aborted){p();return}return u=setTimeout(l,t),n?.addEventListener("abort",p,{once:!0}),c},O(o))}function Rn(t){let{signal:e,...n}=t??{};return x(r=>{let o=!1,i,s,a=!1,u=!1,d=typeof requestAnimationFrame=="function"?requestAnimationFrame:void 0,c=typeof cancelAnimationFrame=="function"?cancelAnimationFrame:void 0,l=typeof document<"u"?document:void 0,p=()=>{i!==void 0&&c&&c(i),s!==void 0&&clearTimeout(s),i=void 0,s=void 0},f=()=>{o=!0,p(),a&&(e?.removeEventListener("abort",b),a=!1),u&&l&&(l.removeEventListener("visibilitychange",N),u=!1)},b=()=>{o||(f(),r.down([[h,e.reason]]))},_=S=>{o||(r.emit(S),m())},m=()=>{o||(d&&(!l||l.visibilityState!=="hidden")?i=d(_):s=setTimeout(()=>_(performance.now()),16))},N=()=>{o||(p(),m())};return e?.aborted?(b(),f):(e?.addEventListener("abort",b,{once:!0}),a=e!==void 0,l&&d&&(l.addEventListener("visibilitychange",N),u=!0),m(),f)},O(n))}function On(t,e){let n=ct(t),{tickMs:r,output:o,...i}=e??{},s=r??6e4,a=o==="date";return x(u=>{let d=-1,c=()=>{let p=new Date,f=p.getFullYear()*1e8+(p.getMonth()+1)*1e6+p.getDate()*1e4+p.getHours()*100+p.getMinutes();f!==d&<(n,p)&&(d=f,u.emit(a?p:ae()))};c();let l=setInterval(c,s);return()=>clearInterval(l)},{...O(i),name:i.name??`cron:${t}`})}function Mn(t,e,n){let{capture:r,passive:o,once:i,...s}=n??{};return x(a=>{let u=c=>{a.emit(c)},d={capture:r,passive:o,once:i};return t.addEventListener(e,u,d),()=>t.removeEventListener(e,u,d)},O(s))}function Ue(t,e){return x(n=>{let r=!1;try{for(let o of t){if(r)return;n.emit(o)}r||n.down([[y]])}catch(o){r||n.down([[h,o]])}return()=>{r=!0}},O(e))}function Cn(t){return t!=null&&typeof t.then=="function"}function Lt(t,e){let{signal:n,...r}=e??{};return x(o=>{let i=!1,s=()=>{i||(i=!0,o.down([[h,n.reason]]))};if(n?.aborted){s();return}return n?.addEventListener("abort",s,{once:!0}),Promise.resolve(t).then(a=>{i||(i=!0,n?.removeEventListener("abort",s),o.emit(a),o.down([[y]]))},a=>{i||(i=!0,n?.removeEventListener("abort",s),o.down([[h,a]]))}),()=>{i=!0,n?.removeEventListener("abort",s)}},O(r))}function Bt(t,e){let{signal:n,...r}=e??{};return x(o=>{let i=new AbortController,s=()=>i.abort(n?.reason);n?.aborted?i.abort(n.reason):n?.addEventListener("abort",s,{once:!0});let a=n??i.signal,u=!1,d=t[Symbol.asyncIterator](),c=()=>{u||a.aborted||Promise.resolve(d.next()).then(l=>{if(!(u||a.aborted)){if(l.done){o.down([[y]]);return}o.emit(l.value),c()}},l=>{!u&&!a.aborted&&o.down([[h,l]])})};return c(),()=>{u=!0,n?.removeEventListener("abort",s),i.abort(),Promise.resolve(d.return?.()).catch(()=>{})}},O(r))}function Dn(t){return t!=null&&typeof t=="object"&&"cache"in t&&typeof t.subscribe=="function"}function ye(t,e){if(Dn(t))return t;if(Cn(t))return Lt(t,e);if(t!=null){let n=t;if(typeof n[Symbol.asyncIterator]=="function")return Bt(t,e);if(typeof n[Symbol.iterator]=="function")return Ue(t,e)}return Pt(t)}function Pt(...t){return Ue(t,void 0)}function In(t){return x(e=>{e.down([[y]])},O(t))}function Fn(t){return x(()=>{},O(t))}function Ln(t,e){return x(n=>{n.down([[h,t]])},O(e))}function Bn(t,e){let{signal:n,...r}=e??{},o=O(r),i=o.resubscribable===void 0?{...o,resubscribable:!0}:o;return x(s=>{let a,u=!1;try{let d=t();a=ye(d,e).subscribe(l=>{if(!u)for(let p of l){let f=p[0];if(f!==P)if(f===g)s.emit(p[1]);else if(f===y){u=!0,s.down([[y]]);break}else if(f===h){u=!0,s.down([[h,p[1]]]);break}else s.down([p])}})}catch(d){let c=d===void 0?new Error("defer: thunk threw undefined"):d;s.down([[h,c]])}return()=>{u=!0,a?.()}},i)}function Pn(t,e,n){return M([t],(o,i)=>{let s=o[0];if(s!=null&&s.length>0)for(let a of s)e(a)},{describeKind:"effect",...n}).subscribe(()=>{})}function Gn(t,e){return M([t],(n,r,o)=>{o.store.buf||(o.store.buf=[]);let i=o.store.buf,s=n[0];if(s!=null&&s.length>0)for(let a of s)i.push(a);if(o.terminalDeps[0]===!0){r.emit([...i]),r.down([[y]]);return}(s==null||s.length===0)&&r.down([[w]])},{describeKind:"derived",completeWhenDepsComplete:!1,...e})}function Vn(t,e){return x(n=>t.subscribe(r=>{n.down(r)}),{...O(e),initial:t.cache})}function We(t,e,n){if(e<1)throw new RangeError("replay expects bufferSize >= 1");let r=[],o=x(i=>t.subscribe(s=>{for(let a of s)a[0]===g&&(r.push(a[1]),r.length>e&&r.shift());i.down(s)}),{...O(n),initial:t.cache});return Sn(o,i=>{for(let s of r)i([[g,s]])})}function Hn(t,e){return We(t,1,e)}function zn(t){return new Promise((e,n)=>{let r=!1,o=!1,i;i=t.subscribe(s=>{for(let a of s){if(r)return;if(a[0]===g){r=!0,e(a[1]),i?(i(),i=void 0):o=!0;return}if(a[0]===h){r=!0,n(a[1]),i?(i(),i=void 0):o=!0;return}if(a[0]===y){r=!0,n(new Error("completed without DATA")),i?(i(),i=void 0):o=!0;return}}}),o&&(i?.(),i=void 0)})}function ze(t,e,n){return new Promise((r,o)=>{let i=!1,s=!1,a,u=n?.skipCurrent===!0;a=t.subscribe(d=>{for(let c of d){if(i)return;if(!(u&&c[0]===g)){if(c[0]===g){let l=c[1];if(e(l)){i=!0,r(l),a?(a(),a=void 0):s=!0;return}}if(c[0]===h){i=!0,o(c[1]),a?(a(),a=void 0):s=!0;return}if(c[0]===y){i=!0,o(new Error("completed without matching value")),a?(a(),a=void 0):s=!0;return}}}}),u=!1,s&&(a?.(),a=void 0)})}async function Un(t,e){let n=e?.predicate??(i=>i!=null),r=e?.skipCurrent;if(e?.timeoutMs==null||e.timeoutMs<=0)return await ze(t,n,{skipCurrent:r});if(He===void 0){let[i,s]=await Promise.all([Promise.resolve().then(()=>(Dt(),Ct)),Promise.resolve().then(()=>(Ge(),xt))]);He=i.timeout,It=s.NS_PER_MS}let o=He(t,e.timeoutMs*It);return await ze(o,n,{skipCurrent:r})}function Wn(t,e){let n=new AbortController,r=e?.reason??new Error("cancelled via nodeSignal"),o,i=!1,s=()=>{o?(o(),o=void 0):i=!0};return o=t.subscribe(a=>{if(!n.signal.aborted)for(let u of a){if(u[0]===g&&u[1]===!0){n.abort(r),s();return}if(u[0]===h){n.abort(u[1]),s();return}if(u[0]===y){s();return}}}),i&&(o?.(),o=void 0),{signal:n.signal,dispose:()=>{o&&(o(),o=void 0)}}}function jn(t){return t.subscribe(()=>{})}function Kn(t){let e=dt(0);return{node:e,increment(){let n=e.cache??0;return n>=t?!1:(e.down([[T],[g,n+1]]),!0)},get(){return e.cache??0},atCap(){return(e.cache??0)>=t}}}var He,It,$n,Gt=v(()=>{"use strict";ue();$();re();Le();ft();$n=We});var qn={};ve(qn,{awaitSettled:()=>Un,cached:()=>Hn,defer:()=>Bn,empty:()=>In,escapeRegexChar:()=>Ft,firstValueFrom:()=>zn,firstWhere:()=>ze,forEach:()=>Pn,fromAny:()=>ye,fromAsyncIter:()=>Bt,fromCron:()=>On,fromEvent:()=>Mn,fromIter:()=>Ue,fromPromise:()=>Lt,fromRaf:()=>Rn,fromTimer:()=>An,globToRegExp:()=>kn,keepalive:()=>jn,matchesAnyPattern:()=>En,never:()=>Fn,nodeSignal:()=>Wn,of:()=>Pt,reactiveCounter:()=>Kn,replay:()=>We,share:()=>Vn,shareReplay:()=>$n,throwError:()=>Ln,toArray:()=>Gn});module.exports=jt(qn);var Mt=v(()=>{Gt()});Mt();0&&(module.exports={awaitSettled,cached,defer,empty,escapeRegexChar,firstValueFrom,firstWhere,forEach,fromAny,fromAsyncIter,fromCron,fromEvent,fromIter,fromPromise,fromRaf,fromTimer,globToRegExp,keepalive,matchesAnyPattern,never,nodeSignal,of,reactiveCounter,replay,share,shareReplay,throwError,toArray});
|
|
1
|
+
"use strict";var ve=Object.defineProperty;var Ut=Object.getOwnPropertyDescriptor;var Wt=Object.getOwnPropertyNames;var $t=Object.prototype.hasOwnProperty;var v=(t,e)=>()=>(t&&(e=t(t=0)),e);var xe=(t,e)=>{for(var n in e)ve(t,n,{get:e[n],enumerable:!0})},jt=(t,e,n,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of Wt(e))!$t.call(t,r)&&r!==n&&ve(t,r,{get:()=>e[r],enumerable:!(o=Ut(e,r))||o.enumerable});return t};var qt=t=>jt(ve({},"__esModule",{value:!0}),t);function Ne(){return Math.trunc(performance.now()*1e6)}function ue(){return Date.now()*1e6}var de=v(()=>{"use strict"});var H,b,T,w,z,L,G,R,y,h,q,ke,Kt,Ee,Yt,Jt,Se,je,qe,Ke,Re,K=v(()=>{"use strict";H=Symbol.for("graphrefly/START"),b=Symbol.for("graphrefly/DATA"),T=Symbol.for("graphrefly/DIRTY"),w=Symbol.for("graphrefly/RESOLVED"),z=Symbol.for("graphrefly/INVALIDATE"),L=Symbol.for("graphrefly/PAUSE"),G=Symbol.for("graphrefly/RESUME"),R=Symbol.for("graphrefly/TEARDOWN"),y=Symbol.for("graphrefly/COMPLETE"),h=Symbol.for("graphrefly/ERROR"),q=Object.freeze([T]),ke=Object.freeze([w]),Kt=Object.freeze([z]),Ee=Object.freeze([H]),Yt=Object.freeze([y]),Jt=Object.freeze([R]),Se=Object.freeze([q]),je=Object.freeze([ke]),qe=Object.freeze([Kt]),Ke=Object.freeze([Yt]),Re=Object.freeze([Jt])});function Ye(t){t.registerCodec(Xt)}var Xt,Je=v(()=>{"use strict";Xt={name:"json",version:1,contentType:"application/json",encode(t){let e=JSON.stringify(t);return new TextEncoder().encode(e)},decode(t,e){let n=new TextDecoder().decode(t);return JSON.parse(n)}}});function ce(t){if(t==null)return Qt;let{type:e,id:n,...o}=t;return{type:e??"system",id:n??"",...o}}var Qt,Xe=v(()=>{"use strict";Qt={type:"system",id:""}});function Qe(){return Y>0||re}function Ze(){return Y>0}function et(t){Y>0?oe.push(t):t()}function Ae(t){Y+=1;let e=!1;try{t()}catch(n){throw e=!0,n}finally{if(Y-=1,Y===0)if(e){if(!re){let n=oe.splice(0);for(let o of n)try{o()}catch{}U.length=0,W.length=0,J.length=0}}else Zt()}}function Zt(){let t=!re;t&&(re=!0);let e=[],n=0;try{for(;U.length>0||W.length>0||J.length>0||t&&oe.length>0;){if(t&&oe.length>0){let i=oe.splice(0);for(let s of i)try{s()}catch(a){e.push(a)}continue}if(n+=1,n>1e3)throw U.length=0,W.length=0,J.length=0,new Error("batch drain exceeded 1000 iterations \u2014 likely a reactive cycle");let r=(U.length>0?U:W.length>0?W:J).splice(0);for(let i of r)try{i()}catch(s){e.push(s)}}}finally{t&&(re=!1)}if(e.length===1)throw e[0];if(e.length>1)throw new AggregateError(e,"batch drain: multiple callbacks threw")}function le(t,e,n){if(e.length===0)return;if(e.length===1){let d=n(e[0][0]);if(d<3||!Qe()){t(e);return}(d>=5?J:d===4?W:U).push(()=>t(e));return}let o=e.length,r=o,i=o,s=o,a=0;for(;a<o&&n(e[a][0])<3;)a++;for(r=a;a<o&&n(e[a][0])===3;)a++;for(i=a;a<o&&n(e[a][0])===4;)a++;s=a;let u=Qe();if(r>0){let d=e.slice(0,r);t(d)}if(i>r){let d=e.slice(r,i);u?U.push(()=>t(d)):t(d)}if(s>i){let d=e.slice(i,s);u?W.push(()=>t(d)):t(d)}if(o>s){let d=e.slice(s,o);u?J.push(()=>t(d)):t(d)}}var Y,re,U,W,J,oe,Oe=v(()=>{"use strict";Y=0,re=!1,U=[],W=[],J=[],oe=[]});function tt(t){t.registerMessageType(H,{tier:0,wireCrossing:!1}),t.registerMessageType(T,{tier:1,wireCrossing:!1}),t.registerMessageType(z,{tier:1,wireCrossing:!1,metaPassthrough:!1}),t.registerMessageType(L,{tier:2,wireCrossing:!1}),t.registerMessageType(G,{tier:2,wireCrossing:!1}),t.registerMessageType(b,{tier:3,wireCrossing:!0}),t.registerMessageType(w,{tier:3,wireCrossing:!0}),t.registerMessageType(y,{tier:4,wireCrossing:!0,metaPassthrough:!1}),t.registerMessageType(h,{tier:4,wireCrossing:!0,metaPassthrough:!1}),t.registerMessageType(R,{tier:5,wireCrossing:!0,metaPassthrough:!1})}var fe,nt=v(()=>{"use strict";K();fe=class{_messageTypes=new Map;_codecs=new Map;_onMessage;_onSubscribe;_defaultVersioning;_defaultHashFn;_inspectorEnabled=!(typeof process<"u"&&process.env?.NODE_ENV==="production");_globalInspector;_rigorRecorder;_frozen=!1;tierOf;constructor(e){this._onMessage=e.onMessage,this._onSubscribe=e.onSubscribe,this._defaultVersioning=e.defaultVersioning,this._defaultHashFn=e.defaultHashFn,this.tierOf=n=>{let o=this._messageTypes.get(n);return o!=null?o.tier:1}}get onMessage(){return this._frozen=!0,this._onMessage}get onSubscribe(){return this._frozen=!0,this._onSubscribe}set onMessage(e){this._assertUnfrozen(),this._onMessage=e}set onSubscribe(e){this._assertUnfrozen(),this._onSubscribe=e}get defaultVersioning(){return this._defaultVersioning}set defaultVersioning(e){this._assertUnfrozen(),this._defaultVersioning=e}get defaultHashFn(){return this._defaultHashFn}set defaultHashFn(e){this._assertUnfrozen(),this._defaultHashFn=e}get inspectorEnabled(){return this._inspectorEnabled}set inspectorEnabled(e){this._inspectorEnabled=e}get globalInspector(){return this._globalInspector}set globalInspector(e){this._globalInspector=e}get rigorRecorder(){return this._rigorRecorder}set rigorRecorder(e){this._rigorRecorder=e}registerMessageType(e,n){return this._assertUnfrozen(),this._messageTypes.set(e,{tier:n.tier,wireCrossing:n.wireCrossing??n.tier>=3,metaPassthrough:n.metaPassthrough??!0}),this}messageTier(e){let n=this._messageTypes.get(e);return n!=null?n.tier:1}isWireCrossing(e){let n=this._messageTypes.get(e);return n!=null?n.wireCrossing:!0}isLocalOnly(e){return!this.isWireCrossing(e)}isMetaPassthrough(e){let n=this._messageTypes.get(e);return n!=null?n.metaPassthrough:!0}isKnownMessageType(e){return this._messageTypes.has(e)}registerCodec(e){return this._assertUnfrozen(),this._codecs.set(e.name,e),this}lookupCodec(e){return this._codecs.get(e)}_isFrozen(){return this._frozen}_assertUnfrozen(){if(this._frozen)throw new Error("GraphReFlyConfig is frozen: a node has already captured this config. Register custom types and set hooks before creating any node.")}}});var X,rt=v(()=>{"use strict";X=class extends Error{actor;action;nodeName;constructor(e,n){super(n??`GuardDenied: action "${String(e.action)}" denied for actor type "${String(e.actor.type)}"`),this.name="GuardDenied",this.actor=e.actor,this.action=e.action,this.nodeName=e.nodeName}get node(){return this.nodeName}}});function Me(t){if(t===void 0)return null;if(typeof t=="number"){if(!Number.isFinite(t))throw new TypeError(`Cannot hash non-finite number: ${t}`);if(Number.isInteger(t)&&!Number.isSafeInteger(t))throw new TypeError(`Cannot hash integer outside safe range (|n| > 2^53-1): ${t}. Cross-language cid parity is not guaranteed for unsafe integers.`);return t}if(typeof t=="string"||typeof t=="boolean"||t===null)return t;if(Array.isArray(t))return t.map(Me);if(typeof t=="object"&&t!==null){let e={};for(let n of Object.keys(t).sort())e[n]=Me(t[n]);return e}return null}function nn(t){let e=tn.encode(t),n=e.length,o=n*8,r=n+9+63&-64,i=new Uint8Array(r);i.set(e),i[n]=128;let s=new DataView(i.buffer);s.setUint32(r-4,o>>>0,!1),s.setUint32(r-8,Math.floor(o/4294967296)>>>0,!1);let a=1779033703,u=3144134277,d=1013904242,c=2773480762,l=1359893119,p=2600822924,f=528734635,g=1541459225,_=new Uint32Array(64),m=(S,k)=>S>>>k|S<<32-k;for(let S=0;S<r;S+=64){for(let E=0;E<16;E++)_[E]=s.getUint32(S+E*4,!1);for(let E=16;E<64;E++){let te=_[E-15],ne=_[E-2],ae=m(te,7)^m(te,18)^te>>>3,Te=m(ne,17)^m(ne,19)^ne>>>10;_[E]=_[E-16]+ae+_[E-7]+Te>>>0}let k=a,B=u,F=d,P=c,C=l,D=p,M=f,I=g;for(let E=0;E<64;E++){let te=m(C,6)^m(C,11)^m(C,25),ne=C&D^~C&M,ae=I+te+ne+en[E]+_[E]>>>0,Te=m(k,2)^m(k,13)^m(k,22),Ht=k&B^k&F^B&F,zt=Te+Ht>>>0;I=M,M=D,D=C,C=P+ae>>>0,P=F,F=B,B=k,k=ae+zt>>>0}a=a+k>>>0,u=u+B>>>0,d=d+F>>>0,c=c+P>>>0,l=l+C>>>0,p=p+D>>>0,f=f+M>>>0,g=g+I>>>0}let N=S=>S.toString(16).padStart(8,"0");return N(a)+N(u)+N(d)+N(c)+N(l)+N(p)+N(f)+N(g)}function Ce(t){let e=Me(t??null),n=JSON.stringify(e);return nn(n).slice(0,16)}function rn(){let t=globalThis.crypto;if(t?.randomUUID)return t.randomUUID();let e=()=>Math.floor(Math.random()*4294967296).toString(16).padStart(8,"0"),n=e()+e()+e()+e();return`${n.slice(0,8)}-${n.slice(8,12)}-4${n.slice(13,16)}-${(parseInt(n.slice(16,17),16)&3|8).toString(16)}${n.slice(17,20)}-${n.slice(20,32)}`}function De(t,e,n){let o=n?.id??rn();if(t===0)return{id:o,version:0};let i=(n?.hash??Ce)(e);return{id:o,version:0,cid:i,prev:null}}function ot(t,e,n){t.version+=1,"cid"in t&&(t.prev=t.cid,t.cid=n(e))}var en,tn,st=v(()=>{"use strict";en=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),tn=new TextEncoder});function ut(t){return{node:t,unsub:null,prevData:void 0,dirty:!1,involvedThisWave:!1,dataBatch:[],terminal:void 0}}function Ie(t){t.prevData=void 0,t.dirty=!1,t.involvedThisWave=!1,t.dataBatch.length=0,t.terminal=void 0}function pe(t){return t.length===0?t:typeof t[0]=="symbol"?[t]:t}function O(t,e,n){let o=dt(t)?t:[],r=typeof t=="function"?t:typeof e=="function"?e:void 0,i={};return dt(t)?i=(Le(e)?e:n)??{}:Le(t)?i=t:i=(Le(e)?e:n)??{},new he(o,r,i)}var it,at,on,sn,Fe,he,dt,Le,se=v(()=>{"use strict";Je();Xe();Oe();de();nt();rt();K();st();it=()=>{},at=100;on=(t,e,n,o)=>{n.direction==="down-in"&&t._onDepMessage(n.depIndex,e)},sn=(t,e,n,o)=>{let r=t;if(r._status==="completed"||r._status==="errored")return;let i=r._cached,s=i===void 0?[Ee]:[Ee,[b,i]];r._status==="dirty"&&s.push(q),le(e,s,r._config.tierOf)},Fe=new fe({onMessage:on,onSubscribe:sn});tt(Fe);Ye(Fe);he=class t{_optsName;_describeKind;meta;_hasMeta;_config;_deps;_sinks=null;_sinkCount=0;_cached;_status;_cleanup;_store={};_waveHasNewData=!1;_hasNewTerminal=!1;_hasCalledFnOnce=!1;_paused=!1;_pendingWave=!1;_isExecutingFn=!1;_pendingRerun=!1;_rerunDepth=0;_dirtyDepCount=0;_batchPendingMessages=null;_pauseLocks=null;_pauseBuffer=null;_fn;_equals;_resubscribable;_resetOnTeardown;_autoComplete;_autoError;_pausable;_partial;_guard;_extraGuards;_hashFn;_versioning;_versioningLevel;_lastMutation;_inspectorHooks;_actions;constructor(e,n,o){this._config=o.config??Fe,this._config.onMessage,this._optsName=o.name,this._describeKind=o.describeKind,this._equals=o.equals??Object.is,this._resubscribable=o.resubscribable??!1,this._resetOnTeardown=o.resetOnTeardown??!1,this._autoComplete=o.completeWhenDepsComplete??!0,this._autoError=o.errorWhenDepsError??!0,this._pausable=o.pausable??!0,this._guard=o.guard,this._fn=n,this._partial=o.partial??!1,this._cached=o.initial!==void 0?o.initial:void 0,this._status=e.length===0&&n==null&&this._cached!==void 0?"settled":"sentinel",this._hashFn=o.versioningHash??this._config.defaultHashFn??Ce;let r=o.versioning??this._config.defaultVersioning;this._versioningLevel=r,this._versioning=r!=null?De(r,this._cached===void 0?void 0:this._cached,{id:o.versioningId,hash:this._hashFn}):void 0,this._deps=e.map(ut);let i={};for(let[a,u]of Object.entries(o.meta??{})){let d={initial:u,name:`${o.name??"node"}:meta:${a}`,describeKind:"state",config:this._config};o.guard!=null&&(d.guard=o.guard),i[a]=new t([],void 0,d)}Object.freeze(i),this.meta=i,this._hasMeta=Object.keys(i).length>0;let s=this;this._actions={emit(a){s._emit([[b,a]])},down(a){s._emit(pe(a))},up(a){s._emitUp(pe(a))}},this.down=this.down.bind(this),this.up=this.up.bind(this)}get _isTerminal(){return this._status==="completed"||this._status==="errored"}get name(){return this._optsName}get status(){return this._status}get cache(){return this._cached===void 0?void 0:this._cached}get lastMutation(){return this._lastMutation}get v(){return this._versioning}hasGuard(){return this._guard!=null}_applyVersioning(e,n){if(this._isExecutingFn)throw new Error(`Node "${this.name}": _applyVersioning cannot run mid-fn \u2014 call it outside of \`_execFn\` (typically at graph setup time before the first subscribe).`);let o=this._versioningLevel;if(o!=null&&e<=o)return;let r=n?.hash??this._hashFn;r!==this._hashFn&&(this._hashFn=r);let i=this._cached===void 0?void 0:this._cached,s=this._versioning,a=s?.id??n?.id,u=s?.version??0,d=De(e,i,{id:a,hash:r});d.version=u,this._versioning=d,this._versioningLevel=e}_setInspectorHook(e){return e==null?()=>{}:(this._inspectorHooks==null&&(this._inspectorHooks=new Set),this._inspectorHooks.add(e),()=>{this._inspectorHooks?.delete(e),this._inspectorHooks?.size===0&&(this._inspectorHooks=void 0)})}_pushGuard(e){return this._extraGuards==null&&(this._extraGuards=new Set),this._extraGuards.add(e),()=>{this._extraGuards?.delete(e),this._extraGuards?.size===0&&(this._extraGuards=void 0)}}allowsObserve(e){if(this._guard==null&&this._extraGuards==null)return!0;let n=ce(e);if(this._guard!=null&&!this._guard(n,"observe"))return!1;if(this._extraGuards!=null){for(let o of this._extraGuards)if(!o(n,"observe"))return!1}return!0}_checkGuard(e){if(e?.internal)return;let n=this._guard!=null||this._extraGuards!=null,o=e?.actor!=null;if(!n&&!o)return;let r=ce(e?.actor),i=e?.delivery==="signal"?"signal":"write";if(this._guard!=null&&!this._guard(r,i))throw new X({actor:r,action:i,nodeName:this.name});if(this._extraGuards!=null){for(let s of this._extraGuards)if(!s(r,i))throw new X({actor:r,action:i,nodeName:this.name})}this._lastMutation={actor:r,timestamp_ns:ue()}}down(e,n){let o=pe(e);o.length!==0&&(this._checkGuard(n),this._emit(o))}emit(e,n){this._checkGuard(n),this._emit([[b,e]])}up(e,n){if(this._deps.length===0)return;let o=pe(e);if(o.length===0)return;this._checkGuard(n);let r=n??{internal:!0};this._validateUpTiers(o);for(let i of this._deps)i.node.up?.(o,r)}_emitUp(e){if(this._deps.length!==0&&e.length!==0){this._validateUpTiers(e);for(let n of this._deps)n.node.up?.(e,{internal:!0})}}_validateUpTiers(e){let n=this._config.tierOf;for(let o of e){let r=n(o[0]);if(r===3||r===4)throw new Error(`Node "${this.name}": tier-${r} messages cannot flow up \u2014 DATA/RESOLVED/COMPLETE/ERROR are downstream-only. Use \`down(...)\` for value delivery; \`up(...)\` is for control signals (DIRTY, INVALIDATE, PAUSE, RESUME, TEARDOWN).`)}}subscribe(e,n){if(n!=null&&this._guard!=null){let u=ce(n);if(!this._guard(u,"observe"))throw new X({actor:u,action:"observe",nodeName:this.name})}let r=this._isTerminal&&this._resubscribable;if(r){this._cached=void 0,this._status="sentinel",this._store={},this._hasCalledFnOnce=!1,this._waveHasNewData=!1,this._hasNewTerminal=!1,this._paused=!1,this._pendingWave=!1,this._pendingRerun=!1,this._isExecutingFn=!1,this._rerunDepth=0,this._dirtyDepCount=0,this._pauseLocks=null,this._pauseBuffer=null;for(let u of this._deps)Ie(u);if(this._partial===!1){for(let u of this._deps)if(u.prevData!==void 0||u.dataBatch.length!==0||u.terminal!==void 0||u.dirty)throw new Error(`resubscribable-reset invariant: DepRecord not fully reset for node ${this._optsName??"(anonymous)"}`)}}this._sinkCount+=1;let i;try{i=this._config.onSubscribe(this,e,{sinkCount:this._sinkCount,afterTerminalReset:r},this._actions)}catch(u){throw this._sinkCount-=1,u}this._sinks==null?this._sinks=e:typeof this._sinks=="function"?this._sinks=new Set([this._sinks,e]):this._sinks.add(e);let s=this._isTerminal;if(this._sinkCount===1&&!s)try{this._activate()}catch(u){if(this._sinkCount-=1,this._removeSink(e),this._sinkCount===0&&(this._status="sentinel"),typeof i=="function")try{i()}catch{}throw u}this._status==="sentinel"&&this._cached===void 0&&(this._status="pending");let a=!1;return()=>{a||(a=!0,this._sinkCount-=1,this._removeSink(e),typeof i=="function"&&i(),this._sinks==null&&this._deactivate())}}_removeSink(e){if(this._sinks===e)this._sinks=null;else if(this._sinks!=null&&typeof this._sinks!="function")if(this._sinks.delete(e),this._sinks.size===1){let[n]=this._sinks;this._sinks=n}else this._sinks.size===0&&(this._sinks=null)}_activate(){if(this._deps.length===0){this._fn&&this._execFn();return}this._dirtyDepCount=0;let e=this._deps.length,n=0;try{for(let o=0;o<e;o++){let r=o,i=this._deps[o];i.unsub=it,i.unsub=i.node.subscribe(s=>{if(i.unsub===null)return;let a=this._config.tierOf,u=!1;for(let d of s)a(d[0])>=3&&(u=!0),this._config.onMessage(this,d,{direction:"down-in",depIndex:r},this._actions);u&&this._maybeRunFnOnSettlement()}),n++}}catch(o){this._deps[n].unsub=null;for(let r=0;r<n;r++){let i=this._deps[r];if(i.unsub!=null){let s=i.unsub;i.unsub=null;try{s()}catch{}Ie(i)}}throw this._dirtyDepCount=0,o}}_addDep(e){for(let r=0;r<this._deps.length;r++)if(this._deps[r].node===e)return r;let n=this._deps.length,o=ut(e);if(this._deps.push(o),this._sinks==null)return n;o.dirty=!0,this._dirtyDepCount++,this._status!=="dirty"&&this._emit(Se),o.unsub=it;try{o.unsub=e.subscribe(r=>{if(o.unsub===null)return;let i=this._config.tierOf,s=!1;for(let a of r)i(a[0])>=3&&(s=!0),this._config.onMessage(this,a,{direction:"down-in",depIndex:n},this._actions);s&&this._maybeRunFnOnSettlement()})}catch(r){throw o.unsub=null,this._deps.pop(),this._dirtyDepCount--,r}return n}_deactivate(e=!1){let n=this._cleanup;if(this._cleanup=void 0,typeof n=="function")try{n()}catch(o){this._emit([[h,this._wrapFnError("cleanup threw",o)]])}else if(n!=null&&typeof n=="object"){let o=n.deactivate;if(typeof o=="function")try{o()}catch(r){this._emit([[h,this._wrapFnError("cleanup.deactivate threw",r)]])}}for(let o of this._deps){if(o.unsub!=null){let r=o.unsub;o.unsub=null;try{r()}catch{}}Ie(o)}this._waveHasNewData=!1,this._hasNewTerminal=!1,this._hasCalledFnOnce=!1,this._paused=!1,this._pendingWave=!1,this._pendingRerun=!1,this._rerunDepth=0,this._store={},this._dirtyDepCount=0,this._pauseLocks=null,this._pauseBuffer=null,this._fn!=null&&(this._cached=void 0),e||(this._fn!=null||this._deps.length>0)&&(!this._isTerminal||this._resubscribable)&&(this._status="sentinel")}_onDepMessage(e,n){let o=this._deps[e],r=n[0];if(this._inspectorHooks!=null){let i={kind:"dep_message",depIndex:e,message:n};for(let s of this._inspectorHooks)s(i)}if(r!==H){if(r===T){this._depDirtied(o);return}if(r===z){if(this._depInvalidated(o),this._cached===void 0)return;this._emit(qe);return}if(r===L||r===G){this._emit([n]);return}if(r===R){this._emit(Re);return}if(r===b)this._depSettledAsData(o,n[1]);else if(r===w)this._depSettledAsResolved(o);else if(r===y)this._depSettledAsTerminal(o,!0);else if(r===h)this._depSettledAsTerminal(o,n[1]);else{this._emit([n]);return}if(!this._fn){(r===b||r===w)&&this._emit([n]),(r===y||r===h)&&this._maybeAutoTerminalAfterWave();return}}}_depDirtied(e){e.dirty||(e.dirty=!0,e.involvedThisWave=!0,this._dirtyDepCount++,this._status!=="dirty"&&this._emit(Se))}_depSettledAsData(e,n){e.dirty&&(e.dirty=!1,this._dirtyDepCount--),e.involvedThisWave=!0,e.dataBatch.push(n),this._waveHasNewData=!0}_depSettledAsResolved(e){e.dirty&&(e.dirty=!1,this._dirtyDepCount--)}_depSettledAsTerminal(e,n){e.dirty&&(e.dirty=!1,this._dirtyDepCount--),e.terminal=n,e.involvedThisWave=!0,this._hasNewTerminal=!0}_depInvalidated(e){e.prevData=void 0,e.terminal=void 0,e.dataBatch.length=0,e.dirty?e.involvedThisWave=!1:(e.dirty=!0,e.involvedThisWave=!0,this._dirtyDepCount++)}_maybeRunFnOnSettlement(){if(!(this._isTerminal&&!this._resubscribable)&&!(this._dirtyDepCount>0)){if(!this._partial&&!this._hasCalledFnOnce)for(let e=0;e<this._deps.length;e++){let n=this._deps[e];if(n.dataBatch.length===0&&n.prevData===void 0&&n.terminal===void 0){this._maybeAutoTerminalAfterWave();return}}if(this._paused){this._pendingWave=!0;return}if(!this._waveHasNewData&&!this._hasNewTerminal&&this._hasCalledFnOnce){this._clearWaveFlags(),this._emit(je),this._maybeAutoTerminalAfterWave();return}this._fn&&this._execFn(),this._maybeAutoTerminalAfterWave()}}_maybeAutoTerminalAfterWave(){if(this._deps.length===0||this._isTerminal)return;let e=this._deps.find(n=>n.terminal!==void 0&&n.terminal!==!0);if(e!=null){this._autoError&&this._emit([[h,e.terminal]]);return}this._autoComplete&&this._deps.every(n=>n.terminal!==void 0)&&this._emit(Ke)}_execFn(){if(!this._fn||this._isTerminal&&!this._resubscribable)return;if(this._isExecutingFn){this._pendingRerun=!0;return}let e=this._cleanup;if(typeof e=="function"){this._cleanup=void 0;try{e()}catch(s){this._emit([[h,this._wrapFnError("cleanup threw",s)]]);return}}else if(e!=null&&typeof e=="object"){let s=e.beforeRun;if(typeof s=="function"){e.beforeRun=void 0;try{s()}catch(a){this._emit([[h,this._wrapFnError("cleanup.beforeRun threw",a)]]);return}}}let n=this._deps.map(s=>s.involvedThisWave?s.dataBatch.length>0?[...s.dataBatch]:[]:void 0),o=this._deps.map(s=>s.prevData);for(let s=0;s<this._deps.length;s++){let a=n[s];a!=null&&a.length>0&&(this._deps[s].prevData=a[a.length-1])}let r=this._deps.map(s=>s.terminal),i={prevData:o,terminalDeps:r,store:this._store};if(this._hasCalledFnOnce=!0,this._clearWaveFlags(),this._inspectorHooks!=null){let s={kind:"run",batchData:n,prevData:o};for(let a of this._inspectorHooks)a(s)}this._isExecutingFn=!0;try{let s=this._fn(n,this._actions,i);if(typeof s=="function")this._cleanup=s;else if(s!=null&&typeof s=="object"){let a=s;(typeof a.beforeRun=="function"||typeof a.deactivate=="function"||typeof a.invalidate=="function")&&(this._cleanup=s)}}catch(s){this._emit([[h,this._wrapFnError("fn threw",s)]])}finally{this._isExecutingFn=!1,this._pendingRerun?(this._pendingRerun=!1,this._rerunDepth+=1,this._rerunDepth>at?(this._rerunDepth=0,this._emit([[h,new Error(`Node "${this.name}": _pendingRerun depth exceeded ${at} \u2014 likely a reactive cycle`)]])):this._maybeRunFnOnSettlement()):this._rerunDepth=0,this._clearWaveFlags()}}_clearWaveFlags(){this._waveHasNewData=!1,this._hasNewTerminal=!1;for(let e of this._deps)e.involvedThisWave=!1,e.dataBatch.length=0}_wrapFnError(e,n){let o=n instanceof Error?n.message:String(n);return new Error(`Node "${this.name}": ${e}: ${o}`,{cause:n})}_frameBatch(e){let n=this._config.tierOf;if(e.length===1)return n(e[0][0])===3&&this._status!=="dirty"?[q,e[0]]:e;let o=!0,r=!1,i=!1,s=-1;for(let u of e){let d=n(u[0]);d<s&&(o=!1),d===3&&(r=!0),u[0]===T&&(i=!0),s=d}let a=e;if(!o){let u=e.map((d,c)=>({m:d,i:c,tier:n(d[0])}));u.sort((d,c)=>d.tier-c.tier||d.i-c.i),a=u.map(d=>d.m)}if(r&&!i&&this._status!=="dirty"){let u=0;for(;u<a.length&&n(a[u][0])===0;)u++;return u===0?[q,...a]:[...a.slice(0,u),q,...a.slice(u)]}return a}_emit(e){if(e.length===0)return;for(let a=0;a<e.length;a++){let u=e[a];if(u[0]===h&&u[1]===void 0)throw new TypeError('[ERROR, payload] requires a non-undefined payload (spec \xA71.2). Pass an Error object or domain tag instead \u2014 e.g. node.down([[ERROR, new Error("reason")]])')}let n=e;if(this._isTerminal&&!this._resubscribable){let a=e.filter(u=>u[0]===R||u[0]===z);if(a.length===0)return;n=a}n=this._frameBatch(n);let r=null;for(let a=0;a<n.length;a++){let u=n[a],d=u[0];if(d!==L&&d!==G){r?.push(u);continue}if(u.length<2)throw new Error(`Node "${this.name}": [[${d===L?"PAUSE":"RESUME"}]] must carry a lockId payload \u2014 bare PAUSE/RESUME is a protocol violation (C0 rule). Use \`[[PAUSE, lockId]]\` / \`[[RESUME, lockId]]\`.`);let c=!0;if(this._pausable!==!1){let l=u[1];if(d===L)this._pauseLocks==null&&(this._pauseLocks=new Set),this._pauseLocks.add(l),this._paused=!0,this._pausable==="resumeAll"&&this._pauseBuffer==null&&(this._pauseBuffer=[]);else if(this._pauseLocks==null||!this._pauseLocks.has(l))c=!1;else if(this._pauseLocks.delete(l),this._pauseLocks.size===0){if(this._paused=!1,this._pauseBuffer!=null&&this._pauseBuffer.length>0){let p=this._pauseBuffer;this._pauseBuffer=[],this._emit(p)}this._pendingWave&&(this._pendingWave=!1,this._maybeRunFnOnSettlement())}}c?r?.push(u):r==null&&(r=n.slice(0,a))}if(r!=null){if(r.length===0)return;n=r}if(this._hasMeta&&n.some(a=>a[0]===R))for(let a of Object.keys(this.meta))try{this.meta[a]._emit(Re)}catch{}let{finalMessages:i,equalsError:s}=this._updateState(n);if(i.length>0&&this._config.inspectorEnabled){let a=this._config.globalInspector;if(a!=null)try{a({kind:"emit",node:this,messages:i})}catch{}}if(i.length>0)if(this._paused&&this._pausable==="resumeAll"&&this._pauseBuffer!=null){let a=this._config.tierOf,u=[];for(let d of i)a(d[0])===3?this._pauseBuffer.push(d):u.push(d);u.length>0&&this._dispatchOrAccumulate(u)}else this._dispatchOrAccumulate(i);s!=null&&this._emit([[h,s]])}_updateState(e){let n=this._config.tierOf,o,r,i=-1,s=0;for(let c of e)n(c[0])===3&&s++;let a=s<=1,u=-1;if(this._versioning!=null&&s>1){for(let c=e.length-1;c>=0;c--)if(e[c][0]===b){u=c;break}}for(let c=0;c<e.length;c++){let l=e[c],p=l[0];if(p===b){if(l.length>=2){let f=!1;if(a&&this._cached!==void 0)try{f=this._equals(this._cached,l[1])}catch(g){r=this._wrapFnError("equals threw",g),i=c;break}if(f){o==null&&(o=e.slice(0,c)),o.push(ke),this._status="resolved";continue}this._cached=l[1],this._versioning!=null&&(u<0||c===u)&&ot(this._versioning,l[1],this._hashFn)}this._status="settled",o?.push(l)}else if(o?.push(l),p===T)this._status="dirty";else if(p===w)this._status="resolved";else if(p===y){this._status="completed";{let f=this._config.rigorRecorder;if(f!=null)try{f.onTerminalTransition(this,"completed",this._autoComplete,this._autoError,this._deps.length>0)}catch{}}}else if(p===h){this._status="errored";{let f=this._config.rigorRecorder;if(f!=null)try{f.onTerminalTransition(this,"errored",this._autoComplete,this._autoError,this._deps.length>0)}catch{}}}else if(p===z){if(this._cached!==void 0){let g=this._config.rigorRecorder;if(g!=null)try{g.onNonVacuousInvalidate(this,this._cached)}catch{}}this._cached=void 0,this._status="dirty";let f=this._cleanup;if(typeof f=="function"){this._cleanup=void 0;try{f()}catch{}}else if(f!=null&&typeof f=="object"){let g=f.invalidate;if(typeof g=="function")try{g()}catch{}}}else p===R&&(this._resetOnTeardown&&(this._cached=void 0),this._deactivate(!0),this._status="sentinel")}let d=i>=0?o??e.slice(0,i):o??e;return r!=null?{finalMessages:d,equalsError:r}:{finalMessages:d}}_deliverToSinks=e=>{if(this._sinks==null)return;if(typeof this._sinks=="function"){this._sinks(e);return}let n=[...this._sinks];for(let o of n)o(e)};_dispatchOrAccumulate(e){if(Ze()){this._batchPendingMessages===null&&(this._batchPendingMessages=[],et(()=>this._flushBatchPending()));for(let n of e)this._batchPendingMessages.push(n);return}le(this._deliverToSinks,e,this._config.tierOf)}_flushBatchPending(){let e=this._batchPendingMessages;if(e===null||(this._batchPendingMessages=null,e.length===0))return;let n=this._frameBatch(e);le(this._deliverToSinks,n,this._config.tierOf)}},dt=t=>Array.isArray(t),Le=t=>typeof t=="object"&&t!=null&&!Array.isArray(t)});function ct(t,e){return O([],{...e,initial:t})}function x(t,e){return O((o,r,i)=>t(r,i)??void 0,{describeKind:"producer",...e})}var Be=v(()=>{"use strict";se()});function ie(t,e,n){let o=new Set;for(let r of t.split(",")){let[i,s]=r.split("/"),a=s?Number.parseInt(s,10):1;if(Number.isNaN(a)||a<1)throw new Error(`Invalid cron step: ${r}`);let u,d;if(i==="*")u=e,d=n;else if(i.includes("-")){let[c,l]=i.split("-");u=Number.parseInt(c,10),d=Number.parseInt(l,10)}else u=Number.parseInt(i,10),d=u;if(Number.isNaN(u)||Number.isNaN(d))throw new Error(`Invalid cron field: ${t}`);if(u<e||d>n)throw new Error(`Cron field out of range: ${t} (${e}-${n})`);if(u>d)throw new Error(`Invalid cron range: ${u}-${d} in ${t}`);for(let c=u;c<=d;c+=a)o.add(c)}return o}function lt(t){let e=t.trim().split(/\s+/);if(e.length!==5)throw new Error(`Invalid cron: expected 5 fields, got ${e.length}`);return{minutes:ie(e[0],0,59),hours:ie(e[1],0,23),daysOfMonth:ie(e[2],1,31),months:ie(e[3],1,12),daysOfWeek:ie(e[4],0,6)}}function ft(t,e){return t.minutes.has(e.getMinutes())&&t.hours.has(e.getHours())&&t.daysOfMonth.has(e.getDate())&&t.months.has(e.getMonth()+1)&&t.daysOfWeek.has(e.getDay())}var pt=v(()=>{"use strict"});function ht(t,e,n){return{[t]:!0,[`${t}_type`]:e,...n??{}}}var mt=v(()=>{"use strict"});function gt(t,e,n){if(e.length===0)throw new RangeError("budgetGate requires at least one constraint");let o=e.map(f=>f.node),r=[t,...o],i=new Pe,s=!1,a=!1,u=Symbol("budget-gate"),d=new Array(e.length);function c(){return e.every((f,g)=>f.check(d[g]))}function l(f){for(;i.size>0&&c();){let g=i.shift();f.emit(g)}i.size===0&&a&&(a=!1,f.down([[w]]))}return O([],(f,g)=>{for(let m=0;m<e.length;m++)d[m]=e[m].node.cache;let _=[];for(let m=0;m<r.length;m++){let N=r[m];_.push(N.subscribe(S=>{for(let k of S)p(k,m,g)}))}return()=>{for(let m of _)m()}},{...n,describeKind:"derived",meta:ht("resilience","budget_gate",n?.meta)});function p(f,g,_){let m=f[0];if(g===0){if(m===b)return c()&&i.size===0?_.emit(f[1]):(i.push(f[1]),s||(s=!0,_.up([[L,u]]))),!0;if(m===T)return _.down([[T]]),!0;if(m===w)return i.size===0?_.down([[w]]):a=!0,!0;if(m===y||m===h){for(;i.size>0;)_.emit(i.shift());return a=!1,s&&(s=!1,_.up([[G,u]])),_.down([f]),!0}return!1}if(m===b&&(d[g-1]=f[1]),m===b||m===w){let N=c();return N&&i.size>0?(l(_),i.size===0&&s&&(s=!1,_.up([[G,u]]))):!N&&!s&&i.size>0&&(s=!0,_.up([[L,u]])),!0}return m===T?!0:m===h?(_.down([f]),!0):m===y}}var Pe,bt=v(()=>{"use strict";K();se();mt();Pe=class{buf=[];head=0;get size(){return this.buf.length-this.head}push(e){this.buf.push(e)}shift(){if(this.head>=this.buf.length)return;let e=this.buf[this.head];return this.buf[this.head]=void 0,this.head++,this.head>32&&this.head*2>this.buf.length&&(this.buf=this.buf.slice(this.head),this.head=0),e}clear(){this.buf=[],this.head=0}}});function V(t,e){let n={factory:t};return e!==void 0&&(n.factoryArgs=e),n}var yt=v(()=>{"use strict"});var Nt={};xe(Nt,{NS_PER_MS:()=>Q,NS_PER_SEC:()=>Z,constant:()=>_t,decorrelatedJitter:()=>xt,exponential:()=>Tt,fibonacci:()=>vt,linear:()=>wt,resolveBackoffPreset:()=>Ge,withMaxAttempts:()=>dn});function $(t){return t<0?0:t}function an(t,e){return e==="none"?t:e==="full"?Math.random()*t:t/2+Math.random()*(t/2)}function un(t,e){return t+Math.random()*(e-t)}function _t(t){let e=$(t);return()=>e}function wt(t,e){let n=$(t),o=e===void 0?n:$(e);return r=>n+o*Math.max(0,r)}function Tt(t){let e=$(t?.baseNs??1e8),n=t?.factor!==void 0&&t.factor<1?1:t?.factor??2,o=$(t?.maxDelayNs??30*1e9),r=t?.jitter??"none";return i=>{let s;if(e===0)s=0;else if(n===1)s=e;else{let a=o/e,u=1;for(let d=0;d<Math.max(0,i);d++){if(u>=a){u=a;break}u*=n}s=e*u,s>o&&(s=o)}return an(s,r)}}function vt(t=100*1e6,e=30*1e9){let n=$(t),o=$(e);function r(i){if(i<=0)return 1;let s=1,a=2;for(let u=1;u<i;u++){let d=s+a;s=a,a=d}return a}return i=>{let s=r(i)*n;return s<=o?s:o}}function xt(t=100*1e6,e=30*1e9){return(n,o,r)=>{let s=Math.min(e,(r??t)*3);return un(t,s)}}function dn(t,e){return(n,o,r)=>n>=e?null:t(n,o,r)}function Ge(t){if(t==="constant")return _t(1*1e9);if(t==="linear")return wt(1*1e9);if(t==="exponential")return Tt();if(t==="fibonacci")return vt();if(t==="decorrelatedJitter")return xt();throw new Error(`Unknown backoff preset: "${String(t)}". Use one of: constant, linear, exponential, fibonacci, decorrelatedJitter`)}var Q,Z,Ve=v(()=>{"use strict";Q=1e6,Z=1e9});var ee,kt=v(()=>{"use strict";ee=class{_timer;_gen=0;start(e,n){this.cancel(),this._gen+=1;let o=this._gen;this._timer=setTimeout(()=>{this._timer=void 0,o===this._gen&&n()},e)}cancel(){this._timer!==void 0&&(clearTimeout(this._timer),this._timer=void 0)}get pending(){return this._timer!==void 0}}});var me,Et=v(()=>{"use strict";me=class{constructor(e){this.capacity=e;if(!Number.isInteger(e)||e<=0)throw new Error(`RingBuffer capacity must be a positive integer (got ${e})`);this.buf=new Array(e)}buf;head=0;_size=0;get size(){return this._size}get maxSize(){return this.capacity}push(e){let n=(this.head+this._size)%this.capacity;this.buf[n]=e,this._size<this.capacity?this._size++:this.head=(this.head+1)%this.capacity}shift(){if(this._size===0)return;let e=this.buf[this.head];return this.buf[this.head]=void 0,this.head=(this.head+1)%this.capacity,this._size--,e}at(e){if(this._size===0)return;let n=e<0?this._size+e:e;if(!(n<0||n>=this._size))return this.buf[(this.head+n)%this.capacity]}toArray(){let e=new Array(this._size);for(let n=0;n<this._size;n++)e[n]=this.buf[(this.head+n)%this.capacity];return e}clear(){for(let e=0;e<this._size;e++)this.buf[(this.head+e)%this.capacity]=void 0;this.head=0,this._size=0}}});function j(t){return{describeKind:"derived",...t}}function cn(t){return t<0?0:t}function He(t){return t[1]}function ln(t){if(typeof t!="number"||!Number.isFinite(t))throw new TypeError("backoff strategy must return a finite number");return t<0?0:t}function St(t){let e=t?.count,n=t?.backoff;if(n!==void 0&&e===void 0)throw new RangeError("retry({ backoff }) requires explicit count to prevent unbounded retries; pass { count: <n>, backoff: ... }");let o=e!==void 0?e:0;if(o<0)throw new RangeError("retry count must be >= 0");let r=n===void 0?null:typeof n=="string"?Ge(n):n;return{maxRetries:o,strategy:r}}function Rt(t){let e={};return t?.count!==void 0&&(e.count=t.count),typeof t?.backoff=="string"&&(e.backoff=t.backoff),Object.keys(e).length>0?e:void 0}function At(t,e,n){let o=0,r=!1,i=null,s,a=new ee;function u(){s?.(),s=void 0}function d(l){if(r)return;if(o>=t.maxRetries){u(),n.down([[h,l]]);return}let p=t.strategy===null?0:t.strategy(o,l,i);if(p==null){u(),n.down([[h,l]]);return}let f;try{f=ln(p)}catch{u(),n.down([[h,l]]);return}i=f,o+=1,u();let g=f>0?f/1e6:1;a.start(g,()=>{r||c()})}function c(){a.cancel(),u();let l;try{l=e()}catch(p){d(p);return}s=l.subscribe(p=>{if(!r)for(let f of p){let g=f[0];if(g===T)n.down([[T]]);else if(g===b)o=0,i=null,n.emit(f[1]);else if(g===w)n.down([[w]]);else if(g===y)u(),n.down([[y]]);else if(g===h){d(He(f));return}else n.down([f])}})}return c(),()=>{r=!0,a.cancel(),u()}}function fn(t,e){return typeof t=="function"?hn(t,e):pn(t,e)}function pn(t,e){let n=St(e);return x(o=>At(n,()=>t,o),{...j(),initial:t.cache,meta:{...e?.meta??{},...V("retry",Rt(e))}})}function hn(t,e){let n=St(e);return x(o=>At(n,t,o),{...j(),initial:e?.initial,meta:{...e?.meta??{},...V("retry",Rt(e))}})}function mn(t){let e=Math.max(1,t?.failureThreshold??5),n=cn(t?.cooldownNs??30*1e9),o=t?.cooldown??null,r=Math.max(1,t?.halfOpenMax??1),i=t?.now??Ne,s="closed",a=0,u=0,d=0,c=n,l=0;function p(){if(!o)return n;let _=o(u);return _!==null?_:n}function f(){s="open",c=p(),d=i(),l=0}return{canExecute(){return s==="closed"?!0:s==="open"?i()-d>=c?(s="half-open",l=1,!0):!1:l<r?(l++,!0):!1},recordSuccess(){s==="half-open"?(s="closed",a=0,u=0):s==="closed"&&(a=0)},recordFailure(_){if(s==="half-open"){u++,f();return}s==="closed"&&(a++,a>=e&&f())},get state(){return s},get failureCount(){return a},reset(){s="closed",a=0,u=0,l=0}}}function gn(t,e){let n=e?.onOpen??"skip",o=e?.meta;return r=>{let i=O([],(s,a)=>{function u(){i.meta.breakerState.down([[b,t.state]])}let d=r.subscribe(c=>{for(let l of c){let p=l[0];p===T?a.down([[T]]):p===b?t.canExecute()?(u(),a.emit(l[1])):(u(),n==="error"?a.down([[h,new be]]):a.down([[w]])):p===w?a.down([[w]]):p===y?(t.recordSuccess(),u(),a.down([[y]])):p===h?(t.recordFailure(He(l)),u(),a.down([l])):a.down([l])}});return u(),d},{...j(),meta:{...o??{},breakerState:t.state,...V("withBreaker",{onOpen:n})},completeWhenDepsComplete:!1,initial:r.cache});return{node:i,breakerState:i.meta.breakerState}}}function Ot(t,e,n){if(t<=0)throw new RangeError("capacity must be > 0");if(e<0)throw new RangeError("refillPerSecond must be >= 0");let o=n?.clock??Ne,r=t,i=o();function s(a){if(e>0){let u=a-i;r=Math.min(t,r+u/1e9*e)}i=a}return{available(){return s(o()),r},tryConsume(a=1){if(a<=0)return!0;let u=o();return s(u),r>=a?(r-=a,!0):!1},putBack(a=1){a<=0||(s(o()),r=Math.min(t,r+a))}}}function bn(t,e){return t.droppedCount===e.droppedCount&&t.pendingCount===e.pendingCount&&t.paused===e.paused}function yn(t,e){let{maxEvents:n,windowNs:o}=e;if(n<=0)throw new RangeError("maxEvents must be > 0");if(o<=0)throw new RangeError("windowNs must be > 0");let r=e.maxBuffer;if(r===void 0)throw new RangeError("rateLimiter requires explicit maxBuffer (use Infinity to opt in to unbounded)");let i=r===1/0;if(!i&&(!Number.isInteger(r)||r<1))throw new RangeError("maxBuffer must be a positive integer (or Infinity for unbounded)");let s=e.onOverflow??"drop-newest",a=n*1e9/o,u=x(d=>{let c=Ot(n,a),l=i?wn():_n(r),p=new ee,f=!1,g=0,_=1e9/a,m=u.meta.droppedCount,N=u.meta.rateLimitState,S=ge;function k(){m.emit(g);let D={droppedCount:g,pendingCount:l.size,paused:l.size>0};bn(S,D)||(S=D,N.emit(D))}S=ge,m.emit(0),N.emit(ge);function B(){for(;l.size>0;)if(c.tryConsume(1))d.emit(l.shift()),k();else{p.start(Math.max(1,_/1e6),B);return}}function F(){g+=1,k()}function P(){for(f=!0,p.cancel();l.size>0;)l.shift();g=0}let C=t.subscribe(D=>{for(let M of D){if(f)return;let I=M[0];if(I===T)d.down([[T]]);else if(I===b){if(!i&&l.size>=r)if(s==="drop-newest")F();else if(s==="drop-oldest")l.shift(),l.push(M[1]),F();else{F(),P(),d.down([[h,new ye(r)]]);return}else l.push(M[1]),k();B()}else if(I===w)d.down([[w]]);else if(I===y)P(),d.down([[y]]);else if(I===h)P(),d.down([M]);else if(I===R){P(),d.down([M]);return}else d.down([M])}});return()=>{f=!0,p.cancel(),C()}},{...j(),initial:t.cache,meta:{...e.meta??{},droppedCount:0,rateLimitState:ge,...V("rateLimiter",e)}});return{node:u,droppedCount:u.meta.droppedCount,rateLimitState:u.meta.rateLimitState}}function _n(t){let e=new me(t);return{push:n=>e.push(n),shift:()=>e.shift(),get size(){return e.size}}}function wn(){let t=[];return{push:e=>{t.push(e)},shift:()=>t.shift(),get size(){return t.length}}}function Tn(t,e){let n=e?.initialStatus??"pending",o=e?.meta,r=O([],(i,s)=>{let a=n;return r.meta.status.down([[b,n]]),r.meta.error.down([[b,null]]),t.subscribe(d=>{for(let c of d){let l=c[0];if(l===T)s.down([[T]]);else if(l===b)a==="errored"?Ae(()=>{r.meta.error.down([[b,null]]),r.meta.status.down([[b,"running"]])}):r.meta.status.down([[b,"running"]]),a="running",s.emit(c[1]);else if(l===w)s.down([[w]]);else if(l===y)r.meta.status.down([[b,"completed"]]),a="completed",s.down([[y]]);else if(l===h){let p=He(c);Ae(()=>{r.meta.error.down([[b,p]]),r.meta.status.down([[b,"errored"]])}),a="errored",s.down([c])}else s.down([c])}})},{...j(),meta:{...o??{},status:n,error:null,...V("withStatus",{initialStatus:n})},completeWhenDepsComplete:!1,resubscribable:!0,initial:t.cache});return{node:r,status:r.meta.status,error:r.meta.error}}function vn(t){return t!=null&&typeof t=="object"&&"cache"in t&&typeof t.subscribe=="function"}function xn(t){return t!=null&&typeof t.then=="function"}function Nn(t){return t!=null&&typeof t=="object"&&typeof t[Symbol.asyncIterator]=="function"}function kn(t,e,n){let o=n?.meta;return x(r=>{let i,s;function a(){s?.(),s=void 0,vn(e)||xn(e)||Nn(e)?i=we(e).subscribe(d=>{r.down(d);for(let c of d){let l=c[0];if(l===y||l===h||l===R){i=void 0;return}}}):(r.emit(e),r.down([[y]]))}return s=t.subscribe(u=>{for(let d of u){let c=d[0];if(c===T)r.down([[T]]);else if(c===b)r.emit(d[1]);else if(c===w)r.down([[w]]);else if(c===y)r.down([[y]]);else if(c===h){a();return}else if(c===R){i?.(),r.down([d]);return}else r.down([d])}}),()=>{s?.(),i?.()}},{...j(),initial:t.cache,meta:{...o??{},...V("fallback")}})}function En(t,e,n){if(e<=0)throw new RangeError("timeoutNs must be > 0");let o=n?.meta;return x(r=>{let i=!1,s=new ee;function a(){let d=e/1e6;s.start(d,()=>{i||(i=!0,u(),r.down([[h,new _e(e)]]))})}let u=t.subscribe(d=>{for(let c of d){if(i)return;let l=c[0];if(l===T)r.down([[T]]);else if(l===b)a(),r.emit(c[1]);else if(l===w)r.down([[w]]);else if(l===y){s.cancel(),i=!0,r.down([[y]]);return}else if(l===h){s.cancel(),i=!0,r.down([c]);return}else if(l===R){s.cancel(),i=!0,r.down([c]);return}else r.down([c])}});return a(),()=>{i=!0,s.cancel(),u()}},{...j(),initial:t.cache,meta:{...o??{},...V("timeout",{timeoutNs:e})}})}var be,ye,ge,_e,Mt=v(()=>{"use strict";bt();Oe();de();K();yt();se();Be();Ve();Ct();kt();Et();be=class extends Error{name="CircuitOpenError";constructor(){super("Circuit breaker is open")}};ye=class extends Error{name="RateLimiterOverflowError";constructor(e){super(`rateLimiter buffer overflow (maxBuffer=${e})`)}};ge=Object.freeze({droppedCount:0,pendingCount:0,paused:!1});_e=class extends Error{name="TimeoutError";constructor(e){super(`Timed out after ${e/1e6}ms`)}}});var Dt={};xe(Dt,{CircuitOpenError:()=>be,RateLimiterOverflowError:()=>ye,TimeoutError:()=>_e,budgetGate:()=>gt,circuitBreaker:()=>mn,fallback:()=>kn,rateLimiter:()=>yn,retry:()=>fn,timeout:()=>En,tokenBucket:()=>Ot,withBreaker:()=>gn,withStatus:()=>Tn});var It=v(()=>{"use strict";Mt()});function A(t){return{describeKind:"producer",...t}}function Ft(t){return/[\\^$+?.()|[\]{}]/.test(t)?`\\${t}`:t}function Sn(t){let e="^";for(let n=0;n<t.length;n+=1){let o=t[n];if(o==="*"){t[n+1]==="*"?(e+=".*",n+=1):e+="[^/]*";continue}e+=Ft(o)}return e+="$",new RegExp(e)}function Rn(t,e){for(let n of e)if(n.test(t))return!0;return!1}function An(t,e){let n=O([t],(r,i)=>{let s=r[0];if(s==null||s.length===0){i.down([[w]]);return}for(let a of s)i.emit(a)},{describeKind:"derived",initial:t.cache}),o=n.subscribe.bind(n);return n.subscribe=(r,i)=>(e(r),o(r,i)),n}function On(t,e){let{signal:n,period:o,...r}=e??{};return x(i=>{let s=!1,a=0,u,d,c=()=>{s=!0,u!==void 0&&clearTimeout(u),d!==void 0&&clearInterval(d),n?.removeEventListener("abort",p)},l=()=>{s||(o!=null?(i.emit(a++),d=setInterval(()=>{s||i.emit(a++)},o)):(s=!0,n?.removeEventListener("abort",p),i.emit(a++),i.down([[y]])))},p=()=>{s||(c(),i.down([[h,n.reason]]))};if(n?.aborted){p();return}return u=setTimeout(l,t),n?.addEventListener("abort",p,{once:!0}),c},A(r))}function Mn(t){let{signal:e,...n}=t??{};return x(o=>{let r=!1,i,s,a=!1,u=!1,d=typeof requestAnimationFrame=="function"?requestAnimationFrame:void 0,c=typeof cancelAnimationFrame=="function"?cancelAnimationFrame:void 0,l=typeof document<"u"?document:void 0,p=()=>{i!==void 0&&c&&c(i),s!==void 0&&clearTimeout(s),i=void 0,s=void 0},f=()=>{r=!0,p(),a&&(e?.removeEventListener("abort",g),a=!1),u&&l&&(l.removeEventListener("visibilitychange",N),u=!1)},g=()=>{r||(f(),o.down([[h,e.reason]]))},_=S=>{r||(o.emit(S),m())},m=()=>{r||(d&&(!l||l.visibilityState!=="hidden")?i=d(_):s=setTimeout(()=>_(performance.now()),16))},N=()=>{r||(p(),m())};return e?.aborted?(g(),f):(e?.addEventListener("abort",g,{once:!0}),a=e!==void 0,l&&d&&(l.addEventListener("visibilitychange",N),u=!0),m(),f)},A(n))}function Cn(t,e){let n=lt(t),{tickMs:o,output:r,...i}=e??{},s=o??6e4,a=r==="date";return x(u=>{let d=-1,c=()=>{let p=new Date,f=p.getFullYear()*1e8+(p.getMonth()+1)*1e6+p.getDate()*1e4+p.getHours()*100+p.getMinutes();f!==d&&ft(n,p)&&(d=f,u.emit(a?p:ue()))};c();let l=setInterval(c,s);return()=>clearInterval(l)},{...A(i),name:i.name??`cron:${t}`})}function Dn(t,e,n){let{capture:o,passive:r,once:i,...s}=n??{};return x(a=>{let u=c=>{a.emit(c)},d={capture:o,passive:r,once:i};return t.addEventListener(e,u,d),()=>t.removeEventListener(e,u,d)},A(s))}function We(t,e){return x(n=>{let o=!1;try{for(let r of t){if(o)return;n.emit(r)}o||n.down([[y]])}catch(r){o||n.down([[h,r]])}return()=>{o=!0}},A(e))}function In(t){return t!=null&&typeof t.then=="function"}function Bt(t,e){let{signal:n,...o}=e??{};return x(r=>{let i=!1,s=()=>{i||(i=!0,r.down([[h,n.reason]]))};if(n?.aborted){s();return}return n?.addEventListener("abort",s,{once:!0}),Promise.resolve(t).then(a=>{i||(i=!0,n?.removeEventListener("abort",s),r.emit(a),r.down([[y]]))},a=>{i||(i=!0,n?.removeEventListener("abort",s),r.down([[h,a]]))}),()=>{i=!0,n?.removeEventListener("abort",s)}},A(o))}function Pt(t,e){let{signal:n,...o}=e??{};return x(r=>{let i=new AbortController,s=()=>i.abort(n?.reason);n?.aborted?i.abort(n.reason):n?.addEventListener("abort",s,{once:!0});let a=n??i.signal,u=!1,d=t[Symbol.asyncIterator](),c=()=>{u||a.aborted||Promise.resolve(d.next()).then(l=>{if(!(u||a.aborted)){if(l.done){r.down([[y]]);return}r.emit(l.value),c()}},l=>{!u&&!a.aborted&&r.down([[h,l]])})};return c(),()=>{u=!0,n?.removeEventListener("abort",s),i.abort(),Promise.resolve(d.return?.()).catch(()=>{})}},A(o))}function Ln(t){return t!=null&&typeof t=="object"&&"cache"in t&&typeof t.subscribe=="function"}function we(t,e){if(Ln(t))return t;if(In(t))return Bt(t,e);if(t!=null){let n=t;if(typeof n[Symbol.asyncIterator]=="function")return Pt(t,e);if(typeof n[Symbol.iterator]=="function")return We(t,e)}return Gt(t)}function Gt(...t){return We(t,void 0)}function Fn(t){return x(e=>{e.down([[y]])},A(t))}function Bn(t){return x(()=>{},A(t))}function Pn(t,e){return x(n=>{n.down([[h,t]])},A(e))}function Gn(t,e){let{signal:n,...o}=e??{},r=A(o),i=r.resubscribable===void 0?{...r,resubscribable:!0}:r;return x(s=>{let a,u=!1;try{let d=t();a=we(d,e).subscribe(l=>{if(!u)for(let p of l){let f=p[0];if(f!==H)if(f===b)s.emit(p[1]);else if(f===y){u=!0,s.down([[y]]);break}else if(f===h){u=!0,s.down([[h,p[1]]]);break}else s.down([p])}})}catch(d){let c=d===void 0?new Error("defer: thunk threw undefined"):d;s.down([[h,c]])}return()=>{u=!0,a?.()}},i)}function Vn(t,e,n){return O([t],(r,i)=>{let s=r[0];if(s!=null&&s.length>0)for(let a of s)e(a)},{describeKind:"effect",...n}).subscribe(()=>{})}function Hn(t,e){return O([t],(n,o,r)=>{r.store.buf||(r.store.buf=[]);let i=r.store.buf,s=n[0];if(s!=null&&s.length>0)for(let a of s)i.push(a);if(r.terminalDeps[0]===!0){o.emit([...i]),o.down([[y]]);return}(s==null||s.length===0)&&o.down([[w]])},{describeKind:"derived",completeWhenDepsComplete:!1,...e})}function zn(t,e){return x(n=>t.subscribe(o=>{n.down(o)}),{...A(e),initial:t.cache})}function $e(t,e,n){if(e<1)throw new RangeError("replay expects bufferSize >= 1");let o=[],r=x(i=>t.subscribe(s=>{for(let a of s)a[0]===b&&(o.push(a[1]),o.length>e&&o.shift());i.down(s)}),{...A(n),initial:t.cache});return An(r,i=>{for(let s of o)i([[b,s]])})}function Un(t,e){return $e(t,1,e)}function Wn(t){return new Promise((e,n)=>{let o=!1,r=!1,i;i=t.subscribe(s=>{for(let a of s){if(o)return;if(a[0]===b){o=!0,e(a[1]),i?(i(),i=void 0):r=!0;return}if(a[0]===h){o=!0,n(a[1]),i?(i(),i=void 0):r=!0;return}if(a[0]===y){o=!0,n(new Error("completed without DATA")),i?(i(),i=void 0):r=!0;return}}}),r&&(i?.(),i=void 0)})}function Ue(t,e,n){return new Promise((o,r)=>{let i=!1,s=!1,a,u=n?.skipCurrent===!0;a=t.subscribe(d=>{for(let c of d){if(i)return;if(!(u&&c[0]===b)){if(c[0]===b){let l=c[1];if(e(l)){i=!0,o(l),a?(a(),a=void 0):s=!0;return}}if(c[0]===h){i=!0,r(c[1]),a?(a(),a=void 0):s=!0;return}if(c[0]===y){i=!0,r(new Error("completed without matching value")),a?(a(),a=void 0):s=!0;return}}}}),u=!1,s&&(a?.(),a=void 0)})}async function $n(t,e){let n=e?.predicate??(i=>i!=null),o=e?.skipCurrent;if(e?.timeoutMs==null||e.timeoutMs<=0)return await Ue(t,n,{skipCurrent:o});if(ze===void 0){let[i,s]=await Promise.all([Promise.resolve().then(()=>(It(),Dt)),Promise.resolve().then(()=>(Ve(),Nt))]);ze=i.timeout,Lt=s.NS_PER_MS}let r=ze(t,e.timeoutMs*Lt);return await Ue(r,n,{skipCurrent:o})}function jn(t,e){let n=new AbortController,o=e?.reason??new Error("cancelled via nodeSignal"),r,i=!1,s=()=>{r?(r(),r=void 0):i=!0};return r=t.subscribe(a=>{if(!n.signal.aborted)for(let u of a){if(u[0]===b&&u[1]===!0){n.abort(o),s();return}if(u[0]===h){n.abort(u[1]),s();return}if(u[0]===y){s();return}}}),i&&(r?.(),r=void 0),{signal:n.signal,dispose:()=>{r&&(r(),r=void 0)}}}function Kn(t){return t.subscribe(()=>{})}function Yn(t){let e=ct(0);return{node:e,increment(){let n=e.cache??0;return n>=t?!1:(e.down([[T],[b,n+1]]),!0)},get(){return e.cache??0},atCap(){return(e.cache??0)>=t}}}var ze,Lt,qn,Vt=v(()=>{"use strict";de();K();se();Be();pt();qn=$e});var Jn={};xe(Jn,{awaitSettled:()=>$n,cached:()=>Un,defer:()=>Gn,empty:()=>Fn,escapeRegexChar:()=>Ft,firstValueFrom:()=>Wn,firstWhere:()=>Ue,forEach:()=>Vn,fromAny:()=>we,fromAsyncIter:()=>Pt,fromCron:()=>Cn,fromEvent:()=>Dn,fromIter:()=>We,fromPromise:()=>Bt,fromRaf:()=>Mn,fromTimer:()=>On,globToRegExp:()=>Sn,keepalive:()=>Kn,matchesAnyPattern:()=>Rn,never:()=>Bn,nodeSignal:()=>jn,of:()=>Gt,reactiveCounter:()=>Yn,replay:()=>$e,share:()=>zn,shareReplay:()=>qn,throwError:()=>Pn,toArray:()=>Hn});module.exports=qt(Jn);var Ct=v(()=>{Vt()});Ct();0&&(module.exports={awaitSettled,cached,defer,empty,escapeRegexChar,firstValueFrom,firstWhere,forEach,fromAny,fromAsyncIter,fromCron,fromEvent,fromIter,fromPromise,fromRaf,fromTimer,globToRegExp,keepalive,matchesAnyPattern,never,nodeSignal,of,reactiveCounter,replay,share,shareReplay,throwError,toArray});
|
package/dist/extra/sources.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{A as y,B as z,C as A,D as B,c as a,d as b,e as c,f as d,g as e,h as f,i as g,j as h,k as i,l as j,m as k,n as l,o as m,p as n,q as o,r as p,s as q,t as r,u as s,v as t,w as u,x as v,y as w,z as x}from"../chunk-
|
|
1
|
+
import{A as y,B as z,C as A,D as B,c as a,d as b,e as c,f as d,g as e,h as f,i as g,j as h,k as i,l as j,m as k,n as l,o as m,p as n,q as o,r as p,s as q,t as r,u as s,v as t,w as u,x as v,y as w,z as x}from"../chunk-L77I47VU.js";import"../chunk-LYCLF26R.js";import"../chunk-CK2E7BTU.js";import"../chunk-QYADASLV.js";export{x as awaitSettled,u as cached,p as defer,m as empty,a as escapeRegexChar,v as firstValueFrom,w as firstWhere,q as forEach,k as fromAny,j as fromAsyncIter,f as fromCron,g as fromEvent,h as fromIter,i as fromPromise,e as fromRaf,d as fromTimer,b as globToRegExp,A as keepalive,c as matchesAnyPattern,n as never,y as nodeSignal,l as of,B as reactiveCounter,t as replay,s as share,z as shareReplay,o as throwError,r as toArray};
|
package/dist/graph/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { E as ENVELOPE_VERSION, a as EvictedSubgraphInfo, b as EvictionPolicy, G as GraphCodec, J as JsonCodec, L as LazyGraphCodec, O as ObservabilityCheck, c as ObservabilityDescribeFormat, d as SIZEOF_OVERHEAD, S as SIZEOF_SYMBOL, V as ValidateObservabilityOptions, e as ValidateObservabilityResult, W as WALEntry, f as createDagCborCodec, g as createDagCborZstdCodec, h as decodeEnvelope, i as encodeEnvelope, r as registerBuiltinCodecs, k as replayWAL, s as sizeof, v as validateGraphObservability } from '../index-
|
|
2
|
-
export { C as CausalChain, e as CausalStep, D as DescribeFilter, E as ExplainPathOptions, h as GRAPH_META_SEGMENT, G as Graph, i as GraphActorOptions, j as GraphAttachStorageOptions, k as GraphCheckpointRecord, d as GraphDescribeOptions, b as GraphDescribeOutput, l as GraphDiagramDirection, m as GraphDiffChange, n as GraphDiffResult, o as GraphFactoryContext, p as GraphNodeFactory, q as GraphObserveAll, r as GraphObserveOne, a as GraphOptions, c as GraphPersistSnapshot, s as GraphProfileOptions, t as GraphProfileResult, u as GraphVersionChange, v as GraphWALDiff, N as NodeProfile, O as
|
|
3
|
-
export { w as watchTopologyTree } from '../topology-tree-
|
|
1
|
+
export { E as ENVELOPE_VERSION, a as EvictedSubgraphInfo, b as EvictionPolicy, G as GraphCodec, J as JsonCodec, L as LazyGraphCodec, O as ObservabilityCheck, c as ObservabilityDescribeFormat, d as SIZEOF_OVERHEAD, S as SIZEOF_SYMBOL, V as ValidateObservabilityOptions, e as ValidateObservabilityResult, W as WALEntry, f as createDagCborCodec, g as createDagCborZstdCodec, h as decodeEnvelope, i as encodeEnvelope, r as registerBuiltinCodecs, k as replayWAL, s as sizeof, v as validateGraphObservability } from '../index-DgJc8Zgc.cjs';
|
|
2
|
+
export { C as CausalChain, e as CausalStep, D as DescribeFilter, E as ExplainPathOptions, h as GRAPH_META_SEGMENT, G as Graph, i as GraphActorOptions, j as GraphAttachStorageOptions, k as GraphCheckpointRecord, d as GraphDescribeOptions, b as GraphDescribeOutput, l as GraphDiagramDirection, m as GraphDiffChange, n as GraphDiffResult, o as GraphFactoryContext, p as GraphNodeFactory, q as GraphObserveAll, r as GraphObserveOne, a as GraphOptions, c as GraphPersistSnapshot, s as GraphProfileOptions, t as GraphProfileResult, u as GraphVersionChange, v as GraphWALDiff, N as NodeProfile, O as ObserveChangeset, w as ObserveDetail, x as ObserveEvent, y as ObserveOptions, z as ObserveResult, A as ObserveTheme, B as ObserveThemeName, F as ObserveTier, R as ReachableDirection, H as ReachableOptions, S as SNAPSHOT_VERSION, T as TopologyEvent, I as TraceEntry, J as diffForWAL, K as explainPath, L as graphProfile, P as reachable } from '../graph-E6likq7w.cjs';
|
|
3
|
+
export { w as watchTopologyTree } from '../topology-tree-3LBKFsUo.cjs';
|
|
4
4
|
import '../node-BYInONRr.cjs';
|
|
5
5
|
import '../meta-Ct9nqQS5.cjs';
|
|
6
6
|
import '../extra/storage-core.cjs';
|
package/dist/graph/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { E as ENVELOPE_VERSION, a as EvictedSubgraphInfo, b as EvictionPolicy, G as GraphCodec, J as JsonCodec, L as LazyGraphCodec, O as ObservabilityCheck, c as ObservabilityDescribeFormat, d as SIZEOF_OVERHEAD, S as SIZEOF_SYMBOL, V as ValidateObservabilityOptions, e as ValidateObservabilityResult, W as WALEntry, f as createDagCborCodec, g as createDagCborZstdCodec, h as decodeEnvelope, i as encodeEnvelope, r as registerBuiltinCodecs, k as replayWAL, s as sizeof, v as validateGraphObservability } from '../index-
|
|
2
|
-
export { C as CausalChain, e as CausalStep, D as DescribeFilter, E as ExplainPathOptions, h as GRAPH_META_SEGMENT, G as Graph, i as GraphActorOptions, j as GraphAttachStorageOptions, k as GraphCheckpointRecord, d as GraphDescribeOptions, b as GraphDescribeOutput, l as GraphDiagramDirection, m as GraphDiffChange, n as GraphDiffResult, o as GraphFactoryContext, p as GraphNodeFactory, q as GraphObserveAll, r as GraphObserveOne, a as GraphOptions, c as GraphPersistSnapshot, s as GraphProfileOptions, t as GraphProfileResult, u as GraphVersionChange, v as GraphWALDiff, N as NodeProfile, O as
|
|
3
|
-
export { w as watchTopologyTree } from '../topology-tree-
|
|
1
|
+
export { E as ENVELOPE_VERSION, a as EvictedSubgraphInfo, b as EvictionPolicy, G as GraphCodec, J as JsonCodec, L as LazyGraphCodec, O as ObservabilityCheck, c as ObservabilityDescribeFormat, d as SIZEOF_OVERHEAD, S as SIZEOF_SYMBOL, V as ValidateObservabilityOptions, e as ValidateObservabilityResult, W as WALEntry, f as createDagCborCodec, g as createDagCborZstdCodec, h as decodeEnvelope, i as encodeEnvelope, r as registerBuiltinCodecs, k as replayWAL, s as sizeof, v as validateGraphObservability } from '../index-I1cCY3ZI.js';
|
|
2
|
+
export { C as CausalChain, e as CausalStep, D as DescribeFilter, E as ExplainPathOptions, h as GRAPH_META_SEGMENT, G as Graph, i as GraphActorOptions, j as GraphAttachStorageOptions, k as GraphCheckpointRecord, d as GraphDescribeOptions, b as GraphDescribeOutput, l as GraphDiagramDirection, m as GraphDiffChange, n as GraphDiffResult, o as GraphFactoryContext, p as GraphNodeFactory, q as GraphObserveAll, r as GraphObserveOne, a as GraphOptions, c as GraphPersistSnapshot, s as GraphProfileOptions, t as GraphProfileResult, u as GraphVersionChange, v as GraphWALDiff, N as NodeProfile, O as ObserveChangeset, w as ObserveDetail, x as ObserveEvent, y as ObserveOptions, z as ObserveResult, A as ObserveTheme, B as ObserveThemeName, F as ObserveTier, R as ReachableDirection, H as ReachableOptions, S as SNAPSHOT_VERSION, T as TopologyEvent, I as TraceEntry, J as diffForWAL, K as explainPath, L as graphProfile, P as reachable } from '../graph-BkIkog4h.js';
|
|
3
|
+
export { w as watchTopologyTree } from '../topology-tree-mF7Emqzm.js';
|
|
4
4
|
import '../node-BYInONRr.js';
|
|
5
5
|
import '../meta-D8OyedKp.js';
|
|
6
6
|
import '../extra/storage-core.js';
|
package/dist/graph/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as s,b as t}from"../chunk-
|
|
1
|
+
import{a as s,b as t}from"../chunk-5TEFC2ZX.js";import"../chunk-3G5U5QNE.js";import"../chunk-C72GO4IZ.js";import{b as i,c as j,d as k,e as l,f as m,g as n,h as o,i as p,j as q,k as r}from"../chunk-POXANAJ6.js";import"../chunk-SGS4OJGS.js";import"../chunk-ESMPEKEV.js";import"../chunk-L77I47VU.js";import"../chunk-35JTVPOX.js";import{a,b,c,d,e,f,g,h}from"../chunk-LYCLF26R.js";import"../chunk-CK2E7BTU.js";import"../chunk-QYADASLV.js";export{d as ENVELOPE_VERSION,n as GRAPH_META_SEGMENT,p as Graph,a as JsonCodec,j as SIZEOF_OVERHEAD,k as SIZEOF_SYMBOL,o as SNAPSHOT_VERSION,b as createDagCborCodec,c as createDagCborZstdCodec,f as decodeEnvelope,q as diffForWAL,e as encodeEnvelope,i as explainPath,m as graphProfile,r as reachable,g as registerBuiltinCodecs,h as replayWAL,l as sizeof,t as validateGraphObservability,s as watchTopologyTree};
|
|
@@ -1665,4 +1665,4 @@ declare function reachable(described: GraphDescribeOutput, from: string, directi
|
|
|
1665
1665
|
}): ReachableResult;
|
|
1666
1666
|
declare function reachable(described: GraphDescribeOutput, from: string, direction: ReachableDirection, options?: ReachableOptions): string[];
|
|
1667
1667
|
|
|
1668
|
-
export { type
|
|
1668
|
+
export { type ObserveTheme as A, type ObserveThemeName as B, type CausalChain as C, type DescribeFilter as D, type ExplainPathOptions as E, type ObserveTier as F, Graph as G, type ReachableOptions as H, type TraceEntry as I, diffForWAL as J, explainPath as K, graphProfile as L, type Meta as M, type NodeProfile as N, type ObserveChangeset as O, reachable as P, topologyDiff as Q, type ReachableDirection as R, SNAPSHOT_VERSION as S, type TopologyEvent as T, type GraphOptions as a, type GraphDescribeOutput as b, type GraphPersistSnapshot as c, type GraphDescribeOptions as d, type CausalStep as e, type DescribeChangeset as f, type DescribeEvent as g, GRAPH_META_SEGMENT as h, type GraphActorOptions as i, type GraphAttachStorageOptions as j, type GraphCheckpointRecord as k, type GraphDiagramDirection as l, type GraphDiffChange as m, type GraphDiffResult as n, type GraphFactoryContext as o, type GraphNodeFactory as p, type GraphObserveAll as q, type GraphObserveOne as r, type GraphProfileOptions as s, type GraphProfileResult as t, type GraphVersionChange as u, type GraphWALDiff as v, type ObserveDetail as w, type ObserveEvent as x, type ObserveOptions as y, type ObserveResult as z };
|
|
@@ -1665,4 +1665,4 @@ declare function reachable(described: GraphDescribeOutput, from: string, directi
|
|
|
1665
1665
|
}): ReachableResult;
|
|
1666
1666
|
declare function reachable(described: GraphDescribeOutput, from: string, direction: ReachableDirection, options?: ReachableOptions): string[];
|
|
1667
1667
|
|
|
1668
|
-
export { type
|
|
1668
|
+
export { type ObserveTheme as A, type ObserveThemeName as B, type CausalChain as C, type DescribeFilter as D, type ExplainPathOptions as E, type ObserveTier as F, Graph as G, type ReachableOptions as H, type TraceEntry as I, diffForWAL as J, explainPath as K, graphProfile as L, type Meta as M, type NodeProfile as N, type ObserveChangeset as O, reachable as P, topologyDiff as Q, type ReachableDirection as R, SNAPSHOT_VERSION as S, type TopologyEvent as T, type GraphOptions as a, type GraphDescribeOutput as b, type GraphPersistSnapshot as c, type GraphDescribeOptions as d, type CausalStep as e, type DescribeChangeset as f, type DescribeEvent as g, GRAPH_META_SEGMENT as h, type GraphActorOptions as i, type GraphAttachStorageOptions as j, type GraphCheckpointRecord as k, type GraphDiagramDirection as l, type GraphDiffChange as m, type GraphDiffResult as n, type GraphFactoryContext as o, type GraphNodeFactory as p, type GraphObserveAll as q, type GraphObserveOne as r, type GraphProfileOptions as s, type GraphProfileResult as t, type GraphVersionChange as u, type GraphWALDiff as v, type ObserveDetail as w, type ObserveEvent as x, type ObserveOptions as y, type ObserveResult as z };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { M as MeasurementAdapter, P as PreparedSegment, L as LineBreaksResult, C as CharPosition, a as LayoutCursor, I as Interval, b as LayoutLine, c as LayoutNextLineContext, d as LayoutNextLineResult, R as ReactiveLayoutBundle, e as ReactiveLayoutOptions, S as SegmentBreakKind, f as SegmentMeasureStats, g as analyzeAndMeasure, h as carveTextLineSlots, i as computeCharPositions, j as computeLineBreaks, l as layoutNextLine, r as reactiveLayout } from './reactive-layout-
|
|
1
|
+
import { M as MeasurementAdapter, P as PreparedSegment, L as LineBreaksResult, C as CharPosition, a as LayoutCursor, I as Interval, b as LayoutLine, c as LayoutNextLineContext, d as LayoutNextLineResult, R as ReactiveLayoutBundle, e as ReactiveLayoutOptions, S as SegmentBreakKind, f as SegmentMeasureStats, g as analyzeAndMeasure, h as carveTextLineSlots, i as computeCharPositions, j as computeLineBreaks, l as layoutNextLine, r as reactiveLayout } from './reactive-layout-KJj4E2dT.js';
|
|
2
2
|
import { N as Node } from './node-BYInONRr.js';
|
|
3
|
-
import { G as Graph } from './graph-
|
|
3
|
+
import { G as Graph } from './graph-BkIkog4h.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* MeasurementAdapter implementations (roadmap §7.1 — pluggable backends).
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { N as Node } from './node-BYInONRr.js';
|
|
2
|
-
import { G as Graph, a as GraphOptions } from './graph-
|
|
2
|
+
import { G as Graph, a as GraphOptions } from './graph-BkIkog4h.js';
|
|
3
3
|
import { a as ReactiveLogBundle } from './reactive-log-BlAsPLl2.js';
|
|
4
4
|
import { AppendLogStorageTier } from './extra/storage-tiers.js';
|
|
5
5
|
|