wherever-dev 0.2.0 → 0.3.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.
Files changed (68) hide show
  1. package/dist/index.js +119 -15
  2. package/dist/index.js.map +1 -1
  3. package/dist/protocol.d.ts +13 -0
  4. package/dist/protocol.d.ts.map +1 -1
  5. package/dist/protocol.js +5 -1
  6. package/dist/protocol.js.map +1 -1
  7. package/dist/session-pool.d.ts +24 -0
  8. package/dist/session-pool.d.ts.map +1 -1
  9. package/dist/session-pool.js +106 -2
  10. package/dist/session-pool.js.map +1 -1
  11. package/package.json +1 -1
  12. package/public/_app/immutable/assets/0.q9wI9TO7.css +1 -0
  13. package/public/_app/immutable/chunks/6X7J6WvW.js +2 -0
  14. package/public/_app/immutable/chunks/{_lppinj8.js.map → 6X7J6WvW.js.map} +1 -1
  15. package/public/_app/immutable/chunks/Bd0XWRPL.js +2 -0
  16. package/public/_app/immutable/chunks/{BqMutrfe.js.map → Bd0XWRPL.js.map} +1 -1
  17. package/public/_app/immutable/chunks/BmiXjuDY.js +2 -0
  18. package/public/_app/immutable/chunks/{DiYtJzYU.js.map → BmiXjuDY.js.map} +1 -1
  19. package/public/_app/immutable/chunks/Bx-JhvcJ.js +2 -0
  20. package/public/_app/immutable/chunks/{BEWoN05F.js.map → Bx-JhvcJ.js.map} +1 -1
  21. package/public/_app/immutable/chunks/DRkv8Frb.js +2 -0
  22. package/public/_app/immutable/chunks/{B5WJGjcR.js.map → DRkv8Frb.js.map} +1 -1
  23. package/public/_app/immutable/chunks/D_-ITvkp.js +2 -0
  24. package/public/_app/immutable/chunks/D_-ITvkp.js.map +1 -0
  25. package/public/_app/immutable/chunks/Db42-KyD.js +3 -0
  26. package/public/_app/immutable/chunks/{DFxBx2vA.js.map → Db42-KyD.js.map} +1 -1
  27. package/public/_app/immutable/entry/app.BCW_w5jE.js +3 -0
  28. package/public/_app/immutable/entry/app.BCW_w5jE.js.map +1 -0
  29. package/public/_app/immutable/entry/start.B21iffdh.js +2 -0
  30. package/public/_app/immutable/entry/start.B21iffdh.js.map +1 -0
  31. package/public/_app/immutable/nodes/0.DzrPFEHh.js +4 -0
  32. package/public/_app/immutable/nodes/{0.BzvDOlXz.js.map → 0.DzrPFEHh.js.map} +1 -1
  33. package/public/_app/immutable/nodes/1.BiDjgup0.js +2 -0
  34. package/public/_app/immutable/nodes/{1.DMtW3tA5.js.map → 1.BiDjgup0.js.map} +1 -1
  35. package/public/_app/immutable/nodes/2.0Tnfs-pB.js +25 -0
  36. package/public/_app/immutable/nodes/2.0Tnfs-pB.js.map +1 -0
  37. package/public/_app/version.json +1 -1
  38. package/public/index.html +16 -16
  39. package/public/pwa/apple-touch-icon.png +0 -0
  40. package/public/pwa/favicon-192.png +0 -0
  41. package/public/pwa/favicon-512.png +0 -0
  42. package/public/pwa/favicon.ico +0 -0
  43. package/public/pwa/favicon.svg +1 -0
  44. package/public/pwa/manifest.webmanifest +31 -7
  45. package/public/pwa/maskable-192.png +0 -0
  46. package/public/pwa/maskable-512.png +0 -0
  47. package/public/pwa/screenshot-desktop.png +0 -0
  48. package/public/pwa/screenshot-mobile.png +0 -0
  49. package/public/robots.txt +5 -0
  50. package/public/service-worker.js +1 -305
  51. package/public/_app/immutable/assets/0.DvZxoQjW.css +0 -2754
  52. package/public/_app/immutable/chunks/B5WJGjcR.js +0 -23
  53. package/public/_app/immutable/chunks/BEWoN05F.js +0 -110
  54. package/public/_app/immutable/chunks/BqMutrfe.js +0 -2129
  55. package/public/_app/immutable/chunks/DFxBx2vA.js +0 -897
  56. package/public/_app/immutable/chunks/DiYtJzYU.js +0 -396
  57. package/public/_app/immutable/chunks/_lppinj8.js +0 -879
  58. package/public/_app/immutable/chunks/rMw82gDs.js +0 -3048
  59. package/public/_app/immutable/chunks/rMw82gDs.js.map +0 -1
  60. package/public/_app/immutable/entry/app.BFki2czn.js +0 -309
  61. package/public/_app/immutable/entry/app.BFki2czn.js.map +0 -1
  62. package/public/_app/immutable/entry/start.BceUuq27.js +0 -6
  63. package/public/_app/immutable/entry/start.BceUuq27.js.map +0 -1
  64. package/public/_app/immutable/nodes/0.BzvDOlXz.js +0 -546
  65. package/public/_app/immutable/nodes/1.DMtW3tA5.js +0 -24
  66. package/public/_app/immutable/nodes/2.CnZp8abw.js +0 -5152
  67. package/public/_app/immutable/nodes/2.CnZp8abw.js.map +0 -1
  68. package/public/icon.png +0 -0
