@htmlbricks/hb-table 0.66.13 → 0.66.14

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 CHANGED
@@ -5,7 +5,9 @@
5
5
 
6
6
  ### What it does
7
7
 
8
- Bootstrap-striped data table driven by JSON `headers` and `rows` (`_id` required): column sort, header search (text, enum, date range), formatted values (nested keys, datetime via dayjs), copy-to-clipboard, row highlight and `selectrow` clicks. Global `actions` and per-row `_actions` can open confirm or schema dialogs (`hb-dialog` / `hb-dialogform`). Optional multi-select with `selectactions`, `add_item` slot, and `hb-paginate` for page size, sort sync, and server-style `externalfilter` / `total` workflows. i18n via `i18nlang`.
8
+ Bootstrap-striped data table driven by JSON `headers` and `rows` (`_id` required): column sort, header search (text, enum, date range), formatted values (nested keys, datetime via dayjs), copy-to-clipboard, row highlight and `selectrow` clicks. Global `actions` and per-row `_actions` can open confirm or schema dialogs (`hb-dialog` / `hb-dialogform`). Optional multi-select with `selectactions`, `add_item` slot, and `hb-paginate` for page size, sort sync, and server-style `externalfilter` / `total` workflows.
9
+
10
+ While **`is_loading`** is enabled, the tbody shows Bootstrap **placeholder** skeleton rows (count follows **`size`**, capped at 100), and the same flag is passed to **`hb-paginate`** so the pagination bar shows placeholders too. i18n via `i18nlang`.
9
11
 
10
12
  ### Custom element
11
13
 
