@dirwell/theme-ledger 0.0.0-stage → 0.0.1-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Dirwell contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,17 @@
1
- # Temporary Holding Version
1
+ # @dirwell/theme-ledger
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Svelte owns the server markup, client state, keyed rows, search, sorting, dialogs, navigation and cleanup. No framework-neutral serialized UI tree or imperative theme controller is used.
4
+
5
+ Use `createLedgerTheme({ title: "Sample downloads" })` with `@dirwell/core` and an explicit listing policy. Paged HTML preserves native links without JavaScript. The browser loads and validates the complete compact listing before enabling directory-wide search and sorting; directories exceeding 500 visible rows use measured row virtualization. Folder snapshots resolve navigation URLs before updating History.
6
+
7
+ The current alpha surface includes directory type filtering, fuzzy search, name/size/modified sorting, natural/locale/Unicode names, color schemes, timestamp details, archive search, and keyboard selection. Legacy project/label/component overrides are not yet a migration contract. File URLs use native navigation and pagination.
8
+
9
+ The package contains a separately compiled classic browser script and Node server renderer. Svelte is a dependency of this theme, not core or Plain. No Open Graph image implementation is bundled.
10
+
11
+ ## Component source
12
+
13
+ Import the official component from this package's `/source` entry and model/row
14
+ types from `/model`. Use `@dirwell/theme-authoring` to compile the same wrapper
15
+ for SSR and client, or its `/dev` entry for trusted local HMR. Header, row content
16
+ and footer are customizable; official navigation and interaction ownership is
17
+ retained. See [the authoring guide](../theme-authoring/README.md).
@@ -0,0 +1,30 @@
1
+ clsx@2.1.1
2
+ MIT License
3
+
4
+ Copyright (c) Luke Edwards <luke.edwards05@gmail.com> (lukeed.com)
5
+
6
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
7
+
8
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
9
+
10
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
11
+
12
+
13
+ esm-env@1.2.2
14
+ Copyright 2022 Benjamin McCann
15
+
16
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
17
+
18
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
19
+
20
+ THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21
+
22
+
23
+ svelte@5.57.2
24
+ Copyright (c) 2016-2025 [Svelte Contributors](https://github.com/sveltejs/svelte/graphs/contributors)
25
+
26
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
27
+
28
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
29
+
30
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/dist/client.js ADDED
@@ -0,0 +1,82 @@
1
+ /*!
2
+ clsx@2.1.1
3
+ MIT License
4
+
5
+ Copyright (c) Luke Edwards <luke.edwards05@gmail.com> (lukeed.com)
6
+
7
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
8
+
9
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
10
+
11
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
12
+
13
+
14
+ esm-env@1.2.2
15
+ Copyright 2022 Benjamin McCann
16
+
17
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
18
+
19
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
20
+
21
+ THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
+
23
+
24
+ svelte@5.57.2
25
+ Copyright (c) 2016-2025 [Svelte Contributors](https://github.com/sveltejs/svelte/graphs/contributors)
26
+
27
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
28
+
29
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
30
+
31
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
32
+
33
+ */
34
+ "use strict";(()=>{var ec=Object.defineProperty;var Ra=e=>{throw TypeError(e)};var tc=(e,t,r)=>t in e?ec(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var q=(e,t,r)=>tc(e,typeof t!="symbol"?t+"":t,r),ns=(e,t,r)=>t.has(e)||Ra("Cannot "+r);var f=(e,t,r)=>(ns(e,t,"read from private field"),r?r.call(e):t.get(e)),I=(e,t,r)=>t.has(e)?Ra("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),R=(e,t,r,n)=>(ns(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),C=(e,t,r)=>(ns(e,t,"access private method"),r);var Ca=globalThis.process?.env?.NODE_ENV,m=Ca&&!Ca.toLowerCase().startsWith("prod");var It=Array.isArray,Oa=Array.prototype.indexOf,ar=Array.prototype.includes,pn=Array.from,os=Object.keys,Te=Object.defineProperty,lt=Object.getOwnPropertyDescriptor,Bo=Object.getOwnPropertyDescriptors,is=Object.prototype,Ia=Array.prototype,Ur=Object.getPrototypeOf,ss=Object.isExtensible;var Yt=()=>{};function Uo(e){for(var t=0;t<e.length;t++)e[t]()}function Yo(){var e,t,r=new Promise((n,o)=>{e=n,t=o});return{promise:r,resolve:e,reject:t}}var He=Symbol("$state"),Vo=Symbol("component"),qo=Symbol("legacy props"),Da=Symbol(""),zo=Symbol("proxy path"),jo=Symbol("attributes"),as=Symbol("class"),Wn=Symbol("style"),Xn=Symbol("text"),Ar=Symbol("form reset"),ls=Symbol("hmr anchor"),lr=new class extends Error{constructor(){super(...arguments);q(this,"name","StaleReactionError");q(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}},fs=!!globalThis.document?.contentType&&globalThis.document.contentType.includes("xml");var Yr=3,ft=8;var Je={};var Z=Symbol("uninitialized"),Ze=Symbol("filename");var Go="http://www.w3.org/1999/xhtml",Jn="http://www.w3.org/2000/svg",cs="http://www.w3.org/1998/Math/MathML";var Vt="font-weight: bold",qt="font-weight: normal";function Ma(e){m?console.warn(`%c[svelte] await_reactivity_loss
35
+ %cDetected reactivity loss when reading \`${e}\`. This happens when state is read in an async function after an earlier \`await\`
36
+ https://svelte.dev/e/await_reactivity_loss`,Vt,qt):console.warn("https://svelte.dev/e/await_reactivity_loss")}function La(e,t){m?console.warn(`%c[svelte] await_waterfall
37
+ %cAn async derived, \`${e}\` (${t}) was not read immediately after it resolved. This often indicates an unnecessary waterfall, which can slow down your app
38
+ https://svelte.dev/e/await_waterfall`,Vt,qt):console.warn("https://svelte.dev/e/await_waterfall")}function Fa(){m?console.warn(`%c[svelte] derived_inert
39
+ %cReading a derived belonging to a now-destroyed effect may result in stale values
40
+ https://svelte.dev/e/derived_inert`,Vt,qt):console.warn("https://svelte.dev/e/derived_inert")}function Pa(e,t,r){m?console.warn(`%c[svelte] hydration_attribute_changed
41
+ %cThe \`${e}\` attribute on \`${t}\` changed its value between server and client renders. The client value, \`${r}\`, will be ignored in favour of the server value
42
+ https://svelte.dev/e/hydration_attribute_changed`,Vt,qt):console.warn("https://svelte.dev/e/hydration_attribute_changed")}function Ha(e){m?console.warn(`%c[svelte] hydration_html_changed
43
+ %c${e?`The value of an \`{@html ...}\` block ${e} changed between server and client renders. The client value will be ignored in favour of the server value`:"The value of an `{@html ...}` block changed between server and client renders. The client value will be ignored in favour of the server value"}
44
+ https://svelte.dev/e/hydration_html_changed`,Vt,qt):console.warn("https://svelte.dev/e/hydration_html_changed")}function kr(e){m?console.warn(`%c[svelte] hydration_mismatch
45
+ %c${e?`Hydration failed because the initial UI does not match what was rendered on the server. The error occurred near ${e}`:"Hydration failed because the initial UI does not match what was rendered on the server"}
46
+ https://svelte.dev/e/hydration_mismatch`,Vt,qt):console.warn("https://svelte.dev/e/hydration_mismatch")}function Ba(){m?console.warn(`%c[svelte] lifecycle_double_unmount
47
+ %cTried to unmount a component that was not mounted
48
+ https://svelte.dev/e/lifecycle_double_unmount`,Vt,qt):console.warn("https://svelte.dev/e/lifecycle_double_unmount")}function Ua(){m?console.warn("%c[svelte] select_multiple_invalid_value\n%cThe `value` property of a `<select multiple>` element should be an array, but it received a non-array value. The selection will be kept as is.\nhttps://svelte.dev/e/select_multiple_invalid_value",Vt,qt):console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function Ko(e){m?console.warn(`%c[svelte] state_proxy_equality_mismatch
49
+ %cReactive \`$state(...)\` proxies and the values they proxy have different identities. Because of this, comparisons with \`${e}\` will produce unexpected results
50
+ https://svelte.dev/e/state_proxy_equality_mismatch`,Vt,qt):console.warn("https://svelte.dev/e/state_proxy_equality_mismatch")}function Ya(){m?console.warn("%c[svelte] svelte_boundary_reset_noop\n%cA `<svelte:boundary>` `reset` function only resets the boundary the first time it is called\nhttps://svelte.dev/e/svelte_boundary_reset_noop",Vt,qt):console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}var $=!1;function ve(e){$=e}var O;function z(e){if(e===null)throw kr(),Je;return O=e}function Ae(){return z(ke(O))}function P(e){if($){if(ke(O)!==null)throw kr(),Je;O=e}}function Vr(e=1){if($){for(var t=e,r=O;t--;)r=ke(r);O=r}}function zt(e=!0){for(var t=0,r=O;;){if(r.nodeType===ft){var n=r.data;if(n==="]"){if(t===0)return r;t-=1}else(n==="["||n==="[!"||n[0]==="["&&!isNaN(Number(n.slice(1))))&&(t+=1)}var o=ke(r);e&&r.remove(),r=o}}function qr(e){if(!e||e.nodeType!==ft)throw kr(),Je;return e.data}function Wo(e){return e===this.v}function Xo(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Jo(e){return!Xo(e,this.v)}function Va(e){if(m){let t=new Error(`invariant_violation
51
+ An invariant violation occurred, meaning Svelte's internal assumptions were flawed. This is a bug in Svelte, not your app \u2014 please open an issue at https://github.com/sveltejs/svelte, citing the following message: "${e}"
52
+ https://svelte.dev/e/invariant_violation`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/invariant_violation")}function Zo(e){if(m){let t=new Error(`lifecycle_outside_component
53
+ \`${e}(...)\` can only be used during component initialisation
54
+ https://svelte.dev/e/lifecycle_outside_component`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function za(){if(m){let e=new Error("async_derived_orphan\nCannot create a `$derived(...)` with an `await` expression outside of an effect tree\nhttps://svelte.dev/e/async_derived_orphan");throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/async_derived_orphan")}function us(){if(m){let e=new Error("bind_invalid_checkbox_value\nUsing `bind:value` together with a checkbox input is not allowed. Use `bind:checked` instead\nhttps://svelte.dev/e/bind_invalid_checkbox_value");throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/bind_invalid_checkbox_value")}function ja(){if(m){let e=new Error(`derived_references_self
55
+ A derived value cannot reference itself recursively
56
+ https://svelte.dev/e/derived_references_self`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/derived_references_self")}function ds(e,t,r){if(m){let n=new Error(`each_key_duplicate
57
+ ${r?`Keyed each block has duplicate key \`${r}\` at indexes ${e} and ${t}`:`Keyed each block has duplicate key at indexes ${e} and ${t}`}
58
+ https://svelte.dev/e/each_key_duplicate`);throw n.name="Svelte error",n}else throw new Error("https://svelte.dev/e/each_key_duplicate")}function Ga(e,t,r){if(m){let n=new Error(`each_key_volatile
59
+ Keyed each block has key that is not idempotent \u2014 the key for item at index ${e} was \`${t}\` but is now \`${r}\`. Keys must be the same each time for a given item
60
+ https://svelte.dev/e/each_key_volatile`);throw n.name="Svelte error",n}else throw new Error("https://svelte.dev/e/each_key_volatile")}function Ka(e){if(m){let t=new Error(`effect_in_teardown
61
+ \`${e}\` cannot be used inside an effect cleanup function
62
+ https://svelte.dev/e/effect_in_teardown`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/effect_in_teardown")}function Wa(){if(m){let e=new Error("effect_in_unowned_derived\nEffect cannot be created inside a `$derived` value that was not itself created inside an effect\nhttps://svelte.dev/e/effect_in_unowned_derived");throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Xa(e){if(m){let t=new Error(`effect_orphan
63
+ \`${e}\` can only be used inside an effect (e.g. during component initialisation)
64
+ https://svelte.dev/e/effect_orphan`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/effect_orphan")}function Ja(){if(m){let e=new Error(`effect_update_depth_exceeded
65
+ Maximum update depth exceeded. This typically indicates that an effect reads and writes the same piece of state
66
+ https://svelte.dev/e/effect_update_depth_exceeded`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Za(){if(m){let e=new Error(`hydration_failed
67
+ Failed to hydrate the application
68
+ https://svelte.dev/e/hydration_failed`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/hydration_failed")}function Qa(){if(m){let e=new Error("invalid_snippet\nCould not `{@render}` snippet due to the expression being `null` or `undefined`. Consider using optional chaining `{@render snippet?.()}`\nhttps://svelte.dev/e/invalid_snippet");throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/invalid_snippet")}function el(e){if(m){let t=new Error(`rune_outside_svelte
69
+ The \`${e}\` rune is only available inside \`.svelte\` and \`.svelte.js/ts\` files
70
+ https://svelte.dev/e/rune_outside_svelte`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/rune_outside_svelte")}function tl(){if(m){let e=new Error("state_descriptors_fixed\nProperty descriptors defined on `$state` objects must contain `value` and always be `enumerable`, `configurable` and `writable`.\nhttps://svelte.dev/e/state_descriptors_fixed");throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function rl(){if(m){let e=new Error("state_prototype_fixed\nCannot set prototype of `$state` object\nhttps://svelte.dev/e/state_prototype_fixed");throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/state_prototype_fixed")}function nl(){if(m){let e=new Error("state_unsafe_mutation\nUpdating state inside `$derived(...)`, `$inspect(...)` or a template expression is forbidden. If the value should not be reactive, declare it without `$state`\nhttps://svelte.dev/e/state_unsafe_mutation");throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function ol(){if(m){let e=new Error("svelte_boundary_reset_onerror\nA `<svelte:boundary>` `reset` function cannot be called while an error is still being handled\nhttps://svelte.dev/e/svelte_boundary_reset_onerror");throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}var ge=!1,Sr=!1,Dt=!1;var Qn=null;function Be(e,t){return e.label=t,ei(e.v,t),e}function ei(e,t){return e?.[zo]?.(t),e}function Mt(e){let t=new Error,r=nc();return r.length===0?null:(r.unshift(`
71
+ `),Te(t,"stack",{value:r.join(`
72
+ `)}),Te(t,"name",{value:e}),t)}function nc(){let e=Error.stackTraceLimit;Error.stackTraceLimit=1/0;let t=new Error().stack;if(Error.stackTraceLimit=e,!t)return[];let r=t.split(`
73
+ `),n=[];for(let o=0;o<r.length;o++){let i=r[o],s=i.replaceAll("\\","/");if(i.trim()!=="Error"){if(i.includes("validate_each_keys"))return[];s.includes("svelte/src/internal")||s.includes("node_modules/.vite")||n.push(i)}}return n}function sl(e,t){if(!m)throw new Error("invariant(...) was not guarded by if (DEV)");e||Va(t)}var M=null;function fr(e){M=e}var jt=null;function mn(e){jt=e}var ct=null;function ti(e){ct=e}function eo(e,t=!1,r){M={p:M,i:!1,c:null,e:null,s:e,x:null,r:E,l:Sr&&!t?{s:null,u:null,$:[]}:null},m&&(M.function=r,ct=r)}function to(e){var t=M,r=t.e;if(r!==null){t.e=null;for(var n of r)ps(n)}return e!==void 0&&(t.x=e),t.i=!0,M=t.p,m&&(ct=M?.function??null),ro(e)}function ro(e={}){return Te(e,Vo,{value:!0}),e}function Gt(){return!Sr||M!==null&&M.l===null}var zr=[];function al(){var e=zr;zr=[],Uo(e)}function pe(e){if(zr.length===0&&!jr){var t=zr;queueMicrotask(()=>{t===zr&&al()})}zr.push(e)}function ll(){for(;zr.length>0;)al()}var oc=-7169;function K(e,t){e.f=e.f&oc|t}function vn(e){(e.f&512)!==0||e.deps===null?K(e,1024):K(e,4096)}function ri(e,t,r){(e.f&2048)!==0?t.add(e):(e.f&4096)!==0&&r.add(e),K(e,1024)}var fl=!1;function ni(){fl||(fl=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(let t of e.target.elements)t[Ar]?.()})},{capture:!0}))}function dt(e){var t=A,r=E;we(null),ye(null);try{return e()}finally{we(t),ye(r)}}function _s(e,t,r,n=r){e.addEventListener(t,()=>dt(r));let o=e[Ar];o?e[Ar]=()=>{o(),n(!0)}:e[Ar]=()=>n(!0),ni()}function oi(e,t,r,n){let o=Gt()?wn:yn;var i=e.filter(u=>!u.settled),s=t.map(o);if(m&&s.forEach((u,h)=>{u.label=t[h].toString().replace("() => ","").replaceAll("$.eager(() => ","$state.eager(").replace(/\$\.get\((.+?)\)/g,(y,w)=>w)}),r.length===0&&i.length===0){n(s);return}var l=E,c=cl(),p=i.length===1?i[0].promise:i.length>1?Promise.all(i.map(u=>u.promise)):null;function _(u){if((l.f&16384)===0){c();try{n([...s,...u])}catch(h){et(h,l)}bn()}}var g=hs();if(r.length===0){p.then(()=>_([])).finally(g);return}function b(){Promise.all(r.map(u=>vs(u))).then(_).catch(u=>et(u,l)).finally(g)}p?p.then(()=>{if((l.f&16384)!==0){g();return}c(),b(),bn()}):b()}function cl(){var e=E,t=A,r=M,n=S;if(m)var o=jt;return function(s=!0){ye(e),we(t),fr(r),s&&(e.f&16384)===0&&(n?.activate(),n?.apply()),m&&(ms(null),mn(o))}}var ic=!1;function bn(e=!0){ic=!1,ye(null),we(null),fr(null),e&&S?.deactivate(),m&&(ms(null),mn(null))}function hs(){var e=E,t=e.b,r=S,n=!!t?.is_rendered();return t?.update_pending_count(1,r),r.increment(n,e),()=>{t?.update_pending_count(-1,r),r.decrement(n,e)}}var tt=null;function ms(e){tt=e}var io=new Set;function wn(e){var t=2050;E!==null&&(E.f|=524288);let r={ctx:M,deps:null,effects:null,equals:Wo,f:t,fn:e,reactions:null,rv:0,v:Z,wv:0,parent:E,ac:null};return m&&Dt&&(r.created=Mt("created at")),r}var xn=Symbol("obsolete");function vs(e,t,r){let n=E;n===null&&za();var o=void 0,i=Ye(Z);m&&(i.label=t??e.toString());var s=!A,l=new Set;return pl(()=>{var c=E;m&&(tt={effect:c,effect_deps:new Set,warned:!1});var p=Yo();o=p.promise;try{Promise.resolve(e()).then(p.resolve,u=>{u!==lr&&p.reject(u)}).finally(bn)}catch(u){p.reject(u),bn()}if(m){if(tt){if(c.deps!==null)for(let u=0;u<Ge;u+=1)tt.effect_deps.add(c.deps[u]);if(Ne!==null)for(let u=0;u<Ne.length;u+=1)tt.effect_deps.add(Ne[u])}tt=null}var _=S;if(s){if((c.f&32768)!==0)var g=hs();if(n.b?.is_rendered())_.async_deriveds.get(c)?.reject(xn);else for(let u of l.values())u.reject(xn);l.add(p),_.async_deriveds.set(c,p)}let b=(u,h=void 0)=>{m&&(tt=null),g?.(),l.delete(p),h!==xn&&(_.activate(),h?(i.f|=8388608,Ft(i,h)):((i.f&8388608)!==0&&(i.f^=8388608),m&&r!==void 0&&!i.equals(u)&&(io.add(i),setTimeout(()=>{io.has(i)&&(c.f&16384)===0&&(La(i.label,r),io.delete(i))})),Ft(i,u)),_.deactivate())};p.promise.then(b,u=>b(null,u||"unknown"))}),Se(()=>{for(let c of l)c.reject(xn)}),m&&(i.f|=4194304),new Promise(c=>{function p(_){function g(){_===o?c(i):p(o)}_.then(g,g)}p(o)})}function dr(e){let t=wn(e);return ge||ai(t),t}function yn(e){let t=wn(e);return t.equals=Jo,t}function ul(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)le(t[r])}}var gs=[];function so(e){var t,r=E,n=e.parent;if(!Et&&n!==null&&e.v!==Z&&(n.f&24576)!==0)return Fa(),e.v;if(ye(n),m){let o=Kr;ii(new Set);try{ar.call(gs,e)&&ja(),gs.push(e),ul(e),t=si(e)}finally{ye(r),ii(o),gs.pop()}}else try{ul(e),t=si(e)}finally{ye(r)}return t}function bs(e){var t=so(e);if(!e.equals(t)&&(e.wv=$n(),(!S?.is_fork||e.deps===null)&&(S!==null?(S.capture(e,t,!0),$t?.capture(e,t,!0)):e.v=t,e.deps===null))){K(e,1024);return}Et||(Re!==null?(Nr()||S?.is_fork)&&Re.set(e,t):vn(e))}function dl(e){if(e.effects!==null)for(let t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac!==null&&dt(()=>{t.ac.abort(lr),t.ac=null}),t.fn!==null&&(t.teardown=Yt),Wr(t,0),ao(t))}function ws(e){if(e.effects!==null)for(let t of e.effects)t.teardown&&t.fn!==null&&Kt(t)}var li=null,En=null,S=null,$t=null,Re=null,$s=null,jr=!1,ys=!1,An=null,co=null,_l=0,xs=new Set,lc=1,kn,pr,_r,Sn,Nn,Rn,hr,Cn,nt,uo,mr,Pt,Wt,On,Rr,B,Es,Ts,lo,As,ml,vl,Tn,gl,fo,fi=class fi{constructor(){I(this,B);q(this,"id",lc++);I(this,kn,!1);q(this,"linked",!0);I(this,pr,null);I(this,_r,null);q(this,"async_deriveds",new Map);q(this,"current",new Map);q(this,"previous",new Map);I(this,Sn,new Set);I(this,Nn,new Set);I(this,Rn,0);I(this,hr,new Map);I(this,Cn,null);I(this,nt,[]);I(this,uo,[]);I(this,mr,new Set);I(this,Pt,new Set);I(this,Wt,new Map);I(this,On,new Set);q(this,"is_fork",!1);I(this,Rr,!1);En===null?li=En=this:(R(En,_r,this),R(this,pr,En)),En=this}skip_effect(t){f(this,Wt).has(t)||f(this,Wt).set(t,{d:[],m:[]}),f(this,On).delete(t)}unskip_effect(t,r=n=>this.schedule(n)){var n=f(this,Wt).get(t);if(n){f(this,Wt).delete(t);for(var o of n.d)K(o,2048),r(o);for(o of n.m)K(o,4096),r(o)}f(this,On).add(t)}capture(t,r,n=!1){t.v!==Z&&!this.previous.has(t)&&this.previous.set(t,t.v),(t.f&8388608)===0&&(this.current.set(t,[r,n]),Re?.set(t,r)),this.is_fork||(t.v=r)}activate(){S=this}deactivate(){S=null,Re=null}flush(){try{m&&xs.clear(),ys=!0,S=this,C(this,B,lo).call(this)}finally{if(_l=0,$s=null,An=null,co=null,ys=!1,S=null,Re=null,At.clear(),m)for(let t of xs)t.updated=null}}discard(){for(let t of f(this,Nn))t(this);f(this,Nn).clear();for(let t of this.async_deriveds.values())t.reject(xn);C(this,B,fo).call(this),f(this,Cn)?.resolve()}register_created_effect(t){f(this,uo).push(t)}increment(t,r){if(R(this,Rn,f(this,Rn)+1),t){let n=f(this,hr).get(r)??0;f(this,hr).set(r,n+1)}}decrement(t,r){if(R(this,Rn,f(this,Rn)-1),t){let n=f(this,hr).get(r)??0;n===1?f(this,hr).delete(r):f(this,hr).set(r,n-1)}f(this,Rr)||(R(this,Rr,!0),pe(()=>{R(this,Rr,!1),this.linked&&this.flush()}))}transfer_effects(t,r){for(let n of t)f(this,mr).add(n);for(let n of r)f(this,Pt).add(n);t.clear(),r.clear()}oncommit(t){f(this,Sn).add(t)}ondiscard(t){f(this,Nn).add(t)}settled(){return(f(this,Cn)??R(this,Cn,Yo())).promise}static ensure(){if(S===null){let t=S=new fi;!ys&&!jr&&pe(()=>{f(t,kn)||t.flush()})}return S}apply(){if(!ge||!this.is_fork&&f(this,pr)===null&&f(this,_r)===null){Re=null;return}Re=new Map;for(let[r,[n]]of this.current)Re.set(r,n);for(let r=li;r!==null;r=f(r,_r))if(!(r===this||r.is_fork)){var t=!1;if(r.id<this.id){for(let[n,[,o]]of r.current)if(!o&&this.current.has(n)){t=!0;break}}if(!t)for(let[n,o]of r.previous)Re.has(n)||Re.set(n,o)}}schedule(t){if($s=t,t.b?.is_pending&&(t.f&16777228)!==0&&(t.f&32768)===0){t.b.defer_effect(t);return}f(this,nt).push(t)}};kn=new WeakMap,pr=new WeakMap,_r=new WeakMap,Sn=new WeakMap,Nn=new WeakMap,Rn=new WeakMap,hr=new WeakMap,Cn=new WeakMap,nt=new WeakMap,uo=new WeakMap,mr=new WeakMap,Pt=new WeakMap,Wt=new WeakMap,On=new WeakMap,Rr=new WeakMap,B=new WeakSet,Es=function(){if(this.is_fork)return!0;for(let n of f(this,hr).keys()){for(var t=n,r=!1;t.parent!==null;){if(f(this,Wt).has(t)){r=!0;break}t=t.parent}if(!r)return!0}return!1},Ts=function(){var t=[];for(let i of f(this,nt))if(!((i.f&16384)!==0||(i.f&6144)===0)){for(var r=i,n=!1;r.parent!==null;){r=r.parent;var o=r.f;if((o&96)!==0){if((o&1024)===0){n=!0;break}r.f^=1024}}n||t.push(r)}return R(this,nt,[]),t},lo=function(){var l,c,p;if(R(this,kn,!0),m)for(let _ of this.current.keys())xs.add(_);for(let _ of f(this,mr))f(this,Pt).delete(_),K(_,2048),this.schedule(_);for(let _ of f(this,Pt))K(_,4096),this.schedule(_);this.apply();for(var t=An=[],r=[],n=co=[];f(this,nt).length>0;){_l++>1e3&&(C(this,B,fo).call(this),fc());for(let _ of C(this,B,Ts).call(this))try{C(this,B,As).call(this,_,t,r)}catch(g){throw yl(_),C(this,B,Es).call(this)||this.discard(),g}}if(S=null,n.length>0){var o=fi.ensure();for(let _ of n)o.schedule(_)}if(An=null,co=null,C(this,B,Es).call(this)){C(this,B,Tn).call(this,r),C(this,B,Tn).call(this,t);for(let[_,g]of f(this,Wt))wl(_,g);n.length>0&&C(l=S,B,lo).call(l);return}let i=C(this,B,ml).call(this);if(i){C(this,B,Tn).call(this,r),C(this,B,Tn).call(this,t),C(c=i,B,vl).call(c,this);return}f(this,mr).clear(),f(this,Pt).clear();for(let _ of f(this,Sn))_(this);f(this,Sn).clear(),$t=this,hl(r),hl(t),$t=null,f(this,Cn)?.resolve();var s=S;if(f(this,Rn)===0&&(f(this,nt).length===0||s!==null)&&(C(this,B,fo).call(this),ge&&(C(this,B,gl).call(this),S=s)),f(this,nt).length>0)if(s!==null){for(let _ of f(this,nt))f(s,nt).push(_);R(this,nt,[])}else s=this;s!==null&&(At.clear(),C(p=s,B,lo).call(p))},As=function(t,r,n){t.f^=1024;for(var o=t.first;o!==null;){var i=o.f,s=(i&96)!==0,l=s&&(i&1024)!==0,c=l||(i&8192)!==0||f(this,Wt).has(o);if(!c&&o.fn!==null){s?o.f^=1024:(i&4)!==0?r.push(o):ge&&(i&16777224)!==0?n.push(o):Or(o)&&((i&16)!==0&&f(this,Pt).add(o),Kt(o));var p=o.first;if(p!==null){o=p;continue}}for(;o!==null;){var _=o.next;if(_!==null){o=_;break}o=o.parent}}},ml=function(){for(var t=f(this,pr);t!==null;){if(!t.is_fork){for(let[r,[,n]]of this.current)if(t.current.has(r)&&!n)return t}t=f(t,pr)}return null},vl=function(t){var n;for(let[o,i]of t.current)!this.previous.has(o)&&t.previous.has(o)&&this.previous.set(o,t.previous.get(o)),this.current.set(o,i);for(let[o,i]of t.async_deriveds){let s=this.async_deriveds.get(o);s&&i.promise.then(s.resolve).catch(s.reject)}t.async_deriveds.clear(),this.transfer_effects(f(t,mr),f(t,Pt));let r=o=>{var i=o.reactions;if(i!==null&&!((o.f&2)!==0&&(o.f&6144)===0))for(let c of i){var s=c.f;if((s&2)!==0)r(c);else{var l=c;s&4194320&&!this.async_deriveds.has(l)&&(f(this,Pt).delete(l),K(l,2048),this.schedule(l))}}};for(let o of this.current.keys())r(o);this.oncommit(()=>t.discard()),C(n=t,B,fo).call(n),S=this,C(this,B,lo).call(this)},Tn=function(t){for(var r=0;r<t.length;r+=1)ri(t[r],f(this,mr),f(this,Pt))},gl=function(){var g,b;for(let u=li;u!==null;u=f(u,_r)){var t=u.id<this.id,r=[];for(let[h,[y,w]]of this.current){if(u.current.has(h)){var n=u.current.get(h)[0];if(t&&y!==n)u.current.set(h,[y,w]);else continue}r.push(h)}if(t)for(let[h,y]of this.async_deriveds){let w=u.async_deriveds.get(h);w&&y.promise.then(w.resolve).catch(w.reject)}var o=[...u.current.keys()].filter(h=>!u.current.get(h)[1]);if(!(!f(u,kn)||o.length===0)){var i=o.filter(h=>!this.current.has(h));if(i.length===0)t&&u.discard();else if(r.length>0){if(m&&!f(u,Rr)&&sl(f(u,nt).length===0,"Batch has scheduled effects"),t)for(let h of f(this,On))u.unskip_effect(h,y=>{var w;(y.f&4194320)!==0?u.schedule(y):C(w=u,B,Tn).call(w,[y])});u.activate();var s=new Set,l=new Map;for(var c of r)bl(c,i,s,l);l=new Map;var p=[...u.current].filter(([h,y])=>{let w=this.current.get(h);return w?w[0]!==y[0]||w[1]!==y[1]:!0}).map(([h])=>h);if(p.length>0)for(let h of f(this,uo))(h.f&155648)===0&&ks(h,p,l)&&((h.f&4194320)!==0?(K(h,2048),u.schedule(h)):f(u,mr).add(h));if(f(u,nt).length>0&&!f(u,Rr)){u.apply();for(var _ of C(g=u,B,Ts).call(g))C(b=u,B,As).call(b,_,[],[])}u.deactivate()}}}},fo=function(){if(this.linked){var t=f(this,pr),r=f(this,_r);t===null?li=r:R(t,_r,r),r===null?En=t:R(r,pr,t),this.linked=!1}};var pt=fi;function Cr(e){var t=jr,r=$t;$t=null,jr=!0;try{var n;for(e&&(Cr(),n=e());;){if(ll(),S===null)return n;S.flush()}}finally{jr=t,$t=r}}function fc(){if(m){var e=new Map;for(let r of S.current.keys())for(let[n,o]of r.updated??[]){var t=e.get(n);t||(t={error:o.error,count:0},e.set(n,t)),t.count+=o.count}for(let r of e.values())r.error&&console.error(r.error)}try{Ja()}catch(r){m&&Te(r,"stack",{value:""}),et(r,$s)}}var Tt=null;function hl(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if((n.f&24576)===0&&Or(n)&&(Tt=new Set,Kt(n),n.deps===null&&n.first===null&&n.nodes===null&&n.teardown===null&&n.ac===null&&Ss(n),Tt?.size>0)){At.clear();for(let o of Tt){if((o.f&24576)!==0)continue;let i=[o],s=o.parent;for(;s!==null;)Tt.has(s)&&(Tt.delete(s),i.push(s)),s=s.parent;for(let l=i.length-1;l>=0;l--){let c=i[l];(c.f&24576)===0&&Kt(c)}}Tt.clear()}}Tt=null}}function bl(e,t,r,n){if(!r.has(e)&&(r.add(e),e.reactions!==null))for(let o of e.reactions){let i=o.f;(i&2)!==0?bl(o,t,r,n):(i&4194320)!==0&&(i&2048)===0&&ks(o,t,n)&&(K(o,2048),po(o))}}function ks(e,t,r){let n=r.get(e);if(n!==void 0)return n;if(e.deps!==null)for(let o of e.deps){if(ar.call(t,o))return!0;if((o.f&2)!==0&&ks(o,t,r))return r.set(o,!0),!0}return r.set(e,!1),!1}function po(e){S.schedule(e)}function wl(e,t){if(!((e.f&32)!==0&&(e.f&1024)!==0)){(e.f&2048)!==0?t.d.push(e):(e.f&4096)!==0&&t.m.push(e),K(e,1024);for(var r=e.first;r!==null;)wl(r,t),r=r.next}}function yl(e){K(e,1024);for(var t=e.first;t!==null;)yl(t),t=t.next}var Kr=new Set,At=new Map;function ii(e){Kr=e}var Rs=!1;function $l(){Rs=!0}function Ye(e,t){var r={f:0,v:e,reactions:null,equals:Wo,rv:0,wv:0};return m&&Dt&&(r.created=t??Mt("created at"),r.updated=null,r.set_during_effect=!1,r.trace=null),r}function H(e,t){let r=Ye(e,t);return ai(r),r}function Zr(e,t=!1,r=!0){var o;let n=Ye(e);return t||(n.equals=Jo),Sr&&r&&M!==null&&M.l!==null&&((o=M.l).s??(o.s=[])).push(n),n}function x(e,t,r=!1){A!==null&&(!Ke||(A.f&131072)!==0)&&Gt()&&(A.f&4325394)!==0&&(kt===null||!kt.has(e))&&nl();let n=r?Xt(t):t;return m&&ei(n,e.label),Ft(e,n,co)}var Jr=null,Ns=0;function Ft(e,t,r=null){if(!e.equals(t)){Et?At.set(e,t):At.has(e)||At.set(e,e.v);var n=pt.ensure();if(n.capture(e,t),m){if(Dt||E!==null){e.updated??(e.updated=new Map);let o=(e.updated.get("")?.count??0)+1;if(e.updated.set("",{error:null,count:o}),Dt||o>5){let i=Mt("updated at");if(i!==null){let s=e.updated.get(i.stack);s||(s={error:i,count:0},e.updated.set(i.stack,s)),s.count++}}}E!==null&&(e.set_during_effect=!0)}if((e.f&2)!==0){let o=e;(e.f&2048)!==0&&so(o),Re===null&&vn(o)}e.wv=$n(),Jr=null,Ns=0,El(e,2048,r),Jr=null,Gt()&&E!==null&&(E.f&1024)!==0&&(E.f&96)===0&&(_t===null?Tl([e]):_t.push(e)),!n.is_fork&&Kr.size>0&&!Rs&&ci()}return t}function ci(){Rs=!1;for(let e of Kr){(e.f&1024)!==0&&K(e,4096);let t;try{t=Or(e)}catch{t=!0}t&&Kt(e)}Kr.clear()}function Qr(e){x(e,e.v+1)}function El(e,t,r){var n=e.reactions;if(n!==null){var o=Gt(),i=n.length;if(Ns+=i,Ns>1e5&&Jr===null&&(Jr=new Set),Jr!==null){if(Jr.has(e))return;Jr.add(e)}for(var s=0;s<i;s++){var l=n[s],c=l.f;if(!(!o&&l===E)){var p=(c&2048)===0;if(p&&K(l,t),(c&131072)!==0)Kr.add(l);else if((c&2)!==0){var _=l;Re?.delete(_),El(_,4096,r)}else if(p){var g=l;(c&16)!==0&&Tt!==null&&Tt.add(g),r!==null?r.push(g):po(g)}}}}}var uc=/^[a-zA-Z_$][a-zA-Z_$0-9]*$/;function Xt(e){if(typeof e!="object"||e===null||He in e||Vo in e)return e;let t=Ur(e);if(t!==is&&t!==Ia)return e;var r=new Map,n=It(e),o=H(0),i=m&&Dt?Mt("created at"):null,s=Ir,l=g=>{if(Ir===s)return g();var b=A,u=Ir;we(null),Cs(s);var h=g();return we(b),Cs(u),h};n&&(r.set("length",H(e.length,i)),m&&(e=pc(e)));var c="";let p=!1;function _(g){if(!p){p=!0,c=g,Be(o,`${c} version`);for(let[b,u]of r)Be(u,en(c,b));p=!1}}return new Proxy(e,{defineProperty(g,b,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&tl();var h=r.get(b);return h===void 0?l(()=>{var y=H(u.value,i);return r.set(b,y),m&&typeof b=="string"&&Be(y,en(c,b)),y}):x(h,u.value,!0),!0},deleteProperty(g,b){var u=r.get(b);if(u===void 0){if(b in g){let h=l(()=>H(Z,i));r.set(b,h),Qr(o),m&&Be(h,en(c,b))}}else x(u,Z),Qr(o);return!0},get(g,b,u){if(b===He)return e;if(m&&b===zo)return _;var h=r.get(b),y=b in g;if(h===void 0&&(!y||lt(g,b)?.writable)&&(h=l(()=>{var k=Xt(y?g[b]:Z),V=H(k,i);return m&&Be(V,en(c,b)),V}),r.set(b,h)),h!==void 0){var w=a(h);return w===Z?void 0:w}return Reflect.get(g,b,u)},getOwnPropertyDescriptor(g,b){this.has?.(g,b);var u=Reflect.getOwnPropertyDescriptor(g,b),h=r.get(b);if(h!==void 0){var y=a(h);if(y===Z)return;if(u&&"value"in u)u.value=y;else return{enumerable:!0,configurable:!0,value:y,writable:!0}}return u},has(g,b){if(b===He)return!0;var u=r.get(b),h=u!==void 0&&u.v!==Z||Reflect.has(g,b);if(u!==void 0||E!==null&&(!h||lt(g,b)?.writable)){u===void 0&&(u=l(()=>{var w=h?Xt(g[b]):Z,k=H(w,i);return m&&Be(k,en(c,b)),k}),r.set(b,u));var y=a(u);if(y===Z)return!1}return h},set(g,b,u,h){var y=r.get(b),w=b in g;if(n&&b==="length")for(var k=u;k<y.v;k+=1){var V=r.get(k+"");V!==void 0?x(V,Z):k in g&&(V=l(()=>H(Z,i)),r.set(k+"",V),m&&Be(V,en(c,k)))}if(y===void 0)(!w||lt(g,b)?.writable)&&(y=l(()=>H(void 0,i)),m&&Be(y,en(c,b)),x(y,Xt(u)),r.set(b,y));else{w=y.v!==Z;var te=l(()=>Xt(u));x(y,te)}var de=Reflect.getOwnPropertyDescriptor(g,b);if(de?.set&&de.set.call(h,u),!w){if(n&&typeof b=="string"){var wt=r.get("length"),ze=Number(b);Number.isInteger(ze)&&ze>=wt.v&&x(wt,ze+1)}Qr(o)}return!0},ownKeys(g){a(o);var b=Reflect.ownKeys(g).filter(y=>{var w=r.get(y);return w===void 0||w.v!==Z});for(var[u,h]of r)h.v!==Z&&!(u in g)&&b.push(u);return b},setPrototypeOf(){rl()}})}function en(e,t){return typeof t=="symbol"?`${e}[Symbol(${t.description??""})]`:uc.test(t)?`${e}.${t}`:/^\d+$/.test(t)?`${e}[${t}]`:`${e}['${t}']`}function In(e){try{if(e!==null&&typeof e=="object"&&He in e)return e[He]}catch{}return e}function ui(e,t){return Object.is(In(e),In(t))}var dc=new Set(["copyWithin","fill","pop","push","reverse","shift","sort","splice","unshift"]);function pc(e){return new Proxy(e,{get(t,r,n){var o=Reflect.get(t,r,n);return dc.has(r)?function(...i){$l();var s=o.apply(this,i);return ci(),s}:o}})}function Al(){let e=Array.prototype,t=Array.__svelte_cleanup;t&&t();let{indexOf:r,lastIndexOf:n,includes:o}=e;e.indexOf=function(i,s){let l=r.call(this,i,s);if(l===-1){for(let c=s??0;c<this.length;c+=1)if(In(this[c])===i){Ko("array.indexOf(...)");break}}return l},e.lastIndexOf=function(i,s){let l=n.call(this,i,s??this.length-1);if(l===-1){for(let c=0;c<=(s??this.length-1);c+=1)if(In(this[c])===i){Ko("array.lastIndexOf(...)");break}}return l},e.includes=function(i,s){let l=o.call(this,i,s);if(!l){for(let c=0;c<this.length;c+=1)if(In(this[c])===i){Ko("array.includes(...)");break}}return l},Array.__svelte_cleanup=()=>{e.indexOf=r,e.lastIndexOf=n,e.includes=o}}var Dn,kl,_o,Sl,Nl;function di(){if(Dn===void 0){Dn=window,kl=document,_o=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;Sl=lt(t,"firstChild").get,Nl=lt(t,"nextSibling").get,ss(e)&&(e[as]=void 0,e[jo]=null,e[Wn]=void 0,e.__e=void 0),ss(r)&&(r[Xn]=void 0),m&&(e.__svelte_meta=null,Al())}}function fe(e=""){return document.createTextNode(e)}function ae(e){return Sl.call(e)}function ke(e){return Nl.call(e)}function Y(e,t){if(!$)return ae(e);var r=ae(O);if(r===null)r=O.appendChild(fe());else if(t&&r.nodeType!==Yr){var n=fe();return r?.before(n),z(n),n}return t&&ho(r),z(r),r}function Jt(e,t=!1){if(!$){var r=ae(e);return r instanceof Comment&&r.data===""?ke(r):r}if(t){if(O?.nodeType!==Yr){var n=fe();return O?.before(n),z(n),n}ho(O)}return O}function ot(e,t=!1){if(!$)return ae(e);var r=Y(e,t);return P(e),r}function N(e,t=1,r=!1){let n=$?O:e;for(var o;t--;)o=n,n=ke(n);if(!$)return n;if(r){if(n?.nodeType!==Yr){var i=fe();return n===null?o?.after(i):n.before(i),z(i),i}ho(n)}return z(n),n}function oo(e){e.textContent=""}function pi(){if(!ge||Tt!==null)return!1;var e=E.f;return(e&32768)!==0}function Ht(e,t,r){return t==null||t===Go?r?document.createElement(e,{is:r}):document.createElement(e):r?document.createElementNS(t,e,{is:r}):document.createElementNS(t,e)}function ho(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===Yr;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}var Os=new WeakMap;function Rl(e){var t=E;if(t===null)return A.f|=8388608,e;if(m&&e instanceof Error&&!Os.has(e)&&Os.set(e,_c(e,t)),(t.f&32768)===0&&(t.f&4)===0)throw m&&!t.parent&&e instanceof Error&&Cl(e),e;et(e,t)}function et(e,t){if(e===Je)throw e;if(!(t!==null&&(t.f&16384)!==0)){for(;t!==null;){if((t.f&128)!==0&&(t.f&33570816)===0){if((t.f&32768)===0)throw e;try{t.b.error(e);return}catch(r){e=r}}t=t.parent}throw m&&e instanceof Error&&Cl(e),e}}function _c(e,t){let r=lt(e,"message");if(!(r&&!r.configurable)){for(var n=_o?" ":" ",o=`
74
+ ${n}in ${t.fn?.name||"<unknown>"}`,i=t.ctx;i!==null;)o+=`
75
+ ${n}in ${i.function?.[Ze].split("/").pop()}`,i=i.p;return{message:e.message+`
76
+ ${o}
77
+ `,stack:e.stack?.split(`
78
+ `).filter(s=>!s.includes("svelte/src/internal")).join(`
79
+ `)}}}function Cl(e){let t=Os.get(e);t&&(Te(e,"message",{value:t.message}),Te(e,"stack",{value:t.stack}))}function Il(e){E===null&&(A===null&&Xa(e),Wa()),Et&&Ka(e)}function mc(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function Zt(e,t){var r=E;if(m)for(;r!==null&&(r.f&131072)!==0;)r=r.parent;r!==null&&(r.f&8192)!==0&&(e|=8192);var n={ctx:M,deps:null,nodes:null,f:e|2048|512,first:null,fn:t,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,wv:0,ac:null};m&&(n.component_function=ct),S?.register_created_effect(n);var o=n;if((e&4)!==0)An!==null?An.push(n):pt.ensure().schedule(n);else if(t!==null){try{Kt(n)}catch(s){throw le(n),s}o.deps===null&&o.teardown===null&&o.nodes===null&&o.first===o.last&&(o.f&524288)===0&&(o=o.first,(e&16)!==0&&(e&65536)!==0&&o!==null&&(o.f|=65536))}if(o!==null&&(o.parent=r,r!==null&&mc(o,r),A!==null&&(A.f&2)!==0&&(e&64)===0)){var i=A;(i.effects??(i.effects=[])).push(o)}return n}function Nr(){return A!==null&&!Ke}function Se(e){let t=Zt(8,null);return K(t,1024),t.teardown=e,t}function Qt(e){Il("$effect"),m&&Te(e,"name",{value:"$effect"});var t=E.f,r=!A&&(t&32)!==0&&M!==null&&!M.i;if(r){var n=M;(n.e??(n.e=[])).push(e)}else return ps(e)}function ps(e){return Zt(1048580,e)}function Ms(e){pt.ensure();let t=Zt(524352,e);return()=>{le(t)}}function Dl(e){pt.ensure();let t=Zt(524352,e);return(r={})=>new Promise(n=>{r.outro?er(t,()=>{le(t),n(void 0)}):(le(t),n(void 0))})}function ht(e){return Zt(4,e)}function pl(e){return Zt(4718592,e)}function Ce(e,t=0){return Zt(8|t,e)}function oe(e,t=[],r=[],n=[]){oi(n,t,r,o=>{Zt(8,()=>{e(...o.map(a))})})}function st(e,t=0){var r=Zt(16|t,e);return m&&(r.dev_stack=jt),r}function xe(e){return Zt(524320,e)}function Ls(e){var t=e.teardown;if(t!==null){let r=Et,n=A;Is(!0),we(null);try{t.call(null)}catch(o){et(o,e.parent)}finally{Is(r),we(n)}}}function ao(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){let o=r.ac;o!==null&&dt(()=>{o.abort(lr)});var n=r.next;(r.f&64)!==0?r.parent=null:le(r,t),r=n}}function Ml(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&32)===0&&le(t),t=r}}function le(e,t=!0){var r=!1;(t||(e.f&262144)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(Fs(e.nodes.start,e.nodes.end),r=!0),e.f|=33554432,ao(e,t&&!r),Wr(e,0);var n=e.nodes&&e.nodes.t;if(n!==null)for(let i of n)i.stop();Ls(e),e.f^=33554432,e.f|=16384;var o=e.parent;o!==null&&o.first!==null&&Ss(e),m&&(e.component_function=null),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function Fs(e,t){for(;e!==null;){var r=e===t?null:ke(e);e.remove(),e=r}}function Ss(e){var t=e.parent,r=e.prev,n=e.next;r!==null&&(r.next=n),n!==null&&(n.prev=r),t!==null&&(t.first===e&&(t.first=n),t.last===e&&(t.last=r))}function er(e,t,r=!0){var n=[];e.f|=256,Ll(e,n,!0);var o=()=>{r&&le(e),t&&t()},i=n.length;if(i>0){var s=()=>--i||o();for(var l of n)l.out(s)}else o()}function Ll(e,t,r){if((e.f&8192)===0){e.f^=8192;var n=e.nodes&&e.nodes.t;if(n!==null)for(let l of n)(l.is_global||r)&&t.push(l);for(var o=e.first;o!==null;){var i=o.next;if((o.f&64)===0){var s=(o.f&65536)!==0||(o.f&32)!==0&&(e.f&16)!==0;Ll(o,t,s?r:!1)}o=i}}}function Mn(e){e.f&=-257,Fl(e,!0)}function Fl(e,t){if((e.f&256)===0&&(e.f&8192)!==0){e.f^=8192,(e.f&1024)===0&&(K(e,2048),pt.ensure().schedule(e));for(var r=e.first;r!==null;){var n=r.next,o=(r.f&65536)!==0||(r.f&32)!==0;Fl(r,o?t:!1),r=n}var i=e.nodes&&e.nodes.t;if(i!==null)for(let s of i)(s.is_global||t)&&s.in()}}function Ln(e,t){if(e.nodes)for(var r=e.nodes.start,n=e.nodes.end;r!==null;){var o=r===n?null:ke(r);t.append(r),r=o}}var Pl=null;var Et=!1;function Is(e){Et=e}var A=null,Ke=!1;function we(e){A=e}var E=null;function ye(e){E=e}var kt=null;function ai(e){A!==null&&(!ge&&(A.f&2097152)!==0||(A.f&2)!==0)&&(kt??(kt=new Set)).add(e)}var Ne=null,Ge=0,_t=null;function Tl(e){_t=e}var Bl=1,tn=0,Ir=tn;function Cs(e){Ir=e}function $n(){return++Bl}function Or(e){var t=e.f;if((t&2048)!==0)return!0;if((t&4096)!==0){for(var r=e.deps,n=r.length,o=0;o<n;o++){var i=r[o];if(Or(i)&&bs(i),i.wv>e.wv)return!0}(t&512)!==0&&Re===null&&K(e,1024)}return!1}function Ul(e,t,r=!0){var n=e.reactions;if(n!==null&&!(!ge&&kt!==null&&kt.has(e)))for(var o=0;o<n.length;o++){var i=n[o];(i.f&2)!==0?Ul(i,t,!1):t===i&&(r?K(i,2048):(i.f&1024)!==0&&K(i,4096),po(i))}}function si(e){var t=Ne,r=Ge,n=_t,o=A,i=kt,s=M,l=Ke,c=Ir,p=e.f;Ne=null,Ge=0,_t=null,A=(p&96)===0?e:null,kt=null,fr(e.ctx),Ke=!1,Ir=++tn,e.ac!==null&&(dt(()=>{e.ac.abort(lr)}),e.ac=null);try{e.f|=2097152;var _=e.fn,g=_();e.f|=32768;var b=Hl(e);if(Gt()&&_t!==null&&!Ke&&b!==null&&(e.f&6146)===0)for(var u=0;u<_t.length;u++)Ul(_t[u],e);if(o!==null&&o!==e){if(tn++,o.deps!==null)for(let h=0;h<r;h+=1)o.deps[h].rv=tn;if(t!==null)for(let h of t)h.rv=tn;_t!==null&&(n===null?n=_t:n.push(..._t))}return(e.f&8388608)!==0&&(e.f^=8388608),g}catch(h){return Hl(e),Rl(h)}finally{e.f^=2097152,Ne=t,Ge=r,_t=n,A=o,kt=i,fr(s),Ke=l,Ir=c}}function Hl(e){var o;var t=e.deps,r=S?.is_fork;if(Ne!==null){var n;if(r||Wr(e,Ge),t!==null&&Ge>0)for(t.length=Ge+Ne.length,n=0;n<Ne.length;n++)t[Ge+n]=Ne[n];else e.deps=t=Ne;if(Nr()&&(e.f&512)!==0)for(n=Ge;n<t.length;n++)((o=t[n]).reactions??(o.reactions=[])).push(e)}else!r&&t!==null&&Ge<t.length&&(Wr(e,Ge),t.length=Ge);return t}function vc(e,t){let r=t.reactions;if(r!==null){var n=Oa.call(r,e);if(n!==-1){var o=r.length-1;o===0?r=t.reactions=null:(r[n]=r[o],r.pop())}}if(r===null&&(t.f&2)!==0&&(Ne===null||!ar.call(Ne,t))){var i=t;(i.f&512)!==0&&(i.f^=512),i.v!==Z&&vn(i),i.ac!==null&&dt(()=>{i.ac.abort(lr),i.ac=null,K(i,2048)}),dl(i),Wr(i,0)}}function Wr(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)vc(e,r[n])}function Kt(e){var t=e.f;if((t&16384)===0){K(e,1024);var r=E;if(E=e,m){var n=ct;ti(e.component_function);var o=jt;mn(e.dev_stack??jt)}try{(t&16777232)!==0?Ml(e):ao(e),Ls(e);var i=si(e);if(e.teardown=typeof i=="function"?i:null,e.wv=Bl,m&&Dt&&(e.f&2048)!==0&&e.deps!==null)for(var s of e.deps)s.set_during_effect&&(s.wv=$n(),s.set_during_effect=!1)}finally{E=r,m&&(ti(n),mn(o))}}}async function rn(){if(ge)return new Promise(e=>{requestAnimationFrame(()=>e()),setTimeout(()=>e())});await Promise.resolve(),Cr()}function a(e){var t=e.f,r=(t&2)!==0;if(Pl?.add(e),A!==null&&!Ke){var n=E!==null&&(E.f&16384)!==0;if(!n&&(kt===null||!kt.has(e))){var o=A.deps;if((A.f&2097152)!==0)e.rv<tn&&(e.rv=tn,Ne===null&&o!==null&&o[Ge]===e?Ge++:Ne===null?Ne=[e]:Ne.push(e));else{A.deps??(A.deps=[]),ar.call(A.deps,e)||A.deps.push(e);var i=e.reactions;i===null?e.reactions=[A]:ar.call(i,A)||i.push(A)}}}if(m){if(!Ke&&tt&&S===null&&$t===null&&!tt.warned&&(tt.effect.f&2097152)===0&&!tt.effect_deps.has(e)){tt.warned=!0,Ma(e.label);var s=Mt("traced at");s&&console.warn(s)}if(io.delete(e),Dt&&!Ke&&Qn!==null&&A!==null&&Qn.reaction===A){if(e.trace)e.trace();else if(s=Mt("traced at"),s){var l=Qn.entries.get(e);l===void 0&&(l={traces:[]},Qn.entries.set(e,l));var c=l.traces[l.traces.length-1];s.stack!==c?.stack&&l.traces.push(s)}}}if(Et&&At.has(e))return At.get(e);if(r){var p=e;if(Et){var _=p.v;return((p.f&1024)===0&&p.reactions!==null||Vl(p))&&(_=so(p)),At.set(p,_),_}var g=(p.f&512)===0&&!Ke&&A!==null&&(A.f&512)!==0,b=(p.f&32768)===0;Or(p)&&(g&&(p.f|=512),bs(p)),g&&!b&&(ws(p),Yl(p))}if(Re?.has(e))return Re.get(e);if((e.f&8388608)!==0)throw e.v;return e.v}function Yl(e){if(e.f|=512,e.deps!==null)for(let r of e.deps){var t=r.reactions;t===null?r.reactions=[e]:ar.call(t,e)||t.push(e),(r.f&2)!==0&&(r.f&512)===0&&(ws(r),Yl(r))}}function Vl(e){if(e.v===Z)return!0;if(e.deps===null)return!1;for(let t of e.deps)if(At.has(t)||(t.f&2)!==0&&Vl(t))return!0;return!1}function X(e){var t=Ke;try{return Ke=!0,e()}finally{Ke=t}}function hi(e){if(!(typeof e!="object"||!e||e instanceof EventTarget)){if(He in e)_i(e);else if(!Array.isArray(e))for(let t in e){let r=e[t];typeof r=="object"&&r&&He in r&&_i(r)}}}function _i(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 n in e)try{_i(e[n],t)}catch{}let r=Ur(e);if(r!==Object.prototype&&r!==Array.prototype&&r!==Map.prototype&&r!==Set.prototype&&r!==Date.prototype){let n=Bo(r);for(let o in n){let i=n[o].get;if(i)try{i.call(e)}catch{}}}}}var bc=/\r/g;function ql(e){e=e.replace(bc,"");let t=5381,r=e.length;for(;r--;)t=(t<<5)-t^e.charCodeAt(r);return(t>>>0).toString(36)}var wc=["allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","indeterminate","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected","webkitdirectory","defer","disablepictureinpicture","disableremoteplayback"];var Ah=[...wc,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var yc=["touchstart","touchmove"];function zl(e){return yc.includes(e)}var xc=["$state","$state.raw","$derived","$derived.by"],kh=[...xc,"$state.eager","$state.snapshot","$props","$props.id","$bindable","$effect","$effect.pre","$effect.tracking","$effect.root","$effect.pending","$inspect","$inspect().with","$inspect.trace","$host"];function mi(e){return e?.replace(/\//g,"/\u200B")}var nn=Symbol("events"),Bs=new Set,vi=new Set;function Gl(e,t,r,n={}){function o(i){if(n.capture||bi.call(t,i),!i.cancelBubble)return dt(()=>r?.call(this,i))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?(o.__removed=!1,pe(()=>{o.__removed||t.addEventListener(e,o,n)})):t.addEventListener(e,o,n),o}function gr(e,t,r,n,o){var i={capture:n,passive:o},s=Gl(e,t,r,i);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Se(()=>{s.__removed=!0,t.removeEventListener(e,s,i)})}function Oe(e,t,r){(t[nn]??(t[nn]={}))[e]=r}function gi(e){for(var t=0;t<e.length;t++)Bs.add(e[t]);for(var r of vi)r(e)}var Ps=null,Hs=!1;function bi(e){var t=this,r=t.ownerDocument,n=e.type,o=e.composedPath?.()||[],i=o[0]||e.target;Ps=e,Hs||(Hs=!0,setTimeout(()=>{Hs=!1,Ps=null}));var s=0,l=Ps===e&&e[nn];if(l){var c=o.indexOf(l);if(c!==-1&&(t===document||t===window)){e[nn]=t;return}var p=o.indexOf(t);if(p===-1)return;c<=p&&(s=c)}if(i=o[s]||e.target,i!==t){Te(e,"currentTarget",{configurable:!0,get(){return i||r}});var _=A,g=E;we(null),ye(null);try{for(var b,u=[];i!==null&&i!==t;){try{var h=i[nn]?.[n];h!=null&&(!i.disabled||e.target===i)&&h.call(i,e)}catch(y){b?u.push(y):b=y}if(e.cancelBubble)break;s++,i=s<o.length?o[s]:null}if(b){for(let y of u)queueMicrotask(()=>{throw y});throw b}}finally{e[nn]=t,delete e.currentTarget,we(_),ye(g)}}}var Ec=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function Kl(e){return Ec?.createHTML(e)??e}function Us(e){var t=Ht("template");return t.innerHTML=Kl(e.replaceAll("<!>","<!---->")),t.content}function Ve(e,t){var r=E;r.nodes===null&&(r.nodes={start:e,end:t,a:null,t:null})}function ce(e,t){var r=(t&1)!==0,n=(t&2)!==0,o,i=!e.startsWith("<!>");return()=>{if($)return Ve(O,null),O;o===void 0&&(o=Us(i?e:"<!>"+e),r||(o=ae(o)));var s=n||_o?document.importNode(o,!0):o.cloneNode(!0);if(r){var l=ae(s),c=s.lastChild;Ve(l,c)}else Ve(s,s);return s}}function vo(e=""){if(!$){var t=fe(e+"");return Ve(t,t),t}var r=O;return r.nodeType!==Yr?(r.before(r=fe()),z(r)):ho(r),Ve(r,r),r}function Fn(){if($)return Ve(O,null),O;var e=document.createDocumentFragment(),t=document.createComment(""),r=fe();return e.append(t,r),Ve(t,r),e}function U(e,t){if($){var r=E;((r.f&32768)===0||r.nodes.end===null)&&(r.nodes.end=O),Ae();return}e!==null&&e.before(t)}function Wl(e){let t=0,r=Ye(0),n;return m&&Be(r,"createSubscriber version"),()=>{Nr()&&(a(r),Ce(()=>(t===0&&(n=X(()=>e(()=>Qr(r)))),t+=1,()=>{pe(()=>{t-=1,t===0&&(n?.(),n=void 0,Qr(r))})})))}}var Sc=589824;function Gs(e,t,r,n){new Ys(e,t,r,n)}var mt,bo,St,on,qe,vt,We,gt,tr,sn,Mr,Pn,wo,yo,rr,yi,F,Jl,Zl,Vs,Dr,Ql,qs,go,wi,zs,js,Ys=class{constructor(t,r,n,o){I(this,F);q(this,"parent");q(this,"is_pending",!1);q(this,"transform_error");I(this,mt);I(this,bo,$?O:null);I(this,St);I(this,on);I(this,qe);I(this,vt,null);I(this,We,null);I(this,gt,null);I(this,tr,null);I(this,sn,0);I(this,Mr,0);I(this,Pn,!1);I(this,wo,new Set);I(this,yo,new Set);I(this,rr,null);I(this,yi,Wl(()=>(R(this,rr,Ye(f(this,sn))),m&&Be(f(this,rr),"$effect.pending()"),()=>{R(this,rr,null)})));R(this,mt,t),R(this,St,r),R(this,on,i=>{var s=E;s.b=this,s.f|=128,n(i)}),this.parent=E.b,this.transform_error=o??this.parent?.transform_error??(i=>i),R(this,qe,st(()=>{if($){let i=qr(f(this,bo));Ae();let s=i==="[!";if(i.startsWith("[?")){let c=JSON.parse(i.slice("[?".length));C(this,F,Zl).call(this,c)}else s?C(this,F,Ql).call(this):C(this,F,Jl).call(this)}else C(this,F,qs).call(this)},Sc)),$&&R(this,mt,O)}defer_effect(t){ri(t,f(this,wo),f(this,yo))}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!f(this,St).pending}update_pending_count(t,r){C(this,F,zs).call(this,t,r),R(this,sn,f(this,sn)+t),!(!f(this,rr)||f(this,Pn))&&(R(this,Pn,!0),pe(()=>{R(this,Pn,!1),f(this,rr)&&Ft(f(this,rr),f(this,sn))}))}get_effect_pending(){return f(this,yi).call(this),a(f(this,rr))}error(t){if(t===Je||!f(this,St).onerror&&!f(this,St).failed)throw t;S?.is_fork?(f(this,vt)&&S.skip_effect(f(this,vt)),f(this,We)&&S.skip_effect(f(this,We)),f(this,gt)&&S.skip_effect(f(this,gt)),S.oncommit(()=>{C(this,F,Dr).call(this)||C(this,F,js).call(this,t)})):C(this,F,js).call(this,t)}};mt=new WeakMap,bo=new WeakMap,St=new WeakMap,on=new WeakMap,qe=new WeakMap,vt=new WeakMap,We=new WeakMap,gt=new WeakMap,tr=new WeakMap,sn=new WeakMap,Mr=new WeakMap,Pn=new WeakMap,wo=new WeakMap,yo=new WeakMap,rr=new WeakMap,yi=new WeakMap,F=new WeakSet,Jl=function(){try{R(this,vt,xe(()=>f(this,on).call(this,f(this,mt))))}catch(t){this.error(t)}},Zl=function(t){let r=f(this,St).failed,{reset:n,invoke_onerror:o}=C(this,F,Vs).call(this,t);pe(o),r&&R(this,gt,xe(()=>{r(f(this,mt),()=>t,()=>n)}))},Vs=function(t){var r=!1,n=!1;let o=()=>{if(!C(this,F,Dr).call(this)){if(r){Ya();return}r=!0,n&&ol(),f(this,gt)!==null&&er(f(this,gt),()=>{R(this,gt,null)}),C(this,F,wi).call(this,()=>{C(this,F,qs).call(this)})}};return{reset:o,invoke_onerror:()=>{if(!C(this,F,Dr).call(this))try{n=!0,f(this,St).onerror?.(t,o),n=!1}catch(s){et(s,f(this,qe)&&f(this,qe).parent)}}}},Dr=function(){return(f(this,qe).f&33570816)!==0},Ql=function(){let t=f(this,St).pending;t&&(this.is_pending=!0,R(this,We,xe(()=>t(f(this,mt)))),pe(()=>{if(!C(this,F,Dr).call(this)){var r=R(this,tr,document.createDocumentFragment()),n=fe(),o=!1;if(r.append(n),R(this,vt,C(this,F,wi).call(this,()=>{try{return xe(()=>f(this,on).call(this,n))}catch(i){try{this.error(i),o=!0}catch(s){et(s,f(this,qe).parent)}return null}})),f(this,vt)===null){R(this,tr,null),o&&C(this,F,go).call(this,S);return}f(this,Mr)===0&&(f(this,mt).before(r),R(this,tr,null),er(f(this,We),()=>{R(this,We,null)}),C(this,F,go).call(this,S))}}))},qs=function(){try{if(this.is_pending=this.has_pending_snippet(),R(this,Mr,0),R(this,sn,0),R(this,vt,xe(()=>{f(this,on).call(this,f(this,mt))})),f(this,Mr)>0){var t=R(this,tr,document.createDocumentFragment());Ln(f(this,vt),t);let r=f(this,St).pending;R(this,We,xe(()=>r(f(this,mt))))}else C(this,F,go).call(this,S)}catch(r){this.error(r)}},go=function(t){this.is_pending=!1,t.transfer_effects(f(this,wo),f(this,yo))},wi=function(t){var r=E,n=A,o=M;ye(f(this,qe)),we(f(this,qe)),fr(f(this,qe).ctx);try{return pt.ensure(),t()}finally{ye(r),we(n),fr(o)}},zs=function(t,r){var n;if(!this.has_pending_snippet()){this.parent&&C(n=this.parent,F,zs).call(n,t,r);return}R(this,Mr,f(this,Mr)+t),f(this,Mr)===0&&(C(this,F,go).call(this,r),f(this,We)&&er(f(this,We),()=>{R(this,We,null)}),f(this,tr)&&(f(this,mt).before(f(this,tr)),R(this,tr,null)))},js=function(t){f(this,vt)&&(le(f(this,vt)),R(this,vt,null)),f(this,We)&&(le(f(this,We)),R(this,We,null)),f(this,gt)&&(le(f(this,gt)),R(this,gt,null)),$&&(z(f(this,bo)),Vr(),z(zt()));let r=f(this,St).failed,n=o=>{if(C(this,F,Dr).call(this))return;let{reset:i,invoke_onerror:s}=C(this,F,Vs).call(this,o);s(),r&&!C(this,F,Dr).call(this)&&R(this,gt,C(this,F,wi).call(this,()=>{try{return xe(()=>{var l=E;l.b=this,l.f|=128,r(f(this,mt),()=>o,()=>i)})}catch(l){return et(l,f(this,qe).parent),null}}))};pe(()=>{if(!C(this,F,Dr).call(this)){var o;try{o=this.transform_error(t)}catch(i){et(i,f(this,qe)&&f(this,qe).parent);return}o!==null&&typeof o=="object"&&typeof o.then=="function"?o.then(n,i=>et(i,f(this,qe)&&f(this,qe).parent)):n(o)}})};var Ks=!0;function $e(e,t){var n;var r=t==null?"":typeof t=="object"?`${t}`:t;r!==(e[n=Xn]??(e[n]=e.nodeValue))&&(e[Xn]=r,e.nodeValue=`${r}`)}function $i(e,t){return ef(e,t)}function xo(e,t){di(),t.intro=t.intro??!1;let r=t.target,n=$,o=O;try{for(var i=ae(r);i&&(i.nodeType!==ft||i.data!=="[");)i=ke(i);if(!i)throw Je;ve(!0),z(i);let s=ef(e,{...t,anchor:i});return ve(!1),s}catch(s){if(s instanceof Error&&s.message.split(`
80
+ `).some(l=>l.startsWith("https://svelte.dev/e/")))throw s;return s!==Je&&console.warn("Failed to hydrate: ",s),t.recover===!1&&Za(),di(),oo(r),ve(!1),$i(e,t)}finally{ve(n),z(o)}}var xi=new Map;function ef(e,{target:t,anchor:r,props:n={},events:o,context:i,intro:s=!0,transformError:l}){di();var c=void 0,p=Dl(()=>{var _=r??t.appendChild(fe());Gs(_,{pending:()=>{}},u=>{eo({});var h=M;if(i&&(h.c=i),o&&(n.$$events=o),$&&Ve(u,null),Ks=s,c=e(u,n)||ro(),Ks=!0,$&&(E.nodes.end=O,O===null||O.nodeType!==ft||O.data!=="]"))throw kr(),Je;to()},l);var g=new Set,b=u=>{for(var h=0;h<u.length;h++){var y=u[h];if(!g.has(y)){g.add(y);var w=zl(y);for(let te of[t,document]){var k=xi.get(te);k===void 0&&(k=new Map,xi.set(te,k));var V=k.get(y);V===void 0?(te.addEventListener(y,bi,{passive:w}),k.set(y,1)):k.set(y,V+1)}}}};return b(pn(Bs)),vi.add(b),()=>{for(var u of g)for(let w of[t,document]){var h=xi.get(w),y=h.get(u);--y==0?(w.removeEventListener(u,bi),h.delete(u),h.size===0&&xi.delete(w)):h.set(u,y)}vi.delete(b),_!==r&&_.parentNode?.removeChild(_)}});return Ws.set(c,p),c}var Ws=new WeakMap;function $o(e,t){let r=Ws.get(e);return r?(Ws.delete(e),r(t)):(m&&Ba(),Promise.resolve())}var Bt,nr,bt,an,Eo,To,Ei,or=class{constructor(t,r=!0){q(this,"anchor");I(this,Bt,new Map);I(this,nr,new Map);I(this,bt,new Map);I(this,an,new Set);I(this,Eo,!0);I(this,To,t=>{if(f(this,Bt).has(t)){var r=f(this,Bt).get(t),n=f(this,nr).get(r);if(n)Mn(n),f(this,an).delete(r);else{var o=f(this,bt).get(r);o&&(Mn(o.effect),f(this,nr).set(r,o.effect),f(this,bt).delete(r),m&&(o.fragment.lastChild[ls]=this.anchor),o.fragment.lastChild.remove(),this.anchor.before(o.fragment),n=o.effect)}for(let[i,s]of f(this,Bt)){if(f(this,Bt).delete(i),i===t)break;let l=f(this,bt).get(s);l&&(le(l.effect),f(this,bt).delete(s))}for(let[i,s]of f(this,nr)){if(i===r||f(this,an).has(i))continue;let l=()=>{if(Array.from(f(this,Bt).values()).includes(i)){var p=document.createDocumentFragment();Ln(s,p),p.append(fe()),f(this,bt).set(i,{effect:s,fragment:p})}else le(s);f(this,an).delete(i),f(this,nr).delete(i)};f(this,Eo)||!n?(f(this,an).add(i),er(s,l,!1)):l()}}});I(this,Ei,t=>{f(this,Bt).delete(t);let r=Array.from(f(this,Bt).values());for(let[n,o]of f(this,bt))r.includes(n)||(le(o.effect),f(this,bt).delete(n))});this.anchor=t,R(this,Eo,r)}ensure(t,r){var n=S,o=pi();if(r&&!f(this,nr).has(t)&&!f(this,bt).has(t))if(o){var i=document.createDocumentFragment(),s=fe();i.append(s),f(this,bt).set(t,{effect:xe(()=>r(s)),fragment:i})}else f(this,nr).set(t,xe(()=>r(this.anchor)));if(f(this,Bt).set(n,t),o){for(let[l,c]of f(this,nr))l===t?n.unskip_effect(c):n.skip_effect(c);for(let[l,c]of f(this,bt))l===t?n.unskip_effect(c.effect):n.skip_effect(c.effect);n.oncommit(f(this,To)),n.ondiscard(f(this,Ei))}else $&&(this.anchor=O),f(this,To).call(this,n)}};Bt=new WeakMap,nr=new WeakMap,bt=new WeakMap,an=new WeakMap,Eo=new WeakMap,To=new WeakMap,Ei=new WeakMap;function Ee(e,t,r=!1){var n;$&&(n=O,Ae());var o=new or(e),i=r?65536:0;function s(l,c){if($){var p=qr(n);if(l!==parseInt(p.substring(1))){var _=zt();z(_),o.anchor=_,ve(!1),o.ensure(l,c),ve(!0);return}}o.ensure(l,c)}st(()=>{var l=!1;t((c,p=0)=>{l=!0,s(p,c)}),l||s(-1,null)},i)}function So(e,t){return t}function Mc(e,t,r){for(var n=[],o=t.length,i,s=t.length,l=0;l<o;l++){let g=t[l];er(g,()=>{if(i){if(i.pending.delete(g),i.done.add(g),i.pending.size===0){var b=e.outrogroups;Xs(e,pn(i.done)),b.delete(i),b.size===0&&(e.outrogroups=null)}}else s-=1},!1)}if(s===0){var c=n.length===0&&r!==null&&e.pending.size===0;if(c){var p=r,_=p.parentNode;oo(_),_.append(p),e.items.clear()}Xs(e,t,!c)}else i={pending:new Set(t),done:new Set},(e.outrogroups??(e.outrogroups=new Set)).add(i)}function Xs(e,t,r=!0){var n;if(e.pending.size>0){n=new Set;for(let s of e.pending.values())for(let l of s)n.add(e.items.get(l).e)}for(var o=0;o<t.length;o++){var i=t[o];if(n?.has(i)){i.f|=33554432;let s=document.createDocumentFragment();Ln(i,s)}else le(t[o],r)}}var Ti;function Hn(e,t,r,n,o,i=null){var s=e,l=new Map,c=(t&4)!==0;if(c){var p=e;s=$?z(ae(p)):p.appendChild(fe())}$&&Ae();var _=null,g=yn(()=>{var V=r();return It(V)?V:V==null?[]:pn(V)});m&&Be(g,"{#each ...}");var b=new Map,u=!0;function h(V){if((k.effect.f&16384)===0){k.pending.delete(V);var te=a(g);k.fallback=_,Lc(k,te,s,t,n),_!==null&&(te.length===0?(_.f&33554432)===0?Mn(_):(_.f^=33554432,ko(_,null,s)):er(_,()=>{_=null}))}}function y(V){k.pending.delete(V)}var w=st(()=>{var V=a(g),te=V.length;let de=!1;if($){var wt=qr(s)==="[!";wt!==(te===0)&&(s=zt(),z(s),ve(!1),de=!0)}for(var ze=new Set,ne=S,ue=pi(),Xe=0;Xe<te;Xe+=1){$&&O.nodeType===ft&&O.data==="]"&&(s=O,de=!0,ve(!1));var Ie=V[Xe],yt=n(Ie,Xe);if(m){var cn=n(Ie,Xe);yt!==cn&&Ga(String(Xe),String(yt),String(cn))}var Rt=u?null:l.get(yt);Rt?(Rt.v&&Ft(Rt.v,Ie),Rt.i&&Ft(Rt.i,Xe),ue&&ne.unskip_effect(Rt.e)):(Rt=Fc(l,u?s:Ti??(Ti=fe()),Ie,yt,Xe,o,t,r),u||(Rt.e.f|=33554432),l.set(yt,Rt)),ze.add(yt)}if(te===0&&i&&!_&&(u?_=xe(()=>i(s)):(_=xe(()=>i(Ti??(Ti=fe()))),_.f|=33554432)),te>ze.size&&(m?Pc(V,n):ds("","","")),$&&te>0&&z(zt()),!u)if(b.set(ne,ze),ue){for(let[sr,un]of l)ze.has(sr)||ne.skip_effect(un.e);ne.oncommit(h),ne.ondiscard(y)}else h(ne);de&&ve(!0),a(g)}),k={effect:w,flags:t,items:l,pending:b,outrogroups:null,fallback:_};u=!1,$&&(s=O)}function Ao(e){for(;e!==null&&(e.f&32)===0;)e=e.next;return e}function Lc(e,t,r,n,o){var i=(n&8)!==0,s=t.length,l=e.items,c=Ao(e.effect.first),p,_=null,g,b=[],u=[],h,y,w,k;if(i)for(k=0;k<s;k+=1)h=t[k],y=o(h,k),w=l.get(y).e,(w.f&33554432)===0&&(w.nodes?.a?.measure(),(g??(g=new Set)).add(w));for(k=0;k<s;k+=1){if(h=t[k],y=o(h,k),w=l.get(y).e,e.outrogroups!==null)for(let Ie of e.outrogroups)Ie.pending.delete(w),Ie.done.delete(w);if((w.f&8192)!==0&&(Mn(w),i&&(w.nodes?.a?.unfix(),(g??(g=new Set)).delete(w))),(w.f&33554432)!==0)if(w.f^=33554432,w===c)ko(w,null,r);else{var V=_?_.next:c;w===e.effect.last&&(e.effect.last=w.prev),w.prev&&(w.prev.next=w.next),w.next&&(w.next.prev=w.prev),Lr(e,_,w),Lr(e,w,V),ko(w,V,r),_=w,b=[],u=[],c=Ao(_.next);continue}if(w!==c){if(p!==void 0&&p.has(w)){if(b.length<u.length){var te=u[0],de;_=te.prev;var wt=b[0],ze=b[b.length-1];for(de=0;de<b.length;de+=1)ko(b[de],te,r);for(de=0;de<u.length;de+=1)p.delete(u[de]);Lr(e,wt.prev,ze.next),Lr(e,_,wt),Lr(e,ze,te),c=te,_=ze,k-=1,b=[],u=[]}else p.delete(w),ko(w,c,r),Lr(e,w.prev,w.next),Lr(e,w,_===null?e.effect.first:_.next),Lr(e,_,w),_=w;continue}for(b=[],u=[];c!==null&&c!==w;)(p??(p=new Set)).add(c),u.push(c),c=Ao(c.next);if(c===null)continue}(w.f&33554432)===0&&b.push(w),_=w,c=Ao(w.next)}if(e.outrogroups!==null){for(let Ie of e.outrogroups)Ie.pending.size===0&&(Xs(e,pn(Ie.done)),e.outrogroups?.delete(Ie));e.outrogroups.size===0&&(e.outrogroups=null)}if(c!==null||p!==void 0){var ne=[];if(p!==void 0)for(w of p)(w.f&8192)===0&&ne.push(w);for(;c!==null;)(c.f&8192)===0&&c!==e.fallback&&ne.push(c),c=Ao(c.next);var ue=ne.length;if(ue>0){var Xe=(n&4)!==0&&s===0?r:null;if(i){for(k=0;k<ue;k+=1)ne[k].nodes?.a?.measure();for(k=0;k<ue;k+=1)ne[k].nodes?.a?.fix()}Mc(e,ne,Xe)}}i&&pe(()=>{if(g!==void 0)for(w of g)w.nodes?.a?.apply()})}function Fc(e,t,r,n,o,i,s,l){var c=(s&1)!==0?(s&16)===0?Zr(r,!1,!1):Ye(r):null,p=(s&2)!==0?Ye(o):null;return m&&c&&(c.trace=()=>{l()[p?.v??o]}),{v:c,i:p,e:xe(()=>(i(t,c??r,p??o,l),()=>{e.delete(n)}))}}function ko(e,t,r){if(e.nodes)for(var n=e.nodes.start,o=e.nodes.end,i=t&&(t.f&33554432)===0?t.nodes.start:r;n!==null;){var s=ke(n);if(i.before(n),n===o)return;n=s}}function Lr(e,t,r){t===null?e.effect.first=r:t.next=r,r===null?e.effect.last=t:r.prev=t}function Pc(e,t){let r=new Map,n=e.length;for(let o=0;o<n;o++){let i=t(e[o],o);if(r.has(i)){let s=String(r.get(i)),l=String(o),c=String(i);c.startsWith("[object ")&&(c=null),ds(s,l,c)}r.set(i,o)}}function Hc(e,t,r){if(!t||t===ql(String(r??"")))return;let n,o=e.__svelte_meta?.loc;o?n=`near ${o.file}:${o.line}:${o.column}`:ct?.[Ze]&&(n=`in ${ct[Ze]}`),Ha(mi(n))}function Js(e,t,r=!1,n=!1,o=!1,i=!1){var s=e,l="";if(r){var c=e;$&&(s=z(ae(c)))}oe(()=>{var p=E;if(l===(l=t()??"")){$&&Ae();return}if(r&&!$){p.nodes=null,c.innerHTML=l,l!==""&&Ve(ae(c),c.lastChild);return}if(p.nodes!==null&&(Fs(p.nodes.start,p.nodes.end),p.nodes=null),l!==""){if($){for(var _=O.data,g=Ae(),b=g;g!==null&&(g.nodeType!==ft||g.data!=="");)b=g,g=ke(g);if(g===null)throw kr(),Je;m&&!i&&Hc(g.parentNode,_,l),Ve(O,b),s=z(g);return}var u=n?Jn:o?cs:void 0,h=Ht(n?"svg":o?"math":"template",u);h.innerHTML=l;var y=n||o?h:h.content;if(Ve(ae(y),y.lastChild),n||o)for(;ae(y);)s.before(ae(y));else s.before(y)}})}function Bn(e,t,...r){var n=new or(e);st(()=>{let o=t()??null;m&&o==null&&Qa(),n.ensure(o,o&&(i=>o(i,...r)))},65536)}function Zs(e,t,r){ht(()=>{var n=X(()=>t(e,r?.())||{});if(r&&n?.update){var o=!1,i={};Ce(()=>{var s=r();hi(s),o&&Xo(i,s)&&(i=s,n.update(s))}),o=!0}if(n?.destroy)return()=>n.destroy()})}var yw=[...`
81
+ \r\f\xA0\v\uFEFF`];function rf(e,t=!1){var r=t?" !important;":";",n="";for(var o of Object.keys(e)){var i=e[o];i!=null&&i!==""&&(n+=" "+o+": "+i+r)}return n}function Qs(e){return e[0]!=="-"||e[1]!=="-"?e.toLowerCase():e}function nf(e,t){if(t){var r="",n,o;if(Array.isArray(t)?(n=t[0],o=t[1]):n=t,e){e=String(e).replaceAll(/\/\*.*?\*\//g,"").trim();var i=!1,s=0,l=!1,c=[];n&&c.push(...Object.keys(n).map(Qs)),o&&c.push(...Object.keys(o).map(Qs));var p=0,_=-1;let y=e.length;for(var g=0;g<y;g++){var b=e[g];if(l?b==="/"&&e[g-1]==="*"&&(l=!1):i?i===b&&(i=!1):b==="/"&&e[g+1]==="*"?l=!0:b==='"'||b==="'"?i=b:b==="("?s++:b===")"&&s--,!l&&i===!1&&s===0){if(b===":"&&_===-1)_=g;else if(b===";"||g===y-1){if(_!==-1){var u=Qs(e.substring(p,_).trim());if(!c.includes(u)){b!==";"&&g++;var h=e.substring(p,g).trim();r+=" "+h+";"}}p=g+1,_=-1}}}}return n&&(r+=rf(n)),o&&(r+=rf(o,!0)),r=r.trim(),r===""?null:r}return e==null?null:String(e)}function ea(e,t={},r,n){for(var o in r){var i=r[o];t[o]!==i&&(r[o]==null?e.style.removeProperty(o):e.style.setProperty(o,i,n))}}function No(e,t,r,n){var o=e[Wn];if($||o!==t){var i=nf(t,n);(!$||i!==e.getAttribute("style"))&&(i==null?e.removeAttribute("style"):e.style.cssText=i),e[Wn]=t}else n&&(Array.isArray(n)?(ea(e,r?.[0],n[0]),ea(e,r?.[1],n[1],"important")):ea(e,r,n));return n}function ra(e,t){t?e.hasAttribute("selected")||e.setAttribute("selected",""):e.removeAttribute("selected")}function zc(e,t){var r=e.__defaultValue,n=e.multiple,o=n?r??[]:null;if(!(n&&!It(o))){var i=e.selectedIndex,s=t&&n?new Set(e.selectedOptions):null;for(var l of e.options){var c=ta(l);ra(l,n?o.includes(c):ui(c,r))}if(t)if(s!==null)for(l of e.options){var p=s.has(l);l.selected!==p&&(l.selected=p)}else e.selectedIndex!==i&&(e.selectedIndex=i)}}function Fr(e,t,r=!1){if(e.multiple){if(t==null)return;if(!It(t))return Ua();for(var n of e.options)n.selected=t.includes(ta(n));return}for(n of e.options){var o=ta(n);if(ui(o,t)){n.selected=!0;return}}(!r||t!==void 0)&&(e.selectedIndex=-1)}function ln(e){var t=new MutationObserver(r=>{r.every(jc)||("__defaultValue"in e&&zc(e,!1),"__value"in e&&Fr(e,e.__value))});t.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),Se(()=>{t.disconnect()})}function ta(e){return"__value"in e?e.__value:e.value}function jc(e){if(e.target.closest("selectedcontent")!==null)return!0;if(e.type==="childList"){var t=[...e.addedNodes,...e.removedNodes];return t.length>0&&t.every(r=>r.nodeName==="SELECTEDCONTENT")}return!1}var Jc=Symbol("is custom element"),Zc=Symbol("is html"),Qc=fs?"link":"LINK";function Un(e){if($){var t=!1,r=()=>{if(!t){if(t=!0,e.hasAttribute("value")){var n=e.value;he(e,"value",null),e.value=n}if(e.hasAttribute("checked")){var o=e.checked;he(e,"checked",null),e.checked=o}}};e[Ar]=r,pe(r),ni()}}function Ai(e,t){var r=lf(e);r.checked!==(r.checked=t??void 0)&&(e.checked=t)}function he(e,t,r,n){var o=lf(e);if($&&(o[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName===Qc)){n||tu(e,t,r??"");return}o[t]!==(o[t]=r)&&(t==="loading"&&(e[Da]=r),r==null?e.removeAttribute(t):typeof r!="string"&&eu(e).has(t)?e[t]=r:e.setAttribute(t,r))}function lf(e){var t;return e[t=jo]??(e[t]={[Jc]:e.nodeName.includes("-"),[Zc]:e.namespaceURI===Go})}var of=new Map;function eu(e){var t=e.getAttribute("is")||e.nodeName,r=of.get(t);if(r)return r;of.set(t,r=new Set);for(var n,o=e,i=Element.prototype;i!==o;){n=Bo(o);for(var s in n)n[s].set&&s!=="innerHTML"&&s!=="textContent"&&s!=="innerText"&&r.add(s);o=Ur(o)}return r}function tu(e,t,r){m&&(t==="srcset"&&ru(e,r)||na(e.getAttribute(t)??"",r)||Pa(t,e.outerHTML.replace(e.innerHTML,e.innerHTML&&"..."),String(r)))}function na(e,t){return e===t?!0:new URL(e,document.baseURI).href===new URL(t,document.baseURI).href}function sf(e){return e.split(",").map(t=>t.trim().split(" ").filter(Boolean))}function ru(e,t){var r=sf(e.srcset),n=sf(t);return n.length===r.length&&n.every(([o,i],s)=>i===r[s][1]&&(na(r[s][0],o)||na(o,r[s][0])))}function Si(e,t,r=t){var n=new WeakSet;_s(e,"input",async o=>{m&&e.type==="checkbox"&&us();var i=o?e.defaultValue:e.value;if(i=oa(e)?ia(i):i,r(i),S!==null&&n.add(S),await rn(),i!==(i=t())){var s=e.selectionStart,l=e.selectionEnd,c=e.value.length;if(e.value=i??"",l!==null){var p=e.value.length;s===l&&l===c&&p>c?(e.selectionStart=p,e.selectionEnd=p):(e.selectionStart=s,e.selectionEnd=Math.min(l,p))}}}),($&&e.defaultValue!==e.value||X(t)==null&&e.value)&&(r(oa(e)?ia(e.value):e.value),S!==null&&n.add(S)),Ce(()=>{m&&e.type==="checkbox"&&us();var o=t();if(e===document.activeElement){var i=ge?$t:S;if(n.has(i))return}oa(e)&&o===ia(e.value)||e.type==="date"&&!o&&!e.value||o!==e.value&&(e.value=o??"")})}function oa(e){var t=e.type;return t==="number"||t==="range"}function ia(e){return e===""?null:+e}function sa(e,t){return e===t||e?.[He]===t}function fn(e=ro(),t,r,n){var o=M.r,i=E;return ht(()=>{var s,l;return Ce(()=>{s=l,l=n?.()||[],X(()=>{sa(r(...l),e)||(t(e,...l),s&&sa(r(...s),e)&&t(null,...s))})}),()=>{let c=i;for(;c!==o&&c.parent!==null&&c.parent.f&33554432;)c=c.parent;let p=()=>{l&&sa(r(...l),e)&&t(null,...l)},_=c.teardown;c.teardown=()=>{p(),_?.()}}}),e}function ff(e){return new la(e)}var br,Nt,la=class{constructor(t){I(this,br);I(this,Nt);var r=new Map,n=(i,s)=>{var l=Zr(s,!1,!1);return r.set(i,l),l};let o=new Proxy({...t.props||{},$$events:{}},{get(i,s){return a(r.get(s)??n(s,Reflect.get(i,s)))},has(i,s){return s===qo?!0:(a(r.get(s)??n(s,Reflect.get(i,s))),Reflect.has(i,s))},set(i,s,l){return x(r.get(s)??n(s,l),l),Reflect.set(i,s,l)}});R(this,Nt,(t.hydrate?xo:$i)(t.component,{target:t.target,anchor:t.anchor,props:o,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError})),!ge&&(!t?.props?.$$host||t.sync===!1)&&Cr(),R(this,br,o.$$events);for(let i of Object.keys(f(this,Nt)))i==="$set"||i==="$destroy"||i==="$on"||Te(this,i,{get(){return f(this,Nt)[i]},set(s){f(this,Nt)[i]=s},enumerable:!0});f(this,Nt).$set=i=>{Object.assign(o,i)},f(this,Nt).$destroy=()=>{$o(f(this,Nt))}}$set(t){f(this,Nt).$set(t)}$on(t,r){f(this,br)[t]=f(this,br)[t]||[];let n=(...o)=>r.call(this,...o);return f(this,br)[t].push(n),()=>{f(this,br)[t]=f(this,br)[t].filter(o=>o!==n)}}$destroy(){f(this,Nt).$destroy()}};br=new WeakMap,Nt=new WeakMap;var du;typeof HTMLElement=="function"&&(du=class extends HTMLElement{constructor(t,r,n){super();q(this,"$$ctor");q(this,"$$s");q(this,"$$c");q(this,"$$cn",!1);q(this,"$$d",{});q(this,"$$r",!1);q(this,"$$p_d",{});q(this,"$$l",{});q(this,"$$l_u",new Map);q(this,"$$me");q(this,"$$shadowRoot",null);this.$$ctor=t,this.$$s=r,n&&(this.$$shadowRoot=this.attachShadow(n))}addEventListener(t,r,n){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(r),this.$$c){let o=this.$$c.$on(t,r);this.$$l_u.set(r,o)}super.addEventListener(t,r,n)}removeEventListener(t,r,n){if(super.removeEventListener(t,r,n),this.$$c){let o=this.$$l_u.get(r);o&&(o(),this.$$l_u.delete(r))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(o){return i=>{let s=Ht("slot");o!=="default"&&(s.name=o),U(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;let r={},n=pu(this);for(let o of this.$$s)o in n&&(o==="default"&&!this.$$d.children?(this.$$d.children=t(o),r.default=!0):r[o]=t(o));for(let o of this.attributes){let i=this.$$g_p(o.name);i in this.$$d||(this.$$d[i]=fa(i,o.value,this.$$p_d,"toProp"))}for(let o in this.$$p_d)!(o in this.$$d)&&this[o]!==void 0&&(this.$$d[o]=this[o],delete this[o]);this.$$c=ff({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:r,$$host:this}}),this.$$me=Ms(()=>{Ce(()=>{this.$$r=!0;for(let o of os(this.$$c)){if(!this.$$p_d[o]?.reflect)continue;this.$$d[o]=this.$$c[o];let i=fa(o,this.$$d[o],this.$$p_d,"toAttribute");i==null?this.removeAttribute(this.$$p_d[o].attribute||o):this.setAttribute(this.$$p_d[o].attribute||o,i)}this.$$r=!1})});for(let o in this.$$l)for(let i of this.$$l[o]){let s=this.$$c.$on(o,i);this.$$l_u.set(i,s)}this.$$l={}}}attributeChangedCallback(t,r,n){this.$$r||(t=this.$$g_p(t),this.$$d[t]=fa(t,n,this.$$p_d,"toProp"),this.$$c?.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(t){return os(this.$$p_d).find(r=>this.$$p_d[r].attribute===t||!this.$$p_d[r].attribute&&r.toLowerCase()===t)||t}});function fa(e,t,r,n){let o=r[e]?.type;if(t=o==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="toAttribute")switch(o){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(o){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function pu(e){let t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}if(m){let e=function(t){if(!(t in globalThis)){let r;Object.defineProperty(globalThis,t,{configurable:!0,get:()=>{if(r!==void 0)return r;el(t)},set:n=>{r=n}})}};e("$state"),e("$effect"),e("$derived"),e("$inspect"),e("$props"),e("$bindable")}function cf(e){M===null&&Zo("onMount"),Sr&&M.l!==null?hu(M).m.push(e):Qt(()=>{let t=X(e);if(typeof t=="function")return t})}function hu(e){var t=e.l;return t.u??(t.u={a:[],b:[],m:[]})}var uf;typeof window<"u"&&((uf=window.__svelte??(window.__svelte={})).v??(uf.v=new Set)).add("5");var vu={directory:'<path d="M3 7V5h6l2 3h10v12H3Z"/><path d="M3 10h18"/>',file:'<path d="M5 3h9l5 5v13H5ZM14 3v5h5M8 12h8M8 16h6"/>',link:'<path d="m9 15 6-6M8 10l-3 3a4 4 0 0 0 6 6l3-3M10 8l3-3a4 4 0 0 1 6 6l-3 3"/>'};function df(e){return`<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.45" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">${vu[e]}</svg>`}function pf(e){let t=new Set,r=(o,i)=>{if(i>32)throw new TypeError("Presentation data is too deeply nested");if(o===null||typeof o=="string"||typeof o=="boolean"||typeof o=="number"&&Number.isFinite(o))return o;if(typeof o!="object"||o===null||t.has(o))throw new TypeError("Presentation data must be finite, acyclic JSON");t.add(o);try{if(Array.isArray(o))return o.map(s=>r(s,i+1));if(Object.getPrototypeOf(o)!==Object.prototype&&Object.getPrototypeOf(o)!==null)throw new TypeError("Presentation data must use plain objects");return Object.fromEntries(Object.entries(o).map(([s,l])=>[s,r(l,i+1)]))}finally{t.delete(o)}};if(typeof e!="object"||e===null||Array.isArray(e))throw new TypeError("Presentation data must be an object");let n=r(e,0);if(typeof n!="object"||n===null||Array.isArray(n))throw new TypeError("Presentation data must be an object");return n}var L=class extends Error{constructor(){super(...arguments);q(this,"name","ListingDataError")}},Ro=class extends L{},Yn=e=>typeof e=="object"&&e!==null&&!Array.isArray(e),Ni=e=>typeof e=="number"&&Number.isSafeInteger(e)&&e>=0,_f=e=>typeof e=="string"&&["directory","file","symlink","other"].includes(e);function wr(e,t){if(typeof e!="string")throw new L(`Invalid ${t}`);return e}function ca(e,t){if(typeof e!="boolean")throw new L(`Invalid ${t}`);return e}function gu(e,t){if(e===null)return null;let r=new URL(wr(e,"href"),t);if(!["http:","https:"].includes(r.protocol))throw new L("Unsupported listing link protocol");return r.href}function hf(e,t){if(!Yn(e)||!_f(e.kind)||typeof e.size!="number"||!Number.isFinite(e.size)||e.size<0)throw new L("Invalid listing entry");let r=null;if(e.link!==null){if(!Yn(e.link))throw new L("Invalid link metadata");let n=e.link.targetKind;if(n!==null&&(!_f(n)||n==="symlink"))throw new L("Invalid target kind");let o=e.link.targetSize;if(o!==null&&(typeof o!="number"||!Number.isFinite(o)||o<0))throw new L("Invalid target size");r={target:wr(e.link.target,"target"),targetKind:n,targetSize:o,unavailable:ca(e.link.unavailable,"unavailable"),cycle:ca(e.link.cycle,"cycle")}}return{...e.presentation===void 0?{}:{presentation:pf(e.presentation)},id:wr(e.id,"id"),name:wr(e.name,"name"),kind:e.kind,href:gu(e.href,t),exitsExplorer:ca(e.exitsExplorer,"exitsExplorer"),size:e.size,modifiedAt:wr(e.modifiedAt,"modifiedAt"),link:r}}function bu(e){if(!Yn(e)||e.version!==1||!Ni(e.total)||!Array.isArray(e.blocks)||!Yn(e.sort))throw new L("Invalid listing manifest");let t=e.sort;if(typeof t.field!="string"||!["name","size","modified"].includes(t.field)||typeof t.direction!="string"||!["asc","desc"].includes(t.direction)||typeof t.nameMode!="string"||!["locale","natural","unicode"].includes(t.nameMode)||typeof t.directoriesFirst!="boolean")throw new L("Invalid listing order");let r=t.field==="size"?"size":t.field==="modified"?"modified":"name",n=t.direction==="desc"?"desc":"asc",o=t.nameMode==="unicode"?"unicode":t.nameMode==="locale"?"locale":"natural",i=e.blocks.map(s=>{if(!Yn(s)||!Ni(s.offset)||!Ni(s.count))throw new L("Invalid block descriptor");return{href:wr(s.href,"block href"),offset:s.offset,count:s.count}});if(i.length===0)throw new L("Missing blocks");return{version:1,revision:wr(e.revision,"revision"),directory:wr(e.directory,"directory"),hrefBase:wr(e.hrefBase,"href base"),total:e.total,sort:{field:r,direction:n,nameMode:o,directoriesFirst:t.directoriesFirst},blocks:i}}async function Co(e,t={}){let r=t.fetch??fetch,n=t.maxEntries??1e5;if(!Ni(n))throw new L("Invalid entry limit");let o=new URL(e);if(!["http:","https:"].includes(o.protocol))throw new L("Listing loading requires HTTP(S); use native file navigation");for(let i=0;i<2;i++)try{let s={...t.signal===void 0?{}:{signal:t.signal},cache:i===0?t.cache??"default":"reload"},l=await r(o,s);if(!l.ok)throw new L(`Manifest request failed: ${l.status}`);let c=bu(await l.json());if(c.total>n)throw new L("Listing exceeds the configured entry limit");let p=new URL(c.hrefBase,o);if(!["http:","https:"].includes(p.protocol))throw new L("Unsupported href base protocol");let _=[],g=new Set;for(let b of c.blocks){if(b.offset!==_.length||b.count+_.length>c.total)throw new L("Invalid block coverage");let u=new URL(b.href,o);if(u.origin!==o.origin||!["http:","https:"].includes(u.protocol))throw new L("Block leaves the manifest origin");let h=await r(u,s);if(h.status===404||h.status===410)throw new Ro("Block no longer available");if(!h.ok)throw new L(`Block request failed: ${h.status}`);let y=await h.json();if(!Yn(y)||y.version!==1||y.revision!==c.revision)throw new Ro("Listing revision changed");if(y.offset!==b.offset||y.total!==c.total||!Array.isArray(y.entries)||y.entries.length!==b.count)throw new L("Invalid block envelope");for(let w of y.entries){let k=hf(w,p);if(g.has(k.id))throw new L("Duplicate entry ID");g.add(k.id),_.push(k)}}if(_.length!==c.total)throw new L("Incomplete listing");return{manifest:c,entries:_}}catch(s){if(t.signal?.aborted||!(s instanceof Ro)||i===1)throw s}throw new L("Listing unavailable")}function mf(e,t,r=1e5){if(!Array.isArray(e)||e.length>r)throw new L("Invalid page slice");let n=new URL(t),o=new Set,i=e.map(s=>hf(s,n));for(let s of i){if(o.has(s.id))throw new L("Duplicate entry ID");o.add(s.id)}return i}async function ua(e,t,r,n,o=!1,i=0){let s=new URL(e,document.baseURI);if(s.origin!==location.origin)throw new L("Folder leaves the theme origin");let l=await fetch(s,{signal:n,cache:o?"no-store":"default"});if(!l.ok)throw new L("Unavailable folder");let c=await l.json();if(typeof c!="object"||c===null||Array.isArray(c))throw new L("Invalid folder snapshot");let p=c;if(p.version!==1||p.theme!==r||typeof p.title!="string"||typeof p.path!="string"||!Number.isSafeInteger(p.total)||Number(p.total)<0||!Array.isArray(p.breadcrumbs))throw new L("Unsupported folder snapshot");if(p.metadataHead!==void 0&&typeof p.metadataHead!="string")throw new L("Invalid folder metadata");let _=document.querySelector("base")?.href??t,g=h=>{if(h===null)return null;if(typeof h!="string")throw new L("Invalid folder link");let y=new URL(h,_);if(!["http:","https:"].includes(y.protocol)||y.origin!==location.origin)throw new L("Unsupported folder link");return y.href},b=mf(p.entries,_).map(h=>({...h,...h.presentation?{presentation:{...h.presentation,folderDataHref:g(h.presentation.folderDataHref??null)}}:{}}));if(b.length>Number(p.total))throw new L("Invalid folder count");let u={...p,updatesHref:g(p.updatesHref??null),entries:b,dataHref:s.href,manifestHref:g(p.manifestHref),rootHref:g(p.rootHref),rootDataHref:g(p.rootDataHref),parentHref:g(p.parentHref),parentDataHref:g(p.parentDataHref),breadcrumbs:p.breadcrumbs.map(h=>{if(typeof h!="object"||h===null||!("name"in h)||!("href"in h)||!("dataHref"in h)||typeof h.name!="string")throw new L("Invalid breadcrumb");return{name:h.name,href:g(h.href),dataHref:g(h.dataHref)}})};if(o&&u.manifestHref){let h=await Co(u.manifestHref,{signal:n,cache:"no-store"});if(h.manifest.total!==p.total||p.listingRevision!==void 0&&h.manifest.revision!==p.listingRevision){if(i<2)return ua(e,t,r,n,!0,i+1);throw new L("Folder changed while refreshing")}u.entries=[...h.entries]}return u}var Ri=new WeakMap;function vf(e,t){if(!t||typeof document>"u")return e;let r=document.querySelector("[data-dirwell-theme]");if(!r)return e;let n=Ri.get(r)??e;return Ri.set(r,n),n}function gf(e,t){let r=document.querySelector("[data-dirwell-theme]");r&&Ri.has(r)&&Ri.set(r,e),document.title=typeof e.title=="string"?e.title:"";let n=document.createElement("template");n.innerHTML=typeof e.metadataHead=="string"?e.metadataHead:"",document.head.querySelectorAll("[data-dirwell-metadata]").forEach(s=>s.remove());let o=document.querySelector("base")?.href??t,i=s=>{try{let l=new URL(s,o);return["http:","https:"].includes(l.protocol)?l.href:null}catch{return null}};for(let s of n.content.children){if(!s.hasAttribute("data-dirwell-metadata"))continue;let l;if(s.tagName==="META"){let c=s.hasAttribute("property")?"property":"name",p=s.getAttribute(c)??"";if(!/^(?:description|og:[a-z_:]+|twitter:[a-z_:]+)$/i.test(p))continue;let _=s.getAttribute("content")??"";if(["og:image","og:url","twitter:image"].includes(p)){let g=i(_);if(g===null)continue;_=g}l=document.createElement("meta"),l.setAttribute(c,p),l.setAttribute("content",_)}else if(s.tagName==="LINK"&&s.getAttribute("rel")==="canonical"){let c=i(s.getAttribute("href")??"");if(c===null)continue;l=document.createElement("link"),l.setAttribute("rel","canonical"),l.setAttribute("href",c)}else continue;l.setAttribute("data-dirwell-metadata",""),document.head.append(l)}}var Vn=e=>e.kind==="directory"||e.link?.targetKind==="directory",da=e=>e.kind==="symlink"?"link":Vn(e)?"directory":"file";function pa(e,t){let r=0,n=0,o=-2;for(let i of e.trim().toLocaleLowerCase()){let s=t.toLocaleLowerCase().indexOf(i,n);if(s<0)return null;s===o+1&&(r+=8),(s===0||/[\s/_.-]/.test(t[s-1]??""))&&(r+=5),r+=Math.max(0,4-s*.05),o=s,n=s+1}return r-t.length*.01}function wf(e,t,r,n){return e.map(o=>({entry:o,score:pa(t,`${o.name} ${o.link?.target??""}`)})).filter(o=>r.includes(da(o.entry))&&o.score!==null).sort((o,i)=>{if(t.trim()&&o.score!==i.score)return(i.score??0)-(o.score??0);let s=o.entry,l=i.entry;if(n.directoriesFirst&&Vn(s)!==Vn(l))return Vn(s)?-1:1;let c=()=>n.nameMode==="unicode"?bf(s.name,l.name):s.name.localeCompare(l.name,void 0,{numeric:n.nameMode==="natural",sensitivity:"base"}),p=(n.field==="name"?c():n.field==="size"?(s.kind==="directory"?0:s.size)-(l.kind==="directory"?0:l.size):s.modifiedAt.localeCompare(l.modifiedAt))||c();return(n.direction==="asc"?p:-p)||bf(s.id,l.id)}).map(o=>o.entry)}function bf(e,t){let r=[...e],n=[...t];for(let o=0;o<Math.min(r.length,n.length);o++){let i=(r[o]?.codePointAt(0)??0)-(n[o]?.codePointAt(0)??0);if(i)return i}return r.length-n.length}function yf(e){let t=["B","KiB","MiB","GiB","TiB"],r=e,n=0;for(;r>=1024&&n<4;)r/=1024,n++;return`${r.toFixed(n===0||r>=100?0:1)} ${t[n]}`}function xf(e,t=!1){let r=new Date(e);return Number.isNaN(r.getTime())?"Unknown":t?r.toLocaleString(void 0,{dateStyle:"short",timeStyle:"short"}):`${r.toISOString().slice(0,16).replace("T"," ")} UTC`}var wu=ce("<h1> </h1> <span>File archive</span>",1),yu=ce("/ <a> </a>",1),xu=ce('<label><input type="checkbox"/> </label>'),$u=ce('<li class="entry"><a>../</a></li>'),$f=ce('<li aria-hidden="true"></li>'),Eu=ce('<span class="file-icon" aria-hidden="true"></span> ',1),Tu=ce('<a class="name"><!></a>'),Au=ce("<span><!></span>"),ku=ce('<small class="target"> </small>'),Su=ce('<li class="entry" data-entry=""><span class="identity"><!><!></span> <span class="kind"> </span> <button class="timestamp-button"><time> </time></button></li>'),Nu=ce("<p>No matching entries.</p>"),Ru=ce('<a rel="prev">Previous</a>'),Cu=ce('<a rel="next">Next</a>'),Ou=ce('<nav aria-label="Pagination"><!> <!></nav>'),Iu=ce(`<p class="keyboard-help">Arrow keys select files \xB7 Home / End jump \xB7 / searches \xB7 Backspace opens
82
+ parent</p>`),Du=ce("<dialog><h2>Modified time</h2> <p> </p> <p> </p> <button>Close</button></dialog>"),Mu=ce("<a> </a>"),Lu=ce("<li><!></li>"),Fu=ce('<dialog><h2>Search archive</h2> <input aria-label="Search archive files" type="search"/> <p role="status"> </p> <ul></ul> <button>Close</button></dialog>'),Pu=ce('<header class="page-header"><div class="wordmark"><!></div> <nav aria-label="Breadcrumb"><a>Home</a><!></nav></header> <main data-explorer="" data-framework="svelte"><div class="toolbar"><label class="search-field">Search this directory<input type="search" placeholder="Search files"/></label> <fieldset><legend>Types</legend><!></fieldset> <label>Sort<select><option>Name</option><option>Size</option><option>Modified</option></select></label> <label>Names<select><option>Natural</option><option>Locale</option><option>Unicode</option></select></label> <label>Order<select><option>Ascending</option><option>Descending</option></select></label> <label><input type="checkbox"/>Folders first</label> <label>Appearance<select><option>System</option><option>Light</option><option>Dark</option></select></label> <button>Search archive</button></div> <section class="listing-card"><div class="listing-summary"><span data-visible-count=""> </span> entries<!><span role="status" aria-live="polite"> </span></div> <div class="entry-head"><span>Name</span><span>Size</span><span>Modified</span></div> <ul class="entry-list"><!> <!> <!> <!></ul> <!></section> <!> <!></main> <!> <!>',1);function _a(e,t){eo(t,!0);let r=X(()=>vf(t.model,!1)),n=H(r),o=H(r.entries),i=H(""),s=H(Xt(["directory","file","link"])),l=H(r.sort),c=H("system"),p=H(null),_=H(!1),g=H(!1),b=H(""),u=H(null),h=H(!1),y=H(0),w=H(!1),k=H(""),V=H([]),te=H("Enter a search to begin."),de=H(null),wt=H(new Map),ze=dr(()=>a(_)&&a(n).updatesHref?new URL(a(n).updatesHref,document.baseURI).href:null),ne=dr(()=>a(o).length===a(n).total),ue=dr(()=>wf(a(o),a(h)?"":a(i),a(s),a(l))),Xe=dr(()=>a(_)&&a(ue).length>500),Ie=dr(()=>{let d=[0];for(let v of a(ue))d.push(d.at(-1)+(a(wt).get(v.id)??76));return d}),yt=dr(()=>{if(!a(Xe))return 0;let d=0,v=a(ue).length;for(;d<v;){let T=d+v>>1;a(Ie)[T+1]<=a(y)?d=T+1:v=T}return Math.max(0,d-5)}),cn=dr(()=>a(Xe)?Math.min(a(ue).length,a(yt)+35):a(ue).length);function Rt(d,v){if(typeof ResizeObserver>"u")return;let T=new ResizeObserver(()=>{let D=d.getBoundingClientRect().height;if(D>0&&a(wt).get(v)!==D){let re=new Map(a(wt));re.set(v,D),x(wt,re)}});return T.observe(d),{destroy:()=>T.disconnect()}}let sr=H(void 0),un=H(void 0),Ci=H(void 0),qn=H(void 0),zn=H(void 0),yr=0,jn,Oi,Ii=0,Di=Vn;function Ef(d){return typeof location<"u"&&location.protocol==="file:"&&Di(d)&&!d.exitsExplorer&&d.href?.endsWith("/")?d.href+"index.html":d.href}async function ha(){if(a(ne)||!a(n).manifestHref||location.protocol==="file:")return;let d=jn,v=yr;x(g,!0);try{let T=await Co(new URL(a(n).manifestHref,document.baseURI).href,{signal:d.signal,cache:a(n).updatesHref?"no-store":"default"});v===yr&&!d.signal.aborted&&x(o,T.entries)}catch{v===yr&&!d.signal.aborted&&x(b,"Could not load complete directory data. Native page links remain available.")}finally{v===yr&&x(g,!1)}}async function Tf(d,v){let T=v.presentation?.folderDataHref;v.exitsExplorer||d?.altKey||d?.ctrlKey||d?.metaKey||d?.shiftKey||d?.button>0||typeof T!="string"||location.protocol==="file:"||(d?.preventDefault(),await Gn(T,new URL(v.href,document.baseURI).href,!0))}async function Gn(d,v,T,D=!1){let re=++yr;jn?.abort();let J=jn=new AbortController;x(g,!0),x(b,"");try{let ie=await ua(d,v,"ledger",J.signal,D),j=ie.entries;if(D&&ie.manifestHref&&j.length!==ie.total&&(j=(await Co(ie.manifestHref,{signal:J.signal,cache:"no-store"})).entries),re!==yr||J.signal.aborted)return;x(n,ie),x(o,j),D||(x(i,""),x(p,null),x(y,0)),T&&history.pushState({dataHref:ie.dataHref},"",v),gf(ie,v),await ha(),D||window.scrollTo({top:0})}catch{re===yr&&!J.signal.aborted&&x(b,"Could not open this folder. Open its native link or try again.")}finally{re===yr&&x(g,!1)}}function Mi(d,v,T){d?.altKey||d?.ctrlKey||d?.metaKey||d?.shiftKey||d?.button>0||location.protocol==="file:"||(d?.preventDefault(),Gn(T,new URL(v,document.baseURI).href,!0))}async function Af(d){let v=a(ue)[Math.max(0,Math.min(a(ue).length-1,d))];v&&(x(p,v.id,!0),a(Xe)&&(x(y,Math.max(0,a(Ie)[d]-100),!0),a(sr)&&window.scrollTo({top:a(sr).getBoundingClientRect().top+window.scrollY+a(y)})),await rn(),a(sr)?.querySelector(`[data-order="${d}"] a`)?.focus({preventScroll:!0}))}function kf(d){if(d.isComposing||d.altKey||d.ctrlKey||d.metaKey)return;if(a(w)){d.key==="Escape"&&(d.preventDefault(),x(w,!1));return}if(a(u)){d.key==="Escape"&&x(u,null);return}let v=/INPUT|TEXTAREA|SELECT/.test(d.target?.tagName??"");if(d.key==="/"&&!v){d.preventDefault(),a(un)?.focus();return}if(v){d.key==="Escape"&&(x(i,""),a(un)?.blur());return}if(d.key==="Backspace"&&a(n).parentHref){d.preventDefault(),location.protocol==="file:"?location.href=a(n).parentHref:Gn(a(n).parentDataHref,new URL(a(n).parentHref,document.baseURI).href,!0);return}let T=a(ue).findIndex(D=>D.id===a(p));["ArrowDown","ArrowUp","Home","End"].includes(d.key)&&(d.preventDefault(),Af(d.key==="Home"?0:d.key==="End"?a(ue).length-1:T+(d.key==="ArrowDown"?1:-1)))}function Sf(d){x(c,d,!0);try{localStorage.setItem("dirwell-color-scheme",d)}catch{}}async function Nf(){let d=++Ii;Oi?.abort();let v=Oi=new AbortController;x(V,[]);let T=a(k).trim();if(!T){x(te,"Enter a search to begin.");return}x(te,"Searching archive\u2026");try{let D=new URL(a(n).searchIndexHref,document.baseURI),re=await fetch(D,{signal:v.signal});if(!re.ok)throw new Error("Unavailable archive");let J=await re.json();if(J.version!==3||!Array.isArray(J.shards)||!Number.isSafeInteger(J.count)||J.count>1e5)throw new Error("Unsupported archive");let ie=[];for(let W of J.shards){if(typeof W!="string")throw new Error("Invalid shard");let Ct=new URL(W,D);if(Ct.origin!==D.origin)throw new Error("Unsafe shard");let Pr=await fetch(Ct,{signal:v.signal});if(!Pr.ok)throw new Error("Unavailable shard");let Hr=await Pr.json();if(!Array.isArray(Hr.entries)||ie.length+Hr.entries.length>1e5)throw new Error("Invalid archive");for(let je of Hr.entries){if(typeof je.name!="string"||typeof je.path!="string"||typeof je.exitsExplorer!="boolean")throw new Error("Invalid archive record");let at=je.href===null?null:new URL(je.href,D);if(at&&!["http:","https:"].includes(at.protocol))throw new Error("Unsupported archive link");ie.push({name:je.name,path:je.path,href:at?.href??null,exitsExplorer:je.exitsExplorer})}}let j=ie.map(W=>({record:W,score:pa(T,W.name+" "+W.path)})).filter(W=>W.score!==null).sort((W,Ct)=>Ct.score-W.score||W.record.path.localeCompare(Ct.record.path));if(d!==Ii||v.signal.aborted)return;x(V,j.slice(0,100).map(W=>W.record)),x(te,j.length>100?"Showing 100 of "+j.length+" results":j.length+" results",!0)}catch{d===Ii&&!v.signal.aborted&&x(te,"Could not load archive search. Try again.")}}cf(()=>{x(_,!0),jn=new AbortController;try{let v=localStorage.getItem("dirwell-color-scheme");["system","light","dark"].includes(v)&&x(c,v,!0)}catch{}history.replaceState({dataHref:new URL(a(n).dataHref,document.baseURI).href},"");let d=v=>{v.state?.dataHref?Gn(v.state.dataHref,location.href,!1):location.reload()};return window.addEventListener("popstate",d),ha(),()=>{jn?.abort(),Oi?.abort(),window.removeEventListener("popstate",d)}}),Qt(()=>{let d=a(ze);if(!d||typeof EventSource>"u")return;let v=new EventSource(d);return v.onmessage=()=>x(de,d,!0),v.onerror=()=>x(b,"Live updates disconnected. Refresh to retry."),v.onopen=()=>{a(b).startsWith("Live updates")&&x(b,"")},()=>v.close()}),Qt(()=>{if(a(_)&&!a(g)&&a(de)){let d=a(de);x(de,null),d===a(ze)&&Gn(a(n).dataHref,location.href,!1,!0)}}),Qt(()=>{a(_)&&(document.documentElement.dataset.theme=a(c))}),Qt(()=>{a(qn)&&a(u)&&!a(qn).open&&a(qn).showModal()}),Qt(()=>{a(zn)&&a(w)&&!a(zn).open&&(a(zn).showModal(),rn().then(()=>a(Ci)?.focus()))});var ma=Pu();gr("keydown",Dn,kf),gr("scroll",Dn,()=>{a(sr)&&x(y,Math.max(0,window.scrollY-a(sr).offsetTop),!0)});var Li=Jt(ma),Fi=Y(Li),Rf=Y(Fi);{var Cf=d=>{var v=Fn(),T=Jt(v);Bn(T,()=>t.header,()=>({model:a(n)})),U(d,v)},Of=d=>{var v=wu(),T=Jt(v),D=ot(T,!0);Vr(2),oe(()=>$e(D,a(n).title)),U(d,v)};Ee(Rf,d=>{t.header?d(Cf):d(Of,-1)})}P(Fi);var va=N(Fi,2),Pi=Y(va),If=N(Pi);Hn(If,17,()=>a(n).breadcrumbs,So,(d,v)=>{Vr();var T=yu(),D=N(Jt(T)),re=ot(D,!0);oe(()=>{he(D,"href",a(v).href),$e(re,a(v).name)}),Oe("click",D,J=>Mi(J,a(v).href,a(v).dataHref)),U(d,T)}),P(va),P(Li);var Oo=N(Li,2),Hi=Y(Oo),Bi=Y(Hi),dn=N(Y(Bi));Un(dn),fn(dn,d=>x(un,d),()=>a(un)),P(Bi);var Io=N(Bi,2),Df=N(Y(Io));Hn(Df,16,()=>["directory","file","link"],So,(d,v)=>{var T=xu(),D=Y(T);Un(D);var re=N(D,1,!0);P(T),oe(J=>{Ai(D,J),$e(re,v)},[()=>a(s).includes(v)]),Oe("change",D,J=>x(s,J.currentTarget.checked?[...a(s),v]:a(s).filter(ie=>ie!==v),!0)),U(d,T)}),P(Io);var Ui=N(Io,2),xr=N(Y(Ui)),Yi=Y(xr);Yi.value=Yi.__value="name";var Vi=N(Yi);Vi.value=Vi.__value="size";var ga=N(Vi);ga.value=ga.__value="modified",P(xr);var Do;ln(xr),P(Ui);var qi=N(Ui,2),$r=N(Y(qi)),zi=Y($r);zi.value=zi.__value="natural";var ji=N(zi);ji.value=ji.__value="locale";var ba=N(ji);ba.value=ba.__value="unicode",P($r);var Mo;ln($r),P(qi);var Gi=N(qi,2),Er=N(Y(Gi)),Ki=Y(Er);Ki.value=Ki.__value="asc";var wa=N(Ki);wa.value=wa.__value="desc",P(Er);var Lo;ln(Er),P(Gi);var Wi=N(Gi,2),Fo=Y(Wi);Un(Fo),Vr(),P(Wi);var Xi=N(Wi,2),Tr=N(Y(Xi)),Ji=Y(Tr);Ji.value=Ji.__value="system";var Zi=N(Ji);Zi.value=Zi.__value="light";var ya=N(Zi);ya.value=ya.__value="dark",P(Tr);var Po;ln(Tr),P(Xi);var xa=N(Xi,2);P(Hi);var Qi=N(Hi,2),es=Y(Qi),$a=Y(es),Mf=ot($a,!0),Ea=N($a,2);{var Lf=d=>{var v=vo();oe(()=>$e(v,`on this page \xB7 ${a(n).total??""} in directory`)),U(d,v)};Ee(Ea,d=>{a(ne)||d(Lf)})}var Ff=N(Ea),Pf=ot(Ff,!0);P(es);var Ho=N(es,4),Ta=Y(Ho);{var Hf=d=>{var v=$u(),T=ot(v);oe(()=>he(T,"href",a(n).parentHref)),Oe("click",T,D=>Mi(D,a(n).parentHref,a(n).parentDataHref)),U(d,v)};Ee(Ta,d=>{a(n).parentHref&&d(Hf)})}var Aa=N(Ta,2);{var Bf=d=>{var v=$f();let T;oe(()=>T=No(v,"",T,{height:a(Ie)[a(yt)]+"px"})),U(d,v)};Ee(Aa,d=>{a(yt)&&d(Bf)})}var ka=N(Aa,2);Hn(ka,19,()=>a(ue).slice(a(yt),a(cn)),d=>d.id,(d,v,T)=>{var D=Su(),re=Y(D),J=Y(re);{var ie=Pe=>{var me=Tu(),Kn=Y(me);{var ts=De=>{var Ot=Fn(),Br=Jt(Ot);Bn(Br,()=>t.row,()=>({model:a(n),entry:a(v),selected:a(p)===a(v).id})),U(De,Ot)},rs=De=>{var Ot=Eu(),Br=Jt(Ot);Js(Br,()=>df(da(a(v))),!0),P(Br);var Zf=N(Br);oe(Qf=>$e(Zf,` ${a(v).name??""}${Qf??""}`),[()=>Di(a(v))?"/":""]),U(De,Ot)};Ee(Kn,De=>{t.row?De(ts):De(rs,-1)})}P(me),oe(De=>{he(me,"href",De),he(me,"target",a(v).exitsExplorer?"_blank":void 0),he(me,"rel",a(v).exitsExplorer?"noopener":void 0)},[()=>Ef(a(v))]),Oe("click",me,De=>Tf(De,a(v))),gr("focus",me,()=>x(p,a(v).id,!0)),U(Pe,me)},j=Pe=>{var me=Au(),Kn=Y(me);{var ts=De=>{var Ot=Fn(),Br=Jt(Ot);Bn(Br,()=>t.row,()=>({model:a(n),entry:a(v),selected:a(p)===a(v).id})),U(De,Ot)},rs=De=>{var Ot=vo();oe(()=>$e(Ot,a(v).name)),U(De,Ot)};Ee(Kn,De=>{t.row?De(ts):De(rs,-1)})}P(me),U(Pe,me)};Ee(J,Pe=>{a(v).href?Pe(ie):Pe(j,-1)})}var W=N(J);{var Ct=Pe=>{var me=ku(),Kn=ot(me);oe(()=>$e(Kn,`${a(v).link.unavailable?"Target unavailable \xB7 ":"\u2192 "}${a(v).link.target??""}`)),U(Pe,me)};Ee(W,Pe=>{a(v).link&&Pe(Ct)})}P(re);var Pr=N(re,2),Hr=ot(Pr,!0),je=N(Pr,2),at=Y(je),Ut=ot(at,!0);P(je),P(D),Zs(D,(Pe,me)=>Rt?.(Pe,me),()=>a(v).id),oe((Pe,me)=>{he(D,"data-id",a(v).id),he(D,"data-order",a(yt)+a(T)),he(D,"data-active",a(p)===a(v).id),$e(Hr,Pe),je.disabled=!a(_),he(at,"datetime",a(v).modifiedAt),$e(Ut,me)},[()=>Di(a(v))?"Folder":yf(a(v).size),()=>xf(a(v).modifiedAt,a(_))]),Oe("click",je,()=>x(u,a(v).modifiedAt,!0)),U(d,D)});var Uf=N(ka,2);{var Yf=d=>{var v=$f();let T;oe(()=>T=No(v,"",T,{height:a(Ie)[a(ue).length]-a(Ie)[a(cn)]+"px"})),U(d,v)};Ee(Uf,d=>{a(cn)<a(ue).length&&d(Yf)})}P(Ho),fn(Ho,d=>x(sr,d),()=>a(sr));var Vf=N(Ho,2);{var qf=d=>{var v=Nu();U(d,v)};Ee(Vf,d=>{a(ue).length===0&&d(qf)})}P(Qi);var Sa=N(Qi,2);{var zf=d=>{var v=Ou(),T=Y(v);{var D=j=>{var W=Ru();oe(()=>he(W,"href",a(n).page.previousHref)),U(j,W)};Ee(T,j=>{a(n).page.previousHref&&j(D)})}var re=N(T),J=N(re);{var ie=j=>{var W=Cu();oe(()=>he(W,"href",a(n).page.nextHref)),U(j,W)};Ee(J,j=>{a(n).page.nextHref&&j(ie)})}P(v),oe(()=>$e(re,` Page ${a(n).page.number??""} of ${a(n).page.count??""} `)),U(d,v)};Ee(Sa,d=>{a(n).page?.count>1&&!a(ne)&&d(zf)})}var jf=N(Sa,2);{var Gf=d=>{var v=Fn(),T=Jt(v);Bn(T,()=>t.footer,()=>({model:a(n)})),U(d,v)},Kf=d=>{var v=Iu();U(d,v)};Ee(jf,d=>{t.footer?d(Gf):d(Kf,-1)})}P(Oo);var Na=N(Oo,2);{var Wf=d=>{var v=Du(),T=N(Y(v),2),D=ot(T,!0),re=N(T,2),J=ot(re,!0),ie=N(re,2);P(v),fn(v,j=>x(qn,j),()=>a(qn)),oe(j=>{$e(D,a(u)),$e(J,j)},[()=>new Date(a(u)).toLocaleString()]),gr("close",v,()=>x(u,null)),Oe("click",ie,()=>x(u,null)),U(d,v)};Ee(Na,d=>{a(u)&&d(Wf)})}var Xf=N(Na,2);{var Jf=d=>{var v=Fu(),T=N(Y(v),2);Un(T),fn(T,j=>x(Ci,j),()=>a(Ci));var D=N(T,2),re=ot(D,!0),J=N(D,2);Hn(J,21,()=>a(V),So,(j,W)=>{var Ct=Lu(),Pr=Y(Ct);{var Hr=at=>{var Ut=Mu(),Pe=ot(Ut,!0);oe(()=>{he(Ut,"href",a(W).href),he(Ut,"target",a(W).exitsExplorer?"_blank":void 0),he(Ut,"rel",a(W).exitsExplorer?"noopener":void 0),$e(Pe,a(W).path)}),U(at,Ut)},je=at=>{var Ut=vo();oe(()=>$e(Ut,a(W).path)),U(at,Ut)};Ee(Pr,at=>{a(W).href?at(Hr):at(je,-1)})}P(Ct),U(j,Ct)}),P(J);var ie=N(J,2);P(v),fn(v,j=>x(zn,j),()=>a(zn)),oe(()=>$e(re,a(te))),gr("close",v,()=>x(w,!1)),Oe("input",T,Nf),Si(T,()=>a(k),j=>x(k,j)),Oe("click",ie,()=>x(w,!1)),U(d,v)};Ee(Xf,d=>{a(w)&&d(Jf)})}oe(()=>{he(Pi,"href",a(n).rootHref),he(Oo,"aria-busy",a(g)),dn.disabled=!a(_)||!a(ne),Io.disabled=!a(_)||!a(ne),xr.disabled=!a(_)||!a(ne),Do!==(Do=a(l).field)&&(xr.value=(xr.__value=Do)??"",Fr(xr,Do)),$r.disabled=!a(_)||!a(ne),Mo!==(Mo=a(l).nameMode)&&($r.value=($r.__value=Mo)??"",Fr($r,Mo)),Er.disabled=!a(_)||!a(ne),Lo!==(Lo=a(l).direction)&&(Er.value=(Er.__value=Lo)??"",Fr(Er,Lo)),Ai(Fo,a(l).directoriesFirst),Fo.disabled=!a(_)||!a(ne),Tr.disabled=!a(_),Po!==(Po=a(c))&&(Tr.value=(Tr.__value=Po)??"",Fr(Tr,Po)),xa.disabled=!a(_)||!a(n).searchIndexHref,$e(Mf,a(ne)?a(ue).length:a(o).length),$e(Pf,a(g)?"Loading\u2026":a(b))}),Oe("click",Pi,d=>Mi(d,a(n).rootHref,a(n).rootDataHref)),gr("compositionstart",dn,()=>x(h,!0)),gr("compositionend",dn,()=>x(h,!1)),Si(dn,()=>a(i),d=>x(i,d)),Oe("change",xr,d=>x(l,{...a(l),field:d.currentTarget.value})),Oe("change",$r,d=>x(l,{...a(l),nameMode:d.currentTarget.value})),Oe("change",Er,d=>x(l,{...a(l),direction:d.currentTarget.value})),Oe("change",Fo,d=>x(l,{...a(l),directoriesFirst:d.currentTarget.checked})),Oe("change",Tr,d=>Sf(d.currentTarget.value)),Oe("click",xa,()=>x(w,!0)),U(e,ma),to()}gi(["click","change","input"]);var Hu=document.querySelector("[data-dirwell-theme]"),Bu=JSON.parse(document.querySelector("#dirwell-page-data").textContent),Uu=xo(_a,{target:Hu,props:{model:Bu}});globalThis.__dirwellUnmount=()=>$o(Uu);})();
File without changes
@@ -0,0 +1,10 @@
1
+ import { i as ThemePage, t as FrameworkRenderer } from "./model-K7UzS9YB.mjs";
2
+ import { ExplorerTheme } from "@dirwell/core";
3
+ //#region src/index.d.ts
4
+ export interface LedgerThemeOptions {
5
+ readonly title?: string;
6
+ }
7
+ export declare function createLedgerTheme(options?: LedgerThemeOptions, renderer?: FrameworkRenderer): ExplorerTheme;
8
+ //#endregion
9
+ export type { FrameworkRenderer, ThemePage };
10
+ //# sourceMappingURL=index.d.mts.map