wherever-dev 0.11.2 → 0.13.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/drafts.d.ts +119 -0
- package/dist/drafts.d.ts.map +1 -0
- package/dist/drafts.js +272 -0
- package/dist/drafts.js.map +1 -0
- package/dist/index.js +271 -15
- package/dist/index.js.map +1 -1
- package/dist/session-pool.d.ts +31 -0
- package/dist/session-pool.d.ts.map +1 -1
- package/dist/session-pool.js +34 -2
- package/dist/session-pool.js.map +1 -1
- package/package.json +1 -1
- package/public/_app/immutable/assets/0.BS_EGmNW.css +1 -0
- package/public/_app/immutable/chunks/BeRKnBIj.js +3 -0
- package/public/_app/immutable/chunks/{itgD7vGH.js.map → BeRKnBIj.js.map} +1 -1
- package/public/_app/immutable/chunks/{Dtm96ZKi.js → C8CBGqeA.js} +2 -2
- package/public/_app/immutable/chunks/{Dtm96ZKi.js.map → C8CBGqeA.js.map} +1 -1
- package/public/_app/immutable/chunks/{CRRPBe07.js → Cum3gQOV.js} +2 -2
- package/public/_app/immutable/chunks/{CRRPBe07.js.map → Cum3gQOV.js.map} +1 -1
- package/public/_app/immutable/chunks/{CE0jm7EC.js → CyQq9q8L.js} +2 -2
- package/public/_app/immutable/chunks/{CE0jm7EC.js.map → CyQq9q8L.js.map} +1 -1
- package/public/_app/immutable/chunks/{CAWbdcQM.js → D5t5dKgW.js} +2 -2
- package/public/_app/immutable/chunks/{CAWbdcQM.js.map → D5t5dKgW.js.map} +1 -1
- package/public/_app/immutable/chunks/{8jn76iTS.js → DdFruy3e.js} +2 -2
- package/public/_app/immutable/chunks/{8jn76iTS.js.map → DdFruy3e.js.map} +1 -1
- package/public/_app/immutable/chunks/{BDmEqqqL.js → vSWNc7VF.js} +2 -2
- package/public/_app/immutable/chunks/{BDmEqqqL.js.map → vSWNc7VF.js.map} +1 -1
- package/public/_app/immutable/entry/app.BzMua2z6.js +3 -0
- package/public/_app/immutable/entry/{app.YbNg9lmT.js.map → app.BzMua2z6.js.map} +1 -1
- package/public/_app/immutable/entry/start.B0ap2dTz.js +2 -0
- package/public/_app/immutable/entry/start.B0ap2dTz.js.map +1 -0
- package/public/_app/immutable/nodes/{0.BwSufUPS.js → 0.BDXduH3G.js} +3 -3
- package/public/_app/immutable/nodes/{0.BwSufUPS.js.map → 0.BDXduH3G.js.map} +1 -1
- package/public/_app/immutable/nodes/1.CqJo-807.js +2 -0
- package/public/_app/immutable/nodes/{1.x8yi4PgO.js.map → 1.CqJo-807.js.map} +1 -1
- package/public/_app/immutable/nodes/2.C6-6KHYk.js +110 -0
- package/public/_app/immutable/nodes/2.C6-6KHYk.js.map +1 -0
- package/public/_app/version.json +1 -1
- package/public/index.html +15 -15
- package/public/service-worker.js +1 -1
- package/public/_app/immutable/assets/0.BnJtv5fG.css +0 -1
- package/public/_app/immutable/chunks/itgD7vGH.js +0 -3
- package/public/_app/immutable/entry/app.YbNg9lmT.js +0 -3
- package/public/_app/immutable/entry/start.Mhebc2Bx.js +0 -2
- package/public/_app/immutable/entry/start.Mhebc2Bx.js.map +0 -1
- package/public/_app/immutable/nodes/1.x8yi4PgO.js +0 -2
- package/public/_app/immutable/nodes/2.BWbDsdRU.js +0 -104
- package/public/_app/immutable/nodes/2.BWbDsdRU.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dtm96ZKi.js","sources":["../../../../../../../node_modules/.pnpm/svelte@5.55.9/node_modules/svelte/src/internal/client/reactivity/store.js","../../../../../../../node_modules/.pnpm/svelte@5.55.9/node_modules/svelte/src/internal/client/dom/blocks/branches.js","../../../../../../../node_modules/.pnpm/svelte@5.55.9/node_modules/svelte/src/internal/client/dom/blocks/if.js","../../../../../../../node_modules/.pnpm/svelte@5.55.9/node_modules/svelte/src/internal/client/reactivity/props.js"],"sourcesContent":["/** @import { StoreReferencesContainer } from '#client' */\n/** @import { Store } from '#shared' */\nimport { subscribe_to_store } from '../../../store/utils.js';\nimport { get as get_store } from '../../../store/shared/index.js';\nimport { define_property, noop } from '../../shared/utils.js';\nimport { get } from '../runtime.js';\nimport { teardown } from './effects.js';\nimport { mutable_source, set } from './sources.js';\nimport { DEV } from 'esm-env';\n\n/**\n * We set this to `true` when updating a store so that we correctly\n * schedule effects if the update takes place inside a `$:` effect\n */\nexport let legacy_is_updating_store = false;\n\n/**\n * Whether or not the prop currently being read is a store binding, as in\n * `<Child bind:x={$y} />`. If it is, we treat the prop as mutable even in\n * runes mode, and skip `binding_property_non_reactive` validation\n */\nlet is_store_binding = false;\n\nlet IS_UNMOUNTED = Symbol('unmounted');\n\n/**\n * Gets the current value of a store. If the store isn't subscribed to yet, it will create a proxy\n * signal that will be updated when the store is. The store references container is needed to\n * track reassignments to stores and to track the correct component context.\n * @template V\n * @param {Store<V> | null | undefined} store\n * @param {string} store_name\n * @param {StoreReferencesContainer} stores\n * @returns {V}\n */\nexport function store_get(store, store_name, stores) {\n\tconst entry = (stores[store_name] ??= {\n\t\tstore: null,\n\t\tsource: mutable_source(undefined),\n\t\tunsubscribe: noop\n\t});\n\n\tif (DEV) {\n\t\tentry.source.label = store_name;\n\t}\n\n\t// if the component that setup this is already unmounted we don't want to register a subscription\n\tif (entry.store !== store && !(IS_UNMOUNTED in stores)) {\n\t\tentry.unsubscribe();\n\t\tentry.store = store ?? null;\n\n\t\tif (store == null) {\n\t\t\tentry.source.v = undefined; // see synchronous callback comment below\n\t\t\tentry.unsubscribe = noop;\n\t\t} else {\n\t\t\tvar is_synchronous_callback = true;\n\n\t\t\tentry.unsubscribe = subscribe_to_store(store, (v) => {\n\t\t\t\tif (is_synchronous_callback) {\n\t\t\t\t\t// If the first updates to the store value (possibly multiple of them) are synchronously\n\t\t\t\t\t// inside a derived, we will hit the `state_unsafe_mutation` error if we `set` the value\n\t\t\t\t\tentry.source.v = v;\n\t\t\t\t} else {\n\t\t\t\t\tset(entry.source, v);\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tis_synchronous_callback = false;\n\t\t}\n\t}\n\n\t// if the component that setup this stores is already unmounted the source will be out of sync\n\t// so we just use the `get` for the stores, less performant but it avoids to create a memory leak\n\t// and it will keep the value consistent\n\tif (store && IS_UNMOUNTED in stores) {\n\t\treturn get_store(store);\n\t}\n\n\treturn get(entry.source);\n}\n\n/**\n * Unsubscribe from a store if it's not the same as the one in the store references container.\n * We need this in addition to `store_get` because someone could unsubscribe from a store but\n * then never subscribe to the new one (if any), causing the subscription to stay open wrongfully.\n * @param {Store<any> | null | undefined} store\n * @param {string} store_name\n * @param {StoreReferencesContainer} stores\n */\nexport function store_unsub(store, store_name, stores) {\n\t/** @type {StoreReferencesContainer[''] | undefined} */\n\tlet entry = stores[store_name];\n\n\tif (entry && entry.store !== store) {\n\t\t// Don't reset store yet, so that store_get above can resubscribe to new store if necessary\n\t\tentry.unsubscribe();\n\t\tentry.unsubscribe = noop;\n\t}\n\n\treturn store;\n}\n\n/**\n * Sets the new value of a store and returns that value.\n * @template V\n * @param {Store<V>} store\n * @param {V} value\n * @returns {V}\n */\nexport function store_set(store, value) {\n\tupdate_with_flag(store, value);\n\treturn value;\n}\n\n/**\n * @param {StoreReferencesContainer} stores\n * @param {string} store_name\n */\nexport function invalidate_store(stores, store_name) {\n\tvar entry = stores[store_name];\n\tif (entry.store !== null) {\n\t\tstore_set(entry.store, entry.source.v);\n\t}\n}\n\n/**\n * Unsubscribes from all auto-subscribed stores on destroy\n * @returns {[StoreReferencesContainer, ()=>void]}\n */\nexport function setup_stores() {\n\t/** @type {StoreReferencesContainer} */\n\tconst stores = {};\n\n\tfunction cleanup() {\n\t\tteardown(() => {\n\t\t\tfor (var store_name in stores) {\n\t\t\t\tconst ref = stores[store_name];\n\t\t\t\tref.unsubscribe();\n\t\t\t}\n\t\t\tdefine_property(stores, IS_UNMOUNTED, {\n\t\t\t\tenumerable: false,\n\t\t\t\tvalue: true\n\t\t\t});\n\t\t});\n\t}\n\n\treturn [stores, cleanup];\n}\n\n/**\n * @param {Store<V>} store\n * @param {V} value\n * @template V\n */\nfunction update_with_flag(store, value) {\n\tlegacy_is_updating_store = true;\n\n\ttry {\n\t\tstore.set(value);\n\t} finally {\n\t\tlegacy_is_updating_store = false;\n\t}\n}\n\n/**\n * Updates a store with a new value.\n * @param {Store<V>} store the store to update\n * @param {any} expression the expression that mutates the store\n * @param {V} new_value the new store value\n * @template V\n */\nexport function store_mutate(store, expression, new_value) {\n\tupdate_with_flag(store, new_value);\n\treturn expression;\n}\n\n/**\n * @param {Store<number>} store\n * @param {number} store_value\n * @param {1 | -1} [d]\n * @returns {number}\n */\nexport function update_store(store, store_value, d = 1) {\n\tupdate_with_flag(store, store_value + d);\n\treturn store_value;\n}\n\n/**\n * @param {Store<number>} store\n * @param {number} store_value\n * @param {1 | -1} [d]\n * @returns {number}\n */\nexport function update_pre_store(store, store_value, d = 1) {\n\tconst value = store_value + d;\n\tupdate_with_flag(store, value);\n\treturn value;\n}\n\n/**\n * Called inside prop getters to communicate that the prop is a store binding\n */\nexport function mark_store_binding() {\n\tis_store_binding = true;\n}\n\n/**\n * Returns a tuple that indicates whether `fn()` reads a prop that is a store binding.\n * Used to prevent `binding_property_non_reactive` validation false positives and\n * ensure that these props are treated as mutable even in runes mode\n * @template T\n * @param {() => T} fn\n * @returns {[T, boolean]}\n */\nexport function capture_store_binding(fn) {\n\tvar previous_is_store_binding = is_store_binding;\n\n\ttry {\n\t\tis_store_binding = false;\n\t\treturn [fn(), is_store_binding];\n\t} finally {\n\t\tis_store_binding = previous_is_store_binding;\n\t}\n}\n","/** @import { Effect, TemplateNode } from '#client' */\nimport { Batch, current_batch } from '../../reactivity/batch.js';\nimport {\n\tbranch,\n\tdestroy_effect,\n\tmove_effect,\n\tpause_effect,\n\tresume_effect\n} from '../../reactivity/effects.js';\nimport { HMR_ANCHOR } from '../../constants.js';\nimport { hydrate_node, hydrating } from '../hydration.js';\nimport { create_text, should_defer_append } from '../operations.js';\nimport { DEV } from 'esm-env';\n\n/**\n * @typedef {{ effect: Effect, fragment: DocumentFragment }} Branch\n */\n\n/**\n * @template Key\n */\nexport class BranchManager {\n\t/** @type {TemplateNode} */\n\tanchor;\n\n\t/** @type {Map<Batch, Key>} */\n\t#batches = new Map();\n\n\t/**\n\t * Map of keys to effects that are currently rendered in the DOM.\n\t * These effects are visible and actively part of the document tree.\n\t * Example:\n\t * ```\n\t * {#if condition}\n\t * \tfoo\n\t * {:else}\n\t * \tbar\n\t * {/if}\n\t * ```\n\t * Can result in the entries `true->Effect` and `false->Effect`\n\t * @type {Map<Key, Effect>}\n\t */\n\t#onscreen = new Map();\n\n\t/**\n\t * Similar to #onscreen with respect to the keys, but contains branches that are not yet\n\t * in the DOM, because their insertion is deferred.\n\t * @type {Map<Key, Branch>}\n\t */\n\t#offscreen = new Map();\n\n\t/**\n\t * Keys of effects that are currently outroing\n\t * @type {Set<Key>}\n\t */\n\t#outroing = new Set();\n\n\t/**\n\t * Whether to pause (i.e. outro) on change, or destroy immediately.\n\t * This is necessary for `<svelte:element>`\n\t */\n\t#transition = true;\n\n\t/**\n\t * @param {TemplateNode} anchor\n\t * @param {boolean} transition\n\t */\n\tconstructor(anchor, transition = true) {\n\t\tthis.anchor = anchor;\n\t\tthis.#transition = transition;\n\t}\n\n\t/**\n\t * @param {Batch} batch\n\t */\n\t#commit = (batch) => {\n\t\t// if this batch was made obsolete, bail\n\t\tif (!this.#batches.has(batch)) return;\n\n\t\tvar key = /** @type {Key} */ (this.#batches.get(batch));\n\n\t\tvar onscreen = this.#onscreen.get(key);\n\n\t\tif (onscreen) {\n\t\t\t// effect is already in the DOM — abort any current outro\n\t\t\tresume_effect(onscreen);\n\t\t\tthis.#outroing.delete(key);\n\t\t} else {\n\t\t\t// effect is currently offscreen. put it in the DOM\n\t\t\tvar offscreen = this.#offscreen.get(key);\n\n\t\t\tif (offscreen) {\n\t\t\t\tthis.#onscreen.set(key, offscreen.effect);\n\t\t\t\tthis.#offscreen.delete(key);\n\n\t\t\t\tif (DEV) {\n\t\t\t\t\t// Tell hmr.js about the anchor it should use for updates,\n\t\t\t\t\t// since the initial one will be removed\n\t\t\t\t\t/** @type {any} */ (offscreen.fragment.lastChild)[HMR_ANCHOR] = this.anchor;\n\t\t\t\t}\n\n\t\t\t\t// remove the anchor...\n\t\t\t\t/** @type {TemplateNode} */ (offscreen.fragment.lastChild).remove();\n\n\t\t\t\t// ...and append the fragment\n\t\t\t\tthis.anchor.before(offscreen.fragment);\n\t\t\t\tonscreen = offscreen.effect;\n\t\t\t}\n\t\t}\n\n\t\tfor (const [b, k] of this.#batches) {\n\t\t\tthis.#batches.delete(b);\n\n\t\t\tif (b === batch) {\n\t\t\t\t// keep values for newer batches\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tconst offscreen = this.#offscreen.get(k);\n\n\t\t\tif (offscreen) {\n\t\t\t\t// for older batches, destroy offscreen effects\n\t\t\t\t// as they will never be committed\n\t\t\t\tdestroy_effect(offscreen.effect);\n\t\t\t\tthis.#offscreen.delete(k);\n\t\t\t}\n\t\t}\n\n\t\t// outro/destroy all onscreen effects...\n\t\tfor (const [k, effect] of this.#onscreen) {\n\t\t\t// ...except the one that was just committed\n\t\t\t// or those that are already outroing (else the transition is aborted and the effect destroyed right away)\n\t\t\tif (k === key || this.#outroing.has(k)) continue;\n\n\t\t\tconst on_destroy = () => {\n\t\t\t\tconst keys = Array.from(this.#batches.values());\n\n\t\t\t\tif (keys.includes(k)) {\n\t\t\t\t\t// keep the effect offscreen, as another batch will need it\n\t\t\t\t\tvar fragment = document.createDocumentFragment();\n\t\t\t\t\tmove_effect(effect, fragment);\n\n\t\t\t\t\tfragment.append(create_text()); // TODO can we avoid this?\n\n\t\t\t\t\tthis.#offscreen.set(k, { effect, fragment });\n\t\t\t\t} else {\n\t\t\t\t\tdestroy_effect(effect);\n\t\t\t\t}\n\n\t\t\t\tthis.#outroing.delete(k);\n\t\t\t\tthis.#onscreen.delete(k);\n\t\t\t};\n\n\t\t\tif (this.#transition || !onscreen) {\n\t\t\t\tthis.#outroing.add(k);\n\t\t\t\tpause_effect(effect, on_destroy, false);\n\t\t\t} else {\n\t\t\t\ton_destroy();\n\t\t\t}\n\t\t}\n\t};\n\n\t/**\n\t * @param {Batch} batch\n\t */\n\t#discard = (batch) => {\n\t\tthis.#batches.delete(batch);\n\n\t\tconst keys = Array.from(this.#batches.values());\n\n\t\tfor (const [k, branch] of this.#offscreen) {\n\t\t\tif (!keys.includes(k)) {\n\t\t\t\tdestroy_effect(branch.effect);\n\t\t\t\tthis.#offscreen.delete(k);\n\t\t\t}\n\t\t}\n\t};\n\n\t/**\n\t *\n\t * @param {any} key\n\t * @param {null | ((target: TemplateNode) => void)} fn\n\t */\n\tensure(key, fn) {\n\t\tvar batch = /** @type {Batch} */ (current_batch);\n\t\tvar defer = should_defer_append();\n\n\t\tif (fn && !this.#onscreen.has(key) && !this.#offscreen.has(key)) {\n\t\t\tif (defer) {\n\t\t\t\tvar fragment = document.createDocumentFragment();\n\t\t\t\tvar target = create_text();\n\n\t\t\t\tfragment.append(target);\n\n\t\t\t\tthis.#offscreen.set(key, {\n\t\t\t\t\teffect: branch(() => fn(target)),\n\t\t\t\t\tfragment\n\t\t\t\t});\n\t\t\t} else {\n\t\t\t\tthis.#onscreen.set(\n\t\t\t\t\tkey,\n\t\t\t\t\tbranch(() => fn(this.anchor))\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\n\t\tthis.#batches.set(batch, key);\n\n\t\tif (defer) {\n\t\t\tfor (const [k, effect] of this.#onscreen) {\n\t\t\t\tif (k === key) {\n\t\t\t\t\tbatch.unskip_effect(effect);\n\t\t\t\t} else {\n\t\t\t\t\tbatch.skip_effect(effect);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfor (const [k, branch] of this.#offscreen) {\n\t\t\t\tif (k === key) {\n\t\t\t\t\tbatch.unskip_effect(branch.effect);\n\t\t\t\t} else {\n\t\t\t\t\tbatch.skip_effect(branch.effect);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tbatch.oncommit(this.#commit);\n\t\t\tbatch.ondiscard(this.#discard);\n\t\t} else {\n\t\t\tif (hydrating) {\n\t\t\t\tthis.anchor = hydrate_node;\n\t\t\t}\n\n\t\t\tthis.#commit(batch);\n\t\t}\n\t}\n}\n","/** @import { TemplateNode } from '#client' */\nimport { EFFECT_TRANSPARENT } from '#client/constants';\nimport {\n\thydrate_next,\n\thydrating,\n\tread_hydration_instruction,\n\tskip_nodes,\n\tset_hydrate_node,\n\tset_hydrating,\n\thydrate_node\n} from '../hydration.js';\nimport { block } from '../../reactivity/effects.js';\nimport { BranchManager } from './branches.js';\n\n/**\n * @param {TemplateNode} node\n * @param {(branch: (fn: (anchor: Node) => void, key?: number | false) => void) => void} fn\n * @param {boolean} [elseif] True if this is an `{:else if ...}` block rather than an `{#if ...}`, as that affects which transitions are considered 'local'\n * @returns {void}\n */\nexport function if_block(node, fn, elseif = false) {\n\t/** @type {TemplateNode | undefined} */\n\tvar marker;\n\tif (hydrating) {\n\t\tmarker = hydrate_node;\n\t\thydrate_next();\n\t}\n\n\tvar branches = new BranchManager(node);\n\tvar flags = elseif ? EFFECT_TRANSPARENT : 0;\n\n\t/**\n\t * @param {number | false} key\n\t * @param {null | ((anchor: Node) => void)} fn\n\t */\n\tfunction update_branch(key, fn) {\n\t\tif (hydrating) {\n\t\t\tvar data = read_hydration_instruction(/** @type {TemplateNode} */ (marker));\n\n\t\t\t// \"[n\" = branch n, \"[-1\" = else\n\t\t\tif (key !== parseInt(data.substring(1))) {\n\t\t\t\t// Hydration mismatch: remove everything inside the anchor and start fresh.\n\t\t\t\t// This could happen with `{#if browser}...{/if}`, for example\n\t\t\t\tvar anchor = skip_nodes();\n\n\t\t\t\tset_hydrate_node(anchor);\n\t\t\t\tbranches.anchor = anchor;\n\n\t\t\t\tset_hydrating(false);\n\t\t\t\tbranches.ensure(key, fn);\n\t\t\t\tset_hydrating(true);\n\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\n\t\tbranches.ensure(key, fn);\n\t}\n\n\tblock(() => {\n\t\tvar has_branch = false;\n\n\t\tfn((fn, key = 0) => {\n\t\t\thas_branch = true;\n\t\t\tupdate_branch(key, fn);\n\t\t});\n\n\t\tif (!has_branch) {\n\t\t\tupdate_branch(-1, null);\n\t\t}\n\t}, flags);\n}\n","/** @import { Derived, Effect, Source } from './types.js' */\nimport { DEV } from 'esm-env';\nimport {\n\tPROPS_IS_BINDABLE,\n\tPROPS_IS_IMMUTABLE,\n\tPROPS_IS_LAZY_INITIAL,\n\tPROPS_IS_RUNES,\n\tPROPS_IS_UPDATED\n} from '../../../constants.js';\nimport { get_descriptor, is_function } from '../../shared/utils.js';\nimport { set, source, update } from './sources.js';\nimport { derived, derived_safe_equal } from './deriveds.js';\nimport {\n\tactive_effect,\n\tget,\n\tis_destroying_effect,\n\tset_active_effect,\n\tuntrack\n} from '../runtime.js';\nimport * as e from '../errors.js';\nimport { DESTROYED, LEGACY_PROPS, STATE_SYMBOL } from '#client/constants';\nimport { proxy } from '../proxy.js';\nimport { capture_store_binding } from './store.js';\nimport { legacy_mode_flag } from '../../flags/index.js';\nimport { effect, render_effect } from './effects.js';\n\n/**\n * @param {((value?: number) => number)} fn\n * @param {1 | -1} [d]\n * @returns {number}\n */\nexport function update_prop(fn, d = 1) {\n\tconst value = fn();\n\tfn(value + d);\n\treturn value;\n}\n\n/**\n * @param {((value?: number) => number)} fn\n * @param {1 | -1} [d]\n * @returns {number}\n */\nexport function update_pre_prop(fn, d = 1) {\n\tconst value = fn() + d;\n\tfn(value);\n\treturn value;\n}\n\n/**\n * The proxy handler for rest props (i.e. `const { x, ...rest } = $props()`).\n * Is passed the full `$$props` object and excludes the named props.\n * @type {ProxyHandler<{ props: Record<string | symbol, unknown>, exclude: Array<string | symbol>, name?: string }>}}\n */\nconst rest_props_handler = {\n\tget(target, key) {\n\t\tif (target.exclude.includes(key)) return;\n\t\treturn target.props[key];\n\t},\n\tset(target, key) {\n\t\tif (DEV) {\n\t\t\t// TODO should this happen in prod too?\n\t\t\te.props_rest_readonly(`${target.name}.${String(key)}`);\n\t\t}\n\n\t\treturn false;\n\t},\n\tgetOwnPropertyDescriptor(target, key) {\n\t\tif (target.exclude.includes(key)) return;\n\t\tif (key in target.props) {\n\t\t\treturn {\n\t\t\t\tenumerable: true,\n\t\t\t\tconfigurable: true,\n\t\t\t\tvalue: target.props[key]\n\t\t\t};\n\t\t}\n\t},\n\thas(target, key) {\n\t\tif (target.exclude.includes(key)) return false;\n\t\treturn key in target.props;\n\t},\n\townKeys(target) {\n\t\treturn Reflect.ownKeys(target.props).filter((key) => !target.exclude.includes(key));\n\t}\n};\n\n/**\n * @param {Record<string, unknown>} props\n * @param {string[]} exclude\n * @param {string} [name]\n * @returns {Record<string, unknown>}\n */\n/*#__NO_SIDE_EFFECTS__*/\nexport function rest_props(props, exclude, name) {\n\treturn new Proxy(\n\t\tDEV ? { props, exclude, name, other: {}, to_proxy: [] } : { props, exclude },\n\t\trest_props_handler\n\t);\n}\n\n/**\n * The proxy handler for legacy $$restProps and $$props\n * @type {ProxyHandler<{ props: Record<string | symbol, unknown>, exclude: Array<string | symbol>, special: Record<string | symbol, (v?: unknown) => unknown>, version: Source<number>, parent_effect: Effect }>}}\n */\nconst legacy_rest_props_handler = {\n\tget(target, key) {\n\t\tif (target.exclude.includes(key)) return;\n\t\tget(target.version);\n\t\treturn key in target.special ? target.special[key]() : target.props[key];\n\t},\n\tset(target, key, value) {\n\t\tif (!(key in target.special)) {\n\t\t\tvar previous_effect = active_effect;\n\n\t\t\ttry {\n\t\t\t\tset_active_effect(target.parent_effect);\n\n\t\t\t\t// Handle props that can temporarily get out of sync with the parent\n\t\t\t\t/** @type {Record<string, (v?: unknown) => unknown>} */\n\t\t\t\ttarget.special[key] = prop(\n\t\t\t\t\t{\n\t\t\t\t\t\tget [key]() {\n\t\t\t\t\t\t\treturn target.props[key];\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\t/** @type {string} */ (key),\n\t\t\t\t\tPROPS_IS_UPDATED\n\t\t\t\t);\n\t\t\t} finally {\n\t\t\t\tset_active_effect(previous_effect);\n\t\t\t}\n\t\t}\n\n\t\ttarget.special[key](value);\n\t\tupdate(target.version); // $$props is coarse-grained: when $$props.x is updated, usages of $$props.y etc are also rerun\n\t\treturn true;\n\t},\n\tgetOwnPropertyDescriptor(target, key) {\n\t\tif (target.exclude.includes(key)) return;\n\t\tif (key in target.props) {\n\t\t\treturn {\n\t\t\t\tenumerable: true,\n\t\t\t\tconfigurable: true,\n\t\t\t\tvalue: target.props[key]\n\t\t\t};\n\t\t}\n\t},\n\tdeleteProperty(target, key) {\n\t\t// Svelte 4 allowed for deletions on $$restProps\n\t\tif (target.exclude.includes(key)) return true;\n\t\ttarget.exclude.push(key);\n\t\tupdate(target.version);\n\t\treturn true;\n\t},\n\thas(target, key) {\n\t\tif (target.exclude.includes(key)) return false;\n\t\treturn key in target.props;\n\t},\n\townKeys(target) {\n\t\treturn Reflect.ownKeys(target.props).filter((key) => !target.exclude.includes(key));\n\t}\n};\n\n/**\n * @param {Record<string, unknown>} props\n * @param {string[]} exclude\n * @returns {Record<string, unknown>}\n */\nexport function legacy_rest_props(props, exclude) {\n\treturn new Proxy(\n\t\t{\n\t\t\tprops,\n\t\t\texclude,\n\t\t\tspecial: {},\n\t\t\tversion: source(0),\n\t\t\t// TODO this is only necessary because we need to track component\n\t\t\t// destruction inside `prop`, because of `bind:this`, but it\n\t\t\t// seems likely that we can simplify `bind:this` instead\n\t\t\tparent_effect: /** @type {Effect} */ (active_effect)\n\t\t},\n\t\tlegacy_rest_props_handler\n\t);\n}\n\n/**\n * The proxy handler for spread props. Handles the incoming array of props\n * that looks like `() => { dynamic: props }, { static: prop }, ..` and wraps\n * them so that the whole thing is passed to the component as the `$$props` argument.\n * @type {ProxyHandler<{ props: Array<Record<string | symbol, unknown> | (() => Record<string | symbol, unknown>)> }>}}\n */\nconst spread_props_handler = {\n\tget(target, key) {\n\t\tlet i = target.props.length;\n\t\twhile (i--) {\n\t\t\tlet p = target.props[i];\n\t\t\tif (is_function(p)) p = p();\n\t\t\tif (typeof p === 'object' && p !== null && key in p) return p[key];\n\t\t}\n\t},\n\tset(target, key, value) {\n\t\tlet i = target.props.length;\n\t\twhile (i--) {\n\t\t\tlet p = target.props[i];\n\t\t\tif (is_function(p)) p = p();\n\t\t\tconst desc = get_descriptor(p, key);\n\t\t\tif (desc && desc.set) {\n\t\t\t\tdesc.set(value);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t},\n\tgetOwnPropertyDescriptor(target, key) {\n\t\tlet i = target.props.length;\n\t\twhile (i--) {\n\t\t\tlet p = target.props[i];\n\t\t\tif (is_function(p)) p = p();\n\t\t\tif (typeof p === 'object' && p !== null && key in p) {\n\t\t\t\tconst descriptor = get_descriptor(p, key);\n\t\t\t\tif (descriptor && !descriptor.configurable) {\n\t\t\t\t\t// Prevent a \"Non-configurability Report Error\": The target is an array, it does\n\t\t\t\t\t// not actually contain this property. If it is now described as non-configurable,\n\t\t\t\t\t// the proxy throws a validation error. Setting it to true avoids that.\n\t\t\t\t\tdescriptor.configurable = true;\n\t\t\t\t}\n\t\t\t\treturn descriptor;\n\t\t\t}\n\t\t}\n\t},\n\thas(target, key) {\n\t\t// To prevent a false positive `is_entry_props` in the `prop` function\n\t\tif (key === STATE_SYMBOL || key === LEGACY_PROPS) return false;\n\n\t\tfor (let p of target.props) {\n\t\t\tif (is_function(p)) p = p();\n\t\t\tif (p != null && key in p) return true;\n\t\t}\n\n\t\treturn false;\n\t},\n\townKeys(target) {\n\t\t/** @type {Array<string | symbol>} */\n\t\tconst keys = [];\n\n\t\tfor (let p of target.props) {\n\t\t\tif (is_function(p)) p = p();\n\t\t\tif (!p) continue;\n\n\t\t\tfor (const key in p) {\n\t\t\t\tif (!keys.includes(key)) keys.push(key);\n\t\t\t}\n\n\t\t\tfor (const key of Object.getOwnPropertySymbols(p)) {\n\t\t\t\tif (!keys.includes(key)) keys.push(key);\n\t\t\t}\n\t\t}\n\n\t\treturn keys;\n\t}\n};\n\n/**\n * @param {Array<Record<string, unknown> | (() => Record<string, unknown>)>} props\n * @returns {any}\n */\nexport function spread_props(...props) {\n\treturn new Proxy({ props }, spread_props_handler);\n}\n\n/**\n * This function is responsible for synchronizing a possibly bound prop with the inner component state.\n * It is used whenever the compiler sees that the component writes to the prop, or when it has a default prop_value.\n * @template V\n * @param {Record<string, unknown>} props\n * @param {string} key\n * @param {number} flags\n * @param {V | (() => V)} [fallback]\n * @returns {(() => V | ((arg: V) => V) | ((arg: V, mutation: boolean) => V))}\n */\nexport function prop(props, key, flags, fallback) {\n\tvar runes = !legacy_mode_flag || (flags & PROPS_IS_RUNES) !== 0;\n\tvar bindable = (flags & PROPS_IS_BINDABLE) !== 0;\n\tvar lazy = (flags & PROPS_IS_LAZY_INITIAL) !== 0;\n\n\tvar fallback_value = /** @type {V} */ (fallback);\n\tvar fallback_dirty = true;\n\tvar fallback_signal = /** @type {Derived<V> | undefined} */ (undefined);\n\n\tvar get_fallback = () => {\n\t\tif (lazy && runes) {\n\t\t\tfallback_signal ??= derived(/** @type {() => V} */ (fallback));\n\t\t\treturn get(fallback_signal);\n\t\t}\n\n\t\tif (fallback_dirty) {\n\t\t\tfallback_dirty = false;\n\n\t\t\tfallback_value = lazy\n\t\t\t\t? untrack(/** @type {() => V} */ (fallback))\n\t\t\t\t: /** @type {V} */ (fallback);\n\t\t}\n\n\t\treturn fallback_value;\n\t};\n\n\t/** @type {((v: V) => void) | undefined} */\n\tlet setter;\n\n\tif (bindable) {\n\t\t// Can be the case when someone does `mount(Component, props)` with `let props = $state({...})`\n\t\t// or `createClassComponent(Component, props)`\n\t\tvar is_entry_props = STATE_SYMBOL in props || LEGACY_PROPS in props;\n\n\t\tsetter =\n\t\t\tget_descriptor(props, key)?.set ??\n\t\t\t(is_entry_props && key in props ? (v) => (props[key] = v) : undefined);\n\t}\n\n\t/** @type {V} */\n\tvar initial_value;\n\tvar is_store_sub = false;\n\n\tif (bindable) {\n\t\t[initial_value, is_store_sub] = capture_store_binding(() => /** @type {V} */ (props[key]));\n\t} else {\n\t\tinitial_value = /** @type {V} */ (props[key]);\n\t}\n\n\tif (initial_value === undefined && fallback !== undefined) {\n\t\tinitial_value = get_fallback();\n\n\t\tif (setter) {\n\t\t\tif (runes) e.props_invalid_value(key);\n\t\t\tsetter(initial_value);\n\t\t}\n\t}\n\n\t/** @type {() => V} */\n\tvar getter;\n\n\tif (runes) {\n\t\tgetter = () => {\n\t\t\tvar value = /** @type {V} */ (props[key]);\n\t\t\tif (value === undefined) return get_fallback();\n\t\t\tfallback_dirty = true;\n\t\t\treturn value;\n\t\t};\n\t} else {\n\t\tgetter = () => {\n\t\t\tvar value = /** @type {V} */ (props[key]);\n\n\t\t\tif (value !== undefined) {\n\t\t\t\t// in legacy mode, we don't revert to the fallback value\n\t\t\t\t// if the prop goes from defined to undefined. The easiest\n\t\t\t\t// way to model this is to make the fallback undefined\n\t\t\t\t// as soon as the prop has a value\n\t\t\t\tfallback_value = /** @type {V} */ (undefined);\n\t\t\t}\n\n\t\t\treturn value === undefined ? fallback_value : value;\n\t\t};\n\t}\n\n\t// prop is never written to — we only need a getter\n\tif (runes && (flags & PROPS_IS_UPDATED) === 0) {\n\t\treturn getter;\n\t}\n\n\t// prop is written to, but the parent component had `bind:foo` which\n\t// means we can just call `$$props.foo = value` directly\n\tif (setter) {\n\t\tvar legacy_parent = props.$$legacy;\n\t\treturn /** @type {() => V} */ (\n\t\t\tfunction (/** @type {V} */ value, /** @type {boolean} */ mutation) {\n\t\t\t\tif (arguments.length > 0) {\n\t\t\t\t\t// We don't want to notify if the value was mutated and the parent is in runes mode.\n\t\t\t\t\t// In that case the state proxy (if it exists) should take care of the notification.\n\t\t\t\t\t// If the parent is not in runes mode, we need to notify on mutation, too, that the prop\n\t\t\t\t\t// has changed because the parent will not be able to detect the change otherwise.\n\t\t\t\t\tif (!runes || !mutation || legacy_parent || is_store_sub) {\n\t\t\t\t\t\t/** @type {Function} */ (setter)(mutation ? getter() : value);\n\t\t\t\t\t}\n\n\t\t\t\t\treturn value;\n\t\t\t\t}\n\n\t\t\t\treturn getter();\n\t\t\t}\n\t\t);\n\t}\n\n\t// Either prop is written to, but there's no binding, which means we\n\t// create a derived that we can write to locally.\n\t// Or we are in legacy mode where we always create a derived to replicate that\n\t// Svelte 4 did not trigger updates when a primitive value was updated to the same value.\n\tvar overridden = false;\n\n\tvar d = ((flags & PROPS_IS_IMMUTABLE) !== 0 ? derived : derived_safe_equal)(() => {\n\t\toverridden = false;\n\t\treturn getter();\n\t});\n\n\tif (DEV) {\n\t\td.label = key;\n\t}\n\n\t// Capture the initial value if it's bindable\n\tif (bindable) get(d);\n\n\tvar parent_effect = /** @type {Effect} */ (active_effect);\n\n\treturn /** @type {() => V} */ (\n\t\tfunction (/** @type {any} */ value, /** @type {boolean} */ mutation) {\n\t\t\tif (arguments.length > 0) {\n\t\t\t\tconst new_value = mutation ? get(d) : runes && bindable ? proxy(value) : value;\n\n\t\t\t\tset(d, new_value);\n\t\t\t\toverridden = true;\n\n\t\t\t\tif (fallback_value !== undefined) {\n\t\t\t\t\tfallback_value = new_value;\n\t\t\t\t}\n\n\t\t\t\treturn value;\n\t\t\t}\n\n\t\t\t// special case — avoid recalculating the derived if we're in a\n\t\t\t// teardown function and the prop was overridden locally, or the\n\t\t\t// component was already destroyed (people could access props in a timeout)\n\t\t\tif ((is_destroying_effect && overridden) || (parent_effect.f & DESTROYED) !== 0) {\n\t\t\t\treturn d.v;\n\t\t\t}\n\n\t\t\treturn get(d);\n\t\t}\n\t);\n}\n"],"names":["is_store_binding","IS_UNMOUNTED","store_get","store","store_name","stores","entry","mutable_source","noop","is_synchronous_callback","subscribe_to_store","v","set","get_store","get","setup_stores","cleanup","teardown","define_property","capture_store_binding","fn","previous_is_store_binding","BranchManager","#batches","#onscreen","#offscreen","#outroing","#transition","anchor","transition","#commit","batch","key","onscreen","resume_effect","offscreen","b","k","destroy_effect","effect","on_destroy","fragment","move_effect","create_text","pause_effect","#discard","keys","branch","current_batch","defer","should_defer_append","target","hydrating","hydrate_node","if_block","node","elseif","marker","hydrate_next","branches","flags","EFFECT_TRANSPARENT","update_branch","data","read_hydration_instruction","skip_nodes","set_hydrate_node","set_hydrating","block","has_branch","prop","props","fallback","runes","legacy_mode_flag","PROPS_IS_RUNES","bindable","PROPS_IS_BINDABLE","lazy","PROPS_IS_LAZY_INITIAL","fallback_value","fallback_dirty","fallback_signal","get_fallback","derived","untrack","setter","is_entry_props","STATE_SYMBOL","LEGACY_PROPS","get_descriptor","initial_value","is_store_sub","e.props_invalid_value","getter","value","PROPS_IS_UPDATED","legacy_parent","mutation","overridden","d","PROPS_IS_IMMUTABLE","derived_safe_equal","parent_effect","active_effect","new_value","proxy","is_destroying_effect","DESTROYED"],"mappings":"4WAqBA,IAAIA,EAAmB,GAEnBC,EAAe,OAAO,WAAW,EAY9B,SAASC,GAAUC,EAAOC,EAAYC,EAAQ,CACpD,MAAMC,EAASD,EAAOD,CAAU,IAAM,CACrC,MAAO,KACP,OAAQG,EAAe,MAAS,EAChC,YAAaC,CACf,EAOC,GAAIF,EAAM,QAAUH,GAAS,EAAEF,KAAgBI,GAI9C,GAHAC,EAAM,YAAW,EACjBA,EAAM,MAAQH,GAAS,KAEnBA,GAAS,KACZG,EAAM,OAAO,EAAI,OACjBA,EAAM,YAAcE,MACd,CACN,IAAIC,EAA0B,GAE9BH,EAAM,YAAcI,EAAmBP,EAAQQ,GAAM,CAChDF,EAGHH,EAAM,OAAO,EAAIK,EAEjBC,EAAIN,EAAM,OAAQK,CAAC,CAErB,CAAC,EAEDF,EAA0B,EAC3B,CAMD,OAAIN,GAASF,KAAgBI,EACrBQ,EAAUV,CAAK,EAGhBW,EAAIR,EAAM,MAAM,CACxB,CAkDO,SAASS,IAAe,CAE9B,MAAMV,EAAS,CAAA,EAEf,SAASW,GAAU,CAClBC,EAAS,IAAM,CACd,QAASb,KAAcC,EACVA,EAAOD,CAAU,EACzB,YAAW,EAEhBc,EAAgBb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AK,EAGtDA,GAGDD,EAAM,CACd,EAEF,CAMA,IAAIK,EAAa,GAEbC,IAAMxC,EAAQyC,MAAwB,EAAIjB,EAAUkB,IAAoB,KAC3EH,EAAa,GACNL,EAAM,EACb,EAOGlB,GAAU9D,EAAIsF,CAAC,EAEnB,IAAIG,EAAuCC,GAE3C,OACC,SAA6BT,EAA8BG,EAAU,CACpE,GAAI,UAAU,OAAS,EAAG,CACzB,MAAMO,EAAYP,EAAWpF,EAAIsF,CAAC,EAAI3B,GAASG,EAAW8B,EAAMX,CAAK,EAAIA,EAEzE,OAAAnF,EAAIwF,EAAGK,CAAS,EAChBN,EAAa,GAETnB,IAAmB,SACtBA,EAAiByB,GAGXV,CACR,CAKA,OAAKY,IAAwBR,IAAgBI,EAAc,EAAIK,MAAe,EACtER,EAAE,EAGHtF,EAAIsF,CAAC,CACb,EAEF","x_google_ignoreList":[0,1,2,3]}
|
|
1
|
+
{"version":3,"file":"C8CBGqeA.js","sources":["../../../../../../../node_modules/.pnpm/svelte@5.55.9/node_modules/svelte/src/internal/client/reactivity/store.js","../../../../../../../node_modules/.pnpm/svelte@5.55.9/node_modules/svelte/src/internal/client/dom/blocks/branches.js","../../../../../../../node_modules/.pnpm/svelte@5.55.9/node_modules/svelte/src/internal/client/dom/blocks/if.js","../../../../../../../node_modules/.pnpm/svelte@5.55.9/node_modules/svelte/src/internal/client/reactivity/props.js"],"sourcesContent":["/** @import { StoreReferencesContainer } from '#client' */\n/** @import { Store } from '#shared' */\nimport { subscribe_to_store } from '../../../store/utils.js';\nimport { get as get_store } from '../../../store/shared/index.js';\nimport { define_property, noop } from '../../shared/utils.js';\nimport { get } from '../runtime.js';\nimport { teardown } from './effects.js';\nimport { mutable_source, set } from './sources.js';\nimport { DEV } from 'esm-env';\n\n/**\n * We set this to `true` when updating a store so that we correctly\n * schedule effects if the update takes place inside a `$:` effect\n */\nexport let legacy_is_updating_store = false;\n\n/**\n * Whether or not the prop currently being read is a store binding, as in\n * `<Child bind:x={$y} />`. If it is, we treat the prop as mutable even in\n * runes mode, and skip `binding_property_non_reactive` validation\n */\nlet is_store_binding = false;\n\nlet IS_UNMOUNTED = Symbol('unmounted');\n\n/**\n * Gets the current value of a store. If the store isn't subscribed to yet, it will create a proxy\n * signal that will be updated when the store is. The store references container is needed to\n * track reassignments to stores and to track the correct component context.\n * @template V\n * @param {Store<V> | null | undefined} store\n * @param {string} store_name\n * @param {StoreReferencesContainer} stores\n * @returns {V}\n */\nexport function store_get(store, store_name, stores) {\n\tconst entry = (stores[store_name] ??= {\n\t\tstore: null,\n\t\tsource: mutable_source(undefined),\n\t\tunsubscribe: noop\n\t});\n\n\tif (DEV) {\n\t\tentry.source.label = store_name;\n\t}\n\n\t// if the component that setup this is already unmounted we don't want to register a subscription\n\tif (entry.store !== store && !(IS_UNMOUNTED in stores)) {\n\t\tentry.unsubscribe();\n\t\tentry.store = store ?? null;\n\n\t\tif (store == null) {\n\t\t\tentry.source.v = undefined; // see synchronous callback comment below\n\t\t\tentry.unsubscribe = noop;\n\t\t} else {\n\t\t\tvar is_synchronous_callback = true;\n\n\t\t\tentry.unsubscribe = subscribe_to_store(store, (v) => {\n\t\t\t\tif (is_synchronous_callback) {\n\t\t\t\t\t// If the first updates to the store value (possibly multiple of them) are synchronously\n\t\t\t\t\t// inside a derived, we will hit the `state_unsafe_mutation` error if we `set` the value\n\t\t\t\t\tentry.source.v = v;\n\t\t\t\t} else {\n\t\t\t\t\tset(entry.source, v);\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tis_synchronous_callback = false;\n\t\t}\n\t}\n\n\t// if the component that setup this stores is already unmounted the source will be out of sync\n\t// so we just use the `get` for the stores, less performant but it avoids to create a memory leak\n\t// and it will keep the value consistent\n\tif (store && IS_UNMOUNTED in stores) {\n\t\treturn get_store(store);\n\t}\n\n\treturn get(entry.source);\n}\n\n/**\n * Unsubscribe from a store if it's not the same as the one in the store references container.\n * We need this in addition to `store_get` because someone could unsubscribe from a store but\n * then never subscribe to the new one (if any), causing the subscription to stay open wrongfully.\n * @param {Store<any> | null | undefined} store\n * @param {string} store_name\n * @param {StoreReferencesContainer} stores\n */\nexport function store_unsub(store, store_name, stores) {\n\t/** @type {StoreReferencesContainer[''] | undefined} */\n\tlet entry = stores[store_name];\n\n\tif (entry && entry.store !== store) {\n\t\t// Don't reset store yet, so that store_get above can resubscribe to new store if necessary\n\t\tentry.unsubscribe();\n\t\tentry.unsubscribe = noop;\n\t}\n\n\treturn store;\n}\n\n/**\n * Sets the new value of a store and returns that value.\n * @template V\n * @param {Store<V>} store\n * @param {V} value\n * @returns {V}\n */\nexport function store_set(store, value) {\n\tupdate_with_flag(store, value);\n\treturn value;\n}\n\n/**\n * @param {StoreReferencesContainer} stores\n * @param {string} store_name\n */\nexport function invalidate_store(stores, store_name) {\n\tvar entry = stores[store_name];\n\tif (entry.store !== null) {\n\t\tstore_set(entry.store, entry.source.v);\n\t}\n}\n\n/**\n * Unsubscribes from all auto-subscribed stores on destroy\n * @returns {[StoreReferencesContainer, ()=>void]}\n */\nexport function setup_stores() {\n\t/** @type {StoreReferencesContainer} */\n\tconst stores = {};\n\n\tfunction cleanup() {\n\t\tteardown(() => {\n\t\t\tfor (var store_name in stores) {\n\t\t\t\tconst ref = stores[store_name];\n\t\t\t\tref.unsubscribe();\n\t\t\t}\n\t\t\tdefine_property(stores, IS_UNMOUNTED, {\n\t\t\t\tenumerable: false,\n\t\t\t\tvalue: true\n\t\t\t});\n\t\t});\n\t}\n\n\treturn [stores, cleanup];\n}\n\n/**\n * @param {Store<V>} store\n * @param {V} value\n * @template V\n */\nfunction update_with_flag(store, value) {\n\tlegacy_is_updating_store = true;\n\n\ttry {\n\t\tstore.set(value);\n\t} finally {\n\t\tlegacy_is_updating_store = false;\n\t}\n}\n\n/**\n * Updates a store with a new value.\n * @param {Store<V>} store the store to update\n * @param {any} expression the expression that mutates the store\n * @param {V} new_value the new store value\n * @template V\n */\nexport function store_mutate(store, expression, new_value) {\n\tupdate_with_flag(store, new_value);\n\treturn expression;\n}\n\n/**\n * @param {Store<number>} store\n * @param {number} store_value\n * @param {1 | -1} [d]\n * @returns {number}\n */\nexport function update_store(store, store_value, d = 1) {\n\tupdate_with_flag(store, store_value + d);\n\treturn store_value;\n}\n\n/**\n * @param {Store<number>} store\n * @param {number} store_value\n * @param {1 | -1} [d]\n * @returns {number}\n */\nexport function update_pre_store(store, store_value, d = 1) {\n\tconst value = store_value + d;\n\tupdate_with_flag(store, value);\n\treturn value;\n}\n\n/**\n * Called inside prop getters to communicate that the prop is a store binding\n */\nexport function mark_store_binding() {\n\tis_store_binding = true;\n}\n\n/**\n * Returns a tuple that indicates whether `fn()` reads a prop that is a store binding.\n * Used to prevent `binding_property_non_reactive` validation false positives and\n * ensure that these props are treated as mutable even in runes mode\n * @template T\n * @param {() => T} fn\n * @returns {[T, boolean]}\n */\nexport function capture_store_binding(fn) {\n\tvar previous_is_store_binding = is_store_binding;\n\n\ttry {\n\t\tis_store_binding = false;\n\t\treturn [fn(), is_store_binding];\n\t} finally {\n\t\tis_store_binding = previous_is_store_binding;\n\t}\n}\n","/** @import { Effect, TemplateNode } from '#client' */\nimport { Batch, current_batch } from '../../reactivity/batch.js';\nimport {\n\tbranch,\n\tdestroy_effect,\n\tmove_effect,\n\tpause_effect,\n\tresume_effect\n} from '../../reactivity/effects.js';\nimport { HMR_ANCHOR } from '../../constants.js';\nimport { hydrate_node, hydrating } from '../hydration.js';\nimport { create_text, should_defer_append } from '../operations.js';\nimport { DEV } from 'esm-env';\n\n/**\n * @typedef {{ effect: Effect, fragment: DocumentFragment }} Branch\n */\n\n/**\n * @template Key\n */\nexport class BranchManager {\n\t/** @type {TemplateNode} */\n\tanchor;\n\n\t/** @type {Map<Batch, Key>} */\n\t#batches = new Map();\n\n\t/**\n\t * Map of keys to effects that are currently rendered in the DOM.\n\t * These effects are visible and actively part of the document tree.\n\t * Example:\n\t * ```\n\t * {#if condition}\n\t * \tfoo\n\t * {:else}\n\t * \tbar\n\t * {/if}\n\t * ```\n\t * Can result in the entries `true->Effect` and `false->Effect`\n\t * @type {Map<Key, Effect>}\n\t */\n\t#onscreen = new Map();\n\n\t/**\n\t * Similar to #onscreen with respect to the keys, but contains branches that are not yet\n\t * in the DOM, because their insertion is deferred.\n\t * @type {Map<Key, Branch>}\n\t */\n\t#offscreen = new Map();\n\n\t/**\n\t * Keys of effects that are currently outroing\n\t * @type {Set<Key>}\n\t */\n\t#outroing = new Set();\n\n\t/**\n\t * Whether to pause (i.e. outro) on change, or destroy immediately.\n\t * This is necessary for `<svelte:element>`\n\t */\n\t#transition = true;\n\n\t/**\n\t * @param {TemplateNode} anchor\n\t * @param {boolean} transition\n\t */\n\tconstructor(anchor, transition = true) {\n\t\tthis.anchor = anchor;\n\t\tthis.#transition = transition;\n\t}\n\n\t/**\n\t * @param {Batch} batch\n\t */\n\t#commit = (batch) => {\n\t\t// if this batch was made obsolete, bail\n\t\tif (!this.#batches.has(batch)) return;\n\n\t\tvar key = /** @type {Key} */ (this.#batches.get(batch));\n\n\t\tvar onscreen = this.#onscreen.get(key);\n\n\t\tif (onscreen) {\n\t\t\t// effect is already in the DOM — abort any current outro\n\t\t\tresume_effect(onscreen);\n\t\t\tthis.#outroing.delete(key);\n\t\t} else {\n\t\t\t// effect is currently offscreen. put it in the DOM\n\t\t\tvar offscreen = this.#offscreen.get(key);\n\n\t\t\tif (offscreen) {\n\t\t\t\tthis.#onscreen.set(key, offscreen.effect);\n\t\t\t\tthis.#offscreen.delete(key);\n\n\t\t\t\tif (DEV) {\n\t\t\t\t\t// Tell hmr.js about the anchor it should use for updates,\n\t\t\t\t\t// since the initial one will be removed\n\t\t\t\t\t/** @type {any} */ (offscreen.fragment.lastChild)[HMR_ANCHOR] = this.anchor;\n\t\t\t\t}\n\n\t\t\t\t// remove the anchor...\n\t\t\t\t/** @type {TemplateNode} */ (offscreen.fragment.lastChild).remove();\n\n\t\t\t\t// ...and append the fragment\n\t\t\t\tthis.anchor.before(offscreen.fragment);\n\t\t\t\tonscreen = offscreen.effect;\n\t\t\t}\n\t\t}\n\n\t\tfor (const [b, k] of this.#batches) {\n\t\t\tthis.#batches.delete(b);\n\n\t\t\tif (b === batch) {\n\t\t\t\t// keep values for newer batches\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tconst offscreen = this.#offscreen.get(k);\n\n\t\t\tif (offscreen) {\n\t\t\t\t// for older batches, destroy offscreen effects\n\t\t\t\t// as they will never be committed\n\t\t\t\tdestroy_effect(offscreen.effect);\n\t\t\t\tthis.#offscreen.delete(k);\n\t\t\t}\n\t\t}\n\n\t\t// outro/destroy all onscreen effects...\n\t\tfor (const [k, effect] of this.#onscreen) {\n\t\t\t// ...except the one that was just committed\n\t\t\t// or those that are already outroing (else the transition is aborted and the effect destroyed right away)\n\t\t\tif (k === key || this.#outroing.has(k)) continue;\n\n\t\t\tconst on_destroy = () => {\n\t\t\t\tconst keys = Array.from(this.#batches.values());\n\n\t\t\t\tif (keys.includes(k)) {\n\t\t\t\t\t// keep the effect offscreen, as another batch will need it\n\t\t\t\t\tvar fragment = document.createDocumentFragment();\n\t\t\t\t\tmove_effect(effect, fragment);\n\n\t\t\t\t\tfragment.append(create_text()); // TODO can we avoid this?\n\n\t\t\t\t\tthis.#offscreen.set(k, { effect, fragment });\n\t\t\t\t} else {\n\t\t\t\t\tdestroy_effect(effect);\n\t\t\t\t}\n\n\t\t\t\tthis.#outroing.delete(k);\n\t\t\t\tthis.#onscreen.delete(k);\n\t\t\t};\n\n\t\t\tif (this.#transition || !onscreen) {\n\t\t\t\tthis.#outroing.add(k);\n\t\t\t\tpause_effect(effect, on_destroy, false);\n\t\t\t} else {\n\t\t\t\ton_destroy();\n\t\t\t}\n\t\t}\n\t};\n\n\t/**\n\t * @param {Batch} batch\n\t */\n\t#discard = (batch) => {\n\t\tthis.#batches.delete(batch);\n\n\t\tconst keys = Array.from(this.#batches.values());\n\n\t\tfor (const [k, branch] of this.#offscreen) {\n\t\t\tif (!keys.includes(k)) {\n\t\t\t\tdestroy_effect(branch.effect);\n\t\t\t\tthis.#offscreen.delete(k);\n\t\t\t}\n\t\t}\n\t};\n\n\t/**\n\t *\n\t * @param {any} key\n\t * @param {null | ((target: TemplateNode) => void)} fn\n\t */\n\tensure(key, fn) {\n\t\tvar batch = /** @type {Batch} */ (current_batch);\n\t\tvar defer = should_defer_append();\n\n\t\tif (fn && !this.#onscreen.has(key) && !this.#offscreen.has(key)) {\n\t\t\tif (defer) {\n\t\t\t\tvar fragment = document.createDocumentFragment();\n\t\t\t\tvar target = create_text();\n\n\t\t\t\tfragment.append(target);\n\n\t\t\t\tthis.#offscreen.set(key, {\n\t\t\t\t\teffect: branch(() => fn(target)),\n\t\t\t\t\tfragment\n\t\t\t\t});\n\t\t\t} else {\n\t\t\t\tthis.#onscreen.set(\n\t\t\t\t\tkey,\n\t\t\t\t\tbranch(() => fn(this.anchor))\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\n\t\tthis.#batches.set(batch, key);\n\n\t\tif (defer) {\n\t\t\tfor (const [k, effect] of this.#onscreen) {\n\t\t\t\tif (k === key) {\n\t\t\t\t\tbatch.unskip_effect(effect);\n\t\t\t\t} else {\n\t\t\t\t\tbatch.skip_effect(effect);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfor (const [k, branch] of this.#offscreen) {\n\t\t\t\tif (k === key) {\n\t\t\t\t\tbatch.unskip_effect(branch.effect);\n\t\t\t\t} else {\n\t\t\t\t\tbatch.skip_effect(branch.effect);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tbatch.oncommit(this.#commit);\n\t\t\tbatch.ondiscard(this.#discard);\n\t\t} else {\n\t\t\tif (hydrating) {\n\t\t\t\tthis.anchor = hydrate_node;\n\t\t\t}\n\n\t\t\tthis.#commit(batch);\n\t\t}\n\t}\n}\n","/** @import { TemplateNode } from '#client' */\nimport { EFFECT_TRANSPARENT } from '#client/constants';\nimport {\n\thydrate_next,\n\thydrating,\n\tread_hydration_instruction,\n\tskip_nodes,\n\tset_hydrate_node,\n\tset_hydrating,\n\thydrate_node\n} from '../hydration.js';\nimport { block } from '../../reactivity/effects.js';\nimport { BranchManager } from './branches.js';\n\n/**\n * @param {TemplateNode} node\n * @param {(branch: (fn: (anchor: Node) => void, key?: number | false) => void) => void} fn\n * @param {boolean} [elseif] True if this is an `{:else if ...}` block rather than an `{#if ...}`, as that affects which transitions are considered 'local'\n * @returns {void}\n */\nexport function if_block(node, fn, elseif = false) {\n\t/** @type {TemplateNode | undefined} */\n\tvar marker;\n\tif (hydrating) {\n\t\tmarker = hydrate_node;\n\t\thydrate_next();\n\t}\n\n\tvar branches = new BranchManager(node);\n\tvar flags = elseif ? EFFECT_TRANSPARENT : 0;\n\n\t/**\n\t * @param {number | false} key\n\t * @param {null | ((anchor: Node) => void)} fn\n\t */\n\tfunction update_branch(key, fn) {\n\t\tif (hydrating) {\n\t\t\tvar data = read_hydration_instruction(/** @type {TemplateNode} */ (marker));\n\n\t\t\t// \"[n\" = branch n, \"[-1\" = else\n\t\t\tif (key !== parseInt(data.substring(1))) {\n\t\t\t\t// Hydration mismatch: remove everything inside the anchor and start fresh.\n\t\t\t\t// This could happen with `{#if browser}...{/if}`, for example\n\t\t\t\tvar anchor = skip_nodes();\n\n\t\t\t\tset_hydrate_node(anchor);\n\t\t\t\tbranches.anchor = anchor;\n\n\t\t\t\tset_hydrating(false);\n\t\t\t\tbranches.ensure(key, fn);\n\t\t\t\tset_hydrating(true);\n\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\n\t\tbranches.ensure(key, fn);\n\t}\n\n\tblock(() => {\n\t\tvar has_branch = false;\n\n\t\tfn((fn, key = 0) => {\n\t\t\thas_branch = true;\n\t\t\tupdate_branch(key, fn);\n\t\t});\n\n\t\tif (!has_branch) {\n\t\t\tupdate_branch(-1, null);\n\t\t}\n\t}, flags);\n}\n","/** @import { Derived, Effect, Source } from './types.js' */\nimport { DEV } from 'esm-env';\nimport {\n\tPROPS_IS_BINDABLE,\n\tPROPS_IS_IMMUTABLE,\n\tPROPS_IS_LAZY_INITIAL,\n\tPROPS_IS_RUNES,\n\tPROPS_IS_UPDATED\n} from '../../../constants.js';\nimport { get_descriptor, is_function } from '../../shared/utils.js';\nimport { set, source, update } from './sources.js';\nimport { derived, derived_safe_equal } from './deriveds.js';\nimport {\n\tactive_effect,\n\tget,\n\tis_destroying_effect,\n\tset_active_effect,\n\tuntrack\n} from '../runtime.js';\nimport * as e from '../errors.js';\nimport { DESTROYED, LEGACY_PROPS, STATE_SYMBOL } from '#client/constants';\nimport { proxy } from '../proxy.js';\nimport { capture_store_binding } from './store.js';\nimport { legacy_mode_flag } from '../../flags/index.js';\nimport { effect, render_effect } from './effects.js';\n\n/**\n * @param {((value?: number) => number)} fn\n * @param {1 | -1} [d]\n * @returns {number}\n */\nexport function update_prop(fn, d = 1) {\n\tconst value = fn();\n\tfn(value + d);\n\treturn value;\n}\n\n/**\n * @param {((value?: number) => number)} fn\n * @param {1 | -1} [d]\n * @returns {number}\n */\nexport function update_pre_prop(fn, d = 1) {\n\tconst value = fn() + d;\n\tfn(value);\n\treturn value;\n}\n\n/**\n * The proxy handler for rest props (i.e. `const { x, ...rest } = $props()`).\n * Is passed the full `$$props` object and excludes the named props.\n * @type {ProxyHandler<{ props: Record<string | symbol, unknown>, exclude: Array<string | symbol>, name?: string }>}}\n */\nconst rest_props_handler = {\n\tget(target, key) {\n\t\tif (target.exclude.includes(key)) return;\n\t\treturn target.props[key];\n\t},\n\tset(target, key) {\n\t\tif (DEV) {\n\t\t\t// TODO should this happen in prod too?\n\t\t\te.props_rest_readonly(`${target.name}.${String(key)}`);\n\t\t}\n\n\t\treturn false;\n\t},\n\tgetOwnPropertyDescriptor(target, key) {\n\t\tif (target.exclude.includes(key)) return;\n\t\tif (key in target.props) {\n\t\t\treturn {\n\t\t\t\tenumerable: true,\n\t\t\t\tconfigurable: true,\n\t\t\t\tvalue: target.props[key]\n\t\t\t};\n\t\t}\n\t},\n\thas(target, key) {\n\t\tif (target.exclude.includes(key)) return false;\n\t\treturn key in target.props;\n\t},\n\townKeys(target) {\n\t\treturn Reflect.ownKeys(target.props).filter((key) => !target.exclude.includes(key));\n\t}\n};\n\n/**\n * @param {Record<string, unknown>} props\n * @param {string[]} exclude\n * @param {string} [name]\n * @returns {Record<string, unknown>}\n */\n/*#__NO_SIDE_EFFECTS__*/\nexport function rest_props(props, exclude, name) {\n\treturn new Proxy(\n\t\tDEV ? { props, exclude, name, other: {}, to_proxy: [] } : { props, exclude },\n\t\trest_props_handler\n\t);\n}\n\n/**\n * The proxy handler for legacy $$restProps and $$props\n * @type {ProxyHandler<{ props: Record<string | symbol, unknown>, exclude: Array<string | symbol>, special: Record<string | symbol, (v?: unknown) => unknown>, version: Source<number>, parent_effect: Effect }>}}\n */\nconst legacy_rest_props_handler = {\n\tget(target, key) {\n\t\tif (target.exclude.includes(key)) return;\n\t\tget(target.version);\n\t\treturn key in target.special ? target.special[key]() : target.props[key];\n\t},\n\tset(target, key, value) {\n\t\tif (!(key in target.special)) {\n\t\t\tvar previous_effect = active_effect;\n\n\t\t\ttry {\n\t\t\t\tset_active_effect(target.parent_effect);\n\n\t\t\t\t// Handle props that can temporarily get out of sync with the parent\n\t\t\t\t/** @type {Record<string, (v?: unknown) => unknown>} */\n\t\t\t\ttarget.special[key] = prop(\n\t\t\t\t\t{\n\t\t\t\t\t\tget [key]() {\n\t\t\t\t\t\t\treturn target.props[key];\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\t/** @type {string} */ (key),\n\t\t\t\t\tPROPS_IS_UPDATED\n\t\t\t\t);\n\t\t\t} finally {\n\t\t\t\tset_active_effect(previous_effect);\n\t\t\t}\n\t\t}\n\n\t\ttarget.special[key](value);\n\t\tupdate(target.version); // $$props is coarse-grained: when $$props.x is updated, usages of $$props.y etc are also rerun\n\t\treturn true;\n\t},\n\tgetOwnPropertyDescriptor(target, key) {\n\t\tif (target.exclude.includes(key)) return;\n\t\tif (key in target.props) {\n\t\t\treturn {\n\t\t\t\tenumerable: true,\n\t\t\t\tconfigurable: true,\n\t\t\t\tvalue: target.props[key]\n\t\t\t};\n\t\t}\n\t},\n\tdeleteProperty(target, key) {\n\t\t// Svelte 4 allowed for deletions on $$restProps\n\t\tif (target.exclude.includes(key)) return true;\n\t\ttarget.exclude.push(key);\n\t\tupdate(target.version);\n\t\treturn true;\n\t},\n\thas(target, key) {\n\t\tif (target.exclude.includes(key)) return false;\n\t\treturn key in target.props;\n\t},\n\townKeys(target) {\n\t\treturn Reflect.ownKeys(target.props).filter((key) => !target.exclude.includes(key));\n\t}\n};\n\n/**\n * @param {Record<string, unknown>} props\n * @param {string[]} exclude\n * @returns {Record<string, unknown>}\n */\nexport function legacy_rest_props(props, exclude) {\n\treturn new Proxy(\n\t\t{\n\t\t\tprops,\n\t\t\texclude,\n\t\t\tspecial: {},\n\t\t\tversion: source(0),\n\t\t\t// TODO this is only necessary because we need to track component\n\t\t\t// destruction inside `prop`, because of `bind:this`, but it\n\t\t\t// seems likely that we can simplify `bind:this` instead\n\t\t\tparent_effect: /** @type {Effect} */ (active_effect)\n\t\t},\n\t\tlegacy_rest_props_handler\n\t);\n}\n\n/**\n * The proxy handler for spread props. Handles the incoming array of props\n * that looks like `() => { dynamic: props }, { static: prop }, ..` and wraps\n * them so that the whole thing is passed to the component as the `$$props` argument.\n * @type {ProxyHandler<{ props: Array<Record<string | symbol, unknown> | (() => Record<string | symbol, unknown>)> }>}}\n */\nconst spread_props_handler = {\n\tget(target, key) {\n\t\tlet i = target.props.length;\n\t\twhile (i--) {\n\t\t\tlet p = target.props[i];\n\t\t\tif (is_function(p)) p = p();\n\t\t\tif (typeof p === 'object' && p !== null && key in p) return p[key];\n\t\t}\n\t},\n\tset(target, key, value) {\n\t\tlet i = target.props.length;\n\t\twhile (i--) {\n\t\t\tlet p = target.props[i];\n\t\t\tif (is_function(p)) p = p();\n\t\t\tconst desc = get_descriptor(p, key);\n\t\t\tif (desc && desc.set) {\n\t\t\t\tdesc.set(value);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t},\n\tgetOwnPropertyDescriptor(target, key) {\n\t\tlet i = target.props.length;\n\t\twhile (i--) {\n\t\t\tlet p = target.props[i];\n\t\t\tif (is_function(p)) p = p();\n\t\t\tif (typeof p === 'object' && p !== null && key in p) {\n\t\t\t\tconst descriptor = get_descriptor(p, key);\n\t\t\t\tif (descriptor && !descriptor.configurable) {\n\t\t\t\t\t// Prevent a \"Non-configurability Report Error\": The target is an array, it does\n\t\t\t\t\t// not actually contain this property. If it is now described as non-configurable,\n\t\t\t\t\t// the proxy throws a validation error. Setting it to true avoids that.\n\t\t\t\t\tdescriptor.configurable = true;\n\t\t\t\t}\n\t\t\t\treturn descriptor;\n\t\t\t}\n\t\t}\n\t},\n\thas(target, key) {\n\t\t// To prevent a false positive `is_entry_props` in the `prop` function\n\t\tif (key === STATE_SYMBOL || key === LEGACY_PROPS) return false;\n\n\t\tfor (let p of target.props) {\n\t\t\tif (is_function(p)) p = p();\n\t\t\tif (p != null && key in p) return true;\n\t\t}\n\n\t\treturn false;\n\t},\n\townKeys(target) {\n\t\t/** @type {Array<string | symbol>} */\n\t\tconst keys = [];\n\n\t\tfor (let p of target.props) {\n\t\t\tif (is_function(p)) p = p();\n\t\t\tif (!p) continue;\n\n\t\t\tfor (const key in p) {\n\t\t\t\tif (!keys.includes(key)) keys.push(key);\n\t\t\t}\n\n\t\t\tfor (const key of Object.getOwnPropertySymbols(p)) {\n\t\t\t\tif (!keys.includes(key)) keys.push(key);\n\t\t\t}\n\t\t}\n\n\t\treturn keys;\n\t}\n};\n\n/**\n * @param {Array<Record<string, unknown> | (() => Record<string, unknown>)>} props\n * @returns {any}\n */\nexport function spread_props(...props) {\n\treturn new Proxy({ props }, spread_props_handler);\n}\n\n/**\n * This function is responsible for synchronizing a possibly bound prop with the inner component state.\n * It is used whenever the compiler sees that the component writes to the prop, or when it has a default prop_value.\n * @template V\n * @param {Record<string, unknown>} props\n * @param {string} key\n * @param {number} flags\n * @param {V | (() => V)} [fallback]\n * @returns {(() => V | ((arg: V) => V) | ((arg: V, mutation: boolean) => V))}\n */\nexport function prop(props, key, flags, fallback) {\n\tvar runes = !legacy_mode_flag || (flags & PROPS_IS_RUNES) !== 0;\n\tvar bindable = (flags & PROPS_IS_BINDABLE) !== 0;\n\tvar lazy = (flags & PROPS_IS_LAZY_INITIAL) !== 0;\n\n\tvar fallback_value = /** @type {V} */ (fallback);\n\tvar fallback_dirty = true;\n\tvar fallback_signal = /** @type {Derived<V> | undefined} */ (undefined);\n\n\tvar get_fallback = () => {\n\t\tif (lazy && runes) {\n\t\t\tfallback_signal ??= derived(/** @type {() => V} */ (fallback));\n\t\t\treturn get(fallback_signal);\n\t\t}\n\n\t\tif (fallback_dirty) {\n\t\t\tfallback_dirty = false;\n\n\t\t\tfallback_value = lazy\n\t\t\t\t? untrack(/** @type {() => V} */ (fallback))\n\t\t\t\t: /** @type {V} */ (fallback);\n\t\t}\n\n\t\treturn fallback_value;\n\t};\n\n\t/** @type {((v: V) => void) | undefined} */\n\tlet setter;\n\n\tif (bindable) {\n\t\t// Can be the case when someone does `mount(Component, props)` with `let props = $state({...})`\n\t\t// or `createClassComponent(Component, props)`\n\t\tvar is_entry_props = STATE_SYMBOL in props || LEGACY_PROPS in props;\n\n\t\tsetter =\n\t\t\tget_descriptor(props, key)?.set ??\n\t\t\t(is_entry_props && key in props ? (v) => (props[key] = v) : undefined);\n\t}\n\n\t/** @type {V} */\n\tvar initial_value;\n\tvar is_store_sub = false;\n\n\tif (bindable) {\n\t\t[initial_value, is_store_sub] = capture_store_binding(() => /** @type {V} */ (props[key]));\n\t} else {\n\t\tinitial_value = /** @type {V} */ (props[key]);\n\t}\n\n\tif (initial_value === undefined && fallback !== undefined) {\n\t\tinitial_value = get_fallback();\n\n\t\tif (setter) {\n\t\t\tif (runes) e.props_invalid_value(key);\n\t\t\tsetter(initial_value);\n\t\t}\n\t}\n\n\t/** @type {() => V} */\n\tvar getter;\n\n\tif (runes) {\n\t\tgetter = () => {\n\t\t\tvar value = /** @type {V} */ (props[key]);\n\t\t\tif (value === undefined) return get_fallback();\n\t\t\tfallback_dirty = true;\n\t\t\treturn value;\n\t\t};\n\t} else {\n\t\tgetter = () => {\n\t\t\tvar value = /** @type {V} */ (props[key]);\n\n\t\t\tif (value !== undefined) {\n\t\t\t\t// in legacy mode, we don't revert to the fallback value\n\t\t\t\t// if the prop goes from defined to undefined. The easiest\n\t\t\t\t// way to model this is to make the fallback undefined\n\t\t\t\t// as soon as the prop has a value\n\t\t\t\tfallback_value = /** @type {V} */ (undefined);\n\t\t\t}\n\n\t\t\treturn value === undefined ? fallback_value : value;\n\t\t};\n\t}\n\n\t// prop is never written to — we only need a getter\n\tif (runes && (flags & PROPS_IS_UPDATED) === 0) {\n\t\treturn getter;\n\t}\n\n\t// prop is written to, but the parent component had `bind:foo` which\n\t// means we can just call `$$props.foo = value` directly\n\tif (setter) {\n\t\tvar legacy_parent = props.$$legacy;\n\t\treturn /** @type {() => V} */ (\n\t\t\tfunction (/** @type {V} */ value, /** @type {boolean} */ mutation) {\n\t\t\t\tif (arguments.length > 0) {\n\t\t\t\t\t// We don't want to notify if the value was mutated and the parent is in runes mode.\n\t\t\t\t\t// In that case the state proxy (if it exists) should take care of the notification.\n\t\t\t\t\t// If the parent is not in runes mode, we need to notify on mutation, too, that the prop\n\t\t\t\t\t// has changed because the parent will not be able to detect the change otherwise.\n\t\t\t\t\tif (!runes || !mutation || legacy_parent || is_store_sub) {\n\t\t\t\t\t\t/** @type {Function} */ (setter)(mutation ? getter() : value);\n\t\t\t\t\t}\n\n\t\t\t\t\treturn value;\n\t\t\t\t}\n\n\t\t\t\treturn getter();\n\t\t\t}\n\t\t);\n\t}\n\n\t// Either prop is written to, but there's no binding, which means we\n\t// create a derived that we can write to locally.\n\t// Or we are in legacy mode where we always create a derived to replicate that\n\t// Svelte 4 did not trigger updates when a primitive value was updated to the same value.\n\tvar overridden = false;\n\n\tvar d = ((flags & PROPS_IS_IMMUTABLE) !== 0 ? derived : derived_safe_equal)(() => {\n\t\toverridden = false;\n\t\treturn getter();\n\t});\n\n\tif (DEV) {\n\t\td.label = key;\n\t}\n\n\t// Capture the initial value if it's bindable\n\tif (bindable) get(d);\n\n\tvar parent_effect = /** @type {Effect} */ (active_effect);\n\n\treturn /** @type {() => V} */ (\n\t\tfunction (/** @type {any} */ value, /** @type {boolean} */ mutation) {\n\t\t\tif (arguments.length > 0) {\n\t\t\t\tconst new_value = mutation ? get(d) : runes && bindable ? proxy(value) : value;\n\n\t\t\t\tset(d, new_value);\n\t\t\t\toverridden = true;\n\n\t\t\t\tif (fallback_value !== undefined) {\n\t\t\t\t\tfallback_value = new_value;\n\t\t\t\t}\n\n\t\t\t\treturn value;\n\t\t\t}\n\n\t\t\t// special case — avoid recalculating the derived if we're in a\n\t\t\t// teardown function and the prop was overridden locally, or the\n\t\t\t// component was already destroyed (people could access props in a timeout)\n\t\t\tif ((is_destroying_effect && overridden) || (parent_effect.f & DESTROYED) !== 0) {\n\t\t\t\treturn d.v;\n\t\t\t}\n\n\t\t\treturn get(d);\n\t\t}\n\t);\n}\n"],"names":["is_store_binding","IS_UNMOUNTED","store_get","store","store_name","stores","entry","mutable_source","noop","is_synchronous_callback","subscribe_to_store","v","set","get_store","get","setup_stores","cleanup","teardown","define_property","capture_store_binding","fn","previous_is_store_binding","BranchManager","#batches","#onscreen","#offscreen","#outroing","#transition","anchor","transition","#commit","batch","key","onscreen","resume_effect","offscreen","b","k","destroy_effect","effect","on_destroy","fragment","move_effect","create_text","pause_effect","#discard","keys","branch","current_batch","defer","should_defer_append","target","hydrating","hydrate_node","if_block","node","elseif","marker","hydrate_next","branches","flags","EFFECT_TRANSPARENT","update_branch","data","read_hydration_instruction","skip_nodes","set_hydrate_node","set_hydrating","block","has_branch","prop","props","fallback","runes","legacy_mode_flag","PROPS_IS_RUNES","bindable","PROPS_IS_BINDABLE","lazy","PROPS_IS_LAZY_INITIAL","fallback_value","fallback_dirty","fallback_signal","get_fallback","derived","untrack","setter","is_entry_props","STATE_SYMBOL","LEGACY_PROPS","get_descriptor","initial_value","is_store_sub","e.props_invalid_value","getter","value","PROPS_IS_UPDATED","legacy_parent","mutation","overridden","d","PROPS_IS_IMMUTABLE","derived_safe_equal","parent_effect","active_effect","new_value","proxy","is_destroying_effect","DESTROYED"],"mappings":"4WAqBA,IAAIA,EAAmB,GAEnBC,EAAe,OAAO,WAAW,EAY9B,SAASC,GAAUC,EAAOC,EAAYC,EAAQ,CACpD,MAAMC,EAASD,EAAOD,CAAU,IAAM,CACrC,MAAO,KACP,OAAQG,EAAe,MAAS,EAChC,YAAaC,CACf,EAOC,GAAIF,EAAM,QAAUH,GAAS,EAAEF,KAAgBI,GAI9C,GAHAC,EAAM,YAAW,EACjBA,EAAM,MAAQH,GAAS,KAEnBA,GAAS,KACZG,EAAM,OAAO,EAAI,OACjBA,EAAM,YAAcE,MACd,CACN,IAAIC,EAA0B,GAE9BH,EAAM,YAAcI,EAAmBP,EAAQQ,GAAM,CAChDF,EAGHH,EAAM,OAAO,EAAIK,EAEjBC,EAAIN,EAAM,OAAQK,CAAC,CAErB,CAAC,EAEDF,EAA0B,EAC3B,CAMD,OAAIN,GAASF,KAAgBI,EACrBQ,EAAUV,CAAK,EAGhBW,EAAIR,EAAM,MAAM,CACxB,CAkDO,SAASS,IAAe,CAE9B,MAAMV,EAAS,CAAA,EAEf,SAASW,GAAU,CAClBC,EAAS,IAAM,CACd,QAASb,KAAcC,EACVA,EAAOD,CAAU,EACzB,YAAW,EAEhBc,EAAgBb,EAAQJ,EAAc,CACrC,WAAY,GACZ,MAAO,EACX,CAAI,CACF,CAAC,CACF,CAEA,MAAO,CAACI,EAAQW,CAAO,CACxB,CAmEO,SAASG,GAAsBC,EAAI,CACzC,IAAIC,EAA4BrB,EAEhC,GAAI,CACH,OAAAA,EAAmB,GACZ,CAACoB,EAAE,EAAIpB,CAAgB,CAC/B,QAAC,CACAA,EAAmBqB,CACpB,CACD,C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ACzB,MAAMO,EAAYP,EAAWpF,EAAIsF,CAAC,EAAI3B,GAASG,EAAW8B,EAAMX,CAAK,EAAIA,EAEzE,OAAAnF,EAAIwF,EAAGK,CAAS,EAChBN,EAAa,GAETnB,IAAmB,SACtBA,EAAiByB,GAGXV,CACR,CAKA,OAAKY,IAAwBR,IAAgBI,EAAc,EAAIK,MAAe,EACtER,EAAE,EAGHtF,EAAIsF,CAAC,CACb,EAEF","x_google_ignoreList":[0,1,2,3]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var Qt=Array.isArray,en=Array.prototype.indexOf,W=Array.prototype.includes,er=Array.from,tr=Object.defineProperty,ve=Object.getOwnPropertyDescriptor,tn=Object.getOwnPropertyDescriptors,nn=Object.prototype,rn=Array.prototype,vt=Object.getPrototypeOf,it=Object.isExtensible;function nr(e){return typeof e=="function"}const J=()=>{};function rr(e){return e()}function pt(e){for(var t=0;t<e.length;t++)e[t]()}function yt(){var e,t,n=new Promise((r,s)=>{e=r,t=s});return{promise:n,resolve:e,reject:t}}const T=2,ne=4,we=8,wt=1<<24,I=16,L=32,B=64,sn=128,O=512,E=1024,m=2048,j=4096,N=8192,F=16384,ie=32768,lt=1<<25,xe=65536,Oe=1<<17,ln=1<<18,be=1<<19,bt=1<<20,sr=1<<25,re=65536,Ne=1<<21,oe=1<<22,q=1<<23,Q=Symbol("$state"),ir=Symbol("legacy props"),lr=Symbol(""),fn=Symbol("attributes"),an=Symbol("class"),un=Symbol("style"),on=Symbol("text"),Se=Symbol("form reset"),Le=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},ar=!!globalThis.document?.contentType&&globalThis.document.contentType.includes("xml"),je=3,Et=8;function cn(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function _n(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function ur(e,t,n){throw new Error("https://svelte.dev/e/each_key_duplicate")}function dn(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function hn(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function vn(e){throw new Error("https://svelte.dev/e/effect_orphan")}function pn(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function or(){throw new Error("https://svelte.dev/e/hydration_failed")}function cr(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function yn(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function wn(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function bn(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function _r(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}const dr=1,hr=2,vr=4,pr=8,yr=16,wr=1,br=2,Er=4,gr=8,mr=16,Tr=4,Ar=1,Sr=2,En="[",gn="[!",kr="[?",mn="]",$e={},b=Symbol("uninitialized"),Tn="http://www.w3.org/1999/xhtml",Rr="http://www.w3.org/2000/svg",xr="http://www.w3.org/1998/Math/MathML";function An(){console.warn("https://svelte.dev/e/derived_inert")}function Ke(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function Or(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function Nr(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let U=!1;function Cr(e){U=e}let S;function ce(e){if(e===null)throw Ke(),$e;return S=e}function Ir(){return ce($(S))}function Dr(e){if(U){if($(S)!==null)throw Ke(),$e;S=e}}function Mr(e=1){if(U){for(var t=e,n=S;t--;)n=$(n);S=n}}function Pr(e=!0){for(var t=0,n=S;;){if(n.nodeType===Et){var r=n.data;if(r===mn){if(t===0)return n;t-=1}else(r===En||r===gn||r[0]==="["&&!isNaN(Number(r.slice(1))))&&(t+=1)}var s=$(n);e&&n.remove(),n=s}}function Fr(e){if(!e||e.nodeType!==Et)throw Ke(),$e;return e.data}function gt(e){return e===this.v}function mt(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Tt(e){return!mt(e,this.v)}let Ee=!1;function Lr(){Ee=!0}let g=null;function Ce(e){g=e}function jr(e,t=!1,n){g={p:g,i:!1,c:null,e:null,s:e,x:null,r:p,l:Ee&&!t?{s:null,u:null,$:[]}:null}}function Hr(e){var t=g,n=t.e;if(n!==null){t.e=null;for(var r of n)Yt(r)}return e!==void 0&&(t.x=e),t.i=!0,g=t.p,e??{}}function ge(){return!Ee||g!==null&&g.l===null}let X=[];function At(){var e=X;X=[],pt(e)}function ft(e){if(X.length===0&&!pe){var t=X;queueMicrotask(()=>{t===X&&At()})}X.push(e)}function Sn(){for(;X.length>0;)At()}function kn(e){var t=p;if(t===null)return d.f|=q,e;if((t.f&ie)===0&&(t.f&ne)===0)throw e;Ie(e,t)}function Ie(e,t){for(;t!==null;){if((t.f&sn)!==0){if((t.f&ie)===0)throw e;try{t.b.error(e);return}catch(n){e=n}}t=t.parent}throw e}const Rn=-7169;function w(e,t){e.f=e.f&Rn|t}function Xe(e){(e.f&O)!==0||e.deps===null?w(e,E):w(e,j)}function St(e){if(e!==null)for(const t of e)(t.f&T)===0||(t.f&re)===0||(t.f^=re,St(t.deps))}function xn(e,t,n){(e.f&m)!==0?t.add(e):(e.f&j)!==0&&n.add(e),St(e.deps),w(e,E)}function kt(e,t,n){if(e==null)return t(void 0),n&&n(void 0),J;const r=Jt(()=>e.subscribe(t,n));return r.unsubscribe?()=>r.unsubscribe():r}const le=[];function On(e,t){return{subscribe:Nn(e,t).subscribe}}function Nn(e,t=J){let n=null;const r=new Set;function s(a){if(mt(e,a)&&(e=a,n)){const i=!le.length;for(const f of r)f[1](),le.push(f,e);if(i){for(let f=0;f<le.length;f+=2)le[f][0](le[f+1]);le.length=0}}}function l(a){s(a(e))}function o(a,i=J){const f=[a,i];return r.add(f),r.size===1&&(n=t(s,l)||J),a(e),()=>{r.delete(f),r.size===0&&n&&(n(),n=null)}}return{set:s,update:l,subscribe:o}}function Yr(e,t,n){const r=!Array.isArray(e),s=r?[e]:e;if(!s.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const l=t.length<2;return On(n,(o,a)=>{let i=!1;const f=[];let u=0,c=J;const _=()=>{if(u)return;c();const v=t(r?f[0]:f,o,a);l?o(v):c=typeof v=="function"?v:J},h=s.map((v,k)=>kt(v,Te=>{f[k]=Te,u&=~(1<<k),i&&_()},()=>{u|=1<<k}));return i=!0,_(),function(){pt(h),c(),i=!1}})}function qr(e){let t;return kt(e,n=>t=n)(),t}let Ye=null,fe=null,y=null,Ue=null,D=null,Ve=null,pe=!1,qe=!1,ae=null,ke=null;var at=0;let Cn=1;class V{id=Cn++;#c=!1;linked=!0;#s=null;#f=null;async_deriveds=new Map;current=new Map;previous=new Map;unblocked=new Set;#_=new Set;#d=new Set;#a=new Set;#h=0;#r=new Map;#y=null;#e=[];#w=[];#i=new Set;#t=new Set;#n=new Map;#v=new Set;is_fork=!1;#u=!1;#b(){if(this.is_fork)return!0;for(const r of this.#r.keys()){for(var t=r,n=!1;t.parent!==null;){if(this.#n.has(t)){n=!0;break}t=t.parent}if(!n)return!0}return!1}skip_effect(t){this.#n.has(t)||this.#n.set(t,{d:[],m:[]}),this.#v.delete(t)}unskip_effect(t,n=r=>this.schedule(r)){var r=this.#n.get(t);if(r){this.#n.delete(t);for(var s of r.d)w(s,m),n(s);for(s of r.m)w(s,j),n(s)}this.#v.add(t)}#o(){if(this.#c=!0,at++>1e3&&(this.#l(),Dn()),!this.#b()){for(const i of this.#i)this.#t.delete(i),w(i,m),this.schedule(i);for(const i of this.#t)w(i,j),this.schedule(i)}const t=this.#e;this.#e=[],this.apply();var n=ae=[],r=[],s=ke=[];for(const i of t)try{this.#E(i,n,r)}catch(f){throw Ot(i),f}if(y=null,s.length>0){var l=V.ensure();for(const i of s)l.schedule(i)}if(ae=null,ke=null,this.#b()){this.#p(r),this.#p(n);for(const[i,f]of this.#n)xt(i,f);s.length>0&&y.#o();return}const o=this.#m();if(o){o.#T(this);return}this.#i.clear(),this.#t.clear();for(const i of this.#_)i(this);this.#_.clear(),Ue=this,ut(r),ut(n),Ue=null,this.#y?.resolve();var a=y;if(this.linked&&this.#h===0&&this.#l(),this.#e.length>0){a===null&&(a=this,this.#g());const i=a;i.#e.push(...this.#e.filter(f=>!i.#e.includes(f)))}a!==null&&a.#o()}#E(t,n,r){t.f^=E;for(var s=t.first;s!==null;){var l=s.f,o=(l&(L|B))!==0,a=o&&(l&E)!==0,i=a||(l&N)!==0||this.#n.has(s);if(!i&&s.fn!==null){o?s.f^=E:(l&ne)!==0?n.push(s):me(s)&&((l&I)!==0&&this.#t.add(s),de(s));var f=s.first;if(f!==null){s=f;continue}}for(;s!==null;){var u=s.next;if(u!==null){s=u;break}s=s.parent}}}#m(){for(var t=this.#s;t!==null;){if(!t.is_fork){for(const[n,[,r]]of this.current)if(t.current.has(n)&&!r)return t}t=t.#s}return null}#T(t){for(const[r,s]of t.current)!this.previous.has(r)&&t.previous.has(r)&&this.previous.set(r,t.previous.get(r)),this.current.set(r,s);for(const[r,s]of t.async_deriveds){const l=this.async_deriveds.get(r);l&&s.promise.then(l.resolve)}const n=r=>{var s=r.reactions;if(s!==null)for(const a of s){var l=a.f;if((l&T)!==0)n(a);else{var o=a;l&(oe|I)&&!this.async_deriveds.has(o)&&(this.#t.delete(o),w(o,m),this.schedule(o))}}};for(const r of this.current.keys())n(r);this.oncommit(()=>t.discard()),t.#l(),y=this,this.#o()}#p(t){for(var n=0;n<t.length;n+=1)xn(t[n],this.#i,this.#t)}capture(t,n,r=!1){t.v!==b&&!this.previous.has(t)&&this.previous.set(t,t.v),(t.f&q)===0&&(this.current.set(t,[n,r]),D?.set(t,n)),this.is_fork||(t.v=n)}activate(){y=this}deactivate(){y=null,D=null}flush(){try{qe=!0,y=this,this.#o()}finally{at=0,Ve=null,ae=null,ke=null,qe=!1,y=null,D=null,ee.clear()}}discard(){for(const t of this.#d)t(this);this.#d.clear(),this.#a.clear(),this.#l()}register_created_effect(t){this.#w.push(t)}#A(){this.#l();for(let u=Ye;u!==null;u=u.#f){var t=u.id<this.id,n=[];for(const[c,[_,h]]of this.current){if(u.current.has(c)){var r=u.current.get(c)[0];if(t&&_!==r)u.current.set(c,[_,h]);else continue}n.push(c)}if(t)for(const[c,_]of this.async_deriveds){const h=u.async_deriveds.get(c);h&&_.promise.then(h.resolve)}if(u.#c){var s=[...u.current.keys()].filter(c=>!this.current.has(c));if(s.length===0)t&&u.discard();else if(n.length>0){if(t)for(const c of this.#v)u.unskip_effect(c,_=>{(_.f&(I|oe))!==0?u.schedule(_):u.#p([_])});u.activate();var l=new Set,o=new Map;for(var a of n)Rt(a,s,l,o);o=new Map;var i=[...u.current.keys()].filter(c=>this.current.has(c)?this.current.get(c)[0]!==c.v:!0);if(i.length>0)for(const c of this.#w)(c.f&(F|N|Oe))===0&&Ze(c,i,o)&&((c.f&(oe|I))!==0?(w(c,m),u.schedule(c)):u.#i.add(c));if(u.#e.length>0&&!u.#u){u.apply();for(var f of u.#e)u.#E(f,[],[]);u.#e=[]}u.deactivate()}}}}increment(t,n){if(this.#h+=1,t){let r=this.#r.get(n)??0;this.#r.set(n,r+1)}}decrement(t,n){if(this.#h-=1,t){let r=this.#r.get(n)??0;r===1?this.#r.delete(n):this.#r.set(n,r-1)}this.#u||(this.#u=!0,ft(()=>{this.#u=!1,this.linked&&this.flush()}))}transfer_effects(t,n){for(const r of t)this.#i.add(r);for(const r of n)this.#t.add(r);t.clear(),n.clear()}oncommit(t){this.#_.add(t)}ondiscard(t){this.#d.add(t)}on_fork_commit(t){this.#a.add(t)}run_fork_commit_callbacks(){for(const t of this.#a)t(this);this.#a.clear()}settled(){return(this.#y??=yt()).promise}static ensure(){if(y===null){const t=y=new V;t.#g(),!qe&&!pe&&ft(()=>{t.#c||t.flush()})}return y}apply(){{D=null;return}}schedule(t){if(Ve=t,t.b?.is_pending&&(t.f&(ne|we|wt))!==0&&(t.f&ie)===0){t.b.defer_effect(t);return}for(var n=t;n.parent!==null;){n=n.parent;var r=n.f;if(ae!==null&&n===p&&(d===null||(d.f&T)===0))return;if((r&(B|L))!==0){if((r&E)===0)return;n.f^=E}}this.#e.push(n)}#g(){fe===null?Ye=fe=this:(fe.#f=this,this.#s=fe),fe=this}#l(){var t=this.#s,n=this.#f;t===null?Ye=n:t.#f=n,n===null?fe=t:n.#s=t,this.linked=!1}}function In(e){var t=pe;pe=!0;try{for(var n;;){if(Sn(),y===null)return n;y.flush()}}finally{pe=t}}function Dn(){try{pn()}catch(e){Ie(e,Ve)}}let H=null;function ut(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(F|N))===0&&me(r)&&(H=new Set,de(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&Bt(r),H?.size>0)){ee.clear();for(const s of H){if((s.f&(F|N))!==0)continue;const l=[s];let o=s.parent;for(;o!==null;)H.has(o)&&(H.delete(o),l.push(o)),o=o.parent;for(let a=l.length-1;a>=0;a--){const i=l[a];(i.f&(F|N))===0&&de(i)}}H.clear()}}H=null}}function Rt(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(const s of e.reactions){const l=s.f;(l&T)!==0?Rt(s,t,n,r):(l&(oe|I))!==0&&(l&m)===0&&Ze(s,t,r)&&(w(s,m),We(s))}}function Ze(e,t,n){const r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(const s of e.deps){if(W.call(t,s))return!0;if((s.f&T)!==0&&Ze(s,t,n))return n.set(s,!0),!0}return n.set(e,!1),!1}function We(e){y.schedule(e)}function xt(e,t){if(!((e.f&L)!==0&&(e.f&E)!==0)){(e.f&m)!==0?t.d.push(e):(e.f&j)!==0&&t.m.push(e),w(e,E);for(var n=e.first;n!==null;)xt(n,t),n=n.next}}function Ot(e){w(e,E);for(var t=e.first;t!==null;)Ot(t),t=t.next}function Nt(e,t,n,r){const s=ge()?Je:Fn;var l=e.filter(_=>!_.settled);if(n.length===0&&l.length===0){r(t.map(s));return}var o=p,a=Mn(),i=l.length===1?l[0].promise:l.length>1?Promise.all(l.map(_=>_.promise)):null;function f(_){if((o.f&F)===0){a();try{r(_)}catch(h){Ie(h,o)}De()}}var u=Ct();if(n.length===0){i.then(()=>f(t.map(s))).finally(u);return}function c(){Promise.all(n.map(_=>Pn(_))).then(_=>f([...t.map(s),..._])).catch(_=>Ie(_,o)).finally(u)}i?i.then(()=>{a(),c(),De()}):c()}function Mn(){var e=p,t=d,n=g,r=y;return function(l=!0){_e(e),z(t),Ce(n),l&&(e.f&F)===0&&(r?.activate(),r?.apply())}}function De(e=!0){_e(null),z(null),Ce(null),e&&y?.deactivate()}function Ct(){var e=p,t=e.b,n=y,r=t.is_rendered();return t.update_pending_count(1,n),n.increment(r,e),()=>{t.update_pending_count(-1,n),n.decrement(r,e)}}function Je(e){var t=T|m;return p!==null&&(p.f|=be),{ctx:g,deps:null,effects:null,equals:gt,f:t,fn:e,reactions:null,rv:0,v:b,wv:0,parent:p,ac:null}}const Ae=Symbol("obsolete");function Pn(e,t,n){let r=p;r===null&&_n();var s=void 0,l=et(b),o=!d,a=new Set;return $n(()=>{var i=p,f=yt();s=f.promise;try{Promise.resolve(e()).then(f.resolve,h=>{h!==Le&&f.reject(h)}).finally(De)}catch(h){f.reject(h),De()}var u=y;if(o){if((i.f&ie)!==0)var c=Ct();if(r.b.is_rendered())u.async_deriveds.get(i)?.reject(Ae);else for(const h of a.values())h.reject(Ae);a.add(f),u.async_deriveds.set(i,f)}const _=(h,v=void 0)=>{c?.(),a.delete(f),v!==Ae&&(u.activate(),v?(l.f|=q,Ge(l,v)):((l.f&q)!==0&&(l.f^=q),Ge(l,h)),u.deactivate())};f.promise.then(_,h=>_(null,h||"unknown"))}),Gn(()=>{for(const i of a)i.reject(Ae)}),new Promise(i=>{function f(u){function c(){u===s?i(l):f(s)}u.then(c,c)}f(s)})}function Br(e){const t=Je(e);return Gt(t),t}function Fn(e){const t=Je(e);return t.equals=Tt,t}function Ln(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)se(t[n])}}function Qe(e){var t,n=p,r=e.parent;if(!G&&r!==null&&e.v!==b&&(r.f&(F|N))!==0)return An(),e.v;_e(r);try{e.f&=~re,Ln(e),t=Xt(e)}finally{_e(n)}return t}function It(e){var t=Qe(e);if(!e.equals(t)&&(e.wv=$t(),(!y?.is_fork||e.deps===null)&&(y!==null?(y.capture(e,t,!0),Ue?.capture(e,t,!0)):e.v=t,e.deps===null))){w(e,E);return}G||(D!==null?(Ht()||y?.is_fork)&&D.set(e,t):Xe(e))}function jn(e){if(e.effects!==null)for(const t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(Le),t.fn!==null&&(t.teardown=J),t.ac=null,ye(t,0),rt(t))}function Dt(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&t.fn!==null&&de(t)}let Me=new Set;const ee=new Map;let Mt=!1;function et(e,t){var n={f:0,v:e,reactions:null,equals:gt,rv:0,wv:0};return n}function Y(e,t){const n=et(e);return Gt(n),n}function Ur(e,t=!1,n=!0){const r=et(e);return t||(r.equals=Tt),Ee&&n&&g!==null&&g.l!==null&&(g.l.s??=[]).push(r),r}function K(e,t,n=!1){d!==null&&(!M||(d.f&Oe)!==0)&&ge()&&(d.f&(T|I|oe|Oe))!==0&&(C===null||!W.call(C,e))&&bn();let r=n?he(t):t;return Ge(e,r,ke)}function Ge(e,t,n=null){if(!e.equals(t)){ee.set(e,G?t:e.v);var r=V.ensure();if(r.capture(e,t),(e.f&T)!==0){const s=e;(e.f&m)!==0&&Qe(s),D===null&&Xe(s)}e.wv=$t(),Pt(e,m,n),ge()&&p!==null&&(p.f&E)!==0&&(p.f&(L|B))===0&&(x===null?Wn([e]):x.push(e)),!r.is_fork&&Me.size>0&&!Mt&&Hn()}return t}function Hn(){Mt=!1;for(const e of Me){(e.f&E)!==0&&w(e,j);let t;try{t=me(e)}catch{t=!0}t&&de(e)}Me.clear()}function Be(e){K(e,e.v+1)}function Pt(e,t,n){var r=e.reactions;if(r!==null)for(var s=ge(),l=r.length,o=0;o<l;o++){var a=r[o],i=a.f;if(!(!s&&a===p)){var f=(i&m)===0;if(f&&w(a,t),(i&Oe)!==0)Me.add(a);else if((i&T)!==0){var u=a;D?.delete(u),(i&re)===0&&(i&O&&(p===null||(p.f&Ne)===0)&&(a.f|=re),Pt(u,j,n))}else if(f){var c=a;(i&I)!==0&&H!==null&&H.add(c),n!==null?n.push(c):We(c)}}}}function he(e){if(typeof e!="object"||e===null||Q in e)return e;const t=vt(e);if(t!==nn&&t!==rn)return e;var n=new Map,r=Qt(e),s=Y(0),l=te,o=a=>{if(te===l)return a();var i=d,f=te;z(null),ht(l);var u=a();return z(i),ht(f),u};return r&&n.set("length",Y(e.length)),new Proxy(e,{defineProperty(a,i,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&yn();var u=n.get(i);return u===void 0?o(()=>{var c=Y(f.value);return n.set(i,c),c}):K(u,f.value,!0),!0},deleteProperty(a,i){var f=n.get(i);if(f===void 0){if(i in a){const u=o(()=>Y(b));n.set(i,u),Be(s)}}else K(f,b),Be(s);return!0},get(a,i,f){if(i===Q)return e;var u=n.get(i),c=i in a;if(u===void 0&&(!c||ve(a,i)?.writable)&&(u=o(()=>{var h=he(c?a[i]:b),v=Y(h);return v}),n.set(i,u)),u!==void 0){var _=ue(u);return _===b?void 0:_}return Reflect.get(a,i,f)},getOwnPropertyDescriptor(a,i){var f=Reflect.getOwnPropertyDescriptor(a,i);if(f&&"value"in f){var u=n.get(i);u&&(f.value=ue(u))}else if(f===void 0){var c=n.get(i),_=c?.v;if(c!==void 0&&_!==b)return{enumerable:!0,configurable:!0,value:_,writable:!0}}return f},has(a,i){if(i===Q)return!0;var f=n.get(i),u=f!==void 0&&f.v!==b||Reflect.has(a,i);if(f!==void 0||p!==null&&(!u||ve(a,i)?.writable)){f===void 0&&(f=o(()=>{var _=u?he(a[i]):b,h=Y(_);return h}),n.set(i,f));var c=ue(f);if(c===b)return!1}return u},set(a,i,f,u){var c=n.get(i),_=i in a;if(r&&i==="length")for(var h=f;h<c.v;h+=1){var v=n.get(h+"");v!==void 0?K(v,b):h in a&&(v=o(()=>Y(b)),n.set(h+"",v))}if(c===void 0)(!_||ve(a,i)?.writable)&&(c=o(()=>Y(void 0)),K(c,he(f)),n.set(i,c));else{_=c.v!==b;var k=o(()=>he(f));K(c,k)}var Te=Reflect.getOwnPropertyDescriptor(a,i);if(Te?.set&&Te.set.call(u,f),!_){if(r&&typeof i=="string"){var st=n.get("length"),He=Number(i);Number.isInteger(He)&&He>=st.v&&K(st,He+1)}Be(s)}return!0},ownKeys(a){ue(s);var i=Reflect.ownKeys(a).filter(c=>{var _=n.get(c);return _===void 0||_.v!==b});for(var[f,u]of n)u.v!==b&&!(f in a)&&i.push(f);return i},setPrototypeOf(){wn()}})}function ot(e){try{if(e!==null&&typeof e=="object"&&Q in e)return e[Q]}catch{}return e}function Vr(e,t){return Object.is(ot(e),ot(t))}var ct,Yn,qn,Ft,Lt;function Gr(){if(ct===void 0){ct=window,Yn=document,qn=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Ft=ve(t,"firstChild").get,Lt=ve(t,"nextSibling").get,it(e)&&(e[an]=void 0,e[fn]=null,e[un]=void 0,e.__e=void 0),it(n)&&(n[on]=void 0)}}function Pe(e=""){return document.createTextNode(e)}function Fe(e){return Ft.call(e)}function $(e){return Lt.call(e)}function zr(e,t){if(!U)return Fe(e);var n=Fe(S);if(n===null)n=S.appendChild(Pe());else if(t&&n.nodeType!==je){var r=Pe();return n?.before(r),ce(r),r}return t&&tt(n),ce(n),n}function $r(e,t=!1){if(!U){var n=Fe(e);return n instanceof Comment&&n.data===""?$(n):n}if(t){if(S?.nodeType!==je){var r=Pe();return S?.before(r),ce(r),r}tt(S)}return S}function Kr(e,t=1,n=!1){let r=U?S:e;for(var s;t--;)s=r,r=$(r);if(!U)return r;if(n){if(r?.nodeType!==je){var l=Pe();return r===null?s?.after(l):r.before(l),ce(l),l}tt(r)}return ce(r),r}function Bn(e){e.textContent=""}function Xr(){return!1}function Zr(e,t,n){return document.createElementNS(t??Tn,e,void 0)}function tt(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===je;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function Wr(e){U&&Fe(e)!==null&&Bn(e)}let _t=!1;function Un(){_t||(_t=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(const t of e.target.elements)t[Se]?.()})},{capture:!0}))}function nt(e){var t=d,n=p;z(null),_e(null);try{return e()}finally{z(t),_e(n)}}function Jr(e,t,n,r=n){e.addEventListener(t,()=>nt(n));const s=e[Se];s?e[Se]=()=>{s(),r(!0)}:e[Se]=()=>r(!0),Un()}function jt(e){p===null&&(d===null&&vn(),hn()),G&&dn()}function Vn(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function P(e,t){var n=p;n!==null&&(n.f&N)!==0&&(e|=N);var r={ctx:g,deps:null,nodes:null,f:e|m|O,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null};y?.register_created_effect(r);var s=r;if((e&ne)!==0)ae!==null?ae.push(r):V.ensure().schedule(r);else if(t!==null){try{de(r)}catch(o){throw se(r),o}s.deps===null&&s.teardown===null&&s.nodes===null&&s.first===s.last&&(s.f&be)===0&&(s=s.first,(e&I)!==0&&(e&xe)!==0&&s!==null&&(s.f|=xe))}if(s!==null&&(s.parent=n,n!==null&&Vn(s,n),d!==null&&(d.f&T)!==0&&(e&B)===0)){var l=d;(l.effects??=[]).push(s)}return r}function Ht(){return d!==null&&!M}function Gn(e){const t=P(we,null);return w(t,E),t.teardown=e,t}function zn(e){jt();var t=p.f,n=!d&&(t&L)!==0&&(t&ie)===0;if(n){var r=g;(r.e??=[]).push(e)}else return Yt(e)}function Yt(e){return P(ne|bt,e)}function Qr(e){return jt(),P(we|bt,e)}function es(e){V.ensure();const t=P(B|be,e);return(n={})=>new Promise(r=>{n.outro?Zn(t,()=>{se(t),r(void 0)}):(se(t),r(void 0))})}function ts(e){return P(ne,e)}function $n(e){return P(oe|be,e)}function ns(e,t=0){return P(we|t,e)}function rs(e,t=[],n=[],r=[]){Nt(r,t,n,s=>{P(we,()=>e(...s.map(ue)))})}function ss(e,t=[],n=[],r=[]){Nt(r,t,n,s=>{P(ne,()=>e(...s.map(ue)))})}function is(e,t=0){var n=P(I|t,e);return n}function ls(e){return P(L|be,e)}function qt(e){var t=e.teardown;if(t!==null){const n=G,r=d;dt(!0),z(null);try{t.call(null)}finally{dt(n),z(r)}}}function rt(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const s=n.ac;s!==null&&nt(()=>{s.abort(Le)});var r=n.next;(n.f&B)!==0?n.parent=null:se(n,t),n=r}}function Kn(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&L)===0&&se(t),t=n}}function se(e,t=!0){var n=!1;(t||(e.f&ln)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(Xn(e.nodes.start,e.nodes.end),n=!0),w(e,lt),rt(e,t&&!n),ye(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(const l of r)l.stop();qt(e),e.f^=lt,e.f|=F;var s=e.parent;s!==null&&s.first!==null&&Bt(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function Xn(e,t){for(;e!==null;){var n=e===t?null:$(e);e.remove(),e=n}}function Bt(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function Zn(e,t,n=!0){var r=[];Ut(e,r,!0);var s=()=>{n&&se(e),t&&t()},l=r.length;if(l>0){var o=()=>--l||s();for(var a of r)a.out(o)}else s()}function Ut(e,t,n){if((e.f&N)===0){e.f^=N;var r=e.nodes&&e.nodes.t;if(r!==null)for(const a of r)(a.is_global||n)&&t.push(a);for(var s=e.first;s!==null;){var l=s.next;if((s.f&B)===0){var o=(s.f&xe)!==0||(s.f&L)!==0&&(e.f&I)!==0;Ut(s,t,o?n:!1)}s=l}}}function fs(e){Vt(e,!0)}function Vt(e,t){if((e.f&N)!==0){e.f^=N,(e.f&E)===0&&(w(e,m),V.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,s=(n.f&xe)!==0||(n.f&L)!==0;Vt(n,s?t:!1),n=r}var l=e.nodes&&e.nodes.t;if(l!==null)for(const o of l)(o.is_global||t)&&o.in()}}function as(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var s=n===r?null:$(n);t.append(n),n=s}}let Re=!1,G=!1;function dt(e){G=e}let d=null,M=!1;function z(e){d=e}let p=null;function _e(e){p=e}let C=null;function Gt(e){d!==null&&(C===null?C=[e]:C.push(e))}let A=null,R=0,x=null;function Wn(e){x=e}let zt=1,Z=0,te=Z;function ht(e){te=e}function $t(){return++zt}function me(e){var t=e.f;if((t&m)!==0)return!0;if(t&T&&(e.f&=~re),(t&j)!==0){for(var n=e.deps,r=n.length,s=0;s<r;s++){var l=n[s];if(me(l)&&It(l),l.wv>e.wv)return!0}(t&O)!==0&&D===null&&w(e,E)}return!1}function Kt(e,t,n=!0){var r=e.reactions;if(r!==null&&!(C!==null&&W.call(C,e)))for(var s=0;s<r.length;s++){var l=r[s];(l.f&T)!==0?Kt(l,t,!1):t===l&&(n?w(l,m):(l.f&E)!==0&&w(l,j),We(l))}}function Xt(e){var t=A,n=R,r=x,s=d,l=C,o=g,a=M,i=te,f=e.f;A=null,R=0,x=null,d=(f&(L|B))===0?e:null,C=null,Ce(e.ctx),M=!1,te=++Z,e.ac!==null&&(nt(()=>{e.ac.abort(Le)}),e.ac=null);try{e.f|=Ne;var u=e.fn,c=u();e.f|=ie;var _=e.deps,h=y?.is_fork;if(A!==null){var v;if(h||ye(e,R),_!==null&&R>0)for(_.length=R+A.length,v=0;v<A.length;v++)_[R+v]=A[v];else e.deps=_=A;if(Ht()&&(e.f&O)!==0)for(v=R;v<_.length;v++)(_[v].reactions??=[]).push(e)}else!h&&_!==null&&R<_.length&&(ye(e,R),_.length=R);if(ge()&&x!==null&&!M&&_!==null&&(e.f&(T|j|m))===0)for(v=0;v<x.length;v++)Kt(x[v],e);if(s!==null&&s!==e){if(Z++,s.deps!==null)for(let k=0;k<n;k+=1)s.deps[k].rv=Z;if(t!==null)for(const k of t)k.rv=Z;x!==null&&(r===null?r=x:r.push(...x))}return(e.f&q)!==0&&(e.f^=q),c}catch(k){return kn(k)}finally{e.f^=Ne,A=t,R=n,x=r,d=s,C=l,Ce(o),M=a,te=i}}function Jn(e,t){let n=t.reactions;if(n!==null){var r=en.call(n,e);if(r!==-1){var s=n.length-1;s===0?n=t.reactions=null:(n[r]=n[s],n.pop())}}if(n===null&&(t.f&T)!==0&&(A===null||!W.call(A,t))){var l=t;(l.f&O)!==0&&(l.f^=O,l.f&=~re),l.v!==b&&Xe(l),jn(l),ye(l,0)}}function ye(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Jn(e,n[r])}function de(e){var t=e.f;if((t&F)===0){w(e,E);var n=p,r=Re;p=e,Re=!0;try{(t&(I|wt))!==0?Kn(e):rt(e),qt(e);var s=Xt(e);e.teardown=typeof s=="function"?s:null,e.wv=zt;var l}finally{Re=r,p=n}}}async function us(){await Promise.resolve(),In()}function os(){return V.ensure().settled()}function ue(e){var t=e.f,n=(t&T)!==0;if(d!==null&&!M){var r=p!==null&&(p.f&F)!==0;if(!r&&(C===null||!W.call(C,e))){var s=d.deps;if((d.f&Ne)!==0)e.rv<Z&&(e.rv=Z,A===null&&s!==null&&s[R]===e?R++:A===null?A=[e]:A.push(e));else{d.deps??=[],W.call(d.deps,e)||d.deps.push(e);var l=e.reactions;l===null?e.reactions=[d]:W.call(l,d)||l.push(d)}}}if(G&&ee.has(e))return ee.get(e);if(n){var o=e;if(G){var a=o.v;return((o.f&E)===0&&o.reactions!==null||Wt(o))&&(a=Qe(o)),ee.set(o,a),a}var i=(o.f&O)===0&&!M&&d!==null&&(Re||(d.f&O)!==0),f=(o.f&ie)===0;me(o)&&(i&&(o.f|=O),It(o)),i&&!f&&(Dt(o),Zt(o))}if(D?.has(e))return D.get(e);if((e.f&q)!==0)throw e.v;return e.v}function Zt(e){if(e.f|=O,e.deps!==null)for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&T)!==0&&(t.f&O)===0&&(Dt(t),Zt(t))}function Wt(e){if(e.v===b)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(ee.has(t)||(t.f&T)!==0&&Wt(t))return!0;return!1}function Jt(e){var t=M;try{return M=!0,e()}finally{M=t}}function cs(e){if(!(typeof e!="object"||!e||e instanceof EventTarget)){if(Q in e)ze(e);else if(!Array.isArray(e))for(let t in e){const n=e[t];typeof n=="object"&&n&&Q in n&&ze(n)}}}function ze(e,t=new Set){if(typeof e=="object"&&e!==null&&!(e instanceof EventTarget)&&!t.has(e)){t.add(e),e instanceof Date&&e.getTime();for(let r in e)try{ze(e[r],t)}catch{}const n=vt(e);if(n!==Object.prototype&&n!==Array.prototype&&n!==Map.prototype&&n!==Set.prototype&&n!==Date.prototype){const r=tn(n);for(let s in r){const l=r[s].get;if(l)try{l.call(e)}catch{}}}}}function _s(e){g===null&&cn(),Ee&&g.l!==null?Qn(g).m.push(e):zn(()=>{const t=Jt(e);if(typeof t=="function")return t})}function Qn(e){var t=e.l;return t.u??={a:[],b:[],m:[]}}export{Yn as $,fn as A,I as B,an as C,F as D,hr as E,Se as F,Sr as G,ln as H,N as I,on as J,je as K,ir as L,Tr as M,Tn as N,p as O,gr as P,d as Q,ie as R,Q as S,Ar as T,Un as U,er as V,is as W,ls as X,zr as Y,Bn as Z,g as _,sn as a,K as a$,es as a0,Zr as a1,Pe as a2,y as a3,cs as a4,xn as a5,ss as a6,tr as a7,Je as a8,Yr as a9,Qt as aA,G as aB,qn as aC,nr as aD,Ee as aE,Jr as aF,tt as aG,as as aH,Ur as aI,Mr as aJ,J as aK,_s as aL,Zn as aM,Hr as aN,cr as aO,he as aP,jr as aQ,ft as aR,Fr as aS,Xn as aT,Wr as aU,ns as aV,Dr as aW,fs as aX,rr as aY,pt as aZ,Or as a_,Fn as aa,se as ab,ur as ac,ts as ad,Ht as ae,Lr as af,$r as ag,In as ah,qr as ai,ue as aj,ve as ak,tn as al,Fe as am,$ as an,vt as ao,kn as ap,Ir as aq,S as ar,U as as,or as at,Ke as au,Be as av,Gr as aw,Ge as ax,Ie as ay,Vr as az,L as b,_e as b0,z as b1,Ce as b2,ce as b3,Cr as b4,os as b5,Xr as b6,Kr as b7,Pr as b8,et as b9,Y as ba,kt as bb,Nr as bc,_r as bd,Gn as be,rs as bf,us as bg,Jt as bh,Br as bi,zn as bj,Qr as bk,nt as bl,Nn as bm,V as c,Et as d,lt as e,pr as f,vr as g,yr as h,dr as i,sr as j,be as k,xe as l,mn as m,$e as n,En as o,gn as p,kr as q,ar as r,lr as s,xr as t,Rr as u,wr as v,mr as w,br as x,Er as y,un as z};
|
|
2
|
-
//# sourceMappingURL=
|
|
1
|
+
var en=Array.isArray,tn=Array.prototype.indexOf,W=Array.prototype.includes,tr=Array.from,nr=Object.defineProperty,ve=Object.getOwnPropertyDescriptor,nn=Object.getOwnPropertyDescriptors,rn=Object.prototype,sn=Array.prototype,pt=Object.getPrototypeOf,lt=Object.isExtensible;function rr(e){return typeof e=="function"}const J=()=>{};function sr(e){return e()}function yt(e){for(var t=0;t<e.length;t++)e[t]()}function wt(){var e,t,n=new Promise((r,s)=>{e=r,t=s});return{promise:n,resolve:e,reject:t}}const T=2,ne=4,we=8,bt=1<<24,I=16,L=32,B=64,ln=128,O=512,E=1024,m=2048,j=4096,N=8192,F=16384,ie=32768,ft=1<<25,xe=65536,Oe=1<<17,fn=1<<18,be=1<<19,Et=1<<20,ir=1<<25,re=65536,Ne=1<<21,oe=1<<22,q=1<<23,Q=Symbol("$state"),lr=Symbol("legacy props"),fr=Symbol(""),an=Symbol("attributes"),un=Symbol("class"),on=Symbol("style"),cn=Symbol("text"),Se=Symbol("form reset"),Le=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},ur=!!globalThis.document?.contentType&&globalThis.document.contentType.includes("xml"),je=3,gt=8;function mt(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function _n(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function or(e,t,n){throw new Error("https://svelte.dev/e/each_key_duplicate")}function dn(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function hn(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function vn(e){throw new Error("https://svelte.dev/e/effect_orphan")}function pn(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function cr(){throw new Error("https://svelte.dev/e/hydration_failed")}function _r(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function yn(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function wn(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function bn(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function dr(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}const hr=1,vr=2,pr=4,yr=8,wr=16,br=1,Er=2,gr=4,mr=8,Tr=16,Ar=4,Sr=1,kr=2,En="[",gn="[!",Rr="[?",mn="]",$e={},b=Symbol("uninitialized"),Tn="http://www.w3.org/1999/xhtml",xr="http://www.w3.org/2000/svg",Or="http://www.w3.org/1998/Math/MathML";function An(){console.warn("https://svelte.dev/e/derived_inert")}function Ke(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function Nr(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function Cr(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let U=!1;function Ir(e){U=e}let S;function ce(e){if(e===null)throw Ke(),$e;return S=e}function Dr(){return ce($(S))}function Mr(e){if(U){if($(S)!==null)throw Ke(),$e;S=e}}function Pr(e=1){if(U){for(var t=e,n=S;t--;)n=$(n);S=n}}function Fr(e=!0){for(var t=0,n=S;;){if(n.nodeType===gt){var r=n.data;if(r===mn){if(t===0)return n;t-=1}else(r===En||r===gn||r[0]==="["&&!isNaN(Number(r.slice(1))))&&(t+=1)}var s=$(n);e&&n.remove(),n=s}}function Lr(e){if(!e||e.nodeType!==gt)throw Ke(),$e;return e.data}function Tt(e){return e===this.v}function At(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function St(e){return!At(e,this.v)}let Ee=!1;function jr(){Ee=!0}let g=null;function Ce(e){g=e}function Hr(e,t=!1,n){g={p:g,i:!1,c:null,e:null,s:e,x:null,r:p,l:Ee&&!t?{s:null,u:null,$:[]}:null}}function Yr(e){var t=g,n=t.e;if(n!==null){t.e=null;for(var r of n)Bt(r)}return e!==void 0&&(t.x=e),t.i=!0,g=t.p,e??{}}function ge(){return!Ee||g!==null&&g.l===null}let X=[];function kt(){var e=X;X=[],yt(e)}function at(e){if(X.length===0&&!pe){var t=X;queueMicrotask(()=>{t===X&&kt()})}X.push(e)}function Sn(){for(;X.length>0;)kt()}function kn(e){var t=p;if(t===null)return d.f|=q,e;if((t.f&ie)===0&&(t.f&ne)===0)throw e;Ie(e,t)}function Ie(e,t){for(;t!==null;){if((t.f&ln)!==0){if((t.f&ie)===0)throw e;try{t.b.error(e);return}catch(n){e=n}}t=t.parent}throw e}const Rn=-7169;function w(e,t){e.f=e.f&Rn|t}function Xe(e){(e.f&O)!==0||e.deps===null?w(e,E):w(e,j)}function Rt(e){if(e!==null)for(const t of e)(t.f&T)===0||(t.f&re)===0||(t.f^=re,Rt(t.deps))}function xn(e,t,n){(e.f&m)!==0?t.add(e):(e.f&j)!==0&&n.add(e),Rt(e.deps),w(e,E)}function xt(e,t,n){if(e==null)return t(void 0),n&&n(void 0),J;const r=st(()=>e.subscribe(t,n));return r.unsubscribe?()=>r.unsubscribe():r}const le=[];function On(e,t){return{subscribe:Nn(e,t).subscribe}}function Nn(e,t=J){let n=null;const r=new Set;function s(a){if(At(e,a)&&(e=a,n)){const i=!le.length;for(const f of r)f[1](),le.push(f,e);if(i){for(let f=0;f<le.length;f+=2)le[f][0](le[f+1]);le.length=0}}}function l(a){s(a(e))}function o(a,i=J){const f=[a,i];return r.add(f),r.size===1&&(n=t(s,l)||J),a(e),()=>{r.delete(f),r.size===0&&n&&(n(),n=null)}}return{set:s,update:l,subscribe:o}}function qr(e,t,n){const r=!Array.isArray(e),s=r?[e]:e;if(!s.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const l=t.length<2;return On(n,(o,a)=>{let i=!1;const f=[];let u=0,c=J;const _=()=>{if(u)return;c();const v=t(r?f[0]:f,o,a);l?o(v):c=typeof v=="function"?v:J},h=s.map((v,k)=>xt(v,Te=>{f[k]=Te,u&=~(1<<k),i&&_()},()=>{u|=1<<k}));return i=!0,_(),function(){yt(h),c(),i=!1}})}function Br(e){let t;return xt(e,n=>t=n)(),t}let Ye=null,fe=null,y=null,Ue=null,D=null,Ve=null,pe=!1,qe=!1,ae=null,ke=null;var ut=0;let Cn=1;class V{id=Cn++;#c=!1;linked=!0;#s=null;#f=null;async_deriveds=new Map;current=new Map;previous=new Map;unblocked=new Set;#_=new Set;#d=new Set;#a=new Set;#h=0;#r=new Map;#y=null;#e=[];#w=[];#i=new Set;#t=new Set;#n=new Map;#v=new Set;is_fork=!1;#u=!1;#b(){if(this.is_fork)return!0;for(const r of this.#r.keys()){for(var t=r,n=!1;t.parent!==null;){if(this.#n.has(t)){n=!0;break}t=t.parent}if(!n)return!0}return!1}skip_effect(t){this.#n.has(t)||this.#n.set(t,{d:[],m:[]}),this.#v.delete(t)}unskip_effect(t,n=r=>this.schedule(r)){var r=this.#n.get(t);if(r){this.#n.delete(t);for(var s of r.d)w(s,m),n(s);for(s of r.m)w(s,j),n(s)}this.#v.add(t)}#o(){if(this.#c=!0,ut++>1e3&&(this.#l(),Dn()),!this.#b()){for(const i of this.#i)this.#t.delete(i),w(i,m),this.schedule(i);for(const i of this.#t)w(i,j),this.schedule(i)}const t=this.#e;this.#e=[],this.apply();var n=ae=[],r=[],s=ke=[];for(const i of t)try{this.#E(i,n,r)}catch(f){throw Ct(i),f}if(y=null,s.length>0){var l=V.ensure();for(const i of s)l.schedule(i)}if(ae=null,ke=null,this.#b()){this.#p(r),this.#p(n);for(const[i,f]of this.#n)Nt(i,f);s.length>0&&y.#o();return}const o=this.#m();if(o){o.#T(this);return}this.#i.clear(),this.#t.clear();for(const i of this.#_)i(this);this.#_.clear(),Ue=this,ot(r),ot(n),Ue=null,this.#y?.resolve();var a=y;if(this.linked&&this.#h===0&&this.#l(),this.#e.length>0){a===null&&(a=this,this.#g());const i=a;i.#e.push(...this.#e.filter(f=>!i.#e.includes(f)))}a!==null&&a.#o()}#E(t,n,r){t.f^=E;for(var s=t.first;s!==null;){var l=s.f,o=(l&(L|B))!==0,a=o&&(l&E)!==0,i=a||(l&N)!==0||this.#n.has(s);if(!i&&s.fn!==null){o?s.f^=E:(l&ne)!==0?n.push(s):me(s)&&((l&I)!==0&&this.#t.add(s),de(s));var f=s.first;if(f!==null){s=f;continue}}for(;s!==null;){var u=s.next;if(u!==null){s=u;break}s=s.parent}}}#m(){for(var t=this.#s;t!==null;){if(!t.is_fork){for(const[n,[,r]]of this.current)if(t.current.has(n)&&!r)return t}t=t.#s}return null}#T(t){for(const[r,s]of t.current)!this.previous.has(r)&&t.previous.has(r)&&this.previous.set(r,t.previous.get(r)),this.current.set(r,s);for(const[r,s]of t.async_deriveds){const l=this.async_deriveds.get(r);l&&s.promise.then(l.resolve)}const n=r=>{var s=r.reactions;if(s!==null)for(const a of s){var l=a.f;if((l&T)!==0)n(a);else{var o=a;l&(oe|I)&&!this.async_deriveds.has(o)&&(this.#t.delete(o),w(o,m),this.schedule(o))}}};for(const r of this.current.keys())n(r);this.oncommit(()=>t.discard()),t.#l(),y=this,this.#o()}#p(t){for(var n=0;n<t.length;n+=1)xn(t[n],this.#i,this.#t)}capture(t,n,r=!1){t.v!==b&&!this.previous.has(t)&&this.previous.set(t,t.v),(t.f&q)===0&&(this.current.set(t,[n,r]),D?.set(t,n)),this.is_fork||(t.v=n)}activate(){y=this}deactivate(){y=null,D=null}flush(){try{qe=!0,y=this,this.#o()}finally{ut=0,Ve=null,ae=null,ke=null,qe=!1,y=null,D=null,ee.clear()}}discard(){for(const t of this.#d)t(this);this.#d.clear(),this.#a.clear(),this.#l()}register_created_effect(t){this.#w.push(t)}#A(){this.#l();for(let u=Ye;u!==null;u=u.#f){var t=u.id<this.id,n=[];for(const[c,[_,h]]of this.current){if(u.current.has(c)){var r=u.current.get(c)[0];if(t&&_!==r)u.current.set(c,[_,h]);else continue}n.push(c)}if(t)for(const[c,_]of this.async_deriveds){const h=u.async_deriveds.get(c);h&&_.promise.then(h.resolve)}if(u.#c){var s=[...u.current.keys()].filter(c=>!this.current.has(c));if(s.length===0)t&&u.discard();else if(n.length>0){if(t)for(const c of this.#v)u.unskip_effect(c,_=>{(_.f&(I|oe))!==0?u.schedule(_):u.#p([_])});u.activate();var l=new Set,o=new Map;for(var a of n)Ot(a,s,l,o);o=new Map;var i=[...u.current.keys()].filter(c=>this.current.has(c)?this.current.get(c)[0]!==c.v:!0);if(i.length>0)for(const c of this.#w)(c.f&(F|N|Oe))===0&&Ze(c,i,o)&&((c.f&(oe|I))!==0?(w(c,m),u.schedule(c)):u.#i.add(c));if(u.#e.length>0&&!u.#u){u.apply();for(var f of u.#e)u.#E(f,[],[]);u.#e=[]}u.deactivate()}}}}increment(t,n){if(this.#h+=1,t){let r=this.#r.get(n)??0;this.#r.set(n,r+1)}}decrement(t,n){if(this.#h-=1,t){let r=this.#r.get(n)??0;r===1?this.#r.delete(n):this.#r.set(n,r-1)}this.#u||(this.#u=!0,at(()=>{this.#u=!1,this.linked&&this.flush()}))}transfer_effects(t,n){for(const r of t)this.#i.add(r);for(const r of n)this.#t.add(r);t.clear(),n.clear()}oncommit(t){this.#_.add(t)}ondiscard(t){this.#d.add(t)}on_fork_commit(t){this.#a.add(t)}run_fork_commit_callbacks(){for(const t of this.#a)t(this);this.#a.clear()}settled(){return(this.#y??=wt()).promise}static ensure(){if(y===null){const t=y=new V;t.#g(),!qe&&!pe&&at(()=>{t.#c||t.flush()})}return y}apply(){{D=null;return}}schedule(t){if(Ve=t,t.b?.is_pending&&(t.f&(ne|we|bt))!==0&&(t.f&ie)===0){t.b.defer_effect(t);return}for(var n=t;n.parent!==null;){n=n.parent;var r=n.f;if(ae!==null&&n===p&&(d===null||(d.f&T)===0))return;if((r&(B|L))!==0){if((r&E)===0)return;n.f^=E}}this.#e.push(n)}#g(){fe===null?Ye=fe=this:(fe.#f=this,this.#s=fe),fe=this}#l(){var t=this.#s,n=this.#f;t===null?Ye=n:t.#f=n,n===null?fe=t:n.#s=t,this.linked=!1}}function In(e){var t=pe;pe=!0;try{for(var n;;){if(Sn(),y===null)return n;y.flush()}}finally{pe=t}}function Dn(){try{pn()}catch(e){Ie(e,Ve)}}let H=null;function ot(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(F|N))===0&&me(r)&&(H=new Set,de(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&Vt(r),H?.size>0)){ee.clear();for(const s of H){if((s.f&(F|N))!==0)continue;const l=[s];let o=s.parent;for(;o!==null;)H.has(o)&&(H.delete(o),l.push(o)),o=o.parent;for(let a=l.length-1;a>=0;a--){const i=l[a];(i.f&(F|N))===0&&de(i)}}H.clear()}}H=null}}function Ot(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(const s of e.reactions){const l=s.f;(l&T)!==0?Ot(s,t,n,r):(l&(oe|I))!==0&&(l&m)===0&&Ze(s,t,r)&&(w(s,m),We(s))}}function Ze(e,t,n){const r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(const s of e.deps){if(W.call(t,s))return!0;if((s.f&T)!==0&&Ze(s,t,n))return n.set(s,!0),!0}return n.set(e,!1),!1}function We(e){y.schedule(e)}function Nt(e,t){if(!((e.f&L)!==0&&(e.f&E)!==0)){(e.f&m)!==0?t.d.push(e):(e.f&j)!==0&&t.m.push(e),w(e,E);for(var n=e.first;n!==null;)Nt(n,t),n=n.next}}function Ct(e){w(e,E);for(var t=e.first;t!==null;)Ct(t),t=t.next}function It(e,t,n,r){const s=ge()?Je:Fn;var l=e.filter(_=>!_.settled);if(n.length===0&&l.length===0){r(t.map(s));return}var o=p,a=Mn(),i=l.length===1?l[0].promise:l.length>1?Promise.all(l.map(_=>_.promise)):null;function f(_){if((o.f&F)===0){a();try{r(_)}catch(h){Ie(h,o)}De()}}var u=Dt();if(n.length===0){i.then(()=>f(t.map(s))).finally(u);return}function c(){Promise.all(n.map(_=>Pn(_))).then(_=>f([...t.map(s),..._])).catch(_=>Ie(_,o)).finally(u)}i?i.then(()=>{a(),c(),De()}):c()}function Mn(){var e=p,t=d,n=g,r=y;return function(l=!0){_e(e),z(t),Ce(n),l&&(e.f&F)===0&&(r?.activate(),r?.apply())}}function De(e=!0){_e(null),z(null),Ce(null),e&&y?.deactivate()}function Dt(){var e=p,t=e.b,n=y,r=t.is_rendered();return t.update_pending_count(1,n),n.increment(r,e),()=>{t.update_pending_count(-1,n),n.decrement(r,e)}}function Je(e){var t=T|m;return p!==null&&(p.f|=be),{ctx:g,deps:null,effects:null,equals:Tt,f:t,fn:e,reactions:null,rv:0,v:b,wv:0,parent:p,ac:null}}const Ae=Symbol("obsolete");function Pn(e,t,n){let r=p;r===null&&_n();var s=void 0,l=et(b),o=!d,a=new Set;return $n(()=>{var i=p,f=wt();s=f.promise;try{Promise.resolve(e()).then(f.resolve,h=>{h!==Le&&f.reject(h)}).finally(De)}catch(h){f.reject(h),De()}var u=y;if(o){if((i.f&ie)!==0)var c=Dt();if(r.b.is_rendered())u.async_deriveds.get(i)?.reject(Ae);else for(const h of a.values())h.reject(Ae);a.add(f),u.async_deriveds.set(i,f)}const _=(h,v=void 0)=>{c?.(),a.delete(f),v!==Ae&&(u.activate(),v?(l.f|=q,Ge(l,v)):((l.f&q)!==0&&(l.f^=q),Ge(l,h)),u.deactivate())};f.promise.then(_,h=>_(null,h||"unknown"))}),Gn(()=>{for(const i of a)i.reject(Ae)}),new Promise(i=>{function f(u){function c(){u===s?i(l):f(s)}u.then(c,c)}f(s)})}function Ur(e){const t=Je(e);return $t(t),t}function Fn(e){const t=Je(e);return t.equals=St,t}function Ln(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)se(t[n])}}function Qe(e){var t,n=p,r=e.parent;if(!G&&r!==null&&e.v!==b&&(r.f&(F|N))!==0)return An(),e.v;_e(r);try{e.f&=~re,Ln(e),t=Wt(e)}finally{_e(n)}return t}function Mt(e){var t=Qe(e);if(!e.equals(t)&&(e.wv=Xt(),(!y?.is_fork||e.deps===null)&&(y!==null?(y.capture(e,t,!0),Ue?.capture(e,t,!0)):e.v=t,e.deps===null))){w(e,E);return}G||(D!==null?(qt()||y?.is_fork)&&D.set(e,t):Xe(e))}function jn(e){if(e.effects!==null)for(const t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(Le),t.fn!==null&&(t.teardown=J),t.ac=null,ye(t,0),rt(t))}function Pt(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&t.fn!==null&&de(t)}let Me=new Set;const ee=new Map;let Ft=!1;function et(e,t){var n={f:0,v:e,reactions:null,equals:Tt,rv:0,wv:0};return n}function Y(e,t){const n=et(e);return $t(n),n}function Vr(e,t=!1,n=!0){const r=et(e);return t||(r.equals=St),Ee&&n&&g!==null&&g.l!==null&&(g.l.s??=[]).push(r),r}function K(e,t,n=!1){d!==null&&(!M||(d.f&Oe)!==0)&&ge()&&(d.f&(T|I|oe|Oe))!==0&&(C===null||!W.call(C,e))&&bn();let r=n?he(t):t;return Ge(e,r,ke)}function Ge(e,t,n=null){if(!e.equals(t)){ee.set(e,G?t:e.v);var r=V.ensure();if(r.capture(e,t),(e.f&T)!==0){const s=e;(e.f&m)!==0&&Qe(s),D===null&&Xe(s)}e.wv=Xt(),Lt(e,m,n),ge()&&p!==null&&(p.f&E)!==0&&(p.f&(L|B))===0&&(x===null?Wn([e]):x.push(e)),!r.is_fork&&Me.size>0&&!Ft&&Hn()}return t}function Hn(){Ft=!1;for(const e of Me){(e.f&E)!==0&&w(e,j);let t;try{t=me(e)}catch{t=!0}t&&de(e)}Me.clear()}function Be(e){K(e,e.v+1)}function Lt(e,t,n){var r=e.reactions;if(r!==null)for(var s=ge(),l=r.length,o=0;o<l;o++){var a=r[o],i=a.f;if(!(!s&&a===p)){var f=(i&m)===0;if(f&&w(a,t),(i&Oe)!==0)Me.add(a);else if((i&T)!==0){var u=a;D?.delete(u),(i&re)===0&&(i&O&&(p===null||(p.f&Ne)===0)&&(a.f|=re),Lt(u,j,n))}else if(f){var c=a;(i&I)!==0&&H!==null&&H.add(c),n!==null?n.push(c):We(c)}}}}function he(e){if(typeof e!="object"||e===null||Q in e)return e;const t=pt(e);if(t!==rn&&t!==sn)return e;var n=new Map,r=en(e),s=Y(0),l=te,o=a=>{if(te===l)return a();var i=d,f=te;z(null),vt(l);var u=a();return z(i),vt(f),u};return r&&n.set("length",Y(e.length)),new Proxy(e,{defineProperty(a,i,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&yn();var u=n.get(i);return u===void 0?o(()=>{var c=Y(f.value);return n.set(i,c),c}):K(u,f.value,!0),!0},deleteProperty(a,i){var f=n.get(i);if(f===void 0){if(i in a){const u=o(()=>Y(b));n.set(i,u),Be(s)}}else K(f,b),Be(s);return!0},get(a,i,f){if(i===Q)return e;var u=n.get(i),c=i in a;if(u===void 0&&(!c||ve(a,i)?.writable)&&(u=o(()=>{var h=he(c?a[i]:b),v=Y(h);return v}),n.set(i,u)),u!==void 0){var _=ue(u);return _===b?void 0:_}return Reflect.get(a,i,f)},getOwnPropertyDescriptor(a,i){var f=Reflect.getOwnPropertyDescriptor(a,i);if(f&&"value"in f){var u=n.get(i);u&&(f.value=ue(u))}else if(f===void 0){var c=n.get(i),_=c?.v;if(c!==void 0&&_!==b)return{enumerable:!0,configurable:!0,value:_,writable:!0}}return f},has(a,i){if(i===Q)return!0;var f=n.get(i),u=f!==void 0&&f.v!==b||Reflect.has(a,i);if(f!==void 0||p!==null&&(!u||ve(a,i)?.writable)){f===void 0&&(f=o(()=>{var _=u?he(a[i]):b,h=Y(_);return h}),n.set(i,f));var c=ue(f);if(c===b)return!1}return u},set(a,i,f,u){var c=n.get(i),_=i in a;if(r&&i==="length")for(var h=f;h<c.v;h+=1){var v=n.get(h+"");v!==void 0?K(v,b):h in a&&(v=o(()=>Y(b)),n.set(h+"",v))}if(c===void 0)(!_||ve(a,i)?.writable)&&(c=o(()=>Y(void 0)),K(c,he(f)),n.set(i,c));else{_=c.v!==b;var k=o(()=>he(f));K(c,k)}var Te=Reflect.getOwnPropertyDescriptor(a,i);if(Te?.set&&Te.set.call(u,f),!_){if(r&&typeof i=="string"){var it=n.get("length"),He=Number(i);Number.isInteger(He)&&He>=it.v&&K(it,He+1)}Be(s)}return!0},ownKeys(a){ue(s);var i=Reflect.ownKeys(a).filter(c=>{var _=n.get(c);return _===void 0||_.v!==b});for(var[f,u]of n)u.v!==b&&!(f in a)&&i.push(f);return i},setPrototypeOf(){wn()}})}function ct(e){try{if(e!==null&&typeof e=="object"&&Q in e)return e[Q]}catch{}return e}function Gr(e,t){return Object.is(ct(e),ct(t))}var _t,Yn,qn,jt,Ht;function zr(){if(_t===void 0){_t=window,Yn=document,qn=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;jt=ve(t,"firstChild").get,Ht=ve(t,"nextSibling").get,lt(e)&&(e[un]=void 0,e[an]=null,e[on]=void 0,e.__e=void 0),lt(n)&&(n[cn]=void 0)}}function Pe(e=""){return document.createTextNode(e)}function Fe(e){return jt.call(e)}function $(e){return Ht.call(e)}function $r(e,t){if(!U)return Fe(e);var n=Fe(S);if(n===null)n=S.appendChild(Pe());else if(t&&n.nodeType!==je){var r=Pe();return n?.before(r),ce(r),r}return t&&tt(n),ce(n),n}function Kr(e,t=!1){if(!U){var n=Fe(e);return n instanceof Comment&&n.data===""?$(n):n}if(t){if(S?.nodeType!==je){var r=Pe();return S?.before(r),ce(r),r}tt(S)}return S}function Xr(e,t=1,n=!1){let r=U?S:e;for(var s;t--;)s=r,r=$(r);if(!U)return r;if(n){if(r?.nodeType!==je){var l=Pe();return r===null?s?.after(l):r.before(l),ce(l),l}tt(r)}return ce(r),r}function Bn(e){e.textContent=""}function Zr(){return!1}function Wr(e,t,n){return document.createElementNS(t??Tn,e,void 0)}function tt(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===je;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function Jr(e){U&&Fe(e)!==null&&Bn(e)}let dt=!1;function Un(){dt||(dt=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(const t of e.target.elements)t[Se]?.()})},{capture:!0}))}function nt(e){var t=d,n=p;z(null),_e(null);try{return e()}finally{z(t),_e(n)}}function Qr(e,t,n,r=n){e.addEventListener(t,()=>nt(n));const s=e[Se];s?e[Se]=()=>{s(),r(!0)}:e[Se]=()=>r(!0),Un()}function Yt(e){p===null&&(d===null&&vn(),hn()),G&&dn()}function Vn(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function P(e,t){var n=p;n!==null&&(n.f&N)!==0&&(e|=N);var r={ctx:g,deps:null,nodes:null,f:e|m|O,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null};y?.register_created_effect(r);var s=r;if((e&ne)!==0)ae!==null?ae.push(r):V.ensure().schedule(r);else if(t!==null){try{de(r)}catch(o){throw se(r),o}s.deps===null&&s.teardown===null&&s.nodes===null&&s.first===s.last&&(s.f&be)===0&&(s=s.first,(e&I)!==0&&(e&xe)!==0&&s!==null&&(s.f|=xe))}if(s!==null&&(s.parent=n,n!==null&&Vn(s,n),d!==null&&(d.f&T)!==0&&(e&B)===0)){var l=d;(l.effects??=[]).push(s)}return r}function qt(){return d!==null&&!M}function Gn(e){const t=P(we,null);return w(t,E),t.teardown=e,t}function zn(e){Yt();var t=p.f,n=!d&&(t&L)!==0&&(t&ie)===0;if(n){var r=g;(r.e??=[]).push(e)}else return Bt(e)}function Bt(e){return P(ne|Et,e)}function es(e){return Yt(),P(we|Et,e)}function ts(e){V.ensure();const t=P(B|be,e);return(n={})=>new Promise(r=>{n.outro?Zn(t,()=>{se(t),r(void 0)}):(se(t),r(void 0))})}function ns(e){return P(ne,e)}function $n(e){return P(oe|be,e)}function rs(e,t=0){return P(we|t,e)}function ss(e,t=[],n=[],r=[]){It(r,t,n,s=>{P(we,()=>e(...s.map(ue)))})}function is(e,t=[],n=[],r=[]){It(r,t,n,s=>{P(ne,()=>e(...s.map(ue)))})}function ls(e,t=0){var n=P(I|t,e);return n}function fs(e){return P(L|be,e)}function Ut(e){var t=e.teardown;if(t!==null){const n=G,r=d;ht(!0),z(null);try{t.call(null)}finally{ht(n),z(r)}}}function rt(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const s=n.ac;s!==null&&nt(()=>{s.abort(Le)});var r=n.next;(n.f&B)!==0?n.parent=null:se(n,t),n=r}}function Kn(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&L)===0&&se(t),t=n}}function se(e,t=!0){var n=!1;(t||(e.f&fn)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(Xn(e.nodes.start,e.nodes.end),n=!0),w(e,ft),rt(e,t&&!n),ye(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(const l of r)l.stop();Ut(e),e.f^=ft,e.f|=F;var s=e.parent;s!==null&&s.first!==null&&Vt(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function Xn(e,t){for(;e!==null;){var n=e===t?null:$(e);e.remove(),e=n}}function Vt(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function Zn(e,t,n=!0){var r=[];Gt(e,r,!0);var s=()=>{n&&se(e),t&&t()},l=r.length;if(l>0){var o=()=>--l||s();for(var a of r)a.out(o)}else s()}function Gt(e,t,n){if((e.f&N)===0){e.f^=N;var r=e.nodes&&e.nodes.t;if(r!==null)for(const a of r)(a.is_global||n)&&t.push(a);for(var s=e.first;s!==null;){var l=s.next;if((s.f&B)===0){var o=(s.f&xe)!==0||(s.f&L)!==0&&(e.f&I)!==0;Gt(s,t,o?n:!1)}s=l}}}function as(e){zt(e,!0)}function zt(e,t){if((e.f&N)!==0){e.f^=N,(e.f&E)===0&&(w(e,m),V.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,s=(n.f&xe)!==0||(n.f&L)!==0;zt(n,s?t:!1),n=r}var l=e.nodes&&e.nodes.t;if(l!==null)for(const o of l)(o.is_global||t)&&o.in()}}function us(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var s=n===r?null:$(n);t.append(n),n=s}}let Re=!1,G=!1;function ht(e){G=e}let d=null,M=!1;function z(e){d=e}let p=null;function _e(e){p=e}let C=null;function $t(e){d!==null&&(C===null?C=[e]:C.push(e))}let A=null,R=0,x=null;function Wn(e){x=e}let Kt=1,Z=0,te=Z;function vt(e){te=e}function Xt(){return++Kt}function me(e){var t=e.f;if((t&m)!==0)return!0;if(t&T&&(e.f&=~re),(t&j)!==0){for(var n=e.deps,r=n.length,s=0;s<r;s++){var l=n[s];if(me(l)&&Mt(l),l.wv>e.wv)return!0}(t&O)!==0&&D===null&&w(e,E)}return!1}function Zt(e,t,n=!0){var r=e.reactions;if(r!==null&&!(C!==null&&W.call(C,e)))for(var s=0;s<r.length;s++){var l=r[s];(l.f&T)!==0?Zt(l,t,!1):t===l&&(n?w(l,m):(l.f&E)!==0&&w(l,j),We(l))}}function Wt(e){var t=A,n=R,r=x,s=d,l=C,o=g,a=M,i=te,f=e.f;A=null,R=0,x=null,d=(f&(L|B))===0?e:null,C=null,Ce(e.ctx),M=!1,te=++Z,e.ac!==null&&(nt(()=>{e.ac.abort(Le)}),e.ac=null);try{e.f|=Ne;var u=e.fn,c=u();e.f|=ie;var _=e.deps,h=y?.is_fork;if(A!==null){var v;if(h||ye(e,R),_!==null&&R>0)for(_.length=R+A.length,v=0;v<A.length;v++)_[R+v]=A[v];else e.deps=_=A;if(qt()&&(e.f&O)!==0)for(v=R;v<_.length;v++)(_[v].reactions??=[]).push(e)}else!h&&_!==null&&R<_.length&&(ye(e,R),_.length=R);if(ge()&&x!==null&&!M&&_!==null&&(e.f&(T|j|m))===0)for(v=0;v<x.length;v++)Zt(x[v],e);if(s!==null&&s!==e){if(Z++,s.deps!==null)for(let k=0;k<n;k+=1)s.deps[k].rv=Z;if(t!==null)for(const k of t)k.rv=Z;x!==null&&(r===null?r=x:r.push(...x))}return(e.f&q)!==0&&(e.f^=q),c}catch(k){return kn(k)}finally{e.f^=Ne,A=t,R=n,x=r,d=s,C=l,Ce(o),M=a,te=i}}function Jn(e,t){let n=t.reactions;if(n!==null){var r=tn.call(n,e);if(r!==-1){var s=n.length-1;s===0?n=t.reactions=null:(n[r]=n[s],n.pop())}}if(n===null&&(t.f&T)!==0&&(A===null||!W.call(A,t))){var l=t;(l.f&O)!==0&&(l.f^=O,l.f&=~re),l.v!==b&&Xe(l),jn(l),ye(l,0)}}function ye(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Jn(e,n[r])}function de(e){var t=e.f;if((t&F)===0){w(e,E);var n=p,r=Re;p=e,Re=!0;try{(t&(I|bt))!==0?Kn(e):rt(e),Ut(e);var s=Wt(e);e.teardown=typeof s=="function"?s:null,e.wv=Kt;var l}finally{Re=r,p=n}}}async function os(){await Promise.resolve(),In()}function cs(){return V.ensure().settled()}function ue(e){var t=e.f,n=(t&T)!==0;if(d!==null&&!M){var r=p!==null&&(p.f&F)!==0;if(!r&&(C===null||!W.call(C,e))){var s=d.deps;if((d.f&Ne)!==0)e.rv<Z&&(e.rv=Z,A===null&&s!==null&&s[R]===e?R++:A===null?A=[e]:A.push(e));else{d.deps??=[],W.call(d.deps,e)||d.deps.push(e);var l=e.reactions;l===null?e.reactions=[d]:W.call(l,d)||l.push(d)}}}if(G&&ee.has(e))return ee.get(e);if(n){var o=e;if(G){var a=o.v;return((o.f&E)===0&&o.reactions!==null||Qt(o))&&(a=Qe(o)),ee.set(o,a),a}var i=(o.f&O)===0&&!M&&d!==null&&(Re||(d.f&O)!==0),f=(o.f&ie)===0;me(o)&&(i&&(o.f|=O),Mt(o)),i&&!f&&(Pt(o),Jt(o))}if(D?.has(e))return D.get(e);if((e.f&q)!==0)throw e.v;return e.v}function Jt(e){if(e.f|=O,e.deps!==null)for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&T)!==0&&(t.f&O)===0&&(Pt(t),Jt(t))}function Qt(e){if(e.v===b)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(ee.has(t)||(t.f&T)!==0&&Qt(t))return!0;return!1}function st(e){var t=M;try{return M=!0,e()}finally{M=t}}function _s(e){if(!(typeof e!="object"||!e||e instanceof EventTarget)){if(Q in e)ze(e);else if(!Array.isArray(e))for(let t in e){const n=e[t];typeof n=="object"&&n&&Q in n&&ze(n)}}}function ze(e,t=new Set){if(typeof e=="object"&&e!==null&&!(e instanceof EventTarget)&&!t.has(e)){t.add(e),e instanceof Date&&e.getTime();for(let r in e)try{ze(e[r],t)}catch{}const n=pt(e);if(n!==Object.prototype&&n!==Array.prototype&&n!==Map.prototype&&n!==Set.prototype&&n!==Date.prototype){const r=nn(n);for(let s in r){const l=r[s].get;if(l)try{l.call(e)}catch{}}}}}function Qn(e){g===null&&mt(),Ee&&g.l!==null?er(g).m.push(e):zn(()=>{const t=st(e);if(typeof t=="function")return t})}function ds(e){g===null&&mt(),Qn(()=>()=>st(e))}function er(e){var t=e.l;return t.u??={a:[],b:[],m:[]}}export{Yn as $,an as A,I as B,un as C,F as D,vr as E,Se as F,kr as G,fn as H,N as I,cn as J,je as K,lr as L,Ar as M,Tn as N,p as O,mr as P,d as Q,ie as R,Q as S,Sr as T,Un as U,tr as V,ls as W,fs as X,$r as Y,Bn as Z,g as _,ln as a,Nr as a$,ts as a0,Wr as a1,Pe as a2,y as a3,_s as a4,xn as a5,is as a6,nr as a7,Je as a8,qr as a9,en as aA,G as aB,qn as aC,rr as aD,Ee as aE,Qr as aF,tt as aG,us as aH,Vr as aI,Pr as aJ,J as aK,ds as aL,Qn as aM,Zn as aN,Yr as aO,_r as aP,he as aQ,Hr as aR,at as aS,Lr as aT,Xn as aU,Jr as aV,rs as aW,Mr as aX,as as aY,sr as aZ,yt as a_,Fn as aa,se as ab,or as ac,ns as ad,qt as ae,jr as af,Kr as ag,In as ah,Br as ai,ue as aj,ve as ak,nn as al,Fe as am,$ as an,pt as ao,kn as ap,Dr as aq,S as ar,U as as,cr as at,Ke as au,Be as av,zr as aw,Ge as ax,Ie as ay,Gr as az,L as b,K as b0,_e as b1,z as b2,Ce as b3,ce as b4,Ir as b5,cs as b6,Zr as b7,Xr as b8,Fr as b9,et as ba,Y as bb,xt as bc,Cr as bd,dr as be,Gn as bf,ss as bg,os as bh,st as bi,Ur as bj,zn as bk,es as bl,nt as bm,Nn as bn,V as c,gt as d,ft as e,yr as f,pr as g,wr as h,hr as i,ir as j,be as k,xe as l,mn as m,$e as n,En as o,gn as p,Rr as q,ur as r,fr as s,Or as t,xr as u,br as v,Tr as w,Er as x,gr as y,on as z};
|
|
2
|
+
//# sourceMappingURL=Cum3gQOV.js.map
|