@htmlbricks/hb-vertical-img-txt-archive 0.71.35 → 0.71.37
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/README.md +107 -19
- package/main.iife.js +4 -3
- package/main.iife.js.map +1 -1
- package/manifest.json +62 -11
- package/package.json +2 -2
- package/types/webcomponent.type.d.json +2 -1
- package/types/webcomponent.type.d.ts +4 -2
- package/types/webcomponent_events.type.d.json +8 -0
package/README.md
CHANGED
|
@@ -1,36 +1,124 @@
|
|
|
1
|
-
|
|
1
|
+
# `hb-vertical-img-txt-archive` — integrator guide
|
|
2
2
|
|
|
3
|
-
**Category:** content
|
|
4
|
-
**Tags:** content, archive
|
|
3
|
+
**Category:** content · **Tags:** content, archive · **Package:** `@htmlbricks/hb-vertical-img-txt-archive`
|
|
5
4
|
|
|
6
|
-
|
|
5
|
+
## Summary
|
|
7
6
|
|
|
8
|
-
|
|
7
|
+
`hb-vertical-img-txt-archive` renders a **responsive CSS grid** of archive cards. Each card stacks an **image** above a **title** (`h3`) and **body text** (`p`). Data comes from a single **`collection`** value: either an array (when using the element from JavaScript) or a **JSON string** (typical in HTML).
|
|
9
8
|
|
|
10
|
-
|
|
9
|
+
If `collection` is missing, empty, not an array, or invalid JSON, the component renders **nothing** (no placeholder).
|
|
11
10
|
|
|
12
|
-
|
|
11
|
+
## Custom element
|
|
13
12
|
|
|
14
|
-
|
|
13
|
+
```text
|
|
14
|
+
hb-vertical-img-txt-archive
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Data model (`collection` items)
|
|
18
|
+
|
|
19
|
+
Each entry in `collection` matches the `Item` shape in `types/webcomponent.type.d.ts`:
|
|
20
|
+
|
|
21
|
+
| Field | Required | Description |
|
|
22
|
+
| --- | --- | --- |
|
|
23
|
+
| `title` | Yes | Card heading; also used as the image `alt` text. |
|
|
24
|
+
| `text` | Yes | Supporting paragraph under the title. |
|
|
25
|
+
| `image` | Yes | Image URL for the card media. |
|
|
26
|
+
| `link` | No | Object `{ type: "tab" \| "page" \| "event"; uri: string }`. When present, the whole card is clickable: the component dispatches **`collectionItemClick`**, opens **`tab`** links in a new window, navigates the document for **`page`**, and only notifies the host for **`event`** (no built-in navigation). |
|
|
27
|
+
| `subtitle` | No | Optional metadata (e.g. date or version); not shown in the current markup. |
|
|
28
|
+
| `index` | No | Optional ordering hint for consumers; not used for rendering. |
|
|
29
|
+
|
|
30
|
+
Example item:
|
|
31
|
+
|
|
32
|
+
```json
|
|
33
|
+
{
|
|
34
|
+
"title": "Release notes",
|
|
35
|
+
"subtitle": "v2.4",
|
|
36
|
+
"text": "Changelog highlights.",
|
|
37
|
+
"image": "https://example.com/card.jpg",
|
|
38
|
+
"link": { "type": "page", "uri": "/releases/2-4" }
|
|
39
|
+
}
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## Attributes (snake_case, string values in HTML)
|
|
43
|
+
|
|
44
|
+
Web component attributes are strings. Objects and arrays must be **JSON-serialized** for `collection`.
|
|
45
|
+
|
|
46
|
+
| Attribute | Required | Description |
|
|
47
|
+
| --- | --- | --- |
|
|
48
|
+
| `collection` | Yes | JSON array of items (see above). Whitespace-only or invalid JSON logs an error and yields an empty grid. |
|
|
49
|
+
| `id` | No | Optional host id (see `Component` in `types/webcomponent.type.d.ts`). |
|
|
50
|
+
|
|
51
|
+
The authoring `Component` type also lists optional **`style`** and **`size`**. Layout **column count** in the current implementation is **not** driven by `size`: it is derived from the window width as roughly one column per **~250px** of width, capped by the number of items. Optional `style` may still be useful for host-level styling depending on how your build wires custom-element props; refer to your bundle’s generated typings if you rely on it.
|
|
52
|
+
|
|
53
|
+
## Layout behavior
|
|
54
|
+
|
|
55
|
+
- The grid uses `grid-template-columns: repeat(N, auto)` where `N` is computed from `innerWidth` (via `svelte:window`) and the collection length, so the archive **reflows on resize**.
|
|
56
|
+
- Cards use full-width images with **`object-fit: cover`** inside the image area.
|
|
57
|
+
|
|
58
|
+
## Events
|
|
59
|
+
|
|
60
|
+
| Event | `detail` | When |
|
|
61
|
+
| --- | --- | --- |
|
|
62
|
+
| `collectionItemClick` | `{ uri: string; link_type?: "tab" \| "page" \| "event" }` | User activates a card that defines **`link`**. |
|
|
15
63
|
|
|
16
|
-
|
|
17
|
-
- `collection` (required): JSON string — `Item[]` (`title`, `text`, `image`, `link`, optional `subtitle`, `index`).
|
|
18
|
-
- `size` (optional): number as string — column count.
|
|
64
|
+
## Styling (Bulma variables)
|
|
19
65
|
|
|
20
|
-
|
|
66
|
+
The component uses **Bulma 1.x** design tokens on `:host` and in layout (see [Bulma CSS variables](https://bulma.io/documentation/features/css-variables/)). Prefer **`--bulma-*`** custom properties for theme alignment.
|
|
21
67
|
|
|
22
|
-
|
|
68
|
+
### CSS custom properties (documented in `extra/docs.ts`)
|
|
23
69
|
|
|
24
|
-
|
|
70
|
+
| Variable | Role |
|
|
71
|
+
| --- | --- |
|
|
72
|
+
| `--bulma-block-spacing` | Gap between cards in the grid. |
|
|
73
|
+
| `--bulma-radius` | Corner radius on the image frame. |
|
|
74
|
+
| `--bulma-column-gap` | Space between the image block and text block; also used for spacing under the title. |
|
|
75
|
+
| `--bulma-size-5` | Font size for the card title (`h3`). |
|
|
76
|
+
| `--bulma-text` | Color for the description paragraph. |
|
|
77
|
+
| `--bulma-line-height-main` | Line height for body text. |
|
|
25
78
|
|
|
26
|
-
|
|
27
|
-
- No named content slots in `extra/docs.ts`.
|
|
79
|
+
Defaults fall back to sensible literals in `styles/webcomponent.scss` if a variable is unset.
|
|
28
80
|
|
|
29
|
-
###
|
|
81
|
+
### CSS `::part` selectors
|
|
82
|
+
|
|
83
|
+
| Part | Targets |
|
|
84
|
+
| --- | --- |
|
|
85
|
+
| `container` | Outer grid wrapper (`part="container"`). |
|
|
86
|
+
| `item` | Single card wrapper (`part="item"`). |
|
|
87
|
+
| `image` | The `<img>` element (`part="image"`). |
|
|
88
|
+
| `title` | The `<h3>` (`part="title"`). |
|
|
89
|
+
| `text` | The `<p>` (`part="text"`). |
|
|
90
|
+
|
|
91
|
+
Example:
|
|
92
|
+
|
|
93
|
+
```css
|
|
94
|
+
hb-vertical-img-txt-archive::part(title) {
|
|
95
|
+
font-weight: 700;
|
|
96
|
+
}
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
### Slots
|
|
100
|
+
|
|
101
|
+
None (`htmlSlots` is empty in `extra/docs.ts`).
|
|
102
|
+
|
|
103
|
+
## Minimal HTML example
|
|
30
104
|
|
|
31
105
|
```html
|
|
32
106
|
<hb-vertical-img-txt-archive
|
|
33
|
-
collection='[{"title":"One","text":"
|
|
34
|
-
size="3"
|
|
107
|
+
collection='[{"title":"One","text":"Short description.","image":"https://placehold.co/300x200","link":{"type":"tab","uri":"https://example.com"}}]'
|
|
35
108
|
></hb-vertical-img-txt-archive>
|
|
36
109
|
```
|
|
110
|
+
|
|
111
|
+
Multi-item example (attribute stays on one line in production, or build the string in JS):
|
|
112
|
+
|
|
113
|
+
```html
|
|
114
|
+
<hb-vertical-img-txt-archive
|
|
115
|
+
collection='[{"title":"Alpha","text":"First item.","image":"https://placehold.co/300x200","link":{"type":"event","uri":"open:alpha"}},{"title":"Beta","text":"Second item.","image":"https://placehold.co/300x200","link":{"type":"page","uri":"/beta"}}]'
|
|
116
|
+
></hb-vertical-img-txt-archive>
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
## Related files
|
|
120
|
+
|
|
121
|
+
- Implementation: `component.wc.svelte`
|
|
122
|
+
- Authoring types: `types/webcomponent.type.d.ts`
|
|
123
|
+
- Metadata, Storybook args, and examples: `extra/docs.ts`
|
|
124
|
+
- Styles: `styles/bulma.scss`, `styles/webcomponent.scss`
|
package/main.iife.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`}),typeof window<`u`&&((window.__svelte??={}).v??=new Set).add(`5`);var t={},n=Symbol(),r=`http://www.w3.org/1999/xhtml`,i=Array.isArray,a=Array.prototype.indexOf,o=Array.prototype.includes,s=Array.from,c=Object.keys,l=Object.defineProperty,u=Object.getOwnPropertyDescriptor,d=Object.getOwnPropertyDescriptors,f=Object.prototype,p=Array.prototype,m=Object.getPrototypeOf,h=Object.isExtensible,g=()=>{};function _(e){for(var t=0;t<e.length;t++)e[t]()}function v(){var e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}var y=1024,b=2048,x=4096,S=8192,ee=16384,C=32768,te=1<<25,ne=65536,re=1<<19,ie=1<<20,ae=1<<25,oe=65536,se=1<<21,ce=1<<22,le=1<<23,ue=Symbol(`$state`),de=Symbol(`legacy props`),fe=Symbol(``),w=new class extends Error{name=`StaleReactionError`;message="The reaction that called `getAbortSignal()` was re-run or destroyed"},pe=!!globalThis.document?.contentType&&globalThis.document.contentType.includes(`xml`);function me(){throw Error(`https://svelte.dev/e/async_derived_orphan`)}function he(e,t,n){throw Error(`https://svelte.dev/e/each_key_duplicate`)}function ge(){throw Error(`https://svelte.dev/e/effect_update_depth_exceeded`)}function _e(){throw Error(`https://svelte.dev/e/hydration_failed`)}function ve(e){throw Error(`https://svelte.dev/e/props_invalid_value`)}function ye(){throw Error(`https://svelte.dev/e/state_descriptors_fixed`)}function be(){throw Error(`https://svelte.dev/e/state_prototype_fixed`)}function xe(){throw Error(`https://svelte.dev/e/state_unsafe_mutation`)}function Se(){throw Error(`https://svelte.dev/e/svelte_boundary_reset_onerror`)}function Ce(e){console.warn(`https://svelte.dev/e/hydration_mismatch`)}function we(){console.warn(`https://svelte.dev/e/svelte_boundary_reset_noop`)}var T=!1;function E(e){T=e}var D;function O(e){if(e===null)throw Ce(),t;return D=e}function Te(){return O(B(D))}function Ee(e){if(T){if(B(D)!==null)throw Ce(),t;D=e}}function De(e=1){if(T){for(var t=e,n=D;t--;)n=B(n);D=n}}function Oe(e=!0){for(var t=0,n=D;;){if(n.nodeType===8){var r=n.data;if(r===`]`){if(t===0)return n;--t}else (r===`[`||r===`[!`||r[0]===`[`&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=B(n);e&&n.remove(),n=i}}function ke(e){if(!e||e.nodeType!==8)throw Ce(),t;return e.data}function Ae(e){return e===this.v}function je(e,t){return e==e?e!==t||typeof e==`object`&&!!e||typeof e==`function`:t==t}function Me(e){return!je(e,this.v)}var Ne=!1,Pe=!1,k=null;function Fe(e){k=e}function Ie(e,t=!1,n){k={p:k,i:!1,c:null,e:null,s:e,x:null,r:q,l:Pe&&!t?{s:null,u:null,$:[]}:null}}function Le(e){var t=k,n=t.e;if(n!==null){t.e=null;for(var r of n)an(r)}return e!==void 0&&(t.x=e),t.i=!0,k=t.p,e??{}}function Re(){return!Pe||k!==null&&k.l===null}var ze=[];function Be(){var e=ze;ze=[],_(e)}function Ve(e){if(ze.length===0&&!Qe){var t=ze;queueMicrotask(()=>{t===ze&&Be()})}ze.push(e)}function He(){for(;ze.length>0;)Be()}function Ue(e){var t=q;if(t===null)return W.f|=le,e;if(!(t.f&32768)&&!(t.f&4))throw e;A(e,t)}function A(e,t){for(;t!==null;){if(t.f&128){if(!(t.f&32768))throw e;try{t.b.error(e);return}catch(t){e=t}}t=t.parent}throw e}var We=~(b|x|y);function j(e,t){e.f=e.f&We|t}function Ge(e){e.f&512||e.deps===null?j(e,y):j(e,x)}function Ke(e){if(e!==null)for(let t of e)!(t.f&2)||!(t.f&65536)||(t.f^=oe,Ke(t.deps))}function qe(e,t,n){e.f&2048?t.add(e):e.f&4096&&n.add(e),Ke(e.deps),j(e,y)}var Je=!1,Ye=!1;function Xe(e){var t=Ye;try{return Ye=!1,[e(),Ye]}finally{Ye=t}}var M=new Set,N=null,P=null,Ze=null,Qe=!1,$e=!1,et=null,tt=null,nt=0,rt=1,it=class e{id=rt++;current=new Map;previous=new Map;#e=new Set;#t=new Set;#n=new Map;#r=new Map;#i=null;#a=[];#o=new Set;#s=new Set;#c=new Map;is_fork=!1;#l=!1;#u=new Set;#d(){return this.is_fork||this.#r.size>0}#f(){for(let n of this.#u)for(let r of n.#r.keys()){for(var e=!1,t=r;t.parent!==null;){if(this.#c.has(t)){e=!0;break}t=t.parent}if(!e)return!0}return!1}skip_effect(e){this.#c.has(e)||this.#c.set(e,{d:[],m:[]})}unskip_effect(e){var t=this.#c.get(e);if(t){this.#c.delete(e);for(var n of t.d)j(n,b),this.schedule(n);for(n of t.m)j(n,x),this.schedule(n)}}#p(){if(nt++>1e3&&(M.delete(this),ot()),!this.#d()){for(let e of this.#o)this.#s.delete(e),j(e,b),this.schedule(e);for(let e of this.#s)j(e,x),this.schedule(e)}let t=this.#a;this.#a=[],this.apply();var n=et=[],r=[],i=tt=[];for(let e of t)try{this.#m(e,n,r)}catch(t){throw ft(e),t}if(N=null,i.length>0){var a=e.ensure();for(let e of i)a.schedule(e)}if(et=null,tt=null,this.#d()||this.#f()){this.#h(r),this.#h(n);for(let[e,t]of this.#c)dt(e,t)}else{this.#n.size===0&&M.delete(this),this.#o.clear(),this.#s.clear();for(let e of this.#e)e(this);this.#e.clear(),st(r),st(n),this.#i?.resolve()}var o=N;if(this.#a.length>0){let e=o??=this;e.#a.push(...this.#a.filter(t=>!e.#a.includes(t)))}o!==null&&(M.add(o),o.#p()),M.has(this)||this.#g()}#m(e,t,n){e.f^=y;for(var r=e.first;r!==null;){var i=r.f,a=(i&96)!=0;if(!(a&&i&1024||i&8192||this.#c.has(r))&&r.fn!==null){a?r.f^=y:i&4?t.push(r):Ne&&i&16777224?n.push(r):Pn(r)&&(i&16&&this.#s.add(r),zn(r));var o=r.first;if(o!==null){r=o;continue}}for(;r!==null;){var s=r.next;if(s!==null){r=s;break}r=r.parent}}}#h(e){for(var t=0;t<e.length;t+=1)qe(e[t],this.#o,this.#s)}capture(e,t,r=!1){t!==n&&!this.previous.has(e)&&this.previous.set(e,t),e.f&8388608||(this.current.set(e,[e.v,r]),P?.set(e,e.v))}activate(){N=this}deactivate(){N=null,P=null}flush(){try{$e=!0,N=this,this.#p()}finally{nt=0,Ze=null,et=null,tt=null,$e=!1,N=null,P=null,I.clear()}}discard(){for(let e of this.#t)e(this);this.#t.clear(),M.delete(this)}#g(){for(let c of M){var e=c.id<this.id,t=[];for(let[r,[i,a]]of this.current){if(c.current.has(r)){var n=c.current.get(r)[0];if(e&&i!==n)c.current.set(r,[i,a]);else continue}t.push(r)}var r=[...c.current.keys()].filter(e=>!this.current.has(e));if(r.length===0)e&&c.discard();else if(t.length>0){c.activate();var i=new Set,a=new Map;for(var o of t)ct(o,r,i,a);if(c.#a.length>0){c.apply();for(var s of c.#a)c.#m(s,[],[]);c.#a=[]}c.deactivate()}}for(let e of M)e.#u.has(this)&&(e.#u.delete(this),e.#u.size===0&&!e.#d()&&(e.activate(),e.#p()))}increment(e,t){let n=this.#n.get(t)??0;if(this.#n.set(t,n+1),e){let e=this.#r.get(t)??0;this.#r.set(t,e+1)}}decrement(e,t,n){let r=this.#n.get(t)??0;if(r===1?this.#n.delete(t):this.#n.set(t,r-1),e){let e=this.#r.get(t)??0;e===1?this.#r.delete(t):this.#r.set(t,e-1)}this.#l||n||(this.#l=!0,Ve(()=>{this.#l=!1,this.flush()}))}transfer_effects(e,t){for(let t of e)this.#o.add(t);for(let e of t)this.#s.add(e);e.clear(),t.clear()}oncommit(e){this.#e.add(e)}ondiscard(e){this.#t.add(e)}settled(){return(this.#i??=v()).promise}static ensure(){if(N===null){let t=N=new e;$e||(M.add(N),Qe||Ve(()=>{N===t&&t.flush()}))}return N}apply(){if(!Ne||!this.is_fork&&M.size===1){P=null;return}P=new Map;for(let[e,[t]]of this.current)P.set(e,t);for(let n of M)if(!(n===this||n.is_fork)){var e=!1,t=!1;if(n.id<this.id)for(let[r,[,i]]of n.current)i||(e||=this.current.has(r),t||=!this.current.has(r));if(e&&t)this.#u.add(n);else for(let[e,t]of n.previous)P.has(e)||P.set(e,t)}}schedule(e){if(Ze=e,e.b?.is_pending&&e.f&16777228&&!(e.f&32768)){e.b.defer_effect(e);return}for(var t=e;t.parent!==null;){t=t.parent;var n=t.f;if(et!==null&&t===q&&(Ne||(W===null||!(W.f&2))&&!Je))return;if(n&96){if(!(n&1024))return;t.f^=y}}this.#a.push(t)}};function at(e){var t=Qe;Qe=!0;try{var n;for(e&&(N!==null&&!N.is_fork&&N.flush(),n=e());;){if(He(),N===null)return n;N.flush()}}finally{Qe=t}}function ot(){try{ge()}catch(e){A(e,Ze)}}var F=null;function st(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if(!(r.f&24576)&&Pn(r)&&(F=new Set,zn(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&_n(r),F?.size>0)){I.clear();for(let e of F){if(e.f&24576)continue;let t=[e],n=e.parent;for(;n!==null;)F.has(n)&&(F.delete(n),t.push(n)),n=n.parent;for(let e=t.length-1;e>=0;e--){let n=t[e];n.f&24576||zn(n)}}F.clear()}}F=null}}function ct(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(let i of e.reactions){let e=i.f;e&2?ct(i,t,n,r):e&4194320&&!(e&2048)&<(i,t,r)&&(j(i,b),ut(i))}}function lt(e,t,n){let r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(let r of e.deps){if(o.call(t,r))return!0;if(r.f&2&<(r,t,n))return n.set(r,!0),!0}return n.set(e,!1),!1}function ut(e){N.schedule(e)}function dt(e,t){if(!(e.f&32&&e.f&1024)){e.f&2048?t.d.push(e):e.f&4096&&t.m.push(e),j(e,y);for(var n=e.first;n!==null;)dt(n,t),n=n.next}}function ft(e){j(e,y);for(var t=e.first;t!==null;)ft(t),t=t.next}function pt(e){let t=0,n=Nt(0),r;return()=>{nn()&&($(n),un(()=>(t===0&&(r=Hn(()=>e(()=>Lt(n)))),t+=1,()=>{Ve(()=>{--t,t===0&&(r?.(),r=void 0,Lt(n))})})))}}var mt=ne|re;function ht(e,t,n,r){new gt(e,t,n,r)}var gt=class{parent;is_pending=!1;transform_error;#e;#t=T?D:null;#n;#r;#i;#a=null;#o=null;#s=null;#c=null;#l=0;#u=0;#d=!1;#f=new Set;#p=new Set;#m=null;#h=pt(()=>(this.#m=Nt(this.#l),()=>{this.#m=null}));constructor(e,t,n,r){this.#e=e,this.#n=t,this.#r=e=>{var t=q;t.b=this,t.f|=128,n(e)},this.parent=q.b,this.transform_error=r??this.parent?.transform_error??(e=>e),this.#i=fn(()=>{if(T){let e=this.#t;Te();let t=e.data===`[!`;if(e.data.startsWith(`[?`)){let t=JSON.parse(e.data.slice(2));this.#_(t)}else t?this.#v():this.#g()}else this.#y()},mt),T&&(this.#e=D)}#g(){try{this.#a=H(()=>this.#r(this.#e))}catch(e){this.error(e)}}#_(e){let t=this.#n.failed;t&&(this.#s=H(()=>{t(this.#e,()=>e,()=>()=>{})}))}#v(){let e=this.#n.pending;e&&(this.is_pending=!0,this.#o=H(()=>e(this.#e)),Ve(()=>{var e=this.#c=document.createDocumentFragment(),t=z();e.append(t),this.#a=this.#x(()=>H(()=>this.#r(t))),this.#u===0&&(this.#e.before(e),this.#c=null,vn(this.#o,()=>{this.#o=null}),this.#b(N))}))}#y(){try{if(this.is_pending=this.has_pending_snippet(),this.#u=0,this.#l=0,this.#a=H(()=>{this.#r(this.#e)}),this.#u>0){var e=this.#c=document.createDocumentFragment();Sn(this.#a,e);let t=this.#n.pending;this.#o=H(()=>t(this.#e))}else this.#b(N)}catch(e){this.error(e)}}#b(e){this.is_pending=!1,e.transfer_effects(this.#f,this.#p)}defer_effect(e){qe(e,this.#f,this.#p)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#n.pending}#x(e){var t=q,n=W,r=k;J(this.#i),K(this.#i),Fe(this.#i.ctx);try{return it.ensure(),e()}catch(e){return Ue(e),null}finally{J(t),K(n),Fe(r)}}#S(e,t){if(!this.has_pending_snippet()){this.parent&&this.parent.#S(e,t);return}this.#u+=e,this.#u===0&&(this.#b(t),this.#o&&vn(this.#o,()=>{this.#o=null}),this.#c&&=(this.#e.before(this.#c),null))}update_pending_count(e,t){this.#S(e,t),this.#l+=e,!(!this.#m||this.#d)&&(this.#d=!0,Ve(()=>{this.#d=!1,this.#m&&Ft(this.#m,this.#l)}))}get_effect_pending(){return this.#h(),$(this.#m)}error(e){var t=this.#n.onerror;let n=this.#n.failed;if(!t&&!n)throw e;this.#a&&=(U(this.#a),null),this.#o&&=(U(this.#o),null),this.#s&&=(U(this.#s),null),T&&(O(this.#t),De(),O(Oe()));var r=!1,i=!1;let a=()=>{if(r){we();return}r=!0,i&&Se(),this.#s!==null&&vn(this.#s,()=>{this.#s=null}),this.#x(()=>{this.#y()})},o=e=>{try{i=!0,t?.(e,a),i=!1}catch(e){A(e,this.#i&&this.#i.parent)}n&&(this.#s=this.#x(()=>{try{return H(()=>{var t=q;t.b=this,t.f|=128,n(this.#e,()=>e,()=>a)})}catch(e){return A(e,this.#i.parent),null}}))};Ve(()=>{var t;try{t=this.transform_error(e)}catch(e){A(e,this.#i&&this.#i.parent);return}typeof t==`object`&&t&&typeof t.then==`function`?t.then(o,e=>A(e,this.#i&&this.#i.parent)):o(t)})}};function _t(e,t,n,r){let i=Re()?xt:wt;var a=e.filter(e=>!e.settled);if(n.length===0&&a.length===0){r(t.map(i));return}var o=q,s=vt(),c=a.length===1?a[0].promise:a.length>1?Promise.all(a.map(e=>e.promise)):null;function l(e){s();try{r(e)}catch(e){o.f&16384||A(e,o)}yt()}if(n.length===0){c.then(()=>l(t.map(i)));return}var u=bt();function d(){Promise.all(n.map(e=>St(e))).then(e=>l([...t.map(i),...e])).catch(e=>A(e,o)).finally(()=>u())}c?c.then(()=>{s(),d(),yt()}):d()}function vt(){var e=q,t=W,n=k,r=N;return function(i=!0){J(e),K(t),Fe(n),i&&!(e.f&16384)&&(r?.activate(),r?.apply())}}function yt(e=!0){J(null),K(null),Fe(null),e&&N?.deactivate()}function bt(){var e=q,t=e.b,n=N,r=t.is_rendered();return t.update_pending_count(1,n),n.increment(r,e),(i=!1)=>{t.update_pending_count(-1,n),n.decrement(r,e,i)}}function xt(e){var t=2|b,r=W!==null&&W.f&2?W:null;return q!==null&&(q.f|=re),{ctx:k,deps:null,effects:null,equals:Ae,f:t,fn:e,reactions:null,rv:0,v:n,wv:0,parent:r??q,ac:null}}function St(e,t,r){let i=q;i===null&&me();var a=void 0,o=Nt(n),s=!W,c=new Map;return ln(()=>{var t=q,n=v();a=n.promise;try{Promise.resolve(e()).then(n.resolve,n.reject).finally(yt)}catch(e){n.reject(e),yt()}var r=N;if(s){if(t.f&32768)var l=bt();if(i.b.is_rendered())c.get(r)?.reject(w),c.delete(r);else{for(let e of c.values())e.reject(w);c.clear()}c.set(r,n)}let u=(e,n=void 0)=>{if(l&&l(n===w),!(n===w||t.f&16384)){if(r.activate(),n)o.f|=le,Ft(o,n);else{o.f&8388608&&(o.f^=le),Ft(o,e);for(let[e,t]of c){if(c.delete(e),e===r)break;t.reject(w)}}r.deactivate()}};n.promise.then(u,e=>u(null,e||`unknown`))}),rn(()=>{for(let e of c.values())e.reject(w)}),new Promise(e=>{function t(n){function r(){n===a?e(o):t(a)}n.then(r,r)}t(a)})}function Ct(e){let t=xt(e);return Ne||Dn(t),t}function wt(e){let t=xt(e);return t.equals=Me,t}function Tt(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)U(t[n])}}function Et(e){for(var t=e.parent;t!==null;){if(!(t.f&2))return t.f&16384?null:t;t=t.parent}return null}function Dt(e){var t,n=q;J(Et(e));try{e.f&=~oe,Tt(e),t=In(e)}finally{J(n)}return t}function Ot(e){var t=e.v,n=Dt(e);if(!e.equals(n)&&(e.wv=Nn(),(!N?.is_fork||e.deps===null)&&(e.v=n,N?.capture(e,t,!0),e.deps===null))){j(e,y);return}Tn||(P===null?Ge(e):(nn()||N?.is_fork)&&P.set(e,n))}function kt(e){if(e.effects!==null)for(let t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(w),t.teardown=g,t.ac=null,Rn(t,0),mn(t))}function At(e){if(e.effects!==null)for(let t of e.effects)t.teardown&&zn(t)}var jt=new Set,I=new Map,Mt=!1;function Nt(e,t){return{f:0,v:e,reactions:null,equals:Ae,rv:0,wv:0}}function L(e,t){let n=Nt(e,t);return Dn(n),n}function Pt(e,t=!1,n=!0){let r=Nt(e);return t||(r.equals=Me),Pe&&n&&k!==null&&k.l!==null&&(k.l.s??=[]).push(r),r}function R(e,t,n=!1){return W!==null&&(!G||W.f&131072)&&Re()&&W.f&4325394&&(Y===null||!o.call(Y,e))&&xe(),Ft(e,n?zt(t):t,tt)}function Ft(e,t,n=null){if(!e.equals(t)){var r=e.v;Tn?I.set(e,t):I.set(e,r),e.v=t;var i=it.ensure();if(i.capture(e,r),e.f&2){let t=e;e.f&2048&&Dt(t),P===null&&Ge(t)}e.wv=Nn(),Rt(e,b,n),Re()&&q!==null&&q.f&1024&&!(q.f&96)&&(Q===null?On([e]):Q.push(e)),!i.is_fork&&jt.size>0&&!Mt&&It()}return t}function It(){Mt=!1;for(let e of jt)e.f&1024&&j(e,x),Pn(e)&&zn(e);jt.clear()}function Lt(e){R(e,e.v+1)}function Rt(e,t,n){var r=e.reactions;if(r!==null)for(var i=Re(),a=r.length,o=0;o<a;o++){var s=r[o],c=s.f;if(!(!i&&s===q)){var l=(c&b)===0;if(l&&j(s,t),c&2){var u=s;P?.delete(u),c&65536||(c&512&&(s.f|=oe),Rt(u,x,n))}else if(l){var d=s;c&16&&F!==null&&F.add(d),n===null?ut(d):n.push(d)}}}}function zt(e){if(typeof e!=`object`||!e||ue in e)return e;let t=m(e);if(t!==f&&t!==p)return e;var r=new Map,a=i(e),o=L(0),s=null,c=jn,l=e=>{if(jn===c)return e();var t=W,n=jn;K(null),Mn(c);var r=e();return K(t),Mn(n),r};return a&&r.set(`length`,L(e.length,s)),new Proxy(e,{defineProperty(e,t,n){(!(`value`in n)||n.configurable===!1||n.enumerable===!1||n.writable===!1)&&ye();var i=r.get(t);return i===void 0?l(()=>{var e=L(n.value,s);return r.set(t,e),e}):R(i,n.value,!0),!0},deleteProperty(e,t){var i=r.get(t);if(i===void 0){if(t in e){let e=l(()=>L(n,s));r.set(t,e),Lt(o)}}else R(i,n),Lt(o);return!0},get(t,i,a){if(i===ue)return e;var o=r.get(i),c=i in t;if(o===void 0&&(!c||u(t,i)?.writable)&&(o=l(()=>L(zt(c?t[i]:n),s)),r.set(i,o)),o!==void 0){var d=$(o);return d===n?void 0:d}return Reflect.get(t,i,a)},getOwnPropertyDescriptor(e,t){var i=Reflect.getOwnPropertyDescriptor(e,t);if(i&&`value`in i){var a=r.get(t);a&&(i.value=$(a))}else if(i===void 0){var o=r.get(t),s=o?.v;if(o!==void 0&&s!==n)return{enumerable:!0,configurable:!0,value:s,writable:!0}}return i},has(e,t){if(t===ue)return!0;var i=r.get(t),a=i!==void 0&&i.v!==n||Reflect.has(e,t);return(i!==void 0||q!==null&&(!a||u(e,t)?.writable))&&(i===void 0&&(i=l(()=>L(a?zt(e[t]):n,s)),r.set(t,i)),$(i)===n)?!1:a},set(e,t,i,c){var d=r.get(t),f=t in e;if(a&&t===`length`)for(var p=i;p<d.v;p+=1){var m=r.get(p+``);m===void 0?p in e&&(m=l(()=>L(n,s)),r.set(p+``,m)):R(m,n)}if(d===void 0)(!f||u(e,t)?.writable)&&(d=l(()=>L(void 0,s)),R(d,zt(i)),r.set(t,d));else{f=d.v!==n;var h=l(()=>zt(i));R(d,h)}var g=Reflect.getOwnPropertyDescriptor(e,t);if(g?.set&&g.set.call(c,i),!f){if(a&&typeof t==`string`){var _=r.get(`length`),v=Number(t);Number.isInteger(v)&&v>=_.v&&R(_,v+1)}Lt(o)}return!0},ownKeys(e){$(o);var t=Reflect.ownKeys(e).filter(e=>{var t=r.get(e);return t===void 0||t.v!==n});for(var[i,a]of r)a.v!==n&&!(i in e)&&t.push(i);return t},setPrototypeOf(){be()}})}var Bt,Vt,Ht,Ut;function Wt(){if(Bt===void 0){Bt=window,Vt=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Ht=u(t,`firstChild`).get,Ut=u(t,`nextSibling`).get,h(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),h(n)&&(n.__t=void 0)}}function z(e=``){return document.createTextNode(e)}function Gt(e){return Ht.call(e)}function B(e){return Ut.call(e)}function Kt(e,t){if(!T)return Gt(e);var n=Gt(D);if(n===null)n=D.appendChild(z());else if(t&&n.nodeType!==3){var r=z();return n?.before(r),O(r),r}return t&&Qt(n),O(n),n}function qt(e,t=!1){if(!T){var n=Gt(e);return n instanceof Comment&&n.data===``?B(n):n}if(t){if(D?.nodeType!==3){var r=z();return D?.before(r),O(r),r}Qt(D)}return D}function Jt(e,t=1,n=!1){let r=T?D:e;for(var i;t--;)i=r,r=B(r);if(!T)return r;if(n){if(r?.nodeType!==3){var a=z();return r===null?i?.after(a):r.before(a),O(a),a}Qt(r)}return O(r),r}function Yt(e){e.textContent=``}function Xt(){return!Ne||F!==null?!1:(q.f&C)!==0}function Zt(e,t,n){let r=n?{is:n}:void 0;return document.createElementNS(t??`http://www.w3.org/1999/xhtml`,e,r)}function Qt(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===3;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function $t(e,t,n,r=!0){r&&n();for(var i of t)e.addEventListener(i,n);rn(()=>{for(var r of t)e.removeEventListener(r,n)})}function en(e){var t=W,n=q;K(null),J(null);try{return e()}finally{K(t),J(n)}}function tn(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function V(e,t){var n=q;n!==null&&n.f&8192&&(e|=S);var r={ctx:k,deps:null,nodes:null,f:e|b|512,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null},i=r;if(e&4)et===null?it.ensure().schedule(r):et.push(r);else if(t!==null){try{zn(r)}catch(e){throw U(r),e}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&!(i.f&524288)&&(i=i.first,e&16&&e&65536&&i!==null&&(i.f|=ne))}if(i!==null&&(i.parent=n,n!==null&&tn(i,n),W!==null&&W.f&2&&!(e&64))){var a=W;(a.effects??=[]).push(i)}return r}function nn(){return W!==null&&!G}function rn(e){let t=V(8,null);return j(t,y),t.teardown=e,t}function an(e){return V(4|ie,e)}function on(e){it.ensure();let t=V(64|re,e);return()=>{U(t)}}function sn(e){it.ensure();let t=V(64|re,e);return(e={})=>new Promise(n=>{e.outro?vn(t,()=>{U(t),n(void 0)}):(U(t),n(void 0))})}function cn(e){return V(4,e)}function ln(e){return V(ce|re,e)}function un(e,t=0){return V(8|t,e)}function dn(e,t=[],n=[],r=[]){_t(r,t,n,t=>{V(8,()=>e(...t.map($)))})}function fn(e,t=0){return V(16|t,e)}function H(e){return V(32|re,e)}function pn(e){var t=e.teardown;if(t!==null){let e=Tn,n=W;En(!0),K(null);try{t.call(null)}finally{En(e),K(n)}}}function mn(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){let e=n.ac;e!==null&&en(()=>{e.abort(w)});var r=n.next;n.f&64?n.parent=null:U(n,t),n=r}}function hn(e){for(var t=e.first;t!==null;){var n=t.next;t.f&32||U(t),t=n}}function U(e,t=!0){var n=!1;(t||e.f&262144)&&e.nodes!==null&&e.nodes.end!==null&&(gn(e.nodes.start,e.nodes.end),n=!0),j(e,te),mn(e,t&&!n),Rn(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)e.stop();pn(e),e.f^=te,e.f|=ee;var i=e.parent;i!==null&&i.first!==null&&_n(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function gn(e,t){for(;e!==null;){var n=e===t?null:B(e);e.remove(),e=n}}function _n(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function vn(e,t,n=!0){var r=[];yn(e,r,!0);var i=()=>{n&&U(e),t&&t()},a=r.length;if(a>0){var o=()=>--a||i();for(var s of r)s.out(o)}else i()}function yn(e,t,n){if(!(e.f&8192)){e.f^=S;var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)(e.is_global||n)&&t.push(e);for(var i=e.first;i!==null;){var a=i.next,o=(i.f&65536)!=0||(i.f&32)!=0&&(e.f&16)!=0;yn(i,t,o?n:!1),i=a}}}function bn(e){xn(e,!0)}function xn(e,t){if(e.f&8192){e.f^=S,e.f&1024||(j(e,b),it.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&65536)!=0||(n.f&32)!=0;xn(n,i?t:!1),n=r}var a=e.nodes&&e.nodes.t;if(a!==null)for(let e of a)(e.is_global||t)&&e.in()}}function Sn(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:B(n);t.append(n),n=i}}var Cn=null,wn=!1,Tn=!1;function En(e){Tn=e}var W=null,G=!1;function K(e){W=e}var q=null;function J(e){q=e}var Y=null;function Dn(e){W!==null&&(!Ne||W.f&2)&&(Y===null?Y=[e]:Y.push(e))}var X=null,Z=0,Q=null;function On(e){Q=e}var kn=1,An=0,jn=An;function Mn(e){jn=e}function Nn(){return++kn}function Pn(e){var t=e.f;if(t&2048)return!0;if(t&2&&(e.f&=~oe),t&4096){for(var n=e.deps,r=n.length,i=0;i<r;i++){var a=n[i];if(Pn(a)&&Ot(a),a.wv>e.wv)return!0}t&512&&P===null&&j(e,y)}return!1}function Fn(e,t,n=!0){var r=e.reactions;if(r!==null&&!(!Ne&&Y!==null&&o.call(Y,e)))for(var i=0;i<r.length;i++){var a=r[i];a.f&2?Fn(a,t,!1):t===a&&(n?j(a,b):a.f&1024&&j(a,x),ut(a))}}function In(e){var t=X,n=Z,r=Q,i=W,a=Y,o=k,s=G,c=jn,l=e.f;X=null,Z=0,Q=null,W=l&96?null:e,Y=null,Fe(e.ctx),G=!1,jn=++An,e.ac!==null&&(en(()=>{e.ac.abort(w)}),e.ac=null);try{e.f|=se;var u=e.fn,d=u();e.f|=C;var f=e.deps,p=N?.is_fork;if(X!==null){var m;if(p||Rn(e,Z),f!==null&&Z>0)for(f.length=Z+X.length,m=0;m<X.length;m++)f[Z+m]=X[m];else e.deps=f=X;if(nn()&&e.f&512)for(m=Z;m<f.length;m++)(f[m].reactions??=[]).push(e)}else !p&&f!==null&&Z<f.length&&(Rn(e,Z),f.length=Z);if(Re()&&Q!==null&&!G&&f!==null&&!(e.f&6146))for(m=0;m<Q.length;m++)Fn(Q[m],e);if(i!==null&&i!==e){if(An++,i.deps!==null)for(let e=0;e<n;e+=1)i.deps[e].rv=An;if(t!==null)for(let e of t)e.rv=An;Q!==null&&(r===null?r=Q:r.push(...Q))}return e.f&8388608&&(e.f^=le),d}catch(e){return Ue(e)}finally{e.f^=se,X=t,Z=n,Q=r,W=i,Y=a,Fe(o),G=s,jn=c}}function Ln(e,t){let n=t.reactions;if(n!==null){var r=a.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}if(n===null&&t.f&2&&(X===null||!o.call(X,t))){var s=t;s.f&512&&(s.f^=512,s.f&=~oe),Ge(s),kt(s),Rn(s,0)}}function Rn(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Ln(e,n[r])}function zn(e){var t=e.f;if(!(t&16384)){j(e,y);var n=q,r=wn;q=e,wn=!0;try{t&16777232?hn(e):mn(e),pn(e);var i=In(e);e.teardown=typeof i==`function`?i:null,e.wv=kn}finally{wn=r,q=n}}}function $(e){var t=(e.f&2)!=0;if(Cn?.add(e),W!==null&&!G&&!(q!==null&&q.f&16384)&&(Y===null||!o.call(Y,e))){var n=W.deps;if(W.f&2097152)e.rv<An&&(e.rv=An,X===null&&n!==null&&n[Z]===e?Z++:X===null?X=[e]:X.push(e));else{(W.deps??=[]).push(e);var r=e.reactions;r===null?e.reactions=[W]:o.call(r,W)||r.push(W)}}if(Tn&&I.has(e))return I.get(e);if(t){var i=e;if(Tn){var a=i.v;return(!(i.f&1024)&&i.reactions!==null||Vn(i))&&(a=Dt(i)),I.set(i,a),a}var s=(i.f&512)==0&&!G&&W!==null&&(wn||(W.f&512)!=0),c=(i.f&C)===0;Pn(i)&&(s&&(i.f|=512),Ot(i)),s&&!c&&(At(i),Bn(i))}if(P?.has(e))return P.get(e);if(e.f&8388608)throw e.v;return e.v}function Bn(e){if(e.f|=512,e.deps!==null)for(let t of e.deps)(t.reactions??=[]).push(e),t.f&2&&!(t.f&512)&&(At(t),Bn(t))}function Vn(e){if(e.v===n)return!0;if(e.deps===null)return!1;for(let t of e.deps)if(I.has(t)||t.f&2&&Vn(t))return!0;return!1}function Hn(e){var t=G;try{return G=!0,e()}finally{G=t}}var Un=Symbol(`events`),Wn=new Set,Gn=new Set,Kn=null;function qn(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],a=i[0]||e.target;Kn=e;var o=0,s=Kn===e&&e[Un];if(s){var c=i.indexOf(s);if(c!==-1&&(t===document||t===window)){e[Un]=t;return}var u=i.indexOf(t);if(u===-1)return;c<=u&&(o=c)}if(a=i[o]||e.target,a!==t){l(e,`currentTarget`,{configurable:!0,get(){return a||n}});var d=W,f=q;K(null),J(null);try{for(var p,m=[];a!==null;){var h=a.assignedSlot||a.parentNode||a.host||null;try{var g=a[Un]?.[r];g!=null&&(!a.disabled||e.target===a)&&g.call(a,e)}catch(e){p?m.push(e):p=e}if(e.cancelBubble||h===t||h===null)break;a=h}if(p){for(let e of m)queueMicrotask(()=>{throw e});throw p}}finally{e[Un]=t,delete e.currentTarget,K(d),J(f)}}}var Jn=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy(`svelte-trusted-html`,{createHTML:e=>e});function Yn(e){return Jn?.createHTML(e)??e}function Xn(e){var t=Zt(`template`);return t.innerHTML=Yn(e.replaceAll(`<!>`,`<!---->`)),t.content}function Zn(e,t){var n=q;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function Qn(e,t){var n=(t&1)!=0,r=(t&2)!=0,i,a=!e.startsWith(`<!>`);return()=>{if(T)return Zn(D,null),D;i===void 0&&(i=Xn(a?e:`<!>`+e),n||(i=Gt(i)));var t=r||Vt?document.importNode(i,!0):i.cloneNode(!0);if(n){var o=Gt(t),s=t.lastChild;Zn(o,s)}else Zn(t,t);return t}}function $n(){if(T)return Zn(D,null),D;var e=document.createDocumentFragment(),t=document.createComment(``),n=z();return e.append(t,n),Zn(t,n),e}function er(e,t){if(T){var n=q;(!(n.f&32768)||n.nodes.end===null)&&(n.nodes.end=D),Te();return}e!==null&&e.before(t)}[...`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`.split(`.`)];var tr=[`touchstart`,`touchmove`];function nr(e){return tr.includes(e)}function rr(e,t){var n=t==null?``:typeof t==`object`?`${t}`:t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=`${n}`)}function ir(e,t){return sr(e,t)}function ar(e,n){Wt(),n.intro=n.intro??!1;let r=n.target,i=T,a=D;try{for(var o=Gt(r);o&&(o.nodeType!==8||o.data!==`[`);)o=B(o);if(!o)throw t;E(!0),O(o);let i=sr(e,{...n,anchor:o});return E(!1),i}catch(i){if(i instanceof Error&&i.message.split(`
|
|
2
|
-
`).some(e=>e.startsWith(`https://svelte.dev/e/`)))throw i;return i!==t&&console.warn(`Failed to hydrate: `,i),n.recover===!1&&_e(),Wt(),Yt(r),E(!1),ir(e,n)}finally{E(i),O(a)}}var or=new Map;function sr(e,{target:n,anchor:r,props:i={},events:a,context:o,intro:c=!0,transformError:l}){Wt();var u=void 0,d=sn(()=>{var c=r??n.appendChild(z());ht(c,{pending:()=>{}},n=>{Ie({});var r=k;if(o&&(r.c=o),a&&(i.$$events=a),T&&Zn(n,null),u=e(n,i)||{},T&&(q.nodes.end=D,D===null||D.nodeType!==8||D.data!==`]`))throw Ce(),t;Le()},l);var d=new Set,f=e=>{for(var t=0;t<e.length;t++){var r=e[t];if(!d.has(r)){d.add(r);var i=nr(r);for(let e of[n,document]){var a=or.get(e);a===void 0&&(a=new Map,or.set(e,a));var o=a.get(r);o===void 0?(e.addEventListener(r,qn,{passive:i}),a.set(r,1)):a.set(r,o+1)}}}};return f(s(Wn)),Gn.add(f),()=>{for(var e of d)for(let r of[n,document]){var t=or.get(r),i=t.get(e);--i==0?(r.removeEventListener(e,qn),t.delete(e),t.size===0&&or.delete(r)):t.set(e,i)}Gn.delete(f),c!==r&&c.parentNode?.removeChild(c)}});return cr.set(u,d),u}var cr=new WeakMap;function lr(e,t){let n=cr.get(e);return n?(cr.delete(e),n(t)):Promise.resolve()}var ur=class{anchor;#e=new Map;#t=new Map;#n=new Map;#r=new Set;#i=!0;constructor(e,t=!0){this.anchor=e,this.#i=t}#a=e=>{if(this.#e.has(e)){var t=this.#e.get(e),n=this.#t.get(t);if(n)bn(n),this.#r.delete(t);else{var r=this.#n.get(t);r&&(this.#t.set(t,r.effect),this.#n.delete(t),r.fragment.lastChild.remove(),this.anchor.before(r.fragment),n=r.effect)}for(let[t,n]of this.#e){if(this.#e.delete(t),t===e)break;let r=this.#n.get(n);r&&(U(r.effect),this.#n.delete(n))}for(let[e,r]of this.#t){if(e===t||this.#r.has(e))continue;let i=()=>{if(Array.from(this.#e.values()).includes(e)){var t=document.createDocumentFragment();Sn(r,t),t.append(z()),this.#n.set(e,{effect:r,fragment:t})}else U(r);this.#r.delete(e),this.#t.delete(e)};this.#i||!n?(this.#r.add(e),vn(r,i,!1)):i()}}};#o=e=>{this.#e.delete(e);let t=Array.from(this.#e.values());for(let[e,n]of this.#n)t.includes(e)||(U(n.effect),this.#n.delete(e))};ensure(e,t){var n=N,r=Xt();if(t&&!this.#t.has(e)&&!this.#n.has(e))if(r){var i=document.createDocumentFragment(),a=z();i.append(a),this.#n.set(e,{effect:H(()=>t(a)),fragment:i})}else this.#t.set(e,H(()=>t(this.anchor)));if(this.#e.set(n,e),r){for(let[t,r]of this.#t)t===e?n.unskip_effect(r):n.skip_effect(r);for(let[t,r]of this.#n)t===e?n.unskip_effect(r.effect):n.skip_effect(r.effect);n.oncommit(this.#a),n.ondiscard(this.#o)}else T&&(this.anchor=D),this.#a(n)}};function dr(e,t,n=!1){var r;T&&(r=D,Te());var i=new ur(e),a=n?ne:0;function o(e,t){if(T){var n=ke(r);if(e!==parseInt(n.substring(1))){var a=Oe();O(a),i.anchor=a,E(!1),i.ensure(e,t),E(!0);return}}i.ensure(e,t)}fn(()=>{var e=!1;t((t,n=0)=>{e=!0,o(n,t)}),e||o(-1,null)},a)}function fr(e,t){return t}function pr(e,t,n){for(var r=[],i=t.length,a,o=t.length,c=0;c<i;c++){let n=t[c];vn(n,()=>{if(a){if(a.pending.delete(n),a.done.add(n),a.pending.size===0){var t=e.outrogroups;mr(e,s(a.done)),t.delete(a),t.size===0&&(e.outrogroups=null)}}else --o},!1)}if(o===0){var l=r.length===0&&n!==null;if(l){var u=n,d=u.parentNode;Yt(d),d.append(u),e.items.clear()}mr(e,t,!l)}else a={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(a)}function mr(e,t,n=!0){var r;if(e.pending.size>0){r=new Set;for(let t of e.pending.values())for(let n of t)r.add(e.items.get(n).e)}for(var i=0;i<t.length;i++){var a=t[i];r?.has(a)?(a.f|=ae,Sn(a,document.createDocumentFragment())):U(t[i],n)}}var hr;function gr(e,t,n,r,a,o=null){var c=e,l=new Map;if(t&4){var u=e;c=T?O(Gt(u)):u.appendChild(z())}T&&Te();var d=null,f=wt(()=>{var e=n();return i(e)?e:e==null?[]:s(e)}),p,m=new Map,h=!0;function g(e){v.effect.f&16384||(v.pending.delete(e),v.fallback=d,vr(v,p,c,t,r),d!==null&&(p.length===0?d.f&33554432?(d.f^=ae,br(d,null,c)):bn(d):vn(d,()=>{d=null})))}function _(e){v.pending.delete(e)}var v={effect:fn(()=>{p=$(f);var e=p.length;let i=!1;T&&ke(c)===`[!`!=(e===0)&&(c=Oe(),O(c),E(!1),i=!0);for(var s=new Set,u=N,v=Xt(),y=0;y<e;y+=1){T&&D.nodeType===8&&D.data===`]`&&(c=D,i=!0,E(!1));var b=p[y],x=r(b,y),S=h?null:l.get(x);S?(S.v&&Ft(S.v,b),S.i&&Ft(S.i,y),v&&u.unskip_effect(S.e)):(S=yr(l,h?c:hr??=z(),b,x,y,a,t,n),h||(S.e.f|=ae),l.set(x,S)),s.add(x)}if(e===0&&o&&!d&&(h?d=H(()=>o(c)):(d=H(()=>o(hr??=z())),d.f|=ae)),e>s.size&&he(``,``,``),T&&e>0&&O(Oe()),!h)if(m.set(u,s),v){for(let[e,t]of l)s.has(e)||u.skip_effect(t.e);u.oncommit(g),u.ondiscard(_)}else g(u);i&&E(!0),$(f)}),flags:t,items:l,pending:m,outrogroups:null,fallback:d};h=!1,T&&(c=D)}function _r(e){for(;e!==null&&!(e.f&32);)e=e.next;return e}function vr(e,t,n,r,i){var a=(r&8)!=0,o=t.length,c=e.items,l=_r(e.effect.first),u,d=null,f,p=[],m=[],h,g,_,v;if(a)for(v=0;v<o;v+=1)h=t[v],g=i(h,v),_=c.get(g).e,_.f&33554432||(_.nodes?.a?.measure(),(f??=new Set).add(_));for(v=0;v<o;v+=1){if(h=t[v],g=i(h,v),_=c.get(g).e,e.outrogroups!==null)for(let t of e.outrogroups)t.pending.delete(_),t.done.delete(_);if(_.f&8192&&(bn(_),a&&(_.nodes?.a?.unfix(),(f??=new Set).delete(_))),_.f&33554432)if(_.f^=ae,_===l)br(_,null,n);else{var y=d?d.next:l;_===e.effect.last&&(e.effect.last=_.prev),_.prev&&(_.prev.next=_.next),_.next&&(_.next.prev=_.prev),xr(e,d,_),xr(e,_,y),br(_,y,n),d=_,p=[],m=[],l=_r(d.next);continue}if(_!==l){if(u!==void 0&&u.has(_)){if(p.length<m.length){var b=m[0],x;d=b.prev;var S=p[0],ee=p[p.length-1];for(x=0;x<p.length;x+=1)br(p[x],b,n);for(x=0;x<m.length;x+=1)u.delete(m[x]);xr(e,S.prev,ee.next),xr(e,d,S),xr(e,ee,b),l=b,d=ee,--v,p=[],m=[]}else u.delete(_),br(_,l,n),xr(e,_.prev,_.next),xr(e,_,d===null?e.effect.first:d.next),xr(e,d,_),d=_;continue}for(p=[],m=[];l!==null&&l!==_;)(u??=new Set).add(l),m.push(l),l=_r(l.next);if(l===null)continue}_.f&33554432||p.push(_),d=_,l=_r(_.next)}if(e.outrogroups!==null){for(let t of e.outrogroups)t.pending.size===0&&(mr(e,s(t.done)),e.outrogroups?.delete(t));e.outrogroups.size===0&&(e.outrogroups=null)}if(l!==null||u!==void 0){var C=[];if(u!==void 0)for(_ of u)_.f&8192||C.push(_);for(;l!==null;)!(l.f&8192)&&l!==e.fallback&&C.push(l),l=_r(l.next);var te=C.length;if(te>0){var ne=r&4&&o===0?n:null;if(a){for(v=0;v<te;v+=1)C[v].nodes?.a?.measure();for(v=0;v<te;v+=1)C[v].nodes?.a?.fix()}pr(e,C,ne)}}a&&Ve(()=>{if(f!==void 0)for(_ of f)_.nodes?.a?.apply()})}function yr(e,t,n,r,i,a,o,s){var c=o&1?o&16?Nt(n):Pt(n,!1,!1):null,l=o&2?Nt(i):null;return{v:c,i:l,e:H(()=>(a(t,c??n,l??i,s),()=>{e.delete(r)}))}}function br(e,t,n){if(e.nodes)for(var r=e.nodes.start,i=e.nodes.end,a=t&&!(t.f&33554432)?t.nodes.start:n;r!==null;){var o=B(r);if(a.before(r),r===i)return;r=o}}function xr(e,t,n){t===null?e.effect.first=n:t.next=n,n===null?e.effect.last=t:n.prev=t}function Sr(e,t){cn(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector(`#`+t.hash)){let e=Zt(`style`);e.id=t.hash,e.textContent=t.code,r.appendChild(e)}})}function Cr(e,t=!1){var n=t?` !important;`:`;`,r=``;for(var i of Object.keys(e)){var a=e[i];a!=null&&a!==``&&(r+=` `+i+`: `+a+n)}return r}function wr(e){return e[0]!==`-`||e[1]!==`-`?e.toLowerCase():e}function Tr(e,t){if(t){var n=``,r,i;if(Array.isArray(t)?(r=t[0],i=t[1]):r=t,e){e=String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g,``).trim();var a=!1,o=0,s=!1,c=[];r&&c.push(...Object.keys(r).map(wr)),i&&c.push(...Object.keys(i).map(wr));var l=0,u=-1;let t=e.length;for(var d=0;d<t;d++){var f=e[d];if(s?f===`/`&&e[d-1]===`*`&&(s=!1):a?a===f&&(a=!1):f===`/`&&e[d+1]===`*`?s=!0:f===`"`||f===`'`?a=f:f===`(`?o++:f===`)`&&o--,!s&&a===!1&&o===0){if(f===`:`&&u===-1)u=d;else if(f===`;`||d===t-1){if(u!==-1){var p=wr(e.substring(l,u).trim());if(!c.includes(p)){f!==`;`&&d++;var m=e.substring(l,d).trim();n+=` `+m+`;`}}l=d+1,u=-1}}}}return r&&(n+=Cr(r)),i&&(n+=Cr(i,!0)),n=n.trim(),n===``?null:n}return e==null?null:String(e)}function Er(e,t={},n,r){for(var i in n){var a=n[i];t[i]!==a&&(n[i]==null?e.style.removeProperty(i):e.style.setProperty(i,a,r))}}function Dr(e,t,n,r){var i=e.__style;if(T||i!==t){var a=Tr(t,r);(!T||a!==e.getAttribute(`style`))&&(a==null?e.removeAttribute(`style`):e.style.cssText=a),e.__style=t}else r&&(Array.isArray(r)?(Er(e,n?.[0],r[0]),Er(e,n?.[1],r[1],`important`)):Er(e,n,r));return r}var Or=Symbol(`is custom element`),kr=Symbol(`is html`),Ar=pe?`link`:`LINK`;function jr(e,t,n,r){var i=Mr(e);T&&(i[t]=e.getAttribute(t),t===`src`||t===`srcset`||t===`href`&&e.nodeName===Ar)||i[t]!==(i[t]=n)&&(t===`loading`&&(e[fe]=n),n==null?e.removeAttribute(t):typeof n!=`string`&&Pr(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function Mr(e){return e.__attributes??={[Or]:e.nodeName.includes(`-`),[kr]:e.namespaceURI===r}}var Nr=new Map;function Pr(e){var t=e.getAttribute(`is`)||e.nodeName,n=Nr.get(t);if(n)return n;Nr.set(t,n=[]);for(var r,i=e,a=Element.prototype;a!==i;){for(var o in r=d(i),r)r[o].set&&n.push(o);i=m(i)}return n}function Fr(e,t){$t(window,[`resize`],()=>en(()=>t(window[e])))}function Ir(e,t,n,r){var i=!Pe||(n&2)!=0,a=(n&8)!=0,o=(n&16)!=0,s=r,c=!0,l=()=>(c&&(c=!1,s=o?Hn(r):r),s);let d;if(a){var f=ue in e||de in e;d=u(e,t)?.set??(f&&t in e?n=>e[t]=n:void 0)}var p,m=!1;a?[p,m]=Xe(()=>e[t]):p=e[t],p===void 0&&r!==void 0&&(p=l(),d&&(i&&ve(t),d(p)));var h=i?()=>{var n=e[t];return n===void 0?l():(c=!0,n)}:()=>{var n=e[t];return n!==void 0&&(s=void 0),n===void 0?s:n};if(i&&!(n&4))return h;if(d){var g=e.$$legacy;return(function(e,t){return arguments.length>0?((!i||!t||g||m)&&d(t?h():e),e):h()})}var _=!1,v=(n&1?xt:wt)(()=>(_=!1,h()));a&&$(v);var y=q;return(function(e,t){if(arguments.length>0){let n=t?$(v):i&&a?zt(e):e;return R(v,n),_=!0,s!==void 0&&(s=n),e}return Tn&&_||y.f&16384?v.v:$(v)})}function Lr(e){return new Rr(e)}var Rr=class{#e;#t;constructor(e){var t=new Map,n=(e,n)=>{var r=Pt(n,!1,!1);return t.set(e,r),r};let r=new Proxy({...e.props||{},$$events:{}},{get(e,r){return $(t.get(r)??n(r,Reflect.get(e,r)))},has(e,r){return r===de?!0:($(t.get(r)??n(r,Reflect.get(e,r))),Reflect.has(e,r))},set(e,r,i){return R(t.get(r)??n(r,i),i),Reflect.set(e,r,i)}});this.#t=(e.hydrate?ar:ir)(e.component,{target:e.target,anchor:e.anchor,props:r,context:e.context,intro:e.intro??!1,recover:e.recover,transformError:e.transformError}),!Ne&&(!e?.props?.$$host||e.sync===!1)&&at(),this.#e=r.$$events;for(let e of Object.keys(this.#t))e===`$set`||e===`$destroy`||e===`$on`||l(this,e,{get(){return this.#t[e]},set(t){this.#t[e]=t},enumerable:!0});this.#t.$set=e=>{Object.assign(r,e)},this.#t.$destroy=()=>{lr(this.#t)}}$set(e){this.#t.$set(e)}$on(e,t){this.#e[e]=this.#e[e]||[];let n=(...e)=>t.call(this,...e);return this.#e[e].push(n),()=>{this.#e[e]=this.#e[e].filter(e=>e!==n)}}$destroy(){this.#t.$destroy()}},zr;typeof HTMLElement==`function`&&(zr=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&(this.$$shadowRoot=this.attachShadow(n))}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){let n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){let e=this.$$l_u.get(t);e&&(e(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){if(await Promise.resolve(),!this.$$cn||this.$$c)return;function e(e){return t=>{let n=Zt(`slot`);e!==`default`&&(n.name=e),er(t,n)}}let t={},n=Vr(this);for(let r of this.$$s)r in n&&(r===`default`&&!this.$$d.children?(this.$$d.children=e(r),t.default=!0):t[r]=e(r));for(let e of this.attributes){let t=this.$$g_p(e.name);t in this.$$d||(this.$$d[t]=Br(t,e.value,this.$$p_d,`toProp`))}for(let e in this.$$p_d)!(e in this.$$d)&&this[e]!==void 0&&(this.$$d[e]=this[e],delete this[e]);this.$$c=Lr({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=on(()=>{un(()=>{this.$$r=!0;for(let e of c(this.$$c)){if(!this.$$p_d[e]?.reflect)continue;this.$$d[e]=this.$$c[e];let t=Br(e,this.$$d[e],this.$$p_d,`toAttribute`);t==null?this.removeAttribute(this.$$p_d[e].attribute||e):this.setAttribute(this.$$p_d[e].attribute||e,t)}this.$$r=!1})});for(let e in this.$$l)for(let t of this.$$l[e]){let n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=Br(e,n,this.$$p_d,`toProp`),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return c(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Br(e,t,n,r){let i=n[e]?.type;if(t=i===`Boolean`&&typeof t!=`boolean`?t!=null:t,!r||!n[e])return t;if(r===`toAttribute`)switch(i){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(i){case`Object`:case`Array`:return t&&JSON.parse(t);case`Boolean`:return t;case`Number`:return t==null?t:+t;default:return t}}function Vr(e){let t={};return e.childNodes.forEach(e=>{t[e.slot||`default`]=!0}),t}function Hr(e,t,n,r,i,a){let o=class extends zr{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return c(t).map(e=>(t[e].attribute||e).toLowerCase())}};return c(t).forEach(e=>{l(o.prototype,e,{get(){return this.$$c&&e in this.$$c?this.$$c[e]:this.$$d[e]},set(n){n=Br(e,n,t),this.$$d[e]=n;var r=this.$$c;r&&(u(r,e)?.get?r[e]=n:r.$set({[e]:n}))}})}),r.forEach(e=>{l(o.prototype,e,{get(){return this.$$c?.[e]}})}),a&&(o=a(o)),e.element=o,o}var Ur=Qn(`<div class="collection_item svelte-16chsc" part="item"><div class="collection_item_image svelte-16chsc"><img part="image" class="svelte-16chsc"/></div> <div class="collection_item_text svelte-16chsc"><h3 part="title" class="svelte-16chsc"> </h3> <p part="text" class="svelte-16chsc"> </p></div></div>`),Wr=Qn(`<div id="collection_container" part="container" class="svelte-16chsc"></div>`),Gr={hash:`svelte-16chsc`,code:`@charset "UTF-8";
|
|
1
|
+
(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`}),typeof window<`u`&&((window.__svelte??={}).v??=new Set).add(`5`);var t={},n=Symbol(),r=`http://www.w3.org/1999/xhtml`,i=Array.isArray,a=Array.prototype.indexOf,o=Array.prototype.includes,s=Array.from,c=Object.keys,l=Object.defineProperty,u=Object.getOwnPropertyDescriptor,d=Object.getOwnPropertyDescriptors,f=Object.prototype,p=Array.prototype,m=Object.getPrototypeOf,h=Object.isExtensible,g=()=>{};function _(e){for(var t=0;t<e.length;t++)e[t]()}function v(){var e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}var y=1024,b=2048,x=4096,S=8192,ee=16384,C=32768,te=1<<25,ne=65536,re=1<<19,ie=1<<20,ae=1<<25,oe=65536,se=1<<21,ce=1<<22,le=1<<23,ue=Symbol(`$state`),de=Symbol(`legacy props`),fe=Symbol(``),w=new class extends Error{name=`StaleReactionError`;message="The reaction that called `getAbortSignal()` was re-run or destroyed"},pe=!!globalThis.document?.contentType&&globalThis.document.contentType.includes(`xml`);function me(){throw Error(`https://svelte.dev/e/async_derived_orphan`)}function he(e,t,n){throw Error(`https://svelte.dev/e/each_key_duplicate`)}function ge(){throw Error(`https://svelte.dev/e/effect_update_depth_exceeded`)}function _e(){throw Error(`https://svelte.dev/e/hydration_failed`)}function ve(e){throw Error(`https://svelte.dev/e/props_invalid_value`)}function ye(){throw Error(`https://svelte.dev/e/state_descriptors_fixed`)}function be(){throw Error(`https://svelte.dev/e/state_prototype_fixed`)}function xe(){throw Error(`https://svelte.dev/e/state_unsafe_mutation`)}function Se(){throw Error(`https://svelte.dev/e/svelte_boundary_reset_onerror`)}function Ce(e){console.warn(`https://svelte.dev/e/hydration_mismatch`)}function we(){console.warn(`https://svelte.dev/e/svelte_boundary_reset_noop`)}var T=!1;function E(e){T=e}var D;function O(e){if(e===null)throw Ce(),t;return D=e}function Te(){return O(B(D))}function Ee(e){if(T){if(B(D)!==null)throw Ce(),t;D=e}}function De(e=1){if(T){for(var t=e,n=D;t--;)n=B(n);D=n}}function Oe(e=!0){for(var t=0,n=D;;){if(n.nodeType===8){var r=n.data;if(r===`]`){if(t===0)return n;--t}else (r===`[`||r===`[!`||r[0]===`[`&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=B(n);e&&n.remove(),n=i}}function ke(e){if(!e||e.nodeType!==8)throw Ce(),t;return e.data}function Ae(e){return e===this.v}function je(e,t){return e==e?e!==t||typeof e==`object`&&!!e||typeof e==`function`:t==t}function Me(e){return!je(e,this.v)}var k=!1,Ne=!1,A=null;function Pe(e){A=e}function Fe(e,t=!1,n){A={p:A,i:!1,c:null,e:null,s:e,x:null,r:q,l:Ne&&!t?{s:null,u:null,$:[]}:null}}function Ie(e){var t=A,n=t.e;if(n!==null){t.e=null;for(var r of n)an(r)}return e!==void 0&&(t.x=e),t.i=!0,A=t.p,e??{}}function Le(){return!Ne||A!==null&&A.l===null}var Re=[];function ze(){var e=Re;Re=[],_(e)}function Be(e){if(Re.length===0&&!Qe){var t=Re;queueMicrotask(()=>{t===Re&&ze()})}Re.push(e)}function Ve(){for(;Re.length>0;)ze()}function He(e){var t=q;if(t===null)return W.f|=le,e;if(!(t.f&32768)&&!(t.f&4))throw e;Ue(e,t)}function Ue(e,t){for(;t!==null;){if(t.f&128){if(!(t.f&32768))throw e;try{t.b.error(e);return}catch(t){e=t}}t=t.parent}throw e}var We=~(b|x|y);function j(e,t){e.f=e.f&We|t}function Ge(e){e.f&512||e.deps===null?j(e,y):j(e,x)}function Ke(e){if(e!==null)for(let t of e)!(t.f&2)||!(t.f&65536)||(t.f^=oe,Ke(t.deps))}function qe(e,t,n){e.f&2048?t.add(e):e.f&4096&&n.add(e),Ke(e.deps),j(e,y)}var Je=!1,Ye=!1;function Xe(e){var t=Ye;try{return Ye=!1,[e(),Ye]}finally{Ye=t}}var M=new Set,N=null,P=null,Ze=null,Qe=!1,$e=!1,et=null,tt=null,nt=0,rt=1,it=class e{id=rt++;current=new Map;previous=new Map;#e=new Set;#t=new Set;#n=new Map;#r=new Map;#i=null;#a=[];#o=new Set;#s=new Set;#c=new Map;is_fork=!1;#l=!1;#u=new Set;#d(){return this.is_fork||this.#r.size>0}#f(){for(let n of this.#u)for(let r of n.#r.keys()){for(var e=!1,t=r;t.parent!==null;){if(this.#c.has(t)){e=!0;break}t=t.parent}if(!e)return!0}return!1}skip_effect(e){this.#c.has(e)||this.#c.set(e,{d:[],m:[]})}unskip_effect(e){var t=this.#c.get(e);if(t){this.#c.delete(e);for(var n of t.d)j(n,b),this.schedule(n);for(n of t.m)j(n,x),this.schedule(n)}}#p(){if(nt++>1e3&&(M.delete(this),ot()),!this.#d()){for(let e of this.#o)this.#s.delete(e),j(e,b),this.schedule(e);for(let e of this.#s)j(e,x),this.schedule(e)}let t=this.#a;this.#a=[],this.apply();var n=et=[],r=[],i=tt=[];for(let e of t)try{this.#m(e,n,r)}catch(t){throw ft(e),t}if(N=null,i.length>0){var a=e.ensure();for(let e of i)a.schedule(e)}if(et=null,tt=null,this.#d()||this.#f()){this.#h(r),this.#h(n);for(let[e,t]of this.#c)dt(e,t)}else{this.#n.size===0&&M.delete(this),this.#o.clear(),this.#s.clear();for(let e of this.#e)e(this);this.#e.clear(),st(r),st(n),this.#i?.resolve()}var o=N;if(this.#a.length>0){let e=o??=this;e.#a.push(...this.#a.filter(t=>!e.#a.includes(t)))}o!==null&&(M.add(o),o.#p()),M.has(this)||this.#g()}#m(e,t,n){e.f^=y;for(var r=e.first;r!==null;){var i=r.f,a=(i&96)!=0;if(!(a&&i&1024||i&8192||this.#c.has(r))&&r.fn!==null){a?r.f^=y:i&4?t.push(r):k&&i&16777224?n.push(r):Pn(r)&&(i&16&&this.#s.add(r),zn(r));var o=r.first;if(o!==null){r=o;continue}}for(;r!==null;){var s=r.next;if(s!==null){r=s;break}r=r.parent}}}#h(e){for(var t=0;t<e.length;t+=1)qe(e[t],this.#o,this.#s)}capture(e,t,r=!1){t!==n&&!this.previous.has(e)&&this.previous.set(e,t),e.f&8388608||(this.current.set(e,[e.v,r]),P?.set(e,e.v))}activate(){N=this}deactivate(){N=null,P=null}flush(){try{$e=!0,N=this,this.#p()}finally{nt=0,Ze=null,et=null,tt=null,$e=!1,N=null,P=null,I.clear()}}discard(){for(let e of this.#t)e(this);this.#t.clear(),M.delete(this)}#g(){for(let c of M){var e=c.id<this.id,t=[];for(let[r,[i,a]]of this.current){if(c.current.has(r)){var n=c.current.get(r)[0];if(e&&i!==n)c.current.set(r,[i,a]);else continue}t.push(r)}var r=[...c.current.keys()].filter(e=>!this.current.has(e));if(r.length===0)e&&c.discard();else if(t.length>0){c.activate();var i=new Set,a=new Map;for(var o of t)ct(o,r,i,a);if(c.#a.length>0){c.apply();for(var s of c.#a)c.#m(s,[],[]);c.#a=[]}c.deactivate()}}for(let e of M)e.#u.has(this)&&(e.#u.delete(this),e.#u.size===0&&!e.#d()&&(e.activate(),e.#p()))}increment(e,t){let n=this.#n.get(t)??0;if(this.#n.set(t,n+1),e){let e=this.#r.get(t)??0;this.#r.set(t,e+1)}}decrement(e,t,n){let r=this.#n.get(t)??0;if(r===1?this.#n.delete(t):this.#n.set(t,r-1),e){let e=this.#r.get(t)??0;e===1?this.#r.delete(t):this.#r.set(t,e-1)}this.#l||n||(this.#l=!0,Be(()=>{this.#l=!1,this.flush()}))}transfer_effects(e,t){for(let t of e)this.#o.add(t);for(let e of t)this.#s.add(e);e.clear(),t.clear()}oncommit(e){this.#e.add(e)}ondiscard(e){this.#t.add(e)}settled(){return(this.#i??=v()).promise}static ensure(){if(N===null){let t=N=new e;$e||(M.add(N),Qe||Be(()=>{N===t&&t.flush()}))}return N}apply(){if(!k||!this.is_fork&&M.size===1){P=null;return}P=new Map;for(let[e,[t]]of this.current)P.set(e,t);for(let n of M)if(!(n===this||n.is_fork)){var e=!1,t=!1;if(n.id<this.id)for(let[r,[,i]]of n.current)i||(e||=this.current.has(r),t||=!this.current.has(r));if(e&&t)this.#u.add(n);else for(let[e,t]of n.previous)P.has(e)||P.set(e,t)}}schedule(e){if(Ze=e,e.b?.is_pending&&e.f&16777228&&!(e.f&32768)){e.b.defer_effect(e);return}for(var t=e;t.parent!==null;){t=t.parent;var n=t.f;if(et!==null&&t===q&&(k||(W===null||!(W.f&2))&&!Je))return;if(n&96){if(!(n&1024))return;t.f^=y}}this.#a.push(t)}};function at(e){var t=Qe;Qe=!0;try{var n;for(e&&(N!==null&&!N.is_fork&&N.flush(),n=e());;){if(Ve(),N===null)return n;N.flush()}}finally{Qe=t}}function ot(){try{ge()}catch(e){Ue(e,Ze)}}var F=null;function st(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if(!(r.f&24576)&&Pn(r)&&(F=new Set,zn(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&_n(r),F?.size>0)){I.clear();for(let e of F){if(e.f&24576)continue;let t=[e],n=e.parent;for(;n!==null;)F.has(n)&&(F.delete(n),t.push(n)),n=n.parent;for(let e=t.length-1;e>=0;e--){let n=t[e];n.f&24576||zn(n)}}F.clear()}}F=null}}function ct(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(let i of e.reactions){let e=i.f;e&2?ct(i,t,n,r):e&4194320&&!(e&2048)&<(i,t,r)&&(j(i,b),ut(i))}}function lt(e,t,n){let r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(let r of e.deps){if(o.call(t,r))return!0;if(r.f&2&<(r,t,n))return n.set(r,!0),!0}return n.set(e,!1),!1}function ut(e){N.schedule(e)}function dt(e,t){if(!(e.f&32&&e.f&1024)){e.f&2048?t.d.push(e):e.f&4096&&t.m.push(e),j(e,y);for(var n=e.first;n!==null;)dt(n,t),n=n.next}}function ft(e){j(e,y);for(var t=e.first;t!==null;)ft(t),t=t.next}function pt(e){let t=0,n=Nt(0),r;return()=>{nn()&&($(n),un(()=>(t===0&&(r=Hn(()=>e(()=>Lt(n)))),t+=1,()=>{Be(()=>{--t,t===0&&(r?.(),r=void 0,Lt(n))})})))}}var mt=ne|re;function ht(e,t,n,r){new gt(e,t,n,r)}var gt=class{parent;is_pending=!1;transform_error;#e;#t=T?D:null;#n;#r;#i;#a=null;#o=null;#s=null;#c=null;#l=0;#u=0;#d=!1;#f=new Set;#p=new Set;#m=null;#h=pt(()=>(this.#m=Nt(this.#l),()=>{this.#m=null}));constructor(e,t,n,r){this.#e=e,this.#n=t,this.#r=e=>{var t=q;t.b=this,t.f|=128,n(e)},this.parent=q.b,this.transform_error=r??this.parent?.transform_error??(e=>e),this.#i=fn(()=>{if(T){let e=this.#t;Te();let t=e.data===`[!`;if(e.data.startsWith(`[?`)){let t=JSON.parse(e.data.slice(2));this.#_(t)}else t?this.#v():this.#g()}else this.#y()},mt),T&&(this.#e=D)}#g(){try{this.#a=H(()=>this.#r(this.#e))}catch(e){this.error(e)}}#_(e){let t=this.#n.failed;t&&(this.#s=H(()=>{t(this.#e,()=>e,()=>()=>{})}))}#v(){let e=this.#n.pending;e&&(this.is_pending=!0,this.#o=H(()=>e(this.#e)),Be(()=>{var e=this.#c=document.createDocumentFragment(),t=z();e.append(t),this.#a=this.#x(()=>H(()=>this.#r(t))),this.#u===0&&(this.#e.before(e),this.#c=null,vn(this.#o,()=>{this.#o=null}),this.#b(N))}))}#y(){try{if(this.is_pending=this.has_pending_snippet(),this.#u=0,this.#l=0,this.#a=H(()=>{this.#r(this.#e)}),this.#u>0){var e=this.#c=document.createDocumentFragment();Sn(this.#a,e);let t=this.#n.pending;this.#o=H(()=>t(this.#e))}else this.#b(N)}catch(e){this.error(e)}}#b(e){this.is_pending=!1,e.transfer_effects(this.#f,this.#p)}defer_effect(e){qe(e,this.#f,this.#p)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#n.pending}#x(e){var t=q,n=W,r=A;J(this.#i),K(this.#i),Pe(this.#i.ctx);try{return it.ensure(),e()}catch(e){return He(e),null}finally{J(t),K(n),Pe(r)}}#S(e,t){if(!this.has_pending_snippet()){this.parent&&this.parent.#S(e,t);return}this.#u+=e,this.#u===0&&(this.#b(t),this.#o&&vn(this.#o,()=>{this.#o=null}),this.#c&&=(this.#e.before(this.#c),null))}update_pending_count(e,t){this.#S(e,t),this.#l+=e,!(!this.#m||this.#d)&&(this.#d=!0,Be(()=>{this.#d=!1,this.#m&&Ft(this.#m,this.#l)}))}get_effect_pending(){return this.#h(),$(this.#m)}error(e){var t=this.#n.onerror;let n=this.#n.failed;if(!t&&!n)throw e;this.#a&&=(U(this.#a),null),this.#o&&=(U(this.#o),null),this.#s&&=(U(this.#s),null),T&&(O(this.#t),De(),O(Oe()));var r=!1,i=!1;let a=()=>{if(r){we();return}r=!0,i&&Se(),this.#s!==null&&vn(this.#s,()=>{this.#s=null}),this.#x(()=>{this.#y()})},o=e=>{try{i=!0,t?.(e,a),i=!1}catch(e){Ue(e,this.#i&&this.#i.parent)}n&&(this.#s=this.#x(()=>{try{return H(()=>{var t=q;t.b=this,t.f|=128,n(this.#e,()=>e,()=>a)})}catch(e){return Ue(e,this.#i.parent),null}}))};Be(()=>{var t;try{t=this.transform_error(e)}catch(e){Ue(e,this.#i&&this.#i.parent);return}typeof t==`object`&&t&&typeof t.then==`function`?t.then(o,e=>Ue(e,this.#i&&this.#i.parent)):o(t)})}};function _t(e,t,n,r){let i=Le()?xt:wt;var a=e.filter(e=>!e.settled);if(n.length===0&&a.length===0){r(t.map(i));return}var o=q,s=vt(),c=a.length===1?a[0].promise:a.length>1?Promise.all(a.map(e=>e.promise)):null;function l(e){s();try{r(e)}catch(e){o.f&16384||Ue(e,o)}yt()}if(n.length===0){c.then(()=>l(t.map(i)));return}var u=bt();function d(){Promise.all(n.map(e=>St(e))).then(e=>l([...t.map(i),...e])).catch(e=>Ue(e,o)).finally(()=>u())}c?c.then(()=>{s(),d(),yt()}):d()}function vt(){var e=q,t=W,n=A,r=N;return function(i=!0){J(e),K(t),Pe(n),i&&!(e.f&16384)&&(r?.activate(),r?.apply())}}function yt(e=!0){J(null),K(null),Pe(null),e&&N?.deactivate()}function bt(){var e=q,t=e.b,n=N,r=t.is_rendered();return t.update_pending_count(1,n),n.increment(r,e),(i=!1)=>{t.update_pending_count(-1,n),n.decrement(r,e,i)}}function xt(e){var t=2|b,r=W!==null&&W.f&2?W:null;return q!==null&&(q.f|=re),{ctx:A,deps:null,effects:null,equals:Ae,f:t,fn:e,reactions:null,rv:0,v:n,wv:0,parent:r??q,ac:null}}function St(e,t,r){let i=q;i===null&&me();var a=void 0,o=Nt(n),s=!W,c=new Map;return ln(()=>{var t=q,n=v();a=n.promise;try{Promise.resolve(e()).then(n.resolve,n.reject).finally(yt)}catch(e){n.reject(e),yt()}var r=N;if(s){if(t.f&32768)var l=bt();if(i.b.is_rendered())c.get(r)?.reject(w),c.delete(r);else{for(let e of c.values())e.reject(w);c.clear()}c.set(r,n)}let u=(e,n=void 0)=>{if(l&&l(n===w),!(n===w||t.f&16384)){if(r.activate(),n)o.f|=le,Ft(o,n);else{o.f&8388608&&(o.f^=le),Ft(o,e);for(let[e,t]of c){if(c.delete(e),e===r)break;t.reject(w)}}r.deactivate()}};n.promise.then(u,e=>u(null,e||`unknown`))}),rn(()=>{for(let e of c.values())e.reject(w)}),new Promise(e=>{function t(n){function r(){n===a?e(o):t(a)}n.then(r,r)}t(a)})}function Ct(e){let t=xt(e);return k||Dn(t),t}function wt(e){let t=xt(e);return t.equals=Me,t}function Tt(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)U(t[n])}}function Et(e){for(var t=e.parent;t!==null;){if(!(t.f&2))return t.f&16384?null:t;t=t.parent}return null}function Dt(e){var t,n=q;J(Et(e));try{e.f&=~oe,Tt(e),t=In(e)}finally{J(n)}return t}function Ot(e){var t=e.v,n=Dt(e);if(!e.equals(n)&&(e.wv=Nn(),(!N?.is_fork||e.deps===null)&&(e.v=n,N?.capture(e,t,!0),e.deps===null))){j(e,y);return}Tn||(P===null?Ge(e):(nn()||N?.is_fork)&&P.set(e,n))}function kt(e){if(e.effects!==null)for(let t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(w),t.teardown=g,t.ac=null,Rn(t,0),mn(t))}function At(e){if(e.effects!==null)for(let t of e.effects)t.teardown&&zn(t)}var jt=new Set,I=new Map,Mt=!1;function Nt(e,t){return{f:0,v:e,reactions:null,equals:Ae,rv:0,wv:0}}function L(e,t){let n=Nt(e,t);return Dn(n),n}function Pt(e,t=!1,n=!0){let r=Nt(e);return t||(r.equals=Me),Ne&&n&&A!==null&&A.l!==null&&(A.l.s??=[]).push(r),r}function R(e,t,n=!1){return W!==null&&(!G||W.f&131072)&&Le()&&W.f&4325394&&(Y===null||!o.call(Y,e))&&xe(),Ft(e,n?zt(t):t,tt)}function Ft(e,t,n=null){if(!e.equals(t)){var r=e.v;Tn?I.set(e,t):I.set(e,r),e.v=t;var i=it.ensure();if(i.capture(e,r),e.f&2){let t=e;e.f&2048&&Dt(t),P===null&&Ge(t)}e.wv=Nn(),Rt(e,b,n),Le()&&q!==null&&q.f&1024&&!(q.f&96)&&(Q===null?On([e]):Q.push(e)),!i.is_fork&&jt.size>0&&!Mt&&It()}return t}function It(){Mt=!1;for(let e of jt)e.f&1024&&j(e,x),Pn(e)&&zn(e);jt.clear()}function Lt(e){R(e,e.v+1)}function Rt(e,t,n){var r=e.reactions;if(r!==null)for(var i=Le(),a=r.length,o=0;o<a;o++){var s=r[o],c=s.f;if(!(!i&&s===q)){var l=(c&b)===0;if(l&&j(s,t),c&2){var u=s;P?.delete(u),c&65536||(c&512&&(s.f|=oe),Rt(u,x,n))}else if(l){var d=s;c&16&&F!==null&&F.add(d),n===null?ut(d):n.push(d)}}}}function zt(e){if(typeof e!=`object`||!e||ue in e)return e;let t=m(e);if(t!==f&&t!==p)return e;var r=new Map,a=i(e),o=L(0),s=null,c=jn,l=e=>{if(jn===c)return e();var t=W,n=jn;K(null),Mn(c);var r=e();return K(t),Mn(n),r};return a&&r.set(`length`,L(e.length,s)),new Proxy(e,{defineProperty(e,t,n){(!(`value`in n)||n.configurable===!1||n.enumerable===!1||n.writable===!1)&&ye();var i=r.get(t);return i===void 0?l(()=>{var e=L(n.value,s);return r.set(t,e),e}):R(i,n.value,!0),!0},deleteProperty(e,t){var i=r.get(t);if(i===void 0){if(t in e){let e=l(()=>L(n,s));r.set(t,e),Lt(o)}}else R(i,n),Lt(o);return!0},get(t,i,a){if(i===ue)return e;var o=r.get(i),c=i in t;if(o===void 0&&(!c||u(t,i)?.writable)&&(o=l(()=>L(zt(c?t[i]:n),s)),r.set(i,o)),o!==void 0){var d=$(o);return d===n?void 0:d}return Reflect.get(t,i,a)},getOwnPropertyDescriptor(e,t){var i=Reflect.getOwnPropertyDescriptor(e,t);if(i&&`value`in i){var a=r.get(t);a&&(i.value=$(a))}else if(i===void 0){var o=r.get(t),s=o?.v;if(o!==void 0&&s!==n)return{enumerable:!0,configurable:!0,value:s,writable:!0}}return i},has(e,t){if(t===ue)return!0;var i=r.get(t),a=i!==void 0&&i.v!==n||Reflect.has(e,t);return(i!==void 0||q!==null&&(!a||u(e,t)?.writable))&&(i===void 0&&(i=l(()=>L(a?zt(e[t]):n,s)),r.set(t,i)),$(i)===n)?!1:a},set(e,t,i,c){var d=r.get(t),f=t in e;if(a&&t===`length`)for(var p=i;p<d.v;p+=1){var m=r.get(p+``);m===void 0?p in e&&(m=l(()=>L(n,s)),r.set(p+``,m)):R(m,n)}if(d===void 0)(!f||u(e,t)?.writable)&&(d=l(()=>L(void 0,s)),R(d,zt(i)),r.set(t,d));else{f=d.v!==n;var h=l(()=>zt(i));R(d,h)}var g=Reflect.getOwnPropertyDescriptor(e,t);if(g?.set&&g.set.call(c,i),!f){if(a&&typeof t==`string`){var _=r.get(`length`),v=Number(t);Number.isInteger(v)&&v>=_.v&&R(_,v+1)}Lt(o)}return!0},ownKeys(e){$(o);var t=Reflect.ownKeys(e).filter(e=>{var t=r.get(e);return t===void 0||t.v!==n});for(var[i,a]of r)a.v!==n&&!(i in e)&&t.push(i);return t},setPrototypeOf(){be()}})}var Bt,Vt,Ht,Ut;function Wt(){if(Bt===void 0){Bt=window,Vt=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Ht=u(t,`firstChild`).get,Ut=u(t,`nextSibling`).get,h(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),h(n)&&(n.__t=void 0)}}function z(e=``){return document.createTextNode(e)}function Gt(e){return Ht.call(e)}function B(e){return Ut.call(e)}function Kt(e,t){if(!T)return Gt(e);var n=Gt(D);if(n===null)n=D.appendChild(z());else if(t&&n.nodeType!==3){var r=z();return n?.before(r),O(r),r}return t&&Qt(n),O(n),n}function qt(e,t=!1){if(!T){var n=Gt(e);return n instanceof Comment&&n.data===``?B(n):n}if(t){if(D?.nodeType!==3){var r=z();return D?.before(r),O(r),r}Qt(D)}return D}function Jt(e,t=1,n=!1){let r=T?D:e;for(var i;t--;)i=r,r=B(r);if(!T)return r;if(n){if(r?.nodeType!==3){var a=z();return r===null?i?.after(a):r.before(a),O(a),a}Qt(r)}return O(r),r}function Yt(e){e.textContent=``}function Xt(){return!k||F!==null?!1:(q.f&C)!==0}function Zt(e,t,n){let r=n?{is:n}:void 0;return document.createElementNS(t??`http://www.w3.org/1999/xhtml`,e,r)}function Qt(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===3;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function $t(e,t,n,r=!0){r&&n();for(var i of t)e.addEventListener(i,n);rn(()=>{for(var r of t)e.removeEventListener(r,n)})}function en(e){var t=W,n=q;K(null),J(null);try{return e()}finally{K(t),J(n)}}function tn(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function V(e,t){var n=q;n!==null&&n.f&8192&&(e|=S);var r={ctx:A,deps:null,nodes:null,f:e|b|512,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null},i=r;if(e&4)et===null?it.ensure().schedule(r):et.push(r);else if(t!==null){try{zn(r)}catch(e){throw U(r),e}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&!(i.f&524288)&&(i=i.first,e&16&&e&65536&&i!==null&&(i.f|=ne))}if(i!==null&&(i.parent=n,n!==null&&tn(i,n),W!==null&&W.f&2&&!(e&64))){var a=W;(a.effects??=[]).push(i)}return r}function nn(){return W!==null&&!G}function rn(e){let t=V(8,null);return j(t,y),t.teardown=e,t}function an(e){return V(4|ie,e)}function on(e){it.ensure();let t=V(64|re,e);return()=>{U(t)}}function sn(e){it.ensure();let t=V(64|re,e);return(e={})=>new Promise(n=>{e.outro?vn(t,()=>{U(t),n(void 0)}):(U(t),n(void 0))})}function cn(e){return V(4,e)}function ln(e){return V(ce|re,e)}function un(e,t=0){return V(8|t,e)}function dn(e,t=[],n=[],r=[]){_t(r,t,n,t=>{V(8,()=>e(...t.map($)))})}function fn(e,t=0){return V(16|t,e)}function H(e){return V(32|re,e)}function pn(e){var t=e.teardown;if(t!==null){let e=Tn,n=W;En(!0),K(null);try{t.call(null)}finally{En(e),K(n)}}}function mn(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){let e=n.ac;e!==null&&en(()=>{e.abort(w)});var r=n.next;n.f&64?n.parent=null:U(n,t),n=r}}function hn(e){for(var t=e.first;t!==null;){var n=t.next;t.f&32||U(t),t=n}}function U(e,t=!0){var n=!1;(t||e.f&262144)&&e.nodes!==null&&e.nodes.end!==null&&(gn(e.nodes.start,e.nodes.end),n=!0),j(e,te),mn(e,t&&!n),Rn(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)e.stop();pn(e),e.f^=te,e.f|=ee;var i=e.parent;i!==null&&i.first!==null&&_n(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function gn(e,t){for(;e!==null;){var n=e===t?null:B(e);e.remove(),e=n}}function _n(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function vn(e,t,n=!0){var r=[];yn(e,r,!0);var i=()=>{n&&U(e),t&&t()},a=r.length;if(a>0){var o=()=>--a||i();for(var s of r)s.out(o)}else i()}function yn(e,t,n){if(!(e.f&8192)){e.f^=S;var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)(e.is_global||n)&&t.push(e);for(var i=e.first;i!==null;){var a=i.next,o=(i.f&65536)!=0||(i.f&32)!=0&&(e.f&16)!=0;yn(i,t,o?n:!1),i=a}}}function bn(e){xn(e,!0)}function xn(e,t){if(e.f&8192){e.f^=S,e.f&1024||(j(e,b),it.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&65536)!=0||(n.f&32)!=0;xn(n,i?t:!1),n=r}var a=e.nodes&&e.nodes.t;if(a!==null)for(let e of a)(e.is_global||t)&&e.in()}}function Sn(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:B(n);t.append(n),n=i}}var Cn=null,wn=!1,Tn=!1;function En(e){Tn=e}var W=null,G=!1;function K(e){W=e}var q=null;function J(e){q=e}var Y=null;function Dn(e){W!==null&&(!k||W.f&2)&&(Y===null?Y=[e]:Y.push(e))}var X=null,Z=0,Q=null;function On(e){Q=e}var kn=1,An=0,jn=An;function Mn(e){jn=e}function Nn(){return++kn}function Pn(e){var t=e.f;if(t&2048)return!0;if(t&2&&(e.f&=~oe),t&4096){for(var n=e.deps,r=n.length,i=0;i<r;i++){var a=n[i];if(Pn(a)&&Ot(a),a.wv>e.wv)return!0}t&512&&P===null&&j(e,y)}return!1}function Fn(e,t,n=!0){var r=e.reactions;if(r!==null&&!(!k&&Y!==null&&o.call(Y,e)))for(var i=0;i<r.length;i++){var a=r[i];a.f&2?Fn(a,t,!1):t===a&&(n?j(a,b):a.f&1024&&j(a,x),ut(a))}}function In(e){var t=X,n=Z,r=Q,i=W,a=Y,o=A,s=G,c=jn,l=e.f;X=null,Z=0,Q=null,W=l&96?null:e,Y=null,Pe(e.ctx),G=!1,jn=++An,e.ac!==null&&(en(()=>{e.ac.abort(w)}),e.ac=null);try{e.f|=se;var u=e.fn,d=u();e.f|=C;var f=e.deps,p=N?.is_fork;if(X!==null){var m;if(p||Rn(e,Z),f!==null&&Z>0)for(f.length=Z+X.length,m=0;m<X.length;m++)f[Z+m]=X[m];else e.deps=f=X;if(nn()&&e.f&512)for(m=Z;m<f.length;m++)(f[m].reactions??=[]).push(e)}else !p&&f!==null&&Z<f.length&&(Rn(e,Z),f.length=Z);if(Le()&&Q!==null&&!G&&f!==null&&!(e.f&6146))for(m=0;m<Q.length;m++)Fn(Q[m],e);if(i!==null&&i!==e){if(An++,i.deps!==null)for(let e=0;e<n;e+=1)i.deps[e].rv=An;if(t!==null)for(let e of t)e.rv=An;Q!==null&&(r===null?r=Q:r.push(...Q))}return e.f&8388608&&(e.f^=le),d}catch(e){return He(e)}finally{e.f^=se,X=t,Z=n,Q=r,W=i,Y=a,Pe(o),G=s,jn=c}}function Ln(e,t){let n=t.reactions;if(n!==null){var r=a.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}if(n===null&&t.f&2&&(X===null||!o.call(X,t))){var s=t;s.f&512&&(s.f^=512,s.f&=~oe),Ge(s),kt(s),Rn(s,0)}}function Rn(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Ln(e,n[r])}function zn(e){var t=e.f;if(!(t&16384)){j(e,y);var n=q,r=wn;q=e,wn=!0;try{t&16777232?hn(e):mn(e),pn(e);var i=In(e);e.teardown=typeof i==`function`?i:null,e.wv=kn}finally{wn=r,q=n}}}function $(e){var t=(e.f&2)!=0;if(Cn?.add(e),W!==null&&!G&&!(q!==null&&q.f&16384)&&(Y===null||!o.call(Y,e))){var n=W.deps;if(W.f&2097152)e.rv<An&&(e.rv=An,X===null&&n!==null&&n[Z]===e?Z++:X===null?X=[e]:X.push(e));else{(W.deps??=[]).push(e);var r=e.reactions;r===null?e.reactions=[W]:o.call(r,W)||r.push(W)}}if(Tn&&I.has(e))return I.get(e);if(t){var i=e;if(Tn){var a=i.v;return(!(i.f&1024)&&i.reactions!==null||Vn(i))&&(a=Dt(i)),I.set(i,a),a}var s=(i.f&512)==0&&!G&&W!==null&&(wn||(W.f&512)!=0),c=(i.f&C)===0;Pn(i)&&(s&&(i.f|=512),Ot(i)),s&&!c&&(At(i),Bn(i))}if(P?.has(e))return P.get(e);if(e.f&8388608)throw e.v;return e.v}function Bn(e){if(e.f|=512,e.deps!==null)for(let t of e.deps)(t.reactions??=[]).push(e),t.f&2&&!(t.f&512)&&(At(t),Bn(t))}function Vn(e){if(e.v===n)return!0;if(e.deps===null)return!1;for(let t of e.deps)if(I.has(t)||t.f&2&&Vn(t))return!0;return!1}function Hn(e){var t=G;try{return G=!0,e()}finally{G=t}}var Un=Symbol(`events`),Wn=new Set,Gn=new Set;function Kn(e,t,n){(t[Un]??={})[e]=n}function qn(e){for(var t=0;t<e.length;t++)Wn.add(e[t]);for(var n of Gn)n(e)}var Jn=null;function Yn(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],a=i[0]||e.target;Jn=e;var o=0,s=Jn===e&&e[Un];if(s){var c=i.indexOf(s);if(c!==-1&&(t===document||t===window)){e[Un]=t;return}var u=i.indexOf(t);if(u===-1)return;c<=u&&(o=c)}if(a=i[o]||e.target,a!==t){l(e,`currentTarget`,{configurable:!0,get(){return a||n}});var d=W,f=q;K(null),J(null);try{for(var p,m=[];a!==null;){var h=a.assignedSlot||a.parentNode||a.host||null;try{var g=a[Un]?.[r];g!=null&&(!a.disabled||e.target===a)&&g.call(a,e)}catch(e){p?m.push(e):p=e}if(e.cancelBubble||h===t||h===null)break;a=h}if(p){for(let e of m)queueMicrotask(()=>{throw e});throw p}}finally{e[Un]=t,delete e.currentTarget,K(d),J(f)}}}var Xn=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy(`svelte-trusted-html`,{createHTML:e=>e});function Zn(e){return Xn?.createHTML(e)??e}function Qn(e){var t=Zt(`template`);return t.innerHTML=Zn(e.replaceAll(`<!>`,`<!---->`)),t.content}function $n(e,t){var n=q;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function er(e,t){var n=(t&1)!=0,r=(t&2)!=0,i,a=!e.startsWith(`<!>`);return()=>{if(T)return $n(D,null),D;i===void 0&&(i=Qn(a?e:`<!>`+e),n||(i=Gt(i)));var t=r||Vt?document.importNode(i,!0):i.cloneNode(!0);if(n){var o=Gt(t),s=t.lastChild;$n(o,s)}else $n(t,t);return t}}function tr(){if(T)return $n(D,null),D;var e=document.createDocumentFragment(),t=document.createComment(``),n=z();return e.append(t,n),$n(t,n),e}function nr(e,t){if(T){var n=q;(!(n.f&32768)||n.nodes.end===null)&&(n.nodes.end=D),Te();return}e!==null&&e.before(t)}[...`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`.split(`.`)];var rr=[`touchstart`,`touchmove`];function ir(e){return rr.includes(e)}function ar(e,t){var n=t==null?``:typeof t==`object`?`${t}`:t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=`${n}`)}function or(e,t){return lr(e,t)}function sr(e,n){Wt(),n.intro=n.intro??!1;let r=n.target,i=T,a=D;try{for(var o=Gt(r);o&&(o.nodeType!==8||o.data!==`[`);)o=B(o);if(!o)throw t;E(!0),O(o);let i=lr(e,{...n,anchor:o});return E(!1),i}catch(i){if(i instanceof Error&&i.message.split(`
|
|
2
|
+
`).some(e=>e.startsWith(`https://svelte.dev/e/`)))throw i;return i!==t&&console.warn(`Failed to hydrate: `,i),n.recover===!1&&_e(),Wt(),Yt(r),E(!1),or(e,n)}finally{E(i),O(a)}}var cr=new Map;function lr(e,{target:n,anchor:r,props:i={},events:a,context:o,intro:c=!0,transformError:l}){Wt();var u=void 0,d=sn(()=>{var c=r??n.appendChild(z());ht(c,{pending:()=>{}},n=>{Fe({});var r=A;if(o&&(r.c=o),a&&(i.$$events=a),T&&$n(n,null),u=e(n,i)||{},T&&(q.nodes.end=D,D===null||D.nodeType!==8||D.data!==`]`))throw Ce(),t;Ie()},l);var d=new Set,f=e=>{for(var t=0;t<e.length;t++){var r=e[t];if(!d.has(r)){d.add(r);var i=ir(r);for(let e of[n,document]){var a=cr.get(e);a===void 0&&(a=new Map,cr.set(e,a));var o=a.get(r);o===void 0?(e.addEventListener(r,Yn,{passive:i}),a.set(r,1)):a.set(r,o+1)}}}};return f(s(Wn)),Gn.add(f),()=>{for(var e of d)for(let r of[n,document]){var t=cr.get(r),i=t.get(e);--i==0?(r.removeEventListener(e,Yn),t.delete(e),t.size===0&&cr.delete(r)):t.set(e,i)}Gn.delete(f),c!==r&&c.parentNode?.removeChild(c)}});return ur.set(u,d),u}var ur=new WeakMap;function dr(e,t){let n=ur.get(e);return n?(ur.delete(e),n(t)):Promise.resolve()}var fr=class{anchor;#e=new Map;#t=new Map;#n=new Map;#r=new Set;#i=!0;constructor(e,t=!0){this.anchor=e,this.#i=t}#a=e=>{if(this.#e.has(e)){var t=this.#e.get(e),n=this.#t.get(t);if(n)bn(n),this.#r.delete(t);else{var r=this.#n.get(t);r&&(this.#t.set(t,r.effect),this.#n.delete(t),r.fragment.lastChild.remove(),this.anchor.before(r.fragment),n=r.effect)}for(let[t,n]of this.#e){if(this.#e.delete(t),t===e)break;let r=this.#n.get(n);r&&(U(r.effect),this.#n.delete(n))}for(let[e,r]of this.#t){if(e===t||this.#r.has(e))continue;let i=()=>{if(Array.from(this.#e.values()).includes(e)){var t=document.createDocumentFragment();Sn(r,t),t.append(z()),this.#n.set(e,{effect:r,fragment:t})}else U(r);this.#r.delete(e),this.#t.delete(e)};this.#i||!n?(this.#r.add(e),vn(r,i,!1)):i()}}};#o=e=>{this.#e.delete(e);let t=Array.from(this.#e.values());for(let[e,n]of this.#n)t.includes(e)||(U(n.effect),this.#n.delete(e))};ensure(e,t){var n=N,r=Xt();if(t&&!this.#t.has(e)&&!this.#n.has(e))if(r){var i=document.createDocumentFragment(),a=z();i.append(a),this.#n.set(e,{effect:H(()=>t(a)),fragment:i})}else this.#t.set(e,H(()=>t(this.anchor)));if(this.#e.set(n,e),r){for(let[t,r]of this.#t)t===e?n.unskip_effect(r):n.skip_effect(r);for(let[t,r]of this.#n)t===e?n.unskip_effect(r.effect):n.skip_effect(r.effect);n.oncommit(this.#a),n.ondiscard(this.#o)}else T&&(this.anchor=D),this.#a(n)}};function pr(e,t,n=!1){var r;T&&(r=D,Te());var i=new fr(e),a=n?ne:0;function o(e,t){if(T){var n=ke(r);if(e!==parseInt(n.substring(1))){var a=Oe();O(a),i.anchor=a,E(!1),i.ensure(e,t),E(!0);return}}i.ensure(e,t)}fn(()=>{var e=!1;t((t,n=0)=>{e=!0,o(n,t)}),e||o(-1,null)},a)}function mr(e,t){return t}function hr(e,t,n){for(var r=[],i=t.length,a,o=t.length,c=0;c<i;c++){let n=t[c];vn(n,()=>{if(a){if(a.pending.delete(n),a.done.add(n),a.pending.size===0){var t=e.outrogroups;gr(e,s(a.done)),t.delete(a),t.size===0&&(e.outrogroups=null)}}else --o},!1)}if(o===0){var l=r.length===0&&n!==null;if(l){var u=n,d=u.parentNode;Yt(d),d.append(u),e.items.clear()}gr(e,t,!l)}else a={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(a)}function gr(e,t,n=!0){var r;if(e.pending.size>0){r=new Set;for(let t of e.pending.values())for(let n of t)r.add(e.items.get(n).e)}for(var i=0;i<t.length;i++){var a=t[i];r?.has(a)?(a.f|=ae,Sn(a,document.createDocumentFragment())):U(t[i],n)}}var _r;function vr(e,t,n,r,a,o=null){var c=e,l=new Map;if(t&4){var u=e;c=T?O(Gt(u)):u.appendChild(z())}T&&Te();var d=null,f=wt(()=>{var e=n();return i(e)?e:e==null?[]:s(e)}),p,m=new Map,h=!0;function g(e){v.effect.f&16384||(v.pending.delete(e),v.fallback=d,br(v,p,c,t,r),d!==null&&(p.length===0?d.f&33554432?(d.f^=ae,Sr(d,null,c)):bn(d):vn(d,()=>{d=null})))}function _(e){v.pending.delete(e)}var v={effect:fn(()=>{p=$(f);var e=p.length;let i=!1;T&&ke(c)===`[!`!=(e===0)&&(c=Oe(),O(c),E(!1),i=!0);for(var s=new Set,u=N,v=Xt(),y=0;y<e;y+=1){T&&D.nodeType===8&&D.data===`]`&&(c=D,i=!0,E(!1));var b=p[y],x=r(b,y),S=h?null:l.get(x);S?(S.v&&Ft(S.v,b),S.i&&Ft(S.i,y),v&&u.unskip_effect(S.e)):(S=xr(l,h?c:_r??=z(),b,x,y,a,t,n),h||(S.e.f|=ae),l.set(x,S)),s.add(x)}if(e===0&&o&&!d&&(h?d=H(()=>o(c)):(d=H(()=>o(_r??=z())),d.f|=ae)),e>s.size&&he(``,``,``),T&&e>0&&O(Oe()),!h)if(m.set(u,s),v){for(let[e,t]of l)s.has(e)||u.skip_effect(t.e);u.oncommit(g),u.ondiscard(_)}else g(u);i&&E(!0),$(f)}),flags:t,items:l,pending:m,outrogroups:null,fallback:d};h=!1,T&&(c=D)}function yr(e){for(;e!==null&&!(e.f&32);)e=e.next;return e}function br(e,t,n,r,i){var a=(r&8)!=0,o=t.length,c=e.items,l=yr(e.effect.first),u,d=null,f,p=[],m=[],h,g,_,v;if(a)for(v=0;v<o;v+=1)h=t[v],g=i(h,v),_=c.get(g).e,_.f&33554432||(_.nodes?.a?.measure(),(f??=new Set).add(_));for(v=0;v<o;v+=1){if(h=t[v],g=i(h,v),_=c.get(g).e,e.outrogroups!==null)for(let t of e.outrogroups)t.pending.delete(_),t.done.delete(_);if(_.f&8192&&(bn(_),a&&(_.nodes?.a?.unfix(),(f??=new Set).delete(_))),_.f&33554432)if(_.f^=ae,_===l)Sr(_,null,n);else{var y=d?d.next:l;_===e.effect.last&&(e.effect.last=_.prev),_.prev&&(_.prev.next=_.next),_.next&&(_.next.prev=_.prev),Cr(e,d,_),Cr(e,_,y),Sr(_,y,n),d=_,p=[],m=[],l=yr(d.next);continue}if(_!==l){if(u!==void 0&&u.has(_)){if(p.length<m.length){var b=m[0],x;d=b.prev;var S=p[0],ee=p[p.length-1];for(x=0;x<p.length;x+=1)Sr(p[x],b,n);for(x=0;x<m.length;x+=1)u.delete(m[x]);Cr(e,S.prev,ee.next),Cr(e,d,S),Cr(e,ee,b),l=b,d=ee,--v,p=[],m=[]}else u.delete(_),Sr(_,l,n),Cr(e,_.prev,_.next),Cr(e,_,d===null?e.effect.first:d.next),Cr(e,d,_),d=_;continue}for(p=[],m=[];l!==null&&l!==_;)(u??=new Set).add(l),m.push(l),l=yr(l.next);if(l===null)continue}_.f&33554432||p.push(_),d=_,l=yr(_.next)}if(e.outrogroups!==null){for(let t of e.outrogroups)t.pending.size===0&&(gr(e,s(t.done)),e.outrogroups?.delete(t));e.outrogroups.size===0&&(e.outrogroups=null)}if(l!==null||u!==void 0){var C=[];if(u!==void 0)for(_ of u)_.f&8192||C.push(_);for(;l!==null;)!(l.f&8192)&&l!==e.fallback&&C.push(l),l=yr(l.next);var te=C.length;if(te>0){var ne=r&4&&o===0?n:null;if(a){for(v=0;v<te;v+=1)C[v].nodes?.a?.measure();for(v=0;v<te;v+=1)C[v].nodes?.a?.fix()}hr(e,C,ne)}}a&&Be(()=>{if(f!==void 0)for(_ of f)_.nodes?.a?.apply()})}function xr(e,t,n,r,i,a,o,s){var c=o&1?o&16?Nt(n):Pt(n,!1,!1):null,l=o&2?Nt(i):null;return{v:c,i:l,e:H(()=>(a(t,c??n,l??i,s),()=>{e.delete(r)}))}}function Sr(e,t,n){if(e.nodes)for(var r=e.nodes.start,i=e.nodes.end,a=t&&!(t.f&33554432)?t.nodes.start:n;r!==null;){var o=B(r);if(a.before(r),r===i)return;r=o}}function Cr(e,t,n){t===null?e.effect.first=n:t.next=n,n===null?e.effect.last=t:n.prev=t}function wr(e,t){cn(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector(`#`+t.hash)){let e=Zt(`style`);e.id=t.hash,e.textContent=t.code,r.appendChild(e)}})}var Tr=[...`
|
|
3
|
+
\r\f\xA0\v`];function Er(e,t,n){var r=e==null?``:``+e;if(t&&(r=r?r+` `+t:t),n){for(var i of Object.keys(n))if(n[i])r=r?r+` `+i:i;else if(r.length)for(var a=i.length,o=0;(o=r.indexOf(i,o))>=0;){var s=o+a;(o===0||Tr.includes(r[o-1]))&&(s===r.length||Tr.includes(r[s]))?r=(o===0?``:r.substring(0,o))+r.substring(s+1):o=s}}return r===``?null:r}function Dr(e,t=!1){var n=t?` !important;`:`;`,r=``;for(var i of Object.keys(e)){var a=e[i];a!=null&&a!==``&&(r+=` `+i+`: `+a+n)}return r}function Or(e){return e[0]!==`-`||e[1]!==`-`?e.toLowerCase():e}function kr(e,t){if(t){var n=``,r,i;if(Array.isArray(t)?(r=t[0],i=t[1]):r=t,e){e=String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g,``).trim();var a=!1,o=0,s=!1,c=[];r&&c.push(...Object.keys(r).map(Or)),i&&c.push(...Object.keys(i).map(Or));var l=0,u=-1;let t=e.length;for(var d=0;d<t;d++){var f=e[d];if(s?f===`/`&&e[d-1]===`*`&&(s=!1):a?a===f&&(a=!1):f===`/`&&e[d+1]===`*`?s=!0:f===`"`||f===`'`?a=f:f===`(`?o++:f===`)`&&o--,!s&&a===!1&&o===0){if(f===`:`&&u===-1)u=d;else if(f===`;`||d===t-1){if(u!==-1){var p=Or(e.substring(l,u).trim());if(!c.includes(p)){f!==`;`&&d++;var m=e.substring(l,d).trim();n+=` `+m+`;`}}l=d+1,u=-1}}}}return r&&(n+=Dr(r)),i&&(n+=Dr(i,!0)),n=n.trim(),n===``?null:n}return e==null?null:String(e)}function Ar(e,t,n,r,i,a){var o=e.__className;if(T||o!==n||o===void 0){var s=Er(n,r,a);(!T||s!==e.getAttribute(`class`))&&(s==null?e.removeAttribute(`class`):t?e.className=s:e.setAttribute(`class`,s)),e.__className=n}else if(a&&i!==a)for(var c in a){var l=!!a[c];(i==null||l!==!!i[c])&&e.classList.toggle(c,l)}return a}function jr(e,t={},n,r){for(var i in n){var a=n[i];t[i]!==a&&(n[i]==null?e.style.removeProperty(i):e.style.setProperty(i,a,r))}}function Mr(e,t,n,r){var i=e.__style;if(T||i!==t){var a=kr(t,r);(!T||a!==e.getAttribute(`style`))&&(a==null?e.removeAttribute(`style`):e.style.cssText=a),e.__style=t}else r&&(Array.isArray(r)?(jr(e,n?.[0],r[0]),jr(e,n?.[1],r[1],`important`)):jr(e,n,r));return r}var Nr=Symbol(`is custom element`),Pr=Symbol(`is html`),Fr=pe?`link`:`LINK`;function Ir(e,t,n,r){var i=Lr(e);T&&(i[t]=e.getAttribute(t),t===`src`||t===`srcset`||t===`href`&&e.nodeName===Fr)||i[t]!==(i[t]=n)&&(t===`loading`&&(e[fe]=n),n==null?e.removeAttribute(t):typeof n!=`string`&&zr(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function Lr(e){return e.__attributes??={[Nr]:e.nodeName.includes(`-`),[Pr]:e.namespaceURI===r}}var Rr=new Map;function zr(e){var t=e.getAttribute(`is`)||e.nodeName,n=Rr.get(t);if(n)return n;Rr.set(t,n=[]);for(var r,i=e,a=Element.prototype;a!==i;){for(var o in r=d(i),r)r[o].set&&n.push(o);i=m(i)}return n}function Br(e,t){$t(window,[`resize`],()=>en(()=>t(window[e])))}function Vr(e,t,n,r){var i=!Ne||(n&2)!=0,a=(n&8)!=0,o=(n&16)!=0,s=r,c=!0,l=()=>(c&&(c=!1,s=o?Hn(r):r),s);let d;if(a){var f=ue in e||de in e;d=u(e,t)?.set??(f&&t in e?n=>e[t]=n:void 0)}var p,m=!1;a?[p,m]=Xe(()=>e[t]):p=e[t],p===void 0&&r!==void 0&&(p=l(),d&&(i&&ve(t),d(p)));var h=i?()=>{var n=e[t];return n===void 0?l():(c=!0,n)}:()=>{var n=e[t];return n!==void 0&&(s=void 0),n===void 0?s:n};if(i&&!(n&4))return h;if(d){var g=e.$$legacy;return(function(e,t){return arguments.length>0?((!i||!t||g||m)&&d(t?h():e),e):h()})}var _=!1,v=(n&1?xt:wt)(()=>(_=!1,h()));a&&$(v);var y=q;return(function(e,t){if(arguments.length>0){let n=t?$(v):i&&a?zt(e):e;return R(v,n),_=!0,s!==void 0&&(s=n),e}return Tn&&_||y.f&16384?v.v:$(v)})}function Hr(e){return new Ur(e)}var Ur=class{#e;#t;constructor(e){var t=new Map,n=(e,n)=>{var r=Pt(n,!1,!1);return t.set(e,r),r};let r=new Proxy({...e.props||{},$$events:{}},{get(e,r){return $(t.get(r)??n(r,Reflect.get(e,r)))},has(e,r){return r===de?!0:($(t.get(r)??n(r,Reflect.get(e,r))),Reflect.has(e,r))},set(e,r,i){return R(t.get(r)??n(r,i),i),Reflect.set(e,r,i)}});this.#t=(e.hydrate?sr:or)(e.component,{target:e.target,anchor:e.anchor,props:r,context:e.context,intro:e.intro??!1,recover:e.recover,transformError:e.transformError}),!k&&(!e?.props?.$$host||e.sync===!1)&&at(),this.#e=r.$$events;for(let e of Object.keys(this.#t))e===`$set`||e===`$destroy`||e===`$on`||l(this,e,{get(){return this.#t[e]},set(t){this.#t[e]=t},enumerable:!0});this.#t.$set=e=>{Object.assign(r,e)},this.#t.$destroy=()=>{dr(this.#t)}}$set(e){this.#t.$set(e)}$on(e,t){this.#e[e]=this.#e[e]||[];let n=(...e)=>t.call(this,...e);return this.#e[e].push(n),()=>{this.#e[e]=this.#e[e].filter(e=>e!==n)}}$destroy(){this.#t.$destroy()}},Wr;typeof HTMLElement==`function`&&(Wr=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&(this.$$shadowRoot=this.attachShadow(n))}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){let n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){let e=this.$$l_u.get(t);e&&(e(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){if(await Promise.resolve(),!this.$$cn||this.$$c)return;function e(e){return t=>{let n=Zt(`slot`);e!==`default`&&(n.name=e),nr(t,n)}}let t={},n=Kr(this);for(let r of this.$$s)r in n&&(r===`default`&&!this.$$d.children?(this.$$d.children=e(r),t.default=!0):t[r]=e(r));for(let e of this.attributes){let t=this.$$g_p(e.name);t in this.$$d||(this.$$d[t]=Gr(t,e.value,this.$$p_d,`toProp`))}for(let e in this.$$p_d)!(e in this.$$d)&&this[e]!==void 0&&(this.$$d[e]=this[e],delete this[e]);this.$$c=Hr({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=on(()=>{un(()=>{this.$$r=!0;for(let e of c(this.$$c)){if(!this.$$p_d[e]?.reflect)continue;this.$$d[e]=this.$$c[e];let t=Gr(e,this.$$d[e],this.$$p_d,`toAttribute`);t==null?this.removeAttribute(this.$$p_d[e].attribute||e):this.setAttribute(this.$$p_d[e].attribute||e,t)}this.$$r=!1})});for(let e in this.$$l)for(let t of this.$$l[e]){let n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=Gr(e,n,this.$$p_d,`toProp`),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return c(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Gr(e,t,n,r){let i=n[e]?.type;if(t=i===`Boolean`&&typeof t!=`boolean`?t!=null:t,!r||!n[e])return t;if(r===`toAttribute`)switch(i){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(i){case`Object`:case`Array`:return t&&JSON.parse(t);case`Boolean`:return t;case`Number`:return t==null?t:+t;default:return t}}function Kr(e){let t={};return e.childNodes.forEach(e=>{t[e.slot||`default`]=!0}),t}function qr(e,t,n,r,i,a){let o=class extends Wr{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return c(t).map(e=>(t[e].attribute||e).toLowerCase())}};return c(t).forEach(e=>{l(o.prototype,e,{get(){return this.$$c&&e in this.$$c?this.$$c[e]:this.$$d[e]},set(n){n=Gr(e,n,t),this.$$d[e]=n;var r=this.$$c;r&&(u(r,e)?.get?r[e]=n:r.$set({[e]:n}))}})}),r.forEach(e=>{l(o.prototype,e,{get(){return this.$$c?.[e]}})}),a&&(o=a(o)),e.element=o,o}var Jr=er(`<div part="item"><div class="collection_item_image svelte-16chsc"><img part="image" class="svelte-16chsc"/></div> <div class="collection_item_text svelte-16chsc"><h3 part="title" class="svelte-16chsc"> </h3> <p part="text" class="svelte-16chsc"> </p></div></div>`),Yr=er(`<div id="collection_container" part="container" class="svelte-16chsc"></div>`),Xr={hash:`svelte-16chsc`,code:`@charset "UTF-8";
|
|
3
4
|
/*!
|
|
4
5
|
* Bulma 1.x (Sass) for hb-vertical-img-txt-archive — :host theme tokens only (grid archive layout is custom CSS).
|
|
5
6
|
*/
|
|
@@ -32,5 +33,5 @@
|
|
|
32
33
|
* Load after Bulma theme in the component style block so \`--bulma-*\` tokens apply.
|
|
33
34
|
*/:host {box-sizing:border-box;max-width:100%;font-family:var(--bulma-family-primary, "Inter", "Segoe UI", "Roboto", "Helvetica Neue", "Arial", sans-serif);}.svelte-16chsc,
|
|
34
35
|
.svelte-16chsc::before,
|
|
35
|
-
.svelte-16chsc::after {box-sizing:inherit;}:host {display:block;min-width:0;}#collection_container.svelte-16chsc {display:grid;justify-content:space-between;gap:var(--bulma-block-spacing, 1.25rem);min-width:0;}.collection_item.svelte-16chsc {max-width:100%;min-width:0;}.collection_item_image.svelte-16chsc {overflow:hidden;border-radius:var(--bulma-radius, 0.25rem);}.collection_item_text.svelte-16chsc {margin-block-start:var(--bulma-column-gap, 0.75rem);}.collection_item_text.svelte-16chsc h3:where(.svelte-16chsc) {margin:0 0 var(--bulma-column-gap, 0.5rem);font-size:var(--bulma-size-5, 1.25rem);}.collection_item_text.svelte-16chsc p:where(.svelte-16chsc) {margin:0;line-height:var(--bulma-line-height-main, 1.5);color:var(--bulma-text, #4a4a4a);}img.svelte-16chsc {width:100%;height:100%;object-fit:cover;vertical-align:middle;}`};function
|
|
36
|
+
.svelte-16chsc::after {box-sizing:inherit;}:host {display:block;min-width:0;}#collection_container.svelte-16chsc {display:grid;justify-content:space-between;gap:var(--bulma-block-spacing, 1.25rem);min-width:0;}.collection_item.svelte-16chsc {max-width:100%;min-width:0;}.collection_item--clickable.svelte-16chsc {cursor:pointer;}.collection_item_image.svelte-16chsc {overflow:hidden;border-radius:var(--bulma-radius, 0.25rem);}.collection_item_text.svelte-16chsc {margin-block-start:var(--bulma-column-gap, 0.75rem);}.collection_item_text.svelte-16chsc h3:where(.svelte-16chsc) {margin:0 0 var(--bulma-column-gap, 0.5rem);font-size:var(--bulma-size-5, 1.25rem);}.collection_item_text.svelte-16chsc p:where(.svelte-16chsc) {margin:0;line-height:var(--bulma-line-height-main, 1.5);color:var(--bulma-text, #4a4a4a);}img.svelte-16chsc {width:100%;height:100%;object-fit:cover;vertical-align:middle;}`};function Zr(e,t){Fe(t,!0),wr(e,Xr);function n(e,n){t.$$host.dispatchEvent(new CustomEvent(e,{detail:n}))}let r=Vr(t,`id`,7,``),i=Vr(t,`collection`,7),a=L(0),o=Ct(()=>{let e=i();if(e==null)return[];if(typeof e==`string`){let t=e.trim();if(!t)return[];try{e=JSON.parse(t)}catch(e){return console.error(`error parsing collection`,e),[]}}return!Array.isArray(e)||e.length===0?[]:e}),s=Ct(()=>{let e=$(o);if(!e.length)return 5;let t=Math.round($(a)/250);return t<e.length?t:e.length});function c(e){e.link&&(n(`collectionItemClick`,{uri:e.link.uri,link_type:e.link.type}),e.link.type===`tab`?window.open(e.link.uri,`_blank`,`noopener,noreferrer`):e.link.type===`page`&&(window.location.href=e.link.uri))}var l={get id(){return r()},set id(e=``){r(e),at()},get collection(){return i()},set collection(e){i(e),at()}},u=tr(),d=qt(u),f=e=>{var t=Yr();vr(t,21,()=>$(o),mr,(e,t)=>{var n=Jr();let r;var i=Kt(n),a=Kt(i);Ee(i);var o=Jt(i,2),s=Kt(o),l=Kt(s,!0);Ee(s);var u=Jt(s,2),d=Kt(u,!0);Ee(u),Ee(o),Ee(n),dn(()=>{r=Ar(n,1,`collection_item svelte-16chsc`,null,r,{"collection_item--clickable":!!$(t).link}),Ir(a,`src`,$(t).image),Ir(a,`alt`,$(t).title),ar(l,$(t).title),ar(d,$(t).text)}),Kn(`click`,n,()=>c($(t))),nr(e,n)}),Ee(t),dn(()=>Mr(t,`grid-template-columns: repeat(${$(s)??``}, auto)`)),nr(e,t)};return pr(d,e=>{$(o).length&&e(f)}),Br(`innerWidth`,e=>R(a,e,!0)),nr(e,u),Ie(l)}qn([`click`]),customElements.define(`hb-vertical-img-txt-archive`,qr(Zr,{id:{},collection:{}},[],[],{mode:`open`})),e.Component=Zr})(this[`vertical-img-txt-archive`]=this[`vertical-img-txt-archive`]||{});
|
|
36
37
|
//# sourceMappingURL=main.iife.js.map
|