@htmlbricks/hb-gallery-video 0.71.35 → 0.71.36

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,49 +1,110 @@
1
- ## `hb-gallery-video` gallery-video
1
+ # `hb-gallery-video` (gallery-video)
2
2
 
3
3
  **Category:** media
4
4
  **Tags:** media, video, gallery
5
5
 
6
- ### What it does
6
+ ## Overview
7
7
 
8
- Paginated grid of `hb-card-video` tiles built from JSON `cards`, with `hb-paginate` for page/size and optional text or date-range filtering (`initialdate`/`lastdate`, `filter`, `externalfilter`). Passes date format, link label, and primary color into each card; listens to paginator events to sync `page`/`pages` and emits host events for paging and filters.
8
+ `hb-gallery-video` renders a **paginated grid** of **`hb-card-video`** tiles from a **`cards`** list (JSON). It embeds **`hb-paginate`** for page navigation and page size, and adds an optional **text search** and **date range** toolbar when the data supports it.
9
9
 
10
- ### Custom element
10
+ The host layout uses **Bulma** (`container is-fluid`, `columns`, `field` / `control`, responsive visibility helpers) inside the shadow root. The component registers **`hb-paginate`** and **`hb-card-video`** at runtime (same package version as the gallery).
11
11
 
12
- `hb-gallery-video`
12
+ ## Data model (`cards`)
13
13
 
14
- ### Attributes (snake_case; use string values in HTML)
14
+ `cards` is a **JSON array** of objects compatible with `ICard`:
15
15
 
16
- - `id` optional string
17
- - `style` optional string
18
- - `cards` required string (JSON array: `videoSrc`, `title?`, `time?`, `provider?`, `dateformat?`, …)
19
- - `size` optional number (items per page; string in HTML)
20
- - `page` optional number (0-based; string in HTML)
21
- - `pages` optional number (total pages when using external filter; string in HTML)
22
- - `link_label` optional string
23
- - `dateformat` optional string (day.js format)
24
- - `primarycolor` optional string
25
- - `filter` — optional string (text filter)
26
- - `externalfilter` — optional string (truthy enables external pagination/filter behavior)
27
- - `disabletextfilter` — optional `"yes"` to disable text filter UI
28
- - `initialdate` — optional (ISO/date string when passed from host)
29
- - `lastdate` — optional (ISO/date string when passed from host)
16
+ | Field | Required | Description |
17
+ | --- | --- | --- |
18
+ | `videoSrc` | Yes | Video URL (MP4 source) or YouTube embed URL when `provider` is `"youtube"`. |
19
+ | `title` | No | Title shown on the card. |
20
+ | `description` | No | Description text (also used in text filter matching). |
21
+ | `time` | No | Recording or publish time. If **any** card omits `time`, **date filters are disabled** and a warning is logged (`UNABLE TO ACTIVATE SEARCH FILTER!`). |
22
+ | `pageUri` | No | Passed to the card as `pageuri` for the link target. |
23
+ | `provider` | No | Set to `"youtube"` for iframe embeds; otherwise the card uses a `<video>` element. |
24
+ | `dateformat` | No | Per-card date format (type-level); the gallery also exposes a top-level `dateformat` for cards it renders. |
30
25
 
31
- ### Events
26
+ Each item gets an internal `_id` derived in the component; you do not need to supply it.
32
27
 
33
- - `pageChange` `{ page: number; cards: ICard[] }`
34
- - `textFilterVideos` — `{ filter?: string }` (when `externalfilter` is set and filter changes)
35
- - `dateFilterVideos` — `{ start?: Date; end?: Date; dateKey: string }`
28
+ ## Attributes (snake_case in HTML)
36
29
 
37
- ### Usage notes
30
+ Web component **attributes are strings**. Encode booleans as **`yes`** / **`no`**, numbers as numeric strings, and structured data as **JSON strings** (for `cards`).
38
31
 
