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