@htmlbricks/hb-player-input-streaming 0.66.3 → 0.66.4

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