import{S as vt,i as gt,s as xt,e as F,c as I,a as O,d as z,b as T,f as at,g as tt,E as ct,Z as Wt,v as Ht,w as wt,x as bt,y as At,q as B,o as U,B as St,k as L,t as G,R as Ut,m as V,h as j,F as M,p as Xt,G as Jt,H as Kt,n as Yt}from"../chunks/index-6191a390.js";import{a as Zt,c as Qt}from"../chunks/Event-02d76521.js";import{b as Gt}from"../chunks/stores-9e69a8a9.js";import{g as jt}from"../chunks/_commonjsHelpers-c771f69b.js";import"../chunks/Avatar-a90bc8ec.js";import"../chunks/Link-79f22491.js";import"../chunks/index-7ffe3f10.js";var $t={value:function(){}};function kt(){for(var t=0,e=arguments.length,n={},r;t=0&&(r=n.slice(i+1),n=n.slice(0,i)),n&&!e.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}X.prototype=kt.prototype={constructor:X,on:function(t,e){var n=this._,r=te(t+"",n),i,o=-1,s=r.length;if(arguments.length<2){for(;++o0)for(var n=new Array(i),r=0,i,o;r>5,J=1<<11,oe=function(){var t=[256,256],e=se,n=ae,r=ce,i=ut,o=ut,s=le,a=ue,l=Ct,h=[],f=1/0,_=ie("word","end"),p=null,x=Math.random,m={},A=pe;m.canvas=function(c){return arguments.length?(A=R(c),m):A},m.start=function(){var c=C(A()),y=_e((t[0]>>5)*t[1]),d=null,u=h.length,v=-1,b=[],S=h.map(function(w,g){return w.text=e.call(this,w,g),w.font=n.call(this,w,g),w.style=i.call(this,w,g),w.weight=o.call(this,w,g),w.rotate=s.call(this,w,g),w.size=~~r.call(this,w,g),w.padding=a.call(this,w,g),w}).sort(function(w,g){return g.size-w.size});return p&&clearInterval(p),p=setInterval(N,0),N(),m;function N(){for(var w=Date.now();Date.now()-w>1,g.y=t[1]*(x()+.5)>>1,fe(c,g,S,v),g.hasText&&k(y,g,d)&&(b.push(g),_.call("word",m,g),d?me(d,g):d=[{x:g.x+g.x0,y:g.y+g.y0},{x:g.x+g.x1,y:g.y+g.y1}],g.x-=t[0]>>1,g.y-=t[1]>>1)}v>=u&&(m.stop(),_.call("end",m,b,d))}},m.stop=function(){return p&&(clearInterval(p),p=null),m};function C(c){c.width=c.height=1;var y=Math.sqrt(c.getContext("2d").getImageData(0,0,1,1).data.length>>2);c.width=(W<<5)/y,c.height=J/y;var d=c.getContext("2d");return d.fillStyle=d.strokeStyle="red",d.textAlign="center",{context:d,ratio:y}}function k(c,y,d){t[0],t[1];for(var u=y.x,v=y.y,b=Math.sqrt(t[0]*t[0]+t[1]*t[1]),S=l(t),N=x()<.5?1:-1,w=-N,g,D,Y;(g=S(w+=N))&&(D=~~g[0],Y=~~g[1],!(Math.min(Math.abs(D),Math.abs(Y))>=b));)if(y.x=u+D,y.y=v+Y,!(y.x+y.x0<0||y.y+y.y0<0||y.x+y.x1>t[0]||y.y+y.y1>t[1])&&(!d||!he(y,c,t[0]))&&(!d||de(y,d))){for(var Lt=y.sprite,H=y.width>>5,rt=t[0]>>5,it=y.x-(H<<4),ot=it&127,Vt=32-ot,Bt=y.y1-y.y0,st=(y.y+y.y0)*rt+(it>>5),Z,Q=0;Q>>ot:0);st+=rt}return delete y.sprite,!0}return!1}return m.timeInterval=function(c){return arguments.length?(f=c==null?1/0:c,m):f},m.words=function(c){return arguments.length?(h=c,m):h},m.size=function(c){return arguments.length?(t=[+c[0],+c[1]],m):t},m.font=function(c){return arguments.length?(n=R(c),m):n},m.fontStyle=function(c){return arguments.length?(i=R(c),m):i},m.fontWeight=function(c){return arguments.length?(o=R(c),m):o},m.rotate=function(c){return arguments.length?(s=R(c),m):s},m.text=function(c){return arguments.length?(e=R(c),m):e},m.spiral=function(c){return arguments.length?(l=ve[c]||c,m):l},m.fontSize=function(c){return arguments.length?(r=R(c),m):r},m.padding=function(c){return arguments.length?(a=R(c),m):a},m.random=function(c){return arguments.length?(x=c,m):x},m.on=function(){var c=_.on.apply(_,arguments);return c===_?m:c},m};function se(t){return t.text}function ae(){return"serif"}function ut(){return"normal"}function ce(t){return Math.sqrt(t.value)}function le(){return(~~(Math.random()*6)-3)*30}function ue(){return 1}function fe(t,e,n,r){if(!e.sprite){var i=t.context,o=t.ratio;i.clearRect(0,0,(W<<5)/o,J/o);var s=0,a=0,l=0,h=n.length;for(--r;++r>5<<5,_=~~Math.max(Math.abs(A+C),Math.abs(A-C))}else f=f+31>>5<<5;if(_>l&&(l=_),s+f>=W<<5&&(s=0,a+=l,l=0),a+_>=J)break;i.translate((s+(f>>1))/o,(a+(_>>1))/o),e.rotate&&i.rotate(e.rotate*$),i.fillText(e.text,0,0),e.padding&&(i.lineWidth=2*e.padding,i.strokeText(e.text,0,0)),i.restore(),e.width=f,e.height=_,e.xoff=s,e.yoff=a,e.x1=f>>1,e.y1=_>>1,e.x0=-e.x1,e.y0=-e.y1,e.hasText=!0,s+=f}for(var c=i.getImageData(0,0,(W<<5)/o,J/o).data,y=[];--r>=0;)if(e=n[r],!!e.hasText){for(var f=e.width,d=f>>5,_=e.y1-e.y0,u=0;u<_*d;u++)y[u]=0;if(s=e.xoff,s==null)return;a=e.yoff;for(var v=0,b=-1,S=0;S<_;S++){for(var u=0;u>5),w=c[(a+S)*(W<<5)+(s+u)<<2]?1<<31-u%32:0;y[N]|=w,v|=w}v?b=S:(e.y0++,_--,S--,a++)}e.y1=e.y0+b,e.sprite=y.slice(0,(e.y1-e.y0)*d)}}}function he(t,e,n){n>>=5;for(var r=t.sprite,i=t.width>>5,o=t.x-(i<<4),s=o&127,a=32-s,l=t.y1-t.y0,h=(t.y+t.y0)*n+(o>>5),f,_=0;_>>s:0))&e[h+p])return!0;h+=n}return!1}function me(t,e){var n=t[0],r=t[1];e.x+e.x0r.x&&(r.x=e.x+e.x1),e.y+e.y1>r.y&&(r.y=e.y+e.y1)}function de(t,e){return t.x+t.x1>e[0].x&&t.x+t.x0e[0].y&&t.y+t.y0=0&&(e=t.slice(0,n))!=="xmlns"&&(t=t.slice(n+1)),ft.hasOwnProperty(e)?{space:ft[e],local:t}:t}function ge(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===et&&e.documentElement.namespaceURI===et?e.createElement(t):e.createElementNS(n,t)}}function xe(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Et(t){var e=Mt(t);return(e.local?xe:ge)(e)}function we(){}function zt(t){return t==null?we:function(){return this.querySelector(t)}}function be(t){typeof t!="function"&&(t=zt(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i=y&&(y=c+1);!(u=C[y])&&++y=0;)(s=r[i])&&(o&&s.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(s,o),o=s);return this}function Ze(t){t||(t=Qe);function e(_,p){return _&&p?t(_.__data__,p.__data__):!_-!p}for(var n=this._groups,r=n.length,i=new Array(r),o=0;oe?1:t>=e?0:NaN}function Ge(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function je(){return Array.from(this)}function $e(){for(var t=this._groups,e=0,n=t.length;e1?this.each((e==null?fn:typeof e=="function"?mn:hn)(t,e,n==null?"":n)):yn(this.node(),t)}function yn(t,e){return t.style.getPropertyValue(e)||Rt(t).getComputedStyle(t,null).getPropertyValue(e)}function _n(t){return function(){delete this[t]}}function pn(t,e){return function(){this[t]=e}}function vn(t,e){return function(){var n=e.apply(this,arguments);n==null?delete this[t]:this[t]=n}}function gn(t,e){return arguments.length>1?this.each((e==null?_n:typeof e=="function"?vn:pn)(t,e)):this.node()[t]}function Tt(t){return t.trim().split(/^|\s+/)}function nt(t){return t.classList||new Dt(t)}function Dt(t){this._node=t,this._names=Tt(t.getAttribute("class")||"")}Dt.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 Ft(t,e){for(var n=nt(t),r=-1,i=e.length;++r=0&&(n=e.slice(r+1),e=e.slice(0,r)),{type:e,name:n}})}function Kn(t){return function(){var e=this.__on;if(!!e){for(var n=0,r=-1,i=e.length,o;nu.countr("click",u),C=u=>r("mouseover",u),k=u=>r("mouseout",u),c=u=>r("mousemove",u),y=oe().size([s,a]).words(o).padding(x).rotate(()=>~~(Math.random()*_)+f).font(l).fontSize(u=>u.count+15).on("end",d);function d(u){nr("#wordcloud").append("svg").attr("width",y.size()[0]).attr("height",y.size()[1]).append("g").attr("transform","translate("+y.size()[0]/2+","+y.size()[1]/2+")").selectAll("text").data(u).enter().append("text").style("font-size",v=>v.size+"px").style("font-family",l).style("fill","#393F67").attr("text-anchor","middle").attr("transform",v=>"translate("+[v.x,v.y]+")rotate("+v.rotate+")").text(v=>v.text).on("click",A).on("mouseover",C).on("mouseout",k).on("mousemove",c)}return Ht(async()=>{y.start()}),t.$$set=u=>{"words"in u&&n(1,o=u.words),"width"in u&&n(2,s=u.width),"height"in u&&n(3,a=u.height),"font"in u&&n(4,l=u.font),"maxFontSize"in u&&n(5,h=u.maxFontSize),"minRotate"in u&&n(6,f=u.minRotate),"maxRotate"in u&&n(7,_=u.maxRotate),"scheme"in u&&n(8,p=u.scheme),"padding"in u&&n(9,x=u.padding),"backgroundColor"in u&&n(0,m=u.backgroundColor)},[m,o,s,a,l,h,f,_,p,x]}class gr extends vt{constructor(e){super();gt(this,e,vr,pr,xt,{words:1,width:2,height:3,font:4,maxFontSize:5,minRotate:6,maxRotate:7,scheme:8,padding:9,backgroundColor:0})}}function yt(t,e,n){const r=t.slice();return r[4]=e[n],r}function _t(t){let e,n;return e=new Zt({props:{event:t[4]}}),{c(){wt(e.$$.fragment)},l(r){bt(e.$$.fragment,r)},m(r,i){At(e,r,i),n=!0},p(r,i){const o={};i&1&&(o.event=r[4]),e.$set(o)},i(r){n||(B(e.$$.fragment,r),n=!0)},o(r){U(e.$$.fragment,r),n=!1},d(r){St(e,r)}}}function xr(t){let e,n,r,i,o,s,a,l,h,f,_,p,x,m,A,C;f=new gr({props:{words:t[1]}}),f.$on("click",br);let k=t[0].spec.events.filter(pt),c=[];for(let d=0;dU(c[d],1,1,()=>{c[d]=null});return{c(){e=L(),n=F("section"),r=F("h1"),i=G("Program"),o=L(),s=F("div"),a=G(`Program st\xE1le p\u0159ipravujeme. Jeho kone\u010Dn\xE1 podoba bude zve\u0159ejn\u011Bna p\xE1r t\xFDdn\u016F p\u0159ed konferenc\xED.`),l=L(),h=F("div"),wt(f.$$.fragment),_=L(),p=F("h1"),x=G("Seznam ud\xE1lost\xED"),m=L(),A=F("div");for(let d=0;d{!i.tags||i.tags.forEach(o=>{e[o]||(e[o]={text:o,count:0}),e[o].count+=1})});let n=Object.keys(e).map(i=>e[i]);const r=n.reduce((i,o)=>o.count>i?o.count:i,0);return n=n.map(i=>(i.count=Math.round(i.count/(r/40)),i)),console.log(n),n}function br(t){console.log(t.detail.path[0].innerHTML)}const pt=t=>!t.parent;function Ar(t,e,n){let r,i;Kt(t,Gt,s=>n(0,i=s));function o(s){return s?s.spec.events.reduce((a,l)=>a+(Qt(l,s)||0),0):null}return t.$$.update=()=>{t.$$.dirty&1&&n(1,r=wr(i)),t.$$.dirty&1&&o(i)},[i,r]}class Rr extends vt{constructor(e){super();gt(this,e,Ar,xr,xt,{})}}export{Rr as default,Pr as prerender};