// Automatically generated file.  Do not edit!

'use strict';
var f={},g={ar:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629",be:"\u0431\u0435\u043b\u0430\u0440\u0443\u0441\u043a\u0456","be-tarask":"Tara\u0161kievica",bg:"\u0431\u044a\u043b\u0433\u0430\u0440\u0441\u043a\u0438 \u0435\u0437\u0438\u043a",bn:"\u09ac\u09be\u0982\u09b2\u09be",br:"Brezhoneg",cs:"\u010cesky",da:"Dansk",de:"Deutsch",el:"\u0395\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ac",en:"English",es:"Espa\u00f1ol",eu:"Euskara",fa:"\u0641\u0627\u0631\u0633\u06cc",fi:"Suomi",fr:"Fran\u00e7ais",gl:"Galego",
ha:"Hausa",he:"\u05e2\u05d1\u05e8\u05d9\u05ea",hi:"\u0939\u093f\u0928\u094d\u0926\u0940",hu:"Magyar",hy:"\u0570\u0561\u0575\u0565\u0580\u0567\u0576",ia:"Interlingua",id:"Bahasa Indonesia",ig:"As\u1ee5s\u1ee5 Igbo",is:"\u00cdslenska",it:"Italiano",ja:"\u65e5\u672c\u8a9e",kab:"Taqbaylit",ko:"\ud55c\uad6d\uc5b4",lt:"Lietuvi\u0173",lv:"Latvie\u0161u",ms:"Bahasa Melayu",my:"\u1019\u103c\u1014\u103a\u1019\u102c\u1005\u102c",nb:"Norsk Bokm\u00e5l",nl:"Nederlands, Vlaams",pl:"Polski",pms:"Piemont\u00e8is",
pt:"Portugu\u00eas","pt-br":"Portugu\u00eas Brasileiro",ro:"Rom\u00e2n\u0103",ru:"\u0420\u0443\u0441\u0441\u043a\u0438\u0439",sc:"Sardu",sk:"Sloven\u010dina",sl:"Sloven\u0161\u010dina",sq:"Shqip",sr:"\u0421\u0440\u043f\u0441\u043a\u0438",sv:"Svenska",th:"\u0e20\u0e32\u0e29\u0e32\u0e44\u0e17\u0e22",tr:"T\u00fcrk\u00e7e",uk:"\u0423\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430",ur:"\u0627\u064f\u0631\u062f\u064f\u0648\u202c",vi:"Ti\u1ebfng Vi\u1ec7t",yo:"\u00c8d\u00e8 Yor\u00f9b\u00e1","zh-hans":"\u7b80\u4f53\u4e2d\u6587",
"zh-hant":"\u6b63\u9ad4\u4e2d\u6587"},k="ace ar fa he mzn ps ur".split(" "),l=window.BlocklyGamesLang,n=window.BlocklyGamesLanguages,p=".html"==window.location.pathname.substr(-5),q=Number,r,t=window.location.search.match(/[?&]level=([^&]+)/);r=t?decodeURIComponent(t[1].replace(/\+/g,"%20")):"NaN";q(r);
function u(){document.title=document.getElementById("title").textContent;document.dir=-1!=k.indexOf(l)?"rtl":"ltr";document.head.parentElement.setAttribute("lang",l);var a=document.getElementById("languageMenu");if(a){for(var b=[],c=0;c<n.length;c++){var d=n[c];b.push([g[d],d])}b.sort(function(h,m){return h[0]>m[0]?1:h[0]<m[0]?-1:0});for(c=a.options.length=0;c<b.length;c++){var e=b[c];d=e[1];e=new Option(e[0],d);d==l&&(e.selected=!0);a.options.add(e)}1>=a.options.length&&(a.style.display="none")}for(c=
1;10>=c;c++)a=document.getElementById("level"+c),b=!!v(f.w,c),a&&b&&(a.className+=" level_done");(c=document.querySelector('meta[name="viewport"]'))&&725>screen.availWidth&&c.setAttribute("content","width=725, initial-scale=.35, user-scalable=no");setTimeout(w,1)}
function x(){var a=document.getElementById("languageMenu");a=encodeURIComponent(a.options[a.selectedIndex].value);var b=window.location.search;b=1>=b.length?"?lang="+a:b.match(/[?&]lang=[^&]*/)?b.replace(/([?&]lang=)[^&]*/,"$1"+a):b.replace(/\?/,"?lang="+a+"&");window.location=window.location.protocol+"//"+window.location.host+window.location.pathname+b}function v(a,b){try{var c=window.localStorage[a+b]}catch(d){}return c}
function y(){var a="clearData",b=z;if(!a)throw TypeError("Element not found: "+a);"string"==typeof a&&(a=document.getElementById(a));a.addEventListener("click",b,!0);a.addEventListener("touchend",b,!0)}
function w(){if(!p){window.GoogleAnalyticsObject="GoogleAnalyticsFunction";var a=function(c){(a.q=a.q||[]).push(arguments)};window.GoogleAnalyticsFunction=a;a.l=1*new Date;var b=document.createElement("script");b.async=1;b.src="//www.google-analytics.com/analytics.js";document.head.appendChild(b);a("create","UA-50448074-1","auto");a("send","pageview")}};var A=A||{};function B(a,b){function c(){}c.prototype=b.prototype;a.G=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.C=function(d,e,h){return b.prototype[e].apply(d,Array.prototype.slice.call(arguments,2))}}if(!C){var C,D="";"undefined"!==typeof navigator&&navigator&&"string"==typeof navigator.userAgent&&(D=navigator.userAgent);var E=0==D.indexOf("Opera");C={D:{u:"ScriptEngine"in window},A:E,v:!E&&-1!=D.indexOf("MSIE"),B:!E&&-1!=D.indexOf("WebKit")}}if(!F)var F={};if(!G)var G={};
if(!H)var H={};if(!I)var I={};if(!J)var J={};if(!K)var K={};var L=A.s?{F:!0}:{};function M(){throw Error("Do not instantiate directly");}M.prototype.i=null;M.prototype.toString=function(){return this.content};function N(a){if(null!=a)switch(a.i){case 1:return 1;case -1:return-1;case 0:return 0}return null}function O(){M.call(this)}B(O,M);O.prototype.o=L;function P(a){return null!=a&&a.o===L?a:Q(String(String(a)).replace(R,S),N(a))}
var Q=function(a){function b(){}b.prototype=a.prototype;return function(c,d){var e=new b;e.content=String(c);void 0!==d&&(e.i=d);return e}}(O),T={"\x00":"&#0;",'"':"&quot;","&":"&amp;","'":"&#39;","<":"&lt;",">":"&gt;","\t":"&#9;","\n":"&#10;","\x0B":"&#11;","\f":"&#12;","\r":"&#13;"," ":"&#32;","-":"&#45;","/":"&#47;","=":"&#61;","`":"&#96;","\u0085":"&#133;","\u00a0":"&#160;","\u2028":"&#8232;","\u2029":"&#8233;"};function S(a){return T[a]}var R=/[\x00\x22\x26\x27\x3c\x3e]/g;function U(){var a={lang:l,j:p,m:-1!=k.indexOf(l)};return'<div style="display: none"><span id="title">Jogos do Blockly</span><span id="Index_clear">Deletar todas as suas solu\u00e7\u00f5es?</span></div><div id="header"><img id="banner" src="index/title-beta.png" height="51" width="244" alt="Blockly Games"><div id="subtitle">Jogos para os programadores de amanh\u00e3. &nbsp;'+(a.j?'<a href="about.html?lang='+P(a.lang)+'">':'<a href="about?lang='+P(a.lang)+'">')+'Informa\u00e7\u00f5es para educadores...</a></div></div><svg height="100%" width="100%" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g transform="translate(-150,-60)"><svg height="100%" width="100%" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 100 100" preserveAspectRatio="none" x="150" y="60"><path id="path" d="M 10,15 C 15,60 35,100 50,70 S 80,20 90,85"'+
(a.m?'transform="translate(100) scale(-1, 1)"':"")+"/></svg>"+V({g:"puzzle",x:10,y:15,h:"Quebra-Cabe\u00e7a"},a)+V({g:"maze",x:16,y:45,h:"Labirinto"},a)+V({g:"bird",x:26,y:69,h:"P\u00e1ssaro"},a)+V({g:"turtle",x:41,y:80,h:"Tartaruga"},a)+V({g:"movie",x:55,y:61,h:"Filme"},a)+V({g:"music",x:69,y:43,h:"M\u00fasica"},a)+V({g:"pond-tutor",x:83,y:55,h:"Tutor de Lagoa"},a)+V({g:"pond-duck",x:90,y:85,h:"Lagoa"},a)+'</g></svg><select id="languageMenu"></select><p id="clearDataPara" style="visibility: hidden">Quer come\u00e7ar novamente?<button class="secondary" id="clearData">Apagar dados</span></button></p>'}
function V(a,b){return'<svg height="150" width="300" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"'+(b.m?'x="'+P(100-a.x)+'%"':'x="'+P(a.x)+'%"')+'y="'+P(a.y)+'%"><path d="M 111.11,98.89 A 55 55 0 1 1 188.89,98.89" class="gaugeBack" id="back-'+P(a.g)+'" /><g class="icon" id="icon-'+P(a.g)+'"><circle cx="150" cy="60" r="50" class="iconBack" /><image xlink:href="index/'+P(a.g)+'.png" height="100" width="100" x="100" y="10" />'+(b.j?'<a id="link-'+P(a.g)+
'" xlink:href="'+P(a.g)+".html?lang="+P(b.lang)+'">':'<a xlink:href="'+P(a.g)+"?lang="+P(b.lang)+'">')+'<circle cx="150" cy="60" r="50" class="iconBorder" /><path class="gaugeFront" id="gauge-'+P(a.g)+'" /><text x="150" y="135">'+P(a.h)+"</text></a></g></svg>"};
var W="puzzle maze bird turtle movie music pond-tutor pond-duck".split(" ");
window.addEventListener("load",function(){function a(h,m){return function(){X(h,0,m)}}document.body.innerHTML=U();u();document.getElementById("languageMenu").addEventListener("change",x,!0);for(var b=!1,c=[],d=0;d<W.length;d++){c[d]=0;for(var e=1;10>=e;e++)v(W[d],e)&&(b=!0,c[d]++)}b&&(document.getElementById("clearDataPara").style.visibility="visible",y());for(d=0;d<c.length;d++)b=W[d],(e=c[d]/(0==d?1:10)*270)?setTimeout(a(b,e),1500):(b=document.getElementById("gauge-"+b),b.parentNode.removeChild(b))},
!1);function X(a,b,c){b+=4;Y(a,Math.min(b,c));b<c&&setTimeout(function(){X(a,b,c)},10)}function Y(a,b){var c=(b-45)*Math.PI/180,d=150-52.75*Math.cos(c),e=60-52.75*Math.sin(c);b=180<b?1:0;c=-45*Math.PI/180;var h=150-52.75*Math.cos(c);c=60-52.75*Math.sin(c);document.getElementById("gauge-"+a).setAttribute("d",["M "+h+","+c+" A",52.75,52.75,0,b,1,d,e].join(" "))}
function z(){var a=confirm,b;(b=document.getElementById("Index_clear"))?(b=b.textContent,b=b.replace(/\\n/g,"\n")):b=null;if(a(null===b?"[Unknown message: Index_clear]":b)){for(a=0;a<W.length;a++)for(b=1;10>=b;b++)delete window.localStorage[W[a]+b];location.reload()}};
