(function(d){ function e(d){ if(!(this instanceof e)) return new e(d); d||(d={}); "number"==typeof d&&(d={w:d}); null!=d.A||(d.A=!0); this.options=d; this.w=d.w||e.I; this.M=1E3/this.w; this.N=this.w!==e.I; this.C=null; this.m={}; this.r=this.B=0 } var s=Date.now,M=d.setTimeout,k,w,z=!1; (function(){ var e,r=["ms","moz","webkit","o"]; k=d.requestAnimationFrame; w=d.cancelAnimationFrame; for(e=0;et &&(t=0),this.C=M(function(){ var d;e.B=s?s():(new Date).getTime(); e.C=null;++e.r; for(d in e.m)if(e.m[d]){ if(z&&e.options.A)k(e.m[d]); else e.m[d](e.B); delete e.m[d] } },t)); this.m[this.r]=d; return this.r}; e.prototype.cancel=function(d){ z&&this.options.A&&w(d); delete this.m[d]}; "object"==typeof exports&& "object"==typeof module?module.R=e: "function"==typeof define&&define.Q?define(function(){return e}): d.AnimationFrame=e})(window); window.TagulDisplayCloud=function(d,e,s,M){ function k(b){ return!isNaN(parseFloat(b))&&isFinite(b) } function w(){ var b=g.offsetWidth,a=g.offsetHeight; E=36E4>16&255,k:b>>8&255,i:b&255 } } function r(b,a){ b=b.substring(1,b.length); b=I(b); return"rgba("+b.l+","+b.k+","+b.i+","+a.toFixed(4)+ ")"} function t(b){ b=b.toString(16); return 1==b.length?"0"+b:b } function O(b,a,n){ c1=I(b.substring(1,b.length)); c2=I(a.substring(1,a.length)); return"#"+t(Math.round(c1.l*(1-n)+c2.l*n)) +t(Math.round(c1.k*(1-n)+c2.k*n)) +t(Math.round(c1.i*(1-n)+c2.i*n)) } function G(){ return Date.now?Date.now():(new Date).getTime() } function J(b,a){ b.setTransform(a[0][0],a[1][0],a[0][1],a[1][1],a[0][2],a[1][2]) } function u(b,a){ return[[1,0,b],[0,1,a]] } function p(b,a){ return[[b[0][0]*a[0][0]+b[0][1]*a[1][0],b[0][0]*a[0][1]+ b[0][1]*a[1][1],b[0][0]*a[0][2]+b[0][1]*a[1][2]+b[0][2]], [b[1][0]*a[0][0]+b[1][1]*a[1][0],b[1][0]*a[0][1]+ b[1][1]*a[1][1],b[1][0]*a[0][2]+b[1][1]*a[1][2]+b[1][2]]] } function P(b){ var a=b[0][0]*b[1][1]-b[0][1]*b[1][0]; return[[b[1][1]/a,-b[0][1]/a,(b[0][1]*b[1][2]-b[0][2]*b[1][1])/a], [-b[1][0]/a,b[0][0]/a,(b[0][2]*b[1][0]-b[0][0]*b[1][2])/a]] } function Q(b){ return Math.sqrt(b[0][0]*b[0][0]+b[0][1]*b[0][1]) } function A(b,a){ return{x:a[0][0]*b.x+a[0][1]*b.y+a[0][2], y:a[1][0]*b.x+a[1][1]*b.y+a[1][2]} } function B(b,a){ var n=A({x:b.x,y:b.y},a), c=A({x:b.x+b.width,y:b.y+b.height},a), d=A({x:b.x,y:b.y+b.height},a), f=A({x:b.x+b.width,y:b.y},a), e=Math.min(n.x,c.x,d.x,f.x), g=Math.min(n.y,c.y,d.y,f.y), h=Math.max(n.x,c.x,d.x,f.x), n=Math.max(n.y,c.y,d.y,f.y); return{x:e,y:g,width:h-e,height:n-g} } function t(b){ b=b.toString(16); return 1==b.length?"0"+b:b } function R(b,a){ var d=u(-b.bbox.J,-b.bbox.K), c=Math.pow(b.G/b.scale,a), d=p([[c,0,0],[0,c,0]],d), c=(b.P-b.L)*a, d=p([[Math.cos(c),Math.sin(c),0],[-Math.sin(c),Math.cos(c), 0]],d); return p(u(b.bbox.J,b.bbox.K),d) } function S(b,a,d,c,f){ radius=0.1*Math.min(c,f); b.beginPath(); b.moveTo(a+radius,d); b.lineTo(a+c-radius,d); b.quadraticCurveTo(a+c,d,a+c,d+radius); b.lineTo(a+c,d+f-radius); b.quadraticCurveTo(a+c,d+f,a+c-radius,d+f); b.lineTo(a+radius,d+f); b.quadraticCurveTo(a,d+f,a,d+f-radius); b.lineTo(a,d+radius); b.quadraticCurveTo(a,d,a+radius,d); b.closePath(); b.fill() } function K(b,a){ for(var d=0,c=0,f=0;fe?-90:180*Math.asin(e)/Math.PI; 0>m&&(k=180*(0>e?-1:1)-k); c.L=Math.round(k)*Math.PI/180; c.P=h.rotate?0:c.L; c.o=0; c.p=0; c.f=B(c.bbox,p(c.j,R(c,1))); 0>c.f.x&&(c.o=-c.f.x); c.f.x+c.f.width>g.width&&(c.o=-(c.f.x+c.f.width)+g.width); 0>c.f.y&&(c.p=-c.f.y); c.f.y+c.f.height>g.height&& (c.p=-(c.f.y+c.f.height)+g.height); c.O=O(h.backgroundColor,c.fill,0.2); v&&c.fill&&(attribution.backgroundColor= attribution.backgroundColor|| {l:0,k:0,i:0},c=I(c.fill), attribution.backgroundColor.l+=c.l, attribution.backgroundColor.k+=c.k, attribution.backgroundColor.i+=c.i) } h.q&&(h.v=r(h.q,1),h.v=h.v.substring(0,h.v.length-7)); N=l.getImageData(0,0,g.width,g.height); if(v){ attribution.backgroundColor.l/=q.length; attribution.backgroundColor.k/=q.length; attribution.backgroundColor.i/=q.length; attribution.backgroundColor="#"+ (65536*attribution.backgroundColor.l+ 256*attribution.backgroundColor.k+ attribution.backgroundColor.i).toString(16); attribution.backgroundColor=r(attribution.backgroundColor,0.8); attribution.n=h.backgroundColor; for(a=0;aa.e+1E3*h.g&&a.h==D&&(m.splice(b,1),b--) } v&&(attribution.s||f) &&(a=attribution.data.tags[0], c=(d-attribution.e)/attribution.g, c=1'); document.writeln(''); document.writeln(""); var x=document.getElementsByTagName("head")[0], H=document.createElement("style"), V=document.createTextNode("#"+e+" {outline: 0; border: 0; background: none; margin: 0; padding: 0;}\n#"+e+":hover {border: 0;}\n"); H.type="text/css"; H.styleSheet?H.styleSheet.cssText=V.nodeValue: H.appendChild(V); x.appendChild(H) }else{ document.writeln(''); document.writeln(''); document.writeln(""); return }else{ document.writeln("
Sorry! Cloud does not exist!
"); return} var v=!1; d.b={ x:d.viewBox.x, y:d.viewBox.y, width:d.viewBox.width, height:d.viewBox.height }; d.a=d.styleOptions; d.a.backgroundColor=d.a.backgroundColor; d.a.t=d.a.backgroundColorAlpha; d.a.g=d.a.animationSpeed; d.a.n=d.a.textColor; d.a.H=d.a.textAlpha; d.a.q=d.a.boxColor; d.a.u=d.a.boxAlpha; d.a.zoom=d.a.zoom; d.a.rotate=d.a.rotate; d.a.F=d.a.openLinksInNewWindow; x={}; s="boolean"==typeof s?s:!0; var E,f,q=d.tags, N,C=null, m=[], F=0, D=1; x.cleanUp=function(){h=L=m=C=N=f=g=l=y=null}; var y=document.getElementById(e), g=y.getElementsByTagName("canvas")[0]; window.onresize=function(){w();T()}; w(); var l=g.getContext("2d"); l.clearRect(0,0,g.width,g.height); v&&(g.onmouseover=z); g.onmousemove=function(b){var a=g,d=0,c=0;if(void 0!==a.offsetParent){do d+=a.offsetLeft,c+=a.offsetTop;while(a=a.offsetParent)}d+=W+X+Y;c+=Z+$+aa;b={x:(b.pageX-d)*E,y:(b.pageY-c)*E};if(v&&(a=attribution.data.tags[0],d=A(b,a.D),a=a.bbox,!(d.xa.c||d.ya.d))){g.style.cursor="pointer";y.href=attribution.url;y.target="_blank";C=null;return}for(a=q.length-1;0<=a&&(d=A(b,q[a].D),c=q[a].bbox,d.xc.c||d.yc.d);a--);a=0<=a?q[a]: null;null!=a?g.style.cursor="pointer":(g.style.cursor="auto",y.removeAttribute("href"));a!=C&&null!=a&&(y.href=a.url?a.url:"javascript:void(0);",y.target=h.F||M?"_blank":"_blank",null!=a&&a.h!=F&&(a.h=F,b=G(),a.e=b-Math.max(1E3*h.g-(b-a.e),0),-1==m.indexOf(a)&&m.push(a)));C=a};g.onmouseout=function(){for(var b=0;b