@htmlbricks/hb-dialogform 0.71.35 → 0.71.36
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 +129 -38
- package/main.iife.js +1 -1
- package/main.iife.js.map +1 -1
- package/manifest.json +42 -10
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,53 +1,117 @@
|
|
|
1
|
-
|
|
1
|
+
# `hb-dialogform`
|
|
2
2
|
|
|
3
|
-
**Category:** forms
|
|
3
|
+
**Category:** forms · **Tags:** forms, overlays
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Bulma-style modal that composes **`hb-dialog`** with an embedded **`hb-form`**. You drive the fields with the same **`schema`** contract as `hb-form` (JSON array of field definitions). The inner form’s submit control is hidden; the dialog’s **Confirm** acts as submit when the form is valid.
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
---
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
## What it does
|
|
10
|
+
|
|
11
|
+
- Opens and closes like a normal `hb-dialog` via the `show` attribute (`"yes"` / `"no"`).
|
|
12
|
+
- Renders `hb-form` with `hide_submit="yes"` so only the dialog footer buttons apply.
|
|
13
|
+
- Forwards **`updateForm`** events from the inner form with the same **`detail`** shape as `hb-form`’s **`update`** event (live values and **`_valid`**).
|
|
14
|
+
- **Confirm:** if the last form update was valid, dispatches **`modalFormConfirm`** with a payload derived from that update (field values plus metadata; see [Events](#events)).
|
|
15
|
+
- **Cancel / invalid confirm:** dispatches **`modalFormCancel`** with `{ id, error? }` (see [Events](#events)).
|
|
16
|
+
- Re-dispatches **`modalShow`** when the inner dialog reports open/close (`{ id, show }`).
|
|
17
|
+
- **Confirm** is disabled on the inner dialog until the form reports valid (`disable_confirm`).
|
|
18
|
+
|
|
19
|
+
Nested **`hb-dialog`** and **`hb-form`** are registered at runtime (`addComponent`) using the same package version as the host.
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
## Custom element
|
|
10
24
|
|
|
11
25
|
`hb-dialogform`
|
|
12
26
|
|
|
13
|
-
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
## Attributes and properties
|
|
30
|
+
|
|
31
|
+
Web component **attributes** are strings. Use **`yes`** / **`no`** for boolean-like flags where noted; the implementation also accepts `"true"` for **`backdrop`** and **`keyboard`** when they arrive as strings.
|
|
32
|
+
|
|
33
|
+
| Name | Required | Type / values | Description |
|
|
34
|
+
| --- | --- | --- | --- |
|
|
35
|
+
| `schema` | **yes** | JSON string (array) | Same **`schema`** shape as **`hb-form`**: array of field objects (`type`, `id`, `label`, `value`, …). From HTML, pass a **JSON string**. If the array is empty, no **`hb-form`** block is rendered. |
|
|
36
|
+
| `show` | no | `"yes"` \| `"no"` | Controls modal visibility. Empty string is treated like **`yes`**. Default **`no`**. |
|
|
37
|
+
| `id` | no | string | Host id; forwarded into the inner dialog id suffix (`id + "_modalform"` or a generated fallback). Included on **`modalFormCancel`** / merged into confirm payload as **`_id`**. |
|
|
38
|
+
| `title` | no | string | Dialog title (inner **`hb-dialog`**). |
|
|
39
|
+
| `content` | no | string | Supplemental content prop on inner **`hb-dialog`**. |
|
|
40
|
+
| `closelabel` | no | string | Close button label. |
|
|
41
|
+
| `confirmlabel` | no | string | Confirm button label. |
|
|
42
|
+
| `backdrop` | no | boolean or string | Coerced in the host script for string attributes (`"true"` / **`yes`** → true). **Not** passed to **`hb-dialog`** in the current markup, so the inner dialog keeps its own defaults. |
|
|
43
|
+
| `keyboard` | no | boolean or string | Same coercion as **`backdrop`**. **Not** passed to **`hb-dialog`** in the current markup. |
|
|
44
|
+
| `describedby` | no | string | **Not** passed to **`hb-dialog`** in the current markup. |
|
|
45
|
+
| `labelledby` | no | string | **Not** passed to **`hb-dialog`** in the current markup. |
|
|
46
|
+
| `dialogclasses` | no | string | Present in typings; **not** applied to the dialog in the current template. |
|
|
47
|
+
| `style` | no | string | Present in typings; **not** used by the current implementation (commented in source). |
|
|
48
|
+
|
|
49
|
+
For field definitions and validation, follow **`hb-form`** documentation and the form schema types under `builder/src/wc/form/types/`.
|
|
50
|
+
|
|
51
|
+
---
|
|
14
52
|
|
|
15
|
-
|
|
53
|
+
## Slots
|
|
54
|
+
|
|
55
|
+
| Slot | Role |
|
|
56
|
+
| --- | --- |
|
|
57
|
+
| `form-header` | Optional content **above** **`hb-form`** inside the modal body. |
|
|
58
|
+
| `form-footer` | Optional content **below** **`hb-form`** inside the modal body. |
|
|
59
|
+
| `header` | If set, forwarded to **`hb-dialog`** **`header`** (replaces default modal head). |
|
|
60
|
+
| `modal-footer` | If set, forwarded to **`hb-dialog`** **`modal-footer`** (replaces entire footer region). |
|
|
61
|
+
| `footer` | If set, forwarded to **`hb-dialog`** **`footer`** (default footer slot / button row). |
|
|
62
|
+
| `close-button-label` | Forwarded to **`hb-dialog`** for the close control label. |
|
|
63
|
+
| `confirm-button-label` | Forwarded to **`hb-dialog`** for the confirm control label. |
|
|
64
|
+
|
|
65
|
+
---
|
|
66
|
+
|
|
67
|
+
## CSS custom properties
|
|
68
|
+
|
|
69
|
+
Set these on **`hb-dialogform`** (or ensure they inherit) to tune layout; they are intended to align with nested **`hb-dialog`** / **`hb-form`** theming.
|
|
70
|
+
|
|
71
|
+
| Variable | Default (from metadata) | Description |
|
|
16
72
|
| --- | --- | --- |
|
|
17
|
-
| `
|
|
18
|
-
| `
|
|
19
|
-
| `
|
|
20
|
-
| `
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
73
|
+
| `--hb-modal-max-width` | `40rem` | Max width of the inner dialog card. |
|
|
74
|
+
| `--bulma-modal-card-head-padding` | `1rem 1.25rem` | Modal header padding (inner dialog). |
|
|
75
|
+
| `--bulma-modal-card-body-padding` | `1rem 1.25rem` | Modal body padding around the form area. |
|
|
76
|
+
| `--bulma-column-gap` | `0.75rem` | Column gap used by nested **`hb-form`** field layout. |
|
|
77
|
+
|
|
78
|
+
Additional **`--bulma-*`** variables from Bulma / **`hb-dialog`** / **`hb-form`** may apply depending on your theme setup.
|
|
79
|
+
|
|
80
|
+
### CSS parts
|
|
81
|
+
|
|
82
|
+
None exposed on this host (`styleSetup.parts` is empty).
|
|
83
|
+
|
|
84
|
+
---
|
|
85
|
+
|
|
86
|
+
## Events
|
|
87
|
+
|
|
88
|
+
All events are **`CustomEvent`** instances dispatched from the **`hb-dialogform`** host.
|
|
89
|
+
|
|
90
|
+
| Event | `detail` shape | When |
|
|
91
|
+
| --- | --- | --- |
|
|
92
|
+
| `updateForm` | Same as **`hb-form`** **`update`**: `{ _valid: boolean; _id: string; …values }` | On every inner form update (validity and field values). |
|
|
93
|
+
| `modalShow` | `{ id: string; show: boolean }` | When the inner modal opens or closes (re-dispatched from **`hb-dialog`**). |
|
|
94
|
+
| `modalFormConfirm` | Object: last valid **`update`**-like map plus host **`_id`** | User confirms and the form was valid (`_valid` true on the stored payload). |
|
|
95
|
+
| `modalFormCancel` | `{ id: string; error?: string }` | User cancels confirm, or confirm while invalid / missing values (`error` may be `"invalid form"`). |
|
|
96
|
+
|
|
97
|
+
**Confirm payload:** The implementation stores the latest **`update`** detail, clears **`_id`** on the copy, then assigns **`_id`** to the host’s **`id`** before dispatching **`modalFormConfirm`**.
|
|
98
|
+
|
|
99
|
+
---
|
|
100
|
+
|
|
101
|
+
## Usage notes
|
|
102
|
+
|
|
103
|
+
- **`schema`** from HTML must be a **single JSON string** representing an array (escape quotes as needed).
|
|
104
|
+
- Track **`updateForm`** to reflect validity in your own UI if the dialog is not the only feedback channel.
|
|
105
|
+
- Prefer **`yes`** / **`no`** for boolean attributes on custom elements for consistency with this codebase; inner dialogs may still default **`backdrop`** / **`keyboard`** until host props are wired through.
|
|
106
|
+
- This package does not define **`i18n`** language entries in metadata; labels come from attributes and slots.
|
|
107
|
+
|
|
108
|
+
---
|
|
109
|
+
|
|
110
|
+
## HTML example
|
|
48
111
|
|
|
49
112
|
```html
|
|
50
113
|
<hb-dialogform
|
|
114
|
+
id="profile-editor"
|
|
51
115
|
show="yes"
|
|
52
116
|
title="Edit profile"
|
|
53
117
|
schema='[{"type":"text","id":"name","label":"Name","required":true,"value":""}]'
|
|
@@ -55,3 +119,30 @@ Modal that embeds `hb-form` with the same `schema` contract: live form updates m
|
|
|
55
119
|
closelabel="Cancel"
|
|
56
120
|
></hb-dialogform>
|
|
57
121
|
```
|
|
122
|
+
|
|
123
|
+
```html
|
|
124
|
+
<script>
|
|
125
|
+
const el = document.querySelector("hb-dialogform");
|
|
126
|
+
el.addEventListener("updateForm", (e) => {
|
|
127
|
+
console.log("valid:", e.detail._valid, "values:", e.detail);
|
|
128
|
+
});
|
|
129
|
+
el.addEventListener("modalFormConfirm", (e) => {
|
|
130
|
+
console.log("confirmed:", e.detail);
|
|
131
|
+
});
|
|
132
|
+
el.addEventListener("modalFormCancel", (e) => {
|
|
133
|
+
console.log("cancelled:", e.detail);
|
|
134
|
+
});
|
|
135
|
+
el.addEventListener("modalShow", (e) => {
|
|
136
|
+
console.log("modal:", e.detail.show);
|
|
137
|
+
});
|
|
138
|
+
</script>
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
---
|
|
142
|
+
|
|
143
|
+
## Related components
|
|
144
|
+
|
|
145
|
+
- **`hb-dialog`** — modal chrome, footer buttons, **`modalShow`** / **`modalConfirm`**.
|
|
146
|
+
- **`hb-form`** — **`schema`**, **`update`**, validation, and field types.
|
|
147
|
+
|
|
148
|
+
Package name in metadata: **`@htmlbricks/hb-dialogform`**.
|
package/main.iife.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
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,ee=4096,te=8192,x=16384,ne=32768,re=1<<25,ie=65536,ae=1<<19,oe=1<<20,se=65536,ce=1<<21,le=1<<22,ue=1<<23,de=Symbol(`$state`),fe=Symbol(`legacy props`),pe=Symbol(``),S=new class extends Error{name=`StaleReactionError`;message="The reaction that called `getAbortSignal()` was re-run or destroyed"},me=!!globalThis.document?.contentType&&globalThis.document.contentType.includes(`xml`);function he(){throw Error(`https://svelte.dev/e/async_derived_orphan`)}function ge(e){throw Error(`https://svelte.dev/e/effect_in_teardown`)}function _e(){throw Error(`https://svelte.dev/e/effect_in_unowned_derived`)}function ve(e){throw Error(`https://svelte.dev/e/effect_orphan`)}function ye(){throw Error(`https://svelte.dev/e/effect_update_depth_exceeded`)}function be(){throw Error(`https://svelte.dev/e/hydration_failed`)}function xe(e){throw Error(`https://svelte.dev/e/props_invalid_value`)}function Se(){throw Error(`https://svelte.dev/e/state_descriptors_fixed`)}function Ce(){throw Error(`https://svelte.dev/e/state_prototype_fixed`)}function we(){throw Error(`https://svelte.dev/e/state_unsafe_mutation`)}function Te(){throw Error(`https://svelte.dev/e/svelte_boundary_reset_onerror`)}function Ee(e){console.warn(`https://svelte.dev/e/hydration_mismatch`)}function De(){console.warn(`https://svelte.dev/e/svelte_boundary_reset_noop`)}var C=!1;function Oe(e){C=e}var w;function T(e){if(e===null)throw Ee(),t;return w=e}function ke(){return T(L(w))}function E(e){if(C){if(L(w)!==null)throw Ee(),t;w=e}}function Ae(e=1){if(C){for(var t=e,n=w;t--;)n=L(n);w=n}}function je(e=!0){for(var t=0,n=w;;){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=L(n);e&&n.remove(),n=i}}function Me(e){if(!e||e.nodeType!==8)throw Ee(),t;return e.data}function Ne(e){return e===this.v}function Pe(e,t){return e==e?e!==t||typeof e==`object`&&!!e||typeof e==`function`:t==t}function Fe(e){return!Pe(e,this.v)}var Ie=!1,Le=!1,D=null;function Re(e){D=e}function ze(e,t=!1,n){D={p:D,i:!1,c:null,e:null,s:e,x:null,r:G,l:Le&&!t?{s:null,u:null,$:[]}:null}}function Be(e){var t=D,n=t.e;if(n!==null){t.e=null;for(var r of n)sn(r)}return e!==void 0&&(t.x=e),t.i=!0,D=t.p,e??{}}function Ve(){return!Le||D!==null&&D.l===null}var He=[];function Ue(){var e=He;He=[],_(e)}function We(e){if(He.length===0&&!nt){var t=He;queueMicrotask(()=>{t===He&&Ue()})}He.push(e)}function Ge(){for(;He.length>0;)Ue()}function Ke(e){var t=G;if(t===null)return H.f|=ue,e;if(!(t.f&32768)&&!(t.f&4))throw e;qe(e,t)}function qe(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 Je=~(b|ee|y);function O(e,t){e.f=e.f&Je|t}function Ye(e){e.f&512||e.deps===null?O(e,y):O(e,ee)}function Xe(e){if(e!==null)for(let t of e)!(t.f&2)||!(t.f&65536)||(t.f^=se,Xe(t.deps))}function Ze(e,t,n){e.f&2048?t.add(e):e.f&4096&&n.add(e),Xe(e.deps),O(e,y)}var Qe=!1,$e=!1;function et(e){var t=$e;try{return $e=!1,[e(),$e]}finally{$e=t}}var k=new Set,A=null,j=null,tt=null,nt=!1,rt=!1,it=null,at=null,ot=0,st=1,ct=class e{id=st++;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)O(n,b),this.schedule(n);for(n of t.m)O(n,ee),this.schedule(n)}}#p(){if(ot++>1e3&&(k.delete(this),lt()),!this.#d()){for(let e of this.#o)this.#s.delete(e),O(e,b),this.schedule(e);for(let e of this.#s)O(e,ee),this.schedule(e)}let t=this.#a;this.#a=[],this.apply();var n=it=[],r=[],i=at=[];for(let e of t)try{this.#m(e,n,r)}catch(t){throw ht(e),t}if(A=null,i.length>0){var a=e.ensure();for(let e of i)a.schedule(e)}if(it=null,at=null,this.#d()||this.#f()){this.#h(r),this.#h(n);for(let[e,t]of this.#c)mt(e,t)}else{this.#n.size===0&&k.delete(this),this.#o.clear(),this.#s.clear();for(let e of this.#e)e(this);this.#e.clear(),ut(r),ut(n),this.#i?.resolve()}var o=A;if(this.#a.length>0){let e=o??=this;e.#a.push(...this.#a.filter(t=>!e.#a.includes(t)))}o!==null&&(k.add(o),o.#p()),k.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):Ie&&i&16777224?n.push(r):In(r)&&(i&16&&this.#s.add(r),Vn(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)Ze(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]),j?.set(e,e.v))}activate(){A=this}deactivate(){A=null,j=null}flush(){try{rt=!0,A=this,this.#p()}finally{ot=0,tt=null,it=null,at=null,rt=!1,A=null,j=null,P.clear()}}discard(){for(let e of this.#t)e(this);this.#t.clear(),k.delete(this)}#g(){for(let c of k){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)dt(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 k)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,We(()=>{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(A===null){let t=A=new e;rt||(k.add(A),nt||We(()=>{A===t&&t.flush()}))}return A}apply(){if(!Ie||!this.is_fork&&k.size===1){j=null;return}j=new Map;for(let[e,[t]]of this.current)j.set(e,t);for(let n of k)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)j.has(e)||j.set(e,t)}}schedule(e){if(tt=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(it!==null&&t===G&&(Ie||(H===null||!(H.f&2))&&!Qe))return;if(n&96){if(!(n&1024))return;t.f^=y}}this.#a.push(t)}};function M(e){var t=nt;nt=!0;try{var n;for(e&&(A!==null&&!A.is_fork&&A.flush(),n=e());;){if(Ge(),A===null)return n;A.flush()}}finally{nt=t}}function lt(){try{ye()}catch(e){qe(e,tt)}}var N=null;function ut(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if(!(r.f&24576)&&In(r)&&(N=new Set,Vn(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&yn(r),N?.size>0)){P.clear();for(let e of N){if(e.f&24576)continue;let t=[e],n=e.parent;for(;n!==null;)N.has(n)&&(N.delete(n),t.push(n)),n=n.parent;for(let e=t.length-1;e>=0;e--){let n=t[e];n.f&24576||Vn(n)}}N.clear()}}N=null}}function dt(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?dt(i,t,n,r):e&4194320&&!(e&2048)&&ft(i,t,r)&&(O(i,b),pt(i))}}function ft(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&&ft(r,t,n))return n.set(r,!0),!0}return n.set(e,!1),!1}function pt(e){A.schedule(e)}function mt(e,t){if(!(e.f&32&&e.f&1024)){e.f&2048?t.d.push(e):e.f&4096&&t.m.push(e),O(e,y);for(var n=e.first;n!==null;)mt(n,t),n=n.next}}function ht(e){O(e,y);for(var t=e.first;t!==null;)ht(t),t=t.next}function gt(e){let t=0,n=Ft(0),r;return()=>{rn()&&(Z(n),fn(()=>(t===0&&(r=Wn(()=>e(()=>zt(n)))),t+=1,()=>{We(()=>{--t,t===0&&(r?.(),r=void 0,zt(n))})})))}}var _t=ie|ae;function vt(e,t,n,r){new yt(e,t,n,r)}var yt=class{parent;is_pending=!1;transform_error;#e;#t=C?w: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=gt(()=>(this.#m=Ft(this.#l),()=>{this.#m=null}));constructor(e,t,n,r){this.#e=e,this.#n=t,this.#r=e=>{var t=G;t.b=this,t.f|=128,n(e)},this.parent=G.b,this.transform_error=r??this.parent?.transform_error??(e=>e),this.#i=mn(()=>{if(C){let e=this.#t;ke();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()},_t),C&&(this.#e=w)}#g(){try{this.#a=B(()=>this.#r(this.#e))}catch(e){this.error(e)}}#_(e){let t=this.#n.failed;t&&(this.#s=B(()=>{t(this.#e,()=>e,()=>()=>{})}))}#v(){let e=this.#n.pending;e&&(this.is_pending=!0,this.#o=B(()=>e(this.#e)),We(()=>{var e=this.#c=document.createDocumentFragment(),t=qt();e.append(t),this.#a=this.#x(()=>B(()=>this.#r(t))),this.#u===0&&(this.#e.before(e),this.#c=null,bn(this.#o,()=>{this.#o=null}),this.#b(A))}))}#y(){try{if(this.is_pending=this.has_pending_snippet(),this.#u=0,this.#l=0,this.#a=B(()=>{this.#r(this.#e)}),this.#u>0){var e=this.#c=document.createDocumentFragment();wn(this.#a,e);let t=this.#n.pending;this.#o=B(()=>t(this.#e))}else this.#b(A)}catch(e){this.error(e)}}#b(e){this.is_pending=!1,e.transfer_effects(this.#f,this.#p)}defer_effect(e){Ze(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=G,n=H,r=D;K(this.#i),W(this.#i),Re(this.#i.ctx);try{return ct.ensure(),e()}catch(e){return Ke(e),null}finally{K(t),W(n),Re(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&&bn(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,We(()=>{this.#d=!1,this.#m&&Lt(this.#m,this.#l)}))}get_effect_pending(){return this.#h(),Z(this.#m)}error(e){var t=this.#n.onerror;let n=this.#n.failed;if(!t&&!n)throw e;this.#a&&=(V(this.#a),null),this.#o&&=(V(this.#o),null),this.#s&&=(V(this.#s),null),C&&(T(this.#t),Ae(),T(je()));var r=!1,i=!1;let a=()=>{if(r){De();return}r=!0,i&&Te(),this.#s!==null&&bn(this.#s,()=>{this.#s=null}),this.#x(()=>{this.#y()})},o=e=>{try{i=!0,t?.(e,a),i=!1}catch(e){qe(e,this.#i&&this.#i.parent)}n&&(this.#s=this.#x(()=>{try{return B(()=>{var t=G;t.b=this,t.f|=128,n(this.#e,()=>e,()=>a)})}catch(e){return qe(e,this.#i.parent),null}}))};We(()=>{var t;try{t=this.transform_error(e)}catch(e){qe(e,this.#i&&this.#i.parent);return}typeof t==`object`&&t&&typeof t.then==`function`?t.then(o,e=>qe(e,this.#i&&this.#i.parent)):o(t)})}};function bt(e,t,n,r){let i=Ve()?wt:Et;var a=e.filter(e=>!e.settled);if(n.length===0&&a.length===0){r(t.map(i));return}var o=G,s=xt(),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||qe(e,o)}St()}if(n.length===0){c.then(()=>l(t.map(i)));return}var u=Ct();function d(){Promise.all(n.map(e=>Tt(e))).then(e=>l([...t.map(i),...e])).catch(e=>qe(e,o)).finally(()=>u())}c?c.then(()=>{s(),d(),St()}):d()}function xt(){var e=G,t=H,n=D,r=A;return function(i=!0){K(e),W(t),Re(n),i&&!(e.f&16384)&&(r?.activate(),r?.apply())}}function St(e=!0){K(null),W(null),Re(null),e&&A?.deactivate()}function Ct(){var e=G,t=e.b,n=A,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 wt(e){var t=2|b,r=H!==null&&H.f&2?H:null;return G!==null&&(G.f|=ae),{ctx:D,deps:null,effects:null,equals:Ne,f:t,fn:e,reactions:null,rv:0,v:n,wv:0,parent:r??G,ac:null}}function Tt(e,t,r){let i=G;i===null&&he();var a=void 0,o=Ft(n),s=!H,c=new Map;return dn(()=>{var t=G,n=v();a=n.promise;try{Promise.resolve(e()).then(n.resolve,n.reject).finally(St)}catch(e){n.reject(e),St()}var r=A;if(s){if(t.f&32768)var l=Ct();if(i.b.is_rendered())c.get(r)?.reject(S),c.delete(r);else{for(let e of c.values())e.reject(S);c.clear()}c.set(r,n)}let u=(e,n=void 0)=>{if(l&&l(n===S),!(n===S||t.f&16384)){if(r.activate(),n)o.f|=ue,Lt(o,n);else{o.f&8388608&&(o.f^=ue),Lt(o,e);for(let[e,t]of c){if(c.delete(e),e===r)break;t.reject(S)}}r.deactivate()}};n.promise.then(u,e=>u(null,e||`unknown`))}),an(()=>{for(let e of c.values())e.reject(S)}),new Promise(e=>{function t(n){function r(){n===a?e(o):t(a)}n.then(r,r)}t(a)})}function Et(e){let t=wt(e);return t.equals=Fe,t}function Dt(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)V(t[n])}}function Ot(e){for(var t=e.parent;t!==null;){if(!(t.f&2))return t.f&16384?null:t;t=t.parent}return null}function kt(e){var t,n=G;K(Ot(e));try{e.f&=~se,Dt(e),t=Rn(e)}finally{K(n)}return t}function At(e){var t=e.v,n=kt(e);if(!e.equals(n)&&(e.wv=Fn(),(!A?.is_fork||e.deps===null)&&(e.v=n,A?.capture(e,t,!0),e.deps===null))){O(e,y);return}Dn||(j===null?Ye(e):(rn()||A?.is_fork)&&j.set(e,n))}function jt(e){if(e.effects!==null)for(let t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(S),t.teardown=g,t.ac=null,Bn(t,0),gn(t))}function Mt(e){if(e.effects!==null)for(let t of e.effects)t.teardown&&Vn(t)}var Nt=new Set,P=new Map,Pt=!1;function Ft(e,t){return{f:0,v:e,reactions:null,equals:Ne,rv:0,wv:0}}function F(e,t){let n=Ft(e,t);return kn(n),n}function It(e,t=!1,n=!0){let r=Ft(e);return t||(r.equals=Fe),Le&&n&&D!==null&&D.l!==null&&(D.l.s??=[]).push(r),r}function I(e,t,n=!1){return H!==null&&(!U||H.f&131072)&&Ve()&&H.f&4325394&&(q===null||!o.call(q,e))&&we(),Lt(e,n?Vt(t):t,at)}function Lt(e,t,n=null){if(!e.equals(t)){var r=e.v;Dn?P.set(e,t):P.set(e,r),e.v=t;var i=ct.ensure();if(i.capture(e,r),e.f&2){let t=e;e.f&2048&&kt(t),j===null&&Ye(t)}e.wv=Fn(),Bt(e,b,n),Ve()&&G!==null&&G.f&1024&&!(G.f&96)&&(X===null?An([e]):X.push(e)),!i.is_fork&&Nt.size>0&&!Pt&&Rt()}return t}function Rt(){Pt=!1;for(let e of Nt)e.f&1024&&O(e,ee),In(e)&&Vn(e);Nt.clear()}function zt(e){I(e,e.v+1)}function Bt(e,t,n){var r=e.reactions;if(r!==null)for(var i=Ve(),a=r.length,o=0;o<a;o++){var s=r[o],c=s.f;if(!(!i&&s===G)){var l=(c&b)===0;if(l&&O(s,t),c&2){var u=s;j?.delete(u),c&65536||(c&512&&(s.f|=se),Bt(u,ee,n))}else if(l){var d=s;c&16&&N!==null&&N.add(d),n===null?pt(d):n.push(d)}}}}function Vt(e){if(typeof e!=`object`||!e||de in e)return e;let t=m(e);if(t!==f&&t!==p)return e;var r=new Map,a=i(e),o=F(0),s=null,c=Nn,l=e=>{if(Nn===c)return e();var t=H,n=Nn;W(null),Pn(c);var r=e();return W(t),Pn(n),r};return a&&r.set(`length`,F(e.length,s)),new Proxy(e,{defineProperty(e,t,n){(!(`value`in n)||n.configurable===!1||n.enumerable===!1||n.writable===!1)&&Se();var i=r.get(t);return i===void 0?l(()=>{var e=F(n.value,s);return r.set(t,e),e}):I(i,n.value,!0),!0},deleteProperty(e,t){var i=r.get(t);if(i===void 0){if(t in e){let e=l(()=>F(n,s));r.set(t,e),zt(o)}}else I(i,n),zt(o);return!0},get(t,i,a){if(i===de)return e;var o=r.get(i),c=i in t;if(o===void 0&&(!c||u(t,i)?.writable)&&(o=l(()=>F(Vt(c?t[i]:n),s)),r.set(i,o)),o!==void 0){var d=Z(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=Z(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===de)return!0;var i=r.get(t),a=i!==void 0&&i.v!==n||Reflect.has(e,t);return(i!==void 0||G!==null&&(!a||u(e,t)?.writable))&&(i===void 0&&(i=l(()=>F(a?Vt(e[t]):n,s)),r.set(t,i)),Z(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(()=>F(n,s)),r.set(p+``,m)):I(m,n)}if(d===void 0)(!f||u(e,t)?.writable)&&(d=l(()=>F(void 0,s)),I(d,Vt(i)),r.set(t,d));else{f=d.v!==n;var h=l(()=>Vt(i));I(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&&I(_,v+1)}zt(o)}return!0},ownKeys(e){Z(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(){Ce()}})}var Ht,Ut,Wt,Gt;function Kt(){if(Ht===void 0){Ht=window,Ut=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Wt=u(t,`firstChild`).get,Gt=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 qt(e=``){return document.createTextNode(e)}function Jt(e){return Wt.call(e)}function L(e){return Gt.call(e)}function R(e,t){if(!C)return Jt(e);var n=Jt(w);if(n===null)n=w.appendChild(qt());else if(t&&n.nodeType!==3){var r=qt();return n?.before(r),T(r),r}return t&&$t(n),T(n),n}function Yt(e,t=1,n=!1){let r=C?w:e;for(var i;t--;)i=r,r=L(r);if(!C)return r;if(n){if(r?.nodeType!==3){var a=qt();return r===null?i?.after(a):r.before(a),T(a),a}$t(r)}return T(r),r}function Xt(e){e.textContent=``}function Zt(){return!Ie||N!==null?!1:(G.f&ne)!==0}function Qt(e,t,n){let r=n?{is:n}:void 0;return document.createElementNS(t??`http://www.w3.org/1999/xhtml`,e,r)}function $t(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 en(e){var t=H,n=G;W(null),K(null);try{return e()}finally{W(t),K(n)}}function tn(e){G===null&&(H===null&&ve(e),_e()),Dn&&ge(e)}function nn(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function z(e,t){var n=G;n!==null&&n.f&8192&&(e|=te);var r={ctx:D,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)it===null?ct.ensure().schedule(r):it.push(r);else if(t!==null){try{Vn(r)}catch(e){throw V(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|=ie))}if(i!==null&&(i.parent=n,n!==null&&nn(i,n),H!==null&&H.f&2&&!(e&64))){var a=H;(a.effects??=[]).push(i)}return r}function rn(){return H!==null&&!U}function an(e){let t=z(8,null);return O(t,y),t.teardown=e,t}function on(e){tn(`$effect`);var t=G.f;if(!H&&t&32&&!(t&32768)){var n=D;(n.e??=[]).push(e)}else return sn(e)}function sn(e){return z(4|oe,e)}function cn(e){ct.ensure();let t=z(64|ae,e);return()=>{V(t)}}function ln(e){ct.ensure();let t=z(64|ae,e);return(e={})=>new Promise(n=>{e.outro?bn(t,()=>{V(t),n(void 0)}):(V(t),n(void 0))})}function un(e){return z(4,e)}function dn(e){return z(le|ae,e)}function fn(e,t=0){return z(8|t,e)}function pn(e,t=[],n=[],r=[]){bt(r,t,n,t=>{z(8,()=>e(...t.map(Z)))})}function mn(e,t=0){return z(16|t,e)}function B(e){return z(32|ae,e)}function hn(e){var t=e.teardown;if(t!==null){let e=Dn,n=H;On(!0),W(null);try{t.call(null)}finally{On(e),W(n)}}}function gn(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){let e=n.ac;e!==null&&en(()=>{e.abort(S)});var r=n.next;n.f&64?n.parent=null:V(n,t),n=r}}function _n(e){for(var t=e.first;t!==null;){var n=t.next;t.f&32||V(t),t=n}}function V(e,t=!0){var n=!1;(t||e.f&262144)&&e.nodes!==null&&e.nodes.end!==null&&(vn(e.nodes.start,e.nodes.end),n=!0),O(e,re),gn(e,t&&!n),Bn(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)e.stop();hn(e),e.f^=re,e.f|=x;var i=e.parent;i!==null&&i.first!==null&&yn(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function vn(e,t){for(;e!==null;){var n=e===t?null:L(e);e.remove(),e=n}}function yn(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 bn(e,t,n=!0){var r=[];xn(e,r,!0);var i=()=>{n&&V(e),t&&t()},a=r.length;if(a>0){var o=()=>--a||i();for(var s of r)s.out(o)}else i()}function xn(e,t,n){if(!(e.f&8192)){e.f^=te;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;xn(i,t,o?n:!1),i=a}}}function Sn(e){Cn(e,!0)}function Cn(e,t){if(e.f&8192){e.f^=te,e.f&1024||(O(e,b),ct.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&65536)!=0||(n.f&32)!=0;Cn(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 wn(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:L(n);t.append(n),n=i}}var Tn=null,En=!1,Dn=!1;function On(e){Dn=e}var H=null,U=!1;function W(e){H=e}var G=null;function K(e){G=e}var q=null;function kn(e){H!==null&&(!Ie||H.f&2)&&(q===null?q=[e]:q.push(e))}var J=null,Y=0,X=null;function An(e){X=e}var jn=1,Mn=0,Nn=Mn;function Pn(e){Nn=e}function Fn(){return++jn}function In(e){var t=e.f;if(t&2048)return!0;if(t&2&&(e.f&=~se),t&4096){for(var n=e.deps,r=n.length,i=0;i<r;i++){var a=n[i];if(In(a)&&At(a),a.wv>e.wv)return!0}t&512&&j===null&&O(e,y)}return!1}function Ln(e,t,n=!0){var r=e.reactions;if(r!==null&&!(!Ie&&q!==null&&o.call(q,e)))for(var i=0;i<r.length;i++){var a=r[i];a.f&2?Ln(a,t,!1):t===a&&(n?O(a,b):a.f&1024&&O(a,ee),pt(a))}}function Rn(e){var t=J,n=Y,r=X,i=H,a=q,o=D,s=U,c=Nn,l=e.f;J=null,Y=0,X=null,H=l&96?null:e,q=null,Re(e.ctx),U=!1,Nn=++Mn,e.ac!==null&&(en(()=>{e.ac.abort(S)}),e.ac=null);try{e.f|=ce;var u=e.fn,d=u();e.f|=ne;var f=e.deps,p=A?.is_fork;if(J!==null){var m;if(p||Bn(e,Y),f!==null&&Y>0)for(f.length=Y+J.length,m=0;m<J.length;m++)f[Y+m]=J[m];else e.deps=f=J;if(rn()&&e.f&512)for(m=Y;m<f.length;m++)(f[m].reactions??=[]).push(e)}else !p&&f!==null&&Y<f.length&&(Bn(e,Y),f.length=Y);if(Ve()&&X!==null&&!U&&f!==null&&!(e.f&6146))for(m=0;m<X.length;m++)Ln(X[m],e);if(i!==null&&i!==e){if(Mn++,i.deps!==null)for(let e=0;e<n;e+=1)i.deps[e].rv=Mn;if(t!==null)for(let e of t)e.rv=Mn;X!==null&&(r===null?r=X:r.push(...X))}return e.f&8388608&&(e.f^=ue),d}catch(e){return Ke(e)}finally{e.f^=ce,J=t,Y=n,X=r,H=i,q=a,Re(o),U=s,Nn=c}}function zn(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&&(J===null||!o.call(J,t))){var s=t;s.f&512&&(s.f^=512,s.f&=~se),Ye(s),jt(s),Bn(s,0)}}function Bn(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)zn(e,n[r])}function Vn(e){var t=e.f;if(!(t&16384)){O(e,y);var n=G,r=En;G=e,En=!0;try{t&16777232?_n(e):gn(e),hn(e);var i=Rn(e);e.teardown=typeof i==`function`?i:null,e.wv=jn}finally{En=r,G=n}}}function Z(e){var t=(e.f&2)!=0;if(Tn?.add(e),H!==null&&!U&&!(G!==null&&G.f&16384)&&(q===null||!o.call(q,e))){var n=H.deps;if(H.f&2097152)e.rv<Mn&&(e.rv=Mn,J===null&&n!==null&&n[Y]===e?Y++:J===null?J=[e]:J.push(e));else{(H.deps??=[]).push(e);var r=e.reactions;r===null?e.reactions=[H]:o.call(r,H)||r.push(H)}}if(Dn&&P.has(e))return P.get(e);if(t){var i=e;if(Dn){var a=i.v;return(!(i.f&1024)&&i.reactions!==null||Un(i))&&(a=kt(i)),P.set(i,a),a}var s=(i.f&512)==0&&!U&&H!==null&&(En||(H.f&512)!=0),c=(i.f&ne)===0;In(i)&&(s&&(i.f|=512),At(i)),s&&!c&&(Mt(i),Hn(i))}if(j?.has(e))return j.get(e);if(e.f&8388608)throw e.v;return e.v}function Hn(e){if(e.f|=512,e.deps!==null)for(let t of e.deps)(t.reactions??=[]).push(e),t.f&2&&!(t.f&512)&&(Mt(t),Hn(t))}function Un(e){if(e.v===n)return!0;if(e.deps===null)return!1;for(let t of e.deps)if(P.has(t)||t.f&2&&Un(t))return!0;return!1}function Wn(e){var t=U;try{return U=!0,e()}finally{U=t}}var Gn=Symbol(`events`),Kn=new Set,qn=new Set;function Jn(e,t,n,r={}){function i(e){if(r.capture||Zn.call(t,e),!e.cancelBubble)return en(()=>n?.call(this,e))}return e.startsWith(`pointer`)||e.startsWith(`touch`)||e===`wheel`?We(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function Yn(e,t,n,r,i){var a={capture:r,passive:i},o=Jn(e,t,n,a);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&an(()=>{t.removeEventListener(e,o,a)})}var Xn=null;function Zn(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],a=i[0]||e.target;Xn=e;var o=0,s=Xn===e&&e[Gn];if(s){var c=i.indexOf(s);if(c!==-1&&(t===document||t===window)){e[Gn]=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=H,f=G;W(null),K(null);try{for(var p,m=[];a!==null;){var h=a.assignedSlot||a.parentNode||a.host||null;try{var g=a[Gn]?.[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[Gn]=t,delete e.currentTarget,W(d),K(f)}}}var Qn=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy(`svelte-trusted-html`,{createHTML:e=>e});function $n(e){return Qn?.createHTML(e)??e}function er(e){var t=Qt(`template`);return t.innerHTML=$n(e.replaceAll(`<!>`,`<!---->`)),t.content}function tr(e,t){var n=G;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function nr(e,t){var n=(t&1)!=0,r=(t&2)!=0,i,a=!e.startsWith(`<!>`);return()=>{if(C)return tr(w,null),w;i===void 0&&(i=er(a?e:`<!>`+e),n||(i=Jt(i)));var t=r||Ut?document.importNode(i,!0):i.cloneNode(!0);if(n){var o=Jt(t),s=t.lastChild;tr(o,s)}else tr(t,t);return t}}function rr(e,t){if(C){var n=G;(!(n.f&32768)||n.nodes.end===null)&&(n.nodes.end=w),ke();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 ir=[`touchstart`,`touchmove`];function ar(e){return ir.includes(e)}function or(e,t){return lr(e,t)}function sr(e,n){Kt(),n.intro=n.intro??!1;let r=n.target,i=C,a=w;try{for(var o=Jt(r);o&&(o.nodeType!==8||o.data!==`[`);)o=L(o);if(!o)throw t;Oe(!0),T(o);let i=lr(e,{...n,anchor:o});return Oe(!1),i}catch(i){if(i instanceof Error&&i.message.split(`
|
|
2
2
|
`).some(e=>e.startsWith(`https://svelte.dev/e/`)))throw i;return i!==t&&console.warn(`Failed to hydrate: `,i),n.recover===!1&&be(),Kt(),Xt(r),Oe(!1),or(e,n)}finally{Oe(i),T(a)}}var cr=new Map;function lr(e,{target:n,anchor:r,props:i={},events:a,context:o,intro:c=!0,transformError:l}){Kt();var u=void 0,d=ln(()=>{var c=r??n.appendChild(qt());vt(c,{pending:()=>{}},n=>{ze({});var r=D;if(o&&(r.c=o),a&&(i.$$events=a),C&&tr(n,null),u=e(n,i)||{},C&&(G.nodes.end=w,w===null||w.nodeType!==8||w.data!==`]`))throw Ee(),t;Be()},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=ar(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,Zn,{passive:i}),a.set(r,1)):a.set(r,o+1)}}}};return f(s(Kn)),qn.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,Zn),t.delete(e),t.size===0&&cr.delete(r)):t.set(e,i)}qn.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)Sn(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&&(V(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();wn(r,t),t.append(qt()),this.#n.set(e,{effect:r,fragment:t})}else V(r);this.#r.delete(e),this.#t.delete(e)};this.#i||!n?(this.#r.add(e),bn(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)||(V(n.effect),this.#n.delete(e))};ensure(e,t){var n=A,r=Zt();if(t&&!this.#t.has(e)&&!this.#n.has(e))if(r){var i=document.createDocumentFragment(),a=qt();i.append(a),this.#n.set(e,{effect:B(()=>t(a)),fragment:i})}else this.#t.set(e,B(()=>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 C&&(this.anchor=w),this.#a(n)}};function pr(e,t,n=!1){var r;C&&(r=w,ke());var i=new fr(e),a=n?ie:0;function o(e,t){if(C){var n=Me(r);if(e!==parseInt(n.substring(1))){var a=je();T(a),i.anchor=a,Oe(!1),i.ensure(e,t),Oe(!0);return}}i.ensure(e,t)}mn(()=>{var e=!1;t((t,n=0)=>{e=!0,o(n,t)}),e||o(-1,null)},a)}function mr(e,t,n,r,i){C&&ke();var a=t.$$slots?.[n],o=!1;a===!0&&(a=t[n===`default`?`children`:n],o=!0),a===void 0?i!==null&&i(e):a(e,o?()=>r:r)}function hr(e){let t={};e.children&&(t.default=!0);for(let n in e.$$slots)t[n]=!0;return t}function gr(e,t){un(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector(`#`+t.hash)){let e=Qt(`style`);e.id=t.hash,e.textContent=t.code,r.appendChild(e)}})}var _r=[...`
|
|
3
|
-
\r\f\xA0\v`];function vr(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||_r.includes(r[o-1]))&&(s===r.length||_r.includes(r[s]))?r=(o===0?``:r.substring(0,o))+r.substring(s+1):o=s}}return r===``?null:r}function yr(e,t,n,r,i,a){var o=e.__className;if(C||o!==n||o===void 0){var s=vr(n,r,a);(!C||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}var br=Symbol(`is custom element`),xr=Symbol(`is html`),Sr=me?`link`:`LINK`;function Cr(e,t,n,r){var i=wr(e);C&&(i[t]=e.getAttribute(t),t===`src`||t===`srcset`||t===`href`&&e.nodeName===Sr)||i[t]!==(i[t]=n)&&(t===`loading`&&(e[pe]=n),n==null?e.removeAttribute(t):typeof n!=`string`&&Er(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function Q(e,t,n){var r=H,i=G;let a=C;C&&Oe(!1),W(null),K(null);try{t!==`style`&&(Tr.has(e.getAttribute(`is`)||e.nodeName)||!customElements||customElements.get(e.getAttribute(`is`)||e.nodeName.toLowerCase())?Er(e).includes(t):n&&typeof n==`object`)?e[t]=n:Cr(e,t,n==null?n:String(n))}finally{W(r),K(i),a&&Oe(!0)}}function wr(e){return e.__attributes??={[br]:e.nodeName.includes(`-`),[xr]:e.namespaceURI===r}}var Tr=new Map;function Er(e){var t=e.getAttribute(`is`)||e.nodeName,n=Tr.get(t);if(n)return n;Tr.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 $(e,t,n,r){var i=!Le||(n&2)!=0,a=(n&8)!=0,o=(n&16)!=0,s=r,c=!0,l=()=>(c&&(c=!1,s=o?Wn(r):r),s);let d;if(a){var f=de in e||fe in e;d=u(e,t)?.set??(f&&t in e?n=>e[t]=n:void 0)}var p,m=!1;a?[p,m]=et(()=>e[t]):p=e[t],p===void 0&&r!==void 0&&(p=l(),d&&(i&&xe(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?wt:Et)(()=>(_=!1,h()));a&&Z(v);var y=G;return(function(e,t){if(arguments.length>0){let n=t?Z(v):i&&a?Vt(e):e;return I(v,n),_=!0,s!==void 0&&(s=n),e}return Dn&&_||y.f&16384?v.v:Z(v)})}function Dr(e){return new Or(e)}var Or=class{#e;#t;constructor(e){var t=new Map,n=(e,n)=>{var r=It(n,!1,!1);return t.set(e,r),r};let r=new Proxy({...e.props||{},$$events:{}},{get(e,r){return Z(t.get(r)??n(r,Reflect.get(e,r)))},has(e,r){return r===fe?!0:(Z(t.get(r)??n(r,Reflect.get(e,r))),Reflect.has(e,r))},set(e,r,i){return I(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}),!Ie&&(!e?.props?.$$host||e.sync===!1)&&M(),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()}},kr;typeof HTMLElement==`function`&&(kr=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=Qt(`slot`);e!==`default`&&(n.name=e),rr(t,n)}}let t={},n=jr(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]=Ar(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=Dr({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=cn(()=>{fn(()=>{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=Ar(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]=Ar(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 Ar(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 jr(e){let t={};return e.childNodes.forEach(e=>{t[e.slot||`default`]=!0}),t}function Mr(e,t,n,r,i,a){let o=class extends kr{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=Ar(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}function Nr(e){let t=e?.repoName.split(`/`)?.[1]||e?.repoName;if(!t)throw Error(`wrong componentPath `+e?.repoName);if(!e?.version)throw Error(`wrong version `+e?.version);let n=e?.iifePath||`main.iife.js`;if(!document.getElementById(t+`-script`)&&!customElements?.get?.(t)&&!window?.customElements?.get?.(t))try{let r=document.createElement(`script`);if(r.id=t+`-script`,r.src=`https://cdn.jsdelivr.net/npm/${e.repoName}@${e.version}/${n}`,e?.local)r.src=`${e.local}`;else if(location.href.includes(`localhost:6006`)){let e=t.split(`-`)[0];r.src=`http://localhost:6006/webcomponents/${t.replace(e+`-`,``)}/${n}`}document.head.appendChild(r)}catch(e){console.warn(e)}}var Pr={name:`@htmlbricks/svelte-webcomponent`,private:!0,version:`0.71.
|
|
3
|
+
\r\f\xA0\v`];function vr(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||_r.includes(r[o-1]))&&(s===r.length||_r.includes(r[s]))?r=(o===0?``:r.substring(0,o))+r.substring(s+1):o=s}}return r===``?null:r}function yr(e,t,n,r,i,a){var o=e.__className;if(C||o!==n||o===void 0){var s=vr(n,r,a);(!C||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}var br=Symbol(`is custom element`),xr=Symbol(`is html`),Sr=me?`link`:`LINK`;function Cr(e,t,n,r){var i=wr(e);C&&(i[t]=e.getAttribute(t),t===`src`||t===`srcset`||t===`href`&&e.nodeName===Sr)||i[t]!==(i[t]=n)&&(t===`loading`&&(e[pe]=n),n==null?e.removeAttribute(t):typeof n!=`string`&&Er(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function Q(e,t,n){var r=H,i=G;let a=C;C&&Oe(!1),W(null),K(null);try{t!==`style`&&(Tr.has(e.getAttribute(`is`)||e.nodeName)||!customElements||customElements.get(e.getAttribute(`is`)||e.nodeName.toLowerCase())?Er(e).includes(t):n&&typeof n==`object`)?e[t]=n:Cr(e,t,n==null?n:String(n))}finally{W(r),K(i),a&&Oe(!0)}}function wr(e){return e.__attributes??={[br]:e.nodeName.includes(`-`),[xr]:e.namespaceURI===r}}var Tr=new Map;function Er(e){var t=e.getAttribute(`is`)||e.nodeName,n=Tr.get(t);if(n)return n;Tr.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 $(e,t,n,r){var i=!Le||(n&2)!=0,a=(n&8)!=0,o=(n&16)!=0,s=r,c=!0,l=()=>(c&&(c=!1,s=o?Wn(r):r),s);let d;if(a){var f=de in e||fe in e;d=u(e,t)?.set??(f&&t in e?n=>e[t]=n:void 0)}var p,m=!1;a?[p,m]=et(()=>e[t]):p=e[t],p===void 0&&r!==void 0&&(p=l(),d&&(i&&xe(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?wt:Et)(()=>(_=!1,h()));a&&Z(v);var y=G;return(function(e,t){if(arguments.length>0){let n=t?Z(v):i&&a?Vt(e):e;return I(v,n),_=!0,s!==void 0&&(s=n),e}return Dn&&_||y.f&16384?v.v:Z(v)})}function Dr(e){return new Or(e)}var Or=class{#e;#t;constructor(e){var t=new Map,n=(e,n)=>{var r=It(n,!1,!1);return t.set(e,r),r};let r=new Proxy({...e.props||{},$$events:{}},{get(e,r){return Z(t.get(r)??n(r,Reflect.get(e,r)))},has(e,r){return r===fe?!0:(Z(t.get(r)??n(r,Reflect.get(e,r))),Reflect.has(e,r))},set(e,r,i){return I(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}),!Ie&&(!e?.props?.$$host||e.sync===!1)&&M(),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()}},kr;typeof HTMLElement==`function`&&(kr=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=Qt(`slot`);e!==`default`&&(n.name=e),rr(t,n)}}let t={},n=jr(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]=Ar(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=Dr({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=cn(()=>{fn(()=>{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=Ar(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]=Ar(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 Ar(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 jr(e){let t={};return e.childNodes.forEach(e=>{t[e.slot||`default`]=!0}),t}function Mr(e,t,n,r,i,a){let o=class extends kr{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=Ar(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}function Nr(e){let t=e?.repoName.split(`/`)?.[1]||e?.repoName;if(!t)throw Error(`wrong componentPath `+e?.repoName);if(!e?.version)throw Error(`wrong version `+e?.version);let n=e?.iifePath||`main.iife.js`;if(!document.getElementById(t+`-script`)&&!customElements?.get?.(t)&&!window?.customElements?.get?.(t))try{let r=document.createElement(`script`);if(r.id=t+`-script`,r.src=`https://cdn.jsdelivr.net/npm/${e.repoName}@${e.version}/${n}`,e?.local)r.src=`${e.local}`;else if(location.href.includes(`localhost:6006`)){let e=t.split(`-`)[0];r.src=`http://localhost:6006/webcomponents/${t.replace(e+`-`,``)}/${n}`}document.head.appendChild(r)}catch(e){console.warn(e)}}var Pr={name:`@htmlbricks/svelte-webcomponent`,private:!0,version:`0.71.36`,type:`module`,scripts:{dev:`vite --open`,build:`vite build`,"publish:wc":`node publish.ts`,"build:wc":`node build.ts`,"watch:wc":`node watch.ts`,preview:`vite preview`,check:`svelte-check --tsconfig ./tsconfig.app.json && tsc -p tsconfig.node.json`,"release:patch":`npm version patch && git push && git push --tags && npm run build:wc && npm run publish:wc`,"release:minor":`npm version minor && git push && git push --tags && npm run build:wc && npm run publish:wc`,"release:major":`npm version major && git push && git push --tags && npm run build:wc && npm run publish:wc`},devDependencies:{"@google-pay/button-element":`^3.2.1`,"@paypal/paypal-js":`^9.5.0`,"@sveltejs/vite-plugin-svelte":`^7.0.0`,"@tsconfig/svelte":`^5.0.8`,"@types/debounce":`^1.2.4`,"@types/node":`^24.10.1`,"@types/rgb-hex":`^3.0.0`,"chart.js":`^4.5.1`,"date-holidays":`^3.26.12`,dayjs:`^1.11.20`,"hls.js":`^1.6.15`,"html5-joystick-new":`^0.0.6`,ol:`^10.8.0`,"perfect-freehand":`^1.2.3`,prettier:`^3.8.1`,"rollup-plugin-terser":`^7.0.2`,"sass-embedded":`^1.98.0`,"simple-serverless-auth-client":`^0.0.6`,"simple-webrtc-element":`^0.0.1`,"simple-webrtc-element-whep":`^0.2.3`,"style-to-object":`^1.0.14`,svelte:`^5.55.0`,"svelte-check":`^4.4.5`,terser:`^5.46.1`,"ts-json-schema-generator":`^2.9.0`,typescript:`^6.0.2`,vite:`^8.0.3`},dependencies:{"@floating-ui/dom":`^1.7.6`,"@popperjs/core":`^2.11.8`,debounce:`^3.0.0`,"html-colors":`^0.0.6`,marked:`^17.0.5`,raphael:`^2.3.0`,"rgb-hex":`^4.1.0`,"wc-js-utils":`^0.5.4`}},Fr=nr(`<div class="hb-dialogform-stack svelte-i58ii0"><hb-form></hb-form></div>`,2),Ir=nr(`<div slot="header" class="svelte-i58ii0"><!></div>`),Lr=nr(`<div slot="modal-footer" class="svelte-i58ii0"><!></div>`),Rr=nr(`<div slot="footer" class="svelte-i58ii0"><!></div>`),zr=nr(`<div slot="close-button-label" class="svelte-i58ii0"><!></div>`),Br=nr(`<div slot="confirm-button-label" class="svelte-i58ii0"><!></div>`),Vr=nr(`<span class="svelte-i58ii0"><hb-dialog><div class="hb-dialogform-body svelte-i58ii0" slot="body-content"><div class="hb-dialogform-stack svelte-i58ii0"><!></div> <!> <div class="hb-dialogform-stack svelte-i58ii0"><!></div></div> <!> <!> <!> <!> <!></hb-dialog></span>`,2),Hr={hash:`svelte-i58ii0`,code:`@charset "UTF-8";
|
|
4
4
|
/*!
|
|
5
5
|
* Bulma 1.x for hb-dialogform — :host theme tokens only (modal UI lives in hb-dialog).
|
|
6
6
|
*/
|