@@ -0,0 +1,2 @@
1
+ import{aH as A,aF as U,b7 as F,aX as O,af as k,ag as b,ba as x,a4 as Y,aT as $,a8 as p,aJ as C,_ as T,U as R,a0 as J,ap as P,ao as w,aE as q,b2 as z,Q as G,an as H,l as Q,aP as X,b4 as Z,a$ as j,b0 as D,ah as K,aL as V,w as W,aM as ee,ay as te,J as se,D as ae,P as re,bd as ne,aB as ie,v as fe,t as ue,a5 as M,a7 as ce,u as oe,S as de,L as _e}from"./D_-ITvkp.js";let m=!1,E=Symbol("unmounted");function be(a,t,s){const e=s[t]??={store:null,source:U(void 0),unsubscribe:A};if(e.store!==a&&!(E in s))if(e.unsubscribe(),e.store=a??null,a==null)e.source.v=void 0,e.unsubscribe=A;else{var r=!0;e.unsubscribe=F(a,n=>{r?e.source.v=n:O(e.source,n)}),r=!1}return a&&E in s?k(a):b(e.source)}function ge(){const a={};function t(){x(()=>{for(var s in a)a[s].unsubscribe();Y(a,E,{enumerable:!1,value:!0})})}return[a,t]}function le(a){var t=m;try{return m=!1,[a(),m]}finally{m=t}}class he{anchor;#t=new Map;#s=new Map;#e=new Map;#a=new Set;#r=!0;constructor(t,s=!0){this.anchor=t,this.#r=s}#n=t=>{if(this.#t.has(t)){var s=this.#t.get(t),e=this.#s.get(s);if(e)$(e),this.#a.delete(s);else{var r=this.#e.get(s);r&&(this.#s.set(s,r.effect),this.#e.delete(s),r.fragment.lastChild.remove(),this.anchor.before(r.fragment),e=r.effect)}for(const[n,f]of this.#t){if(this.#t.delete(n),n===t)break;const i=this.#e.get(f);i&&(p(i.effect),this.#e.delete(f))}for(const[n,f]of this.#s){if(n===s||this.#a.has(n))continue;const i=()=>{if(Array.from(this.#t.values()).includes(n)){var o=document.createDocumentFragment();q(f,o),o.append(T()),this.#e.set(n,{effect:f,fragment:o})}else p(f);this.#a.delete(n),this.#s.delete(n)};this.#r||!e?(this.#a.add(n),C(f,i,!1)):i()}}};#i=t=>{this.#t.delete(t);const s=Array.from(this.#t.values());for(const[e,r]of this.#e)s.includes(e)||(p(r.effect),this.#e.delete(e))};ensure(t,s){var e=J,r=z();if(s&&!this.#s.has(t)&&!this.#e.has(t))if(r){var n=document.createDocumentFragment(),f=T();n.append(f),this.#e.set(t,{effect:R(()=>s(f)),fragment:n})}else this.#s.set(t,R(()=>s(this.anchor)));if(this.#t.set(e,t),r){for(const[i,u]of this.#s)i===t?e.unskip_effect(u):e.skip_effect(u);for(const[i,u]of this.#e)i===t?e.unskip_effect(u.effect):e.skip_effect(u.effect);e.oncommit(this.#n),e.ondiscard(this.#i)}else P&&(this.anchor=w),this.#n(e)}}function me(a,t,s=!1){var e;P&&(e=w,H());var r=new he(a),n=s?Q:0;function f(i,u){if(P){var o=X(e);if(i!==parseInt(o.substring(1))){var _=Z();j(_),r.anchor=_,D(!1),r.ensure(i,u),D(!0);return}}r.ensure(i,u)}G(()=>{var i=!1;t((u,o=0)=>{i=!0,f(o,u)}),i||f(-1,null)},n)}function Se(a,t,s,e){var r=!ie||(s&fe)!==0,n=(s&re)!==0,f=(s&oe)!==0,i=e,u=!0,o=void 0,_=()=>f&&r?(o??=M(e),b(o)):(u&&(u=!1,i=f?ne(e):e),i);let l;if(n){var L=de in a||_e in a;l=K(a,t)?.set??(L&&t in a?c=>a[t]=c:void 0)}var h,I=!1;n?[h,I]=le(()=>a[t]):h=a[t],h===void 0&&e!==void 0&&(h=_(),l&&(r&&V(),l(h)));var d;if(r?d=()=>{var c=a[t];return c===void 0?_():(u=!0,c)}:d=()=>{var c=a[t];return c!==void 0&&(i=void 0),c===void 0?i:c},r&&(s&W)===0)return d;if(l){var B=a.$$legacy;return(function(c,g){return arguments.length>0?((!r||!g||B||I)&&l(g?d():c),c):d()})}var S=!1,v=((s&ue)!==0?M:ce)(()=>(S=!1,d()));n&&b(v);var N=se;return(function(c,g){if(arguments.length>0){const y=g?b(v):r&&n?ee(c):c;return O(v,y),S=!0,i!==void 0&&(i=y),c}return te&&S||(N.f&ae)!==0?v.v:b(v)})}export{he as B,be as a,me as i,Se as p,ge as s};
2
+ //# sourceMappingURL=BmiXjuDY.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DiYtJzYU.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":["get_store","get","offscreen","branch","fn","e.props_invalid_value"],"mappings":";AAqBA,IAAI,mBAAmB;AAEvB,IAAI,eAAe,uBAAO,WAAW;AAY9B,SAAS,UAAU,OAAO,YAAY,QAAQ;AACpD,QAAM,QAAS,OAAO,UAAU,MAAM;AAAA,IACrC,OAAO;AAAA,IACP,QAAQ,eAAe,MAAS;AAAA,IAChC,aAAa;AAAA,EACf;AAOC,MAAI,MAAM,UAAU,SAAS,EAAE,gBAAgB,SAAS;AACvD,UAAM,YAAW;AACjB,UAAM,QAAQ,SAAS;AAEvB,QAAI,SAAS,MAAM;AAClB,YAAM,OAAO,IAAI;AACjB,YAAM,cAAc;AAAA,IACrB,OAAO;AACN,UAAI,0BAA0B;AAE9B,YAAM,cAAc,mBAAmB,OAAO,CAAC,MAAM;AACpD,YAAI,yBAAyB;AAG5B,gBAAM,OAAO,IAAI;AAAA,QAClB,OAAO;AACN,cAAI,MAAM,QAAQ,CAAC;AAAA,QACpB;AAAA,MACD,CAAC;AAED,gCAA0B;AAAA,IAC3B;AAAA,EACD;AAKA,MAAI,SAAS,gBAAgB,QAAQ;AACpC,WAAOA,IAAU,KAAK;AAAA,EACvB;AAEA,SAAOC,MAAI,MAAM,MAAM;AACxB;A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,OAA8B,UAAU;AAClE,YAAI,UAAU,SAAS,GAAG;AAKzB,cAAI,CAAC,SAAS,CAAC,YAAY,iBAAiB,cAAc;AACjC,YAAC,OAAQ,WAAW,OAAM,IAAK,KAAK;AAAA,UAC7D;AAEA,iBAAO;AAAA,QACR;AAEA,eAAO,OAAM;AAAA,MACd;AAAA;AAAA,EAEF;AAMA,MAAI,aAAa;AAEjB,MAAI,MAAM,QAAQ,wBAAwB,IAAI,UAAU,oBAAoB,MAAM;AACjF,iBAAa;AACb,WAAO,OAAM;AAAA,EACd,CAAC;AAOD,MAAI,SAAUJ,OAAI,CAAC;AAEnB,MAAI;AAAA;AAAA,IAAuC;AAAA;AAE3C;AAAA;AAAA,KACC,SAA6B,OAA8B,UAAU;AACpE,UAAI,UAAU,SAAS,GAAG;AACzB,cAAM,YAAY,WAAWA,MAAI,CAAC,IAAI,SAAS,WAAW,MAAM,KAAK,IAAI;AAEzE,YAAI,GAAG,SAAS;AAChB,qBAAa;AAEb,YAAI,mBAAmB,QAAW;AACjC,2BAAiB;AAAA,QAClB;AAEA,eAAO;AAAA,MACR;AAKA,UAAK,wBAAwB,eAAgB,cAAc,IAAI,eAAe,GAAG;AAChF,eAAO,EAAE;AAAA,MACV;AAEA,aAAOA,MAAI,CAAC;AAAA,IACb;AAAA;AAEF;","x_google_ignoreList":[0,1,2,3]}
1
+ {"version":3,"file":"BmiXjuDY.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":"2WAqBA,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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AAKC,CAAK,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,GAAMX,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]}
@@ -0,0 +1,2 @@
1
+ import{X as E,aa as S,aR as y,bd as b,J as k,e as P,S as g}from"./D_-ITvkp.js";function w(n,s){return n===s||n?.[g]===s}function N(n={},s,i,p){var u=E.r,d=k;return S(()=>{var r,e;return y(()=>{r=e,e=[],b(()=>{w(i(...e),n)||(s(n,...e),r&&w(i(...r),n)&&s(null,...r))})}),()=>{let o=d;for(;o!==u&&o.parent!==null&&o.parent.f&P;)o=o.parent;const v=()=>{e&&w(i(...e),n)&&s(null,...e)},t=o.teardown;o.teardown=()=>{v(),t?.()}}}),n}const L="modulepreload",R=function(n,s){return new URL(n,s).href},m={},T=function(s,i,p){let u=Promise.resolve();if(i&&i.length>0){let v=function(t){return Promise.all(t.map(c=>Promise.resolve(c).then(l=>({status:"fulfilled",value:l}),l=>({status:"rejected",reason:l}))))};const r=document.getElementsByTagName("link"),e=document.querySelector("meta[property=csp-nonce]"),o=e?.nonce||e?.getAttribute("nonce");u=v(i.map(t=>{if(t=R(t,p),t in m)return;m[t]=!0;const c=t.endsWith(".css"),l=c?'[rel="stylesheet"]':"";if(p)for(let f=r.length-1;f>=0;f--){const h=r[f];if(h.href===t&&(!c||h.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${t}"]${l}`))return;const a=document.createElement("link");if(a.rel=c?"stylesheet":L,c||(a.as="script"),a.crossOrigin="",a.href=t,o&&a.setAttribute("nonce",o),document.head.appendChild(a),c)return new Promise((f,h)=>{a.addEventListener("load",f),a.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${t}`)))})}))}function d(r){const e=new Event("vite:preloadError",{cancelable:!0});if(e.payload=r,window.dispatchEvent(e),!e.defaultPrevented)throw r}return u.then(r=>{for(const e of r||[])e.status==="rejected"&&d(e.reason);return s().catch(d)})};export{T as _,N as b};
2
+ //# sourceMappingURL=Bx-JhvcJ.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"BEWoN05F.js","sources":["../../../../../../../node_modules/.pnpm/svelte@5.55.9/node_modules/svelte/src/internal/client/dom/elements/bindings/this.js"],"sourcesContent":["/** @import { ComponentContext, Effect } from '#client' */\nimport { DESTROYING, STATE_SYMBOL } from '#client/constants';\nimport { component_context } from '../../../context.js';\nimport { effect, render_effect } from '../../../reactivity/effects.js';\nimport { active_effect, untrack } from '../../../runtime.js';\n\n/**\n * @param {any} bound_value\n * @param {Element} element_or_component\n * @returns {boolean}\n */\nfunction is_bound_this(bound_value, element_or_component) {\n\treturn (\n\t\tbound_value === element_or_component || bound_value?.[STATE_SYMBOL] === element_or_component\n\t);\n}\n\n/**\n * @param {any} element_or_component\n * @param {(value: unknown, ...parts: unknown[]) => void} update\n * @param {(...parts: unknown[]) => unknown} get_value\n * @param {() => unknown[]} [get_parts] Set if the this binding is used inside an each block,\n * \t\t\t\t\t\t\t\t\t\treturns all the parts of the each block context that are used in the expression\n * @returns {void}\n */\nexport function bind_this(element_or_component = {}, update, get_value, get_parts) {\n\tvar component_effect = /** @type {ComponentContext} */ (component_context).r;\n\tvar parent = /** @type {Effect} */ (active_effect);\n\n\teffect(() => {\n\t\t/** @type {unknown[]} */\n\t\tvar old_parts;\n\n\t\t/** @type {unknown[]} */\n\t\tvar parts;\n\n\t\trender_effect(() => {\n\t\t\told_parts = parts;\n\t\t\t// We only track changes to the parts, not the value itself to avoid unnecessary reruns.\n\t\t\tparts = get_parts?.() || [];\n\n\t\t\tuntrack(() => {\n\t\t\t\tif (!is_bound_this(get_value(...parts), element_or_component)) {\n\t\t\t\t\tupdate(element_or_component, ...parts);\n\t\t\t\t\t// If this is an effect rerun (cause: each block context changes), then nullify the binding at\n\t\t\t\t\t// the previous position if it isn't already taken over by a different effect.\n\t\t\t\t\tif (old_parts && is_bound_this(get_value(...old_parts), element_or_component)) {\n\t\t\t\t\t\tupdate(null, ...old_parts);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t});\n\n\t\treturn () => {\n\t\t\t// When the bind:this effect is destroyed, we go up the effect parent chain until we find the last parent effect that is destroyed,\n\t\t\t// or the effect containing the component bind:this is in (whichever comes first). That way we can time the nulling of the binding\n\t\t\t// as close to user/developer expectation as possible.\n\t\t\t// TODO Svelte 6: Decide if we want to keep this logic or just always null the binding in the component effect's teardown\n\t\t\t// (which would be simpler, but less intuitive in some cases, and breaks the `ondestroy-before-cleanup` test)\n\t\t\tlet p = parent;\n\t\t\twhile (p !== component_effect && p.parent !== null && p.parent.f & DESTROYING) {\n\t\t\t\tp = p.parent;\n\t\t\t}\n\t\t\tconst teardown = () => {\n\t\t\t\tif (parts && is_bound_this(get_value(...parts), element_or_component)) {\n\t\t\t\t\tupdate(null, ...parts);\n\t\t\t\t}\n\t\t\t};\n\t\t\tconst original_teardown = p.teardown;\n\t\t\tp.teardown = () => {\n\t\t\t\tteardown();\n\t\t\t\toriginal_teardown?.();\n\t\t\t};\n\t\t};\n\t});\n\n\treturn element_or_component;\n}\n"],"names":[],"mappings":";AAWA,SAAS,cAAc,aAAa,sBAAsB;AACzD,SACC,gBAAgB,wBAAwB,cAAc,YAAY,MAAM;AAE1E;AAUO,SAAS,UAAU,uBAAuB,CAAA,GAAI,QAAQ,WAAW,WAAW;AAClF,MAAI;AAAA;AAAA,IAAoD,kBAAmB;AAAA;AAC3E,MAAI;AAAA;AAAA,IAAgC;AAAA;AAEpC,SAAO,MAAM;AAEZ,QAAI;AAGJ,QAAI;AAEJ,kBAAc,MAAM;AACnB,kBAAY;AAEZ,cAAyB,CAAA;AAEzB,cAAQ,MAAM;AACb,YAAI,CAAC,cAAc,UAAU,GAAG,KAAK,GAAG,oBAAoB,GAAG;AAC9D,iBAAO,sBAAsB,GAAG,KAAK;AAGrC,cAAI,aAAa,cAAc,UAAU,GAAG,SAAS,GAAG,oBAAoB,GAAG;AAC9E,mBAAO,MAAM,GAAG,SAAS;AAAA,UAC1B;AAAA,QACD;AAAA,MACD,CAAC;AAAA,IACF,CAAC;AAED,WAAO,MAAM;AAMZ,UAAI,IAAI;AACR,aAAO,MAAM,oBAAoB,EAAE,WAAW,QAAQ,EAAE,OAAO,IAAI,YAAY;AAC9E,YAAI,EAAE;AAAA,MACP;AACA,YAAM,WAAW,MAAM;AACtB,YAAI,SAAS,cAAc,UAAU,GAAG,KAAK,GAAG,oBAAoB,GAAG;AACtE,iBAAO,MAAM,GAAG,KAAK;AAAA,QACtB;AAAA,MACD;AACA,YAAM,oBAAoB,EAAE;AAC5B,QAAE,WAAW,MAAM;AAClB,iBAAQ;AACR,4BAAiB;AAAA,MAClB;AAAA,IACD;AAAA,EACD,CAAC;AAED,SAAO;AACR;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"Bx-JhvcJ.js","sources":["../../../../../../../node_modules/.pnpm/svelte@5.55.9/node_modules/svelte/src/internal/client/dom/elements/bindings/this.js"],"sourcesContent":["/** @import { ComponentContext, Effect } from '#client' */\nimport { DESTROYING, STATE_SYMBOL } from '#client/constants';\nimport { component_context } from '../../../context.js';\nimport { effect, render_effect } from '../../../reactivity/effects.js';\nimport { active_effect, untrack } from '../../../runtime.js';\n\n/**\n * @param {any} bound_value\n * @param {Element} element_or_component\n * @returns {boolean}\n */\nfunction is_bound_this(bound_value, element_or_component) {\n\treturn (\n\t\tbound_value === element_or_component || bound_value?.[STATE_SYMBOL] === element_or_component\n\t);\n}\n\n/**\n * @param {any} element_or_component\n * @param {(value: unknown, ...parts: unknown[]) => void} update\n * @param {(...parts: unknown[]) => unknown} get_value\n * @param {() => unknown[]} [get_parts] Set if the this binding is used inside an each block,\n * \t\t\t\t\t\t\t\t\t\treturns all the parts of the each block context that are used in the expression\n * @returns {void}\n */\nexport function bind_this(element_or_component = {}, update, get_value, get_parts) {\n\tvar component_effect = /** @type {ComponentContext} */ (component_context).r;\n\tvar parent = /** @type {Effect} */ (active_effect);\n\n\teffect(() => {\n\t\t/** @type {unknown[]} */\n\t\tvar old_parts;\n\n\t\t/** @type {unknown[]} */\n\t\tvar parts;\n\n\t\trender_effect(() => {\n\t\t\told_parts = parts;\n\t\t\t// We only track changes to the parts, not the value itself to avoid unnecessary reruns.\n\t\t\tparts = get_parts?.() || [];\n\n\t\t\tuntrack(() => {\n\t\t\t\tif (!is_bound_this(get_value(...parts), element_or_component)) {\n\t\t\t\t\tupdate(element_or_component, ...parts);\n\t\t\t\t\t// If this is an effect rerun (cause: each block context changes), then nullify the binding at\n\t\t\t\t\t// the previous position if it isn't already taken over by a different effect.\n\t\t\t\t\tif (old_parts && is_bound_this(get_value(...old_parts), element_or_component)) {\n\t\t\t\t\t\tupdate(null, ...old_parts);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t});\n\n\t\treturn () => {\n\t\t\t// When the bind:this effect is destroyed, we go up the effect parent chain until we find the last parent effect that is destroyed,\n\t\t\t// or the effect containing the component bind:this is in (whichever comes first). That way we can time the nulling of the binding\n\t\t\t// as close to user/developer expectation as possible.\n\t\t\t// TODO Svelte 6: Decide if we want to keep this logic or just always null the binding in the component effect's teardown\n\t\t\t// (which would be simpler, but less intuitive in some cases, and breaks the `ondestroy-before-cleanup` test)\n\t\t\tlet p = parent;\n\t\t\twhile (p !== component_effect && p.parent !== null && p.parent.f & DESTROYING) {\n\t\t\t\tp = p.parent;\n\t\t\t}\n\t\t\tconst teardown = () => {\n\t\t\t\tif (parts && is_bound_this(get_value(...parts), element_or_component)) {\n\t\t\t\t\tupdate(null, ...parts);\n\t\t\t\t}\n\t\t\t};\n\t\t\tconst original_teardown = p.teardown;\n\t\t\tp.teardown = () => {\n\t\t\t\tteardown();\n\t\t\t\toriginal_teardown?.();\n\t\t\t};\n\t\t};\n\t});\n\n\treturn element_or_component;\n}\n"],"names":["is_bound_this","bound_value","element_or_component","STATE_SYMBOL","bind_this","update","get_value","get_parts","component_effect","component_context","parent","active_effect","effect","old_parts","parts","render_effect","untrack","p","DESTROYING","teardown","original_teardown"],"mappings":"+EAWA,SAASA,EAAcC,EAAaC,EAAsB,CACzD,OACCD,IAAgBC,GAAwBD,IAAcE,CAAY,IAAMD,CAE1E,CAUO,SAASE,EAAUF,EAAuB,CAAA,EAAIG,EAAQC,EAAWC,EAAW,CAClF,IAAIC,EAAoDC,EAAmB,EACvEC,EAAgCC,EAEpC,OAAAC,EAAO,IAAM,CAEZ,IAAIC,EAGAC,EAEJ,OAAAC,EAAc,IAAM,CACnBF,EAAYC,EAEZA,EAAyB,CAAA,EAEzBE,EAAQ,IAAM,CACRhB,EAAcM,EAAU,GAAGQ,CAAK,EAAGZ,CAAoB,IAC3DG,EAAOH,EAAsB,GAAGY,CAAK,EAGjCD,GAAab,EAAcM,EAAU,GAAGO,CAAS,EAAGX,CAAoB,GAC3EG,EAAO,KAAM,GAAGQ,CAAS,EAG5B,CAAC,CACF,CAAC,EAEM,IAAM,CAMZ,IAAII,EAAIP,EACR,KAAOO,IAAMT,GAAoBS,EAAE,SAAW,MAAQA,EAAE,OAAO,EAAIC,GAClED,EAAIA,EAAE,OAEP,MAAME,EAAW,IAAM,CAClBL,GAASd,EAAcM,EAAU,GAAGQ,CAAK,EAAGZ,CAAoB,GACnEG,EAAO,KAAM,GAAGS,CAAK,CAEvB,EACMM,EAAoBH,EAAE,SAC5BA,EAAE,SAAW,IAAM,CAClBE,EAAQ,EACRC,IAAiB,CAClB,CACD,CACD,CAAC,EAEMlB,CACR","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ import{c as e,p as t}from"./Bd0XWRPL.js";const r={get error(){return t.error},get state(){return t.state},get status(){return t.status},get url(){return t.url}};e.updated.check;const a=r;export{a as p};
2
+ //# sourceMappingURL=DRkv8Frb.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"B5WJGjcR.js","sources":["../../../../../../../node_modules/.pnpm/@sveltejs+kit@2.60.1_@sveltejs+vite-plugin-svelte@6.2.4_svelte@5.55.9_vite@7.3.3_@types_ac1ec6d1aabbf669ecff7a76377acaa9/node_modules/@sveltejs/kit/src/runtime/app/state/client.js","../../../../../../../node_modules/.pnpm/@sveltejs+kit@2.60.1_@sveltejs+vite-plugin-svelte@6.2.4_svelte@5.55.9_vite@7.3.3_@types_ac1ec6d1aabbf669ecff7a76377acaa9/node_modules/@sveltejs/kit/src/runtime/app/state/index.js"],"sourcesContent":["import {\n\tpage as _page,\n\tnavigating as _navigating,\n\tupdated as _updated\n} from '../../client/state.svelte.js';\nimport { stores } from '../../client/client.js';\n\nexport const page = {\n\tget data() {\n\t\treturn _page.data;\n\t},\n\tget error() {\n\t\treturn _page.error;\n\t},\n\tget form() {\n\t\treturn _page.form;\n\t},\n\tget params() {\n\t\treturn _page.params;\n\t},\n\tget route() {\n\t\treturn _page.route;\n\t},\n\tget state() {\n\t\treturn _page.state;\n\t},\n\tget status() {\n\t\treturn _page.status;\n\t},\n\tget url() {\n\t\treturn _page.url;\n\t}\n};\n\nexport const navigating = {\n\tget from() {\n\t\treturn _navigating.current ? _navigating.current.from : null;\n\t},\n\tget to() {\n\t\treturn _navigating.current ? _navigating.current.to : null;\n\t},\n\tget type() {\n\t\treturn _navigating.current ? _navigating.current.type : null;\n\t},\n\tget willUnload() {\n\t\treturn _navigating.current ? _navigating.current.willUnload : null;\n\t},\n\tget delta() {\n\t\treturn _navigating.current ? _navigating.current.delta : null;\n\t},\n\tget complete() {\n\t\treturn _navigating.current ? _navigating.current.complete : null;\n\t}\n};\n\nObject.defineProperty(navigating, 'current', {\n\tget() {\n\t\t// between 2.12.0 and 2.12.1 `navigating.current` existed\n\t\tthrow new Error('Replace navigating.current.<prop> with navigating.<prop>');\n\t}\n});\n\nexport const updated = {\n\tget current() {\n\t\treturn _updated.current;\n\t},\n\tcheck: stores.updated.check\n};\n","import {\n\tpage as client_page,\n\tnavigating as client_navigating,\n\tupdated as client_updated\n} from './client.js';\nimport {\n\tpage as server_page,\n\tnavigating as server_navigating,\n\tupdated as server_updated\n} from './server.js';\nimport { BROWSER } from 'esm-env';\n\n/**\n * A read-only reactive object with information about the current page, serving several use cases:\n * - retrieving the combined `data` of all pages/layouts anywhere in your component tree (also see [loading data](https://svelte.dev/docs/kit/load))\n * - retrieving the current value of the `form` prop anywhere in your component tree (also see [form actions](https://svelte.dev/docs/kit/form-actions))\n * - retrieving the page state that was set through `goto`, `pushState` or `replaceState` (also see [goto](https://svelte.dev/docs/kit/$app-navigation#goto) and [shallow routing](https://svelte.dev/docs/kit/shallow-routing))\n * - retrieving metadata such as the URL you're on, the current route and its parameters, and whether or not there was an error\n *\n * ```svelte\n * <!--- file: +layout.svelte --->\n * <script>\n * \timport { page } from '$app/state';\n * </script>\n *\n * <p>Currently at {page.url.pathname}</p>\n *\n * {#if page.error}\n * \t<span class=\"red\">Problem detected</span>\n * {:else}\n * \t<span class=\"small\">All systems operational</span>\n * {/if}\n * ```\n *\n * Changes to `page` are available exclusively with runes. (The legacy reactivity syntax will not reflect any changes)\n *\n * ```svelte\n * <!--- file: +page.svelte --->\n * <script>\n * \timport { page } from '$app/state';\n * \tconst id = $derived(page.params.id); // This will correctly update id for usage on this page\n * \t$: badId = page.params.id; // Do not use; will never update after initial load\n * </script>\n * ```\n *\n * On the server, values can only be read during rendering (in other words _not_ in e.g. `load` functions). In the browser, the values can be read at any time.\n *\n * @type {import('@sveltejs/kit').Page}\n */\nexport const page = BROWSER ? client_page : server_page;\n\n/**\n * A read-only object representing an in-progress navigation, with `from`, `to`, `type` and (if `type === 'popstate'`) `delta` properties.\n * Values are `null` when no navigation is occurring, or during server rendering.\n * @type {import('@sveltejs/kit').Navigation | { from: null, to: null, type: null, willUnload: null, delta: null, complete: null }}\n */\n// @ts-expect-error\nexport const navigating = BROWSER ? client_navigating : server_navigating;\n\n/**\n * A read-only reactive value that's initially `false`. If [`version.pollInterval`](https://svelte.dev/docs/kit/configuration#version) is a non-zero value, SvelteKit will poll for new versions of the app and update `current` to `true` when it detects one. `updated.check()` will force an immediate check, regardless of polling.\n * @type {{ get current(): boolean; check(): Promise<boolean>; }}\n */\nexport const updated = BROWSER ? client_updated : server_updated;\n"],"names":["page","_page","client_page"],"mappings":";AAOO,MAAMA,SAAO;AAAA,EAInB,IAAI,QAAQ;AACX,WAAOC,OAAM;AAAA,EACd;AAAA,EAUA,IAAI,QAAQ;AACX,WAAOA,OAAM;AAAA,EACd;AAAA,EACA,IAAI,SAAS;AACZ,WAAOA,OAAM;AAAA,EACd;AAAA,EACA,IAAI,MAAM;AACT,WAAOA,OAAM;AAAA,EACd;AACD;AAAA,CA8BuB;AAAA,EAItB,OAAO,OAAO,QAAQ;AACvB;AClBY,MAAC,OAAiBC;","x_google_ignoreList":[0,1]}
1
+ {"version":3,"file":"DRkv8Frb.js","sources":["../../../../../../../node_modules/.pnpm/@sveltejs+kit@2.60.1_@sveltejs+vite-plugin-svelte@6.2.4_svelte@5.55.9_vite@7.3.3_@types_ac1ec6d1aabbf669ecff7a76377acaa9/node_modules/@sveltejs/kit/src/runtime/app/state/client.js","../../../../../../../node_modules/.pnpm/@sveltejs+kit@2.60.1_@sveltejs+vite-plugin-svelte@6.2.4_svelte@5.55.9_vite@7.3.3_@types_ac1ec6d1aabbf669ecff7a76377acaa9/node_modules/@sveltejs/kit/src/runtime/app/state/index.js"],"sourcesContent":["import {\n\tpage as _page,\n\tnavigating as _navigating,\n\tupdated as _updated\n} from '../../client/state.svelte.js';\nimport { stores } from '../../client/client.js';\n\nexport const page = {\n\tget data() {\n\t\treturn _page.data;\n\t},\n\tget error() {\n\t\treturn _page.error;\n\t},\n\tget form() {\n\t\treturn _page.form;\n\t},\n\tget params() {\n\t\treturn _page.params;\n\t},\n\tget route() {\n\t\treturn _page.route;\n\t},\n\tget state() {\n\t\treturn _page.state;\n\t},\n\tget status() {\n\t\treturn _page.status;\n\t},\n\tget url() {\n\t\treturn _page.url;\n\t}\n};\n\nexport const navigating = {\n\tget from() {\n\t\treturn _navigating.current ? _navigating.current.from : null;\n\t},\n\tget to() {\n\t\treturn _navigating.current ? _navigating.current.to : null;\n\t},\n\tget type() {\n\t\treturn _navigating.current ? _navigating.current.type : null;\n\t},\n\tget willUnload() {\n\t\treturn _navigating.current ? _navigating.current.willUnload : null;\n\t},\n\tget delta() {\n\t\treturn _navigating.current ? _navigating.current.delta : null;\n\t},\n\tget complete() {\n\t\treturn _navigating.current ? _navigating.current.complete : null;\n\t}\n};\n\nObject.defineProperty(navigating, 'current', {\n\tget() {\n\t\t// between 2.12.0 and 2.12.1 `navigating.current` existed\n\t\tthrow new Error('Replace navigating.current.<prop> with navigating.<prop>');\n\t}\n});\n\nexport const updated = {\n\tget current() {\n\t\treturn _updated.current;\n\t},\n\tcheck: stores.updated.check\n};\n","import {\n\tpage as client_page,\n\tnavigating as client_navigating,\n\tupdated as client_updated\n} from './client.js';\nimport {\n\tpage as server_page,\n\tnavigating as server_navigating,\n\tupdated as server_updated\n} from './server.js';\nimport { BROWSER } from 'esm-env';\n\n/**\n * A read-only reactive object with information about the current page, serving several use cases:\n * - retrieving the combined `data` of all pages/layouts anywhere in your component tree (also see [loading data](https://svelte.dev/docs/kit/load))\n * - retrieving the current value of the `form` prop anywhere in your component tree (also see [form actions](https://svelte.dev/docs/kit/form-actions))\n * - retrieving the page state that was set through `goto`, `pushState` or `replaceState` (also see [goto](https://svelte.dev/docs/kit/$app-navigation#goto) and [shallow routing](https://svelte.dev/docs/kit/shallow-routing))\n * - retrieving metadata such as the URL you're on, the current route and its parameters, and whether or not there was an error\n *\n * ```svelte\n * <!--- file: +layout.svelte --->\n * <script>\n * \timport { page } from '$app/state';\n * </script>\n *\n * <p>Currently at {page.url.pathname}</p>\n *\n * {#if page.error}\n * \t<span class=\"red\">Problem detected</span>\n * {:else}\n * \t<span class=\"small\">All systems operational</span>\n * {/if}\n * ```\n *\n * Changes to `page` are available exclusively with runes. (The legacy reactivity syntax will not reflect any changes)\n *\n * ```svelte\n * <!--- file: +page.svelte --->\n * <script>\n * \timport { page } from '$app/state';\n * \tconst id = $derived(page.params.id); // This will correctly update id for usage on this page\n * \t$: badId = page.params.id; // Do not use; will never update after initial load\n * </script>\n * ```\n *\n * On the server, values can only be read during rendering (in other words _not_ in e.g. `load` functions). In the browser, the values can be read at any time.\n *\n * @type {import('@sveltejs/kit').Page}\n */\nexport const page = BROWSER ? client_page : server_page;\n\n/**\n * A read-only object representing an in-progress navigation, with `from`, `to`, `type` and (if `type === 'popstate'`) `delta` properties.\n * Values are `null` when no navigation is occurring, or during server rendering.\n * @type {import('@sveltejs/kit').Navigation | { from: null, to: null, type: null, willUnload: null, delta: null, complete: null }}\n */\n// @ts-expect-error\nexport const navigating = BROWSER ? client_navigating : server_navigating;\n\n/**\n * A read-only reactive value that's initially `false`. If [`version.pollInterval`](https://svelte.dev/docs/kit/configuration#version) is a non-zero value, SvelteKit will poll for new versions of the app and update `current` to `true` when it detects one. `updated.check()` will force an immediate check, regardless of polling.\n * @type {{ get current(): boolean; check(): Promise<boolean>; }}\n */\nexport const updated = BROWSER ? client_updated : server_updated;\n"],"names":["page","_page","stores","client_page"],"mappings":"yCAOO,MAAMA,EAAO,CAInB,IAAI,OAAQ,CACX,OAAOC,EAAM,KACd,EAUA,IAAI,OAAQ,CACX,OAAOA,EAAM,KACd,EACA,IAAI,QAAS,CACZ,OAAOA,EAAM,MACd,EACA,IAAI,KAAM,CACT,OAAOA,EAAM,GACd,CACD,EAkCQC,EAAO,QAAQ,MCjBX,MAACF,EAAiBG","x_google_ignoreList":[0,1]}
@@ -0,0 +1,2 @@
1
+ var Qt=Array.isArray,en=Array.prototype.indexOf,W=Array.prototype.includes,er=Array.from,tr=Object.defineProperty,he=Object.getOwnPropertyDescriptor,tn=Object.getOwnPropertyDescriptors,nn=Object.prototype,rn=Array.prototype,ht=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 vn(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function hn(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,vr=2,hr=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";function An(){console.warn("https://svelte.dev/e/derived_inert")}function Ke(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function Rr(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function xr(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let U=!1;function Or(e){U=e}let S;function ce(e){if(e===null)throw Ke(),$e;return S=e}function Nr(){return ce($(S))}function Cr(e){if(U){if($(S)!==null)throw Ke(),$e;S=e}}function Ir(e=1){if(U){for(var t=e,n=S;t--;)n=$(n);S=n}}function Dr(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 Pr(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 Mr(){Ee=!0}let g=null;function Ce(e){g=e}function Fr(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 Lr(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 jr(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 h=t(r?f[0]:f,o,a);l?o(h):c=typeof h=="function"?h:J},v=s.map((h,k)=>kt(h,Te=>{f[k]=Te,u&=~(1<<k),i&&_()},()=>{u|=1<<k}));return i=!0,_(),function(){pt(v),c(),i=!1}})}function Hr(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;#v=0;#r=new Map;#y=null;#e=[];#w=[];#i=new Set;#t=new Set;#n=new Map;#h=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.#h.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.#h.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.#v===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,[_,v]]of this.current){if(u.current.has(c)){var r=u.current.get(c)[0];if(t&&_!==r)u.current.set(c,[_,v]);else continue}n.push(c)}if(t)for(const[c,_]of this.async_deriveds){const v=u.async_deriveds.get(c);v&&_.promise.then(v.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.#h)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.#v+=1,t){let r=this.#r.get(n)??0;this.#r.set(n,r+1)}}decrement(t,n){if(this.#v-=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=Pn(),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(v){Ie(v,o)}De()}}var u=Ct();if(n.length===0){i.then(()=>f(t.map(s))).finally(u);return}function c(){Promise.all(n.map(_=>Mn(_))).then(_=>f([...t.map(s),..._])).catch(_=>Ie(_,o)).finally(u)}i?i.then(()=>{a(),c(),De()}):c()}function Pn(){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 Mn(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,v=>{v!==Le&&f.reject(v)}).finally(De)}catch(v){f.reject(v),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 v of a.values())v.reject(Ae);a.add(f),u.async_deriveds.set(i,f)}const _=(v,h=void 0)=>{c?.(),a.delete(f),h!==Ae&&(u.activate(),h?(l.f|=q,Ge(l,h)):((l.f&q)!==0&&(l.f^=q),Ge(l,v)),u.deactivate())};f.promise.then(_,v=>_(null,v||"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 Yr(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 Pe=new Set;const ee=new Map;let Pt=!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 qr(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&&(!P||(d.f&Oe)!==0)&&ge()&&(d.f&(T|I|oe|Oe))!==0&&(C===null||!W.call(C,e))&&bn();let r=n?ve(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(),Mt(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&&Pe.size>0&&!Pt&&Hn()}return t}function Hn(){Pt=!1;for(const e of Pe){(e.f&E)!==0&&w(e,j);let t;try{t=me(e)}catch{t=!0}t&&de(e)}Pe.clear()}function Be(e){K(e,e.v+1)}function Mt(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)Pe.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),Mt(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 ve(e){if(typeof e!="object"||e===null||Q in e)return e;const t=ht(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),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||he(a,i)?.writable)&&(u=o(()=>{var v=ve(c?a[i]:b),h=Y(v);return h}),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||he(a,i)?.writable)){f===void 0&&(f=o(()=>{var _=u?ve(a[i]):b,v=Y(_);return v}),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 v=f;v<c.v;v+=1){var h=n.get(v+"");h!==void 0?K(h,b):v in a&&(h=o(()=>Y(b)),n.set(v+"",h))}if(c===void 0)(!_||he(a,i)?.writable)&&(c=o(()=>Y(void 0)),K(c,ve(f)),n.set(i,c));else{_=c.v!==b;var k=o(()=>ve(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 Br(e,t){return Object.is(ot(e),ot(t))}var ct,Yn,qn,Ft,Lt;function Ur(){if(ct===void 0){ct=window,Yn=document,qn=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Ft=he(t,"firstChild").get,Lt=he(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 Me(e=""){return document.createTextNode(e)}function Fe(e){return Ft.call(e)}function $(e){return Lt.call(e)}function Vr(e,t){if(!U)return Fe(e);var n=Fe(S);if(n===null)n=S.appendChild(Me());else if(t&&n.nodeType!==je){var r=Me();return n?.before(r),ce(r),r}return t&&tt(n),ce(n),n}function Gr(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=Me();return S?.before(r),ce(r),r}tt(S)}return S}function zr(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=Me();return r===null?s?.after(l):r.before(l),ce(l),l}tt(r)}return ce(r),r}function Bn(e){e.textContent=""}function $r(){return!1}function Kr(e,t,n){return document.createElementNS(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 Xr(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 Zr(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&&hn(),vn()),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 M(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&&!P}function Gn(e){const t=M(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 M(ne|bt,e)}function Wr(e){return jt(),M(we|bt,e)}function Jr(e){V.ensure();const t=M(B|be,e);return(n={})=>new Promise(r=>{n.outro?Zn(t,()=>{se(t),r(void 0)}):(se(t),r(void 0))})}function Qr(e){return M(ne,e)}function $n(e){return M(oe|be,e)}function es(e,t=0){return M(we|t,e)}function ts(e,t=[],n=[],r=[]){Nt(r,t,n,s=>{M(we,()=>e(...s.map(ue)))})}function ns(e,t=[],n=[],r=[]){Nt(r,t,n,s=>{M(ne,()=>e(...s.map(ue)))})}function rs(e,t=0){var n=M(I|t,e);return n}function ss(e){return M(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 is(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 ls(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,P=!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 vt(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=P,i=te,f=e.f;A=null,R=0,x=null,d=(f&(L|B))===0?e:null,C=null,Ce(e.ctx),P=!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,v=y?.is_fork;if(A!==null){var h;if(v||ye(e,R),_!==null&&R>0)for(_.length=R+A.length,h=0;h<A.length;h++)_[R+h]=A[h];else e.deps=_=A;if(Ht()&&(e.f&O)!==0)for(h=R;h<_.length;h++)(_[h].reactions??=[]).push(e)}else!v&&_!==null&&R<_.length&&(ye(e,R),_.length=R);if(ge()&&x!==null&&!P&&_!==null&&(e.f&(T|j|m))===0)for(h=0;h<x.length;h++)Kt(x[h],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),P=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 fs(){await Promise.resolve(),In()}function as(){return V.ensure().settled()}function ue(e){var t=e.f,n=(t&T)!==0;if(d!==null&&!P){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&&!P&&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=P;try{return P=!0,e()}finally{P=t}}function us(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=ht(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 os(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,vr as E,Se as F,Tr as G,ln as H,N as I,p as J,d as K,ir as L,Un as M,Tn as N,er as O,gr as P,rs as Q,ie as R,Q as S,Ar as T,ss as U,Vr as V,Bn as W,g as X,Jr as Y,Kr as Z,Me as _,sn as a,ce as a$,y as a0,us as a1,xn as a2,ns as a3,tr as a4,Je as a5,jr as a6,Fn as a7,se as a8,ur as a9,nr as aA,Ee as aB,Zr as aC,tt as aD,ls as aE,qr as aF,Ir as aG,J as aH,os as aI,Zn as aJ,Lr as aK,cr as aL,ve as aM,Fr as aN,ft as aO,Pr as aP,Xr as aQ,es as aR,Cr as aS,is as aT,rr as aU,pt as aV,Rr as aW,K as aX,_e as aY,z as aZ,Ce as a_,Qr as aa,Ht as ab,Mr as ac,Gr as ad,In as ae,Hr as af,ue as ag,he as ah,tn as ai,Fe as aj,$ as ak,ht as al,kn as am,Nr as an,S as ao,U as ap,or as aq,Ke as ar,Be as as,Ur as at,Ge as au,Ie as av,Br as aw,Qt as ax,G as ay,qn as az,L as b,Or as b0,as as b1,$r as b2,zr as b3,Dr as b4,et as b5,Y as b6,kt as b7,xr as b8,_r as b9,Gn as ba,ts as bb,fs as bc,Jt as bd,Yr as be,zn as bf,Wr as bg,nt as bh,Nn as bi,V as c,Et as d,lt as e,pr as f,hr 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,wr as t,mr as u,br as v,Er as w,Sr as x,on as y,je as z};
2
+ //# sourceMappingURL=D_-ITvkp.js.map