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