39
- CSS part: `container`. Registers `hb-paginate` and `hb-card-video`. `cards` must be valid JSON on the attribute. Layout and filters use **Bulma** (`container`, `columns`, `field` / `control`, `input`, visibility helpers).
32
+ | Attribute | Required | Description |
33
+ | --- | --- | --- |
34
+ | `cards` | Yes | JSON array of card objects (see above). Invalid JSON yields an empty list. |
35
+ | `id` | No | Optional element id. |
36
+ | `style` | No | Optional host inline style (typed on the component interface). |
37
+ | `size` | No | Items per page for the internal slice (default **12**). String number in HTML. |
38
+ | `page` | No | Current page index, **0-based** (default **0**). When `page` is **0**, the gallery forces the card date format to **`dddd DD MMMM YYYY HH:mm`**; for **non-zero** pages it uses the `dateformat` attribute instead. |
39
+ | `pages` | No | Total page count when **`externalfilter`** is enabled and you drive pagination from the host (see below). |
40
+ | `link_label` | No | Declared on the component props; use **`hb-card-video`** defaults or per-card behavior unless your bundle forwards this to children. |
41
+ | `dateformat` | No | [Day.js](https://day.js.org/docs/en/display/format) format string for timestamps passed to cards when `page` ≠ 0 (default prop: `dddd DD MMMM YYYY HH:mm`). |
42
+ | `primarycolor` | No | Passed to **`hb-paginate`** for accent styling. |
43
+ | `filter` | No | Text filter string; matches **title** or **description** (case-insensitive). Ignored for internal filtering when `externalfilter` is on. |
44
+ | `externalfilter` | No | When set (non-empty), **internal** text/date slicing and client-side pagination are bypassed for filtering: the grid shows **all** `cardItems`, **`page` is not updated** from the paginator, and **`pages`** comes from this attribute when it is a valid number. Changing `filter` still dispatches **`textFilterVideos`**. |
45
+ | `disabletextfilter` | No | Set to **`yes`** to hide the text search field. |
46
+ | `initialdate` / `lastdate` | No | Fallback date range when deriving bounds from cards; effective range is computed from card `time` values when all cards have dates. |
40
47
 
41
- ### Minimal HTML example
48
+ ## Behavior
49
+
50
+ ### Internal mode (`externalfilter` off)
51
+
52
+ - Cards are sorted by **`time`** descending when every card has a `time`.
53
+ - **Date inputs** restrict the visible set to `[start, end]` (day granularity); changing dates clears the text `filter` and dispatches **`dateFilterVideos`**.
54
+ - **Text filter** reduces the set by title/description.
55
+ - The grid shows a **slice** of the filtered list for the current `page` and `size`.
56
+ - **`pageChange`** is emitted when the user changes page via **`hb-paginate`**; the component updates `page` and includes the **current page’s cards** in the event detail.
57
+
58
+ ### External filter mode (`externalfilter` on)
59
+
60
+ - The gallery still parses `cards` but **does not** narrow the list by text or date **in the component**; the grid iterates **every** entry in `cardItems` (no per-page slice).
61
+ - The search and date inputs can still emit **`textFilterVideos`** / **`dateFilterVideos`** so the host can refetch data or replace `cards`.
62
+ - **`pageChange`** still fires from the paginator, but **`page` is not updated** inside the gallery; **`pageChange`**’s `cards` payload is the **full** `cardItems` array in this mode.
63
+ - Use **`pages`** (and your own pipeline) when you supply total pages from outside (see `pages` derivation in the source when `externalfilter` is set).
64
+
65
+ ### Empty state
66
+
67
+ If there are no cards after processing, the paginator and grid are not shown.
68
+
69
+ ## Custom events
70
+
71
+ Listen on the host element (names as dispatched):
72
+
73
+ | Event | `detail` |
74
+ | --- | --- |
75
+ | `pageChange` | `{ page: number; cards: ICard[] }` — `cards` are the current page slice when **`externalfilter`** is off; when it is on, `cards` is the **entire** in-memory list. |
76
+ | `textFilterVideos` | `{ filter?: string }` — fired when `externalfilter` is set and `filter` is defined (including updates). |
77
+ | `dateFilterVideos` | `{ start?: Date; end?: Date; dateKey: "start" \| "end" }` — fired when the user changes the start or end date input. |
78
+
79
+ The authoring `Events` type in `types/webcomponent.type.d.ts` is empty; the table above reflects **`component.wc.svelte`**.
80
+
81
+ ## CSS
82
+
83
+ ### Custom properties
84
+
85
+ | Variable | Default (host) | Role |
86
+ | --- | --- | --- |
87
+ | `--hb-gallery-video-date-input-max-width` | `12.5rem` | Max width of date filter inputs (`.hb-gallery-video__date`). |
88
+ | `--bulma-column-gap` | (Bulma) | Gutters between toolbar fields and the card grid; align with your Bulma theme. |
89
+
90
+ ### Parts
91
+
92
+ | Part | Description |
93
+ | --- | --- |
94
+ | `container` | Root `container is-fluid` wrapping filters, the card grid, and pagination. |
95
+
96
+ ## Slots
97
+
98
+ None.
99
+
100
+ ## Minimal HTML example
42
101
 
43
102
  ```html
44
103
  <hb-gallery-video
45
- cards="[{&quot;title&quot;:&quot;Clip&quot;,&quot;videoSrc&quot;:&quot;https://example.com/video.mp4&quot;}]"
104
+ cards='[{"title":"Clip","videoSrc":"https://example.com/video.mp4","time":"2021-08-06T22:46:30.565Z"}]'
46
105
  size="12"
47
106
  page="0"
48
107
  ></hb-gallery-video>
49
108
  ```
109
+
110
+ Load the bundle that registers `hb-gallery-video` (and its dependencies) per your app’s HTML Bricks / bundle setup.
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,C=Object.getPrototypeOf,w=Object.isExtensible,T=()=>{};function ee(e){for(var t=0;t<e.length;t++)e[t]()}function te(){var e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}var E=1024,D=2048,ne=4096,re=8192,ie=16384,ae=32768,oe=1<<25,se=65536,ce=1<<19,le=1<<20,ue=1<<25,de=65536,fe=1<<21,pe=1<<22,me=1<<23,he=Symbol(`$state`),ge=Symbol(`legacy props`),_e=Symbol(``),ve=new class extends Error{name=`StaleReactionError`;message="The reaction that called `getAbortSignal()` was re-run or destroyed"},ye=!!globalThis.document?.contentType&&globalThis.document.contentType.includes(`xml`);function be(){throw Error(`https://svelte.dev/e/async_derived_orphan`)}function xe(e,t,n){throw Error(`https://svelte.dev/e/each_key_duplicate`)}function Se(e){throw Error(`https://svelte.dev/e/effect_in_teardown`)}function Ce(){throw Error(`https://svelte.dev/e/effect_in_unowned_derived`)}function we(e){throw Error(`https://svelte.dev/e/effect_orphan`)}function Te(){throw Error(`https://svelte.dev/e/effect_update_depth_exceeded`)}function Ee(){throw Error(`https://svelte.dev/e/hydration_failed`)}function De(e){throw Error(`https://svelte.dev/e/props_invalid_value`)}function Oe(){throw Error(`https://svelte.dev/e/state_descriptors_fixed`)}function ke(){throw Error(`https://svelte.dev/e/state_prototype_fixed`)}function Ae(){throw Error(`https://svelte.dev/e/state_unsafe_mutation`)}function je(){throw Error(`https://svelte.dev/e/svelte_boundary_reset_onerror`)}function Me(e){console.warn(`https://svelte.dev/e/hydration_mismatch`)}function Ne(){console.warn(`https://svelte.dev/e/svelte_boundary_reset_noop`)}var O=!1;function Pe(e){O=e}var k;function A(e){if(e===null)throw Me(),u;return k=e}function Fe(){return A(sn(k))}function j(e){if(O){if(sn(k)!==null)throw Me(),u;k=e}}function Ie(e=1){if(O){for(var t=e,n=k;t--;)n=sn(n);k=n}}function Le(e=!0){for(var t=0,n=k;;){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 Re(e){if(!e||e.nodeType!==8)throw Me(),u;return e.data}function ze(e){return e===this.v}function Be(e,t){return e==e?e!==t||typeof e==`object`&&!!e||typeof e==`function`:t==t}function Ve(e){return!Be(e,this.v)}var He=!1,Ue=!1,M=null;function We(e){M=e}function Ge(e,t=!1,n){M={p:M,i:!1,c:null,e:null,s:e,x:null,r:G,l:Ue&&!t?{s:null,u:null,$:[]}:null}}function Ke(e){var t=M,n=t.e;if(n!==null){t.e=null;for(var r of n)wn(r)}return e!==void 0&&(t.x=e),t.i=!0,M=t.p,e??{}}function qe(){return!Ue||M!==null&&M.l===null}var Je=[];function Ye(){var e=Je;Je=[],ee(e)}function Xe(e){if(Je.length===0&&!ut){var t=Je;queueMicrotask(()=>{t===Je&&Ye()})}Je.push(e)}function Ze(){for(;Je.length>0;)Ye()}function Qe(e){var t=G;if(t===null)return U.f|=me,e;if(!(t.f&32768)&&!(t.f&4))throw e;$e(e,t)}function $e(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 et=~(D|ne|E);function N(e,t){e.f=e.f&et|t}function tt(e){e.f&512||e.deps===null?N(e,E):N(e,ne)}function nt(e){if(e!==null)for(let t of e)!(t.f&2)||!(t.f&65536)||(t.f^=de,nt(t.deps))}function rt(e,t,n){e.f&2048?t.add(e):e.f&4096&&n.add(e),nt(e.deps),N(e,E)}var it=!1,at=!1;function ot(e){var t=at;try{return at=!1,[e(),at]}finally{at=t}}var st=new Set,P=null,ct=null,F=null,lt=null,ut=!1,dt=!1,ft=null,pt=null,mt=0,ht=1,gt=class e{id=ht++;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)N(n,D),this.schedule(n);for(n of t.m)N(n,ne),this.schedule(n)}}#p(){if(mt++>1e3&&(st.delete(this),_t()),!this.#d()){for(let e of this.#o)this.#s.delete(e),N(e,D),this.schedule(e);for(let e of this.#s)N(e,ne),this.schedule(e)}let t=this.#a;this.#a=[],this.apply();var n=ft=[],r=[],i=pt=[];for(let e of t)try{this.#m(e,n,r)}catch(t){throw wt(e),t}if(P=null,i.length>0){var a=e.ensure();for(let e of i)a.schedule(e)}if(ft=null,pt=null,this.#d()||this.#f()){this.#h(r),this.#h(n);for(let[e,t]of this.#c)Ct(e,t)}else{this.#n.size===0&&st.delete(this),this.#o.clear(),this.#s.clear();for(let e of this.#e)e(this);this.#e.clear(),ct=this,yt(r),yt(n),ct=null,this.#i?.resolve()}var o=P;if(this.#a.length>0){let e=o??=this;e.#a.push(...this.#a.filter(t=>!e.#a.includes(t)))}o!==null&&(st.add(o),o.#p()),st.has(this)||this.#g()}#m(e,t,n){e.f^=E;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^=E:i&4?t.push(r):He&&i&16777224?n.push(r):$n(r)&&(i&16&&this.#s.add(r),ir(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)rt(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]),F?.set(e,e.v))}activate(){P=this}deactivate(){P=null,F=null}flush(){try{dt=!0,P=this,this.#p()}finally{mt=0,lt=null,ft=null,pt=null,dt=!1,P=null,F=null,Wt.clear()}}discard(){for(let e of this.#t)e(this);this.#t.clear(),st.delete(this)}#g(){for(let c of st){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)bt(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 st)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,Xe(()=>{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??=te()).promise}static ensure(){if(P===null){let t=P=new e;dt||(st.add(P),ut||Xe(()=>{P===t&&t.flush()}))}return P}apply(){if(!He||!this.is_fork&&st.size===1){F=null;return}F=new Map;for(let[e,[t]]of this.current)F.set(e,t);for(let n of st)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)F.has(e)||F.set(e,t)}}schedule(e){if(lt=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(ft!==null&&t===G&&(He||(U===null||!(U.f&2))&&!it))return;if(n&96){if(!(n&1024))return;t.f^=E}}this.#a.push(t)}};function I(e){var t=ut;ut=!0;try{var n;for(e&&(P!==null&&!P.is_fork&&P.flush(),n=e());;){if(Ze(),P===null)return n;P.flush()}}finally{ut=t}}function _t(){try{Te()}catch(e){$e(e,lt)}}var vt=null;function yt(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if(!(r.f&24576)&&$n(r)&&(vt=new Set,ir(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&Fn(r),vt?.size>0)){Wt.clear();for(let e of vt){if(e.f&24576)continue;let t=[e],n=e.parent;for(;n!==null;)vt.has(n)&&(vt.delete(n),t.push(n)),n=n.parent;for(let e=t.length-1;e>=0;e--){let n=t[e];n.f&24576||ir(n)}}vt.clear()}}vt=null}}function bt(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?bt(i,t,n,r):e&4194320&&!(e&2048)&&xt(i,t,r)&&(N(i,D),St(i))}}function xt(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&&xt(r,t,n))return n.set(r,!0),!0}return n.set(e,!1),!1}function St(e){P.schedule(e)}function Ct(e,t){if(!(e.f&32&&e.f&1024)){e.f&2048?t.d.push(e):e.f&4096&&t.m.push(e),N(e,E);for(var n=e.first;n!==null;)Ct(n,t),n=n.next}}function wt(e){N(e,E);for(var t=e.first;t!==null;)wt(t),t=t.next}function Tt(e){let t=0,n=Kt(0),r;return()=>{xn()&&(Z(n),kn(()=>(t===0&&(r=cr(()=>e(()=>Zt(n)))),t+=1,()=>{Xe(()=>{--t,t===0&&(r?.(),r=void 0,Zt(n))})})))}}var Et=se|ce;function Dt(e,t,n,r){new Ot(e,t,n,r)}var Ot=class{parent;is_pending=!1;transform_error;#e;#t=O?k: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=Tt(()=>(this.#m=Kt(this.#l),()=>{this.#m=null}));constructor(e,t,n,r){this.#e=e,this.#n=t,this.#r=e=>{var t=G;t.b=this,t.f|=128,n(e)},this.parent=G.b,this.transform_error=r??this.parent?.transform_error??(e=>e),this.#i=An(()=>{if(O){let e=this.#t;Fe();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()},Et),O&&(this.#e=k)}#g(){try{this.#a=V(()=>this.#r(this.#e))}catch(e){this.error(e)}}#_(e){let t=this.#n.failed;t&&(this.#s=V(()=>{t(this.#e,()=>e,()=>()=>{})}))}#v(){let e=this.#n.pending;e&&(this.is_pending=!0,this.#o=V(()=>e(this.#e)),Xe(()=>{var e=this.#c=document.createDocumentFragment(),t=R();e.append(t),this.#a=this.#x(()=>V(()=>this.#r(t))),this.#u===0&&(this.#e.before(e),this.#c=null,In(this.#o,()=>{this.#o=null}),this.#b(P))}))}#y(){try{if(this.is_pending=this.has_pending_snippet(),this.#u=0,this.#l=0,this.#a=V(()=>{this.#r(this.#e)}),this.#u>0){var e=this.#c=document.createDocumentFragment();Bn(this.#a,e);let t=this.#n.pending;this.#o=V(()=>t(this.#e))}else this.#b(P)}catch(e){this.error(e)}}#b(e){this.is_pending=!1,e.transfer_effects(this.#f,this.#p)}defer_effect(e){rt(e,this.#f,this.#p)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#n.pending}#x(e){var t=G,n=U,r=M;K(this.#i),W(this.#i),We(this.#i.ctx);try{return gt.ensure(),e()}catch(e){return Qe(e),null}finally{K(t),W(n),We(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&&In(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,Xe(()=>{this.#d=!1,this.#m&&Yt(this.#m,this.#l)}))}get_effect_pending(){return this.#h(),Z(this.#m)}error(e){var t=this.#n.onerror;let n=this.#n.failed;if(!t&&!n)throw e;this.#a&&=(H(this.#a),null),this.#o&&=(H(this.#o),null),this.#s&&=(H(this.#s),null),O&&(A(this.#t),Ie(),A(Le()));var r=!1,i=!1;let a=()=>{if(r){Ne();return}r=!0,i&&je(),this.#s!==null&&In(this.#s,()=>{this.#s=null}),this.#x(()=>{this.#y()})},o=e=>{try{i=!0,t?.(e,a),i=!1}catch(e){$e(e,this.#i&&this.#i.parent)}n&&(this.#s=this.#x(()=>{try{return V(()=>{var t=G;t.b=this,t.f|=128,n(this.#e,()=>e,()=>a)})}catch(e){return $e(e,this.#i.parent),null}}))};Xe(()=>{var t;try{t=this.transform_error(e)}catch(e){$e(e,this.#i&&this.#i.parent);return}typeof t==`object`&&t&&typeof t.then==`function`?t.then(o,e=>$e(e,this.#i&&this.#i.parent)):o(t)})}};function kt(e,t,n,r){let i=qe()?Nt:It;var a=e.filter(e=>!e.settled);if(n.length===0&&a.length===0){r(t.map(i));return}var o=G,s=At(),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||$e(e,o)}jt()}if(n.length===0){c.then(()=>l(t.map(i)));return}var u=Mt();function d(){Promise.all(n.map(e=>Pt(e))).then(e=>l([...t.map(i),...e])).catch(e=>$e(e,o)).finally(()=>u())}c?c.then(()=>{s(),d(),jt()}):d()}function At(){var e=G,t=U,n=M,r=P;return function(i=!0){K(e),W(t),We(n),i&&!(e.f&16384)&&(r?.activate(),r?.apply())}}function jt(e=!0){K(null),W(null),We(null),e&&P?.deactivate()}function Mt(){var e=G,t=e.b,n=P,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 Nt(e){var t=2|D,n=U!==null&&U.f&2?U:null;return G!==null&&(G.f|=ce),{ctx:M,deps:null,effects:null,equals:ze,f:t,fn:e,reactions:null,rv:0,v:d,wv:0,parent:n??G,ac:null}}function Pt(e,t,n){let r=G;r===null&&be();var i=void 0,a=Kt(d),o=!U,s=new Map;return On(()=>{var t=G,n=te();i=n.promise;try{Promise.resolve(e()).then(n.resolve,n.reject).finally(jt)}catch(e){n.reject(e),jt()}var c=P;if(o){if(t.f&32768)var l=Mt();if(r.b.is_rendered())s.get(c)?.reject(ve),s.delete(c);else{for(let e of s.values())e.reject(ve);s.clear()}s.set(c,n)}let u=(e,n=void 0)=>{if(l&&l(n===ve),!(n===ve||t.f&16384)){if(c.activate(),n)a.f|=me,Yt(a,n);else{a.f&8388608&&(a.f^=me),Yt(a,e);for(let[e,t]of s){if(s.delete(e),e===c)break;t.reject(ve)}}c.deactivate()}};n.promise.then(u,e=>u(null,e||`unknown`))}),Sn(()=>{for(let e of s.values())e.reject(ve)}),new Promise(e=>{function t(n){function r(){n===i?e(a):t(i)}n.then(r,r)}t(i)})}function Ft(e){let t=Nt(e);return He||Kn(t),t}function It(e){let t=Nt(e);return t.equals=Ve,t}function Lt(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)H(t[n])}}function Rt(e){for(var t=e.parent;t!==null;){if(!(t.f&2))return t.f&16384?null:t;t=t.parent}return null}function zt(e){var t,n=G;K(Rt(e));try{e.f&=~de,Lt(e),t=tr(e)}finally{K(n)}return t}function Bt(e){var t=e.v,n=zt(e);if(!e.equals(n)&&(e.wv=Qn(),(!P?.is_fork||e.deps===null)&&(e.v=n,P?.capture(e,t,!0),e.deps===null))){N(e,E);return}Un||(F===null?tt(e):(xn()||P?.is_fork)&&F.set(e,n))}function Vt(e){if(e.effects!==null)for(let t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(ve),t.teardown=T,t.ac=null,rr(t,0),Mn(t))}function Ht(e){if(e.effects!==null)for(let t of e.effects)t.teardown&&ir(t)}var Ut=new Set,Wt=new Map,Gt=!1;function Kt(e,t){return{f:0,v:e,reactions:null,equals:ze,rv:0,wv:0}}function qt(e,t){let n=Kt(e,t);return Kn(n),n}function Jt(e,t=!1,n=!0){let r=Kt(e);return t||(r.equals=Ve),Ue&&n&&M!==null&&M.l!==null&&(M.l.s??=[]).push(r),r}function L(e,t,n=!1){return U!==null&&(!Gn||U.f&131072)&&qe()&&U.f&4325394&&(q===null||!h.call(q,e))&&Ae(),Yt(e,n?$t(t):t,pt)}function Yt(e,t,n=null){if(!e.equals(t)){var r=e.v;Un?Wt.set(e,t):Wt.set(e,r),e.v=t;var i=gt.ensure();if(i.capture(e,r),e.f&2){let t=e;e.f&2048&&zt(t),F===null&&tt(t)}e.wv=Qn(),Qt(e,D,n),qe()&&G!==null&&G.f&1024&&!(G.f&96)&&(X===null?qn([e]):X.push(e)),!i.is_fork&&Ut.size>0&&!Gt&&Xt()}return t}function Xt(){Gt=!1;for(let e of Ut)e.f&1024&&N(e,ne),$n(e)&&ir(e);Ut.clear()}function Zt(e){L(e,e.v+1)}function Qt(e,t,n){var r=e.reactions;if(r!==null)for(var i=qe(),a=r.length,o=0;o<a;o++){var s=r[o],c=s.f;if(!(!i&&s===G)){var l=(c&D)===0;if(l&&N(s,t),c&2){var u=s;F?.delete(u),c&65536||(c&512&&(s.f|=de),Qt(u,ne,n))}else if(l){var d=s;c&16&&vt!==null&&vt.add(d),n===null?St(d):n.push(d)}}}}function $t(e){if(typeof e!=`object`||!e||he in e)return e;let t=C(e);if(t!==x&&t!==S)return e;var n=new Map,r=p(e),i=qt(0),a=null,o=Xn,s=e=>{if(Xn===o)return e();var t=U,n=Xn;W(null),Zn(o);var r=e();return W(t),Zn(n),r};return r&&n.set(`length`,qt(e.length,a)),new Proxy(e,{defineProperty(e,t,r){(!(`value`in r)||r.configurable===!1||r.enumerable===!1||r.writable===!1)&&Oe();var i=n.get(t);return i===void 0?s(()=>{var e=qt(r.value,a);return n.set(t,e),e}):L(i,r.value,!0),!0},deleteProperty(e,t){var r=n.get(t);if(r===void 0){if(t in e){let e=s(()=>qt(d,a));n.set(t,e),Zt(i)}}else L(r,d),Zt(i);return!0},get(t,r,i){if(r===he)return e;var o=n.get(r),c=r in t;if(o===void 0&&(!c||y(t,r)?.writable)&&(o=s(()=>qt($t(c?t[r]:d),a)),n.set(r,o)),o!==void 0){var l=Z(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=Z(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===he)return!0;var r=n.get(t),i=r!==void 0&&r.v!==d||Reflect.has(e,t);return(r!==void 0||G!==null&&(!i||y(e,t)?.writable))&&(r===void 0&&(r=s(()=>qt(i?$t(e[t]):d,a)),n.set(t,r)),Z(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(()=>qt(d,a)),n.set(f+``,p)):L(p,d)}if(l===void 0)(!u||y(e,t)?.writable)&&(l=s(()=>qt(void 0,a)),L(l,$t(o)),n.set(t,l));else{u=l.v!==d;var m=s(()=>$t(o));L(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&&L(g,_+1)}Zt(i)}return!0},ownKeys(e){Z(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(){ke()}})}var en,tn,nn,rn;function an(){if(en===void 0){en=window,tn=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;nn=y(t,`firstChild`).get,rn=y(t,`nextSibling`).get,w(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),w(n)&&(n.__t=void 0)}}function R(e=``){return document.createTextNode(e)}function on(e){return nn.call(e)}function sn(e){return rn.call(e)}function z(e,t){if(!O)return on(e);var n=on(k);if(n===null)n=k.appendChild(R());else if(t&&n.nodeType!==3){var r=R();return n?.before(r),A(r),r}return t&&pn(n),A(n),n}function cn(e,t=!1){if(!O){var n=on(e);return n instanceof Comment&&n.data===``?sn(n):n}if(t){if(k?.nodeType!==3){var r=R();return k?.before(r),A(r),r}pn(k)}return k}function ln(e,t=1,n=!1){let r=O?k:e;for(var i;t--;)i=r,r=sn(r);if(!O)return r;if(n){if(r?.nodeType!==3){var a=R();return r===null?i?.after(a):r.before(a),A(a),a}pn(r)}return A(r),r}function un(e){e.textContent=``}function dn(){return!He||vt!==null?!1:(G.f&ae)!==0}function fn(e,t,n){let r=n?{is:n}:void 0;return document.createElementNS(t??`http://www.w3.org/1999/xhtml`,e,r)}function pn(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 mn=!1;function hn(){mn||(mn=!0,document.addEventListener(`reset`,e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(let t of e.target.elements)t.__on_r?.()})},{capture:!0}))}function gn(e){var t=U,n=G;W(null),K(null);try{return e()}finally{W(t),K(n)}}function _n(e,t,n,r=n){e.addEventListener(t,()=>gn(n));let i=e.__on_r;i?e.__on_r=()=>{i(),r(!0)}:e.__on_r=()=>r(!0),hn()}function vn(e){G===null&&(U===null&&we(e),Ce()),Un&&Se(e)}function yn(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function bn(e,t){var n=G;n!==null&&n.f&8192&&(e|=re);var r={ctx:M,deps:null,nodes:null,f:e|D|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)ft===null?gt.ensure().schedule(r):ft.push(r);else if(t!==null){try{ir(r)}catch(e){throw H(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|=se))}if(i!==null&&(i.parent=n,n!==null&&yn(i,n),U!==null&&U.f&2&&!(e&64))){var a=U;(a.effects??=[]).push(i)}return r}function xn(){return U!==null&&!Gn}function Sn(e){let t=bn(8,null);return N(t,E),t.teardown=e,t}function Cn(e){vn(`$effect`);var t=G.f;if(!U&&t&32&&!(t&32768)){var n=M;(n.e??=[]).push(e)}else return wn(e)}function wn(e){return bn(4|le,e)}function Tn(e){gt.ensure();let t=bn(64|ce,e);return()=>{H(t)}}function En(e){gt.ensure();let t=bn(64|ce,e);return(e={})=>new Promise(n=>{e.outro?In(t,()=>{H(t),n(void 0)}):(H(t),n(void 0))})}function Dn(e){return bn(4,e)}function On(e){return bn(pe|ce,e)}function kn(e,t=0){return bn(8|t,e)}function B(e,t=[],n=[],r=[]){kt(r,t,n,t=>{bn(8,()=>e(...t.map(Z)))})}function An(e,t=0){return bn(16|t,e)}function V(e){return bn(32|ce,e)}function jn(e){var t=e.teardown;if(t!==null){let e=Un,n=U;Wn(!0),W(null);try{t.call(null)}finally{Wn(e),W(n)}}}function Mn(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){let e=n.ac;e!==null&&gn(()=>{e.abort(ve)});var r=n.next;n.f&64?n.parent=null:H(n,t),n=r}}function Nn(e){for(var t=e.first;t!==null;){var n=t.next;t.f&32||H(t),t=n}}function H(e,t=!0){var n=!1;(t||e.f&262144)&&e.nodes!==null&&e.nodes.end!==null&&(Pn(e.nodes.start,e.nodes.end),n=!0),N(e,oe),Mn(e,t&&!n),rr(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)e.stop();jn(e),e.f^=oe,e.f|=ie;var i=e.parent;i!==null&&i.first!==null&&Fn(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function Pn(e,t){for(;e!==null;){var n=e===t?null:sn(e);e.remove(),e=n}}function Fn(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 In(e,t,n=!0){var r=[];Ln(e,r,!0);var i=()=>{n&&H(e),t&&t()},a=r.length;if(a>0){var o=()=>--a||i();for(var s of r)s.out(o)}else i()}function Ln(e,t,n){if(!(e.f&8192)){e.f^=re;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;Ln(i,t,o?n:!1),i=a}}}function Rn(e){zn(e,!0)}function zn(e,t){if(e.f&8192){e.f^=re,e.f&1024||(N(e,D),gt.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&65536)!=0||(n.f&32)!=0;zn(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 Bn(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 Vn=null,Hn=!1,Un=!1;function Wn(e){Un=e}var U=null,Gn=!1;function W(e){U=e}var G=null;function K(e){G=e}var q=null;function Kn(e){U!==null&&(!He||U.f&2)&&(q===null?q=[e]:q.push(e))}var J=null,Y=0,X=null;function qn(e){X=e}var Jn=1,Yn=0,Xn=Yn;function Zn(e){Xn=e}function Qn(){return++Jn}function $n(e){var t=e.f;if(t&2048)return!0;if(t&2&&(e.f&=~de),t&4096){for(var n=e.deps,r=n.length,i=0;i<r;i++){var a=n[i];if($n(a)&&Bt(a),a.wv>e.wv)return!0}t&512&&F===null&&N(e,E)}return!1}function er(e,t,n=!0){var r=e.reactions;if(r!==null&&!(!He&&q!==null&&h.call(q,e)))for(var i=0;i<r.length;i++){var a=r[i];a.f&2?er(a,t,!1):t===a&&(n?N(a,D):a.f&1024&&N(a,ne),St(a))}}function tr(e){var t=J,n=Y,r=X,i=U,a=q,o=M,s=Gn,c=Xn,l=e.f;J=null,Y=0,X=null,U=l&96?null:e,q=null,We(e.ctx),Gn=!1,Xn=++Yn,e.ac!==null&&(gn(()=>{e.ac.abort(ve)}),e.ac=null);try{e.f|=fe;var u=e.fn,d=u();e.f|=ae;var f=e.deps,p=P?.is_fork;if(J!==null){var m;if(p||rr(e,Y),f!==null&&Y>0)for(f.length=Y+J.length,m=0;m<J.length;m++)f[Y+m]=J[m];else e.deps=f=J;if(xn()&&e.f&512)for(m=Y;m<f.length;m++)(f[m].reactions??=[]).push(e)}else !p&&f!==null&&Y<f.length&&(rr(e,Y),f.length=Y);if(qe()&&X!==null&&!Gn&&f!==null&&!(e.f&6146))for(m=0;m<X.length;m++)er(X[m],e);if(i!==null&&i!==e){if(Yn++,i.deps!==null)for(let e=0;e<n;e+=1)i.deps[e].rv=Yn;if(t!==null)for(let e of t)e.rv=Yn;X!==null&&(r===null?r=X:r.push(...X))}return e.f&8388608&&(e.f^=me),d}catch(e){return Qe(e)}finally{e.f^=fe,J=t,Y=n,X=r,U=i,q=a,We(o),Gn=s,Xn=c}}function nr(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&&(J===null||!h.call(J,t))){var a=t;a.f&512&&(a.f^=512,a.f&=~de),tt(a),Vt(a),rr(a,0)}}function rr(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)nr(e,n[r])}function ir(e){var t=e.f;if(!(t&16384)){N(e,E);var n=G,r=Hn;G=e,Hn=!0;try{t&16777232?Nn(e):Mn(e),jn(e);var i=tr(e);e.teardown=typeof i==`function`?i:null,e.wv=Jn}finally{Hn=r,G=n}}}async function ar(){if(He)return new Promise(e=>{requestAnimationFrame(()=>e()),setTimeout(()=>e())});await Promise.resolve(),I()}function Z(e){var t=(e.f&2)!=0;if(Vn?.add(e),U!==null&&!Gn&&!(G!==null&&G.f&16384)&&(q===null||!h.call(q,e))){var n=U.deps;if(U.f&2097152)e.rv<Yn&&(e.rv=Yn,J===null&&n!==null&&n[Y]===e?Y++:J===null?J=[e]:J.push(e));else{(U.deps??=[]).push(e);var r=e.reactions;r===null?e.reactions=[U]:h.call(r,U)||r.push(U)}}if(Un&&Wt.has(e))return Wt.get(e);if(t){var i=e;if(Un){var a=i.v;return(!(i.f&1024)&&i.reactions!==null||sr(i))&&(a=zt(i)),Wt.set(i,a),a}var o=(i.f&512)==0&&!Gn&&U!==null&&(Hn||(U.f&512)!=0),s=(i.f&ae)===0;$n(i)&&(o&&(i.f|=512),Bt(i)),o&&!s&&(Ht(i),or(i))}if(F?.has(e))return F.get(e);if(e.f&8388608)throw e.v;return e.v}function or(e){if(e.f|=512,e.deps!==null)for(let t of e.deps)(t.reactions??=[]).push(e),t.f&2&&!(t.f&512)&&(Ht(t),or(t))}function sr(e){if(e.v===d)return!0;if(e.deps===null)return!1;for(let t of e.deps)if(Wt.has(t)||t.f&2&&sr(t))return!0;return!1}function cr(e){var t=Gn;try{return Gn=!0,e()}finally{Gn=t}}var lr=Symbol(`events`),ur=new Set,dr=new Set;function fr(e,t,n,r={}){function i(e){if(r.capture||_r.call(t,e),!e.cancelBubble)return gn(()=>n?.call(this,e))}return e.startsWith(`pointer`)||e.startsWith(`touch`)||e===`wheel`?Xe(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function pr(e,t,n,r,i){var a={capture:r,passive:i},o=fr(e,t,n,a);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Sn(()=>{t.removeEventListener(e,o,a)})}function mr(e,t,n){(t[lr]??={})[e]=n}function hr(e){for(var t=0;t<e.length;t++)ur.add(e[t]);for(var n of dr)n(e)}var gr=null;function _r(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],a=i[0]||e.target;gr=e;var o=0,s=gr===e&&e[lr];if(s){var c=i.indexOf(s);if(c!==-1&&(t===document||t===window)){e[lr]=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=G;W(null),K(null);try{for(var f,p=[];a!==null;){var m=a.assignedSlot||a.parentNode||a.host||null;try{var h=a[lr]?.[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[lr]=t,delete e.currentTarget,W(u),K(d)}}}var vr=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy(`svelte-trusted-html`,{createHTML:e=>e});function yr(e){return vr?.createHTML(e)??e}function br(e){var t=fn(`template`);return t.innerHTML=yr(e.replaceAll(`<!>`,`<!---->`)),t.content}function xr(e,t){var n=G;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function Sr(e,t){var n=(t&1)!=0,r=(t&2)!=0,i,a=!e.startsWith(`<!>`);return()=>{if(O)return xr(k,null),k;i===void 0&&(i=br(a?e:`<!>`+e),n||(i=on(i)));var t=r||tn?document.importNode(i,!0):i.cloneNode(!0);if(n){var o=on(t),s=t.lastChild;xr(o,s)}else xr(t,t);return t}}function Cr(e,t){if(O){var n=G;(!(n.f&32768)||n.nodes.end===null)&&(n.nodes.end=k),Fe();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 wr=[`touchstart`,`touchmove`];function Tr(e){return wr.includes(e)}function Er(e,t){return kr(e,t)}function Dr(e,t){an(),t.intro=t.intro??!1;let n=t.target,r=O,i=k;try{for(var a=on(n);a&&(a.nodeType!==8||a.data!==`[`);)a=sn(a);if(!a)throw u;Pe(!0),A(a);let r=kr(e,{...t,anchor:a});return Pe(!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&&Ee(),an(),un(n),Pe(!1),Er(e,t)}finally{Pe(r),A(i)}}var Or=new Map;function kr(e,{target:t,anchor:n,props:r={},events:i,context:a,intro:o=!0,transformError:s}){an();var c=void 0,l=En(()=>{var o=n??t.appendChild(R());Dt(o,{pending:()=>{}},t=>{Ge({});var n=M;if(a&&(n.c=a),i&&(r.$$events=i),O&&xr(t,null),c=e(t,r)||{},O&&(G.nodes.end=k,k===null||k.nodeType!==8||k.data!==`]`))throw Me(),u;Ke()},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=Tr(r);for(let e of[t,document]){var a=Or.get(e);a===void 0&&(a=new Map,Or.set(e,a));var o=a.get(r);o===void 0?(e.addEventListener(r,_r,{passive:i}),a.set(r,1)):a.set(r,o+1)}}}};return d(g(ur)),dr.add(d),()=>{for(var e of l)for(let n of[t,document]){var r=Or.get(n),i=r.get(e);--i==0?(n.removeEventListener(e,_r),r.delete(e),r.size===0&&Or.delete(n)):r.set(e,i)}dr.delete(d),o!==n&&o.parentNode?.removeChild(o)}});return Ar.set(c,l),c}var Ar=new WeakMap;function jr(e,t){let n=Ar.get(e);return n?(Ar.delete(e),n(t)):Promise.resolve()}var Mr=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)Rn(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&&(H(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();Bn(r,t),t.append(R()),this.#n.set(e,{effect:r,fragment:t})}else H(r);this.#r.delete(e),this.#t.delete(e)};this.#i||!n?(this.#r.add(e),In(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)||(H(n.effect),this.#n.delete(e))};ensure(e,t){var n=P,r=dn();if(t&&!this.#t.has(e)&&!this.#n.has(e))if(r){var i=document.createDocumentFragment(),a=R();i.append(a),this.#n.set(e,{effect:V(()=>t(a)),fragment:i})}else this.#t.set(e,V(()=>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 O&&(this.anchor=k),this.#a(n)}};function Nr(e,t,n=!1){var r;O&&(r=k,Fe());var i=new Mr(e),a=n?se:0;function o(e,t){if(O){var n=Re(r);if(e!==parseInt(n.substring(1))){var a=Le();A(a),i.anchor=a,Pe(!1),i.ensure(e,t),Pe(!0);return}}i.ensure(e,t)}An(()=>{var e=!1;t((t,n=0)=>{e=!0,o(n,t)}),e||o(-1,null)},a)}function Pr(e,t,n){for(var r=[],i=t.length,a,o=t.length,s=0;s<i;s++){let n=t[s];In(n,()=>{if(a){if(a.pending.delete(n),a.done.add(n),a.pending.size===0){var t=e.outrogroups;Fr(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;un(u),u.append(l),e.items.clear()}Fr(e,t,!c)}else a={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(a)}function Fr(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,Bn(a,document.createDocumentFragment())):H(t[i],n)}}var Ir;function Lr(e,t,n,r,i,a=null){var o=e,s=new Map;if(t&4){var c=e;o=O?A(on(c)):c.appendChild(R())}O&&Fe();var l=null,u=It(()=>{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,zr(v,d,o,t,r),l!==null&&(d.length===0?l.f&33554432?(l.f^=ue,Vr(l,null,o)):Rn(l):In(l,()=>{l=null})))}function _(e){v.pending.delete(e)}var v={effect:An(()=>{d=Z(u);var e=d.length;let c=!1;O&&Re(o)===`[!`!=(e===0)&&(o=Le(),A(o),Pe(!1),c=!0);for(var p=new Set,g=P,v=dn(),y=0;y<e;y+=1){O&&k.nodeType===8&&k.data===`]`&&(o=k,c=!0,Pe(!1));var b=d[y],x=r(b,y),S=m?null:s.get(x);S?(S.v&&Yt(S.v,b),S.i&&Yt(S.i,y),v&&g.unskip_effect(S.e)):(S=Br(s,m?o:Ir??=R(),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=V(()=>a(o)):(l=V(()=>a(Ir??=R())),l.f|=ue)),e>p.size&&xe(``,``,``),O&&e>0&&A(Le()),!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&&Pe(!0),Z(u)}),flags:t,items:s,pending:f,outrogroups:null,fallback:l};m=!1,O&&(o=k)}function Rr(e){for(;e!==null&&!(e.f&32);)e=e.next;return e}function zr(e,t,n,r,i){var a=(r&8)!=0,o=t.length,s=e.items,c=Rr(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&&(Rn(_),a&&(_.nodes?.a?.unfix(),(d??=new Set).delete(_))),_.f&33554432)if(_.f^=ue,_===c)Vr(_,null,n);else{var y=u?u.next:c;_===e.effect.last&&(e.effect.last=_.prev),_.prev&&(_.prev.next=_.next),_.next&&(_.next.prev=_.prev),Hr(e,u,_),Hr(e,_,y),Vr(_,y,n),u=_,f=[],p=[],c=Rr(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],C=f[f.length-1];for(x=0;x<f.length;x+=1)Vr(f[x],b,n);for(x=0;x<p.length;x+=1)l.delete(p[x]);Hr(e,S.prev,C.next),Hr(e,u,S),Hr(e,C,b),c=b,u=C,--v,f=[],p=[]}else l.delete(_),Vr(_,c,n),Hr(e,_.prev,_.next),Hr(e,_,u===null?e.effect.first:u.next),Hr(e,u,_),u=_;continue}for(f=[],p=[];c!==null&&c!==_;)(l??=new Set).add(c),p.push(c),c=Rr(c.next);if(c===null)continue}_.f&33554432||f.push(_),u=_,c=Rr(_.next)}if(e.outrogroups!==null){for(let t of e.outrogroups)t.pending.size===0&&(Fr(e,g(t.done)),e.outrogroups?.delete(t));e.outrogroups.size===0&&(e.outrogroups=null)}if(c!==null||l!==void 0){var w=[];if(l!==void 0)for(_ of l)_.f&8192||w.push(_);for(;c!==null;)!(c.f&8192)&&c!==e.fallback&&w.push(c),c=Rr(c.next);var T=w.length;if(T>0){var ee=r&4&&o===0?n:null;if(a){for(v=0;v<T;v+=1)w[v].nodes?.a?.measure();for(v=0;v<T;v+=1)w[v].nodes?.a?.fix()}Pr(e,w,ee)}}a&&Xe(()=>{if(d!==void 0)for(_ of d)_.nodes?.a?.apply()})}function Br(e,t,n,r,i,a,o,s){var c=o&1?o&16?Kt(n):Jt(n,!1,!1):null,l=o&2?Kt(i):null;return{v:c,i:l,e:V(()=>(a(t,c??n,l??i,s),()=>{e.delete(r)}))}}function Vr(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 Hr(e,t,n){t===null?e.effect.first=n:t.next=n,n===null?e.effect.last=t:n.prev=t}function Ur(e,t){Dn(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector(`#`+t.hash)){let e=fn(`style`);e.id=t.hash,e.textContent=t.code,r.appendChild(e)}})}var Wr=[...`
3
- \r\f\xA0\v`];function Gr(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||Wr.includes(r[o-1]))&&(s===r.length||Wr.includes(r[s]))?r=(o===0?``:r.substring(0,o))+r.substring(s+1):o=s}}return r===``?null:r}function Kr(e,t,n,r,i,a){var o=e.__className;if(O||o!==n||o===void 0){var s=Gr(n,r,a);(!O||s!==e.getAttribute(`class`))&&(s==null?e.removeAttribute(`class`):t?e.className=s:e.setAttribute(`class`,s)),e.__className=n}else if(a&&i!==a)for(var c in a){var l=!!a[c];(i==null||l!==!!i[c])&&e.classList.toggle(c,l)}return a}var qr=Symbol(`is custom element`),Jr=Symbol(`is html`),Yr=ye?`link`:`LINK`,Xr=ye?`progress`:`PROGRESS`;function Zr(e){if(O){var t=!1,n=()=>{if(!t){if(t=!0,e.hasAttribute(`value`)){var n=e.value;$r(e,`value`,null),e.value=n}if(e.hasAttribute(`checked`)){var r=e.checked;$r(e,`checked`,null),e.checked=r}}};e.__on_r=n,Xe(n),hn()}}function Qr(e,t){var n=ei(e);n.value===(n.value=t??void 0)||e.value===t&&(t!==0||e.nodeName!==Xr)||(e.value=t??``)}function $r(e,t,n,r){var i=ei(e);O&&(i[t]=e.getAttribute(t),t===`src`||t===`srcset`||t===`href`&&e.nodeName===Yr)||i[t]!==(i[t]=n)&&(t===`loading`&&(e[_e]=n),n==null?e.removeAttribute(t):typeof n!=`string`&&ni(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function Q(e,t,n){var r=U,i=G;let a=O;O&&Pe(!1),W(null),K(null);try{t!==`style`&&(ti.has(e.getAttribute(`is`)||e.nodeName)||!customElements||customElements.get(e.getAttribute(`is`)||e.nodeName.toLowerCase())?ni(e).includes(t):n&&typeof n==`object`)?e[t]=n:$r(e,t,n==null?n:String(n))}finally{W(r),K(i),a&&Pe(!0)}}function ei(e){return e.__attributes??={[qr]:e.nodeName.includes(`-`),[Jr]:e.namespaceURI===f}}var ti=new Map;function ni(e){var t=e.getAttribute(`is`)||e.nodeName,n=ti.get(t);if(n)return n;ti.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=C(i)}return n}function ri(e,t,n=t){var r=new WeakSet;_n(e,`input`,async i=>{var a=i?e.defaultValue:e.value;if(a=ii(e)?ai(a):a,n(a),P!==null&&r.add(P),await ar(),a!==(a=t())){var o=e.selectionStart,s=e.selectionEnd,c=e.value.length;if(e.value=a??``,s!==null){var l=e.value.length;o===s&&s===c&&l>c?(e.selectionStart=l,e.selectionEnd=l):(e.selectionStart=o,e.selectionEnd=Math.min(s,l))}}}),(O&&e.defaultValue!==e.value||cr(t)==null&&e.value)&&(n(ii(e)?ai(e.value):e.value),P!==null&&r.add(P)),kn(()=>{var n=t();if(e===document.activeElement){var i=He?ct:P;if(r.has(i))return}ii(e)&&n===ai(e.value)||e.type===`date`&&!n&&!e.value||n!==e.value&&(e.value=n??``)})}function ii(e){var t=e.type;return t===`number`||t===`range`}function ai(e){return e===``?null:+e}function $(e,t,n,r){var i=!Ue||(n&2)!=0,a=(n&8)!=0,o=(n&16)!=0,s=r,c=!0,l=()=>(c&&(c=!1,s=o?cr(r):r),s);let u;if(a){var d=he in e||ge in e;u=y(e,t)?.set??(d&&t in e?n=>e[t]=n:void 0)}var f,p=!1;a?[f,p]=ot(()=>e[t]):f=e[t],f===void 0&&r!==void 0&&(f=l(),u&&(i&&De(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?Nt:It)(()=>(g=!1,m()));a&&Z(_);var v=G;return(function(e,t){if(arguments.length>0){let n=t?Z(_):i&&a?$t(e):e;return L(_,n),g=!0,s!==void 0&&(s=n),e}return Un&&g||v.f&16384?_.v:Z(_)})}function oi(e){return new si(e)}var si=class{#e;#t;constructor(e){var t=new Map,n=(e,n)=>{var r=Jt(n,!1,!1);return t.set(e,r),r};let r=new Proxy({...e.props||{},$$events:{}},{get(e,r){return Z(t.get(r)??n(r,Reflect.get(e,r)))},has(e,r){return r===ge?!0:(Z(t.get(r)??n(r,Reflect.get(e,r))),Reflect.has(e,r))},set(e,r,i){return L(t.get(r)??n(r,i),i),Reflect.set(e,r,i)}});this.#t=(e.hydrate?Dr:Er)(e.component,{target:e.target,anchor:e.anchor,props:r,context:e.context,intro:e.intro??!1,recover:e.recover,transformError:e.transformError}),!He&&(!e?.props?.$$host||e.sync===!1)&&I(),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=()=>{jr(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()}},ci;typeof HTMLElement==`function`&&(ci=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=fn(`slot`);e!==`default`&&(n.name=e),Cr(t,n)}}let t={},n=ui(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]=li(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=oi({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Tn(()=>{kn(()=>{this.$$r=!0;for(let e of _(this.$$c)){if(!this.$$p_d[e]?.reflect)continue;this.$$d[e]=this.$$c[e];let t=li(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]=li(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 li(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 ui(e){let t={};return e.childNodes.forEach(e=>{t[e.slot||`default`]=!0}),t}function di(e,t,n,r,i,a){let o=class extends ci{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=li(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 fi=l(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 ee||!(!e||!e[x])},C=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},w=function(e,t){if(S(e))return e.clone();var n=typeof t==`object`?t:{};return n.date=e,n.args=arguments,new ee(n)},T=v;T.l=C,T.i=S,T.w=function(e,t){return w(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var ee=function(){function g(e){this.$L=C(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(T.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 T},_.isValid=function(){return this.$d.toString()!==p},_.isSame=function(e,t){var n=w(e);return this.startOf(t)<=n&&n<=this.endOf(t)},_.isAfter=function(e,t){return w(e)<this.startOf(t)},_.isBefore=function(e,t){return this.endOf(t)<w(e)},_.$g=function(e,t,n){return T.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=!!T.u(t)||t,u=T.p(e),p=function(e,t){var i=T.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 T.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=T.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[T.p(e)]()},_.add=function(r,u){var f,p=this;r=Number(r);var m=T.p(u),h=function(e){var t=w(p);return T.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 T.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=T.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 T.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 T.s(t.$y,4,`0`);case`M`:return s+1;case`MM`:return T.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 T.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 T.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 T.s(o,2,`0`);case`s`:return String(t.$s);case`ss`:return T.s(t.$s,2,`0`);case`SSS`:return T.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=T.p(f),_=w(r),v=(_.utcOffset()-this.utcOffset())*t,y=this-_,b=function(){return T.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:T.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=C(e,t,!0);return r&&(n.$L=r),n},_.clone=function(){return T.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}(),te=ee.prototype;return w.prototype=te,[[`$ms`,r],[`$s`,i],[`$m`,a],[`$H`,o],[`$W`,s],[`$M`,l],[`$y`,d],[`$D`,f]].forEach((function(e){te[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),w.extend=function(e,t){return e.$i||=(e(t,ee,w),!0),w},w.locale=C,w.isDayjs=S,w.unix=function(e){return w(1e3*e)},w.en=b[y],w.Ls=b,w.p={},w}))}))()),pi={name:`@htmlbricks/svelte-webcomponent`,private:!0,version:`0.71.35`,type:`module`,scripts:{dev:`vite --open`,build:`vite build`,"publish:wc":`node publish.ts`,"build:wc":`node build.ts`,"watch:wc":`node watch.ts`,preview:`vite preview`,check:`svelte-check --tsconfig ./tsconfig.app.json && tsc -p tsconfig.node.json`,"release:patch":`npm version patch && git push && git push --tags && npm run build:wc && npm run publish:wc`,"release:minor":`npm version minor && git push && git push --tags && npm run build:wc && npm run publish:wc`,"release:major":`npm version major && git push && git push --tags && npm run build:wc && npm run publish:wc`},devDependencies:{"@google-pay/button-element":`^3.2.1`,"@paypal/paypal-js":`^9.5.0`,"@sveltejs/vite-plugin-svelte":`^7.0.0`,"@tsconfig/svelte":`^5.0.8`,"@types/debounce":`^1.2.4`,"@types/node":`^24.10.1`,"@types/rgb-hex":`^3.0.0`,"chart.js":`^4.5.1`,"date-holidays":`^3.26.12`,dayjs:`^1.11.20`,"hls.js":`^1.6.15`,"html5-joystick-new":`^0.0.6`,ol:`^10.8.0`,"perfect-freehand":`^1.2.3`,prettier:`^3.8.1`,"rollup-plugin-terser":`^7.0.2`,"sass-embedded":`^1.98.0`,"simple-serverless-auth-client":`^0.0.6`,"simple-webrtc-element":`^0.0.1`,"simple-webrtc-element-whep":`^0.2.3`,"style-to-object":`^1.0.14`,svelte:`^5.55.0`,"svelte-check":`^4.4.5`,terser:`^5.46.1`,"ts-json-schema-generator":`^2.9.0`,typescript:`^6.0.2`,vite:`^8.0.3`},dependencies:{"@floating-ui/dom":`^1.7.6`,"@popperjs/core":`^2.11.8`,debounce:`^3.0.0`,"html-colors":`^0.0.6`,marked:`^17.0.5`,raphael:`^2.3.0`,"rgb-hex":`^4.1.0`,"wc-js-utils":`^0.5.4`}};function mi(e){let t=e?.repoName.split(`/`)?.[1]||e?.repoName;if(!t)throw Error(`wrong componentPath `+e?.repoName);if(!e?.version)throw Error(`wrong version `+e?.version);let n=e?.iifePath||`main.iife.js`;if(!document.getElementById(t+`-script`)&&!customElements?.get?.(t)&&!window?.customElements?.get?.(t))try{let r=document.createElement(`script`);if(r.id=t+`-script`,r.src=`https://cdn.jsdelivr.net/npm/${e.repoName}@${e.version}/${n}`,e?.local)r.src=`${e.local}`;else if(location.href.includes(`localhost:6006`)){let e=t.split(`-`)[0];r.src=`http://localhost:6006/webcomponents/${t.replace(e+`-`,``)}/${n}`}document.head.appendChild(r)}catch(e){console.warn(e)}}var hi=Sr(`<div class="column is-12-mobile is-4-tablet is-2-fullhd svelte-f4s6ne"><div class="field has-addons mb-0 svelte-f4s6ne"><p class="control svelte-f4s6ne"><span class="button is-static svelte-f4s6ne" id="search" aria-hidden="true">&#x1F50E;</span></p> <p class="control is-expanded svelte-f4s6ne"><input type="text" class="input svelte-f4s6ne" placeholder="..." aria-label="Search" aria-describedby="search"/></p></div></div>`),gi=Sr(`<div class="field is-grouped is-grouped-multiline mb-0 svelte-f4s6ne"><p class="control svelte-f4s6ne"><span class="button is-static svelte-f4s6ne" aria-hidden="true">&#128197;</span></p> <p class="control svelte-f4s6ne"><input type="date" class="input hb-gallery-video__date svelte-f4s6ne"/></p> <p class="control svelte-f4s6ne"><input type="date" class="input hb-gallery-video__date svelte-f4s6ne"/></p></div>`),_i=Sr(`<div class="column is-12 svelte-f4s6ne"><div class="field has-addons mb-0 svelte-f4s6ne"><p class="control svelte-f4s6ne"><span class="button is-static svelte-f4s6ne" id="search-mobile" aria-hidden="true">&#x1F50E;</span></p> <p class="control is-expanded svelte-f4s6ne"><input type="text" class="input svelte-f4s6ne" placeholder="..." aria-label="Search" aria-describedby="search-mobile"/></p></div></div>`),vi=Sr(`<div class="columns is-mobile is-multiline mb-3 svelte-f4s6ne"><div class="column is-12 svelte-f4s6ne"><div class="field is-grouped is-grouped-multiline mb-0 svelte-f4s6ne"><p class="control svelte-f4s6ne"><span class="button is-static svelte-f4s6ne" aria-hidden="true">&#128197;</span></p> <p class="control is-expanded svelte-f4s6ne"><input type="date" class="input hb-gallery-video__date is-fullwidth svelte-f4s6ne"/></p> <p class="control is-expanded svelte-f4s6ne"><input type="date" class="input hb-gallery-video__date is-fullwidth svelte-f4s6ne"/></p></div></div></div>`),yi=Sr(`<div class="column is-12-mobile is-half-tablet is-one-third-desktop is-one-quarter-widescreen p-3 svelte-f4s6ne"><hb-card-video></hb-card-video></div>`,2),bi=Sr(`<div class="columns is-mobile is-multiline svelte-f4s6ne"></div> <nav class="mt-5 svelte-f4s6ne" aria-label="Pagination"><hb-paginate></hb-paginate></nav>`,3),xi=Sr(`<div class="is-block-tablet is-hidden-mobile svelte-f4s6ne"><div class="columns is-mobile is-multiline mb-3 svelte-f4s6ne"><!> <div class="column is-12-mobile is-8-tablet is-10-fullhd svelte-f4s6ne"><!></div></div></div> <div class="is-block-mobile is-hidden-tablet svelte-f4s6ne"><div class="columns is-mobile is-multiline mb-3 svelte-f4s6ne"><!></div> <!></div> <!>`,1),Si=Sr(`<div class="container is-fluid svelte-f4s6ne" part="container"><!></div>`),Ci={hash:`svelte-f4s6ne`,code:`@charset "UTF-8";
3
+ \r\f\xA0\v`];function Gr(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||Wr.includes(r[o-1]))&&(s===r.length||Wr.includes(r[s]))?r=(o===0?``:r.substring(0,o))+r.substring(s+1):o=s}}return r===``?null:r}function Kr(e,t,n,r,i,a){var o=e.__className;if(O||o!==n||o===void 0){var s=Gr(n,r,a);(!O||s!==e.getAttribute(`class`))&&(s==null?e.removeAttribute(`class`):t?e.className=s:e.setAttribute(`class`,s)),e.__className=n}else if(a&&i!==a)for(var c in a){var l=!!a[c];(i==null||l!==!!i[c])&&e.classList.toggle(c,l)}return a}var qr=Symbol(`is custom element`),Jr=Symbol(`is html`),Yr=ye?`link`:`LINK`,Xr=ye?`progress`:`PROGRESS`;function Zr(e){if(O){var t=!1,n=()=>{if(!t){if(t=!0,e.hasAttribute(`value`)){var n=e.value;$r(e,`value`,null),e.value=n}if(e.hasAttribute(`checked`)){var r=e.checked;$r(e,`checked`,null),e.checked=r}}};e.__on_r=n,Xe(n),hn()}}function Qr(e,t){var n=ei(e);n.value===(n.value=t??void 0)||e.value===t&&(t!==0||e.nodeName!==Xr)||(e.value=t??``)}function $r(e,t,n,r){var i=ei(e);O&&(i[t]=e.getAttribute(t),t===`src`||t===`srcset`||t===`href`&&e.nodeName===Yr)||i[t]!==(i[t]=n)&&(t===`loading`&&(e[_e]=n),n==null?e.removeAttribute(t):typeof n!=`string`&&ni(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function Q(e,t,n){var r=U,i=G;let a=O;O&&Pe(!1),W(null),K(null);try{t!==`style`&&(ti.has(e.getAttribute(`is`)||e.nodeName)||!customElements||customElements.get(e.getAttribute(`is`)||e.nodeName.toLowerCase())?ni(e).includes(t):n&&typeof n==`object`)?e[t]=n:$r(e,t,n==null?n:String(n))}finally{W(r),K(i),a&&Pe(!0)}}function ei(e){return e.__attributes??={[qr]:e.nodeName.includes(`-`),[Jr]:e.namespaceURI===f}}var ti=new Map;function ni(e){var t=e.getAttribute(`is`)||e.nodeName,n=ti.get(t);if(n)return n;ti.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=C(i)}return n}function ri(e,t,n=t){var r=new WeakSet;_n(e,`input`,async i=>{var a=i?e.defaultValue:e.value;if(a=ii(e)?ai(a):a,n(a),P!==null&&r.add(P),await ar(),a!==(a=t())){var o=e.selectionStart,s=e.selectionEnd,c=e.value.length;if(e.value=a??``,s!==null){var l=e.value.length;o===s&&s===c&&l>c?(e.selectionStart=l,e.selectionEnd=l):(e.selectionStart=o,e.selectionEnd=Math.min(s,l))}}}),(O&&e.defaultValue!==e.value||cr(t)==null&&e.value)&&(n(ii(e)?ai(e.value):e.value),P!==null&&r.add(P)),kn(()=>{var n=t();if(e===document.activeElement){var i=He?ct:P;if(r.has(i))return}ii(e)&&n===ai(e.value)||e.type===`date`&&!n&&!e.value||n!==e.value&&(e.value=n??``)})}function ii(e){var t=e.type;return t===`number`||t===`range`}function ai(e){return e===``?null:+e}function $(e,t,n,r){var i=!Ue||(n&2)!=0,a=(n&8)!=0,o=(n&16)!=0,s=r,c=!0,l=()=>(c&&(c=!1,s=o?cr(r):r),s);let u;if(a){var d=he in e||ge in e;u=y(e,t)?.set??(d&&t in e?n=>e[t]=n:void 0)}var f,p=!1;a?[f,p]=ot(()=>e[t]):f=e[t],f===void 0&&r!==void 0&&(f=l(),u&&(i&&De(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?Nt:It)(()=>(g=!1,m()));a&&Z(_);var v=G;return(function(e,t){if(arguments.length>0){let n=t?Z(_):i&&a?$t(e):e;return L(_,n),g=!0,s!==void 0&&(s=n),e}return Un&&g||v.f&16384?_.v:Z(_)})}function oi(e){return new si(e)}var si=class{#e;#t;constructor(e){var t=new Map,n=(e,n)=>{var r=Jt(n,!1,!1);return t.set(e,r),r};let r=new Proxy({...e.props||{},$$events:{}},{get(e,r){return Z(t.get(r)??n(r,Reflect.get(e,r)))},has(e,r){return r===ge?!0:(Z(t.get(r)??n(r,Reflect.get(e,r))),Reflect.has(e,r))},set(e,r,i){return L(t.get(r)??n(r,i),i),Reflect.set(e,r,i)}});this.#t=(e.hydrate?Dr:Er)(e.component,{target:e.target,anchor:e.anchor,props:r,context:e.context,intro:e.intro??!1,recover:e.recover,transformError:e.transformError}),!He&&(!e?.props?.$$host||e.sync===!1)&&I(),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=()=>{jr(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()}},ci;typeof HTMLElement==`function`&&(ci=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=fn(`slot`);e!==`default`&&(n.name=e),Cr(t,n)}}let t={},n=ui(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]=li(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=oi({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Tn(()=>{kn(()=>{this.$$r=!0;for(let e of _(this.$$c)){if(!this.$$p_d[e]?.reflect)continue;this.$$d[e]=this.$$c[e];let t=li(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]=li(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 li(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 ui(e){let t={};return e.childNodes.forEach(e=>{t[e.slot||`default`]=!0}),t}function di(e,t,n,r,i,a){let o=class extends ci{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=li(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 fi=l(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 ee||!(!e||!e[x])},C=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},w=function(e,t){if(S(e))return e.clone();var n=typeof t==`object`?t:{};return n.date=e,n.args=arguments,new ee(n)},T=v;T.l=C,T.i=S,T.w=function(e,t){return w(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var ee=function(){function g(e){this.$L=C(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(T.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 T},_.isValid=function(){return this.$d.toString()!==p},_.isSame=function(e,t){var n=w(e);return this.startOf(t)<=n&&n<=this.endOf(t)},_.isAfter=function(e,t){return w(e)<this.startOf(t)},_.isBefore=function(e,t){return this.endOf(t)<w(e)},_.$g=function(e,t,n){return T.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=!!T.u(t)||t,u=T.p(e),p=function(e,t){var i=T.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 T.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=T.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[T.p(e)]()},_.add=function(r,u){var f,p=this;r=Number(r);var m=T.p(u),h=function(e){var t=w(p);return T.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 T.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=T.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 T.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 T.s(t.$y,4,`0`);case`M`:return s+1;case`MM`:return T.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 T.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 T.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 T.s(o,2,`0`);case`s`:return String(t.$s);case`ss`:return T.s(t.$s,2,`0`);case`SSS`:return T.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=T.p(f),_=w(r),v=(_.utcOffset()-this.utcOffset())*t,y=this-_,b=function(){return T.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:T.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=C(e,t,!0);return r&&(n.$L=r),n},_.clone=function(){return T.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}(),te=ee.prototype;return w.prototype=te,[[`$ms`,r],[`$s`,i],[`$m`,a],[`$H`,o],[`$W`,s],[`$M`,l],[`$y`,d],[`$D`,f]].forEach((function(e){te[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),w.extend=function(e,t){return e.$i||=(e(t,ee,w),!0),w},w.locale=C,w.isDayjs=S,w.unix=function(e){return w(1e3*e)},w.en=b[y],w.Ls=b,w.p={},w}))}))()),pi={name:`@htmlbricks/svelte-webcomponent`,private:!0,version:`0.71.36`,type:`module`,scripts:{dev:`vite --open`,build:`vite build`,"publish:wc":`node publish.ts`,"build:wc":`node build.ts`,"watch:wc":`node watch.ts`,preview:`vite preview`,check:`svelte-check --tsconfig ./tsconfig.app.json && tsc -p tsconfig.node.json`,"release:patch":`npm version patch && git push && git push --tags && npm run build:wc && npm run publish:wc`,"release:minor":`npm version minor && git push && git push --tags && npm run build:wc && npm run publish:wc`,"release:major":`npm version major && git push && git push --tags && npm run build:wc && npm run publish:wc`},devDependencies:{"@google-pay/button-element":`^3.2.1`,"@paypal/paypal-js":`^9.5.0`,"@sveltejs/vite-plugin-svelte":`^7.0.0`,"@tsconfig/svelte":`^5.0.8`,"@types/debounce":`^1.2.4`,"@types/node":`^24.10.1`,"@types/rgb-hex":`^3.0.0`,"chart.js":`^4.5.1`,"date-holidays":`^3.26.12`,dayjs:`^1.11.20`,"hls.js":`^1.6.15`,"html5-joystick-new":`^0.0.6`,ol:`^10.8.0`,"perfect-freehand":`^1.2.3`,prettier:`^3.8.1`,"rollup-plugin-terser":`^7.0.2`,"sass-embedded":`^1.98.0`,"simple-serverless-auth-client":`^0.0.6`,"simple-webrtc-element":`^0.0.1`,"simple-webrtc-element-whep":`^0.2.3`,"style-to-object":`^1.0.14`,svelte:`^5.55.0`,"svelte-check":`^4.4.5`,terser:`^5.46.1`,"ts-json-schema-generator":`^2.9.0`,typescript:`^6.0.2`,vite:`^8.0.3`},dependencies:{"@floating-ui/dom":`^1.7.6`,"@popperjs/core":`^2.11.8`,debounce:`^3.0.0`,"html-colors":`^0.0.6`,marked:`^17.0.5`,raphael:`^2.3.0`,"rgb-hex":`^4.1.0`,"wc-js-utils":`^0.5.4`}};function mi(e){let t=e?.repoName.split(`/`)?.[1]||e?.repoName;if(!t)throw Error(`wrong componentPath `+e?.repoName);if(!e?.version)throw Error(`wrong version `+e?.version);let n=e?.iifePath||`main.iife.js`;if(!document.getElementById(t+`-script`)&&!customElements?.get?.(t)&&!window?.customElements?.get?.(t))try{let r=document.createElement(`script`);if(r.id=t+`-script`,r.src=`https://cdn.jsdelivr.net/npm/${e.repoName}@${e.version}/${n}`,e?.local)r.src=`${e.local}`;else if(location.href.includes(`localhost:6006`)){let e=t.split(`-`)[0];r.src=`http://localhost:6006/webcomponents/${t.replace(e+`-`,``)}/${n}`}document.head.appendChild(r)}catch(e){console.warn(e)}}var hi=Sr(`<div class="column is-12-mobile is-4-tablet is-2-fullhd svelte-f4s6ne"><div class="field has-addons mb-0 svelte-f4s6ne"><p class="control svelte-f4s6ne"><span class="button is-static svelte-f4s6ne" id="search" aria-hidden="true">&#x1F50E;</span></p> <p class="control is-expanded svelte-f4s6ne"><input type="text" class="input svelte-f4s6ne" placeholder="..." aria-label="Search" aria-describedby="search"/></p></div></div>`),gi=Sr(`<div class="field is-grouped is-grouped-multiline mb-0 svelte-f4s6ne"><p class="control svelte-f4s6ne"><span class="button is-static svelte-f4s6ne" aria-hidden="true">&#128197;</span></p> <p class="control svelte-f4s6ne"><input type="date" class="input hb-gallery-video__date svelte-f4s6ne"/></p> <p class="control svelte-f4s6ne"><input type="date" class="input hb-gallery-video__date svelte-f4s6ne"/></p></div>`),_i=Sr(`<div class="column is-12 svelte-f4s6ne"><div class="field has-addons mb-0 svelte-f4s6ne"><p class="control svelte-f4s6ne"><span class="button is-static svelte-f4s6ne" id="search-mobile" aria-hidden="true">&#x1F50E;</span></p> <p class="control is-expanded svelte-f4s6ne"><input type="text" class="input svelte-f4s6ne" placeholder="..." aria-label="Search" aria-describedby="search-mobile"/></p></div></div>`),vi=Sr(`<div class="columns is-mobile is-multiline mb-3 svelte-f4s6ne"><div class="column is-12 svelte-f4s6ne"><div class="field is-grouped is-grouped-multiline mb-0 svelte-f4s6ne"><p class="control svelte-f4s6ne"><span class="button is-static svelte-f4s6ne" aria-hidden="true">&#128197;</span></p> <p class="control is-expanded svelte-f4s6ne"><input type="date" class="input hb-gallery-video__date is-fullwidth svelte-f4s6ne"/></p> <p class="control is-expanded svelte-f4s6ne"><input type="date" class="input hb-gallery-video__date is-fullwidth svelte-f4s6ne"/></p></div></div></div>`),yi=Sr(`<div class="column is-12-mobile is-half-tablet is-one-third-desktop is-one-quarter-widescreen p-3 svelte-f4s6ne"><hb-card-video></hb-card-video></div>`,2),bi=Sr(`<div class="columns is-mobile is-multiline svelte-f4s6ne"></div> <nav class="mt-5 svelte-f4s6ne" aria-label="Pagination"><hb-paginate></hb-paginate></nav>`,3),xi=Sr(`<div class="is-block-tablet is-hidden-mobile svelte-f4s6ne"><div class="columns is-mobile is-multiline mb-3 svelte-f4s6ne"><!> <div class="column is-12-mobile is-8-tablet is-10-fullhd svelte-f4s6ne"><!></div></div></div> <div class="is-block-mobile is-hidden-tablet svelte-f4s6ne"><div class="columns is-mobile is-multiline mb-3 svelte-f4s6ne"><!></div> <!></div> <!>`,1),Si=Sr(`<div class="container is-fluid svelte-f4s6ne" part="container"><!></div>`),Ci={hash:`svelte-f4s6ne`,code:`@charset "UTF-8";
4
4
  /*!
5
5
  * Bulma 1.x (Sass) for hb-gallery-video — container, columns, form fields, visibility.
6
6
  */:host {--bulma-hb-def-control-radius: var(--bulma-radius, var(--bulma-hb-def-radius));--bulma-hb-def-control-radius-small: var(--bulma-radius-small, var(--bulma-hb-def-radius-small));--bulma-hb-def-control-border-width: 1px;--bulma-hb-def-control-height: 2.5em;--bulma-hb-def-control-line-height: 1.5;--bulma-hb-def-control-padding-vertical: calc(0.5em - 1px);--bulma-hb-def-control-padding-horizontal: calc(0.75em - 1px);--bulma-hb-def-control-size: var(--bulma-size-normal, var(--bulma-hb-def-size-normal));--bulma-hb-def-control-focus-shadow-l: 50%;}