utxo22-web/_app/pages/program.svelte-fd6b95b3.js

4 řádky
48 KiB
JavaScript

var Je=Object.defineProperty;var Jt=Object.getOwnPropertySymbols;var Qe=Object.prototype.hasOwnProperty,Ze=Object.prototype.propertyIsEnumerable;var Qt=(t,e,n)=>e in t?Je(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,at=(t,e)=>{for(var n in e||(e={}))Qe.call(e,n)&&Qt(t,n,e[n]);if(Jt)for(var n of Jt(e))Ze.call(e,n)&&Qt(t,n,e[n]);return t};import{S as ye,i as ve,s as xe,a0 as je,e as F,c as D,a as z,d as L,b as P,f as ht,g as ut,F as A,J as Et,E as kt,Y as $e,v as tn,O as en,l as Zt,q as Z,w as we,x as be,y as Me,o as it,B as Ee,p as Lt,k as $,t as q,R as nn,m as tt,h as J,_ as jt,j as Tt,G as ke,Z as rn,H as $t,n as Ot}from"../chunks/index-f961f29d.js";import{a as sn,c as on}from"../chunks/Event-d12d19a1.js";import{p as te}from"../chunks/stores-d7e9d57e.js";import{g as Ct}from"../chunks/navigation-0e6511d1.js";import{l as cn,b as ee}from"../chunks/stores-2b13be7a.js";import{g as an}from"../chunks/_commonjsHelpers-c771f69b.js";import"../chunks/Avatar-ae188221.js";import"../chunks/singletons-d1fb5791.js";import"../chunks/index-f562cf15.js";var ln={value:function(){}};function Ae(){for(var t=0,e=arguments.length,n={},s;t<e;++t){if(!(s=arguments[t]+"")||s in n||/[\s.]/.test(s))throw new Error("illegal type: "+s);n[s]=[]}return new bt(n)}function bt(t){this._=t}function un(t,e){return t.trim().split(/^|\s+/).map(function(n){var s="",r=n.indexOf(".");if(r>=0&&(s=n.slice(r+1),n=n.slice(0,r)),n&&!e.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:s}})}bt.prototype=Ae.prototype={constructor:bt,on:function(t,e){var n=this._,s=un(t+"",n),r,i=-1,o=s.length;if(arguments.length<2){for(;++i<o;)if((r=(t=s[i]).type)&&(r=fn(n[r],t.name)))return r;return}if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++i<o;)if(r=(t=s[i]).type)n[r]=ne(n[r],t.name,e);else if(e==null)for(r in n)n[r]=ne(n[r],t.name,null);return this},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new bt(t)},call:function(t,e){if((r=arguments.length-2)>0)for(var n=new Array(r),s=0,r,i;s<r;++s)n[s]=arguments[s+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(i=this._[t],s=0,r=i.length;s<r;++s)i[s].value.apply(e,n)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var s=this._[t],r=0,i=s.length;r<i;++r)s[r].value.apply(e,n)}};function fn(t,e){for(var n=0,s=t.length,r;n<s;++n)if((r=t[n]).name===e)return r.value}function ne(t,e,n){for(var s=0,r=t.length;s<r;++s)if(t[s].name===e){t[s]=ln,t=t.slice(0,s).concat(t.slice(s+1));break}return n!=null&&t.push({name:e,value:n}),t}var hn=Object.freeze(Object.defineProperty({__proto__:null,dispatch:Ae},Symbol.toStringTag,{value:"Module"})),dn=an(hn),pn=dn.dispatch,Rt=Math.PI/180,_t=1<<11>>5,Mt=1<<11,gn=function(){var t=[256,256],e=mn,n=_n,s=yn,r=re,i=re,o=vn,c=xn,a=Se,l=[],u=1/0,h=pn("word","end"),p=null,g=Math.random,f={},v=Sn;f.canvas=function(d){return arguments.length?(v=st(d),f):v},f.start=function(){var d=E(v()),m=An((t[0]>>5)*t[1]),x=null,b=l.length,N=-1,C=[],S=l.map(function(I,M){return I.text=e.call(this,I,M),I.font=n.call(this,I,M),I.style=r.call(this,I,M),I.weight=i.call(this,I,M),I.rotate=o.call(this,I,M),I.size=~~s.call(this,I,M),I.padding=c.call(this,I,M),I}).sort(function(I,M){return M.size-I.size});return p&&clearInterval(p),p=setInterval(O,0),O(),f;function O(){for(var I=Date.now();Date.now()-I<u&&++N<b&&p;){var M=S[N];M.x=t[0]*(g()+.5)>>1,M.y=t[1]*(g()+.5)>>1,wn(d,M,S,N),M.hasText&&_(m,M,x)&&(C.push(M),h.call("word",f,M),x?Mn(x,M):x=[{x:M.x+M.x0,y:M.y+M.y0},{x:M.x+M.x1,y:M.y+M.y1}],M.x-=t[0]>>1,M.y-=t[1]>>1)}N>=b&&(f.stop(),h.call("end",f,C,x))}},f.stop=function(){return p&&(clearInterval(p),p=null),f};function E(d){d.width=d.height=1;var m=Math.sqrt(d.getContext("2d").getImageData(0,0,1,1).data.length>>2);d.width=(_t<<5)/m,d.height=Mt/m;var x=d.getContext("2d");return x.fillStyle=x.strokeStyle="red",x.textAlign="center",{context:x,ratio:m}}function _(d,m,x){t[0],t[1];for(var b=m.x,N=m.y,C=Math.sqrt(t[0]*t[0]+t[1]*t[1]),S=a(t),O=g()<.5?1:-1,I=-O,M,W,U;(M=S(I+=O))&&(W=~~M[0],U=~~M[1],!(Math.min(Math.abs(W),Math.abs(U))>=C));)if(m.x=b+W,m.y=N+U,!(m.x+m.x0<0||m.y+m.y0<0||m.x+m.x1>t[0]||m.y+m.y1>t[1])&&(!x||!bn(m,d,t[0]))&&(!x||En(m,x))){for(var y=m.sprite,R=m.width>>5,B=t[0]>>5,rt=m.x-(R<<4),pt=rt&127,yt=32-pt,Q=m.y1-m.y0,gt=(m.y+m.y0)*B+(rt>>5),G,T=0;T<Q;T++){G=0;for(var ct=0;ct<=R;ct++)d[gt+ct]|=G<<yt|(ct<R?(G=y[T*R+ct])>>>pt:0);gt+=B}return delete m.sprite,!0}return!1}return f.timeInterval=function(d){return arguments.length?(u=d==null?1/0:d,f):u},f.words=function(d){return arguments.length?(l=d,f):l},f.size=function(d){return arguments.length?(t=[+d[0],+d[1]],f):t},f.font=function(d){return arguments.length?(n=st(d),f):n},f.fontStyle=function(d){return arguments.length?(r=st(d),f):r},f.fontWeight=function(d){return arguments.length?(i=st(d),f):i},f.rotate=function(d){return arguments.length?(o=st(d),f):o},f.text=function(d){return arguments.length?(e=st(d),f):e},f.spiral=function(d){return arguments.length?(a=In[d]||d,f):a},f.fontSize=function(d){return arguments.length?(s=st(d),f):s},f.padding=function(d){return arguments.length?(c=st(d),f):c},f.random=function(d){return arguments.length?(g=d,f):g},f.on=function(){var d=h.on.apply(h,arguments);return d===h?f:d},f};function mn(t){return t.text}function _n(){return"serif"}function re(){return"normal"}function yn(t){return Math.sqrt(t.value)}function vn(){return(~~(Math.random()*6)-3)*30}function xn(){return 1}function wn(t,e,n,s){if(!e.sprite){var r=t.context,i=t.ratio;r.clearRect(0,0,(_t<<5)/i,Mt/i);var o=0,c=0,a=0,l=n.length;for(--s;++s<l;){e=n[s],r.save(),r.font=e.style+" "+e.weight+" "+~~((e.size+1)/i)+"px "+e.font;var u=r.measureText(e.text+"m").width*i,h=e.size<<1;if(e.rotate){var p=Math.sin(e.rotate*Rt),g=Math.cos(e.rotate*Rt),f=u*g,v=u*p,E=h*g,_=h*p;u=Math.max(Math.abs(f+_),Math.abs(f-_))+31>>5<<5,h=~~Math.max(Math.abs(v+E),Math.abs(v-E))}else u=u+31>>5<<5;if(h>a&&(a=h),o+u>=_t<<5&&(o=0,c+=a,a=0),c+h>=Mt)break;r.translate((o+(u>>1))/i,(c+(h>>1))/i),e.rotate&&r.rotate(e.rotate*Rt),r.fillText(e.text,0,0),e.padding&&(r.lineWidth=2*e.padding,r.strokeText(e.text,0,0)),r.restore(),e.width=u,e.height=h,e.xoff=o,e.yoff=c,e.x1=u>>1,e.y1=h>>1,e.x0=-e.x1,e.y0=-e.y1,e.hasText=!0,o+=u}for(var d=r.getImageData(0,0,(_t<<5)/i,Mt/i).data,m=[];--s>=0;)if(e=n[s],!!e.hasText){for(var u=e.width,x=u>>5,h=e.y1-e.y0,b=0;b<h*x;b++)m[b]=0;if(o=e.xoff,o==null)return;c=e.yoff;for(var N=0,C=-1,S=0;S<h;S++){for(var b=0;b<u;b++){var O=x*S+(b>>5),I=d[(c+S)*(_t<<5)+(o+b)<<2]?1<<31-b%32:0;m[O]|=I,N|=I}N?C=S:(e.y0++,h--,S--,c++)}e.y1=e.y0+C,e.sprite=m.slice(0,(e.y1-e.y0)*x)}}}function bn(t,e,n){n>>=5;for(var s=t.sprite,r=t.width>>5,i=t.x-(r<<4),o=i&127,c=32-o,a=t.y1-t.y0,l=(t.y+t.y0)*n+(i>>5),u,h=0;h<a;h++){u=0;for(var p=0;p<=r;p++)if((u<<c|(p<r?(u=s[h*r+p])>>>o:0))&e[l+p])return!0;l+=n}return!1}function Mn(t,e){var n=t[0],s=t[1];e.x+e.x0<n.x&&(n.x=e.x+e.x0),e.y+e.y0<n.y&&(n.y=e.y+e.y0),e.x+e.x1>s.x&&(s.x=e.x+e.x1),e.y+e.y1>s.y&&(s.y=e.y+e.y1)}function En(t,e){return t.x+t.x1>e[0].x&&t.x+t.x0<e[1].x&&t.y+t.y1>e[0].y&&t.y+t.y0<e[1].y}function Se(t){var e=t[0]/t[1];return function(n){return[e*(n*=.1)*Math.cos(n),n*Math.sin(n)]}}function kn(t){var e=4,n=e*t[0]/t[1],s=0,r=0;return function(i){var o=i<0?-1:1;switch(Math.sqrt(1+4*o*i)-o&3){case 0:s+=n;break;case 1:r+=e;break;case 2:s-=n;break;default:r-=e;break}return[s,r]}}function An(t){for(var e=[],n=-1;++n<t;)e[n]=0;return e}function Sn(){return document.createElement("canvas")}function st(t){return typeof t=="function"?t:function(){return t}}var In={archimedean:Se,rectangular:kn},Pt="http://www.w3.org/1999/xhtml",se={svg:"http://www.w3.org/2000/svg",xhtml:Pt,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Ie(t){var e=t+="",n=e.indexOf(":");return n>=0&&(e=t.slice(0,n))!=="xmlns"&&(t=t.slice(n+1)),se.hasOwnProperty(e)?{space:se[e],local:t}:t}function Cn(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===Pt&&e.documentElement.namespaceURI===Pt?e.createElement(t):e.createElementNS(n,t)}}function Rn(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Ce(t){var e=Ie(t);return(e.local?Rn:Cn)(e)}function Nn(){}function Re(t){return t==null?Nn:function(){return this.querySelector(t)}}function Ln(t){typeof t!="function"&&(t=Re(t));for(var e=this._groups,n=e.length,s=new Array(n),r=0;r<n;++r)for(var i=e[r],o=i.length,c=s[r]=new Array(o),a,l,u=0;u<o;++u)(a=i[u])&&(l=t.call(a,a.__data__,u,i))&&("__data__"in a&&(l.__data__=a.__data__),c[u]=l);return new X(s,this._parents)}function Tn(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function On(){return[]}function Pn(t){return t==null?On:function(){return this.querySelectorAll(t)}}function Fn(t){return function(){return Tn(t.apply(this,arguments))}}function Dn(t){typeof t=="function"?t=Fn(t):t=Pn(t);for(var e=this._groups,n=e.length,s=[],r=[],i=0;i<n;++i)for(var o=e[i],c=o.length,a,l=0;l<c;++l)(a=o[l])&&(s.push(t.call(a,a.__data__,l,o)),r.push(a));return new X(s,r)}function zn(t){return function(){return this.matches(t)}}function Ne(t){return function(e){return e.matches(t)}}var Vn=Array.prototype.find;function Wn(t){return function(){return Vn.call(this.children,t)}}function Bn(){return this.firstElementChild}function Hn(t){return this.select(t==null?Bn:Wn(typeof t=="function"?t:Ne(t)))}var Kn=Array.prototype.filter;function Un(){return Array.from(this.children)}function Yn(t){return function(){return Kn.call(this.children,t)}}function Xn(t){return this.selectAll(t==null?Un:Yn(typeof t=="function"?t:Ne(t)))}function Gn(t){typeof t!="function"&&(t=zn(t));for(var e=this._groups,n=e.length,s=new Array(n),r=0;r<n;++r)for(var i=e[r],o=i.length,c=s[r]=[],a,l=0;l<o;++l)(a=i[l])&&t.call(a,a.__data__,l,i)&&c.push(a);return new X(s,this._parents)}function Le(t){return new Array(t.length)}function qn(){return new X(this._enter||this._groups.map(Le),this._parents)}function At(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}At.prototype={constructor:At,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function Jn(t){return function(){return t}}function Qn(t,e,n,s,r,i){for(var o=0,c,a=e.length,l=i.length;o<l;++o)(c=e[o])?(c.__data__=i[o],s[o]=c):n[o]=new At(t,i[o]);for(;o<a;++o)(c=e[o])&&(r[o]=c)}function Zn(t,e,n,s,r,i,o){var c,a,l=new Map,u=e.length,h=i.length,p=new Array(u),g;for(c=0;c<u;++c)(a=e[c])&&(p[c]=g=o.call(a,a.__data__,c,e)+"",l.has(g)?r[c]=a:l.set(g,a));for(c=0;c<h;++c)g=o.call(t,i[c],c,i)+"",(a=l.get(g))?(s[c]=a,a.__data__=i[c],l.delete(g)):n[c]=new At(t,i[c]);for(c=0;c<u;++c)(a=e[c])&&l.get(p[c])===a&&(r[c]=a)}function jn(t){return t.__data__}function $n(t,e){if(!arguments.length)return Array.from(this,jn);var n=e?Zn:Qn,s=this._parents,r=this._groups;typeof t!="function"&&(t=Jn(t));for(var i=r.length,o=new Array(i),c=new Array(i),a=new Array(i),l=0;l<i;++l){var u=s[l],h=r[l],p=h.length,g=tr(t.call(u,u&&u.__data__,l,s)),f=g.length,v=c[l]=new Array(f),E=o[l]=new Array(f),_=a[l]=new Array(p);n(u,h,v,E,_,g,e);for(var d=0,m=0,x,b;d<f;++d)if(x=v[d]){for(d>=m&&(m=d+1);!(b=E[m])&&++m<f;);x._next=b||null}}return o=new X(o,s),o._enter=c,o._exit=a,o}function tr(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function er(){return new X(this._exit||this._groups.map(Le),this._parents)}function nr(t,e,n){var s=this.enter(),r=this,i=this.exit();return typeof t=="function"?(s=t(s),s&&(s=s.selection())):s=s.append(t+""),e!=null&&(r=e(r),r&&(r=r.selection())),n==null?i.remove():n(i),s&&r?s.merge(r).order():r}function rr(t){for(var e=t.selection?t.selection():t,n=this._groups,s=e._groups,r=n.length,i=s.length,o=Math.min(r,i),c=new Array(r),a=0;a<o;++a)for(var l=n[a],u=s[a],h=l.length,p=c[a]=new Array(h),g,f=0;f<h;++f)(g=l[f]||u[f])&&(p[f]=g);for(;a<r;++a)c[a]=n[a];return new X(c,this._parents)}function sr(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var s=t[e],r=s.length-1,i=s[r],o;--r>=0;)(o=s[r])&&(i&&o.compareDocumentPosition(i)^4&&i.parentNode.insertBefore(o,i),i=o);return this}function ir(t){t||(t=or);function e(h,p){return h&&p?t(h.__data__,p.__data__):!h-!p}for(var n=this._groups,s=n.length,r=new Array(s),i=0;i<s;++i){for(var o=n[i],c=o.length,a=r[i]=new Array(c),l,u=0;u<c;++u)(l=o[u])&&(a[u]=l);a.sort(e)}return new X(r,this._parents).order()}function or(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function cr(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function ar(){return Array.from(this)}function lr(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var s=t[e],r=0,i=s.length;r<i;++r){var o=s[r];if(o)return o}return null}function ur(){let t=0;for(const e of this)++t;return t}function fr(){return!this.node()}function hr(t){for(var e=this._groups,n=0,s=e.length;n<s;++n)for(var r=e[n],i=0,o=r.length,c;i<o;++i)(c=r[i])&&t.call(c,c.__data__,i,r);return this}function dr(t){return function(){this.removeAttribute(t)}}function pr(t){return function(){this.removeAttributeNS(t.space,t.local)}}function gr(t,e){return function(){this.setAttribute(t,e)}}function mr(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function _r(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttribute(t):this.setAttribute(t,n)}}function yr(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function vr(t,e){var n=Ie(t);if(arguments.length<2){var s=this.node();return n.local?s.getAttributeNS(n.space,n.local):s.getAttribute(n)}return this.each((e==null?n.local?pr:dr:typeof e=="function"?n.local?yr:_r:n.local?mr:gr)(n,e))}function Te(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function xr(t){return function(){this.style.removeProperty(t)}}function wr(t,e,n){return function(){this.style.setProperty(t,e,n)}}function br(t,e,n){return function(){var s=e.apply(this,arguments);s==null?this.style.removeProperty(t):this.style.setProperty(t,s,n)}}function Mr(t,e,n){return arguments.length>1?this.each((e==null?xr:typeof e=="function"?br:wr)(t,e,n==null?"":n)):Er(this.node(),t)}function Er(t,e){return t.style.getPropertyValue(e)||Te(t).getComputedStyle(t,null).getPropertyValue(e)}function kr(t){return function(){delete this[t]}}function Ar(t,e){return function(){this[t]=e}}function Sr(t,e){return function(){var n=e.apply(this,arguments);n==null?delete this[t]:this[t]=n}}function Ir(t,e){return arguments.length>1?this.each((e==null?kr:typeof e=="function"?Sr:Ar)(t,e)):this.node()[t]}function Oe(t){return t.trim().split(/^|\s+/)}function Ht(t){return t.classList||new Pe(t)}function Pe(t){this._node=t,this._names=Oe(t.getAttribute("class")||"")}Pe.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function Fe(t,e){for(var n=Ht(t),s=-1,r=e.length;++s<r;)n.add(e[s])}function De(t,e){for(var n=Ht(t),s=-1,r=e.length;++s<r;)n.remove(e[s])}function Cr(t){return function(){Fe(this,t)}}function Rr(t){return function(){De(this,t)}}function Nr(t,e){return function(){(e.apply(this,arguments)?Fe:De)(this,t)}}function Lr(t,e){var n=Oe(t+"");if(arguments.length<2){for(var s=Ht(this.node()),r=-1,i=n.length;++r<i;)if(!s.contains(n[r]))return!1;return!0}return this.each((typeof e=="function"?Nr:e?Cr:Rr)(n,e))}function Tr(){this.textContent=""}function Or(t){return function(){this.textContent=t}}function Pr(t){return function(){var e=t.apply(this,arguments);this.textContent=e==null?"":e}}function Fr(t){return arguments.length?this.each(t==null?Tr:(typeof t=="function"?Pr:Or)(t)):this.node().textContent}function Dr(){this.innerHTML=""}function zr(t){return function(){this.innerHTML=t}}function Vr(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e==null?"":e}}function Wr(t){return arguments.length?this.each(t==null?Dr:(typeof t=="function"?Vr:zr)(t)):this.node().innerHTML}function Br(){this.nextSibling&&this.parentNode.appendChild(this)}function Hr(){return this.each(Br)}function Kr(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Ur(){return this.each(Kr)}function Yr(t){var e=typeof t=="function"?t:Ce(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function Xr(){return null}function Gr(t,e){var n=typeof t=="function"?t:Ce(t),s=e==null?Xr:typeof e=="function"?e:Re(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),s.apply(this,arguments)||null)})}function qr(){var t=this.parentNode;t&&t.removeChild(this)}function Jr(){return this.each(qr)}function Qr(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Zr(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function jr(t){return this.select(t?Zr:Qr)}function $r(t){return arguments.length?this.property("__data__",t):this.node().__data__}function ts(t){return function(e){t.call(this,e,this.__data__)}}function es(t){return t.trim().split(/^|\s+/).map(function(e){var n="",s=e.indexOf(".");return s>=0&&(n=e.slice(s+1),e=e.slice(0,s)),{type:e,name:n}})}function ns(t){return function(){var e=this.__on;if(!!e){for(var n=0,s=-1,r=e.length,i;n<r;++n)i=e[n],(!t.type||i.type===t.type)&&i.name===t.name?this.removeEventListener(i.type,i.listener,i.options):e[++s]=i;++s?e.length=s:delete this.__on}}}function rs(t,e,n){return function(){var s=this.__on,r,i=ts(e);if(s){for(var o=0,c=s.length;o<c;++o)if((r=s[o]).type===t.type&&r.name===t.name){this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=i,r.options=n),r.value=e;return}}this.addEventListener(t.type,i,n),r={type:t.type,name:t.name,value:e,listener:i,options:n},s?s.push(r):this.__on=[r]}}function ss(t,e,n){var s=es(t+""),r,i=s.length,o;if(arguments.length<2){var c=this.node().__on;if(c){for(var a=0,l=c.length,u;a<l;++a)for(r=0,u=c[a];r<i;++r)if((o=s[r]).type===u.type&&o.name===u.name)return u.value}return}for(c=e?rs:ns,r=0;r<i;++r)this.each(c(s[r],e,n));return this}function ze(t,e,n){var s=Te(t),r=s.CustomEvent;typeof r=="function"?r=new r(e,n):(r=s.document.createEvent("Event"),n?(r.initEvent(e,n.bubbles,n.cancelable),r.detail=n.detail):r.initEvent(e,!1,!1)),t.dispatchEvent(r)}function is(t,e){return function(){return ze(this,t,e)}}function os(t,e){return function(){return ze(this,t,e.apply(this,arguments))}}function cs(t,e){return this.each((typeof e=="function"?os:is)(t,e))}function*as(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var s=t[e],r=0,i=s.length,o;r<i;++r)(o=s[r])&&(yield o)}var ls=[null];function X(t,e){this._groups=t,this._parents=e}function us(){return this}X.prototype={constructor:X,select:Ln,selectAll:Dn,selectChild:Hn,selectChildren:Xn,filter:Gn,data:$n,enter:qn,exit:er,join:nr,merge:rr,selection:us,order:sr,sort:ir,call:cr,nodes:ar,node:lr,size:ur,empty:fr,each:hr,attr:vr,style:Mr,property:Ir,classed:Lr,text:Fr,html:Wr,raise:Hr,lower:Ur,append:Yr,insert:Gr,remove:Jr,clone:jr,datum:$r,on:ss,dispatch:cs,[Symbol.iterator]:as};function fs(t){return typeof t=="string"?new X([[document.querySelector(t)]],[document.documentElement]):new X([[t]],ls)}class ie extends Map{constructor(e,n=ps){super();if(Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),e!=null)for(const[s,r]of e)this.set(s,r)}get(e){return super.get(oe(this,e))}has(e){return super.has(oe(this,e))}set(e,n){return super.set(hs(this,e),n)}delete(e){return super.delete(ds(this,e))}}function oe({_intern:t,_key:e},n){const s=e(n);return t.has(s)?t.get(s):n}function hs({_intern:t,_key:e},n){const s=e(n);return t.has(s)?t.get(s):(t.set(s,n),n)}function ds({_intern:t,_key:e},n){const s=e(n);return t.has(s)&&(n=t.get(s),t.delete(s)),n}function ps(t){return t!==null&&typeof t=="object"?t.valueOf():t}function gs(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t);break}return this}const ce=Symbol("implicit");function Ve(){var t=new ie,e=[],n=[],s=ce;function r(i){let o=t.get(i);if(o===void 0){if(s!==ce)return s;t.set(i,o=e.push(i)-1)}return n[o%n.length]}return r.domain=function(i){if(!arguments.length)return e.slice();e=[],t=new ie;for(const o of i)t.has(o)||t.set(o,e.push(o)-1);return r},r.range=function(i){return arguments.length?(n=Array.from(i),r):n.slice()},r.unknown=function(i){return arguments.length?(s=i,r):s},r.copy=function(){return Ve(e,n).unknown(s)},gs.apply(r,arguments),r}function j(t){for(var e=t.length/6|0,n=new Array(e),s=0;s<e;)n[s]="#"+t.slice(s*6,++s*6);return n}var ms=j("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),_s=j("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),ys=j("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),vs=j("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),xs=j("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),ws=j("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),bs=j("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),Ms=j("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),Es=j("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),ks=j("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");function As(t){let e,n,s,r,i,o;return je(t[15]),{c(){e=F("div"),n=F("div"),this.h()},l(c){e=D(c,"DIV",{class:!0});var a=z(e);n=D(a,"DIV",{id:!0,style:!0,class:!0}),z(n).forEach(L),a.forEach(L),this.h()},h(){P(n,"id","wordcloud"),ht(n,"background-color",t[0]),ht(n,"width",t[2]+"px"),ht(n,"height",t[4]+"px"),P(n,"class",s="justify-end "+(t[3]?"opacity-100":"opacity-0")+" transition transition-all svelte-wza7b"),P(e,"class",r="height: "+t[4]+"px;")},m(c,a){ut(c,e,a),A(e,n),i||(o=Et(window,"resize",t[15]),i=!0)},p(c,[a]){a&1&&ht(n,"background-color",c[0]),a&4&&ht(n,"width",c[2]+"px"),a&16&&ht(n,"height",c[4]+"px"),a&8&&s!==(s="justify-end "+(c[3]?"opacity-100":"opacity-0")+" transition transition-all svelte-wza7b")&&P(n,"class",s),a&16&&r!==(r="height: "+c[4]+"px;")&&P(e,"class",r)},i:kt,o:kt,d(c){c&&L(e),i=!1,o()}}}function Ss(t,e,n){let s,r,i,o;const c=$e(),a={schemeCategory10:ms,schemeAccent:_s,schemeDark2:ys,schemePaired:vs,schemePastel1:xs,schemePastel2:ws,schemeSet1:bs,schemeSet2:Ms,schemeSet3:Es,schemeTableau10:ks};let{width:l=900}=e,{words:u=[]}=e,{height:h=250}=e,{font:p="Montserrat"}=e,{maxFontSize:g=40}=e,{minRotate:f=0}=e,{maxRotate:v=0}=e,{scheme:E="schemeTableau10"}=e,{padding:_=2}=e,{backgroundColor:d="#fff"}=e;u.reduce((y,R)=>y.count<R.count?y.count:R.count),Ve(a[E]);const m=y=>c("click",y),x=y=>c("mouseover",y),b=y=>c("mouseout",y),N=y=>c("mousemove",y);let C=null;async function S(){const y=[i,o].join(":");let R=null;return await cn.update(B=>(B&&B[y]?R=B[y]:(R=gn().size([i,o]).words(u).padding(_).rotate(()=>~~(Math.random()*v)+f).font(p).fontSize(rt=>rt.count+15),B[y]=R),B)),R}function O(y){fs("#wordcloud").append("svg").attr("width",C.size()[0]).attr("height",C.size()[1]).append("g").attr("transform","translate("+C.size()[0]/2+","+C.size()[1]/2+")").selectAll("text").data(y).enter().append("text").style("font-size",R=>R.size+"px").style("font-family",p).style("fill","#393F67").style("cursor","pointer").attr("text-anchor","middle").attr("transform",R=>"translate("+[R.x,R.y]+")rotate("+R.rotate+")").text(R=>R.text).on("click",m).on("mouseover",x).on("mouseout",b).on("mousemove",N)}async function I(){C=(await S()).on("end",O),C.start()}let M=!1,W=null;tn(async()=>{let y=0;setTimeout(()=>{W=setInterval(()=>{s!==y&&(I(),y=s)},500)},100),setTimeout(()=>{I(),y=s,n(3,M=!0)},0)}),en(()=>{clearTimeout(W)});function U(){n(5,r=window.innerWidth),n(1,s=window.outerWidth)}return t.$$set=y=>{"width"in y&&n(6,l=y.width),"words"in y&&n(7,u=y.words),"height"in y&&n(8,h=y.height),"font"in y&&n(9,p=y.font),"maxFontSize"in y&&n(10,g=y.maxFontSize),"minRotate"in y&&n(11,f=y.minRotate),"maxRotate"in y&&n(12,v=y.maxRotate),"scheme"in y&&n(13,E=y.scheme),"padding"in y&&n(14,_=y.padding),"backgroundColor"in y&&n(0,d=y.backgroundColor)},t.$$.update=()=>{t.$$.dirty&2&&n(2,i=s>1152?1e3:s>500?s-100:s-50),t.$$.dirty&4&&n(4,o=i<800?400:i<500?600:250)},n(1,s=0),n(5,r=0),[d,s,i,M,o,r,l,u,h,p,g,f,v,E,_,U]}class Is extends ye{constructor(e){super();ve(this,e,Ss,As,xe,{width:6,words:7,height:8,font:9,maxFontSize:10,minRotate:11,maxRotate:12,scheme:13,padding:14,backgroundColor:0})}}function nt(t){return Array.isArray?Array.isArray(t):He(t)==="[object Array]"}const Cs=1/0;function Rs(t){if(typeof t=="string")return t;let e=t+"";return e=="0"&&1/t==-Cs?"-0":e}function Ns(t){return t==null?"":Rs(t)}function et(t){return typeof t=="string"}function We(t){return typeof t=="number"}function Ls(t){return t===!0||t===!1||Ts(t)&&He(t)=="[object Boolean]"}function Be(t){return typeof t=="object"}function Ts(t){return Be(t)&&t!==null}function Y(t){return t!=null}function Nt(t){return!t.trim().length}function He(t){return t==null?t===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}const Os="Incorrect 'index' type",Ps=t=>`Invalid value for key ${t}`,Fs=t=>`Pattern length exceeds max of ${t}.`,Ds=t=>`Missing ${t} property in key`,zs=t=>`Property 'weight' in key '${t}' must be a positive integer`,ae=Object.prototype.hasOwnProperty;class Vs{constructor(e){this._keys=[],this._keyMap={};let n=0;e.forEach(s=>{let r=Ke(s);n+=r.weight,this._keys.push(r),this._keyMap[r.id]=r,n+=r.weight}),this._keys.forEach(s=>{s.weight/=n})}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function Ke(t){let e=null,n=null,s=null,r=1;if(et(t)||nt(t))s=t,e=le(t),n=Ft(t);else{if(!ae.call(t,"name"))throw new Error(Ds("name"));const i=t.name;if(s=i,ae.call(t,"weight")&&(r=t.weight,r<=0))throw new Error(zs(i));e=le(i),n=Ft(i)}return{path:e,id:n,weight:r,src:s}}function le(t){return nt(t)?t:t.split(".")}function Ft(t){return nt(t)?t.join("."):t}function Ws(t,e){let n=[],s=!1;const r=(i,o,c)=>{if(!!Y(i))if(!o[c])n.push(i);else{let a=o[c];const l=i[a];if(!Y(l))return;if(c===o.length-1&&(et(l)||We(l)||Ls(l)))n.push(Ns(l));else if(nt(l)){s=!0;for(let u=0,h=l.length;u<h;u+=1)r(l[u],o,c+1)}else o.length&&r(l,o,c+1)}};return r(t,et(e)?e.split("."):e,0),s?n:n[0]}const Bs={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},Hs={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(t,e)=>t.score===e.score?t.idx<e.idx?-1:1:t.score<e.score?-1:1},Ks={location:0,threshold:.6,distance:100},Us={useExtendedSearch:!1,getFn:Ws,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};var w=at(at(at(at({},Hs),Bs),Ks),Us);const Ys=/[^ ]+/g;function Xs(t=1,e=3){const n=new Map,s=Math.pow(10,e);return{get(r){const i=r.match(Ys).length;if(n.has(i))return n.get(i);const o=1/Math.pow(i,.5*t),c=parseFloat(Math.round(o*s)/s);return n.set(i,c),c},clear(){n.clear()}}}class Kt{constructor({getFn:e=w.getFn,fieldNormWeight:n=w.fieldNormWeight}={}){this.norm=Xs(n,3),this.getFn=e,this.isCreated=!1,this.setIndexRecords()}setSources(e=[]){this.docs=e}setIndexRecords(e=[]){this.records=e}setKeys(e=[]){this.keys=e,this._keysMap={},e.forEach((n,s)=>{this._keysMap[n.id]=s})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,et(this.docs[0])?this.docs.forEach((e,n)=>{this._addString(e,n)}):this.docs.forEach((e,n)=>{this._addObject(e,n)}),this.norm.clear())}add(e){const n=this.size();et(e)?this._addString(e,n):this._addObject(e,n)}removeAt(e){this.records.splice(e,1);for(let n=e,s=this.size();n<s;n+=1)this.records[n].i-=1}getValueForItemAtKeyId(e,n){return e[this._keysMap[n]]}size(){return this.records.length}_addString(e,n){if(!Y(e)||Nt(e))return;let s={v:e,i:n,n:this.norm.get(e)};this.records.push(s)}_addObject(e,n){let s={i:n,$:{}};this.keys.forEach((r,i)=>{let o=this.getFn(e,r.path);if(!!Y(o)){if(nt(o)){let c=[];const a=[{nestedArrIndex:-1,value:o}];for(;a.length;){const{nestedArrIndex:l,value:u}=a.pop();if(!!Y(u))if(et(u)&&!Nt(u)){let h={v:u,i:l,n:this.norm.get(u)};c.push(h)}else nt(u)&&u.forEach((h,p)=>{a.push({nestedArrIndex:p,value:h})})}s.$[i]=c}else if(!Nt(o)){let c={v:o,n:this.norm.get(o)};s.$[i]=c}}}),this.records.push(s)}toJSON(){return{keys:this.keys,records:this.records}}}function Ue(t,e,{getFn:n=w.getFn,fieldNormWeight:s=w.fieldNormWeight}={}){const r=new Kt({getFn:n,fieldNormWeight:s});return r.setKeys(t.map(Ke)),r.setSources(e),r.create(),r}function Gs(t,{getFn:e=w.getFn,fieldNormWeight:n=w.fieldNormWeight}={}){const{keys:s,records:r}=t,i=new Kt({getFn:e,fieldNormWeight:n});return i.setKeys(s),i.setIndexRecords(r),i}function wt(t,{errors:e=0,currentLocation:n=0,expectedLocation:s=0,distance:r=w.distance,ignoreLocation:i=w.ignoreLocation}={}){const o=e/t.length;if(i)return o;const c=Math.abs(s-n);return r?o+c/r:c?1:o}function qs(t=[],e=w.minMatchCharLength){let n=[],s=-1,r=-1,i=0;for(let o=t.length;i<o;i+=1){let c=t[i];c&&s===-1?s=i:!c&&s!==-1&&(r=i-1,r-s+1>=e&&n.push([s,r]),s=-1)}return t[i-1]&&i-s>=e&&n.push([s,i-1]),n}const lt=32;function Js(t,e,n,{location:s=w.location,distance:r=w.distance,threshold:i=w.threshold,findAllMatches:o=w.findAllMatches,minMatchCharLength:c=w.minMatchCharLength,includeMatches:a=w.includeMatches,ignoreLocation:l=w.ignoreLocation}={}){if(e.length>lt)throw new Error(Fs(lt));const u=e.length,h=t.length,p=Math.max(0,Math.min(s,h));let g=i,f=p;const v=c>1||a,E=v?Array(h):[];let _;for(;(_=t.indexOf(e,f))>-1;){let C=wt(e,{currentLocation:_,expectedLocation:p,distance:r,ignoreLocation:l});if(g=Math.min(C,g),f=_+u,v){let S=0;for(;S<u;)E[_+S]=1,S+=1}}f=-1;let d=[],m=1,x=u+h;const b=1<<u-1;for(let C=0;C<u;C+=1){let S=0,O=x;for(;S<O;)wt(e,{errors:C,currentLocation:p+O,expectedLocation:p,distance:r,ignoreLocation:l})<=g?S=O:x=O,O=Math.floor((x-S)/2+S);x=O;let I=Math.max(1,p-O+1),M=o?h:Math.min(p+O,h)+u,W=Array(M+2);W[M+1]=(1<<C)-1;for(let y=M;y>=I;y-=1){let R=y-1,B=n[t.charAt(R)];if(v&&(E[R]=+!!B),W[y]=(W[y+1]<<1|1)&B,C&&(W[y]|=(d[y+1]|d[y])<<1|1|d[y+1]),W[y]&b&&(m=wt(e,{errors:C,currentLocation:R,expectedLocation:p,distance:r,ignoreLocation:l}),m<=g)){if(g=m,f=R,f<=p)break;I=Math.max(1,2*p-f)}}if(wt(e,{errors:C+1,currentLocation:p,expectedLocation:p,distance:r,ignoreLocation:l})>g)break;d=W}const N={isMatch:f>=0,score:Math.max(.001,m)};if(v){const C=qs(E,c);C.length?a&&(N.indices=C):N.isMatch=!1}return N}function Qs(t){let e={};for(let n=0,s=t.length;n<s;n+=1){const r=t.charAt(n);e[r]=(e[r]||0)|1<<s-n-1}return e}class Ye{constructor(e,{location:n=w.location,threshold:s=w.threshold,distance:r=w.distance,includeMatches:i=w.includeMatches,findAllMatches:o=w.findAllMatches,minMatchCharLength:c=w.minMatchCharLength,isCaseSensitive:a=w.isCaseSensitive,ignoreLocation:l=w.ignoreLocation}={}){if(this.options={location:n,threshold:s,distance:r,includeMatches:i,findAllMatches:o,minMatchCharLength:c,isCaseSensitive:a,ignoreLocation:l},this.pattern=a?e:e.toLowerCase(),this.chunks=[],!this.pattern.length)return;const u=(p,g)=>{this.chunks.push({pattern:p,alphabet:Qs(p),startIndex:g})},h=this.pattern.length;if(h>lt){let p=0;const g=h%lt,f=h-g;for(;p<f;)u(this.pattern.substr(p,lt),p),p+=lt;if(g){const v=h-lt;u(this.pattern.substr(v),v)}}else u(this.pattern,0)}searchIn(e){const{isCaseSensitive:n,includeMatches:s}=this.options;if(n||(e=e.toLowerCase()),this.pattern===e){let f={isMatch:!0,score:0};return s&&(f.indices=[[0,e.length-1]]),f}const{location:r,distance:i,threshold:o,findAllMatches:c,minMatchCharLength:a,ignoreLocation:l}=this.options;let u=[],h=0,p=!1;this.chunks.forEach(({pattern:f,alphabet:v,startIndex:E})=>{const{isMatch:_,score:d,indices:m}=Js(e,f,v,{location:r+E,distance:i,threshold:o,findAllMatches:c,minMatchCharLength:a,includeMatches:s,ignoreLocation:l});_&&(p=!0),h+=d,_&&m&&(u=[...u,...m])});let g={isMatch:p,score:p?h/this.chunks.length:1};return p&&s&&(g.indices=u),g}}class ot{constructor(e){this.pattern=e}static isMultiMatch(e){return ue(e,this.multiRegex)}static isSingleMatch(e){return ue(e,this.singleRegex)}search(){}}function ue(t,e){const n=t.match(e);return n?n[1]:null}class Zs extends ot{constructor(e){super(e)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(e){const n=e===this.pattern;return{isMatch:n,score:n?0:1,indices:[0,this.pattern.length-1]}}}class js extends ot{constructor(e){super(e)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(e){const s=e.indexOf(this.pattern)===-1;return{isMatch:s,score:s?0:1,indices:[0,e.length-1]}}}class $s extends ot{constructor(e){super(e)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(e){const n=e.startsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,this.pattern.length-1]}}}class ti extends ot{constructor(e){super(e)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(e){const n=!e.startsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,e.length-1]}}}class ei extends ot{constructor(e){super(e)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(e){const n=e.endsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[e.length-this.pattern.length,e.length-1]}}}class ni extends ot{constructor(e){super(e)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(e){const n=!e.endsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,e.length-1]}}}class Xe extends ot{constructor(e,{location:n=w.location,threshold:s=w.threshold,distance:r=w.distance,includeMatches:i=w.includeMatches,findAllMatches:o=w.findAllMatches,minMatchCharLength:c=w.minMatchCharLength,isCaseSensitive:a=w.isCaseSensitive,ignoreLocation:l=w.ignoreLocation}={}){super(e);this._bitapSearch=new Ye(e,{location:n,threshold:s,distance:r,includeMatches:i,findAllMatches:o,minMatchCharLength:c,isCaseSensitive:a,ignoreLocation:l})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}}class Ge extends ot{constructor(e){super(e)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let n=0,s;const r=[],i=this.pattern.length;for(;(s=e.indexOf(this.pattern,n))>-1;)n=s+i,r.push([s,n-1]);const o=!!r.length;return{isMatch:o,score:o?0:1,indices:r}}}const Dt=[Zs,Ge,$s,ti,ni,ei,js,Xe],fe=Dt.length,ri=/ +(?=([^\"]*\"[^\"]*\")*[^\"]*$)/,si="|";function ii(t,e={}){return t.split(si).map(n=>{let s=n.trim().split(ri).filter(i=>i&&!!i.trim()),r=[];for(let i=0,o=s.length;i<o;i+=1){const c=s[i];let a=!1,l=-1;for(;!a&&++l<fe;){const u=Dt[l];let h=u.isMultiMatch(c);h&&(r.push(new u(h,e)),a=!0)}if(!a)for(l=-1;++l<fe;){const u=Dt[l];let h=u.isSingleMatch(c);if(h){r.push(new u(h,e));break}}}return r})}const oi=new Set([Xe.type,Ge.type]);class ci{constructor(e,{isCaseSensitive:n=w.isCaseSensitive,includeMatches:s=w.includeMatches,minMatchCharLength:r=w.minMatchCharLength,ignoreLocation:i=w.ignoreLocation,findAllMatches:o=w.findAllMatches,location:c=w.location,threshold:a=w.threshold,distance:l=w.distance}={}){this.query=null,this.options={isCaseSensitive:n,includeMatches:s,minMatchCharLength:r,findAllMatches:o,ignoreLocation:i,location:c,threshold:a,distance:l},this.pattern=n?e:e.toLowerCase(),this.query=ii(this.pattern,this.options)}static condition(e,n){return n.useExtendedSearch}searchIn(e){const n=this.query;if(!n)return{isMatch:!1,score:1};const{includeMatches:s,isCaseSensitive:r}=this.options;e=r?e:e.toLowerCase();let i=0,o=[],c=0;for(let a=0,l=n.length;a<l;a+=1){const u=n[a];o.length=0,i=0;for(let h=0,p=u.length;h<p;h+=1){const g=u[h],{isMatch:f,indices:v,score:E}=g.search(e);if(f){if(i+=1,c+=E,s){const _=g.constructor.type;oi.has(_)?o=[...o,...v]:o.push(v)}}else{c=0,i=0,o.length=0;break}}if(i){let h={isMatch:!0,score:c/i};return s&&(h.indices=o),h}}return{isMatch:!1,score:1}}}const zt=[];function ai(...t){zt.push(...t)}function Vt(t,e){for(let n=0,s=zt.length;n<s;n+=1){let r=zt[n];if(r.condition(t,e))return new r(t,e)}return new Ye(t,e)}const St={AND:"$and",OR:"$or"},Wt={PATH:"$path",PATTERN:"$val"},Bt=t=>!!(t[St.AND]||t[St.OR]),li=t=>!!t[Wt.PATH],ui=t=>!nt(t)&&Be(t)&&!Bt(t),he=t=>({[St.AND]:Object.keys(t).map(e=>({[e]:t[e]}))});function qe(t,e,{auto:n=!0}={}){const s=r=>{let i=Object.keys(r);const o=li(r);if(!o&&i.length>1&&!Bt(r))return s(he(r));if(ui(r)){const a=o?r[Wt.PATH]:i[0],l=o?r[Wt.PATTERN]:r[a];if(!et(l))throw new Error(Ps(a));const u={keyId:Ft(a),pattern:l};return n&&(u.searcher=Vt(l,e)),u}let c={children:[],operator:i[0]};return i.forEach(a=>{const l=r[a];nt(l)&&l.forEach(u=>{c.children.push(s(u))})}),c};return Bt(t)||(t=he(t)),s(t)}function fi(t,{ignoreFieldNorm:e=w.ignoreFieldNorm}){t.forEach(n=>{let s=1;n.matches.forEach(({key:r,norm:i,score:o})=>{const c=r?r.weight:null;s*=Math.pow(o===0&&c?Number.EPSILON:o,(c||1)*(e?1:i))}),n.score=s})}function hi(t,e){const n=t.matches;e.matches=[],Y(n)&&n.forEach(s=>{if(!Y(s.indices)||!s.indices.length)return;const{indices:r,value:i}=s;let o={indices:r,value:i};s.key&&(o.key=s.key.src),s.idx>-1&&(o.refIndex=s.idx),e.matches.push(o)})}function di(t,e){e.score=t.score}function pi(t,e,{includeMatches:n=w.includeMatches,includeScore:s=w.includeScore}={}){const r=[];return n&&r.push(hi),s&&r.push(di),t.map(i=>{const{idx:o}=i,c={item:e[o],refIndex:o};return r.length&&r.forEach(a=>{a(i,c)}),c})}class dt{constructor(e,n={},s){this.options=at(at({},w),n),this.options.useExtendedSearch,this._keyStore=new Vs(this.options.keys),this.setCollection(e,s)}setCollection(e,n){if(this._docs=e,n&&!(n instanceof Kt))throw new Error(Os);this._myIndex=n||Ue(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){!Y(e)||(this._docs.push(e),this._myIndex.add(e))}remove(e=()=>!1){const n=[];for(let s=0,r=this._docs.length;s<r;s+=1){const i=this._docs[s];e(i,s)&&(this.removeAt(s),s-=1,r-=1,n.push(i))}return n}removeAt(e){this._docs.splice(e,1),this._myIndex.removeAt(e)}getIndex(){return this._myIndex}search(e,{limit:n=-1}={}){const{includeMatches:s,includeScore:r,shouldSort:i,sortFn:o,ignoreFieldNorm:c}=this.options;let a=et(e)?et(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return fi(a,{ignoreFieldNorm:c}),i&&a.sort(o),We(n)&&n>-1&&(a=a.slice(0,n)),pi(a,this._docs,{includeMatches:s,includeScore:r})}_searchStringList(e){const n=Vt(e,this.options),{records:s}=this._myIndex,r=[];return s.forEach(({v:i,i:o,n:c})=>{if(!Y(i))return;const{isMatch:a,score:l,indices:u}=n.searchIn(i);a&&r.push({item:i,idx:o,matches:[{score:l,value:i,norm:c,indices:u}]})}),r}_searchLogical(e){const n=qe(e,this.options),s=(c,a,l)=>{if(!c.children){const{keyId:h,searcher:p}=c,g=this._findMatches({key:this._keyStore.get(h),value:this._myIndex.getValueForItemAtKeyId(a,h),searcher:p});return g&&g.length?[{idx:l,item:a,matches:g}]:[]}const u=[];for(let h=0,p=c.children.length;h<p;h+=1){const g=c.children[h],f=s(g,a,l);if(f.length)u.push(...f);else if(c.operator===St.AND)return[]}return u},r=this._myIndex.records,i={},o=[];return r.forEach(({$:c,i:a})=>{if(Y(c)){let l=s(n,c,a);l.length&&(i[a]||(i[a]={idx:a,item:c,matches:[]},o.push(i[a])),l.forEach(({matches:u})=>{i[a].matches.push(...u)}))}}),o}_searchObjectList(e){const n=Vt(e,this.options),{keys:s,records:r}=this._myIndex,i=[];return r.forEach(({$:o,i:c})=>{if(!Y(o))return;let a=[];s.forEach((l,u)=>{a.push(...this._findMatches({key:l,value:o[u],searcher:n}))}),a.length&&i.push({idx:c,item:o,matches:a})}),i}_findMatches({key:e,value:n,searcher:s}){if(!Y(n))return[];let r=[];if(nt(n))n.forEach(({v:i,i:o,n:c})=>{if(!Y(i))return;const{isMatch:a,score:l,indices:u}=s.searchIn(i);a&&r.push({score:l,key:e,value:i,idx:o,norm:c,indices:u})});else{const{v:i,n:o}=n,{isMatch:c,score:a,indices:l}=s.searchIn(i);c&&r.push({score:a,key:e,value:i,norm:o,indices:l})}return r}}dt.version="6.5.3";dt.createIndex=Ue;dt.parseIndex=Gs;dt.config=w;dt.parseQuery=qe;ai(ci);function de(t,e,n){const s=t.slice();return s[16]=e[n],s}function pe(t,e,n){const s=t.slice();return s[19]=e[n],s}function gi(t){let e,n,s;return n=new Is({props:{words:t[4]}}),n.$on("click",t[5]),{c(){e=F("div"),we(n.$$.fragment),this.h()},l(r){e=D(r,"DIV",{class:!0});var i=z(e);be(n.$$.fragment,i),i.forEach(L),this.h()},h(){P(e,"class","mt-6 lg:mt-10 flex sm:justify-center overflow-auto")},m(r,i){ut(r,e,i),Me(n,e,null),s=!0},p(r,i){const o={};i&16&&(o.words=r[4]),n.$set(o)},i(r){s||(Z(n.$$.fragment,r),s=!0)},o(r){it(n.$$.fragment,r),s=!1},d(r){r&&L(e),Ee(n)}}}function mi(t){let e,n,s,r,i,o,c,a,l,u,h,p,g=t[0],f=[];for(let v=0;v<g.length;v+=1)f[v]=ge(pe(t,g,v));return{c(){e=F("div"),n=F("div"),s=q("Filtry:"),r=$(),i=F("div");for(let v=0;v<f.length;v+=1)f[v].c();o=$(),c=F("div"),a=F("a"),l=F("i"),u=q(" Zru\u0161it filtr"),this.h()},l(v){e=D(v,"DIV",{class:!0});var E=z(e);n=D(E,"DIV",{class:!0});var _=z(n);s=J(_,"Filtry:"),_.forEach(L),r=tt(E),i=D(E,"DIV",{class:!0});var d=z(i);for(let b=0;b<f.length;b+=1)f[b].l(d);d.forEach(L),o=tt(E),c=D(E,"DIV",{class:!0});var m=z(c);a=D(m,"A",{href:!0});var x=z(a);l=D(x,"I",{class:!0}),z(l).forEach(L),u=J(x," Zru\u0161it filtr"),x.forEach(L),m.forEach(L),E.forEach(L),this.h()},h(){P(n,"class","my-auto"),P(i,"class","text-sm my-auto flex gap-1"),P(l,"class","fa-solid fa-xmark text-red-500 mr-1"),P(a,"href",""),P(c,"class","ml-3 my-auto"),P(e,"class","mt-6 flex flex-wrap gap-3")},m(v,E){ut(v,e,E),A(e,n),A(n,s),A(e,r),A(e,i);for(let _=0;_<f.length;_+=1)f[_].m(i,null);A(e,o),A(e,c),A(c,a),A(a,l),A(a,u),h||(p=Et(a,"click",t[7]),h=!0)},p(v,E){if(E&1){g=v[0];let _;for(_=0;_<g.length;_+=1){const d=pe(v,g,_);f[_]?f[_].p(d,E):(f[_]=ge(d),f[_].c(),f[_].m(i,null))}for(;_<f.length;_+=1)f[_].d(1);f.length=g.length}},i:kt,o:kt,d(v){v&&L(e),ke(f,v),h=!1,p()}}}function ge(t){let e,n=t[19].title+"",s;return{c(){e=F("div"),s=q(n),this.h()},l(r){e=D(r,"DIV",{class:!0});var i=z(e);s=J(i,n),i.forEach(L),this.h()},h(){P(e,"class","py-1 px-2 rounded bg-blue-web/60 text-white")},m(r,i){ut(r,e,i),A(e,s)},p(r,i){i&1&&n!==(n=r[19].title+"")&&Tt(s,n)},d(r){r&&L(e)}}}function me(t){let e,n;return e=new sn({props:{event:t[16]}}),{c(){we(e.$$.fragment)},l(s){be(e.$$.fragment,s)},m(s,r){Me(e,s,r),n=!0},p(s,r){const i={};r&2&&(i.event=s[16]),e.$set(i)},i(s){n||(Z(e.$$.fragment,s),n=!0)},o(s){it(e.$$.fragment,s),n=!1},d(s){Ee(e,s)}}}function _e(t){let e=t[3].includes(t[16].id),n,s,r=e&&me(t);return{c(){r&&r.c(),n=Zt()},l(i){r&&r.l(i),n=Zt()},m(i,o){r&&r.m(i,o),ut(i,n,o),s=!0},p(i,o){o&10&&(e=i[3].includes(i[16].id)),e?r?(r.p(i,o),o&10&&Z(r,1)):(r=me(i),r.c(),Z(r,1),r.m(n.parentNode,n)):r&&(Ot(),it(r,1,1,()=>{r=null}),Lt())},i(i){s||(Z(r),s=!0)},o(i){it(r),s=!1},d(i){r&&r.d(i),i&&L(n)}}}function _i(t){let e,n,s,r,i,o,c,a,l,u,h,p,g,f,v,E,_=t[3].length+"",d,m,x=t[1].spec.events.length+"",b,N,C,S,O,I,M,W,U,y,R,B,rt,pt;const yt=[mi,gi],Q=[];function gt(k,V){return k[0].length>0?0:1}u=gt(t),h=Q[u]=yt[u](t);let G=t[1].spec.events,T=[];for(let k=0;k<G.length;k+=1)T[k]=_e(de(t,G,k));const ct=k=>it(T[k],1,1,()=>{T[k]=null});return{c(){e=$(),n=F("section"),s=F("h1"),r=q("Program"),i=$(),o=F("div"),c=F("p"),a=q(`Program st\xE1le p\u0159ipravujeme, aktu\xE1ln\u011B je zde vyps\xE1na jenom \u010D\xE1st obsahu.
\u010Casov\xFD rozpis bude zve\u0159ejn\u011Bn cca 2 t\xFDdny p\u0159ed konferenc\xED.`),l=$(),h.c(),p=$(),g=F("div"),f=F("div"),v=F("h1"),E=q("Seznam ud\xE1lost\xED ("),d=q(_),m=q("/"),b=q(x),N=q(")"),C=$(),S=F("div"),O=F("div"),I=q("Hledat:"),M=$(),W=F("div"),U=F("input"),y=$(),R=F("div");for(let k=0;k<T.length;k+=1)T[k].c();this.h()},l(k){nn('[data-svelte="svelte-124umcn"]',document.head).forEach(L),e=tt(k),n=D(k,"SECTION",{class:!0});var H=z(n);s=D(H,"H1",{class:!0});var K=z(s);r=J(K,"Program"),K.forEach(L),i=tt(H),o=D(H,"DIV",{class:!0});var mt=z(o);c=D(mt,"P",{});var Ut=z(c);a=J(Ut,`Program st\xE1le p\u0159ipravujeme, aktu\xE1ln\u011B je zde vyps\xE1na jenom \u010D\xE1st obsahu.
\u010Casov\xFD rozpis bude zve\u0159ejn\u011Bn cca 2 t\xFDdny p\u0159ed konferenc\xED.`),Ut.forEach(L),mt.forEach(L),l=tt(H),h.l(H),p=tt(H),g=D(H,"DIV",{class:!0});var vt=z(g);f=D(vt,"DIV",{class:!0});var Yt=z(f);v=D(Yt,"H1",{class:!0});var ft=z(v);E=J(ft,"Seznam ud\xE1lost\xED ("),d=J(ft,_),m=J(ft,"/"),b=J(ft,x),N=J(ft,")"),ft.forEach(L),Yt.forEach(L),C=tt(vt),S=D(vt,"DIV",{class:!0});var xt=z(S);O=D(xt,"DIV",{class:!0});var Xt=z(O);I=J(Xt,"Hledat:"),Xt.forEach(L),M=tt(xt),W=D(xt,"DIV",{});var Gt=z(W);U=D(Gt,"INPUT",{type:!0,class:!0}),Gt.forEach(L),xt.forEach(L),vt.forEach(L),y=tt(H),R=D(H,"DIV",{class:!0});var qt=z(R);for(let It=0;It<T.length;It+=1)T[It].l(qt);qt.forEach(L),H.forEach(L),this.h()},h(){document.title="Program | UTXO.22",P(s,"class","uppercase text-2xl font-bold"),P(o,"class","mt-2 text-sm"),P(v,"class","uppercase text-lg font-semibold"),P(f,"class","my-auto flex-1"),P(O,"class","my-auto"),P(U,"type","text"),P(U,"class","border rounded border-blue-web/30 px-1.5 py-1"),P(S,"class","my-auto flex gap-2 mt-2 sm:mt-0"),P(g,"class","mt-6 sm:flex"),P(R,"class","mt-4"),P(n,"class","relative mx-auto py-6 sm:py-10 px-6 max-w-6xl text-blue-web")},m(k,V){ut(k,e,V),ut(k,n,V),A(n,s),A(s,r),A(n,i),A(n,o),A(o,c),A(c,a),A(n,l),Q[u].m(n,null),A(n,p),A(n,g),A(g,f),A(f,v),A(v,E),A(v,d),A(v,m),A(v,b),A(v,N),A(g,C),A(g,S),A(S,O),A(O,I),A(S,M),A(S,W),A(W,U),jt(U,t[2]),A(n,y),A(n,R);for(let H=0;H<T.length;H+=1)T[H].m(R,null);B=!0,rt||(pt=[Et(U,"input",t[9]),Et(U,"input",t[6])],rt=!0)},p(k,[V]){let H=u;if(u=gt(k),u===H?Q[u].p(k,V):(Ot(),it(Q[H],1,1,()=>{Q[H]=null}),Lt(),h=Q[u],h?h.p(k,V):(h=Q[u]=yt[u](k),h.c()),Z(h,1),h.m(n,p)),(!B||V&8)&&_!==(_=k[3].length+"")&&Tt(d,_),(!B||V&2)&&x!==(x=k[1].spec.events.length+"")&&Tt(b,x),V&4&&U.value!==k[2]&&jt(U,k[2]),V&10){G=k[1].spec.events;let K;for(K=0;K<G.length;K+=1){const mt=de(k,G,K);T[K]?(T[K].p(mt,V),Z(T[K],1)):(T[K]=_e(mt),T[K].c(),Z(T[K],1),T[K].m(R,null))}for(Ot(),K=G.length;K<T.length;K+=1)ct(K);Lt()}},i(k){if(!B){Z(h);for(let V=0;V<G.length;V+=1)Z(T[V]);B=!0}},o(k){it(h),T=T.filter(Boolean);for(let V=0;V<T.length;V+=1)it(T[V]);B=!1},d(k){k&&L(e),k&&L(n),Q[u].d(),ke(T,k),rt=!1,rn(pt)}}}const Ri=!0;function yi(t){let e={};t.spec.events.forEach(r=>{!r.tags||r.tags.forEach(i=>{e[i]||(e[i]={text:i,count:0}),e[i].count+=1})});let n=Object.keys(e).map(r=>e[r]);const s=n.reduce((r,i)=>i.count>r?i.count:r,0);return n=n.map(r=>(r.count=Math.round(r.count/(s/40)),r)),n}function vi(t,e,n){let s,r,i,o,c;$t(t,ee,_=>n(1,o=_)),$t(t,te,_=>n(8,c=_));let a=null,l="";function u(_){return _?_.spec.events.reduce((d,m)=>d+(on(m,_)||0),0):null}function h(_){const d=_.detail.path[0].innerHTML;return d&&Ct(`/program?tag=${d}`),!0}function p(_,d){const m=_.url.searchParams;let x=[];if(m.get("tag")&&x.push({type:"tag",title:`Tag: #${m.get("tag")}`,key:m.get("tag")}),m.get("track")){const b=d.spec.tracks.find(N=>N.id===m.get("track"));if(!b)return Ct("/program");x.push({type:"track",title:`Sekce: ${b.name}`,key:b.id})}return l&&x.push({type:"text",title:`Text: "${l}"`,key:l}),x}function g(_,d,m){if(!d||!m)return[];let x=m.spec.events;for(const b of _)if(b.type==="tag"&&(x=x.filter(N=>N.tags&&N.tags.includes(b.key))),b.type==="track"&&(x=x.filter(N=>N.track===b.key)),b.type==="text"){const N=a.search(b.key);if(N.length>0){const C=N.map(S=>S.item.id);x=x.filter(S=>C.includes(S.id))}}return n(3,i=x.map(b=>b.id)),x}ee.subscribe(_=>{a=new dt(_.spec.events,{minMatchCharLength:3,threshold:.3,keys:[{name:"name",weight:1},{name:"speakers",weight:1},{name:"description",weight:2},{name:"track",weight:3},{name:"tags",weight:3}]})}),te.subscribe(()=>{n(2,l="")});function f(){n(0,r=p(c,o))}function v(){n(2,l=""),n(0,r=p(c,o)),Ct("/program")}function E(){l=this.value,n(2,l)}return t.$$.update=()=>{t.$$.dirty&2&&n(4,s=yi(o)),t.$$.dirty&2&&u(o),t.$$.dirty&258&&n(0,r=p(c,o)),t.$$.dirty&259&&g(r,c,o)},n(3,i=[]),[r,o,l,i,s,h,f,v,c,E]}class Ni extends ye{constructor(e){super();ve(this,e,vi,_i,xe,{})}}export{Ni as default,Ri as prerender};