@htmlbricks/hb-modal-video 0.66.2 → 0.66.3

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/main.iife.js CHANGED
@@ -1,3 +1,3 @@
1
1
  (function(kt){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const Fn=1,jn=2,At="[",Rt="[!",Ct="[?",Ot="]",be={},N=Symbol(),Mt="http://www.w3.org/1999/xhtml",Yn=!1;var Hn=Array.isArray,Vn=Array.prototype.indexOf,$e=Array.prototype.includes,qn=Array.from,qe=Object.keys,Be=Object.defineProperty,Ee=Object.getOwnPropertyDescriptor,Bn=Object.getOwnPropertyDescriptors,Un=Object.prototype,Wn=Array.prototype,Dt=Object.getPrototypeOf,Lt=Object.isExtensible;const zn=()=>{};function Gn(e){for(var t=0;t<e.length;t++)e[t]()}function Pt(){var e,t,n=new Promise((r,i)=>{e=r,t=i});return{promise:n,resolve:e,reject:t}}const x=2,Te=4,Ue=8,It=1<<24,ee=16,z=32,te=64,lt=128,O=512,T=1024,S=2048,V=4096,q=8192,P=16384,fe=32768,Ft=1<<25,xe=65536,jt=1<<17,Kn=1<<18,ue=1<<19,Jn=1<<20,ce=65536,ot=1<<21,at=1<<22,ne=1<<23,ft=Symbol("$state"),Xn=Symbol("legacy props"),Zn=Symbol(""),G=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Qn=!!globalThis.document?.contentType&&globalThis.document.contentType.includes("xml"),We=3,ze=8;function er(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function tr(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function nr(){throw new Error("https://svelte.dev/e/hydration_failed")}function rr(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function ir(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function sr(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function lr(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function Ge(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function or(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let y=!1;function re(e){y=e}let m;function I(e){if(e===null)throw Ge(),be;return m=e}function Ke(){return I(Z(m))}function Ne(e){if(y){if(Z(m)!==null)throw Ge(),be;m=e}}function ut(e=1){if(y){for(var t=e,n=m;t--;)n=Z(n);m=n}}function Yt(e=!0){for(var t=0,n=m;;){if(n.nodeType===ze){var r=n.data;if(r===Ot){if(t===0)return n;t-=1}else(r===At||r===Rt||r[0]==="["&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=Z(n);e&&n.remove(),n=i}}function ar(e){if(!e||e.nodeType!==ze)throw Ge(),be;return e.data}function Ht(e){return e===this.v}function fr(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function ur(e){return!fr(e,this.v)}let cr=!1,F=null;function Se(e){F=e}function Vt(e,t=!1,n){F={p:F,i:!1,c:null,e:null,s:e,x:null,r:g,l:null}}function qt(e){var t=F,n=t.e;if(n!==null){t.e=null;for(var r of n)Or(r)}return e!==void 0&&(t.x=e),t.i=!0,F=t.p,e??{}}function Bt(){return!0}let he=[];function Ut(){var e=he;he=[],Gn(e)}function de(e){if(he.length===0&&!De){var t=he;queueMicrotask(()=>{t===he&&Ut()})}he.push(e)}function hr(){for(;he.length>0;)Ut()}function Wt(e){var t=g;if(t===null)return p.f|=ne,e;if((t.f&fe)===0&&(t.f&Te)===0)throw e;ie(e,t)}function ie(e,t){for(;t!==null;){if((t.f&lt)!==0){if((t.f&fe)===0)throw e;try{t.b.error(e);return}catch(n){e=n}}t=t.parent}throw e}const dr=-7169;function $(e,t){e.f=e.f&dr|t}function ct(e){(e.f&O)!==0||e.deps===null?$(e,T):$(e,V)}function zt(e){if(e!==null)for(const t of e)(t.f&x)===0||(t.f&ce)===0||(t.f^=ce,zt(t.deps))}function Gt(e,t,n){(e.f&S)!==0?t.add(e):(e.f&V)!==0&&n.add(e),zt(e.deps),$(e,T)}const se=new Set;let b=null,j=null,ht=null,De=!1,dt=!1,ke=null,Je=null;var Kt=0;let vr=1;class K{id=vr++;current=new Map;previous=new Map;#e=new Set;#n=new Set;#t=new Map;#i=new Map;#s=null;#r=[];#l=new Set;#o=new Set;#a=new Map;is_fork=!1;#c=!1;#f=new Set;#h(){return this.is_fork||this.#i.size>0}#v(){for(const r of this.#f)for(const i of r.#i.keys()){for(var t=!1,n=i;n.parent!==null;){if(this.#a.has(n)){t=!0;break}n=n.parent}if(!t)return!0}return!1}skip_effect(t){this.#a.has(t)||this.#a.set(t,{d:[],m:[]})}unskip_effect(t){var n=this.#a.get(t);if(n){this.#a.delete(t);for(var r of n.d)$(r,S),this.schedule(r);for(r of n.m)$(r,V),this.schedule(r)}}#d(){if(Kt++>1e3&&(se.delete(this),_r()),!this.#h()){for(const o of this.#l)this.#o.delete(o),$(o,S),this.schedule(o);for(const o of this.#o)$(o,V),this.schedule(o)}const t=this.#r;this.#r=[],this.apply();var n=ke=[],r=[],i=Je=[];for(const o of t)try{this.#u(o,n,r)}catch(a){throw en(o),a}if(b=null,i.length>0){var s=K.ensure();for(const o of i)s.schedule(o)}if(ke=null,Je=null,this.#h()||this.#v()){this.#_(r),this.#_(n);for(const[o,a]of this.#a)Qt(o,a)}else{this.#t.size===0&&se.delete(this),this.#l.clear(),this.#o.clear();for(const o of this.#e)o(this);this.#e.clear(),Jt(r),Jt(n),this.#s?.resolve()}var l=b;if(this.#r.length>0){const o=l??=this;o.#r.push(...this.#r.filter(a=>!o.#r.includes(a)))}l!==null&&(se.add(l),l.#d()),se.has(this)||this.#p()}#u(t,n,r){t.f^=T;for(var i=t.first;i!==null;){var s=i.f,l=(s&(z|te))!==0,o=l&&(s&T)!==0,a=o||(s&q)!==0||this.#a.has(i);if(!a&&i.fn!==null){l?i.f^=T:(s&Te)!==0?n.push(i):Ye(i)&&((s&ee)!==0&&this.#o.add(i),Oe(i));var f=i.first;if(f!==null){i=f;continue}}for(;i!==null;){var u=i.next;if(u!==null){i=u;break}i=i.parent}}}#_(t){for(var n=0;n<t.length;n+=1)Gt(t[n],this.#l,this.#o)}capture(t,n,r=!1){n!==N&&!this.previous.has(t)&&this.previous.set(t,n),(t.f&ne)===0&&(this.current.set(t,[t.v,r]),j?.set(t,t.v))}activate(){b=this}deactivate(){b=null,j=null}flush(){try{dt=!0,b=this,this.#d()}finally{Kt=0,ht=null,ke=null,Je=null,dt=!1,b=null,j=null,le.clear()}}discard(){for(const t of this.#n)t(this);this.#n.clear(),se.delete(this)}#p(){for(const f of se){var t=f.id<this.id,n=[];for(const[u,[d,c]]of this.current){if(f.current.has(u)){var r=f.current.get(u)[0];if(t&&d!==r)f.current.set(u,[d,c]);else continue}n.push(u)}var i=[...f.current.keys()].filter(u=>!this.current.has(u));if(i.length===0)t&&f.discard();else if(n.length>0){f.activate();var s=new Set,l=new Map;for(var o of n)Xt(o,i,s,l);if(f.#r.length>0){f.apply();for(var a of f.#r)f.#u(a,[],[]);f.#r=[]}f.deactivate()}}for(const f of se)f.#f.has(this)&&(f.#f.delete(this),f.#f.size===0&&!f.#h()&&(f.activate(),f.#d()))}increment(t,n){let r=this.#t.get(n)??0;if(this.#t.set(n,r+1),t){let i=this.#i.get(n)??0;this.#i.set(n,i+1)}}decrement(t,n,r){let i=this.#t.get(n)??0;if(i===1?this.#t.delete(n):this.#t.set(n,i-1),t){let s=this.#i.get(n)??0;s===1?this.#i.delete(n):this.#i.set(n,s-1)}this.#c||r||(this.#c=!0,de(()=>{this.#c=!1,this.flush()}))}transfer_effects(t,n){for(const r of t)this.#l.add(r);for(const r of n)this.#o.add(r);t.clear(),n.clear()}oncommit(t){this.#e.add(t)}ondiscard(t){this.#n.add(t)}settled(){return(this.#s??=Pt()).promise}static ensure(){if(b===null){const t=b=new K;dt||(se.add(b),De||de(()=>{b===t&&t.flush()}))}return b}apply(){{j=null;return}}schedule(t){if(ht=t,t.b?.is_pending&&(t.f&(Te|Ue|It))!==0&&(t.f&fe)===0){t.b.defer_effect(t);return}for(var n=t;n.parent!==null;){n=n.parent;var r=n.f;if(ke!==null&&n===g&&(p===null||(p.f&x)===0))return;if((r&(te|z))!==0){if((r&T)===0)return;n.f^=T}}this.#r.push(n)}}function Ae(e){var t=De;De=!0;try{for(var n;;){if(hr(),b===null)return n;b.flush()}}finally{De=t}}function _r(){try{tr()}catch(e){ie(e,ht)}}let J=null;function Jt(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(P|q))===0&&Ye(r)&&(J=new Set,Oe(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&gn(r),J?.size>0)){le.clear();for(const i of J){if((i.f&(P|q))!==0)continue;const s=[i];let l=i.parent;for(;l!==null;)J.has(l)&&(J.delete(l),s.push(l)),l=l.parent;for(let o=s.length-1;o>=0;o--){const a=s[o];(a.f&(P|q))===0&&Oe(a)}}J.clear()}}J=null}}function Xt(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(const i of e.reactions){const s=i.f;(s&x)!==0?Xt(i,t,n,r):(s&(at|ee))!==0&&(s&S)===0&&Zt(i,t,r)&&($(i,S),vt(i))}}function Zt(e,t,n){const r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(const i of e.deps){if($e.call(t,i))return!0;if((i.f&x)!==0&&Zt(i,t,n))return n.set(i,!0),!0}return n.set(e,!1),!1}function vt(e){b.schedule(e)}function Qt(e,t){if(!((e.f&z)!==0&&(e.f&T)!==0)){(e.f&S)!==0?t.d.push(e):(e.f&V)!==0&&t.m.push(e),$(e,T);for(var n=e.first;n!==null;)Qt(n,t),n=n.next}}function en(e){$(e,T);for(var t=e.first;t!==null;)en(t),t=t.next}function pr(e){let t=0,n=Le(0),r;return()=>{bt()&&(H(n),vn(()=>(t===0&&(r=qr(()=>e(()=>Pe(n)))),t+=1,()=>{de(()=>{t-=1,t===0&&(r?.(),r=void 0,Pe(n))})})))}}var gr=xe|ue;function mr(e,t,n,r){new wr(e,t,n,r)}class wr{parent;is_pending=!1;transform_error;#e;#n=y?m:null;#t;#i;#s;#r=null;#l=null;#o=null;#a=null;#c=0;#f=0;#h=!1;#v=new Set;#d=new Set;#u=null;#_=pr(()=>(this.#u=Le(this.#c),()=>{this.#u=null}));constructor(t,n,r,i){this.#e=t,this.#t=n,this.#i=s=>{var l=g;l.b=this,l.f|=lt,r(s)},this.parent=g.b,this.transform_error=i??this.parent?.transform_error??(s=>s),this.#s=_n(()=>{if(y){const s=this.#n;Ke();const l=s.data===Rt;if(s.data.startsWith(Ct)){const a=JSON.parse(s.data.slice(Ct.length));this.#b(a)}else l?this.#$():this.#p()}else this.#w()},gr),y&&(this.#e=m)}#p(){try{this.#r=Q(()=>this.#i(this.#e))}catch(t){this.error(t)}}#b(t){const n=this.#t.failed;n&&(this.#o=Q(()=>{n(this.#e,()=>t,()=>()=>{})}))}#$(){const t=this.#t.pending;t&&(this.is_pending=!0,this.#l=Q(()=>t(this.#e)),de(()=>{var n=this.#a=document.createDocumentFragment(),r=B();n.append(r),this.#r=this.#m(()=>Q(()=>this.#i(r))),this.#f===0&&(this.#e.before(n),this.#a=null,je(this.#l,()=>{this.#l=null}),this.#g(b))}))}#w(){try{if(this.is_pending=this.has_pending_snippet(),this.#f=0,this.#c=0,this.#r=Q(()=>{this.#i(this.#e)}),this.#f>0){var t=this.#a=document.createDocumentFragment();yn(this.#r,t);const n=this.#t.pending;this.#l=Q(()=>n(this.#e))}else this.#g(b)}catch(n){this.error(n)}}#g(t){this.is_pending=!1,t.transfer_effects(this.#v,this.#d)}defer_effect(t){Gt(t,this.#v,this.#d)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#t.pending}#m(t){var n=g,r=p,i=F;M(this.#s),A(this.#s),Se(this.#s.ctx);try{return K.ensure(),t()}catch(s){return Wt(s),null}finally{M(n),A(r),Se(i)}}#y(t,n){if(!this.has_pending_snippet()){this.parent&&this.parent.#y(t,n);return}this.#f+=t,this.#f===0&&(this.#g(n),this.#l&&je(this.#l,()=>{this.#l=null}),this.#a&&(this.#e.before(this.#a),this.#a=null))}update_pending_count(t,n){this.#y(t,n),this.#c+=t,!(!this.#u||this.#h)&&(this.#h=!0,de(()=>{this.#h=!1,this.#u&&Ze(this.#u,this.#c)}))}get_effect_pending(){return this.#_(),H(this.#u)}error(t){var n=this.#t.onerror;let r=this.#t.failed;if(!n&&!r)throw t;this.#r&&(k(this.#r),this.#r=null),this.#l&&(k(this.#l),this.#l=null),this.#o&&(k(this.#o),this.#o=null),y&&(I(this.#n),ut(),I(Yt()));var i=!1,s=!1;const l=()=>{if(i){or();return}i=!0,s&&lr(),this.#o!==null&&je(this.#o,()=>{this.#o=null}),this.#m(()=>{this.#w()})},o=a=>{try{s=!0,n?.(a,l),s=!1}catch(f){ie(f,this.#s&&this.#s.parent)}r&&(this.#o=this.#m(()=>{try{return Q(()=>{var f=g;f.b=this,f.f|=lt,r(this.#e,()=>a,()=>l)})}catch(f){return ie(f,this.#s.parent),null}}))};de(()=>{var a;try{a=this.transform_error(t)}catch(f){ie(f,this.#s&&this.#s.parent);return}a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(o,f=>ie(f,this.#s&&this.#s.parent)):o(a)})}}function yr(e,t,n,r){const i=nn;var s=e.filter(c=>!c.settled);if(n.length===0&&s.length===0){r(t.map(i));return}var l=g,o=br(),a=s.length===1?s[0].promise:s.length>1?Promise.all(s.map(c=>c.promise)):null;function f(c){o();try{r(c)}catch(v){(l.f&P)===0&&ie(v,l)}Xe()}if(n.length===0){a.then(()=>f(t.map(i)));return}var u=tn();function d(){Promise.all(n.map(c=>$r(c))).then(c=>f([...t.map(i),...c])).catch(c=>ie(c,l)).finally(()=>u())}a?a.then(()=>{o(),d(),Xe()}):d()}function br(){var e=g,t=p,n=F,r=b;return function(s=!0){M(e),A(t),Se(n),s&&(e.f&P)===0&&(r?.activate(),r?.apply())}}function Xe(e=!0){M(null),A(null),Se(null),e&&b?.deactivate()}function tn(){var e=g,t=e.b,n=b,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 nn(e){var t=x|S,n=p!==null&&(p.f&x)!==0?p:null;return g!==null&&(g.f|=ue),{ctx:F,deps:null,effects:null,equals:Ht,f:t,fn:e,reactions:null,rv:0,v:N,wv:0,parent:n??g,ac:null}}function $r(e,t,n){let r=g;r===null&&er();var i=void 0,s=Le(N),l=!p,o=new Map;return Pr(()=>{var a=g,f=Pt();i=f.promise;try{Promise.resolve(e()).then(f.resolve,f.reject).finally(Xe)}catch(v){f.reject(v),Xe()}var u=b;if(l){if((a.f&fe)!==0)var d=tn();if(r.b.is_rendered())o.get(u)?.reject(G),o.delete(u);else{for(const v of o.values())v.reject(G);o.clear()}o.set(u,f)}const c=(v,h=void 0)=>{if(d){var w=h===G;d(w)}if(!(h===G||(a.f&P)!==0)){if(u.activate(),h)s.f|=ne,Ze(s,h);else{(s.f&ne)!==0&&(s.f^=ne),Ze(s,v);for(const[_,E]of o){if(o.delete(_),_===u)break;E.reject(G)}}u.deactivate()}};f.promise.then(c,v=>c(null,v||"unknown"))}),dn(()=>{for(const a of o.values())a.reject(G)}),new Promise(a=>{function f(u){function d(){u===i?a(s):f(i)}u.then(d,d)}f(i)})}function Er(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)k(t[n])}}function Tr(e){for(var t=e.parent;t!==null;){if((t.f&x)===0)return(t.f&P)===0?t:null;t=t.parent}return null}function _t(e){var t,n=g;M(Tr(e));try{e.f&=~ce,Er(e),t=Nn(e)}finally{M(n)}return t}function rn(e){var t=e.v,n=_t(e);if(!e.equals(n)&&(e.wv=Tn(),(!b?.is_fork||e.deps===null)&&(e.v=n,b?.capture(e,t,!0),e.deps===null))){$(e,T);return}ve||(j!==null?(bt()||b?.is_fork)&&j.set(e,n):ct(e))}function xr(e){if(e.effects!==null)for(const t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(G),t.teardown=zn,t.ac=null,He(t,0),$t(t))}function sn(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&Oe(t)}let pt=new Set;const le=new Map;let ln=!1;function Le(e,t){var n={f:0,v:e,reactions:null,equals:Ht,rv:0,wv:0};return n}function oe(e,t){const n=Le(e);return Yr(n),n}function Nr(e,t=!1,n=!0){const r=Le(e);return t||(r.equals=ur),r}function X(e,t,n=!1){p!==null&&(!Y||(p.f&jt)!==0)&&Bt()&&(p.f&(x|ee|at|jt))!==0&&(D===null||!$e.call(D,e))&&sr();let r=n?Ie(t):t;return Ze(e,r,Je)}function Ze(e,t,n=null){if(!e.equals(t)){var r=e.v;ve?le.set(e,t):le.set(e,r),e.v=t;var i=K.ensure();if(i.capture(e,r),(e.f&x)!==0){const s=e;(e.f&S)!==0&&_t(s),j===null&&ct(s)}e.wv=Tn(),on(e,S,n),g!==null&&(g.f&T)!==0&&(g.f&(z|te))===0&&(L===null?Hr([e]):L.push(e)),!i.is_fork&&pt.size>0&&!ln&&Sr()}return t}function Sr(){ln=!1;for(const e of pt)(e.f&T)!==0&&$(e,V),Ye(e)&&Oe(e);pt.clear()}function Pe(e){X(e,e.v+1)}function on(e,t,n){var r=e.reactions;if(r!==null)for(var i=r.length,s=0;s<i;s++){var l=r[s],o=l.f,a=(o&S)===0;if(a&&$(l,t),(o&x)!==0){var f=l;j?.delete(f),(o&ce)===0&&(o&O&&(l.f|=ce),on(f,V,n))}else if(a){var u=l;(o&ee)!==0&&J!==null&&J.add(u),n!==null?n.push(u):vt(u)}}}function Ie(e){if(typeof e!="object"||e===null||ft in e)return e;const t=Dt(e);if(t!==Un&&t!==Wn)return e;var n=new Map,r=Hn(e),i=oe(0),s=pe,l=o=>{if(pe===s)return o();var a=p,f=pe;A(null),En(s);var u=o();return A(a),En(f),u};return r&&n.set("length",oe(e.length)),new Proxy(e,{defineProperty(o,a,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&rr();var u=n.get(a);return u===void 0?l(()=>{var d=oe(f.value);return n.set(a,d),d}):X(u,f.value,!0),!0},deleteProperty(o,a){var f=n.get(a);if(f===void 0){if(a in o){const u=l(()=>oe(N));n.set(a,u),Pe(i)}}else X(f,N),Pe(i);return!0},get(o,a,f){if(a===ft)return e;var u=n.get(a),d=a in o;if(u===void 0&&(!d||Ee(o,a)?.writable)&&(u=l(()=>{var v=Ie(d?o[a]:N),h=oe(v);return h}),n.set(a,u)),u!==void 0){var c=H(u);return c===N?void 0:c}return Reflect.get(o,a,f)},getOwnPropertyDescriptor(o,a){var f=Reflect.getOwnPropertyDescriptor(o,a);if(f&&"value"in f){var u=n.get(a);u&&(f.value=H(u))}else if(f===void 0){var d=n.get(a),c=d?.v;if(d!==void 0&&c!==N)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return f},has(o,a){if(a===ft)return!0;var f=n.get(a),u=f!==void 0&&f.v!==N||Reflect.has(o,a);if(f!==void 0||g!==null&&(!u||Ee(o,a)?.writable)){f===void 0&&(f=l(()=>{var c=u?Ie(o[a]):N,v=oe(c);return v}),n.set(a,f));var d=H(f);if(d===N)return!1}return u},set(o,a,f,u){var d=n.get(a),c=a in o;if(r&&a==="length")for(var v=f;v<d.v;v+=1){var h=n.get(v+"");h!==void 0?X(h,N):v in o&&(h=l(()=>oe(N)),n.set(v+"",h))}if(d===void 0)(!c||Ee(o,a)?.writable)&&(d=l(()=>oe(void 0)),X(d,Ie(f)),n.set(a,d));else{c=d.v!==N;var w=l(()=>Ie(f));X(d,w)}var _=Reflect.getOwnPropertyDescriptor(o,a);if(_?.set&&_.set.call(u,f),!c){if(r&&typeof a=="string"){var E=n.get("length"),W=Number(a);Number.isInteger(W)&&W>=E.v&&X(E,W+1)}Pe(i)}return!0},ownKeys(o){H(i);var a=Reflect.ownKeys(o).filter(d=>{var c=n.get(d);return c===void 0||c.v!==N});for(var[f,u]of n)u.v!==N&&!(f in o)&&a.push(f);return a},setPrototypeOf(){ir()}})}var an,fn,un,cn;function gt(){if(an===void 0){an=window,fn=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;un=Ee(t,"firstChild").get,cn=Ee(t,"nextSibling").get,Lt(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Lt(n)&&(n.__t=void 0)}}function B(e=""){return document.createTextNode(e)}function Re(e){return un.call(e)}function Z(e){return cn.call(e)}function Ce(e,t){if(!y)return Re(e);var n=Re(m);return n===null&&(n=m.appendChild(B())),I(n),n}function kr(e,t=!1){if(!y){var n=Re(e);return n instanceof Comment&&n.data===""?Z(n):n}if(t){if(m?.nodeType!==We){var r=B();return m?.before(r),I(r),r}wt(m)}return m}function hn(e,t=1,n=!1){let r=y?m:e;for(var i;t--;)i=r,r=Z(r);if(!y)return r;if(n){if(r?.nodeType!==We){var s=B();return r===null?i?.after(s):r.before(s),I(s),s}wt(r)}return I(r),r}function Ar(e){e.textContent=""}function Rr(){return!1}function mt(e,t,n){return document.createElementNS(Mt,e,void 0)}function wt(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===We;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function yt(e){var t=p,n=g;A(null),M(null);try{return e()}finally{A(t),M(n)}}function Cr(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function U(e,t){var n=g;n!==null&&(n.f&q)!==0&&(e|=q);var r={ctx:F,deps:null,nodes:null,f:e|S|O,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&Te)!==0)ke!==null?ke.push(r):K.ensure().schedule(r);else if(t!==null){try{Oe(r)}catch(l){throw k(r),l}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&(i.f&ue)===0&&(i=i.first,(e&ee)!==0&&(e&xe)!==0&&i!==null&&(i.f|=xe))}if(i!==null&&(i.parent=n,n!==null&&Cr(i,n),p!==null&&(p.f&x)!==0&&(e&te)===0)){var s=p;(s.effects??=[]).push(i)}return r}function bt(){return p!==null&&!Y}function dn(e){const t=U(Ue,null);return $(t,T),t.teardown=e,t}function Or(e){return U(Te|Jn,e)}function Mr(e){K.ensure();const t=U(te|ue,e);return()=>{k(t)}}function Dr(e){K.ensure();const t=U(te|ue,e);return(n={})=>new Promise(r=>{n.outro?je(t,()=>{k(t),r(void 0)}):(k(t),r(void 0))})}function Lr(e){return U(Te,e)}function Pr(e){return U(at|ue,e)}function vn(e,t=0){return U(Ue|t,e)}function Fe(e,t=[],n=[],r=[]){yr(r,t,n,i=>{U(Ue,()=>e(...i.map(H)))})}function _n(e,t=0){var n=U(ee|t,e);return n}function Q(e){return U(z|ue,e)}function pn(e){var t=e.teardown;if(t!==null){const n=ve,r=p;bn(!0),A(null);try{t.call(null)}finally{bn(n),A(r)}}}function $t(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const i=n.ac;i!==null&&yt(()=>{i.abort(G)});var r=n.next;(n.f&te)!==0?n.parent=null:k(n,t),n=r}}function Ir(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&z)===0&&k(t),t=n}}function k(e,t=!0){var n=!1;(t||(e.f&Kn)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(Fr(e.nodes.start,e.nodes.end),n=!0),$(e,Ft),$t(e,t&&!n),He(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(const s of r)s.stop();pn(e),e.f^=Ft,e.f|=P;var i=e.parent;i!==null&&i.first!==null&&gn(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function Fr(e,t){for(;e!==null;){var n=e===t?null:Z(e);e.remove(),e=n}}function gn(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 je(e,t,n=!0){var r=[];mn(e,r,!0);var i=()=>{n&&k(e),t&&t()},s=r.length;if(s>0){var l=()=>--s||i();for(var o of r)o.out(l)}else i()}function mn(e,t,n){if((e.f&q)===0){e.f^=q;var r=e.nodes&&e.nodes.t;if(r!==null)for(const o of r)(o.is_global||n)&&t.push(o);for(var i=e.first;i!==null;){var s=i.next,l=(i.f&xe)!==0||(i.f&z)!==0&&(e.f&ee)!==0;mn(i,t,l?n:!1),i=s}}}function jr(e){wn(e,!0)}function wn(e,t){if((e.f&q)!==0){e.f^=q,(e.f&T)===0&&($(e,S),K.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&xe)!==0||(n.f&z)!==0;wn(n,i?t:!1),n=r}var s=e.nodes&&e.nodes.t;if(s!==null)for(const l of s)(l.is_global||t)&&l.in()}}function yn(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:Z(n);t.append(n),n=i}}let Qe=!1,ve=!1;function bn(e){ve=e}let p=null,Y=!1;function A(e){p=e}let g=null;function M(e){g=e}let D=null;function Yr(e){p!==null&&(D===null?D=[e]:D.push(e))}let R=null,C=0,L=null;function Hr(e){L=e}let $n=1,_e=0,pe=_e;function En(e){pe=e}function Tn(){return++$n}function Ye(e){var t=e.f;if((t&S)!==0)return!0;if(t&x&&(e.f&=~ce),(t&V)!==0){for(var n=e.deps,r=n.length,i=0;i<r;i++){var s=n[i];if(Ye(s)&&rn(s),s.wv>e.wv)return!0}(t&O)!==0&&j===null&&$(e,T)}return!1}function xn(e,t,n=!0){var r=e.reactions;if(r!==null&&!(D!==null&&$e.call(D,e)))for(var i=0;i<r.length;i++){var s=r[i];(s.f&x)!==0?xn(s,t,!1):t===s&&(n?$(s,S):(s.f&T)!==0&&$(s,V),vt(s))}}function Nn(e){var t=R,n=C,r=L,i=p,s=D,l=F,o=Y,a=pe,f=e.f;R=null,C=0,L=null,p=(f&(z|te))===0?e:null,D=null,Se(e.ctx),Y=!1,pe=++_e,e.ac!==null&&(yt(()=>{e.ac.abort(G)}),e.ac=null);try{e.f|=ot;var u=e.fn,d=u();e.f|=fe;var c=e.deps,v=b?.is_fork;if(R!==null){var h;if(v||He(e,C),c!==null&&C>0)for(c.length=C+R.length,h=0;h<R.length;h++)c[C+h]=R[h];else e.deps=c=R;if(bt()&&(e.f&O)!==0)for(h=C;h<c.length;h++)(c[h].reactions??=[]).push(e)}else!v&&c!==null&&C<c.length&&(He(e,C),c.length=C);if(Bt()&&L!==null&&!Y&&c!==null&&(e.f&(x|V|S))===0)for(h=0;h<L.length;h++)xn(L[h],e);if(i!==null&&i!==e){if(_e++,i.deps!==null)for(let w=0;w<n;w+=1)i.deps[w].rv=_e;if(t!==null)for(const w of t)w.rv=_e;L!==null&&(r===null?r=L:r.push(...L))}return(e.f&ne)!==0&&(e.f^=ne),d}catch(w){return Wt(w)}finally{e.f^=ot,R=t,C=n,L=r,p=i,D=s,Se(l),Y=o,pe=a}}function Vr(e,t){let n=t.reactions;if(n!==null){var r=Vn.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&x)!==0&&(R===null||!$e.call(R,t))){var s=t;(s.f&O)!==0&&(s.f^=O,s.f&=~ce),ct(s),xr(s),He(s,0)}}function He(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Vr(e,n[r])}function Oe(e){var t=e.f;if((t&P)===0){$(e,T);var n=g,r=Qe;g=e,Qe=!0;try{(t&(ee|It))!==0?Ir(e):$t(e),pn(e);var i=Nn(e);e.teardown=typeof i=="function"?i:null,e.wv=$n;var s;Yn&&cr&&(e.f&S)!==0&&e.deps}finally{Qe=r,g=n}}}function H(e){var t=e.f,n=(t&x)!==0;if(p!==null&&!Y){var r=g!==null&&(g.f&P)!==0;if(!r&&(D===null||!$e.call(D,e))){var i=p.deps;if((p.f&ot)!==0)e.rv<_e&&(e.rv=_e,R===null&&i!==null&&i[C]===e?C++:R===null?R=[e]:R.push(e));else{(p.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[p]:$e.call(s,p)||s.push(p)}}}if(ve&&le.has(e))return le.get(e);if(n){var l=e;if(ve){var o=l.v;return((l.f&T)===0&&l.reactions!==null||kn(l))&&(o=_t(l)),le.set(l,o),o}var a=(l.f&O)===0&&!Y&&p!==null&&(Qe||(p.f&O)!==0),f=(l.f&fe)===0;Ye(l)&&(a&&(l.f|=O),rn(l)),a&&!f&&(sn(l),Sn(l))}if(j?.has(e))return j.get(e);if((e.f&ne)!==0)throw e.v;return e.v}function Sn(e){if(e.f|=O,e.deps!==null)for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&x)!==0&&(t.f&O)===0&&(sn(t),Sn(t))}function kn(e){if(e.v===N)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(le.has(t)||(t.f&x)!==0&&kn(t))return!0;return!1}function qr(e){var t=Y;try{return Y=!0,e()}finally{Y=t}}const et=Symbol("events"),Br=new Set,An=new Set;function Ur(e,t,n,r={}){function i(s){if(r.capture||Et.call(t,s),!s.cancelBubble)return yt(()=>n?.call(this,s))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?de(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function Wr(e,t,n,r,i){var s={capture:r,passive:i},l=Ur(e,t,n,s);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&dn(()=>{t.removeEventListener(e,l,s)})}let Rn=null;function Et(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;Rn=e;var l=0,o=Rn===e&&e[et];if(o){var a=i.indexOf(o);if(a!==-1&&(t===document||t===window)){e[et]=t;return}var f=i.indexOf(t);if(f===-1)return;a<=f&&(l=a)}if(s=i[l]||e.target,s!==t){Be(e,"currentTarget",{configurable:!0,get(){return s||n}});var u=p,d=g;A(null),M(null);try{for(var c,v=[];s!==null;){var h=s.assignedSlot||s.parentNode||s.host||null;try{var w=s[et]?.[r];w!=null&&(!s.disabled||e.target===s)&&w.call(s,e)}catch(_){c?v.push(_):c=_}if(e.cancelBubble||h===t||h===null)break;s=h}if(c){for(let _ of v)queueMicrotask(()=>{throw _});throw c}}finally{e[et]=t,delete e.currentTarget,A(u),M(d)}}}const zr=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function Gr(e){return zr?.createHTML(e)??e}function Kr(e){var t=mt("template");return t.innerHTML=Gr(e.replaceAll("<!>","<!---->")),t.content}function ae(e,t){var n=g;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function tt(e,t){var n=(t&Fn)!==0,r=(t&jn)!==0,i,s=!e.startsWith("<!>");return()=>{if(y)return ae(m,null),m;i===void 0&&(i=Kr(s?e:"<!>"+e),n||(i=Re(i)));var l=r||fn?document.importNode(i,!0):i.cloneNode(!0);if(n){var o=Re(l),a=l.lastChild;ae(o,a)}else ae(l,l);return l}}function Jr(e=""){if(!y){var t=B(e+"");return ae(t,t),t}var n=m;return n.nodeType!==We?(n.before(n=B()),I(n)):wt(n),ae(n,n),n}function Xr(){if(y)return ae(m,null),m;var e=document.createDocumentFragment(),t=document.createComment(""),n=B();return e.append(t,n),ae(t,n),e}function ge(e,t){if(y){var n=g;((n.f&fe)===0||n.nodes.end===null)&&(n.nodes.end=m),Ke();return}e!==null&&e.before(t)}const Zr=["touchstart","touchmove"];function Qr(e){return Zr.includes(e)}function ei(e,t){var n=t==null?"":typeof t=="object"?`${t}`:t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=`${n}`)}function Cn(e,t){return On(e,t)}function ti(e,t){gt(),t.intro=t.intro??!1;const n=t.target,r=y,i=m;try{for(var s=Re(n);s&&(s.nodeType!==ze||s.data!==At);)s=Z(s);if(!s)throw be;re(!0),I(s);const l=On(e,{...t,anchor:s});return re(!1),l}catch(l){if(l instanceof Error&&l.message.split(`
2
- `).some(o=>o.startsWith("https://svelte.dev/e/")))throw l;return l!==be&&console.warn("Failed to hydrate: ",l),t.recover===!1&&nr(),gt(),Ar(n),re(!1),Cn(e,t)}finally{re(r),I(i)}}const nt=new Map;function On(e,{target:t,anchor:n,props:r={},events:i,context:s,intro:l=!0,transformError:o}){gt();var a=void 0,f=Dr(()=>{var u=n??t.appendChild(B());mr(u,{pending:()=>{}},v=>{Vt({});var h=F;if(s&&(h.c=s),i&&(r.$$events=i),y&&ae(v,null),a=e(v,r)||{},y&&(g.nodes.end=m,m===null||m.nodeType!==ze||m.data!==Ot))throw Ge(),be;qt()},o);var d=new Set,c=v=>{for(var h=0;h<v.length;h++){var w=v[h];if(!d.has(w)){d.add(w);var _=Qr(w);for(const we of[t,document]){var E=nt.get(we);E===void 0&&(E=new Map,nt.set(we,E));var W=E.get(w);W===void 0?(we.addEventListener(w,Et,{passive:_}),E.set(w,1)):E.set(w,W+1)}}}};return c(qn(Br)),An.add(c),()=>{for(var v of d)for(const _ of[t,document]){var h=nt.get(_),w=h.get(v);--w==0?(_.removeEventListener(v,Et),h.delete(v),h.size===0&&nt.delete(_)):h.set(v,w)}An.delete(c),u!==n&&u.parentNode?.removeChild(u)}});return Tt.set(a,f),a}let Tt=new WeakMap;function ni(e,t){const n=Tt.get(e);return n?(Tt.delete(e),n(t)):Promise.resolve()}class ri{anchor;#e=new Map;#n=new Map;#t=new Map;#i=new Set;#s=!0;constructor(t,n=!0){this.anchor=t,this.#s=n}#r=t=>{if(this.#e.has(t)){var n=this.#e.get(t),r=this.#n.get(n);if(r)jr(r),this.#i.delete(n);else{var i=this.#t.get(n);i&&(this.#n.set(n,i.effect),this.#t.delete(n),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),r=i.effect)}for(const[s,l]of this.#e){if(this.#e.delete(s),s===t)break;const o=this.#t.get(l);o&&(k(o.effect),this.#t.delete(l))}for(const[s,l]of this.#n){if(s===n||this.#i.has(s))continue;const o=()=>{if(Array.from(this.#e.values()).includes(s)){var f=document.createDocumentFragment();yn(l,f),f.append(B()),this.#t.set(s,{effect:l,fragment:f})}else k(l);this.#i.delete(s),this.#n.delete(s)};this.#s||!r?(this.#i.add(s),je(l,o,!1)):o()}}};#l=t=>{this.#e.delete(t);const n=Array.from(this.#e.values());for(const[r,i]of this.#t)n.includes(r)||(k(i.effect),this.#t.delete(r))};ensure(t,n){var r=b,i=Rr();if(n&&!this.#n.has(t)&&!this.#t.has(t))if(i){var s=document.createDocumentFragment(),l=B();s.append(l),this.#t.set(t,{effect:Q(()=>n(l)),fragment:s})}else this.#n.set(t,Q(()=>n(this.anchor)));if(this.#e.set(r,t),i){for(const[o,a]of this.#n)o===t?r.unskip_effect(a):r.skip_effect(a);for(const[o,a]of this.#t)o===t?r.unskip_effect(a.effect):r.skip_effect(a.effect);r.oncommit(this.#r),r.ondiscard(this.#l)}else y&&(this.anchor=m),this.#r(r)}}function xt(e,t,n=!1){var r;y&&(r=m,Ke());var i=new ri(e),s=n?xe:0;function l(o,a){if(y){var f=ar(r);if(o!==parseInt(f.substring(1))){var u=Yt();I(u),i.anchor=u,re(!1),i.ensure(o,a),re(!0);return}}i.ensure(o,a)}_n(()=>{var o=!1;t((a,f=0)=>{o=!0,l(f,a)}),o||l(-1,null)},s)}function ii(e,t,n,r,i){y&&Ke();var s=t.$$slots?.[n],l=!1;s===!0&&(s=t[n],l=!0),s===void 0?i!==null&&i(e):s(e,l?()=>r:r)}function si(e,t){Lr(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+t.hash)){const i=mt("style");i.id=t.hash,i.textContent=t.code,r.appendChild(i)}})}const li=Symbol("is custom element"),oi=Symbol("is html"),ai=Qn?"link":"LINK";function Nt(e,t,n,r){var i=fi(e);y&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName===ai)||i[t]!==(i[t]=n)&&(t==="loading"&&(e[Zn]=n),n==null?e.removeAttribute(t):typeof n!="string"&&Dn(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function Mn(e,t,n){var r=p,i=g;let s=y;y&&re(!1),A(null),M(null);try{t!=="style"&&(St.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.nodeName.toLowerCase())?Dn(e).includes(t):n&&typeof n=="object")?e[t]=n:Nt(e,t,n==null?n:String(n))}finally{A(r),M(i),s&&re(!0)}}function fi(e){return e.__attributes??={[li]:e.nodeName.includes("-"),[oi]:e.namespaceURI===Mt}}var St=new Map;function Dn(e){var t=e.getAttribute("is")||e.nodeName,n=St.get(t);if(n)return n;St.set(t,n=[]);for(var r,i=e,s=Element.prototype;s!==i;){r=Bn(i);for(var l in r)r[l].set&&n.push(l);i=Dt(i)}return n}function Ve(e,t,n,r){var i=r,s=!0,l=()=>(s&&(s=!1,i=r),i),o;o=e[t],o===void 0&&r!==void 0&&(o=l());var a;a=()=>{var c=e[t];return c===void 0?l():(s=!0,c)};var f=!1,u=nn(()=>(f=!1,a())),d=g;return(function(c,v){if(arguments.length>0){const h=v?H(u):c;return X(u,h),f=!0,i!==void 0&&(i=h),c}return ve&&f||(d.f&P)!==0?u.v:H(u)})}function ui(e){return new ci(e)}class ci{#e;#n;constructor(t){var n=new Map,r=(s,l)=>{var o=Nr(l,!1,!1);return n.set(s,o),o};const i=new Proxy({...t.props||{},$$events:{}},{get(s,l){return H(n.get(l)??r(l,Reflect.get(s,l)))},has(s,l){return l===Xn?!0:(H(n.get(l)??r(l,Reflect.get(s,l))),Reflect.has(s,l))},set(s,l,o){return X(n.get(l)??r(l,o),o),Reflect.set(s,l,o)}});this.#n=(t.hydrate?ti:Cn)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError}),(!t?.props?.$$host||t.sync===!1)&&Ae(),this.#e=i.$$events;for(const s of Object.keys(this.#n))s==="$set"||s==="$destroy"||s==="$on"||Be(this,s,{get(){return this.#n[s]},set(l){this.#n[s]=l},enumerable:!0});this.#n.$set=s=>{Object.assign(i,s)},this.#n.$destroy=()=>{ni(this.#n)}}$set(t){this.#n.$set(t)}$on(t,n){this.#e[t]=this.#e[t]||[];const r=(...i)=>n.call(this,...i);return this.#e[t].push(r),()=>{this.#e[t]=this.#e[t].filter(i=>i!==r)}}$destroy(){this.#n.$destroy()}}let Ln;typeof HTMLElement=="function"&&(Ln=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){const r=this.$$c.$on(e,t);this.$$l_u.set(t,r)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){const r=this.$$l_u.get(t);r&&(r(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(r){return i=>{const s=mt("slot");r!=="default"&&(s.name=r),ge(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},n=hi(this);for(const 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(const r of this.attributes){const i=this.$$g_p(r.name);i in this.$$d||(this.$$d[i]=rt(i,r.value,this.$$p_d,"toProp"))}for(const r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=ui({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Mr(()=>{vn(()=>{this.$$r=!0;for(const r of qe(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const i=rt(r,this.$$d[r],this.$$p_d,"toAttribute");i==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,i)}this.$$r=!1})});for(const r in this.$$l)for(const i of this.$$l[r]){const s=this.$$c.$on(r,i);this.$$l_u.set(i,s)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=rt(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 qe(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function rt(e,t,n,r){const 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 hi(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}function di(e,t,n,r,i,s){let l=class extends Ln{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return qe(t).map(o=>(t[o].attribute||o).toLowerCase())}};return qe(t).forEach(o=>{Be(l.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(a){a=rt(o,a,t),this.$$d[o]=a;var f=this.$$c;if(f){var u=Ee(f,o)?.get;u?f[o]=a:f.$set({[o]:a})}}})}),r.forEach(o=>{Be(l.prototype,o,{get(){return this.$$c?.[o]}})}),e.element=l,l}var me={},Pn;function vi(){if(Pn)return me;Pn=1,Object.defineProperty(me,"__esModule",{value:!0}),me.LanguageTranslator=void 0,me.getChildStyleToPass=e,me.addComponent=t;function e(r,i){var s,l,o="";try{if(r&&i?.length&&(!((s=Object.keys(r))===null||s===void 0)&&s.length)&&(!((l=i?.filter(function(c){return Object.keys(r).includes(c.name)}))===null||l===void 0)&&l.length))for(var a=function(c){var v=i?.filter(function(h){return h.name===c&&h.defaultValue!==r[c]});v&&(o+="".concat(c,":").concat(r[c],";"))},f=0,u=Object.keys(r);f<u.length;f++){var d=u[f];a(d)}}catch(c){console.error("error getting child style to pass",c)}finally{return o}}function t(r){var i,s=((i=r?.repoName.split("/"))===null||i===void 0?void 0:i[1])||r?.repoName;if(!s)throw new Error("wrong componentPath "+r?.repoName);if(!r?.version)throw new Error("wrong version "+r?.version);var l=r?.iifePath||"main.iife.js";if(!document.getElementById(s+"-script"))try{var o=document.createElement("script");if(o.id=s+"-script",o.src="https://cdn.jsdelivr.net/npm/".concat(r.repoName,"@").concat(r.version,"/").concat(l),r?.local)o.src="".concat(r.local);else if(location.href.includes("localhost:6006")){var a=s.split("-")[0];o.src="http://localhost:6006/webcomponents/".concat(s.replace(a+"-",""),"/").concat(l)}document.head.appendChild(o)}catch(f){console.warn(f)}}var n=(function(){function r(i){if(this.lang="",!i?.dictionary)throw new Error("no dictionary provided");this.dictionary=i.dictionary,this.setLang(i?.lang)}return r.prototype.setLang=function(i){i||(i=r.getDefaultLang()),this.lang=i},r.prototype.translateWord=function(i,s){return r.getDictionaryWord(i,this.dictionary,s||this.lang)},r.prototype.translateDate=function(i,s,l){return r.formatDate(i,s,l||this.lang)},r.getDefaultLang=function(){var i,s,l,o="en";return navigator?.languages&&(!((l=(s=(i=navigator.languages[0])===null||i===void 0?void 0:i.split("-")[0])===null||s===void 0?void 0:s.toLowerCase())===null||l===void 0)&&l.length)&&(o=navigator.languages[0].split("-")[0].toLowerCase()),o},r.getDictionaryWord=function(i,s,l){var o;if(!i)throw new Error("no wordKey provided");if(!s)throw new Error("no dictionary provided");if(l&&(!((o=s[l])===null||o===void 0)&&o[i]))return s[l][i];var a="",f=r.getDefaultLang();if(!l||f!==l){var u=s?.[f];u?.[i]&&(a=u[i])}return a},r.formatDate=function(i,s,l){if(!i)throw new Error("no date provided");if(typeof i.getMonth!="function")throw new Error("wrong date format");var o=new Intl.DateTimeFormat(l||r.getDefaultLang(),s);return o.format(i)},r})();return me.LanguageTranslator=n,me}var _i=vi();const pi={version:"0.66.2"};var gi=tt('<span slot="title"><!></span>'),mi=tt('<div style="ratio:16/9;width:100%;text-align: center;"><iframe style="border:0;aspect-ratio: 16 / 9;width:100%" title="YouTube video" allowfullscreen=""></iframe></div>'),wi=tt('<div style="aspect-ratio: 16 / 9;width:100%;text-align: center;background-color: black;"><video controls="" style="aspect-ratio: 16 / 9;width:100%"><track kind="captions"/> <source type="video/mp4"/> Your browser does not support the video tag.</video></div>',2),yi=tt('<hb-dialog><!> <div slot="body-content"><!></div> <span slot="modal-footer"></span></hb-dialog>',2);const bi={hash:"svelte-18hhnm9",code:'@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");:host {font-family:"Roboto", sans-serif;}'};function In(e,t){Vt(t,!0),si(e,bi);function n(_,E){t.$$host.dispatchEvent(new CustomEvent(_,{detail:E}))}_i.addComponent({repoName:"@htmlbricks/hb-dialog",version:pi.version});let r=Ve(t,"id",7,""),i=Ve(t,"item",7,"defaultItem"),s=Ve(t,"uri",7,""),l=Ve(t,"title",7,""),o=Ve(t,"provider",7,"");function a(_){_.show?i(_.id):(i(""),s(""),l("")),n("videoModalEvent",{id:i(),show:_.show})}var f={get id(){return r()},set id(_=""){r(_),Ae()},get item(){return i()},set item(_="defaultItem"){i(_),Ae()},get uri(){return s()},set uri(_=""){s(_),Ae()},get title(){return l()},set title(_=""){l(_),Ae()},get provider(){return o()},set provider(_=""){o(_),Ae()}},u=yi();Fe(()=>Mn(u,"id",i())),Fe(()=>Mn(u,"show",s()?"yes":"no"));var d=Ce(u);{var c=_=>{var E=gi(),W=Ce(E);ii(W,t,"title",{},we=>{var it=Jr();Fe(()=>ei(it,`Video: ${l()??""}`)),ge(we,it)}),Ne(E),ge(_,E)};xt(d,_=>{l()&&_(c)})}var v=hn(d,2),h=Ce(v);{var w=_=>{var E=Xr(),W=kr(E);{var we=Me=>{var ye=mi(),st=Ce(ye);Ne(ye),Fe(()=>Nt(st,"src",s())),ge(Me,ye)},it=Me=>{var ye=wi(),st=Ce(ye),$i=hn(Ce(st),2);ut(),Ne(st),Ne(ye),Fe(()=>Nt($i,"src",s())),ge(Me,ye)};xt(W,Me=>{o()==="youtube"?Me(we):Me(it,-1)})}ge(_,E)};xt(h,_=>{s()&&_(w)})}return Ne(v),ut(2),Ne(u),Wr("modalShow",u,_=>a(_.detail)),ge(e,u),qt(f)}customElements.define("hb-modal-video",di(In,{id:{},item:{},uri:{},title:{},provider:{}},["title"],[],{mode:"open"})),kt.Component=In,Object.defineProperty(kt,Symbol.toStringTag,{value:"Module"})})(this["modal-video"]=this["modal-video"]||{});
2
+ `).some(o=>o.startsWith("https://svelte.dev/e/")))throw l;return l!==be&&console.warn("Failed to hydrate: ",l),t.recover===!1&&nr(),gt(),Ar(n),re(!1),Cn(e,t)}finally{re(r),I(i)}}const nt=new Map;function On(e,{target:t,anchor:n,props:r={},events:i,context:s,intro:l=!0,transformError:o}){gt();var a=void 0,f=Dr(()=>{var u=n??t.appendChild(B());mr(u,{pending:()=>{}},v=>{Vt({});var h=F;if(s&&(h.c=s),i&&(r.$$events=i),y&&ae(v,null),a=e(v,r)||{},y&&(g.nodes.end=m,m===null||m.nodeType!==ze||m.data!==Ot))throw Ge(),be;qt()},o);var d=new Set,c=v=>{for(var h=0;h<v.length;h++){var w=v[h];if(!d.has(w)){d.add(w);var _=Qr(w);for(const we of[t,document]){var E=nt.get(we);E===void 0&&(E=new Map,nt.set(we,E));var W=E.get(w);W===void 0?(we.addEventListener(w,Et,{passive:_}),E.set(w,1)):E.set(w,W+1)}}}};return c(qn(Br)),An.add(c),()=>{for(var v of d)for(const _ of[t,document]){var h=nt.get(_),w=h.get(v);--w==0?(_.removeEventListener(v,Et),h.delete(v),h.size===0&&nt.delete(_)):h.set(v,w)}An.delete(c),u!==n&&u.parentNode?.removeChild(u)}});return Tt.set(a,f),a}let Tt=new WeakMap;function ni(e,t){const n=Tt.get(e);return n?(Tt.delete(e),n(t)):Promise.resolve()}class ri{anchor;#e=new Map;#n=new Map;#t=new Map;#i=new Set;#s=!0;constructor(t,n=!0){this.anchor=t,this.#s=n}#r=t=>{if(this.#e.has(t)){var n=this.#e.get(t),r=this.#n.get(n);if(r)jr(r),this.#i.delete(n);else{var i=this.#t.get(n);i&&(this.#n.set(n,i.effect),this.#t.delete(n),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),r=i.effect)}for(const[s,l]of this.#e){if(this.#e.delete(s),s===t)break;const o=this.#t.get(l);o&&(k(o.effect),this.#t.delete(l))}for(const[s,l]of this.#n){if(s===n||this.#i.has(s))continue;const o=()=>{if(Array.from(this.#e.values()).includes(s)){var f=document.createDocumentFragment();yn(l,f),f.append(B()),this.#t.set(s,{effect:l,fragment:f})}else k(l);this.#i.delete(s),this.#n.delete(s)};this.#s||!r?(this.#i.add(s),je(l,o,!1)):o()}}};#l=t=>{this.#e.delete(t);const n=Array.from(this.#e.values());for(const[r,i]of this.#t)n.includes(r)||(k(i.effect),this.#t.delete(r))};ensure(t,n){var r=b,i=Rr();if(n&&!this.#n.has(t)&&!this.#t.has(t))if(i){var s=document.createDocumentFragment(),l=B();s.append(l),this.#t.set(t,{effect:Q(()=>n(l)),fragment:s})}else this.#n.set(t,Q(()=>n(this.anchor)));if(this.#e.set(r,t),i){for(const[o,a]of this.#n)o===t?r.unskip_effect(a):r.skip_effect(a);for(const[o,a]of this.#t)o===t?r.unskip_effect(a.effect):r.skip_effect(a.effect);r.oncommit(this.#r),r.ondiscard(this.#l)}else y&&(this.anchor=m),this.#r(r)}}function xt(e,t,n=!1){var r;y&&(r=m,Ke());var i=new ri(e),s=n?xe:0;function l(o,a){if(y){var f=ar(r);if(o!==parseInt(f.substring(1))){var u=Yt();I(u),i.anchor=u,re(!1),i.ensure(o,a),re(!0);return}}i.ensure(o,a)}_n(()=>{var o=!1;t((a,f=0)=>{o=!0,l(f,a)}),o||l(-1,null)},s)}function ii(e,t,n,r,i){y&&Ke();var s=t.$$slots?.[n],l=!1;s===!0&&(s=t[n],l=!0),s===void 0?i!==null&&i(e):s(e,l?()=>r:r)}function si(e,t){Lr(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+t.hash)){const i=mt("style");i.id=t.hash,i.textContent=t.code,r.appendChild(i)}})}const li=Symbol("is custom element"),oi=Symbol("is html"),ai=Qn?"link":"LINK";function Nt(e,t,n,r){var i=fi(e);y&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName===ai)||i[t]!==(i[t]=n)&&(t==="loading"&&(e[Zn]=n),n==null?e.removeAttribute(t):typeof n!="string"&&Dn(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function Mn(e,t,n){var r=p,i=g;let s=y;y&&re(!1),A(null),M(null);try{t!=="style"&&(St.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.nodeName.toLowerCase())?Dn(e).includes(t):n&&typeof n=="object")?e[t]=n:Nt(e,t,n==null?n:String(n))}finally{A(r),M(i),s&&re(!0)}}function fi(e){return e.__attributes??={[li]:e.nodeName.includes("-"),[oi]:e.namespaceURI===Mt}}var St=new Map;function Dn(e){var t=e.getAttribute("is")||e.nodeName,n=St.get(t);if(n)return n;St.set(t,n=[]);for(var r,i=e,s=Element.prototype;s!==i;){r=Bn(i);for(var l in r)r[l].set&&n.push(l);i=Dt(i)}return n}function Ve(e,t,n,r){var i=r,s=!0,l=()=>(s&&(s=!1,i=r),i),o;o=e[t],o===void 0&&r!==void 0&&(o=l());var a;a=()=>{var c=e[t];return c===void 0?l():(s=!0,c)};var f=!1,u=nn(()=>(f=!1,a())),d=g;return(function(c,v){if(arguments.length>0){const h=v?H(u):c;return X(u,h),f=!0,i!==void 0&&(i=h),c}return ve&&f||(d.f&P)!==0?u.v:H(u)})}function ui(e){return new ci(e)}class ci{#e;#n;constructor(t){var n=new Map,r=(s,l)=>{var o=Nr(l,!1,!1);return n.set(s,o),o};const i=new Proxy({...t.props||{},$$events:{}},{get(s,l){return H(n.get(l)??r(l,Reflect.get(s,l)))},has(s,l){return l===Xn?!0:(H(n.get(l)??r(l,Reflect.get(s,l))),Reflect.has(s,l))},set(s,l,o){return X(n.get(l)??r(l,o),o),Reflect.set(s,l,o)}});this.#n=(t.hydrate?ti:Cn)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError}),(!t?.props?.$$host||t.sync===!1)&&Ae(),this.#e=i.$$events;for(const s of Object.keys(this.#n))s==="$set"||s==="$destroy"||s==="$on"||Be(this,s,{get(){return this.#n[s]},set(l){this.#n[s]=l},enumerable:!0});this.#n.$set=s=>{Object.assign(i,s)},this.#n.$destroy=()=>{ni(this.#n)}}$set(t){this.#n.$set(t)}$on(t,n){this.#e[t]=this.#e[t]||[];const r=(...i)=>n.call(this,...i);return this.#e[t].push(r),()=>{this.#e[t]=this.#e[t].filter(i=>i!==r)}}$destroy(){this.#n.$destroy()}}let Ln;typeof HTMLElement=="function"&&(Ln=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){const r=this.$$c.$on(e,t);this.$$l_u.set(t,r)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){const r=this.$$l_u.get(t);r&&(r(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(r){return i=>{const s=mt("slot");r!=="default"&&(s.name=r),ge(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},n=hi(this);for(const 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(const r of this.attributes){const i=this.$$g_p(r.name);i in this.$$d||(this.$$d[i]=rt(i,r.value,this.$$p_d,"toProp"))}for(const r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=ui({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Mr(()=>{vn(()=>{this.$$r=!0;for(const r of qe(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const i=rt(r,this.$$d[r],this.$$p_d,"toAttribute");i==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,i)}this.$$r=!1})});for(const r in this.$$l)for(const i of this.$$l[r]){const s=this.$$c.$on(r,i);this.$$l_u.set(i,s)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=rt(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 qe(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function rt(e,t,n,r){const 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 hi(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}function di(e,t,n,r,i,s){let l=class extends Ln{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return qe(t).map(o=>(t[o].attribute||o).toLowerCase())}};return qe(t).forEach(o=>{Be(l.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(a){a=rt(o,a,t),this.$$d[o]=a;var f=this.$$c;if(f){var u=Ee(f,o)?.get;u?f[o]=a:f.$set({[o]:a})}}})}),r.forEach(o=>{Be(l.prototype,o,{get(){return this.$$c?.[o]}})}),e.element=l,l}var me={},Pn;function vi(){if(Pn)return me;Pn=1,Object.defineProperty(me,"__esModule",{value:!0}),me.LanguageTranslator=void 0,me.getChildStyleToPass=e,me.addComponent=t;function e(r,i){var s,l,o="";try{if(r&&i?.length&&(!((s=Object.keys(r))===null||s===void 0)&&s.length)&&(!((l=i?.filter(function(c){return Object.keys(r).includes(c.name)}))===null||l===void 0)&&l.length))for(var a=function(c){var v=i?.filter(function(h){return h.name===c&&h.defaultValue!==r[c]});v&&(o+="".concat(c,":").concat(r[c],";"))},f=0,u=Object.keys(r);f<u.length;f++){var d=u[f];a(d)}}catch(c){console.error("error getting child style to pass",c)}finally{return o}}function t(r){var i,s=((i=r?.repoName.split("/"))===null||i===void 0?void 0:i[1])||r?.repoName;if(!s)throw new Error("wrong componentPath "+r?.repoName);if(!r?.version)throw new Error("wrong version "+r?.version);var l=r?.iifePath||"main.iife.js";if(!document.getElementById(s+"-script"))try{var o=document.createElement("script");if(o.id=s+"-script",o.src="https://cdn.jsdelivr.net/npm/".concat(r.repoName,"@").concat(r.version,"/").concat(l),r?.local)o.src="".concat(r.local);else if(location.href.includes("localhost:6006")){var a=s.split("-")[0];o.src="http://localhost:6006/webcomponents/".concat(s.replace(a+"-",""),"/").concat(l)}document.head.appendChild(o)}catch(f){console.warn(f)}}var n=(function(){function r(i){if(this.lang="",!i?.dictionary)throw new Error("no dictionary provided");this.dictionary=i.dictionary,this.setLang(i?.lang)}return r.prototype.setLang=function(i){i||(i=r.getDefaultLang()),this.lang=i},r.prototype.translateWord=function(i,s){return r.getDictionaryWord(i,this.dictionary,s||this.lang)},r.prototype.translateDate=function(i,s,l){return r.formatDate(i,s,l||this.lang)},r.getDefaultLang=function(){var i,s,l,o="en";return navigator?.languages&&(!((l=(s=(i=navigator.languages[0])===null||i===void 0?void 0:i.split("-")[0])===null||s===void 0?void 0:s.toLowerCase())===null||l===void 0)&&l.length)&&(o=navigator.languages[0].split("-")[0].toLowerCase()),o},r.getDictionaryWord=function(i,s,l){var o;if(!i)throw new Error("no wordKey provided");if(!s)throw new Error("no dictionary provided");if(l&&(!((o=s[l])===null||o===void 0)&&o[i]))return s[l][i];var a="",f=r.getDefaultLang();if(!l||f!==l){var u=s?.[f];u?.[i]&&(a=u[i])}return a},r.formatDate=function(i,s,l){if(!i)throw new Error("no date provided");if(typeof i.getMonth!="function")throw new Error("wrong date format");var o=new Intl.DateTimeFormat(l||r.getDefaultLang(),s);return o.format(i)},r})();return me.LanguageTranslator=n,me}var _i=vi();const pi={version:"0.66.3"};var gi=tt('<span slot="title"><!></span>'),mi=tt('<div style="ratio:16/9;width:100%;text-align: center;"><iframe style="border:0;aspect-ratio: 16 / 9;width:100%" title="YouTube video" allowfullscreen=""></iframe></div>'),wi=tt('<div style="aspect-ratio: 16 / 9;width:100%;text-align: center;background-color: black;"><video controls="" style="aspect-ratio: 16 / 9;width:100%"><track kind="captions"/> <source type="video/mp4"/> Your browser does not support the video tag.</video></div>',2),yi=tt('<hb-dialog><!> <div slot="body-content"><!></div> <span slot="modal-footer"></span></hb-dialog>',2);const bi={hash:"svelte-18hhnm9",code:'@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");:host {font-family:"Roboto", sans-serif;}'};function In(e,t){Vt(t,!0),si(e,bi);function n(_,E){t.$$host.dispatchEvent(new CustomEvent(_,{detail:E}))}_i.addComponent({repoName:"@htmlbricks/hb-dialog",version:pi.version});let r=Ve(t,"id",7,""),i=Ve(t,"item",7,"defaultItem"),s=Ve(t,"uri",7,""),l=Ve(t,"title",7,""),o=Ve(t,"provider",7,"");function a(_){_.show?i(_.id):(i(""),s(""),l("")),n("videoModalEvent",{id:i(),show:_.show})}var f={get id(){return r()},set id(_=""){r(_),Ae()},get item(){return i()},set item(_="defaultItem"){i(_),Ae()},get uri(){return s()},set uri(_=""){s(_),Ae()},get title(){return l()},set title(_=""){l(_),Ae()},get provider(){return o()},set provider(_=""){o(_),Ae()}},u=yi();Fe(()=>Mn(u,"id",i())),Fe(()=>Mn(u,"show",s()?"yes":"no"));var d=Ce(u);{var c=_=>{var E=gi(),W=Ce(E);ii(W,t,"title",{},we=>{var it=Jr();Fe(()=>ei(it,`Video: ${l()??""}`)),ge(we,it)}),Ne(E),ge(_,E)};xt(d,_=>{l()&&_(c)})}var v=hn(d,2),h=Ce(v);{var w=_=>{var E=Xr(),W=kr(E);{var we=Me=>{var ye=mi(),st=Ce(ye);Ne(ye),Fe(()=>Nt(st,"src",s())),ge(Me,ye)},it=Me=>{var ye=wi(),st=Ce(ye),$i=hn(Ce(st),2);ut(),Ne(st),Ne(ye),Fe(()=>Nt($i,"src",s())),ge(Me,ye)};xt(W,Me=>{o()==="youtube"?Me(we):Me(it,-1)})}ge(_,E)};xt(h,_=>{s()&&_(w)})}return Ne(v),ut(2),Ne(u),Wr("modalShow",u,_=>a(_.detail)),ge(e,u),qt(f)}customElements.define("hb-modal-video",di(In,{id:{},item:{},uri:{},title:{},provider:{}},["title"],[],{mode:"open"})),kt.Component=In,Object.defineProperty(kt,Symbol.toStringTag,{value:"Module"})})(this["modal-video"]=this["modal-video"]||{});
3
3
  //# sourceMappingURL=main.iife.js.map
package/manifest.json CHANGED
@@ -128,5 +128,5 @@
128
128
  "size": {},
129
129
  "iifePath": "main.iife.js",
130
130
  "repoName": "@htmlbricks/hb-modal-video",
131
- "version": "0.66.2"
131
+ "version": "0.66.3"
132
132
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@htmlbricks/hb-modal-video",
3
- "version": "0.66.2",
3
+ "version": "0.66.3",
4
4
  "contributors": [],
5
5
  "description": "Video modal built on hb-dialog: when uri is set the dialog opens with either a YouTube iframe (provider youtube) or an HTML5 video element, optional title slot, and videoModalEvent when visibility changes.",
6
6
  "licenses": [