import { createSubscriber } from "./chunk-5MWODAS5.js"; // node_modules/svelte/src/reactivity/reactive-value.js var ReactiveValue = class { #fn; #subscribe; /** * * @param {() => T} fn * @param {(update: () => void) => void} onsubscribe */ constructor(fn, onsubscribe) { this.#fn = fn; this.#subscribe = createSubscriber(onsubscribe); } get current() { this.#subscribe(); return this.#fn(); } }; export { ReactiveValue }; //# sourceMappingURL=chunk-6VYHLW26.js.map