1TID=0,duelId=0,isCompact=0,coopTML=0,CoopID=0,IsYB=0,PUID=0,GV3="",LastTouchDist=0,NoCraft=0,IsTNM=0,IsGameStarted=!1,AfterRegFunction=void 0,GameTimer=0,GameTimerStop=!1,"undefined"==typeof StartGameTime&&(StartGameTime=new Date),GameTimerAdd=0,ScrollTimer=void 0,DisableFixScrol=0,DisableScrol=!1,CheckFreeSpaceTimer=!1,ScrollObject=void 0,UnWide=void 0,TermsChecked=!1,SF1=void 0,SF2=void 0,FavStat="off",SiteVersion="",IsFrame=!1,TimetID=void 0,AjaxTagInput=void 0,CurUser=0,LastTagText="",LoadString="<img id=\"loadindicator\" src=\"https://grandgames.net/img/load.gif\" alt=\"Loading...\">",TagPosX=0,TagPosY=0,NowTagText="",TempLink="",UniDesc=void 0,NowTagTextStart=0,NowTagTextEnd=0,PostAccess=1,IsAB=!0,SmileTarget=void 0,RBlock=0,FooterLoaded=!1,IsABR=!1,IsAB=!1,NowPageID=0,LastMesID=0,Comet=!1,socket=!1,WSFuncs={},nodeFuncs={},WSTryConnect=!1,LastGfunc=!1,NoReload=!1,CanShowMes=!0,NoSoundInit=!0,Disab=!1,IsSuc=!1,GSCanShow=!0,GlobalAppMode=0,EXFSmall=10,EXFNormal=18,SiteConfig=void 0,NoSound=0,FBHided=!1,AppVersion=0;var Sound=new Audio;FrameCounter=1,NowShot=!1,ScreenTopMargin=40,sendProgressEnabled=!1;var sendStreamEnabled=!1,watchStreamEnabled=!1;function wsSend(M){if(Comet)try{"object"==typeof M&&(M=JSON.stringify(M)),socket.send(M)}catch(err){}else setTimeout(function(){wsSend(M)},1e3)}function wsSubscribe(channel){let data=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{};wsSend({m:"get",channel:channel,data})}function wsSet(channel){let data=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{};wsSend({m:"set",channel:channel,data})}function WSBind(param,func){0<UIND&&(Comet?(param=param.slice(3),WSFuncs[param]=func,wsSubscribe("update",{kind:param})):setTimeout(function(){WSBind(param,func)},1e3))}function sendProgress(proc){let save=1<arguments.length&&arguments[1]!==void 0?arguments[1]:"";if(sendProgressEnabled&&Comet&&GGID&&UIND){const obj={m:"set",channel:"progress",data:{id:GGID,proc:proc,save:save}};wsSend(obj)}}function windowHeight(){return innerHeight}function screenHeight(){return screen.height}function windowWidth(){return innerWidth}function screenWidth(){return screen.width}(function(d){function p(a){return"object"==typeof a?a:{top:a,left:a}}var k=d.scrollTo=function(a,i,e){d(window).scrollTo(a,i,e)};k.defaults={axis:"xy",duration:1.3<=parseFloat(d.fn.jquery)?0:1},k.window=function(){return d(window)._scrollable()},d.fn._scrollable=function(){return this.map(function(){var a=this,i=!a.nodeName||-1!=d.inArray(a.nodeName.toLowerCase(),["iframe","#document","html","body"]);if(!i)return a;var e=(a.contentWindow||a).document||a.ownerDocument||a;return d.browser.safari||"BackCompat"==e.compatMode?e.body:e.documentElement})},d.fn.scrollTo=function(n,j,b){return"object"==typeof j&&(b=j,j=0),"function"==typeof b&&(b={onAfter:b}),"max"==n&&(n=9e9),b=d.extend({},k.defaults,b),j=j||b.speed||b.duration,b.queue=b.queue&&1<b.axis.length,b.queue&&(j/=2),b.offset=p(b.offset),b.over=p(b.over),this._scrollable().each(function(){function t(a){r.animate(g,j,b.easing,a&&function(){a.call(this,n,b)})}var s,q=this,r=d(q),f=n,g={},u=r.is("html,body");switch(typeof f){case"number":case"string":if(/^([+-]=)?\d+(\.\d+)?(px|%)?$/.test(f)){f=p(f);break}f=d(f,this);case"object":(f.is||f.style)&&(s=(f=d(f)).offset())}d.each(b.axis.split(""),function(a,i){var e="x"==i?"Left":"Top",h=e.toLowerCase(),c="scroll"+e,l=q[c],m=k.max(q,i);if(s)g[c]=s[h]+(u?0:l-r.offset()[h]),b.margin&&(g[c]-=parseInt(f.css("margin"+e))||0,g[c]-=parseInt(f.css("border"+e+"Width"))||0),g[c]+=b.offset[h]||0,b.over[h]&&(g[c]+=f["x"==i?"width":"height"]()*b.over[h]);else{var o=f[h];g[c]=o.slice&&"%"==o.slice(-1)?parseFloat(o)/100*m:o}/^\d+$/.test(g[c])&&(g[c]=0>=g[c]?0:Math.min(g[c],m)),!a&&b.queue&&(l!=g[c]&&t(b.onAfterFirst),delete g[c])}),t(b.onAfter)}).end()},k.max=function(a,i){var e="x"==i?"Width":"Height",h="scroll"+e;if(!d(a).is("html,body"))return a[h]-d(a)[e.toLowerCase()]();var c="client"+e,l=a.ownerDocument.documentElement,m=a.ownerDocument.body;return Math.max(l[h],m[h])-Math.min(l[c],m[c])}})(jQuery),function($){$.fn.hasScrollBar=function(){return this.get(0).scrollHeight>this.height()}}(jQuery),window.isset=function(v){return"undefined"!=typeof v&&null!==v},Array.prototype.in_array=function(p_val){for(var i=0,l=this.length;i<l;i++)if(this[i]==p_val)return!0;return!1};function isNumber(n){return!isNaN(parseFloat(n))&&isFinite(n)}function saveLastSerch(){var url=location.href;localStorage.setItem("lastsearch",url)}function checkCompact(){isCompact=0;var w=$(document).width();if(972>=w){var v=localStorage.getItem("iscompact");isCompact=null===v?0:+v,$("#iscompact").length&&(isCompact&&$("#iscompact").attr("checked","checked"),$("#iscompact_c").show())}}function addCompactButton(){0==$("#cmpct").length&&$("div[abbr=buttons]").prepend("<button title=\"Compact Mode\" class=\"onlysmall nocompact\" id=\"cmpct\" onclick=\"isCompact=1;StartCompact();\"><img src=\"/img/icon/compact.png\" class=\"but_img\" alt=\"\" /></button>")}function StartCompact(){if(isCompact){console.log("gg_hidebnav"),IsFrame=!0,$("body").addClass("compact");var BT,TL,OC,RL,id,i,s,z,isPortrait=screenWidth()<screenHeight();i=0,$(".toframebuttons").each(function(){isPortrait&&$(this).hasClass("show_portrait")?$(this).removeClass("toframebuttons"):(i++,BT=$(this).attr("abbr"),RL=$(this).attr("rel"),RL===void 0&&(RL=BT),id=$(this).attr("id"),id===void 0&&(id="tfb_"+i,$(this).attr("id",id)),"buttons"===BT&&(s="#framemenubut",$(this).find("button").each(function(){if(z=this.id,!$(this).hasClass("noframe"))if("Undo();"==$(this).attr("onclick"))$("#leftmenubut").after("<button onclick=\"Undo();\"><img src=\"https://grandgames.net/img/app/32/undo.png?4\"></button>");else{var r=$(this).attr("rel");if("rulesbut"===z&&(r="rulesbut"),void 0!==r){var c=$(this).attr("onclick");void 0!==c&&$("#leftmenubut").after("<button onclick=\""+c+"\"><img src=\"https://grandgames.net/img/app/32/"+r+".png?4\"></button>")}}})),RL!==void 0&&(TL=$(this).attr("title"),OC=$(this).attr("onclick"),TL===void 0&&(TL=""),$("#leftmenubut").after("<button class=\"top_frame_button\" title=\""+TL+"\" onclick=\"ShowFramePanel('"+id+"').toggle();\"><img src=\"https://grandgames.net/img/app/32/"+RL+".png?5\"></button>")))}),$("body.compact .toframebuttons button").on("mouseup",function(){$(".toframebuttons").hide()}),setTimeout(function(){$(window).resize()},100)}}function ShowFramePanel(p){$("#left_panel").hide();var needShow=$("#"+p).is(":hidden");$(".toframebuttons").hide(),needShow&&$("#"+p).show()}function Actions(params){return new Promise(resolve=>{jQuery.post("/actions.php",params,function(s){resolve(s)})})}function ShowADDForm(id,url,mode,md){let agid=4<arguments.length&&arguments[4]!==void 0?arguments[4]:0;var obj="add_ta_"+id,obj2="add_kmn_"+id;if(2==md)var sss="#msgs_";else var sss="#msg_";"edit"===mode?jQuery(sss+id).html("<div class=\"add_kmn\" id=\""+obj2+"\"></div>"):jQuery("#tr_"+id).append("<div class=\"add_kmn\" id=\""+obj2+"\"></div>"),"moder"==mode&&(mode=0,"undefined"==typeof PuzzleID&&(PuzzleID=0),"undefined"==typeof currentURL&&(currentURL=""),$.post("/actions.php",{mode:"moderlist",url:currentURL,id:PuzzleID,domid:id},function(s){jQuery("#"+obj2).prepend(s)}));var EL=jQuery("#"+obj2);0<!jQuery("#"+obj).length?(jQuery(EL).empty(),NewActions({mode:"commentbody",mde:mode,obj:obj,id:id,mda:md,url:url,agid:agid},function(R){jQuery(EL).append(R.message),"edit"===mode?jQuery.post("/actions.php",{id:id,mode:"getpostsource",md:md},function(s){jQuery("#"+obj).val(s),jQuery(EL).show()}):jQuery(EL).show("slow")})):jQuery(EL).remove()}function InitSiteConfig(){if(void 0===SiteConfig){if(SiteConfig=localStorage.getItem("siteconfig"),null===SiteConfig||void 0===SiteConfig)SiteConfig={};else try{SiteConfig=JSON.parse(SiteConfig)}catch(e){SiteConfig={}}}}function GetConfig(Nom,DefVal){return InitSiteConfig(),void 0===SiteConfig[Nom]?void 0===DefVal?0:DefVal:SiteConfig[Nom]}function SetConfig(Nom,Val){InitSiteConfig(),SiteConfig[Nom]=Val;return localStorage.setItem("siteconfig",JSON.stringify(SiteConfig)),!0}function askConfirm(){let msg=0<arguments.length&&arguments[0]!==void 0?arguments[0]:LG.sure;return new Promise((resolve,reject)=>{window.confirm(msg)?resolve():reject()})}function NewActions(M,fSuccess,fError,Spans){var HideSpan=void 0,LoadSpan=void 0;void 0!==Spans&&(Array.isArray(Spans)?(LoadSpan=Spans[0],HideSpan=Spans[1]):LoadSpan=Spans);var TH="";if(void 0!==HideSpan&&!0!==HideSpan&&$(HideSpan).hide(),void 0!==LoadSpan){var loader="<img id=\"na_load_image\" width=\"120\" height=\"14\" src=\"/img/newloader.gif\" alt=\"Loading...\" />";if(!0===HideSpan){TH=$(LoadSpan).get(0).outerHTML,$(LoadSpan).replaceWith(loader);var ls=LoadSpan;LoadSpan="#na_load_image"}else $(LoadSpan).html(loader)}
1jQuery.post("/newactions.php",M,function(s){void 0!==HideSpan&&!0!==HideSpan&&$(HideSpan).show(),void 0!==LoadSpan&&(!0===HideSpan?($(LoadSpan).replaceWith(TH),LoadSpan=ls):$(LoadSpan).html(TH));var j=JSON.parse(s);j.iserror?void 0!==fError&&("function"==typeof fError?fError(j):1===fError?alert(j.message):2==fError&&void 0!==LoadSpan&&$(LoadSpan).html(j.message)):(void 0!==j.usermoney&&$("#moneys").html(j.usermoney),void 0!==fSuccess&&("function"==typeof fSuccess?fSuccess(j):1===fSuccess?alert(j.message):2==fSuccess&&void 0!==LoadSpan&&$(LoadSpan).html(j.html))),void 0!==j.reloadpage&&location.reload()})}function setCookie(name,value,expires,path,domain){document.cookie=name+"="+escape(value)+(expires?"; expires="+expires:"")+(path?"; path="+path:"")+(domain?"; domain="+domain:"")+"; samesite=Lax"+"; secure=true"}function getCookie(name){var cookie=" "+document.cookie,search=" "+name+"=",setStr=null,offset=0,end=0;return 0<cookie.length&&(offset=cookie.indexOf(search),-1!=offset&&(offset+=search.length,end=cookie.indexOf(";",offset),-1==end&&(end=cookie.length),setStr=unescape(cookie.substring(offset,end)))),setStr}function strpos(haystack,needle,offset){var i=haystack.indexOf(needle,offset);return i}function mousePageXY(e){var x=0,y=0;return e||(e=window.event),e.pageX||e.pageY?(x=e.pageX,y=e.pageY):(e.clientX||e.clientY)&&(x=e.clientX+(document.documentElement.scrollLeft||document.body.scrollLeft)-document.documentElement.clientLeft,y=e.clientY+(document.documentElement.scrollTop||document.body.scrollTop)-document.documentElement.clientTop),{x:x,y:y}}function randomNumber(m,n){return m=parseInt(m),n=parseInt(n),Math.floor(Math.random()*(n-m+1))+m}function loadCID(){var nowc=getCookie("japonrucid");null===nowc?(CID=randomNumber(1e6,9999999),setCookie("japonrucid",CID,"Mon, 01-Jan-2025 00:00:00 GMT")):CID=nowc}function trim(str){return str.replace(/^\s+|\s+$/g,"")}function RememberFlag(t,s){if(1===t||0===t)var n=t;else{var c=t.checked;if(c)var n=0;else var n=1}jQuery.post("/coockie.php",{c:s,n:n})}function ContMenuToggle(obj){var id="#"+$(obj).attr("rel"),v=$(id).css("display");if("none"!=v)$(id).hide("slow");else{var l=$(obj).offset().left,t=$(obj).offset().top+30;$(id).css("top",t);var w=$(id).width(),dw=$(document).width();l+w+30>dw&&(l=dw-w-30),$(id).css("left",l),$(id).show()}}function SetLocalVal(k,v){return localStorage.setItem(k,v),!0}function GetLocalVal(k,DefVal){var v=localStorage.getItem(k);if(null===v&&DefVal!==void 0)return DefVal;return"false"!==v&&(!("true"!==v)||v)}function RememberVal(v,s){jQuery.post("/coockie.php",{c:s,n:v})}function GetPX(fs){return fs=fs.replace(/px/g,""),fs=parseInt(fs),fs}function div(x,y){return Math.round((x-x%y)/y)}function AppQ(mode,param1,param2){try{if(void 0===typeof param2&&(param2="0"),void 0===typeof param1&&(param1="0"),void 0!==typeof param2)return AndroidFunction.GetQ(mode,param1,param2)}catch(err){}}ClickSG=!1,TimeAdd=20;function DecTimeAdd(){ClickSG||(TimeAdd--,10>TimeAdd&&(jQuery("#timeradd_but").removeClass("dsbut"),jQuery("#timeradd_but").removeClass("disabled")),IsTNM?jQuery("#timeadd_timer").html(TimeAdd):jQuery("#timeadd_timer").html(""),0<TimeAdd?setTimeout(DecTimeAdd,1e3):IsTNM&&StartAfterTimer())}function cancelFS(){document.fullscreenElement?document.exitFullscreen():document.webkitFullscreenElement&&document.webkitExitFullscreen()}function hideAdsenseEmbeds(){console.log("sth"),setTimeout(function(){try{const allElements=document.querySelectorAll("div");for(let i=allElements.length-1;0<=i;i--){const element=allElements[i];if(element.shadowRoot){const divsToHide=element.shadowRoot.querySelector(".ipr-container");if(divsToHide){divsToHide.style.display="none";break}}}}catch(error){console.log(error)}},0)}function StartFunc(){if(hideAdsenseEmbeds(),console.log("gg_ad_closebn"),IsGameStarted=!0,$("body").addClass("playmode"),$("#timeadd_block").hide(),$("#main_game_div").show(),$(window).resize(),TCID&&0!==TCID&&clearInterval(TCID),"undefined"!=typeof ggSDK||"undefined"!=typeof gamesAdapter){history.pushState(null,null,location.href);const el=document.getElementById("ggPuzzleFrame");"undefined"!=typeof ggSDK&&ggSDK.setWideIfNeed(),el&&el.focus();const fsCheckBox=document.getElementById("auto-fullscreen");fsCheckBox&&fsCheckBox.checked&&doFullScreen(!0)}else setTimeout(()=>{$("html, body").animate({scrollTop:$("#main_game_div").offset().top-$("#top_header").height()},200)},50);emitStartGame(50)}function emitStartGame(time){setTimeout(()=>{const event=new CustomEvent("ggGameStartClick",{detail:{from:"emitStartGame"},bubbles:!0,cancelable:!0});document.dispatchEvent(event)},time)}function StartAfterTimer(){jQuery("#timeradd_but").hasClass("dsbut")||jQuery("#timeradd_but").hasClass("disabled")||(ClickSG=!0,TimeAdd=0,isplayag?NewActions({mode:"addtime",id:GGID,uid:CurUser},function(j){StartGameTime=new Date,GameTimerAdd=j.timer,PUID=j.puid,StartFunc()},function(){StartGameTime=new Date,GameTimerAdd=0,StartFunc()},["#timeradd_but",!0]):StartFunc())}function UndisOnload(delay){$(window).on("load",function(){setTimeout(function(){jQuery("#timeadd_img").attr("src","/img/icon/64/success.png"),jQuery("#timeradd_but").removeClass("dsbut")},delay)})}const fastLinksKey="gg-fast-links";var fastLinks=null;function getFastLinks(){let data;try{const rawData=localStorage.getItem(fastLinksKey);data=rawData?JSON.parse(rawData):[]}catch(e){data=[]}return data}function editFastLinks(){const ul=document.getElementById("fast-links");ul&&ul.classList.toggle("editable")}function delFast(url){let elements=document.querySelectorAll(".fastLinkItem");
1elements.forEach(element=>element.remove()),fastLinks=fastLinks.filter(v=>v.url!==url),localStorage.setItem(fastLinksKey,JSON.stringify(fastLinks)),setFastLinks()}function getFastLine(url,icon,title){const li=document.createElement("li");return li.innerHTML="<a href='".concat(url,"'><img alt='' height='16' width='16' src='/img/menu/").concat(icon,".png' />").concat(title,"</a> <span class='fast_del' onclick='delFast(\"").concat(url,"\")'>❌</span>"),li.classList="fastLinkItem",li}function setFastLinks(){if(null===fastLinks&&(fastLinks=getFastLinks()),fastLinks.length){const ul=document.getElementById("fast-links");fastLinks.forEach(v=>{const li=getFastLine(v.url,v.icon,v.title);ul.appendChild(li)})}}function addFastLink(icon,title){const url=window.location.href,ul=document.getElementById("fast-links"),li=getFastLine(url,icon,title);ul.prepend(li),document.getElementById("fast-links-add").remove(),null===fastLinks&&(fastLinks=getFastLinks()),fastLinks=fastLinks.filter(v=>v.url!==url),fastLinks.unshift({title,url,icon}),9<fastLinks.length&&fastLinks.pop(),localStorage.setItem(fastLinksKey,JSON.stringify(fastLinks))}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.