@@ -16,13 +18,13 @@ Bootstrap-striped data table driven by JSON `headers` and `rows` (`_id` required
16
18
  - `id` (optional), `style` (optional): strings.
17
19
  - `rows` (required): JSON string — row objects with `_id` and column keys; optional `_actions`, `_evidenced`.
18
20
  - `headers` (required): JSON string — `ITableHeader[]` (`label`, `key`, optional `type`, `format`, `search`, `click`, `select`, `nosort`, `sortBy`, `truncateAt`, `copyTxt`, `tooltip`).
19
- - `actions` (optional): JSON string — global `IActionButton[]`.
20
- - `selectactions` (optional): JSON string.
21
+ - `actions` (optional): JSON string — global row `IActionButton[]` (see **Actions** below).
22
+ - `selectactions` (optional): JSON string — toolbar buttons when multi-select is enabled (different shape from `actions`; see **Multi-select**).
21
23
  - `selectrow`, `enableselect`, `selected` (optional): strings (selection mode / ids).
22
24
  - `size`, `page`, `pages`, `total` (optional): numbers as strings for pagination / server totals.
23
25
  - `externalfilter` (optional): boolean string — host-driven filters.
24
26
  - `disablepagination` (optional): boolean string.
25
- - `add_item` (optional): boolean string — show add row UI.
27
+ - `add_item` (optional): boolean string — show the **Add** button (see **Add button** below).
26
28
  - `i18nlang` (optional): string (`it`, `en`, … per registered i18n).
27
29
  - `page_size_type` (optional): `"number"` | `"select"`.
28
30
  - `page_size_options` (optional): comma-separated sizes, e.g. `"10,25,50,100"`.
@@ -31,6 +33,53 @@ Bootstrap-striped data table driven by JSON `headers` and `rows` (`_id` required
31
33
  - `disable_paginate_sort` (optional): boolean string.
32
34
  - `sort_strict_direction` (optional): boolean string.
33
35
  - `sort_direction` (optional): string — current sort direction.
36
+ - **`is_loading` (optional):** boolean string (`"yes"` / `"true"`) or boolean in frameworks — enables loading placeholders in the table body (row count = `size`) and forwards the same state to **`hb-paginate`**.
37
+
38
+ ### Actions (`actions` and `_actions`)
39
+
40
+ Use **`actions`** for a column of buttons that is the same for every row (one set per row, same definitions). Use **`_actions`** on a single row object for buttons only on that row (e.g. variable actions per record). Both use the same **`IActionButton`** shape.
41
+
42
+ | Field | Purpose |
43
+ | --- | --- |
44
+ | `name` | Stable id for the action; emitted in events as `action`. |
45
+ | `type` | `"text"` — show `iconOrText` as label; `"icon"` — show a **Bootstrap Icon** (see below). |
46
+ | `iconOrText` | For `type: "text"`, the visible label. For `type: "icon"`, the **icon name** as on [Bootstrap Icons](https://icons.getbootstrap.com/) **without** the `bi-` prefix (e.g. `pencil`, `trash3`, `github`). The component renders a `<i>` with class `bi-{iconOrText}` (e.g. `bi-pencil`). |
47
+ | `btnClass` | Optional Bootstrap **button colour / style suffix** after `btn-`. Examples: `primary`, `secondary`, `success`, `danger`, `warning`, `info`, `light`, `dark`, `link`. If omitted, **text** buttons default to `link`, **icon** buttons default to `light`. The full class is `btn btn-{btnClass}`. |
48
+ | `disabled` | If true, the control is disabled. |
49
+ | `confirm` | If set, clicking opens **`hb-dialog`** confirm; on confirm the table emits `tableaction` / related confirm events. |
50
+ | `edit` | If set (and no `confirm`), clicking opens **`hb-dialogform`** with the given `schema`. |
51
+ | `tooltip` | Optional; passed to **`hb-tooltip`** for icon buttons. |
52
+
53
+ **Behaviour without `confirm` / `edit`:** the table dispatches **`tableaction`** with `{ itemId, action }` where `action` is the button `name`. For **`_actions`** on a row, the same flow applies but the event **`tableCustomActionClick`** is also fired with `{ itemId, action }` so you can distinguish custom per-row actions if needed.
54
+
55
+ **Icons:** load Bootstrap Icons CSS in the host page (the component already injects the icons stylesheet in the light DOM head for tooltips; for consistent icon font inside the shadow tree, ensure Bootstrap Icons are available). Icon names must match the Bootstrap Icons set.
56
+
57
+ ### Multi-select (`enableselect`, `selectactions`)
58
+
59
+ - Set **`enableselect`** to `"yes"` / `"true"` and pass **`selectactions`**: an array of `{ name, type, iconOrText }` used for bulk actions on checked rows. **`actiononselected`** fires with `{ key: name, selectedItems }`.
60
+ - Row checkboxes appear only when **`selectactions`** has entries.
61
+
62
+ ### Add button (`add_item`)
63
+
64
+ Set **`add_item`** to `"yes"` / `"true"` (or boolean `true` in frameworks) to show a primary **Add** control in the toolbar below the table (same **`nav`** as pagination — `part="table-actions"`). It is meant to let the user start creating a **new row**; the table does not insert data by itself.
65
+
66
+ - **Visibility:** the button is rendered only when **`enableselect`** is *not* active (multi-select gear mode hides it).
67
+ - **Click:** dispatches the **`addItem`** custom event with payload **`{ id }`**, where **`id`** is the table’s own **`id`** attribute (empty string if unset). The host should listen for `addItem` and open a form, navigate to a create page, call an API, etc.
68
+ - **Label / icon:** default content is a Bootstrap **plus** icon (`bi-plus`). Override with the **`add-button-content`** slot if you need text or a different icon.
69
+
70
+ ```html
71
+ <hb-table
72
+ id="my-list"
73
+ add_item="yes"
74
+ headers='[{"label":"Title","key":"title"}]'
75
+ rows='[{"_id":"1","title":"A"}]'
76
+ ></hb-table>
77
+ <script>
78
+ document.querySelector("hb-table").addEventListener("addItem", (e) => {
79
+ console.log("Create new item for table:", e.detail.id); // "my-list"
80
+ });
81
+ </script>
82
+ ```
34
83
 
35
84
  ### Events
36
85
 
@@ -46,14 +95,15 @@ Bootstrap-striped data table driven by JSON `headers` and `rows` (`_id` required
46
95
  - `showConfirmModal` / `showConfirmModalForm`: modal visibility payloads with `action` and `detail: { id; show }`.
47
96
  - `confirmActionModal` / `confirmActionModalForm`: `{ action; id; confirm }`.
48
97
  - `clipboardCopyText`: `{ text: string }`.
49
- - `addItem`: `{ id: string }`.
98
+ - **`addItem`:** `{ id: string }` — fired when the **Add** button is clicked; `id` is the table `id` attribute (see **Add button**).
50
99
 
51
100
  ### Usage notes
52
101
 
53
- - **Slots:** `add-button-content`, `buttons-container`.
102
+ - **Slots:** `add-button-content` (Add button body), `buttons-container` (extra toolbar content).
54
103
  - **CSS parts:** `table`, `table-actions`, `selected-row`, `common-row`.
55
- - **i18n:** italian and english in docs metadata; set `i18nlang` accordingly.
56
- - Pair with `hb-paginate` / dialogs as in Storybook examples in `extra/docs.ts`.
104
+ - **i18n:** Italian and English in docs metadata; set `i18nlang` accordingly.
105
+ - **`hb-paginate`:** embedded when pagination is enabled; receives **`is_loading`** automatically when the table is loading.
106
+ - See `extra/docs.ts` for Storybook-style examples.
57
107
 
58
108
  ### Minimal HTML example
59
109
 
@@ -65,3 +115,32 @@ Bootstrap-striped data table driven by JSON `headers` and `rows` (`_id` required
65
115
  pages="1"
66
116
  ></hb-table>
67
117
  ```
118
+
119
+ ### Loading example
120
+
121
+ ```html
122
+ <hb-table
123
+ is_loading="yes"
124
+ size="10"
125
+ headers='[{"label":"Title","key":"title"}]'
126
+ rows='[]'
127
+ total="0"
128
+ page="0"
129
+ pages="0"
130
+ ></hb-table>
131
+ ```
132
+
133
+ ### Actions example (global column + Bootstrap icon)
134
+
135
+ ```html
136
+ <hb-table
137
+ headers='[{"label":"Name","key":"name"},{"label":"Tools","key":"tools","type":"actions","nosort":true}]'
138
+ rows='[{"_id":"1","name":"Alice"}]'
139
+ actions='[
140
+ {"name":"edit","type":"icon","iconOrText":"pencil","btnClass":"primary"},
141
+ {"name":"delete","type":"icon","iconOrText":"trash","btnClass":"danger"}
142
+ ]'
143
+ ></hb-table>
144
+ ```
145
+
146
+ Listen for `tableaction` to handle `edit` / `delete` by `event.detail.itemId` and `event.detail.action`.
package/main.iife.js CHANGED
@@ -1,6 +1,6 @@
1
1
  (function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Object.create,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.getPrototypeOf,o=Object.prototype.hasOwnProperty,s=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),c=(e,t,a,s)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var c=i(t),l=0,u=c.length,d;l<u;l++)d=c[l],!o.call(e,d)&&d!==a&&n(e,d,{get:(e=>t[e]).bind(null,d),enumerable:!(s=r(t,d))||s.enumerable});return e},l=(e,r,i)=>(i=e==null?{}:t(a(e)),c(r||!e||!e.__esModule?n(i,`default`,{value:e,enumerable:!0}):i,e));typeof window<`u`&&((window.__svelte??={}).v??=new Set).add(`5`);var u={},d=Symbol(),f=`http://www.w3.org/1999/xhtml`,p=Array.isArray,m=Array.prototype.indexOf,h=Array.prototype.includes,g=Array.from,_=Object.keys,v=Object.defineProperty,y=Object.getOwnPropertyDescriptor,b=Object.getOwnPropertyDescriptors,x=Object.prototype,S=Array.prototype,ee=Object.getPrototypeOf,C=Object.isExtensible,w=()=>{};function te(e){for(var t=0;t<e.length;t++)e[t]()}function ne(){var e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}var T=1024,E=2048,D=4096,O=8192,re=16384,ie=32768,ae=1<<25,oe=65536,se=1<<18,ce=1<<19,le=1<<20,ue=1<<25,k=65536,A=1<<21,de=1<<22,fe=1<<23,pe=Symbol(`$state`),me=Symbol(`legacy props`),he=Symbol(``),ge=new class extends Error{name=`StaleReactionError`;message="The reaction that called `getAbortSignal()` was re-run or destroyed"},_e=!!globalThis.document?.contentType&&globalThis.document.contentType.includes(`xml`);function ve(){throw Error(`https://svelte.dev/e/async_derived_orphan`)}function ye(e,t,n){throw Error(`https://svelte.dev/e/each_key_duplicate`)}function be(e){throw Error(`https://svelte.dev/e/effect_in_teardown`)}function xe(){throw Error(`https://svelte.dev/e/effect_in_unowned_derived`)}function Se(e){throw Error(`https://svelte.dev/e/effect_orphan`)}function Ce(){throw Error(`https://svelte.dev/e/effect_update_depth_exceeded`)}function we(){throw Error(`https://svelte.dev/e/hydration_failed`)}function Te(e){throw Error(`https://svelte.dev/e/props_invalid_value`)}function Ee(){throw Error(`https://svelte.dev/e/state_descriptors_fixed`)}function De(){throw Error(`https://svelte.dev/e/state_prototype_fixed`)}function Oe(){throw Error(`https://svelte.dev/e/state_unsafe_mutation`)}function ke(){throw Error(`https://svelte.dev/e/svelte_boundary_reset_onerror`)}function Ae(e){console.warn(`https://svelte.dev/e/hydration_mismatch`)}function je(){console.warn(`https://svelte.dev/e/svelte_boundary_reset_noop`)}var j=!1;function Me(e){j=e}var M;function Ne(e){if(e===null)throw Ae(),u;return M=e}function Pe(){return Ne(sn(M))}function N(e){if(j){if(sn(M)!==null)throw Ae(),u;M=e}}function Fe(e=1){if(j){for(var t=e,n=M;t--;)n=sn(n);M=n}}function Ie(e=!0){for(var t=0,n=M;;){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=sn(n);e&&n.remove(),n=i}}function Le(e){if(!e||e.nodeType!==8)throw Ae(),u;return e.data}function Re(e){return e===this.v}function ze(e,t){return e==e?e!==t||typeof e==`object`&&!!e||typeof e==`function`:t==t}function Be(e){return!ze(e,this.v)}var P=!1,Ve=!1,He=null;function Ue(e){He=e}function We(e,t=!1,n){He={p:He,i:!1,c:null,e:null,s:e,x:null,r:W,l:Ve&&!t?{s:null,u:null,$:[]}:null}}function Ge(e){var t=He,n=t.e;if(n!==null){t.e=null;for(var r of n)xn(r)}return e!==void 0&&(t.x=e),t.i=!0,He=t.p,e??{}}function Ke(){return!Ve||He!==null&&He.l===null}var qe=[];function Je(){var e=qe;qe=[],te(e)}function Ye(e){if(qe.length===0&&!lt){var t=qe;queueMicrotask(()=>{t===qe&&Je()})}qe.push(e)}function Xe(){for(;qe.length>0;)Je()}function Ze(e){var t=W;if(t===null)return U.f|=fe,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 $e=~(E|D|T);function F(e,t){e.f=e.f&$e|t}function et(e){e.f&512||e.deps===null?F(e,T):F(e,D)}function tt(e){if(e!==null)for(let t of e)!(t.f&2)||!(t.f&65536)||(t.f^=k,tt(t.deps))}function nt(e,t,n){e.f&2048?t.add(e):e.f&4096&&n.add(e),tt(e.deps),F(e,T)}var rt=!1,it=!1;function at(e){var t=it;try{return it=!1,[e(),it]}finally{it=t}}var ot=new Set,I=null,st=null,ct=null,lt=!1,ut=!1,dt=null,ft=null,pt=0,mt=1,ht=class e{id=mt++;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)F(n,E),this.schedule(n);for(n of t.m)F(n,D),this.schedule(n)}}#p(){if(pt++>1e3&&(ot.delete(this),gt()),!this.#d()){for(let e of this.#o)this.#s.delete(e),F(e,E),this.schedule(e);for(let e of this.#s)F(e,D),this.schedule(e)}let t=this.#a;this.#a=[],this.apply();var n=dt=[],r=[],i=ft=[];for(let e of t)try{this.#m(e,n,r)}catch(t){throw Ct(e),t}if(I=null,i.length>0){var a=e.ensure();for(let e of i)a.schedule(e)}if(dt=null,ft=null,this.#d()||this.#f()){this.#h(r),this.#h(n);for(let[e,t]of this.#c)St(e,t)}else{this.#n.size===0&&ot.delete(this),this.#o.clear(),this.#s.clear();for(let e of this.#e)e(this);this.#e.clear(),vt(r),vt(n),this.#i?.resolve()}var o=I;if(this.#a.length>0){let e=o??=this;e.#a.push(...this.#a.filter(t=>!e.#a.includes(t)))}o!==null&&(ot.add(o),o.#p()),ot.has(this)||this.#g()}#m(e,t,n){e.f^=T;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^=T:i&4?t.push(r):P&&i&16777224?n.push(r):ir(r)&&(i&16&&this.#s.add(r),lr(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)nt(e[t],this.#o,this.#s)}capture(e,t,n=!1){t!==d&&!this.previous.has(e)&&this.previous.set(e,t),e.f&8388608||(this.current.set(e,[e.v,n]),st?.set(e,e.v))}activate(){I=this}deactivate(){I=null,st=null}flush(){try{ut=!0,I=this,this.#p()}finally{pt=0,ct=null,dt=null,ft=null,ut=!1,I=null,st=null,Ut.clear()}}discard(){for(let e of this.#t)e(this);this.#t.clear(),ot.delete(this)}#g(){for(let c of ot){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)yt(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 ot)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,Ye(()=>{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??=ne()).promise}static ensure(){if(I===null){let t=I=new e;ut||(ot.add(I),lt||Ye(()=>{I===t&&t.flush()}))}return I}apply(){if(!P||!this.is_fork&&ot.size===1){st=null;return}st=new Map;for(let[e,[t]]of this.current)st.set(e,t);for(let n of ot)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)st.has(e)||st.set(e,t)}}schedule(e){if(ct=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(dt!==null&&t===W&&(P||(U===null||!(U.f&2))&&!rt))return;if(n&96){if(!(n&1024))return;t.f^=T}}this.#a.push(t)}};function L(e){var t=lt;lt=!0;try{var n;for(e&&(I!==null&&!I.is_fork&&I.flush(),n=e());;){if(Xe(),I===null)return n;I.flush()}}finally{lt=t}}function gt(){try{Ce()}catch(e){Qe(e,ct)}}var _t=null;function vt(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if(!(r.f&24576)&&ir(r)&&(_t=new Set,lr(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&Pn(r),_t?.size>0)){Ut.clear();for(let e of _t){if(e.f&24576)continue;let t=[e],n=e.parent;for(;n!==null;)_t.has(n)&&(_t.delete(n),t.push(n)),n=n.parent;for(let e=t.length-1;e>=0;e--){let n=t[e];n.f&24576||lr(n)}}_t.clear()}}_t=null}}function yt(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?yt(i,t,n,r):e&4194320&&!(e&2048)&&bt(i,t,r)&&(F(i,E),xt(i))}}function bt(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(h.call(t,r))return!0;if(r.f&2&&bt(r,t,n))return n.set(r,!0),!0}return n.set(e,!1),!1}function xt(e){I.schedule(e)}function St(e,t){if(!(e.f&32&&e.f&1024)){e.f&2048?t.d.push(e):e.f&4096&&t.m.push(e),F(e,T);for(var n=e.first;n!==null;)St(n,t),n=n.next}}function Ct(e){F(e,T);for(var t=e.first;t!==null;)Ct(t),t=t.next}function wt(e){let t=0,n=Gt(0),r;return()=>{vn()&&(G(n),En(()=>(t===0&&(r=fr(()=>e(()=>Xt(n)))),t+=1,()=>{Ye(()=>{--t,t===0&&(r?.(),r=void 0,Xt(n))})})))}}var Tt=oe|ce;function Et(e,t,n,r){new Dt(e,t,n,r)}var Dt=class{parent;is_pending=!1;transform_error;#e;#t=j?M: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=wt(()=>(this.#m=Gt(this.#l),()=>{this.#m=null}));constructor(e,t,n,r){this.#e=e,this.#n=t,this.#r=e=>{var t=W;t.b=this,t.f|=128,n(e)},this.parent=W.b,this.transform_error=r??this.parent?.transform_error??(e=>e),this.#i=Dn(()=>{if(j){let e=this.#t;Pe();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()},Tt),j&&(this.#e=M)}#g(){try{this.#a=On(()=>this.#r(this.#e))}catch(e){this.error(e)}}#_(e){let t=this.#n.failed;t&&(this.#s=On(()=>{t(this.#e,()=>e,()=>()=>{})}))}#v(){let e=this.#n.pending;e&&(this.is_pending=!0,this.#o=On(()=>e(this.#e)),Ye(()=>{var e=this.#c=document.createDocumentFragment(),t=an();e.append(t),this.#a=this.#x(()=>On(()=>this.#r(t))),this.#u===0&&(this.#e.before(e),this.#c=null,Fn(this.#o,()=>{this.#o=null}),this.#b(I))}))}#y(){try{if(this.is_pending=this.has_pending_snippet(),this.#u=0,this.#l=0,this.#a=On(()=>{this.#r(this.#e)}),this.#u>0){var e=this.#c=document.createDocumentFragment();zn(this.#a,e);let t=this.#n.pending;this.#o=On(()=>t(this.#e))}else this.#b(I)}catch(e){this.error(e)}}#b(e){this.is_pending=!1,e.transfer_effects(this.#f,this.#p)}defer_effect(e){nt(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=W,n=U,r=He;Kn(this.#i),Gn(this.#i),Ue(this.#i.ctx);try{return ht.ensure(),e()}catch(e){return Ze(e),null}finally{Kn(t),Gn(n),Ue(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&&Fn(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,Ye(()=>{this.#d=!1,this.#m&&Jt(this.#m,this.#l)}))}get_effect_pending(){return this.#h(),G(this.#m)}error(e){var t=this.#n.onerror;let n=this.#n.failed;if(!t&&!n)throw e;this.#a&&=(Mn(this.#a),null),this.#o&&=(Mn(this.#o),null),this.#s&&=(Mn(this.#s),null),j&&(Ne(this.#t),Fe(),Ne(Ie()));var r=!1,i=!1;let a=()=>{if(r){je();return}r=!0,i&&ke(),this.#s!==null&&Fn(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 On(()=>{var t=W;t.b=this,t.f|=128,n(this.#e,()=>e,()=>a)})}catch(e){return Qe(e,this.#i.parent),null}}))};Ye(()=>{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 Ot(e,t,n,r){let i=Ke()?Mt:Ft;var a=e.filter(e=>!e.settled);if(n.length===0&&a.length===0){r(t.map(i));return}var o=W,s=kt(),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)}At()}if(n.length===0){c.then(()=>l(t.map(i)));return}var u=jt();function d(){Promise.all(n.map(e=>Nt(e))).then(e=>l([...t.map(i),...e])).catch(e=>Qe(e,o)).finally(()=>u())}c?c.then(()=>{s(),d(),At()}):d()}function kt(){var e=W,t=U,n=He,r=I;return function(i=!0){Kn(e),Gn(t),Ue(n),i&&!(e.f&16384)&&(r?.activate(),r?.apply())}}function At(e=!0){Kn(null),Gn(null),Ue(null),e&&I?.deactivate()}function jt(){var e=W,t=e.b,n=I,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 Mt(e){var t=2|E,n=U!==null&&U.f&2?U:null;return W!==null&&(W.f|=ce),{ctx:He,deps:null,effects:null,equals:Re,f:t,fn:e,reactions:null,rv:0,v:d,wv:0,parent:n??W,ac:null}}function Nt(e,t,n){let r=W;r===null&&ve();var i=void 0,a=Gt(d),o=!U,s=new Map;return Tn(()=>{var t=W,n=ne();i=n.promise;try{Promise.resolve(e()).then(n.resolve,n.reject).finally(At)}catch(e){n.reject(e),At()}var c=I;if(o){if(t.f&32768)var l=jt();if(r.b.is_rendered())s.get(c)?.reject(ge),s.delete(c);else{for(let e of s.values())e.reject(ge);s.clear()}s.set(c,n)}let u=(e,n=void 0)=>{if(l&&l(n===ge),!(n===ge||t.f&16384)){if(c.activate(),n)a.f|=fe,Jt(a,n);else{a.f&8388608&&(a.f^=fe),Jt(a,e);for(let[e,t]of s){if(s.delete(e),e===c)break;t.reject(ge)}}c.deactivate()}};n.promise.then(u,e=>u(null,e||`unknown`))}),yn(()=>{for(let e of s.values())e.reject(ge)}),new Promise(e=>{function t(n){function r(){n===i?e(a):t(i)}n.then(r,r)}t(i)})}function Pt(e){let t=Mt(e);return P||Jn(t),t}function Ft(e){let t=Mt(e);return t.equals=Be,t}function It(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)Mn(t[n])}}function Lt(e){for(var t=e.parent;t!==null;){if(!(t.f&2))return t.f&16384?null:t;t=t.parent}return null}function Rt(e){var t,n=W;Kn(Lt(e));try{e.f&=~k,It(e),t=or(e)}finally{Kn(n)}return t}function zt(e){var t=e.v,n=Rt(e);if(!e.equals(n)&&(e.wv=rr(),(!I?.is_fork||e.deps===null)&&(e.v=n,I?.capture(e,t,!0),e.deps===null))){F(e,T);return}Hn||(st===null?et(e):(vn()||I?.is_fork)&&st.set(e,n))}function Bt(e){if(e.effects!==null)for(let t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(ge),t.teardown=w,t.ac=null,cr(t,0),An(t))}function Vt(e){if(e.effects!==null)for(let t of e.effects)t.teardown&&lr(t)}var Ht=new Set,Ut=new Map,Wt=!1;function Gt(e,t){return{f:0,v:e,reactions:null,equals:Re,rv:0,wv:0}}function Kt(e,t){let n=Gt(e,t);return Jn(n),n}function qt(e,t=!1,n=!0){let r=Gt(e);return t||(r.equals=Be),Ve&&n&&He!==null&&He.l!==null&&(He.l.s??=[]).push(r),r}function R(e,t,n=!1){return U!==null&&(!Wn||U.f&131072)&&Ke()&&U.f&4325394&&(qn===null||!h.call(qn,e))&&Oe(),Jt(e,n?Qt(t):t,ft)}function Jt(e,t,n=null){if(!e.equals(t)){var r=e.v;Hn?Ut.set(e,t):Ut.set(e,r),e.v=t;var i=ht.ensure();if(i.capture(e,r),e.f&2){let t=e;e.f&2048&&Rt(t),st===null&&et(t)}e.wv=rr(),Zt(e,E,n),Ke()&&W!==null&&W.f&1024&&!(W.f&96)&&(Zn===null?Qn([e]):Zn.push(e)),!i.is_fork&&Ht.size>0&&!Wt&&Yt()}return t}function Yt(){Wt=!1;for(let e of Ht)e.f&1024&&F(e,D),ir(e)&&lr(e);Ht.clear()}function Xt(e){R(e,e.v+1)}function Zt(e,t,n){var r=e.reactions;if(r!==null)for(var i=Ke(),a=r.length,o=0;o<a;o++){var s=r[o],c=s.f;if(!(!i&&s===W)){var l=(c&E)===0;if(l&&F(s,t),c&2){var u=s;st?.delete(u),c&65536||(c&512&&(s.f|=k),Zt(u,D,n))}else if(l){var d=s;c&16&&_t!==null&&_t.add(d),n===null?xt(d):n.push(d)}}}}function Qt(e){if(typeof e!=`object`||!e||pe in e)return e;let t=ee(e);if(t!==x&&t!==S)return e;var n=new Map,r=p(e),i=Kt(0),a=null,o=tr,s=e=>{if(tr===o)return e();var t=U,n=tr;Gn(null),nr(o);var r=e();return Gn(t),nr(n),r};return r&&n.set(`length`,Kt(e.length,a)),new Proxy(e,{defineProperty(e,t,r){(!(`value`in r)||r.configurable===!1||r.enumerable===!1||r.writable===!1)&&Ee();var i=n.get(t);return i===void 0?s(()=>{var e=Kt(r.value,a);return n.set(t,e),e}):R(i,r.value,!0),!0},deleteProperty(e,t){var r=n.get(t);if(r===void 0){if(t in e){let e=s(()=>Kt(d,a));n.set(t,e),Xt(i)}}else R(r,d),Xt(i);return!0},get(t,r,i){if(r===pe)return e;var o=n.get(r),c=r in t;if(o===void 0&&(!c||y(t,r)?.writable)&&(o=s(()=>Kt(Qt(c?t[r]:d),a)),n.set(r,o)),o!==void 0){var l=G(o);return l===d?void 0:l}return Reflect.get(t,r,i)},getOwnPropertyDescriptor(e,t){var r=Reflect.getOwnPropertyDescriptor(e,t);if(r&&`value`in r){var i=n.get(t);i&&(r.value=G(i))}else if(r===void 0){var a=n.get(t),o=a?.v;if(a!==void 0&&o!==d)return{enumerable:!0,configurable:!0,value:o,writable:!0}}return r},has(e,t){if(t===pe)return!0;var r=n.get(t),i=r!==void 0&&r.v!==d||Reflect.has(e,t);return(r!==void 0||W!==null&&(!i||y(e,t)?.writable))&&(r===void 0&&(r=s(()=>Kt(i?Qt(e[t]):d,a)),n.set(t,r)),G(r)===d)?!1:i},set(e,t,o,c){var l=n.get(t),u=t in e;if(r&&t===`length`)for(var f=o;f<l.v;f+=1){var p=n.get(f+``);p===void 0?f in e&&(p=s(()=>Kt(d,a)),n.set(f+``,p)):R(p,d)}if(l===void 0)(!u||y(e,t)?.writable)&&(l=s(()=>Kt(void 0,a)),R(l,Qt(o)),n.set(t,l));else{u=l.v!==d;var m=s(()=>Qt(o));R(l,m)}var h=Reflect.getOwnPropertyDescriptor(e,t);if(h?.set&&h.set.call(c,o),!u){if(r&&typeof t==`string`){var g=n.get(`length`),_=Number(t);Number.isInteger(_)&&_>=g.v&&R(g,_+1)}Xt(i)}return!0},ownKeys(e){G(i);var t=Reflect.ownKeys(e).filter(e=>{var t=n.get(e);return t===void 0||t.v!==d});for(var[r,a]of n)a.v!==d&&!(r in e)&&t.push(r);return t},setPrototypeOf(){De()}})}var $t,en,tn,nn;function rn(){if($t===void 0){$t=window,en=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;tn=y(t,`firstChild`).get,nn=y(t,`nextSibling`).get,C(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),C(n)&&(n.__t=void 0)}}function an(e=``){return document.createTextNode(e)}function on(e){return tn.call(e)}function sn(e){return nn.call(e)}function z(e,t){if(!j)return on(e);var n=on(M);if(n===null)n=M.appendChild(an());else if(t&&n.nodeType!==3){var r=an();return n?.before(r),Ne(r),r}return t&&dn(n),Ne(n),n}function B(e,t=!1){if(!j){var n=on(e);return n instanceof Comment&&n.data===``?sn(n):n}if(t){if(M?.nodeType!==3){var r=an();return M?.before(r),Ne(r),r}dn(M)}return M}function V(e,t=1,n=!1){let r=j?M:e;for(var i;t--;)i=r,r=sn(r);if(!j)return r;if(n){if(r?.nodeType!==3){var a=an();return r===null?i?.after(a):r.before(a),Ne(a),a}dn(r)}return Ne(r),r}function cn(e){e.textContent=``}function ln(){return!P||_t!==null?!1:(W.f&ie)!==0}function un(e,t,n){let r=n?{is:n}:void 0;return document.createElementNS(t??`http://www.w3.org/1999/xhtml`,e,r)}function dn(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}var fn=!1;function pn(){fn||(fn=!0,document.addEventListener(`reset`,e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(let t of e.target.elements)t.__on_r?.()})},{capture:!0}))}function mn(e){var t=U,n=W;Gn(null),Kn(null);try{return e()}finally{Gn(t),Kn(n)}}function hn(e){W===null&&(U===null&&Se(e),xe()),Hn&&be(e)}function gn(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function _n(e,t){var n=W;n!==null&&n.f&8192&&(e|=O);var r={ctx:He,deps:null,nodes:null,f:e|E|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)dt===null?ht.ensure().schedule(r):dt.push(r);else if(t!==null){try{lr(r)}catch(e){throw Mn(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|=oe))}if(i!==null&&(i.parent=n,n!==null&&gn(i,n),U!==null&&U.f&2&&!(e&64))){var a=U;(a.effects??=[]).push(i)}return r}function vn(){return U!==null&&!Wn}function yn(e){let t=_n(8,null);return F(t,T),t.teardown=e,t}function bn(e){hn(`$effect`);var t=W.f;if(!U&&t&32&&!(t&32768)){var n=He;(n.e??=[]).push(e)}else return xn(e)}function xn(e){return _n(4|le,e)}function Sn(e){ht.ensure();let t=_n(64|ce,e);return()=>{Mn(t)}}function Cn(e){ht.ensure();let t=_n(64|ce,e);return(e={})=>new Promise(n=>{e.outro?Fn(t,()=>{Mn(t),n(void 0)}):(Mn(t),n(void 0))})}function wn(e){return _n(4,e)}function Tn(e){return _n(de|ce,e)}function En(e,t=0){return _n(8|t,e)}function H(e,t=[],n=[],r=[]){Ot(r,t,n,t=>{_n(8,()=>e(...t.map(G)))})}function Dn(e,t=0){return _n(16|t,e)}function On(e){return _n(32|ce,e)}function kn(e){var t=e.teardown;if(t!==null){let e=Hn,n=U;Un(!0),Gn(null);try{t.call(null)}finally{Un(e),Gn(n)}}}function An(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){let e=n.ac;e!==null&&mn(()=>{e.abort(ge)});var r=n.next;n.f&64?n.parent=null:Mn(n,t),n=r}}function jn(e){for(var t=e.first;t!==null;){var n=t.next;t.f&32||Mn(t),t=n}}function Mn(e,t=!0){var n=!1;(t||e.f&262144)&&e.nodes!==null&&e.nodes.end!==null&&(Nn(e.nodes.start,e.nodes.end),n=!0),F(e,ae),An(e,t&&!n),cr(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)e.stop();kn(e),e.f^=ae,e.f|=re;var i=e.parent;i!==null&&i.first!==null&&Pn(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function Nn(e,t){for(;e!==null;){var n=e===t?null:sn(e);e.remove(),e=n}}function Pn(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 Fn(e,t,n=!0){var r=[];In(e,r,!0);var i=()=>{n&&Mn(e),t&&t()},a=r.length;if(a>0){var o=()=>--a||i();for(var s of r)s.out(o)}else i()}function In(e,t,n){if(!(e.f&8192)){e.f^=O;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;In(i,t,o?n:!1),i=a}}}function Ln(e){Rn(e,!0)}function Rn(e,t){if(e.f&8192){e.f^=O,e.f&1024||(F(e,E),ht.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&65536)!=0||(n.f&32)!=0;Rn(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 zn(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:sn(n);t.append(n),n=i}}var Bn=null,Vn=!1,Hn=!1;function Un(e){Hn=e}var U=null,Wn=!1;function Gn(e){U=e}var W=null;function Kn(e){W=e}var qn=null;function Jn(e){U!==null&&(!P||U.f&2)&&(qn===null?qn=[e]:qn.push(e))}var Yn=null,Xn=0,Zn=null;function Qn(e){Zn=e}var $n=1,er=0,tr=er;function nr(e){tr=e}function rr(){return++$n}function ir(e){var t=e.f;if(t&2048)return!0;if(t&2&&(e.f&=~k),t&4096){for(var n=e.deps,r=n.length,i=0;i<r;i++){var a=n[i];if(ir(a)&&zt(a),a.wv>e.wv)return!0}t&512&&st===null&&F(e,T)}return!1}function ar(e,t,n=!0){var r=e.reactions;if(r!==null&&!(!P&&qn!==null&&h.call(qn,e)))for(var i=0;i<r.length;i++){var a=r[i];a.f&2?ar(a,t,!1):t===a&&(n?F(a,E):a.f&1024&&F(a,D),xt(a))}}function or(e){var t=Yn,n=Xn,r=Zn,i=U,a=qn,o=He,s=Wn,c=tr,l=e.f;Yn=null,Xn=0,Zn=null,U=l&96?null:e,qn=null,Ue(e.ctx),Wn=!1,tr=++er,e.ac!==null&&(mn(()=>{e.ac.abort(ge)}),e.ac=null);try{e.f|=A;var u=e.fn,d=u();e.f|=ie;var f=e.deps,p=I?.is_fork;if(Yn!==null){var m;if(p||cr(e,Xn),f!==null&&Xn>0)for(f.length=Xn+Yn.length,m=0;m<Yn.length;m++)f[Xn+m]=Yn[m];else e.deps=f=Yn;if(vn()&&e.f&512)for(m=Xn;m<f.length;m++)(f[m].reactions??=[]).push(e)}else !p&&f!==null&&Xn<f.length&&(cr(e,Xn),f.length=Xn);if(Ke()&&Zn!==null&&!Wn&&f!==null&&!(e.f&6146))for(m=0;m<Zn.length;m++)ar(Zn[m],e);if(i!==null&&i!==e){if(er++,i.deps!==null)for(let e=0;e<n;e+=1)i.deps[e].rv=er;if(t!==null)for(let e of t)e.rv=er;Zn!==null&&(r===null?r=Zn:r.push(...Zn))}return e.f&8388608&&(e.f^=fe),d}catch(e){return Ze(e)}finally{e.f^=A,Yn=t,Xn=n,Zn=r,U=i,qn=a,Ue(o),Wn=s,tr=c}}function sr(e,t){let n=t.reactions;if(n!==null){var r=m.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&&(Yn===null||!h.call(Yn,t))){var a=t;a.f&512&&(a.f^=512,a.f&=~k),et(a),Bt(a),cr(a,0)}}function cr(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)sr(e,n[r])}function lr(e){var t=e.f;if(!(t&16384)){F(e,T);var n=W,r=Vn;W=e,Vn=!0;try{t&16777232?jn(e):An(e),kn(e);var i=or(e);e.teardown=typeof i==`function`?i:null,e.wv=$n}finally{Vn=r,W=n}}}function G(e){var t=(e.f&2)!=0;if(Bn?.add(e),U!==null&&!Wn&&!(W!==null&&W.f&16384)&&(qn===null||!h.call(qn,e))){var n=U.deps;if(U.f&2097152)e.rv<er&&(e.rv=er,Yn===null&&n!==null&&n[Xn]===e?Xn++:Yn===null?Yn=[e]:Yn.push(e));else{(U.deps??=[]).push(e);var r=e.reactions;r===null?e.reactions=[U]:h.call(r,U)||r.push(U)}}if(Hn&&Ut.has(e))return Ut.get(e);if(t){var i=e;if(Hn){var a=i.v;return(!(i.f&1024)&&i.reactions!==null||dr(i))&&(a=Rt(i)),Ut.set(i,a),a}var o=(i.f&512)==0&&!Wn&&U!==null&&(Vn||(U.f&512)!=0),s=(i.f&ie)===0;ir(i)&&(o&&(i.f|=512),zt(i)),o&&!s&&(Vt(i),ur(i))}if(st?.has(e))return st.get(e);if(e.f&8388608)throw e.v;return e.v}function ur(e){if(e.f|=512,e.deps!==null)for(let t of e.deps)(t.reactions??=[]).push(e),t.f&2&&!(t.f&512)&&(Vt(t),ur(t))}function dr(e){if(e.v===d)return!0;if(e.deps===null)return!1;for(let t of e.deps)if(Ut.has(t)||t.f&2&&dr(t))return!0;return!1}function fr(e){var t=Wn;try{return Wn=!0,e()}finally{Wn=t}}var pr=Symbol(`events`),mr=new Set,hr=new Set;function gr(e,t,n,r={}){function i(e){if(r.capture||br.call(t,e),!e.cancelBubble)return mn(()=>n?.call(this,e))}return e.startsWith(`pointer`)||e.startsWith(`touch`)||e===`wheel`?Ye(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function _r(e,t,n,r,i){var a={capture:r,passive:i},o=gr(e,t,n,a);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&yn(()=>{t.removeEventListener(e,o,a)})}function K(e,t,n){(t[pr]??={})[e]=n}function vr(e){for(var t=0;t<e.length;t++)mr.add(e[t]);for(var n of hr)n(e)}var yr=null;function br(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],a=i[0]||e.target;yr=e;var o=0,s=yr===e&&e[pr];if(s){var c=i.indexOf(s);if(c!==-1&&(t===document||t===window)){e[pr]=t;return}var l=i.indexOf(t);if(l===-1)return;c<=l&&(o=c)}if(a=i[o]||e.target,a!==t){v(e,`currentTarget`,{configurable:!0,get(){return a||n}});var u=U,d=W;Gn(null),Kn(null);try{for(var f,p=[];a!==null;){var m=a.assignedSlot||a.parentNode||a.host||null;try{var h=a[pr]?.[r];h!=null&&(!a.disabled||e.target===a)&&h.call(a,e)}catch(e){f?p.push(e):f=e}if(e.cancelBubble||m===t||m===null)break;a=m}if(f){for(let e of p)queueMicrotask(()=>{throw e});throw f}}finally{e[pr]=t,delete e.currentTarget,Gn(u),Kn(d)}}}var xr=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy(`svelte-trusted-html`,{createHTML:e=>e});function Sr(e){return xr?.createHTML(e)??e}function Cr(e){var t=un(`template`);return t.innerHTML=Sr(e.replaceAll(`<!>`,`<!---->`)),t.content}function wr(e,t){var n=W;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function q(e,t){var n=(t&1)!=0,r=(t&2)!=0,i,a=!e.startsWith(`<!>`);return()=>{if(j)return wr(M,null),M;i===void 0&&(i=Cr(a?e:`<!>`+e),n||(i=on(i)));var t=r||en?document.importNode(i,!0):i.cloneNode(!0);if(n){var o=on(t),s=t.lastChild;wr(o,s)}else wr(t,t);return t}}function Tr(e=``){if(!j){var t=an(e+``);return wr(t,t),t}var n=M;return n.nodeType===3?dn(n):(n.before(n=an()),Ne(n)),wr(n,n),n}function Er(){if(j)return wr(M,null),M;var e=document.createDocumentFragment(),t=document.createComment(``),n=an();return e.append(t,n),wr(t,n),e}function J(e,t){if(j){var n=W;(!(n.f&32768)||n.nodes.end===null)&&(n.nodes.end=M),Pe();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 Dr=[`touchstart`,`touchmove`];function Or(e){return Dr.includes(e)}function Y(e,t){var n=t==null?``:typeof t==`object`?`${t}`:t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=`${n}`)}function kr(e,t){return Mr(e,t)}function Ar(e,t){rn(),t.intro=t.intro??!1;let n=t.target,r=j,i=M;try{for(var a=on(n);a&&(a.nodeType!==8||a.data!==`[`);)a=sn(a);if(!a)throw u;Me(!0),Ne(a);let r=Mr(e,{...t,anchor:a});return Me(!1),r}catch(r){if(r instanceof Error&&r.message.split(`
2
2
  `).some(e=>e.startsWith(`https://svelte.dev/e/`)))throw r;return r!==u&&console.warn(`Failed to hydrate: `,r),t.recover===!1&&we(),rn(),cn(n),Me(!1),kr(e,t)}finally{Me(r),Ne(i)}}var jr=new Map;function Mr(e,{target:t,anchor:n,props:r={},events:i,context:a,intro:o=!0,transformError:s}){rn();var c=void 0,l=Cn(()=>{var o=n??t.appendChild(an());Et(o,{pending:()=>{}},t=>{We({});var n=He;if(a&&(n.c=a),i&&(r.$$events=i),j&&wr(t,null),c=e(t,r)||{},j&&(W.nodes.end=M,M===null||M.nodeType!==8||M.data!==`]`))throw Ae(),u;Ge()},s);var l=new Set,d=e=>{for(var n=0;n<e.length;n++){var r=e[n];if(!l.has(r)){l.add(r);var i=Or(r);for(let e of[t,document]){var a=jr.get(e);a===void 0&&(a=new Map,jr.set(e,a));var o=a.get(r);o===void 0?(e.addEventListener(r,br,{passive:i}),a.set(r,1)):a.set(r,o+1)}}}};return d(g(mr)),hr.add(d),()=>{for(var e of l)for(let n of[t,document]){var r=jr.get(n),i=r.get(e);--i==0?(n.removeEventListener(e,br),r.delete(e),r.size===0&&jr.delete(n)):r.set(e,i)}hr.delete(d),o!==n&&o.parentNode?.removeChild(o)}});return Nr.set(c,l),c}var Nr=new WeakMap;function Pr(e,t){let n=Nr.get(e);return n?(Nr.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)Ln(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&&(Mn(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();zn(r,t),t.append(an()),this.#n.set(e,{effect:r,fragment:t})}else Mn(r);this.#r.delete(e),this.#t.delete(e)};this.#i||!n?(this.#r.add(e),Fn(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)||(Mn(n.effect),this.#n.delete(e))};ensure(e,t){var n=I,r=ln();if(t&&!this.#t.has(e)&&!this.#n.has(e))if(r){var i=document.createDocumentFragment(),a=an();i.append(a),this.#n.set(e,{effect:On(()=>t(a)),fragment:i})}else this.#t.set(e,On(()=>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 j&&(this.anchor=M),this.#a(n)}};function X(e,t,n=!1){var r;j&&(r=M,Pe());var i=new Fr(e),a=n?oe:0;function o(e,t){if(j){var n=Le(r);if(e!==parseInt(n.substring(1))){var a=Ie();Ne(a),i.anchor=a,Me(!1),i.ensure(e,t),Me(!0);return}}i.ensure(e,t)}Dn(()=>{var e=!1;t((t,n=0)=>{e=!0,o(n,t)}),e||o(-1,null)},a)}function Ir(e,t){return t}function Lr(e,t,n){for(var r=[],i=t.length,a,o=t.length,s=0;s<i;s++){let n=t[s];Fn(n,()=>{if(a){if(a.pending.delete(n),a.done.add(n),a.pending.size===0){var t=e.outrogroups;Rr(e,g(a.done)),t.delete(a),t.size===0&&(e.outrogroups=null)}}else --o},!1)}if(o===0){var c=r.length===0&&n!==null;if(c){var l=n,u=l.parentNode;cn(u),u.append(l),e.items.clear()}Rr(e,t,!c)}else a={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(a)}function Rr(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|=ue,zn(a,document.createDocumentFragment())):Mn(t[i],n)}}var zr;function Br(e,t,n,r,i,a=null){var o=e,s=new Map;if(t&4){var c=e;o=j?Ne(on(c)):c.appendChild(an())}j&&Pe();var l=null,u=Ft(()=>{var e=n();return p(e)?e:e==null?[]:g(e)}),d,f=new Map,m=!0;function h(e){v.effect.f&16384||(v.pending.delete(e),v.fallback=l,Hr(v,d,o,t,r),l!==null&&(d.length===0?l.f&33554432?(l.f^=ue,Wr(l,null,o)):Ln(l):Fn(l,()=>{l=null})))}function _(e){v.pending.delete(e)}var v={effect:Dn(()=>{d=G(u);var e=d.length;let c=!1;j&&Le(o)===`[!`!=(e===0)&&(o=Ie(),Ne(o),Me(!1),c=!0);for(var p=new Set,g=I,v=ln(),y=0;y<e;y+=1){j&&M.nodeType===8&&M.data===`]`&&(o=M,c=!0,Me(!1));var b=d[y],x=r(b,y),S=m?null:s.get(x);S?(S.v&&Jt(S.v,b),S.i&&Jt(S.i,y),v&&g.unskip_effect(S.e)):(S=Ur(s,m?o:zr??=an(),b,x,y,i,t,n),m||(S.e.f|=ue),s.set(x,S)),p.add(x)}if(e===0&&a&&!l&&(m?l=On(()=>a(o)):(l=On(()=>a(zr??=an())),l.f|=ue)),e>p.size&&ye(``,``,``),j&&e>0&&Ne(Ie()),!m)if(f.set(g,p),v){for(let[e,t]of s)p.has(e)||g.skip_effect(t.e);g.oncommit(h),g.ondiscard(_)}else h(g);c&&Me(!0),G(u)}),flags:t,items:s,pending:f,outrogroups:null,fallback:l};m=!1,j&&(o=M)}function Vr(e){for(;e!==null&&!(e.f&32);)e=e.next;return e}function Hr(e,t,n,r,i){var a=(r&8)!=0,o=t.length,s=e.items,c=Vr(e.effect.first),l,u=null,d,f=[],p=[],m,h,_,v;if(a)for(v=0;v<o;v+=1)m=t[v],h=i(m,v),_=s.get(h).e,_.f&33554432||(_.nodes?.a?.measure(),(d??=new Set).add(_));for(v=0;v<o;v+=1){if(m=t[v],h=i(m,v),_=s.get(h).e,e.outrogroups!==null)for(let t of e.outrogroups)t.pending.delete(_),t.done.delete(_);if(_.f&8192&&(Ln(_),a&&(_.nodes?.a?.unfix(),(d??=new Set).delete(_))),_.f&33554432)if(_.f^=ue,_===c)Wr(_,null,n);else{var y=u?u.next:c;_===e.effect.last&&(e.effect.last=_.prev),_.prev&&(_.prev.next=_.next),_.next&&(_.next.prev=_.prev),Gr(e,u,_),Gr(e,_,y),Wr(_,y,n),u=_,f=[],p=[],c=Vr(u.next);continue}if(_!==c){if(l!==void 0&&l.has(_)){if(f.length<p.length){var b=p[0],x;u=b.prev;var S=f[0],ee=f[f.length-1];for(x=0;x<f.length;x+=1)Wr(f[x],b,n);for(x=0;x<p.length;x+=1)l.delete(p[x]);Gr(e,S.prev,ee.next),Gr(e,u,S),Gr(e,ee,b),c=b,u=ee,--v,f=[],p=[]}else l.delete(_),Wr(_,c,n),Gr(e,_.prev,_.next),Gr(e,_,u===null?e.effect.first:u.next),Gr(e,u,_),u=_;continue}for(f=[],p=[];c!==null&&c!==_;)(l??=new Set).add(c),p.push(c),c=Vr(c.next);if(c===null)continue}_.f&33554432||f.push(_),u=_,c=Vr(_.next)}if(e.outrogroups!==null){for(let t of e.outrogroups)t.pending.size===0&&(Rr(e,g(t.done)),e.outrogroups?.delete(t));e.outrogroups.size===0&&(e.outrogroups=null)}if(c!==null||l!==void 0){var C=[];if(l!==void 0)for(_ of l)_.f&8192||C.push(_);for(;c!==null;)!(c.f&8192)&&c!==e.fallback&&C.push(c),c=Vr(c.next);var w=C.length;if(w>0){var te=r&4&&o===0?n:null;if(a){for(v=0;v<w;v+=1)C[v].nodes?.a?.measure();for(v=0;v<w;v+=1)C[v].nodes?.a?.fix()}Lr(e,C,te)}}a&&Ye(()=>{if(d!==void 0)for(_ of d)_.nodes?.a?.apply()})}function Ur(e,t,n,r,i,a,o,s){var c=o&1?o&16?Gt(n):qt(n,!1,!1):null,l=o&2?Gt(i):null;return{v:c,i:l,e:On(()=>(a(t,c??n,l??i,s),()=>{e.delete(r)}))}}function Wr(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=sn(r);if(a.before(r),r===i)return;r=o}}function Gr(e,t,n){t===null?e.effect.first=n:t.next=n,n===null?e.effect.last=t:n.prev=t}function Kr(e,t,n,r,i){j&&Pe();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 qr(e,t){let n=null,r=j;var i;if(j){n=M;for(var a=on(document.head);a!==null&&(a.nodeType!==8||a.data!==e);)a=sn(a);if(a===null)Me(!1);else{var o=sn(a);a.remove(),Ne(o)}}j||(i=document.head.appendChild(an()));try{Dn(()=>t(i),se|ce)}finally{r&&(Me(!0),Ne(n))}}function Jr(e,t){wn(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector(`#`+t.hash)){let e=un(`style`);e.id=t.hash,e.textContent=t.code,r.appendChild(e)}})}var Yr=[...`
3
- \r\f\xA0\v`];function Xr(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||Yr.includes(r[o-1]))&&(s===r.length||Yr.includes(r[s]))?r=(o===0?``:r.substring(0,o))+r.substring(s+1):o=s}}return r===``?null:r}function Zr(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 Qr(e){return e[0]!==`-`||e[1]!==`-`?e.toLowerCase():e}function $r(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(Qr)),i&&c.push(...Object.keys(i).map(Qr));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=Qr(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+=Zr(r)),i&&(n+=Zr(i,!0)),n=n.trim(),n===``?null:n}return e==null?null:String(e)}function Z(e,t,n,r,i,a){var o=e.__className;if(j||o!==n||o===void 0){var s=Xr(n,r,a);(!j||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 ei(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 ti(e,t,n,r){var i=e.__style;if(j||i!==t){var a=$r(t,r);(!j||a!==e.getAttribute(`style`))&&(a==null?e.removeAttribute(`style`):e.style.cssText=a),e.__style=t}else r&&(Array.isArray(r)?(ei(e,n?.[0],r[0]),ei(e,n?.[1],r[1],`important`)):ei(e,n,r));return r}var ni=Symbol(`is custom element`),ri=Symbol(`is html`),ii=_e?`link`:`LINK`;function ai(e){if(j){var t=!1,n=()=>{if(!t){if(t=!0,e.hasAttribute(`value`)){var n=e.value;oi(e,`value`,null),e.value=n}if(e.hasAttribute(`checked`)){var r=e.checked;oi(e,`checked`,null),e.checked=r}}};e.__on_r=n,Ye(n),pn()}}function oi(e,t,n,r){var i=si(e);j&&(i[t]=e.getAttribute(t),t===`src`||t===`srcset`||t===`href`&&e.nodeName===ii)||i[t]!==(i[t]=n)&&(t===`loading`&&(e[he]=n),n==null?e.removeAttribute(t):typeof n!=`string`&&li(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function Q(e,t,n){var r=U,i=W;let a=j;j&&Me(!1),Gn(null),Kn(null);try{t!==`style`&&(ci.has(e.getAttribute(`is`)||e.nodeName)||!customElements||customElements.get(e.getAttribute(`is`)||e.nodeName.toLowerCase())?li(e).includes(t):n&&typeof n==`object`)?e[t]=n:oi(e,t,n==null?n:String(n))}finally{Gn(r),Kn(i),a&&Me(!0)}}function si(e){return e.__attributes??={[ni]:e.nodeName.includes(`-`),[ri]:e.namespaceURI===f}}var ci=new Map;function li(e){var t=e.getAttribute(`is`)||e.nodeName,n=ci.get(t);if(n)return n;ci.set(t,n=[]);for(var r,i=e,a=Element.prototype;a!==i;){for(var o in r=b(i),r)r[o].set&&n.push(o);i=ee(i)}return n}function $(e,t,n,r){var i=!Ve||(n&2)!=0,a=(n&8)!=0,o=(n&16)!=0,s=r,c=!0,l=()=>(c&&(c=!1,s=o?fr(r):r),s);let u;if(a){var d=pe in e||me in e;u=y(e,t)?.set??(d&&t in e?n=>e[t]=n:void 0)}var f,p=!1;a?[f,p]=at(()=>e[t]):f=e[t],f===void 0&&r!==void 0&&(f=l(),u&&(i&&Te(t),u(f)));var m=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 m;if(u){var h=e.$$legacy;return(function(e,t){return arguments.length>0?((!i||!t||h||p)&&u(t?m():e),e):m()})}var g=!1,_=(n&1?Mt:Ft)(()=>(g=!1,m()));a&&G(_);var v=W;return(function(e,t){if(arguments.length>0){let n=t?G(_):i&&a?Qt(e):e;return R(_,n),g=!0,s!==void 0&&(s=n),e}return Hn&&g||v.f&16384?_.v:G(_)})}function ui(e){return new di(e)}var di=class{#e;#t;constructor(e){var t=new Map,n=(e,n)=>{var r=qt(n,!1,!1);return t.set(e,r),r};let r=new Proxy({...e.props||{},$$events:{}},{get(e,r){return G(t.get(r)??n(r,Reflect.get(e,r)))},has(e,r){return r===me?!0:(G(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:kr)(e.component,{target:e.target,anchor:e.anchor,props:r,context:e.context,intro:e.intro??!1,recover:e.recover,transformError:e.transformError}),!P&&(!e?.props?.$$host||e.sync===!1)&&L(),this.#e=r.$$events;for(let e of Object.keys(this.#t))e===`$set`||e===`$destroy`||e===`$on`||v(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=()=>{Pr(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()}},fi;typeof HTMLElement==`function`&&(fi=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=un(`slot`);e!==`default`&&(n.name=e),J(t,n)}}let t={},n=mi(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]=pi(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=ui({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Sn(()=>{En(()=>{this.$$r=!0;for(let e of _(this.$$c)){if(!this.$$p_d[e]?.reflect)continue;this.$$d[e]=this.$$c[e];let t=pi(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]=pi(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 _(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function pi(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 mi(e){let t={};return e.childNodes.forEach(e=>{t[e.slot||`default`]=!0}),t}function hi(e,t,n,r,i,a){let o=class extends fi{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return _(t).map(e=>(t[e].attribute||e).toLowerCase())}};return _(t).forEach(e=>{v(o.prototype,e,{get(){return this.$$c&&e in this.$$c?this.$$c[e]:this.$$d[e]},set(n){n=pi(e,n,t),this.$$d[e]=n;var r=this.$$c;r&&(y(r,e)?.get?r[e]=n:r.$set({[e]:n}))}})}),r.forEach(e=>{v(o.prototype,e,{get(){return this.$$c?.[e]}})}),a&&(o=a(o)),e.element=o,o}var gi=s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs=r()})(e,(function(){"use strict";var e=1e3,t=6e4,n=36e5,r=`millisecond`,i=`second`,a=`minute`,o=`hour`,s=`day`,c=`week`,l=`month`,u=`quarter`,d=`year`,f=`date`,p=`Invalid Date`,m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:`en`,weekdays:`Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday`.split(`_`),months:`January_February_March_April_May_June_July_August_September_October_November_December`.split(`_`),ordinal:function(e){var t=[`th`,`st`,`nd`,`rd`],n=e%100;return`[`+e+(t[(n-20)%10]||t[n]||t[0])+`]`}},_=function(e,t,n){var r=String(e);return!r||r.length>=t?e:``+Array(t+1-r.length).join(n)+e},v={s:_,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?`+`:`-`)+_(r,2,`0`)+`:`+_(i,2,`0`)},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,l),a=n-i<0,o=t.clone().add(r+(a?-1:1),l);return+(-(r+(n-i)/(a?i-o:o-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:d,w:c,d:s,D:f,h:o,m:a,s:i,ms:r,Q:u}[e]||String(e||``).toLowerCase().replace(/s$/,``)},u:function(e){return e===void 0}},y=`en`,b={};b[y]=g;var x=`$isDayjsObject`,S=function(e){return e instanceof te||!(!e||!e[x])},ee=function e(t,n,r){var i;if(!t)return y;if(typeof t==`string`){var a=t.toLowerCase();b[a]&&(i=a),n&&(b[a]=n,i=a);var o=t.split(`-`);if(!i&&o.length>1)return e(o[0])}else{var s=t.name;b[s]=t,i=s}return!r&&i&&(y=i),i||!r&&y},C=function(e,t){if(S(e))return e.clone();var n=typeof t==`object`?t:{};return n.date=e,n.args=arguments,new te(n)},w=v;w.l=ee,w.i=S,w.w=function(e,t){return C(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var te=function(){function g(e){this.$L=ee(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var _=g.prototype;return _.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(t===null)return new Date(NaN);if(w.u(t))return new Date;if(t instanceof Date)return new Date(t);if(typeof t==`string`&&!/Z$/i.test(t)){var r=t.match(m);if(r){var i=r[2]-1||0,a=(r[7]||`0`).substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.init()},_.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},_.$utils=function(){return w},_.isValid=function(){return this.$d.toString()!==p},_.isSame=function(e,t){var n=C(e);return this.startOf(t)<=n&&n<=this.endOf(t)},_.isAfter=function(e,t){return C(e)<this.startOf(t)},_.isBefore=function(e,t){return this.endOf(t)<C(e)},_.$g=function(e,t,n){return w.u(e)?this[t]:this.set(n,e)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(e,t){var n=this,r=!!w.u(t)||t,u=w.p(e),p=function(e,t){var i=w.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(s)},m=function(e,t){return w.w(n.toDate()[e].apply(n.toDate(`s`),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},h=this.$W,g=this.$M,_=this.$D,v=`set`+(this.$u?`UTC`:``);switch(u){case d:return r?p(1,0):p(31,11);case l:return r?p(1,g):p(0,g+1);case c:var y=this.$locale().weekStart||0,b=(h<y?h+7:h)-y;return p(r?_-b:_+(6-b),g);case s:case f:return m(v+`Hours`,0);case o:return m(v+`Minutes`,1);case a:return m(v+`Seconds`,2);case i:return m(v+`Milliseconds`,3);default:return this.clone()}},_.endOf=function(e){return this.startOf(e,!1)},_.$set=function(e,t){var n,c=w.p(e),u=`set`+(this.$u?`UTC`:``),p=(n={},n[s]=u+`Date`,n[f]=u+`Date`,n[l]=u+`Month`,n[d]=u+`FullYear`,n[o]=u+`Hours`,n[a]=u+`Minutes`,n[i]=u+`Seconds`,n[r]=u+`Milliseconds`,n)[c],m=c===s?this.$D+(t-this.$W):t;if(c===l||c===d){var h=this.clone().set(f,1);h.$d[p](m),h.init(),this.$d=h.set(f,Math.min(this.$D,h.daysInMonth())).$d}else p&&this.$d[p](m);return this.init(),this},_.set=function(e,t){return this.clone().$set(e,t)},_.get=function(e){return this[w.p(e)]()},_.add=function(r,u){var f,p=this;r=Number(r);var m=w.p(u),h=function(e){var t=C(p);return w.w(t.date(t.date()+Math.round(e*r)),p)};if(m===l)return this.set(l,this.$M+r);if(m===d)return this.set(d,this.$y+r);if(m===s)return h(1);if(m===c)return h(7);var g=(f={},f[a]=t,f[o]=n,f[i]=e,f)[m]||1,_=this.$d.getTime()+r*g;return w.w(_,this)},_.subtract=function(e,t){return this.add(-1*e,t)},_.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||`YYYY-MM-DDTHH:mm:ssZ`,i=w.z(this),a=this.$H,o=this.$m,s=this.$M,c=n.weekdays,l=n.months,u=n.meridiem,d=function(e,n,i,a){return e&&(e[n]||e(t,r))||i[n].slice(0,a)},f=function(e){return w.s(a%12||12,e,`0`)},m=u||function(e,t,n){var r=e<12?`AM`:`PM`;return n?r.toLowerCase():r};return r.replace(h,(function(e,r){return r||function(e){switch(e){case`YY`:return String(t.$y).slice(-2);case`YYYY`:return w.s(t.$y,4,`0`);case`M`:return s+1;case`MM`:return w.s(s+1,2,`0`);case`MMM`:return d(n.monthsShort,s,l,3);case`MMMM`:return d(l,s);case`D`:return t.$D;case`DD`:return w.s(t.$D,2,`0`);case`d`:return String(t.$W);case`dd`:return d(n.weekdaysMin,t.$W,c,2);case`ddd`:return d(n.weekdaysShort,t.$W,c,3);case`dddd`:return c[t.$W];case`H`:return String(a);case`HH`:return w.s(a,2,`0`);case`h`:return f(1);case`hh`:return f(2);case`a`:return m(a,o,!0);case`A`:return m(a,o,!1);case`m`:return String(o);case`mm`:return w.s(o,2,`0`);case`s`:return String(t.$s);case`ss`:return w.s(t.$s,2,`0`);case`SSS`:return w.s(t.$ms,3,`0`);case`Z`:return i}return null}(e)||i.replace(`:`,``)}))},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(r,f,p){var m,h=this,g=w.p(f),_=C(r),v=(_.utcOffset()-this.utcOffset())*t,y=this-_,b=function(){return w.m(h,_)};switch(g){case d:m=b()/12;break;case l:m=b();break;case u:m=b()/3;break;case c:m=(y-v)/6048e5;break;case s:m=(y-v)/864e5;break;case o:m=y/n;break;case a:m=y/t;break;case i:m=y/e;break;default:m=y}return p?m:w.a(m)},_.daysInMonth=function(){return this.endOf(l).$D},_.$locale=function(){return b[this.$L]},_.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=ee(e,t,!0);return r&&(n.$L=r),n},_.clone=function(){return w.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},g}(),ne=te.prototype;return C.prototype=ne,[[`$ms`,r],[`$s`,i],[`$m`,a],[`$H`,o],[`$W`,s],[`$M`,l],[`$y`,d],[`$D`,f]].forEach((function(e){ne[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),C.extend=function(e,t){return e.$i||=(e(t,te,C),!0),C},C.locale=ee,C.isDayjs=S,C.unix=function(e){return C(1e3*e)},C.en=b[y],C.Ls=b,C.p={},C}))})),_i=s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r(gi()):typeof define==`function`&&define.amd?define([`dayjs`],r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_locale_it=r(n.dayjs)})(e,(function(e){"use strict";function t(e){return e&&typeof e==`object`&&`default`in e?e:{default:e}}var n=t(e),r={name:`it`,weekdays:`domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato`.split(`_`),weekdaysShort:`dom_lun_mar_mer_gio_ven_sab`.split(`_`),weekdaysMin:`do_lu_ma_me_gi_ve_sa`.split(`_`),months:`gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre`.split(`_`),weekStart:1,monthsShort:`gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic`.split(`_`),formats:{LT:`HH:mm`,LTS:`HH:mm:ss`,L:`DD/MM/YYYY`,LL:`D MMMM YYYY`,LLL:`D MMMM YYYY HH:mm`,LLLL:`dddd D MMMM YYYY HH:mm`},relativeTime:{future:`tra %s`,past:`%s fa`,s:`qualche secondo`,m:`un minuto`,mm:`%d minuti`,h:`un'ora`,hh:`%d ore`,d:`un giorno`,dd:`%d giorni`,M:`un mese`,MM:`%d mesi`,y:`un anno`,yy:`%d anni`},ordinal:function(e){return e+`º`}};return n.default.locale(r,null,!0),r}))})),vi=l(gi());_i();var yi={name:`@htmlbricks/svelte-webcomponent`,private:!0,version:`0.66.13`,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`,bootstrap:`^5.3.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.4.7`}};function bi(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`))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 xi=class e{dictionary;lang=``;constructor(e){if(!e?.dictionary)throw Error(`no dictionary provided`);this.dictionary=e.dictionary,this.setLang(e?.lang)}setLang(t){t||=e.getDefaultLang(),this.lang=t}translateWord(t,n){return e.getDictionaryWord(t,this.dictionary,n||this.lang)}translateDate(t,n,r){return e.formatDate(t,n,r||this.lang)}static getDefaultLang(){let e=`en`;return navigator?.languages&&navigator.languages[0]?.split(`-`)[0]?.toLowerCase()?.length&&(e=navigator.languages[0].split(`-`)[0].toLowerCase()),e}static getDictionaryWord(t,n,r){if(!t)throw Error(`no wordKey provided`);if(!n)throw Error(`no dictionary provided`);if(r&&n[r]?.[t])return n[r][t];let i=``,a=e.getDefaultLang();if(!r||a!==r){let e=n?.[a];e?.[t]&&(i=e[t])}return i}static formatDate(t,n,r){if(!t)throw Error(`no date provided`);if(typeof t.getMonth!=`function`)throw Error(`wrong date format`);return new Intl.DateTimeFormat(r||e.getDefaultLang(),n).format(t)}},Si={en:{actions:`Actions`,selectAll:`Select all`,deselectAll:`Deselect all`,start:`Start`,end:`End`,all:`all`},it:{actions:`Azioni`,selectAll:`Seleziona tutti`,deselectAll:`Deseleziona tutti`,start:`Inizio`,end:`Fine`,all:`tutti`}},Ci=q(`<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css" class="svelte-9da8a"/>`),wi=q(`<button aria-label="Select all" class="btn btn-link svelte-9da8a"> </button>`),Ti=q(`<button aria-label="Deselect all" class="btn btn-link svelte-9da8a"> </button>`),Ei=q(`<th scope="col" class="svelte-9da8a"><!></th>`),Di=q(`<th scope="col" class="svelte-9da8a"></th>`),Oi=q(`<hb-tooltip><i class="bi bi-info-circle svelte-9da8a"></i> </hb-tooltip>`,2),ki=q(`<button style="border:none; background-color:inherit" class="svelte-9da8a"><!></button>`),Ai=q(`<th scope="col" class="svelte-9da8a"><!> <!></th>`),ji=q(`<th scope="col" class="svelte-9da8a"> </th>`),Mi=q(`<th scope="col" class="svelte-9da8a"> </th>`),Ni=q(`<span style="width:50px;display:inline-block" class="svelte-9da8a"> </span> <input type="date" class="form-control svelte-9da8a" style="max-width: 200px;display:inline-block"/>`,1),Pi=q(`<input type="text" class="form-control svelte-9da8a" placeholder="..." aria-label="Search" aria-describedby="search"/>`),Fi=q(`<option class="svelte-9da8a"> </option>`),Ii=q(`<select class="form-select svelte-9da8a"><option class="svelte-9da8a"> </option><!></select>`),Li=q(`<th scope="col" class="svelte-9da8a"><!> <!></th>`),Ri=q(`<th scope="col" class="svelte-9da8a">&nbsp;</th>`),zi=q(`<!> <!>`,1),Bi=q(`<tr class="svelte-9da8a"><!><!></tr>`),Vi=q(`<button class="btn btn-link svelte-9da8a"> </button>`),Hi=q(`<button class="btn btn-link svelte-9da8a"> </button>`),Ui=q(`<th scope="col" class="svelte-9da8a"><!></th>`),Wi=q(`<span style="width:50px;display:inline-block" class="svelte-9da8a">Inizio</span> <input type="date" class="form-control svelte-9da8a" style="max-width: 200px;display:inline-block"/>`,1),Gi=q(`<input type="text" class="form-control svelte-9da8a" placeholder="..." aria-label="Search" aria-describedby="search"/>`),Ki=q(`<option class="svelte-9da8a"> </option>`),qi=q(`<select class="form-select svelte-9da8a"><option class="svelte-9da8a"> </option><!></select>`),Ji=q(`<th scope="col" class="svelte-9da8a"><!></th>`),Yi=q(`<th scope="col" class="svelte-9da8a">&nbsp;</th>`),Xi=q(`<th scope="col" class="svelte-9da8a"> </th>`),Zi=q(`<span style="width:50px;display:inline-block" class="svelte-9da8a"> </span> <input type="date" class="form-control svelte-9da8a" style="max-width: 200px;display:inline-block"/>`,1),Qi=q(`<th scope="col" class="svelte-9da8a"><!></th>`),$i=q(`<th scope="col" class="svelte-9da8a">&nbsp;</th>`),ea=q(`<tr class="svelte-9da8a"><!><!><!></tr> <tr class="svelte-9da8a"><!><!><!></tr>`,1),ta=q(`<td class="svelte-9da8a"><span class="placeholder rounded d-inline-block svelte-9da8a" aria-hidden="true"></span></td>`),na=q(`<span class="placeholder d-block mb-1 svelte-9da8a" aria-hidden="true"></span> <span class="placeholder d-block svelte-9da8a" aria-hidden="true"></span>`,1),ra=q(`<span class="placeholder d-block svelte-9da8a" aria-hidden="true"></span>`),ia=q(`<td class="svelte-9da8a"><!></td>`),aa=q(`<td class="svelte-9da8a"><span class="placeholder d-inline-block svelte-9da8a" aria-hidden="true"></span></td>`),oa=q(`<tr class="placeholder-glow hb-skeleton-row svelte-9da8a"><!><!><!></tr>`),sa=q(`<input id="flexCheckDefault" class="form-check-input svelte-9da8a" type="checkbox" checked=""/>`),ca=q(`<input id="flexCheckDefault" class="form-check-input svelte-9da8a" type="checkbox"/>`),la=q(`<td style="box-shadow: none;" class="svelte-9da8a"><div class="form-check svelte-9da8a"><!></div></td>`),ua=q(`<button type="button" style="margin-right:10px" disabled=""> </button>`),da=q(`<button type="button" style="margin-right:10px" disabled=""><i></i></button>`),fa=q(`<button type="button" style="margin-right:10px"> </button>`),pa=q(`<hb-tooltip><button><i></i></button></hb-tooltip>`,2),ma=q(`<button type="button" style="margin-right:10px"><i></i></button>`),ha=q(`<td class="svelte-9da8a"></td>`),ga=q(`<td class="svelte-9da8a"></td>`),_a=q(`<button type="button" class="btn btn-link svelte-9da8a"> </button>`),va=q(`<button type="button" class="btn btn-link svelte-9da8a" aria-label="Copy to clipboard"><i class="bi-clipboard svelte-9da8a"></i></button>`),ya=q(`<td class="svelte-9da8a"><!> <!></td>`),ba=q(`<button type="button" style="margin-right:10px"> </button>`),xa=q(`<hb-tooltip><button type="button" style="margin-right:10px"><i></i></button></hb-tooltip>`,2),Sa=q(`<button type="button" style="margin-right:10px"><i></i></button>`),Ca=q(`<td class="svelte-9da8a"></td>`),wa=q(`<tr><!><!><!></tr>`),Ta=q(`<button type="button" class="btn btn-outline-primary svelte-9da8a"> </button>`),Ea=q(`<span style="margin-left:20px" class="btn-group btn-group-sm svelte-9da8a" role="group" aria-label="Basic example"></span>`),Da=q(`<button aria-label="Settings"><i class="bi-gear svelte-9da8a"></i></button> <!>`,1),Oa=q(`<i class="bi-plus svelte-9da8a"></i>`),ka=q(`<button style="margin-left:20px" class="btn btn-primary btn-sm svelte-9da8a"><!></button>`),Aa=q(`<hb-paginate></hb-paginate>`,2),ja=q(`<table part="table" class="table table-responsive table-striped table-hover align-middle svelte-9da8a" style="table-layout: fixed;width:100%;text-align:left"><thead class="svelte-9da8a"><tr class="svelte-9da8a"><!><!><!></tr><!></thead><tbody class="svelte-9da8a"><!></tbody></table> <nav part="table-actions" style="margin-top:20px" aria-label="actions on selected" class="svelte-9da8a"><!> <!> <!> <!></nav>`,1),Ma=q(`<hb-dialogform></hb-dialogform> <hb-dialog></hb-dialog> <!>`,3),Na={hash:`svelte-9da8a`,code:`@charset "UTF-8";
3
+ \r\f\xA0\v`];function Xr(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||Yr.includes(r[o-1]))&&(s===r.length||Yr.includes(r[s]))?r=(o===0?``:r.substring(0,o))+r.substring(s+1):o=s}}return r===``?null:r}function Zr(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 Qr(e){return e[0]!==`-`||e[1]!==`-`?e.toLowerCase():e}function $r(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(Qr)),i&&c.push(...Object.keys(i).map(Qr));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=Qr(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+=Zr(r)),i&&(n+=Zr(i,!0)),n=n.trim(),n===``?null:n}return e==null?null:String(e)}function Z(e,t,n,r,i,a){var o=e.__className;if(j||o!==n||o===void 0){var s=Xr(n,r,a);(!j||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 ei(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 ti(e,t,n,r){var i=e.__style;if(j||i!==t){var a=$r(t,r);(!j||a!==e.getAttribute(`style`))&&(a==null?e.removeAttribute(`style`):e.style.cssText=a),e.__style=t}else r&&(Array.isArray(r)?(ei(e,n?.[0],r[0]),ei(e,n?.[1],r[1],`important`)):ei(e,n,r));return r}var ni=Symbol(`is custom element`),ri=Symbol(`is html`),ii=_e?`link`:`LINK`;function ai(e){if(j){var t=!1,n=()=>{if(!t){if(t=!0,e.hasAttribute(`value`)){var n=e.value;oi(e,`value`,null),e.value=n}if(e.hasAttribute(`checked`)){var r=e.checked;oi(e,`checked`,null),e.checked=r}}};e.__on_r=n,Ye(n),pn()}}function oi(e,t,n,r){var i=si(e);j&&(i[t]=e.getAttribute(t),t===`src`||t===`srcset`||t===`href`&&e.nodeName===ii)||i[t]!==(i[t]=n)&&(t===`loading`&&(e[he]=n),n==null?e.removeAttribute(t):typeof n!=`string`&&li(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function Q(e,t,n){var r=U,i=W;let a=j;j&&Me(!1),Gn(null),Kn(null);try{t!==`style`&&(ci.has(e.getAttribute(`is`)||e.nodeName)||!customElements||customElements.get(e.getAttribute(`is`)||e.nodeName.toLowerCase())?li(e).includes(t):n&&typeof n==`object`)?e[t]=n:oi(e,t,n==null?n:String(n))}finally{Gn(r),Kn(i),a&&Me(!0)}}function si(e){return e.__attributes??={[ni]:e.nodeName.includes(`-`),[ri]:e.namespaceURI===f}}var ci=new Map;function li(e){var t=e.getAttribute(`is`)||e.nodeName,n=ci.get(t);if(n)return n;ci.set(t,n=[]);for(var r,i=e,a=Element.prototype;a!==i;){for(var o in r=b(i),r)r[o].set&&n.push(o);i=ee(i)}return n}function $(e,t,n,r){var i=!Ve||(n&2)!=0,a=(n&8)!=0,o=(n&16)!=0,s=r,c=!0,l=()=>(c&&(c=!1,s=o?fr(r):r),s);let u;if(a){var d=pe in e||me in e;u=y(e,t)?.set??(d&&t in e?n=>e[t]=n:void 0)}var f,p=!1;a?[f,p]=at(()=>e[t]):f=e[t],f===void 0&&r!==void 0&&(f=l(),u&&(i&&Te(t),u(f)));var m=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 m;if(u){var h=e.$$legacy;return(function(e,t){return arguments.length>0?((!i||!t||h||p)&&u(t?m():e),e):m()})}var g=!1,_=(n&1?Mt:Ft)(()=>(g=!1,m()));a&&G(_);var v=W;return(function(e,t){if(arguments.length>0){let n=t?G(_):i&&a?Qt(e):e;return R(_,n),g=!0,s!==void 0&&(s=n),e}return Hn&&g||v.f&16384?_.v:G(_)})}function ui(e){return new di(e)}var di=class{#e;#t;constructor(e){var t=new Map,n=(e,n)=>{var r=qt(n,!1,!1);return t.set(e,r),r};let r=new Proxy({...e.props||{},$$events:{}},{get(e,r){return G(t.get(r)??n(r,Reflect.get(e,r)))},has(e,r){return r===me?!0:(G(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:kr)(e.component,{target:e.target,anchor:e.anchor,props:r,context:e.context,intro:e.intro??!1,recover:e.recover,transformError:e.transformError}),!P&&(!e?.props?.$$host||e.sync===!1)&&L(),this.#e=r.$$events;for(let e of Object.keys(this.#t))e===`$set`||e===`$destroy`||e===`$on`||v(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=()=>{Pr(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()}},fi;typeof HTMLElement==`function`&&(fi=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=un(`slot`);e!==`default`&&(n.name=e),J(t,n)}}let t={},n=mi(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]=pi(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=ui({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Sn(()=>{En(()=>{this.$$r=!0;for(let e of _(this.$$c)){if(!this.$$p_d[e]?.reflect)continue;this.$$d[e]=this.$$c[e];let t=pi(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]=pi(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 _(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function pi(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 mi(e){let t={};return e.childNodes.forEach(e=>{t[e.slot||`default`]=!0}),t}function hi(e,t,n,r,i,a){let o=class extends fi{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return _(t).map(e=>(t[e].attribute||e).toLowerCase())}};return _(t).forEach(e=>{v(o.prototype,e,{get(){return this.$$c&&e in this.$$c?this.$$c[e]:this.$$d[e]},set(n){n=pi(e,n,t),this.$$d[e]=n;var r=this.$$c;r&&(y(r,e)?.get?r[e]=n:r.$set({[e]:n}))}})}),r.forEach(e=>{v(o.prototype,e,{get(){return this.$$c?.[e]}})}),a&&(o=a(o)),e.element=o,o}var gi=s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs=r()})(e,(function(){"use strict";var e=1e3,t=6e4,n=36e5,r=`millisecond`,i=`second`,a=`minute`,o=`hour`,s=`day`,c=`week`,l=`month`,u=`quarter`,d=`year`,f=`date`,p=`Invalid Date`,m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:`en`,weekdays:`Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday`.split(`_`),months:`January_February_March_April_May_June_July_August_September_October_November_December`.split(`_`),ordinal:function(e){var t=[`th`,`st`,`nd`,`rd`],n=e%100;return`[`+e+(t[(n-20)%10]||t[n]||t[0])+`]`}},_=function(e,t,n){var r=String(e);return!r||r.length>=t?e:``+Array(t+1-r.length).join(n)+e},v={s:_,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?`+`:`-`)+_(r,2,`0`)+`:`+_(i,2,`0`)},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,l),a=n-i<0,o=t.clone().add(r+(a?-1:1),l);return+(-(r+(n-i)/(a?i-o:o-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:d,w:c,d:s,D:f,h:o,m:a,s:i,ms:r,Q:u}[e]||String(e||``).toLowerCase().replace(/s$/,``)},u:function(e){return e===void 0}},y=`en`,b={};b[y]=g;var x=`$isDayjsObject`,S=function(e){return e instanceof te||!(!e||!e[x])},ee=function e(t,n,r){var i;if(!t)return y;if(typeof t==`string`){var a=t.toLowerCase();b[a]&&(i=a),n&&(b[a]=n,i=a);var o=t.split(`-`);if(!i&&o.length>1)return e(o[0])}else{var s=t.name;b[s]=t,i=s}return!r&&i&&(y=i),i||!r&&y},C=function(e,t){if(S(e))return e.clone();var n=typeof t==`object`?t:{};return n.date=e,n.args=arguments,new te(n)},w=v;w.l=ee,w.i=S,w.w=function(e,t){return C(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var te=function(){function g(e){this.$L=ee(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var _=g.prototype;return _.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(t===null)return new Date(NaN);if(w.u(t))return new Date;if(t instanceof Date)return new Date(t);if(typeof t==`string`&&!/Z$/i.test(t)){var r=t.match(m);if(r){var i=r[2]-1||0,a=(r[7]||`0`).substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.init()},_.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},_.$utils=function(){return w},_.isValid=function(){return this.$d.toString()!==p},_.isSame=function(e,t){var n=C(e);return this.startOf(t)<=n&&n<=this.endOf(t)},_.isAfter=function(e,t){return C(e)<this.startOf(t)},_.isBefore=function(e,t){return this.endOf(t)<C(e)},_.$g=function(e,t,n){return w.u(e)?this[t]:this.set(n,e)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(e,t){var n=this,r=!!w.u(t)||t,u=w.p(e),p=function(e,t){var i=w.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(s)},m=function(e,t){return w.w(n.toDate()[e].apply(n.toDate(`s`),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},h=this.$W,g=this.$M,_=this.$D,v=`set`+(this.$u?`UTC`:``);switch(u){case d:return r?p(1,0):p(31,11);case l:return r?p(1,g):p(0,g+1);case c:var y=this.$locale().weekStart||0,b=(h<y?h+7:h)-y;return p(r?_-b:_+(6-b),g);case s:case f:return m(v+`Hours`,0);case o:return m(v+`Minutes`,1);case a:return m(v+`Seconds`,2);case i:return m(v+`Milliseconds`,3);default:return this.clone()}},_.endOf=function(e){return this.startOf(e,!1)},_.$set=function(e,t){var n,c=w.p(e),u=`set`+(this.$u?`UTC`:``),p=(n={},n[s]=u+`Date`,n[f]=u+`Date`,n[l]=u+`Month`,n[d]=u+`FullYear`,n[o]=u+`Hours`,n[a]=u+`Minutes`,n[i]=u+`Seconds`,n[r]=u+`Milliseconds`,n)[c],m=c===s?this.$D+(t-this.$W):t;if(c===l||c===d){var h=this.clone().set(f,1);h.$d[p](m),h.init(),this.$d=h.set(f,Math.min(this.$D,h.daysInMonth())).$d}else p&&this.$d[p](m);return this.init(),this},_.set=function(e,t){return this.clone().$set(e,t)},_.get=function(e){return this[w.p(e)]()},_.add=function(r,u){var f,p=this;r=Number(r);var m=w.p(u),h=function(e){var t=C(p);return w.w(t.date(t.date()+Math.round(e*r)),p)};if(m===l)return this.set(l,this.$M+r);if(m===d)return this.set(d,this.$y+r);if(m===s)return h(1);if(m===c)return h(7);var g=(f={},f[a]=t,f[o]=n,f[i]=e,f)[m]||1,_=this.$d.getTime()+r*g;return w.w(_,this)},_.subtract=function(e,t){return this.add(-1*e,t)},_.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||`YYYY-MM-DDTHH:mm:ssZ`,i=w.z(this),a=this.$H,o=this.$m,s=this.$M,c=n.weekdays,l=n.months,u=n.meridiem,d=function(e,n,i,a){return e&&(e[n]||e(t,r))||i[n].slice(0,a)},f=function(e){return w.s(a%12||12,e,`0`)},m=u||function(e,t,n){var r=e<12?`AM`:`PM`;return n?r.toLowerCase():r};return r.replace(h,(function(e,r){return r||function(e){switch(e){case`YY`:return String(t.$y).slice(-2);case`YYYY`:return w.s(t.$y,4,`0`);case`M`:return s+1;case`MM`:return w.s(s+1,2,`0`);case`MMM`:return d(n.monthsShort,s,l,3);case`MMMM`:return d(l,s);case`D`:return t.$D;case`DD`:return w.s(t.$D,2,`0`);case`d`:return String(t.$W);case`dd`:return d(n.weekdaysMin,t.$W,c,2);case`ddd`:return d(n.weekdaysShort,t.$W,c,3);case`dddd`:return c[t.$W];case`H`:return String(a);case`HH`:return w.s(a,2,`0`);case`h`:return f(1);case`hh`:return f(2);case`a`:return m(a,o,!0);case`A`:return m(a,o,!1);case`m`:return String(o);case`mm`:return w.s(o,2,`0`);case`s`:return String(t.$s);case`ss`:return w.s(t.$s,2,`0`);case`SSS`:return w.s(t.$ms,3,`0`);case`Z`:return i}return null}(e)||i.replace(`:`,``)}))},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(r,f,p){var m,h=this,g=w.p(f),_=C(r),v=(_.utcOffset()-this.utcOffset())*t,y=this-_,b=function(){return w.m(h,_)};switch(g){case d:m=b()/12;break;case l:m=b();break;case u:m=b()/3;break;case c:m=(y-v)/6048e5;break;case s:m=(y-v)/864e5;break;case o:m=y/n;break;case a:m=y/t;break;case i:m=y/e;break;default:m=y}return p?m:w.a(m)},_.daysInMonth=function(){return this.endOf(l).$D},_.$locale=function(){return b[this.$L]},_.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=ee(e,t,!0);return r&&(n.$L=r),n},_.clone=function(){return w.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},g}(),ne=te.prototype;return C.prototype=ne,[[`$ms`,r],[`$s`,i],[`$m`,a],[`$H`,o],[`$W`,s],[`$M`,l],[`$y`,d],[`$D`,f]].forEach((function(e){ne[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),C.extend=function(e,t){return e.$i||=(e(t,te,C),!0),C},C.locale=ee,C.isDayjs=S,C.unix=function(e){return C(1e3*e)},C.en=b[y],C.Ls=b,C.p={},C}))})),_i=s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r(gi()):typeof define==`function`&&define.amd?define([`dayjs`],r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_locale_it=r(n.dayjs)})(e,(function(e){"use strict";function t(e){return e&&typeof e==`object`&&`default`in e?e:{default:e}}var n=t(e),r={name:`it`,weekdays:`domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato`.split(`_`),weekdaysShort:`dom_lun_mar_mer_gio_ven_sab`.split(`_`),weekdaysMin:`do_lu_ma_me_gi_ve_sa`.split(`_`),months:`gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre`.split(`_`),weekStart:1,monthsShort:`gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic`.split(`_`),formats:{LT:`HH:mm`,LTS:`HH:mm:ss`,L:`DD/MM/YYYY`,LL:`D MMMM YYYY`,LLL:`D MMMM YYYY HH:mm`,LLLL:`dddd D MMMM YYYY HH:mm`},relativeTime:{future:`tra %s`,past:`%s fa`,s:`qualche secondo`,m:`un minuto`,mm:`%d minuti`,h:`un'ora`,hh:`%d ore`,d:`un giorno`,dd:`%d giorni`,M:`un mese`,MM:`%d mesi`,y:`un anno`,yy:`%d anni`},ordinal:function(e){return e+`º`}};return n.default.locale(r,null,!0),r}))})),vi=l(gi());_i();var yi={name:`@htmlbricks/svelte-webcomponent`,private:!0,version:`0.66.14`,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`,bootstrap:`^5.3.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.4.7`}};function bi(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`))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 xi=class e{dictionary;lang=``;constructor(e){if(!e?.dictionary)throw Error(`no dictionary provided`);this.dictionary=e.dictionary,this.setLang(e?.lang)}setLang(t){t||=e.getDefaultLang(),this.lang=t}translateWord(t,n){return e.getDictionaryWord(t,this.dictionary,n||this.lang)}translateDate(t,n,r){return e.formatDate(t,n,r||this.lang)}static getDefaultLang(){let e=`en`;return navigator?.languages&&navigator.languages[0]?.split(`-`)[0]?.toLowerCase()?.length&&(e=navigator.languages[0].split(`-`)[0].toLowerCase()),e}static getDictionaryWord(t,n,r){if(!t)throw Error(`no wordKey provided`);if(!n)throw Error(`no dictionary provided`);if(r&&n[r]?.[t])return n[r][t];let i=``,a=e.getDefaultLang();if(!r||a!==r){let e=n?.[a];e?.[t]&&(i=e[t])}return i}static formatDate(t,n,r){if(!t)throw Error(`no date provided`);if(typeof t.getMonth!=`function`)throw Error(`wrong date format`);return new Intl.DateTimeFormat(r||e.getDefaultLang(),n).format(t)}},Si={en:{actions:`Actions`,selectAll:`Select all`,deselectAll:`Deselect all`,start:`Start`,end:`End`,all:`all`},it:{actions:`Azioni`,selectAll:`Seleziona tutti`,deselectAll:`Deseleziona tutti`,start:`Inizio`,end:`Fine`,all:`tutti`}},Ci=q(`<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css" class="svelte-9da8a"/>`),wi=q(`<button aria-label="Select all" class="btn btn-link svelte-9da8a"> </button>`),Ti=q(`<button aria-label="Deselect all" class="btn btn-link svelte-9da8a"> </button>`),Ei=q(`<th scope="col" class="svelte-9da8a"><!></th>`),Di=q(`<th scope="col" class="svelte-9da8a"></th>`),Oi=q(`<hb-tooltip><i class="bi bi-info-circle svelte-9da8a"></i> </hb-tooltip>`,2),ki=q(`<button style="border:none; background-color:inherit" class="svelte-9da8a"><!></button>`),Ai=q(`<th scope="col" class="svelte-9da8a"><!> <!></th>`),ji=q(`<th scope="col" class="svelte-9da8a"> </th>`),Mi=q(`<th scope="col" class="svelte-9da8a"> </th>`),Ni=q(`<span style="width:50px;display:inline-block" class="svelte-9da8a"> </span> <input type="date" class="form-control svelte-9da8a" style="max-width: 200px;display:inline-block"/>`,1),Pi=q(`<input type="text" class="form-control svelte-9da8a" placeholder="..." aria-label="Search" aria-describedby="search"/>`),Fi=q(`<option class="svelte-9da8a"> </option>`),Ii=q(`<select class="form-select svelte-9da8a"><option class="svelte-9da8a"> </option><!></select>`),Li=q(`<th scope="col" class="svelte-9da8a"><!> <!></th>`),Ri=q(`<th scope="col" class="svelte-9da8a">&nbsp;</th>`),zi=q(`<!> <!>`,1),Bi=q(`<tr class="svelte-9da8a"><!><!></tr>`),Vi=q(`<button class="btn btn-link svelte-9da8a"> </button>`),Hi=q(`<button class="btn btn-link svelte-9da8a"> </button>`),Ui=q(`<th scope="col" class="svelte-9da8a"><!></th>`),Wi=q(`<span style="width:50px;display:inline-block" class="svelte-9da8a">Inizio</span> <input type="date" class="form-control svelte-9da8a" style="max-width: 200px;display:inline-block"/>`,1),Gi=q(`<input type="text" class="form-control svelte-9da8a" placeholder="..." aria-label="Search" aria-describedby="search"/>`),Ki=q(`<option class="svelte-9da8a"> </option>`),qi=q(`<select class="form-select svelte-9da8a"><option class="svelte-9da8a"> </option><!></select>`),Ji=q(`<th scope="col" class="svelte-9da8a"><!></th>`),Yi=q(`<th scope="col" class="svelte-9da8a">&nbsp;</th>`),Xi=q(`<th scope="col" class="svelte-9da8a"> </th>`),Zi=q(`<span style="width:50px;display:inline-block" class="svelte-9da8a"> </span> <input type="date" class="form-control svelte-9da8a" style="max-width: 200px;display:inline-block"/>`,1),Qi=q(`<th scope="col" class="svelte-9da8a"><!></th>`),$i=q(`<th scope="col" class="svelte-9da8a">&nbsp;</th>`),ea=q(`<tr class="svelte-9da8a"><!><!><!></tr> <tr class="svelte-9da8a"><!><!><!></tr>`,1),ta=q(`<td class="svelte-9da8a"><span class="placeholder rounded d-inline-block svelte-9da8a" aria-hidden="true"></span></td>`),na=q(`<span class="placeholder d-block mb-1 svelte-9da8a" aria-hidden="true"></span> <span class="placeholder d-block svelte-9da8a" aria-hidden="true"></span>`,1),ra=q(`<span class="placeholder d-block svelte-9da8a" aria-hidden="true"></span>`),ia=q(`<td class="svelte-9da8a"><!></td>`),aa=q(`<td class="svelte-9da8a"><span class="placeholder d-inline-block svelte-9da8a" aria-hidden="true"></span></td>`),oa=q(`<tr class="placeholder-glow hb-skeleton-row svelte-9da8a"><!><!><!></tr>`),sa=q(`<input id="flexCheckDefault" class="form-check-input svelte-9da8a" type="checkbox" checked=""/>`),ca=q(`<input id="flexCheckDefault" class="form-check-input svelte-9da8a" type="checkbox"/>`),la=q(`<td style="box-shadow: none;" class="svelte-9da8a"><div class="form-check svelte-9da8a"><!></div></td>`),ua=q(`<button type="button" style="margin-right:10px" disabled=""> </button>`),da=q(`<button type="button" style="margin-right:10px" disabled=""><i></i></button>`),fa=q(`<button type="button" style="margin-right:10px"> </button>`),pa=q(`<hb-tooltip><button><i></i></button></hb-tooltip>`,2),ma=q(`<button type="button" style="margin-right:10px"><i></i></button>`),ha=q(`<td class="svelte-9da8a"></td>`),ga=q(`<td class="svelte-9da8a"></td>`),_a=q(`<button type="button" class="btn btn-link svelte-9da8a"> </button>`),va=q(`<button type="button" class="btn btn-link svelte-9da8a" aria-label="Copy to clipboard"><i class="bi-clipboard svelte-9da8a"></i></button>`),ya=q(`<td class="svelte-9da8a"><!> <!></td>`),ba=q(`<button type="button" style="margin-right:10px"> </button>`),xa=q(`<hb-tooltip><button type="button" style="margin-right:10px"><i></i></button></hb-tooltip>`,2),Sa=q(`<button type="button" style="margin-right:10px"><i></i></button>`),Ca=q(`<td class="svelte-9da8a"></td>`),wa=q(`<tr><!><!><!></tr>`),Ta=q(`<button type="button" class="btn btn-outline-primary svelte-9da8a"> </button>`),Ea=q(`<span style="margin-left:20px" class="btn-group btn-group-sm svelte-9da8a" role="group" aria-label="Basic example"></span>`),Da=q(`<button aria-label="Settings"><i class="bi-gear svelte-9da8a"></i></button> <!>`,1),Oa=q(`<i class="bi-plus svelte-9da8a"></i>`),ka=q(`<button style="margin-left:20px" class="btn btn-primary btn-sm svelte-9da8a"><!></button>`),Aa=q(`<hb-paginate></hb-paginate>`,2),ja=q(`<table part="table" class="table table-responsive table-striped table-hover align-middle svelte-9da8a" style="table-layout: fixed;width:100%;text-align:left"><thead class="svelte-9da8a"><tr class="svelte-9da8a"><!><!><!></tr><!></thead><tbody class="svelte-9da8a"><!></tbody></table> <nav part="table-actions" style="margin-top:20px" aria-label="actions on selected" class="svelte-9da8a"><!> <!> <!> <!></nav>`,1),Ma=q(`<hb-dialogform></hb-dialogform> <hb-dialog></hb-dialog> <!>`,3),Na={hash:`svelte-9da8a`,code:`@charset "UTF-8";
4
4
  @import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");
5
5
  @import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css");
6
6
  /*!